Frame 1
function DrawBorder() {
_root.createEmptyMovieClip("borderTop", 9898989891);
with (_root.borderTop) {
beginFill(0, 100);
lineStyle(1, 0, 0);
moveTo(-100, 0);
lineTo(Stage.width + 100, 0);
lineTo(Stage.width + 100, -100);
lineTo(-100, -100);
lineTo(-100, 0);
endFill();
}
_root.createEmptyMovieClip("borderBtm", 9898989892);
with (_root.borderBtm) {
beginFill(0, 100);
lineStyle(1, 0, 0);
moveTo(-100, Stage.height + 100);
lineTo(Stage.width + 100, Stage.height);
lineTo(Stage.width + 100, Stage.height + 100);
lineTo(-100, Stage.height + 100);
lineTo(-100, Stage.height);
endFill();
}
_root.createEmptyMovieClip("borderLeft", 9898989893);
with (_root.borderLeft) {
beginFill(0, 100);
lineStyle(1, 0, 0);
moveTo(-100, -100);
lineTo(0, -100);
lineTo(0, Stage.height + 100);
lineTo(-100, Stage.height + 100);
lineTo(-100, -100);
endFill();
}
_root.createEmptyMovieClip("borderRight", 9898989894);
with (_root.borderRight) {
beginFill(0, 100);
lineStyle(1, 0, 0);
moveTo(Stage.width, -100);
lineTo(Stage.width, Stage.height + 100);
lineTo(Stage.width + 100, Stage.height + 100);
lineTo(Stage.width + 100, -100);
lineTo(Stage.width, -100);
endFill();
}
}
function Flash(target, colour) {
if (target.stats.tint != undefined) {
return(undefined);
}
if (colour[0] == undefined) {
colour = [255, 255, 255];
}
if (target.tint == undefined) {
target.colour = new Color(target);
target.tint = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
target.attachMovie("empty", "FLTR", 1774224);
if (target.stats.tint != undefined) {
target.FLTR.oldColour = (this._parent.tint = target.stats.tint);
}
target.FLTR.colour = colour;
target.FLTR.delay = 0;
target.FLTR.onEnterFrame = function () {
this.delay++;
var _local2 = 3;
if (this.delay <= _local2) {
this._parent.tint.rb = this._parent.tint.rb + (this.colour[0] / _local2);
this._parent.tint.gb = this._parent.tint.gb + (this.colour[1] / _local2);
this._parent.tint.bb = this._parent.tint.bb + (this.colour[2] / _local2);
this._parent.colour.setTransform(this._parent.tint);
} else if ((this.delay > _local2) && (this.delay <= (_local2 * 2))) {
this._parent.tint.rb = this._parent.tint.rb - (this.colour[0] / _local2);
this._parent.tint.gb = this._parent.tint.gb - (this.colour[1] / _local2);
this._parent.tint.bb = this._parent.tint.bb - (this.colour[2] / _local2);
this._parent.colour.setTransform(this._parent.tint);
} else if (this.delay > (_local2 * 2)) {
this._parent.tint.rb = ((target.FLTR.oldColour == undefined) ? 0 : (target.FLTR.oldColour.rb));
this._parent.tint.gb = ((target.FLTR.oldColour == undefined) ? 0 : (target.FLTR.oldColour.gb));
this._parent.tint.bb = ((target.FLTR.oldColour == undefined) ? 0 : (target.FLTR.oldColour.bb));
this._parent.tint.ab = ((target.FLTR.oldColour == undefined) ? 0 : (target.FLTR.oldColour.ab));
this._parent.colour.setTransform(this._parent.tint);
this.removeMovieClip();
}
};
}
versionNum = "v1.1.08";
gameID = "MARDEK_";
THIS_CHAPTER = 1;
fscommand ("showmenu", false);
Stage.showMenu = false;
PFX = true;
errorFrame = 0;
DrawBorder();
_root.CURSOR_.startDrag(true);
Mouse.hide();
_root.CURSOR_.swapDepths(26000987);
_root.CURSOR_.onEnterFrame = function () {
Mouse.hide();
};
stop();
if (_root.FADER_ == null) {
_root.attachMovie("fade2", "FADER_", 156745);
}
Instance of Symbol 4005 MovieClip "preloader" in Frame 1
onClipEvent (load) {
bartype = "HP";
fullness = 0;
this.gotoAndStop(101);
}
onClipEvent (enterFrame) {
fullness = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (fullness == 100) {
_root.CANPLAYNOW = true;
}
this.gotoAndStop(101 - fullness);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Play" in Frame 1
onClipEvent (enterFrame) {
_visible = (_root.CANPLAYNOW == true);
}
onClipEvent (load) {
_visible = false;
}
on (press) {
_root.play();
}
Frame 2
function drawMap() {
if (!cont) {
_root.attachMovie("empty", "cont", 1);
}
for (o in cont) {
cont[o].removeMovieClip();
}
di = 0;
while (di < map.length) {
_root["d" + di] = 0;
di++;
}
mapXoffset = _root.spawnLoc[0] - int(_root.scrnXtiles / 2);
mapYoffset = (_root.spawnLoc[1] - int(_root.scrnYtiles / 2)) - 0;
Ynudge = startLoc[1] - spawnLoc[1];
Xnudge = startLoc[0] - spawnLoc[0];
d = 100;
_root.cont._x = Xnudge * tilesize;
_root.cont._y = Ynudge * tilesize;
y = -2;
while (y < (scrnYtiles + 4)) {
x = -2;
while (x < (scrnXtiles + 4)) {
Tname = (("t_" + (x + mapXoffset)) + "_") + (y + mapYoffset);
tile = map[y + mapYoffset][x + mapXoffset];
_root.cont.attachMovie(tileset, Tname, ((1000 * ((y + mapYoffset) + 50)) + (x + mapXoffset)) + 200);
_root.cont[Tname]._x = tilesize * (x + mapXoffset);
_root.cont[Tname]._y = tilesize * (y + mapYoffset);
_root.cont[Tname]._width = (_root.cont[Tname]._height = tilesize + 0.2);
_root.cont[Tname].spawned = false;
if (tile == undefined) {
if (areaname == "WORLDMAP") {
var _local4;
var _local5;
var _local3 = x + mapXoffset;
var _local2 = y + mapYoffset;
if ((_local3 + 1) > _root.map[0].length) {
_local4 = _local3 % _root.map[0].length;
} else if (_local3 < 0) {
_local4 = _local3 + _root.map[0].length;
} else {
_local4 = _local3;
}
if ((_local2 + 1) > _root.map.length) {
_local5 = _local2 % _root.map.length;
} else if (_local2 < 0) {
_local5 = _local2 + _root.map.length;
} else {
_local5 = _local2;
}
tile = map[_local5][_local4];
_root.cont[Tname].gotoAndStop(tile + 1);
} else {
_root.cont[Tname].gotoAndStop("default");
}
} else {
_root.cont[Tname].gotoAndStop(tile + 1);
}
x++;
}
y++;
}
}
function addSprite(sprite) {
var _local4 = 0;
while (_local4 < _root.defeatedBosses.length) {
if ((sprite.BOSSCODE != null) && (sprite.BOSSCODE == _root.defeatedBosses[_local4])) {
return(undefined);
}
_local4++;
}
if ((sprite.stats.eyes == undefined) && ((substring(sprite.model, 1, 5)) == "s_dyn")) {
sprite.stats.eyes = random(4) + 1;
}
var _local3 = sprite.name;
while (_root.cont[_local3]._visible) {
_local3 = _local3 + " ";
}
var _local6 = ((1000 * (sprite.y + 50)) + sprite.x) + 300;
while (_root.cont.getInstanceAtDepth(_local6) != undefined) {
_local6++;
}
var _local7 = sprite.model.toLowerCase();
if ((substring(_local7, 1, 2)) == "s_") {
_local7 = "_NPC";
}
_root.cont.attachMovie(_local7, _local3, _local6);
_root.cont[_local3]._x = tilesize * int(sprite.x);
_root.cont[_local3]._y = tilesize * int(sprite.y);
if (_local7 == "_NPC") {
_root.cont[_local3].attachMovie(sprite.model.toLowerCase(), "model", 10);
_root.cont[_local3].model._y = _root.cont[_local3].model._y - 4.2;
_root.cont[_local3].NPC = true;
_root.cont[_local3].model.stats = sprite.stats;
}
_root.cont[_local3].props = sprite;
_root.cont[_local3]._width = (_root.cont[_local3]._height = _root.tilesize);
_root.cont[_local3].gotoAndStop(((sprite.stats.dir != undefined) ? (sprite.stats.dir) : "s"));
if (_local7 == "_NPC") {
_root.cont[_local3].model.gotoAndStop(((sprite.stats.dir != undefined) ? (sprite.stats.dir + "1") : "s1"));
}
if (sprite.tint != undefined) {
_root.cont[_local3].colour = new Color(_root.cont[_local3]);
_root.cont[_local3].colour.setTransform(sprite.tint);
}
if (_root.areaname == "WORLDMAP") {
_root.cont[_local3].onEnterFrame = function () {
if (this.getBounds(_root).xMin < 0) {
this._x = this._x + (_root.tilesize * _root.map[0].length);
} else if (this.getBounds(_root).xMin > (_root.tilesize * _root.map[0].length)) {
this._x = this._x - (_root.tilesize * _root.map[0].length);
}
if (this.getBounds(_root).yMin < 0) {
this._y = this._y + (_root.tilesize * _root.map.length);
} else if (this.getBounds(_root).yMin > (_root.tilesize * _root.map.length)) {
this._y = this._y - (_root.tilesize * _root.map.length);
}
};
}
}
function pickupItem(Name, amount, type) {
if (GetItemInfo(Name).type == "plot") {
if (_root.plotVars.ITEMS == undefined) {
_root.plotVars.ITEMS = [];
}
_root.plotVars.ITEMS.push(Name);
return(true);
}
var _local2 = 0;
var _local4 = 0;
while ((!_local4) && (_local2 < 4)) {
_local2++;
if (_root["PCstats_" + _local2].model == null) {
continue;
}
var _local3 = 0;
while (_local3 < 24) {
if (_root["PCstats_" + _local2].inventory[_local3] == null) {
_local4 = true;
break;
}
_local3++;
}
}
if (_local2 == 4) {
_root.playSFX("error");
return(false);
}
if (type == undefined) {
type = GetItemInfo(Name).type;
}
if ((((type == "item") || (type == "gems")) || (type == "misc")) || (type == "ammo")) {
var _local3 = 0;
while (_local3 < _root["PCstats_" + _local2].inventory.length) {
if (_root["PCstats_" + _local2].inventory[_local3].item == Name) {
_root["PCstats_" + _local2].inventory[_local3].amount = _root["PCstats_" + _local2].inventory[_local3].amount + (amount ? (amount) : 1);
return(true);
}
_local3++;
}
}
var _local3 = 0;
while (_local3 < _root["PCstats_" + _local2].inventory.length) {
if (_root["PCstats_" + _local2].inventory[_local3] == undefined) {
_root["PCstats_" + _local2].inventory[_local3] = {item:Name, amount:(amount ? (amount) : 1)};
return(true);
}
_local3++;
}
return(false);
}
function dropItem(Name, dropall, ID, amount) {
var _local4 = 0;
var _local2 = 1;
while (_local2 <= 4) {
if (ID) {
_local2 = ID;
}
l = _root["PCstats_" + _local2].inventory.length;
i = 0;
while (i < l) {
if (_root["PCstats_" + _local2].inventory[i].item == Name) {
_local4 = _local4 + (amount ? (amount) : 1);
if ((_root["PCstats_" + _local2].inventory[i].amount > 1) && (dropall != true)) {
_root["PCstats_" + _local2].inventory[i].amount = _root["PCstats_" + _local2].inventory[i].amount - (amount ? (amount) : 1);
if (_root["PCstats_" + _local2].inventory[i].amount <= 0) {
_root["PCstats_" + _local2].inventory[i] = null;
}
} else {
_root["PCstats_" + _local2].inventory[i] = undefined;
}
if (((amount != null) && (_local4 >= amount)) || (!amount)) {
return(undefined);
}
}
i++;
}
if (ID) {
return(undefined);
}
_local2++;
}
}
function hasItem(Name) {
var _local4 = 0;
var _local3 = 1;
while (_local3 <= 3) {
var _local2 = 0;
while (_local2 < _root["PCstats_" + _local3].inventory.length) {
if (_root["PCstats_" + _local3].inventory[_local2].item == Name) {
_local4 = _local4 + _root["PCstats_" + _local3].inventory[_local2].amount;
}
_local2++;
}
_local3++;
}
return(_local4);
}
function hasPlotItem(Name) {
var _local2 = 0;
while (_local2 < _root.plotVars.ITEMS.length) {
if (_root.plotVars.ITEMS[_local2] == Name) {
return(1);
}
_local2++;
}
return(0);
}
function doneQuest(questName) {
q = 0;
while (q < _root.quests.length) {
if (_root.quests[q].name == questName) {
_root.quests[q].done = true;
}
q++;
}
}
function AI_npc() {
if ((_root.battling || (_root.conv._visible)) || (_root.henchHireBox._visible)) {
return(undefined);
}
if (Key.isDown(13) && (!_root.conv._visible)) {
if (_root.justSpoke) {
_root.justSpoke--;
return(undefined);
}
if (nearPC(this._parent)) {
_root.test = this._parent.props[2];
this.speak(this._parent.props[0]);
}
}
}
function nearPC(object) {
if (((_root.pco[0] == object.getCoords()[0]) && (((_root.PCdir == "s") && (_root.pco[1] == (object.getCoords()[1] - 1))) || ((_root.PCdir == "n") && (_root.pco[1] == (object.getCoords()[1] + 1))))) || ((_root.pco[1] == object.getCoords()[1]) && (((_root.PCdir == "e") && (_root.pco[0] == (object.getCoords()[0] - 1))) || ((_root.PCdir == "w") && (_root.pco[0] == (object.getCoords()[0] + 1)))))) {
return(true);
}
return(false);
}
function playMusic(track) {
if (OPTIONS.musicVolume == undefined) {
OPTIONS.musicVolume = 100;
}
_root.music.setVolume(OPTIONS.musicVolume);
if (!_root.OPTIONS.musicOn) {
_root.music.stop();
return(undefined);
}
if (track == _root.mTrack) {
return(undefined);
}
_root.music.stop();
_root.music.attachSound(track);
_root.mTrack = track;
if (track == "none") {
_root.music.stop();
} else {
_root.music.start();
}
}
function createCharString() {
var _local2 = _root.PCstats_1;
var _local4 = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((("<Stats>\n<name>" + _local2.name) + "</name>\n") + "<model>") + _local2.model) + "</model>\n") + "<face>") + _local2.face) + "</face\n>") + "<title>") + _local2.title) + "</title>\n") + "<weapon>") + _local2.weapon) + "</weapon\n>") + "<shield>") + _local2.shield) + "</shield>\n") + "<helmet>") + _local2.helmet) + "</helmet>\n") + "<armour>") + _local2.armour) + "</armour>\n") + "<legs>") + _local2.legs) + "</legs>\n") + "<boots>") + _local2.boots) + "</boots>\n") + "<gloves>") + _local2.gloves) + "</gloves>\n") + "<cape>") + _local2.cape) + "</cape>\n") + "<HP>") + _local2.hp[0]) + "</HP> <HPmax>") + _local2.hp[1]) + "</HPmax>\n") + "<MP>") + _local2.mana[0]) + "</MP> <MPmax>") + _local2.mana[1]) + "</MPmax>\n") + "<level>") + _local2.level) + "</level> \n") + "<EXP>") + _local2.EXP) + "</EXP>\n") + "<STR>") + _local2.STR) + "</STR>\n") + "<DEX>") + _local2.DEX) + "</DEX>\n") + "<VIT>") + _local2.VIT) + "</VIT>\n") + "<MND>") + _local2.MND) + "</MND>\n") + "<specStat>") + _local2.specStat) + "</specStat>\n") + "<hcapStat>") + _local2.hcapStat) + "</hcapStat>\n") + "<stance>") + _local2.stance) + "</stance>\n") + "<Spells>\n";
var _local3 = 0;
while (_local3 < _local2.spells.length) {
_local4 = _local4 + (((((("\n <spell level='" + _local2.spells[_local3].level) + "' exp='") + _local2.spells[_local3].exp) + "'>") + _local2.spells[_local3].name) + "</item>");
_local3++;
}
_local4 = _local4 + "</Spells>\n<inventory>";
_local3 = 0;
while (_local3 < _root.inventory.length) {
_local4 = _local4 + (((("\n <item amount='" + _root.inventory[_local3].amount) + "'>") + _root.inventory[_local3].name) + "</item>");
_local3++;
}
_local4 = _local4 + (((((((((((((((((("</inventory>\n<gold>" + _root.money) + "</gold>\n") + "<playtime> <h>") + playtime[0]) + "</h> <m>") + playtime[1]) + "</m> <s>") + playtime[2]) + "</s> </playtime>\n") + "<area name='") + area) + "' x='") + int(_root.PCloc[0] / tilesize)) + "' y='") + int(_root.PCloc[1] / tilesize)) + "' world='") + _root.world) + "' />");
return(_local4);
}
function Clone(object) {
var _local2 = {};
for (o in object) {
_local2[o] = ((typeof(object[o]) == "object") ? (Clone(object[o])) : (object[o]));
}
return(_local2);
}
function CloneA(array) {
var _local3 = [];
var _local1 = 0;
while (_local1 < array.length) {
_local3[_local1] = ((typeof(array[_local1]) == "object") ? (Clone(array[_local1])) : (array[_local1]));
_local1++;
}
return(_local3);
}
function SaveGame(slot) {
SO = SharedObject.getLocal((gameID + "_sg_") + slot, "/");
SO.data.PCloc = (DUNGEONMODE ? ([4 * tilesize, 14 * tilesize, "INFINITE_DUNGEON_area0"]) : (_root.PCloc));
SO.data.plotV = Clone(plotVars);
SO.data.PCstats_1 = Clone(PCstats_1);
SO.data.PCstats_2 = Clone(PCstats_2);
SO.data.PCstats_3 = Clone(PCstats_3);
SO.data.PCstats_4 = Clone(PCstats_4);
SO.data.RestOfParty = Clone(Allies);
SO.data.Treasure = CloneA(looted);
SO.data.cash = money;
SO.data.quests = CloneA(quests);
SO.data.playtime = CloneA(playtime);
SO.data.defeatedBosses = CloneA(defeatedBosses);
SO.data.OPTIONS = Clone(OPTIONS);
SO.data.Carea = areaname;
SO.flush(SO.getSize());
for (o in SO) {
delete SO[o];
}
SO = null;
delete SO;
}
function LoadGame(slot) {
SO = SharedObject.getLocal((gameID + "_sg_") + slot, "/");
PCloc = CloneA(SO.data.PCloc);
plotVars = Clone(SO.data.plotV);
PCstats_1 = Clone(SO.data.PCstats_1);
PCstats_2 = Clone(SO.data.PCstats_2);
PCstats_3 = Clone(SO.data.PCstats_3);
PCstats_4 = Clone(SO.data.PCstats_4);
Allies = Clone(SO.data.RestOfParty);
looted = CloneA(SO.data.Treasure);
money = SO.data.cash;
quests = CloneA(SO.data.quests);
playtime = CloneA(SO.data.playtime);
AddClock();
defeatedBosses = ((SO.data.defeatedBosses != undefined) ? (CloneA(SO.data.defeatedBosses)) : ([]));
if (SO.data.OPTIONS != undefined) {
OPTIONS = Clone(SO.data.OPTIONS);
}
_root.mapLoaded = false;
_root.nextArea = SO.data.PCloc[2];
_root.fadeTrans.ctrl.active = true;
_root.spawnLoc = [SO.data.PCloc[0] / 30, SO.data.PCloc[1] / 30];
_root.startedGame = true;
SO = null;
delete SO;
}
function AddClock() {
_root.attachMovie("empty", "CLOCK", 5454545);
CLOCK.tick = 0;
_root.FPS = 15;
CLOCK.onEnterFrame = function () {
this.tick++;
if (this.tick > _root.FPS) {
this.tick = 0;
_root.playtime[2]++;
if (_root.playtime[2] >= 60) {
_root.playtime[1]++;
_root.playtime[2] = 0;
if (_root.playtime[1] >= 60) {
_root.playtime[0]++;
_root.playtime[1] = 0;
}
}
}
};
}
function playSFX(sfx, vol) {
if (!OPTIONS.sfxOn) {
return(undefined);
}
sfxCount++;
if (sfxCount > 100) {
sfxCount = 1;
}
_root["sfx" + sfxCount] = new Sound(_root.sfxCtrl);
_root["sfx" + sfxCount].attachSound(sfx);
_root["sfx" + sfxCount].start();
_root["sfx" + sfxCount].setVolume(((vol != undefined) ? (vol) : 100));
}
function HasDefeatedBoss(bossname) {
var _local1 = 0;
while (_local1 < defeatedBosses.length) {
if (defeatedBosses[_local1] == bossname) {
return(true);
}
_local1++;
}
return(false);
}
function HasAlly(name) {
return((PCstats_2.name == name) || (PCstats_3.name == name));
}
function RestoreHPMP(stats) {
stats.hp[1] = stats.hp[0];
if ((stats.hp[1] > 9999) && (stats.VIT < 30)) {
stats.hp[1] = 9999;
}
if (stats.hp[1] < 0) {
stats.hp[1] = 0;
}
stats.mp[1] = stats.mp[0];
if ((stats.mp[1] > 9999) && (stats.SPR < 30)) {
stats.mp[1] = 9999;
}
if (stats.mp[1] < 0) {
stats.mp[1] = 0;
}
}
function LevelUp(stats) {
stats.level++;
stats.exp = 0;
calculateStats(stats);
RestoreHPMP(stats);
}
function dnAtk(nAtk) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < nAtk[0]) {
_local3 = _local3 + (random(nAtk[1]) + 1);
_local1++;
}
return(_local3);
}
function calculateStats(stats) {
stats.ATK = 0;
stats.DEF = 0;
slots = ["weapon", "shield", "armour", "helmet", "accessory", "accessory2"];
stats.ATK2 = 0;
if ((stats.monStats != null) && (stats.weapon == "none")) {
stats.ATK = dnAtk([stats.monStats.nAtk[0] + (stats.monStats.atkGrowth[0] * (stats.level - 1)), stats.monStats.nAtk[1] + (stats.monStats.atkGrowth[1] * (stats.level - 1))]);
} else {
stats.ATK = GetWpnBaseDmg(stats.weapon);
}
var _local9 = 0;
var _local10 = 0;
var _local5 = 1;
while (_local5 < slots.length) {
if (stats[slots[_local5]] != "none") {
if (GetItemInfo(stats[slots[_local5]]).def != null) {
_local9 = _local9 + GetItemInfo(stats[slots[_local5]]).def;
}
if (GetItemInfo(stats[slots[_local5]]).mdef != null) {
_local10 = _local10 + GetItemInfo(stats[slots[_local5]]).mdef;
}
}
_local5++;
}
if (stats.nDef != undefined) {
_local9 = _local9 + stats.nDef;
}
if (stats.nMDef != undefined) {
_local10 = _local10 + stats.nMDef;
}
stats.DEF = _local9;
stats.MDEF = _local10;
if (stats.BASE == null) {
stats.BASE = {STR:10, VIT:10, AGL:10, SPR:10};
}
stats.BONUS = {STR:0, VIT:0, SPR:0, AGL:0, ATK:0, DEF:0, MDEF:0};
hpBonus = ((stats.element == "FIG") ? 10 : 0);
mpBonus = ((stats.element == "ETHER") ? 10 : 0);
stats.RESIST = {};
var _local8 = 0;
while (_local8 < ELEMENTS_.length) {
stats.RESIST[ELEMENTS_[_local8]] = 0;
_local8++;
}
var _local7 = 0;
while (_local7 < STATUSES_.length) {
stats.RESIST[STATUSES_[_local7]] = 0;
_local7++;
}
_local5 = 0;
while (_local5 < slots.length) {
if (stats[slots[_local5]] != "none") {
var _local6 = 0;
while (_local6 < _root[((slots[_local5] == "weapon") ? "GetWeaponStats" : "GetItemInfo")](stats[slots[_local5]]).effects.length) {
var _local3 = _root[((slots[_local5] == "weapon") ? "GetWeaponStats" : "GetItemInfo")](stats[slots[_local5]]).effects[_local6];
if ((((((_local3[0] == "STR") || (_local3[0] == "VIT")) || (_local3[0] == "SPR")) || (_local3[0] == "AGL")) || (_local3[0] == "DEF")) || (_local3[0] == "MDEF")) {
stats.BONUS[_local3[0]] = stats.BONUS[_local3[0]] + _local3[1];
} else if ((_local3[0] == "hp") || (_local3[0] == "mp")) {
this[_local3[0] + "Bonus"] = this[_local3[0] + "Bonus"] + _local3[1];
} else if ((_local3[0] == "R_STATUS") || (_local3[0] == "R_ELEM")) {
stats.RESIST[_local3[1]] = stats.RESIST[_local3[1]] + _local3[2];
if (stats.RESIST[_local3[1]] < -100) {
stats.RESIST[_local3[1]] = -100;
}
if ((_local3[0] == "R_STATUS") && (stats.RESIST[_local3[1]] > 100)) {
stats.RESIST[_local3[1]] = 100;
}
if ((_local3[0] == "R_ELEM") && (stats.RESIST[_local3[1]] > 200)) {
stats.RESIST[_local3[1]] = 200;
}
}
_local6++;
}
}
_local5++;
}
for (var _local11 in stats.BASE) {
stats[_local11] = stats.BASE[_local11] + stats.BONUS[_local11];
}
if (stats.monStats != null) {
stats.hp[0] = int((stats.monStats.baseStats.hp + ((stats.level - 1) * stats.monStats.hpGrowth)) + hpBonus);
stats.mp[0] = (stats.true_mp ? (stats.true_mp[0]) : (int(stats.monStats.baseStats.mp)));
} else {
stats.hp[0] = int(((stats.VIT * 2.5) + ((stats.level - 1) * stats.VIT)) + hpBonus);
stats.mp[0] = int(((stats.SPR * 2) + ((stats.level - 1) * stats.SPR)) + mpBonus);
}
stats.DEF = stats.DEF + ((!isNaN(BONUS.DEF)) ? (BONUS.DEF) : 0);
stats.MDEF = stats.MDEF + ((!isNaN(BONUS.MDEF)) ? (BONUS.MDEF) : 0);
if (stats.hp[1] > stats.hp[0]) {
stats.hp[1] = stats.hp[0];
}
if (stats.mp[1] > stats.mp[0]) {
stats.mp[1] = stats.mp[0];
}
for (R in stats.mdlStats.resist) {
stats.RESIST[R] = stats.RESIST[R] + stats.mdlStats.resist[R];
if (stats.RESIST[R] > 200) {
stats.RESIST[R] = 200;
}
if (stats.RESIST[R] < -100) {
stats.RESIST[R] = -100;
}
}
var _local12 = 20;
stats.RESIST[stats.element] = stats.RESIST[stats.element] + _local12;
if (stats.RESIST[stats.element] > 200) {
stats.RESIST[stats.element] = 200;
}
stats.RESIST[ELEM_weak[stats.element]] = stats.RESIST[ELEM_weak[stats.element]] - _local12;
if (stats.RESIST[ELEM_weak[stats.element]] < -100) {
stats.RESIST[ELEM_weak[stats.element]] = -100;
}
if (stats.statEnhn == null) {
stats.statEnhn = {STR:0, VIT:0, AGL:0, SPR:0};
}
}
function QuadToSlot(quad) {
var _local2 = [["wepn", "weapon"], ["armr", "armour"], ["helm", "helmet"], ["accs", "accessory"], ["shld", "shield"]];
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1][0] == quad) {
return(_local2[_local1][1]);
}
_local1++;
}
}
function ElemRGB(elem_) {
var _local1 = [0, 0, 255];
switch (elem_.toUpperCase()) {
case "FIRE" :
_local1 = [255, 136, 0];
break;
case "AIR" :
_local1 = [255, 255, 0];
break;
case "EARTH" :
_local1 = [60, 208, 47];
break;
case "WATER" :
_local1 = [32, 214, 223];
break;
case "LIGHT" :
_local1 = [255, 255, 255];
break;
case "DARK" :
_local1 = [-100, -255, -40];
break;
case "ETHER" :
_local1 = [10, 245, 192];
break;
case "FIG" :
_local1 = [150, 40, 215];
break;
case "NONE" :
_local1 = [180, 180, 180];
}
return(_local1);
}
function AdjustAlignment(shift) {
plotVars.ALIGNMENT = plotVars.ALIGNMENT + shift;
if (plotVars.ALIGNMENT < -100) {
plotVars.ALIGNMENT = -100;
}
if (plotVars.ALIGNMENT > 100) {
plotVars.ALIGNMENT = 100;
}
if (shift > 0) {
Flash(cont, [220, 255, 255]);
} else if (shift < 0) {
Flash(cont, [50, 0, 0]);
}
if (PCstats_1.model == "cult") {
Flash(cont.PC.model.eye1, ((shift > 0) ? ([220, 255, 255]) : ([255, 0, 0])));
Flash(cont.PC.model.eye2, ((shift > 0) ? ([220, 255, 255]) : ([255, 0, 0])));
}
}
function Quake(count) {
_root.createEmptyMovieClip("quaker", 9120910);
_root.quaker.count = count;
_root.quaker.onEnterFrame = function () {
if (this.count <= 0) {
_root._x = (_root._y = 0);
this.removeMovieClip();
return(undefined);
}
_root._x = random(11) - 5;
_root._y = random(11) - 5;
this.count--;
};
}
function replaceChar(string, find, replace) {
var _local6 = "";
var _local2 = 0;
while (_local2 < string.length) {
var _local3 = false;
var _local1 = 0;
while (_local1 < find.length) {
if ((substring(string, _local2 + 1, 1)) == find[_local1]) {
_local6 = _local6 + replace[_local1];
_local3 = true;
break;
}
_local1++;
}
if (!_local3) {
_local6 = _local6 + (substring(string, _local2 + 1, 1));
}
_local2++;
}
return(_local6);
}
function RGBtoHex(rgb) {
return(((((rgb[0] < 0) ? 0 : (rgb[0])) << 16) ^ (((rgb[1] < 0) ? 0 : (rgb[1])) << 8)) ^ ((rgb[2] < 0) ? 0 : (rgb[2])));
}
function HexToRGB(hex) {
return([(hex >> 16) & 255, (hex >> 8) & 255, hex & 255]);
}
function UseableSkills(stats, command) {
var _local9 = (((substring(command, 2, -1)) == ".Magic") ? ((substring(command, 1, 1)) + "_Magic") : (command));
var _local5 = [];
if (stats.learned[_local9] != undefined) {
for (o in stats.learned[_local9]) {
if (stats.learned[_local9][o] >= GetSubCommand(command, o).AP) {
_local5.push(GetSubCommand(command, o));
}
}
}
var _local10 = ["weapon", "shield", "helmet", "armour", "accessory", "accessory2"];
var _local7 = 0;
while (_local7 < _local10.length) {
var _local4 = GetItemInfo(stats[_local10[_local7]]).skills;
var _local2 = 0;
while (_local2 < _local4.length) {
if (_local4[_local2][0] == command) {
var _local3 = false;
var _local1 = 0;
while ((_local1 < _local5.length) && (!_local3)) {
if (_local5[_local1].A == _local4[_local2][1]) {
_local3 = true;
}
_local1++;
}
if (!_local3) {
_local5.push(GetSubCommand(command, _local4[_local2][1]));
}
}
_local2++;
}
_local7++;
}
return(_local5);
}
function GiveAP(ID, main, sub, amount) {
var _local4 = UnLatinName([sub, main]);
var _local2 = (((substring(main, 2, -1)) == ".Magic") ? ((substring(main, 1, 1)) + "_Magic") : (main));
if ((_root["PCstats_" + ID].learned[_local2][_local4] != undefined) && (_root["PCstats_" + ID].learned[_local2][_local4] >= GetSubCommand(main, _local4).AP)) {
return(undefined);
}
if (_root["PCstats_" + ID].learned == undefined) {
_root["PCstats_" + ID].learned = {};
}
if (_root["PCstats_" + ID].learned[_local2] == undefined) {
_root["PCstats_" + ID].learned[_local2] = {};
}
if (_root["PCstats_" + ID].learned[_local2][_local4] == undefined) {
_root["PCstats_" + ID].learned[_local2][_local4] = (amount ? (amount) : 1);
} else {
_root["PCstats_" + ID].learned[_local2][_local4] = _root["PCstats_" + ID].learned[_local2][_local4] + (amount ? (amount) : 1);
}
}
function Drag_Item(itemname, amount) {
_root.CURSOR_.gotoAndStop("item");
_root.CURSOR_.item.gotoAndStop((itemname.title ? "book" : ((itemname.name ? "wepn" : (GetItemInfo(itemname).type)))));
_root.CURSOR_.item.img.gotoAndStop(itemname);
_root.CURSOR_.item.ITEM = itemname;
_root.CURSOR_.item.AMOUNT = (_root.CURSOR_.item.img.AMOUNT = (((amount == undefined) || (amount == 1)) ? "" : (amount)));
}
function NewChapter(chapter, frame) {
plotVars.CHAPTER = chapter;
_root.attachMovie("cut_chapter", "CHAPTER_THING", 254987);
}
function RDir() {
var _local1 = ["n", "e", "s", "w"];
return(_local1[random(4)]);
}
function HasSTFX(stats, stfx) {
var _local1 = 0;
while (_local1 < stats.status.length) {
if (stats.status[_local1] == stfx) {
return(true);
}
_local1++;
}
return(false);
}
function AddSTFX(stats, stfx) {
if (stats.status[0] == null) {
stats.status = [];
}
var _local1 = 0;
while (_local1 < stats.status.length) {
if ((stats.status[_local1] == stfx) || (stats.status[_local1] == null)) {
stats.status[_local1] = stfx;
return(undefined);
}
_local1++;
}
stats.status.push(stfx);
}
function RemoveSTFX(stats, stfx) {
var _local2 = stats.status;
var _local4 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1] == stfx) || (stfx == "ALL")) {
_local2[_local1] = null;
} else {
_local4.push(_local2[_local1]);
}
_local1++;
}
stats.status = _local4;
}
_global.Keys = {A:65, S:83, D:68, X:88, Z:90};
_global.ELEMENTS_ = ["FIRE", "WATER", "EARTH", "AIR", "DARK", "LIGHT", "ETHER", "FIG"];
_global.ELEM_bonus = {FIRE:"STR", WATER:"SPR", AIR:"AGL", EARTH:"VIT", DARK:"DEF", LIGHT:"MDEF", ETHER:"mp", FIG:"hp"};
_global.ELEM_weak = {FIRE:"WATER", WATER:"EARTH", EARTH:"AIR", AIR:"FIRE", DARK:"LIGHT", LIGHT:"DARK", FIG:"ETHER", ETHER:"FIG"};
_global.STATUSES_ = ["PSN", "CNF", "CRS", "DRK", "SIL", "SLP", "PAR", "NUM", "RGN", "PSH", "MSH"];
_global.GoodSTATUSES_ = {RGN:1, PSH:1, MSH:1};
mapXoffset = (mapYoffset = 0);
Xnudge = (Ynudge = 0);
MovieClip.prototype.getCoords = function () {
cx = Math.floor(this._x / _root.tilesize);
cy = Math.floor(this._y / _root.tilesize);
return([cx, cy]);
};
d = 900;
MovieClip.prototype.Say = function (altSpeaker, em, msg) {
if (altSpeaker != "") {
SET_SPEAKER(altSpeaker);
} else {
_root.conv.SPEAKING = _root.firstSpeaker;
}
_root.conv.as.emState = em;
_root.conv.as.StartTalking(((altSpeaker == "PC") ? ("PC:" + msg) : (msg)));
};
MovieClip.prototype.speak = function (msg, speaker, avatar, lang) {
_root.conv.theConv.removeMovieClip();
_root.conv.attachMovie(((msg[0] != null) ? "c__blank" : (msg)), "theConv", 444);
if (msg[0] != null) {
_root.conv.theConv.talk = [].concat(msg);
}
if (speaker == undefined) {
speaker = this._parent._name;
}
if (avatar == undefined) {
avatar = this._parent.props.model;
}
if (!speaker) {
_root.conv.NAME = "";
} else {
_root.conv.NAME = speaker;
_root.conv.as.oldName = speaker;
}
if (!msg[0]) {
_root.conv.attachMovie(msg, "theConv", 444);
}
_root.conv.gotoAndStop(1);
_root.conv.clickarea.keyD = true;
_root.conv.as.xDown = true;
_root.conv.as.cSpkr = "this";
_root.conv.as.emState = "norm";
_root.conv.as.SetMessage("", "000000");
_root.conv.XKEY._visible = false;
_root.conv.display = "";
_root.conv.display2 = "";
if (HasAlly(speaker)) {
if (_root.PCstats_2.name == speaker) {
_root.conv.SPEAKING = {props:{model:"s_" + _root.PCstats_2.model, stats:_root.PCstats_2, element:_root.PCstats_2.element}};
} else if (_root.PCstats_3.name == speaker) {
_root.conv.SPEAKING = {props:{model:"s_" + _root.PCstats_3.model, stats:_root.PCstats_3}};
}
} else if (this == _root) {
if (_root.cont[speaker] != undefined) {
_root.conv.SPEAKING = _root.cont[speaker];
} else if (_root.PCstats_2.name == speaker) {
_root.conv.SPEAKING = _root.cont.PC2;
} else if (_root.PCstats_3.name == speaker) {
_root.conv.SPEAKING = _root.cont.PC3;
}
} else {
_root.conv.SPEAKING = this._parent;
}
_root.enterD = true;
_root.conv._visible = true;
_root.firstSpeaker = _root.conv.SPEAKING;
_quality = "MEDIUM";
_root.plotVars.THS.conversations++;
};
_root.attachMovie("dialogue_box", "conv", 250987);
_root.conv._x = 5;
_root.conv._y = 180;
_root.attachMovie("gotitem_box", "gotitem_box", 25000988);
MovieClip.prototype.AI_boss = function () {
if ((_root.battling || (_root.conv._visible)) || (!_root.cont._visible)) {
return(undefined);
}
if ((Key.isDown(13) && (!_root.conv._visible)) && (!_root.enterD)) {
_root.enterD = true;
if (_root.justSpoke) {
_root.justSpoke--;
return(undefined);
}
if (nearPC(this._parent)) {
if (this._parent.props[1] == "BOSS") {
_root.bossStats = this._parent.props[2];
_root.defeatedBosses.push(this._parent._name);
_root.bossTalk = true;
_root.bossSprite = this._parent;
}
speak(this._parent.props[0]);
}
} else if (!_root.conv._visible) {
_root.enterD = false;
}
};
MovieClip.prototype.AI_obj = function () {
if (_root.conv._visible || (!_root.cont._visible)) {
return(undefined);
}
if (Key.isDown(88) && (!_root.conv._visible)) {
if (_root.nearPC(this._parent)) {
_root.speak(this._parent.props.conv, this._parent.props.name, undefined, this._parent.props.lang);
_root.conv.SPEAKING = this._parent;
}
}
};
MovieClip.prototype.AI_door = function () {
if ((((_root.battling || (_root.conv._visible)) || (!_root.cont._visible)) || (_root.tehMenu._visible && (_root.tehMenu._currentframe == 1))) || (_root.battle_trans._visible)) {
return(undefined);
}
if ((_root.nearPC(this._parent) && (Key.isDown(88))) && (!_root.enterD)) {
if ((this._parent.props.lock != undefined) && ((this._parent.props.key == null) || (!_root.hasPlotItem(this._parent.props.key)))) {
_root.speak([((this._parent.props.lock == "tight") ? (["", "It's locked. You'll need a specific key to open it."]) : (((this._parent.props.lock == "tight") ? (["", "It's locked tight. No amount of shouting at it or insulting its mother will cause it to open."]) : (((this._parent.props.lock == "lock") ? (["", "It's locked."]) : (((this._parent.props.lock == "magic") ? (["", "This door is sealed with powerful magic. You can't open it, or bash it down."]) : (((this._parent.props.lock == "yes") ? (["", "Wait... this isn't a door. It's actually a wall, painted to look like a door! How misleading!"]) : (["", "This door appears to be locked tight. You'll need a specific key to open it."]))))))))))], this._parent.props.name);
return(undefined);
}
if (_root.hasPlotItem(this._parent.props.key) && (this._parent.props.key != null)) {
_root.playSFX("unlock");
}
this._parent.play();
if (this._parent.props.dir != undefined) {
_root.lastDir = this._parent.props.dir;
}
_root.nextArea = this._parent.props.dest[0];
_root.fadeTrans.ctrl.active = true;
_root.spawnLoc = [int(this._parent.props.dest[1]), int(this._parent.props.dest[2])];
}
};
music = new Sound(_root.musCtrl);
music.onSoundComplete = function () {
this.start(_root.MLoopFrom[_root.mTrack]);
};
MLoopFrom = {battle:0.35, BossBattle:1.21, VictoryFanfare:3.61, Dungeon3:12, ZombieBattle:8.4, GameOver:6.85, GdM:16};
msgSpeed = 3;
_root.attachMovie("clock", "clock", 99456);
_root.clock._x = 1000;
_root.attachMovie("fade", "fadeTrans", 99999);
_root.createEmptyMovieClip("sfxCtrl", 2171670978);
_root.createEmptyMovieClip("musCtrl", 2171670979);
sfxCount = 0;
_global.EN_ADD = function (Section, entry) {
_root.plotVars.EN_FULL[Section][entry.toLowerCase()] = 1;
};
Frame 3
function rStat(stat, type) {
var _local1 = classStats[type][stat];
return(_local1[0] + random((_local1[1] - _local1[0]) + 1));
}
function CreateCreature(type, name, level) {
var _local6 = {STR:rStat("STR", type), VIT:rStat("VIT", type), SPR:rStat("SPR", type), AGL:rStat("AGL", type)};
var _local2 = {name:((name != null) ? (name) : (classStats[type].names[random(classStats[type].names.length)])), model:type, level:1, exp:0, hp:[120, 120], mp:[20, 20], STR:_local6.STR, VIT:_local6.VIT, SPR:_local6.SPR, AGL:_local6.AGL, Class:classStats[type].ClassName, spells:[], weapon:"none", shield:"none", helmet:"none", armour:"none", accessory:"none", accessory2:"none", BASE:_local6, element:classStats[type].element, nDef:classStats[type].nDef, nMDef:classStats[type].nMDef, ATK:0, DEF:0, learned:{}};
var _local3 = GetTechInfo(classStats[type].tech);
var _local1 = 0;
while (_local1 < _local3.length) {
_local2.learned[_local3[_local1].skill] = 0;
_local1++;
}
calculateStats(_local2);
if (level != null) {
while (_local2.level < level) {
LevelUp(_local2);
}
calculateStats(_local2);
}
return(_local2);
}
function GetTechInfo(tech) {
var _local1 = 0;
while (_local1 < techInfo.length) {
if (techInfo[_local1].tech == tech) {
return(techInfo[_local1]);
}
_local1++;
}
}
function GetSkillInfo(tech, skill) {
var _local2 = GetTechInfo(tech).skills;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].skill == skill) {
return(_local2[_local1]);
}
_local1++;
}
}
function HasSkillOnEquipment(stats, skill) {
slots = ["weapon", "armour", "shield", "helmet", "accessory", "accessory2"];
var _local3 = 0;
while (_local3 < slots.length) {
var _local2 = GetItemInfo(stats[slots[_local3]]);
var _local1 = 0;
while (_local1 < _local2.skills.length) {
if (_local2.skills[_local1][1] == skill) {
return(true);
}
_local1++;
}
_local3++;
}
return(false);
}
function GetTechBaseDMG(dmg, user) {
var _local3 = 0;
var _local5 = (user.stats.MonAtk ? (dnAtk(user.stats.MonAtk)) : (GetWpnBaseDmg(user.stats.weapon)));
switch (dmg[0]) {
case "d" :
var _local4 = ((dmg[1] == "L") ? (user.stats.level) : ((((substring(dmg[1], 1, 2)) == "L/") ? (int(user.stats.level / int(substring(dmg[1], 3, -1)))) : (dmg[1]))));
if (_local4 < 1) {
_local4 = 1;
}
var _local2 = 0;
while (_local2 < _local4) {
_local3 = _local3 + (random(dmg[2]) + 1);
_local2++;
}
if (dmg[3] != null) {
_local3 = _local3 + dmg[3];
}
break;
case "r" :
_local3 = random((dmg[2] - dmg[1]) + 1) + dmg[1];
break;
case "m" :
_local3 = int(_local5 * dmg[1]);
break;
case "+" :
if (dmg[1][0] == "d") {
_local3 = _local5;
_local2 = 0;
while (_local2 < dmg[1][1]) {
_local3 = _local3 + (random(dmg[1][2]) + 1);
_local2++;
}
} else {
_local3 = _local5 + dmg[1];
}
}
return(_local3);
}
function ATK2String2(dmg, user) {
var _local2 = "";
var _local3 = GetItemInfo(user.stats.weapon).atk;
switch (dmg[0]) {
case "d" :
var _local4 = ((dmg[1] == "L") ? (user.stats.level) : ((((substring(dmg[1], 1, 2)) == "L/") ? (int(user.stats.level / int(substring(dmg[1], 3, -1)))) : (dmg[1]))));
if (_local4 < 1) {
_local4 = 1;
}
_local2 = ((_local4 + "d") + dmg[2]) + ((dmg[3] != null) ? ("+" + dmg[3]) : "");
break;
case "r" :
_local2 = (dmg[1] + "-") + dmg[2];
break;
case "m" :
_local2 = ((ATK2String(_local3) + "x") + int(dmg[1] * 100)) + "%";
break;
case "+" :
_local2 = (_local3[0] + "d") + _local3[1];
if (dmg[1][0] == "d") {
_local2 = _local2 + (((("+" + dmg[1][1]) + "d") + dmg[1][2]) + (_local3[2] ? ("+" + _local3[2]) : ""));
} else {
_local2 = _local2 + ("+" + (_local3[2] ? (_local3[2] + dmg[1]) : (dmg[1])));
}
}
return(_local2);
}
gn_males1 = ["Jack", "Fred", "Bob", "Wilhem", "William", "Terrence", "Archibald", "Gus", "Barney", "Robert", "Eric", "Boris", "Donald", "Bert", "Halm", "Morrie", "Noggis", "Wurnie", "Ernie", "Ted", "Albert", "Cuthbert"];
classStats = {dummy:{ClassName:"Peasant", tech:"PsntMg", wpnType:"SWORD", amrTypes:{Ar0:1, H0:1}}, mardek:{ClassName:"Royal Knight", tech:"MSwd", wpnType:"SWORD", amrTypes:{Ar3:1, H1:1}}, soldier:{ClassName:"Expendable Soldier", tech:"Sldr", wpnType:"SPEAR", amrTypes:{Ar0:1, H0:1}}, mardek_hero:{ClassName:"Hero", tech:"Hero", wpnType:"SWORD", amrTypes:{Sh:1, Ar3:1, H2:1}}, deugan_hero:{ClassName:"Hero", tech:"Hero", wpnType:"GREATSWORD", amrTypes:{Ar1:1, Ar2:1}}, mardek_child:{ClassName:"Commoner", tech:"Child", wpnType:"SWORD", amrTypes:{Ar0:1}}, deugan_child:{ClassName:"Commoner", tech:"Child", wpnType:"GREATSWORD", amrTypes:{Ar0:1}}};
techInfo = [{tech:"Hero", name:"Powers", desc:"The mighty powers of a True Hero!", skills:[{skill:"Smite Evil", type:"ACT", DMG:["+", ["d", 4, 12]], MP:10, accuracy:100, AP:20, MODE:"P", elem:"LIGHT", TT:"SINGLE", pfx:["Hero_HolyStrike", 16777215], desc:"Holy physical attack."}, {skill:"Shock", type:"ACT", DMG:["m", 1.4], MP:10, accuracy:100, AP:20, MODE:"P", elem:"AIR", TT:"SINGLE", pfx:["Hero_Shock", 16777113], desc:"Thunderous slash that causes Air elemental damage."}, {skill:"Sunder", type:"ACT", DMG:["+", ["d", 4, 10]], MP:10, accuracy:100, AP:20, MODE:"P", elem:"EARTH", TT:"SINGLE", pfx:["Hero_Sunder", 5609745], desc:"A mighty gash in the fabric of space that causes Earth elemental damage."}, {skill:"Pyromagia", type:"ACT", DMG:["d", 12, 20], MP:8, accuracy:100, AP:20, MODE:"M", elem:"FIRE", TT:"ANY", pfx:["Flame", 16750950], desc:"Fire Magic attack."}, {skill:"Frostasia", type:"ACT", DMG:["d", 12, 20], MP:8, accuracy:100, AP:20, MODE:"M", elem:"WATER", TT:"ANY", pfx:["Blizzard", 15659007], desc:"Water Magic attack."}, {skill:"Recover", type:"ACT", DMG:["d", 10, 100], MP:4, AP:20, MODE:"M", elem:"LIGHT", TT:"SELF", pfx:["Cure", 5627391], desc:"Restores own HP.", special:{HEALING:1}, menuse:0}, {skill:"DMG+50%", type:"R_ATK", effect:"dmgmult", mult:1.5, MODE:"P", AP:30, elem:"FIRE", pfx:["DMG_PLUS"], desc:"Increases inflicted damage by 50%."}, {skill:"Snakebite", type:"R_ATK", effect:"stfx", stfx:["PSN", 100], MODE:"P", AP:30, elem:"EARTH", pfx:["Snakebite"], desc:"Inflicts poison status."}, {skill:"Stunstrike", type:"R_ATK", effect:"stfx", stfx:["PAR", 100], MODE:"P", AP:30, elem:"AIR", pfx:["Stunstrike"], desc:"Inflicts paralysis status."}, {skill:"Nullify Physical", type:"R_DEF", effect:"dmgmult", mult:0, MODE:"P", AP:30, elem:"NONE", pfx:["SHLD_PHYS"], desc:"Nullifies inflicted physical damage by 100%."}, {skill:"Nullify Magic", type:"R_DEF", effect:"dmgmult", mult:0, MODE:"M", AP:30, elem:"WATER", pfx:["SHLD_MAG"], desc:"Nullifies inflicted magical damage by 100%."}]}, {tech:"Child", name:"Imagination", desc:"Pretend, using childish imagination, that one is a Mighty Hero to perform special skills!", skills:[{skill:"Strike", type:"ACT", DMG:["+", ["d", 1, 3]], MP:0, accuracy:80, AP:5, MODE:"P", elem:"NONE", TT:"SINGLE", pfx:["Strike"], desc:"Attack fiercly. More powerful than an average attack, but less accurate."}, {skill:"Huff-Puff", type:"ACT", DMG:["d", 3, 6], MP:4, accuracy:100, AP:5, MODE:"S", anim:"huffpuff", elem:"NONE", TT:"SELF", pfx:null, desc:"Take a few deep breaths to regain your wind and carry on fighting.", special:{HEALING:1}, menuse:0}, {skill:"DMG+1", type:"R_ATK", effect:"dmgplus", plus:1, MODE:"P", AP:5, elem:"FIRE", pfx:["DMG_PLUS"], desc:"Increases inflicted damage by 1."}, {skill:"Block", type:"R_DEF", effect:"dmgresist", resist:1, MODE:"P", AP:5, elem:"NONE", pfx:["Block"], desc:"Reduces physical damage by 1."}]}];
Frame 4
function GetItemInfo(itemname) {
var _local1 = 0;
while (_local1 < ItemList.length) {
if (ItemList[_local1].name == itemname) {
return(ItemList[_local1]);
}
_local1++;
}
return(null);
}
function GetItemTypeList(itemtype, wpnType, includeNone) {
if (wpnType == "NONE") {
return([{name:"none", atk:0, def:0}]);
}
var _local3 = [];
var _local1 = 0;
while (_local1 < ItemList.length) {
if ((ItemList[_local1].type == itemtype) && (((wpnType == undefined) || (wpnType == null)) || (ItemList[_local1].wpnType == wpnType))) {
_local3.push(ItemList[_local1]);
}
_local1++;
}
if (includeNone == true) {
_local3.push({name:"none", atk:0, def:0});
}
return(_local3);
}
function GetWeaponStats(weapon) {
var _local1 = GetItemInfo(weapon);
_local1.dmg = _local1.atk;
return(_local1);
}
function GetWpnBaseDmg(weaponname) {
var _local2 = GetItemInfo(weaponname).atk;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2[0]) {
_local3 = _local3 + (random(_local2[1]) + 1);
_local1++;
}
if (_local2[2] != null) {
_local3 = _local3 + _local2[2];
}
return(_local3);
}
function ATK2String(atk) {
return(((atk[0] + "d") + atk[1]) + ((atk[2] != null) ? ("+" + atk[2]) : ""));
}
function GetQuest(id) {
var _local1 = 0;
while (_local1 < QuestData.length) {
if (QuestData[_local1].ID == id) {
return(QuestData[_local1]);
}
_local1++;
}
}
ARMOUR_TYPES = {Ar0:"CLOTHING", Ar1:"LIGHT ARMOUR", Ar2:"MEDIUM ARMOUR", Ar3:"HEAVY ARMOUR", ArR:"ROBE", Sh:"SHIELD", H0:"HAT", H1:"HELMET", H2:"FULL HELM"};
ItemList = [{name:"Longsword", type:"wepn", wpnType:"SWORD", atk:[2, 6], critical:4, hit:140, cost:50, desc:"A basic iron sword.", skills:[["MSwd", "DMG+20%"]]}, {name:"Sun Sword", type:"wepn", wpnType:"SWORD", atk:[2, 8], critical:4, hit:140, cost:400, elem:"LIGHT", desc:"A holy blade blessed by Solak, God of the Sun. It inflicts Light elemental damage."}, {name:"M Blade", type:"wepn", wpnType:"SWORD", elem:"LIGHT", atk:[10, 12, 20], critical:10, hit:255, cost:1, effects:[["STR", 5]], desc:"A mighty sword wielded by heroes.", skills:[["Hero", "Smite Evil"], ["Hero", "DMG+50%"]]}, {name:"Stick", type:"wepn", wpnType:"SWORD", atk:[1, 3, 1], critical:1, hit:90, cost:0, hit_sfx:"punch", desc:"A large, sturdy stick, found on the gr- no! It's a Mighty Hero's Magic Sword, of course! It's short and light enough to wield in one hand like a sword.", skills:[["Child", "Strike"], ["Child", "DMG+1"], ["Child", "Block"]]}, {name:"Pike", type:"wepn", wpnType:"SPEAR", atk:[1, 12], critical:2, hit:94, cost:50, desc:"A simple spear often used by generic, expendable soldiers.", skills:[["Sldr", "Power Attack"]]}, {name:"Greatsword", type:"wepn", wpnType:"GREATSWORD", atk:[3, 6], critical:4, hit:140, cost:50, desc:"A basic iron sword.", skills:[["MSwd", "DMG+20%"]]}, {name:"Balmung", type:"wepn", wpnType:"GREATSWORD", elem:"EARTH", atk:[20, 7, 40], critical:8, hit:140, cost:1, effects:[["STR", 5]], desc:"The sword of a legendary hero.", skills:[["Hero", "Sunder"], ["Hero", "DMG+50%"]]}, {name:"Big Stick", type:"wepn", wpnType:"GREATSWORD", atk:[1, 3, 1], critical:1, hit:90, cost:0, hit_sfx:"punch", desc:"A large, sturdy stick, found on the gr- no! It's a Mighty Hero's Magic Sword, of course! This one is large enough for a child to wield in both hands, like a greatsword.", skills:[["Child", "Strike"], ["Child", "DMG+1"], ["Child", "Block"]]}, {name:"Branch Club", type:"wepn", wpnType:"GREATMACE", atk:[2, 4], critical:1, hit:90, cost:0, hit_sfx:"punch", desc:"A large branch, used as a club.", skills:[]}, {name:"Wooden Shield", type:"shld", def:1, mdef:0, evade:5, cost:20, amrType:"Sh", desc:"A round shield made of wood. Pretty light, but offers only some small protection. Good for poor people!"}, {name:"Hero's Shield", type:"shld", def:10, mdef:50, evade:30, cost:1, amrType:"Sh", desc:"A silver shield used by a mighty hero."}, {name:"Tunic", type:"armr", def:0, mdef:0, cost:1, amrType:"Ar0", desc:"A 'stylish', vomit-green Commoner Tunic. Worn by Commoners.", skills:[["Child", "Huff-Puff"]]}, {name:"Leather Armour", type:"armr", def:3, mdef:0, cost:250, amrType:"Ar1", desc:"A suit of armour made of leather. More protective than clothing, but still pretty weak."}, {name:"Rusty Armour", type:"armr", def:4, mdef:0, cost:100, amrType:"Ar3", desc:"A full suit of armour, made of bronze. It's rusted though from overuse, and isn't as durable as it once was."}, {name:"Breastplate", type:"armr", def:6, mdef:0, cost:250, amrType:"Ar2", desc:"A simple iron breastplate often worn by soldiers."}, {name:"Bronze Armour", type:"armr", def:10, mdef:0, cost:500, amrType:"Ar3", desc:"A full suit of armour, made of bronze."}, {name:"Hero's Armour", type:"armr", def:50, mdef:0, cost:1, amrType:"Ar3", effects:[["VIT", 3], ["hp", 600]], amrType:3, desc:"Armour made of the strongest and most lustrous of metals, worn by a mighty hero."}, {name:"Hero's Coat", type:"armr", def:45, mdef:80, cost:1, amrType:"Ar1", effects:[["SPR", 3], ["hp", 400]], amrType:"r", desc:"An emerald-green greatcoat, worn by a mighty hero."}, {name:"Hat", type:"helm", def:0, mdef:0, cost:90, amrType:"H0", desc:"This seems to be some sort of hat."}, {name:"Rusty Helm", type:"helm", def:2, mdef:0, cost:50, amrType:"H2", desc:"This helmet was once probably rather strong and valuable, but ages has worn down its effectiveness considerably."}, {name:"Bronze Helm", type:"helm", def:3, mdef:0, cost:300, amrType:"H2", desc:"A helmet that covers the entire head, made of bronze."}, {name:"Kettle Hat", type:"helm", def:1, mdef:0, cost:100, amrType:"H1", desc:"A wide-brimmed metal helm-hat thing. Trendy!"}, {name:"Dragon Amulet", type:"accs", def:0, mdef:10, cost:100, effects:[["R_ELEM", "FIRE", 50], ["STR", 1], ["VIT", 1], ["SPR", 1], ["AGL", 1]], elem:"FIRE", desc:"A powerful amulet shaped like a dragon. It protects against fire and boosts bodily energy output.", skills:[["Hero", "Nullify Physical"], ["Hero", "Nullify Magic"]]}, {name:"Cog Necklace", type:"accs", def:0, mdef:0, cost:100, effects:[["R_STATUS", "SLP", 100]], desc:"A necklace, with a simple cog attached. It was enchanted by Meraeador to protect the wearer from being put to sleep.", skills:[]}, {name:"SilverPendant", type:"accs", def:0, mdef:3, cost:100, effects:[["R_ELEM", "LIGHT", 15]], elem:"LIGHT", desc:"A delicate silver piece of jewerly. Wear it around your neck.", skills:[["W.Magic", "Cure"]]}, {name:"FirePendant", type:"accs", def:1, mdef:5, cost:300, effects:[["R_ELEM", "FIRE", 50]], elem:"FIRE", desc:"An amulet imbued with the Fire element. It reduces all fire damage inflicted on its wearer by half.", skills:[["B.Magic", "Flame"]]}, {name:"WaterPendant", type:"accs", def:1, mdef:5, cost:300, effects:[["R_ELEM", "WATER", 50]], elem:"WATER", desc:"An amulet imbued with the Water element. It reduces all water damage inflicted on its wearer by half."}, {name:"EarthPendant", type:"accs", def:1, mdef:5, cost:300, effects:[["R_ELEM", "EARTH", 50]], elem:"EARTH", desc:"An amulet imbued with the Earth element. It reduces all earth damage inflicted on its wearer by half."}, {name:"AirPendant", type:"accs", def:1, mdef:5, cost:300, effects:[["R_ELEM", "AIR", 50]], elem:"AIR", desc:"An amulet imbued with the Air element. It reduces all air damage inflicted on its wearer by half."}, {name:"YalortianAmulet", type:"accs", def:1, mdef:6, cost:500, elem:"DARK", effects:[["SPR", 2], ["R_ELEM", "DARK", 10]], desc:"An amulet shaped like the Eye of Yalort. Increases Spirit."}, {name:"RingOfSTR", type:"accs", def:0, mdef:0, cost:100, effects:[["STR", 1]], desc:"This little ring, set with a red gem, magically enhances its wearer's physical strength."}, {name:"RingOfVIT", type:"accs", def:0, mdef:0, cost:100, effects:[["VIT", 1], ["hp", 3]], desc:"This little ring, set with a green gem, magically enhances its wearer's physical endurance."}, {name:"RingOfAGL", type:"accs", def:0, mdef:0, cost:100, effects:[["AGL", 1]], desc:"This little ring, set with a yellow gem, magically enhances its wearer's speed."}, {name:"RingOfSPR", type:"accs", def:0, mdef:0, cost:100, effects:[["SPR", 1]], desc:"This little ring, set with a blue gem, magically enhances its wearer's mental acuity."}, {name:"RingOfSTR+2", type:"accs", def:0, mdef:0, cost:100, effects:[["STR", 2]], desc:"This little ring, set with a red gem, magically enhances its wearer's physical strength."}, {name:"RingOfVIT+2", type:"accs", def:0, mdef:0, cost:100, effects:[["VIT", 2], ["hp", 8]], desc:"This little ring, set with a green gem, magically enhances its wearer's physical endurance."}, {name:"RingOfAGL+2", type:"accs", def:0, mdef:0, cost:100, effects:[["AGL", 2]], desc:"This little ring, set with a yellow gem, magically enhances its wearer's speed."}, {name:"RingOfSPR+2", type:"accs", def:0, mdef:0, cost:100, effects:[["SPR", 2]], desc:"This little ring, set with a blue gem, magically enhances its wearer's mental acuity."}, {name:"CopperRing", type:"accs", def:1, mdef:0, cost:100, desc:"This tiny ring somehow raises Defence by a whole point."}, {name:"OnyxRing", type:"accs", def:1, mdef:3, cost:800, elem:"DARK", effects:[["STR", 1], ["R_ELEM", "DARK", 50], ["R_STATUS", "DRK", 100]], desc:"A ring set with an onyx stone. It channels the powers of darkness, protecting its wearer from both the element Darkness and the status effect, also called Darkness.", skills:[["B.Magic", "Atra"]]}, {name:"MoonstoneRing", type:"accs", def:1, mdef:3, cost:800, elem:"LIGHT", effects:[["SPR", 1], ["R_ELEM", "LIGHT", 50], ["R_STATUS", "SLP", 100]], desc:"A ring set with an moonstone. It channels the power of light, protecting its wearer from offensive light-elemental spells, and the status effect Sleep, for some reason.", skills:[["W.Magic", "PurePulse"]]}, {name:"Gauntlet", type:"accs", def:1, mdef:0, cost:500, effects:[["STR", 2]], desc:"A metal glove-type thing that increases strength.", skills:[["Swordplay", "Boost"]]}, {name:"GreenBeads", type:"accs", def:1, mdef:4, cost:400, elem:"EARTH", effects:[["R_ELEM", "EARTH", 20], ["VIT", 1]], desc:"A necklace made of green, earthy beads.", skills:[["B.Magic", "Stone"], ["W.Magic", "Antidote"]]}, {name:"Snakestone", type:"accs", def:1, mdef:6, cost:2000, elem:"EARTH", effects:[["R_STATUS", "PSN", 100]], desc:"A magical green stone that protects against poison if worn.", skills:[["W.Magic", "Antidote"]]}, {name:"Wingstone", type:"accs", def:0, mdef:8, cost:2000, elem:"AIR", effects:[["R_ELEM", "AIR", 20], ["AGL", 2]], desc:"An oddly crafted magical talisman infused with the power of wind."}, {name:"TopazEarring", type:"accs", def:0, mdef:4, cost:4000, elem:"AIR", effects:[["R_ELEM", "AIR", 40], ["R_STATUS", "PAR", 80], ["AGL", 2]], desc:"A powerful piece of jewellery that protects against wind and paralysis, and also increases speed."}, {name:"ShieldBracer", type:"accs", def:10, mdef:10, cost:1000, effects:[["R_ELEM", "FIRE", 75], ["R_ELEM", "EARTH", 75], ["R_ELEM", "AIR", 75], ["R_ELEM", "WATER", 75]], desc:"This bracer generates a shield around its wearer, functioning as an entire suit of armour."}, {name:"Potion", type:"item", cost:30, action:["r_HP", 50], rgb:[100, 160, 220], desc:"This generic potion restores 50HP. The bottle is to scale."}, {name:"MugwortJuice", type:"item", cost:80, action:["r_HP", 120], rgb:[100, 150, 70], desc:"A potion made from the Mugwort herb, which has some sort of healing properties. It restores 120HP."}, {name:"FigJuice", type:"item", cost:300, action:["r_HP", 250], rgb:[130, 40, 180], desc:"A thick, purple concoction made of figs. Restores 250 HP."}, {name:"Manaberry", type:"item", cost:200, action:["r_MP", 30], rgb:[100, 255, 255], desc:"When consumed, these magical berries restore 30MP."}, {name:"Ether", type:"item", cost:600, action:["r_MP", 50], rgb:[100, 255, 255], desc:"This magical draught restores 50 MP."}, {name:"Beer", type:"item", cost:22, action:["r_HP", -5], rgb:[140, 100, 80], desc:"Alcohol is stupid. It doesn't do any good. It only causes harm."}, {name:"Medipack", type:"item", cost:50, action:["r_HP", 100], rgb:[255, 255, 255], desc:"This item, which contains all sorts of tools for repairing wounds, restores 100HP."}, {name:"Antidote", type:"item", cost:20, action:["h_status", "PSN"], rgb:[200, 255, 200], pfx:"Antidote", desc:"This tiny vial of green liquid can cure most poisons when imbibed."}, {name:"LiquidLight", type:"item", cost:20, action:["h_status", "DRK"], rgb:[255, 255, 255], pfx:"Antidote", desc:"A magical potion which can restore the sight of magically blinded eyes."}, {name:"LiquidSound", type:"item", cost:20, action:["h_status", "SIL"], rgb:[100, 0, 155], pfx:"Antidote", desc:"Cures Silence."}, {name:"MotionPotion", type:"item", cost:20, action:["h_status", "PAR"], rgb:[255, 255, 100], pfx:"Antidote", desc:"Cures Paralysis."}, {name:"HolyWater", type:"item", cost:20, action:["h_status", "CRS"], rgb:[200, 255, 255], pfx:"Antidote", desc:"Water blessed by Yalort, used to cure curses."}, {name:"Remedy", type:"item", cost:500, action:["h_status", "ALL"], rgb:[255, 200, 50], pfx:"Remedy", desc:"This potent potion can remove any status effect."}, {name:"PhoenixDown", type:"item", cost:1000, action:["life", 0.1], rgb:[255, 200, 50], pfx:"Phoenix", desc:"This item (which restores life) is not copied off any other game!"}, {name:"Grenade", type:"item", cost:1000, action:["r_HP", [-100, -300]], rgb:[255, 200, 50], pfx:"Grenade", desc:"Throw this to inflict damage. It's not a good idea to use it on yourself."}, {name:"LeadPipe", type:"misc", cost:5, desc:"A lead pipe that used to be the 'tail' of a fumerat. It reeks of sewage."}, {name:"GreenCrystal", type:"plot", cost:-1, desc:"This beautiful green crystal reflects light with a wavelength of approximately 510 nm."}, {name:"VirtualMap", type:"plot", cost:-1, desc:"A small, flat gadget about the size of a postcard set with a screen that generates a map of your current area. Use it by selecting 'Map' from the menu."}, {name:"WorldMap", type:"plot", cost:-1, desc:"A map of Proteus, rather crudely drawn on a piece of parchment. Use it from the menu to view the map on the World Map."}, {name:"Communicator", type:"plot", cost:-1, desc:"This gadget, which is far more advanced than a 'telephone', can be used to communicate with The Marauder."}, {name:"BlackGem", type:"plot", cost:-1, desc:"A black gem, filled with the power of darkness. You can't find any way to actually utilise the power it obviously holds."}, {name:"WhiteGem", type:"plot", cost:-1, desc:"A white gem, filled with the power of light. You can't find any way to actually utilise the power it obviously holds."}, {name:"GoldenTrophy", type:"plot", cost:-1, desc:"This is some sort of weird trophy, made of gold. On it, it says: 'Awarded To Eric Englebertson, For Being Such A Great Guy!!'"}, {name:"CatacombsKey", type:"plot", cost:-1, desc:"A large, rusty key. It opens a door in the catacombs."}, {name:"HowlKey", type:"plot", cost:-1, desc:"A magical key which unlocks a magical door sealing Howlwood off from the rest of the world..."}, {name:"House Keys", type:"plot", cost:-1, desc:"Keys for a house in Villageville that you purchased. You can use the house for storing excess items."}, {name:"Package", type:"plot", cost:-1, desc:"A mysterious Package. You have no idea what could be inside."}, {name:"TrampHat", type:"plot", cost:-1, desc:"A type of hat worn by vagrants. You can't equip it; it's too filthy!"}, {name:"RodOfFire", type:"plot", cost:-1, elem:"FIRE", desc:"Use this with the '1' key to immolate obstacles such as boulders."}, {name:"RodOfIce", type:"plot", cost:-1, elem:"WATER", desc:"Use this with the '2' key to freeze water."}, {name:"Gold", type:"gold", cost:1, desc:"The Generic Gold Coin seems to be some sort of magic currency that is accepted everywhere. How useful."}, {name:"none", type:"none", atk:[1, 4], pow:0, def:0, cost:0, desc:"-"}];
WeaponAnimType = {SWORD:"MARTIAL", DAGGER:"MARTIAL", AXE:"MARTIAL", GREATSWORD:"2HSWORDS", SPEAR:"POLEARMS", STAFF:"STAVES", WAND:"MARTIAL", GUN:"GUNS", BLASTER:"GUNS", CLAW:"POLEARMS"};
ShieldCompatability = {SWORD:1, DAGGER:1, AXE:1, GREATSWORD:0, SPEAR:0, STAFF:0, WAND:1, GUN:0, BLASTER:0};
QuestData = [{ID:"HEROES", title1:"Hero Quest!", title:"Slay The Mighty Dragon!", body:" A Mighty Dragon has captured a Princess from some kingdom or another, and it's your duty as Mighty Heroes to slay the dragon and rescue her! So get to it!"}, {ID:"FUMERATS", title1:"LeadPipes", title:"Collect 5 LeadPipes", body:" Meraeador, the inventor, has asked you to bring him five LeadPipes, which he needs for his latest invention. You can get LeadPipes from fumerats in the Goznor sewers."}, {ID:"FALLENSTAR", title1:"The Fallen Star", title:"The Fallen Star", body:" Deugan says he saw a strange 'star' in the sky this morning, and that it apparently fell down to Belfan and crashed just on the other side of the Soothwood. You have to travel through the Soothwood to find out what it was!"}, {ID:"ALLIES", title1:"SOMETHING", title:"All Alone...", body:" After seeing a strange, ancient video recording on a computer screen in the Lost Ruins, you were blasted by a magical spell and warped a fair way across the world. You were found completely alone with nothing but your clothes.\n Your friends, Kerah and Quillon, were seperated from you. You should find them."}];
totalTreasure = 13;
Frame 5
function CreatePCstats(mdl, append) {
var _local1 = Clone(PCBaseStats[mdl]);
for (o in append) {
_local1[o] = append[o];
}
_local1.BASE = {STR:_local1.STR, VIT:_local1.VIT, SPR:_local1.SPR, AGL:_local1.AGL};
return(_local1);
}
PCBaseStats = {mardek_hero:{name:"Mardek", model:"mardek_hero", STR:17, VIT:16, SPR:8, AGL:10, Class:"Hero", element:"LIGHT", nDef:0, nMDef:0}, deugan_hero:{name:"Deugan", model:"deugan_hero", STR:13, VIT:14, SPR:10, AGL:12, Class:"Hero", element:"EARTH", nDef:0, nMDef:0}, mardek_child:{name:"Mardek", model:"mardek_child", STR:10, VIT:10, SPR:7, AGL:13, Class:"Commoner", element:"LIGHT", nDef:0, nMDef:0}, deugan_child:{name:"Deugan", model:"deugan_child", STR:10, VIT:9, SPR:12, AGL:12, Class:"Commoner", element:"EARTH", nDef:0, nMDef:0}};
Instance of Symbol 4055 MovieClip "__console" in Frame 5
onClipEvent (load) {
this.swapDepths(44444444444);
_y = 460;
_root.noBattles = false;
}
onClipEvent (enterFrame) {
if ((!Key.isDown(67)) && (tabD)) {
tabD = false;
return(undefined);
}
if ((Key.isDown(67) && (Key.isDown(18))) && (!tabD)) {
tabD = true;
if (_y == 300) {
_y = 460;
return(undefined);
}
_y = 300;
ENTRY = "_";
Selection.setFocus("this.ENTRYfield");
}
if ((!Key.isDown(13)) && (enterD)) {
enterD = false;
return(undefined);
}
if (Key.isDown(13) && (!enterD)) {
enterD = true;
if (ENTRY.length < 1) {
return(undefined);
}
if ((substring(ENTRY, 1, 10)) == "SetRootVar") {
len = 0;
Vtc = "";
Val = "";
C = "";
while (C != ",") {
Vtc = Vtc + (substring(ENTRY, 12 + len, 1));
C = substring(ENTRY, 13 + len, 1);
len++;
}
Val = substring(ENTRY, len + 13, -1);
_root[Vtc] = Val;
ENTRY = ((("Root var '" + Vtc) + "' set to value '") + Val) + "'.";
} else if ((substring(ENTRY, 1, 10)) == "GetRootVar") {
Vtc = substring(ENTRY, 12, -1);
Val = _root[Vtc];
ENTRY = ((("Root var '" + Vtc) + "' = '") + Val) + "'.";
} else if (ENTRY == "ReturnAll") {
ENTRY = "";
for (o in _root) {
ENTRY = ENTRY + _root[o];
}
} else if ((substring(ENTRY, 1, 6)) == "GetVar") {
Vtc = substring(ENTRY, 8, -1);
Val = eval (Vtc);
ENTRY = ((("The variable '" + Vtc) + "' = '") + Val) + "'.";
} else if ((substring(ENTRY, 1, 7)) == "ListObj") {
Vtc = substring(ENTRY, 9, -1);
Val = eval (Vtc);
ENTRY = "";
for (var o in Val) {
ENTRY = ENTRY + (((o + ": ") + Val[o]) + ", ");
}
} else if ((substring(ENTRY, 1, 6)) == "SetVar") {
len = 0;
Vtc = "";
Val = "";
C = "";
while (C != ",") {
Vtc = Vtc + (substring(ENTRY, 8 + len, 1));
C = substring(ENTRY, 9 + len, 1);
len++;
}
Val = substring(ENTRY, len + 9, -1);
Set(Vtc, Val);
ENTRY = ((("The variable '" + Vtc) + "' = '") + Val) + "'.";
} else if (ENTRY == "GetAllItems") {
var iv = 0;
while (iv < _root.Items.length) {
_root.pickupItem(_root.Items[iv].name, 10, _root.Items[iv].type);
iv++;
}
ENTRY = "Your inventory now contains 10 (more) of every item.";
} else if ((substring(ENTRY, 1, 4)) == "Warp") {
len = 0;
Area = "";
X = "";
Y = "";
C = "";
while (C != ",") {
Area = Area + (substring(ENTRY, 6 + len, 1));
C = substring(ENTRY, 7 + len, 1);
len++;
}
C = "";
while (C != ",") {
X = X + (substring(ENTRY, 6 + len, 1));
C = substring(ENTRY, 7 + len, 1);
len++;
}
Y = substring(ENTRY, len + 7, -1);
if ((substring(X, 1, 1)) == ",") {
X = substring(X, 2, -1);
}
ENTRY = ((((("Warping to (" + X) + ",") + Y) + ") in area '") + Area) + "'.";
_root.nextArea = Area;
_root.fadeTrans.ctrl.active = true;
_root.spawnLoc = [Number(X), Number(Y)];
} else if (ENTRY == "Shutup") {
_root.conv.as.dialogue = [];
} else if ((substring(ENTRY, 1, 7)) == "LevelUp") {
amount = substring(ENTRY, 9, -1);
if (isNaN(amount)) {
ENTRY = "The correct syntax for that must contain an integer.";
return(undefined);
}
var lu = 0;
while (lu < amount) {
_root.LevelUp(_root.PCstats_1);
_root.PCstats_1.EXP = 0;
_root.LevelUp(_root.PCstats_2);
_root.PCstats_2.EXP = 0;
_root.LevelUp(_root.PCstats_3);
_root.PCstats_3.EXP = 0;
lu++;
}
ENTRY = ("The party has levelled up " + amount) + " times.";
} else if ((substring(ENTRY, 1, 7)) == "GetItem") {
var itemname = (substring(ENTRY, 9, -1));
if ((_root.GetItemInfo(itemname) == null) && (_root.GetPremadeWpn(itemname) == null)) {
ENTRY = "Error. There is no such item.";
return(undefined);
}
if (_root.GetItemInfo(itemname).type == "plot") {
if (_root.plotVars.ITEMS == undefined) {
_root.plotVars.ITEMS = [];
}
_root.plotVars.ITEMS.push(itemname);
} else if (_root.GetPremadeWpn(itemname)) {
_root.pickupItem(_root.GetPremadeWpn(itemname), 1, "wepn");
} else {
_root.pickupItem(itemname, 1, _root.GetItemInfo(itemname).type);
}
ENTRY = ("1x " + itemname) + " was added to your inventory.";
} else if (ENTRY == "b1") {
_root.pickupItem("Bullet", 99);
ENTRY = "Got a stack of bullets.";
} else if (ENTRY == "b2") {
_root.pickupItem("IceBullet", 99);
ENTRY = "Got a stack of IceBullets.";
} else if (ENTRY == "b3") {
_root.pickupItem("FireBullet", 99);
ENTRY = "Got a stack of FireBullets.";
} else if ((substring(ENTRY, 1, 7)) == "GetGold") {
var amount = int(substring(ENTRY, 9, -1));
_root.money = _root.money + amount;
ENTRY = ("Got " + amount) + " gold.";
} else if (ENTRY == "NoBattles") {
_root.noBattles = !_root.noBattles;
ENTRY = ("Random Battles are now " + (_root.noBattles ? "OFF" : "ON")) + ".";
} else if (ENTRY == "Restore") {
var i = 1;
while (i <= 3) {
_root["PCstats_" + i].hp[1] = _root["PCstats_" + i].hp[0];
_root["PCstats_" + i].mp[1] = _root["PCstats_" + i].mp[0];
_root["PCstats_" + i].status = 0;
i++;
}
ENTRY = "HP, Mana and status were fully restored.";
} else if ((substring(ENTRY, 1, 8)) == "GetSkill") {
var skillname = (substring(ENTRY, 10, -1));
if (_root.GetSkillTree(skillname) == undefined) {
ENTRY = "That skill doesn't exist.";
return(undefined);
}
if (_root.PCstats_1.learned[skillname]) {
ENTRY = "You already have that skill.";
return(undefined);
}
_root.PCstats_1.learned[skillname] = 1;
ENTRY = ((_root.PCstats_1.name + " gained the skill '") + skillname) + "'.";
} else if ((substring(ENTRY, 1, 12)) == "UndefeatBoss") {
var boss = (substring(ENTRY, 14, -1));
var b = 0;
while (b < _root.defeatedBosses.length) {
if (_root.defeatedBosses[b] == boss) {
ENTRY = ("You can now fight '" + boss) + "' again.";
_root.defeatedBosses[b] = _root.defeatedBosses[_root.defeatedBosses.length - 1];
_root.defeatedBosses.pop();
return(undefined);
}
b++;
}
ENTRY = "You haven't fought that boss yet!";
} else if (ENTRY == "Flash") {
_root.Flash(_root.cont, [255, 255, 255]);
ENTRY = "";
} else if ((substring(ENTRY, 1, 6)) == "GetMap") {
var mapname = (substring(ENTRY, 8, -1));
if (mapname.length < 1) {
mapname = _root.area;
}
_root.plotVars.Maps.push(mapname);
ENTRY = ("Acquired the map of the area '" + mapname) + "'.";
} else if ((substring(ENTRY, 1, 7)) == "YODA") {
_root.pickupItem("Lightsaber", 1, "wepn");
_root.pickupItem("Lightsaber_G", 1, "wepn");
_root.pickupItem("Lightsaber_R", 1, "wepn");
_root.pickupItem("Lightsaber_P", 1, "wepn");
_root.pickupItem("Lightsaber_Y", 1, "wepn");
ENTRY = "May the force be with you...";
} else if (ENTRY == "GetCoords") {
ENTRY = _root.pco;
} else if ((substring(ENTRY, 1, 8)) == "MassStFX") {
var stfx = (substring(ENTRY, 10, -1));
var i = 1;
while (i <= 3) {
if (!_root["p" + i].dying) {
_root["PCstats_" + i].status = stfx;
}
if (!_root["e" + i].dying) {
_root["PCstats_e" + i].status = stfx;
}
i++;
}
ENTRY = ("All allies and foes are now afflicted with " + stfx) + ".";
} else {
ENTRY = "You obviously don't know what you're doing.";
}
}
}
Frame 6
if (!optionsSet) {
_quality = "LOW";
OPTIONS = {PFX:true, musicOn:true, musicVolume:100, sfxOn:true, autoSave:true, btlQuality:"MEDIUM", areaname:1, animtiles:1, lineless:0};
optionsSet = true;
}
_quality = "HIGH";
playMusic("Theme");
stop();
Instance of Symbol 3984 MovieClip [MENU_btn] "New Game" in Frame 6
on (press) {
_root.FADER_.FadeTrans("newgame", "slow_diminuendo");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Load Game" in Frame 6
onClipEvent (load) {
so = SharedObject.getLocal(_root.gameID + "_sg_1", "/");
if (so.data.cash == undefined) {
_alpha = 50;
}
}
on (press) {
if (_alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.goingToSaveScreen = true;
_root.FADER_.FadeTrans("field");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Options" in Frame 6
on (press) {
_root.CURSOR_.gotoAndStop("arrow");
_root.FADER_.FadeTrans("OPTIONS");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Infinite Dungeon" in Frame 6
onClipEvent (load) {
_root.stop();
_alpha = 30;
}
on (press) {
return(undefined);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Editor" in Frame 6
on (press) {
_root.playMusic("none");
_root.gotoAndStop("editor");
}
Instance of Symbol 4112 MovieClip in Frame 6
onClipEvent (load) {
_alpha = 0;
}
on (rollOver) {
_alpha = 100;
}
on (rollOut) {
_alpha = 0;
}
on (release) {
getURL ("http://pseudolonewolf.deviantart.com/", "_blank");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Server Load" in Frame 6
on (press) {
if (_alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.goingToSaveScreenB = true;
_root.FADER_.FadeTrans("field");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Play More Games" in Frame 6
on (press) {
_root.getURL("http://www.crazymonkeygames.com", "_blank");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Instructions" in Frame 6
on (press) {
_root.FADER_.FadeTrans("HELPINDEX");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Jukebox" in Frame 6
onClipEvent (load) {
var SO = SharedObject.getLocal(_root.gameID + "_sg_MASTER", "/");
_visible = (SO.data.FINISHED == 1);
}
on (press) {
_root.CURSOR_.gotoAndStop("arrow");
_root.FADER_.FadeTrans("JUKEBOX");
}
Instance of Symbol 4122 MovieClip "New Game" in Frame 6
on (press) {
_root.FADER_.FadeTrans("newgame", "slow_diminuendo");
}
Instance of Symbol 4122 MovieClip "Load Game" in Frame 6
onClipEvent (load) {
so = SharedObject.getLocal(_root.gameID + "_sg_1", "/");
if (so.data.cash == undefined) {
_alpha = 20;
}
}
on (press) {
if (_alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.goingToSaveScreen = true;
_root.FADER_.FadeTrans("field");
}
Instance of Symbol 4122 MovieClip "Options" in Frame 6
on (press) {
_root.CURSOR_.gotoAndStop("arrow");
_root.FADER_.FadeTrans("OPTIONS");
}
Instance of Symbol 4122 MovieClip "Instructions" in Frame 6
on (press) {
_root.FADER_.FadeTrans("HELPINDEX");
}
Instance of Symbol 4122 MovieClip "Music Player" in Frame 6
onClipEvent (load) {
var SO = SharedObject.getLocal(_root.gameID + "_sg_MASTER", "/");
_visible = (SO.data.FINISHED == 1);
}
on (press) {
_root.CURSOR_.gotoAndStop("arrow");
_root.FADER_.FadeTrans("JUKEBOX");
}
Frame 7
help = "";
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 7
on (press) {
_root.CURSOR_.gotoAndStop("arrow");
if (_root.startedGame) {
_root.ReturnToGame(-1);
} else {
_root.FADER_.FadeTrans("startmenu");
}
}
Instance of Symbol 4131 MovieClip "for_music" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.musicOn ? 2 : 1));
}
on (press) {
_root.OPTIONS.musicOn = !_root.OPTIONS.musicOn;
this.gotoAndStop((_root.OPTIONS.musicOn ? 2 : 1));
}
on (rollOver) {
_root.help = "This turns the beautiful music that Pseudolonewolf composed all by himself off if you can't stand it because it's not got enough electric guitars in it.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "for_sfx" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.sfxOn ? 2 : 1));
}
on (press) {
_root.OPTIONS.sfxOn = !_root.OPTIONS.sfxOn;
this.gotoAndStop((_root.OPTIONS.sfxOn ? 2 : 1));
}
on (rollOver) {
_root.help = "Turns on or off sound effects, like the hit sounds in battle.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "for_pfx" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.PFX ? 2 : 1));
}
on (press) {
_root.OPTIONS.PFX = !_root.OPTIONS.PFX;
this.gotoAndStop((_root.OPTIONS.PFX ? 2 : 1));
}
on (rollOver) {
_root.help = "This will basically disable all spell effects, making spells look like nothing. Disable it only if the particle effects from spells and abilities really lag your computer.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "for_autosave" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.autoSave ? 2 : 1));
}
on (press) {
_root.OPTIONS.autoSave = !_root.OPTIONS.autoSave;
this.gotoAndStop((_root.OPTIONS.autoSave ? 2 : 1));
}
on (rollOver) {
_root.help = "By default, the game saves a file in an 'autosave' slot every time you enter a new area, so then you'll lose less if the Flash file is closed without manually saving. You can disable this if you want to though.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "LOW" in Frame 7
onClipEvent (load) {
this.gotoAndStop(((_root.OPTIONS.btlQuality == _name) ? 2 : 1));
}
on (press) {
_root[_root.OPTIONS.btlQuality].gotoAndStop(1);
_root.OPTIONS.btlQuality = _name;
this.gotoAndStop(2);
}
on (rollOver) {
_root.help = "This changes the quality of the graphics in battles. You can also change the quality at any time during battle by pressing the Q key.\nIf battles run too slow on other quality settings, low quality will give you the best speed you're likely to get (though due to the game's complexity, it still may run slowly).";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "MEDIUM" in Frame 7
onClipEvent (load) {
this.gotoAndStop(((_root.OPTIONS.btlQuality == _name) ? 2 : 1));
}
on (press) {
_root[_root.OPTIONS.btlQuality].gotoAndStop(1);
_root.OPTIONS.btlQuality = _name;
this.gotoAndStop(2);
}
on (rollOver) {
_root.help = "This changes the quality of the graphics in battles. You can also change the quality at any time during battle by pressing the Q key.\nMedium quality is recommended, but seems to slow down a lot of older computers...";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "HIGH" in Frame 7
onClipEvent (load) {
this.gotoAndStop(((_root.OPTIONS.btlQuality == _name) ? 2 : 1));
}
on (press) {
_root[_root.OPTIONS.btlQuality].gotoAndStop(1);
_root.OPTIONS.btlQuality = _name;
this.gotoAndStop(2);
}
on (rollOver) {
_root.help = "This changes the quality of the graphics in battles. You can also change the quality at any time during battle by pressing the Q key.\nHigh Quality is rarely recommended unless you have a great computer.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "for_animtiles" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.animtiles ? 2 : 1));
}
on (press) {
_root.OPTIONS.animtiles = !_root.OPTIONS.animtiles;
this.gotoAndStop((_root.OPTIONS.animtiles ? 2 : 1));
}
on (rollOver) {
_root.help = "Animated tiles, such as water, can slow down the game somewhat. If you find walking around to cause extreme lag in watery areas, disable this.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "for_areaname" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.areaname ? 2 : 1));
}
on (press) {
_root.OPTIONS.areaname = !_root.OPTIONS.areaname;
this.gotoAndStop((_root.OPTIONS.areaname ? 2 : 1));
}
on (rollOver) {
_root.help = "When you enter a new area, a box comes up in the corner showing the area's name. This can cause slowdown sometimes; if it does, you might want to disable it.";
}
on (rollOut) {
_root.help = "";
}
Instance of Symbol 4131 MovieClip "LOW" in Frame 7
onClipEvent (load) {
this.gotoAndStop((_root.OPTIONS.lineless ? 1 : 2));
_root.gstyle = (_root.OPTIONS.lineless ? "Lineless" : "Detailed");
}
on (press) {
_root.OPTIONS.lineless = !_root.OPTIONS.lineless;
_root.gstyle = (_root.OPTIONS.lineless ? "Lineless" : "Detailed");
this.gotoAndStop((_root.OPTIONS.lineless ? 1 : 2));
}
on (rollOver) {
_root.help = "You can choose from two rather different graphical styles in battle. 'Detailed' graphics have full outlines on characters, whereas 'lineless' creates a nice graphical style with no outlines. Lineless mode should run faster, maybe, so if you find battles to be lagging badly, switch to that mode.";
}
on (rollOut) {
_root.help = "";
}
Frame 8
startedGame = true;
FPS = 32;
PCstats_1 = {name:"Mardek", model:"mardek", face:1, level:1, exp:0, hp:[120, 120], mp:[20, 20], STR:16, VIT:16, SPR:8, AGL:10, Class:"Knight", spells:[], weapon:"none", shield:"none", armour:"none", accessory:"none"};
PCstats_2 = null;
PCstats_3 = null;
_quality = "LOW";
P_party = new Array(20);
playtime = [0, 0, 0];
AddClock();
var ths = {foes_killed:0, total_atks:0, total_dmg_delivered:0, total_dmg_received:0, total_dmg_healed:0, items_used:0, items_acquired:0, items_dropped:0, area_transitions:0, conversations:0, reactions_atk:0, reactions_def:0};
plotVars = {CHAPTER:1, MAINPLOT:0, ITEMS:[], tFound:0, steps:0, MAPS_REVEALED:{}, EN_FULL:{People:{}, Places:{}, Artefacts:{}, Bestiary:{}}, THS:ths};
money = 0;
inventory = [];
quests = [];
defeatedBosses = [];
homepoint = [null, null, null];
Allies = {};
__PCname = "";
play();
Frame 9
delete PCstats_1;
PCstats_1 = {name:"Mardek", model:"mardek", face:1, eyes:"blue", level:3, exp:0, hp:[120, 70], mp:[20, 20], STR:17, VIT:16, SPR:8, AGL:10, Class:"Knight", spells:[], weapon:"Longsword", shield:"Wooden Shield", helmet:"Rusty Helm", armour:"Rusty Armour", accessory:"none", accessory2:"none", learned:{}, inventory:new Array(56), BASE:{STR:17, VIT:16, SPR:8, AGL:10}, element:"LIGHT", nDef:0, nMDef:0};
PCstats_2 = {name:"Fred", model:"soldier", face:1, eyes:"blue", level:1, exp:0, hp:[120, 120], mp:[20, 20], STR:13, VIT:14, SPR:10, AGL:12, Class:"Expendable Soldier", spells:[], weapon:"Pike", shield:"none", helmet:"none", armour:"Leather Armour", accessory:"none", accessory2:"none", learned:{}, inventory:new Array(56), BASE:{STR:13, VIT:14, SPR:10, AGL:12}, element:"EARTH", nDef:0, nMDef:0};
PCstats_3 = {name:"Ted", model:"soldier", face:1, eyes:"blue", level:1, exp:0, hp:[120, 120], mp:[20, 20], STR:15, VIT:14, SPR:10, AGL:9, Class:"Expendable Soldier", spells:[], weapon:"Pike", shield:"none", helmet:"none", armour:"Leather Armour", accessory:"none", accessory2:"none", learned:{}, inventory:new Array(56), BASE:{STR:15, VIT:14, SPR:10, AGL:9}, element:"EARTH", nDef:0, nMDef:0};
PCstats_4 = {name:"Lawrence", model:"soldier", face:1, eyes:"blue", level:1, exp:0, hp:[120, 120], mp:[20, 20], STR:15, VIT:14, SPR:10, AGL:9, Class:"Expendable Soldier", spells:[], weapon:"Pike", shield:"none", helmet:"none", armour:"Leather Armour", accessory:"none", accessory2:"none", learned:{}, inventory:new Array(56), BASE:{STR:14, VIT:14, SPR:11, AGL:10}, element:"EARTH", nDef:0, nMDef:0};
var p = 1;
while (p <= 4) {
calculateStats(_root["PCstats_" + p]);
RestoreHPMP(_root["PCstats_" + p]);
p++;
}
PC_NAME = "" + PCstats_1.name;
PCstats_1.inventory.push({item:"Potion", amount:10});
quests.push({ID:"HEROES", done:false});
Frame 10
PCstats_1 = CreatePCstats("mardek_hero", {level:50, exp:0, hp:[9, 9], mp:[9, 9], weapon:"M Blade", shield:"Hero's Shield", helmet:"none", armour:"Hero's Armour", accessory:"Dragon Amulet", accessory2:"none", learned:{}, reactions:{atk:{R65:"DMG+50%", R83:"Stunstrike", R68:null}, def:{R65:"Nullify Physical", R83:"Nullify Magic", R68:null}}, inventory:new Array(56)});
PCstats_2 = CreatePCstats("deugan_hero", {level:50, exp:0, hp:[120, 120], mp:[20, 20], weapon:"Balmung", shield:"none", helmet:"none", armour:"Hero's Coat", accessory:"Dragon Amulet", accessory2:"none", learned:{}, reactions:{atk:{R65:"DMG+50%", R83:"Snakebite", R68:null}, def:{R65:"Nullify Physical", R83:"Nullify Magic", R68:null}}, inventory:new Array(56)});
PCstats_3.model = null;
PCstats_4.model = null;
var p = 1;
while (p <= 4) {
calculateStats(_root["PCstats_" + p]);
RestoreHPMP(_root["PCstats_" + p]);
p++;
}
PC_NAME = "" + PCstats_1.name;
PCstats_1.learned.Shock = 20;
PCstats_1.learned["Smite Evil"] = 12;
PCstats_1.learned.Recover = 20;
PCstats_1.learned.Stunstrike = 30;
PCstats_1.learned["DMG+50%"] = 10;
PCstats_2.learned.Shock = 20;
PCstats_2.learned.Pyromagia = 20;
PCstats_2.learned.Frostasia = 20;
PCstats_2.learned.Sunder = 19;
PCstats_2.learned.Recover = 20;
PCstats_2.learned.Snakebite = 30;
PCstats_2.learned["DMG+50%"] = 10;
plotVars.NO_BATTLE_MUSIC = true;
quests = [{ID:"HEROES", done:false}];
plotVars.visited = {goznor:1, heroes_den:1};
gotoAndPlay ("CUT0");
Frame 11
nextFrame();
Frame 12
function IsValidTile(tile) {
var _local1 = 0;
while (_local1 < tiletypes[tileset].valid.length) {
if (tiletypes[tileset].valid[_local1] == tile) {
return(true);
}
_local1++;
}
return(false);
}
function IsTileType(tile, type) {
var _local1 = 0;
while (_local1 < tiletypes[tileset][type].length) {
if (tiletypes[tileset][type][_local1] == tile) {
return(true);
}
_local1++;
}
return(false);
}
function AreaSetup() {
mapheight = map.length;
mapwidth = map[0].length;
if (_root.plotVars.MAPS_REVEALED == null) {
_root.plotVars.MAPS_REVEALED = {};
}
if (_root.plotVars.MAPS_REVEALED[area] == null) {
if (clearmap) {
_root.plotVars.MAPS_REVEALED[area] = "FULL";
} else {
_root.plotVars.MAPS_REVEALED[area] = [0, 0, 0];
var _local3 = 0;
while (_local3 < map.length) {
_root.plotVars.MAPS_REVEALED[area][_local3] = [0, 0, 0];
var _local2 = 0;
while (_local2 < map[_local3].length) {
_root.plotVars.MAPS_REVEALED[area][_local3][_local2] = (clearmap ? 1 : 0);
_local2++;
}
_local3++;
}
}
}
clearmap = false;
if (cont == undefined) {
_root.attachMovie("empty", "cont", 1);
}
areaID = _root._currentframe;
if (mapEditing) {
Emap = map;
_root.gotoAndStop("editor");
mapLoaded = false;
NowBehold = true;
return(undefined);
}
playMusic(musicTrack);
music.setVolume(100);
if ((!mapLoaded) || (ResetEverything)) {
mapLoaded = true;
drawMap();
cont.sky = new Color(cont);
cont.sky.setTransform(((ambience != null) ? (ambience) : ({ra:100, ab:0, ga:100, gb:0, ba:100, rb:0, aa:100, ab:0})));
CURRENT_AMBIENCE = ambience;
ambience = null;
valid = tiletypes[tileset].valid;
_root.cont.attachMovie("empty", "atc", 570240296);
_root.cont.atc.onEnterFrame = function () {
_root.animtile++;
};
animtile = 1;
_root.maxAT = 100;
deeptile = tiletypes[tileset].deep;
sprites = undefined;
sprites = A_sprites;
DrawParty(true);
i = 0;
while (i < map.length) {
_root["d" + i] = 0;
i++;
}
i = 0;
while (i < A_sprites.length) {
addSprite(A_sprites[i]);
i++;
}
addTreasure();
if (_root.OPTIONS.autoSave == true) {
_root.cont.PC.brain.StoreLocation();
_root.SaveGame(0);
}
specBtlBG = null;
if ((!no_signpost) && (_root.OPTIONS.areaname)) {
_root.tehMenu._visible = true;
_root.tehMenu.signpost_delay = 50;
_root.tehMenu._alpha = 0;
_root.tehMenu.gotoAndStop(2);
_root.tehMenu.areaname = areaname;
_root.tehMenu.keyD = true;
}
no_signpost = false;
ResetEverything = false;
stop();
}
}
function DrawParty(New, x, y) {
if (New) {
if (New === 2) {
_root.cont.PC.brain.Hdelay = 0;
_root.cont.PC.brain.lastMoves = [[3, 3], [3, 3], [3, 3], [3, 3]];
} else {
_root.cont.PC.removeMovieClip();
var _local3 = ((1000 * (((y == undefined) ? (spawnLoc[1]) : (y / tilesize)) + 50)) + ((x == undefined) ? (spawnLoc[0]) : (x / tilesize))) + 500;
while (_root.cont.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
_root.cont.attachMovie("_PC", "PC", _local3);
}
var _local2 = 1;
while (_local2 <= 4) {
_root.cont["PC" + _local2].removeMovieClip();
_local2++;
}
}
if (New) {
_root.cont.PC.model.removeMovieClip();
_root.cont.PC.attachMovie("s_" + PCstats_1.model, "model", 100);
_root.cont.PC._width = tilesize + 0;
_root.cont.PC._height = tilesize + 0;
_root.cont.PC.model._y = _root.cont.PC.model._y - 4.2;
_root.cont.PC.model.stats = _root.PCstats_1;
_root.cont.PC.model.gotoAndStop(lastDir + "1");
_root.cont.PC._x = ((x == undefined) ? (spawnLoc[0] * tilesize) : (x));
_root.cont.PC._y = ((y == undefined) ? (spawnLoc[1] * tilesize) : (y));
}
_root.PCloc = [_root.cont.PC._x, _root.cont.PC._y, _root.area];
if (_root.areaname == "WORLDMAP") {
return(undefined);
}
var _local2 = 2;
while (_local2 <= 4) {
if (_root["PCstats_" + _local2].model != null) {
if (New || (_root.cont["PC_" + _local2] == undefined)) {
_root.cont["PC_" + _local2].removeMovieClip();
var _local3 = (((1000 * (((y == undefined) ? (spawnLoc[1]) : (y / tilesize)) + 50)) + ((x == undefined) ? (spawnLoc[0]) : (x / tilesize))) + 370) + (_local2 * 10);
while (_root.cont.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
_root.cont.attachMovie("empty", "PC_" + _local2, _local3);
_root.cont["PC_" + _local2].attachMovie("deepTerrain", "deep", 1000);
_root.cont["PC_" + _local2].attachMovie("walkGlyph", "glyph", 10);
_root.cont["PC_" + _local2]._x = _root.cont.PC._x;
_root.cont["PC_" + _local2]._y = _root.cont.PC._y;
_root.cont["PC_" + _local2].attachMovie("s_" + _root["PCstats_" + _local2].model, "model", 100);
_root.cont["PC_" + _local2]._width = (_root.cont["PC_" + _local2]._height = tilesize);
_root.cont["PC_" + _local2].model._y = _root.cont["PC_" + _local2].model._y - 4.2;
_root.cont["PC_" + _local2].model.stats = _root["PCstats_" + _local2];
_root.cont["PC_" + _local2].model.gotoAndStop("s1");
_root.cont["PC_" + _local2]._depth = _root.cont["PC_" + _local2].getDepth();
}
} else if (_root.cont["PC_" + _local2] != undefined) {
_root.cont["PC_" + _local2].model.removeMovieClip();
}
_local2++;
}
}
function CreateMenu() {
_root.attachMovie("MENU", "tehMenu", 24500);
_root.tehMenu._visible = false;
_root.tehMenu._alpha = 0;
_root.tehMenu._x = 270;
_root.tehMenu._y = 6;
_root.tehMenu.onEnterFrame = function () {
if ((this._visible && (Key.isDown(13))) && (!_root.enterD)) {
this._visible = false;
_root.enterD = true;
} else if (_root.enterD && (!Key.isDown(13))) {
_root.enterD = false;
}
};
_root.attachMovie("gotitem_box", "gotitem_box", 24501);
gotitem_box._x = 30;
gotitem_box._y = 45;
}
function openTreasure() {
if ((!_root.cont._visible) || (_root.battle_trans._visible)) {
return(undefined);
}
if ((Key.isDown(88) && (!this.l00ted)) && (!_root.conv._visible)) {
if (nearPC(this)) {
_root.test = "openTreasure called";
_root.playSFX("Open1");
loot = this.props;
if (loot.type == "gold") {
_root.gotitem_box.ShowItem("gold", loot.amount, "GOLD");
_root.money = _root.money + Number(loot.amount);
_root.plotVars.tFound++;
} else {
item = loot.item;
var _local3 = (item.title ? (item.title) : ((item.name ? (item.name) : (item))));
if (pickupItem(item, loot.amount) == true) {
_root.gotitem_box.ShowItem(item, loot.amount);
_root.plotVars.tFound++;
} else {
_root.playSFX("error");
_root.gotitem_box.ShowItem(_local3, 1, "I_FULL");
return(undefined);
}
}
this.l00ted = true;
this.gotoAndStop("treasure2");
_root.looted.push(this.ID);
}
}
}
function addTreasure() {
i = 0;
while (i < areaLoot.length) {
var _local2 = ((1000 * (areaLoot[i].y + 50)) + areaLoot[i].x) + 250;
while (_root.cont.getInstanceAtDepth(_local2) != undefined) {
_local2++;
}
_root.cont.attachMovie(_root.tileset, "t" + i, _local2);
_root.cont["t" + i]._width = (_root.cont["t" + i]._height = _root.tilesize);
_root.cont["t" + i].gotoAndStop("treasure1");
_root.cont["t" + i]._x = areaLoot[i].x * tilesize;
_root.cont["t" + i]._y = areaLoot[i].y * tilesize;
_root.cont["t" + i].ID = (area + "_t") + i;
_root.cont["t" + i].props = areaLoot[i];
_root.cont["t" + i].TREASURE = true;
_root.cont["t" + i].attachMovie("deepTerrain", "deep", 1000);
_root.cont["t" + i].deep._y = 4;
if (!_root.DUNGEONMODE) {
l = 0;
while (l < looted.length) {
if (looted[l] == ((area + "_t") + i)) {
_root.cont["t" + i].gotoAndStop("treasure2");
_root.cont["t" + i].l00ted = true;
break;
}
l++;
}
}
_root.cont["t" + i].onEnterFrame = openTreasure;
i++;
}
}
function FieldPFX(coords, pfx) {
f_pfx_d++;
var _local3 = "PFX" + f_pfx_d;
_root.cont.attachMovie("fieldPFX", _local3, f_pfx_d);
_root.cont[_local3]._x = coords[0] * tilesize;
_root.cont[_local3]._y = coords[1] * tilesize;
_root.cont[_local3].gotoAndStop(pfx);
_root.cont[_local3].count = 0;
_root.cont[_local3].onEnterFrame = function () {
this.count++;
if (this.count > 100) {
this.removeMovieClip();
}
};
}
function ReturnToGame(extra) {
if (!_root.OPTIONS.musicOn) {
_root.music.stop();
}
_root.FADER_.FadeTrans(_root.PCloc[2], ((extra != null) ? (extra) : -1));
_root.battling = false;
_root.trainerBattle = false;
enterD = false;
var _local2 = _root.cont.PC.model._currentframe;
DrawParty(false);
_root.cont.PC.model.gotoAndStop(_local2);
}
function WarpTrans() {
if (warping) {
return(undefined);
}
_root.attachMovie("warpFX_", "warpFX", 13124);
warpFX._x = Stage.width / 2;
warpFX._y = Stage.height / 2;
warping = true;
}
function TurnToFace(spriteA, spriteB) {
var _local3 = [_root.cont[spriteA]._x, _root.cont[spriteA]._y];
var _local2 = [_root.cont[spriteB]._x, _root.cont[spriteB]._y];
if (!((_local3[0] == _local2[0]) && (_local3[1] == _local2[1]))) {
_root.cont[spriteA].model.gotoAndStop(((_local3[0] > _local2[0]) ? "w" : (((_local3[0] < _local2[0]) ? "e" : (((_local3[1] < _local2[1]) ? "s" : "n"))) + "1")));
}
}
function Interjection(person, id, conv) {
if (_root.teleportingIN) {
return(undefined);
}
if (_root.plotVars[(person + "_itj_") + id] == true) {
return(undefined);
}
var _local4 = 0;
var _local2 = 1;
while (_local2 <= 3) {
if (_root["PCstats_" + _local2].name == person) {
_local4 = _local2;
}
_local2++;
}
if (_local4 == 0) {
return(undefined);
}
_root.plotVars[(person + "_itj_") + id] = true;
_root.speak(conv, person, [_root["PCstats_" + _local4].model]);
if (person == PCstats_2.name) {
TurnToFace("PC", "PC_2");
TurnToFace("PC_2", "PC");
} else if (person == PCstats_3.name) {
TurnToFace("PC", "PC_3");
TurnToFace("PC_3", "PC");
}
}
_root.attachMovie("empty", "cont", 1);
tilesize = 30;
screenwidth = 450;
screenheight = 330;
scrnXtiles = screenwidth / tilesize;
scrnYtiles = screenheight / tilesize;
steps = 0;
spawnLoc = (startLoc = [7, 5]);
tiletypes = {t_cave:{valid:[0, 12, 15, 17, 20, 21], obj:[11], wall:[1, 12, 15, 16, 51, 52], pit:[23, 24, 27, 28, 29, 30, 31, 32, 33, 34], lava:[18, 19, 43, 44, 45, 46, 47, 48, 49, 50], water:[13, 14, 35, 36, 37, 38, 39, 40, 41, 42]}, t_cave2:{valid:[0, 12, 15, 17, 18, 19, 20, 25], obj:[11, 22, 23, 24, 31], wall:[1, 12, 15, 16, 20, 21, 27, 28, 29, 30, 40], water:[13, 14, 32, 33, 34, 35, 36, 37, 38, 39]}, t_cave3:{valid:[0, 15, 16, 35, 39, 42, 43, 44, 45], deep:42, obj:[17, 31, 40, 41], wall:[1, 15, 16, 18, 32, 33, 34, 35, 36, 37, 38], lava:[19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]}, t_catacombs:{valid:[0, 4, 5, 11], wall:[1, 3, 5, 6], obj:[10]}, t_darkwood:{valid:[0, 6, 9, 10, 21, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], deep:9, obj:[1, 5, 23, 24, 43, 44], wall:[2, 10, 19, 20, 21, 26, 27, 28, 29, 30], water:[7, 8, 11, 12, 13, 14, 15, 16, 17, 18]}, t_dragonlair:{valid:[0, 8], obj:[7], wall:[1, 2, 4, 5, 6]}, t_dungeon1:{valid:[0, 3, 4, 12], obj:[5, 6, 13], wall:[1, 3, 4, 7], water:[8, 9]}, t_dungeon2:{valid:[0, 3, 4, 12], obj:[5, 6, 13], wall:[1, 3, 4, 7], water:[8, 9]}, t_etherworld:{valid:[0, 3, 4, 16, 17], wall:[1, 3, 4], water:[14, 15]}, t_interior1:{valid:[0, 2, 4, 6, 9, 15, 16, 17], obj:[8, 18], wall:[1, 2, 4, 5, 6, 7, 10, 11, 13]}, t_interior2:{valid:[0, 4, 10, 12], obj:[7, 8, 14], wall:[2, 3, 4, 5, 6, 9, 10, 11, 12, 13, 15]}, t_interior3:{valid:[0, 3, 4, 6, 9, 15, 16], obj:[8, 17, 18, 20], wall:[1, 7, 10, 11, 13, 19]}, t_interior4:{valid:[0, 3, 4, 5, 6], obj:[7], wall:[1, 8, 10, 11, 12]}, t_icepath:{valid:[0, 3, 7]}, t_marauder:{valid:[0, 4, 6]}, t_marsh:{valid:[0, 20, 21], wall:[20, 21], water:[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]}, t_monastery:{valid:[0, 5, 7, 9], obj:[6], wall:[1, 2, 3, 5, 7, 8]}, t_ruin1:{valid:[0, 3, 4, 12], obj:[5, 6, 13], wall:[1, 3, 4, 7], lava:[8, 9], water:[10, 11]}, t_rural:{valid:[0, 5, 9, 10, 11, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 70, 99, 102], deep:5, obj:[17, 41], wall:[1, 2, 8, 9, 10, 11, 12, 13, 14, 28, 29, 30, 31, 34, 35, 36, 37, 38, 39, 40, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 103, 104], water:[6, 7, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]}, t_saucer:{valid:[0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], wall:[1, 3], object:[15, 16]}, t_sewer:{valid:[0, 3, 10, 11], wall:[1, 3, 4, 5, 6, 7, 10, 11, 12], water:[8, 9]}, t_starship:{valid:[0, 3, 9, 12, 13, 14, 15, 21, 22], obj:[13], pit:[7, 8], wall:[1, 4, 5, 6, 9, 10, 11, 12, 16, 17, 18, 19, 20, 24, 25]}, t_tropical:{valid:[0, 5, 6, 7, 9], deep:5, wall:[1, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], water:[3, 4, 33, 34, 35, 36, 37, 38]}, t_temple:{valid:[0, 5, 6, 7, 16, 17, 32, 33, 34, 35, 42, 50], obj:[19], wall:[1, 2, 3, 7, 8, 11, 12, 15, 18, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 36, 37, 38, 39], water:[13, 14, 40, 41, 44, 45], lava:[9, 10], pit:[51, 52]}, t_templeE:{valid:[0, 6, 7, 13], obj:[15], wall:[1, 2, 3, 4, 7, 12, 14], water:[10, 11], lava:[8, 9]}, wm_earthlike:{valid:[0, 19, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53], forest:[20, 21, 22, 23, 24, 25, 26, 27, 28]}};
if (mapEditing) {
_root.gotoAndStop(mapToLoad);
return(undefined);
}
CreateMenu();
if (looted == undefined) {
looted = [];
}
f_pfx_d = 7500001 /* 0x7270E1 */;
warping = false;
if (goingToSaveScreen) {
goingToSaveScreen = false;
gotoAndStop ("LOADGAME");
return(undefined);
}
if (goingToSaveScreenB) {
goingToSaveScreenB = false;
gotoAndStop ("ServerLoad1");
return(undefined);
}
quests = [];
_root.mapLoaded = false;
_root.nextArea = "DL_entr";
_root.fadeTrans.ctrl.active = true;
_root.spawnLoc = [5, 10];
_root.startedGame = true;
stop();
Frame 13
map = [[3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3], [3, 4, 4, 4, 6, 1, 6, 4, 4, 4, 3], [2, 5, 5, 5, 0, 0, 0, 5, 5, 5, 2], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3], [3, 3, 0, 0, 0, 0, 0, 0, 0, 3, 3], [3, 3, 3, 0, 0, 0, 0, 0, 3, 3, 3], [3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3]];
tileset = "t_dragonlair";
area = "DL_entr";
areaname = "Dragon's Lair";
A_sprites = [{name:"INTERJECTION", model:"_trigger", x:5, y:5, ExecuteScript:function () {
_root.Interjection("Deugan", "intro1", "c_HeroBabble");
}}, {name:"Entrance", model:"DOOR_DL", x:5, y:11, dest:["nowhere", 1, 1], lock:"yes"}, {name:"Exit", model:"DOOR_DL", x:5, y:1, dest:["DL_area2", 7, 39]}, {name:"WALK_TRIGGER", model:"_trigger", x:5, y:10, ExecuteScript:function () {
if (_root.plotVars.walkedIntoDL == null) {
_root.plotVars.walkedIntoDL = 1;
DO_ACTIONS([["WALK", 0, -5], ["UNFREEZE"]], "PC", true);
}
}}];
areaLoot = [];
foes = [["monster", null, null, null, "SOLO"], ["monster", "monster", null, null, "DUO"], ["monster", "monster", "monster", null, "TRIO"]];
btlChance = 0;
minSteps = 5;
levelrange = [30, 36];
musicTrack = "MightyHeroes";
clearmap = 1;
AreaSetup();
Frame 14
map = [[3, 3, 3, 3, 3, 4, 2, 2, 2, 4, 3, 3, 3, 3, 3], [3, 3, 2, 4, 2, 5, 6, 1, 6, 5, 2, 4, 2, 3, 3], [3, 2, 1, 5, 6, 0, 0, 0, 0, 0, 6, 5, 1, 2, 3], [3, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 3], [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3], [3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3], [2, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 2], [6, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 6], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3], [3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3], [4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4], [5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3], [3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3], [2, 4, 2, 5, 0, 0, 0, 0, 0, 0, 0, 5, 2, 4, 2], [1, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 5, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3], [3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 0, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 0, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 0, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3]];
tileset = "t_dragonlair";
area = "DL_area2";
areaname = "Dragon's Lair";
A_sprites = [{name:"INTERJECTION", model:"_trigger", x:7, y:38, ExecuteScript:function () {
_root.Interjection("Deugan", "intro_tut", "c_HeroBabble");
}}, {name:"N", model:"DOOR_DL", x:7, y:1, dest:["DL_area3", 15, 34]}, {name:"S", model:"DOOR_DL", x:7, y:40, dest:["DL_entr", 5, 2]}];
areaLoot = [];
foes = [["monster", null, null, null, "SOLO"], ["monster", "monster", null, null, "DUO"], ["monster", "monster", "monster", null, "TRIO"]];
btlChance = 9;
minSteps = 5;
levelrange = [30, 36];
musicTrack = "MightyHeroes";
clearmap = 1;
AreaSetup();
Frame 15
map = [[3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 4, 2, 2, 2, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [2, 4, 2, 4, 2, 4, 2, 2, 3, 3, 3, 2, 6, 5, 1, 1, 1, 5, 6, 2, 3, 3, 3, 2, 2, 4, 2, 4, 2, 4, 2], [1, 5, 1, 5, 6, 5, 1, 1, 2, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 1, 2, 4, 2, 1, 1, 5, 6, 5, 1, 5, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [7, 0, 0, 0, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 0, 0, 0, 7], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 4, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 5, 6, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, 5, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 7, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 2, 4, 4, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0], [7, 0, 0, 0, 7, 3, 3, 3, 3, 3, 2, 4, 2, 6, 5, 5, 5, 6, 2, 4, 2, 3, 3, 3, 3, 3, 7, 0, 0, 0, 7], [0, 0, 0, 0, 0, 2, 4, 2, 4, 2, 1, 5, 1, 0, 0, 0, 0, 0, 1, 5, 1, 2, 4, 2, 4, 2, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 5, 6, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 5, 6, 5, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]];
tileset = "t_dragonlair";
area = "DL_area3";
areaname = "Dragon's Lair";
A_sprites = [{name:"N", model:"DOOR_DL", x:15, y:1, dest:["DL_area4", 6, 39]}, {name:"S", model:"DOOR_DL", x:15, y:35, dest:["DL_area2", 7, 2]}];
areaLoot = [];
foes = [["monster", null, null, null, "SOLO"], ["monster", "monster", null, null, "DUO"], ["monster", "monster", "monster", null, "TRIO"]];
btlChance = 7;
minSteps = 5;
levelrange = [30, 36];
musicTrack = "MightyHeroes";
clearmap = 1;
AreaSetup();
Frame 16
map = [[3, 3, 3, 3, 3, 4, 4, 4, 3, 3, 3, 3, 3], [3, 3, 3, 4, 4, 5, 5, 5, 4, 4, 3, 3, 3], [3, 3, 4, 5, 5, 0, 0, 0, 5, 5, 4, 3, 3], [3, 4, 5, 0, 7, 0, 0, 0, 7, 0, 5, 4, 3], [3, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3], [2, 0, 7, 0, 0, 0, 0, 0, 0, 0, 7, 0, 2], [6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6], [0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3], [3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3], [3, 3, 3, 3, 0, 0, 0, 0, 0, 3, 3, 3, 3], [3, 3, 3, 3, 3, 0, 0, 0, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 8, 3, 3, 3, 3, 3, 3]];
tileset = "t_dragonlair";
area = "DL_area4";
areaname = "Dragon's Lair";
A_sprites = [{name:"INTERJECTION", model:"_trigger", x:6, y:8, ExecuteScript:function () {
_root.Interjection("Mardek", "intro2", "c_HeroBabble");
}}, {name:"INTERJECTION2", model:"_trigger", x:6, y:8, ExecuteScript:function () {
if (((_root.SLAYED_THE_DRAGON == null) || (_root.battle_trans._visible)) || (_root.battling)) {
return(undefined);
}
_root.Interjection("Mardek", "intro3", "c_HeroBabble");
}}, {name:"The Dragon", model:"s_dragon", x:6, y:7, walkspeed:-1, dir:"mighty", elem:"DARK", conv:[["", "You shouldn't be able to talk to me! REPORT THIS BUG PLEASE!"]]}, {name:"Princess", model:"s_princess", x:6, y:3, walkspeed:-1, dir:"s", elem:"LIGHT", conv:[["", "You shouldn't be able to talk to me! REPORT THIS BUG PLEASE!"]]}, {name:"S", model:"DOOR_DL", x:6, y:40, dest:["DL_area3", 15, 2]}, {name:"WALK_TRIGGER", model:"_trigger", x:6, y:12, ExecuteScript:function () {
if (_root.plotVars.walkedIntoDL2 == null) {
_root.plotVars.walkedIntoDL2 = 1;
DO_ACTIONS([["WALK", 0, -4], ["UNFREEZE"]], "PC", true);
}
}}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [30, 36];
musicTrack = (SLAYED_THE_DRAGON ? "VictoryFanfare" : "MightyHeroes");
clearmap = 1;
AreaSetup();
Frame 18
map = [[3, 2, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3], [3, 5, 3, 3, 3, 3, 3, 2, 2, 5, 5, 5, 3, 106, 106, 106, 3, 3], [3, 5, 3, 3, 3, 3, 2, 0, 0, 0, 0, 5, 2, 105, 105, 105, 3, 3], [3, 5, 3, 3, 3, 2, 0, 0, 0, 0, 0, 0, 0, 103, 103, 104, 3, 3], [3, 5, 2, 3, 3, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3], [3, 5, 5, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 3], [3, 4, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 3], [3, 3, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 3], [3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 3], [3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 4, 4, 3], [3, 3, 3, 3, 4, 4, 5, 0, 0, 0, 0, 0, 0, 4, 4, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 5, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]];
tileset = "t_rural";
area = "heroes_den";
areaname = "Heroes' Den";
if ((!plotVars.startedProperly) || (plotVars.ROHOPH != null)) {
ambience = {ra:100, rb:0, ga:80, gb:0, ba:70, bb:0, aa:100, ab:0};
}
var DEUGAN_STATS = CreatePCstats("deugan_child", {level:1, exp:0, hp:[120, 120], mp:[20, 20], weapon:"Big Stick", shield:"none", helmet:"none", armour:"Tunic", accessory:"none", accessory2:"none", learned:{}, reactions:{atk:{R65:null, R83:null, R68:null}, def:{R65:null, R83:null, R68:null}}, inventory:new Array(56)});
A_sprites = [{name:"House", model:"DOOR1", x:14, y:3, dest:["heroes_house", 2, 5]}, {name:"S", model:"area_transition", x:6, y:14, dest:["WORLDMAP", 1, 1]}, {name:"TALK_TRIGGER", model:"_trigger", x:10, y:6, ExecuteScript:function () {
if (_root.plotVars.walkedIntoDL3 == null) {
_root.cont.Deugan.brain.doOnTalk("n");
}
}}];
if (_root.plotVars.walkedIntoDL3 == null) {
A_sprites.push({name:"Deugan", model:"s_deugan_child", x:10, y:7, walkspeed:-1, dir:"n", elem:"EARTH", conv:"c_HeroBabble", PC_STATS:DEUGAN_STATS});
}
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = ((plotVars.startedProperly && (plotVars.ROHOPH == null)) ? "WorldMap" : "crickets");
clearmap = 1;
AreaSetup();
EN_ADD("People", "Mardek");
EN_ADD("People", "Deugan");
EN_ADD("Places", "Heroes' Den");
Frame 19
map = [[1, 1, 1, 20, 7], [8, 0, 0, 0, 0], [0, 0, 17, 18, 16], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 8]];
tileset = "t_interior1";
area = "heroes_house";
areaname = "Heroes' Den - Abandoned House";
ambience = {ra:66, rb:0, ga:70, gb:0, ba:63, bb:0, aa:100, ab:0};
A_sprites = [{name:"EXIT", model:"DOOR1", x:2, y:6, dest:["heroes_den", 14, 4]}];
areaLoot = [{x:0, y:2, type:"item", amount:3, item:"Potion"}];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "none";
clearmap = 1;
AreaSetup();
Frame 21
map = [[3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 2, 5, 5, 5, 5, 5, 5, 5, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 102, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 2, 2, 16, 16, 16, 16, 3, 3], [3, 5, 5, 16, 16, 16, 16, 16, 5, 5, 2, 2, 2, 2, 2, 22, 19, 19, 23, 2, 2, 22, 19, 19, 23, 4, 4, 5, 5, 5, 5, 5, 5, 5, 15, 15, 15, 15, 3, 3], [3, 5, 17, 15, 15, 15, 15, 15, 5, 5, 22, 19, 19, 19, 19, 6, 6, 6, 6, 19, 19, 6, 6, 6, 24, 3, 3, 4, 4, 4, 5, 5, 5, 5, 13, 14, 13, 12, 3, 3], [3, 5, 5, 15, 15, 15, 15, 15, 0, 5, 18, 6, 6, 21, 21, 21, 21, 21, 6, 6, 6, 6, 6, 20, 4, 3, 3, 3, 3, 3, 4, 5, 5, 5, 70, 0, 70, 5, 2, 3], [3, 5, 5, 15, 15, 15, 15, 15, 0, 0, 18, 6, 6, 4, 4, 4, 4, 4, 25, 21, 21, 21, 6, 20, 3, 3, 3, 3, 3, 3, 3, 5, 5, 0, 0, 0, 0, 5, 5, 3], [3, 5, 5, 13, 12, 14, 12, 13, 0, 0, 18, 6, 24, 3, 3, 3, 3, 3, 4, 4, 4, 4, 25, 20, 3, 3, 3, 3, 3, 3, 3, 40, 40, 40, 0, 40, 40, 40, 40, 3], [3, 5, 0, 0, 0, 42, 0, 0, 0, 0, 25, 24, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 25, 23, 3, 3, 3, 3, 3, 3, 5, 5, 0, 0, 0, 0, 5, 5, 3], [3, 4, 0, 0, 0, 42, 0, 0, 0, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 26, 3, 3, 3, 3, 3, 16, 16, 16, 0, 0, 0, 16, 16, 16, 3], [3, 3, 4, 4, 0, 42, 0, 0, 4, 3, 3, 3, 3, 3, 3, 3, 65, 66, 67, 68, 69, 3, 3, 3, 25, 23, 3, 3, 3, 3, 15, 71, 15, 0, 0, 0, 15, 72, 15, 3], [3, 3, 3, 3, 0, 42, 0, 4, 3, 3, 3, 3, 3, 3, 3, 3, 65, 66, 67, 68, 69, 3, 3, 3, 4, 26, 3, 3, 3, 3, 13, 14, 12, 0, 0, 0, 12, 14, 13, 3], [3, 3, 3, 3, 0, 42, 4, 3, 3, 3, 3, 3, 3, 3, 3, 2, 60, 61, 62, 63, 64, 2, 3, 3, 3, 26, 3, 3, 3, 3, 5, 47, 43, 43, 51, 43, 43, 46, 5, 3], [3, 3, 3, 3, 5, 42, 3, 16, 16, 16, 16, 3, 3, 2, 2, 5, 56, 55, 52, 55, 57, 5, 2, 2, 3, 26, 3, 16, 16, 16, 16, 0, 0, 0, 42, 0, 0, 0, 70, 3], [3, 16, 16, 16, 5, 42, 2, 15, 15, 15, 15, 2, 2, 17, 5, 5, 58, 54, 53, 54, 59, 5, 5, 5, 2, 26, 2, 15, 15, 73, 15, 40, 40, 0, 42, 16, 16, 16, 16, 3], [3, 15, 76, 15, 5, 42, 5, 12, 14, 13, 12, 5, 5, 5, 5, 0, 70, 0, 0, 0, 70, 0, 5, 5, 5, 26, 5, 12, 13, 14, 12, 17, 0, 0, 42, 15, 75, 15, 15, 3], [3, 12, 14, 13, 5, 42, 70, 70, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 42, 0, 0, 0, 0, 42, 13, 14, 13, 12, 3], [3, 5, 42, 5, 5, 50, 43, 43, 49, 43, 43, 43, 43, 43, 43, 43, 43, 43, 51, 43, 43, 43, 43, 43, 43, 10, 43, 43, 43, 49, 43, 43, 51, 43, 49, 43, 46, 5, 4, 3], [3, 5, 50, 43, 43, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 5, 5, 3, 3], [3, 22, 11, 23, 16, 16, 16, 0, 16, 16, 16, 4, 4, 4, 4, 4, 40, 0, 42, 0, 40, 4, 4, 4, 4, 26, 4, 4, 4, 0, 0, 0, 42, 0, 16, 16, 16, 16, 3, 3], [3, 18, 11, 20, 15, 15, 15, 40, 15, 15, 15, 3, 3, 3, 3, 3, 0, 0, 42, 0, 0, 3, 3, 3, 3, 26, 3, 3, 3, 0, 0, 0, 42, 0, 15, 74, 15, 15, 3, 3], [3, 25, 11, 24, 13, 14, 12, 5, 13, 14, 12, 3, 3, 3, 3, 3, 0, 0, 42, 0, 0, 3, 3, 3, 3, 26, 3, 3, 3, 4, 40, 40, 42, 40, 12, 14, 12, 13, 3, 3], [3, 0, 42, 0, 0, 42, 70, 70, 70, 42, 5, 3, 3, 3, 3, 3, 4, 0, 42, 0, 4, 3, 3, 3, 3, 26, 3, 3, 3, 3, 17, 0, 42, 0, 70, 42, 5, 5, 3, 3], [3, 5, 47, 43, 43, 49, 43, 43, 43, 46, 0, 3, 3, 3, 3, 3, 3, 4, 42, 4, 3, 3, 3, 3, 3, 26, 3, 3, 3, 3, 4, 0, 47, 43, 43, 46, 70, 5, 3, 3], [3, 5, 5, 5, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3, 3, 3, 3, 3, 42, 3, 3, 3, 3, 3, 3, 26, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 5, 4, 3, 3], [3, 4, 4, 5, 5, 5, 5, 5, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 42, 3, 3, 3, 3, 3, 3, 26, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 3, 3, 3], [3, 3, 3, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 42, 3, 3, 3, 3, 3, 3, 26, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 3, 3, 3]];
tileset = "t_rural";
area = "goznor";
areaname = "Goznor";
if ((!plotVars.startedProperly) || (_root.plotVars.ROHOPH != null)) {
ambience = {ra:100, rb:0, ga:80, gb:0, ba:70, bb:0, aa:100, ab:0};
A_sprites = [{name:"INTERJECTION", model:"_trigger", x:5, y:21, ExecuteScript:function () {
_root.Interjection("Deugan", ((_root.plotVars.ROHOPH != null) ? "dleaves2" : "intro_dleaves"), "c_HeroBabble");
}}, {name:"Bernardo", model:"s_soldier", x:4, y:7, walkspeed:-1, dir:"s", elem:"FIRE", conv:[["norm", "Oy, it's like a lickle boy or summat. Shouldn' you be goin' 'ome, sonny?"]]}, {name:"Marcellus", model:"s_soldier", x:6, y:7, walkspeed:-1, dir:"s", elem:"EARTH", conv:[["blah", "Everyone else is in bed (yes, before the sun's even set, I know!), and here WE are on the 'night shift', protecting these barracks from monsters, supposedly."], ["blah", "Pfft. This place has been here for years though, and in all my time here it's only been 'attacked' once, and that was by a drunken snapper that passed out after knocking on the door once anyway!"]]}, {name:"George", model:"s_common", x:34, y:6, walkspeed:-1, dir:"s", elem:"EARTH", conv:((_root.plotVars.ROHOPH != null) ? ([["norm", "Hello there, boys! Back from another adventure again? I'm just, uh... just wandering the streets. Yes, there's nothing suspicious about THAT, is there?"]]) : ([["norm", "You're out late there, boys! Shouldn't you be going back home to bed? Your parents are probably worried!"], ["susp", "You... do remember where you live, right? In those little houses in the south-west part of town...?"], ["o_O", "No, I, uh... I don't know why I thought you might've forgotten! But it's useful to know anyway, innit?"]]))}, {name:"Monastery", model:"DOORY", x:18, y:13, lock:"lock", dest:["gz_monastery", 1, 1]}, {name:"Barracks", model:"DOOR1", x:5, y:6, lock:"lock", dest:["gz_barracks", 1, 1]}, {name:"House", model:"DOOR1", x:8, y:14, lock:"lock", dest:["gz_house01", 1, 1]}, {name:"Accessory Shop", model:"DOOR1", x:2, y:15, lock:"lock", dest:["gz_house01", 1, 1]}, {name:"Mardek's House", model:"DOOR1", x:5, y:20, dest:["gz_Mhouse1", 4, 5]}, {name:"Deugan's House", model:"DOOR1", x:9, y:20, lock:"lock", dest:["gz_Dhouse", 1, 1]}, {name:"Magic Shop", model:"DOOR1", x:35, y:20, lock:"lock", dest:["gz_shop_M", 1, 1]}, {name:"Item Shop", model:"DOOR1", x:29, y:14, lock:"lock", dest:["gz_shop_I", 1, 1]}, {name:"Inn", model:"DOOR1", x:36, y:15, lock:"lock", dest:["gz_inn", 1, 1]}, {name:"Weapon Shop", model:"DOOR1", x:31, y:10, lock:"lock", dest:["gz_shop_W", 1, 1]}, {name:"Armour Shop", model:"DOOR1", x:37, y:10, lock:"lock", dest:["gz_shop_A", 1, 1]}, {name:"House", model:"DOOR1", x:35, y:3, lock:"lock", dest:["gz_house02", 1, 1]}, {name:"Sewers", model:"area_transition", x:21, y:1, dest:["gz_sewers1", 1, 1]}, {name:"S", model:"area_transition", x:18, y:22, dest:["WORLDMAP", 1, 1]}];
} else {
A_sprites = [{name:"Bernardo", model:"s_soldier", x:4, y:7, walkspeed:-1, dir:"s", elem:"FIRE", conv:[["norm", "Oy, it's like a lickle boy or summat. Buggroff."]]}, {name:"Marcellus", model:"s_soldier", x:6, y:7, walkspeed:-1, dir:"s", elem:"EARTH", conv:[["norm", "Oh, hello there, sonny. The barracks are no place for children, but go in for all I care."]]}, {name:"George", model:"s_common", x:34, y:11, walkspeed:40, dir:"s", elem:"EARTH", conv:[["deep", "I, uh... I do believe I've forgotten where I live! I can't find my house anywhere! I'm sure I'll find it if I wander around this general area for a while longer though. Yes, I'm sure things will turn out well!"]]}, {name:"Bearded Man", model:"s_man2", x:5, y:12, walkspeed:40, dir:RDir(), elem:"FIRE", conv:[["norm", "Hey look! I have a beard! You little kiddiwinks can't grow beards, so I WIN. HELL YEH!!"]]}, {name:"Middle-aged Woman", model:"s_woman2", x:2, y:22, walkspeed:60, dir:RDir(), elem:"EARTH", conv:[["norm", "Did you see that wierd star that seemed to fall from the sky and into the ground over across the woods? In all my years, I've never seen anything like THAT before!"]]}, {name:"Jered", model:"s_boy", x:9, y:16, walkspeed:10, dir:RDir(), elem:"EARTH", conv:[["norm", "'Allo, Mardek and Deugan! I bet you're going adventuring today again... I never get to go adventuring because me mum won't let me!"]]}, {name:"Adventurer", model:"s_woman4", x:15, y:15, walkspeed:40, dir:RDir(), elem:"AIR", conv:[["susp", "Do all the children talk to strange adults in this little village? Scarper, chum. An Adventurer like me has nothing to say to you!"]]}, {name:"Old Lady", model:"s_woman3", x:22, y:16, walkspeed:90, dir:RDir(), elem:"EARTH", conv:[["norm", "Back in my day, we didn't have stars falling from the heavens! Lord no! Stars were much better behaved back in the good old days, not like these rowdy, rebellious stars you kids look at these days! They'll be the death of us all, I swear!"]]}, {name:"Middle-aged Man", model:"s_man1", x:30, y:16, walkspeed:40, dir:RDir(), elem:"EARTH", conv:[["norm", "I'm so middle-aged that I don't care much for falling stars. I just don't get excited like you wee sprogs do, you see. You'll understand when you're older."]]}, {name:"Woman", model:"s_woman", x:32, y:18, walkspeed:40, dir:RDir(), elem:"WATER", conv:[["norm", "Yes? What do you want, boys? If you're after some more sweet, sweet cocoa biscuits, I'm sorry but I've got none to give to you today!"]]}, {name:"Old Man", model:"s_man3", x:34, y:22, walkspeed:90, dir:RDir(), elem:"AIR", conv:[["norm", "If I were any younger, I'd go and look at where that star landed meself! I just knows it's somethin' special! But since me old bones are too feeble, I'd never survive the walk through them woods..."], ["grin", "You little whippersnappers look rip-rarin' to go and explore, though! Tell me all about what you find when you get back!"]]}, {name:"Monastery", model:"DOORY", x:18, y:13, dest:["gz_monastery", 3, 9]}, {name:"Barracks", model:"DOOR1", x:5, y:6, dest:["gz_barracks", 3, 11]}, {name:"House", model:"DOOR1", x:8, y:14, dest:["gz_house01", 1, 4]}, {name:"Accessory Shop", model:"DOOR1", x:2, y:15, dest:["gz_shop_Ac", 2, 6]}, {name:"Mardek's House", model:"DOOR1", x:5, y:20, dest:["gz_Mhouse1", 4, 5]}, {name:"Deugan's House", model:"DOOR1", x:9, y:20, dest:["gz_Dhouse", 3, 6]}, {name:"Magic Shop", model:"DOOR1", x:35, y:20, dest:["gz_shop_M", 2, 6]}, {name:"Item Shop", model:"DOOR1", x:29, y:14, dest:["gz_shop_I", 2, 6]}, {name:"Inn", model:"DOOR1", x:36, y:15, dest:["gz_inn", 3, 6]}, {name:"Weapon Shop", model:"DOOR1", x:31, y:10, dest:["gz_shop_W", 2, 6]}, {name:"Armour Shop", model:"DOOR1", x:37, y:10, dest:["gz_shop_Ar", 2, 6]}, {name:"House", model:"DOOR1", x:35, y:3, dest:["gz_house02", 1, 4]}, {name:"Sewers", model:"area_transition", x:21, y:1, dir:"s", dest:["sewer1", 14, 9]}, {name:"S", model:"area_transition", x:18, y:22, dest:["WORLDMAP", 1, 1]}];
}
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = ((plotVars.startedProperly && (_root.plotVars.ROHOPH == null)) ? "Goznor" : "crickets");
clearmap = 1;
AreaSetup();
EN_ADD("Places", "Goznor");
Frame 22
map = [[4, 4, 2, 2, 2, 4, 4], [4, 2, 1, 1, 1, 2, 4], [4, 1, 0, 0, 0, 1, 4], [4, 10, 0, 6, 0, 10, 4], [3, 0, 0, 9, 0, 0, 3], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 9, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
tileset = "t_monastery";
area = "gz_monastery";
areaname = "Goznor - Monastery";
A_sprites = [{name:"Medium Priest Gallovar", model:"s_Ypriest", x:3, y:5, walkspeed:-2, dir:"s", EN:["People", "Medium Priest Gallovar"], elem:"WATER", conv:"c_Ypriest"}, {name:"EXIT", model:"DOORY", x:3, y:10, dest:["goznor", 18, 14]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "HymnOfYalort";
clearmap = 1;
AreaSetup();
Frame 23
map = [[10, 1, 10, 1, 10, 1, 10], [4, 0, 4, 0, 4, 8, 4], [5, 0, 5, 0, 5, 0, 5], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [3, 3, 3, 6, 3, 3, 3], [3, 1, 10, 0, 10, 1, 3], [3, 8, 0, 0, 16, 0, 3], [3, 0, 0, 0, 0, 0, 3], [3, 0, 0, 0, 0, 0, 3], [3, 0, 0, 0, 0, 0, 3], [3, 0, 0, 0, 0, 0, 3]];
tileset = "t_interior1";
area = "gz_barracks";
areaname = "Goznor - Barracks";
A_sprites = [{name:"Injured Guard", model:"s_soldier", x:2, y:1, walkspeed:-2, dir:"s", elem:"DARK", conv:[["grin", "I'm not really injured, y'know. Just lazy."], ["angr", "But don't tell anyone, or I'll rip yer bleedin' 'ead off wi' me bare 'ands, yeh little cretin!"]]}, {name:"Jacques", model:"s_captain", x:3, y:8, walkspeed:-1, dir:"s", elem:"AIR", EN:["People", "Captain Jacques"], conv:"c_jacques"}, {name:"EXIT", model:"DOOR1", x:3, y:12, dest:["goznor", 5, 7]}];
areaLoot = [{x:0, y:2, type:"item", amount:1, item:"Potion"}, {x:2, y:2, type:"item", amount:1, item:"Potion"}, {x:4, y:2, type:"item", amount:1, item:"Potion"}, {x:6, y:2, type:"item", amount:1, item:"Potion"}];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 24
map = [[1, 1, 7, 1, 1, 1, 1], [4, 0, 0, 0, 0, 0, 8], [5, 0, 0, 17, 18, 16, 0], [8, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
tileset = "t_interior1";
area = "gz_house01";
areaname = "Goznor - House";
A_sprites = [{name:"Woman", model:"s_woman2", x:5, y:2, walkspeed:-2, dir:"w", elem:"FIRE", conv:[["blah", "Children are so rude these days! Walking into peoples' houses uninvited, all willy-nilly! And talking to the people who live there, no less! Well I never! Who do you think you are, adventurers or something?"]]}, {name:"Man", model:"s_man1", x:3, y:2, walkspeed:-2, dir:"e", elem:"AIR", conv:[["grin", "Hello, boys! Welcome to our humble home! Make yourselves comfortable and stay as long as you like!"], ["norm", "I'm afraid I don't have anything interesting to say, though. Everyone's talking about some weird star that fell from the sky... Of course, I didn't see it because apparently I never leave this chair!"]]}, {name:"EXIT", model:"DOOR1", x:1, y:5, dest:["goznor", 8, 15]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 25
map = [[7, 1, 1, 1, 1], [17, 0, 0, 0, 8], [11, 11, 11, 11, 11], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [8, 0, 0, 0, 8]];
tileset = "t_interior1";
area = "gz_shop_Ac";
areaname = "Goznor - Accessory Shop";
A_sprites = [{name:"TALKTRIGGER", model:"talktrigger", x:2, y:2, NPC:"Shopkeeper", dir:"s"}, {name:"Shopkeeper", model:"s_man1", x:2, y:1, walkspeed:-1, dir:"s", elem:"AIR", EN:["People", "Social Fox"], conv:[["grin", "Lads! I know how much you like Social Fox and aspire to be like him and all, so did you hear about his latest deed? Apparently he saved Aeropolis from a dragon or something! Isn't that amazing!"], ["norm", "Oh, I love that mighty man... He's so heroic, so manly... I'd love to one day just meet him and marry him and MEAT him and-"], ["o_O", "PC:..."], ["shok", "Lads! You're still here!? Go away! Leave me alone to my fantasies for a few moments!"], ["zzz", "Ooh, yes, you foxy man! Swing that greatsword!"]]}, {name:"EXIT", model:"DOOR1", x:2, y:7, dest:["goznor", 2, 16]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 26
map = [[7, 1, 10, 1, 1, 3, 2], [0, 0, 0, 0, 8, 3, 6], [0, 17, 18, 16, 0, 3, 6], [0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
tileset = "t_interior1";
area = "gz_Mhouse1";
areaname = "Mardek's House";
A_sprites = [{name:"Lilanea", model:"s_lilanea", x:3, y:2, walkspeed:-2, dir:"w", elem:"AIR", EN:["People", "Lilanea"], conv:"c_lilanea"}, {name:"Stairs Up", model:"DOOR1", x:6, y:0, dest:["gz_Mhouse2", 3, 5]}, {name:"EXIT", model:"DOOR1", x:4, y:6, dest:["goznor", 5, 21]}, {name:"INTERJECTION", model:"_trigger", x:3, y:3, ExecuteScript:function () {
_root.Interjection("Mardek", "mum1", "c_lilanea");
}}, {name:"WALK_TRIGGER", model:"_trigger", x:4, y:5, ExecuteScript:function () {
if (_root.plotVars.walkedIntoMum == null) {
_root.plotVars.walkedIntoMum = 1;
DO_ACTIONS([["WALK", -1, 0], ["WALK", 0, -2], ["UNFREEZE"]], "PC", true);
}
}}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = ((plotVars.startedProperly && (plotVars.ROHOPH == null)) ? "Goznor" : "none");
clearmap = 1;
AreaSetup();
Frame 27
map = [[1, 1, 1, 7], [4, 0, 0, 16], [5, 0, 0, 0], [8, 0, 0, 0], [0, 0, 0, 0], [3, 3, 3, 6]];
tileset = "t_interior1";
area = "gz_Mhouse2";
areaname = "Mardek's Room";
A_sprites = [{name:"Healing Crystal", model:"s_crystal", x:0, y:4, walkspeed:-1, conv:"c_healingCrystal"}, {name:"Stairs Down", model:"DOOR1", x:3, y:6, dest:["gz_Mhouse1", 6, 1]}, {name:"INTERJECTION", model:"_trigger", x:0, y:1, ExecuteScript:function () {
if (_root.plotVars.ROHOPH == null) {
return(undefined);
}
_root.Interjection("Mardek", "rohophchat", "c_A_Rohoph");
}}, {name:"SLEEP_TRIGGER", model:"_trigger", x:0, y:1, ExecuteScript:function () {
if (this.executed) {
return(undefined);
}
if (_root.plotVars.startedProperly == 1) {
this.executed = 1;
_root.plotVars.startedProperly = 2;
DO_ACTIONS([["WALK", 0, -4], ["WALK", -2, 0], ["UNFREEZE"], ["TALK", "w"]], "Deugan", true);
} else if (_root.plotVars.startedProperly == null) {
this.executed = 1;
_root.plotVars.startedProperly = 1;
_root.cont.PC.brain.dir = "sleep";
_root.cont.PC.model.gotoAndStop("sleep1");
_root.lastDir = "sleep";
_root.nextArea = "cut2";
_root.spawnLoc = [0, 1];
_root.fadeTrans.ctrl.active = true;
_root.fadeTrans.ctrl.slowMode = true;
}
}}];
if (_root.plotVars.startedProperly == 1) {
A_sprites.push({name:"Deugan", model:"s_deugan_child", x:3, y:5, walkspeed:-1, dir:"n", elem:"EARTH", conv:"c_A_Deugan", PC_STATS:Allies.Deugan});
}
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = ((plotVars.startedProperly && (plotVars.ROHOPH == null)) ? "Goznor" : "none");
clearmap = 1;
AreaSetup();
Frame 28
map = [[7, 1, 20, 20, 1, 1, 1], [0, 0, 0, 0, 0, 8, 8], [0, 17, 18, 16, 0, 0, 8], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [8, 0, 0, 0, 0, 0, 0]];
tileset = "t_interior1";
area = "gz_Dhouse";
areaname = "Deugan's House";
A_sprites = [{name:"Geography of Belfan", model:"s_object", x:2, y:0, type:"examine", conv:[["", "There are four main continents on Belfan, as well as numerous smaller continents and archipelagos."], ["", "The continent of Hadris is the largest in the world, and most of the human cities and nations are here. Goznor is located at the southernmost point, on the northern shore of the gulf connecting Hadris and Fengue."], ["", "Fengue is south of Hadris, seperated by only a small channel of water at the northernmost point. It is scarcely inhabited and the majority of its terrain is desert. Aeropolis is its capital."], ["", "Nole'Oth is a continent to the north, known colloquially as the 'Northern Wastes'. It is perpetually covered in snow and is largely unexplored."], ["", "The continent of Tharadia is said to exist across the oceans to the west, but to this date no expeditions have returned from there to verify its existence or detail its composition or population, if any."]]}, {name:"The Crystals", model:"s_object", x:3, y:0, type:"examine", conv:[["", "The elemental crystals were created by YALORT when He made the world, and they provide Belfan with all of its magical energy and keep it alive. They consist of pure elemental magical energy, and as such have the power to grant people extreme power; for this reason, they have been sought by Adventurers and Villains alike."], ["", "All of the crystals are located around the gulf seperating Hadris and Fengue; it is said that this general area is where YALORT came down to the newly-crafted Belfan and breathed the gift of life into it."], ["", "The Fire Crystal possesses the power of heat and flames. It keeps the world warm so that things can grow and thrive, and its power is harnessed every time a flame burns, magical or natural. It is located in a temple in Fengue."], ["", "The water crystal keeps the waters pure and flowing and the rains pouring. It is vital for life on Belfan. It is also resposible for Man's rational thoughts, or so it has been said. It can be found in Hadris."], ["", "The Air Crystal keeps the winds blowing, and the air clean. The city of Aeropolis was built around the temple in which it can still be found."], ["", "The Earth Crystal is responsible for the lives of beasts and plants on Belfan. Its energy keeps them growing and breeding. It is held in a sacred temple within the Lifewood in Fengue."], ["", "The Light Crystal, being the physical manifestation of the Goodness in Man's heart, is the greatest treasure of Goznor, kept within the Castle of Goznor."], ["", "The location of the Dark Crystal is unknown; this is probably for the best, since it is the crystal most often sought by those who wish to inflict evil on the world."], (Do = function () {
EN_ADD("Artefacts", "Fire Crystal");
EN_ADD("Artefacts", "Water Crystal");
EN_ADD("Artefacts", "Air Crystal");
EN_ADD("Artefacts", "Earth Crystal");
EN_ADD("Artefacts", "Light Crystal");
EN_ADD("Artefacts", "Dark Crystal");
return(1);
})]}, {name:"Polly", model:"s_polly", x:1, y:2, walkspeed:-2, dir:"e", elem:"EARTH", EN:["People", "Polly"], conv:"c_polly"}, {name:"EXIT", model:"DOOR1", x:3, y:7, dest:["goznor", 9, 21]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = (plotVars.startedProperly ? "Goznor" : "none");
clearmap = 1;
AreaSetup();
Frame 29
map = [[7, 1, 13, 1, 1, 3, 20, 20, 20], [0, 0, 0, 16, 8, 3, 0, 0, 0], [11, 11, 11, 11, 11, 3, 0, 9, 0], [0, 0, 0, 0, 0, 3, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3, 3, 3, 3]];
tileset = "t_interior1";
area = "gz_shop_M";
areaname = "Goznor - Magic Shop";
A_sprites = [{name:"The Elements", model:"s_object", x:6, y:0, type:"examine", conv:[["", "Everything and everyone in the world has an innate affinity to at least one of several magical elements. People and spells are all monoelemental, and their Element determines their power, potential, and, in the case of people, their personalities."], ["", "There are seven known elements, divided into three distinct groups. There are the Natural Elements, which Nature is composed largely of; there are the Moral Elements, which are born from the essence of free will and the spirit of life and choice; there is also the odd Spiritual element group, which eludes many thaumatologists to this day."], ["", "There are four Natural elements - Fire, Water, Air, and Earth - two Moral elements - Dark and Light - and only one known Spiritual element - Ether- (though Ether's existence is largely considered mythical."], ["", "FIRE is the element of energy and devotion, of passion and strength. Fire people are strong-willed, opinionative, confident and powerful. They're driven, and strive to achieve goals. They can be stubborn."], ["", "WATER is the element of intellect, of calmness, of beauty. Water people are often laid-back, and 'go with the flow'. They're often good-looking, intelligent, and perceptive. Many have strong magical power, making ideal Mages or Wizards."], ["", "AIR is the element of adventure, of wandering, of drifting, of dreaming. Air people are dreamers, but they're floaty and rarely focused on one thing for long. Many travellers and wanderers and Adventurers are of the Air element, 'living on the edge of the wind'."], ["", "EARTH is the element of wisdom, common sense and hardiness. Earth people are usually tough and practical, and most certainly 'down to Earth'. They are wise and understanding, trustworthy, honest and reliable. They can be extremely devoted to a cause or way of life, and are also good at solving puzzles."], ["", "LIGHT is the elemental epitome of goodness and justice. People with this element will live to Do Good, helping people whenever they can. They live for others moreso than for themselves. They are the most helpful, kind and caring of elements, and often become Heroes."], ["", "DARK is the elemental epitome of evil. Dark people are inherently self-centred and manipulative, often violent. They only do things to benefit themselves, and care little for other people. They are the polar opposites of Light people."], ["", "ETHER is still a mystery, as it occurs so rarely as to be considered almost mythical. Not much is written about it, and what is written is not highly reliable."], ["", "There are rumours of an eighth element, but that is all they are; rumours. Myths. There's no known evidence to support such claims."], ["", "The personality traits mentioned for each element in this book are the most common for those elements, but are by no means the only personalities such people can have. For example, good-aligned Dark-elemental people are not unheard of (take the Adventurer Bernard Stormkiller, for example). Being creatures of free will, our destinies are for us to choose, not our inherent elements."]]}, {name:"Elemental Compatibility", model:"s_object", x:7, y:0, type:"examine", conv:[["", "Though the elements all exist in a delicate natural balance, each one has an element that opposes it, an element that it must woefully submit to, by the accord of the Magical Laws Of The Universe."], ["", "Fire consumes and feeds on Air, Air whittles away and erodes the Earth, Earth absorbs Water, and Water douses flames. Thus is the cycle of the Natural elements."], ["", "The Moral elements, being antipodes of one another, polar opposites, oppose eachother in a unique way. Light floods, consumes and thus eradicates the Darkness, but in turn Darkness put out the light. These two elements are both strong and weak against eachother simultaneously."], ["", "Not much is known about the other elements' traits, if indeed they exist at all. Is Ether strong or weak agaisnt anything? We do not know."], ["", "Though these elemental traits are most often exploited on the battlefield, they can cause influence in day-to-day life too. A fire-elemental person will inherently (though unwillingly) be more submissive to a water-elemental person, and that water person will be more bossy and demanding around fire people, exuding an unwilling and unconscious dominance. Such is nature."]]}, {name:"Elements and Breeding", model:"s_object", x:8, y:0, type:"examine", conv:[["", "Elemental traits can also come into play when it comes to love and sexual relationships. Your elemental affinity plays a large part in determining who you're attracted to, and how well relationships with others will turn out for you."], ["", "Males, being the dominant gender, also like to be the dominant element in relationships; thus they are attracted to females of the element that they are strong against first and foremost. Females, secretly lusting being dominated and ravished, are attracted to men of the element superior to themselves. So such matches work rather well."], ["", "People of the same element can also work excellently together; similarity at the most fundemental levels has many times been the cause for a great love blossoming and flourishing."], ["", "Such things as have been mentioned apply only to people with Natural elements; for people with a Moral element, different rules apply. Naturally, they are attracted to people of the same element as themselves, but also to any and all of the Natural elements. Because of this, Morally-elemental people have more choice when it comes to finding a partner that's right for them."], ["", "A relationship between the two Moral elements - that is, a Light and Dark couple - CANNOT work, both emotionally and physically. The two people will never get along or fall in love, and even if they did, a child could never physically be conceived in such a relationship."], ["", "When a child is born to other couples, however, its element is inherited from its parents. In a dominant-element relationship, the child is of the dominant element. In same-element relationships, the child is of the element both parents share. In Moral-Natural relationships, the Moral element takes dominance."], ["", "Consider these things when looking for a partner. Asking for someone's element before anything else is a great way of quickly getting an idea of whether anything will happen or not!"]]}, {name:"TALKTRIGGER", model:"talktrigger", x:2, y:2, NPC:"Shopkeeper", dir:"s"}, {name:"Shopkeeper", model:"s_man2", x:2, y:1, walkspeed:-1, dir:"s", elem:"WATER", conv:[["grin", "Heh, sorry lads, but I can't legally sell you any magic until you're a wee bit older! Come back in a few years maybe?"]]}, {name:"EXIT", model:"DOOR1", x:2, y:7, dest:["goznor", 35, 21]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 30
map = [[7, 1, 1, 1, 1], [17, 0, 0, 0, 8], [11, 11, 11, 11, 11], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [8, 0, 0, 0, 8]];
tileset = "t_interior1";
area = "gz_shop_I";
areaname = "Goznor - Item Shop";
A_sprites = [{name:"Item Shop", model:"shop", x:2, y:2, wares:["Potion", "Antidote", "CopperRing"]}, {name:"Shopkeeper", model:"s_man1", x:2, y:1, walkspeed:-1, dir:"s", elem:"EARTH", conv:[["norm", "WORDS."]]}, {name:"EXIT", model:"DOOR1", x:2, y:7, dest:["goznor", 29, 15]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 31
map = [[1, 7, 13, 1, 1, 3, 1, 1, 1], [8, 0, 0, 0, 8, 3, 17, 18, 16], [11, 11, 11, 11, 11, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 16, 0, 0, 17, 18, 16, 0, 0], [17, 18, 16, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 17, 18, 16]];
tileset = "t_interior1";
area = "gz_inn";
areaname = "Goznor - Inn";
A_sprites = [{name:"TALKTRIGGER", model:"talktrigger", x:2, y:2, NPC:"Barkeep", dir:"s"}, {name:"Barkeep", model:"s_man1", x:2, y:1, walkspeed:-1, dir:"s", elem:"EARTH", conv:[["norm", "Sorry lads, but I can't serve minors 'ere! Little kiddiwinks like you shouldn't be int'rested in booze anyway; it rots yer mind!"], ["grin", "But that doesn't stop it frum sellin' like 'ot cakes! I sleep on bags o' money at night1 Myep."]]}, {name:"Young Man", model:"s_common", x:2, y:5, walkspeed:-2, dir:"w", EN:["People", "Social Fox"], elem:"FIRE", conv:[["grin", "Hey, little sprog! Isn't Social Fox like totally amazing? I heard that once, he was surrounded by like a million Monsters - no, a million AND FIVE! - and he managed to slay them all WITH HIS EYES SHUT using only his leather codpiece! How amazing is THAT?!"]]}, {name:"Bearded Man", model:"s_man2", x:1, y:4, walkspeed:-2, dir:"s", EN:["People", "Social Fox"], elem:"FIRE", conv:[["grin", "Even though Social Fox doesn't have a beard, he's totally my idol! Did you hear about that one time where he was fighting the Octopus Of Many Swords, and he got ALL HIS LIMBS CHOPPED OFF, but grew them back and used the old limbs to bludgeon the octopus to death?!?! How brilliant is THAT?!"]]}, {name:"Young Woman", model:"s_woman", x:0, y:5, walkspeed:-2, dir:"e", EN:["People", "Social Fox"], elem:"AIR", conv:[["mad", "social fox is hot *drools* i want 2 merry him wen i meat him adn we wil have liek 3 babys nad i will call them cory and brandon and janey-sue!!11 squee!11"]]}, {name:"Middle-Aged Man", model:"s_man1", x:6, y:1, walkspeed:-2, dir:"e", elem:"AIR", conv:[["susp", "It seems that there are more people in this inn than there are houses in the village! And what does the mayor do about this? NUFFIN!"], ["angr", "The fact that Goznor doesn't actually HAVE a mayor has nothing to do with it!! It needs to grow one, dammit! Off, uh... off the mayor tree! Someone needs to plant one of those, yes!"]]}, {name:"Middle-Aged Woman", model:"s_woman2", x:8, y:1, walkspeed:-2, dir:"w", elem:"EARTH", conv:[["grin", "Wasn't that falling star EXCITING! It was one of the most exciting, thrilling things I ever did see!"], ["susp", "Why didn't we have any falling stars at our wedding, luv? I would've wanted falling stars at my wedding."], ["shok", "[[Middle-Aged Man]]I didn't know you wanted falling stars at our wedding, dearest!"], ["sad", "[[Middle-Aged Woman]]Well I guess you just don't love me after all then!!!"]]}, {name:"Adventurer", model:"s_woman4", x:8, y:6, walkspeed:-2, dir:"w", elem:"EARTH", conv:[["blah", "The uniform for the Goznor Guard is really ugly. I mean, ew, that horrible vomit-green colour is SO ten years ago!"], ["blah", "..."], ["blah", "...I wear it for the retro look. Shut up."]]}, {name:"Truant Soldier", model:"s_soldier", x:6, y:6, walkspeed:-2, dir:"e", elem:"FIRE", conv:[["grin", "I only joined the Guard so then I could get this uniform! Chicks dig a guy in a uniform. Like this one 'ere. I'm TOTALLY scorin' and I'm so gonna get some tonight!"], ["deep", "Not that that's an appropriate thing to say to a child like yourself, mind you."]]}, {name:"EXIT", model:"DOOR1", x:3, y:7, dest:["goznor", 36, 16]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 32
map = [[7, 1, 10, 1, 1], [17, 0, 0, 0, 8], [11, 11, 11, 11, 11], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [8, 0, 0, 0, 8]];
tileset = "t_interior1";
area = "gz_shop_W";
areaname = "Goznor - Weapon Shop";
A_sprites = [{name:"TALKTRIGGER", model:"talktrigger", x:2, y:2, NPC:"Derek", dir:"s"}, {name:"Derek", model:"s_derek", x:2, y:1, walkspeed:-1, dir:"s", elem:"FIRE", EN:["People", "Derek"], conv:"c_derek"}, {name:"EXIT", model:"DOOR1", x:2, y:7, dest:["goznor", 31, 11]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 33
map = [[7, 1, 10, 1, 1], [17, 0, 0, 0, 8], [11, 11, 11, 11, 11], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [8, 0, 0, 0, 8]];
tileset = "t_interior1";
area = "gz_shop_Ar";
areaname = "Goznor - Armour Shop";
A_sprites = [{name:"TALKTRIGGER", model:"talktrigger", x:2, y:2, NPC:"Shopkeeper", dir:"s"}, {name:"Shopkeeper", model:"s_man1", x:2, y:1, walkspeed:-1, dir:"s", elem:"FIRE", conv:[["blah", "Oy. Lickle kiddiwinks like you lot shouldn't be in 'ere! Gerrout! Buggroff!"]]}, {name:"EXIT", model:"DOOR1", x:2, y:7, dest:["goznor", 37, 11]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 34
map = [[1, 1, 7, 1, 20, 20, 20], [4, 0, 0, 17, 0, 0, 0], [5, 0, 0, 0, 0, 0, 0], [8, 0, 0, 0, 0, 0, 0], [8, 0, 0, 0, 0, 18, 16]];
tileset = "t_interior1";
area = "gz_house02";
areaname = "Goznor - House";
A_sprites = [{name:"The Adventures of Social Fox, Vol. XVII", model:"s_object", x:4, y:0, type:"examine", EN:["People", "Social Fox"], conv:[["", "Lo! Heare these Tales of the Grand Adventurer Social Fox! The Greatest Adventurer alive in these Days that are Now! Of his deeds many Books have beene writ! He is Such a Great Guy!"], ["", "There was thise one tyme where he totally Slew this Mighty Dragonne! It was a Foule, Evile, Darke Beaste who had Capturede a Princesse - one of the Fineste in all the Landse - and only the Heroisme of Social Fox could Save her!"], ["", "We must all Sing Praises of this great Man amongst us, to whom we all owe Our Lives many Times!!!"]]}, {name:"The Cogs Of The Mind", model:"s_object", x:5, y:0, type:"examine", conv:[["", "It's a technical book that you'd surely not understand or enjoy reading."]]}, {name:"An Elementary Treatise on Determinants", model:"s_object", x:6, y:0, type:"examine", conv:[["", "It's a book, apparently about maths. You don't need to read that."]]}, {name:"Meraeador", model:"s_inventor", x:3, y:2, walkspeed:30, dir:"s", elem:"FIRE", EN:["People", "Meraeador"], conv:"c_inventor"}, {name:"EXIT", model:"DOOR1", x:1, y:5, dest:["goznor", 35, 4]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Goznor";
clearmap = 1;
AreaSetup();
Frame 36
map = [[3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 2, 1, 9, 9, 9, 9, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3], [3, 3, 3, 3, 3, 3, 9, 9, 9, 9, 4, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 9, 9, 9, 2, 3, 3], [2, 2, 2, 2, 2, 2, 9, 0, 0, 4, 2, 0, 2, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 9, 9, 9, 9, 9, 3, 3], [0, 0, 0, 0, 0, 0, 0, 0, 4, 2, 1, 0, 1, 2, 3, 3, 2, 9, 9, 9, 9, 2, 2, 2, 9, 9, 9, 9, 2, 3, 3, 3, 3, 9, 9, 9, 9, 9, 3, 3], [4, 4, 4, 4, 4, 4, 4, 4, 3, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 2, 3, 30, 30, 30, 30, 30, 4, 4, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 0, 0, 0, 1, 2, 2, 0, 4, 4, 4, 9, 9, 0, 0, 0, 0, 0, 9, 9, 9, 3, 29, 29, 29, 29, 29, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 9, 3, 29, 29, 29, 29, 29, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 1, 3, 27, 26, 28, 26, 27, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 4, 9, 9, 9, 0, 0, 0, 0, 2, 41, 41, 42, 41, 41, 3, 3, 3, 3], [3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3], [3, 3, 2, 0, 0, 0, 0, 1, 0, 0, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3, 3], [3, 3, 0, 1, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 9, 0, 0, 0, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3], [3, 2, 9, 0, 0, 15, 12, 12, 16, 0, 0, 9, 9, 9, 9, 9, 9, 3, 3, 3, 3, 3, 3, 3, 3, 9, 0, 0, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 1, 9, 0, 15, 7, 7, 7, 7, 16, 0, 0, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 9, 9, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 9, 9, 15, 7, 7, 7, 7, 7, 17, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 9, 9, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 9, 9, 18, 7, 7, 7, 7, 17, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 9, 9, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 9, 9, 9, 18, 14, 14, 17, 0, 0, 0, 0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 9, 4, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3], [3, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 0, 9, 3, 3, 3, 2, 9, 9, 2, 3, 3, 3, 3, 3, 3, 3], [3, 9, 9, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 3, 3, 3, 3, 3, 2, 0, 0, 0, 3, 3, 2, 9, 9, 9, 1, 2, 3, 3, 3, 3, 3, 3], [3, 9, 9, 3, 3, 3, 0, 0, 0, 9, 4, 4, 0, 0, 0, 2, 2, 3, 3, 3, 3, 3, 0, 0, 9, 4, 3, 3, 9, 9, 9, 9, 0, 0, 3, 3, 3, 3, 3, 3], [3, 9, 9, 3, 3, 3, 4, 1, 0, 9, 3, 3, 4, 9, 9, 9, 9, 2, 2, 3, 3, 2, 0, 9, 9, 3, 3, 2, 9, 9, 9, 9, 0, 0, 2, 2, 2, 2, 2, 2], [3, 9, 4, 3, 3, 3, 3, 0, 9, 9, 3, 3, 3, 4, 4, 9, 9, 9, 9, 2, 2, 0, 0, 4, 4, 3, 3, 1, 0, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0], [3, 9, 3, 3, 3, 3, 3, 0, 9, 9, 3, 3, 3, 3, 3, 4, 9, 9, 9, 9, 9, 9, 4, 3, 3, 3, 3, 0, 0, 9, 9, 9, 9, 9, 4, 4, 4, 4, 4, 4], [3, 9, 3, 3, 3, 3, 3, 0, 9, 9, 3, 3, 3, 3, 3, 3, 4, 9, 9, 9, 9, 4, 3, 3, 3, 3, 3, 0, 9, 9, 9, 9, 9, 9, 3, 3, 3, 3, 3, 3], [3, 9, 3, 3, 3, 3, 3, 0, 0, 9, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 4, 9, 9, 9, 9, 9, 4, 3, 3, 3, 3, 3, 3], [3, 9, 3, 3, 3, 3, 3, 0, 0, 9, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 9, 9, 0, 1, 9, 3, 3, 3, 3, 3, 3, 3], [3, 9, 3, 3, 3, 3, 3, 4, 0, 0, 0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 9, 9, 0, 0, 0, 4, 3, 3, 3, 3, 3, 3, 3], [3, 9, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 9, 9, 0, 0, 4, 3, 3, 3, 3, 3, 3, 3, 3], [3, 4, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 9, 9, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 9, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 9, 9, 9, 9, 3, 3, 3, 3, 3, 3, 3, 3, 2, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 9, 9, 9, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 4, 3, 3, 3, 3, 2, 2, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 9, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 4, 3, 3, 3, 3, 2, 9, 9, 2, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 9, 0, 0, 9, 9, 9, 9, 9, 1, 0, 0, 0, 0, 0, 3, 3, 3, 3, 2, 9, 9, 9, 9, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 0, 0, 0, 2, 2, 2, 2, 1, 9, 9, 9, 9, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 9, 9, 9, 9, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 4, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]];
tileset = "t_darkwood";
area = "soothwood";
areaname = "Soothwood";
if (plotVars.ROHOPH != null) {
ambience = {ra:100, rb:0, ga:80, gb:0, ba:70, bb:0, aa:100, ab:0};
}
A_sprites = [{name:"INTERJECTION", model:"_trigger", x:34, y:22, ExecuteScript:function () {
_root.Interjection("Deugan", "soothwood1", "c_A_Deugan");
}}, {name:"Poshgoblin", model:"s_poshgoblin", x:11, y:4, walkspeed:-1, dir:"s", elem:"DARK", BOSSCODE:"Poshgoblin", conv:[["norm", "Snee! Snee! I say! Snee! Pip-pip! Snee."], (Do = function () {
BATTLE([["PoshGoblin", null, null, null], ["Poshgoblin", null, null, null], [2, null, null, null], "SOLO", "Poshgoblin"], "battle", true);
return(1);
})]}, {name:"Shaman's House", model:"DOOR8", x:33, y:8, dest:["soothwood_shaman", 3, 6]}, {name:"E", model:"area_transition", x:36, y:22, dest:["WORLDMAP", 1, 1]}, {name:"W", model:"area_transition", x:5, y:4, dest:["WORLDMAP", 1, 1, "crashsite"]}];
areaLoot = [{x:1, y:28, type:"item", amount:1, item:"Potion"}, {x:35, y:32, type:"item", amount:1, item:"Potion"}, {x:29, y:6, type:"item", amount:1, item:"Potion"}, {x:16, y:13, type:"item", amount:1, item:"Potion"}];
foes = [["Forest Fish", null, null, null, "SOLO"], ["Fungoblin", null, null, null, "SOLO"], ["Fungoblin", "Fungoblin", null, null, "DUO"], ["Fungoblin", "Fungoblin", "Fungoblin", null, "TRIO"], ["Forest Fish", "Forest Fish", null, null, "DUO"], ["Forest Fish", "Fungoblin", "Forest Fish", null, "TRIO"]];
btlChance = 3;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Woods";
AreaSetup();
EN_ADD("Places", "Soothwood");
Frame 37
map = [[1, 12, 1, 10, 1, 12, 1], [7, 0, 0, 0, 0, 0, 7], [0, 4, 3, 3, 3, 5, 7], [0, 4, 3, 3, 3, 5, 0], [0, 4, 3, 3, 3, 5, 0], [0, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
tileset = "t_interior4";
area = "soothwood_shaman";
areaname = "Soothwood - Shaman's Hut";
A_sprites = [{name:"Shaman", model:"s_shaman", x:3, y:2, walkspeed:-2, dir:"s", EN:["People", "Goznor Shaman"], elem:"EARTH", conv:"c_shaman"}, {name:"Healing Crystal", model:"s_crystal", x:0, y:6, walkspeed:-1, conv:"c_healingCrystal"}, {name:"EXIT", model:"DOOR8", x:3, y:7, dest:["soothwood", 33, 9]}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Woods";
clearmap = 1;
AreaSetup();
Frame 39
map = [[3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3], [3, 3, 2, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3], [3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3], [3, 2, 0, 0, 77, 78, 79, 80, 81, 0, 0, 0, 3], [3, 0, 0, 0, 82, 83, 84, 85, 86, 0, 0, 0, 3], [3, 0, 0, 0, 87, 88, 89, 90, 91, 0, 0, 0, 3], [3, 0, 0, 0, 92, 93, 94, 95, 96, 0, 0, 5, 3], [3, 0, 0, 0, 97, 98, 99, 100, 101, 0, 0, 5, 3], [3, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3], [3, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3], [3, 5, 5, 0, 0, 0, 0, 0, 0, 0, 5, 5, 3], [3, 4, 5, 5, 0, 0, 0, 0, 0, 0, 5, 5, 3], [3, 3, 4, 5, 5, 0, 0, 0, 0, 5, 5, 4, 3], [3, 3, 3, 4, 5, 0, 0, 0, 0, 4, 4, 3, 3], [3, 3, 3, 3, 4, 4, 0, 4, 4, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 2, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 2, 0, 5, 2, 3, 3, 3, 3], [3, 3, 3, 3, 3, 0, 0, 0, 5, 2, 3, 3, 3], [3, 3, 3, 3, 3, 0, 0, 0, 5, 5, 3, 3, 3], [3, 3, 3, 3, 3, 4, 0, 5, 5, 4, 3, 3, 3], [3, 3, 3, 3, 3, 3, 0, 5, 5, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 5, 4, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 4, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3], [3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3]];
tileset = "t_rural";
area = "crashsite";
areaname = "Crash Site";
if (plotVars.ROHOPH != bull) {
ambience = {ra:100, rb:0, ga:80, gb:0, ba:70, bb:0, aa:100, ab:0};
}
A_sprites = [{name:"Into The Saucer", model:"DOOR_SAUCER", x:6, y:6, dest:["saucer", 2, 5]}, {name:"S", model:"area_transition", x:6, y:22, dest:["WORLDMAP", 1, 1]}, {name:"INTERJECTION", model:"_trigger", x:6, y:10, ExecuteScript:function () {
_root.Interjection("Mardek", "mugbert1", "c_mugbert");
}}, {name:"INTERJECTION2", model:"_trigger", x:6, y:10, ExecuteScript:function () {
if (((_root.plotVars.DEFEATED_MUGBERT == null) || (_root.battle_trans._visible)) || (_root.battling)) {
return(undefined);
}
_root.Interjection("Mardek", "mugbert2", "c_mugbert");
}}, {name:"WALK_TRIGGER", model:"_trigger", x:6, y:13, ExecuteScript:function () {
if (_root.plotVars.walkedIntoMugbert == null) {
_root.plotVars.walkedIntoMugbert = 1;
DO_ACTIONS([["WALK", 0, -3], ["UNFREEZE"]], "PC", true);
}
}}];
if (!_root.plotVars.DEFEATED_MUGBERT) {
A_sprites.push({name:"Mugbert", model:"s_mugbert", x:6, y:9, walkspeed:-1, dir:"s", elem:"EARTH", EN:["People", "Mugbert"], conv:"c_mugbert"});
}
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = ((plotVars.ROHOPH != null) ? "crickets" : "WorldMap");
clearmap = 1;
AreaSetup();
specBtlBG = "CRASHSITE";
EN_ADD("Places", "Crash Site");
Frame 40
map = [[2, 1, 3, 1, 2], [1, 4, 16, 4, 1], [0, 11, 8, 12, 0], [0, 7, 6, 9, 0], [15, 14, 10, 13, 15], [2, 15, 0, 15, 2], [2, 2, 0, 2, 2]];
tileset = "t_saucer";
area = "saucer";
areaname = "Inside the Saucer";
A_sprites = [{name:"Rohoph", model:"s_rohoph", x:2, y:2, walkspeed:-2, dir:"dead", elem:"LIGHT", conv:"c_A_Rohoph"}, {name:"S", model:"area_transition", x:2, y:6, dest:["crashsite", 6, 7]}, {name:"INTERJECTION", model:"_trigger", x:2, y:4, ExecuteScript:function () {
if (_root.plotVars.PossessCut != 10) {
return(undefined);
}
_root.Interjection("Mardek", "rohoph1", "c_A_Rohoph");
}}, {name:"CUT_TRIGGER", model:"_trigger", x:2, y:4, ExecuteScript:function () {
if (_root.plotVars.PossessCut != 10) {
if (_root.plotVars.PossessCut == 3) {
this.count++;
if (this.count >= 80) {
_root.plotVars.PossessCut = 10;
_root.freeze = false;
_root.playMusic("Rohoph");
_root.cont.sky.setTransform({ra:100, ab:0, ga:100, gb:0, ba:100, rb:0, aa:100, ab:0});
} else {
_root.cont.sky.setTransform({ra:20 + this.count, ab:0, ga:60 + (this.count / 2), gb:0, ba:100, rb:0, aa:100, ab:0});
}
} else if (_root.plotVars.PossessCut == 2) {
_root.SOUL._y = _root.SOUL._y + 3;
if (_root.SOUL._y >= _root.cont.PC.getBounds(_root).yMin) {
_root.playSFX("Slam");
this.count = 0;
_root.SOUL.gotoAndPlay("absorb");
_root.Flash(_root.cont.PC, [255, 255, 255]);
_root.plotVars.PossessCut = 3;
}
} else if (_root.plotVars.PossessCut == 1) {
this.count++;
if ((this.count > 40) && (this.count < 65)) {
_root.cont.Rohoph._x = (_root.cont.Rohoph.orig_x - 3) + random(7);
_root.cont.Rohoph._y = (_root.cont.Rohoph.orig_y - 3) + random(7);
} else {
_root.cont.Rohoph._x = _root.cont.Rohoph.orig_x;
_root.cont.Rohoph._y = _root.cont.Rohoph.orig_y;
}
if (this.count == 70) {
_root.Flash(_root, [255, 255, 255]);
_root.playSFX("Slam");
_root.attachMovie("s_soul", "SOUL", 14151);
_root.SOUL._x = _root.cont.Rohoph.getBounds(_root).xMin;
_root.SOUL._y = _root.cont.Rohoph.getBounds(_root).yMin;
_root.SOUL._width = (_root.SOUL._height = 30);
_root.SOUL._alpha = 0;
}
if ((_root.SOUL != null) && (_root.SOUL._alpha < 100)) {
_root.SOUL._alpha = _root.SOUL._alpha + 20;
}
if (this.count == 80) {
_root.Flash(_root.SOUL, [255, 0, 0]);
}
if (this.count == 90) {
_root.Flash(_root.SOUL, [0, 255, 0]);
}
if (this.count == 100) {
_root.Flash(_root.SOUL, [0, 0, 255]);
}
if (this.count == 120) {
_root.plotVars.PossessCut = 2;
}
} else if (_root.plotVars.PossessCut == null) {
_root.cont.Rohoph.orig_x = 0 + _root.cont.Rohoph._x;
_root.cont.Rohoph.orig_y = 0 + _root.cont.Rohoph._y;
_root.plotVars.PossessCut = 1;
_root.freeze = true;
this.frozenrunning = true;
_root.Flash(_root, [255, 255, 255]);
_root.playSFX("Slam");
_root.cont.sky.setTransform({ra:20, ab:0, ga:60, gb:0, ba:100, rb:0, aa:100, ab:0});
_root.cont.PC_2.model.gotoAndStop("n1");
this.count = 0;
_root.NoRohophName = true;
}
}
}}];
areaLoot = [];
foes = [];
btlChance = 0;
minSteps = 5;
levelrange = [1, 1];
musicTrack = ((plotVars.PossessCut == 10) ? "Rohoph" : "none");
clearmap = 1;
AreaSetup();
Frame 42
map = [[2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 4, 1, 4, 1, 1, 1, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 4, 1, 4, 1], [1, 4, 1, 5, 4, 1, 1, 4, 1, 1, 4, 1, 12, 5, 1, 5, 12, 6, 7, 5, 2, 2, 2, 2, 2, 2, 1, 5, 1, 5, 1, 5, 5, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 5, 12, 5, 1], [1, 5, 1, 1, 5, 1, 1, 5, 1, 1, 5, 1, 0, 0, 0, 0, 0, 8, 8, 8, 2, 2, 2, 2, 2, 2, 1, 1, 12, 1, 1, 1, 12, 1, 5, 1, 12, 1, 1, 1, 12, 1, 5, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 9, 9, 9, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 8, 8, 8, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 8, 8, 8, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 2, 2, 2, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 8, 8, 8, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 2, 3, 2, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 2, 3, 2, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 4, 1, 5, 2, 2, 2, 0, 0, 0, 0, 0], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 8, 5, 0, 1, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 0, 0, 1, 5, 1, 1, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 1, 1, 1, 5, 1, 1, 8, 8, 8, 8, 12, 0, 12, 8, 8, 8, 8, 2, 2, 2, 2, 2, 2, 0, 0, 0, 4, 4, 2, 2, 2, 4, 4, 0, 0, 6, 7, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 5, 12, 1, 1, 12, 1, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 1, 5, 5, 1, 1, 1, 0, 0, 0, 5, 5, 2, 2, 2, 5, 5, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 0, 0, 0, 0, 0, 8, 8, 8, 1, 12, 1, 1, 12, 5, 0, 0, 0, 6, 7, 2, 2, 2, 6, 7, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 2, 2, 2, 8, 8, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 1, 4, 1, 8, 8, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 4, 0, 4, 2], [0, 0, 0, 2, 2, 2, 2, 2, 2, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 1, 5, 1, 8, 8, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 5, 0, 5, 2], [0, 0, 0, 1, 1, 5, 1, 1, 1, 8, 8, 8, 9, 9, 9, 9, 11, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 11, 8, 8, 0, 0, 2, 2, 2, 2, 0, 0, 0, 2], [0, 0, 0, 1, 12, 1, 12, 1, 5, 8, 8, 8, 8, 8, 8, 8, 11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 11, 8, 8, 0, 0, 2, 2, 2, 2, 0, 0, 0, 2], [0, 0, 0, 9, 9, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 11, 8, 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 0, 0, 0, 2], [0, 0, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 11, 8, 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 0, 0, 0, 2], [0, 0, 0, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 11, 8, 8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 8, 8, 0, 0, 2, 2, 2, 2, 2, 0, 2, 2], [2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 8, 2, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 5, 1, 0, 0, 8, 8, 0, 0, 1, 5, 1, 1, 1, 0, 1, 1], [2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 8, 2, 2, 2, 2, 2, 0, 0, 0, 1, 1, 12, 1, 1, 12, 1, 1, 12, 5, 1, 12, 1, 1, 12, 1, 0, 0, 8, 8, 0, 0, 1, 1, 12, 1, 1, 0, 12, 5], [2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 8, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 8, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 8, 8, 2, 2, 2, 2, 2, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]];
tileset = "t_sewer";
area = "sewer1";
areaname = "Goznor Sewer L1";
A_sprites = [{name:"Big Door", model:"DOORY", x:14, y:1, lock:"lock", dest:["sewer2", 3, 6]}, {name:"Exit", model:"area_transition", x:14, y:8, dir:"e", dest:["goznor", 22, 1]}];
areaLoot = [{x:7, y:24, type:"item", amount:5, item:"Antidote"}, {x:21, y:15, type:"gold", amount:74}, {x:40, y:11, type:"item", amount:2, item:"Potion"}, {x:41, y:11, type:"accs", amount:1, item:"CopperRing"}];
foes = [["Fumerat", null, null, null, "SOLO"], ["Fumerat", "Fumerat", null, null, "DUO"], ["Fumerat", "Fumerat", "Fumerat", null, "TRIO"]];
btlChance = 2;
minSteps = 5;
levelrange = [1, 1];
musicTrack = "Dungeon1";
AreaSetup();
Frame 43
_quality = "MEDIUM";
var x = 0;
var y = 0;
var i = 0;
while (i < P_party.length) {
if (P_party[i] != null) {
calculateStats(P_party[i]);
var N = ("p" + (i + 1));
party_cont.attachMovie("B_MODEL", N, (100 + (100 * y)) + x);
party_cont[N]._x = (50 * x) + 40;
party_cont[N]._y = (65 * y) + 30;
party_cont[N].mcircle._visible = false;
x++;
if (x > 7) {
x = 0;
y++;
}
}
i++;
}
SELECTED = party_cont.p1;
party_cont.p1.shd.gotoAndStop(3);
person_box.DisplayStats(P_party[0]);
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 43
on (press) {
_root.ReturnToGame(-1);
}
Frame 44
_quality = "HIGH";
calculateStats(Sstats);
ClearBattlefield("no_stats");
var _st = ["STR", "VIT", "SPR", "AGL", "DEF", "MDEF"];
var i = 0;
while (i < _st.length) {
_root[_st[i] + "_"] = int(Sstats[_st[i]]);
var E = (isNaN(Sstats.statEnhn[_st[i]]) ? 0 : (Sstats.statEnhn[_st[i]]));
_root[_st[i] + "_"] = ((("<font color='" + (((E > 0) && (E != null)) ? "#FEDB74" : (((Sstats.BONUS[_st[i]] > 0) ? "#88ff88" : (((Sstats.BONUS[_st[i]] < 0) ? "#EF2E2E" : "#E8E2C6")))))) + "'>") + (((int(Sstats[_st[i]]) + E) < 1) ? ((((_st[i] == "DEF") || (_st[i] == "MDEF")) ? 0 : 1)) : (int(Sstats[_st[i]]) + E))) + "</font>";
var s = Sstats.BONUS[_st[i]];
_root[_st[i] + "bonus"] = ((s == 0) ? "" : ((((s > 0) ? "<font color='#00ddff'>+" : "<font color='#cc5555'>") + s) + "</font>"));
i++;
}
var _rs = ELEMENTS_.concat(STATUSES_);
var i = 0;
while (i < _rs.length) {
var res = Sstats.RESIST[_rs[i]];
_root["r_" + _rs[i]] = (((res == undefined) || (res == 0)) ? "<font color='#555555'>0" : (((res > 100) ? ("<font color='#77ff00'>" + res) : (((res < 0) ? ("<font color='#cc5555'>" + Math.abs(res)) : ("<font color='#00ddff'>" + res)))))) + "%</font>";
i++;
}
ATK_ = _root.ATK2String(((Sstats.weapon != "none") ? (_root.GetItemInfo(_root.Sstats.weapon).atk) : (Sstats.nAtk)));
var equips = ["weapon", "shield", "helmet", "armour", "accessory", "accessory2"];
var i = 0;
while (i < equips.length) {
_root[equips[i] + "_"] = (Sstats[equips[i]].name ? (Sstats[equips[i]].name) : (((Sstats[equips[i]] == "none") ? "-" : (Sstats[equips[i]]))));
i++;
}
tnl = 1000 * Sstats.level;
EXP_ = (Sstats.exp + "/") + tnl;
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 44
on (press) {
_root.conv.as.emState = "norm";
if (_root.battling) {
_quality = _root.OPTIONS.btlQuality;
_root.FADER_.FadeTrans("_battle_c");
} else {
_root.FADER_.FadeTrans("_Party");
}
}
Instance of Symbol 3959 MovieClip [_portrait] "portr" in Frame 44
onClipEvent (load) {
mystats = _root.Sstats;
this.isPC = _root.S_ID == 1;
this.ID = _root.S_ID;
_root.conv.as.emState = "norm";
}
Instance of Symbol 4149 MovieClip "HPbar" in Frame 44
onClipEvent (load) {
function Stuff() {
_parent.HP_ = ((_root.Sstats.hp[0] > 9999) ? "????" : ((_root.Sstats.hp[1] + "/") + _root.Sstats.hp[0]));
this.gotoAndStop(int(100 - ((_root.Sstats.hp[1] / _root.Sstats.hp[0]) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4156 MovieClip "MPbar" in Frame 44
onClipEvent (load) {
function Stuff() {
_parent.MP_ = (_root.Sstats.mp[1] + "/") + _root.Sstats.mp[0];
this.gotoAndStop(int(100 - ((_root.Sstats.mp[1] / _root.Sstats.mp[0]) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 2864 MovieClip "elemglyph" in Frame 44
onClipEvent (load) {
this._visible = _root.Sstats.element != undefined;
this.gotoAndStop(_root.Sstats.element);
}
Instance of Symbol 4177 MovieClip "EXPbar" in Frame 44
onClipEvent (load) {
function Stuff() {
this.gotoAndStop(int(100 - ((_root.Sstats.exp / (_root.Sstats.level * 1000)) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 1026 MovieClip [ITEM_] "shld" in Frame 44
onClipEvent (load) {
if (_root.Sstats.shield == "none") {
_visible = false;
}
AMOUNT = "";
this.gotoAndStop(_root.GetItemInfo(_root.Sstats.shield).type);
this.img.gotoAndStop(_root.Sstats.shield);
}
Instance of Symbol 752 MovieClip [helm] "helm" in Frame 44
onClipEvent (load) {
this.gotoAndStop(_root.Sstats.helmet);
}
Instance of Symbol 795 MovieClip [armr] "armr" in Frame 44
onClipEvent (load) {
this.gotoAndStop(_root.Sstats.armour);
}
Instance of Symbol 838 MovieClip [accs] "accs" in Frame 44
onClipEvent (load) {
this.gotoAndStop(_root.Sstats.accessory);
}
Instance of Symbol 838 MovieClip [accs] "accs2" in Frame 44
onClipEvent (load) {
this.gotoAndStop(_root.Sstats.accessory2);
}
Instance of Symbol 1026 MovieClip [ITEM_] "wepn" in Frame 44
onClipEvent (load) {
if (_root.Sstats.weapon == "none") {
_visible = false;
}
AMOUNT = "";
this.gotoAndStop(_root.GetItemInfo(_root.Sstats.weapon).type);
this.img.gotoAndStop(_root.Sstats.weapon);
}
Instance of Symbol 2864 MovieClip "FIRE" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "AIR" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "EARTH" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "WATER" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "LIGHT" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "DARK" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "ETHER" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 2864 MovieClip "FIG" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "PSN" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "CNF" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "CRS" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "DRK" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "SIL" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "SLP" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "PAR" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "NUM" in Frame 44
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 524 MovieClip [empty] "stfx_list" in Frame 44
onClipEvent (load) {
var s = 0;
while (s < _root.Sstats.status.length) {
this.attachMovie("status_fx", "s" + s, 100 + s);
this["s" + s].gotoAndStop(_root.Sstats.status[s]);
this["s" + s]._x = (s % 4) * 20;
this["s" + s]._y = Math.floor(s / 4) * 20;
s++;
}
}
Frame 47
function ShowSkills() {
MPorKey = ((Mtype == "ACT") ? "MP" : "KEY");
SELECTED = _root["PCstats_" + selPC];
for (o in A_list) {
A_list[o].removeMovieClip();
}
var _local5 = _root.GetTechInfo(_root.classStats[_root.SELECTED.model].tech).skills;
var _local10 = -1;
var _local4 = 0;
while (_local4 < _local5.length) {
if (_local5[_local4].type != Mtype) {
} else {
_local10++;
if ((SELECTED.learned[_local5[_local4].skill] == null) && (!HasSkillOnEquipment(SELECTED, _local5[_local4].skill))) {
} else {
var _local3 = "A" + _local4;
A_list.attachMovie("B_AbilityThing", _local3, 100 + _local4);
A_list[_local3].dulled = true;
if (_local5[_local4].menuse && (SELECTED.mp[1] >= _local5[_local4].MP)) {
A_list[_local3].dulled = false;
}
A_list[_local3].gotoAndStop(((!A_list[_local3].dulled) ? 1 : "dull"));
A_list[_local3]._y = 18 * _local10;
A_list[_local3].ability = _local5[_local4].skill;
A_list[_local3].mp = ((_local5[_local4].MP == null) ? "" : (_local5[_local4].MP));
if (Mtype != "ACT") {
var _local9 = (substring(Mtype, 3, -1)).toLowerCase();
var _local6 = {A:65, S:83, D:68};
for (o in _local6) {
if (SELECTED.reactions[_local9]["R" + _local6[o]] == _local5[_local4].skill) {
A_list[_local3].mp = o;
}
}
}
A_list[_local3].elem.gotoAndStop(_local5[_local4].elem);
A_list[_local3].skill = _local5[_local4];
var _local8 = _root.SELECTED.learned[_local5[_local4].skill];
if (_local8 == null) {
_local8 = 0;
}
if (_local8 >= _local5[_local4].AP) {
A_list[_local3].MASTERED._visible = true;
A_list[_local3].APbar._visible = false;
A_list[_local3].AP = "";
} else {
A_list[_local3].MASTERED._visible = false;
A_list[_local3].APbar.gotoAndStop((100 - int((_local8 / _local5[_local4].AP) * 100)) + 1);
A_list[_local3].AP = (_local8 + "/") + _local5[_local4].AP;
if (!HasSkillOnEquipment(SELECTED, _local5[_local4].skill)) {
A_list[_local3]._alpha = 30;
}
}
A_list[_local3].onRollOver = function () {
this.gotoAndStop(2);
_root.Exbox.SPELLNAME = this.skill.skill;
_root.Exbox.effect = ((_root.Mtype == "ACT") ? "POW:" : "REACTION");
_root.Exbox.pow = _root.ATK2String2(this.skill.DMG, {stats:_root["PCstats_" + _root.selPC]});
_root.Exbox.elem.gotoAndStop(this.skill.elem);
_root.Exbox.elem._visible = true;
_root.Exbox.DESC = this.skill.desc;
_root.Exbox.phys_mag._visible = true;
_root.Exbox.phys_mag.gotoAndStop(this.skill.MODE);
};
A_list[_local3].onRollOut = function () {
this.gotoAndStop((this.skill.menuse ? 1 : "dull"));
_root.Exbox.Clear();
};
A_list[_local3].onPress = function () {
if (_root.Mtype != "ACT") {
var _local3 = {A:65, S:83, D:68};
if ((Key.isDown(_local3.A) || (Key.isDown(_local3.S))) || (Key.isDown(_local3.D))) {
var _local4 = (Key.isDown(_local3.A) ? "A" : ((Key.isDown(_local3.S) ? "S" : "D")));
if (this.mp == _local4) {
_root.SELECTED.reactions[(substring(_root.Mtype, 3, -1)).toLowerCase()]["R" + _local3[_local4]] = null;
this.mp = "";
return(undefined);
}
for (var _local5 in this._parent) {
if (this._parent[_local5].mp == _local4) {
this._parent[_local5].mp = "";
}
}
for (var _local5 in _local3) {
if (_root.SELECTED.reactions[(substring(_root.Mtype, 3, -1)).toLowerCase()]["R" + _local3[_local5]] == this.ability) {
_root.SELECTED.reactions[(substring(_root.Mtype, 3, -1)).toLowerCase()]["R" + _local3[_local5]] = null;
}
}
this.mp = _local4;
_root.SELECTED.reactions[(substring(_root.Mtype, 3, -1)).toLowerCase()]["R" + _local3[_local4]] = this.ability;
return(undefined);
}
return(undefined);
}
if (((this._alpha < 70) || (this.dulled == true)) || (_root.spellCasting)) {
_root.playSFX("error");
return(undefined);
}
_root.spellCasting = this.skill;
_root.CastMSpell();
};
}
}
_local4++;
}
skillElem._visible = false;
Sname = _root.GetTechInfo(_root.classStats[_root.SELECTED.model].tech).name;
Sdesc = _root.GetTechInfo(_root.classStats[_root.SELECTED.model].tech).desc;
}
function CastMSpell() {
_root.CURSOR_.gotoAndStop("spell");
_root.CURSOR_.sparkle.elem = spellCasting.elem;
}
function UseSpellOn(person) {
var _local6 = _root["PCstats_" + person];
var _local3 = spellCasting;
if (((!_local3.special.HEALING) || (_root["PCstats_" + person].hp[1] <= 0)) || ((_root["PCstats_" + person].hp[1] >= _root["PCstats_" + person].hp[0]) && (_local3.stfx[_root["PCstats_" + person].status] == null))) {
playSFX("error");
return(undefined);
}
var _local4 = "none";
if (_local3.stfx[_root["PCstats_" + person].status] != null) {
_local4 = "stfx";
_root["PCstats_" + person].status = 0;
}
if (_root["PCstats_" + person].hp[1] < _root["PCstats_" + person].hp[0]) {
var _local5 = random((_local3.DMG[1] - _local3.DMG[0]) + 1) + _local3.DMG[0];
_root["PCstats_" + person].hp[1] = _root["PCstats_" + person].hp[1] + _local5;
if (_root["PCstats_" + person].hp[1] > _root["PCstats_" + person].hp[0]) {
_root["PCstats_" + person].hp[1] = _root["PCstats_" + person].hp[0];
}
_local4 = "heal";
}
playSFX("Cure");
Flash(_root["p_" + person], ((_local4 == "stfx") ? ([255, 155, 0]) : (((_local4 == "heal") ? ([160, 255, 0]) : ([255, 155, 0])))));
_root["PCstats_" + selPC].mp[1] = _root["PCstats_" + selPC].mp[1] - _local3.MP;
_root.CURSOR_.gotoAndStop(1);
spellCasting = undefined;
RefreshSpells();
}
Mtype = "ACT";
MtypeB = "Action";
selPC = 1;
altText = "";
spellCasting = undefined;
_quality = "MEDIUM";
ShowSkills();
Instance of Symbol 4315 MovieClip "p_1" in Frame 47
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.selPC == ID) ? 2 : 1));
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (rollOver) {
_root.PCsel_ = ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
_root.Exbox.Clear();
}
on (press) {
if (_root.spellCasting) {
_root.UseSpellOn(ID);
} else {
_root.selPC = ID;
_root.ShowSkills();
}
}
Instance of Symbol 4315 MovieClip "p_2" in Frame 47
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.selPC == ID) ? 2 : 1));
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (rollOver) {
_root.PCsel_ = ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
_root.Exbox.Clear();
}
on (press) {
if (_root.spellCasting) {
_root.UseSpellOn(ID);
} else {
_root.selPC = ID;
_root.ShowSkills();
}
}
Instance of Symbol 4315 MovieClip "p_3" in Frame 47
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.selPC == ID) ? 2 : 1));
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (rollOver) {
_root.PCsel_ = ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
_root.Exbox.Clear();
}
on (press) {
if (_root.spellCasting) {
_root.UseSpellOn(ID);
} else {
_root.selPC = ID;
_root.ShowSkills();
}
}
Instance of Symbol 4315 MovieClip "p_4" in Frame 47
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.selPC == ID) ? 2 : 1));
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (rollOver) {
_root.PCsel_ = ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
_root.Exbox.Clear();
}
on (press) {
if (_root.spellCasting) {
_root.UseSpellOn(ID);
} else {
_root.selPC = ID;
_root.ShowSkills();
}
}
Instance of Symbol 4156 MovieClip "MPbar" in Frame 47
onClipEvent (load) {
function Stuff() {
_parent.MP_ = (_root["PCstats_" + _root.selPC].mp[1] + "/") + _root["PCstats_" + _root.selPC].mp[0];
this.gotoAndStop((100 - int((_root["PCstats_" + _root.selPC].mp[1] / _root["PCstats_" + _root.selPC].mp[0]) * 100)) + 1);
_root.selPC_name = _root["PCstats_" + _root.selPC].name;
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 47
on (press) {
if (_root.spellCasting) {
_root.playSFX("error");
return(undefined);
}
_root.ReturnToGame(-1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Action" in Frame 47
onClipEvent (load) {
TYPE = "ACT";
noRoll = true;
this.gotoAndStop("lit");
}
on (press) {
if (_root.spellCasting) {
_root.playSFX("error");
return(undefined);
}
_root[_root.MtypeB].gotoAndStop(1);
_root.MtypeB = _name;
_root.Mtype = TYPE;
_root.ShowSkills();
this.gotoAndStop("lit");
}
on (rollOver) {
_root.MiscExamine = ["ALL", "Shows all spell types."];
}
on (rollOut) {
_root.MiscExamine = undefined;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "[R] Offence" in Frame 47
onClipEvent (load) {
TYPE = "R_ATK";
noRoll = true;
this.gotoAndStop(1);
}
on (press) {
if (_root.spellCasting) {
_root.playSFX("error");
return(undefined);
}
_root[_root.MtypeB].gotoAndStop(1);
_root.MtypeB = _name;
_root.Mtype = TYPE;
_root.ShowSkills();
this.gotoAndStop("lit");
}
on (rollOver) {
_root.MiscExamine = ["ALL", "Shows all spell types."];
}
on (rollOut) {
_root.MiscExamine = undefined;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "[R] Defence" in Frame 47
onClipEvent (load) {
TYPE = "R_DEF";
noRoll = true;
this.gotoAndStop(1);
}
on (press) {
if (_root.spellCasting) {
_root.playSFX("error");
return(undefined);
}
_root[_root.MtypeB].gotoAndStop(1);
_root.MtypeB = _name;
_root.Mtype = TYPE;
_root.ShowSkills();
this.gotoAndStop("lit");
}
on (rollOver) {
_root.MiscExamine = ["ALL", "Shows all spell types."];
}
on (rollOut) {
_root.MiscExamine = undefined;
}
Instance of Symbol 524 MovieClip [empty] "A_list" in Frame 47
onClipEvent (enterFrame) {
if (_root.spellCasting) {
if ((((_root._xmouse > (Stage.width - 20)) || (_root._xmouse < 20)) || (_root._ymouse > (Stage.height - 20))) || (_root._ymouse < 10)) {
_root.spellCasting = false;
_root.CURSOR_.gotoAndStop(1);
}
}
}
Instance of Symbol 4397 MovieClip "Exbox" in Frame 47
onClipEvent (load) {
function Clear() {
elem._visible = false;
SPELLNAME = "-";
effect = "-";
pow = "";
DESC = "";
phys_mag._visible = false;
}
_visible = false;
this.gotoAndStop("spell");
Clear();
}
onClipEvent (enterFrame) {
_visible = Key.isDown(69);
this.gotoAndStop(((_root.PCsel_ != undefined) ? 2 : "spell"));
}
Frame 52
function RefillRootInventory() {
_root.inventory = new Array(24);
var _local2 = 0;
while (_local2 < 56) {
var _local3 = _root.inventory_filler["slot" + _local2];
_root.inventory[_local2] = ((_local3.ITEM == undefined) ? null : ({item:_local3.ITEM, amount:_local3.AMOUNT}));
_local2++;
}
}
_quality = "MEDIUM";
DItem = undefined;
if (PCstats_1.inventory == undefined) {
PCstats_1.inventory = inventory;
}
if (PCstats_2.inventory == undefined) {
PCstats_2.inventory = new Array(24);
}
if (PCstats_3.inventory == undefined) {
PCstats_3.inventory = new Array(24);
}
if (PCstats_4.inventory == undefined) {
PCstats_4.inventory = new Array(24);
}
selInv = 1;
inventory = PCstats_1.inventory;
eqPC1.gotoAndStop(3);
Instance of Symbol 4443 MovieClip "eqPC1" in Frame 52
onClipEvent (load) {
ID = 1;
}
Instance of Symbol 4443 MovieClip "eqPC2" in Frame 52
onClipEvent (load) {
ID = 2;
}
Instance of Symbol 4443 MovieClip "eqPC3" in Frame 52
onClipEvent (load) {
ID = 3;
}
Instance of Symbol 4445 MovieClip in Frame 52
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "inventory_filler" in Frame 52
onClipEvent (load) {
function RefreshInventory() {
for (o in this) {
this[o].removeMovieClip();
}
var _local3 = 0;
while (_local3 < 56) {
var _local4 = "slot" + _local3;
this.attachMovie("ItemSlot", _local4, 100 + _local3);
this[_local4]._x = (_local3 % 14) * 30;
this[_local4]._y = Math.floor(_local3 / 14) * 30;
this[_local4].ITEM = _root.inventory[_local3].item;
this[_local4].AMOUNT = _root.inventory[_local3].amount;
_local3++;
}
}
RefreshInventory();
}
Instance of Symbol 4452 MovieClip in Frame 52
on (press) {
if (_root.DItem != undefined) {
if (_root.GetItemInfo(_root.DItem[0]).cost == -1) {
_root.playSFX("error");
return(undefined);
}
_root.DItem = undefined;
_root.CURSOR_.gotoAndStop(1);
}
}
on (rollOver) {
if (_root.DItem != undefined) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Key Items" in Frame 52
on (press) {
if (_root.DItem != undefined) {
_root.playSFX("error");
return(undefined);
}
_root.RefillRootInventory();
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
_root.selInv = 1;
_root.inventory = _root.PCstats_1.inventory;
_root.FADER_.FadeTrans(_root._currentframe + 1);
}
Instance of Symbol 524 MovieClip [empty] "numswitcher" in Frame 52
onClipEvent (load) {
function First() {
_root.RefillRootInventory();
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
_root["eqPC" + _root.selInv].gotoAndStop(2);
}
function Second() {
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_root["eqPC" + _root.selInv].gotoAndStop(3);
_root.inventory_filler.RefreshInventory();
}
}
on (keyPress "<Left>") {
First();
_root.selInv--;
if (_root.selInv < 1) {
_root.selInv = 4;
}
while (_root["PCstats_" + _root.selInv].model == null) {
_root.selInv--;
}
Second();
}
on (keyPress "<Right>") {
First();
_root.selInv++;
if ((_root.selInv > 4) || (_root["PCstats_" + _root.selInv].model == null)) {
_root.selInv = 1;
}
Second();
}
Instance of Symbol 4455 MovieClip "p1a1" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = ((_root.selInv == 1) && (_root.PCstats_2.model != null));
}
Instance of Symbol 4455 MovieClip "p2a2" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = ((_root.selInv == 2) && (_root.PCstats_3.model != null));
}
Instance of Symbol 4455 MovieClip "p3a1" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = ((_root.selInv == 3) && (_root.PCstats_2.model != null));
}
Instance of Symbol 4455 MovieClip "p2a1" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = ((_root.selInv == 2) && (_root.PCstats_1.model != null));
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 52
on (press) {
if (_root.DItem != undefined) {
_root.playSFX("error");
return(undefined);
}
_root.RefillRootInventory();
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
_root.selInv = 1;
_root.inventory = _root.PCstats_1.inventory;
_quality = "LOW";
_root.ReturnToGame(-1);
}
Instance of Symbol 4443 MovieClip "eqPC4" in Frame 52
onClipEvent (load) {
ID = 4;
}
Instance of Symbol 4455 MovieClip "p3a2" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = ((_root.selInv == 3) && (_root.PCstats_4.model != null));
}
Instance of Symbol 4455 MovieClip "p4a1" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (_root.selInv == 4);
}
Instance of Symbol 4397 MovieClip "Exbox" in Frame 52
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = ((Key.isDown(69) || (Key.isDown(65))) || (Key.isDown(80)));
if (Key.isDown(65)) {
this.gotoAndStop(5);
return(undefined);
}
if (_root.PCsel_ != undefined) {
this.gotoAndStop(2);
return(undefined);
}
var info = _root.GetItemInfo(_root.RItem);
this.gotoAndStop(((info.type == "wepn") ? "CheckWpn" : 1));
ITEMNAME = ((_root.RItem == undefined) ? "-" : (_root.RItem));
if (info.type == "wepn") {
dmg = _root.ATK2String(info.atk);
ELEM = info.elem;
wpnType = info.wpnType;
DESC = info.desc;
} else {
Mstat = ((_root.RItem == undefined) ? "" : (((info.type == "hilt") ? "GEMS:" : ((((_root.RItem.name || (info.type == "blad")) || (info.type == "claw")) ? "DMG:" : (((((((info.type == "item") || (info.type == "plot")) || (info.type == "gems")) || (info.type == "misc")) || (info.type == "soul")) ? "" : "DEF:")))))));
Mstat2 = ((info.mdef != null) ? "M.DEF:" : "");
inc = ((_root.RItem == undefined) ? "" : (((((((info.type == "item") || (info.type == "plot")) || (info.type == "gems")) || (info.type == "misc")) || (info.type == "soul")) ? "" : ((((info.type == "blad") || (info.type == "claw")) ? ((info.dmg[0] + "-") + info.dmg[1]) : (((info.type == "hilt") ? (info.gems) : ((_root.RItem.name ? ((_root.GetWeaponStats(_root.RItem).dmg[0] + "-") + _root.GetWeaponStats(_root.RItem).dmg[1]) : (info.def))))))))));
inc2 = ((info.mdef != null) ? (info.mdef) : "");
DESC = ((_root.RItem == undefined) ? "-" : (info.desc));
ELEM = info.elem;
}
if (Key.isDown(80)) {
gotoAndStop ("CheckProps");
CheckProps(_root.RItem);
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Inventory" in Frame 53
on (press) {
_root.FADER_.FadeTrans(_root._currentframe - 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 53
on (press) {
_quality = "LOW";
_root.ReturnToGame(-1);
}
Instance of Symbol 487 MovieClip [empty] "inventory_filler" in Frame 53
onClipEvent (load) {
var a = -1;
var i = 0;
while (i < _root.plotVars.ITEMS.length) {
if (_root.plotVars.ITEMS[i] == null) {
} else {
a++;
var N = ("slot" + i);
this.attachMovie("ItemSlot", N, 100 + i);
this[N]._x = (a % 8) * 35;
this[N]._y = Math.floor(a / 12) * 35;
this[N].ITEM = _root.plotVars.ITEMS[i];
this[N].AMOUNT = "";
this[N].plot = true;
this[N].gotoAndStop("plot2");
}
i++;
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "All" in Frame 55
on (press) {
_root.ShowItems("all");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Weapons" in Frame 55
on (press) {
_root.ShowItems("wepn");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Shields" in Frame 55
on (press) {
_root.ShowItems("shld");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Armour" in Frame 55
on (press) {
_root.ShowItems("armr");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Helmets" in Frame 55
on (press) {
_root.ShowItems("helm");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Accessories" in Frame 55
on (press) {
_root.ShowItems("accs");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Items" in Frame 55
on (press) {
_root.ShowItems("item");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Plot Items" in Frame 55
on (press) {
_root.ShowItems("plot");
}
Frame 57
function DisplayQuests() {
var _local4 = 0;
Qdescription = "";
for (o in questList) {
questList[o].removeMovieClip();
}
i = 0;
while (i < quests.length) {
if (((d_quests == "Active") && (quests[i].done)) || ((d_quests == "Completed") && (!quests[i].done))) {
} else {
qn = "Q" + i;
questList.attachMovie("Quest_entry", qn, 10 + i);
questList[qn].DONE = quests[i].done;
questList[qn]._y = 25 * (_local4++);
questList[qn].TITLE = _root.GetQuest(quests[i].ID).title;
var _local3 = _root.GetQuest(quests[i].ID).title1;
questList[qn].TITLEC = _local3;
questList[qn].desc = _root.GetQuest(quests[i].ID).body;
questList[qn].onPress = function () {
_root.Qdescription = (("<font size='+1'>" + this.TITLE) + "</font><br><br>") + this.desc;
};
questList[qn].onRollOver = function () {
this.gotoAndStop("lit");
};
questList[qn].onRollOut = function () {
this.gotoAndStop(1);
};
}
i++;
}
}
Qdescription = "";
d_quests = "Active";
DisplayQuests();
Instance of Symbol 3984 MovieClip [MENU_btn] "Completed" in Frame 57
onClipEvent (load) {
noRoll = true;
this.gotoAndStop("dulled");
}
on (press) {
_root.d_quests = _name;
this.gotoAndStop("lit");
_root.DisplayQuests();
}
onClipEvent (enterFrame) {
if (_root.d_quests != _name) {
_alpha = 50;
this.gotoAndStop("dulled");
} else {
_alpha = 100;
if (_currentframe == 11) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Active" in Frame 57
onClipEvent (load) {
noRoll = true;
}
on (press) {
_root.d_quests = _name;
this.gotoAndStop("lit");
_root.DisplayQuests();
}
onClipEvent (enterFrame) {
if (_root.d_quests != _name) {
_alpha = 50;
this.gotoAndStop("dulled");
} else {
_alpha = 100;
if (_currentframe == 11) {
this.gotoAndStop(1);
}
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 57
on (press) {
_root.ReturnToGame(-1);
}
Frame 62
Y_name = ((username == undefined) ? "-" : (username));
playtime_c = "";
playtime_c = playtime_c + (((playtime[0] < 10) ? ("0" + playtime[0]) : (playtime[0])) + ":");
playtime_c = playtime_c + (((playtime[1] < 10) ? ("0" + playtime[1]) : (playtime[1])) + ":");
playtime_c = playtime_c + ((playtime[2] < 10) ? ("0" + playtime[2]) : (playtime[2]));
var Tfound = (((((plotVars.tFound + "/") + totalTreasure) + " (") + int((plotVars.tFound / totalTreasure) * 100)) + "%)");
numerals = ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", "XIII", "XIV", "XV", "XVI", "XVII", "XVIII", "XIX", "XX"];
CHAPTER_ = ((plotVars.CHAPTER == 0) ? "Prelude" : ("Chapter " + numerals[plotVars.CHAPTER - 1]));
if (DUNGEONMODE) {
nextFrame();
}
for (o in plotVars.THS) {
this[o] = plotVars.THS[o];
}
Frame 67
function addMarker(elem, x, y, markerOf) {
var _local6 = ((1000 * y) + x) + 300;
var _local3 = 0;
while (minimap["m" + _local3]._visible) {
_local3++;
}
minimap.attachMovie("elemOrb", "m" + _local3, _local6);
minimap["m" + _local3].gotoAndStop(elem);
minimap["m" + _local3]._width = (minimap["m" + _local3]._height = Tsize);
if (_root.areaname == "WORLDMAP") {
minimap["m" + _local3]._x = ((Tsize * ((x < 0) ? ((x % (-_root.map[0].length)) + _root.map[0].length) : (x % _root.map[0].length))) + TXoffset) + (Tsize / 2);
minimap["m" + _local3]._y = ((Tsize * ((y < 0) ? ((y % (-_root.map.length)) + _root.map.length) : (y % _root.map.length))) + TYoffset) + (Tsize / 2);
} else {
minimap["m" + _local3]._x = (Tsize * x) + TXoffset;
minimap["m" + _local3]._y = (Tsize * y) + TYoffset;
}
minimap["m" + _local3].NAME = markerOf;
minimap["m" + _local3].onRollOver = function () {
_root.markerSpec = this.NAME;
};
minimap["m" + _local3].onRollOut = function () {
_root.markerSpec = "";
};
}
function DrawMinimap(row) {
mapMode = true;
var _local6 = 340;
var _local5 = 210;
Tsize = ((_root.map.length > _root.map[0].length) ? (_local5 / _root.map.length) : (_local6 / _root.map[0].length));
if (Tsize > (tilesize * 0.5)) {
Tsize = tilesize * 0.5;
}
TXoffset = (_local6 - (Tsize * _root.map[0].length)) / 2;
TYoffset = (_local5 - (Tsize * _root.map.length)) / 2;
if ((row == undefined) || (row < _root.map.length)) {
}
var _local4 = _root.cont.PC.getCoords();
addMarker("fire", _local4[0], _local4[1], PCstats_1.name);
var _local3 = 2;
while (_local3 <= 3) {
if (_root.cont["PC_" + _local3]._visible) {
_local4 = _root.cont["PC_" + _local3].getCoords();
addMarker("water", _local4[0], _local4[1], _root["PCstats_" + _local3].name);
}
_local3++;
}
for (o in _root.cont) {
if (((substring(_root.cont[o]._name, 1, 2)) != "t_") && ((substring(_root.cont[o]._name, 1, 10)) != "torchlight")) {
var _local2 = _root.cont[o];
if (((((substring(_local2._name, 1, 2)) != "PC") && (!((_local2._x == 0) && (_local2._y == 0)))) && (_local2._x != undefined)) && (_local2.props.model != "_trigger")) {
if ((_local2.props.dest != null) && (_root.plotVars.MAPS_REVEALED[_local2.props.dest[0]] == null)) {
continue;
}
_local4 = _local2.getCoords();
addMarker(((_local2.props.dest != undefined) ? "air" : ((_local2.TREASURE ? "fig" : "earth"))), _local4[0], _local4[1], (_local2.TREASURE ? "Treasure" : (_root.cont[o]._name)));
}
}
}
mapStatus = "";
}
_quality = "MEDIUM";
markerSpec = "";
Instance of Symbol 1243 MovieClip [empty] "mapDrawer" in Frame 67
onClipEvent (load) {
_root.mapStatus = "Drawing...";
bigmap = (_root.map.length > 50) || (_root.map[0].length > 50);
count = 0;
drawnmap = false;
}
onClipEvent (enterFrame) {
if (bigmap && ((count + 1) < _root.map.length)) {
count++;
_root.DrawMinimap(count);
} else if ((!drawnmap) && (!bigmap)) {
drawnmap = true;
_root.DrawMinimap();
}
}
Instance of Symbol 524 MovieClip [empty] "minimap" in Frame 67
/* no clip actions */
Frame 68
function addMarker(elem, x, y, markerOf) {
if ((_root.plotVars.MAPS_REVEALED[_root.area] != "FULL") && (!_root.plotVars.MAPS_REVEALED[_root.area][y][x])) {
return(undefined);
}
var _local6 = ((1000 * y) + x) + 300;
var _local3 = 0;
while (minimap["m" + _local3]._visible) {
_local3++;
}
minimap.attachMovie("mapbit", "m" + _local3, _local6);
minimap["m" + _local3].gotoAndStop(((elem == "pc") ? ("PC_" + lastDir) : (elem)));
minimap["m" + _local3]._width = (minimap["m" + _local3]._height = Tsize);
if (_root.areaname == "WORLDMAP") {
minimap["m" + _local3]._x = Tsize * ((x < 0) ? ((x % (-_root.map[0].length)) + _root.map[0].length) : (x % _root.map[0].length));
minimap["m" + _local3]._y = Tsize * ((y < 0) ? ((y % (-_root.map.length)) + _root.map.length) : (y % _root.map.length));
} else {
minimap["m" + _local3]._x = Tsize * x;
minimap["m" + _local3]._y = Tsize * y;
}
minimap["m" + _local3].NAME = markerOf;
minimap["m" + _local3].onRollOver = function () {
if (this.NAME != null) {
_root.markerSpec = this.NAME;
}
};
minimap["m" + _local3].onRollOut = function () {
_root.markerSpec = "";
};
}
function TileIsType(tile) {
var _local4 = ["lava", "water", "pit", "obj", "wall", "valid"];
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = 0;
while (_local2 < _root.tiletypes[tileset][_local4[_local3]].length) {
if (tile == _root.tiletypes[tileset][_local4[_local3]][_local2]) {
return(_local4[_local3]);
}
_local2++;
}
_local3++;
}
return("none");
}
function DrawMinimap(row) {
mapMode = true;
if (!dm_setupOnce) {
dm_setupOnce = true;
var W = 340;
var H = 210;
Tsize = 5;
if ((Tsize * map[0].length) > W) {
Tsize = (W / map[0].length) + 0.08;
}
if ((Tsize * map.length) > H) {
Tsize = (H / map.length) + 0.08;
}
minimap._x = minimap._x - ((Tsize * map[0].length) / 2);
minimap._y = minimap._y - ((Tsize * map.length) / 2);
}
if ((row == undefined) || (row < _root.map.length)) {
var y = ((row == undefined) ? 0 : (row));
while (y < _root.map.length) {
var x = 0;
while (x < _root.map[0].length) {
var T = ((("t_" + x) + "_") + y);
minimap.attachMovie("mapbit", T, ((1000 * y) + x) + 200);
minimap[T]._width = (minimap[T]._height = Tsize * 1.01);
minimap[T]._x = Tsize * x;
minimap[T]._y = Tsize * y;
minimap[T].gotoAndStop(((_root.plotVars.MAPS_REVEALED[_root.area][y][x] || (_root.plotVars.MAPS_REVEALED[_root.area] == "FULL")) ? (TileIsType(map[y][x])) : "dark"));
x++;
}
if (((y + 1) < _root.map.length) && (row != undefined)) {
return(undefined);
}
y++;
}
}
var coords = _root.cont.PC.getCoords();
addMarker("pc", coords[0], coords[1], PCstats_1.name);
var ld = _root.lastDir;
for (o in _root.cont) {
if (((substring(_root.cont[o]._name, 1, 2)) != "t_") && ((substring(_root.cont[o]._name, 1, 10)) != "torchlight")) {
var O = _root.cont[o];
if (((((((substring(O._name, 1, 2)) != "PC") && (!((O._x == 0) && (O._y == 0)))) && (O._x != undefined)) && (O.props.model != "_trigger")) && (O.props.lock != "yes")) && (O.props.type != "examine")) {
coords = O.getCoords();
if ((O.TREASURE && (!O.l00ted)) || (!O.TREASURE)) {
addMarker(((O.props.dest != undefined) ? "exit" : ((O.TREASURE ? "chest" : "null"))), coords[0], coords[1], (O.TREASURE ? "Treasure" : (_root.cont[o]._name)));
}
if (O._name == "Portal") {
addMarker("portal", coords[0], coords[1], "Portal");
} else if (O._name == "Healing Crystal") {
addMarker("crystal", coords[0], coords[1], "Healing Crystal");
} else if (O.NPC) {
addMarker("NPC_s", coords[0], coords[1], O.sprite.stats.name);
}
}
}
}
with (minimap) {
beginFill(0, 0);
lineStyle(1, 15262406, 100);
moveTo(0, 0);
lineTo(Tsize * map[0].length, 0);
lineTo(Tsize * map[0].length, Tsize * map.length);
lineTo(0, Tsize * map.length);
lineTo(0, 0);
endFill();
}
mapStatus = "";
}
markerSpec = "";
dm_setupOnce = false;
var treasure_in_area = 0;
treasure_found_ = 0;
for (o in _root.cont) {
if (_root.cont[o].TREASURE) {
treasure_in_area++;
if (_root.cont[o].l00ted) {
treasure_found_++;
}
}
}
treasure_found = (treasure_found_ + "/") + treasure_in_area;
Instance of Symbol 3422 MovieClip [mapbit] in Frame 68
onClipEvent (load) {
this.gotoAndStop("chest");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 68
on (press) {
_root.ReturnToGame(-1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Save Game" in Frame 72
on (press) {
_root.gotoAndStop("SAVEGAME");
_root.nextFrame();
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Load Game" in Frame 72
on (press) {
_root.gotoAndStop("LOADGAME");
_root.nextFrame();
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 72
on (press) {
_root.ReturnToGame(-1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Create Account" in Frame 73
on (press) {
getURL ("http://www.fighunter.com/games/MARDEK/?page=add_account", "_blank");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Server Save" in Frame 73
on (press) {
_root.gotoAndStop("ServerSave1");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Server Load" in Frame 73
on (press) {
_root.gotoAndStop("ServerLoad1");
}
Frame 74
function refreshScreen() {
for (o in saveList) {
saveList[o].removeMovieClip();
}
showing = (offset + "-") + (offset + 4);
var _local5 = ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", "XIII", "XIV", "XV", "XVI", "XVII", "XVIII", "XIX", "XX"];
i = offset;
var _local4 = offset;
so = SharedObject.getLocal((gameID + "_sg_") + i, "/");
if (so.data.cash == undefined) {
selGame = i;
S_dialogue = ("Create the saveslot " + selGame) + "?";
nextFrame();
return(undefined);
}
while ((so.data.cash != undefined) && (i < (_local4 + 5))) {
saveList.attachMovie("savegame", "s" + i, i);
saveList["s" + i]._y = 52 * (i - _local4);
saveList["s" + i].ID = i;
saveList["s" + i].ID2 = ((i == 0) ? "AUTOSAVE" : (i));
saveList["s" + i].NAME = so.data.PCstats_1.name;
saveList["s" + i].AREA = so.data.Carea;
saveList["s" + i].LEVEL = "Lv:" + so.data.PCstats_1.level;
saveList["s" + i].PLAYTIME = (((((so.data.playtime[0] < 10) ? ("0" + so.data.playtime[0]) : (so.data.playtime[0])) + ":") + ((so.data.playtime[1] < 10) ? ("0" + so.data.playtime[1]) : (so.data.playtime[1]))) + ":") + ((so.data.playtime[2] < 10) ? ("0" + so.data.playtime[2]) : (so.data.playtime[2]));
saveList["s" + i].Chapter = (so.data.DUNGEONMODE ? "ID" : (((!so.data.plotV.CHAPTER) ? "C.0" : ("C." + _local5[so.data.plotV.CHAPTER - 1]))));
saveList["s" + i].special = "";
saveList["s" + i].infD._visible = so.data.DUNGEONMODE === true;
var _local3 = 1;
while (_local3 <= 4) {
saveList["s" + i]["a" + _local3].gotoAndStop("none");
if (so.data.plotV.CHAPTER == 1) {
saveList["s" + i]["a" + _local3].gotoAndStop(so.data["PCstats_" + _local3].model);
}
_local3++;
}
saveList["s" + i].onPress = function () {
this.gotoAndStop(2);
_root.selGame = this.ID;
_root.S_dialogue = ("Save game in slot " + this.ID) + "?";
_root.nextFrame();
};
i++;
so = SharedObject.getLocal((gameID + "_sg_") + i, "/");
}
}
offset = 1;
refreshScreen();
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 74
on (press) {
if (!_root.startedGame) {
_root.FADER_.FadeTrans("startmenu");
} else {
_root.ReturnToGame(-1);
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "New Slot" in Frame 74
on (press) {
var i = _root.i;
var so = SharedObject.getLocal((_root.gameID + "_sg_") + i, "/");
while (so.data.cash != undefined) {
i++;
so = SharedObject.getLocal((_root.gameID + "_sg_") + i, "/");
}
_root.selGame = i;
_root.S_dialogue = ("Create the saveslot " + _root.selGame) + "?";
_root.nextFrame();
}
Instance of Symbol 3984 MovieClip [MENU_btn] "OK" in Frame 75
on (press) {
_root.SaveGame(_root.selGame);
_root.selGame = null;
_root.nextFrame();
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Cancel" in Frame 75
on (press) {
_root.tehMenu._visible = true;
for (o in _root.tehMenu) {
_root.tehMenu[o].gotoAndStop(1);
}
_root.ReturnToGame();
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Frame 76
function refreshScreen() {
for (o in saveList) {
saveList[o].removeMovieClip();
}
showing = (offset + "-") + (offset + 4);
var _local6 = ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", "XIII", "XIV", "XV", "XVI", "XVII", "XVIII", "XIX", "XX"];
i = offset;
var _local5 = offset;
var _local3 = SharedObject.getLocal((gameID + "_sg_") + i, "/");
if (_local3.data.cash == undefined) {
return(undefined);
}
while ((_local3.data.cash != undefined) && (i < (_local5 + 5))) {
saveList.attachMovie("savegame", "s" + i, i);
saveList["s" + i]._y = 52 * (i - _local5);
saveList["s" + i].ID = i;
saveList["s" + i].ID2 = ((i == 0) ? "AUTOSAVE" : (i));
saveList["s" + i].NAME = _local3.data.PCstats_1.name;
saveList["s" + i].AREA = _local3.data.Carea;
saveList["s" + i].LEVEL = "Lv:" + _local3.data.PCstats_1.level;
saveList["s" + i].PLAYTIME = (((((_local3.data.playtime[0] < 10) ? ("0" + _local3.data.playtime[0]) : (_local3.data.playtime[0])) + ":") + ((_local3.data.playtime[1] < 10) ? ("0" + _local3.data.playtime[1]) : (_local3.data.playtime[1]))) + ":") + ((_local3.data.playtime[2] < 10) ? ("0" + _local3.data.playtime[2]) : (_local3.data.playtime[2]));
saveList["s" + i].Chapter = (_local3.data.DUNGEONMODE ? "ID" : (((!_local3.data.plotV.CHAPTER) ? "C.0" : ("C." + _local6[_local3.data.plotV.CHAPTER - 1]))));
saveList["s" + i].special = ((i == 0) ? "AUTOSAVE" : "");
saveList["s" + i].infD._visible = _local3.data.DUNGEONMODE === true;
if (_local3.data.plotV.CHAPTER != 1) {
saveList["s" + i]._alpha = 20;
}
var _local4 = 1;
while (_local4 <= 4) {
saveList["s" + i]["a" + _local4].gotoAndStop("none");
if (_local3.data.plotV.CHAPTER == 1) {
saveList["s" + i]["a" + _local4].gotoAndStop(_local3.data["PCstats_" + _local4].model);
}
_local4++;
}
saveList["s" + i].onPress = function () {
if (this.Chapter != "C.I") {
_root.playSFX("error");
return(undefined);
}
this._parent["s" + _root.selGame].gotoAndStop(1);
this.gotoAndStop(2);
_root.selGame = this.ID;
};
i++;
_local3 = SharedObject.getLocal((gameID + "_sg_") + i, "/");
}
}
if (!offset) {
offset = 0;
}
refreshScreen();
Instance of Symbol 3984 MovieClip [MENU_btn] "Load" in Frame 76
onClipEvent (enterFrame) {
if (_root.selGame == undefined) {
_visible = false;
} else {
_visible = true;
}
}
on (press) {
_root.mapLoaded = false;
_root.LoadGame(_root.selGame);
_root.selGame = null;
}
Frame 78
username = "";
password = "";
Instance of Symbol 3984 MovieClip [MENU_btn] "Save" in Frame 78
on (press) {
_root.gotoAndStop("ServerSave2");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 78
on (press) {
_root.gotoAndStop("M_FILE");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Create Account" in Frame 78
on (press) {
getURL ("http://www.fighunter.com/games/MARDEK/?page=add_account", "_blank");
}
Frame 79
sio = "Connecting to server...";
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 79
on (press) {
_root.gotoAndStop("ServerSave1");
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "checker" in Frame 79
onClipEvent (load) {
function GenerateXML() {
var _local2 = "<SaveGame>";
_local2 = _local2 + "\n<Party>";
var _local6 = 1;
while (_local6 <= 4) {
if (_root.plotVars.Allies == null) {
_root.plotVars.Allies = {};
}
if (_root["PCstats_" + _local6].model != null) {
_root.plotVars.Allies[_root["PCstats_" + _local6].name] = _root["PCstats_" + _local6];
_local2 = _local2 + (_root["PCstats_" + _local6].name + "|");
}
_local6++;
}
_local2 = _local2 + "</Party>\n<Allies>";
for (var _local10 in _root.plotVars.Allies) {
if (_root.plotVars.Allies[_local10].name != null) {
var _local3 = _root.plotVars.Allies[_local10];
_local2 = _local2 + "\n\n<Ally>";
var _local5 = ["name", "model", "level", "exp", "hp", "mp", "weapon", "shield", "helmet", "armour", "accessory", "accessory2"];
var _local4 = 0;
while (_local4 < _local5.length) {
_local2 = _local2 + (((((("\n<" + _local5[_local4]) + ">") + (((_local5[_local4] == "hp") || (_local5[_local4] == "mp")) ? ((_local3[_local5[_local4]][0] + "/") + _local3[_local5[_local4]][1]) : (_local3[_local5[_local4]]))) + "</") + _local5[_local4]) + ">");
_local4++;
}
_local2 = _local2 + "\n<Learned>";
for (var _local9 in _local3.learned) {
_local2 = _local2 + (((("\n <Skill ap='" + _local3.learned[_local9]) + "'>") + _local9) + "</Skill>");
}
_local2 = _local2 + "\n</Learned>";
_local2 = _local2 + "\n<Inventory>";
_local6 = 0;
while (_local6 < _local3.inventory.length) {
if (_local3.inventory[_local6].item != null) {
_local2 = _local2 + (((("\n <Item amount='" + _local3.inventory[_local6].amount) + "'>") + _local3.inventory[_local6].item) + "</Item>");
}
_local6++;
}
_local2 = _local2 + "\n</Inventory>";
_local2 = _local2 + "\n<atkReactions>";
for (var _local8 in _local3.reactions.atk) {
_local2 = _local2 + (((((("\n <" + _local8) + ">") + _local3.reactions.atk[_local8]) + "</") + _local8) + ">");
}
_local2 = _local2 + "\n</atkReactions>";
_local2 = _local2 + "\n<defReactions>";
for (var _local8 in _local3.reactions.def) {
_local2 = _local2 + (((((("\n <" + _local8) + ">") + _local3.reactions.def[_local8]) + "</") + _local8) + ">");
}
_local2 = _local2 + "\n</defReactions>";
_local2 = _local2 + "\n</Ally>";
}
}
_local2 = _local2 + "\n</Allies>";
_local2 = _local2 + (("\n\n<PCloc>" + _root.PCloc.join("|")) + "</PCloc>");
_local2 = _local2 + (("\n<playtime>" + _root.playtime.join("|")) + "</playtime>");
_local2 = _local2 + (("\n<looted>" + _root.looted.join("|")) + "</looted>");
_local2 = _local2 + (("\n<defeatedBosses>" + _root.defeatedBosses.join("|")) + "</defeatedBosses>");
_local2 = _local2 + (("\n\n<money>" + _root.money) + "</money>");
_local2 = _local2 + "\n\n<Options>";
for (var _local12 in _root.OPTIONS) {
_local2 = _local2 + (((("\n <" + _local12) + " v='") + _root.OPTIONS[_local12]) + "' />");
}
_local2 = _local2 + "\n</Options>";
_local2 = _local2 + "\n\n<quests>";
var _local7 = 0;
while (_local7 < _root.quests.length) {
_local2 = _local2 + (((("\n <Quest done='" + _root.quests[_local7].done) + "'>") + _root.quests[_local7].ID) + "</Quest>");
_local7++;
}
_local2 = _local2 + "\n</quests>";
_local2 = _local2 + "\n\n<plotVars>";
for (var _local11 in _root.plotVars) {
if (_local11 == "Allies") {
continue;
}
if (_local11 == "MAPS_REVEALED") {
_local2 = _local2 + (("\n <v n='" + _local11) + "'>");
for (m in _root.plotVars[_local11]) {
_local2 = _local2 + (("\n <v n='" + m) + "'>");
if (_root.plotVars[_local11][m] == "FULL") {
_local2 = _local2 + "FULL";
} else {
_local6 = 0;
while (_local6 < _root.plotVars[_local11][m].length) {
_local2 = _local2 + (_root.plotVars[_local11][m][_local6].join(",") + "|\n");
_local6++;
}
}
_local2 = _local2 + "</v>";
}
_local2 = _local2 + "\n </v>";
} else {
_local2 = _local2 + (((((("\n <v n='" + _local11) + "'") + ((_root.plotVars[_local11] instanceof Array) ? " array='1'" : "")) + ">") + ObjectToXML(_root.plotVars[_local11])) + "</v>");
}
}
_local2 = _local2 + "</plotVars>";
return(_local2 + "\n\n</SaveGame>");
}
function ObjectToXML(obj) {
if (typeof(obj) == "object") {
var _local2 = "";
for (var _local3 in obj) {
_local2 = _local2 + (((("\n <v n='" + _local3) + "'>") + ObjectToXML(obj[_local3])) + "</v>");
}
return(_local2);
}
if ((obj[0] != null) || (obj instanceof Array)) {
return(obj.join("|"));
}
return(obj);
}
var feedback = new LoadVars();
feedback.load((("http://www.fighunter.com/games/MARDEK/check_account.php?username=" + _root.username) + "&password=") + _root.password);
feedback.onLoad = function (success) {
if (!success) {
_root.sio = "Couldn't access the server or something!";
} else if (this.check == "1") {
_root.sio = _root.sio + "\n\nUsername and password are valid!\n\nSaving data...";
_root.progressbar.onEnterFrame = function () {
this.percent = int((_root.checker.result_xml.getBytesLoaded() / _root.checker.result_xml.getBytesTotal()) * 100);
this.gotoAndStop(101 - this.percent);
_root.pppp = this.percent;
};
mardek_xml = new XML(GenerateXML());
mardek_xml.contentType = "text/xml";
result_xml = new XML();
result_xml.onLoad = function (success) {
if (success) {
_root.sio = _root.sio + "\nSave complete! You can go Back now.";
_root.Back._visible = true;
_root.progressbar._visible = false;
} else {
_root.sio = _root.sio + "\nAn error has occurred and your data was not saved! You might want to complain about this.";
_root.Back._visible = true;
}
};
mardek_xml.sendAndLoad("http://www.fighunter.com/games/MARDEK/serversave.php?username=" + _root.username, result_xml);
} else {
_root.sio = _root.sio + "Username and password are invalid...\n\nAre you sure you actually have an account? Click 'back' and then create one if you don't!";
_root.Back._visible = true;
}
};
_root.progressbar.onEnterFrame = function () {
this.percent = int((_root.checker.feedback.getBytesLoaded() / _root.checker.feedback.getBytesTotal()) * 100);
this.gotoAndStop(101 - this.percent);
_root.pppp = this.percent;
};
}
Instance of Symbol 4005 MovieClip "progressbar" in Frame 79
onClipEvent (load) {
this.gotoAndStop(101);
}
Frame 80
username = "";
password = "";
stop();
Instance of Symbol 3984 MovieClip [MENU_btn] "Load" in Frame 80
on (press) {
_root.gotoAndStop("ServerLoad2");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 80
on (press) {
if (!_root.startedGame) {
_root.FADER_.FadeTrans("startmenu");
} else {
_root.gotoAndStop("M_FILE");
}
}
Frame 81
sio = "Connecting to server...";
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 81
on (press) {
_root.gotoAndStop("ServerLoad1");
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "checker" in Frame 81
onClipEvent (load) {
function ParseXML(xml) {
_root.xmlstring = "";
var _local5 = {OPTIONS:{}};
var _local13 = [null, null, null, null];
_local5.plotVars = {Allies:{}};
_local5.quests = [];
for (o1 in xml.firstChild.childNodes) {
var _local19 = xml.firstChild.childNodes[o1].nodeName;
var _local14 = xml.firstChild.childNodes[o1].firstChild.nodeValue;
switch (_local19) {
case "Party" :
_local13 = _local14.split("|");
_root.xmlstring = _root.xmlstring + (("Read Party; it was " + _local13) + newline);
break;
case "Allies" :
_root.xmlstring = _root.xmlstring + "Reading Allies...\n";
for (var _local25 in xml.firstChild.childNodes[o1].childNodes) {
if (xml.firstChild.childNodes[o1].childNodes[_local25].nodeName != "Ally") {
continue;
}
var _local3 = {reactions:{atk:{}, def:{}}, learned:{}, inventory:new Array(48)};
for (var _local24 in xml.firstChild.childNodes[o1].childNodes[_local25].childNodes) {
var _local6 = xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].nodeName;
var _local7 = xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].firstChild.nodeValue;
switch (_local6) {
case "name" :
case "model" :
case "weapon" :
case "shield" :
case "armour" :
case "helmet" :
case "accessory" :
case "accessory2" :
_root.xmlstring = _root.xmlstring + (((("Read Ally " + _local6) + "; It was ") + _local7) + newline);
_local3[_local6] = _local7;
break;
case "level" :
case "exp" :
_local3[_local6] = int(_local7);
break;
case "hp" :
case "mp" :
_local3[_local6] = _local7.split("/");
break;
case "Learned" :
for (var _local16 in xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes) {
if (xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].nodeName != "Skill") {
continue;
}
_local3.learned[xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].firstChild.nodeValue] = xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].attributes.ap;
}
break;
case "Inventory" :
for (var _local16 in xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes) {
if (xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].nodeName != "Item") {
continue;
}
_local3.inventory.push({item:xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].nodeName, amount:int(xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].attributes.amount)});
}
break;
case "atkReactions" :
case "defReactions" :
var _local9 = substring(_local6, 1, 3);
for (var _local16 in xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes) {
if ((substring(xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].nodeName, 1, 1)) != "R") {
continue;
}
_local3.reactions[_local9][xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].nodeName] = cnv(xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].firstChild.nodeValue);
}
}
_local5.plotVars.Allies[_local3.name] = _local3;
}
}
break;
case "PCloc" :
case "playtime" :
case "looted" :
case "defeatedBosses" :
_local5[_local19] = _local14.split("|");
break;
case "money" :
_local5.money = Number(_local14);
break;
case "Options" :
for (var _local25 in xml.firstChild.childNodes[o1].childNodes) {
_local5.OPTIONS[xml.firstChild.childNodes[o1].childNodes[_local25].nodeName] = cnv(xml.firstChild.childNodes[o1].childNodes[_local25].attributes.v);
}
break;
case "quests" :
for (var _local25 in xml.firstChild.childNodes[o1].childNodes) {
_root.quests.push({ID:xml.firstChild.childNodes[o1].childNodes[_local25].firstChild.nodeValue, done:cnv(xml.firstChild.childNodes[o1].childNodes[_local25].attributes.done)});
}
break;
case "plotVars" :
for (var _local25 in xml.firstChild.childNodes[o1].childNodes) {
var _local4 = xml.firstChild.childNodes[o1].childNodes[_local25].attributes.n;
var _local10 = xml.firstChild.childNodes[o1].childNodes[_local25].firstChild.nodeValue;
_root.xmlstring = _root.xmlstring + (("\nReading plotVar " + _local4) + "... ");
if (xml.firstChild.childNodes[o1].childNodes[_local25].firstChild.hasChildNodes() || (_local4 == "EN_FULL")) {
_root.xmlstring = _root.xmlstring + (("Reading a child node of " + _local4) + "...");
_local5.plotVars[_local4] = {};
for (var _local24 in xml.firstChild.childNodes[o1].childNodes[_local25].childNodes) {
var _local6 = xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].attributes.n;
var _local7 = xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].firstChild.nodeValue;
_root.xmlstring = _root.xmlstring + (((((("Reading a child node of " + _local4) + " called ") + _local6) + "... It has a value of ") + _local7) + ".\n");
if (xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].firstChild.hasChildNodes()) {
for (var _local16 in xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local16].childNodes) {
_root.xmlstring = _root.xmlstring + (((("----Node " + xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].attributes.n) + " has a value of ") + xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].firstChild.nodeValue) + ".\n");
_local5.plotVars[_local4][_local6][xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].attributes.n] = xml.firstChild.childNodes[o1].childNodes[_local25].childNodes[_local24].childNodes[_local16].firstChild.nodeValue;
}
} else {
_root.xmlstring = _root.xmlstring + (((("---Node " + _local6) + " has a value of ") + _local7) + ".\n");
_local5.plotVars[_local4][_local6] = ((_local4 == "EN_FULL") ? ({}) : (cnv(_local7)));
}
}
} else {
_root.xmlstring = _root.xmlstring + (((("--Node " + _local4) + " has a value of ") + _local10) + ".\n");
_local5.plotVars[_local4] = ((xml.firstChild.childNodes[o1].childNodes[_local25].attributes.array == "1") ? (_local10.split("|")) : (cnv(_local10)));
}
}
}
}
if (_root.THIS_CHAPTER != _local5.plotVars.CHAPTER) {
_root.sio = _root.sio + (((("Error; that data is for CHAPTER " + _local5.plotVars.CHAPTER) + ". Only CHAPTER ") + _root.THIS_CHAPTER) + " data can be loaded.");
return(false);
}
for (o in _local5) {
_root[o] = _local5[o];
}
var _local8 = 1;
while (_local8 <= 4) {
if ((_local13[_local8 - 1] == null) || (_local13[_local8 - 1] == "")) {
} else {
_root.xmlstring = _root.xmlstring + (((("ALLY " + _local8) + " IS ") + _local13[_local8 - 1]) + ".\n");
_root.calculateStats((_root["PCstats_" + _local8] = _root.CreatePCstats(_root.plotVars.Allies[_local13[_local8 - 1]].model, _root.plotVars.Allies[_local13[_local8 - 1]])));
}
_local8++;
}
return(true);
}
function cnv(str) {
return(((str == "true") ? true : (((str == "false") ? false : (((str == "null") ? null : (str)))))));
}
var feedback = new LoadVars();
feedback.load((("http://www.fighunter.com/games/MARDEK/check_account.php?username=" + _root.username) + "&password=") + _root.password);
feedback.onLoad = function (success) {
if (!success) {
_root.sio = "Couldn't access the server or something!";
} else if (this.check == "1") {
_root.sio = _root.sio + "\n\nUsername and password are valid!\n\nLoading data...";
_root.progressbar.onEnterFrame = function () {
this.percent = int((_root.checker.result_xml.getBytesLoaded() / _root.checker.result_xml.getBytesTotal()) * 100);
this.gotoAndStop(101 - this.percent);
_root.pppp = this.percent;
};
mardek_xml = new XML();
mardek_xml.ignoreWhite = 1;
mardek_xml.contentType = "text/xml";
mardek_xml.onLoad = function (success) {
if (success) {
if (ParseXML(mardek_xml)) {
_root.sio = _root.sio + "\nLoad complete. Click the button that just appeared to start playing the loaded game.";
_root.Play._visible = true;
} else {
_root.Back._visible = true;
}
_root.progressbar._visible = false;
} else {
_root.sio = _root.sio + "\nAn error has occurred and your data was not loaded! You might want to complain about this.";
_root.Back._visible = true;
}
};
var _local3 = Math.round(Math.random() * 10000);
mardek_xml.load((("http://www.fighunter.com/games/MARDEK/savedData/" + _root.username) + ".xml?uniq=") + _local3);
} else {
_root.sio = _root.sio + "Username and password are invalid...\n\nAre you sure you actually have an account? Click 'back' and then create one if you don't!";
_root.Back._visible = true;
}
};
_root.progressbar.onEnterFrame = function () {
this.percent = int((_root.checker.feedback.getBytesLoaded() / _root.checker.feedback.getBytesTotal()) * 100);
this.gotoAndStop(101 - this.percent);
_root.pppp = this.percent;
};
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Play" in Frame 81
on (press) {
_root.mapLoaded = false;
_root.AddClock();
_root.mapLoaded = false;
_root.nextArea = _root.PCloc[2];
_root.fadeTrans.ctrl.active = true;
_root.spawnLoc = [_root.PCloc[0] / 30, _root.PCloc[1] / 30];
_root.startedGame = true;
}
onClipEvent (load) {
_visible = false;
}
Frame 83
Encyclopaedia = {People:[{name:"Mardek", lastname:"Innanu El-Enkidu", model:"mardek_child", sprite:"s_mardek_child", race:"Human", gender:"Male", age:10, origin:"Goznor, Belfan", weapon:"Sword", elem:"LIGHT", Class:"Wannabe Hero", bio:"Well, he's a young boy from Goznor, who, together with his best friend Deugan, wishes to one day become a Grand Adventurer and go on quests and save people. As it is though, all he can do is pretend until he's old enough to go on a REAL adventure.\nHe's a bit dim at times, but he's well-meaning and has a big heart."}, {name:"Deugan", lastname:"Selmae Eh-Deredu", model:"deugan_child", sprite:"s_deugan_child", race:"Human", gender:"Male", age:10, origin:"Goznor, Belfan", weapon:"Greatsword", elem:"EARTH", Class:"Wannabe Hero", bio:"Mardek's best friend, and 'adventuring partner'. Together, the two boys aspire to be Grand Adventurers like their hero Social Fox, going on adventures and saving people from dragons and such.\nDeugan's more level-headed and analytical than his friend, and tends to take things more seriously. Though he can become slightly exasperated by Mardek's dim-witted, carefree brashness at times, he's still very loyal to him and values their friendship deeply."}, {name:"Lilanea", lastname:"Ae-Inanna", model:"lilanea", sprite:"s_lilanea", race:"Human", gender:"Female", age:33, origin:"Goznor, Belfan", weapon:"-", elem:"AIR", Class:"Mother", bio:"Mardek's mother. She looks after him alone since her husband, Enki, an adventurer, left on some grand adventure a few years ago. She's certain he'll return one day though, and spends her time loyally awaiting him to take her in his arms once more.\nShe's quite the dreamer, and is tends to be 'away with the fairies', but she's a good parent and a kind soul nonetheless."}, {name:"Enki", lastname:"Ea'seph El-Regis", model:"enki", sprite:"s_enki", race:"Human", gender:"Male", age:"??", origin:"Unknown", weapon:"Katana", elem:"LIGHT", Class:"Wanderer", bio:"Mardek's father. An Adventurer of great renown, known as 'Enki the Wanderer'. He left his wife and child a few years ago to go on some quest that he swore wouldn't take long. He's not returned since, and little is known about his current whereabouts; only a few rumours about sightings of him in the far, frozen Northern Wastes suggest he still lives. His family eagerly awaits his return."}, {name:"Derek", lastname:"Fa-Gardon", model:"derek", sprite:"s_derek", race:"Human", gender:"Male", age:41, origin:"Goznor, Belfan", weapon:"-", elem:"FIRE", Class:"Shopkeeper", bio:"Deugan's father. He's merely a shopkeeper, unlike Mardek's Adventuer father; a fact that secretly bothers his son deep down."}, {name:"Polly", lastname:"Eh-Selmar", model:"polly", sprite:"s_polly", race:"Human", gender:"Female", age:38, origin:"Goznor, Belfan", weapon:"-", elem:"EARTH", Class:"Mother", bio:"Deugan's mother. A plump, jolly woman, she's the heart of any party she's ever at, and seems to know everyone in the village on a rather personal level. She's the town's main source of gossip."}, {name:"Mugbert", lastname:"Eh-Mugdu", model:"mugbert", sprite:"s_mugbert", race:"Human", gender:"Male", age:11, origin:"Goznor, Belfan", weapon:"Greatmace", elem:"EARTH", Class:"Grunt", bio:"A stupid, fat boy who's picked on and teased Mardek and Deugan for as long as they can remember. Why he does it isn't really certain; he's probably just sadistic or some such thing."}, {name:"Meraeador", lastname:"Dunsin Fa-Doch", model:"inventor", sprite:"s_inventor", race:"Human", gender:"Male", age:24, origin:"Goznor, Belfan", weapon:"-", elem:"FIRE", Class:"Inventor", bio:"Goznor's resident slightly-insane Inventor. He s-s-speaks with a s-s-s-stutter. He's a skilled machinist, and spends most of his time constructing odd clockwork mechanical creatures. He claims that one day they'll be used in homes and on battlefields all over Belfan, though he despises the latter part if it's true. He's a pacifist, y'see.\nThough most of the inhabitants of Goznor shun him due to their fear of the unknown and the unnatural, Mardek and Deugan have taken an interest in his work, for which he is glad."}, {name:"Captain Jacques", lastname:"Ae-Sualeux", model:"captain", sprite:"s_captain", race:"Human", gender:"Male", age:23, origin:"Aree, Belfan", weapon:"-", elem:"AIR", Class:"Guard Captain", bio:"The Guard Captain of Goznor, and member of the Royal Guard. He's a skilled warrior, hence his position as Captain, but he considers the job dull, which it is, and aspires for a higher rank with more adventuring involved. Despite his annoyance with his current position though, he maintains a bright and cheery outlook on things."}, {name:"Goznor Shaman", lastname:"", model:"shaman", sprite:"s_shaman", race:"Human", gender:"Male", age:193, origin:"Unknown", weapon:"Staff", elem:"EARTH", Class:"Shaman", bio:"The Shaman of the Goznor region. Being a Shaman, he has an incredibly advanced age and has protected the Goznor region for as long as he's been around, offering aid to travellers and warding away all those who seek to destroy or defile nature."}, {name:"Medium Priest Gallovar", lastname:"", model:"Ypriest", sprite:"s_Ypriest", race:"Human", gender:"Male", age:27, origin:"Goznor, Belfan", weapon:"-", elem:"WATER", Class:"Medium Priest", bio:"Gallovar is the Medium Priest of Yalortism in the Goznor region of Belfan. He preaches the word of the Holy Dragon to all those who will hear. Despite his relatively young age, he's seen as a sort of sagely father figure, and his counsel is sought by people of all ages seeking guidance. His eyes are solid, glowing green as proof of his devotion to YALORT and the reality of the power he's received from his deity."}, {name:"Social Fox", lastname:"", model:"socialfox", sprite:"s_socialfox", race:"Human", gender:"Male", age:31, origin:"Unknown", weapon:"Greatsword", elem:"FIRE", Class:"Grand Adventurer", bio:"Ach, Social Fox is the most famous of Grand Adventurers on Belfan at the moment. His deeds are the stuff of legend, and many a town has been saved by his heroism. Mardek and Deugan, like many young people, aspire to be Grand Adventurers like Social Fox one day."}, {name:"Rohoph", lastname:"", model:"rm", sprite:"s_rm", race:"Unknown", gender:"Male?", age:"??", origin:"Unknown", weapon:"Unknown", elem:"LIGHT", Class:"Unknown", bio:"A strange being who arrived on Belfan when his 'flying chariot' came crashing down from the heavens. What he's doing here is unknown, but on arrival his original body was killed, and he came to inhabit Mardek's body alongside him."}], Places:[{name:"Belfan", tileset:"BELFAN", sprite:null, info:"Second planet in the Girru system. A smallish, Type B world inhabited mostly by humans, though reptoids are also known to dwell here in small numbers. It is an Undeveloped world, still stuck in its 'mediaeval' ages, barely knowing of the other worlds in its own system let alone any others elsewhere.\nThe star, Girru, is in a binary relationship with the nearby star Nusku. Nusku orbits Girru extremely quickly, and every few hundred years the two systems come close to eachother and Nusku and its planets can be observed from Belfan."}, {name:"Goznor", tileset:"t_rural", sprite:null, info:"A small village that, despite its size, is the capital of the nation of Gonoroth, on the continent of Hadris on Belfan.\nThe village of Goznor is inhabited by simple folk and mainly consists of shops. There's also a Yalortian monastery, and a barracks for the Town Guard (which get little work due to the calmness of the place).\nCastle Goznor is to the north, where the King of Goznor (and Gonoroth) rules from."}, {name:"Heroes' Den", tileset:"t_rural", sprite:null, info:"A small abandoned hut which Mardek and Deugan have taken as their 'den'. Many of their pretend 'adventures' have taken place here, and they use the place to store items and memories."}, {name:"Soothwood", tileset:"t_darkwood", sprite:null, info:"A forest west of Goznor. It's unremarkable and full of goblins. The regional Shaman for the Goznor region dwells within."}, {name:"Crash Site", tileset:"CRASHSITE", sprite:null, info:"The place where the 'falling star' apparently crashed."}], Artefacts:[{name:"Fire Crystal", sprite:null, info:"One of the Elemental Crystals. It provides the essence of life and energy, of heat and of fire. Without the power of the Fire Crystal, Belfan would surely fall into an ice age.\nThe Fire Crystal is currently located in a temple in a cave south of Aeropolis on the Fengue continent."}, {name:"Water Crystal", sprite:null, info:"One of the Elemental Crystals. It provides the essence of water, which is necessary for life. Without the water crystal, the waters of Belfan would stagnate, and all life in the seas would perish (as well as any animal that requires water to sustain them).\nThe Water Crystal is currently located on the Hadris continent, but its specific location is a closely-guarded secret."}, {name:"Air Crystal", sprite:null, info:"One of the Elemental Crystals. It provides the essence of wind. Without the air crystal, the wind on Belfan would cease, the air would stagnate and become unbreathable.\nIt's currently held in a temple at the heart of Aeropolis."}, {name:"Earth Crystal", sprite:null, info:"One of the Elemental Crystals. It provides the essence of life to beasts and plants, and the strength of the rocks. Without the Earth crystal, plants wouldn't grow, beasts would stop breeding, and the rocks would become brittle and crumble.\nIt is currently located in the Lifewood east of Aeropolis on the Fengue continent."}, {name:"Light Crystal", sprite:null, info:"One of the Elemental Crystals. It is the source of all the Goodness in the hearts of the inhabitants of Belfan. Together with the Dark Crystal, it maintains a delicate balance of morals that keeps men productive and happy.\nIt is currently located in the castle of the King of Goznor, on the Hadris continent."}, {name:"Dark Crystal", sprite:null, info:"One of the Elemental Crystals. It is the source of all the Evil in the hearts of the inhabitants of Belfan. Together with the Light Crystal, it maintains a delicate balance of morals that keeps men productive and happy. (Without the Dark Crystal to keep the balance, civilisation would stagnate and never improve because everyone would be happy and would see no need for change.)\nThe Dark Crystal is located in a temple on the Fengue continent, but its location is unknown; it is thought to have submerged in the sands of the desert many hundreds of years ago."}, {name:"Ether Crystal", sprite:null, info:"One of the Elemental Crystals. It is the source of all the souls of every creature on Belfan; it serves as a passage for souls between the Soulplanes and the Material Plane, causing souls to be born as creatures on Belfan. Without this crystal, there would be no more births of any creatures on Belfan, and all those born from the crystal's energy would be weakened considerably."}], Bestiary:[{name:"Monster", info:"These vile, brutish purple beasts are the things that parents tell tales of to scare young children. Known for their violence and ruthlessness, these Monsters will attack basically anything that moves, and won't stop until they've torn their prey to shreds."}, {name:"The Dragon", model:"MightyDragon", info:"The Mighty The Dragon was no match for our fine Mighty Heroes!!!"}, {name:"Fungoblin", info:"A variety of goblin with the properties of a fungus. Though usually playful and placid, they have been known to attack small children that trespass in their territory."}, {name:"Poshgoblin", info:"I say! These upper-class goblins enjoy lording over the other goblins merely because they don't have a monocle or fancy tophat."}, {name:"Forest Fish", info:"A variety of fish monster that lives not in lakes or seas like its kin, but in the air of forests. They are magically able to levitate and swim through the air, it seems. Most curious."}, {name:"Fumerat", info:"Odd, sewer-dwelling monsters that appear to be a mix of animal and machine. They spout foul smog from the rigid iron pipe that serves as their tail. Their bite is venomous; watch out."}, {name:"Mugbert", info:"A foul-smelling, overweight bully with the wit of a rotting plank of cheap wood who's picked on Mardek and Deugan for many years, using his older age and massive girth to get his way and prove his 'superiority'. When defeated, he throws tantrums and makes threats."}]};
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 83
on (press) {
_root.ReturnToGame(-1);
}
Instance of Symbol 3401 MovieClip [E_Entry] "People" in Frame 83
onClipEvent (load) {
entry = _name;
}
on (press) {
_root.E_SECTION = _name;
_root.FADER_.FadeTrans("E_LIST");
}
Instance of Symbol 3401 MovieClip [E_Entry] "Places" in Frame 83
onClipEvent (load) {
entry = _name;
}
on (press) {
_root.E_SECTION = _name;
_root.FADER_.FadeTrans("E_LIST");
}
Instance of Symbol 3401 MovieClip [E_Entry] "Artefacts" in Frame 83
onClipEvent (load) {
entry = _name;
}
on (press) {
_root.E_SECTION = _name;
_root.FADER_.FadeTrans("E_LIST");
}
Instance of Symbol 3401 MovieClip [E_Entry] "Bestiary" in Frame 83
onClipEvent (load) {
entry = _name;
}
on (press) {
_root.E_SECTION = _name;
_root.FADER_.FadeTrans("E_LIST");
}
Frame 84
var e = 0;
while (e < Encyclopaedia[E_SECTION].length) {
var N = ("e" + e);
E_List.attachMovie("E_Entry", N, 100 + e);
E_List[N]._y = 20 * e;
if (!_root.plotVars.EN_FULL[E_SECTION][((Encyclopaedia[E_SECTION][e].model && (E_SECTION == "Bestiary")) ? (Encyclopaedia[E_SECTION][e].model) : (Encyclopaedia[E_SECTION][e].name)).toLowerCase()]) {
E_List[N].entry = (e + 1) + ". ";
var l = 0;
while (l < Encyclopaedia[E_SECTION][e].name.length) {
E_List[N].entry = E_List[N].entry + "-";
l++;
}
E_List[N].DATA = "dull";
E_List[N].gotoAndStop("dull");
E_List[N].onPress = function () {
_root.playSFX("error");
};
} else {
E_List[N].entry = ((e + 1) + ". ") + Encyclopaedia[E_SECTION][e].name;
E_List[N].DATA = Encyclopaedia[E_SECTION][e];
E_List[N].onPress = function () {
_root.E_SHOW = this.DATA;
_root.FADER_.FadeTrans("E_" + _root.E_SECTION);
};
}
e++;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 84
on (press) {
_root.FADER_.FadeTrans("ENCYCLOPAEDIA");
}
Frame 85
person_name = E_SHOW.name + (E_SHOW.lastname ? (" " + E_SHOW.lastname) : "");
s_race = E_SHOW.race;
s_gender = E_SHOW.gender;
s_age = E_SHOW.age;
s_class = E_SHOW.Class;
elemglyph.gotoAndStop((s_elem = E_SHOW.elem));
s_origin = E_SHOW.origin;
s_weapon = E_SHOW.weapon;
bio = E_SHOW.bio;
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 85
on (press) {
_root.FADER_.FadeTrans("E_LIST");
}
Instance of Symbol 3959 MovieClip [_portrait] "portr" in Frame 85
onClipEvent (load) {
mystats = _root.E_SHOW;
_root.conv.as.emState = "norm";
}
Frame 86
info = E_SHOW.info;
place_name = E_SHOW.name;
Instance of Symbol 4624 MovieClip in Frame 86
onClipEvent (load) {
this.BG = _root.E_SHOW.tileset;
}
Frame 87
img.gotoAndStop((artefact_name = E_SHOW.name));
info = E_SHOW.info;
Instance of Symbol 4636 MovieClip "img" in Frame 87
onClipEvent (load) {
this.gotoAndStop(_root.E_SHOW.name);
}
Instance of Symbol 3385 MovieClip [B_MODEL] "dummy" in Frame 88
onClipEvent (load) {
this.gotoAndStop((_root.E_SHOW.model ? (_root.E_SHOW.model) : (_root.E_SHOW.name)));
this.mdl.gotoAndPlay("idle");
}
Instance of Symbol 524 MovieClip [empty] "E_monstatser" in Frame 88
onClipEvent (load) {
function Show(stats) {
_root.monster_name = stats.name;
_root.s_class = stats.Class;
_root.s_type = stats.TYPE;
_root.s_elem = stats.monStats.cElem;
_root.s_HP = ((stats.monStats.hpGrowth == stats.monStats.baseStats.hp) ? ("d" + stats.monStats.hpGrowth) : (stats.monStats.baseStats.hp + (stats.monStats.hpGrowth ? (("+" + stats.monStats.hpGrowth) + "/lvl") : "")));
_root.s_MP = stats.monStats.baseStats.mp;
var _local5 = ["STR", "VIT", "SPR", "AGL"];
var _local2 = 0;
while (_local2 < 4) {
_root["s_" + _local5[_local2]] = stats.BASE[_local5[_local2]] + (stats.BONUS[_local5[_local2]] ? (" +" + stats.BONUS[_local5[_local2]]) : "");
_local2++;
}
_root.s_exp = (stats.monStats.EXP[0] + "/") + stats.monStats.EXP[1];
_root.s_loot = "";
var _local3 = 0;
while (_local3 < _root.dummy.loot.length) {
_root.s_loot = _root.s_loot + (((_local3 != 0) ? ", " : "") + _root.dummy.loot[_local3][0]);
_local3++;
}
_root.info = _root.E_SHOW.info;
}
}
Frame 91
function DisplayQuests() {
var _local4 = 0;
Qdescription = "";
for (o in questList) {
questList[o].removeMovieClip();
}
i = 0;
while (i < quests.length) {
if (((d_quests == "Active") && (quests[i].done)) || ((d_quests == "Completed") && (!quests[i].done))) {
} else {
qn = "Q" + i;
questList.attachMovie("Quest_entry", qn, 10 + i);
questList[qn].DONE = quests[i].done;
questList[qn]._y = 25 * (_local4++);
questList[qn].TITLE = _root.GetQuest(quests[i].ID).title;
var _local3 = _root.GetQuest(quests[i].ID).title1;
questList[qn].TITLEC = _local3;
questList[qn].desc = _root.GetQuest(quests[i].ID).body;
questList[qn].onPress = function () {
_root.Qdescription = (("<font size='+1'>" + this.TITLE) + "</font><br><br>") + this.desc;
};
questList[qn].onRollOver = function () {
this.gotoAndStop("lit");
};
questList[qn].onRollOut = function () {
this.gotoAndStop(1);
};
}
i++;
}
}
Qdescription = "";
d_quests = "Active";
DisplayQuests();
Instance of Symbol 3984 MovieClip [MENU_btn] "Next" in Frame 91
on (press) {
_root.FADER_.FadeTrans(_root._currentframe + 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 91
on (press) {
if (!_root.startedGame) {
_root.FADER_.FadeTrans("startmenu");
} else {
_root.ReturnToGame(-1);
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Previous" in Frame 92
on (press) {
_root.FADER_.FadeTrans(_root._currentframe - 1);
}
Instance of Symbol 2864 MovieClip "FIRE" in Frame 97
onClipEvent (load) {
this.gotoAndStop(_name);
}
Instance of Symbol 2864 MovieClip "EARTH" in Frame 97
onClipEvent (load) {
this.gotoAndStop(_name);
}
Instance of Symbol 2864 MovieClip "WATER" in Frame 97
onClipEvent (load) {
this.gotoAndStop(_name);
}
Instance of Symbol 2864 MovieClip "AIR" in Frame 97
onClipEvent (load) {
this.gotoAndStop(_name);
}
Instance of Symbol 2864 MovieClip "LIGHT" in Frame 97
onClipEvent (load) {
this.gotoAndStop(_name);
}
Instance of Symbol 2864 MovieClip "DARK" in Frame 97
onClipEvent (load) {
this.gotoAndStop(_name);
}
Instance of Symbol 3448 MovieClip [status_fx] "PSN" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "CNF" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "CRS" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "DRK" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "SIL" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "NUM" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "SLP" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 3448 MovieClip [status_fx] "PAR" in Frame 98
onClipEvent (load) {
function Shift() {
this.gotoAndStop(_name);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Frame 107
function RefillRootInventory() {
var _local2 = 0;
while (_local2 < 56) {
var _local3 = _root.inventory_filler["slot" + _local2];
_root.inventory[_local2] = ((_local3.ITEM == undefined) ? null : ({item:_local3.ITEM, amount:_local3.AMOUNT}));
_local2++;
}
}
function EvaluateBonus(itemname) {
var _local3 = GetItemInfo(itemname);
var _local2 = 1;
while (_local2 <= 4) {
if (_root["PCstats_" + _local2].model == null) {
} else if (itemname == null) {
_root["p_" + _local2].bonus._visible = false;
} else if (((((_local3.type != "wepn") && (_local3.type != "armr")) && (_local3.type != "helm")) && (_local3.type != "accs")) && (_local3.type != "shld")) {
} else {
_root.calculateStats(_root["PCstats_" + _local2]);
var _local4 = ((_local3.type == "wepn") ? "atk" : "def");
var _local5 = GetItemInfo(_root["PCstats_" + _local2][QuadToSlot(_local3.type)]);
var _local6 = true;
_root["p_" + _local2].bonus._visible = true;
_root["p_" + _local2].bonus.swapDepths(74000);
_root["p_" + _local2].bonus.gotoAndStop(((_local5 == null) ? "better" : ((((!_local6) || (_local3 == null)) ? "x" : (((_local5[_local4] == _local3[_local4]) ? "equal" : (((_local5[_local4] > _local3[_local4]) ? "worse" : "better"))))))));
}
_local2++;
}
}
shop_name = shop;
Shopping = true;
I_name = "-";
I_value = "-";
DItem = undefined;
TRANSACTION = undefined;
toBuy = null;
selInv = 1;
inventory = PCstats_1.inventory;
p_1.gotoAndStop(2);
Instance of Symbol 4445 MovieClip in Frame 107
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "inventory_filler" in Frame 107
onClipEvent (load) {
function RefreshInventory() {
for (o in this) {
this[o].removeMovieClip();
}
var _local3 = 0;
while (_local3 < 56) {
var _local4 = "slot" + _local3;
this.attachMovie("ItemSlot", _local4, 100 + _local3);
this[_local4]._x = (_local3 % 14) * 30;
this[_local4]._y = Math.floor(_local3 / 14) * 30;
this[_local4].ITEM = _root.inventory[_local3].item;
this[_local4].AMOUNT = _root.inventory[_local3].amount;
_local3++;
}
}
RefreshInventory();
}
Instance of Symbol 4452 MovieClip in Frame 107
on (press) {
if (_root.DItem != undefined) {
if (_root.GetItemInfo(_root.DItem[0]).cost == -1) {
_root.playSFX("error");
return(undefined);
}
_root.DItem = undefined;
_root.CURSOR_.gotoAndStop(1);
}
}
on (rollOver) {
if (_root.DItem != undefined) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 107
on (press) {
if (_root.DItem != undefined) {
_root.playSFX("error");
return(undefined);
}
_root.RefillRootInventory();
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
_root.selInv = 1;
_root.inventory = _root.PCstats_1.inventory;
_quality = "LOW";
_root.ReturnToGame(-1);
}
Instance of Symbol 4315 MovieClip "p_1" in Frame 107
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4315 MovieClip "p_2" in Frame 107
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4315 MovieClip "p_3" in Frame 107
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4315 MovieClip "p_4" in Frame 107
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4691 MovieClip in Frame 107
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "warez_filler" in Frame 107
onClipEvent (load) {
for (o in this) {
this[o].removeMovieClip();
}
var i = 0;
while (i < 28) {
var N = ("slot" + i);
this.attachMovie("ItemSlot", N, 100 + i);
this[N]._x = (i % 14) * 30;
this[N]._y = Math.floor(i / 14) * 30;
this[N].ITEM = _root.warez[i].item;
this[N].AMOUNT = _root.warez[i].amount;
this[N].SHOPITEM = true;
i++;
}
}
Instance of Symbol 4397 MovieClip "Exbox" in Frame 107
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (disabled) {
return(undefined);
}
if (((_root.toBuy != undefined) && (!_root.Storaging)) && (!_root.FADER_._visible)) {
_visible = true;
this.gotoAndStop(((_root.GetItemInfo(_root.toBuy).type == "item") ? "buy_mass" : "buy_single"));
return(undefined);
}
_visible = ((Key.isDown(69) || (Key.isDown(67))) || (Key.isDown(80)));
if (Key.isDown(67)) {
this.gotoAndStop("CheckComponents");
return(undefined);
}
if (_root.PCsel_ != undefined) {
this.gotoAndStop(2);
return(undefined);
}
this.gotoAndStop((_root.RItem.name ? "CheckWpn" : 1));
var info = _root.GetItemInfo(_root.RItem);
ITEMNAME = ((_root.RItem == undefined) ? "-" : ((_root.RItem.title ? (_root.RItem.title) : ((_root.RItem.name ? (_root.RItem.name) : (_root.RItem))))));
if (_root.RItem.name) {
var wStats = _root.GetWeaponStats(_root.RItem);
dmg = (wStats.dmg[0] + "-") + wStats.dmg[1];
ELEM = wStats.elem;
wpnType = _root.GetWeaponStats(_root.RItem).wpnType;
DESC = (_root.RItem.maker ? (("Made by " + _root.RItem.maker) + ".") : (("A customised " + _root.GetWeaponStats(_root.RItem).wpnType.toLowerCase()) + ". It's unsigned, so its maker is a mystery."));
} else if (_root.RItem.title) {
Mstat = "Spell:";
inc = _root.RItem.spell.name;
DESC = _root.GetSpellStats(_root.RItem.spell).desc;
ELEM = _root.GetSpellStats(_root.RItem.spell).elem;
} else {
Mstat = ((_root.RItem == undefined) ? "" : (((info.type == "hilt") ? "GEMS:" : ((((_root.RItem.name || (info.type == "blad")) || (info.type == "claw")) ? "DMG:" : (((((((info.type == "item") || (info.type == "plot")) || (info.type == "gems")) || (info.type == "misc")) || (info.type == "soul")) ? "" : "DEF:")))))));
Mstat2 = ((info.mdef != null) ? "M.DEF:" : "");
inc = ((_root.RItem == undefined) ? "" : (((((((info.type == "item") || (info.type == "plot")) || (info.type == "gems")) || (info.type == "misc")) || (info.type == "soul")) ? "" : ((((info.type == "blad") || (info.type == "claw")) ? ((info.dmg[0] + "-") + info.dmg[1]) : (((info.type == "hilt") ? (info.gems) : ((_root.RItem.name ? ((_root.GetWeaponStats(_root.RItem).dmg[0] + "-") + _root.GetWeaponStats(_root.RItem).dmg[1]) : (info.def))))))))));
inc2 = ((info.mdef != null) ? (info.mdef) : "");
DESC = ((_root.RItem == undefined) ? "-" : (info.desc));
ELEM = info.elem;
}
if (Key.isDown(80)) {
gotoAndStop ("CheckProps");
CheckProps(_root.RItem);
}
}
Frame 108
function newRound() {
turnArray = [];
i = 1;
while (i <= 4) {
if (_root["p" + i]._visible && (_root["PCstats_" + i].model != null)) {
turnArray.push({c:"p" + i, AGL:_root["p" + i].stats.AGL});
} else {
turnArray.push({c:null, AGL:0});
}
if (_root["e" + i]._visible && (_root["PCstats_e" + i].model != null)) {
turnArray.push({c:"e" + i, AGL:_root["e" + i].stats.AGL});
} else {
turnArray.push({c:null, AGL:0});
}
i++;
}
turnArray.sortOn("AGL", 18);
nextTurn();
}
function nextTurn() {
Acting = null;
Target = null;
TECH_USING = null;
REACTION_USING = null;
endturn = false;
var _local2 = 0;
while (_local2 < turnArray.length) {
if (turnArray[_local2].c != null) {
BMSG = ((_root[turnArray[_local2].c].stats.name + " (") + turnArray[_local2].c) + ") takes a turn...";
_root[turnArray[_local2].c].Act();
turnArray[_local2].c = null;
return(undefined);
}
_local2++;
}
newRound();
}
function ElemModifier(target, element, dmg) {
if (dmg < 0) {
return(1);
}
var _local1 = 1;
var _local2 = target.stats.RESIST[element];
if ((_local2 == 0) || (_local2 == undefined)) {
_local1 = 1;
} else {
_local1 = 1 - (_local2 / 100);
}
if ((_local2 > 0) && (dmg < 0)) {
_local1 = Math.abs(_local1);
}
return(_local1);
}
function dmgFormula(attacker, target, _atk, elem) {
var _local5 = attacker.stats;
var _local6 = target.stats;
calculateStats(_local5);
calculateStats(_local6);
var _local9 = (_atk ? (_atk) : (_local5.ATK));
var _local3 = int(_local9 * (1 + (((_local5.STR + _local5.BONUS.STR) - 10) / 20)));
_local3 = _local3 - _local6.DEF;
if (_local3 < 0) {
_local3 = 0;
}
var _local8 = (elem ? (elem) : (_root.GetItemInfo(_local5.weapon).elem));
if (_local8 != null) {
_local3 = int(_local3 * ElemModifier(target, _local8, _local3));
} else if (_local5.elem != undefined) {
_local3 = int(_local3 * ElemModifier(target, _local5.elem, _local3));
}
if (tALL) {
var _local4 = 0;
var _local2 = 1;
while (_local2 <= 4) {
if (_root[tALL + _local2]._visible) {
_local4++;
}
_local2++;
}
if (_local4 > 0) {
_local3 = int(_local3 / _local4);
} else {
_local3 = int(_local3 / 2);
}
}
if (_root.HasSTFX(_local6, "PSH")) {
_local3 = int(_local3 / 2);
}
if (target.DEFENDING) {
_local3 = int(_local3 * 0.7);
}
if ((REACTION_USING != null) && (REACTION_USING.MODE == "P")) {
if (REACTION_USING.effect == "dmgmult") {
_local3 = int(_local3 * REACTION_USING.mult);
} else if (REACTION_USING.effect == "dmgplus") {
_local3 = _local3 + REACTION_USING.plus;
} else if (REACTION_USING.effect == "dmgresist") {
_local3 = _local3 - REACTION_USING.resist;
}
}
if (_local3 < 0) {
_local3 = 0;
}
if (_local3 > 9999) {
_local3 = 9999;
}
return(_local3);
}
function MdmgFormula(attacker, target, spellPow, elem) {
if (spellPow == null) {
return(0);
}
var _local5 = attacker.stats;
var _local6 = target.stats;
var _local7 = ((spellPow == undefined) ? 0 : (spellPow));
var _local3 = int(_local7 * (1 + (((_local5.SPR + _local5.BONUS.SPR) - 10) / 20))) - _local6.MDEF;
if ((_local7 > 0) && (_local3 < 0)) {
_local3 = 0;
}
if (target.stats.body.UNDEAD && (_local3 < 0)) {
_local3 = Math.abs(_local3);
}
if ((GetSpellStats(theSpell).elem != undefined) && (!GetSpellStats(theSpell).special.HEALING)) {
_local3 = int(_local3 * ElemModifier(target, GetSpellStats(theSpell).elem, _local3));
}
if (_root.HasSTFX(_local6, "MSH")) {
_local3 = int(_local3 / 2);
}
if (tALL) {
var _local4 = 0;
var _local2 = 1;
while (_local2 <= 4) {
if (_root[tALL + _local2]._visible) {
_local4++;
}
_local2++;
}
if (_local4 > 0) {
_local3 = int(_local3 / _local4);
} else {
_local3 = int(_local3 / 2);
}
}
if (_local3 > 9999) {
_local3 = 9999;
}
if (_local3 < -9999) {
_local3 = -9999;
}
if (((REACTION_USING != null) && (REACTION_USING.effect == "dmgmult")) && (REACTION_USING.MODE == "M")) {
_local3 = int(_local3 * REACTION_USING.mult);
}
if (_root.HasSTFX(_local5, "CRS")) {
_local3 = Math.abs(_local3);
}
return(int(_local3));
}
function DamageNumber(x, y, amount, amount2, statmod, frame) {
d_d++;
var _local2 = "dn_" + d_d;
_root.attachMovie("dmgNum", _local2, d_d);
_root[_local2]._x = x;
_root[_local2]._y = y;
_root[_local2].amount = amount;
_root[_local2].amount2 = ("<p align='center'>" + amount2) + "</p>";
_root[_local2].statmod = ((statmod == null) ? "" : (statmod));
if (frame != null) {
_root[_local2].gotoAndStop(frame);
}
}
function InflictDamage(amount, noflash, spell) {
if (_root[Target].stats.hp[1] <= 0) {
amount = 0;
}
if (amount > 0) {
_root[Target].Animate("hit");
if (!(noflash === true)) {
Flash(_root[Target].mdl, ((spell && (GetSpellStats(theSpell).elem)) ? (ElemRGB(GetSpellStats(theSpell).elem)) : ((GetWeaponStats(_root[Acting].stats.weapon).elem ? (ElemRGB(GetWeaponStats(_root[Acting].stats.weapon).elem)) : ((_root[Acting].stats.elem ? (ElemRGB(_root[Acting].stats.elem)) : ([255, 0, 0])))))));
}
}
if (amount == null) {
return(undefined);
}
var _local3 = (((GetSubCommand(Command[1], Command[0]).MP == true) || (GetItemInfo(spell).action[0] == "r_MP")) ? "mp" : "hp");
DamageNumber(_root[Target]._x, _root[Target]._y, ("<p align='center'>" + ((amount >= 0) ? (amount) : (((("<font color='" + ((_local3 == "mp") ? "#77eeff" : "#22ff88")) + "'>") + Math.abs(amount)) + "</font>"))) + "</p>", Math.abs(amount));
if (REACTION_USING != null) {
ParticleEffect(REACTION_USING.pfx[0], _root[Target]);
}
if ((TECH_USING == null) || (TECH_USING.MODE == "P")) {
_root.RemoveSTFX(_root[Target].stats, "SLP");
_root.RemoveSTFX(_root[Target].stats, "CNF");
}
_root["PCstats_" + _root[Target].ID][_local3][1] = _root["PCstats_" + _root[Target].ID][_local3][1] - amount;
if (_local3 == "hp") {
if ((substring(_root[Target].ID, 1, 1)) != "e") {
_root.plotVars.THS.total_dmg_received = _root.plotVars.THS.total_dmg_received + amount;
}
if ((substring(_root[Acting].ID, 1, 1)) != "e") {
_root.plotVars.THS.total_dmg_delivered = _root.plotVars.THS.total_dmg_delivered + amount;
}
}
if (_root["PCstats_" + _root[Target].ID][_local3][1] <= 0) {
_root["PCstats_" + _root[Target].ID][_local3][1] = 0;
_root[Target].dying = true;
_root.RemoveSTFX(_root[Target].stats, "ALL");
if (Acting != Target) {
GiveEXP((_root[Target].stats.mdlStats.EXP ? (_root[Target].stats.mdlStats.EXP[1]) : 100), _root[Acting], _root[Target]);
var _local2 = 1;
while (_local2 <= 4) {
if (_root[(substring(_root[Acting]._name, 1, 1)) + _local2]._visible && (_root[Acting].ID != _local2)) {
GiveEXP((_root[Target].stats.mdlStats.EXP ? (_root[Target].stats.mdlStats.EXP[1]) : 100) / 2, _root[(substring(_root[Acting]._name, 1, 1)) + _local2], _root[Target]);
}
_local2++;
}
}
}
if (_root["PCstats_" + _root[Target].ID][_local3][1] > _root["PCstats_" + _root[Target].ID][_local3][0]) {
_root["PCstats_" + _root[Target].ID][_local3][1] = _root["PCstats_" + _root[Target].ID][_local3][0];
}
if ((GetSubCommand(Command[1], Command[0]).drain != undefined) && (spell != "DRAIN")) {
Target = "" + Acting;
InflictDamage((-amount) * GetSubCommand(Command[1], Command[0]).drain, true, "DRAIN");
}
}
function GiveEXP(amount, receiver, target) {
if (receiver.dying) {
return(undefined);
}
var _local3 = int(amount * (target.stats.level / receiver.stats.level));
_root.gizmo.exp_stash[receiver._name] = _root.gizmo.exp_stash[receiver._name] + _local3;
_root.gizmo.exp_delay = 2;
_root["PCstats_" + receiver.ID].exp = _root["PCstats_" + receiver.ID].exp + _local3;
while (_root["PCstats_" + receiver.ID].exp >= (receiver.stats.level * 1000)) {
_root.LevelUp(_root["PCstats_" + receiver.ID]);
_root.Flash(receiver.mdl, [255, 238, 85]);
_root.DamageNumber(receiver._x, receiver._y, "<font color='#FDEF9F'><p align='center'>Level Up!</p></font>", "Level Up!");
}
}
function ParticleEffect(pfx, target) {
if (pfx == null) {
return(undefined);
}
s_d++;
var _local3 = "spfx" + s_d;
_root.attachMovie("spellFX", _local3, s_d);
_root[_local3]._x = target._x;
_root[_local3]._y = target._y;
_root[_local3].gotoAndStop(pfx);
_root[_local3].count = 0;
_root[_local3].onEnterFrame = function () {
this.count++;
if (this.count > 100) {
this.removeMovieClip();
}
};
}
function DoCommand(Command) {
_root.Command = Command;
_root.command = ((Command[0] != undefined) ? (Command[1]) : (Command));
BMSG = (_root[Acting].stats.name + " uses ") + (Command[0] ? ((("SUBCOMMAND of COMMAND " + Command[1]) + ": ") + Command[0]) : ("COMMAND: " + command));
spellCasting = Command[0];
if (command == "-") {
return(undefined);
}
if ((substring(command, 2, -1)) == "_Magic") {
command = (substring(command, 1, 1)) + ".Magic";
}
if (GetSubCommand(Command[1], Command[0]).physical) {
_root.phySpell = Command;
_root[Acting].Attack();
} else {
switch (command) {
case "Synthesis" :
case "Healing" :
Flash(_root[Acting].mdl, [192, 248, 146]);
Target = Acting;
InflictDamage(((command == "Healing") ? (-_root[Acting].stats.hp[0]) : (-int(_root["PCstats_" + _root[Acting].ID].SPR))));
ParticleEffect("Synthesis", _root[Acting]);
GiveEXP(50, _root[Acting], _root[Acting]);
endturn = true;
GDelay = 20;
break;
case "B.Magic" :
case "W.Magic" :
case "Y.Magic" :
case "F.Magic" :
case "S.Magic" :
case "Optics" :
case "Slime" :
HAZEfading = 1;
_root[Acting].mdl.gotoAndPlay("special");
break;
case "Item" :
dropItem(Command[0]);
useitem = GetItemInfo(Command[0]);
_root[Acting].mdl.gotoAndPlay("useitem");
endturn = true;
GDelay = 35;
break;
case "Attack" :
case "M.Sword" :
_root[Acting].Attack();
break;
case "Swordplay" :
_root[Acting].mdl.gotoAndPlay("special");
break;
case "DragonBreath" :
_root[Acting].mdl.gotoAndPlay("breath");
endturn = true;
GDelay = 50;
break;
default :
BMSG = BMSG + "\rNothing happens.";
endturn = true;
GDelay = 20;
}
}
_root["menu_" + Acting]._visible = false;
if (Command[0] != undefined) {
TECHbar.Show(LatinName(Command));
}
}
function DoCastSpell(spell) {
if (_root.HasSTFX(_root[Acting].stats, "CRS")) {
Target = Acting;
}
spellCasting = true;
TECHbar.Show(spell.name);
_root.theSpell = spell;
BG.haze.fading = 1;
if (spell.soul == "DragonSoul") {
_root[Acting].mdl.gotoAndPlay("breath");
} else if (GetSpellStats(spell).special.PHYSICAL) {
phySpell = true;
_root[Acting].Attack();
} else {
_root[Acting].Animate("special");
}
}
function CastSpell() {
mpDone = false;
var _local4 = TECH_USING;
if (this[Acting].stats.learned[_local4.skill] == null) {
this[Acting].stats.learned[_local4.skill] = 0;
}
if (this[Acting].stats.learned[_local4.skill] < TECH_USING.AP) {
this[Acting].stats.learned[_local4.skill]++;
}
if ((substring(Target, 1, 3)) == "ALL") {
tType = substring(Target, 5, -1);
tALL = tType;
CASTING_ON_ALL = 1;
return(undefined);
while (_local3 <= 4) {
if ((!_root[tType + _local3]._visible) || (_root[tType + _local3].dying)) {
} else {
Target = tType + _local3;
CastSpell2();
}
_local3++;
}
} else {
CastSpell2();
}
if (!mpDone) {
_root[Acting].stats.mp[1] = _root[Acting].stats.mp[1] - TECH_USING.MP;
mpDone = true;
}
endturn = true;
GDelay = 20;
spellCasting = false;
tALL = false;
}
function CastSpell2() {
_root[_root.Target].EXCLAIM._visible = false;
_root.REACTION = null;
var _local2 = TECH_USING;
if (_root[Acting].stats.mp[1] < _local2.MP) {
TECHbar.Show("Not enough MP!", "empty");
return(undefined);
}
CS_MISSED = false;
if ((_local2.accuracy != null) && (random(101) > _local2.accuracy)) {
_root.DamageNumber(_root[_root.Target]._x, _root[_root.Target]._y, "<p align='center'>Miss</p>", "Miss");
_root.playSFX("Miss");
CS_MISSED = true;
return(undefined);
}
if (endturn) {
return(undefined);
}
GiveEXP((_root[Target].stats.mdlStats.EXP ? (_root[Target].stats.mdlStats.EXP[0]) : 50), _root[Acting], _root[Target]);
spelement = "" + _local2.elem;
SPELLCOLOUR = HexToRGB(_local2.pfx[1]);
Flash(_root[Target].mdl, HexToRGB(_local2.pfx[1]));
ParticleEffect(_local2.pfx[0], _root[Target]);
if (_local2.sfx) {
playSFX(_local2.sfx);
}
if (_local2.DMG[0] != null) {
var _local4;
if (phySpell) {
_local4 = dmgFormula(_root[Acting], _root[Target], GetTechBaseDMG(_local2.DMG, _root[Acting]), _local2.elem);
} else {
_local4 = MdmgFormula(_root[Acting], _root[Target], GetTechBaseDMG(_local2.DMG, _root[Acting]), _local2.elem);
}
InflictDamage(_local4 * (_local2.special.HEALING ? -1 : 1), true);
if (_local2.special.DRAIN) {
var _local5 = "" + _root.Target;
_root.Target = _root.Acting;
InflictDamage(_local4 * (_local2.special.HEALING ? 1 : -1), true);
_root.Target = _local5;
}
}
if (_local2.special.DISPEL) {
for (s in GoodSTATUSES_) {
_root.RemoveSTFX(_root[Target].stats, s);
}
}
for (s in _local2.stfx) {
if (_local2.stfx[s] > 0) {
if (GoodSTATUSES_[s]) {
_root.AddSTFX(_root[Target].stats, s);
} else if (_local2.special.HEALING) {
if (GoodSTATUSES_[s]) {
_root.AddSTFX(_root[Target].stats, s);
} else {
_root.RemoveSTFX(_root[Target].stats, s);
}
} else if (random(101) < _local2.stfx[s]) {
if (random(101) > _root[Target].stats.RESIST[s]) {
_root.AddSTFX(_root[Target].stats, s);
}
}
}
}
for (s in _local2.stat_mod) {
if (_local2.stat_mod[s] > 0) {
_root["PCstats_" + _root[Target].ID].statEnhn[s] = _root["PCstats_" + _root[Target].ID].statEnhn[s] + (_local2.stat_mod[s] * (_local2.special.HEALING ? 1 : -1));
if (_root["PCstats_" + _root[Target].ID].statEnhn[s] > 10) {
_root["PCstats_" + _root[Target].ID].statEnhn[s] = 10;
}
if (_root["PCstats_" + _root[Target].ID].statEnhn[s] < -10) {
_root["PCstats_" + _root[Target].ID].statEnhn[s] = -10;
}
var _local3 = 0 + (_local2.stat_mod[s] * (_local2.special.HEALING ? 1 : -1));
DamageNumber(_root[Target]._x, _root[Target]._y, "", "", (s + ((_local3 > 0) ? "+" : "-")) + Math.abs(_local3), ((_local3 < 0) ? 2 : 1));
if (_local2.special.DRAIN) {
_root["PCstats_" + _root[Target].ID].statEnhn[s] = _root["PCstats_" + _root[Target].ID].statEnhn[s] - ((_local2.stat_mod[s] = (_local2.special.HEALING ? 1 : -1)));
if (_root["PCstats_" + _root[Target].ID].statEnhn[s] > 10) {
_root["PCstats_" + _root[Target].ID].statEnhn[s] = 10;
}
if (_root["PCstats_" + _root[Target].ID].statEnhn[s] < -10) {
_root["PCstats_" + _root[Target].ID].statEnhn[s] = -10;
}
_local3 = -(_local2.stat_mod[s] * (_local2.special.HEALING ? 1 : -1));
DamageNumber(_root[Acting]._x, _root[Acting]._y, "", "", (s + ((_local3 > 0) ? "+" : "-")) + Math.abs(_local3), ((_local3 < 0) ? 2 : 1));
}
}
}
return(undefined);
}
function RemoveTransformations() {
var _local2 = 1;
while (_local2 <= 4) {
if (_root["p" + _local2].TRANSFORMED_) {
_root["PCstats_" + _local2] = _root.Clone(_root["p" + _local2].true_stats);
_root["PCstats_" + _local2].level = _root["p" + _local2].stats.level;
_root["PCstats_" + _local2].exp = _root["p" + _local2].stats.exp;
_root["PCstats_" + _local2].hp[1] = int(_root["PCstats_" + _local2].hp[0] * (_root["p" + _local2].stats.hp[1] / _root["p" + _local2].stats.hp[0]));
_root["PCstats_" + _local2].mp = _root["p" + _local2].stats.mp;
}
_local2++;
}
}
function ClearBattlefield(arg) {
sky.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
sky = null;
if (arg != "no_stats") {
RemoveStatEnhancements();
RemoveTransformations();
}
_root.BMENU.removeMovieClip();
_root.FOG.removeMovieClip();
_root.TECHbar.removeMovieClip();
vBox.removeMovieClip();
var _local2 = 1;
while (_local2 <= 4) {
_root["p" + _local2].removeMovieClip();
_root["e" + _local2].removeMovieClip();
_root["sb_" + _local2].removeMovieClip();
_root["sb_e" + _local2].removeMovieClip();
_root["menu_p" + _local2].removeMovieClip();
_local2++;
}
TECHbar.removeMovieClip();
TECHbar2.removeMovieClip();
}
function Flee(always) {
plevels = [p1.stats.level, p2.stats.level, p3.stats.level, p4.stats.level];
flevels = [e1.stats.level, e2.stats.level, e3.stats.level, e4.stats.level];
difference = (((flevels[0] + flevels[1]) + flevels[2]) + flevels[3]) - (((plevels[0] + plevels[1]) + plevels[2]) + plevels[3]);
chance = 100 - (difference / 4);
if ((random(101) > chance) && (!always)) {
TECHbar.Show("Can't escape!", "empty");
GDelay = 20;
endturn = true;
return(undefined);
}
_root.playSFX("Escape");
_quality = "LOW";
boss = null;
RemoveStatEnhancements();
_root.ReturnToGame(-3);
}
function RemoveStatEnhancements() {
var _local3 = ["STR", "VIT", "AGL", "SPR", "DEF", "MDEF"];
var _local4 = 1;
while (_local4 <= 4) {
var _local2 = 0;
while (_local2 < _local3.length) {
if (((_root["PCstats_" + _local4].statEnhn[_local3[_local2]] != 0) && (_local3[_local2] != "DEF")) && (_local3[_local2] != "MDEF")) {
_root["PCstats_" + _local4][_local3[_local2]] = _root["PCstats_" + _local4][_local3[_local2]] - _root["PCstats_" + _local4].statEnhn[_local3[_local2]];
}
_root["PCstats_" + _local4].statEnhn[_local3[_local2]] = 0;
if (_root["PCstats_e" + _local4].statEnhn[_local3[_local2]] != 0) {
_root["PCstats_e" + _local4][_local3[_local2]] = _root["PCstats_e" + _local4][_local3[_local2]] - _root["PCstats_e" + _local4].statEnhn[_local3[_local2]];
}
_root["PCstats_e" + _local4].statEnhn[_local3[_local2]] = 0;
_local2++;
}
var _local6 = ["CNF", "SLP", "RGN", "PSH", "MSH"];
var _local5 = 0;
while (_local5 < _local6.length) {
_root.RemoveSTFX(_root["PCstats_" + _local4], _local6[_local5]);
_local5++;
}
_local4++;
}
modded = false;
}
foePartyLayouts = {DEFAULT:[[76, 62], [56, 109], [33, 150], [54, 23]], SOLO:[[60, 80], [0, 0], [0, 0], [0, 0]], DUO:[[56, 46], [56, 140], [0, 0], [0, 0]], TRIO:[[52, 90], [22, 154], [30, 18], [0, 0]], DRAGON:[[65, 93], [0, 0], [0, 0], [0, 0]]};
_quality = OPTIONS.btlQuality;
Target = "e1";
if (!battling) {
dmn1 = null;
dmn2 = null;
dmn3 = null;
dmn4 = null;
modded = false;
BOSSBATTLE = ((boss == null) ? 0 : 1);
}
battling = true;
Acting = null;
Target = null;
victory = false;
test2 = 0;
var c = ((boss != undefined) ? (boss[0]) : (foes[random(foes.length)]));
FOE_POS = foePartyLayouts[((boss != null) ? (boss[3]) : (c[4]))];
var i = 1;
while (i <= 4) {
if (c[i - 1] == null) {
_root["PCstats_e" + i] = {model:null};
} else {
_root["PCstats_e" + i] = {name:((boss != undefined) ? (boss[1][i - 1]) : (GetModelInfo(c[i - 1]).names[random(GetModelInfo(c[i - 1]).names.length)])), model:c[i - 1], hp:[10, 10], mp:[10, 10], B_LVL:((boss != null) ? (boss[2][i - 1]) : null)};
_root.plotVars.EN_FULL.Bestiary[c[i - 1].toLowerCase()] = 1;
}
var a = FOE_POS;
_root["e" + i]._x = a[i - 1][0] + 38;
_root["e" + i]._y = (a[i - 1][1] + 48) + 30;
i++;
}
GDelay = 30;
endturn = true;
turnArray = [];
d_d = 35000;
s_d = 16000;
if (!modded) {
modded = true;
var i = 1;
while (i <= 4) {
_root["PCstats_" + i].statEnhn = {STR:0, VIT:0, AGL:0, SPR:0, DEF:0, MDEF:0};
_root["PCstats_e" + i].statEnhn = {STR:0, VIT:0, AGL:0, SPR:0, DEF:0, MDEF:0};
i++;
}
}
Instance of Symbol 4705 MovieClip in Frame 108
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 4345 MovieClip "sb_e1" in Frame 108
onClipEvent (load) {
ID = "e1";
this.swapDepths(54001);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 4345 MovieClip "sb_e2" in Frame 108
onClipEvent (load) {
ID = "e2";
this.swapDepths(54002);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 4345 MovieClip "sb_e3" in Frame 108
onClipEvent (load) {
ID = "e3";
this.swapDepths(54003);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Flee" in Frame 108
onClipEvent (load) {
_visible = (_root.boss == null);
}
on (press) {
_root.Flee(1);
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 4707 MovieClip in Frame 108
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 4345 MovieClip "sb_3" in Frame 108
onClipEvent (load) {
ID = 3;
this.swapDepths(54004);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 4345 MovieClip "sb_2" in Frame 108
onClipEvent (load) {
ID = 2;
this.swapDepths(54005);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 4345 MovieClip "sb_1" in Frame 108
onClipEvent (load) {
ID = 1;
this.swapDepths(54006);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 4713 MovieClip "TECHbar" in Frame 108
onClipEvent (load) {
function Show(tech, element) {
this.gotoAndStop(((element == "ITEM") ? 2 : 1));
if (element == "ITEM") {
item.gotoAndStop(_root.GetItemInfo(tech).type);
item.img.gotoAndStop(tech);
} else {
elem.gotoAndStop(element);
}
TECH = tech;
fading = 1;
count = 20;
}
count = 0;
_alpha = 0;
fading = 0;
this.swapDepths(104180);
}
onClipEvent (enterFrame) {
if (fading != 0) {
_alpha = (_alpha + (40 * fading));
if (((fading == 1) && (_alpha >= 100)) || ((fading == -1) && (_alpha <= 0))) {
_alpha = ((fading == 1) ? 100 : 0);
fading = 0;
}
}
if (count > 0) {
count--;
if (count <= 0) {
fading = -1;
}
}
}
Instance of Symbol 524 MovieClip [empty] "RADIAL_" in Frame 108
onClipEvent (load) {
function GetTargets(S_val, ALL) {
var _local6 = [];
var _local8 = [3, 1, 2];
if (ALL) {
_local6.push([{N:"All Allies", T:"AllPCs", S:[S_val, "ALL_p"], target:1}]);
}
var _local3 = 0;
while (_local3 < 3) {
var _local4 = _local8[_local3];
if (_root["PCstats_" + _local4].model != null) {
_local6.push([{N:_root["PCstats_" + _local4].name, T:"_PC", S:[S_val, "p" + _local4], target:1}]);
}
_local3++;
}
if (ALL) {
_local6.push([{N:"All Foes", T:"AllFoes", S:[S_val, "ALL_e"], target:1}]);
}
var _local5 = 0;
while (_local5 < 3) {
var _local2 = _local8[2 - _local5];
if ((_root["PCstats_e" + _local2].model != null) && (!_root["e" + _local2].dying)) {
_local6.push([{N:_root["PCstats_e" + _local2].name, T:"_FOE", S:[S_val, "e" + _local2], target:1}]);
}
_local5++;
}
return(_local6);
}
function DetermineCommands(stats) {
var _local10 = [];
var _local4 = 0;
while (_local4 < stats.inventory.length) {
if (_root.GetItemInfo(stats.inventory[_local4].item).type == "item") {
_local10.push([{N:stats.inventory[_local4].item, item:stats.inventory[_local4].item, alt:"Amount: " + stats.inventory[_local4].amount}, GetTargets(["ITEM", stats.inventory[_local4].item])]);
}
_local4++;
}
var _local5 = {OFFENSIVE:[], HEALING:[], ENHANCEMENT:[], ENFEEBLING:[], TRANSFORM:[]};
var _local3 = 0;
while (_local3 < stats.spells.length) {
_local5[_root.GetSpellStats(stats.spells[_local3]).type].push([{N:stats.spells[_local3].name, T:"spell_" + _root.GetSpellStats(stats.spells[_local3]).elem, alt:"MP cost: " + _root.GetSpellStats(stats.spells[_local3]).mpCost}, ((_root.GetSpellStats(stats.spells[_local3]).TT == "SELF") ? ([[{N:_root[_root.Acting].stats.name, T:"_PC", S:[["SPELL", stats.spells[_local3]], _root.Acting], target:1}]]) : (GetTargets(["SPELL", stats.spells[_local3]], (_root.GetSpellStats(stats.spells[_local3]).special.PHYSICAL ? 0 : 1))))]);
_local3++;
}
var _local13 = [{N:"Magic"}, [["HEALING", ((_local5.HEALING.length > 0) ? (_local5.HEALING) : null)], ["OFFENSIVE", ((_local5.OFFENSIVE.length > 0) ? (_local5.OFFENSIVE) : null)], ["ENFEEBLING", ((_local5.ENFEEBLING.length > 0) ? (_local5.ENFEEBLING) : null)], ["ENHANCEMENT", ((_local5.ENHANCEMENT.length > 0) ? (_local5.ENHANCEMENT) : null)], ["TRANSFORM", ((_local5.TRANSFORM.length > 0) ? (_local5.TRANSFORM) : null)]]];
var _local12 = ((_local10.length <= 0) ? ([{N:"Item"}]) : ([{N:"Item"}, _local10]));
var _local11 = [[{N:"Attack"}, GetTargets("ATTACK")], [{N:"Defend", S:"DEFEND"}]];
if (!_root.boss) {
_local11.push([{N:"Flee", S:"FLEE"}]);
}
_local11.push(_local12);
if (((((_local5.OFFENSIVE.length > 0) || (_local5.HEALING.length > 0)) || (_local5.ENHANCEMENT.length > 0)) || (_local5.ENFEEBLING.length > 0)) || (_local5.TRANSFORM.length > 0)) {
_local11.push(_local13);
}
return(_local11);
}
function Flourish() {
if (this._name == "RADIAL_") {
this._x = _root[_root.Acting]._x - 10;
this._y = _root[_root.Acting]._y;
}
coms = DetermineCommands(_root[_root.Acting].stats);
for (o in this) {
this[o].removeMovieClip();
}
var _local3 = 0;
while (_local3 < this.coms.length) {
var _local4 = "com" + _local3;
this.attachMovie("radial_circle", _local4, 100 + _local3);
this[_local4].COMMAND = this.coms[_local3][0];
this[_local4].yMod = Math.cos((((360 / this.coms.length) * _local3) * Math.PI) / 180) * (-this.radius);
this[_local4].xMod = Math.sin((((360 / this.coms.length) * _local3) * Math.PI) / 180) * this.radius;
if (this.coms[_local3][0].item) {
this[_local4].icon.gotoAndStop("Item_");
this[_local4].icon.img.gotoAndStop(this.coms[_local3][0].item);
} else {
this[_local4].icon.gotoAndStop((this.coms[_local3][0].T ? (this.coms[_local3][0].T) : ((this.coms[_local3][0].N ? (this.coms[_local3][0].N) : (this.coms[_local3][0])))));
}
this[_local4].com = (this.coms[_local3][0].N ? (this.coms[_local3][0].N) : (this.coms[_local3][0]));
this[_local4].secondary = (this.coms[_local3][0].alt ? (this.coms[_local3][0].alt) : ((this.coms[_local3][1] ? (this.coms[_local3][1].length + " commands") : "")));
this[_local4].frame = ((this[_local4].xMod >= 0) ? (((this[_local4].yMod > 0) ? 4 : 1)) : (((this[_local4].yMod > 0) ? 3 : 2)));
this[_local4].gotoAndStop(this[_local4].frame);
this[_local4].delay = 0;
this[_local4].subcoms = this.coms[_local3][1];
if (((substring(this.coms[_local3][0].alt, 1, 2)) == "MP") && (_root[_root.Acting].stats.mp[1] < (substring(this.coms[_local3][0].alt, 9, -1)))) {
this[_local4]._alpha = 40;
}
if ((!this.coms[_local3][1]) && (!this.coms[_local3][0].S)) {
this[_local4].frame = 6;
this[_local4].gotoAndStop(6);
}
this[_local4].onEnterFrame = function () {
if (this.delay < 3) {
this.delay++;
this._x = this._x + (this.xMod / 3);
this._y = this._y + (this.yMod / 3);
if (this.getBounds(_root).yMin < 10) {
_root.RADIAL_._y = _root.RADIAL_._y - (this.yMod / 3);
}
}
};
this[_local4].Clicked = function () {
if (this._alpha < 60) {
_root.playSFX("error");
return(undefined);
}
if (this.COMMAND.S) {
_root.RADIAL_.DoCommand(this.COMMAND.S);
return(undefined);
}
if (this.C != null) {
this.C.removeMovieClip();
if (this._parent._parent.com != null) {
this._parent._parent.gotoAndStop(5);
}
for (o in this._parent) {
this._parent[o].gotoAndStop(this._parent[o].frame);
}
this.swapDepths(this.origDepth);
return(undefined);
}
if ((!this.subcoms) || (this._alpha < 60)) {
_root.playSFX("error");
return(undefined);
}
this.origDepth = 0 + this.getDepth();
this.swapDepths(500);
this.attachMovie("empty", "C", 100);
this.C.coms = this.subcoms;
this.C.radius = 30 + ((this.subcoms.length > 6) ? (4 * (this.subcoms.length - 6)) : 0);
this.C.Flourish = this._parent.Flourish;
if (this._parent._parent.com != null) {
this._parent._parent.gotoAndStop(6);
}
for (var o in this._parent) {
this._parent[o].gotoAndStop(6);
}
this.gotoAndStop(5);
this.C.Flourish();
};
_local3++;
}
}
function DoCommand(command) {
if (command == "FLEE") {
_root.Flee();
} else if ((command == "DEFEND") || (command[0] == 1)) {
if (command[0] == 1) {
_root.playSFX("error");
}
_root[_root.Acting].DEFENDING = true;
_root.endturn = true;
_root.GDelay = 20;
} else if (command[0][0] == "SPELL") {
_root.Target = command[1];
_root.DoCastSpell(command[0][1]);
} else if (command[0][0] == "ITEM") {
_root.Target = command[1];
_root.dropItem(command[0][1], false, _root[_root.Acting].ID);
_root.useitem = _root.GetItemInfo(command[0][1]);
_root[_root.Acting].mdl.gotoAndPlay("useitem");
_root.endturn = true;
_root.GDelay = 35;
} else {
_root.Target = command[1];
_root[_root.Acting].Attack();
}
for (o in this) {
this[o].removeMovieClip();
}
}
function SetPos() {
this._x = _root[_root.Acting]._x - 10;
this._y = _root[_root.Acting]._y;
}
_visible = ((substring(_root.Acting, 1, 1)) == "p");
this.swapDepths(191781);
radius = 45;
if ((substring(_root.Acting, 1, 1)) == "p") {
Flourish();
}
}
onClipEvent (enterFrame) {
_root.test = this.getBounds(_root).yMin;
if ((_y > _root[_root.Acting]._y) && (this.getBounds(_root).yMin >= 10)) {
_y = (_y - 10);
}
_visible = (((substring(_root[_root.Acting].ID, 1, 1)) != "e") && (_root.Acting != null));
}
Instance of Symbol 524 MovieClip [empty] "RADIAL_" in Frame 108
onClipEvent (load) {
function GetTargets(S_val, ALL) {
var _local6 = [];
var _local8 = [3, 1, 2];
if (ALL) {
_local6.push([{N:"All Allies", T:"AllPCs", S:[S_val, "ALL_p"], target:1}]);
}
var _local3 = 0;
while (_local3 < 3) {
var _local4 = _local8[_local3];
if (_root["PCstats_" + _local4].model != null) {
_local6.push([{N:_root["PCstats_" + _local4].name, T:"_PC", S:[S_val, "p" + _local4], target:1}]);
}
_local3++;
}
if (ALL) {
_local6.push([{N:"All Foes", T:"AllFoes", S:[S_val, "ALL_e"], target:1}]);
}
var _local5 = 0;
while (_local5 < 3) {
var _local2 = _local8[2 - _local5];
if ((_root["PCstats_e" + _local2].model != null) && (!_root["e" + _local2].dying)) {
_local6.push([{N:_root["PCstats_e" + _local2].name, T:"_FOE", S:[S_val, "e" + _local2], target:1}]);
}
_local5++;
}
return(_local6);
}
function DetermineCommands(stats) {
var _local10 = [];
var _local4 = 0;
while (_local4 < stats.inventory.length) {
if (_root.GetItemInfo(stats.inventory[_local4].item).type == "item") {
_local10.push([{N:stats.inventory[_local4].item, item:stats.inventory[_local4].item, alt:"Amount: " + stats.inventory[_local4].amount}, GetTargets(["ITEM", stats.inventory[_local4].item])]);
}
_local4++;
}
var _local5 = {OFFENSIVE:[], HEALING:[], ENHANCEMENT:[], ENFEEBLING:[], TRANSFORM:[]};
var _local3 = 0;
while (_local3 < stats.spells.length) {
_local5[_root.GetSpellStats(stats.spells[_local3]).type].push([{N:stats.spells[_local3].name, T:"spell_" + _root.GetSpellStats(stats.spells[_local3]).elem, alt:"MP cost: " + _root.GetSpellStats(stats.spells[_local3]).mpCost}, ((_root.GetSpellStats(stats.spells[_local3]).TT == "SELF") ? ([[{N:_root[_root.Acting].stats.name, T:"_PC", S:[["SPELL", stats.spells[_local3]], _root.Acting], target:1}]]) : (GetTargets(["SPELL", stats.spells[_local3]], (_root.GetSpellStats(stats.spells[_local3]).special.PHYSICAL ? 0 : 1))))]);
_local3++;
}
var _local13 = [{N:"Magic"}, [["HEALING", ((_local5.HEALING.length > 0) ? (_local5.HEALING) : null)], ["OFFENSIVE", ((_local5.OFFENSIVE.length > 0) ? (_local5.OFFENSIVE) : null)], ["ENFEEBLING", ((_local5.ENFEEBLING.length > 0) ? (_local5.ENFEEBLING) : null)], ["ENHANCEMENT", ((_local5.ENHANCEMENT.length > 0) ? (_local5.ENHANCEMENT) : null)], ["TRANSFORM", ((_local5.TRANSFORM.length > 0) ? (_local5.TRANSFORM) : null)]]];
var _local12 = ((_local10.length <= 0) ? ([{N:"Item"}]) : ([{N:"Item"}, _local10]));
var _local11 = [[{N:"Attack"}, GetTargets("ATTACK")], [{N:"Defend", S:"DEFEND"}]];
if (!_root.boss) {
_local11.push([{N:"Flee", S:"FLEE"}]);
}
_local11.push(_local12);
if (((((_local5.OFFENSIVE.length > 0) || (_local5.HEALING.length > 0)) || (_local5.ENHANCEMENT.length > 0)) || (_local5.ENFEEBLING.length > 0)) || (_local5.TRANSFORM.length > 0)) {
_local11.push(_local13);
}
return(_local11);
}
function Flourish() {
if (this._name == "RADIAL_") {
this._x = _root[_root.Acting]._x - 10;
this._y = _root[_root.Acting]._y;
}
coms = DetermineCommands(_root[_root.Acting].stats);
for (o in this) {
this[o].removeMovieClip();
}
var _local3 = 0;
while (_local3 < this.coms.length) {
var _local4 = "com" + _local3;
this.attachMovie("radial_circle", _local4, 100 + _local3);
this[_local4].COMMAND = this.coms[_local3][0];
this[_local4].yMod = Math.cos((((360 / this.coms.length) * _local3) * Math.PI) / 180) * (-this.radius);
this[_local4].xMod = Math.sin((((360 / this.coms.length) * _local3) * Math.PI) / 180) * this.radius;
if (this.coms[_local3][0].item) {
this[_local4].icon.gotoAndStop("Item_");
this[_local4].icon.img.gotoAndStop(this.coms[_local3][0].item);
} else {
this[_local4].icon.gotoAndStop((this.coms[_local3][0].T ? (this.coms[_local3][0].T) : ((this.coms[_local3][0].N ? (this.coms[_local3][0].N) : (this.coms[_local3][0])))));
}
this[_local4].com = (this.coms[_local3][0].N ? (this.coms[_local3][0].N) : (this.coms[_local3][0]));
this[_local4].secondary = (this.coms[_local3][0].alt ? (this.coms[_local3][0].alt) : ((this.coms[_local3][1] ? (this.coms[_local3][1].length + " commands") : "")));
this[_local4].frame = ((this[_local4].xMod >= 0) ? (((this[_local4].yMod > 0) ? 4 : 1)) : (((this[_local4].yMod > 0) ? 3 : 2)));
this[_local4].gotoAndStop(this[_local4].frame);
this[_local4].delay = 0;
this[_local4].subcoms = this.coms[_local3][1];
if (((substring(this.coms[_local3][0].alt, 1, 2)) == "MP") && (_root[_root.Acting].stats.mp[1] < (substring(this.coms[_local3][0].alt, 9, -1)))) {
this[_local4]._alpha = 40;
}
if ((!this.coms[_local3][1]) && (!this.coms[_local3][0].S)) {
this[_local4].frame = 6;
this[_local4].gotoAndStop(6);
}
this[_local4].onEnterFrame = function () {
if (this.delay < 3) {
this.delay++;
this._x = this._x + (this.xMod / 3);
this._y = this._y + (this.yMod / 3);
if (this.getBounds(_root).yMin < 10) {
_root.RADIAL_._y = _root.RADIAL_._y - (this.yMod / 3);
}
}
};
this[_local4].Clicked = function () {
if (this._alpha < 60) {
_root.playSFX("error");
return(undefined);
}
if (this.COMMAND.S) {
_root.RADIAL_.DoCommand(this.COMMAND.S);
return(undefined);
}
if (this.C != null) {
this.C.removeMovieClip();
if (this._parent._parent.com != null) {
this._parent._parent.gotoAndStop(5);
}
for (o in this._parent) {
this._parent[o].gotoAndStop(this._parent[o].frame);
}
this.swapDepths(this.origDepth);
return(undefined);
}
if ((!this.subcoms) || (this._alpha < 60)) {
_root.playSFX("error");
return(undefined);
}
this.origDepth = 0 + this.getDepth();
this.swapDepths(500);
this.attachMovie("empty", "C", 100);
this.C.coms = this.subcoms;
this.C.radius = 30 + ((this.subcoms.length > 6) ? (4 * (this.subcoms.length - 6)) : 0);
this.C.Flourish = this._parent.Flourish;
if (this._parent._parent.com != null) {
this._parent._parent.gotoAndStop(6);
}
for (var o in this._parent) {
this._parent[o].gotoAndStop(6);
}
this.gotoAndStop(5);
this.C.Flourish();
};
_local3++;
}
}
function DoCommand(command) {
if (command == "FLEE") {
_root.Flee();
} else if ((command == "DEFEND") || (command[0] == 1)) {
if (command[0] == 1) {
_root.playSFX("error");
}
_root[_root.Acting].DEFENDING = true;
_root.endturn = true;
_root.GDelay = 20;
} else if (command[0][0] == "SPELL") {
_root.Target = command[1];
_root.DoCastSpell(command[0][1]);
} else if (command[0][0] == "ITEM") {
_root.Target = command[1];
_root.dropItem(command[0][1], false, _root[_root.Acting].ID);
_root.useitem = _root.GetItemInfo(command[0][1]);
_root[_root.Acting].mdl.gotoAndPlay("useitem");
_root.endturn = true;
_root.GDelay = 35;
} else {
_root.Target = command[1];
_root[_root.Acting].Attack();
}
for (o in this) {
this[o].removeMovieClip();
}
}
function SetPos() {
this._x = _root[_root.Acting]._x - 10;
this._y = _root[_root.Acting]._y;
}
_visible = ((substring(_root.Acting, 1, 1)) == "p");
this.swapDepths(191781);
radius = 45;
if ((substring(_root.Acting, 1, 1)) == "p") {
Flourish();
}
}
onClipEvent (enterFrame) {
_root.test = this.getBounds(_root).yMin;
if ((_y > _root[_root.Acting]._y) && (this.getBounds(_root).yMin >= 10)) {
_y = (_y - 10);
}
_visible = (((substring(_root[_root.Acting].ID, 1, 1)) != "e") && (_root.Acting != null));
}
Instance of Symbol 4345 MovieClip "sb_4" in Frame 108
onClipEvent (load) {
ID = 3;
this.swapDepths(54004);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 4345 MovieClip "sb_e4" in Frame 108
onClipEvent (load) {
ID = "e4";
this.swapDepths(54003);
}
on (rollOver) {
base.gotoAndStop("sel");
}
on (rollOut) {
base.gotoAndStop(1);
}
on (press) {
if (((!_root.BMENU._visible) || (_root.BMENU._alpha == 0)) || (_root.vBox._visible)) {
return(undefined);
}
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.gotoAndStop("_Status");
}
Instance of Symbol 1243 MovieClip [empty] "gizmo" in Frame 108
onClipEvent (load) {
exp_stash = {p1:0, p2:0, p3:0, p4:0, e1:0, e2:0, e3:0, e4:0};
exp_delay = 0;
cad = 0;
}
onClipEvent (enterFrame) {
if (_root.REACTION != null) {
if ((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) {
var keydown = (Key.isDown(65) ? 65 : ((Key.isDown(68) ? 68 : 83)));
var AorT = (((substring(_root.Acting, 1, 1)) == "p") ? (_root.Acting) : (_root.Target));
var R = _root[AorT].stats.reactions[(((substring(_root.Acting, 1, 1)) == "p") ? "atk" : "def")]["R" + keydown];
var R2 = _root.GetSkillInfo(_root.classStats[_root[AorT].stats.model].tech, R);
var f = 1;
if (((_root.REACTION == 2) && (R != null)) && ((_root[AorT].stats.learned[R] >= R2.AP) || (_root.HasSkillOnEquipment(_root[AorT].stats, R)))) {
_root.TECHbar2.Show(R, R2.elem);
_root.REACTION_USING = R2;
if (_root[AorT].stats.learned[R] == null) {
_root[AorT].stats.learned[R] = 0;
}
if (_root[AorT].stats.learned[R] < R2.AP) {
_root[AorT].stats.learned[R]++;
}
f = 2;
_root.plotVars.THS["reactions_" + (((substring(_root.Acting, 1, 1)) == "p") ? "atk" : "def")]++;
} else {
_root.playSFX("error");
f = 3;
}
_root.REACTION = null;
_root[_root.Target].EXCLAIM.gotoAndStop(f);
}
}
if (_root.CASTING_ON_ALL != null) {
if (cad > 0) {
cad--;
return(undefined);
}
var T = _root.CASTING_ON_ALL;
if (_root[_root.tType + T]._visible && (!_root[_root.tType + T].dying)) {
_root.Target = _root.tType + T;
_root.CastSpell2();
cad = 5;
}
_root.CASTING_ON_ALL++;
if (_root.CASTING_ON_ALL > 4) {
_root.endturn = true;
_root.GDelay = 20;
_root.spellCasting = false;
_root.tALL = false;
_root.CASTING_ON_ALL = null;
cad = 0;
}
return(undefined);
}
if (exp_delay > 0) {
exp_delay--;
if (exp_delay == 0) {
for (var x in exp_stash) {
if (exp_stash[x] > 0) {
var box = _root["sb_" + (((substring(x, 1, 1)) == "p") ? (substring(x, 2, -1)) : (x))];
if ((substring(box._name, 1, 1)) != "e") {
_root.DamageNumber(box._x, box._y, ("+" + exp_stash[x]) + " exp", ("+" + exp_stash[x]) + " exp", "", "xp");
}
exp_stash[x] = 0;
}
}
}
}
if (Key.isDown(81) && (!Qdown)) {
var b = _root.OPTIONS.btlQuality;
var q = ((b == "LOW") ? "HIGH" : (((b == "MEDIUM") ? "LOW" : "MEDIUM")));
_root.OPTIONS.btlQuality = q;
_quality = q;
Qdown = true;
} else {
Qdown = false;
}
if (((_root.e1.dying && (_root.e2.dying)) && (_root.e3.dying)) && (_root.e4.dying)) {
return(undefined);
}
if (((_root.p1.dying && (_root.p2.dying)) && (_root.p3.dying)) && (_root.p4.dying)) {
_root.gameOver = true;
return(undefined);
}
if (_root.GDelay > 0) {
_root.GDelay--;
if ((_root.GDelay <= 0) && (_root.endturn)) {
_root.nextTurn();
}
}
}
Instance of Symbol 4713 MovieClip "TECHbar2" in Frame 108
onClipEvent (load) {
function Show(tech, element) {
elem.gotoAndStop(element);
TECH = tech;
fading = 1;
count = 20;
}
count = 0;
_alpha = 0;
fading = 0;
this.swapDepths(104181);
}
onClipEvent (enterFrame) {
if (fading != 0) {
_alpha = (_alpha + (40 * fading));
if (((fading == 1) && (_alpha >= 100)) || ((fading == -1) && (_alpha <= 0))) {
_alpha = ((fading == 1) ? 100 : 0);
fading = 0;
}
}
if (count > 0) {
count--;
if (count <= 0) {
fading = -1;
}
}
}
Instance of Symbol 4751 MovieClip "vBox" in Frame 108
onClipEvent (load) {
this.gotoAndStop("examine");
_visible = false;
done = false;
this.swapDepths(92740);
}
onClipEvent (enterFrame) {
if (((!done) && (!_root.gameOver)) && (((!_root.e1._visible) && (!_root.e2._visible)) && (!_root.e3._visible))) {
if (!_root.plotVars.NO_BATTLE_MUSIC) {
_root.playMusic("VictoryFanfare");
}
_visible = true;
this.gotoAndStop("victory");
done = true;
DoVictory();
} else if (!done) {
this.gotoAndStop("examine");
_visible = Key.isDown(69);
}
}
Instance of Symbol 4759 MovieClip "doomFade" in Frame 108
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.gameOver && (_alpha < 100)) {
this.swapDepths(75100);
_alpha = (_alpha + 2);
_root.music.setVolume(_root.music.getVolume() - 2);
var i = 1;
while (i <= 3) {
_root["p" + i]._alpha = _root["p" + i]._alpha - 2.2;
_root["e" + i]._alpha = _root["e" + i]._alpha - 2.2;
_root["menu_p" + i]._alpha = _root["menu_p" + i]._alpha - 2.2;
i++;
}
if (_alpha >= 99) {
_root.ClearBattlefield();
if (_root.plotVars.REPTOIDS == 1) {
_root.gotoAndPlay("cut5");
} else {
this.gotoAndStop(2);
}
}
}
}
Frame 109
stop();
if (CURRENT_AMBIENCE != null) {
sky = new Color(BG);
sky.setTransform(CURRENT_AMBIENCE);
var x = 1;
while (x <= 3) {
_root["p" + x].ambient = new Color(_root["p" + x]);
_root["p" + x].ambient.setTransform(CURRENT_AMBIENCE);
_root["e" + x].ambient = new Color(_root["e" + x]);
_root["e" + x].ambient.setTransform(CURRENT_AMBIENCE);
x++;
}
}
var i = 1;
while (i <= 4) {
var a = FOE_POS;
_root["e" + i]._x = a[i - 1][0] + 38;
_root["e" + i]._y = (a[i - 1][1] + 48) + 15;
i++;
}
Frame 111
playMusic(((plotVars.startedProperly && (_root.plotVars.ROHOPH == null)) ? "WorldMap" : "crickets"));
for (o in cont) {
cont[o].removeMovieClip();
}
_quality = "MEDIUM";
if (plotVars.visited == null) {
plotVars.visited = {};
}
if (plotVars.visited[lastArea] == null) {
plotVars.visited[lastArea] = 1;
}
for (o in _root) {
if ((substring(_root[o]._name, 1, 5)) == "area_") {
_root[o].onRollOver = function () {
_root.rollScroll._x = this._x + 5;
_root.rollScroll._y = this._y - 5;
_root.rollScroll.gotoAndStop(this.tag);
this.gotoAndStop(4);
};
_root[o].onRollOut = function () {
_root.rollScroll._x = 1000;
this.gotoAndStop(1);
};
_root[o].onPress = function () {
_root.lastDir = this.dir;
_root.nextArea = this.dest[0];
_root.spawnLoc = [this.dest[1], this.dest[2]];
_root.fadeTrans.ctrl.active = true;
};
_root[o]._visible = plotVars.visited[substring(o, 6, -1)] == 1;
}
if ((substring(_root[o]._name, 1, 5)) == "path_") {
_root[o]._visible = plotVars.visited[substring(o, 6, -1)] == 1;
}
}
marker._x = _root["area_" + lastArea]._x - 8;
marker._y = _root["area_" + lastArea]._y - 16;
EN_ADD("Places", "Belfan");
Instance of Symbol 4771 MovieClip "area_soothwood" in Frame 111
onClipEvent (load) {
var a = (_root.lastArea == "crashsite");
tag = "Soothwood";
dest = ["Soothwood", (a ? 6 : 35), (a ? 4 : 22)];
dir = (a ? "e" : "w");
}
Instance of Symbol 4771 MovieClip "area_gz_castle" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_goznor" in Frame 111
onClipEvent (load) {
tag = "Goznor";
dest = ["goznor", 18, 21];
dir = "n";
}
Instance of Symbol 4771 MovieClip "area_heroes_den" in Frame 111
onClipEvent (load) {
tag = "Heroes' Den";
dest = ["heroes_den", 6, 13];
dir = "n";
}
Instance of Symbol 4771 MovieClip "area_crashsite" in Frame 111
onClipEvent (load) {
tag = "CRASH SITE";
dest = ["crashsite", 6, 21];
dir = "n";
}
Instance of Symbol 4771 MovieClip "area_glens" in Frame 111
onClipEvent (load) {
tag = "Eastern Fields";
dest = ["WORLDMAP", 18, 21];
dir = "s";
}
Instance of Symbol 4771 MovieClip "area_lakeQur" in Frame 111
onClipEvent (load) {
tag = "Lake Qur";
dest = ["WORLDMAP", 18, 21];
dir = "s";
}
Instance of Symbol 4771 MovieClip "area_canonia" in Frame 111
onClipEvent (load) {
tag = "Canonia";
dest = ["Worldmap", 18, 21];
dir = "s";
}
Instance of Symbol 4771 MovieClip "area_canonia_woods" in Frame 111
onClipEvent (load) {
tag = "Canonia Woods";
dest = ["canonia_woods", 18, 21];
dir = "s";
}
Instance of Symbol 4771 MovieClip "area_pmine" in Frame 111
onClipEvent (load) {
tag = "Poisoned Mines";
dest = ["pmine", 18, 21];
dir = "s";
}
Instance of Symbol 2911 MovieClip [s_mardek_child] "marker" in Frame 111
onClipEvent (load) {
gotoAndStop ("s1");
f = 1;
count = 0;
}
onClipEvent (enterFrame) {
this.gotoAndStop("s" + f);
count++;
if (count >= 20) {
count = 0;
f = (!(f - 1)) + 1;
}
}
Instance of Symbol 4771 MovieClip "area_northcave" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_SunTemple" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_Aeropolis" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_lifewood" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_volcano" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_SoulShrine" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_Underpassage" in Frame 111
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Instance of Symbol 4771 MovieClip "area_CAVE" in Frame 112
onClipEvent (load) {
tag = "Castle Goznor";
dest = ["castle", 6, 13];
this.gotoAndStop(2);
}
Frame 113
function showEMap() {
for (o in _root.editor) {
_root.editor[o].removeMovieClip();
}
D = 1;
y = 0;
while (y < Emap.length) {
x = 0;
while (x < Emap[0].length) {
t = (("t" + x) + "_") + y;
tile = Emap[y][x];
_root.editor.attachMovie("empty", t, D++);
_root.editor[t]._x = x * _root.tilesize;
_root.editor[t]._y = y * _root.tilesize;
_root.editor[t].attachMovie(_root.tileset, "tile", 1);
_root.editor[t]._width = (_root.editor[t]._height = 30.1);
if (_root.tile == undefined) {
_root.editor[t].tile.gotoAndStop("default");
} else {
_root.editor[t].tile.gotoAndStop(_root.tile + 1);
}
_root.editor[t].onRollOver = function () {
if (_root.ThePanel._visible) {
return(undefined);
}
_root.lastCoords = [this._x / _root.tilesize, this._y / _root.tilesize, this.tile._currentframe - 1];
if (Key.isDown(16)) {
this.tile.gotoAndStop(_root.E_loadmap.tileset_.sprite._currentframe);
}
};
_root.editor[t].onPress = function () {
if (_root.ThePanel._visible) {
return(undefined);
}
if (Key.isDown(67)) {
_root.E_loadmap.tileset_.sprite.gotoAndStop(this.tile._currentframe);
return(undefined);
}
if (Key.isDown(46)) {
this.removeMovieClip();
}
this.tile.gotoAndStop(_root.E_loadmap.tileset_.sprite._currentframe);
};
x++;
}
y++;
}
_root.Mtrack = musicTrack;
_root.AREANAME = areaname;
_root.editor.attachMovie("empty", "SPRITES", 54534);
_root.editor.SPRITES.D = 1;
_root.editor.attachMovie("empty", "LOOT", 54535);
_root.editor.LOOT.D = 1;
var l = 0;
while (l < areaLoot.length) {
var Dp = (_root.editor.LOOT.D++);
_root.editor.LOOT.attachMovie(_root.tileset, "L" + Dp, Dp);
_root.editor.LOOT["L" + Dp].props = {type:areaLoot[l].type, amount:areaLoot[l].amount, item:areaLoot[l].item};
_root.editor.LOOT["L" + Dp].attachMovie("greensquare", "sqr", 15);
_root.editor.LOOT["L" + Dp]._x = areaLoot[l].x * _root.tilesize;
_root.editor.LOOT["L" + Dp]._y = areaLoot[l].y * _root.tilesize;
with (_root.editor.LOOT["L" + Dp].sqr) {
_width = (_height = _root.tilesize);
_x = (_y = -1);
_visible = false;
}
_root.editor.LOOT["L" + Dp].sqr.onEnterFrame = function () {
this._visible = this._parent.DRAG;
};
with (_root.editor.LOOT["L" + Dp]) {
_height = (_width = _root.tilesize);
DRAG = true;
}
_root.editor.LOOT["L" + Dp].gotoAndStop("treasure1");
_root.editor.LOOT["L" + Dp].onPress = function () {
if (Key.isDown(46)) {
this.removeMovieClip();
return(undefined);
}
if (Key.isDown(Keys.X)) {
_root.ThePanel._visible = true;
_root.ThePanel.gotoAndStop("Add Treasure");
_root.ThePanel.ITEMNAME = this.props.item;
_root.ThePanel.ITEMTYPE = this.props.type;
_root.ThePanel.addItems(this.props.type);
_root.ThePanel.AMOUNT = this.props.amount;
_root.ThePanel.LOOTSEL = this;
return(undefined);
}
if (this.DRAG) {
this.stopDrag();
this.DRAG = false;
this._x = this._x - (this._x % _root.tilesize);
this._y = this._y - (this._y % _root.tilesize);
} else {
this.DRAG = true;
this.startDrag(true);
}
};
l++;
}
mapEditing = false;
}
tilesize = 30;
screenwidth = 390;
screenheight = 270;
scrnXtiles = screenwidth / tilesize;
scrnYtiles = screenheight / tilesize;
PFX = false;
tilesets = ["t_interior1", "t_interior2", "t_monastery", "t_povos", "t_beach", "t_cave", "t_ehaiah", "t_Ecave", "wm_povos", "wm_ehaiah", "t_cellar", "t_povosSecret", "t_Wruin", "wm_figdim", "t_figdim"];
musictracks = ["Fig_Variations"];
Mtrack = "Fig_Variations";
if (!tileset) {
tileset = "t_interior1";
}
mapEditor = true;
if (NowBehold) {
NowBehold = false;
mapEditing = false;
showEMap();
}
Instance of Symbol 4804 MovieClip "editor" in Frame 113
onClipEvent (load) {
if (SPRITES == undefined) {
this.attachMovie("empty", "SPRITES", 55535);
SPRITES.D = 1;
}
if (LOOT == undefined) {
this.attachMovie("empty", "LOOT", 54535);
LOOT.D = 1;
}
}
Instance of Symbol 4808 MovieClip in Frame 113
onClipEvent (load) {
z = 100;
zoom = z + "%";
}
on (keyPress "<PgDn>") {
z = z * 0.75;
_root.editor._width = _root.editor._width * 0.75;
_root.editor._height = _root.editor._height * 0.75;
zoom = z + "%";
}
on (keyPress "<PgUp>") {
z = z * 1.33333333333333;
_root.editor._width = _root.editor._width * 1.33333333333333;
_root.editor._height = _root.editor._height * 1.33333333333333;
zoom = z + "%";
}
Instance of Symbol 4845 MovieClip "commandbox" in Frame 113
onClipEvent (load) {
fading = 0;
_alpha = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(77)) {
fading = 1;
} else {
fading = -1;
}
if (((fading == 1) && (_alpha < 100)) || ((fading == -1) && (_alpha > 0))) {
_alpha = (_alpha + (20 * fading));
_visible = (_alpha > 0);
}
}
Frame 115
playMusic("none");
_quality = "MEDIUM";
Instance of Symbol 4848 MovieClip in Frame 115
on (press) {
getURL ("http://www.fighunter.com/", "_blank");
}
on (rollOver) {
_root.Flash(this, [50, 155, 255]);
}
Instance of Symbol 4855 MovieClip in Frame 212
on (press) {
getURL ("http://www.crazymonkeygames.com/", "_blank");
}
on (rollOver) {
_root.Flash(this, [50, 155, 255]);
}
Frame 329
gotoAndPlay ("cut1");
Frame 330
playMusic("none");
_quality = "MEDIUM";
storytext = "There is a Dark Fortress atop a Craggy Peak in the far-off Badlands...";
Frame 559
storytext = "...Where few men dare tread.";
Frame 672
storytext = "Those that do, never return...";
Frame 944
storytext = "For a mighty beast...";
Frame 1008
storytext = "...a DRAGON...";
Frame 1055
storytext = "...makes its lair here.";
Frame 1166
storytext = "The dragon is fond of stealing maidens from their homes...";
Frame 1257
storytext = "...and has taken a beautiful Princess from one of Belfan's greatest Kingdoms!";
Frame 1514
storytext = "The Damsel in Distress desperately calls out for help!";
Frame 1620
storytext = "There are only two brave men who can come to her rescue...";
Frame 1707
storytext = "Two Mighty Heroes; the greatest in the land...";
Frame 2075
storytext = "And luckily, they're on their way to save the Princess right now!";
Frame 2307
playMusic("MightyHeroes");
gotoAndStop ("field");
Frame 2308
_root.fadeTrans.ctrl.slowMode = false;
playMusic("none");
cont._visible = false;
_quality = "MEDIUM";
play();
plotVars.visited.soothwood = 1;
Frame 2614
playSFX("boom3");
Frame 2662
stop();
_root.nextArea = "gz_Mhouse2";
_root.spawnLoc = [0, 1];
_root.fadeTrans.ctrl.active = true;
Frame 2663
_root.fadeTrans.ctrl.slowMode = false;
playMusic("GdM");
cont._visible = false;
cont.removeMovieClip();
_quality = "MEDIUM";
play();
cont = {};
var GdM = [["Moric", "EARTH"], ["Qualna", "ETHER"], ["Gaspar", "FIRE"], ["Balthazar", "WATER"], ["Melchior", "AIR"], ["Anu", "DARK"]];
var g = 0;
while (g < GdM.length) {
cont[GdM[g][0]] = {props:{name:GdM[g][0], model:"s_" + GdM[g][0].toLowerCase(), elem:GdM[g][1], element:GdM[g][1]}};
g++;
}
count = 0;
Instance of Symbol 524 MovieClip [empty] "counter" in Frame 2663
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
if (count > 60) {
return(undefined);
}
count++;
if (count == 60) {
speak("c_GdM", "Balthazar", "c_balthazar");
}
}
Frame 2732
stop();
Frame 2742
playMusic("Theme");
plotVars.COMPLETED = true;
areaname = "END OF CHAPTER 1";
PCloc = [0, 0, "endch1"];
plotVars.CHAPTER = 2;
var SO = SharedObject.getLocal(gameID + "_sg_MASTER", "/");
if (SO.data.FINISHED == null) {
SO.data.FINISHED = 1;
}
SO.flush(SO.getSize());
for (o in SO) {
delete SO[o];
}
SO = null;
delete SO;
Instance of Symbol 3984 MovieClip [MENU_btn] "Save Game" in Frame 2742
on (press) {
_root.FADER_.FadeTrans("M_File", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Final Status" in Frame 2742
on (press) {
_root.FADER_.FadeTrans("M_Status", 1);
}
Frame 2743
playlist = [["Main Theme", "Theme"], ["Slaying The Dragon", "Intro"], ["Mighty Heroes!", "MightyHeroes"], ["Casual Battle", "battle"], ["Boss Battle", "BossBattle"], ["Victory Fanfare", "VictoryFanfare"], ["Game Over...", "GameOver"], ["Goznor", "Goznor"], ["Belfan Overworld", "WorldMap"], ["Dungeon I", "Dungeon1"], ["Enki's Theme", "Enki"], ["The Woods", "Woods"], ["Rohoph's Theme", "Rohoph"], ["Governance de Magi", "GdM"]];
playMusic("none");
nowPlaying = "";
mVol = 100;
Instance of Symbol 3984 MovieClip [MENU_btn] "Back" in Frame 2743
on (press) {
_root.FADER_.FadeTrans("startmenu");
}
Instance of Symbol 4005 MovieClip "preloader" in Frame 2743
onClipEvent (load) {
bartype = "HP";
fullness = 0;
}
onClipEvent (enterFrame) {
if (_root.nowPlaying == "") {
fullness = 0;
_root.playback = "-";
}
var total = _root.music.duration;
var pos = _root.music.position;
fullness = int((pos / total) * 100);
this.gotoAndStop(101 - fullness);
_root.playback = (((((Math.floor((pos / 1000) / 60) + ":") + (((int(pos / 1000) % 60) < 10) ? ("0" + (int(pos / 1000) % 60)) : (int(pos / 1000) % 60))) + " / ") + Math.floor((total / 1000) / 60)) + ":") + (((int(total / 1000) % 60) < 10) ? ("0" + (int(total / 1000) % 60)) : (int(total / 1000) % 60));
}
Instance of Symbol 524 MovieClip [empty] "tracklist" in Frame 2743
onClipEvent (load) {
function Refresh() {
for (o in this) {
this[o].removeMovieClip();
}
var _local3 = 0;
while (_local3 < _root.playlist.length) {
if (_root.playlist[_local3] == null) {
} else {
var _local4 = "track" + _local3;
this.attachMovie("E_Entry", _local4, 10 + _local3);
this[_local4]._y = 18 * (_local3 - P);
this[_local4].entry = ((_local3 + 1) + ". ") + _root.playlist[_local3][0];
this[_local4].file = _root.playlist[_local3][1];
this[_local4].noRoll = true;
this[_local4].onEnterFrame = function () {
this.gotoAndStop(((_root.nowPlaying == this.entry) ? 2 : 1));
};
this[_local4].onPress = function () {
_root.nowPlaying = this.entry;
this.gotoAndStop(2);
_root.playMusic(this.file);
};
}
_local3++;
}
}
P = 0;
Refresh();
}
Symbol 359 MovieClip [wepn] Frame 1
function Show(wpn) {
var _local3 = _root.GetItemInfo(wpn.blade);
var _local2 = _local3.wpnType;
gotoAndStop(((_local2 == "BLASTER") ? 3 : (((((_local2 == "SWORD") || (_local2 == "DAGGER")) || (_local2 == "GREATSWORD")) ? 1 : 2))));
blade.gotoAndStop(wpn.blade);
hilt.gotoAndStop((((_local3.wpnType == "BLASTER") || (_local3.wpnType == "GUN")) ? "null" : (wpn.hilt)));
setCell.gotoAndStop(((_local3.wpnType == "BLASTER") ? (wpn.hilt) : "null"));
elemglow.gotoAndStop((_root.GetWeaponStats(wpn).elem ? (_root.GetWeaponStats(wpn).elem) : "NONE"));
}
Show(this.weapon);
Symbol 446 MovieClip Frame 1
gotoAndStop(type);
Instance of Symbol 433 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (load) {
count = 6;
this.gotoAndStop(_parent.type);
}
onClipEvent (enterFrame) {
_alpha = (_alpha - count);
if (((_alpha <= 50) && (count > 0)) || ((_alpha >= 100) && (count < 0))) {
count = count * -1;
}
}
Instance of Symbol 451 MovieClip [ITEM_] "ITEM_" in Symbol 452 MovieClip [toss_item] Frame 1
onClipEvent (load) {
AMOUNT = "";
}
Symbol 458 MovieClip [s_rune_dragon] Frame 1
stop();
Symbol 467 MovieClip [s_dragon] Frame 1
stop();
Symbol 515 MovieClip [dmgNum] Frame 1
stop();
Instance of Symbol 487 MovieClip [empty] "ctrl" in Symbol 515 MovieClip [dmgNum] Frame 1
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count < 5) {
_parent._y = _parent._y - Math.pow(count, 1.7);
} else {
_parent._alpha = _parent._alpha - ((_parent._currentframe == 3) ? 4 : 15);
}
if (_parent._alpha <= 10) {
_parent.removeMovieClip();
}
}
Symbol 523 MovieClip [TFX_scratch] Frame 1
Symbol 523 MovieClip [TFX_scratch] Frame 7
stop();
this.removeMovieClip();
Symbol 526 MovieClip [emitter] Frame 1
if (_root.PFXEDITOR == true) {
stop();
} else {
nextFrame();
}
Instance of Symbol 524 MovieClip [empty] "control" in Symbol 526 MovieClip [emitter] Frame 1
onClipEvent (load) {
sp = 0;
delay = 1;
time = 0;
if (_parent.rpps != undefined) {
opps = _parent.pps;
_parent.pps = (opps * Math.random()) + (opps / 2);
}
}
onClipEvent (enterFrame) {
if ((_parent.mapPart == true) && (_root.cont._visible == false)) {
return(undefined);
}
if (time > _parent.timeout) {
return(undefined);
}
if ((_parent.timeout != undefined) || (_parent.Delay != undefined)) {
time++;
}
if ((time < _parent.Delay) && (_parent.Delay != undefined)) {
return(undefined);
}
if (!_root.OPTIONS.PFX) {
return(undefined);
}
if (_parent.pps < 1) {
delay = delay + _parent.pps;
if (delay >= 1) {
if (_parent.rpps == true) {
_parent.pps = (opps * Math.random()) + (opps / 2);
}
delay = delay - 1;
} else {
return(undefined);
}
}
i = 0;
while (i < _parent.pps) {
sp++;
if (sp > 1000) {
sp = 0;
}
_parent.attachMovie("particle", "P" + sp, sp);
PARTICLE = _parent["P" + sp];
PARTICLE._x = (PARTICLE.Xoffset = (-_parent.Hs) + random((_parent.Hs * 2) + 1));
PARTICLE._y = (-_parent.Vs) + random((_parent.Vs * 2) + 1);
PARTICLE._width = (PARTICLE._height = _parent.size * (((_parent.sizevar == -1) || (_parent.sizevar == null)) ? 1 : (Math.random() + 0.6)));
PARTICLE._alpha = (_parent.alpha ? (_parent.alpha) : 100);
PARTICLE.gotoAndStop(_parent.type);
PARTICLE.stuff = [((_parent.mode == "RADIAL") ? ({x:random(_parent.mass + 1) * ((random(2) == 1) ? 1 : -1), y:random(_parent.mass + 1) * ((random(2) == 1) ? 1 : -1)}) : ({y:_parent.mass, x:0})), _parent.fade, _parent.shrink, _parent.spin];
PARTICLE.startX = _root.FOE._x;
if (_parent.rot != null) {
PARTICLE._rotation = ((_parent.rot == "R") ? (random(360)) : (_parent.rot));
}
PARTICLE.onEnterFrame = function () {
if (this._alpha <= 1) {
this.removeMovieClip();
return(undefined);
}
this._y = this._y + Number(this.stuff[0].y);
this._x = this._x + Number(this.stuff[0].x);
if (this._parent._parent._parent._name == "FOE") {
this._x = (this.startX - _root.FOE._x) + this.Xoffset;
}
this._alpha = this._alpha - ((this.stuff[1] == undefined) ? 1 : (this.stuff[1]));
if (!isNaN(this.stuff[2])) {
this._width = this._width * this.stuff[2];
this._height = this._height * this.stuff[2];
}
this._rotation = this._rotation + this.stuff[3];
};
PARTICLE.colour = new Color(PARTICLE);
if (_parent.colour != undefined) {
PARTICLE.colour.setRGB(((_parent.colour[0] == undefined) ? (_parent.colour) : (_parent.colour[random(_parent.colour.length)])));
}
i++;
}
}
Symbol 526 MovieClip [emitter] Frame 2
stop();
Symbol 527 MovieClip [spellFX] Frame 1
function ValidColour(value, lowlimit) {
var _local1 = 0 + value;
if (_local1 > 255) {
_local1 = 255;
}
if (_local1 < -255) {
_local1 = -255;
}
return(_local1);
}
function MultipliedColour(colour, mult, lowlimit) {
var _local1 = (isNaN(plus) ? 0 : (lowlimit));
return([ValidColour((colour[0] * mult) + _local1, lowlimit), ValidColour((colour[1] * mult) + _local1, lowlimit), ValidColour((colour[2] * mult) + _local1, lowlimit)]);
}
Instance of Symbol 526 MovieClip [emitter] "blood" in Symbol 527 MovieClip [spellFX] Frame 2
onClipEvent (load) {
type = 26;
pps = 5;
Hs = 3;
Vs = 3;
fade = 18;
mass = 20;
spin = 0;
size = 7;
shrink = 0.95;
var blood = _root[_root.Target].mdlStats.blood;
colour = ((blood == undefined) ? 10027008 : (blood));
alpha = 70;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 3
var elem = (_root[_root.Acting].stats.elem ? (_root[_root.Acting].stats.elem) : (((!_root.GetItemInfo(_root[_root.Acting].stats.weapon).elem) ? (((_root.GetItemInfo(_root[_root.Acting].stats.shield).elem && (_root.GetItemInfo(_root[_root.Acting].stats.shield).type == "ammo")) ? (_root.GetItemInfo(_root[_root.Acting].stats.shield).elem) : (_root.GetModelInfo(_root[_root.Acting].stats.model).elem))) : (_root.GetItemInfo(_root[_root.Acting].stats.weapon).elem))));
var colour = 5592405;
switch (elem) {
case "FIRE" :
colour = 16746496 /* 0xFF8800 */;
break;
case "WATER" :
colour = 56831;
break;
case "AIR" :
colour = 16776960 /* 0xFFFF00 */;
break;
case "EARTH" :
colour = 6745702 /* 0x66EE66 */;
break;
case "LIGHT" :
colour = 16777215 /* 0xFFFFFF */;
break;
case "DARK" :
colour = 0;
break;
case "ETHER" :
colour = 3403468 /* 0x33EECC */;
break;
default :
colour = 5592405 /* 0x555555 */;
}
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 3
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 4;
spin = 5;
size = 30;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = _parent.colour;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 3
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 7;
spin = 5;
size = 5;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = _parent.colour;
}
Symbol 527 MovieClip [spellFX] Frame 5
_root.playSFX("Flame");
stop();
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 5
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 5
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 12;
Vs = 12;
fade = 4;
mass = -7;
spin = 1;
size = 50;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1));
}
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 5
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -11;
spin = 5;
size = 5;
shrink = 0.99;
colour = 16764057 /* 0xFFCC99 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.5));
}
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 527 MovieClip [spellFX] Frame 5
onClipEvent (load) {
type = 5;
pps = 3;
Hs = 9;
Vs = 9;
fade = 5;
mass = -5;
spin = 1;
size = 30;
shrink = 0.87;
colour = 14732288 /* 0xE0CC00 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.5));
}
alpha = 35;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 6
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "inverseSnow" in Symbol 527 MovieClip [spellFX] Frame 6
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 40;
Vs = 3;
fade = 9;
mass = -12;
spin = 12;
size = 4;
shrink = 0.98;
colour = 16777215 /* 0xFFFFFF */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 2, 220));
}
alpha = 100;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 6
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 35;
Vs = 38;
fade = 12;
mass = -2;
spin = 11;
size = 8;
shrink = 1;
colour = 15728623 /* 0xEFFFEF */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 2, 200));
}
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
}
Instance of Symbol 526 MovieClip [emitter] "MagicRipples" in Symbol 527 MovieClip [spellFX] Frame 6
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -20;
spin = 0;
size = 40;
shrink = 1;
colour = 13434848 /* 0xCCFFE0 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 2, 200));
}
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 6
onClipEvent (load) {
type = 6;
pps = 5;
Hs = 11;
Vs = 11;
fade = 3;
mass = 6;
spin = 11;
size = 20;
shrink = 1.1;
colour = 11599871 /* 0xB0FFFF */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 2, 200));
}
alpha = 10;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 7
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 7
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 11599021 /* 0xB0FCAD */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.8, 200));
}
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 7
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 11599021 /* 0xB0FCAD */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.4, 0));
}
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 7
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 11599021 /* 0xB0FCAD */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.3, 0));
}
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 8
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Splash" in Symbol 527 MovieClip [spellFX] Frame 8
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 8;
mass = 22;
spin = 11;
size = 40;
shrink = 0.9;
colour = 39423;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1, 0));
}
alpha = 20;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 8
onClipEvent (load) {
type = 8;
pps = 3;
Hs = 20;
Vs = 20;
fade = 7;
mass = -6;
spin = 5;
size = 14;
shrink = 1.1;
colour = 56831;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.2, 0));
}
alpha = 49;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 10
_root.playSFX("hit_POLEARMS");
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 10
onClipEvent (load) {
type = 15;
pps = 5;
Hs = 0;
Vs = 0;
fade = 20;
mass = 0;
spin = 37;
size = 5;
shrink = 0.99;
colour = 5104161 /* 0x4DE221 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1, 0));
}
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 11
_root.playSFX("weird");
_root.Flash(_root, _root.SPELLCOLOUR);
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 11
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 50;
Vs = 50;
fade = 50;
mass = 0;
spin = 30;
size = 2;
shrink = 0.9;
colour = 16777215 /* 0xFFFFFF */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1, 0));
}
alpha = 70;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 12
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 12
onClipEvent (load) {
type = 27;
pps = 3;
Hs = 20;
Vs = 20;
fade = 5;
mass = 0;
spin = 0;
size = 12;
shrink = 1;
colour = 11513775 /* 0xAFAFAF */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1, 0));
}
alpha = 60;
sizevar = 1;
timeout = 7;
}
Symbol 527 MovieClip [spellFX] Frame 13
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 13
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1, 0));
}
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 14
_root.playSFX("Thunder");
Instance of Symbol 526 MovieClip [emitter] "bolt" in Symbol 527 MovieClip [spellFX] Frame 14
onClipEvent (load) {
type = 30;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = 0;
spin = 0;
shrink = 1;
colour = 6741862 /* 0x66DF66 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.1));
}
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "explosions" in Symbol 527 MovieClip [spellFX] Frame 14
onClipEvent (load) {
type = 1;
pps = 1;
Hs = 25;
Vs = 25;
fade = 20;
mass = 0;
spin = 0;
size = 22;
shrink = 1.1;
colour = 65280;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1, 0));
}
alpha = 100;
sizevar = 1;
timeout = 7;
}
Symbol 527 MovieClip [spellFX] Frame 15
_root.playSFX("Earth1");
_root.Quake(5);
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 15
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 2;
mass = 9;
spin = 11;
size = 60;
shrink = 1.1;
colour = 6312000 /* 0x605040 */;
alpha = 20;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "BigRocks" in Symbol 527 MovieClip [spellFX] Frame 15
onClipEvent (load) {
type = 10;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 17;
spin = 16;
size = 16;
shrink = 1.05;
alpha = 100;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "SmallRocks" in Symbol 527 MovieClip [spellFX] Frame 15
onClipEvent (load) {
type = 10;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 24;
spin = 26;
size = 5;
shrink = 0.95;
alpha = 63;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 17
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 17
onClipEvent (load) {
type = 8;
pps = 1;
Hs = 24;
Vs = 24;
fade = 4;
mass = -6;
spin = 5;
size = 14;
shrink = 1.1;
colour = 56831;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.2, 0));
}
alpha = 49;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 18
_root.playSFX("Curse");
Instance of Symbol 526 MovieClip [emitter] "Big_snowflake" in Symbol 527 MovieClip [spellFX] Frame 18
onClipEvent (load) {
type = 37;
pps = 1;
Hs = 0;
Vs = 0;
fade = 12;
mass = 0;
spin = 0;
size = 15;
shrink = 1.5;
colour = 15794175 /* 0xF0FFFF */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "Snow" in Symbol 527 MovieClip [spellFX] Frame 18
onClipEvent (load) {
type = 37;
pps = 3;
Hs = 40;
Vs = 40;
fade = 4;
mass = -6;
spin = 0;
size = 7;
shrink = 0.9;
colour = 15794175 /* 0xF0FFFF */;
alpha = 90;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 19
_root.playSFX("Flame");
stop();
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 19
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 5;
Vs = 5;
fade = 2;
mass = 3;
spin = 5;
size = 30;
shrink = 1.01;
colour = 1513239 /* 0x171717 */;
alpha = 9;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 19
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 5;
Vs = 5;
fade = 4;
mass = -4;
spin = 1;
size = 33;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1));
}
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 19
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -7;
spin = 5;
size = 5;
shrink = 0.99;
colour = 16764057 /* 0xFFCC99 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.5));
}
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 527 MovieClip [spellFX] Frame 19
onClipEvent (load) {
type = 5;
pps = 3;
Hs = 3;
Vs = 3;
fade = 5;
mass = -2;
spin = 1;
size = 18;
shrink = 0.87;
colour = 14732288 /* 0xE0CC00 */;
if (_root.SPELLCOLOUR != null) {
colour = _root.RGBtoHex(_parent.MultipliedColour(_root.SPELLCOLOUR, 1.5));
}
alpha = 35;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 20
_root.playSFX("hit_MARTIAL");
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 20
onClipEvent (load) {
type = 38;
pps = 2;
Hs = 2;
Vs = 2;
fade = 16;
mass = 13;
spin = 0;
size = 20;
shrink = 1.2;
colour = 13031897 /* 0xC6D9D9 */;
alpha = 100;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 25
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 4;
spin = 5;
size = 24;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 7340032 /* 0x700000 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 25
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 12;
spin = 5;
size = 10;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 16737894 /* 0xFF6666 */;
}
Instance of Symbol 526 MovieClip [emitter] "circlular" in Symbol 527 MovieClip [spellFX] Frame 25
onClipEvent (load) {
type = 46;
pps = 1;
Hs = 0;
Vs = 0;
fade = 22;
mass = 0;
spin = 40;
size = 20;
shrink = 1.5;
colour = 10044484 /* 0x994444 */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "PHYS_SHLD" in Symbol 527 MovieClip [spellFX] Frame 26
onClipEvent (load) {
type = 47;
pps = 2;
Hs = 3;
Vs = 3;
fade = 10;
mass = 0;
size = 40;
colour = 7855411 /* 0x77DD33 */;
alpha = 24;
sizevar = -1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "PHYS_SHLD" in Symbol 527 MovieClip [spellFX] Frame 27
onClipEvent (load) {
type = 47;
pps = 2;
Hs = 3;
Vs = 3;
fade = 10;
mass = 0;
size = 40;
colour = 7855615 /* 0x77DDFF */;
alpha = 24;
sizevar = -1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 28
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 4;
spin = 5;
size = 24;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 4231168 /* 0x409000 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 28
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 12;
spin = 5;
size = 10;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 11206570 /* 0xAAFFAA */;
}
Instance of Symbol 526 MovieClip [emitter] "circlular" in Symbol 527 MovieClip [spellFX] Frame 28
onClipEvent (load) {
type = 46;
pps = 1;
Hs = 0;
Vs = 0;
fade = 30;
mass = 0;
spin = 40;
size = 10;
shrink = 1.3;
colour = 5635925 /* 0x55FF55 */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 28
onClipEvent (load) {
type = 8;
pps = 2;
Hs = 40;
Vs = 40;
fade = 6;
mass = 10;
spin = 0;
size = 4;
colour = 7584580 /* 0x73BB44 */;
alpha = 49;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 29
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 4;
spin = 5;
size = 24;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 14540117 /* 0xDDDD55 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 29
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 12;
spin = 5;
size = 10;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 16777045 /* 0xFFFF55 */;
}
Instance of Symbol 526 MovieClip [emitter] "circlular" in Symbol 527 MovieClip [spellFX] Frame 29
onClipEvent (load) {
type = 46;
pps = 1;
Hs = 0;
Vs = 0;
fade = 30;
mass = 0;
spin = 40;
size = 10;
shrink = 1.3;
colour = 16777130 /* 0xFFFFAA */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "electro2" in Symbol 527 MovieClip [spellFX] Frame 29
onClipEvent (load) {
type = 41;
pps = 3;
Hs = 20;
Vs = 20;
fade = 35;
mass = 0;
spin = 0;
size = 16;
shrink = 0.9;
alpha = 50;
sizevar = 1;
timeout = 5;
rot = "R";
}
Symbol 527 MovieClip [spellFX] Frame 45
_root.playSFX("Thunder");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 45
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 5;
spin = 5;
size = 40;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 4473924 /* 0x444444 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 45
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 10;
spin = 5;
size = 8;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 16777113 /* 0xFFFF99 */;
}
Instance of Symbol 526 MovieClip [emitter] "electro1" in Symbol 527 MovieClip [spellFX] Frame 45
onClipEvent (load) {
type = 40;
pps = 2;
Hs = 0;
Vs = 0;
fade = 80;
mass = 0;
spin = 0;
alpha = 90;
timeout = 5;
mode = "RADIAL";
rot = "R";
}
Instance of Symbol 526 MovieClip [emitter] "electro2" in Symbol 527 MovieClip [spellFX] Frame 45
onClipEvent (load) {
type = 41;
pps = 3;
Hs = 60;
Vs = 60;
fade = 35;
mass = 0;
spin = 0;
alpha = 50;
sizevar = 1;
timeout = 5;
rot = "R";
}
Symbol 527 MovieClip [spellFX] Frame 46
_root.playSFX("hit_2HSWORDS");
_root.playSFX("Kill4");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 46
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 5;
spin = 5;
size = 40;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 1725713 /* 0x1A5511 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 46
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 10;
spin = 5;
size = 8;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 10092288 /* 0x99FF00 */;
}
Instance of Symbol 526 MovieClip [emitter] "gash" in Symbol 527 MovieClip [spellFX] Frame 46
onClipEvent (load) {
type = 42;
pps = 1;
Hs = 0;
Vs = 0;
fade = 12;
mass = 0;
spin = 0;
alpha = 100;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "electro2" in Symbol 527 MovieClip [spellFX] Frame 46
onClipEvent (load) {
type = 43;
pps = 2;
Hs = 50;
Vs = 50;
fade = 15;
mass = 0;
spin = 0;
alpha = 80;
sizevar = 1;
timeout = 3;
rot = 135;
}
Symbol 527 MovieClip [spellFX] Frame 47
_root.playSFX("Slam");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 47
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 5;
spin = 5;
size = 40;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 15663103 /* 0xEEFFFF */;
}
Instance of Symbol 526 MovieClip [emitter] "electro1" in Symbol 527 MovieClip [spellFX] Frame 47
onClipEvent (load) {
type = 44;
pps = 6;
Hs = 0;
Vs = 0;
fade = 8;
mass = 0;
spin = 0;
alpha = 70;
timeout = 5;
mode = "RADIAL";
rot = "R";
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 47
onClipEvent (load) {
type = 1;
pps = 8;
Hs = 16;
Vs = 16;
fade = 14;
mass = 20;
spin = 5;
size = 8;
shrink = 0.9;
alpha = 90;
sizevar = 1;
timeout = 0;
mode = "RADIAL";
colour = 16777183 /* 0xFFFFDF */;
}
Symbol 527 MovieClip [spellFX] Frame 55
_root.playSFX("punch");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 55
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 4;
spin = 5;
size = 24;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 8943462 /* 0x887766 */;
}
Instance of Symbol 526 MovieClip [emitter] "circlular" in Symbol 527 MovieClip [spellFX] Frame 55
onClipEvent (load) {
type = 46;
pps = 1;
Hs = 0;
Vs = 0;
fade = 22;
mass = 0;
spin = 40;
size = 20;
shrink = 1.5;
colour = 11184810 /* 0xAAAAAA */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 56
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 12;
spin = 5;
size = 5;
shrink = 0.9;
alpha = 40;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 11184810 /* 0xAAAAAA */;
}
Symbol 527 MovieClip [spellFX] Frame 65
_root.playSFX("hit_MARTIAL");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 65
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 4;
mass = 4;
spin = 5;
size = 24;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 5242944 /* 0x500040 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 65
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 12;
spin = 5;
size = 10;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 0;
}
Instance of Symbol 526 MovieClip [emitter] "circlular" in Symbol 527 MovieClip [spellFX] Frame 65
onClipEvent (load) {
type = 46;
pps = 1;
Hs = 0;
Vs = 0;
fade = 22;
mass = 0;
spin = 40;
size = 20;
shrink = 1.5;
colour = 3342376 /* 0x330028 */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Symbol 527 MovieClip [spellFX] Frame 66
_root.playSFX("Slam");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 66
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 20;
Vs = 20;
fade = 0.6;
mass = 4;
spin = 5;
size = 36;
shrink = 1.1;
alpha = 10;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 16776977 /* 0xFFFF11 */;
}
Instance of Symbol 526 MovieClip [emitter] "bam" in Symbol 527 MovieClip [spellFX] Frame 66
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 16;
Vs = 16;
fade = 5;
mass = 12;
spin = 5;
size = 10;
shrink = 0.9;
alpha = 30;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
colour = 16777130 /* 0xFFFFAA */;
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 66
onClipEvent (load) {
type = 8;
pps = 2;
Hs = 40;
Vs = 40;
fade = 4;
mass = 6;
spin = 0;
size = 4;
colour = 16777011 /* 0xFFFF33 */;
alpha = 59;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 100
_root.playSFX("Flame");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 100
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 100
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 12;
Vs = 12;
fade = 4;
mass = -7;
spin = 1;
size = 50;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 100
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -11;
spin = 5;
size = 5;
shrink = 0.99;
colour = 16764057 /* 0xFFCC99 */;
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 527 MovieClip [spellFX] Frame 100
onClipEvent (load) {
type = 5;
pps = 3;
Hs = 9;
Vs = 9;
fade = 5;
mass = -5;
spin = 1;
size = 30;
shrink = 0.87;
colour = 14732288 /* 0xE0CC00 */;
alpha = 35;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 101
_root.playSFX("Gust");
Instance of Symbol 526 MovieClip [emitter] "tornado" in Symbol 527 MovieClip [spellFX] Frame 101
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 4;
Vs = 3;
fade = 5;
mass = -11;
spin = 12;
size = 7;
shrink = 1.4;
colour = 16777184 /* 0xFFFFE0 */;
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "AirRipples" in Symbol 527 MovieClip [spellFX] Frame 101
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -2;
spin = 0;
size = 40;
shrink = 1.2;
colour = 16777184 /* 0xFFFFE0 */;
alpha = 20;
sizevar = 1;
timeout = 8;
}
Symbol 527 MovieClip [spellFX] Frame 102
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Splash" in Symbol 527 MovieClip [spellFX] Frame 102
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 8;
mass = 22;
spin = 11;
size = 40;
shrink = 0.9;
colour = 39423;
alpha = 20;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 102
onClipEvent (load) {
type = 8;
pps = 3;
Hs = 20;
Vs = 20;
fade = 7;
mass = -6;
spin = 5;
size = 14;
shrink = 1.1;
colour = 56831;
alpha = 49;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 103
_root.playSFX("Earth1");
_root.Quake(5);
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 103
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 2;
mass = 9;
spin = 11;
size = 60;
shrink = 1.1;
colour = 6312000 /* 0x605040 */;
alpha = 20;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "BigRocks" in Symbol 527 MovieClip [spellFX] Frame 103
onClipEvent (load) {
type = 10;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 17;
spin = 16;
size = 16;
shrink = 1.05;
alpha = 100;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "SmallRocks" in Symbol 527 MovieClip [spellFX] Frame 103
onClipEvent (load) {
type = 10;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 24;
spin = 26;
size = 5;
shrink = 0.95;
alpha = 63;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 104
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 104
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 105
_root.playSFX("Poison");
Instance of Symbol 526 MovieClip [emitter] "Splash" in Symbol 527 MovieClip [spellFX] Frame 105
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 8;
mass = 22;
spin = 11;
size = 40;
shrink = 0.9;
colour = 2267426 /* 0x229922 */;
alpha = 20;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 105
onClipEvent (load) {
type = 8;
pps = 3;
Hs = 20;
Vs = 20;
fade = 7;
mass = -6;
spin = 5;
size = 14;
shrink = 1.1;
colour = 65280;
alpha = 49;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 106
_root.playSFX("Curse");
_root.Flash(_root, [-255, -255, -255]);
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 106
onClipEvent (load) {
type = 6;
pps = 0;
Hs = 11;
Vs = 11;
fade = 2;
mass = 9;
spin = 11;
size = 60;
shrink = 1.1;
colour = 0;
alpha = 20;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "secondwave" in Symbol 527 MovieClip [spellFX] Frame 106
onClipEvent (load) {
type = 1;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 2;
spin = 16;
size = 16;
shrink = 1.05;
colour = 2424884 /* 0x250034 */;
alpha = 100;
sizevar = 1;
delay = 5;
timeout = 10;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "firstwave" in Symbol 527 MovieClip [spellFX] Frame 106
onClipEvent (load) {
type = 1;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 7;
spin = 26;
size = 5;
shrink = 0.95;
colour = 2424884 /* 0x250034 */;
alpha = 63;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "circle" in Symbol 527 MovieClip [spellFX] Frame 106
onClipEvent (load) {
type = 29;
pps = 1;
Hs = 0;
Vs = 0;
fade = 5;
mass = 0;
spin = 40;
size = 50;
shrink = 1.1;
colour = 0;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Symbol 527 MovieClip [spellFX] Frame 115
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "inverseSnow" in Symbol 527 MovieClip [spellFX] Frame 115
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 40;
Vs = 3;
fade = 9;
mass = -12;
spin = 12;
size = 4;
shrink = 0.98;
colour = 16777215 /* 0xFFFFFF */;
alpha = 100;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 115
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 35;
Vs = 38;
fade = 12;
mass = -2;
spin = 11;
size = 8;
shrink = 1;
colour = 15728623 /* 0xEFFFEF */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
}
Instance of Symbol 526 MovieClip [emitter] "MagicRipples" in Symbol 527 MovieClip [spellFX] Frame 115
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -20;
spin = 0;
size = 40;
shrink = 1;
colour = 13434848 /* 0xCCFFE0 */;
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 115
onClipEvent (load) {
type = 6;
pps = 5;
Hs = 11;
Vs = 11;
fade = 3;
mass = 6;
spin = 11;
size = 20;
shrink = 1.1;
colour = 11599871 /* 0xB0FFFF */;
alpha = 10;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 116
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 116
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 11599021 /* 0xB0FCAD */;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 116
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 11599021 /* 0xB0FCAD */;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 116
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 11599021 /* 0xB0FCAD */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 117
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "inverseSnow" in Symbol 527 MovieClip [spellFX] Frame 117
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 40;
Vs = 3;
fade = 9;
mass = -12;
spin = 12;
size = 4;
shrink = 0.98;
colour = 16777215 /* 0xFFFFFF */;
alpha = 100;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 117
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 35;
Vs = 38;
fade = 12;
mass = -2;
spin = 11;
size = 8;
shrink = 1;
colour = 15728623 /* 0xEFFFEF */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
}
Instance of Symbol 526 MovieClip [emitter] "MagicRipples" in Symbol 527 MovieClip [spellFX] Frame 117
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -20;
spin = 0;
size = 40;
shrink = 1;
colour = 13434848 /* 0xCCFFE0 */;
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 117
onClipEvent (load) {
type = 6;
pps = 5;
Hs = 11;
Vs = 11;
fade = 3;
mass = 6;
spin = 11;
size = 20;
shrink = 1.1;
colour = 11599871 /* 0xB0FFFF */;
alpha = 10;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 118
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 118
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 13611512 /* 0xCFB1F8 */;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 118
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 13611512 /* 0xCFB1F8 */;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 118
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 13611512 /* 0xCFB1F8 */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 119
_root.playSFX("MPRestore");
Instance of Symbol 526 MovieClip [emitter] "inverseSnow" in Symbol 527 MovieClip [spellFX] Frame 119
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 40;
Vs = 3;
fade = 9;
mass = -12;
spin = 12;
size = 4;
shrink = 0.98;
colour = 65535;
alpha = 100;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 119
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 26367;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "MagicRipples" in Symbol 527 MovieClip [spellFX] Frame 119
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -20;
spin = 0;
size = 40;
shrink = 1;
colour = 56831;
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "ArcaneCircle" in Symbol 527 MovieClip [spellFX] Frame 119
onClipEvent (load) {
type = 16;
pps = 1;
Hs = 0;
Vs = 0;
fade = 10;
mass = 0;
spin = 15;
size = 10;
shrink = 1.3;
colour = 56831;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Symbol 527 MovieClip [spellFX] Frame 120
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 120
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 16777215 /* 0xFFFFFF */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 130
_root.playSFX("Flame");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 130
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 3618615 /* 0x373737 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 130
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 12;
Vs = 12;
fade = 4;
mass = -7;
spin = 1;
size = 50;
shrink = 0.9;
colour = 1219037 /* 0x1299DD */;
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 130
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -11;
spin = 5;
size = 5;
shrink = 0.99;
colour = 65535;
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 527 MovieClip [spellFX] Frame 130
onClipEvent (load) {
type = 5;
pps = 3;
Hs = 9;
Vs = 9;
fade = 5;
mass = -5;
spin = 1;
size = 30;
shrink = 0.87;
colour = 57343;
alpha = 35;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 131
_root.playSFX("Thunder");
Instance of Symbol 526 MovieClip [emitter] "bolt" in Symbol 527 MovieClip [spellFX] Frame 131
onClipEvent (load) {
type = 30;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = 0;
spin = 0;
shrink = 1;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "explosions" in Symbol 527 MovieClip [spellFX] Frame 131
onClipEvent (load) {
type = 1;
pps = 1;
Hs = 25;
Vs = 25;
fade = 20;
mass = 0;
spin = 0;
size = 22;
shrink = 1.1;
colour = 65280;
alpha = 100;
sizevar = 1;
timeout = 7;
}
Symbol 527 MovieClip [spellFX] Frame 132
_root.playSFX("Curse");
_root.Flash(_root, [-255, -255, -255]);
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 132
onClipEvent (load) {
type = 6;
pps = 0;
Hs = 11;
Vs = 11;
fade = 2;
mass = 9;
spin = 11;
size = 60;
shrink = 1.1;
colour = 0;
alpha = 20;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "secondwave" in Symbol 527 MovieClip [spellFX] Frame 132
onClipEvent (load) {
type = 1;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 2;
spin = 16;
size = 16;
shrink = 1.05;
colour = 2424884 /* 0x250034 */;
alpha = 100;
sizevar = 1;
delay = 5;
timeout = 10;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "firstwave" in Symbol 527 MovieClip [spellFX] Frame 132
onClipEvent (load) {
type = 1;
pps = 7;
Hs = 8;
Vs = 8;
fade = 7;
mass = 7;
spin = 26;
size = 5;
shrink = 0.95;
colour = 2424884 /* 0x250034 */;
alpha = 63;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "circle" in Symbol 527 MovieClip [spellFX] Frame 132
onClipEvent (load) {
type = 29;
pps = 1;
Hs = 0;
Vs = 0;
fade = 5;
mass = 0;
spin = 40;
size = 50;
shrink = 1.1;
colour = 0;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Symbol 527 MovieClip [spellFX] Frame 145
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "inverseSnow" in Symbol 527 MovieClip [spellFX] Frame 145
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 40;
Vs = 3;
fade = 9;
mass = -12;
spin = 12;
size = 4;
shrink = 0.98;
colour = 65484;
alpha = 100;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 145
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 35;
Vs = 38;
fade = 12;
mass = -2;
spin = 11;
size = 8;
shrink = 1;
colour = 65535;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
}
Instance of Symbol 526 MovieClip [emitter] "MagicRipples" in Symbol 527 MovieClip [spellFX] Frame 145
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -20;
spin = 0;
size = 40;
shrink = 1;
colour = 65484;
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 145
onClipEvent (load) {
type = 6;
pps = 5;
Hs = 11;
Vs = 11;
fade = 3;
mass = 6;
spin = 11;
size = 20;
shrink = 1.1;
colour = 65484;
alpha = 10;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 146
_root.playSFX("Flame");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 146
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 65484;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 146
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 65484;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 146
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 65484;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 147
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "inverseSnow" in Symbol 527 MovieClip [spellFX] Frame 147
onClipEvent (load) {
type = 1;
pps = 4;
Hs = 40;
Vs = 3;
fade = 9;
mass = -12;
spin = 12;
size = 4;
shrink = 0.98;
colour = 52479;
alpha = 100;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 147
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 35;
Vs = 38;
fade = 12;
mass = -2;
spin = 11;
size = 8;
shrink = 1;
colour = 65535;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
}
Instance of Symbol 526 MovieClip [emitter] "MagicRipples" in Symbol 527 MovieClip [spellFX] Frame 147
onClipEvent (load) {
type = 9;
pps = 1;
Hs = 1;
Vs = 1;
fade = 8;
mass = -20;
spin = 0;
size = 40;
shrink = 1;
colour = 52479;
alpha = 40;
sizevar = 1;
timeout = 8;
}
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 147
onClipEvent (load) {
type = 6;
pps = 5;
Hs = 11;
Vs = 11;
fade = 3;
mass = 6;
spin = 11;
size = 20;
shrink = 1.1;
colour = 52479;
alpha = 10;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 148
_root.playSFX("Curse");
Instance of Symbol 526 MovieClip [emitter] "pentagram" in Symbol 527 MovieClip [spellFX] Frame 148
onClipEvent (load) {
type = 32;
pps = 1;
Hs = 0;
Vs = 0;
fade = 5;
mass = 0;
spin = 40;
size = 50;
shrink = 0.94;
colour = 6697932 /* 0x6633CC */;
alpha = 100;
sizevar = 0;
timeout = 0;
}
Instance of Symbol 526 MovieClip [emitter] "X" in Symbol 527 MovieClip [spellFX] Frame 148
onClipEvent (load) {
type = 33;
pps = 1;
Hs = 3;
Vs = 3;
fade = 20;
mass = 0;
spin = 0;
size = 10;
shrink = 1.4;
colour = 65793 /* 0x010101 */;
alpha = 100;
sizevar = 0;
timeout = 5;
Delay = 5;
}
Symbol 527 MovieClip [spellFX] Frame 160
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 160
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 9775574 /* 0x9529D6 */;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 160
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 9775574 /* 0x9529D6 */;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 160
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 9775574 /* 0x9529D6 */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 175
_root.playSFX("hit_MARTIAL");
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 175
onClipEvent (load) {
type = 28;
pps = 5;
Hs = 2;
Vs = 2;
fade = 16;
mass = 13;
spin = 0;
size = 5;
shrink = 1.2;
colour = 13031897 /* 0xC6D9D9 */;
alpha = 100;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 176
_root.playSFX("Slam");
Instance of Symbol 526 MovieClip [emitter] "blast2" in Symbol 527 MovieClip [spellFX] Frame 176
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 4;
Vs = 4;
fade = 7;
mass = 6;
spin = 26;
size = 15;
shrink = 0.99;
colour = 15602965 /* 0xEE1515 */;
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 176
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 4;
Vs = 4;
fade = 7;
mass = 4;
spin = 26;
size = 5;
shrink = 0.99;
colour = 14314064 /* 0xDA6A50 */;
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 177
_root.playSFX("hit_MARTIAL");
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 177
onClipEvent (load) {
type = 28;
pps = 5;
Hs = 2;
Vs = 2;
fade = 16;
mass = 13;
spin = 0;
size = 5;
shrink = 1.2;
colour = 65280;
alpha = 100;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 178
_root.playSFX("MPRestore");
Instance of Symbol 526 MovieClip [emitter] "blast2" in Symbol 527 MovieClip [spellFX] Frame 178
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 4;
Vs = 4;
fade = 7;
mass = 6;
spin = 26;
size = 15;
shrink = 0.99;
colour = 15602965 /* 0xEE1515 */;
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 178
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 4;
Vs = 4;
fade = 7;
mass = 4;
spin = 26;
size = 5;
shrink = 0.99;
colour = 14314064 /* 0xDA6A50 */;
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 190
stop();
_root.playSFX("MPRestore");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 190
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 6;
mass = 3;
spin = 0;
size = 6;
shrink = 1;
colour = 255;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 190
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 255;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 190
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 255;
alpha = 20;
sizevar = 1;
timeout = 9;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 191
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 191
onClipEvent (load) {
type = 20;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 65535;
alpha = 100;
sizevar = 0;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 200
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 200
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 12642965 /* 0xC0EA95 */;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 200
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 12642965 /* 0xC0EA95 */;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 200
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 7981863 /* 0x79CB27 */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 201
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Splash" in Symbol 527 MovieClip [spellFX] Frame 201
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 8;
mass = 22;
spin = 11;
size = 40;
shrink = 0.9;
colour = 39423;
alpha = 20;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 201
onClipEvent (load) {
type = 8;
pps = 3;
Hs = 20;
Vs = 20;
fade = 7;
mass = -6;
spin = 5;
size = 14;
shrink = 1.1;
colour = 56831;
alpha = 49;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 202
_root.playSFX("weird");
_root.Flash(_root, [255, 255, 255]);
Instance of Symbol 526 MovieClip [emitter] "Dust" in Symbol 527 MovieClip [spellFX] Frame 202
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 50;
Vs = 50;
fade = 50;
mass = 0;
spin = 30;
size = 2;
shrink = 0.9;
colour = 16777215 /* 0xFFFFFF */;
alpha = 70;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 203
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Splash" in Symbol 527 MovieClip [spellFX] Frame 203
onClipEvent (load) {
type = 6;
pps = 8;
Hs = 11;
Vs = 11;
fade = 8;
mass = 22;
spin = 11;
size = 40;
shrink = 0.9;
colour = 8196621 /* 0x7D120D */;
alpha = 20;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 203
onClipEvent (load) {
type = 8;
pps = 3;
Hs = 20;
Vs = 20;
fade = 7;
mass = -6;
spin = 5;
size = 14;
shrink = 1.1;
colour = 0;
alpha = 49;
sizevar = 1;
timeout = 7;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 204
_root.playSFX("hit_POLEARMS");
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 204
onClipEvent (load) {
type = 15;
pps = 5;
Hs = 0;
Vs = 0;
fade = 20;
mass = 0;
spin = 37;
size = 5;
shrink = 0.99;
colour = 5104161 /* 0x4DE221 */;
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 205
_root.playSFX("Flame");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 205
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 205
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 12;
Vs = 12;
fade = 4;
mass = -7;
spin = 1;
size = 50;
shrink = 0.9;
colour = 4567299 /* 0x45B103 */;
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 205
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -11;
spin = 5;
size = 5;
shrink = 0.99;
colour = 7864183 /* 0x77FF77 */;
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 527 MovieClip [spellFX] Frame 205
onClipEvent (load) {
type = 5;
pps = 3;
Hs = 9;
Vs = 9;
fade = 5;
mass = -5;
spin = 1;
size = 30;
shrink = 0.87;
colour = 11337083 /* 0xACFD7B */;
alpha = 35;
sizevar = 1;
timeout = 3;
}
Symbol 527 MovieClip [spellFX] Frame 206
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 206
onClipEvent (load) {
type = 27;
pps = 3;
Hs = 20;
Vs = 20;
fade = 5;
mass = 0;
spin = 0;
size = 12;
shrink = 1;
colour = 11513775 /* 0xAFAFAF */;
alpha = 60;
sizevar = 1;
timeout = 7;
}
Symbol 527 MovieClip [spellFX] Frame 207
_root.playSFX("Bubble");
Instance of Symbol 526 MovieClip [emitter] "Bubbles" in Symbol 527 MovieClip [spellFX] Frame 207
onClipEvent (load) {
type = 27;
pps = 3;
Hs = 20;
Vs = 20;
fade = 5;
mass = 0;
spin = 0;
size = 12;
shrink = 1;
colour = 10092288 /* 0x99FF00 */;
alpha = 60;
sizevar = 1;
timeout = 7;
}
Symbol 527 MovieClip [spellFX] Frame 208
_root.playSFX("hit_POLEARMS");
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 527 MovieClip [spellFX] Frame 208
onClipEvent (load) {
type = 15;
pps = 5;
Hs = 0;
Vs = 0;
fade = 20;
mass = 0;
spin = 37;
size = 5;
shrink = 0.99;
colour = 0;
alpha = 100;
sizevar = 1;
timeout = 1;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 209
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 209
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 225
_root.playSFX("Explosion");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 225
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 6;
spin = 5;
size = 100;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 8;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 225
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 12;
Vs = 12;
fade = 4;
mass = 12;
spin = 1;
size = 80;
shrink = 1.009;
colour = 16746496 /* 0xFF8800 */;
alpha = 40;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 225
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = 31;
spin = 5;
size = 5;
shrink = 0.99;
colour = 16764057 /* 0xFFCC99 */;
alpha = 40;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 527 MovieClip [spellFX] Frame 225
onClipEvent (load) {
type = 6;
pps = 3;
Hs = 9;
Vs = 9;
fade = 5;
mass = 15;
spin = 1;
size = 60;
shrink = 1.085;
colour = 14732288 /* 0xE0CC00 */;
alpha = 35;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Symbol 527 MovieClip [spellFX] Frame 226
_root.playSFX("Cure");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 527 MovieClip [spellFX] Frame 226
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 4;
mass = 2;
spin = 0;
size = 6;
shrink = 1;
colour = 16689475 /* 0xFEA943 */;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 527 MovieClip [spellFX] Frame 226
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 16686117 /* 0xFE9C25 */;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 527 MovieClip [spellFX] Frame 226
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 16750848 /* 0xFF9900 */;
alpha = 20;
sizevar = 1;
timeout = 16;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 527 MovieClip [spellFX] Frame 227
onClipEvent (load) {
type = 6;
pps = 3;
Hs = 8;
Vs = 8;
fade = 2;
mass = 3;
spin = 5;
size = 10;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 527 MovieClip [spellFX] Frame 227
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 18;
Vs = 18;
fade = 4;
mass = -7;
spin = 1;
size = 20;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 527 MovieClip [spellFX] Frame 227
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -11;
spin = 5;
size = 5;
shrink = 0.99;
colour = 16764057 /* 0xFFCC99 */;
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "plumage" in Symbol 527 MovieClip [spellFX] Frame 227
onClipEvent (load) {
type = 17;
pps = 2;
Hs = 6;
Vs = 6;
fade = 4;
mass = 10;
spin = 15;
size = 30;
shrink = 0.87;
alpha = 80;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 627 MovieClip [sfx_p] Frame 1
nextFrame();
Symbol 627 MovieClip [sfx_p] Frame 2
stop();
Instance of Symbol 524 MovieClip [empty] "ctrl" in Symbol 627 MovieClip [sfx_p] Frame 2
onClipEvent (load) {
sfx = new Sound(this);
sfx.attachSound(_parent.props.sound);
sfx.start();
var v = (100 - Math.sqrt(Math.pow(Math.abs(_root.cont.PC._x - _parent._x) / 2, 2) + Math.pow(Math.abs(_root.cont.PC._y - _parent._y) / 2, 2)));
if (v < 0) {
v = 0;
}
sfx.setVolume(v * (_parent.props.vol / 100));
delay = 0;
stopped = false;
if (_parent.props.looping == true) {
sfx.onSoundComplete = function () {
this.start();
};
} else {
sfx.onSoundComplete = function () {
stopped = true;
};
}
lp = 0;
p = 0;
}
onClipEvent (enterFrame) {
var v = (100 - Math.sqrt(Math.pow(Math.abs(_root.cont.PC._x - _parent._x) / 2, 2) + Math.pow(Math.abs(_root.cont.PC._y - _parent._y) / 2, 2)));
if (v < 0) {
v = 0;
}
sfx.setVolume(v * (_parent.props.vol / 100));
lp = p;
p = sfx.position;
if (lp == p) {
sfx.start();
}
}
Symbol 629 MovieClip [shinebeams] Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 30);
};
Symbol 638 MovieClip [minorSparkle] Frame 1
stop();
Symbol 645 MovieClip [musicTrack] Frame 1
stop();
Symbol 664 MovieClip [savegame] Frame 1
stop();
Symbol 678 MovieClip [Quest_entry] Frame 1
stop();
Symbol 678 MovieClip [Quest_entry] Frame 3
stop();
Symbol 1023 MovieClip Frame 1
gotoAndStop(type);
Instance of Symbol 1010 MovieClip in Symbol 1023 MovieClip Frame 1
onClipEvent (load) {
count = 6;
this.gotoAndStop(_parent.type);
}
onClipEvent (enterFrame) {
_alpha = (_alpha - count);
if (((_alpha <= 50) && (count > 0)) || ((_alpha >= 100) && (count < 0))) {
count = count * -1;
}
}
Symbol 1026 MovieClip [ITEM_] Frame 1
Instance of Symbol 1026 MovieClip [ITEM_] "ITEM" in Symbol 1027 MovieClip [elemOrb] Frame 10
onClipEvent (load) {
AMOUNT = "";
}
Symbol 1033 MovieClip [ability_btn] Frame 1
if (COST == 0) {
COST = "";
}
if (main == undefined) {
main = "";
}
onEnterFrame = function () {
if (COST == 0) {
COST = "";
}
if (main == undefined) {
main = "";
}
};
stop();
Symbol 1035 MovieClip [fade2] Frame 1
function FadeTrans(dest_, hidemenus_) {
doing_fade = true;
this.dest = dest_;
_visible = true;
this._alpha = 3;
fading = 1;
hidemenus = hidemenus_;
}
function Reset() {
_visible = false;
fading = -1;
doing_fade = false;
}
_visible = false;
_width = (Stage.width + 200);
_height = (Stage.height + 200);
_x = -100;
_y = -100;
fading = -1;
doing_fade = false;
dest = "";
onEnterFrame = function () {
if (!doing_fade) {
return(undefined);
}
this._alpha = this._alpha + ((((substring(hidemenus, 1, 4)) == "slow") ? 2 : 26) * fading);
if ((hidemenus == "slow_diminuendo") && (_root.music.getVolume() > 0)) {
_root.music.setVolume(_root.music.getVolume() - 3);
}
if ((_alpha >= 100) && (fading == 1)) {
if (hidemenus === 1) {
_root.tehMenu._visible = false;
_root.cont._visible = false;
} else if ((hidemenus != null) && (hidemenus <= -1)) {
_quality = (_root.conv._visible ? "HIGH" : "LOW");
_root.cont._visible = true;
if (hidemenus == -1) {
_root.tehMenu._visible = true;
for (o in _root.tehMenu) {
_root.tehMenu[o].gotoAndStop(1);
}
} else {
_root.tehMenu._visible = false;
}
if (hidemenus == -3) {
_root.ClearBattlefield();
}
}
_root.gotoAndStop(dest);
fading = -1;
return(undefined);
}
if ((_alpha <= 0) && (fading == -1)) {
_visible = false;
doing_fade = false;
}
};
onPress = function () {
return(undefined);
};
Symbol 1064 MovieClip [castSparkle] Frame 1
nextFrame();
d = 10 + random(6500);
spell = _root.spellCasting + "";
if ((elem == null) && (_root.TECH_USING.elem == null)) {
_visible = false;
return(undefined);
}
onEnterFrame = function () {
d++;
var _local4 = "P" + d;
Parent = (aParent ? (aParent) : _parent);
Parent.attachMovie("particle", _local4, 12340 + d);
Parent[_local4]._x = this._x + 0;
Parent[_local4]._y = this._y + 0;
Parent[_local4].gotoAndStop(1);
var _local5 = (random(120) + 120) / 100;
Parent[_local4]._width = Parent[_local4]._width * _local5;
Parent[_local4]._height = Parent[_local4]._height * _local5;
Parent[_local4].colour = new Color(_parent[_local4]);
Parent[_local4].colour.setRGB(_root.RGBtoHex(_root.ElemRGB((this.elem ? (this.elem) : (_root.TECH_USING.elem)))));
Parent[_local4]._alpha = 77;
Parent[_local4].onEnterFrame = function () {
this._alpha = this._alpha - 20;
if (this._alpha < 10) {
this.removeMovieClip();
}
};
};
Instance of Symbol 524 MovieClip [empty] "magic" in Symbol 1064 MovieClip [castSparkle] Frame 1
onClipEvent (load) {
count = 0;
P = 0;
}
onClipEvent (enterFrame) {
if ((_parent._parent._name == "shd") || (_root.spellCasting == undefined)) {
return(undefined);
}
point = {x:_x, y:_y};
localToGlobal(point);
updateAfterEvent();
count--;
if (count <= 0) {
P++;
if (P > 20) {
P = 0;
}
var N = ("cSparkle_" + P);
_root.attachMovie("minorSparkle", N, 3423 + P);
_root[N]._x = ((0 + point.x) - 15) + random(30);
_root[N]._y = ((0 + point.y) - 15) + random(30);
_root[N].gotoAndStop((_parent.elem ? (_parent.elem) : (_root.GetSubCommand(_root.command, _root.spellCasting + "").elem)));
_root[N]._width = (_root[N]._height = 3);
_root[N].onEnterFrame = function () {
this._alpha = this._alpha - 8;
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
count = 2;
}
}
Symbol 1065 MovieClip [CURSOR_] Frame 1
stop();
Instance of Symbol 1026 MovieClip [ITEM_] "item" in Symbol 1065 MovieClip [CURSOR_] Frame 5
onClipEvent (enterFrame) {
AMOUNT = (((_root.DItem[1] == 1) || (_root.DItem[1] == null)) ? "" : (_root.DItem[1]));
}
Instance of Symbol 1064 MovieClip [castSparkle] "sparkle" in Symbol 1065 MovieClip [CURSOR_] Frame 6
onClipEvent (load) {
}
Symbol 1067 MovieClip [talktrigger] Frame 1
onEnterFrame = function () {
if (((_root.battling || (_root.conv._visible)) || (!_root.cont._visible)) || (_root.tehMenu._visible)) {
return(undefined);
}
if ((Key.isDown(88) && (!_root.conv._visible)) && (_root.nearPC(this))) {
_root.cont[this.props.NPC].brain.doOnTalk((this.props.dir ? (this.props.did) : "s"));
}
};
nextFrame();
Symbol 1068 MovieClip [shop] Frame 1
onEnterFrame = function () {
if (((_root.battling || (_root.conv._visible)) || (!_root.cont._visible)) || (_root.tehMenu._visible)) {
return(undefined);
}
if ((Key.isDown(88) && (!_root.conv._visible)) && (_root.nearPC(this))) {
_root.shop = this.props.name;
_root.warez = new Array(24);
var _local3 = 0;
while (_local3 < this.props.wares.length) {
_root.warez[_local3] = {item:this.props.wares[_local3], amount:1};
_local3++;
}
_root.cont.PC.brain.StoreLocation();
_root.FADER_.FadeTrans("_SHOP_", 1);
}
};
nextFrame();
Symbol 1079 MovieClip Frame 6
stop();
Symbol 1080 MovieClip [fieldPFX] Frame 2
stop();
_root.playSFX("MPRestore");
Instance of Symbol 526 MovieClip [emitter] "glitter" in Symbol 1080 MovieClip [fieldPFX] Frame 2
onClipEvent (load) {
type = 2;
pps = 5;
Hs = 12;
Vs = 12;
fade = 6;
mass = 3;
spin = 0;
size = 6;
shrink = 1;
colour = 255;
alpha = 100;
sizevar = 1;
timeout = 10;
Delay = 6;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "pulse" in Symbol 1080 MovieClip [fieldPFX] Frame 2
onClipEvent (load) {
type = 18;
pps = 1;
Hs = 1;
Vs = 1;
fade = 10;
mass = 0;
spin = 0;
size = 100;
shrink = 0.7;
colour = 255;
alpha = 100;
sizevar = 0;
timeout = 1;
}
Instance of Symbol 526 MovieClip [emitter] "starthing" in Symbol 1080 MovieClip [fieldPFX] Frame 2
onClipEvent (load) {
type = 15;
pps = 2;
Hs = 5;
Vs = 5;
fade = 12;
mass = -2;
spin = 11;
size = 50;
shrink = 1.3;
colour = 255;
alpha = 20;
sizevar = 1;
timeout = 9;
Delay = 6;
mode = "RADIAL";
}
Symbol 1080 MovieClip [fieldPFX] Frame 3
_root.playSFX("Gust");
Instance of Symbol 526 MovieClip [emitter] "AirRipples" in Symbol 1080 MovieClip [fieldPFX] Frame 3
onClipEvent (load) {
type = 6;
pps = 1;
Hs = 3;
Vs = 3;
fade = 0.1;
mass = 0.1;
spin = 7;
size = 20;
shrink = 1.1;
colour = 11184810 /* 0xAAAAAA */;
alpha = 70;
sizevar = 1;
timeout = 50;
mode = "RADIAL";
}
Symbol 1080 MovieClip [fieldPFX] Frame 4
_root.playSFX("Flame");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 1080 MovieClip [fieldPFX] Frame 4
onClipEvent (load) {
type = 6;
pps = 1;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 1080 MovieClip [fieldPFX] Frame 4
onClipEvent (load) {
type = 6;
pps = 2;
Hs = 12;
Vs = 12;
fade = 4;
mass = 11;
spin = 1;
size = 50;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
alpha = 40;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 1080 MovieClip [fieldPFX] Frame 4
onClipEvent (load) {
type = 5;
pps = 2;
Hs = 9;
Vs = 9;
fade = 5;
mass = 9;
spin = 1;
size = 30;
shrink = 0.87;
colour = 14732288 /* 0xE0CC00 */;
alpha = 35;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Symbol 1080 MovieClip [fieldPFX] Frame 5
_root.playSFX("Flame");
Symbol 1080 MovieClip [fieldPFX] Frame 6
_root.playSFX("Flame");
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 1080 MovieClip [fieldPFX] Frame 6
onClipEvent (load) {
type = 6;
pps = 4;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 1080 MovieClip [fieldPFX] Frame 6
onClipEvent (load) {
type = 5;
pps = 4;
Hs = 12;
Vs = 12;
fade = 4;
mass = -7;
spin = 1;
size = 50;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
alpha = 40;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "sparks" in Symbol 1080 MovieClip [fieldPFX] Frame 6
onClipEvent (load) {
type = 2;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = -11;
spin = 5;
size = 5;
shrink = 0.99;
colour = 16764057 /* 0xFFCC99 */;
alpha = 40;
sizevar = 1;
timeout = 4;
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 1080 MovieClip [fieldPFX] Frame 6
onClipEvent (load) {
type = 5;
pps = 3;
Hs = 9;
Vs = 9;
fade = 5;
mass = -5;
spin = 1;
size = 30;
shrink = 0.87;
colour = 14732288 /* 0xE0CC00 */;
alpha = 35;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 1081 MovieClip [empty] "ctrl" in Symbol 1082 MovieClip [fade] Frame 1
onClipEvent (load) {
_parent._x = (_parent._y = -20);
_parent._width = 600;
_parent._height = 480;
_parent._alpha = 100;
active = true;
fadeIn = false;
fadeOut = true;
slowMode = false;
delay = 100;
}
onClipEvent (enterFrame) {
if (active) {
if (fadeIn) {
_root.freeze = true;
if (_parent._alpha < 100) {
_parent._alpha = _parent._alpha + (slowMode ? 2 : 10);
}
if (_parent._alpha >= 98) {
if (slowMode && (delay > 0)) {
_root.music.setVolume(_root.music.getVolume() - 1);
delay--;
return(undefined);
}
fadeOut = true;
fadeIn = false;
if (_root.exeunt) {
_root.conv.SPEAKING.removeMovieClip();
_root.exeunt = false;
_root.freeze = false;
} else {
_root.lastArea = _root.area;
_root.CURSOR_._visible = true;
_root.cont._visible = _root.nextArea != "WORLDMAP";
_root.gotoAndStop(_root.nextArea);
_root.plotVars.THS.area_transitions++;
if (fadeToCut) {
fadeToCut = false;
_root.cont._visible = false;
}
_root.mapLoaded = false;
_root.freeze = false;
}
}
} else if (fadeOut) {
_parent._alpha = _parent._alpha - (slowMode ? 1 : 10);
if (slowMode) {
if (_root.music.getVolume() < 100) {
_root.music.setVolume(_root.music.getVolume() + 1);
}
}
if (_parent._alpha < 2) {
fadeOut = false;
fadeIn = true;
active = false;
slowMode = false;
delay = 100;
_root.music.setVolume(100);
}
}
}
}
Symbol 1083 MovieClip [explode_FX] Frame 1
stop();
Instance of Symbol 526 MovieClip [emitter] "smoke" in Symbol 1083 MovieClip [explode_FX] Frame 2
onClipEvent (load) {
type = 6;
pps = 1;
Hs = 16;
Vs = 16;
fade = 2;
mass = 3;
spin = 5;
size = 40;
shrink = 1.1;
colour = 1513239 /* 0x171717 */;
alpha = 16;
sizevar = 1;
timeout = 5;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames" in Symbol 1083 MovieClip [explode_FX] Frame 2
onClipEvent (load) {
type = 6;
pps = 2;
Hs = 12;
Vs = 12;
fade = 4;
mass = 11;
spin = 1;
size = 50;
shrink = 0.9;
colour = 16746496 /* 0xFF8800 */;
alpha = 40;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flames2" in Symbol 1083 MovieClip [explode_FX] Frame 2
onClipEvent (load) {
type = 5;
pps = 2;
Hs = 9;
Vs = 9;
fade = 5;
mass = 9;
spin = 1;
size = 30;
shrink = 0.87;
colour = 14732288 /* 0xE0CC00 */;
alpha = 35;
sizevar = 1;
timeout = 3;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "debris" in Symbol 1083 MovieClip [explode_FX] Frame 3
onClipEvent (load) {
type = 11;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = 23;
spin = 5;
size = 9;
shrink = 0.99;
alpha = 90;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "flesh" in Symbol 1083 MovieClip [explode_FX] Frame 4
onClipEvent (load) {
type = 24;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = 23;
spin = 20;
size = 9;
shrink = 0.99;
alpha = 90;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "bones" in Symbol 1083 MovieClip [explode_FX] Frame 4
onClipEvent (load) {
type = 23;
pps = 3;
Hs = 20;
Vs = 20;
fade = 3;
mass = 23;
spin = 20;
size = 9;
shrink = 0.99;
alpha = 90;
sizevar = 1;
timeout = 4;
mode = "RADIAL";
}
Instance of Symbol 1081 MovieClip [empty] "ctrl" in Symbol 1084 MovieClip [battle_trans] Frame 1
onClipEvent (load) {
_parent._width = Stage.width + 100;
_parent._height = Stage.height + 100;
_parent._x = (_parent._y = -50);
count = 0;
fading = false;
}
onClipEvent (enterFrame) {
if (!_parent._visible) {
return(undefined);
}
if (fading) {
_parent._alpha = _parent._alpha - 10;
if (_parent._alpha < 10) {
_parent._visible = false;
_parent._alpha = 100;
fading = false;
return(undefined);
}
return(undefined);
}
if (!fading) {
count++;
}
if ((count == 30) && (!fading)) {
_root.cont._visible = false;
fading = true;
_parent._alpha = 100;
_root.gotoAndPlay("_battle_");
return(undefined);
}
if (((count % 3) == 0) && (!fading)) {
_parent._alpha = 0;
}
if (((count % 2) == 0) && (!fading)) {
_parent._alpha = 50;
} else {
_parent._alpha = 100;
}
}
Instance of Symbol 1081 MovieClip [empty] "c" in Symbol 1091 MovieClip [area_transition] Frame 1
onClipEvent (load) {
_parent._visible = false;
dun = false;
}
onClipEvent (enterFrame) {
if ((_root.vehicle != undefined) || (_root.cont.PC.brain.FLYING)) {
return(undefined);
}
if ((_parent.getCoords()[0] == _root.pco[0]) && (_parent.getCoords()[1] == _root.pco[1])) {
if (this._parent.props.dir != undefined) {
_root.lastDir = this._parent.props.dir;
}
_root.nextArea = _parent.props.dest[0];
_root.spawnLoc = [int(_parent.props.dest[1]), int(_parent.props.dest[2])];
if (_parent.props.dest[3] != null) {
_root.plotVars.visited[_parent.props.dest[3]] = 1;
}
if (_parent.props.trans == "warp") {
_root.WarpTrans();
} else {
_root.fadeTrans.ctrl.active = true;
}
} else if (_root.nearPC(_parent)) {
_parent._visible = true;
PC = _root.cont.PC;
if (!dun) {
dun = true;
if (PC._x > _parent._x) {
_parent.gotoAndPlay("left");
} else if (PC._x < _parent._x) {
_parent.gotoAndPlay("right");
}
if (PC._y > _parent._y) {
_parent.gotoAndPlay("up");
} else if (PC._y < _parent._y) {
_parent.gotoAndPlay("down");
}
}
} else {
_parent._visible = false;
dun = false;
}
}
Symbol 1091 MovieClip [area_transition] Frame 8
gotoAndPlay ("up");
Symbol 1091 MovieClip [area_transition] Frame 16
gotoAndPlay ("down");
Symbol 1091 MovieClip [area_transition] Frame 24
gotoAndPlay ("right");
Symbol 1091 MovieClip [area_transition] Frame 32
gotoAndPlay ("left");
Symbol 1093 MovieClip [_trigger] Frame 1
nextFrame();
Instance of Symbol 1081 MovieClip [empty] "brain" in Symbol 1093 MovieClip [_trigger] Frame 1
onClipEvent (load) {
executed = true;
}
onClipEvent (enterFrame) {
if ((!this._parent.props.frozenrunning) && (_root.freeze || (!_root.cont._visible))) {
return(undefined);
}
if ((_parent._x == _root.cont.PC._x) && (_parent._y == _root.cont.PC._y)) {
_parent.props.ExecuteScript();
executed = true;
_parent.props.triggered = true;
return(undefined);
}
if (_parent.props.triggered) {
_parent.props.triggered = false;
}
}
Instance of Symbol 1081 MovieClip [empty] in Symbol 1097 MovieClip [warpFX_] Frame 1
onClipEvent (load) {
count = 0;
Fcount = 1;
inc = true;
rot = 0;
max = 30;
}
onClipEvent (enterFrame) {
count++;
if (count == max) {
_root.gotoAndStop(_root.nextArea);
_root.cont._visible = true;
_root.mapLoaded = false;
} else if (count >= (max * 1.5)) {
if (count >= ((max * 1.5) + 50)) {
_root.warping = false;
_parent.removeMovieClip();
}
return(undefined);
}
var N = ("s" + count);
if (inc) {
Fcount++;
} else {
Fcount--;
}
if (Fcount >= 10) {
inc = false;
} else if (Fcount <= 1) {
inc = true;
}
_parent.attachMovie("warpstar", N, 100 + count);
_parent[N].gotoAndStop(Fcount);
_parent[N].tick = 0;
_parent[N].onEnterFrame = function () {
var _local2 = 40;
this._width = this._width + _local2;
this._height = this._height + _local2;
this._rotation = this._rotation + (_local2 / 10);
this.tick++;
if (this.tick > 17) {
this._alpha = this._alpha - 10;
if (this._alpha < 20) {
this.removeMovieClip();
}
}
};
}
Symbol 1133 MovieClip [walkGlyph] Frame 1
if (nullscript) {
return(undefined);
}
_visible = false;
count = 4;
onEnterFrame = function () {
if ((!_visible) || (_parent.brain.FLYING)) {
return(undefined);
}
_alpha = (_alpha - count);
if (((_alpha < 50) && (count > 0)) || ((_alpha >= 100) && (count < 0))) {
count = count * -1;
}
};
Symbol 1138 MovieClip [s_object] Frame 1
_parent.props.walkspeed = -1;
this.gotoAndStop(_parent.props.type);
this.onEnterFrame = function () {
this.gotoAndStop(_parent.props.type);
};
Instance of Symbol 1133 MovieClip [walkGlyph] in Symbol 1138 MovieClip [s_object] Frame 20
onClipEvent (load) {
nullscript = true;
gotoAndStop ("EARTH");
count = 6;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - count);
if (((_alpha < 50) && (count > 0)) || ((_alpha >= 100) && (count < 0))) {
count = count * -1;
}
}
Instance of Symbol 1133 MovieClip [walkGlyph] in Symbol 1138 MovieClip [s_object] Frame 21
onClipEvent (load) {
nullscript = true;
gotoAndStop ("AIR");
count = 6;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - count);
if (((_alpha < 50) && (count > 0)) || ((_alpha >= 100) && (count < 0))) {
count = count * -1;
}
}
Instance of Symbol 1023 MovieClip in Symbol 1138 MovieClip [s_object] Frame 25
onClipEvent (load) {
type = "EARTH";
}
Instance of Symbol 1023 MovieClip in Symbol 1138 MovieClip [s_object] Frame 26
onClipEvent (load) {
type = "AIR";
}
Instance of Symbol 1023 MovieClip in Symbol 1138 MovieClip [s_object] Frame 27
onClipEvent (load) {
type = "WATER";
}
Instance of Symbol 1023 MovieClip in Symbol 1138 MovieClip [s_object] Frame 28
onClipEvent (load) {
type = "FIRE";
}
Instance of Symbol 1023 MovieClip in Symbol 1138 MovieClip [s_object] Frame 29
onClipEvent (load) {
type = "LIGHT";
}
Instance of Symbol 1023 MovieClip in Symbol 1138 MovieClip [s_object] Frame 30
onClipEvent (load) {
type = "DARK";
}
Symbol 1148 MovieClip [DOOR_DL] Frame 1
nextFrame();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1148 MovieClip [DOOR_DL] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1148 MovieClip [DOOR_DL] Frame 2
stop();
Symbol 1148 MovieClip [DOOR_DL] Frame 8
stop();
Symbol 1155 MovieClip [DOORY] Frame 1
nextFrame();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1155 MovieClip [DOORY] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1155 MovieClip [DOORY] Frame 2
stop();
Symbol 1155 MovieClip [DOORY] Frame 6
stop();
Symbol 1163 MovieClip [DOORR] Frame 1
stop();
Instance of Symbol 1156 MovieClip [empty] "brain" in Symbol 1163 MovieClip [DOORR] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1163 MovieClip [DOORR] Frame 3
_root.Flash(_root, [200, 255, 200]);
_root.playSFX("weird");
Symbol 1163 MovieClip [DOORR] Frame 5
stop();
Symbol 1170 MovieClip [DOOR8] Frame 1
stop();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1170 MovieClip [DOOR8] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1170 MovieClip [DOOR8] Frame 5
stop();
Symbol 1177 MovieClip [DOOR7] Frame 1
stop();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1177 MovieClip [DOOR7] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1177 MovieClip [DOOR7] Frame 5
stop();
Symbol 1185 MovieClip [DOOR5] Frame 1
nextFrame();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1185 MovieClip [DOOR5] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1185 MovieClip [DOOR5] Frame 2
stop();
Symbol 1185 MovieClip [DOOR5] Frame 6
stop();
Symbol 1192 MovieClip [DOOR4] Frame 1
stop();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1192 MovieClip [DOOR4] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1192 MovieClip [DOOR4] Frame 5
stop();
Symbol 1199 MovieClip [DOOR3] Frame 1
stop();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1199 MovieClip [DOOR3] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1199 MovieClip [DOOR3] Frame 5
stop();
Symbol 1209 MovieClip [DOOR_SAUCER] Frame 1
nextFrame();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1209 MovieClip [DOOR_SAUCER] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1209 MovieClip [DOOR_SAUCER] Frame 8
stop();
Symbol 1216 MovieClip [DOOR2] Frame 1
stop();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1216 MovieClip [DOOR2] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1216 MovieClip [DOOR2] Frame 5
stop();
Symbol 1223 MovieClip [DOOR1] Frame 1
stop();
Instance of Symbol 524 MovieClip [empty] "brain" in Symbol 1223 MovieClip [DOOR1] Frame 1
onClipEvent (enterFrame) {
AI_door();
}
Symbol 1223 MovieClip [DOOR1] Frame 5
stop();
Symbol 1240 MovieClip [s_sign] Frame 1
this.gotoAndStop((_parent.props.sign ? (_parent.props.sign) : "words"));
this.onEnterFrame = function () {
this.gotoAndStop((_parent.props.sign ? (_parent.props.sign) : "words"));
};
Instance of Symbol 1243 MovieClip [empty] in Symbol 1248 MovieClip [s_crystal] Frame 1
onClipEvent (load) {
f = 1;
d = 1;
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (count > 3) {
count = 0;
f = f + d;
if ((f == 1) || (f == 3)) {
d = d * -1;
}
}
_parent.gotoAndStop(f);
}
Symbol 1251 MovieClip [s_OBSTACLE_FIRE] Frame 1
_parent.props.walkspeed = -1;
_parent.props.conv = [["", "This is some kind of boulder, apparently. It seems to be impervious to physical and magical attacks."], ["", "Not that you've tried to use any physical or magical attacks on it, though. You just *know* that if you *were* to use any physical or magical attacks on this boulder, it'd be impervious to them."], ["", "Only the strongest (and most specific) of magics could possibly destroy this thing."]];
_parent.props.counter = "NULL";
this.gotoAndStop((_parent.props.type ? (_parent.props.type) : "boulder"));
glowing = 0;
colour = new Color(this);
tint = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
this.onEnterFrame = function () {
this.gotoAndStop((_parent.props.type ? (_parent.props.type) : "boulder"));
if (!_root.plotVars.has_RodOfFire) {
return(undefined);
}
if ((_root.nearPC(_parent) && (glowing == 0)) && (Key.isDown(49))) {
glowing = 8;
}
if (glowing > 0) {
glowing = glowing + 5;
tint.rb = tint.rb + 5;
colour.setTransform(tint);
if (glowing > 95) {
_root.FieldPFX(_parent.getCoords(), "explode_fire");
_parent.removeMovieClip();
}
}
};
stop();
Symbol 1262 MovieClip Frame 1
if ((_root.mapMode || (_root.animtile == undefined)) || (!_root.OPTIONS.animtiles)) {
stop();
return(undefined);
}
this.onEnterFrame = function () {
this.gotoAndStop(_root.animtile % _totalframes);
};
Symbol 1365 MovieClip Frame 1
if (_root.mapMode || (_root.animtile == undefined)) {
stop();
return(undefined);
}
this.gotoAndStop(_root.animtile % _totalframes);
this.onEnterFrame = function () {
this.gotoAndStop(_root.animtile % _totalframes);
};
Symbol 1467 MovieClip Frame 1
if (_root.mapMode || (_root.animtile == undefined)) {
stop();
return(undefined);
}
this.onEnterFrame = function () {
if (_root.battling) {
return(undefined);
}
this.gotoAndStop(_root.animtile % _totalframes);
};
Symbol 1477 MovieClip Frame 1
if ((spawned || (_root.mapEditor)) || (!_root.cont._visible)) {
return(undefined);
}
spawned = true;
var d = int(Math.abs(660601 + (((0 + Math.floor(_parent._x / 30)) * 1000) + (0 + Math.floor(_parent._y / 30)))));
var N = ("torchlight" + d);
if (_root.cont[N] != undefined) {
return(undefined);
}
_root.cont.attachMovie("torchlight", N, d);
_root.cont[N].torch = _parent._name;
_root.cont[N].area = _root.area;
_root.cont[N]._x = (0 + _parent._x) + 15;
_root.cont[N]._y = (0 + _parent._y) + 12;
_root.cont[N].gotoAndStop((light ? (light) : 1));
Instance of Symbol 1477 MovieClip in Symbol 1484 MovieClip [t_templeE] Frame 13
onClipEvent (load) {
light = "green";
}
Instance of Symbol 1477 MovieClip in Symbol 1546 MovieClip [t_temple] Frame 39
onClipEvent (load) {
light = "purple";
}
Instance of Symbol 1477 MovieClip in Symbol 1546 MovieClip [t_temple] Frame 40
onClipEvent (load) {
light = "white";
}
Instance of Symbol 1477 MovieClip in Symbol 1546 MovieClip [t_temple] Frame 50
onClipEvent (load) {
light = "yellow";
}
Symbol 1624 MovieClip [t_starship] Frame 5
if ((spawned || (_root.mapEditor)) || (!_root.cont._visible)) {
return(undefined);
}
spawned = true;
var d = int(Math.abs(660601 + (((0 + Math.floor(_x / 30)) * 1000) + (0 + Math.floor(_y / 30)))));
var N = ("torchlight" + d);
if (_root.cont[N] != undefined) {
return(undefined);
}
_root.cont.attachMovie("torchlight", N, d);
_root.cont[N].torch = _name;
_root.cont[N].area = _root.area;
_root.cont[N]._x = (0 + _x) + 15;
_root.cont[N]._y = (0 + _y) + 12;
_root.cont[N].gotoAndStop(4);
_root.cont[N].noFlicker = true;
Symbol 1624 MovieClip [t_starship] Frame 6
if ((spawned || (_root.mapEditor)) || (!_root.cont._visible)) {
return(undefined);
}
spawned = true;
var d = int(Math.abs(660601 + (((0 + Math.floor(_x / 30)) * 1000) + (0 + Math.floor(_y / 30)))));
var N = ("torchlight" + d);
if (_root.cont[N] != undefined) {
return(undefined);
}
_root.cont.attachMovie("torchlight", N, d);
_root.cont[N].torch = _name;
_root.cont[N].area = _root.area;
_root.cont[N]._x = (0 + _x) + 15;
_root.cont[N]._y = (0 + _y) + 12;
_root.cont[N].gotoAndStop(5);
_root.cont[N].noFlicker = true;
Symbol 1660 MovieClip Frame 1
if ((_root.mapMode || (_root.animtile == undefined)) || (!_root.OPTIONS.animtiles)) {
stop();
return(undefined);
}
this.gotoAndStop(_root.animtile % _totalframes);
this.onEnterFrame = function () {
this.gotoAndStop(_root.animtile % _totalframes);
};
Symbol 1669 MovieClip Frame 1
if (!_root.OPTIONS.animtiles) {
stop();
}
Symbol 1825 MovieClip Frame 1
if (!loaded) {
loaded = true;
this.gotoAndPlay(random(_totalframes));
}
Symbol 1856 MovieClip [t_monastery] Frame 11
if ((spawned || (_root.mapEditor)) || (!_root.cont._visible)) {
return(undefined);
}
spawned = true;
var d = int(Math.abs(660601 + (((0 + Math.floor(_x / 30)) * 1000) + (0 + Math.floor(_y / 30)))));
var N = ("torchlight" + d);
if (_root.cont[N] != undefined) {
return(undefined);
}
_root.cont.attachMovie("torchlight", N, d);
_root.cont[N].torch = _name;
_root.cont[N].area = _root.area;
_root.cont[N]._x = (0 + _x) + 15;
_root.cont[N]._y = (0 + _y) - 34;
_root.cont[N].gotoAndStop("green");
Instance of Symbol 1477 MovieClip in Symbol 1976 MovieClip [t_interior3] Frame 14
onClipEvent (load) {
light = "blue2";
}
Instance of Symbol 1477 MovieClip in Symbol 1976 MovieClip [t_interior3] Frame 22
onClipEvent (load) {
light = 1;
}
Instance of Symbol 1477 MovieClip in Symbol 1976 MovieClip [t_interior3] Frame 23
onClipEvent (load) {
light = "green";
}
Instance of Symbol 1477 MovieClip in Symbol 1976 MovieClip [t_interior3] Frame 24
onClipEvent (load) {
light = "blue3";
}
Instance of Symbol 1477 MovieClip in Symbol 1976 MovieClip [t_interior3] Frame 25
onClipEvent (load) {
light = "white";
}
Instance of Symbol 2041 MovieClip [t_interior1] in Symbol 2042 MovieClip [t_interior1e] Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._currentframe);
}
Symbol 2053 MovieClip Frame 1
if (_root.mapMode || (_root.animtile == undefined)) {
stop();
return(undefined);
}
this.onEnterFrame = function () {
this.gotoAndStop(_root.animtile % _totalframes);
};
Symbol 2078 MovieClip Frame 1
if (_root.mapMode || (_root.animtile == undefined)) {
stop();
return(undefined);
}
this.onEnterFrame = function () {
this.gotoAndStop(_root.animtile % _totalframes);
};
Instance of Symbol 1477 MovieClip in Symbol 2110 MovieClip [t_dungeon2] Frame 8
onClipEvent (load) {
light = "green";
}
Instance of Symbol 1477 MovieClip in Symbol 2130 MovieClip [t_dragonlair] Frame 7
onClipEvent (load) {
light = "deepred";
}
Symbol 2130 MovieClip [t_dragonlair] Frame 8
if ((spawned || (_root.mapEditor)) || (!_root.cont._visible)) {
return(undefined);
}
spawned = true;
var d = int(Math.abs(660601 + (((0 + Math.floor(_x / 30)) * 1000) + (0 + Math.floor(_y / 30)))));
var N = ("torchlight" + d);
if (_root.cont[N] != undefined) {
return(undefined);
}
_root.cont.attachMovie("torchlight", N, d);
_root.cont[N].torch = _name;
_root.cont[N].area = _root.area;
_root.cont[N]._x = (0 + _x) + 15;
_root.cont[N]._y = (0 + _y) - 34;
_root.cont[N].gotoAndStop("deepred");
Symbol 2268 MovieClip [t_cave3] Frame 41
if ((spawned || (_root.mapEditor)) || (!_root.cont._visible)) {
return(undefined);
}
spawned = true;
var d = int(Math.abs(660601 + (((0 + Math.floor(_x / 30)) * 1000) + (0 + Math.floor(_y / 30)))));
var N = ("torchlight" + d);
if (_root.cont[N] != undefined) {
return(undefined);
}
_root.cont.attachMovie("torchlight", N, d);
_root.cont[N].torch = _name;
_root.cont[N].area = _root.area;
_root.cont[N]._x = (0 + _x) + 15;
_root.cont[N]._y = (0 + _y) - 44;
_root.cont[N].gotoAndStop(4);
_root.cont[N].noFlicker = true;
Instance of Symbol 1477 MovieClip in Symbol 2328 MovieClip [t_cave2] Frame 17
onClipEvent (load) {
light = "green";
}
Instance of Symbol 1477 MovieClip in Symbol 2387 MovieClip [t_cave] Frame 55
onClipEvent (load) {
light = "yellow";
noFlicker = true;
}
Instance of Symbol 1477 MovieClip in Symbol 2408 MovieClip [t_catacombs] Frame 7
onClipEvent (load) {
light = "green";
}
Symbol 2409 MovieClip Frame 1
function IsPC() {
return(_parent._name == "PC");
}
function walkable(tile) {
for (o in _root.cont) {
if ((substring(_root.cont[o]._name, 1, 2)) != "t_") {
var _local3 = _root.cont[o].getCoords();
if ((((_local3[0] == tile[1]) && (_local3[1] == tile[2])) && (_root.cont[o]._visible)) && ((!IsPC()) || (((((((substring(_root.cont[o]._name, 1, 2)) != "PC") && (_root.cont[o].props.model != "area_transition")) && ((substring(_root.cont[o]._name, 1, 5)) != "torch")) && ((substring(_root.cont[o]._name, 1, 3)) != "PFX")) && (!_root.cont[o].props.walkable)) && (_root.cont[o].props.model != "_trigger")))) {
return(false);
}
}
}
i = 0;
while (i <= _root.valid.length) {
if ((tile[0] == _root.valid[i]) && (tile[0] != undefined)) {
return(true);
}
i++;
}
return(false);
}
function StoreLocation() {
_root.PCloc = [_parent._x, _parent._y, _root.area];
}
function tryRandomBattle() {
if ((_root.noBattles || (!IsPC())) || (_root.vehicle != undefined)) {
return(undefined);
}
tile = getTile(_parent._x, _parent._y);
if ((((Math.random() * 100) <= _root.btlChance) && (_root.steps >= _root.minSteps)) || (_root.forceBattle)) {
if (_root.forceBattle) {
_root.forceBattle = false;
}
j = 0;
while (j <= _root.sprites.length) {
if (_root.sprites[j].model == "area_transition") {
if ((_root.cont[_root.sprites[j].name].getCoords()[0] == tile[1]) && (_root.cont[_root.sprites[j].name].getCoords()[1] == tile[2])) {
return(false);
}
}
j++;
}
_root.steps = 0;
root.battling = true;
StoreLocation();
_root.playSFX("Attack2");
if (!_root.plotVars.NO_BATTLE_MUSIC) {
_root.playMusic("battle", true);
}
if (!loadedFlasher) {
_root.attachMovie("battle_trans", "battle_trans", 9999999);
_root.battle_trans._x = (_root.battle_trans._y = 0);
loadedFlasher = true;
} else {
_root.battle_trans._visible = true;
_root.battle_trans.ctrl.count = 0;
}
}
}
function getTile(x, y) {
var _local3 = Math.floor(x / _root.tilesize);
var _local2 = Math.floor(y / _root.tilesize);
return([_root.map[_local2][_local3], _local3, _local2]);
}
function canScroll(x, y) {
mapx = _root.cont._x;
mapy = _root.cont._y;
sx = (sy = 0);
if (x < 0) {
if (((mapx - x) <= 0) && ((_parent._x + mapx) <= (_root.screenwidth / 2))) {
sx = x;
}
} else if (x > 0) {
if (((((-mapx) + x) + _root.screenwidth) <= (_root.mapwidth * _root.tilesize)) && ((_parent._x + x) >= (_root.screenwidth / 2))) {
sx = x;
}
} else if (y < 0) {
if (((mapy - y) <= 0) && ((_parent._y + mapy) <= (_root.screenheight / 2))) {
sy = y;
}
} else if (y > 0) {
if (((((-mapy) + y) + _root.screenheight) <= (_root.mapheight * _root.tilesize)) && (_parent._y >= (_root.screenheight / 2))) {
sy = y;
}
}
return({x:x, y:y});
}
function scrollMap(x, y) {
_root.cont._x = _root.cont._x - x;
_root.cont._y = _root.cont._y - y;
_root.xloop = xloop;
_root.MX = MX;
_root.MY = MY;
yloop = yloop + y;
if (yloop < 0) {
yloop = yloop + _root.tilesize;
q = -2;
while (q < (_root.scrnXtiles + 5)) {
Tname = (("t_" + (q + MX)) + "_") + (MY - 2);
_root.cont[(("t_" + (q + MX)) + "_") + ((MY + _root.scrnYtiles) + 4)]._name = Tname;
_root.cont[Tname]._y = (MY - 2) * _root.tilesize;
_root.cont[Tname].setValidTile(MY - 2, q + MX);
q++;
}
MY = MY - 1;
} else if (yloop >= _root.tilesize) {
yloop = yloop - _root.tilesize;
q = -2;
while (q < (_root.scrnXtiles + 5)) {
Tname = (("t_" + (q + MX)) + "_") + ((MY + _root.scrnYtiles) + 5);
_root.cont[(("t_" + (q + MX)) + "_") + (MY - 1)]._name = Tname;
_root.cont[Tname]._y = ((MY + _root.scrnYtiles) + 5) * _root.tilesize;
_root.cont[Tname].setValidTile((MY + _root.scrnYtiles) + 5, q + MX);
q++;
}
MY = MY + 1;
}
xloop = xloop + x;
if (xloop < 0) {
xloop = xloop + _root.tilesize;
q = -2;
while (q < (_root.scrnYtiles + 5)) {
Tname = (("t_" + (MX - 2)) + "_") + (q + MY);
_root.cont[(("t_" + ((MX + _root.scrnXtiles) + 4)) + "_") + (q + MY)]._name = Tname;
_root.cont[Tname]._x = (MX - 2) * _root.tilesize;
_root.cont[Tname].setValidTile(q + MY, MX - 2);
q++;
}
MX = MX - 1;
} else if (xloop >= _root.tilesize) {
xloop = xloop - _root.tilesize;
q = -2;
while (q < (_root.scrnYtiles + 5)) {
Tname = (("t_" + ((MX + _root.scrnXtiles) + 5)) + "_") + (q + MY);
_root.cont[(("t_" + (MX - 1)) + "_") + (q + MY)]._name = Tname;
_root.cont[Tname]._x = ((MX + _root.scrnXtiles) + 5) * _root.tilesize;
_root.cont[Tname].setValidTile(q + MY, (MX + _root.scrnXtiles) + 5);
q++;
}
MX = MX + 1;
}
}
function doOnTalk(dir, force) {
if (_root.fadeTrans.ctrl.active) {
return(undefined);
}
if ((!force) && (_root.conv._visible || (_root.exeunt == true))) {
return(undefined);
}
if ((!force) && (_root.keyD || (justSpoke))) {
return(undefined);
}
justSpoke = true;
_parent.props.PlotConvChecks();
speak(props.conv, props.name, props.model, props.lang);
_parent.model.gotoAndStop(dir + "1");
talk = true;
if (_parent.props.EN != null) {
EN_ADD(_parent.props.EN[0], _parent.props.EN[1]);
}
}
function movement(x, y) {
sleep = 0;
if (!moving) {
moved = 0;
moving = true;
_parent.model.gotoAndStop(dir + f);
if (IsPC()) {
var _local3 = 2;
while (_local3 <= 4) {
if (_root.cont["PC_" + _local3]._visible && (Hdelay > (_local3 - 2))) {
var _local5 = (((1000 * (((_root.cont["PC_" + _local3]._y / _root.tilesize) + 50) + ((lastMoves[_local3 - 2][1] > 1) ? 1 : 0))) + (_root.cont["PC_" + _local3]._x / _root.tilesize)) + 370) + (10 * _local3);
while (_root.cont.getInstanceAtDepth(_local5) != undefined) {
_local5++;
}
_root.cont["PC_" + _local3].swapDepths(_local5);
}
_local3++;
}
}
var _local5 = ((1000 * (((_parent._y / _root.tilesize) + 50) + ((y > 1) ? 1 : 0))) + (_parent._x / _root.tilesize)) + 500;
while (_root.cont.getInstanceAtDepth(_local5) != undefined) {
_local5++;
}
_parent.swapDepths(_local5);
}
wcount++;
if ((((substring(_parent._name, 1, 2)) == "PC") && (wcount >= 3)) || (wcount > 3)) {
wcount = 0;
f = (!(f - 1)) + 1;
}
_parent.model.gotoAndStop(dir + f);
if (IsPC()) {
var _local3 = 2;
while (_local3 <= 4) {
if (_root.cont["PC_" + _local3]._visible && (Hdelay > (_local3 - 2))) {
_root.cont["PC_" + _local3].model.gotoAndStop(lastMoves[_local3 - 2][2] + f);
}
_local3++;
}
}
if (moving) {
moved = moved + m;
movex = x;
movey = y;
_parent._x = _parent._x + x;
_parent._y = _parent._y + y;
if (IsPC()) {
if ((x != 0) || (y != 0)) {
var _local3 = 2;
while (_local3 <= 4) {
if (_root.cont["PC_" + _local3]._visible && (Hdelay > (_local3 - 2))) {
_root.cont["PC_" + _local3]._x = _root.cont["PC_" + _local3]._x + lastMoves[_local3 - 2][0];
_root.cont["PC_" + _local3]._y = _root.cont["PC_" + _local3]._y + lastMoves[_local3 - 2][1];
}
_local3++;
}
}
scrollMap(x, y);
}
}
if (moved >= _root.tilesize) {
count = 0;
_root.steps++;
if (IsPC()) {
_root.plotVars.steps++;
if ((_root.plotVars.steps % 10) == 0) {
var f = 0;
var _local4 = 1;
while (_local4 <= 4) {
if (_root.HasSTFX(_root["PCstats_" + _local4], "PSN") && (_root["PCstats_" + _local4].hp[1] > 1)) {
_root["PCstats_" + _local4].hp[1]--;
f = 1;
}
_local4++;
}
if (f) {
_root.Flash(_root, [0, 255, 0]);
}
}
Hdelay++;
var _local3 = 5;
while (_local3 >= 0) {
lastMoves[_local3 + 1] = lastMoves[_local3];
_local3--;
}
lastMoves[0] = [x, y, dir];
ScopeMap();
tryRandomBattle();
} else {
f = 1;
_parent.model.gotoAndStop(dir + f);
}
_root.justSpoke = 0;
moving = false;
return(undefined);
}
}
function ScopeMap() {
if ((!IsPC()) || (_root.plotVars.MAPS_REVEALED[_root.area] == "FULL")) {
return(undefined);
}
var _local6 = 2;
var _local5 = _parent.getCoords();
var _local4 = -5;
while (_local4 <= 5) {
var _local3 = -7;
while (_local3 <= 7) {
_root.plotVars.MAPS_REVEALED[_root.area][_local5[1] + _local4][_local5[0] + _local3] = 1;
_local3++;
}
_local4++;
}
}
props = _parent.props;
count = 0;
sleep = 0;
actions = [];
acting = false;
launch = 0;
moving = false;
dir = (IsPC() ? ((_root.lastDir ? (_root.lastDir) : "s")) : (((props.dir != undefined) ? (props.dir) : "s")));
s = _root.tilesize / 10;
f = 1;
wcount = 0;
MovieClip.prototype.setValidTile = function (y, x) {
if (_root.areaname == "WORLDMAP") {
var _local5;
var _local6;
if ((x + 1) > _root.map[0].length) {
_local5 = x % _root.map[0].length;
} else if (x < 0) {
_local5 = x + _root.map[0].length;
} else {
_local5 = x;
}
if ((y + 1) > _root.map.length) {
_local6 = y % _root.map.length;
} else if (y < 0) {
_local6 = y + _root.map.length;
} else {
_local6 = y;
}
this.gotoAndStop(_root.map[_local6][_local5] + 1);
} else if (((((x + 1) > _root.map[0].length) || (x < 0)) || ((y + 1) > _root.map.length)) || (y < 0)) {
this.gotoAndStop("default");
} else if ((_root.map[y][x] == "treasure1") || (_root.map[y][x] == "treasure2")) {
this.gotoAndStop(_root.map[y][x]);
} else {
this.gotoAndStop(_root.map[y][x] + 1);
}
this.swapDepths(((1000 * ((this._y / _root.tilesize) + 50)) + (this._x / _root.tilesize)) + 200);
};
xloop = (yloop = -20);
MX = _root.mapXoffset;
MY = _root.mapYoffset;
justSpoke = false;
Hdelay = 0;
lastMoves = [[3, 3], [3, 3], [3, 3], [3, 3], [3, 3], [3, 3]];
if (_root.teleportingIN && ((substring(_parent._name, 1, 2)) == "PC")) {
Tcolour = new Color(_parent.model);
Ttint = {ra:100, rb:0, ga:100, gb:255, ba:100, bb:255, aa:0, ab:0};
Tcolour.setTransform(Ttint);
var t = 2;
while (t < 4) {
if (_root.cont["PC_" + t] != undefined) {
this["Tcolour" + t] = new Color(_root.cont["PC_" + t]);
this["Tcolour" + t].setTransform(Ttint);
}
t++;
}
telefading = true;
teledelay = 30;
_root.lastDir = "s";
dir = "s";
_parent.model.gotoAndStop("s1");
}
ScopeMap();
onEnterFrame = function () {
if (_root.CHAPTER_THING._visible) {
return(undefined);
}
_depth = _parent.getDepth();
if (swingingRod) {
this.gotoAndStop(dir + 2);
return(undefined);
}
if (telefading) {
if (teledelay > 0) {
teledelay--;
return(undefined);
}
if (_root.warpFX._visible || (_root.fade._visible)) {
return(undefined);
}
var _local6 = (_root.DUNGEONMODE ? 5 : 2);
Ttint.aa = Ttint.aa + _local6;
Ttint.gb = Ttint.gb - (2.55 * _local6);
Ttint.bb = Ttint.bb - (2.55 * _local6);
if (Ttint.aa >= 100) {
Ttint.gb = (Ttint.bb = 0);
Ttint.aa = 100;
telefading = false;
_root.teleportingIN = false;
}
Tcolour.setTransform(Ttint);
if (Tcolour2 != undefined) {
Tcolour2.setTransform(Ttint);
}
if (Tcolour3 != undefined) {
Tcolour3.setTransform(Ttint);
}
return(undefined);
}
var _local5 = _parent.getBounds(_root);
if ((!IsPC()) && ((((_local5.xMin > 510) || (_local5.xMin < -60)) || (_local5.yMin < -60)) || (_local5.yMin > 390))) {
return(undefined);
}
if (IsPC()) {
_root.pco = _parent.getCoords();
if (!_root.fadeTrans.ctrl.active) {
_root.lastDir = dir;
}
}
coords = _parent.getCoords();
props = _parent.props;
m = (IsPC() ? (((_root.vehicle != undefined) ? (_root.tilesize / 2) : (s * 2))) : (s));
if (((actions.length > 0) && (!acting)) && (!moving)) {
var _local4 = actions[0];
if (_local4[0] == "UNFREEZE") {
_root.freeze = false;
actions.shift();
} else if (_local4[0] == "TALK") {
doOnTalk(_local4[1]);
actions.shift();
} else {
if (_local4[0] == "DISAPPEAR") {
_parent.removeMovieClip();
return(undefined);
}
if (_local4[0] == "WALK") {
acting = true;
dir = ((_local4[1] > 0) ? "e" : (((_local4[1] < 0) ? "w" : (((_local4[2] < 0) ? "n" : "s")))));
var _local8 = (_local4[1] ? (((_local4[1] < 0) ? (-m) : (m))) : 0);
var _local7 = (_local4[2] ? (((_local4[2] < 0) ? (-m) : (m))) : 0);
movement(_local8, _local7);
if (actions[0][1] != 0) {
actions[0][1] = actions[0][1] - ((actions[0][1] < 0) ? -1 : 1);
} else if (actions[0][2] != 0) {
actions[0][2] = actions[0][2] - ((actions[0][2] < 0) ? -1 : 1);
} else {
actions.shift();
}
if ((actions[0][1] == 0) && (actions[0][2] == 0)) {
actions.shift();
}
return(undefined);
}
}
}
if (acting) {
if (moving) {
movement(movex, movey);
if (!moving) {
acting = false;
}
}
return(undefined);
}
if (rodcount > 0) {
rodcount--;
}
if (dying == true) {
_parent.model.gotoAndStop("hurt");
if (_root.BOSSBATTLE) {
if (Tcolour == null) {
wobble = 1;
Tcolour = new Color(_parent.model);
Ttint = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
Tcolour.setTransform(Ttint);
}
Ttint.aa = Ttint.aa - 2;
Ttint.rb = Ttint.rb + 8;
Tcolour.setTransform(Ttint);
_parent.model._x = wobble;
wobble = wobble * -1;
} else {
_parent._alpha = _parent._alpha - 5;
}
if ((_parent._alpha < 5) || (Ttint.aa < 5)) {
_parent.removeMovieClip();
}
return(undefined);
}
if (moving && (_root.conv._visible)) {
movement(movex, movey);
return(undefined);
}
if (((((_root.conv._visible || (_root.freeze)) || (!_root.cont._visible)) || (_root.battle_trans._visible)) || (_root.tehMenu._visible && (_root.tehMenu._currentframe == 1))) || (_root.gotitem_box._visible)) {
return(undefined);
}
if ((justSpoke && (!_root.conv._visible)) && (!Key.isDown(88))) {
justSpoke = false;
}
if ((((IsPC() && (Key.isDown(13))) && (!_root.enterD)) && (!_root.tehMenu._visible)) && ((_root.__console._y > 400) || (!_root.__console._visible))) {
if (FLYING) {
_root.playSFX("error");
return(undefined);
}
StoreLocation();
if (_root.tehMenu == undefined) {
_root.CreateMenu();
}
_root.tehMenu._visible = true;
_root.tehMenu._alpha = 0;
_root.tehMenu.fading = 1;
_root.tehMenu.keyD = true;
_root.tehMenu.gotoAndStop(1);
for (o in _root.tehMenu) {
_root.tehMenu[o].gotoAndStop(1);
}
_root.tehMenu.swapDepths(_root.cont.getDepth() + 100);
_root.enterD = true;
return(undefined);
}
if ((IsPC() && (_root.enterD)) && (!Key.isDown(13))) {
_root.enterD = false;
}
if (IsPC()) {
_root.PCdir = dir;
if (!moving) {
if (Key.isDown(37)) {
dir = "w";
if (walkable(getTile(_parent._x - _root.tilesize, _parent._y))) {
movement(-m, 0);
}
} else if (Key.isDown(39)) {
dir = "e";
if (walkable(getTile(_parent._x + _root.tilesize, _parent._y))) {
movement(m, 0);
}
} else if (Key.isDown(38)) {
dir = "n";
if (walkable(getTile(_parent._x, _parent._y - _root.tilesize))) {
movement(0, -m);
}
} else if (Key.isDown(40)) {
dir = "s";
if (walkable(getTile(_parent._x, _parent._y + _root.tilesize))) {
movement(0, m);
}
} else {
sleep++;
if (sleep >= (_root.FPS * 10)) {
_parent.model.gotoAndStop("hurt");
i = 2;
while (i <= 4) {
if (_root.cont["PC_" + i]._visible) {
_root.cont["PC_" + i].model.gotoAndStop("hurt");
}
i++;
}
} else if (_root.vehicle == undefined) {
f = 1;
_parent.model.gotoAndStop(dir + f);
i = 2;
while (i <= 4) {
if (_root.cont["PC_" + i]._visible && (Hdelay > (i - 2))) {
_root.cont["PC_" + i].model.gotoAndStop(lastMoves[i - 2][2] + "1");
}
i++;
}
}
}
} else {
movement(movex, movey);
}
return(undefined);
}
if (Key.isDown(88) && (!_root.keyD)) {
if (_root.pco[0] == coords[0]) {
if ((_root.PCdir == "s") && (_root.pco[1] == (coords[1] - 1))) {
doOnTalk("n");
} else if ((_root.PCdir == "n") && (_root.pco[1] == (coords[1] + 1))) {
doOnTalk("s");
}
}
if (_root.pco[1] == coords[1]) {
if ((_root.PCdir == "e") && (_root.pco[0] == (coords[0] - 1))) {
doOnTalk("w");
} else if ((_root.PCdir == "w") && (_root.pco[0] == (coords[0] + 1))) {
doOnTalk("e");
}
}
}
if (props.walkspeed < 0) {
if (!_root.conv._visible) {
if (props.walkspeed == -1) {
wcount++;
if (wcount > 10) {
wcount = 0;
f = (!(f - 1)) + 1;
}
}
_parent.model.gotoAndStop(((props.dir != undefined) ? (((props.dir.toLowerCase() == "hurt") ? "hurt" : (props.dir + f))) : ("s" + f)));
}
return(undefined);
}
count++;
if (count < props.walkspeed) {
return(undefined);
}
randDir = int(Math.random() * 4) + 1;
if (!moving) {
if (randDir == 1) {
dir = "w";
if (walkable(getTile(_parent._x - _root.tilesize, _parent._y)) && ((coords[0] - 1) != _root.pco[0])) {
movement(-s, 0);
}
} else if (randDir == 2) {
dir = "e";
if (walkable(getTile(_parent._x + _root.tilesize, _parent._y)) && ((coords[0] + 1) != _root.pco[0])) {
movement(s, 0);
}
} else if (randDir == 3) {
dir = "n";
if (walkable(getTile(_parent._x, _parent._y - _root.tilesize)) && ((coords[1] - 1) != _root.pco[1])) {
movement(0, -s);
}
} else if (randDir == 4) {
dir = "s";
if (walkable(getTile(_parent._x, _parent._y + _root.tilesize)) && ((coords[1] + 1) != _root.pco[1])) {
movement(0, s);
}
} else {
_parent.model.gotoAndStop(dir + f);
}
} else {
movement(movex, movey);
}
};
Symbol 2419 MovieClip [deepTerrain] Frame 1
stop();
this.swapDepths(1000);
onEnterFrame = function () {
var _local5 = Math.round(_parent._x / _root.tilesize);
var _local4 = Math.round(_parent._y / _root.tilesize);
this.gotoAndStop(((_root.map[_local4][_local5] == _root.deeptile) ? (_root.tileset) : "none"));
};
Symbol 2420 MovieClip [_NPC] Frame 2
stop();
Symbol 2822 MovieClip [c_healingCrystal] Frame 1
nextFrame();
Symbol 2822 MovieClip [c_healingCrystal] Frame 2
stop();
HEAL();
Say("", "norm", "A soothing light washes over you...");
_root.plotVars.homepoint = [_root.area, _root.conv.SPEAKING._x, _root.conv.SPEAKING._y];
Symbol 2822 MovieClip [c_healingCrystal] Frame 3
END();
Symbol 2823 MovieClip [c_A_Rohoph] Frame 1
if (_root.area == "gz_Mhouse2") {
gotoAndStop ("time3");
} else if (!_root.NoRohophName) {
gotoAndStop ("time2");
} else {
nextFrame();
}
Symbol 2823 MovieClip [c_A_Rohoph] Frame 2
Say("Deugan", "shok", "What the? Mardek! What just happened?!? Are you okay?");
_root.cont.PC2.model.gotoAndStop("n1");
EN_ADD("People", "Rohoph");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 3
Say("PC", "zzz", "...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 4
Say("Deugan", "susp", "...Mardek?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 5
_root.cont.PC.model.gotoAndStop("RM");
Say("RM", "deep", "Ah... Good, it worked... Unfortunate choice of body, though. But ah well. Can't be helped. It was the only compatible elemental type host around.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 6
Say("Deugan", "shok", "...Mardek?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 7
Say("RM", "norm", "Hm. I say, you there. Inhabitant. Where is this? No wait... Do you know of the Annunaki? The Lingons? The Astrostles Alliance?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 8
Say("Deugan", "shok", "Huh? What? Mardek, you're scaring me...!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 9
Say("PC", "shok", "Well, I'm starting to scare me too! I don't know what I'm doing! That's not me saying those th-");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 10
Say("RM", "deep", "Silence, host. So... this is not a Developed World then? Interesting... I might be safe here... at least for a little while. But at the same time, I'll be so very vulnerable...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 11
Say("Deugan", "susp", "Uhm... If you're pretending, Mardek, then stop it... It's not very funny...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 12
Say("RM", "smile", "I suppose you're pretty confused, Inhabitants! *Underdeveloped* and *HUMAN* Inhabitants, might I add...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 13
Say("RM", "norm", "I'll just be blunt and explain. You see, I happen to have crashed my ga-... uh, my 'flying chariot' on this planet of yours, and it appears my other body couldn't take the impact and died. A pity.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 14
Say("RM", "smile", "But I still have business in this plane, so I transferred my soul to this host. So now I'm sharing its body. You don't need to *understand* it; you just need to accept it, because I'm going nowhere, and you'd have to kill this creature if you wanted to get at me.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 15
Say("Deugan", "shok", "Urk!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 16
Say("RM", "deep", "But despite my prior tone, I mean you no harm at all! No... harm is what I'm against, which is why I'm here now...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 17
Say("RM", "norm", "And I'm sorry to have inconvenienced with you with my presence, but... just be glad I didn't expel this creature's soul from its body, because I COULD have done that and taken full control! I'm not cruel enough though, so I'd rather share.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 18
Say("RM", "norm", "You'll have to put up with me for a while though, I'm afraid, because I can only get out of this body when it's ter- ...Uh. Nevermind that, actually.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 19
Say("RM", "smile", "I suppose I might as well try to settle in immediately. So tell me, creatures, what you call yourselves! What are your names? You're larvae, correct?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 20
Say("Deugan", "shok", "I'm not a caterpillar! And... And I don't know what's going on! I'm confused! This is... too *weird*...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 21
Say("Deugan", "susp", "But you're some kind of... thing... in Mardek's body that can talk out of his mouth, but you're not him?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 22
Say("RM", "grin", "That is correct, little creature! I'm surprised you followed what I was saying so well seeing as you're but a youngling, and an Underdeveloped one at that!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 23
Say("RM", "smile", "But my, I'm being so rude! I haven't let my host speak in ages! Do forgive me.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 24
Say("PC", "shok", "Mmph! Huh? Well, I couldn't speak! You were doing that, weren't you? Don't do that! Get out of me!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 25
_root.NoRohophName = false;
Say("RM", "smile", "I'm afraid I can't do that, O Host. I need to perpetuate myself in this plane, and the bond I just made to this body is rather permanent, so you and I will be together for a long time! You'll just have to get used to having me sharing your body. My name's Rohoph, by the way. A pleasure it is to make your acquaintance, Larval Human Inhabitants of this world.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 26
Say("RM", "deep", "You two seem understandably distressed. If you want, I can be silent for a while? I need to mull over my thoughts anyway. I suggest you two rest a bit and calm down. We can talk more later.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 27
Say("PC", "deep", "Yeh, shut up you weird thing! I... I need to go and lie down...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 28
Say("Deugan", "deep", "Mardek, I don't know exactly what just happened or what it all means, but I think we should head back to the village now... So come on, let's go...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 29
_root.plotVars.ROHOPH = 1;
END();
Symbol 2823 MovieClip [c_A_Rohoph] Frame 31
Say("RM", "deep", "Ah, the old corpse... It served me well for many hundreds of years, but alas, now it's ruined.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 32
END();
Symbol 2823 MovieClip [c_A_Rohoph] Frame 35
_root.cont.PC.model.gotoAndStop("sleep1");
Say("PC", "zzz", "...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 36
_root.cont.PC.model.gotoAndStop("s1");
Say("PC", "susp", "You! You weird thing in me! Can you hear me if I talk?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 37
_root.cont.PC.model.gotoAndStop("rm");
_root.playMusic("Rohoph");
Say("RM", "smile", "Obviously. I have your ears and share your brain now, so I can detect anything that you can, including your *internal* monologues, might I add.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 38
Say("RM", "smile", "(But due to my incredible magical prowess and dominance in this 'relationship', you can know nothing of MY mental activites. Ahah.)");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 39
Say("PC", "susp", "Huh?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 40
Say("RM", "smile", "Nevermind. You want to ask me something though, Host? I suppose I'll do my best to explain; I mean, we WILL surely be spending years together from now on, so it'd be best to be on good terms with one another.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 41
Say("PC", "susp", "Well, I just want to know what you are! What are you?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 42
Say("RM", "deep", "Hm... Despite its apparent simplicity, that's one of the most complex of queries you could've come up with...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 43
Say("RM", "norm", "In short, I am... A Healer. Yes, that should do. I'm a magic-user of incredible skill, specialising in Light-elemental recovery magic and so on. Inhabiting your body as I am, I'll be able to lend you some of my power in any battles you may face in future. Keep that in mind.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 44
Say("RM", "susp", "But also, since I know that wasn't a satisfactory answer to your question, I am, uh... An 'Angel'? Is that what you call them here?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 45
Say("PC", "susp", "You mean one of them things from the sky?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 46
Say("RM", "smile", "Yes... I think. That's the word I got for what I am when I searched your brain's vocabulary lexicon, anyway. 'A being from the sky'. Yes, that seems apt.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 47
Say("RM", "deep", "I came here because... Hm, I don't know if I should tell you... I can't see what harm it'd do, but I also can't see what GOOD it would do, so it's better to be safe than sorry.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 48
Say("PC", "sad", "Aww! So you won't even tell me why you're in me?");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 49
Say("RM", "norm", "Uh. I'm IN you, as you so nicely put it, because I had no choice. As I said, my body died when my, uh, (blast! no word for it!)... 'flying thing' crashed here, and I was so very close to having my soul wrenched from this plane of existence...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 50
Say("RM", "norm", "O, what luck!, I thought when you entered my, uh... flying thing! I do apologise, but the opportunity was just too good to ignore, and when you're in pure soulform, you don't have much reasoning capability anyway.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 51
Say("RM", "smile", "I still have a lot of business to attend to on this plane, though. Yes... Why I'm here on this planet of yours relates to that.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 52
Say("RM", "deep", "But I need time to regenerate a bit. Dying really weakened me! Which is understandable.");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 53
Say("RM", "smile", "I'll lie low for a bit here before mentioning anything to you... So it's best you just accept my solemn stony silence on matters of my past, person or purpose for the next few years and don't ask questions!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 54
Say("PC", "blah", "Well, you talk too much, Thing!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 55
Say("RM", "susp", "My name's Rohoph, not 'Thing'. And hm... I do go on a bit, don't I? But I'm the only one here with knowledge enough to provide any kind of exposition! Tsk!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 56
Say("RM", "smile", "Anyway, I'm going to probably be rather silent for the next few years. I'll still be in your body, but I'll keep to myself and work on regaining some of my power. During that time, I'm sure you'll get used to me though, and I to you. Yes, it'll be a veritable frenzy of family-friendly fun, I'm sure! We'll have all sorts of crazy, zany shenanigans, antics and hijinks, probably!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 57
Say("PC", "grin", "Well, sounds fun!");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 58
Say("RM", "smile", "Yes indeed. But now, rest, host. We can't be having us being sleepy and lethargic tomorrow... It's probably going to be a long day...");
Symbol 2823 MovieClip [c_A_Rohoph] Frame 59
_root.cont.PC.brain.dir = "sleep";
_root.cont.PC.model.gotoAndStop("sleep1");
_root.lastDir = "sleep";
_root.nextArea = "cut3";
_root.spawnLoc = [0, 1];
_root.fadeTrans.ctrl.active = true;
_root.fadeTrans.ctrl.slowMode = true;
END();
Symbol 2824 MovieClip [c_npc] Frame 1
nextFrame();
Symbol 2824 MovieClip [c_npc] Frame 2
Say("", "norm", "I like stoats!");
Symbol 2824 MovieClip [c_npc] Frame 3
END();
Symbol 2825 MovieClip [c_none] Frame 1
nextFrame();
Symbol 2825 MovieClip [c_none] Frame 2
Say("", "norm", "Apparently, I don't have a conversation! This is a bug, and should be fixed.");
Symbol 2825 MovieClip [c_none] Frame 3
END();
Symbol 2826 MovieClip [c_A_Deugan] Frame 1
if (_root.area == "soothwood") {
gotoAndStop ("soothwood");
} else {
nextFrame();
}
Symbol 2826 MovieClip [c_A_Deugan] Frame 2
Say("Deugan", "shok", "Mardek! Mardek! Wake up! You've GOT to see this! I just saw the weirdest thing!");
_root.cont.PC.model.gotoAndStop("s1");
_root.cont.PC.brain.dir = "s";
_root.lastDir = "s";
Symbol 2826 MovieClip [c_A_Deugan] Frame 3
Say("Deugan", "norm", "There was this star in the sky, right, even though it was daytime - well, morning really, but same thing! - and I looked at it because it was weird, and then it started like getting BIGGER!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 4
Say("Deugan", "grin", "It was falling, Mardek! A falling star! And I saw where it landed, too! It landed with a big crash and I saw where it went!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 5
Say("Deugan", "grin", "It landed in a clearing just at the other side of the Soothwood! I'm sure it did!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 6
Say("Deugan", "grin", "So c'mon, Mardek! Get up! We HAVE to go and explore this! It's time to go on another adventure! We have to go and find the $Fallen Star%!!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 7
JOINPARTY();
GIVEQUEST("FALLENSTAR");
END();
Symbol 2826 MovieClip [c_A_Deugan] Frame 10
Say("PC", "norm", "Well, this is the Soothwood.");
Symbol 2826 MovieClip [c_A_Deugan] Frame 11
Say("Deugan", "norm", "Yes, we have to travel through this to get to where the thing crashed!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 12
Say("Deugan", "susp", "But wait, Mardek... Do we have our skills properly equipped? We should probably check from the menu, which can be accessed with the ENTER key!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 13
Say("PC", "susp", "What's a menu?");
Symbol 2826 MovieClip [c_A_Deugan] Frame 14
Say("Deugan", "norm", "Uh... nevermind. Let's just continue on through the forest. It's not very big so we should be able to get to the other side pretty quickly!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 15
Say("PC", "grin", "Okay!");
Symbol 2826 MovieClip [c_A_Deugan] Frame 16
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 1
if (_root.plotVars.ROHOPH != null) {
gotoAndStop ("time6");
} else if (_root.area == "goznor") {
gotoAndStop ("time5");
} else if (_root.area == "heroes_den") {
gotoAndStop ("time4");
} else if (_root.area == "DL_area2") {
gotoAndStop ("tutorial1");
} else if (_root.area == "DL_area4") {
gotoAndStop((_root.SLAYED_THE_DRAGON ? "time3" : "time2"));
} else {
nextFrame();
}
Symbol 2827 MovieClip [c_HeroBabble] Frame 2
Say("PC", "grin", "Well Deugan, this is The Dragon's Lair!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 3
Say("Deugan", "grin", "Yes, Mardek, that it is! We have to get to the dragon and slay it to rescue the Princess! Tally-ho!");
GIVEQUEST("HEROES");
Symbol 2827 MovieClip [c_HeroBabble] Frame 4
Say("PC", "susp", "What does 'tally-ho' mean?");
Symbol 2827 MovieClip [c_HeroBabble] Frame 5
Say("Deugan", "deep", "Uhm... I'm not sure! But I've heard adventurers say it before maybe! It sounds like something they'd say!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 6
Say("PC", "grin", "Tally-ho!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 7
Say("Deugan", "grin", "Tally-ho! We're adventurers! En guard! Forsooth! Bloody goblins!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 8
Say("PC", "grin", "Tally-ho!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 9
Say("Deugan", "grin", "Now let's go and save that Princess! Tally-ho!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 10
Say("Deugan", "norm", "Oh, but Mardek, just a reminder about things! We can $open the menu with the ENTER key% to check our stats, skills and items, or to save! And we can also $open doors and talk to people and stuff with the X key%! Remember these things!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 11
Say("Deugan", "norm", "It might be a good idea to $read the Help section of the menu% now if you didn't read the Instructions already!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 12
Say("PC", "susp", "...Huh?");
Symbol 2827 MovieClip [c_HeroBabble] Frame 13
Say("Deugan", "grin", "Uh, I mean... Tally-ho! Let's go and slay that dragon!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 14
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 15
Say("The Dragon", "norm", "HAHAHAH! HEROES! YOU ARE... (uhwhatwouldadragonsay?)... YOU ARE PATHETIC MORTALS! I HAVE A PRINCESS! YOU CAN'T HAVE THIS PRINCESS! THIS PRINCESS IS MINE!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 16
Say("Deugan", "angr", "We will slay you, mighty The Dragon! For we are great and Mighty Heroes, even mightier than you! Tally-ho forsooth!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 17
Say("PC", "grin", "We'll kick your arse dragon!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 18
Say("Deugan", "susp", "Do dragons have arses?");
Symbol 2827 MovieClip [c_HeroBabble] Frame 19
Say("PC", "grin", "I bet they do!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 20
Say("Deugan", "grin", "If they do, then we'll kick it like it's never been kicked before!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 21
Say("PC", "grin", "Yeh! With our big swords!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 22
Say("Deugan", "angr", "So bring it on, dragon!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 23
Say("The Dragon", "norm", "HAHAHAH! YOU WILL NEVER DEFEAT ME!!!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 24
BATTLE([["MightyDragon", null, null, null], ["The Dragon", null, null, null], [70, null, null, null], "DRAGON"], "BossBattle", true);
_root.plotVars.NO_BATTLE_MUSIC = false;
_root.SLAYED_THE_DRAGON = true;
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 27
Say("The Dragon", "norm", "OH DEAR!! I HAVE BEEN SLAIN!!!");
DONEQUEST("HEROES");
Symbol 2827 MovieClip [c_HeroBabble] Frame 28
Say("PC", "grin", "Well, we beated the dragon!");
DO_ACTIONS([["WALK", 0, 4], ["UNFREEZE"]], "Princess", true);
Symbol 2827 MovieClip [c_HeroBabble] Frame 29
Say("Princess", "smile", "Oh thank you so much for saving me, mighty heroes!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 30
Say("PC", "grin", "Well it was really all my fault.");
Symbol 2827 MovieClip [c_HeroBabble] Frame 31
Say("Deugan", "angr", "All your *fault*? Do you mean all your *doing* or something? Because that's not fair! We beat the dragon together!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 32
Say("PC", "blah", "Well I still get the princess.");
_root.cont.PC.model.gotoAndStop("s1");
_root.cont.PC.brain.dir = "s";
_root.lastDir = "s";
Symbol 2827 MovieClip [c_HeroBabble] Frame 33
Say("Deugan", "susp", "You can have her! She's a *giiiirl*! Girls are headlice, I heard! They suck on your wallet and drain out all your money, that's what my dad says!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 34
Say("PC", "shok", "Really?!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 35
Say("Deugan", "grin", "Yeh, really! My dad told me so it must be true!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 36
Say("PC", "susp", "Now that we've beatened the dragon though, now what do we do?");
Symbol 2827 MovieClip [c_HeroBabble] Frame 37
_root.PCstats_1 = _root.CreatePCstats("mardek_child", {level:1, exp:0, hp:[120, 70], mp:[20, 20], weapon:"Stick", shield:"none", helmet:"none", armour:"Tunic", accessory:"none", accessory2:"none", learned:{}, reactions:{atk:{R65:null, R83:null, R68:null}, def:{R65:null, R83:null, R68:null}}, inventory:new Array(56)});
_root.PCstats_2 = null;
var p = 1;
while (p <= 4) {
var i = 0;
while (i < _root["PCstats_" + p].inventory.length) {
_root["PCstats_" + p].inventory[i] = null;
i++;
}
_root.calculateStats(_root["PCstats_" + p]);
_root.RestoreHPMP(_root["PCstats_" + p]);
p++;
}
_root.money = 10;
_root.lastDir = "s";
TRANS("heroes_den", 10, 6);
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 40
Say("Deugan", "norm", "It's getting late... I suppose we should head home. I bet our parents are worried!");
_root.plotVars.walkedIntoDL3 = 1;
Symbol 2827 MovieClip [c_HeroBabble] Frame 41
Say("PC", "grin", "Okay. Let's go back to Goznor!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 42
SET_SPEAKER("Deugan");
JOINPARTY();
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 45
Say("Deugan", "norm", "Well, I'd better get home myself... So bye for now, Mardek! See you tomorrow for some more heroic adventures!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 46
EXEUNT_AND_LEAVEPARTY("Deugan");
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 49
Say("Deugan", "norm", "Phew, what a weird thing that was that happened... I need to go home now, so, uh... Bye Mardek. I hope that nothing bad happens to you because of that thing!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 50
EXEUNT_AND_LEAVEPARTY("Deugan");
END();
Symbol 2827 MovieClip [c_HeroBabble] Frame 53
Say("Deugan", "grin", "Remember, Mardek, with our super-duper Hero Powers, we're practically invincible if we successfully use all our reactions well enough with the A, S or D keys when the ! appears when we attack or get attacked! Let's use this to our advantage!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 54
Say("Deugan", "blah", "(Apparently I have to mention this or else you'll probably not figure out that reaction commands exist at all.)");
Symbol 2827 MovieClip [c_HeroBabble] Frame 55
Say("PC", "susp", "...Huh?");
Symbol 2827 MovieClip [c_HeroBabble] Frame 56
Say("Deugan", "grin", "Let's just continue on our way, Mardek! Tally-ho!");
Symbol 2827 MovieClip [c_HeroBabble] Frame 57
END();
Symbol 2828 MovieClip [c_lilanea] Frame 1
if (_root.plotVars.ROHOPH != null) {
gotoAndStop ("time4");
} else if (_root.plotVars.startedProperly != null) {
gotoAndStop ("time3");
} else if (_root.plotVars.LILANEA == 1) {
gotoAndStop ("time2");
} else {
nextFrame();
}
Symbol 2828 MovieClip [c_lilanea] Frame 2
EN_ADD("People", "Lilanea");
Say("PC", "grin", "Well, mum, I'm back!");
Symbol 2828 MovieClip [c_lilanea] Frame 3
Say("Lilanea", "smile", "Oh, there you are, dear... How did your 'adventure' with Deugan go?");
Symbol 2828 MovieClip [c_lilanea] Frame 4
options = [{em:"grin", goto:"A1a", T:"It was great! We slew a princess and saved a dragon!"}, {em:"norm", goto:"A1b", T:"Well, it was okay."}, {em:"deep", goto:"A1c", T:"Well, I wish I could go on a REAL adventure..."}];
_root.conv.as.ShowOptions(options);
Symbol 2828 MovieClip [c_lilanea] Frame 6
Say("Lilanea", "smile", "You did? That sounds... unconventional. I mean, nice. Yes, that sounds nice, dear. I'm glad you had fun.");
Symbol 2828 MovieClip [c_lilanea] Frame 7
Say("Lilanea", "deep", "Sigh... You're growing up to be just like your father... Only he slew dragons and never really saved any princesses... Except me... He used to call me his 'Queen', you know? I do wonder where he is now though...");
Symbol 2828 MovieClip [c_lilanea] Frame 8
gotoAndStop ("B");
Symbol 2828 MovieClip [c_lilanea] Frame 10
Say("Lilanea", "smile", "That sounds nice, dear. I'm glad you had fun.");
Symbol 2828 MovieClip [c_lilanea] Frame 11
Say("Lilanea", "deep", "Sigh... You're growing up to be just like your father... Always 'adventuring'... You have the same adventurous, heroic spirit. Sigh... I wonder where he is now...");
Symbol 2828 MovieClip [c_lilanea] Frame 12
gotoAndStop ("B");
Symbol 2828 MovieClip [c_lilanea] Frame 14
Say("Lilanea", "smile", "Hmhm, you certainly do have your father's spirit for true adventure! He was never satisfied with just the inane little fetch quests, no... He always wanted the big, epic, dragon-slaying quests...");
Symbol 2828 MovieClip [c_lilanea] Frame 15
Say("Lilanea", "deep", "Sigh... You're growing up to be just like your father... You have the same adventurous, heroic spirit. Sigh... I wonder where he is now...");
Symbol 2828 MovieClip [c_lilanea] Frame 16
options = [{em:"grin", goto:"B1a", T:"Well, I'm sure he'll get back soon!"}, {em:"deep", goto:"B1b", T:"When will dad get back...?"}];
_root.conv.as.ShowOptions(options);
Symbol 2828 MovieClip [c_lilanea] Frame 18
Say("Lilanea", "smile", "I hope you're right, dear... It's been so long... But I am sure he'll be back eventually; I can *sense* it! Can you sense it too, dear?");
Symbol 2828 MovieClip [c_lilanea] Frame 19
gotoAndStop ("B2");
Symbol 2828 MovieClip [c_lilanea] Frame 21
Say("Lilanea", "smile", "I don't know, dear... He's been gone a long time. But I'm so sure he'll be back; I can *sense* it! Can you sense it too, dear?");
Symbol 2828 MovieClip [c_lilanea] Frame 22
Say("PC", "norm", "Well, I can sort of feel... that he's not dead? Like he's looking over me but he's not dead?");
Symbol 2828 MovieClip [c_lilanea] Frame 23
Say("Lilanea", "deep", "Yes, that's what I feel too... It must be the spiritual link that we all share, as a family. Because those exist!");
Symbol 2828 MovieClip [c_lilanea] Frame 24
_root.playMusic("Enki");
_root.conv.pic.FadeIn("enki1");
EN_ADD("People", "Enki");
Say("Lilanea", "norm", "Ah... Your father... He was a great man. 'Enki The Wanderer', he used to be called, before he met me and we settled down and had you.");
Symbol 2828 MovieClip [c_lilanea] Frame 25
Say("Lilanea", "smile", "He was, as I've told you many a time before now, an adventurer of great skill and renown, revered throughout the lands. Oh, I fancied him so much before I even met him!");
Symbol 2828 MovieClip [c_lilanea] Frame 26
Say("Lilanea", "norm", "He was Light, so he thought about others much more than himself. All he did was for people he usually didn't even know from Adam...");
Symbol 2828 MovieClip [c_lilanea] Frame 27
Say("Lilanea", "susp", "He was kind, honest... And yet... Mysterious. Did you know that he never told me about his past?");
Symbol 2828 MovieClip [c_lilanea] Frame 28
Say("PC", "smile", "Well, you have told me like a million times, mum.");
Symbol 2828 MovieClip [c_lilanea] Frame 29
Say("Lilanea", "norm", "Well I'll tell you again! He never did tell me about his mystery-shrouded past... But though I never knew about it, I never for one moment felt suspicious about him, like he might've been something bad once. He seemed to radiate this... this *feeling* that he was always a good man, and that he had his reasons for hiding things like he did.");
Symbol 2828 MovieClip [c_lilanea] Frame 30
Say("Lilanea", "deep", "Sigh... I miss him so much...");
Symbol 2828 MovieClip [c_lilanea] Frame 31
Say("PC", "deep", "Well, I do too mum... I wish he'd get back soon.");
Symbol 2828 MovieClip [c_lilanea] Frame 32
Say("Lilanea", "smile", "Don't worry, dear. He'll come back one day. One day...");
Symbol 2828 MovieClip [c_lilanea] Frame 33
_root.conv.pic.fade = -1;
_root.playMusic("none");
Say("Lilanea", "smile", "But it's getting pretty late now, Mardek! You should go to bed.");
Symbol 2828 MovieClip [c_lilanea] Frame 34
Say("Lilanea", "smile", "Sweet dreams, dear. Sleep tight! Don't let the bedbugs randomly battle you during the night!");
Symbol 2828 MovieClip [c_lilanea] Frame 35
Say("PC", "grin", "Well, night mum!");
Symbol 2828 MovieClip [c_lilanea] Frame 36
_root.plotVars.LILANEA = 1;
END();
Symbol 2828 MovieClip [c_lilanea] Frame 39
Say("Lilanea", "smile", "Sweet dreams, dear.");
Symbol 2828 MovieClip [c_lilanea] Frame 40
END();
Symbol 2828 MovieClip [c_lilanea] Frame 45
Say("Lilanea", "norm", "Oh, good morning dear. You and Deugan are going out on another adventure again, right? Have fun with that, but mind you don't hurt yourselves!");
Symbol 2828 MovieClip [c_lilanea] Frame 46
END();
Symbol 2828 MovieClip [c_lilanea] Frame 49
Say("", "norm", "Hello again, dear. You're back a bit late today...");
Symbol 2828 MovieClip [c_lilanea] Frame 50
Say("PC", "susp", "I am...? Well, it feels like I've barely been gone any time at all!");
Symbol 2828 MovieClip [c_lilanea] Frame 51
Say("", "norm", "Oh well. Time does fly when you're having fun.");
Symbol 2828 MovieClip [c_lilanea] Frame 52
Say("", "norm", "But you should go to bed, Mardek! It IS pretty late. So nighty night, dear, and sweet dreams!");
Symbol 2828 MovieClip [c_lilanea] Frame 53
END();
Symbol 2829 MovieClip [c_GdM] Frame 1
nextFrame();
Symbol 2829 MovieClip [c_GdM] Frame 2
Say("Balthazar", "blah", "Rohoph's escaped, you know. He flew away in one of the gallopers, myes. YALORT knows where he went.");
Symbol 2829 MovieClip [c_GdM] Frame 3
Say("Gaspar", "angr", "HE NEEDS TO SANGUINARY WELL BE BURNED!! LET'S BURN HIM!!! BURN HIS HEMIC FACE OFF AND ALSO HIS PRATTIN' ROBE! HIS WHITE ROBE!! HIS DETRITAL WHITEY ROBE ROBE!! IT MUST BURN!! BUUURRRNNN!!!");
Symbol 2829 MovieClip [c_GdM] Frame 4
Say("Melchior", "dreamy", "I like white. I find it goes well with yellow, but only if you want it to. If you don't believe it does, then it doesn't. Just like bad smells. You only think they're bad if you're told they're bad. I don't like bad smells.");
Symbol 2829 MovieClip [c_GdM] Frame 5
Say("Qualna", "susp", "Ignoring how these caterpillars uttered what they're trying to say, I do agree; Rohoph needs to be perish'd. He cannot be left to roam loose with the knowledge he possesses! If he rallies enough of a resistance - which it seems he's trying to do - then, why sirs, we're well and truly buggered twice and whenceways till sundown, sunup and then some!");
Symbol 2829 MovieClip [c_GdM] Frame 6
Say("Moric", "deep", "Yes, kill him. Kill the traitor. Let his blood run free, his flesh turn cold, his motor functions degrade and cease and his entire being become uncertain, his body a shell, his soul a wanderer. Yeeess, ooohh, I do so want to see his flesh cold and crawling with a million maggots, slowly chewing, chewing, chewing on the rot, yeeess, yeeeeesss...");
Symbol 2829 MovieClip [c_GdM] Frame 7
Say("Gaspar", "angr", "MORIC, YOU'RE A SMELTIN' CREEPY MAN!! AND YET I THINK I TOO MIGHT MONGIN' WELL DELIGHT IN THE SIGHT OF THE FRIGHT OF THE WHITE BLIGHT AS I FIGHT AND SMITE HIM FROM THIS PLANE!! BLOODYIN'.");
Symbol 2829 MovieClip [c_GdM] Frame 8
Say("Qualna", "grin", "Why Gaspar, that's awfully poetic for you! I'm amazed!");
Symbol 2829 MovieClip [c_GdM] Frame 9
Say("Gaspar", "glare", "I'LL HARRY WELL SHOW *YOU* A POETIC MAZE!! I'LL TRAP YOU IN IT AND SCREAM TOFFIN' BLOOD-CURDLIN' SCREAMS AS YOU TRY IN VAIN TO EVADE THE PAIN YOU'D BE SURE TO GAIN!! YOU'D SLOWLY GO INSANE, AND I'D JUST LAUGH!! LAUGH!!! MOGGIN' LAUGH TRIPIN' HARD!!");
Symbol 2829 MovieClip [c_GdM] Frame 10
Say("Balthazar", "susp", "What ARE you talking about? Shut up anyway, it's irrelevant. But we DO need to address the Rohoph problem.");
Symbol 2829 MovieClip [c_GdM] Frame 11
Say("Balthazar", "norm", "Master, what think you? We should do away with him, myes? But how do we go about it?");
Symbol 2829 MovieClip [c_GdM] Frame 12
Say("Anu", "glare", "Yes, underlings. If the deserter, the traitor, Rohoph, is left to run free, though he alone could pose no serious threat to us, he could gain the alliance of others, which he's frustratingly good at doing.");
Symbol 2829 MovieClip [c_GdM] Frame 13
Say("Anu", "norm", "We have to do away with him. And quickly. He's the only one who knows, so with him gone we'll be safe as long as we make nothing clear until it's too late for them.");
Symbol 2829 MovieClip [c_GdM] Frame 14
Say("Balthazar", "blah", "One of us should go to stop him. But who? Any volunteers?");
Symbol 2829 MovieClip [c_GdM] Frame 15
Say("Melchior", "dreamy", "I like volunteers. They taste like cherries, but only if that's what you believe. If you prefer bananas, love and luck always taste a bit bananay. 'Bananay'. That's a weird word to say. 'Bananay'. 'Bananananany'.");
Symbol 2829 MovieClip [c_GdM] Frame 16
Say("Gaspar", "angr", "I'M NOT CHARLIE WELL GOIN', 'CAUSE I BOGGIN' WELL CAN'T BE ARSED!!");
Symbol 2829 MovieClip [c_GdM] Frame 17
Say("Moric", "deep", "I'll go. Yeeess, if Rohoph is going to die, I would derive much perverse satisfaction from seeing the fear on his cyclopic face before he meets the Evereaper... Yeeeess, I'd drink up his shock, his horror, and it would FUEL me! It's what I live my life for, to see others end theirs!");
Symbol 2829 MovieClip [c_GdM] Frame 18
Say("Moric", "grin", "I can't have enough ends. So I'll take my chances to see this one. I hope it's slow and painful; the elation I get from such kills is unmatched by anything, yeeeess... Just thinking about it makes me... oohhh...");
Symbol 2829 MovieClip [c_GdM] Frame 19
Say("Anu", "blah", "Yes. You're creepy. I can't say we'll miss you while you're gone, so it'd be best if you did go. We all win that way.");
Symbol 2829 MovieClip [c_GdM] Frame 20
Say("Anu", "norm", "Take a battleship and follow Rohoph's trail. It should be easy enough to detect where he went and to deal with him. Now go.");
Symbol 2829 MovieClip [c_GdM] Frame 21
Say("Moric", "norm", "Yeeess, my Master...");
Symbol 2829 MovieClip [c_GdM] Frame 22
Say("Anu", "glare", "When Rohoph's gone and dealt with, there'll be nothing to stop us... No... Soon, THE GALAXY WILL BE OURS!!! MWAHAHAHAHAH!!!!");
Symbol 2829 MovieClip [c_GdM] Frame 23
Say("Melchior", "susp", "Don't you mean *ours*, sir? We ARE working on this together. There's not just you.");
Symbol 2829 MovieClip [c_GdM] Frame 24
Say("Anu", "blah", "Yes, that's what I SAID. Weren't you listening?");
Symbol 2829 MovieClip [c_GdM] Frame 25
Say("Melchior", "grin", "What? Eh? No, not at all. I had a nice pretty tune in my head. I was listening to that. It went like 'naaaa nah nah na-na-na naaah naaah naah naah nah nah nuuuuh na naahhh..'");
Symbol 2829 MovieClip [c_GdM] Frame 26
Say("Anu", "blah", "Sigh...");
Symbol 2829 MovieClip [c_GdM] Frame 27
_root.nextArea = "endch1";
_root.spawnLoc = [0, 1];
_root.fadeTrans.ctrl.active = true;
_root.fadeTrans.ctrl.slowMode = true;
END();
Symbol 2830 MovieClip [c_jacques] Frame 1
nextFrame();
Symbol 2830 MovieClip [c_jacques] Frame 2
Say("", "smile", "Ah, Mardek and Deugan! 'Ow nice it iz to see you zis day! And you come at good timing, too, as I 'ave news for you concerning your faazer!");
Symbol 2830 MovieClip [c_jacques] Frame 3
Say("PC", "shok", "You know something about my dad?!?");
Symbol 2830 MovieClip [c_jacques] Frame 4
Say("", "deep", "Aah, I do not know much, but I 'eard from one of zee soldiers zat he was sighted in Nole'Oth... Zee frozen Northern Wastes.");
Symbol 2830 MovieClip [c_jacques] Frame 5
Say("", "grin", "Zis iz good! It means 'e still lives! 'E seems to be on some kind of epic zhournee, a quest, and knowing 'im, 'e should 'ave it finished soon and will surely be back in no time!");
Symbol 2830 MovieClip [c_jacques] Frame 6
Say("PC", "grin", "Well, I hope so!");
Symbol 2830 MovieClip [c_jacques] Frame 7
Say("", "grin", "We all can but 'ope... Enki was a great man, though... 'E will be back soon, I am sure of zis! And when 'e returns, I am sure 'e will 'ave many gifts to give and tales to tell!");
Symbol 2830 MovieClip [c_jacques] Frame 8
END();
Symbol 2831 MovieClip [c_polly] Frame 1
nextFrame();
Symbol 2831 MovieClip [c_polly] Frame 2
Say("", "smile", "Eee, 'ello there, dear! Dears! An 'ow're you, Mardek?");
Symbol 2831 MovieClip [c_polly] Frame 3
Say("PC", "norm", "Well, I'm alright, miss Deugan's mum!");
Symbol 2831 MovieClip [c_polly] Frame 4
Say("", "smile", "You two're goin' out on an adventure today, are you? Just watch yerselves. I don't want you gettin' 'urt!");
Symbol 2831 MovieClip [c_polly] Frame 5
END();
Say("Deugan", "angr", "Muuum!");
Symbol 2831 MovieClip [c_polly] Frame 6
Say("PC", "susp", "What's a photo?");
Symbol 2831 MovieClip [c_polly] Frame 7
Say("", "smile", "Anyway, 'adn't you two best be off now? You'll miss the whole day if you dilly-dally much longer!");
Symbol 2831 MovieClip [c_polly] Frame 8
END();
Symbol 2832 MovieClip [c_derek] Frame 1
nextFrame();
Symbol 2832 MovieClip [c_derek] Frame 2
Say("", "smile", "Hello there, son. Out on an adventure again today, are you?");
Symbol 2832 MovieClip [c_derek] Frame 3
Say("Deugan", "grin", "We sure are, dad! I saw this star fall from the sky, so me and Mardek are going to look for it!");
Symbol 2832 MovieClip [c_derek] Frame 4
Say("", "norm", "A star, you say? That's the thing that other people saw too, they say... Everyone's talking about it.");
Symbol 2832 MovieClip [c_derek] Frame 5
Say("", "grin", "If you find it, boys, you'll have to tell me all about it!");
Symbol 2832 MovieClip [c_derek] Frame 6
Say("", "norm", "As it is though, I can't come and see for myself; I have a shop to run! And speaking of which, I have customers to probably attend to! So shoo, you two!");
Symbol 2832 MovieClip [c_derek] Frame 7
Say("Deugan", "blah", "But dad, you barely EVER have customers. Nobody in this little tiny village wants to buy weapons! Except us, but we're too young!");
Symbol 2832 MovieClip [c_derek] Frame 8
Say("", "grin", "But someone COULD come in at any moment! A weary and battle-hardened Adventurer, just stopping by on one of his mighty quests! And he'll want good weapons, and fast! And I'll be here to supply them! And he'll tell his friends! And business will be booming in no time!");
Symbol 2832 MovieClip [c_derek] Frame 9
Say("Deugan", "blah", "Yeh, he'll want GOOD weapons. And adventurers don't usually have many friends.");
Symbol 2832 MovieClip [c_derek] Frame 10
Say("", "grin", "Sure they do! They have those... wossmacallits... yes, they have those Celebrations following them around all the time! There's always joy and festivities following close behind them all the time, they say! And such festivities are always full of drunk people, and they'll buy ANYTHING!");
Symbol 2832 MovieClip [c_derek] Frame 11
Say("Deugan", "norm", "Sure, if you say so, dad. Now, me and Mardek have to go and, uh... go on an adventure. Yeh. So I'll be back later!");
Symbol 2832 MovieClip [c_derek] Frame 12
Say("", "smile", "Okay boys, have fun!");
Symbol 2832 MovieClip [c_derek] Frame 13
END();
Symbol 2833 MovieClip [c_inventor] Frame 1
if (_root.plotVars.FUMERATS === 2) {
gotoAndStop ("time3");
} else if (_root.plotVars.FUMERATS === 1) {
gotoAndStop ("time2");
} else {
nextFrame();
}
Symbol 2833 MovieClip [c_inventor] Frame 2
Say("", "smile", "Oh, h-h-hello there, Mardek and Deugan. Off on another adventure again t-t-today, are you, eh?");
Symbol 2833 MovieClip [c_inventor] Frame 3
Say("Deugan", "grin", "Of course!");
Symbol 2833 MovieClip [c_inventor] Frame 4
Say("", "smile", "Oh, excellent! Excellent. I-I-I actually another adventure for you again today! I-i-it won't take long; it's a sort of 'side-quest' thing. A-a-are you interested?");
Symbol 2833 MovieClip [c_inventor] Frame 5
options = [{em:"grin", goto:"A1a", T:"Well, yes!"}, {em:"norm", goto:"A1b", T:"Sorry, but we're busy."}];
_root.conv.as.ShowOptions(options);
Symbol 2833 MovieClip [c_inventor] Frame 7
Say("", "O-o-oh. M-m-maybe some other time, then.");
Symbol 2833 MovieClip [c_inventor] Frame 8
END();
Symbol 2833 MovieClip [c_inventor] Frame 10
Say("", "grin", "B-b-brilliant! I knew I could count on you two!");
Symbol 2833 MovieClip [c_inventor] Frame 11
Say("", "norm", "I-I-I'm trying to make a new invention, y'see, but I-I-I don't have all the parts I need. I need some more LeadPipes - a-a-about five should do - but the best place to g-g-get those is in the sewers, from the fumerats.");
Symbol 2833 MovieClip [c_inventor] Frame 12
Say("", "norm", "Y-y-you know I'm incompetent when it comes to combat of a-a-any kind, and *I* know that you relish it and have f-f-fought fumerats before! So I thought this might be a g-g-good chance for you to fight things for an actual reason!");
Symbol 2833 MovieClip [c_inventor] Frame 13
Say("", "norm", "Of c-c-course, I'll also give you a reward for your efforts! So what do you say? A-a-are you interested?");
Symbol 2833 MovieClip [c_inventor] Frame 14
options = [{em:"grin", goto:"A2a", T:"Well, still yes!"}, {em:"susp", goto:"A2b", T:"What do you need the parts for?"}, {em:"norm", goto:"A1b", T:"Sorry, but we're busy."}];
_root.conv.as.ShowOptions(options);
Symbol 2833 MovieClip [c_inventor] Frame 16
Say("", "grin", "Ah, i-i-interested in my inventions as always, I see! This time I'm w-w-working on something that I think will r-r-revolutionise the way we all live! I-I-I'm making a *mechanical man*... I-i-it's like a man, but made out of metal and cogs. It can do a-a-anything that a normal man can - like physical labour and (ugh) combat - but n-n-never tires or disobeys.");
Symbol 2833 MovieClip [c_inventor] Frame 17
Say("", "smile", "I can s-s-see them being used to make all of our lives easier b-b-by doing all the labour for us!");
Symbol 2833 MovieClip [c_inventor] Frame 18
Say("PC", "grin", "Wow! Well, it sounds amazing! I can't wait until it's made!");
Symbol 2833 MovieClip [c_inventor] Frame 19
Say("", "grin", "Nor can I, b-b-but of course! B-b-but I need your help! S-s-so will you retrieve these LeadPipes for me?");
Symbol 2833 MovieClip [c_inventor] Frame 20
options = [{em:"grin", goto:"A2a", T:"Well, of course!"}, {em:"norm", goto:"A1b", T:"Sorry, but we're busy."}];
_root.conv.as.ShowOptions(options);
Symbol 2833 MovieClip [c_inventor] Frame 22
GIVEQUEST("FUMERATS");
Say("", "grin", "M-m-marvellous! You j-j-just have to go into the sewers and kill a few fumerats. They should drop LeadPipes. C-c-come back here when you've got five of them!");
Symbol 2833 MovieClip [c_inventor] Frame 23
SETVAR("FUMERATS", 1);
END();
Symbol 2833 MovieClip [c_inventor] Frame 25
Say("", "susp", "D-d-did you find the five LeadPipes yet?");
Symbol 2833 MovieClip [c_inventor] Frame 26
options = [];
if (_root.hasItem("LeadPipe") >= 5) {
options.push({em:"grin", goto:"B1a", T:"Well, yes!"});
} else {
options.push({em:"deep", goto:"B1b", T:"We don't have five yet..."});
}
options.push({em:"norm", goto:"B1b", T:"Not yet."});
_root.conv.as.ShowOptions(options);
Symbol 2833 MovieClip [c_inventor] Frame 28
Say("", "smile", "There's n-n-no hurry, lads, so just have fun with it!");
Symbol 2833 MovieClip [c_inventor] Frame 29
END();
Symbol 2833 MovieClip [c_inventor] Frame 31
Say("", "grin", "G-g-great! I knew I could c-c-count on you!");
_root.dropItem("LeadPipe", 0, null, 5);
DONEQUEST("FUMERATS");
Symbol 2833 MovieClip [c_inventor] Frame 32
Say("", "deep", "N-n-now, your reward... What c-c-can I give you...?");
Symbol 2833 MovieClip [c_inventor] Frame 33
Say("", "grin", "Ah-ha! I know! You can h-h-have this Cog Necklace! It's a little necklace I magically ench-ch-chanted to protect from Sleep. It'd be useful in the w-w-woods, with all those pesky fungoblins around!");
GIVEITEM("Cog Necklace", 1);
Symbol 2833 MovieClip [c_inventor] Frame 34
Say("PC", "grin", "Thanks!");
Symbol 2833 MovieClip [c_inventor] Frame 35
Say("", "smile", "N-n-now, shouldn't you boys be getting back to your big adventure? I've held you up enough for t-t-today!");
Symbol 2833 MovieClip [c_inventor] Frame 36
SETVAR("FUMERATS", 2);
END();
Symbol 2833 MovieClip [c_inventor] Frame 39
Say("", "norm", "H-h-hello again, boys. I've got nothing else for you to d-d-do today, I'm afraid. Maybe come back later though and I can show you my n-n-new inv-v-vention?");
Symbol 2833 MovieClip [c_inventor] Frame 40
END();
Symbol 2834 MovieClip [c_mugbert] Frame 1
if (_root.plotVars.DEFEATED_MUGBERT != null) {
gotoAndStop ("time2");
} else {
nextFrame();
}
Symbol 2834 MovieClip [c_mugbert] Frame 2
Say("Mugbert", "mugb", "Oy! 'Oos there?");
EN_ADD("People", "Mugbert");
Symbol 2834 MovieClip [c_mugbert] Frame 3
Say("Mugbert", "mugb", "Ey, it's... uuuuuuhhhhh... you! You lickle childerns frum t' village! I beated you up before!");
Symbol 2834 MovieClip [c_mugbert] Frame 4
Say("PC", "angr", "Well, shut up!");
Symbol 2834 MovieClip [c_mugbert] Frame 5
Say("Deugan", "angr", "Mugbert? You big bully! What are you doing here?");
Symbol 2834 MovieClip [c_mugbert] Frame 6
Say("Mugbert", "mugb", "That i'n't none o' yer business!");
Symbol 2834 MovieClip [c_mugbert] Frame 7
Say("PC", "angr", "Well, I bet you're here for the Fallen Star!");
Symbol 2834 MovieClip [c_mugbert] Frame 8
Say("Mugbert", "mugb", "*Duh*. An' it's mine! All mine! I got 'ere first, so that lee-gully meks it mine!");
Symbol 2834 MovieClip [c_mugbert] Frame 9
Say("Deugan", "angr", "No! Your hands are the wrong hands! Uh... something like this fallen star can't be in hands like yours! Wrong hands! You'd probably use it for EVIL or something!");
Symbol 2834 MovieClip [c_mugbert] Frame 10
Say("Mugbert", "mugb", "Yeh, so? Wot're YOU gunna do about it, eh? Eh? Beat me up, eh? Hurhurhur. I'd like to see you try!");
Symbol 2834 MovieClip [c_mugbert] Frame 11
Say("Deugan", "angr", "Alright then! C'mon, Mardek! Let's defeat this evil villain and save the world from his evil!");
Symbol 2834 MovieClip [c_mugbert] Frame 12
Say("PC", "grin", "I'll kick his evil so hard it'll fall down and prob'ly die next week!");
Symbol 2834 MovieClip [c_mugbert] Frame 13
BATTLE([["Mugbert", null, null, null], ["Mugbert", null, null, null], [3, null, null, null], "SOLO"], "BossBattle", true);
_root.plotVars.DEFEATED_MUGBERT = true;
END();
Symbol 2834 MovieClip [c_mugbert] Frame 15
Say("Mugbert", "cry", "Waaah! You idiots are so MEAN! I'm gunna tell my dad on you! I'm gunna get you done! Waaah!");
Symbol 2834 MovieClip [c_mugbert] Frame 16
EXEUNT();
END();
Symbol 2835 MovieClip [c_shaman] Frame 1
nextFrame();
Symbol 2835 MovieClip [c_shaman] Frame 2
Say("", "smile", "Greetings, children. Out playing in the woods again, I see... Mind yourselves, children; the beasts in the woods are not particularly dangerous, but they can get aggressive. There's a Healing Crystal there if you are wounded.");
Symbol 2835 MovieClip [c_shaman] Frame 3
END();
Symbol 2836 MovieClip [c_Ypriest] Frame 1
nextFrame();
Symbol 2836 MovieClip [c_Ypriest] Frame 2
Say("", "smile", "Hello there, lads. May YALORT not smite you this day. ...Can I be of particular assistance?");
Symbol 2836 MovieClip [c_Ypriest] Frame 3
options = [{em:"susp", goto:"A1a", T:"Well, I need healing..."}, {em:"susp", goto:"A1b", T:"Who's YALORT?"}];
_root.conv.as.ShowOptions(options);
Symbol 2836 MovieClip [c_Ypriest] Frame 5
HEAL();
Say("", "smile", "By the Powers of YALORT, your wounds are gone. Fare thee well, children!");
Symbol 2836 MovieClip [c_Ypriest] Frame 6
END();
Symbol 2836 MovieClip [c_Ypriest] Frame 8
Say("", "susp", "Surely you jest, children? EVERYONE knows that YALORT is the One True Deity and our eternal benefactor? He is the Eternal Dragon who created the world, and grants priests such as myself magical power! You should know this, children!");
Symbol 2836 MovieClip [c_Ypriest] Frame 9
Say("PC", "deep", "Well, I was just being silly...");
Symbol 2836 MovieClip [c_Ypriest] Frame 10
Say("", "norm", "Yes, I thought as much. But no worry! A sense of humour is a good thing!");
Symbol 2836 MovieClip [c_Ypriest] Frame 11
END();
Symbol 2837 MovieClip [c_blabber] Frame 1
nextFrame();
Symbol 2837 MovieClip [c_blabber] Frame 2
Say("", "grin", "Hey babeh. Nice boobs. Can I touch 'em?");
Symbol 2837 MovieClip [c_blabber] Frame 3
Say("Woman", "grin", "Oh, you're such a charmer!");
Symbol 2837 MovieClip [c_blabber] Frame 4
END();
Symbol 2838 MovieClip [c__blank] Frame 1
Symbol 2838 MovieClip [c__blank] Frame 2
if (talk[0]()) {
nextFrame();
} else {
Say("", talk[0][0], talk[0][1]);
}
stop();
Symbol 2838 MovieClip [c__blank] Frame 3
talk.splice(0, 1);
if (talk.length > 0) {
prevFrame();
} else {
_root.conv.as.EndDialogue();
}
Symbol 2869 MovieClip [B_AbilityThing2] Frame 1
stop();
Symbol 2871 MovieClip [move_circle] Frame 1
_alpha = 0;
fading = 0;
onEnterFrame = function () {
if (_parent.target_shape._visible || ((_root.Acting.type == "p") && (_root.MENU._currentframe != 1))) {
_visible = false;
return(undefined);
}
_visible = true;
if (fading != 0) {
_alpha = (_alpha + (10 * fading));
if ((fading == 1) && (_alpha >= 100)) {
_alpha = 100;
fading = 0;
}
if ((fading == -1) && (_alpha <= 0)) {
_alpha = 0;
fading = 0;
}
}
};
L = new Object();
L.onMouseDown = function () {
if (((!_root._S.move_circle.hitTest(_root._xmouse, _root._ymouse, true)) || (!_root._S.move_circle._visible)) || (_root.MENU.hitTest(_root._xmouse, _root._ymouse, true))) {
return(undefined);
}
var _local4 = 0;
while (_local4 < 5) {
var _local5 = ["e", "p"];
var _local3 = 0;
while (_local3 < 2) {
if (_root._S[_local5[_local3] + _local4] == _root.Acting) {
} else {
d = 1;
while (d <= 6) {
if (_root._S[_local5[_local3] + _local4].shd["d" + d].hitTest(_parent.mc_circle)) {
_root.playSFX("error");
return(undefined);
}
d++;
}
}
_local3++;
}
_local4++;
}
if ((_root.Acting.type == "p") && (_root.PRESSED == _root.Acting)) {
_parent.X_TARGET._x = _parent._xmouse;
_parent.X_TARGET._y = _parent._ymouse;
_parent.X_TARGET._visible = true;
_root.Acting.MOVE_Y = (_root.Acting.MOVE_X = false);
}
};
Mouse.addListener(L);
Symbol 2872 MovieClip [elem_glyph] Frame 1
if (f == null) {
f = -1;
}
onEnterFrame = function () {
if (fading != null) {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.removeMovieClip();
}
return(undefined);
}
_alpha = (_alpha + (f * 10));
if (((f == 1) && (_alpha >= 100)) || ((f == -1) && (_alpha <= 40))) {
f = f * -1;
}
};
Symbol 2892 MovieClip [s_soul] Frame 9
gotoAndPlay ("glow");
Symbol 2892 MovieClip [s_soul] Frame 35
stop();
this.removeMovieClip();
Symbol 2922 MovieClip [B_AbilityThing] Frame 1
stop();
Symbol 2933 MovieClip Frame 1
function Setup() {
gotoAndStop (1);
_height = (_width * 0.5);
gotoAndPlay (2);
G.gotoAndStop(_root.TECH_USING.elem);
G2.gotoAndStop(_root.TECH_USING.elem);
}
_alpha = 0;
onEnterFrame = function () {
if (fading != 0) {
_alpha = (_alpha + (20 * fading));
if (((fading == 1) && (_alpha > 100)) || ((fading == -1) && (_alpha <= 0))) {
fading = 0;
}
}
};
Symbol 2933 MovieClip Frame 30
gotoAndPlay (2);
Symbol 2943 MovieClip Frame 1
function GoTo() {
this.gotoAndStop(_parent._parent.stats.weapon + (_root.OPTIONS.lineless ? "_LL" : ""));
}
GoTo();
onEnterFrame = GoTo;
Symbol 2960 MovieClip Frame 1
function GoTo() {
this.gotoAndStop(_parent._parent.stats.shield + (_root.OPTIONS.lineless ? "_LL" : ""));
}
GoTo();
onEnterFrame = GoTo;
Symbol 2963 MovieClip Frame 1
stop();
Symbol 2973 MovieClip Frame 1
var e = _root.GetItemInfo(_root[_root.Acting].stats.weapon).elem;
gotoAndStop((_root.phySpell ? (_root.TECH_USING.elem) : (((e != null) ? (e) : 1))));
Symbol 2977 MovieClip Frame 35
_parent.Animate("idle");
Symbol 2977 MovieClip Frame 48
_parent.ReactionChance();
Symbol 2977 MovieClip Frame 51
_parent.DoAttack();
Symbol 2977 MovieClip Frame 64
_parent.EndAttack();
_parent.Animate("idle");
Symbol 2977 MovieClip Frame 70
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 2977 MovieClip Frame 76
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 2977 MovieClip Frame 85
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 2977 MovieClip Frame 90
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 2977 MovieClip Frame 108
stop();
dead = true;
Symbol 2977 MovieClip Frame 123
_parent.Animate((_parent.walking ? "walk" : "idle"));
Symbol 2977 MovieClip Frame 150
if (_parent.CASTING) {
_parent.Animate("c2");
}
Symbol 2977 MovieClip Frame 164
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 2977 MovieClip Frame 185
stop();
Symbol 2977 MovieClip Frame 195
_parent.Animate("idle");
Symbol 2987 MovieClip Frame 1
mute = "...";
if (((substring(_parent.ID, 1, 1)) == "e") && (!scaled)) {
_xscale = (_xscale * -1);
scaled = true;
}
onEnterFrame = function () {
var _local3 = _parent.stats.status;
this.gotoAndStop((((_local3[0] == null) || (_local3[0] == 0)) ? 1 : (_local3[0])));
if (_local3[0] == "SIL") {
mute = ((mute == "...") ? "" : (((mute == "") ? "." : (((mute == ".") ? ".." : "...")))));
}
};
stop();
Instance of Symbol 526 MovieClip [emitter] "psnBubbles" in Symbol 2987 MovieClip Frame 2
onClipEvent (load) {
type = 8;
pps = 0.4;
Hs = 6;
Vs = 6;
fade = 7;
mass = -6;
spin = 5;
size = 3;
shrink = 1.1;
colour = 8846435 /* 0x86FC63 */;
alpha = 49;
sizevar = 1;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "questions" in Symbol 2987 MovieClip Frame 3
onClipEvent (load) {
type = 19;
pps = 0.4;
Hs = 6;
Vs = 6;
fade = 15;
mass = -6;
spin = 1;
size = 3;
shrink = 1.1;
colour = [16777215, 16772812, 16777198];
alpha = 100;
sizevar = 1;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "questions" in Symbol 2987 MovieClip Frame 4
onClipEvent (load) {
type = 3;
pps = 0.4;
Hs = 6;
Vs = 6;
fade = 15;
mass = -6;
spin = 1;
size = 5;
shrink = 1.1;
colour = 7432088 /* 0x716798 */;
alpha = 100;
sizevar = 1;
mode = "RADIAL";
}
Instance of Symbol 526 MovieClip [emitter] "zzz" in Symbol 2987 MovieClip Frame 5
onClipEvent (load) {
type = 31;
pps = 0.1;
Hs = 0.1;
Vs = 0.1;
fade = 5;
mass = -1;
spin = 0;
size = 5;
shrink = 0.99;
colour = 13421772 /* 0xCCCCCC */;
alpha = 100;
sizevar = 0;
}
Instance of Symbol 526 MovieClip [emitter] "darkfog" in Symbol 2987 MovieClip Frame 6
onClipEvent (load) {
type = 6;
pps = 0.4;
Hs = 4;
Vs = 4;
fade = 8;
mass = -6;
spin = 1;
size = 7;
shrink = 1.1;
colour = 0;
alpha = 60;
sizevar = 1;
mode = "RADIAL";
}
Instance of Symbol 524 MovieClip [empty] in Symbol 2987 MovieClip Frame 8
onClipEvent (enterFrame) {
_parent.mdl.stop();
}
Symbol 3001 MovieClip Frame 1
stop();
Symbol 3002 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3002 MovieClip Frame 51
_parent.DoAttack();
Symbol 3002 MovieClip Frame 64
_parent.EndAttack();
_parent.Animate("idle");
Symbol 3002 MovieClip Frame 70
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3002 MovieClip Frame 76
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3002 MovieClip Frame 85
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3002 MovieClip Frame 90
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3002 MovieClip Frame 108
stop();
dead = true;
Symbol 3002 MovieClip Frame 123
_parent.Animate((_parent.walking ? "walk" : "idle"));
Symbol 3002 MovieClip Frame 126
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
_root.playSFX("spellcharge");
Instance of Symbol 526 MovieClip [emitter] "blast3" in Symbol 3002 MovieClip Frame 133
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 20;
Vs = 40;
fade = 16;
mass = -2;
spin = 0;
size = 4;
shrink = 1.2;
colour = _root.TECH_USING.mscolour[0];
alpha = 90;
sizevar = 1;
timeout = 6;
}
Instance of Symbol 526 MovieClip [emitter] "blast2" in Symbol 3002 MovieClip Frame 133
onClipEvent (load) {
type = 28;
pps = 5;
Hs = 2;
Vs = 2;
fade = 16;
mass = -8;
spin = 0;
size = 14;
shrink = 1.2;
colour = _root.TECH_USING.mscolour[0];
alpha = 100;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 3002 MovieClip Frame 133
onClipEvent (load) {
type = 28;
pps = 5;
Hs = 2;
Vs = 2;
fade = 16;
mass = -8;
spin = 0;
size = 8;
shrink = 1.2;
colour = _root.TECH_USING.mscolour[1];
alpha = 100;
sizevar = 1;
timeout = 3;
}
Symbol 3002 MovieClip Frame 146
_parent.mcircle.fading = -1;
Symbol 3002 MovieClip Frame 150
_parent.Attack();
Symbol 3002 MovieClip Frame 164
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3002 MovieClip Frame 185
stop();
Symbol 3002 MovieClip Frame 195
_parent.Animate("idle");
Symbol 3006 MovieClip Frame 1
_visible = false;
stop();
Symbol 3011 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3015 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3019 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3023 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3026 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3029 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3033 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3040 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3040 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3040 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3040 MovieClip Frame 65
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3040 MovieClip Frame 71
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3040 MovieClip Frame 80
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3040 MovieClip Frame 85
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3040 MovieClip Frame 103
stop();
dead = true;
Symbol 3040 MovieClip Frame 121
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
_root.playSFX("spellcharge");
Instance of Symbol 526 MovieClip [emitter] "blast3" in Symbol 3040 MovieClip Frame 128
onClipEvent (load) {
type = 1;
pps = 5;
Hs = 20;
Vs = 40;
fade = 16;
mass = -2;
spin = 0;
size = 4;
shrink = 1.2;
colour = _root.TECH_USING.mscolour[0];
alpha = 90;
sizevar = 1;
timeout = 6;
}
Instance of Symbol 526 MovieClip [emitter] "blast2" in Symbol 3040 MovieClip Frame 128
onClipEvent (load) {
type = 28;
pps = 5;
Hs = 2;
Vs = 2;
fade = 16;
mass = -8;
spin = 0;
size = 14;
shrink = 1.2;
colour = _root.TECH_USING.mscolour[0];
alpha = 100;
sizevar = 1;
timeout = 3;
}
Instance of Symbol 526 MovieClip [emitter] "blast1" in Symbol 3040 MovieClip Frame 128
onClipEvent (load) {
type = 28;
pps = 5;
Hs = 2;
Vs = 2;
fade = 16;
mass = -8;
spin = 0;
size = 8;
shrink = 1.2;
colour = _root.TECH_USING.mscolour[1];
alpha = 100;
sizevar = 1;
timeout = 3;
}
Symbol 3040 MovieClip Frame 141
_parent.mcircle.fading = -1;
Symbol 3040 MovieClip Frame 145
_parent.Attack();
Symbol 3040 MovieClip Frame 159
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3040 MovieClip Frame 180
stop();
Symbol 3040 MovieClip Frame 190
_parent.Animate("idle");
Symbol 3040 MovieClip Frame 200
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3040 MovieClip Frame 214
_parent.ReactionChance();
Symbol 3040 MovieClip Frame 216
_root.CastSpell();
Symbol 3040 MovieClip Frame 219
_parent.mcircle.fading = -1;
Symbol 3040 MovieClip Frame 229
_parent.Animate("idle");
Symbol 3040 MovieClip Frame 247
_parent.TossItem();
Symbol 3040 MovieClip Frame 260
_parent.Animate("idle");
Symbol 3054 MovieClip Frame 1
stop();
Symbol 3059 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3059 MovieClip Frame 47
_parent.ReactionChance();
Symbol 3059 MovieClip Frame 51
_parent.DoAttack();
Symbol 3059 MovieClip Frame 64
_parent.EndAttack();
_parent.Animate("idle");
Symbol 3059 MovieClip Frame 70
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3059 MovieClip Frame 76
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3059 MovieClip Frame 85
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3059 MovieClip Frame 90
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3059 MovieClip Frame 108
stop();
dead = true;
Symbol 3059 MovieClip Frame 123
_parent.Animate((_parent.walking ? "walk" : "idle"));
Symbol 3059 MovieClip Frame 150
if (_parent.CASTING) {
_parent.Animate("c2");
}
Symbol 3059 MovieClip Frame 164
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3059 MovieClip Frame 185
stop();
Symbol 3059 MovieClip Frame 195
_parent.Animate("idle");
Symbol 3062 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3069 MovieClip Frame 1
function GoTo() {
this.gotoAndStop(_parent._parent.stats.weapon + (_root.OPTIONS.lineless ? "_LL" : ""));
}
GoTo();
onEnterFrame = GoTo;
Symbol 3072 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3075 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3078 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3081 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3084 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3087 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3091 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3094 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3104 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3104 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3104 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3104 MovieClip Frame 63
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3104 MovieClip Frame 69
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3104 MovieClip Frame 78
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3104 MovieClip Frame 86
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3104 MovieClip Frame 104
stop();
dead = true;
Symbol 3104 MovieClip Frame 108
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3104 MovieClip Frame 122
_parent.ReactionChance();
Symbol 3104 MovieClip Frame 124
_root.CastSpell();
Symbol 3104 MovieClip Frame 127
_parent.mcircle.fading = -1;
Symbol 3104 MovieClip Frame 137
_parent.Animate("idle");
Symbol 3104 MovieClip Frame 152
_parent.TossItem();
Symbol 3104 MovieClip Frame 165
_parent.Animate("idle");
Symbol 3107 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3111 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3115 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3118 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3121 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3124 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3128 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3142 MovieClip Frame 27
_parent.Animate("idle");
Symbol 3142 MovieClip Frame 37
_parent.ReactionChance();
Symbol 3142 MovieClip Frame 51
_parent.Animate("idle");
Symbol 3142 MovieClip Frame 56
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3142 MovieClip Frame 62
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3142 MovieClip Frame 71
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3142 MovieClip Frame 76
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3142 MovieClip Frame 94
stop();
dead = true;
Symbol 3142 MovieClip Frame 119
_root.CastSpell();
Symbol 3142 MovieClip Frame 128
_parent.Animate("idle");
Symbol 3142 MovieClip Frame 142
_parent.TossItem();
Symbol 3142 MovieClip Frame 155
_parent.Animate("idle");
Symbol 3142 MovieClip Frame 170
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3142 MovieClip Frame 186
_root.CastSpell();
Symbol 3142 MovieClip Frame 189
_parent.mcircle.fading = -1;
Symbol 3142 MovieClip Frame 199
_parent.Animate("idle");
Symbol 3143 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3147 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3150 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3153 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3156 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3159 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3162 MovieClip Frame 1
GotoAptFrame(this);
stop();
Symbol 3175 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3175 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3175 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3175 MovieClip Frame 65
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3175 MovieClip Frame 71
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3175 MovieClip Frame 80
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3175 MovieClip Frame 85
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3175 MovieClip Frame 103
stop();
dead = true;
Symbol 3175 MovieClip Frame 127
_root.CastSpell();
Symbol 3175 MovieClip Frame 136
_parent.Animate("idle");
Symbol 3175 MovieClip Frame 152
_parent.TossItem();
Symbol 3175 MovieClip Frame 165
_parent.Animate("idle");
Symbol 3175 MovieClip Frame 176
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
_root.playSFX("spellcharge");
Symbol 3175 MovieClip Frame 196
_parent.mcircle.fading = -1;
Symbol 3175 MovieClip Frame 200
_parent.Attack();
Symbol 3175 MovieClip Frame 205
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3175 MovieClip Frame 221
_root.CastSpell();
Symbol 3175 MovieClip Frame 224
_parent.mcircle.fading = -1;
Symbol 3175 MovieClip Frame 234
_parent.Animate("idle");
Symbol 3178 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3181 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3184 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3187 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3190 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3193 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3196 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3199 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3206 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3206 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3206 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3206 MovieClip Frame 63
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3206 MovieClip Frame 69
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3206 MovieClip Frame 78
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3206 MovieClip Frame 86
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3206 MovieClip Frame 104
stop();
dead = true;
Symbol 3206 MovieClip Frame 108
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3206 MovieClip Frame 124
_root.CastSpell();
Symbol 3206 MovieClip Frame 127
_parent.mcircle.fading = -1;
Symbol 3206 MovieClip Frame 137
_parent.Animate("idle");
Symbol 3209 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3213 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3216 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3226 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3226 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3226 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3226 MovieClip Frame 63
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3226 MovieClip Frame 69
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3226 MovieClip Frame 78
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3226 MovieClip Frame 86
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3226 MovieClip Frame 104
stop();
dead = true;
Symbol 3226 MovieClip Frame 108
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3226 MovieClip Frame 124
_root.CastSpell();
Symbol 3226 MovieClip Frame 127
_parent.mcircle.fading = -1;
Symbol 3226 MovieClip Frame 137
_parent.Animate("idle");
Symbol 3231 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3236 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3241 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3246 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3251 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3260 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3260 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3260 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3260 MovieClip Frame 63
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3260 MovieClip Frame 66
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3260 MovieClip Frame 74
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3260 MovieClip Frame 86
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3260 MovieClip Frame 104
stop();
dead = true;
Symbol 3260 MovieClip Frame 108
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3260 MovieClip Frame 124
_root.CastSpell();
Symbol 3260 MovieClip Frame 127
_parent.mcircle.fading = -1;
Symbol 3260 MovieClip Frame 137
_parent.Animate("idle");
Symbol 3265 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3268 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3271 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3273 MovieClip Frame 1
count = random(6);
onEnterFrame = function () {
count++;
if (count > 6) {
count = 0;
var _local3 = _parent._parent;
_local3.pd++;
var _local4 = "p" + _local3.pd;
_local3.attachMovie("fumerat_acridfog", _local4, _local3.pd);
_local3[_local4]._x = ((_parent._x + _x) + random(6)) - 3;
_local3[_local4]._y = ((_parent._y + _y) + random(6)) - 3;
_local3[_local4]._width = 5;
_local3[_local4]._height = 4;
_local3[_local4].onEnterFrame = function () {
this._width = this._width + 1;
this._height = this._height + 1;
this._y = this._y - 2;
this._alpha = this._alpha - 4;
if (this._alpha <= 1) {
this.removeMovieClip();
}
};
}
};
nextFrame();
Symbol 3282 MovieClip Frame 35
_parent.Animate("idle");
Symbol 3282 MovieClip Frame 45
_parent.ReactionChance();
Symbol 3282 MovieClip Frame 59
_parent.Animate("idle");
Symbol 3282 MovieClip Frame 63
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3282 MovieClip Frame 67
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3282 MovieClip Frame 74
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3282 MovieClip Frame 86
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3282 MovieClip Frame 104
stop();
dead = true;
Symbol 3282 MovieClip Frame 108
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3282 MovieClip Frame 124
_root.CastSpell();
Symbol 3282 MovieClip Frame 127
_parent.mcircle.fading = -1;
Symbol 3282 MovieClip Frame 137
_parent.Animate("idle");
Symbol 3286 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3290 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3294 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3298 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3302 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3306 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3310 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3314 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3318 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3322 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3326 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3330 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3333 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3337 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3341 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3345 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3353 MovieClip Frame 40
_parent.Animate("idle");
Symbol 3353 MovieClip Frame 50
_parent.ReactionChance();
Symbol 3353 MovieClip Frame 64
_parent.Animate("idle");
Symbol 3353 MovieClip Frame 68
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3353 MovieClip Frame 74
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3353 MovieClip Frame 83
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3353 MovieClip Frame 91
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3353 MovieClip Frame 109
stop();
dead = true;
Symbol 3353 MovieClip Frame 113
_root.playSFX("spellcharge");
_parent.mcircle.fading = 1;
_parent.mcircle.Setup();
Symbol 3353 MovieClip Frame 127
_parent.ReactionChance();
Symbol 3353 MovieClip Frame 129
_root.CastSpell();
Symbol 3353 MovieClip Frame 132
_parent.mcircle.fading = -1;
Symbol 3353 MovieClip Frame 142
_parent.Animate("idle");
Symbol 3356 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3359 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3362 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3365 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3368 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3371 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3374 MovieClip Frame 1
GotoAptFrame(this);
Symbol 3377 MovieClip Frame 1
function GoTo() {
this.gotoAndStop(_parent._parent.stats.weapon + (_root.OPTIONS.lineless ? "_LL" : ""));
}
GoTo();
onEnterFrame = GoTo;
Symbol 3384 MovieClip Frame 27
_parent.Animate("idle");
Symbol 3384 MovieClip Frame 37
_parent.ReactionChance();
Symbol 3384 MovieClip Frame 51
_parent.Animate("idle");
Symbol 3384 MovieClip Frame 56
if (_parent.CASTING) {
gotoAndPlay ("hit_casting");
}
Symbol 3384 MovieClip Frame 62
if (_parent.stats.hp[1] <= 0) {
gotoAndPlay ("die");
}
Symbol 3384 MovieClip Frame 71
gotoAndPlay((_parent.CASTING ? "c2" : "idle"));
Symbol 3384 MovieClip Frame 76
_parent.SPELL_GLYPH.fading = 1;
_parent.CASTING = false;
Symbol 3384 MovieClip Frame 94
stop();
dead = true;
Symbol 3385 MovieClip [B_MODEL] Frame 1
function LevelUp(stats) {
_root.LevelUp(stats);
}
function DetermineStats() {
if (!_root.E_monstatser._visible) {
if ((substring(ID, 1, 1)) != "e") {
return(undefined);
}
if (_root["dmn" + (substring(ID, 2, -1))]) {
return(undefined);
}
_root["dmn" + (substring(ID, 2, -1))] = true;
}
var _local7 = "" + stats.model;
var _local6 = stats.B_LVL;
var _local8 = (stats.name ? (stats.name) : (mdlStats.names[0]));
stats = {name:_local8, model:_local7, face:mdlStats.face, level:1, exp:0, hp:[10, 10], mp:[10, 10], STR:0, VIT:0, SPR:0, AGL:0, Class:mdlStats.Class, learned:{}, weapon:mdlStats.equip.weapon[random(mdlStats.equip.weapon.length)], shield:mdlStats.equip.shield[random(mdlStats.equip.shield.length)], helmet:mdlStats.equip.helmet[random(mdlStats.equip.helmet.length)], armour:mdlStats.equip.armour[random(mdlStats.equip.armour.length)], accessory:mdlStats.equip.accs[random(mdlStats.equip.accs.length)], accessory2:mdlStats.equip.accs2[random(mdlStats.equip.accs2.length)], BONUS:{STR:0, VIT:0, SPR:0, AGL:0}, BASE:{STR:0, VIT:0, SPR:0, AGL:0}, nAtk:mdlStats.nAtk, MonAtk:mdlStats.nAtk, nDef:mdlStats.nDef, nMDef:mdlStats.nMDef, wpnType:mdlStats.wpnType, elem:mdlStats.elem, dyn:mdlStats.dyn != undefined, body:mdlStats.body, desc:mdlStats.desc, hit:mdlStats.hit, SpellModifier:mdlStats.spellMod, commands:mdlStats.commands, TYPE:mdlStats.TYPE, element:mdlStats.cElem, monStats:mdlStats, spells:[]};
var _local4 = ["STR", "VIT", "SPR", "AGL"];
var _local3 = mdlStats.baseStats;
var _local2 = 0;
while (_local2 < _local4.length) {
stats.BASE[_local4[_local2]] = _local3[_local4[_local2]];
stats[_local4[_local2]] = _local3[_local4[_local2]];
_local2++;
}
_root.calculateStats(stats);
_root.RestoreHPMP(stats);
var _local5 = ((_local6 != undefined) ? (_local6) : (((_root.levelrange[0] != _root.levelrange[1]) ? (random((_root.levelrange[1] - _root.levelrange[0]) + 1) + _root.levelrange[0]) : (_root.levelrange[1]))));
while (stats.level < _local5) {
LevelUp(stats);
}
stats.exp = 0;
_local3 = 0;
while (_local3 < Spells.length) {
if (Spells[_local3].level <= stats.level) {
stats.spells.push(Spells[_local3]);
}
_local3++;
}
stats.mdlStats = mdlStats;
stats.loot = loot;
_root.calculateStats(stats);
_root.RestoreHPMP(stats);
if (_root.E_monstatser) {
_root.E_monstatser.Show(stats);
} else {
_root["PCstats_" + ID] = stats;
}
}
function Animate(anim, Stop) {
mdl[(Stop ? "gotoAndStop" : "gotoAndPlay")]((dying ? "die" : (anim)));
}
function Attack() {
_root.REACTION = 1;
_root.REACTION_USING = null;
if (_root.TECH_USING != null) {
_root.TECHbar.Show(_root.TECH_USING.skill, _root.TECH_USING.elem);
}
if (jumping != 0) {
return(undefined);
}
jumping = 1;
dx = (_x - (_root[_root.Target]._x + (((((substring(ID, 1, 1)) == "e") ? (_root[_root.Target]._x - _root[_root.Target].getBounds(_root).xMin) : (_root[_root.Target].getBounds(_root).xMax - _root[_root.Target]._x)) / 1) * (((substring(ID, 1, 1)) == "e") ? -1 : 1)))) / 5;
dy = (_y - _root[_root.Target]._y) / 5;
Animate("attack");
x = 0;
moving = true;
if ((substring(ID, 1, 1)) != "e") {
_root.plotVars.THS.total_atks++;
}
}
function Conjurate() {
_root.REACTION = 1;
_root.REACTION_USING = null;
if (_root.TECH_USING != null) {
_root.TECHbar.Show(_root.TECH_USING.skill, _root.TECH_USING.elem);
}
Animate("spellcast");
}
function SpecialAttack() {
_root.REACTION = 1;
_root.REACTION_USING = null;
if (_root.TECH_USING != null) {
_root.TECHbar.Show(_root.TECH_USING.skill, _root.TECH_USING.elem);
}
Animate(_root.TECH_USING.anim);
}
function UseItem() {
_root.TECHbar.Show(_root.TECH_USING.item, "ITEM");
Animate("useitem");
}
function GetTech(tech) {
var _local1 = 0;
while (_local1 < Techs.length) {
if (Techs[_local1].skill == tech) {
return(Techs[_local1]);
}
_local1++;
}
return(null);
}
function DoGambit(G) {
if (G.command == "Attack") {
Attack();
} else {
var _local2 = GetTech(G.command);
_root.TECH_USING = _local2;
if (_local2.MODE == "P") {
_root.phySpell = true;
Attack();
} else if (_local2.MODE == "M") {
Conjurate();
} else if (_local2.MODE == "S") {
SpecialAttack();
} else {
Attack();
_root.Flash(_root, [255, 0, 0]);
}
}
}
function ReactionChance() {
if (_root.REACTION == null) {
return(undefined);
}
_root[_root.Target].EXCLAIM._visible = true;
_root.REACTION = 2;
}
function TossItem() {
_root.plotVars.THS.items_used++;
_root.attachMovie("toss_item", "Toss", 1467);
_root.Toss._x = mdl.ITEM.getBounds(_root).xMin;
_root.Toss._y = mdl.ITEM.getBounds(_root).yMin;
_root.Toss.ITEM_.AMOUNT = "";
_root.Toss.ITEM_.gotoAndStop(_root.GetItemInfo(_root.TECH_USING.item).type);
_root.Toss.ITEM_.img.gotoAndStop(_root.TECH_USING.item);
_root.Toss.hVel = _x - _root[_root.Target]._x;
_root.Toss.vVel = _y - _root[_root.Target]._y;
_root.Toss.count = 0;
_root.Toss.onEnterFrame = function () {
this.count++;
this._x = this._x - (this.hVel / 8);
this._y = this._y - (this.vVel / 8);
this._y = this._y - Math.pow(1.2 * (4 - this.count), 3);
this._rotation = this._rotation - 30;
if (this.count >= 8) {
_root.useitem = _root.GetItemInfo(_root.TECH_USING.item);
var _local3 = _root.useitem.action;
_root.SPELLCOLOUR = _root.useitem.rgb;
if ((_local3[0] == "r_HP") || (_local3[0] == "r_MP")) {
_root.InflictDamage((_local3[1][0] ? ((random(Math.abs(_local3[1][1]) - Math.abs(_local3[1][0])) + Math.abs(_local3[1][0])) * ((_local3[1][0] < 0) ? 1 : 1)) : (-_local3[1])), false, _root.useitem.name);
} else if (_local3[0] == "h_status") {
_root.RemoveSTFX(_root[_root.Target].stats, _local3[1]);
} else if (_local3[0] == "life") {
if (_root[_root.Target].stats.body.UNDEAD) {
_root.InflictDamage(random(900) + 100, false, _root.useitem.name);
} else if (_root[_root.Target].hp[1] <= 0) {
_root[_root.Target].stats.hp[1] = 1;
_root[_root.Target].mdl.dead = false;
_root[_root.Target].dying = false;
_root.InflictDamage(-int(_root[_root.Target].stats.hp[0] * _local3[1]), false, _root.useitem.name);
_root[_root.Target].Animate("idle");
}
}
_root.GDelay = 10;
_root.endturn = true;
_root.ParticleEffect((_root.useitem.pfx ? (_root.useitem.pfx) : (((_root.useitem.action[0] == "r_HP") ? "Cure" : "MPRestore"))), _root[_root.Target]);
this.removeMovieClip();
}
};
}
function SetProperDepth() {
var _local3 = mdl.getBounds(_root).yMax + 10;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
this.swapDepths(_local3);
}
function Act() {
_root.phySpell = null;
DEFENDING = false;
if (dying) {
_root.endturn = true;
_root.GDelay = 3;
return(undefined);
}
_root.Acting = _name;
if (_root.HasSTFX(stats, "PSN")) {
_root.Target = _name;
var _local4 = int(stats.hp[0] * 0.05);
if (_local4 < 3) {
_local4 = 3;
}
_root.InflictDamage(((_local4 < 1) ? 1 : (_local4)), true);
_root.Flash(_root[_root.Target].mdl, [125, 220, 80]);
}
if (_root.HasSTFX(stats, "SLP")) {
if (random(8) == 1) {
_root.RemoveSTFX(stats, "SLP");
} else {
_root.GDelay = 10;
_root.endturn = true;
return(undefined);
}
}
if (_root.HasSTFX(stats, "PAR")) {
if (random(4) == 1) {
_root.RemoveSTFX(stats, "PAR");
mdl.gotoAndPlay("idle");
} else {
mdl.stop();
_root.Flash(mdl, [255, 255, 0]);
_root.GDelay = 10;
_root.endturn = true;
return(undefined);
}
}
if (_root.HasSTFX(stats, "RGN")) {
_root.Target = _name;
var _local4 = int(stats.hp[0] * 0.05);
if (_local4 < 3) {
_local4 = 3;
}
if (_local4 > (stats.level * 2)) {
_local4 = stats.level * 2;
}
_root.InflictDamage(-_local4, true);
_root.Flash(_root[_root.Target].mdl, [18, 231, 241]);
}
if (stats.hp[1] <= 0) {
_root.GDelay = 10;
_root.endturn = true;
return(undefined);
}
if (((substring(_name, 1, 1)) == "p") && (!_root.HasSTFX(stats, "CNF"))) {
do {
_root.Target = "e" + (random(4) + 1);
} while (_root[_root.Target].dying);
_root.BMENU.fading = 1;
_root.BMENU.Refresh();
} else {
if (((_root.p1.dying && (_root.p2.dying)) && (_root.p3.dying)) && (_root.p4.dying)) {
return(undefined);
}
do {
_root.Target = ((_root.HasSTFX(stats, "CNF") && (random(101) < 50)) ? "e" : "p") + (random(4) + 1);
} while (_root[_root.Target].dying);
techs = mdlStats.Techs;
var _local5 = "-";
var _local3 = 0;
while (_local3 < Gambits.length) {
var _local2 = Gambits[_local3];
if (stats.mp[1] < GetTech(_local2.command).MP) {
} else {
if (_local2.criteria == null) {
DoGambit(_local2);
return(undefined);
}
if ((_local2.criteria[0] == "random") && (random(101) <= _local2.criteria[1])) {
DoGambit(_local2);
return(undefined);
}
}
_local3++;
}
do {
_root.Target = ((_root.HasSTFX(stats, "CNF") && (random(101) < 50)) ? "e" : "p") + (random(4) + 1);
} while (_root[_root.Target].dying);
Attack();
}
}
ID = (((substring(_name, 1, 1)) == "e") ? "e" : "") + (substring(_name, 2, -1));
stats = _root["PCstats_" + ID];
pd = 1000;
_global.GotoAptFrame = function (part, par) {
var _local2 = (par ? (par) : (part._parent));
part.gotoAndStop((_local2.skin ? (_local2.skin) : "D") + (_root.OPTIONS.lineless ? "_LL" : ""));
};
stop();
this.gotoAndStop(stats.model);
Animate(((stats.hp[1] > 0) ? "idle" : "dead"));
if ((!_root.battling) || (_name == "dummy")) {
mdl.gotoAndPlay("idle");
return(undefined);
}
if ((((substring(ID, 1, 1)) == "e") && (int(substring(ID, 2, 1)) > _root.numfoes)) || (stats.model == null)) {
_visible = false;
dying = true;
return(undefined);
}
jumping = 0;
c = 0;
dx = 0;
dy = 0;
x = 0;
y = 1;
orig_y = mdl._y + 0;
_root.calculateStats(stats);
dying = (((stats.hp[1] > 0) || ((substring(ID, 1, 1)) == "e")) ? false : true);
moving = false;
pulsate = false;
pulse = new Color(mdl);
pTint = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
pMod = 1;
SetProperDepth();
onEnterFrame = function () {
if ((mdl.dead && (_visible)) && ((substring(ID, 1, 1)) == "e")) {
_alpha = (_alpha - 8);
_root["sb_" + ID]._alpha = _root["sb_" + ID]._alpha - 8;
if (_alpha <= 5) {
_root.plotVars.THS.foes_killed++;
_root["PCstats_" + ID].model = null;
_root["sb_" + ID]._visible = false;
this._visible = false;
}
}
if (_root.gameOver) {
return(undefined);
}
act_cursor._visible = ((_root.Acting == _name) && (_root.BMENU._visible)) && ((substring(_name, 1, 1)) == "p");
if ((!dying) && ((_root.TARGETTING == _name) || (_root.TARGETTING == ("ALL_" + (substring(_name, 1, 1)))))) {
pulsating = true;
pTint.rb = pTint.rb + (pMod * 20);
if ((pTint.rb < 20) || (pTint.rb > 235)) {
pMod = pMod * -1;
}
pulse.setTransform(pTint);
} else if (pulsating) {
pulsating = false;
pTint.rb = 0;
pMod = 1;
pulse.setTransform(pTint);
}
if ((_root.HasSTFX(stats, "PAR") && (!dying)) && (!mdl.dead)) {
mdl.stop();
return(undefined);
}
if (moving) {
SetProperDepth();
}
if (jumping == 0) {
return(undefined);
}
if (((c < 5) && (jumping == 1)) || ((c > 2) && (jumping == -1))) {
var _local6 = jumping * (((substring(ID, 1, 1)) == "e") ? -1 : 1);
if (_root.WeaponAnimType[_root.GetWeaponStats(stats.weapon).wpnType] != "GUNS") {
mdl._x = mdl._x - (dx * _local6);
mdl._y = mdl._y - (dy * jumping);
if (shd._visible) {
shd._x = shd._x - (dx * _local6);
shd._y = shd._y - (dy * jumping);
}
}
}
x = x + jumping;
c++;
if (c == 8) {
if (jumping == 1) {
jumping = -1;
var _local3 = true;
blurgle = true;
if (blurgle) {
if (_root.phySpell != undefined) {
_root.CastSpell();
_root.phySpell = null;
if (_root.CS_MISSED) {
_local3 = false;
}
} else {
_root[_root.Target].EXCLAIM._visible = false;
_root.REACTION = null;
var _local7 = (((stats.weapon != null) && (stats.weapon != "none")) ? (_root.GetItemInfo(stats.weapon).hit) : (((stats.hit != null) ? (stats.hit) : 100)));
var _local4 = _local7 + 0;
if (_root.HasSTFX(stats, "DRK")) {
_local4 = _local4 / 2;
}
if (random(101) > _local4) {
_root.DamageNumber(_root[_root.Target]._x, _root[_root.Target]._y, "<p align='center'>Miss</p>", "Miss");
_local3 = false;
_root.playSFX("Miss");
} else {
if (((((_root.REACTION_USING != null) && (_root.REACTION_USING.effect == "stfx")) && (_root.REACTION_USING.MODE == "P")) && (random(101) <= _root.REACTION_USING.stfx[1])) && (random(101) < _root[_root.Target].stats.RESIST[_root.REACTION_USING.stfx[0]])) {
_root.AddSTFX(_root[_root.Target].stats, _root.REACTION_USING.stfx[0]);
}
if (((_root.GetItemInfo(stats.weapon).elem != undefined) && (_root.GetItemInfo(stats.weapon).elem != "")) || (stats.elem != null)) {
_root.ParticleEffect("elemHit", _root[_root.Target]);
}
_root.playSFX(((_root["PCstats_" + ID].weapon == "none") ? "punch" : (((_root.GetItemInfo(stats.weapon).hit_sfx != null) ? (_root.GetItemInfo(stats.weapon).hit_sfx) : ("hit_" + ((_root.GetItemInfo(stats.weapon).wpnType == "BLASTER") ? "BLASTERS" : (_root.WeaponAnimType[_root.GetItemInfo(stats.weapon).wpnType])))))));
var _local5 = _root.dmgFormula(this, _root[_root.Target]);
_root.InflictDamage(_local5);
if (_root.command == "M.Sword") {
_root.ParticleEffect("MSword", _root[_root.Target]);
}
if ((_root[_root.Target].mdlStats.blood != 0) && (_local5 > 0)) {
_root.ParticleEffect("BloodSplash_s", _root[_root.Target]);
}
_root.RemoveSTFX(_root[_root.Target].stats, "SLP");
}
}
if (_local3) {
_root.GiveEXP((_root[_root.Target].stats.mdlStats.EXP ? (_root[_root.Target].stats.mdlStats.EXP[0]) : 50), this, _root[_root.Target]);
}
}
} else {
jumping = 0;
mdl._y = orig_y;
_root.GDelay = 10;
_root.endturn = true;
moving = false;
}
c = 0;
x = 7;
}
};
Instance of Symbol 2983 MovieClip "act_cursor" in Symbol 3385 MovieClip [B_MODEL] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 3385 MovieClip [B_MODEL] Frame 5
mdlStats = {model:"dummy", sprite:"common", Class:"Peasant", TYPE:"HUMAN", cElem:"EARTH", wpnType:"SPEAR", armrTypes:[], baseStats:{hp:25, mp:40, STR:11, VIT:13, SPR:7, AGL:15}, nAtk:[2, 5], nDef:0, nMDef:0, critical:0, hpGrowth:8, atkGrowth:[1, 2], equip:{weapon:["Longsword"], shield:["none"], helmet:["none"], armour:["Tunic"], accs:["none"], accs2:["none"]}, names:["Peasant"], blood:0, specChance:0, resist:{}, EXP:[50, 100], desc:"Peasant"};
Techs = [];
loot = [["Potion", 2]];
DetermineStats();
Instance of Symbol 2983 MovieClip "act_cursor" in Symbol 3385 MovieClip [B_MODEL] Frame 5
onClipEvent (load) {
_visible = false;
}
Symbol 3385 MovieClip [B_MODEL] Frame 6
mdlStats = {model:"Mardek", sprite:"mardek", Class:"Royal Knight", TYPE:"HUMAN", cElem:"LIGHT", wpnType:"SWORD", armrTypes:[], baseStats:{hp:32, mp:40, STR:16, VIT:16, SPR:12, AGL:9}, nAtk:[2, 5], nDef:0, nMDef:0, critical:0, hpGrowth:16, atkGrowth:[1, 2], equip:{weapon:["Sun Sword", "Longsword"], shield:["none", "Wooden Shield"], helmet:["Rusty Helm"], armour:["Rusty Armour"], accs:["none"], accs2:["none"]}, names:["Royal Knight"], blood:0, specChance:0, resist:{}, EXP:[50, 100], desc:"Mardek?"};
Techs = [];
loot = [["Potion", 2]];
DetermineStats();
Instance of Symbol 3040 MovieClip "mdl" in Symbol 3385 MovieClip [B_MODEL] Frame 6
onClipEvent (load) {
skin = "knight";
}
Symbol 3385 MovieClip [B_MODEL] Frame 7
mdlStats = {model:"Soldier", sprite:"soldier", Class:"Soldier", TYPE:"HUMAN", cElem:"EARTH", wpnType:"SPEAR", armrTypes:[], baseStats:{hp:32, mp:40, STR:12, VIT:12, SPR:9, AGL:15}, nAtk:[2, 5], nDef:0, nMDef:0, critical:0, hpGrowth:9, atkGrowth:[1, 2], equip:{weapon:["Pike"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Soldier"], blood:0, specChance:0, resist:{}, EXP:[50, 100], desc:"Expendable Soldier."};
Techs = [];
loot = [["Potion", 2]];
DetermineStats();
Symbol 3385 MovieClip [B_MODEL] Frame 9
mdlStats = {model:"Mardek_Hero", sprite:"mardek_hero", Class:"Hero", TYPE:"HUMAN", cElem:"LIGHT", wpnType:"SWORD", armrTypes:[], baseStats:{hp:40, mp:40, STR:16, VIT:16, SPR:12, AGL:9}, nAtk:[2, 5], nDef:0, nMDef:0, critical:0, hpGrowth:10, atkGrowth:[1, 2], equip:{weapon:["Sun Sword", "Longsword"], shield:["none", "Wooden Shield"], helmet:["Rusty Helm"], armour:["Rusty Armour"], accs:["none"], accs2:["none"]}, names:["Hero"], blood:9371905, specChance:0, resist:{}, EXP:[50, 100], desc:"Mardek?"};
Techs = [];
loot = [];
DetermineStats();
Instance of Symbol 3040 MovieClip "mdl" in Symbol 3385 MovieClip [B_MODEL] Frame 9
onClipEvent (load) {
skin = "hero";
}
Symbol 3385 MovieClip [B_MODEL] Frame 10
mdlStats = {model:"Deugan_Hero", sprite:"deugan_hero", Class:"Hero", TYPE:"HUMAN", cElem:"EARTH", wpnType:"GREATSWORD", armrTypes:[], baseStats:{hp:40, mp:40, STR:16, VIT:16, SPR:12, AGL:9}, nAtk:[2, 5], nDef:0, nMDef:0, critical:0, hpGrowth:10, atkGrowth:[1, 2], equip:{weapon:["Balmung"], shield:["none"], helmet:["Rusty Helm"], armour:["Rusty Armour"], accs:["none"], accs2:["none"]}, names:["Hero"], blood:9371905, specChance:0, resist:{}, EXP:[50, 100], desc:"Deugan?"};
Techs = [];
loot = [];
DetermineStats();
Instance of Symbol 3104 MovieClip "mdl" in Symbol 3385 MovieClip [B_MODEL] Frame 10
onClipEvent (load) {
skin = "hero";
}
Symbol 3385 MovieClip [B_MODEL] Frame 30
mdlStats = {model:"monster", sprite:"monster", Class:"Monster", TYPE:"MONSTER", cElem:"DARK", wpnType:"none", armrTypes:[], baseStats:{hp:12, mp:10, STR:21, VIT:18, SPR:2, AGL:8}, nAtk:[5, 10], nDef:0, nMDef:0, critical:3, hpGrowth:12, atkGrowth:[0, 0], equip:{weapon:["none"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Monster"], blood:8978176, specChance:0, resist:{}, EXP:[50, 100], desc:"Monster"};
Techs = [{skill:"Dark Claw", type:"ACT", DMG:["m", 1.5], MP:10, critical:10, accuracy:100, stfx:{DRK:10}, AP:0, MODE:"P", elem:"DARK", TT:"SINGLE", pfx:["DARKCLAW"], desc:"Dark attack. More powerful than normal attack."}];
Gambits = [{command:"Dark Claw", target:"ANY_PC", criteria:["random", 30]}, {command:"Attack", target:"ANY_PC", criteria:null}];
loot = [];
DetermineStats();
Symbol 3385 MovieClip [B_MODEL] Frame 31
mdlStats = {model:"flyingfish", sprite:"forestfish", Class:"Flying Fish", TYPE:"ICHTHYD", cElem:"WATER", wpnType:"none", armrTypes:[], baseStats:{hp:6, mp:10, STR:12, VIT:12, SPR:11, AGL:10}, nAtk:[1, 5], nDef:0, nMDef:0, critical:3, hpGrowth:6, atkGrowth:[0, 0], equip:{weapon:["none"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Forest Fish"], blood:5592524, specChance:0, resist:{}, EXP:[20, 44], desc:"Forest Fish"};
Techs = [];
Gambits = [{command:"Attack", target:"ANY_PC", criteria:null}];
loot = [["Potion", 5]];
DetermineStats();
Symbol 3385 MovieClip [B_MODEL] Frame 32
mdlStats = {model:"fungoblin", sprite:"fungoblin", Class:"Goblin", TYPE:"GOBLIN", cElem:"EARTH", wpnType:"none", armrTypes:[], baseStats:{hp:4, mp:6, STR:10, VIT:12, SPR:3, AGL:7}, nAtk:[2, 2], nDef:0, nMDef:0, critical:3, hpGrowth:4, atkGrowth:[0, 0], equip:{weapon:["none"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Fungoblin"], blood:11193378, specChance:0, resist:{}, EXP:[20, 40], desc:"FugusGoblin"};
Techs = [{skill:"Spore Tackle", type:"ACT", DMG:["d", 2, 3], MP:2, accuracy:90, stfx:{SLP:80}, AP:0, MODE:"P", elem:"AIR", TT:"SINGLE", pfx:["Spore"], desc:"Inflicts sleep."}];
Gambits = [{command:"Spore Tackle", target:"ANY_PC", criteria:["random", 40]}, {command:"Attack", target:"ANY_PC", criteria:null}];
loot = [["Potion", 5]];
DetermineStats();
Symbol 3385 MovieClip [B_MODEL] Frame 33
mdlStats = {model:"fumerat", sprite:"fumerat", Class:"Rat", TYPE:"BEAST", cElem:"EARTH", wpnType:"none", armrTypes:[], baseStats:{hp:3, mp:3, STR:10, VIT:8, SPR:3, AGL:13}, nAtk:[1, 3], nDef:0, nMDef:0, critical:3, hpGrowth:3, atkGrowth:[0, 0], equip:{weapon:["none"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Fumerat"], blood:8912896, specChance:0, resist:{}, EXP:[20, 40], desc:"Fume Rat"};
Techs = [{skill:"Infect", type:"ACT", DMG:["d", 1, 3, 1], MP:1, accuracy:100, stfx:{PSN:80}, sfx:"punch", AP:0, MODE:"P", elem:"EARTH", TT:"SINGLE", pfx:["Snakebite"], desc:"Poison-inflicting bite."}];
Gambits = [{command:"Infect", target:"ANY_PC", criteria:["random", 30]}, {command:"Attack", target:"ANY_PC", criteria:null}];
loot = [["LeadPipe", 30], ["Antidote", 20]];
DetermineStats();
Symbol 3385 MovieClip [B_MODEL] Frame 34
mdlStats = {model:"poshgoblin", sprite:"poshgoblin", Class:"Goblin", TYPE:"GOBLIN", cElem:"DARK", wpnType:"none", armrTypes:[], baseStats:{hp:12, mp:99, STR:10, VIT:12, SPR:5, AGL:7}, nAtk:[2, 4], nDef:0, nMDef:0, critical:3, hpGrowth:12, atkGrowth:[0, 0], equip:{weapon:["none"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Poshgoblin"], blood:11193378, specChance:0, resist:{}, EXP:[30, 100], desc:"PoshGoblin"};
Techs = [{skill:"Spore Tackle", type:"ACT", DMG:["d", 2, 3], MP:2, accuracy:90, stfx:{SLP:80}, AP:0, MODE:"P", elem:"AIR", TT:"SINGLE", pfx:["Spore"], desc:"Inflicts sleep."}];
Gambits = [{command:"Spore Tackle", target:"ANY_PC", criteria:["random", 70]}, {command:"Attack", target:"ANY_PC", criteria:null}];
loot = [["Potion", 5]];
DetermineStats();
Instance of Symbol 3260 MovieClip "mdl" in Symbol 3385 MovieClip [B_MODEL] Frame 34
onClipEvent (load) {
skin = "posh";
}
Symbol 3385 MovieClip [B_MODEL] Frame 50
mdlStats = {model:"MightyDragon", sprite:"MightyDragon", Class:"Dragon", TYPE:"DRAGON", cElem:"DARK", elem:"DARK", wpnType:"none", armrTypes:[], baseStats:{hp:10000, mp:999, STR:36, VIT:32, SPR:44, AGL:19}, nAtk:[10, 30], nDef:40, nMDef:40, critical:3, hpGrowth:0, atkGrowth:[0, 0], equip:{weapon:["none"], shield:["none"], helmet:["none"], armour:["none"], accs:["none"], accs2:["none"]}, names:["Dragon"], blood:3342336, specChance:0, resist:{FIRE:100, WATER:60, AIR:20, EARTH:20, DARK:200, LIGHT:-100, PSN:80, PAR:99}, EXP:[50, 5000], desc:"THE DRAGON"};
Techs = [{skill:"Dark Claw", type:"ACT", DMG:["m", 1.5], MP:10, critical:10, accuracy:100, stfx:{DRK:10}, AP:0, MODE:"P", elem:"DARK", TT:"SINGLE", pfx:["DARKCLAW"], desc:"Dark attack. More powerful than normal attack."}, {skill:"Thunderbolt", type:"ACT", DMG:["d", "L", 4], MP:6, critical:0, accuracy:100, stfx:{PAR:10}, AP:0, MODE:"M", elem:"AIR", TT:"SINGLE", pfx:["Bolt", 16777130], desc:"Standard elemental magic attack."}];
Gambits = [{command:"Thunderbolt", target:"ANY_PC", criteria:["random", 40]}, {command:"Dark Claw", target:"ANY_PC", criteria:["random", 70]}, {command:"Attack", target:"ANY_PC", criteria:null}];
loot = [];
DetermineStats();
Instance of Symbol 3353 MovieClip "mdl" in Symbol 3385 MovieClip [B_MODEL] Frame 50
onClipEvent (load) {
skin = "dark";
}
Symbol 3385 MovieClip [B_MODEL] Frame 51
mdlStats = {model:"Mugbert", sprite:"mugbert", Class:"Grunt", TYPE:"HUMAN", cElem:"EARTH", wpnType:"GREATMACE", armrTypes:[], baseStats:{hp:63, mp:3, STR:13, VIT:15, SPR:6, AGL:6}, nAtk:[1, 6], nDef:0, nMDef:0, critical:3, hpGrowth:0, atkGrowth:[0, 0], equip:{weapon:["Branch Club"], shield:["none"], helmet:["none"], armour:["Tunic"], accs:["none"], accs2:["none"]}, names:["Mugbert"], blood:9371905, specChance:0, resist:{}, EXP:[20, 100], desc:"MUGBERT"};
Spells = [];
Gambits = [{command:"Attack", target:"ANY_PC", criteria:null}];
loot = [];
DetermineStats();
Symbol 3396 MovieClip [torchlight] Frame 1
this.onEnterFrame = function () {
if ((!_root.cont._visible) && (!this.inbattle)) {
return(undefined);
}
if (_root.area != this.area) {
this.removeMovieClip();
}
var _local3 = (this.noFlicker ? 0 : (random(5))) + 90;
this._width = (this._height = _local3);
};
Symbol 3401 MovieClip [E_Entry] Frame 1
stop();
if (noRoll) {
return(undefined);
}
onRollOver = function () {
if (this.DATA == "dull") {
return(undefined);
}
this.gotoAndStop(2);
};
onRollOut = function () {
if (this.DATA == "dull") {
return(undefined);
}
this.gotoAndStop(1);
};
Symbol 3428 MovieClip [ItemSlot] Frame 1
function showItem(item) {
if (item == null) {
item_.removeMovieClip();
return(undefined);
}
this.attachMovie("ITEM_", "item_", 100);
item_._width = (item_._height = 28);
item_._x = (item_._y = 1);
item_.gotoAndStop((item.title ? "book" : ((item.blade ? "wepn" : ((plot ? "plot" : (_root.GetItemInfo(item).type)))))));
if (item.title != null) {
item_.img.gotoAndStop(item.book);
}
if (item.blade != null) {
item_.img.weapon = item;
} else {
item_.img.gotoAndStop(item);
}
item_.AMOUNT = (((AMOUNT == undefined) || (AMOUNT == 1)) ? "" : (AMOUNT));
if (((_root.GetItemInfo(item).cost == -1) && (_root.Shopping)) && (!SHOPITEM)) {
item_._alpha = 40;
}
if ((slot == "shield") && (_root.GetItemInfo(item).type == "ammo")) {
_root["PCstats_" + _parent.ID].ammo = ((AMOUNT == "") ? 1 : (AMOUNT));
}
}
function Stop_Drag() {
_root.CURSOR_.gotoAndStop(1);
_root.CURSOR_.AMOUNT = undefined;
_root.CURSOR_.ITEM = undefined;
}
stop();
if (slot != undefined) {
if (_root.GetItemInfo(_root["PCstats_" + _parent.ID][slot]).type == "ammo") {
AMOUNT = _root["PCstats_" + _parent.ID].ammo;
} else {
AMOUNT = 1;
}
}
if (ITEM == "none") {
ITEM = undefined;
}
if ((ITEM != undefined) && (ITEM != "none")) {
showItem(ITEM);
}
onRollOver = function () {
if (((_parent._name == "inventory_filler") || (_parent._name == "spoils")) || (_parent._name == "warez_filler")) {
O_depth = this.getDepth();
this.swapDepths(9000);
}
if (((ITEM != undefined) && (_root.DItem == undefined)) && (_root.Shopping)) {
_root.EvaluateBonus(ITEM);
_root.I_name = (ITEM.title ? (ITEM.title) : ((ITEM.blade ? (ITEM.name) : (ITEM))));
_root.I_value = ((_root.GetItemInfo(ITEM).cost == -1) ? "N/A" : ("$" + int((ITEM.title ? (_root.GetSpellStats(ITEM.spell).cost) : ((ITEM.blade ? (_root.GetWeaponStats(ITEM).cost) : (_root.GetItemInfo(ITEM).cost * (isNaN(AMOUNT) ? 1 : (int(AMOUNT))))))) / ((_parent._name == "inventory_filler") ? 2 : 1))));
}
if (slot != undefined) {
_parent.itemSlotR = ((slot == "shield") ? "offhand" : (((label != null) ? (label) : (slot))));
_root.itemSlotR = [slot, _parent.ID];
}
if (((ITEM != undefined) || (_root.DItem != undefined)) && (!plot)) {
this.gotoAndStop(3);
}
if (ITEM != undefined) {
_root.RItem = ITEM;
}
};
onRollOut = function () {
if (((_parent._name == "inventory_filler") || (_parent._name == "spoils")) || (_parent._name == "warez_filler")) {
this.swapDepths(O_depth);
}
if (_root.DItem == undefined) {
_root.I_name = (_root.I_value = "-");
}
if (_root.Shopping) {
_root.EvaluateBonus(null);
}
if (slot != undefined) {
_parent.itemSlotR = "";
}
if (!plot) {
this.gotoAndStop(2);
}
_root.RItem = undefined;
_root.itemSlotR = undefined;
};
onPress = function () {
if ((_root.toBuy != null) && (_root.Shopping)) {
return(undefined);
}
if (plot) {
if (_parent._name == "spoils") {
if (_root.plotVars.ITEMS == undefined) {
_root.plotVars.ITEMS = [];
}
_root.plotVars.ITEMS.push(ITEM);
ITEM = undefined;
AMOUNT = undefined;
item_.removeMovieClip();
this.gotoAndStop(2);
}
return(undefined);
}
if (_root.GetItemInfo(ITEM).type == "gold") {
_root.money = _root.money + int(AMOUNT);
_parent._parent.AddGold(AMOUNT);
ITEM = undefined;
AMOUNT = undefined;
item_.removeMovieClip();
return(undefined);
}
if (SHOPITEM == true) {
if (ITEM == undefined) {
if (_root.DItem != undefined) {
if (_root.GetItemInfo(_root.DItem[0]).cost == -1) {
_root.playSFX("error");
return(undefined);
}
_root.playSFX("buy");
_root.money = _root.money + int((_root.DItem[0].title ? (_root.GetSpellStats(_root.DItem[0].spell).cost) : ((_root.DItem[0].name ? (_root.GetWeaponStats(_root.DItem[0]).cost) : (_root.GetItemInfo(_root.DItem[0]).cost * (isNaN(_root.DItem[1]) ? 1 : (_root.DItem[1])))))) / 2);
Stop_Drag();
_root.DItem = undefined;
}
return(undefined);
}
if (_root.DItem != undefined) {
_root.playSFX("error");
return(undefined);
}
_root.toBuy = ITEM;
return(undefined);
}
if ((slot != undefined) && (_root.DItem != undefined)) {
var _local9 = _root.classStats[_root["PCstats_" + _parent.ID].model];
var _local5 = _root.GetItemInfo(_root.DItem[0]);
if (((slot == "weapon") && (_local5.wpnType != _local9.wpnType)) || (((slot != "weapon") && ((substring(slot, 1, 2)) != "ac")) && (!_local9.amrTypes[_local5.amrType]))) {
_root.playSFX("error");
return(undefined);
}
if (!(_root.DItem[0].name && (slot == "weapon"))) {
var _local11 = substring(_root["PCstats_" + _parent.ID].model, 5, -1);
var _local13 = true;
if ((substring(_local5.type, 1, 2)) != (substring(slot, 1, 2))) {
_root.playSFX("error");
return(undefined);
}
}
_root["PCstats_" + _parent.ID][slot] = _root.DItem[0];
_root.calculateStats(_root["PCstats_" + _parent.ID]);
if (_local5.type == "ammo") {
_root["PCstats_" + _parent.ID].ammo = _root.DItem[1];
}
}
lastItem = [ITEM, AMOUNT];
Stop_Drag();
if (ITEM == undefined) {
if (_root.DItem != undefined) {
ITEM = _root.DItem[0];
AMOUNT = _root.DItem[1];
showItem(ITEM);
_root.DItem = undefined;
return(undefined);
}
} else {
var _local10 = _root.GetItemInfo(ITEM).type;
if (Key.isDown(83)) {
var _local12 = _root.GetItemInfo(_root.DItem[0]).type;
if ((_root.DItem != null) && (_root.DItem[0] == ITEM)) {
_root.DItem[1]++;
_root.Drag_Item(_root.DItem[0], _root.DItem[1]);
AMOUNT--;
item_.AMOUNT = AMOUNT;
if ((AMOUNT == null) || (AMOUNT <= 0)) {
ITEM = undefined;
item_.removeMovieClip();
return(undefined);
}
return(undefined);
}
if ((AMOUNT > 1) && (_root.DItem == null)) {
var _local4 = ["" + ITEM, 0 + AMOUNT];
_root.DItem = [_local4[0], 1];
_root.CURSOR_.item.AMOUNT = "";
_root.Drag_Item(_local4[0], _local4[1]);
AMOUNT--;
this.item_.AMOUNT = ((AMOUNT == 1) ? "" : (AMOUNT));
return(undefined);
}
}
var _local4 = [ITEM, AMOUNT];
ITEM = undefined;
item_.removeMovieClip();
var _local6 = 0;
if (_root.DItem != undefined) {
if (((_root.DItem[0] == _local4[0]) && ((((_root.GetItemInfo(_local4[0]).type == "item") || (_root.GetItemInfo(_local4[0]).type == "ammo")) || (_root.GetItemInfo(_local4[0]).type == "misc")) || (_root.GetItemInfo(_local4[0]).type == "gems"))) && (AMOUNT != 99)) {
if ((AMOUNT + _root.DItem[1]) > 99) {
if ((slot == "shield") && (_root.GetItemInfo(ITEM).type == "ammo")) {
_root["PCstats_" + _parent.ID].ammo = 99;
}
var _local7 = (AMOUNT + _root.DItem[1]) - 99;
AMOUNT = 99;
_root.DItem[1] = _local7;
ITEM = _local4[0];
showItem(ITEM);
_root.Drag_Item(_root.DItem[0], _local7);
return(undefined);
}
AMOUNT = AMOUNT + _root.DItem[1];
_local6 = 1;
ITEM = _local4[0];
} else {
ITEM = _root.DItem[0];
AMOUNT = _root.DItem[1];
}
showItem(ITEM);
_root.DItem = undefined;
if (_local6 == 1) {
return(undefined);
}
} else if (slot != undefined) {
_root["PCstats_" + _parent.ID][slot] = "none";
_root.calculateStats(_root["PCstats_" + _parent.ID]);
}
_root.DItem = _local4;
if (_local4[0] != undefined) {
_root.Drag_Item(_local4[0], _local4[1]);
}
}
};
Symbol 3436 MovieClip [B_ItemThing] Frame 1
stop();
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 3436 MovieClip [B_ItemThing] Frame 1
onClipEvent (load) {
AMOUNT = "";
}
Symbol 3463 MovieClip [gotitem_box] Frame 1
function ShowItem(item, amount, other) {
xDown = true;
_visible = true;
gotoAndStop(((item == "gold") ? 3 : (((other == "I_FULL") ? 2 : 1))));
itemname = ((item == "gold") ? (amount + " gold") : ((item.title ? (item.title) : ((item.name ? (item.name) : (item))))));
amount_ = (((amount == 1) || (amount == null)) ? "" : ("x " + amount));
if (item != "gold") {
img.gotoAndStop((item.name ? "wepn" : ((item.title ? "book" : (_root.GetItemInfo(item).type)))));
if (item.name) {
img.img.weapon = item;
img.img.Show(item);
} else if (item.title) {
img.img.gotoAndStop((item.book ? (item.book) : (_root.GetSpellStats(item.spell).elem + "Tome")));
} else {
img.img.gotoAndStop(item);
}
}
}
if (INITIALISED) {
return(undefined);
}
stop();
_visible = false;
INITIALISED = true;
onEnterFrame = function () {
if (xDown && (!Key.isDown(88))) {
xDown = false;
}
if ((_visible && (Key.isDown(88))) && (!xDown)) {
_visible = false;
xDown = false;
}
};
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 3463 MovieClip [gotitem_box] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (_parent.ITEMNAME != "-");
this.gotoAndStop((_root.RItem.title ? "book" : (_root.GetItemInfo(_parent.ITEMNAME).type)));
this.img.gotoAndStop((_root.RItem.title ? (_root.RItem.book) : (_parent.ITEMNAME)));
AMOUNT = "";
}
Symbol 3468 MovieClip [conv_response] Frame 1
stop();
Initiate = function () {
_parent._parent.display = "";
_root.conv.theConv.gotoAndStop(this.link);
};
onPress = Initiate;
onEnterFrame = function () {
if (Key.isDown(48 + this.ID)) {
Initiate();
}
};
onRollOver = function () {
_root.conv.as.emState = this.em;
};
onRollOut = function () {
_root.conv.as.emState = "none";
};
Symbol 3471 MovieClip Frame 1
function FadeIn(scene) {
this.gotoAndStop(scene);
_alpha = 0;
fade = 1;
_visible = true;
}
stop();
fade = 0;
onEnterFrame = function () {
if (fade != 0) {
_alpha = (_alpha + (fade * 10));
if ((fade == -1) && (_alpha <= 0)) {
fade = 0;
_alpha = 0;
gotoAndStop (1);
_visible = false;
} else if ((fade == 1) && (_alpha >= 100)) {
fade = 0;
}
}
};
Symbol 3483 MovieClip Frame 1
stop();
Symbol 3489 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent.stats.face2 ? (_parent.stats.face2) : ((_parent.stats.face ? (_parent.stats.face) : 1))));
}
stop();
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3521 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent.stats.armour ? (_parent.stats.armour) : "none"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3542 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.face2 ? (_parent._parent.stats.face2) : ((_parent._parent.stats.face ? ((((_parent._parent.stats.face.length == 2) && (isNaN(_parent._parent.stats.face))) ? (substring(_parent._parent.stats.face, 1, 1)) : (_parent._parent.stats.face))) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3573 MovieClip Frame 1
char2lips = [["a", 2], ["b", 3], ["c", 4], ["d", 6], ["e", 2], ["f", 5], ["g", 4], ["h", 2], ["i", 2], ["j", 4], ["k", 2], ["l", 6], ["m", 3], ["n", 2], ["o", 7], ["p", 3], ["q", 2], ["r", 4], ["s", 4], ["t", 4], ["u", 7], ["v", 5], ["w", 3], ["x", 4], ["y", 2], ["z", 4]];
moving = false;
onEnterFrame = function () {
if (_root.conv.as.toShow.length > 0) {
moving = !moving;
var _local4 = (substring(_root.conv.as.toShow, 1, 1)).toLowerCase();
var _local3 = 0;
while (_local3 < 26) {
if (_local4 == char2lips[_local3][0]) {
this.gotoAndStop(char2lips[_local3][1]);
return(undefined);
}
_local3++;
}
}
this.gotoAndStop((_root.conv.as.emState ? (_root.conv.as.emState) : 1));
};
Symbol 3593 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.eyes ? (_parent._parent.stats.eyes) : 2));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3620 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.eyebrows ? (_parent._parent.stats.eyebrows) : ((_parent._parent.stats.face ? ((((_parent._parent.stats.face.length == 2) && (isNaN(_parent._parent.stats.face))) ? (substring(_parent._parent.stats.face, 2, 1)) : (_parent._parent.stats.face))) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3687 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.hair ? (_parent._parent.stats.hair) : ((_parent._parent.stats.face ? ((((_parent._parent.stats.face.length == 2) && (isNaN(_parent._parent.stats.face))) ? (substring(_parent._parent.stats.face, 1, 1)) : (_parent._parent.stats.face))) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Instance of Symbol 3664 MovieClip in Symbol 3687 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop(substring(_parent._parent._parent.stats.face, 2, 1));
}
Symbol 3706 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_root.conv.as.emState ? (_root.conv.as.emState) : "norm"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3707 MovieClip Frame 1
function Stuff() {
stats = (_parent.STATS ? (_parent.STATS) : ((_parent.isPC ? (_root.PCstats_1) : ((_parent.ID ? (_root["PCstats_" + _parent.ID]) : ((_root.conv.as.cSpkr[2] ? ({face:_root.conv.as.cSpkr[2]}) : (_root.conv.SPEAKING.props.stats))))))));
head.hair.gotoAndStop(stats.face);
head.face.gotoAndStop(stats.face);
torso.gotoAndStop(stats.armour);
bg.gotoAndStop((stats.elembg ? (stats.elembg) : 1));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3726 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent.stats.armour ? (_parent.stats.armour) : "none"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3736 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.face2 ? (_parent._parent.stats.face2) : ((_parent._parent.stats.face ? (_parent._parent.stats.face) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3767 MovieClip Frame 1
char2lips = [["a", 2], ["b", 3], ["c", 4], ["d", 6], ["e", 2], ["f", 5], ["g", 4], ["h", 2], ["i", 2], ["j", 4], ["k", 2], ["l", 6], ["m", 3], ["n", 2], ["o", 7], ["p", 3], ["q", 2], ["r", 4], ["s", 4], ["t", 4], ["u", 7], ["v", 5], ["w", 3], ["x", 4], ["y", 2], ["z", 4]];
moving = false;
onEnterFrame = function () {
if (_root.conv.as.toShow.length > 0) {
moving = !moving;
var _local4 = (substring(_root.conv.as.toShow, 1, 1)).toLowerCase();
var _local3 = 0;
while (_local3 < 26) {
if (_local4 == char2lips[_local3][0]) {
this.gotoAndStop(char2lips[_local3][1]);
return(undefined);
}
_local3++;
}
}
this.gotoAndStop((_root.conv.as.emState ? (_root.conv.as.emState) : 1));
};
Symbol 3785 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.eyebrows ? (_parent._parent.stats.eyebrows) : ((_parent._parent.stats.face ? (_parent._parent.stats.face) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3852 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.hair ? (_parent._parent.stats.hair) : ((_parent._parent.stats.face ? (_parent._parent.stats.face) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3859 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.helmet ? (_parent._parent.stats.helmet) : "none"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3895 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_root.conv.as.emState ? (_root.conv.as.emState) : "norm"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3896 MovieClip Frame 1
function Stuff() {
stats = (_parent.STATS ? (_parent.STATS) : ((_parent.isPC ? (_root.PCstats_1) : ((_parent.ID ? (_root["PCstats_" + _parent.ID]) : ((_parent._parent.as.cSpkr[2] ? ({face:_parent._parent.as.cSpkr[2]}) : (_parent._parent.SPEAKING.props.stats))))))));
bg.gotoAndStop((stats.elembg ? (stats.elembg) : 1));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3902 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.face2 ? (_parent._parent.stats.face2) : ((_parent._parent.stats.face ? ((((_parent._parent.stats.face.length == 2) && (isNaN(_parent._parent.stats.face))) ? (substring(_parent._parent.stats.face, 1, 1)) : (_parent._parent.stats.face))) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3910 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent._parent.stats.face2 ? (_parent._parent.stats.face2) : ((_parent._parent.stats.face ? ((((_parent._parent.stats.face.length == 2) && (isNaN(_parent._parent.stats.face))) ? (substring(_parent._parent.stats.face, 1, 1)) : (_parent._parent.stats.face))) : 1))));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3924 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_root.conv.as.emState ? (_root.conv.as.emState) : "norm"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3925 MovieClip Frame 1
function Stuff() {
stats = (_parent.STATS ? (_parent.STATS) : ((_parent.isPC ? (_root.PCstats_1) : ((_parent.ID ? (_root["PCstats_" + _parent.ID]) : ((_root.conv.as.cSpkr[2] ? ({face:_root.conv.as.cSpkr[2]}) : (_root.conv.SPEAKING.props.stats))))))));
head.hair.gotoAndStop(stats.face);
head.face.gotoAndStop(stats.face);
torso.gotoAndStop(stats.armour);
bg.gotoAndStop((stats.elembg ? (stats.elembg) : 1));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3934 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_parent.stats.robe ? (_parent.stats.robe) : "none"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3943 MovieClip Frame 1
function Stuff() {
this.gotoAndStop(_parent._parent.stats.robe);
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3951 MovieClip Frame 1
function Stuff() {
this.gotoAndStop(_parent._parent.stats.eye);
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3957 MovieClip Frame 1
function Stuff() {
this.gotoAndStop((_root.conv.as.emState ? (_root.conv.as.emState) : "norm"));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3958 MovieClip Frame 1
function Stuff() {
stats = (_parent.STATS ? (_parent.STATS) : ((_parent.isPC ? (_root.PCstats_1) : ((_parent.ID ? (_root["PCstats_" + _parent.ID]) : ((_root.conv.as.cSpkr[2] ? ({face:_root.conv.as.cSpkr[2]}) : (_root.conv.SPEAKING.props.stats))))))));
head.hair.gotoAndStop(stats.face);
head.face.gotoAndStop(stats.face);
torso.gotoAndStop(stats.armour);
bg.gotoAndStop((stats.elembg ? (stats.elembg) : 1));
}
Stuff();
onEnterFrame = function () {
Stuff();
};
Symbol 3959 MovieClip [_portrait] Frame 1
with_avatar = {s_mardek:{t:"huM", face:"mardek", eyes:"blue", armour:"PlateMail"}, s_mardek_hero:{t:"huM", face:"mardek_hero", eyes:"brown", armour:"mardek_hero"}, s_deugan_hero:{t:"huM", face:"deugan_hero", eyes:"green", armour:"deugan_hero"}, s_mardek_child:{t:"child", face:1, eyes:"brown", armour:"Tunic"}, s_deugan_child:{t:"child", face:"deugan", eyes:"green", armour:"Tunic2"}, s_rm:{t:"child", face:1, eyes:"purelight", armour:"Tunic", elembg:"LIGHT"}, s_princess:{t:"huF", face:"princess", eyes:"blue", armour:"princess"}, s_lilanea:{t:"huF", face:"lilanea", eyes:"brown", armour:"Tunic"}, s_enki:{t:"huM", face:1, hair:"enki", eyes:"gold", eyebrows:"brown", armour:"NinevehnGi"}, s_woman:{t:"huF", face:1, eyes:"blue", armour:"Tunic"}, s_common:{t:"huM", face:1, eyes:"brown", armour:"Tunic"}, s_soldier:{t:"huM", face:"soldier", eyes:"blue", eyebrows:"black", armour:"Soldier"}, s_captain:{t:"huM", face:"1", hair:"jacques", eyes:"blue", eyebrows:"blonde", armour:"Soldier"}, s_man1:{t:"huM", face:"middleaged", hair:"man1", eyes:"brown", eyebrows:"brown", armour:"Tunic_Brown"}, s_man2:{t:"huM", face:2, eyes:"brown", armour:"BlackShirt"}, s_man3:{t:"huM", face:"oldaged", hair:"man3", eyes:"grey", eyebrows:"white", armour:"Tunic_Cream"}, s_woman2:{t:"huF", face:"middleaged", hair:"old1", eyes:"grey", eyebrows:"mousy", armour:"Tunic"}, s_woman3:{t:"huF", face:"oldaged", hair:"old", eyes:"grey", eyebrows:"grey", armour:"HempenRobe2"}, s_woman4:{t:"huF", face:1, hair:15, eyes:"blue", eyebrows:"brown", armour:"Tunic"}, s_boy:{t:"child", face:3, eyes:"brown", eyebrows:"blonde", armour:"Tunic_brown"}, s_derek:{t:"huM", face:"middleaged", hair:"derek", eyes:"grey", eyebrows:"brown", armour:"Blacksmith"}, s_polly:{t:"huF", face:"fat", hair:"polly", eyes:"blue", eyebrows:"blonde", armour:"polly"}, s_Ypriest:{t:"huM", face:6, eyes:"yalort", armour:"YalortianRobe"}, s_shaman:{t:"huM", face:"oldaged", hair:"shaman", eyes:"grey", eyebrows:"shaman", armour:"shaman"}, s_inventor:{t:"huM", face:1, hair:"inventor", eyes:"blue", eyebrows:"brown", armour:"inventor"}, s_socialfox:{t:"huM", face:"manly", hair:"socialfox", eyes:"green", eyebrows:"orange", armour:"HempenRobe"}, s_mugbert:{t:"child", face:"mugbert", eyes:"brown", eyebrows:"monobrow", armour:"mugbert"}, s_rohoph:{t:"Anu", robe:"L", eye:"L", elembg:"LIGHT"}, s_moric:{t:"Anu", robe:"black", eye:"green", elembg:"EARTH"}, s_qualna:{t:"Anu", robe:"red", eye:"red", elembg:"ETHER"}, s_balthazar:{t:"Anu", robe:"blue", eye:"blue", elembg:"WATER"}, s_gaspar:{t:"Anu", robe:"orange", eye:"orange", elembg:"FIRE"}, s_melchior:{t:"Anu", robe:"yellow", eye:"yellow", elembg:"AIR"}, s_anu:{t:"Anu", robe:"purple", eye:"purple", elembg:"DARK"}};
if (mystats) {
if (!with_avatar["s_" + mystats.model]) {
_visible = false;
}
STATS = with_avatar["s_" + mystats.model];
gotoAndStop ("none");
gotoAndStop(STATS.t);
_parent.elemglyph._visible = true;
_parent.elemglyph.beento = true;
_parent.elemglyph.gotoAndStop(mystats.element);
av.bg.gotoAndStop((STATS.elembg ? (STATS.elembg) : 1));
} else {
_parent.elemglyph._visible = false;
}
Symbol 3972 MovieClip [dialogue_box] Frame 1
_global.Console = function (msg, colour) {
_root.conv.as.SetMessage(msg, colour);
};
_global.GIVEQUEST = function (QuestID) {
var _local3 = true;
var _local2 = 0;
while (_local2 < _root.quests.length) {
if (_root.quests[_local2].ID == QuestID) {
_local3 = false;
break;
}
_local2++;
}
if (_local3) {
_root.quests.push({ID:QuestID, done:false});
Console(("Got the Quest '<b>" + _root.GetQuest(QuestID).title) + "'</b>.", "E4C377");
}
};
_global.DONEQUEST = function (QuestID) {
var _local2 = 0;
while (_local2 < _root.quests.length) {
if (_root.quests[_local2].ID == QuestID) {
_root.quests[_local2].done = true;
break;
}
_local2++;
}
};
_global.GIVEITEM = function (itemname, amount) {
_root.pickupItem(itemname, ((amount != undefined) ? (int(amount)) : 1), (itemname.name ? "wepn" : (_root.GetItemByName(itemname).type)));
Console((("Got <b>" + (itemname.name ? (itemname.name) : ((itemname.title ? (itemname.title) : (itemname))))) + "</b> x") + ((amount != undefined) ? (int(amount)) : 1), "00cc66");
};
_global.GIVEPLOTITEM = function (itemname) {
if (_root.plotVars.ITEMS == undefined) {
_root.plotVars.ITEMS = [];
}
_root.plotVars.ITEMS.push(itemname);
Console(("Got the Key Item '<b>" + itemname) + "'</b>.", "00cc66");
};
_global.TAKEITEM = function (itemname, num) {
_root.dropItem(itemname, null, null, num);
Console(("Lost the item '<b>" + _parent.speech[1]) + "'</b>.", "00cc66");
};
_global.TAKEPLOTITEM = function (itemname) {
var _local2 = 0;
while (_local2 < _root.plotVars.ITEMS.length) {
if ((_root.plotVars.ITEMS[_local2] = itemname)) {
_root.plotVars.ITEMS[_local2] = null;
}
_local2++;
}
Console(("Lost the key item '<b>" + itemname) + "'</b>.", "00cc66");
};
_global.GIVEGOLD = function (amount) {
_root.money = _root.money + amount;
Console(("Got <b>" + amount) + "</b> gold.", "ffff00");
};
_global.OPENSHOP = function (shopname, itemlist) {
_root.selInv = 1;
_root.inventory = _root.PCstats_1.inventory;
_root.shop = shopname;
_root.warez = new Array(24);
var _local2 = 0;
while (_local2 < itemlist.length) {
_root.warez[_local2] = {item:itemlist[_local2], amount:1};
_local2++;
}
_root.cont.PC.brain.StoreLocation();
_root.cont._visible = false;
_root.gotoAndStop("_SHOP_");
};
_global.OPENFORGE = function (forgename) {
_root.forgingNow = true;
OPENSHOP(forgename, []);
};
_global.OPENMFORGE = function (forgename) {
_root.forgingNow = "spell";
OPENSHOP(forgename, []);
};
_global.JOINPARTY = function (altSpeaker) {
if (altSpeaker != undefined) {
_root.conv.SPEAKING = altSpeaker;
}
var _local5 = _root.conv.SPEAKING.props;
var _local3 = _local5.PC_STATS;
_root.calculateStats(_local3);
var _local4 = _local5.level;
if (_local4 != undefined) {
var _local2 = 1;
while (_local2 < _local4) {
_root.LevelUp(_local3);
_local2++;
}
}
_root.calculateStats(_local3);
_root.Allies[_local3.name] = _local3;
_root.conv.SPEAKING.removeMovieClip();
if (((_root.PCstats_4.model == null) || (_root.PCstats_3.model == null)) || (_root.PCstats_2.model == null)) {
_root["PCstats_" + ((_root.PCstats_2.model == null) ? 2 : (((_root.PCstats_3.model == null) ? 3 : 4)))] = _local3;
_root.cont.PC.brain.lastMoves = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]];
_root.DrawParty(2, _root.cont.PC._x, _root.cont.PC._y);
}
};
_global.LEAVEPARTY = function (nom, x, y, dir, conv) {
if ((_root.PCstats_2.name != nom) && (_root.PCstats_3.name != nom)) {
return(undefined);
}
var _local3 = ((_root.PCstats_3.name == nom) ? 3 : 2);
var _local2 = _root.Clone(_root["PCstats_" + _local3]);
_local2.BONUS = {STR:0, VIT:0, SPR:0, AGL:0};
_root.Allies[_local2.name] = _local2;
_local2 = null;
_local2 = _root.Clone(_root["PCstats_" + _local3]);
if (x != null) {
_root.addSprite({name:nom, model:"s_" + _local2.model, stats:_local2, x:x, walkspeed:-1, y:y, counter:"NULL", dir:dir, conv:conv});
}
if ((_local3 == 2) && (_root.PCstats_3.model != null)) {
_root.PCstats_2 = _root.PCstats_3;
var _local5 = _root.PCstats_3.model;
_root.PCstats_3 = null;
_root.PCstats_2.model = _local5;
} else if (_local3 == 2) {
_root.PCstats_2 = null;
} else if (_local3 == 3) {
_root.PCstats_3 = null;
}
_root.cont.PC.brain.lastMoves = [[0, 0], [0, 0], [0, 0], [0, 0]];
_root.DrawParty(2, _root.cont.PC._x, _root.cont.PC._y);
};
_global.BATTLE = function (boss, altMusic, recurring, afteraction) {
if (_root.conv.SPEAKING.props.items != undefined) {
_root.monLoot = _root.conv.SPEAKING.props.items;
}
_root.cont.PC.brain.StoreLocation();
if (boss != undefined) {
_root.boss = boss;
}
_root.playMusic(((altMusic == undefined) ? "battle" : (((altMusic === 1) ? "boss" : (altMusic)))));
if (!loadedFlasher) {
_root.attachMovie("battle_trans", "battle_trans", 9999999);
loadedFlasher = true;
} else {
_root.battle_trans._visible = true;
_root.battle_trans.ctrl.count = 0;
}
if (!(recurring === null)) {
if (recurring) {
_root.defeatedBosses.push(boss[4]);
}
_root.spriteToKill = _root.conv.SPEAKING.brain;
}
if (afteraction == "TALK") {
_root.spriteAction = "TALK";
}
};
_global.SETVAR = function (varname, value) {
_root.plotVars[varname] = value;
};
_global.SETVAR2 = function (varpath, value) {
Set(varpath, value);
};
_global.GOTO_FRAME = function (frame) {
_root.cont.PC.brain.StoreLocation();
_root.FADER_.FadeTrans(frame, 1);
};
_global.EXEUNT = function (goneforever) {
_root.exeunt = true;
_root.fadeTrans.ctrl.active = true;
if (goneforever) {
_root.defeatedBosses.push(_parent.SPEAKING.props.name);
}
};
_global.DISAPPEAR = function () {
_root.conv.SPEAKING.removeMovieClip();
};
_global.EXEUNT_AND_LEAVEPARTY = function (nom) {
LEAVEPARTY(nom);
EXEUNT();
};
_global.SETLANG = function (lang) {
display = "";
this.gotoAndStop(lang);
};
_global.FIELD_PFX = function (effectname, target) {
target.attachMovie("fieldPFX", "pfx", 82000);
target.pfx.gotoAndStop(effectname);
target.pfx._x = target.pfx._width / 2;
target.pfx._y = target.pfx._height / 2;
};
_global.SETMUSIC = function (track) {
_root.playMusic(track);
};
_global.ALTSPEAKER = function (speakername) {
if (speakername == "THIS") {
_root.conv.as.cSpkr = "this";
_root.conv.NAME = _root.conv.SPEAKING.props.name;
} else {
var _local5;
var _local4;
var _local7;
var _local6;
if (_root.cont[speakername]) {
_local5 = _root.cont[speakername].props.model;
_local4 = _root.cont[speakername].props.stats.face;
_local7 = _root.cont[speakername].props.stats.eyes;
_local6 = _root.cont[speakername].props.element;
} else if (((_root.PCstats_2.name == speakername) || (_root.PCstats_3.name == speakername)) || (_root.PCstats_4.name == speakername)) {
var _local3 = ((_root.PCstats_4.name == speakername) ? 4 : (((_root.PCstats_3.name == speakername) ? 3 : 2)));
_local5 = _root["PCstats_" + _local3].model;
_local4 = _root["PCstats_" + _local3].face;
_local7 = _root["PCstats_" + _local3].eyes;
_local6 = _root["PCstats_" + _local3].element;
}
_root.conv.as.cSpkr = [speakername, _local5, _local4, _local7, _local6];
_root.conv.NAME = speakername;
}
};
_global.SET_SPEAKER = function (speaker_) {
_parent.avatar.av.bg.gotoAndStop(1);
if (speaker_ == "PC") {
_root.conv.SPEAKING = {props:{model:"s_" + _root.PCstats_1.model, element:_root.PCstats_1.element, stats:_root.PCstats_1}};
} else if (speaker_ == "RM") {
_root.conv.SPEAKING = {props:{model:"s_rm", elem:"LIGHT", stats:{model:"s_mardek_child", name:(_root.NoRohophName ? "Mardek?" : "Rohoph")}}};
_parent.avatar.av.bg.gotoAndStop("LIGHT");
} else if (speaker_ == _root.PCstats_2.name) {
_root.conv.SPEAKING = {props:{model:"s_" + _root.PCstats_2.model, elem:_root.PCstats_2.element, stats:_root.PCstats_2}};
} else if (speaker_ == _root.PCstats_3.name) {
_root.conv.SPEAKING = {props:{model:"s_" + _root.PCstats_3.model, elem:_root.PCstats_3.element, stats:_root.PCstats_3}};
} else if (speaker_ == _root.PCstats_4.name) {
_root.conv.SPEAKING = {props:{model:"s_" + _root.PCstats_4.model, elem:_root.PCstats_4.element, stats:_root.PCstats_4}};
} else {
_root.conv.SPEAKING = _root.cont[speaker_];
}
};
_global.FACE_DIR = function (face_dir) {
var _local2 = "s";
if (face_dir == "PC") {
if (_root.conv.SPEAKING._x < _root.cont.PC._x) {
_local2 = "e";
} else if (_root.conv.SPEAKING._x > _root.cont.PC._x) {
_local2 = "w";
} else if (_root.conv.SPEAKING._y > _root.cont.PC._y) {
_local2 = "n";
}
} else {
_local2 = face_dir;
}
_root.conv.SPEAKING.model.gotoAndStop(_local2 + "1");
};
_global.GETMAP = function (map) {
if (!_root.HasMap()) {
_root.plotVars.Maps.push(map);
}
};
_global.HEAL = function () {
var _local2 = 1;
while (_local2 <= 3) {
_root["PCstats_" + _local2].hp[1] = _root["PCstats_" + _local2].hp[0];
_root["PCstats_" + _local2].mp[1] = _root["PCstats_" + _local2].mp[0];
_root.RemoveSTFX(_root["PCstats_" + _local2], "ALL");
_local2++;
}
_root.Flash(_root, [150, 255, 255]);
_root.playSFX("Cure");
Console("HP and MP fully restored!", "96FFFF");
};
_global.DIE = function () {
_root.plotVars.murders.push([_root.conv.SPEAKING.props.ID, _root.areaID]);
_root.conv.SPEAKING.brain.dying = true;
_root.Flash(_root.conv.SPEAKING.model, [255, 0, 0]);
};
_global.END = function () {
_root.conv.as.EndDialogue();
};
_global.DO_ACTIONS = function (actions, target, freeze) {
var _local4 = ((target != undefined) ? (_root.cont[target]) : (_root.conv.SPEAKING));
if (freeze) {
_root.freeze = true;
actions.push(["UNFREEZE"]);
}
var _local2 = 0;
while (_local2 < actions.length) {
_local4.brain.actions.push(actions[_local2]);
_local2++;
}
};
_global.TRANS = function (area, x, y, warp) {
_root.mapLoaded = false;
_root.spawnLoc = [x, y];
_root.nextArea = area;
if (warp) {
_root.WarpTrans();
_root.teleportingIN = true;
} else {
_root.fadeTrans.ctrl.active = true;
}
};
_global.CUT_TRANS = function (cutscene) {
_root.mapLoaded = false;
_root.nextArea = cutscene;
_root.fadeTrans.ctrl.active = true;
_root.fadeTrans.ctrl.fadeToCut = true;
};
_global.PC_GENDER = function () {
return(substring(_root.PCstats_1.model, 7, 1));
};
stop();
Instance of Symbol 2864 MovieClip "elemglyph" in Symbol 3972 MovieClip [dialogue_box] Frame 1
onClipEvent (load) {
if (_parent.avatar.mystats.element == null) {
_visible = false;
}
}
Instance of Symbol 3959 MovieClip [_portrait] "avatar" in Symbol 3972 MovieClip [dialogue_box] Frame 1
onClipEvent (load) {
if (_parent.as.cSpkr != "this") {
_parent.NAME = _parent.as.cSpkr[0];
mystats = {model:_parent.as.cSpkr[1], element:_parent.as.cSpkr[4]};
ID = _parent.as.cSpkr[2];
} else {
var P = _parent.SPEAKING.props;
_parent.NAME = (P.name ? (P.name) : ((P.stats.name ? (P.stats.name) : "ERROR")));
mystats = {model:substring(P.model, 3, -1), element:P.elem};
}
}
Instance of Symbol 524 MovieClip [empty] "as" in Symbol 3972 MovieClip [dialogue_box] Frame 1
onClipEvent (load) {
function SetMessage(msg, colour) {
_parent.Message2 = ((("<font color='#" + colour) + "'>") + msg) + "</font>";
_parent.Message = msg;
msgDelay = 30;
}
function FilteredText1(text) {
var _local2 = _root.replaceChar(text, ["&", "@", "#", "$", "%", "\u013F", "\u0100"], ["<font color='#00cccc'>", "<font color='#00ff00'>", "<font color='#ff0000'>", "<font color='#FEDB74'>", "</font>", "<font face=\"D Lingon\" color=\"#23ED74\">", "<font color='#ffff77'>"]);
return(_local2);
}
function FilteredText0(text) {
var _local2 = _root.replaceChar(text, ["&", "@", "#", "$", "%", "\u013F", "\u0100"], ["", "", "", "", "", "", ""]);
return(_local2);
}
function FilteredText2(text) {
var _local4 = "" + text;
var _local2 = 0;
while (_local2 < (_local4.length - 3)) {
if ((substring(_local4, _local2, 4)) == "<PC>") {
_local4 = ((substring(_local4, 0, _local2 - 1)) + _root.PC_NAME) + (substring(_local4, _local2 + 4, -1));
_local2 = 0;
}
var _local5 = [["<him>", "him", "her", "it"], ["<Him>", "Him", "Her", "It"], ["<he>", "he", "she", "it"], ["<He>", "He", "She", "It"], ["<son>", "son", "daughter", "child"], ["<sir>", "sir", "ma'am", "sir"], ["<Sir>", "Sir", "Ma'am", "Sir"], ["<Mr>", "Mr", "Miss", "Mr"], ["<man>", "man", "woman", "thing"], ["<boy>", "boy", "girl", "thing"], ["<lad>", "lad", "lass", "thing"]];
var _local3 = 0;
while ((_local3 < _local5.length) && (_local2 != 0)) {
if ((substring(_local4, _local2, _local5[_local3][0].length)) == _local5[_local3][0]) {
_local4 = ((substring(_local4, 1, _local2 - 1)) + _local5[_local3][((_root.PCstats_1.model == "dyn_huF") ? 2 : 1)]) + (substring(_local4, _local2 + _local5[_local3][0].length, -1));
_local2 = 0;
}
_local3++;
}
_local2++;
}
return(_local4);
}
function ShowOptions(options) {
_parent.gotoAndStop("mres");
emState = "norm";
for (o in Responses) {
Responses[o].removeMovieClip();
}
var _local2 = 0;
while (_local2 < options.length) {
var _local3 = "re_" + _local2;
_parent.Responses.attachMovie("conv_response", _local3, 10 + _local2);
_parent.Responses[_local3]._y = 15 * _local2;
_parent.Responses[_local3].text = ((_local2 + 1) + ". ") + FilteredText1(options[_local2].T);
_parent.Responses[_local3].ID = _local2 + 1;
_parent.Responses[_local3].link = options[_local2].goto;
_parent.Responses[_local3].em = options[_local2].em;
_local2++;
}
}
function StartTalking(speech) {
var _local3 = FilteredText2(speech);
if ((substring(_local3, 1, 2)) == "[[") {
var _local4 = 0;
var _local2 = 1;
while ((_local2 <= _local3.length) && (_local4 == 0)) {
if ((substring(_local3, _local2, 2)) == "]]") {
_local4 = _local2;
}
_local2++;
}
var _local5 = substring(_local3, 3, _local4 - 3);
_local3 = substring(_local3, _local4 + 2, -1);
SET_SPEAKER(_local5);
}
_parent.gotoAndStop("nullavatar");
_parent.gotoAndStop((((substring(_local3, 1, 3)) == "PC:") ? "PCtalk" : 1));
_parent.elemglyph.gotoAndStop("empty");
toShow = (((substring(_local3, 1, 3)) == "PC:") ? (substring(_local3, 4, -1)) : (_local3));
_parent.display = "";
_parent.display2 = "";
_parent._visible = true;
_parent.clickarea.keyD = true;
}
function EndDialogue() {
if (!_root.justSpoke) {
_root.justSpoke = 10;
}
_root._quality = "LOW";
_parent.Message = "";
cSpkr = "this";
_parent._visible = false;
dialogue = undefined;
emState = "norm";
_parent.gotoAndStop("nullavatar");
_root.conv.theConv.removeMovieClip();
}
function QuickShowMsg() {
keyD = true;
_parent.display = _parent.display + FilteredText1(toShow);
_parent.display2 = _parent.display2 + FilteredText0(toShow);
toShow = "";
xDown = true;
}
_parent._visible = false;
xDown = false;
msgDelay = 0;
cSpkr = "this";
}
onClipEvent (enterFrame) {
if (_root.CHAPTER_THING._visible) {
return(undefined);
}
if (_parent.Message != "") {
msgDelay--;
if (msgDelay <= 0) {
_parent.Message = "";
_parent.Message2 = "";
}
}
if (toShow.length > 0) {
var ch = (substring(toShow, 1, _root.msgSpeed));
_parent.display = _parent.display + FilteredText1(ch);
_parent.display2 = _parent.display2 + FilteredText0(ch);
toShow = substring(toShow, _root.msgSpeed + 1, -1);
return(undefined);
}
}
Instance of Symbol 3969 MovieClip "XKEY" in Symbol 3972 MovieClip [dialogue_box] Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (_parent.as.toShow.length == 0);
}
Instance of Symbol 3971 MovieClip "clickarea" in Symbol 3972 MovieClip [dialogue_box] Frame 1
onClipEvent (load) {
function Action() {
if (_root.freeze) {
return(undefined);
}
if ((_parent.display != "") && (_parent.as.toShow.length == 0)) {
_root.CURSOR_.gotoAndStop(1);
_root.conv.theConv.nextFrame();
return(undefined);
}
if (_parent.as.toShow.length <= 0) {
return(undefined);
}
_parent.as.QuickShowMsg();
}
keyD = true;
}
onClipEvent (enterFrame) {
if ((!keyD) && (Key.isDown(88))) {
keyD = true;
Action();
} else if (keyD && (!Key.isDown(88))) {
keyD = false;
}
}
on (press) {
Action();
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("continue");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop(1);
}
Instance of Symbol 3959 MovieClip [_portrait] "avatar" in Symbol 3972 MovieClip [dialogue_box] Frame 2
onClipEvent (load) {
_parent.NAME = _root.PCstats_1.name;
mystats = _root.PCstats_1;
this.isPC = 1;
}
Instance of Symbol 3959 MovieClip [_portrait] "avatar" in Symbol 3972 MovieClip [dialogue_box] Frame 3
onClipEvent (load) {
_parent.NAME = _root.PCstats_1.name;
mystats = _root.PCstats_1;
this.isPC = 1;
}
Symbol 3984 MovieClip [MENU_btn] Frame 1
NAME = (truename ? (truename) : (_name));
onEnterFrame = function () {
NAME = (truename ? (truename) : (_name));
};
if (!noRoll) {
onRollOver = function () {
if (!noRoll) {
_root.playSFX("button1");
this.gotoAndStop("lit");
}
if (AlsoRollOver) {
AlsoRollOver();
}
};
onRollOut = function () {
if (!noRoll) {
this.gotoAndStop(1);
}
if (AlsoRollOut) {
AlsoRollOut();
}
};
onRelease = (onReleaseOutside = function () {
});
}
if (Trigger != null) {
onPress = Trigger;
}
stop();
Symbol 3984 MovieClip [MENU_btn] Frame 4
stop();
Symbol 3984 MovieClip [MENU_btn] Frame 7
gotoAndStop (1);
Symbol 3994 MovieClip Frame 2
gotoAndPlay (1);
Symbol 3997 MovieClip [MENU] Frame 1
stop();
if (!initialised) {
fading = 0;
signpost_delay = 0;
keyD = false;
initialised = true;
}
onEnterFrame = function () {
if (keyD && (!Key.isDown(13))) {
keyD = false;
}
if ((signpost_delay > 0) && (fading == 0)) {
signpost_delay--;
if (signpost_delay == 45) {
fading = 1;
}
if (Key.isDown(13)) {
signpost_delay = 0;
gotoAndStop (1);
keyD = true;
return(undefined);
}
if (signpost_delay == 0) {
fading = -1;
}
}
if (((_visible && (fading == 0)) && (Key.isDown(13))) && (!keyD)) {
fading = -1;
keyD = true;
}
if (fading != 0) {
if (fading == 1) {
cursor.pos = 0;
cursor.Alter(0);
_alpha = (_alpha + 25);
if (_alpha >= 100) {
_quality = "MEDIUM";
_alpha = 100;
fading = 0;
}
}
if (fading == -1) {
if ((!_root.conv._visible) && (!_root.battling)) {
_quality = "LOW";
}
_alpha = (_alpha - 25);
if (_alpha <= 0) {
_alpha = 0;
fading = 0;
_visible = false;
}
}
}
};
Instance of Symbol 3984 MovieClip [MENU_btn] "Party" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("_Party", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Inventory" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("M_Inventory", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Quests" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("M_Quests", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Options" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("OPTIONS", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Status" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("M_Status", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Save" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("M_File", 1);
}
Instance of Symbol 524 MovieClip [empty] "decider1" in Symbol 3997 MovieClip [MENU] Frame 1
onClipEvent (enterFrame) {
_parent.areaname = _root.areaname;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Map" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans(((_root.areaname == "WORLDMAP") ? "_Map" : "_Map2"), 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Skills" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("M_Skills", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Encyclopaedia" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("ENCYCLOPAEDIA", 1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Help" in Symbol 3997 MovieClip [MENU] Frame 1
on (press) {
_root.FADER_.FadeTrans("HELPINDEX", 1);
}
Instance of Symbol 3994 MovieClip "clock_" in Symbol 3997 MovieClip [MENU] Frame 1
onClipEvent (enterFrame) {
H = _root.playtime[0];
M = _root.playtime[1];
S = _root.playtime[2];
if (H < 10) {
H = "0" + H;
}
if (M < 10) {
M = "0" + M;
}
if (S < 10) {
S = "0" + S;
}
}
Symbol 4015 MovieClip Frame 1
stop();
return(undefined);
Symbol 4021 MovieClip Frame 1
stop();
Instance of Symbol 1026 MovieClip [ITEM_] "item" in Symbol 4021 MovieClip Frame 4
onClipEvent (enterFrame) {
AMOUNT = (((_root.DItem[1] == 1) || (_root.DItem[1] == null)) ? "" : (_root.DItem[1]));
}
Instance of Symbol 1064 MovieClip [castSparkle] "sparkle" in Symbol 4021 MovieClip Frame 5
onClipEvent (load) {
}
Symbol 4024 Button
on (release) {
getURL ("http://www.fighunter.com/?page=donate", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4027 Button
on (release) {
getURL ("http://www.fighunter.com/", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4032 Button
on (release) {
getURL ("http://pseudolonewolf.deviantart.com/", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4035 Button
on (release) {
getURL ("http://yalort.fighunter.com/", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4042 Button
on (release) {
getURL ("http://www.fighunter.com/games/MARDEK", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4044 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Instance of Symbol 4049 MovieClip in Symbol 4051 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 0.2);
if (_x <= -865) {
_x = (_x + 865);
}
}
Symbol 4105 MovieClip Frame 1
stop();
Symbol 4108 MovieClip Frame 1
stop();
Symbol 4109 Button
on (release) {
getURL ("http://pseudolonewolf.deviantart.com/", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4114 Button
on (release) {
getURL ("http://www.crazymonkeygames.com/", "_blank");
}
on (rollOver) {
_root.CURSOR_.gotoAndStop("arrow2");
}
on (rollOut) {
_root.CURSOR_.gotoAndStop("arrow");
}
Symbol 4122 MovieClip Frame 1
stop();
onRollOver = function () {
this.gotoAndStop(2);
};
onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 4125 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 4131 MovieClip Frame 1
stop();
Symbol 4168 MovieClip Frame 1
stop();
Symbol 4190 MovieClip Frame 1
function ShowStats(stats) {
p = stats;
_root.calculateStats(p);
name = p.name;
HPbar.gotoAndStop((100 - int((p.hp[1] / p.hp[0]) * 100)) + 1);
MPbar.gotoAndStop((100 - int((p.mp[1] / p.mp[0]) * 100)) + 1);
CTbar.gotoAndStop((100 - int(p.CT)) + 1);
EXPbar.gotoAndStop((100 - int((p.exp / (p.level * 1000)) * 100)) + 1);
HP_ = (p.hp[1] + "/") + p.hp[0];
MP_ = (p.mp[1] + "/") + p.mp[0];
CT_ = int(p.CT) + "/100";
EXP_ = (p.exp + "/") + (p.level * 1000);
level = "Lv: " + p.level;
classname = p.Class;
elemthing.gotoAndStop(p.element);
stats = ["STR", "VIT", "SPR", "AGL", "ATK", "DEF"];
var _local3 = 0;
while (_local3 < stats.length) {
this[stats[_local3]] = p[stats[_local3]];
_local3++;
}
avatar.F = p.model;
}
ID = substring(_name, 2, 1);
var S = _root["PCstats_" + ID];
_alpha = ((S.model == null) ? 0 : 100);
stop();
ShowStats(S);
onRollOver = function () {
this.gotoAndStop(2);
};
onRollOut = function () {
this.gotoAndStop(1);
};
onPress = function () {
_root.S_ID = ID;
_root.Sstats = _root["PCstats_" + ID];
_root.FADER_.FadeTrans("_Status");
};
Instance of Symbol 3959 MovieClip [_portrait] "avatar" in Symbol 4190 MovieClip Frame 1
onClipEvent (load) {
mystats = _parent.p;
}
Symbol 4271 MovieClip Frame 1
function ShowStats(stats) {
p = stats;
calculateStats(p);
name = p.name;
HPbar.gotoAndStop((100 - int((p.hp[1] / p.hp[0]) * 100)) + 1);
MPbar.gotoAndStop((100 - int((p.mp[1] / p.mp[0]) * 100)) + 1);
CTbar.gotoAndStop((100 - int(p.CT)) + 1);
EXPbar.gotoAndStop((100 - int((p.exp / (p.level * 1000)) * 100)) + 1);
HP_ = (p.hp[1] + "/") + p.hp[0];
MP_ = (p.mp[1] + "/") + p.mp[0];
CT_ = int(p.CT) + "/100";
EXP_ = (p.exp + "/") + (p.level * 1000);
level = "Lv: " + p.level;
classname = p.Class;
elemthing.gotoAndStop(p.element);
stats = ["STR", "VIT", "SPR", "AGL", "ATK", "DEF"];
var _local2 = 0;
while (_local2 < stats.length) {
this[stats[_local2]] = p[stats[_local2]];
_local2++;
}
avatar.F = p.model;
}
function DisplayStats(stats) {
if (_alpha == 100) {
changing = stats;
fading = -1;
} else {
ShowStats(stats);
fading = 1;
}
if (_root.menu_pin._visible) {
_root.m_MENU.fading = fading;
}
}
_alpha = 0;
changing = null;
stop();
onEnterFrame = function () {
Stuff();
if (fading != 0) {
_alpha = (_alpha + (40 * fading));
if (_alpha <= 0) {
_alpha = 0;
fading = 0;
if (changing != null) {
ShowStats(changing);
changing = null;
fading = 1;
if (_root.menu_pin._visible) {
_root.m_MENU.fading = fading;
}
}
}
if (_alpha >= 100) {
_alpha = 100;
fading = 0;
}
}
};
Instance of Symbol 3959 MovieClip [_portrait] "avatar" in Symbol 4271 MovieClip Frame 1
onClipEvent (load) {
function AvatarCheck() {
this.gotoAndStop("s_" + (F ? (F) : (_parent.p.model)));
}
AvatarCheck();
}
onClipEvent (enterFrame) {
AvatarCheck();
}
Symbol 4271 MovieClip Frame 6
stop();
Symbol 4273 MovieClip Frame 1
_alpha = 0;
changing = null;
stop();
onEnterFrame = function () {
if (fading != 0) {
_alpha = (_alpha + (40 * fading));
if (_alpha <= 0) {
_alpha = 0;
fading = 0;
}
if (_alpha >= 100) {
_alpha = 100;
fading = 0;
}
}
};
Instance of Symbol 3984 MovieClip [MENU_btn] "Status" in Symbol 4273 MovieClip Frame 1
on (press) {
_root.MENU2.gotoAndStop(2);
_root.MENU2.gotoAndStop("STATUS");
_root.MENU2.fading = 1;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Abilities" in Symbol 4273 MovieClip Frame 1
on (press) {
_root.MENU2.gotoAndStop(2);
_root.MENU2.gotoAndStop("ABILITIES");
_root.MENU2.fading = 1;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Equip" in Symbol 4273 MovieClip Frame 1
on (press) {
_root.MENU2.gotoAndStop(2);
_root.MENU2.gotoAndStop("EQUIP");
_root.MENU2.fading = 1;
}
Symbol 4284 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 4301 MovieClip Frame 1
_alpha = 0;
changing = null;
nextFrame();
onEnterFrame = function () {
if (fading != 0) {
_alpha = (_alpha + (40 * fading));
if (_alpha <= 0) {
_alpha = 0;
fading = 0;
gotoAndStop (2);
}
if (_alpha >= 100) {
_alpha = 100;
fading = 0;
}
}
};
Symbol 4301 MovieClip Frame 3
function ShowSkills() {
for (o in A_list) {
A_list[o].removeMovieClip();
}
var _local5 = _root.GetTechInfo(_root.classStats[_root.SELECTED.stats.model].tech).skills;
var _local7 = 0;
var _local4 = 0;
while (_local4 < _local5.length) {
var _local3 = "A" + _local4;
A_list.attachMovie("B_AbilityThing", _local3, 100 + _local4);
A_list[_local3]._y = _local7 * 20;
A_list[_local3].ability = _local5[_local4].skill;
A_list[_local3].mp = _local5[_local4].MP;
A_list[_local3].elem.gotoAndStop(_local5[_local4].elem);
A_list[_local3].skill = _local5[_local4];
if (_root.SELECTED.stats.learned[_local5[_local4].skill] >= _local5[_local4].AP) {
A_list[_local3].MASTERED._visible = true;
A_list[_local3].APbar._visible = false;
A_list[_local3].AP = "";
} else {
A_list[_local3].MASTERED._visible = false;
var _local6 = _root.SELECTED.stats.learned[_local5[_local4].skill];
A_list[_local3].APbar.gotoAndStop((100 - int((_local6 / _local5[_local4].AP) * 100)) + 1);
A_list[_local3].AP = (_local6 + "/") + _local5[_local4].AP;
}
A_list[_local3].onRollOver = function () {
this.gotoAndStop(2);
_root.MENU2.SkillName = this.skill.skill;
_root.MENU2.SkillDesc = this.skill.desc;
_root.MENU2.skillElem.gotoAndStop(this.skill.elem);
_root.MENU2.skillElem._visible = true;
};
A_list[_local3].onRollOut = function () {
this.gotoAndStop(1);
_root.MENU2.SkillName = "-";
_root.MENU2.SkillDesc = "-";
_root.MENU2.skillElem._visible = false;
};
_local7++;
_local4++;
}
skillElem._visible = false;
SkillName = "-";
SkillDesc = "-";
TechName = _root.classStats[_root.SELECTED.stats.model].tech;
TechDesc = _root.GetTechInfo(_root.classStats[_root.SELECTED.stats.model].tech).desc;
}
ShowSkills();
Instance of Symbol 4284 MovieClip in Symbol 4301 MovieClip Frame 3
on (press) {
_parent.fading = -1;
}
Symbol 4301 MovieClip Frame 4
function ShowEquipment() {
_root.calculateStats(_root.SELECTED.stats);
slots = ["weapon", "shield", "helmet", "armour", "accessory", "accessory2"];
var _local3 = 0;
while (_local3 < slots.length) {
var _local4 = _root.SELECTED.stats[slots[_local3]];
this[slots[_local3]].amount = "";
this[slots[_local3]].item = ((_local4 == "none") ? "-" : (_local4));
this[slots[_local3]].img.AMOUNT = "";
this[slots[_local3]].img.gotoAndStop(((_local4 == "none") ? "none" : (_root.GetItemInfo(_local4).type)));
this[slots[_local3]].img.img.gotoAndStop(_local4);
this[slots[_local3]].onRollOver = function () {
this.gotoAndStop(2);
};
this[slots[_local3]].onRollOut = function () {
this.gotoAndStop(1);
};
this[slots[_local3]].onPress = function () {
this._parent.SLOT_.sel.gotoAndStop(1);
this.sel.gotoAndStop(2);
this._parent.SLOT_ = this;
this._parent.ShowStockItems();
};
_local3++;
}
RefreshStats();
}
function ShowStockItems() {
var _local12 = {weapon:"wepn", shield:"shld", helmet:"helm", armour:"armr", accessory:"accs", accessory2:"accs"};
for (o in SI_List) {
SI_List[o].removeMovieClip();
}
var _local14 = 0;
var _local13 = [{item:"none", amount:""}].concat(_root.inventory);
var _local6 = 0;
while (_local6 < _local13.length) {
var _local5 = _local13[_local6];
if ((_root.GetItemInfo(_local5.item).type != _local12[SLOT_._name]) && (_local5.item != "none")) {
} else {
var _local3 = "I" + _local6;
SI_List.attachMovie("B_ItemThing", _local3, 100 + _local6);
SI_List[_local3]._y = 20 * _local14;
_local14++;
SI_List[_local3].item = ((_local5.item == "none") ? "-" : (_local5.item));
SI_List[_local3].ITEM_ = _local5.item;
SI_List[_local3].amount = _local5.amount;
SI_List[_local3].img.gotoAndStop(((_local5.item == "none") ? "none" : (_local12[SLOT_._name])));
SI_List[_local3].img.img.gotoAndStop(_local5.item);
SI_List[_local3].ID = _local6 - 1;
SI_List[_local3].onRollOver = function () {
if (_root.MENU2.SLOT_._name == "weapon") {
var _local3 = _root.MENU2.ATK;
var _local4 = _root.GetItemInfo(this.ITEM_).pow;
_root.MENU2.ATK = ((_local4 > _local3) ? (("<font color='#66ddff'>" + _local4) + "</font>") : (((_local4 < _local3) ? (("<font color='#ff6666'>" + _local4) + "</font>") : (_local4))));
} else {
var _local3 = _root.GetItemInfo(_root.SELECTED.stats[_root.MENU2.SLOT_._name]).def;
var _local4 = _root.GetItemInfo(this.ITEM_).def;
var _local5 = (_root.MENU2.DEF - _local3) + _local4;
_root.MENU2.DEF = ((_local4 > _local3) ? (("<font color='#66ddff'>" + _local5) + "</font>") : (((_local4 < _local3) ? (("<font color='#ff6666'>" + _local5) + "</font>") : (_local5))));
}
this.gotoAndStop(2);
};
SI_List[_local3].onRollOut = function () {
_root.MENU2.RefreshStats();
this.gotoAndStop(1);
};
SI_List[_local3].onPress = function () {
var _local5 = _root.SELECTED.stats[_root.MENU2.SLOT_._name];
_root.SELECTED.stats[_root.MENU2.SLOT_._name] = this.ITEM_;
if (_local5 != "none") {
var _local4 = 0;
var _local3 = 0;
while ((_local3 < _root.inventory.length) && (!_local4)) {
if (_root.inventory[_local3].item == _local5) {
_root.inventory[_local3].amount++;
_local4 = 1;
}
_local3++;
}
if (!_local4) {
_root.inventory.push({item:_local5, amount:1});
}
}
_root.inventory[this.ID].amount--;
if (_root.inventory[this.ID].amount <= 0) {
_root.inventory[this.ID] = null;
}
_root.MENU2.ShowEquipment();
_root.MENU2.SLOT_.sel.gotoAndStop(1);
_root.MENU2.ClearStockItems();
};
}
_local6++;
}
}
function ClearStockItems() {
for (o in SI_List) {
SI_List[o].removeMovieClip();
}
}
function RefreshStats() {
var _local4 = ["STR", "VIT", "SPR", "AGL", "ATK", "DEF"];
var _local3 = 0;
while (_local3 < _local4.length) {
this[_local4[_local3]] = _root.SELECTED.stats[_local4[_local3]];
_local3++;
}
}
ShowEquipment();
RefreshStats();
SLOT_ = null;
Symbol 4315 MovieClip Frame 1
stop();
Instance of Symbol 4313 MovieClip "bonus" in Symbol 4315 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
this.swapDepths(2000);
}
onClipEvent (enterFrame) {
this.swapDepths(2000);
}
Symbol 4335 MovieClip Frame 1
stop();
Symbol 4345 MovieClip Frame 1
NAME = _root["PCstats_" + ID].name;
_visible = (_root["PCstats_" + ID].model != null);
if (!_visible) {
gotoAndStop (10);
}
stop();
stop();
onEnterFrame = function () {
if (base._currentframe != 2) {
base.gotoAndStop(((_root[(((substring(ID, 1, 1)) == "e") ? (ID) : ("p" + ID))].pulsate == true) ? "target" : 1));
}
if (NULLED || (!_visible)) {
return(undefined);
}
if (Key.isDown(76)) {
NAME = "Level: " + _root["PCstats_" + ID].level;
} else if (Key.isDown(88)) {
NAME = (("XP:" + _root["PCstats_" + ID].exp) + "/") + (_root["PCstats_" + ID].level * 1000);
} else if (Key.isDown(72)) {
NAME = "HP:" + ((_root["PCstats_" + ID].hp[0] > 9999) ? "????" : ((_root["PCstats_" + ID].hp[1] + "/") + _root["PCstats_" + ID].hp[0]));
} else if (Key.isDown(77)) {
NAME = (("MP:" + _root["PCstats_" + ID].mp[1]) + "/") + _root["PCstats_" + ID].mp[0];
} else {
NAME = _root["PCstats_" + ID].name;
}
};
Instance of Symbol 4168 MovieClip "elemthing" in Symbol 4345 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root["PCstats_" + ID].element);
}
Instance of Symbol 3448 MovieClip [status_fx] in Symbol 4345 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
count++;
if (count >= 30) {
count = 0;
id++;
}
if (id >= _root["PCstats_" + _parent.ID].status.length) {
id = 0;
}
this.gotoAndStop(((_root["PCstats_" + _parent.ID].status[id] == null) ? "none" : (_root["PCstats_" + _parent.ID].status[id])));
}
count = 0;
id = 0;
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4177 MovieClip "MPbar" in Symbol 4345 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
this.gotoAndStop((100 - int((_root["PCstats_" + _parent.ID].exp / (_root["PCstats_" + _parent.ID].level * 1000)) * 100)) + 1);
}
Stuff();
_visible = false;
}
onClipEvent (enterFrame) {
Stuff();
_visible = Key.isDown(88);
}
Instance of Symbol 4149 MovieClip "HPbar" in Symbol 4345 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
_parent.elemthing.gotoAndStop((_root["PCstats_" + _parent.ID].element ? (_root["PCstats_" + _parent.ID].element) : "none"));
_parent.elemglyph.gotoAndStop((_root["PCstats_" + _parent.ID].element ? (_root["PCstats_" + _parent.ID].element) : "none"));
_parent.HP_ = ((_root["PCstats_" + _parent.ID].hp[0] > 9999) ? "????" : (_root["PCstats_" + _parent.ID].hp[1]));
this.gotoAndStop(int(100 - ((_root["PCstats_" + _parent.ID].hp[1] / _root["PCstats_" + _parent.ID].hp[0]) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4156 MovieClip "MPbar" in Symbol 4345 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
_parent.MP_ = _root["PCstats_" + _parent.ID].mp[1];
this.gotoAndStop(int(100 - ((_root["PCstats_" + _parent.ID].mp[1] / _root["PCstats_" + _parent.ID].mp[0]) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 3429 MovieClip [empty] "charmodel" in Symbol 4345 MovieClip Frame 1
onClipEvent (load) {
this.attachMovie("s_" + _root["PCstats_" + _parent.ID].model, "mdl", 10);
mdl._width = (mdl._height = 30);
mdl._x = (mdl._y = 0);
f = 1;
delay = 0;
mdl.gotoAndStop("s" + f);
mdl.stats = _root["PCstats_" + _parent.ID];
}
onClipEvent (enterFrame) {
hpPerc = int((_root["PCstats_" + _parent.ID].hp[1] / _root["PCstats_" + _parent.ID].hp[0]) * 100);
if (hpPerc <= 10) {
mdl.gotoAndStop("hurt");
return(undefined);
}
delay++;
if (delay > (55 - int(hpPerc / 2))) {
f = (!(f - 1)) + 1;
mdl.gotoAndStop("s" + f);
delay = 0;
}
}
Symbol 4383 Button
on (press, keyPress "<Down>") {
text_box.scroll++;
}
Symbol 4384 Button
on (press, keyPress "<Up>") {
text_box.scroll--;
}
Instance of Symbol 2864 MovieClip in Symbol 4397 MovieClip Frame 1
onClipEvent (load) {
function Shift() {
_visible = (_parent.ELEM != undefined);
this.gotoAndStop(_parent.ELEM);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 4397 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (_parent.ITEMNAME != "-");
this.gotoAndStop(_root.GetItemInfo(_parent.ITEMNAME).type);
this.img.gotoAndStop(_parent.ITEMNAME);
AMOUNT = "";
}
Symbol 4397 MovieClip Frame 2
var sa = ["STR", "VIT", "SPR", "AGL"];
var i = 0;
while (i < 4) {
var v = int(_root["PCstats_" + _root.PCsel_][sa[i]]);
this[sa[i]] = (v ? (((("<font color='" + ((_root["PCstats_" + _root.PCsel_].BONUS[sa[i]] > 0) ? "#88ff88" : (((_root["PCstats_" + _root.PCsel_].BONUS[sa[i]] < 0) ? "#EF2E2E" : "#E8E2C6")))) + "'>") + v) + "</font>") : "-");
var s = _root["PCstats_" + _root.PCsel_].BONUS[sa[i]];
if (v && (s)) {
this[sa[i] + "bonus"] = ((s == 0) ? "" : ((((s > 0) ? "<font color='#00ddff'>+" : "<font color='#cc5555'>") + s) + "</font>"));
} else {
this[sa[i] + "bonus"] = "";
}
i++;
}
var aTypes = _root.ARMOUR_TYPES;
can_equip = ("" + _root.classStats[_root["PCstats_" + _root.PCsel_].model].wpnType) + newline;
for (a in aTypes) {
if (_root.classStats[_root["PCstats_" + _root.PCsel_].model].amrTypes[a]) {
can_equip = can_equip + (aTypes[a] + newline);
}
}
Instance of Symbol 4345 MovieClip in Symbol 4397 MovieClip Frame 2
onClipEvent (load) {
ID = _root.PCsel_;
}
Instance of Symbol 3429 MovieClip [empty] "aList" in Symbol 4397 MovieClip Frame 5
onClipEvent (load) {
function Refresh() {
for (o in this) {
this[o].removeMovieClip();
}
if (_root.RItem == undefined) {
return(undefined);
}
var _local5 = _root.GetItemInfo(_root.RItem);
var _local4 = 0;
while (_local4 < _local5.skills.length) {
var _local6 = _root["PCstats_" + _root.selInv].learned[_local5.skills[_local4][1]];
if (_local6 == null) {
_local6 = 0;
}
var _local7 = _root.GetSkillInfo(_local5.skills[_local4][0], _local5.skills[_local4][1]);
var _local3 = "s" + _local4;
this.attachMovie("B_AbilityThing2", _local3, _local4 + 10);
this[_local3]._y = 20 * _local4;
this[_local3].ability = _local5.skills[_local4][1];
this[_local3].techtype = _root.GetTechInfo(_local5.skills[_local4][0]).name;
this[_local3].gotoAndStop(((_root.classStats[_root["PCstats_" + _root.selInv].model].tech == _local5.skills[_local4][0]) ? 1 : "dull"));
this[_local3].elem.gotoAndStop(_local7.elem);
if (_local6 >= _local7.AP) {
this[_local3].APbar._visible = false;
this[_local3].AP = "";
} else {
this[_local3].AP = (_local6 + "/") + _local7.AP;
this[_local3].APbar.gotoAndStop((100 - int((_local6 / _local7.AP) * 100)) + 1);
this[_local3].MASTERED._visible = false;
}
_local4++;
}
}
Refresh();
}
onClipEvent (enterFrame) {
Refresh();
}
Symbol 4397 MovieClip Frame 6
ask = ((("Buy this " + (_root.toBuy.title ? (_root.toBuy.title) : ((_root.toBuy.name ? (_root.toBuy.name) : (_root.toBuy))))) + " for ") + (_root.toBuy.title ? (_root.GetSpellStats(_root.toBuy.spell).cost) : ((_root.toBuy.name ? (_root.GetWeaponStats(_root.toBuy).cost) : (_root.GetItemInfo(_root.toBuy).cost))))) + "G?";
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 4397 MovieClip Frame 6
onClipEvent (load) {
if (_root.toBuy.name) {
this.gotoAndStop("wepn");
this.img.weapon = _root.toBuy;
this.img.Show(_root.toBuy);
} else {
this.gotoAndStop((_root.RItem.title ? "book" : (_root.GetItemInfo(_parent.ITEMNAME).type)));
this.img.gotoAndStop((_root.RItem.title ? (_root.RItem.book) : (_parent.ITEMNAME)));
}
AMOUNT = "";
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Buy" in Symbol 4397 MovieClip Frame 6
on (press) {
var iCost = (_root.toBuy.title ? (_root.GetSpellStats(_root.toBuy.spell).cost) : ((_root.toBuy.name ? (_root.GetWeaponStats(_root.toBuy).cost) : (_root.GetItemInfo(_root.toBuy).cost))));
if (_root.money < iCost) {
_root.playSFX("error");
_parent.gotoAndStop("error_poor");
return(undefined);
}
_root.playSFX("buy");
_root.money = _root.money - iCost;
_root.DItem = [_root.toBuy, 1];
_root.Drag_Item(_root.toBuy, 1);
_root.toBuy = undefined;
_parent._visible = false;
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Cancel" in Symbol 4397 MovieClip Frame 6
on (press) {
_root.toBuy = undefined;
_parent._visible = false;
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Symbol 4397 MovieClip Frame 7
cost = ("(" + _root.GetItemInfo(_root.toBuy).cost) + "G)";
NUM = 1;
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 4397 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.GetItemInfo(_root.toBuy).type);
this.img.gotoAndStop(_root.toBuy);
AMOUNT = "";
}
onClipEvent (enterFrame) {
_parent.cost = ("(" + (_root.GetItemInfo(_root.toBuy).cost * int(_parent.NUM))) + "G)";
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Buy" in Symbol 4397 MovieClip Frame 7
on (press) {
if ((isNaN(_parent.NUM) || (int(_parent.NUM) > 99)) || (int(_parent.NUM) < 1)) {
_root.playSFX("error");
return(undefined);
}
if (_root.money < (_root.GetItemInfo(_root.toBuy).cost * int(_parent.NUM))) {
_root.playSFX("error");
_parent.gotoAndStop("error_poor");
return(undefined);
}
_root.playSFX("buy");
_root.money = _root.money - (_root.GetItemInfo(_root.toBuy).cost * int(_parent.NUM));
_root.DItem = [_root.toBuy, int(_parent.NUM)];
_root.Drag_Item(_root.toBuy, int(_parent.NUM));
_root.toBuy = undefined;
_parent._visible = false;
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 2864 MovieClip in Symbol 4397 MovieClip Frame 10
onClipEvent (load) {
function Shift() {
_visible = (_parent.ELEM != undefined);
this.gotoAndStop(_parent.ELEM);
}
Shift();
}
onClipEvent (enterFrame) {
Shift();
}
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 4397 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (_parent.ITEMNAME != "-");
this.gotoAndStop("wepn");
this.img.gotoAndStop(_root.RItem);
AMOUNT = "";
}
Symbol 4397 MovieClip Frame 11
function CheckProps(item) {
props1 = "";
props2 = "";
var _local8 = _root.ARMOUR_TYPES;
var _local4 = _root.GetItemInfo(item);
Mstat = (item.name ? "DMG" : (((_local4.def != null) ? "DEF" : "")));
inc = ((Mstat == "DMG") ? (_root.ATK2String(_local4.atk)) : (((Mstat == "DEF") ? (_local4.def) : "")));
if ((inc == null) || (Mstat == "")) {
inc = "";
Mstat = "";
}
var _local5 = -1;
if (_local4.amrType != null) {
props1 = props1 + (("- " + _local8[_local4.amrType]) + "<br>");
_local5++;
}
if ((_local4.elem != null) && (_local4.elem != "")) {
props1 = props1 + (("- " + _local4.elem) + " Elemental<br>");
_local5++;
}
if (_local4.hit) {
props1 = props1 + (("- Accuracy: " + _local4.hit) + "%<br>");
_local5++;
}
if (_local4.critical) {
props1 = props1 + (("- Critical chance: " + _local4.critical) + "%<br>");
_local5++;
}
if (_root.GetItemInfo(item.blade).material) {
props1 = props1 + (("- It's made of " + _root.GetItemInfo(item.blade).material) + "<br>");
_local5++;
}
var _local7 = (_local4.typeBonus ? (_local4.typeBonus) : (_root.GetItemInfo(item.blade).typeBonus));
if (_local7) {
props1 = props1 + (((("- " + _local7[1]) + " DMG vs ") + _local7[0]) + "<br>");
_local5++;
}
var _local3 = 0;
while (_local3 < _local4.effects.length) {
_local5++;
if (_local4.effects[_local3][0] == "stfx") {
this["props" + ((_local5 > 13) ? "2" : "1")] = this["props" + ((_local5 > 13) ? "2" : "1")] + (((("- Inflicts " + _local4.effects[_local3][1]) + " (") + _local4.effects[_local3][2]) + "%)<br>");
} else if ((_local4.effects[_local3][0] != "R_STATUS") && (_local4.effects[_local3][0] != "R_ELEM")) {
this["props" + ((_local5 > 13) ? "2" : "1")] = this["props" + ((_local5 > 13) ? "2" : "1")] + ((((("- " + ((_local4.effects[_local3][1] > 0) ? "<font color='#00ddff'>" : "<font color='#cc5555'>")) + _local4.effects[_local3][0].toUpperCase()) + ((_local4.effects[_local3][1] > 0) ? "+" : "")) + _local4.effects[_local3][1]) + "</font><br>");
} else if ((_local4.effects[_local3][0] == "R_STATUS") || (_local4.effects[_local3][0] == "R_ELEM")) {
this["props" + ((_local5 > 13) ? "2" : "1")] = this["props" + ((_local5 > 13) ? "2" : "1")] + (((("- Resist " + _local4.effects[_local3][1]) + " (") + _local4.effects[_local3][2]) + "%)<br>");
} else {
this["props" + ((_local5 > 13) ? "2" : "1")] = this["props" + ((_local5 > 13) ? "2" : "1")] + (((("- Resist " + _local4.effects[_local3][1]) + " (") + _local4.effects[_local3][2]) + "%)<br>");
}
_local3++;
}
g = 0;
while (g < item.gems.length) {
if (item.gems[g] == "SoulStone") {
this["props" + ((_local5 > 13) ? "2" : "1")] = this["props" + ((_local5 > 13) ? "2" : "1")] + "- Soul Stealer";
_local5++;
}
g++;
}
img2.gotoAndStop(item.type);
img2.img.gotoAndStop(item.name);
}
CheckProps(_root.RItem);
Instance of Symbol 1026 MovieClip [ITEM_] "img" in Symbol 4397 MovieClip Frame 11
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (_parent.ITEMNAME != "-");
this.gotoAndStop(_root.GetItemInfo(_parent.ITEMNAME).type);
this.img.gotoAndStop(_parent.ITEMNAME);
AMOUNT = "";
}
Instance of Symbol 4439 MovieClip "bit" in Symbol 4442 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_parent.bartype);
this._width = _parent.fullness;
}
Symbol 4443 MovieClip Frame 1
if (_root["PCstats_" + ID].model == null) {
_visible = false;
return(undefined);
}
NAME = _root["PCstats_" + ID].name;
itemSlotR = "";
ATK = "";
DEF = "";
MDEF = "";
_root.calculateStats(_root["PCstats_" + ID]);
onEnterFrame = function () {
ATK = _root.ATK2String(_root.GetItemInfo(_root["PCstats_" + ID].weapon).atk);
DEF = _root["PCstats_" + ID].DEF;
MDEF = _root["PCstats_" + ID].MDEF;
};
stop();
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].accessory;
slot = "accessory";
label = "misc";
}
Instance of Symbol 3428 MovieClip [ItemSlot] "weapon" in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].weapon;
slot = "weapon";
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].helmet;
slot = "helmet";
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].shield;
slot = "shield";
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].armour;
slot = "armour";
}
Instance of Symbol 524 MovieClip [empty] "sprite" in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + _parent.ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + _parent.ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop(((_root["PCstats_" + _parent.ID].hp[1] <= 0) ? "hurt" : ("s" + f)));
}
on (rollOver) {
_root.PCsel_ = _parent.ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
}
on (press) {
if (_root.DItem == undefined) {
return(undefined);
}
if (_root.DItem[0].title) {
var maxspells = 24;
if ((_root["PCstats_" + _parent.ID].spells.length >= maxspells) && (_root["PCstats_" + _parent.ID].spells != null)) {
_root.playSFX("error");
return(undefined);
}
if (!_root["PCstats_" + _parent.ID].spells) {
_root["PCstats_" + _parent.ID].spells = [];
}
_root["PCstats_" + _parent.ID].spells.push(_root.DItem[0].spell);
_root.Flash(this, _root.ElemRGB(_root.GetSpellStats(_root.DItem[0].spell)));
_root.playSFX("MPrestore");
_root.CURSOR_.gotoAndStop(1);
_root.DItem = undefined;
}
var act = _root.GetItemInfo(_root.DItem[0]).action;
if ((((substring(act[0], 1, 2)) == "r_") || (act[0] == "h_status")) || (act[0] == "life")) {
if (((((((act[0] == "r_HP") && (_root["PCstats_" + _parent.ID].hp[1] >= _root["PCstats_" + _parent.ID].hp[0])) || ((act[0] == "r_MP") && (_root["PCstats_" + _parent.ID].mp[1] >= _root["PCstats_" + _parent.ID].mp[0]))) || (((act[0] == "r_HP") || (act[0] == "r_MP")) && (act[1] <= 0))) || ((act[0] == "h_status") && ((!_root.HasSTFX(_root["PCstats_" + _parent.ID], act[1])) && (act[1] != "ALL")))) || ((act[0] == "life") && (_root["PCstats_" + _parent.ID].hp[1] != 0))) || ((act[0] != "life") && (_root["PCstats_" + _parent.ID].hp[1] <= 0))) {
_root.playSFX("error");
return(undefined);
}
if ((act[0] == "r_HP") && (act[1] > 0)) {
_root["PCstats_" + _parent.ID].hp[1] = _root["PCstats_" + _parent.ID].hp[1] + act[1];
if (_root["PCstats_" + _parent.ID].hp[1] >= _root["PCstats_" + _parent.ID].hp[0]) {
_root["PCstats_" + _parent.ID].hp[1] = _root["PCstats_" + _parent.ID].hp[0];
}
_root.Flash(this, [0, 238, 85]);
_root.playSFX("Cure");
}
if ((act[0] == "r_MP") && (act[1] > 0)) {
_root["PCstats_" + _parent.ID].mp[1] = _root["PCstats_" + _parent.ID].mp[1] + act[1];
if (_root["PCstats_" + _parent.ID].mp[1] >= _root["PCstats_" + _parent.ID].mp[0]) {
_root["PCstats_" + _parent.ID].mp[1] = _root["PCstats_" + _parent.ID].mp[0];
}
_root.Flash(this, [0, 221, 255]);
_root.playSFX("MPRestore");
}
if (act[0] == "h_status") {
_root.RemoveSTFX(_root["PCstats_" + _parent.ID], act[1]);
_root.Flash(this, [255, 153, 0]);
_root.playSFX("Cure");
}
if (act[0] == "life") {
_root["PCstats_" + _parent.ID].hp[1] = int(_root["PCstats_" + _parent.ID].hp[0] * act[1]);
_root.Flash(this, [255, 153, 0]);
_root.playSFX("Cure");
}
_root.DItem[1]--;
if (_root.DItem[1] <= 0) {
_root.CURSOR_.gotoAndStop(1);
_root.DItem = undefined;
}
}
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
if (_root["PCstats_" + _parent.ID].accessory2 == null) {
_root["PCstats_" + _parent.ID].accessory2 = "none";
}
ITEM = _root["PCstats_" + _parent.ID].accessory2;
slot = "accessory2";
label = "misc";
}
Instance of Symbol 3448 MovieClip [status_fx] in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
count++;
if (count >= 30) {
count = 0;
id++;
}
if (id >= _root["PCstats_" + _parent.ID].status.length) {
id = 0;
}
this.gotoAndStop(((_root["PCstats_" + _parent.ID].status[id] == null) ? "none" : (_root["PCstats_" + _parent.ID].status[id])));
}
count = 0;
id = 0;
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4149 MovieClip "HPbar" in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
this.gotoAndStop(int(100 - ((_root["PCstats_" + _parent.ID].hp[1] / _root["PCstats_" + _parent.ID].hp[0]) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4156 MovieClip "MPbar" in Symbol 4443 MovieClip Frame 1
onClipEvent (load) {
function Stuff() {
_parent.MP_ = _root["PCstats_" + _parent.ID].mp[1];
this.gotoAndStop(int(100 - ((_root["PCstats_" + _parent.ID].mp[1] / _root["PCstats_" + _parent.ID].mp[0]) * 100)) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].accessory;
slot = "accessory";
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].shield;
slot = "shield";
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
ITEM = _root["PCstats_" + _parent.ID].helmet;
slot = "helmet";
}
Instance of Symbol 524 MovieClip [empty] "sprite" in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + _parent.ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + _parent.ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (rollOver) {
_root.PCsel_ = _parent.ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
}
on (press) {
if (_root.DItem == undefined) {
return(undefined);
}
if (_root.DItem[0].title) {
if ((_root["PCstats_" + _parent.ID].spells.length >= 16) || (!_root["PCstats_" + _parent.ID].learned.Magic)) {
_root.playSFX("error");
return(undefined);
}
if (!_root["PCstats_" + _parent.ID].spells) {
_root["PCstats_" + _parent.ID].spells = [];
}
_root["PCstats_" + _parent.ID].spells.push(_root.DItem[0].spell);
_root.Flash(this, _root.ElemRGB(_root.GetSpellStats(_root.DItem[0].spell)));
_root.playSFX("MPrestore");
_root.CURSOR_.gotoAndStop(1);
_root.DItem = undefined;
}
var act = _root.GetItemInfo(_root.DItem[0]).action;
if ((((substring(act[0], 1, 2)) == "r_") || (act[0] == "h_status")) || (act[0] == "life")) {
if (((((((act[0] == "r_HP") && (_root["PCstats_" + _parent.ID].hp[1] >= _root["PCstats_" + _parent.ID].hp[0])) || ((act[0] == "r_MP") && (_root["PCstats_" + _parent.ID].mp[1] >= _root["PCstats_" + _parent.ID].mp[0]))) || (((act[0] == "r_HP") || (act[0] == "r_MP")) && (act[1] <= 0))) || ((act[0] == "h_status") && (((_root["PCstats_" + _parent.ID].status != act[1]) && (act[1] != "ALL")) || (_root["PCstats_" + _parent.ID].status == 0)))) || ((act[0] == "life") && (_root["PCstats_" + _parent.ID].hp[1] != 0))) || ((act[0] != "life") && (_root["PCstats_" + _parent.ID].hp[1] <= 0))) {
_root.playSFX("error");
return(undefined);
}
if ((act[0] == "r_HP") && (act[1] > 0)) {
_root["PCstats_" + _parent.ID].hp[1] = _root["PCstats_" + _parent.ID].hp[1] + act[1];
if (_root["PCstats_" + _parent.ID].hp[1] >= _root["PCstats_" + _parent.ID].hp[0]) {
_root["PCstats_" + _parent.ID].hp[1] = _root["PCstats_" + _parent.ID].hp[0];
}
_root.Flash(this, [0, 238, 85]);
_root.playSFX("Cure");
}
if ((act[0] == "r_MP") && (act[1] > 0)) {
_root["PCstats_" + _parent.ID].mp[1] = _root["PCstats_" + _parent.ID].mp[1] + act[1];
if (_root["PCstats_" + _parent.ID].mp[1] >= _root["PCstats_" + _parent.ID].mp[0]) {
_root["PCstats_" + _parent.ID].mp[1] = _root["PCstats_" + _parent.ID].mp[0];
}
_root.Flash(this, [0, 221, 255]);
_root.playSFX("MPRestore");
}
if (act[0] == "h_status") {
_root["PCstats_" + _parent.ID].status = 0;
_root.Flash(this, [255, 153, 0]);
_root.playSFX("Cure");
}
if (act[0] == "life") {
_root["PCstats_" + _parent.ID].hp[1] = int(_root["PCstats_" + _parent.ID].hp[0] * act[1]);
_root.Flash(this, [255, 153, 0]);
_root.playSFX("Cure");
}
_root.DItem[1]--;
if (_root.DItem[1] <= 0) {
_root.CURSOR_.gotoAndStop(1);
_root.DItem = undefined;
}
}
}
Instance of Symbol 3428 MovieClip [ItemSlot] in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
if (_root["PCstats_" + _parent.ID].accessory2 == null) {
_root["PCstats_" + _parent.ID].accessory2 = "none";
}
ITEM = _root["PCstats_" + _parent.ID].accessory2;
slot = "accessory2";
}
Instance of Symbol 3448 MovieClip [status_fx] in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop((_root["PCstats_" + _parent.ID].status ? (_root["PCstats_" + _parent.ID].status) : "none"));
}
onClipEvent (enterFrame) {
this.gotoAndStop((_root["PCstats_" + _parent.ID].status ? (_root["PCstats_" + _parent.ID].status) : "none"));
}
Instance of Symbol 4423 MovieClip "HPbar" in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
function Stuff() {
this.gotoAndStop(int((_root["PCstats_" + _parent.ID].hp[1] / _root["PCstats_" + _parent.ID].hp[0]) * 100) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4429 MovieClip "MPbar" in Symbol 4443 MovieClip Frame 7
onClipEvent (load) {
function Stuff() {
_parent.MP_ = _root["PCstats_" + _parent.ID].mp[1];
this.gotoAndStop(int((_root["PCstats_" + _parent.ID].mp[1] / _root["PCstats_" + _parent.ID].mp[0]) * 100) + 1);
}
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 524 MovieClip [empty] "sprite" in Symbol 4443 MovieClip Frame 10
onClipEvent (load) {
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + _parent.ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + _parent.ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (rollOver) {
_root.PCsel_ = _parent.ID;
}
on (rollOut) {
_root.PCsel_ = undefined;
}
on (press) {
if (_root.DItem == undefined) {
return(undefined);
}
var act = _root.GetItemInfo(_root.DItem[0]).action;
if ((((substring(act[0], 1, 2)) == "r_") || (act[0] == "h_status")) || (act[0] == "life")) {
if (((((((act[0] == "r_HP") && (_root["PCstats_" + _parent.ID].hp[1] >= _root["PCstats_" + _parent.ID].hp[0])) || ((act[0] == "r_MP") && (_root["PCstats_" + _parent.ID].mp[1] >= _root["PCstats_" + _parent.ID].mp[0]))) || (((act[0] == "r_HP") || (act[0] == "r_MP")) && (act[1] <= 0))) || ((act[0] == "h_status") && (((_root["PCstats_" + _parent.ID].status != act[1]) && (act[1] != "ALL")) || (_root["PCstats_" + _parent.ID].status == 0)))) || ((act[0] == "life") && (_root["PCstats_" + _parent.ID].hp[1] != 0))) || ((act[0] != "life") && (_root["PCstats_" + _parent.ID].hp[1] <= 0))) {
_root.playSFX("error");
return(undefined);
}
if ((act[0] == "r_HP") && (act[1] > 0)) {
_root["PCstats_" + _parent.ID].hp[1] = _root["PCstats_" + _parent.ID].hp[1] + act[1];
if (_root["PCstats_" + _parent.ID].hp[1] >= _root["PCstats_" + _parent.ID].hp[0]) {
_root["PCstats_" + _parent.ID].hp[1] = _root["PCstats_" + _parent.ID].hp[0];
}
_root.Flash(this, [0, 238, 85]);
_root.playSFX("Cure");
}
if ((act[0] == "r_MP") && (act[1] > 0)) {
_root["PCstats_" + _parent.ID].mp[1] = _root["PCstats_" + _parent.ID].mp[1] + act[1];
if (_root["PCstats_" + _parent.ID].mp[1] >= _root["PCstats_" + _parent.ID].mp[0]) {
_root["PCstats_" + _parent.ID].mp[1] = _root["PCstats_" + _parent.ID].mp[0];
}
_root.Flash(this, [0, 221, 255]);
_root.playSFX("MPRestore");
}
if (act[0] == "h_status") {
_root["PCstats_" + _parent.ID].status = 0;
_root.Flash(this, [255, 153, 0]);
_root.playSFX("Cure");
}
if (act[0] == "life") {
_root["PCstats_" + _parent.ID].hp[1] = int(_root["PCstats_" + _parent.ID].hp[0] * act[1]);
_root.Flash(this, [255, 153, 0]);
_root.playSFX("Cure");
}
_root.DItem[1]--;
if (_root.DItem[1] <= 0) {
_root.CURSOR_.gotoAndStop(1);
_root.DItem = undefined;
}
}
}
Instance of Symbol 4442 MovieClip "HPbar" in Symbol 4443 MovieClip Frame 10
onClipEvent (load) {
function Stuff() {
fullness = int((_root["PCstats_" + _parent.ID].hp[1] / _root["PCstats_" + _parent.ID].hp[0]) * 100);
}
bartype = "HP";
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Instance of Symbol 4442 MovieClip "MPbar" in Symbol 4443 MovieClip Frame 10
onClipEvent (load) {
function Stuff() {
fullness = int((_root["PCstats_" + _parent.ID].mp[1] / _root["PCstats_" + _parent.ID].mp[0]) * 100);
}
bartype = "MP";
Stuff();
}
onClipEvent (enterFrame) {
Stuff();
}
Symbol 4452 MovieClip Frame 1
stop();
Symbol 4496 MovieClip Frame 1
stop();
Symbol 4515 Button
on (press) {
var so_ = SharedObject.getLocal((_root.gameID + "_sg_") + (_root.offset + 5), "/");
if (so_.data.cash == undefined) {
return(undefined);
}
_root.offset = _root.offset + 5;
_root.refreshScreen();
}
Symbol 4516 Button
on (press) {
if (_root.offset <= 1) {
return(undefined);
}
_root.offset = _root.offset - 5;
_root.refreshScreen();
}
Symbol 4574 MovieClip Frame 1
_alpha = 0;
fading = 0;
delay = 0;
onEnterFrame = function () {
var _local3 = _root.GetSpellStats(_root.theSpell).elem;
this.gotoAndStop(_local3);
if (delay != 0) {
delay--;
if (delay == 0) {
fading = -1;
}
}
if (fading != 0) {
_alpha = (_alpha + (30 * fading));
if (_alpha <= 0) {
fading = 0;
}
if (_alpha >= 100) {
fading = 0;
delay = 18;
}
}
};
Symbol 4624 MovieClip Frame 1
gotoAndStop(((this.BG != null) ? (this.BG) : (((_root.specBtlBG != undefined) ? (_root.specBtlBG) : (_root.tileset)))));
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 13
onClipEvent (load) {
inbattle = true;
this.gotoAndStop("green");
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 13
onClipEvent (load) {
inbattle = true;
this.gotoAndStop("green");
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 18
onClipEvent (load) {
inbattle = true;
this.stop();
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 18
onClipEvent (load) {
inbattle = true;
this.stop();
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 21
onClipEvent (load) {
inbattle = true;
this.gotoAndStop("deepred");
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 21
onClipEvent (load) {
inbattle = true;
this.gotoAndStop("deepred");
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 21
onClipEvent (load) {
inbattle = true;
this.gotoAndStop("deepred");
}
Instance of Symbol 3396 MovieClip [torchlight] in Symbol 4624 MovieClip Frame 22
onClipEvent (load) {
inbattle = true;
this.gotoAndStop(1);
}
Symbol 4636 MovieClip Frame 1
stop();
Symbol 4701 MovieClip Frame 1
stop();
_visible = false;
onPress = function () {
return(undefined);
};
Symbol 4701 MovieClip Frame 55
stop();
Instance of Symbol 4700 MovieClip in Symbol 4701 MovieClip Frame 55
onClipEvent (enterFrame) {
if (count == null) {
count = 0;
}
count++;
if (count == 50) {
var i = 0;
while (i < 5) {
var p = _root.P_party[i];
p.hp[1] = p.hp[1] + int(0.1 * p.hp[0]);
if (p.hp[1] > p.hp[0]) {
p.hp[1] = p.hp[0];
}
p.mp[1] = p.mp[1] + int(0.1 * p.mp[0]);
if (p.mp[1] > p.mp[0]) {
p.mp[1] = p.mp[0];
}
p.CT = 0;
i++;
}
_root.ReturnToGame(-3);
}
}
Symbol 4713 MovieClip Frame 1
stop();
Instance of Symbol 1026 MovieClip [ITEM_] "item" in Symbol 4713 MovieClip Frame 2
onClipEvent (load) {
AMOUNT = "";
}
Symbol 4739 MovieClip Frame 1
function Refresh() {
this.gotoAndStop(1);
PCname = _root[_root.Acting].stats.name;
}
TECH._name = _root.GetTechInfo(_root.classStats[_root[_root.Acting].stats.model].tech).name;
if (done) {
return(undefined);
}
this.swapDepths(191781);
done = true;
_alpha = 0;
changing = null;
fading = (((substring(_root.Acting, 1, 1)) == "p") ? 1 : 0);
onEnterFrame = function () {
this.swapDepths(191781);
if (fading != 0) {
_alpha = (_alpha + (40 * fading));
if (_alpha <= 0) {
_alpha = 0;
fading = 0;
gotoAndStop ("empty");
}
if (_alpha >= 100) {
_alpha = 100;
fading = 0;
gotoAndStop (1);
}
}
};
Refresh();
nextFrame();
Instance of Symbol 3984 MovieClip [MENU_btn] "Attack" in Symbol 4739 MovieClip Frame 1
onClipEvent (load) {
function Trigger() {
if (_alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_parent.gotoAndStop("target");
}
function AlsoRollOver() {
_root.Acting.mdl.wpn_range._alpha = 100;
}
function AlsoRollOut() {
_root.Acting.mdl.wpn_range._alpha = 0;
}
if (_root[_root.Acting].stats.weapon == "none") {
_alpha = 30;
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "TECH" in Symbol 4739 MovieClip Frame 1
onClipEvent (enterFrame) {
_name = _root.GetTechInfo(_root.classStats[_root[_root.Acting].stats.model].tech).name;
}
on (press) {
_parent.gotoAndStop("ABILITIES");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Item" in Symbol 4739 MovieClip Frame 1
on (press) {
_parent.gotoAndStop("ITEMS");
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Wait" in Symbol 4739 MovieClip Frame 1
onClipEvent (load) {
function Trigger() {
_root.endturn = true;
_root.GDelay = 20;
_parent.fading = -1;
}
}
Instance of Symbol 3429 MovieClip [empty] "charmodel" in Symbol 4739 MovieClip Frame 1
onClipEvent (load) {
this.attachMovie("s_" + _root[_root.Acting].stats.model, "mdl", 10);
mdl._width = (mdl._height = 26);
mdl._x = (mdl._y = 0);
f = 1;
delay = 0;
mdl.gotoAndStop("s" + f);
mdl.stats = _root[_root.Acting].stats;
}
onClipEvent (enterFrame) {
delay++;
if (delay > 8) {
f = (!(f - 1)) + 1;
mdl.gotoAndStop("s" + f);
delay = 0;
}
}
Symbol 4739 MovieClip Frame 3
function ClearEtc() {
elem._visible = false;
phys_mag._visible = false;
SPELLNAME = "-";
DESC = "-";
effect = "-";
pow = "";
}
var T = _root.GetTechInfo(_root.classStats[_root[_root.Acting].stats.model].tech);
var y = 0;
var s = 0;
while (s < T.skills.length) {
var a = _root[_root.Acting].stats.learned[T.skills[s].skill];
if (a == null) {
a = 0;
}
if ((T.skills[s].type != "ACT") || ((a < T.skills[s].AP) && (!_root.HasSkillOnEquipment(_root[_root.Acting].stats, T.skills[s].skill)))) {
} else {
var N = ("A" + s);
a_list.attachMovie("B_AbilityThing", N, 100 + s);
a_list[N]._y = y * 20;
a_list[N].ability = T.skills[s].skill;
a_list[N].mp = T.skills[s].MP;
a_list[N].SKILL = T.skills[s];
a_list[N].APbar._visible = false;
a_list[N].AP = "";
a_list[N].MASTERED._visible = false;
a_list[N].elem.gotoAndStop(T.skills[s].elem);
if ((_root[_root.Acting].stats.mp[1] < T.skills[s].MP) || ((T.skills[s].MODE == "P") && (_root[_root.Acting].stats.weapon == "none"))) {
a_list[N]._alpha = 30;
}
a_list[N].onPress = function () {
if (this._alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.TECH_USING = this.SKILL;
_root.TARGETTING = true;
if (this.SKILL.MODE == "P") {
_root.phySpell = true;
} else {
_root.phySpell = false;
}
_root.BMENU.gotoAndStop("target");
};
a_list[N].onRollOver = function () {
this._parent._parent.elem._visible = true;
this._parent._parent.phys_mag._visible = true;
this._parent._parent.elem.gotoAndStop(this.SKILL.elem);
this._parent._parent.phys_mag.gotoAndStop(this.SKILL.MODE);
this._parent._parent.SPELLNAME = this.SKILL.skill;
this._parent._parent.DESC = this.SKILL.desc;
this._parent._parent.effect = "POW:";
this._parent._parent.pow = _root.ATK2String2(this.SKILL.DMG, _root[_root.Acting]);
this.gotoAndStop(2);
};
a_list[N].onRollOut = function () {
this.gotoAndStop(1);
this._parent._parent.ClearEtc();
};
y++;
}
s++;
}
ClearEtc();
Instance of Symbol 4284 MovieClip in Symbol 4739 MovieClip Frame 3
on (press) {
_parent.gotoAndStop(1);
}
Instance of Symbol 4284 MovieClip in Symbol 4739 MovieClip Frame 4
on (press) {
_root.TECH_USING = null;
_root.TARGETTING = false;
_parent.prevFrame(1);
}
Instance of Symbol 2922 MovieClip [B_AbilityThing] in Symbol 4739 MovieClip Frame 4
onClipEvent (load) {
ability = _root.TECH_USING.skill;
mp = _root.TECH_USING.MP;
elem.gotoAndStop(_root.TECH_USING.elem);
APbar._visible = false;
MASTERED._visible = false;
}
Symbol 4739 MovieClip Frame 5
function bPress() {
if (this._alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.Target = this.ID;
_root.TARGETTING = null;
this._parent.fading = -1;
if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "I")) {
_root[_root.Acting].UseItem();
} else if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "M")) {
_root[_root.Acting].Conjurate();
} else if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "S")) {
_root[_root.Acting].SpecialAttack();
} else {
_root[_root.Acting].Attack();
}
}
function bRollOver() {
if (this._parent.fading != 0) {
return(undefined);
}
_root.TARGETTING = this.ID;
}
function bRollOut() {
_root.TARGETTING = null;
}
var t = ["p", "e"];
var i = 1;
while (i <= 4) {
var x = 0;
while (x < t.length) {
var B = this[t[x] + i];
B.ID = t[x] + i;
B.onPress = bPress;
B.AlsoRollOver = bRollOver;
B.AlsoRollOut = bRollOut;
B._name = _root[t[x] + i].stats.name;
if ((!_root[t[x] + i]._visible) || (_root[t[x] + i].stats.hp[1] <= 0)) {
B._visible = false;
}
var TT = ((_root.TECH_USING == null) ? "SINGLE" : (_root.TECH_USING.TT));
if ((((((TT == "ANY_ALL") || (TT == "ALL_ALLIES")) || (TT == "ALL_FOES")) || ((TT == "SELF") && (_root.Acting != (t[x] + i)))) || ((TT == "FOE") && (t[x] == "p"))) || ((TT == "ALLY") && (t[x] == "e"))) {
B._alpha = 20;
}
x++;
}
i++;
}
Instance of Symbol 3984 MovieClip [MENU_btn] "All Allies" in Symbol 4739 MovieClip Frame 5
onClipEvent (load) {
var TT = ((_root.TECH_USING == null) ? "SINGLE" : (_root.TECH_USING.TT));
_alpha = ((((TT == "ALL_ALLIES") || (TT == "ALL_ANY")) || (TT == "ANY")) ? 100 : 20);
onPress = function () {
if (this._alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.Target = "ALL_p";
_root.TARGETTING = null;
this._parent.fading = -1;
if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "I")) {
_root[_root.Acting].UseItem();
} else if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "M")) {
_root[_root.Acting].Conjurate();
} else if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "S")) {
_root[_root.Acting].SpecialAttack();
} else {
_root[_root.Acting].Attack();
}
};
AlsoRollOver = function () {
if (this._parent.fading != 0) {
return(undefined);
}
_root.TARGETTING = "ALL_p";
};
AlsoRollOut = function () {
_root.TARGETTING = null;
};
}
Instance of Symbol 3984 MovieClip [MENU_btn] "All Foes" in Symbol 4739 MovieClip Frame 5
onClipEvent (load) {
var TT = ((_root.TECH_USING == null) ? "SINGLE" : (_root.TECH_USING.TT));
_alpha = ((((TT == "ALL_FOES") || (TT == "ALL_ANY")) || (TT == "ANY")) ? 100 : 20);
onPress = function () {
if (this._alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.Target = "ALL_e";
_root.TARGETTING = null;
this._parent.fading = -1;
if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "I")) {
_root[_root.Acting].UseItem();
} else if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "M")) {
_root[_root.Acting].Conjurate();
} else if ((_root.TECH_USING != null) && (_root.TECH_USING.MODE == "S")) {
_root[_root.Acting].SpecialAttack();
} else {
_root[_root.Acting].Attack();
}
};
AlsoRollOver = function () {
if (this._parent.fading != 0) {
return(undefined);
}
_root.TARGETTING = "ALL_e";
};
AlsoRollOut = function () {
_root.TARGETTING = null;
};
}
Instance of Symbol 4284 MovieClip in Symbol 4739 MovieClip Frame 5
on (press) {
var t = (_root.TECH_USING == null);
_root.TECH_USING = null;
_root.TARGETTING = false;
_root.phySpell = null;
_parent.gotoAndStop((t ? 1 : 3));
}
Instance of Symbol 524 MovieClip [empty] in Symbol 4739 MovieClip Frame 5
onClipEvent (load) {
this.attachMovie(((_root.TECH_USING.MODE == "I") ? "B_ItemThing" : "B_AbilityThing"), "Eric", 100);
if (_root.TECH_USING.MODE == "I") {
Eric.img.gotoAndStop(_root.GetItemInfo(_root.TECH_USING.item).type);
Eric.img.img.gotoAndStop(_root.TECH_USING.item);
Eric.item = _root.TECH_USING.item;
Eric.amount = "";
} else {
var T = ((_root.TECH_USING == null) ? ({skill:"Attack", elem:((_root.GetItemInfo(_root[_root.Acting].stats.weapon).elem != null) ? (_root.GetItemInfo(_root[_root.Acting].stats.weapon).elem) : "NONE"), MP:""}) : (_root.TECH_USING));
Eric.ability = T.skill;
Eric.mp = T.MP;
Eric.elem.gotoAndStop(T.elem);
Eric.APbar._visible = false;
Eric.MASTERED._visible = false;
}
}
Symbol 4739 MovieClip Frame 6
function ClearEtc() {
itemimg._visible = false;
ITEMNAME = "-";
DESC = "-";
}
var inv = _root[_root.Acting].stats.inventory;
var y = 0;
var i = 0;
while (i < inv.length) {
if (_root.GetItemInfo(inv[i].item).action == null) {
} else {
var N = ("I" + i);
a_list.attachMovie("B_ItemThing", N, 100 + i);
a_list[N]._y = y * 20;
a_list[N].ID = i;
a_list[N].item = inv[i].item;
a_list[N].amount = inv[i].amount;
a_list[N].img.gotoAndStop(_root.GetItemInfo(inv[i].item).type);
a_list[N].img.img.gotoAndStop(inv[i].item);
a_list[N].onPress = function () {
if (this._alpha < 100) {
_root.playSFX("error");
return(undefined);
}
_root.TECH_USING = {MODE:"I", item:this.item, ID:this.ID};
_root.TARGETTING = true;
_root.BMENU.gotoAndStop("target");
};
a_list[N].onRollOver = function () {
this._parent._parent.itemimg._visible = true;
this._parent._parent.itemimg.gotoAndStop(_root.GetItemInfo(this.item).type);
this._parent._parent.itemimg.img.gotoAndStop(this.item);
this._parent._parent.ITEMNAME = this.item;
this._parent._parent.DESC = _root.GetItemInfo(this.item).desc;
this.gotoAndStop(2);
};
a_list[N].onRollOut = function () {
this.gotoAndStop(1);
this._parent._parent.ClearEtc();
};
y++;
}
i++;
}
ClearEtc();
Instance of Symbol 4284 MovieClip in Symbol 4739 MovieClip Frame 6
on (press) {
_parent.gotoAndStop(1);
}
Instance of Symbol 1026 MovieClip [ITEM_] "itemimg" in Symbol 4739 MovieClip Frame 6
onClipEvent (load) {
AMOUNT = "";
}
Symbol 4751 MovieClip Frame 1
function DoVictory() {
_root.specBtlBG = undefined;
_root.boss = undefined;
rewardItems = [];
var _local8 = 0;
var _local4 = ["weapon", "shield", "helmet", "armour", "accessory"];
var _local5 = 1;
while (_local5 <= 3) {
_root["menu_p" + _local5]._visible = false;
if (((_root["PCstats_" + _local5].status == "SLP") || (_root["PCstats_" + _local5].status == "CNF")) || (_root["PCstats_" + _local5].status == "RGN")) {
_root["PCstats_" + _local5].status = 0;
}
if (_root["PCstats_e" + _local5].name == undefined) {
} else {
var _local2 = 0;
while (_local2 < _local4.length) {
if ((random(101) == 1) && (_root["PCstats_e" + _local5][_local4[_local2]] != "none")) {
rewardItems.push({item:_root["PCstats_e" + _local5][_local4[_local2]], amount:1});
}
_local2++;
}
var _local3 = 0;
while (_local3 < _root["PCstats_e" + _local5].loot.length) {
if ((Math.random() * 100) < _root["PCstats_e" + _local5].loot[_local3][1]) {
rewardItems.push({item:_root["PCstats_e" + _local5].loot[_local3][0], amount:1});
}
_local3++;
}
_local8 = _local8 + int(random((Math.pow(_root["PCstats_e" + _local5].level, 2) + 1) + random(10)) * (Math.random() + 0.5));
if (_root["PCstats_" + _local5].hp[1] <= 0) {
_root["PCstats_" + _local5].hp[1] = 1;
}
}
_local5++;
}
if (_local8 > 0) {
rewardItems.push({item:"Gold", amount:_local8});
}
rewardItems = rewardItems.concat(_root.wonsouls);
if (_root.monLoot != undefined) {
_local5 = 0;
while (_local5 < _root.monLoot.length) {
rewardItems.push({item:_root.monLoot[_local5], amount:1});
_local5++;
}
}
_root.monLoot = undefined;
_root.victory = true;
_root.RemoveStatEnhancements();
if (_root.AfterBattle != null) {
_root.AfterBattle();
_root.AfterBattle = null;
}
}
stop();
Instance of Symbol 3984 MovieClip [MENU_btn] "Continue" in Symbol 4751 MovieClip Frame 1
on (press) {
if (_parent.rewardItems.length > 0) {
_parent.nextFrame();
return(undefined);
}
_quality = "LOW";
if ((_root.PCstats_2.model == null) && (_root.PCstats_3.model != null)) {
var ts = _root.PCstats_3;
_root.PCstats_2 = ts;
_root.PCstats_3.model = null;
}
if (_root.spriteToKill != undefined) {
if (_root.spriteToKill.props.onDeath) {
_root.spriteToKill.props.onDeath();
}
if (_root.spriteToKill.props.ID) {
_root.plotVars.murders.push([_root.spriteToKill.props.ID, _root.areaID]);
}
_root.spriteToKill._parent.model.gotoAndStop("hurt");
_root.spriteToKill.dying = true;
_root.spriteToKill = undefined;
}
_root.ReturnToGame(-3);
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Symbol 4751 MovieClip Frame 2
function RefillRootInventory() {
_root.inventory = new Array(24);
var _local2 = 0;
while (_local2 < 56) {
var _local3 = inventory_filler["slot" + _local2];
_root.inventory[_local2] = ((_local3.ITEM == undefined) ? null : ({item:_local3.ITEM, amount:_local3.AMOUNT}));
_local2++;
}
}
function AddGold(amount) {
gc++;
var _local2 = "g" + gc;
plusgold.attachMovie("plusgold", _local2, gc);
plusgold[_local2].amount = "+" + amount;
plusgold[_local2].onEnterFrame = function () {
if (this._y > -10) {
this._y = this._y - 3;
} else {
this._alpha = this._alpha - 30;
}
if (this._alpha < 10) {
this.removeMovieClip();
}
};
}
_root.DItem = undefined;
_root.selInv = 1;
p_1.gotoAndStop(2);
_root.inventory = _root.PCstats_1.inventory;
gc = 11001;
Instance of Symbol 4445 MovieClip in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "inventory_filler" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
function Refresh() {
var _local3 = 0;
while (_local3 < 56) {
var _local4 = "slot" + _local3;
this.attachMovie("ItemSlot", _local4, 100 + _local3);
this[_local4]._x = (_local3 % 14) * 30;
this[_local4]._y = Math.floor(_local3 / 14) * 30;
this[_local4].ITEM = _root.inventory[_local3].item;
this[_local4].AMOUNT = _root.inventory[_local3].amount;
_local3++;
}
}
Refresh();
}
Instance of Symbol 4691 MovieClip in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 524 MovieClip [empty] "spoils" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
var i = 0;
while (i < 28) {
var N = (("slot" + i) + "_");
this.attachMovie("ItemSlot", N, 100 + i);
this[N]._x = (i % 14) * 30;
this[N]._y = Math.floor(i / 14) * 30;
this[N].ITEM = _parent.rewardItems[i].item;
this[N].AMOUNT = _parent.rewardItems[i].amount;
if (_root.GetItemInfo(this[N].ITEM).type == "plot") {
this[N].plot = true;
this[N].gotoAndStop("plot");
}
i++;
}
}
Instance of Symbol 4452 MovieClip in Symbol 4751 MovieClip Frame 2
on (press) {
if (_root.DItem != undefined) {
if (_root.GetItemInfo(_root.DItem[0]).cost == -1) {
_root.playSFX("error");
return(undefined);
}
_root.DItem = undefined;
_root.dragItem._visible = false;
}
}
on (rollOver) {
if (_root.DItem != undefined) {
this.gotoAndStop(2);
}
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Done" in Symbol 4751 MovieClip Frame 2
on (press) {
if (_root.DItem != undefined) {
_root.playSFX("error");
return(undefined);
}
var fail = false;
var i = 0;
while (i < 28) {
if (_parent.spoils[("slot" + i) + "_"].plot && (_parent.spoils[("slot" + i) + "_"].ITEM != undefined)) {
_root.Flash(_parent.spoils[("slot" + i) + "_"].item_, [0, 255, 255]);
fail = true;
}
i++;
}
if (fail) {
_root.playSFX("error");
return(undefined);
}
_parent.RefillRootInventory();
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
_quality = "LOW";
if ((_root.PCstats_2.model == null) && (_root.PCstats_3.model != null)) {
var ts = _root.PCstats_3;
_root.PCstats_2 = ts;
_root.PCstats_3.model = null;
}
if (_root.spriteToKill != undefined) {
if (_root.spriteAction == "TALK") {
_root.spriteToKill.doOnTalk(_root.spriteToKill.dir, true);
_root.spriteAction = null;
} else {
if (_root.spriteToKill.props.onDeath) {
_root.spriteToKill.props.onDeath();
}
if (_root.spriteToKill.props.ID) {
_root.plotVars.murders.push([_root.spriteToKill.props.ID, _root.areaID]);
}
_root.spriteToKill._parent.model.gotoAndStop("hurt");
_root.spriteToKill.dying = true;
_root.spriteToKill = undefined;
}
}
_root.ReturnToGame(-3);
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 4315 MovieClip "p_1" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4315 MovieClip "p_2" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4315 MovieClip "p_3" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4315 MovieClip "p_4" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
ID = Number(substring(_name, 3, -1));
count = 0;
f = 1;
this.attachMovie("s_" + _root["PCstats_" + ID].model, "mdl", 10);
mdl.stats = _root["PCstats_" + ID];
mdl._width = (mdl._height = 30);
mdl.gotoAndStop("s1");
}
onClipEvent (enterFrame) {
count++;
if (count >= 10) {
f = (!(f - 1)) + 1;
count = 0;
}
mdl.gotoAndStop("s" + f);
}
on (press) {
_parent.RefillRootInventory();
_parent["p_" + _root.selInv].gotoAndStop(1);
_root["PCstats_" + _root.selInv].inventory = _root.inventory;
this.gotoAndStop(2);
_root.selInv = ID;
_root.inventory = _root["PCstats_" + _root.selInv].inventory;
_parent.inventory_filler.Refresh();
}
Instance of Symbol 4397 MovieClip "Exbox" in Symbol 4751 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = (((Key.isDown(69) || (Key.isDown(65))) || (Key.isDown(67))) || (Key.isDown(80)));
if (Key.isDown(67)) {
this.gotoAndStop("CheckComponents");
return(undefined);
}
if (_root.PCsel_ != undefined) {
this.gotoAndStop(2);
return(undefined);
}
var info = _root.GetItemInfo(_root.RItem);
this.gotoAndStop(((info.type == "wepn") ? "CheckWpn" : 1));
ITEMNAME = ((_root.RItem == undefined) ? "-" : ((_root.RItem.title ? (_root.RItem.title) : ((_root.RItem.name ? (_root.RItem.name) : (_root.RItem))))));
if (info.type == "wepn") {
dmg = (info.atk[0] + "-") + info.atk[1];
ELEM = info.elem;
wpnType = info.wpnType;
DESC = info.desc;
} else {
Mstat = ((_root.RItem == undefined) ? "" : (((info.type == "hilt") ? "GEMS:" : ((((_root.RItem.name || (info.type == "blad")) || (info.type == "claw")) ? "DMG:" : (((((((info.type == "item") || (info.type == "plot")) || (info.type == "gems")) || (info.type == "misc")) || (info.type == "soul")) ? "" : "DEF:")))))));
Mstat2 = ((info.mdef != null) ? "M.DEF:" : "");
inc = ((_root.RItem == undefined) ? "" : (((((((info.type == "item") || (info.type == "plot")) || (info.type == "gems")) || (info.type == "misc")) || (info.type == "soul")) ? "" : ((((info.type == "blad") || (info.type == "claw")) ? ((info.dmg[0] + "-") + info.dmg[1]) : (((info.type == "hilt") ? (info.gems) : ((_root.RItem.name ? ((_root.GetWeaponStats(_root.RItem).dmg[0] + "-") + _root.GetWeaponStats(_root.RItem).dmg[1]) : (info.def))))))))));
inc2 = ((info.mdef != null) ? (info.mdef) : "");
DESC = ((_root.RItem == undefined) ? "-" : (info.desc));
ELEM = info.elem;
}
if (Key.isDown(80)) {
gotoAndStop ("CheckProps");
CheckProps(_root.RItem);
}
}
Symbol 4759 MovieClip Frame 1
stop();
Symbol 4759 MovieClip Frame 2
_root.battling = false;
_root.boss = undefined;
_root.music.setVolume(100);
_root.playMusic("GameOver");
Instance of Symbol 3984 MovieClip [MENU_btn] "Load Game" in Symbol 4759 MovieClip Frame 2
onClipEvent (load) {
so = SharedObject.getLocal(_root.gameID + "_sg_1", "/");
so0 = SharedObject.getLocal(_root.gameID + "_sg_0", "/");
if ((so.data.cash == undefined) || (so0.data.cash == undefined)) {
_visible = false;
}
delete so;
delete so0;
}
on (press) {
_root.gameOver = false;
_root.mapLoaded = false;
_root.FADER_.FadeTrans("LOADGAME");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Main Menu" in Symbol 4759 MovieClip Frame 2
on (press) {
_root.gameOver = false;
_root.mapLoaded = false;
_root.FADER_.FadeTrans("startmenu");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Symbol 4771 MovieClip Frame 1
stop();
Symbol 4800 MovieClip Frame 1
stop();
Symbol 4809 Button
on (press, keyPress "<Left>") {
_root.editor._x = _root.editor._x + _root.tilesize;
}
Symbol 4810 Button
on (press, keyPress "<Right>") {
_root.editor._x = _root.editor._x - _root.tilesize;
}
Symbol 4811 Button
on (press, keyPress "<Down>") {
_root.editor._y = _root.editor._y - _root.tilesize;
}
Symbol 4812 Button
on (press, keyPress "<Up>") {
_root.editor._y = _root.editor._y + _root.tilesize;
}
Symbol 4814 Button
on (press) {
tileset_.sprite.gotoAndStop(tileset_.sprite._currentframe - 1);
}
Symbol 4815 Button
on (press) {
tileset_.sprite.gotoAndStop(tileset_.sprite._currentframe + 1);
}
Instance of Symbol 524 MovieClip [empty] "tileset_" in Symbol 4817 MovieClip Frame 1
onClipEvent (load) {
function refreshImg() {
this.attachMovie(_root.tileset, "sprite", 1);
this.sprite._width = (this.sprite._height = _root.tilesize);
this.sprite.gotoAndStop(1);
}
refreshImg();
}
Symbol 4832 Button
on (press) {
preview.sel_type--;
if (preview.sel_type < 0) {
preview.sel_type = sprite_types.length - 1;
}
preview.Refresh();
}
Symbol 4833 Button
on (press) {
preview.sel_type++;
var x = sprite_types.length;
if (preview.sel_type > (x - 1)) {
preview.sel_type = 0;
}
preview.Refresh();
}
Symbol 4841 MovieClip Frame 1
stop();
Instance of Symbol 3984 MovieClip [MENU_btn] "Create" in Symbol 4841 MovieClip Frame 1
onClipEvent (load) {
function tileOnRollOver() {
if (_root.ThePanel._visible) {
return(undefined);
}
_root.lastCoords = [this._x / _root.tilesize, this._y / _root.tilesize, this.tile._currentframe - 1];
if (Key.isDown(16)) {
this.tile.gotoAndStop(_root.E_loadmap.tileset_.sprite._currentframe);
}
}
function tileOnPress() {
if (_root.ThePanel._visible) {
return(undefined);
}
if (Key.isDown(67)) {
_root.E_loadmap.tileset_.sprite.gotoAndStop(this.tile._currentframe);
return(undefined);
}
this.tile.gotoAndStop(_root.E_loadmap.tileset_.sprite._currentframe);
}
}
on (press) {
for (o in _root.editor) {
_root.editor[o].removeMovieClip();
}
_root.editor.attachMovie("empty", "SPRITES", 55535);
_root.editor.SPRITES.D = 1;
_root.editor.attachMovie("empty", "LOOT", 54535);
_root.editor.LOOT.D = 1;
D = 1;
_root.numMade = 0;
y = 0;
while (y < _root.AREAHEIGHT) {
x = 0;
while (x < _root.AREAWIDTH) {
_root.numMade++;
t = (("t" + x) + "_") + y;
_root.editor.attachMovie("empty", t, D++);
_root.editor[t]._x = x * _root.tilesize;
_root.editor[t]._y = y * _root.tilesize;
_root.editor[t].attachMovie(_root.tileset, "tile", 1);
_root.editor[t].tile._width = (_root.editor[t].tile._height = _root.tilesize + 0.1);
_root.editor[t].tile.gotoAndStop("default");
_root.editor[t].onRollOver = tileOnRollOver;
_root.editor[t].onPress = tileOnPress;
x++;
}
y++;
}
_root.E_loadmap.tileset_.refreshImg();
_parent._visible = false;
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Load Area" in Symbol 4841 MovieClip Frame 1
on (press) {
_root.mapEditing = true;
_root.mapToLoad = _parent.mapToLoad;
_root.gotoAndStop("field");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 4131 MovieClip in Symbol 4841 MovieClip Frame 1
on (press) {
_quality = "LOW";
_parent._visible = false;
gotoAndStop ("blank");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 4841 MovieClip Frame 2
AREA_ID = _root.AREANAME.toLowerCase();
x = (y = -2);
for (o in _root.editor) {
if (_root.editor[o]._x == 0) {
y++;
}
if (_root.editor[o]._y == 0) {
x++;
}
}
var compile = new Array(y);
i = 0;
while (i < y) {
compile[i] = new Array(x);
i++;
}
for (o in _root.editor) {
w = _root.editor[o]._x / _root.tilesize;
v = _root.editor[o]._y / _root.tilesize;
var f = (_root.editor[o].tile._currentframe - 1);
compile[v][w] = ((f < 10) ? (" " + f) : (f));
}
var datum = "map=[\r";
l = 0;
while (l < compile.length) {
datum = datum + (((" [" + compile[l]) + "]") + ((l == (compile.length - 1)) ? "" : ",\n"));
l++;
}
datum = datum + "\r];";
System.setClipboard(datum);
var datumS = "A_sprites=[\r";
for (o in _root.editor.SPRITES) {
if (_root.editor.SPRITES[o].props != undefined) {
var pp = _root.editor.SPRITES[o].props;
var STATS = "{";
var toCheck = ["model", "face", "weapon", "armour", "shield", "gloves", "legs", "boots", "cape", "helmet"];
var c = 0;
while (c < toCheck.length) {
STATS = STATS + ((((toCheck[c] + ":'") + _root.editor.SPRITES[o].mdl.stats[toCheck[c]]) + "'") + ((c == (toCheck.length - 1)) ? "" : ","));
c++;
}
STATS = STATS + "}";
var CONVb = "[";
var c = 0;
while (c < pp.conv.length) {
CONVb = CONVb + ((("\"" + pp.conv[c]) + "\"") + ((c == (pp.conv.length - 1)) ? "" : ","));
c++;
}
CONVb = CONVb + "]";
datumS = datumS + (((((((((((((((("{name:\"" + pp.name) + "\",model:\"") + pp.model) + "\",x:") + (_root.editor.SPRITES[o]._x / _root.tilesize)) + ",y:") + (_root.editor.SPRITES[o]._y / _root.tilesize)) + ",walkspeed:") + pp.walkspeed) + (((pp.dir.length > 0) && (pp.dir != undefined)) ? ((",dir:\"" + pp.dir) + "\"") : "")) + ",conv:") + CONVb) + ",stats:") + STATS) + "}") + ((l == (compileS.length - 1)) ? "" : ",\n"));
} else {
_root.editor.SPRITES[o].removeMovieClip();
}
}
datumS = datumS + "\r];";
var datumF = "foes=[];";
var datumL = "areaLoot=[ ";
for (o in _root.editor.LOOT) {
O = _root.editor.LOOT[o];
if (O.props != undefined) {
datumL = datumL + ((((((((("{x:" + (O._x / _root.tilesize)) + ",y:") + (O._y / _root.tilesize)) + ",type:'") + O.props.type) + "',amount:") + O.props.amount) + ((O.props.type != "gold") ? ((",item:'" + O.props.item) + "'") : "")) + "},\n");
}
}
datumL = substring(datumL, 1, datumL.length - 2);
datumL = datumL + "\n];";
_root.AREAGEN = datum;
Instance of Symbol 3984 MovieClip [MENU_btn] "Copy All" in Symbol 4841 MovieClip Frame 2
on (press) {
System.setClipboard(_root.AREAGEN);
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Symbol 4841 MovieClip Frame 3
function AddSprite() {
_quality = "LOW";
var _local3 = _root.editor.SPRITES;
_local3.D++;
var _local4 = "s" + _local3.D;
_local3.attachMovie("s_" + sprite_types[preview.sel_type][0], _local4, _local3.D);
_local3[_local4].gotoAndStop("s1");
_visible = false;
gotoAndStop ("blank");
_local3[_local4]._width = (_local3[_local4]._height = 30);
_local3[_local4].DRAGGING = true;
if (sprite_types[preview.sel_type][2] == 1) {
_local3[_local4].stats = {face:equip_box.face, eyes:equip_box.eyes, armour:equip_box.ArmourName, helmet:equip_box.HelmName};
}
_local3[_local4].props = {model:sprite_types[preview.sel_type][0], name:instance_name, walkspeed:walkspeed, conv:conv};
_local3[_local4].onEnterFrame = function () {
if (this.DRAGGING) {
this._x = int(_root.editor.SPRITES._xmouse / 30) * 30;
this._y = int(_root.editor.SPRITES._ymouse / 30) * 30;
}
};
_local3[_local4].onRelease = function () {
this.DRAGGING = !this.DRAGGING;
};
}
sprite_types = [["common", "Commoner, Male"], ["woman", "Commoner, Female"], ["man1", "Commoner, Male 2"], ["man2", "Commoner, Male 3"], ["man3", "Old Man"], ["woman2", "Commoner, Female 2"], ["woman4", "Commoner, Female 3"], ["woman3", "Old Woman"], ["boy", "Boy"], ["girl", "Girl"], ["derek", "Derek"], ["polly", "Polly"], ["lilanea", "Lilanea"], ["soldier", "Expendable Soldier"], ["cyrian", "Cyrian"], ["gloth", "Gloth"], ["goblin", "Goblin"], ["nnengral", "Nnengral"], ["triobot", "Triobot"], ["warrior", "Warrior, Male"], ["mardek", "Mardek"], ["object", "OBJECT"]];
instance_name = "NPC";
walkspeed = 60;
conv = "c_none";
_quality = "HIGH";
Instance of Symbol 524 MovieClip [empty] "preview" in Symbol 4841 MovieClip Frame 3
onClipEvent (load) {
function Refresh() {
this.attachMovie("s_" + _parent.sprite_types[sel_type][0], "sprite", 100);
_parent.sprite_name = _parent.sprite_types[sel_type][1];
sprite._width = (sprite._height = 30);
sprite.gotoAndStop("s" + f);
}
delay = 0;
f = 1;
sel_type = 0;
Refresh();
}
onClipEvent (enterFrame) {
delay++;
if (delay > 10) {
delay = 0;
f = (!(f - 1)) + 1;
sprite.gotoAndStop("s" + f);
}
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Add" in Symbol 4841 MovieClip Frame 3
on (press) {
_parent.AddSprite();
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "New Area" in Symbol 4845 MovieClip Frame 1
on (press) {
_root.ThePanel._visible = true;
_root.ThePanel.gotoAndStop("NewArea");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Build Area" in Symbol 4845 MovieClip Frame 1
on (press) {
_root.ThePanel._visible = true;
_root.ThePanel.gotoAndStop(1);
_root.ThePanel.gotoAndStop("BuildArea");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Refine" in Symbol 4845 MovieClip Frame 1
onClipEvent (load) {
function isWater(tile) {
var _local2 = 0;
while (_local2 < walls[_root.tileset].water.length) {
if (tile == walls[_root.tileset].water[_local2]) {
return(true);
}
_local2++;
}
return(false);
}
function Refine(R) {
var _local4 = 0;
while (_local4 < _root.AREAHEIGHT) {
var _local3 = 0;
while (_local3 < _root.AREAWIDTH) {
var _local5 = (("t" + _local3) + "_") + _local4;
var _local6 = _root.editor[_local5].tile._currentframe;
var _local2 = walls[_root.tileset];
if ((_local6 == _local2.floor) && (_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe == _local2.black)) {
_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile.gotoAndStop(_local2.wall);
}
if ((R == 2) && (!isWater(_local6))) {
if ((_local6 == _local2.wall) && (_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe == _local2.black)) {
_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile.gotoAndStop(_local2.E[0]);
}
if ((_local6 == _local2.floor) && (_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile._currentframe == _local2.black)) {
_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile.gotoAndStop(_local2.E[2]);
}
if ((((_local6 == _local2.floor) || (_local6 == _local2.wall)) && (_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe == _local2.black)) && (_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe != _local2.wall)) {
_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile.gotoAndStop(_local2.E[3]);
}
if ((((_local6 == _local2.floor) || (_local6 == _local2.wall)) && (_root.editor[(("t" + (_local3 + 1)) + "_") + _local4].tile._currentframe == _local2.black)) && (_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe != _local2.wall)) {
_root.editor[(("t" + (_local3 + 1)) + "_") + _local4].tile.gotoAndStop(_local2.E[1]);
}
if (((_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile._currentframe == _local2.wall) && ((_root.editor[(("t" + (_local3 + 1)) + "_") + _local4].tile._currentframe == _local2.floor) || (_root.editor[(("t" + (_local3 + 1)) + "_") + _local4].tile._currentframe == _local2.wall))) && (_root.editor[(("t" + (_local3 + 1)) + "_") + (_local4 + 1)].tile._currentframe == _local2.floor)) {
_root.editor[_local5].tile.gotoAndStop(_local2.C[3]);
}
if (((_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile._currentframe == _local2.wall) && ((_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe == _local2.floor) || (_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe == _local2.wall))) && (_root.editor[(("t" + (_local3 - 1)) + "_") + (_local4 + 1)].tile._currentframe == _local2.floor)) {
_root.editor[_local5].tile.gotoAndStop(_local2.C[0]);
}
if ((((_local6 != _local2.floor) && (_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe == _local2.floor)) && (_root.editor[(("t" + (_local3 + 1)) + "_") + _local4].tile._currentframe == _local2.floor)) && (_root.editor[(("t" + (_local3 + 1)) + "_") + (_local4 - 1)].tile._currentframe == _local2.floor)) {
_root.editor[_local5].tile.gotoAndStop(_local2.C[2]);
}
if ((((_local6 != _local2.floor) && (_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe == _local2.floor)) && (_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe == _local2.floor)) && (_root.editor[(("t" + (_local3 - 1)) + "_") + (_local4 - 1)].tile._currentframe == _local2.floor)) {
_root.editor[_local5].tile.gotoAndStop(_local2.C[1]);
}
}
if (isWater(_local6)) {
if (!isWater(_root.editor[(("t" + (_local3 - 1)) + "_") + _local4].tile._currentframe)) {
if (!isWater(_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe)) {
_root.editor[_local5].tile.gotoAndStop(_local2.water[1]);
} else if (!isWater(_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile._currentframe)) {
_root.editor[_local5].tile.gotoAndStop(_local2.water[7]);
} else {
_root.editor[_local5].tile.gotoAndStop(_local2.water[8]);
}
} else if (!isWater(_root.editor[(("t" + (_local3 + 1)) + "_") + _local4].tile._currentframe)) {
if (!isWater(_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe)) {
_root.editor[_local5].tile.gotoAndStop(_local2.water[3]);
} else if (!isWater(_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile._currentframe)) {
_root.editor[_local5].tile.gotoAndStop(_local2.water[5]);
} else {
_root.editor[_local5].tile.gotoAndStop(_local2.water[4]);
}
} else if (!isWater(_root.editor[(("t" + _local3) + "_") + (_local4 - 1)].tile._currentframe)) {
_root.editor[_local5].tile.gotoAndStop(_local2.water[2]);
} else if (!isWater(_root.editor[(("t" + _local3) + "_") + (_local4 + 1)].tile._currentframe)) {
_root.editor[_local5].tile.gotoAndStop(_local2.water[6]);
}
}
_local3++;
}
_local4++;
}
}
walls = {t_cave:{floor:1, wall:2, black:3, E:[4, 5, 6, 7], C:[8, 9, 10, 11], water:[14, 33, 38, 34, 39, 35, 40, 36, 37]}, t_cave2:{floor:1, wall:2, black:3, E:[4, 5, 6, 7], C:[8, 9, 10, 11], water:[14, 33, 38, 34, 39, 35, 40, 36, 37]}, t_cave3:{floor:1, wall:2, black:3, E:[4, 5, 6, 7], C:[9, 10, 11, 8], water:[20, 26, 23, 27, 24, 28, 25, 29, 22]}};
}
on (press) {
Refine();
Refine(2);
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "SPRITES" in Symbol 4845 MovieClip Frame 1
on (press) {
_root.editor[_name]._visible = !_root.editor[_name]._visible;
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
onClipEvent (enterFrame) {
_alpha = (_root.editor[_name]._visible ? 100 : 50);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "LOOT" in Symbol 4845 MovieClip Frame 1
on (press) {
_root.editor[_name]._visible = !_root.editor[_name]._visible;
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
onClipEvent (enterFrame) {
_alpha = (_root.editor[_name]._visible ? 100 : 50);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Add Sprite" in Symbol 4845 MovieClip Frame 1
on (press) {
_root.ThePanel._visible = true;
_root.ThePanel.gotoAndStop("AddSprite");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Instance of Symbol 3984 MovieClip [MENU_btn] "Add Treasure" in Symbol 4845 MovieClip Frame 1
on (press) {
_root.ThePanel._visible = true;
_root.ThePanel.gotoAndStop("AddTreasure");
}
on (rollOver) {
this.gotoAndPlay(1);
}
on (rollOut) {
this.gotoAndPlay(_totalframes - _currentframe);
}
Symbol 4871 Button
on (press) {
_root.gotoAndPlay("cut1_end");
}
Symbol 4927 MovieClip Frame 1
stop();