Frame 1
if (getBytesLoaded() >= getBytesTotal()) {
_global.musicSetting = true;
gotoAndPlay (3);
} else {
loaded.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
}
Frame 2
gotoAndPlay (1);
Frame 3
function getMonthName(mon) {
switch (mon) {
case "01" :
return("January");
case "02" :
return("February");
case "03" :
return("March");
case "04" :
return("April");
case "05" :
return("May");
case "06" :
return("June");
case "07" :
return("July");
case "08" :
return("August");
case "09" :
return("September");
case "10" :
return("October");
case "11" :
return("November");
case "12" :
return("December");
}
}
function convertdatetime(origdate) {
newstr = (((origdate.substr(8, 2) + " ") + getMonthName(origdate.substr(5, 2))) + " ") + origdate.substr(0, 4);
if (origdate.substr(11, 2) > 12) {
var _local3 = "pm";
var _local2 = origdate.substr(11, 2) - 12;
}
if (origdate.substr(11, 2) == 12) {
var _local3 = "pm";
var _local2 = origdate.substr(11, 2);
}
if (origdate.substr(11, 2) < 12) {
var _local3 = "am";
var _local2 = origdate.substr(11, 2);
}
newstr = newstr + (((((", " + _local2) + ":") + origdate.substr(14, 2)) + " ") + _local3);
return(newstr);
}
function preparesave() {
_level0.saveQuests();
_level0.saveMapDetails();
_root.savebox.gotoAndStop(1);
_root.savebox.message.text = "";
_root.savebox.yesbutt._visible = false;
_root.savebox.usetype = "save";
_root.savebox.savetext.text = "SAVE DATA";
_root.savebox._visible = true;
_root.SaveList.listAllSaves();
}
function prepareload() {
_root.savebox.gotoAndStop(1);
_root.savebox.newsavelink._visible = false;
_root.savebox.message.text = "";
_root.savebox.yesbutt._visible = false;
_root.savebox.usetype = "load";
_root.savebox.savetext.text = "LOAD DATA";
_root.savebox._visible = true;
if (_root.SaveList == undefined) {
_root.savebox.gotoAndStop(4);
} else {
_root.SaveList.listAllSaves();
}
}
function preparenewsave() {
_root.savebox.gotoAndStop(3);
}
function savenewgame(savename) {
_root.savebox.errtext.text = "";
if (savename == "") {
_root.savebox.errtext.text = "Please enter a name for your save data.";
return(undefined);
}
var _local3 = 0;
while (_local3 < _root.tempsave.length) {
if (_root.tempsave[_local3] == savename) {
_root.savebox.errtext.text = "Another save data with the same name has been found. Please use a new save name.";
return(undefined);
}
_local3++;
}
var _local5 = _root.SaveList.createNewSave(_global.mainsave, savename);
_local5.save();
_global.mainsave = _local5;
_root.savebox.gotoAndStop(2);
_root.savebox.message.text = "Data saved";
}
function clear_savelist() {
var p = 1;
while (eval ("_root.savebox.savelistholder.save" + p)) {
eval ("_root.savebox.savelistholder.save" + p).removeMovieClip();
eval ("_root.savebox.savelistholder.deletesave" + p).removeMovieClip();
p++;
}
}
function renewUser(username, password) {
_root.SaveList = new SaveListObj(username, password);
_root.SaveList.addListener(_root.listenerobject);
_root.SaveList.connect();
_root.savebox.gotoAndStop(1);
_root.savebox.newsavelink._visible = false;
_root.savebox.loadingbar._visible = true;
}
function getEquipStats(charId, stats) {
var _local4 = _root.listallItems();
var _local6 = 0;
var _local2 = 0;
while (_local2 < _local4.length) {
if (charId == _local4[_local2].getAttribute("equip")) {
var _local3 = _root.getItemProp(_local4[_local2].getAttribute("id"));
if (_local3[stats] != undefined) {
_local6 = _local6 + parseInt(_local3[stats]);
}
}
_local2++;
}
return(_local6);
}
function refresh_stats(charid) {
_root.inventory.characterdetails.statbox.reflex.text = _level0["char" + charid].reflex;
_root.inventory.characterdetails.statbox.accuracy.text = _level0["char" + charid].accuracy;
_root.inventory.characterdetails.statbox.technique.text = _level0["char" + charid].technique;
_root.inventory.characterdetails.statbox.defense.text = _level0["char" + charid].defense;
_root.inventory.characterdetails.statbox.hp.text = _level0["char" + charid].hp;
_root.inventory.characterdetails.statbox.energy.text = _level0["char" + charid].energy;
}
function generate_newstats(charobj, botobj) {
var _local5 = getEquipStats(charobj.getAttribute("id"), "reflex");
var _local7 = getEquipStats(charobj.getAttribute("id"), "accuracy");
var _local4 = getEquipStats(charobj.getAttribute("id"), "technique");
var _local6 = getEquipStats(charobj.getAttribute("id"), "defense");
var _local3 = getEquipStats(charobj.getAttribute("id"), "hp");
var _local8 = getEquipStats(charobj.getAttribute("id"), "energy");
_level0["char" + charobj.getAttribute("id")] = new Object();
_level0["char" + charobj.getAttribute("id")].xp = parseInt(charobj.getAttribute("xp"));
_level0["char" + charobj.getAttribute("id")].hp = parseInt(botobj.getAttribute("hp")) + _local3;
_level0["char" + charobj.getAttribute("id")].energy = parseInt(botobj.getAttribute("energy"));
_level0["char" + charobj.getAttribute("id")].reflex = parseInt(charobj.getAttribute("reflex")) + _local5;
_level0["char" + charobj.getAttribute("id")].accuracy = parseInt(charobj.getAttribute("accuracy")) + _local7;
_level0["char" + charobj.getAttribute("id")].technique = parseInt(charobj.getAttribute("technique")) + _local4;
_level0["char" + charobj.getAttribute("id")].defense = parseInt(botobj.getAttribute("defense")) + _local6;
_level0["char" + charobj.getAttribute("id")].basereflex = parseInt(charobj.getAttribute("reflex"));
_level0["char" + charobj.getAttribute("id")].baseaccuracy = parseInt(charobj.getAttribute("accuracy"));
_level0["char" + charobj.getAttribute("id")].basetechnique = parseInt(charobj.getAttribute("technique"));
_level0["char" + charobj.getAttribute("id")].basedefense = parseInt(botobj.getAttribute("defense"));
if (charobj.getAttribute("id") == "A001") {
if (charobj.getAttribute("gender") == "M") {
_level0["char" + charobj.getAttribute("id")].portrait = "jin";
} else {
_level0["char" + charobj.getAttribute("id")].portrait = "yun";
}
} else {
_level0["char" + charobj.getAttribute("id")].portrait = charobj.getAttribute("name");
}
}
function populate_inventory() {
_root.inventory.gotoAndStop(1);
_root.inventory.characterdetails.removeMovieClip();
var saveobj = _global.mainsave;
_root.inventory.gotoAndStop(2);
_root.inventory.credits.text = _root.getCredits();
var i = 0;
while (i < 3) {
eval ("_root.inventory.charwin" + i).removeMovieClip();
i++;
}
var chars = _global.mainsave.getItemList("character");
var i = 0;
while (i < chars.length) {
_root.inventory.attachMovie("characterswindow", "charwin" + i, 10 - i);
eval ("_root.inventory.charwin" + i).pilot.text = chars[i].getAttribute("name");
eval ("_root.inventory.charwin" + i)._x = 16;
eval ("_root.inventory.charwin" + i)._y = 15 + (i * 76);
eval ("_root.inventory.charwin" + i).details = chars[i];
var botlist = chars[i].getItemList("bot");
var j = 0;
while (j < botlist.length) {
if (botlist[j].getAttribute("active")) {
eval ("_root.inventory.charwin" + i).activebot = botlist[j];
eval ("_root.inventory.charwin" + i).bot.text = botlist[j].getAttribute("name");
var hp_percent = ((botlist[j].getAttribute("currhp") * 100) / botlist[j].getAttribute("hp"));
hp_percent = Math.round(hp_percent);
eval ("_root.inventory.charwin" + i).hpbar.barvalue._xscale = hp_percent;
}
j++;
}
_root.generate_newstats(chars[i], eval ("_root.inventory.charwin" + i).activebot);
eval ("_root.inventory.charwin" + i).onRelease = function () {
if (this.details.getAttribute("sp") == "0") {
this._parent.characterdetails.statpt._visible = false;
this._parent.characterdetails.reflex_add._visible = false;
this._parent.characterdetails.accuracy_add._visible = false;
this._parent.characterdetails.technique_add._visible = false;
} else {
this._parent.characterdetails.statpt.remainpt.text = this.details.getAttribute("sp");
this._parent.characterdetails.reflex_add._visible = true;
this._parent.characterdetails.accuracy_add._visible = true;
this._parent.characterdetails.technique_add._visible = true;
this._parent.characterdetails.reflex_add.onRelease = function () {
var _local2 = parseInt(this._parent.selectedclip.details.getAttribute("reflex"));
this._parent.selectedclip.details.setAttribute("reflex", _local2 + 1);
this._parent.statpt.remainpt.text--;
this._parent.selectedclip.details.setAttribute("sp", this._parent.statpt.remainpt.text);
this._parent.statbox.reflex.text = _local2 + 1;
var _local3 = getEquipStats(this._parent.selectedclip.details.getAttribute("id"), "reflex");
_level0["char" + this._parent.selectedclip.details.getAttribute("id")].reflex = parseInt(this._parent.selectedclip.details.getAttribute("reflex")) + _local3;
if (this._parent.statpt.remainpt.text == 0) {
this._parent.statpt._visible = false;
this._parent.reflex_add._visible = false;
this._parent.accuracy_add._visible = false;
this._parent.technique_add._visible = false;
}
};
this._parent.characterdetails.accuracy_add.onRelease = function () {
var _local2 = parseInt(this._parent.selectedclip.details.getAttribute("accuracy"));
this._parent.selectedclip.details.setAttribute("accuracy", _local2 + 1);
this._parent.statpt.remainpt.text--;
this._parent.selectedclip.details.setAttribute("sp", this._parent.statpt.remainpt.text);
this._parent.statbox.accuracy.text = _local2 + 1;
var _local3 = getEquipStats(this._parent.selectedclip.details.getAttribute("id"), "accuracy");
_level0["char" + this._parent.selectedclip.details.getAttribute("id")].accuracy = parseInt(this._parent.selectedclip.details.getAttribute("accuracy")) + _local3;
if (this._parent.statpt.remainpt.text == 0) {
this._parent.statpt._visible = false;
this._parent.reflex_add._visible = false;
this._parent.accuracy_add._visible = false;
this._parent.technique_add._visible = false;
}
};
this._parent.characterdetails.technique_add.onRelease = function () {
var _local2 = parseInt(this._parent.selectedclip.details.getAttribute("technique"));
this._parent.selectedclip.details.setAttribute("technique", _local2 + 1);
this._parent.statpt.remainpt.text--;
this._parent.selectedclip.details.setAttribute("sp", this._parent.statpt.remainpt.text);
this._parent.statbox.technique.text = _local2 + 1;
var _local3 = getEquipStats(this._parent.selectedclip.details.getAttribute("id"), "technique");
_level0["char" + this._parent.selectedclip.details.getAttribute("id")].technique = parseInt(this._parent.selectedclip.details.getAttribute("technique")) + _local3;
if (this._parent.statpt.remainpt.text == 0) {
this._parent.statpt._visible = false;
this._parent.reflex_add._visible = false;
this._parent.accuracy_add._visible = false;
this._parent.technique_add._visible = false;
}
};
}
this._parent.characterdetails.bot_butt.gotoAndStop(this.activebot.getAttribute("botid"));
this._parent.characterdetails.bot_butt.onRelease = function () {
this._parent.equipbox.gotoAndStop(1);
this._parent.equip_highlight.gotoAndStop(1);
_root.create_equip_icons();
};
this._parent.characterdetails.char_butt.gotoAndStop(this.details.getAttribute("gender"));
this._parent.characterdetails.char_butt.onRelease = function () {
this._parent.equipbox.gotoAndStop(2);
this._parent.equip_highlight.gotoAndStop(2);
_root.create_equip_icons();
};
this._parent.characterdetails.swapDepths(this.getDepth() + 1);
this._parent.characterdetails.selectedclip = this;
this._parent.characterdetails.arrow._y = this._y + 15;
this._parent.characterdetails.botname.text = this.activebot.getAttribute("name");
this._parent.characterdetails.pilotname.text = "Pilot: " + this.details.getAttribute("name");
this._parent.characterdetails.leveltxt.text = this.details.getAttribute("level");
this._parent.characterdetails.statbox.xp.text = _root.xpArray[int(this.details.getAttribute("level")) - 1] - parseInt(this.details.getAttribute("xp"));
_root.refresh_stats(this.details.getAttribute("id"));
this._parent.characterdetails.currhp.text = (this.activebot.getAttribute("currhp") + " / ") + this.activebot.getAttribute("hp");
var _local3 = (this.activebot.getAttribute("currhp") * 100) / this.activebot.getAttribute("hp");
_local3 = Math.round(_local3);
this._parent.characterdetails.currhpbar.barvalue._xscale = _local3;
_root.create_equip_icons();
};
i++;
}
_root.inventory.charwin0.onRelease();
_root.inventory.characterdetails.selectedclip = _root.inventory.charwin0;
_root.create_inventory();
}
function create_equip_icons() {
_root.inventory.characterdetails.equipbox.armor.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.left.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.right.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.back.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.special1.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.special2.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.top.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.headgear.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.bottom.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.footwear.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.accessory.itemimage.removeMovieClip();
_root.inventory.characterdetails.equipbox.armor.itemobj = null;
_root.inventory.characterdetails.equipbox.left.itemobj = null;
_root.inventory.characterdetails.equipbox.right.itemobj = null;
_root.inventory.characterdetails.equipbox.back.itemobj = null;
_root.inventory.characterdetails.equipbox.special1.itemobj = null;
_root.inventory.characterdetails.equipbox.special2.itemobj = null;
_root.inventory.characterdetails.equipbox.top.itemobj = null;
_root.inventory.characterdetails.equipbox.headgear.itemobj = null;
_root.inventory.characterdetails.equipbox.bottom.itemobj = null;
_root.inventory.characterdetails.equipbox.footwear.itemobj = null;
_root.inventory.characterdetails.equipbox.accessory.itemobj = null;
var allitems = _root.listallItems();
var p = 0;
while (p < allitems.length) {
if (_root.inventory.characterdetails.selectedclip.details.getAttribute("id") == allitems[p].getAttribute("equip")) {
var itemprop = _root.getItemProp(allitems[p].getAttribute("id"));
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).attachMovie("equip_item", "itemimage", 1);
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemimage._x = eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemimage._x + 20;
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemimage._y = eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemimage._y + 20;
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemimage.itemimage.gotoAndStop(itemprop.type + itemprop.equip);
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemimage.itemimage.clip.gotoAndStop(itemprop.image);
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemobj = allitems[p];
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).itemprop = itemprop;
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).onPress = function () {
this._parent._parent._parent.attachMovie("equip_item", "hover_inven", this._parent._parent._parent.getNextHighestDepth());
this._parent._parent._parent.hover_inven._visible = false;
this._parent._parent._parent.hover_inven.itemobj = this.itemobj;
this._parent._parent._parent.hover_inven.itemimage.gotoAndStop(this.itemprop.type + this.itemprop.equip);
this._parent._parent._parent.hover_inven.itemimage.clip.gotoAndStop(this.itemprop.image);
this._parent._parent._parent.hover_inven.startDrag(true);
this._parent._parent._parent.hover_inven._alpha = 50;
this._parent._parent._parent.hover_inven.onMouseMove = function () {
this._visible = true;
};
this._parent._parent.txtbubble._visible = false;
};
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).onReleaseOutside = function () {
var _local3 = this._parent._parent._parent.hover_inven._droptarget;
if (_local3.indexOf("/inventory/characterdetails/inventorybox") != -1) {
this.itemobj.removeAttribute("equip");
this.itemobj.setAttribute("location", "none");
this._parent._parent._parent.hover_inven.removeMovieClip();
_root.generate_newstats(this._parent._parent.selectedclip.details, this._parent._parent.selectedclip.activebot);
_root.refresh_stats(this._parent._parent.selectedclip.details.getAttribute("id"));
this.itemimage.removeMovieClip();
this.itemobj = null;
this.itemprop = null;
this.onRollOver = function () {
};
_root.create_inventory();
}
this._parent._parent._parent.hover_inven.removeMovieClip();
};
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).onRelease = function () {
this._parent._parent._parent.hover_inven.removeMovieClip();
};
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).onRollOver = function () {
var _local2 = this.itemprop.name;
this._parent._parent.txtbubble.popup_text(_local2, 100, "0xD6E1E9", (this._parent._x + this._x) + 20, (this._parent._y + this._y) + 10, this._width, this._height, true);
this._parent._parent.txtbubble.settimer(90);
};
eval ("_root.inventory.characterdetails.equipbox." + allitems[p].getAttribute("location")).onRollOut = function () {
this._parent._parent.txtbubble._visible = false;
};
}
p++;
}
}
function create_inventory() {
var gcount = 0;
while (eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount)) {
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).removeMovieClip();
gcount++;
}
_root.inventory.status.status.text = "";
_root.inventory.status.dropbutt._visible = false;
var allitems = _root.listallItems();
var gcount = 0;
var p = 0;
while (p < allitems.length) {
if (allitems[p].getAttribute("equip")) {
} else {
var itemprop = _root.getItemProp(allitems[p].getAttribute("id"));
_root.inventory.characterdetails.inventorybox.inventorycontent.attachMovie("inventory_items", "items" + gcount, 10 + gcount);
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).itemobj = allitems[p];
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).itemprop = itemprop;
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).itemname.text = _root.getItemName(allitems[p].getAttribute("id"));
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).numcounter.counter.text = allitems[p].getAttribute("number");
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).itemimage.gotoAndStop(itemprop.type + itemprop.equip);
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).itemimage.clip.gotoAndStop(itemprop.image);
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount)._x = ((gcount % 3) * 134) + 20;
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount)._y = (Math.floor(gcount / 3) * 42) + 22;
if (allitems[p].getAttribute("number") > 1) {
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).numcounter._visible = true;
} else {
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).numcounter._visible = false;
}
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).onPress = function () {
if (!this.selected) {
this._parent.selectitem.mouseover.gotoAndStop(1);
this._parent.selectitem.selected = false;
this.mouseover.gotoAndStop(15);
this.selected = true;
this._parent.selectitem = this;
this._parent._parent._parent._parent.status.status.text = this.itemprop.description;
this._parent._parent._parent._parent.status.dropbutt._visible = true;
this._parent._parent._parent._parent.status.itemobj = this.itemobj;
this._parent._parent._parent._parent.status.dropbutt.onPress = function () {
this._parent._parent.alertbox.swapDepths(this._parent._parent.getNextHighestDepth());
this._parent._parent.alertbox._visible = true;
this._parent._parent.alertbox.itemobj = this._parent.itemobj;
this._parent._parent.alertbox.alertmsg.text = ("Do you really wish to discard " + getItemName(this._parent.itemobj.getAttribute("id"))) + "?";
this._parent._parent.alertbox.dropbutt.alertbutttext.text = "Drop item";
this._parent._parent.alertbox.dropbutt.onPress = function () {
_root.removeItem(this._parent.itemobj.getAttribute("id"), 1);
_root.create_inventory();
this._parent._parent.status.status.text = "";
this._parent._parent.status.dropbutt._visible = false;
this._parent._visible = false;
};
};
}
this._parent._parent.attachMovie("equip_item", "hover_inven", this._parent._parent._parent.getNextHighestDepth());
this._parent._parent._parent.swapDepths(50);
this._parent._parent.hover_inven._visible = false;
this._parent._parent.hover_inven.itemobj = this.itemobj;
this._parent._parent.hover_inven.itemimage.gotoAndStop(this.itemprop.type + this.itemprop.equip);
this._parent._parent.hover_inven.itemimage.clip.gotoAndStop(this.itemprop.image);
this._parent._parent.hover_inven.startDrag(true);
this._parent._parent.hover_inven._alpha = 50;
this._parent._parent.hover_inven.onMouseMove = function () {
this._visible = true;
};
if (this.itemprop.equip == "MELEE") {
this._parent._parent._parent.equipbox.right.gotoAndStop(2);
}
if (this.itemprop.equip == "LRANGE") {
this._parent._parent._parent.equipbox.left.gotoAndStop(2);
}
if (this.itemprop.equip == "HRANGE") {
this._parent._parent._parent.equipbox.back.gotoAndStop(2);
}
if (this.itemprop.equip == "ARMOR") {
this._parent._parent._parent.equipbox.armor.gotoAndStop(2);
}
if (this.itemprop.equip == "SPECIAL") {
this._parent._parent._parent.equipbox.special1.gotoAndStop(2);
this._parent._parent._parent.equipbox.special2.gotoAndStop(2);
}
if (this.itemprop.equip == "TOP") {
this._parent._parent._parent.equipbox.top.gotoAndStop(2);
}
if (this.itemprop.equip == "BOTTOM") {
this._parent._parent._parent.equipbox.bottom.gotoAndStop(2);
}
if (this.itemprop.equip == "FOOTWEAR") {
this._parent._parent._parent.equipbox.footwear.gotoAndStop(2);
}
if (this.itemprop.equip == "HEADGEAR") {
this._parent._parent._parent.equipbox.headgear.gotoAndStop(2);
}
if (this.itemprop.equip == "ACCESSORY") {
this._parent._parent._parent.equipbox.accessory.gotoAndStop(2);
}
};
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).onRelease = function () {
this._parent._parent._parent.equipbox.right.gotoAndStop(1);
this._parent._parent._parent.equipbox.left.gotoAndStop(1);
this._parent._parent._parent.equipbox.back.gotoAndStop(1);
this._parent._parent._parent.equipbox.armor.gotoAndStop(1);
this._parent._parent._parent.equipbox.special1.gotoAndStop(1);
this._parent._parent._parent.equipbox.special2.gotoAndStop(1);
this._parent._parent._parent.equipbox.top.gotoAndStop(1);
this._parent._parent._parent.equipbox.bottom.gotoAndStop(1);
this._parent._parent._parent.equipbox.footwear.gotoAndStop(1);
this._parent._parent._parent.equipbox.headgear.gotoAndStop(1);
this._parent._parent._parent.equipbox.accessory.gotoAndStop(1);
this._parent._parent.hover_inven.removeMovieClip();
};
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).onRollOver = function () {
if (!this.selected) {
this.mouseover.gotoAndPlay(2);
}
};
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).onRollOut = function () {
if (!this.selected) {
this.mouseover.gotoAndStop(1);
}
};
eval ("_root.inventory.characterdetails.inventorybox.inventorycontent.items" + gcount).onReleaseOutside = function () {
this._parent._parent._parent.equipbox.right.gotoAndStop(1);
this._parent._parent._parent.equipbox.left.gotoAndStop(1);
this._parent._parent._parent.equipbox.back.gotoAndStop(1);
this._parent._parent._parent.equipbox.armor.gotoAndStop(1);
this._parent._parent._parent.equipbox.special1.gotoAndStop(1);
this._parent._parent._parent.equipbox.special2.gotoAndStop(1);
this._parent._parent._parent.equipbox.top.gotoAndStop(1);
this._parent._parent._parent.equipbox.bottom.gotoAndStop(1);
this._parent._parent._parent.equipbox.footwear.gotoAndStop(1);
this._parent._parent._parent.equipbox.headgear.gotoAndStop(1);
this._parent._parent._parent.equipbox.accessory.gotoAndStop(1);
var dtarget = this._parent._parent.hover_inven._droptarget;
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/right") != -1) && (this.itemprop.equip == "MELEE")) {
var equiptype = "right";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/left") != -1) && (this.itemprop.equip == "LRANGE")) {
var equiptype = "left";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/back") != -1) && (this.itemprop.equip == "HRANGE")) {
var equiptype = "back";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/armor") != -1) && (this.itemprop.equip == "ARMOR")) {
var equiptype = "armor";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/special1") != -1) && (this.itemprop.equip == "SPECIAL")) {
var equiptype = "special1";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/special2") != -1) && (this.itemprop.equip == "SPECIAL")) {
var equiptype = "special2";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/top") != -1) && (this.itemprop.equip == "TOP")) {
var equiptype = "top";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/bottom") != -1) && (this.itemprop.equip == "BOTTOM")) {
var equiptype = "bottom";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/footwear") != -1) && (this.itemprop.equip == "FOOTWEAR")) {
var equiptype = "footwear";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/headgear") != -1) && (this.itemprop.equip == "HEADGEAR")) {
var equiptype = "headgear";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/accessory") != -1) && (this.itemprop.equip == "ACCESSORY")) {
var equiptype = "accessory";
}
if ((dtarget.indexOf("/inventory/characterdetails/equipbox/") != -1) && (equiptype != undefined)) {
var limitpass = true;
if ((((equiptype == "right") || (equiptype == "left")) || (equiptype == "back")) || (equiptype == "armor")) {
if (int(_level0["char" + this._parent._parent._parent.selectedclip.details.getAttribute("id")].basereflex) < this.itemprop.minreflex) {
trace("EQUIP LIMIT CHECK REF: F");
limitpass = false;
}
if (int(_level0["char" + this._parent._parent._parent.selectedclip.details.getAttribute("id")].baseaccuracy) < this.itemprop.minaccuracy) {
trace("EQUIP LIMIT CHECK ACC: F");
limitpass = false;
}
if (int(_level0["char" + this._parent._parent._parent.selectedclip.details.getAttribute("id")].basetechnique) < this.itemprop.mintechnique) {
trace("EQUIP LIMIT CHECK TEC: F");
limitpass = false;
}
if (limitpass) {
trace("EQUIP LIMIT CHECK (STATS): PASS");
limitpass = false;
var x = 0;
while (x < this.itemprop.user.length) {
trace((("Bot check: " + this._parent._parent._parent.selectedclip.activebot.getAttribute("botid")) + ":") + this.itemprop.user[x]);
if (this._parent._parent._parent.selectedclip.activebot.getAttribute("botid") == this.itemprop.user[x]) {
limitpass = true;
break;
}
x++;
}
}
}
if (limitpass) {
var charname = this._parent._parent._parent.selectedclip.details.getAttribute("name");
var charid = this._parent._parent._parent.selectedclip.details.getAttribute("id");
eval ("this._parent._parent._parent.equipbox." + equiptype).itemobj.removeAttribute("equip");
eval ("this._parent._parent._parent.equipbox." + equiptype).itemobj.setAttribute("location", "none");
eval ("this._parent._parent._parent.equipbox." + equiptype)._parent._parent._parent.hover_inven.removeMovieClip();
this.itemobj.setAttribute("equip", charid);
this.itemobj.setAttribute("location", equiptype);
_root.generate_newstats(this._parent._parent._parent.selectedclip.details, this._parent._parent._parent.selectedclip.activebot);
_root.refresh_stats(charid);
_root.create_equip_icons();
} else {
_level0.playSound("error");
var txter = "Equip requirements not met!";
trace("aaa" + this);
this._parent._parent._parent.txtbubble.popup_text(txter, 100, "0xDD8888", ((this._parent._parent._x + this._parent._x) + this._x) + 20, ((this._parent._parent._y + this._parent._y) + this._y) + 10, this._width, this._height, true);
this._parent._parent._parent.txtbubble.settimer(90);
}
}
if (dtarget.indexOf("/inventory/charwin0") != -1) {
var useperson = _root.inventory.charwin0.details.getAttribute("id");
var checkobj = _root.inventory.charwin0;
}
if (dtarget.indexOf("/inventory/charwin1") != -1) {
var useperson = _root.inventory.charwin1.details.getAttribute("id");
var checkobj = _root.inventory.charwin1;
}
if (dtarget.indexOf("/inventory/charwin2") != -1) {
var useperson = _root.inventory.charwin2.details.getAttribute("id");
var checkobj = _root.inventory.charwin2;
}
if (((dtarget.indexOf("/inventory/charwin") != -1) && (useperson != undefined)) && (this.itemprop.type == "USE")) {
var effectamt = _root.evaluse(this.itemprop.useid, useperson, this.itemprop.parameters);
_root.removeItem(this.itemobj.getAttribute("id"), 1);
create_inventory();
if (effectamt.addremove == "add") {
this._parent._parent.attachMovie("add_effect", "effects", 20);
}
if (effectamt.addremove == "remove") {
this._parent._parent.attachMovie("remove_effect", "effects", 20);
}
this._parent._parent.effects._x = this._parent._parent.hover_inven._x;
this._parent._parent.effects._y = this._parent._parent.hover_inven._y;
if (effectamt.attribute == "currhp") {
effectamt.attribute = "Hit points";
checkobj.hpbar.barvalue.newvalue = effectamt.newvalue;
checkobj.hpbar.barvalue.oldvalue = effectamt.oldvalue;
if (effectamt.oldvalue <= 0) {
effectamt.oldvalue = 1;
}
if (checkobj.hpbar.barvalue._xscale <= 0) {
checkobj.hpbar.barvalue._xscale = 1;
}
checkobj.hpbar.barvalue.newpercent = Math.round((effectamt.newvalue * checkobj.hpbar.barvalue._xscale) / effectamt.oldvalue);
checkobj.hpbar.barvalue.onEnterFrame = function () {
if (this._xscale < this.newpercent) {
this._xscale++;
}
if (this._xscale > this.newpercent) {
this._xscale--;
}
if (this._xscale > 100) {
this._xscale = 100;
}
if ((this._xscale == this.newpercent) || (this._xscale >= 100)) {
this.onEnterFrame = function () {
};
}
};
}
effectamt.attribute = effectamt.attribute.charAt(0).toUpperCase() + effectamt.attribute.substring(1, effectamt.attribute.length);
this._parent._parent.effects.attribute = effectamt.attribute;
this._parent._parent.effects.value = effectamt.amount;
}
this._parent._parent.hover_inven.removeMovieClip();
checkobj.onPress();
_root.create_inventory();
};
gcount++;
}
p++;
}
var txt_ht = _root.inventory.characterdetails.inventorybox.inventorycontent._height;
var mask_ht = _root.inventory.characterdetails.inventorybox.maskbox._height;
if (txt_ht > mask_ht) {
_root.inventory.characterdetails.inventorybox.slider._height = (mask_ht * mask_ht) / txt_ht;
} else {
_root.inventory.characterdetails.inventorybox.slider._y = 27;
_root.inventory.characterdetails.inventorybox.slider._height = mask_ht - 3;
}
if ((_root.inventory.characterdetails.inventorybox.slider._height + _root.inventory.characterdetails.inventorybox.slider._y) > 190) {
_root.inventory.characterdetails.inventorybox.slider._y = _root.inventory.characterdetails.inventorybox.slider._y - ((_root.inventory.characterdetails.inventorybox.slider._height + _root.inventory.characterdetails.inventorybox.slider._y) - 190);
}
}
function createNewAccount(username, userpass, email) {
_root.listenerobject.created_backup = _root.listenerobject.created;
_root.listenerobject.created = _root.listenerobject.converted;
trace((("creating user " + username) + " ") + userpass);
_root.SaveList.userid = username;
_root.SaveList.password = userpass;
_root.SaveList.createNewUser(email);
}
System.security.allowDomain("http://mobileweapon.net/", "http://www.mobileweapon.net");
stop();
SaveItemObj = function (saveName) {
this.name = saveName;
this.attributelist = new Object();
this.itemlist = new Object();
this.itemcount = 0;
};
SaveItemObj.prototype.getName = function () {
return(this.name);
};
SaveItemObj.prototype.addAttribute = function (addtriName, value) {
this.attributelist[addtriName] = value;
};
SaveItemObj.prototype.removeAttribute = function (addtriName) {
delete this.attributelist[addtriName];
};
SaveItemObj.prototype.setAttribute = function (addtriName, value) {
this.attributelist[addtriName] = value;
};
SaveItemObj.prototype.getAttribute = function (addtriName) {
return(this.attributelist[addtriName]);
};
SaveItemObj.prototype.getAttributeList = function () {
return(this.attributelist);
};
SaveItemObj.prototype.addItem = function (itemobj) {
this.itemlist[this.itemcount++] = itemobj;
};
SaveItemObj.prototype.removeItem = function (indexa) {
delete this.itemlist[indexa];
};
SaveItemObj.prototype.setItem = function (indexa, itemobj) {
this.itemlist[indexa] = itemobj;
};
SaveItemObj.prototype.getItem = function (indexa) {
return(this.itemlist[indexa]);
};
SaveItemObj.prototype.getItemList = function (itemname) {
var _local2 = new Array();
var _local3 = 0;
for (var _local4 in this.itemlist) {
if (this.itemlist[_local4].getName() == itemname) {
_local2[_local3++] = this.itemlist[_local4];
}
}
return(_local2);
};
SaveItemObj.prototype.getItemListIndex = function (itemname) {
var _local2 = new Array();
for (var _local3 in this.itemlist) {
if (this.itemlist[_local3].getName() == itemname) {
_local2[_local3] = this.itemlist[_local3];
}
}
return(_local2);
};
SaveItemObj.prototype.convertXML = function () {
var _local2 = new XMLNode(1, this.name);
for (var _local3 in this.attributelist) {
_local2.attributes[_local3] = this.attributelist[_local3];
}
for (var _local3 in this.itemlist) {
_local2.appendChild(this.itemlist[_local3].convertXML());
}
return(_local2);
};
SaveItemObj.prototype.loadXML = function (XMLLoadNode) {
for (var _local7 in this.attributelist) {
delete this.attributelist[_local7];
}
for (var _local7 in this.itemlist) {
delete this.itemlist[_local7];
}
for (var _local6 in XMLLoadNode.attributes) {
this.setAttribute(_local6, XMLLoadNode.attributes[_local6]);
}
var _local4 = XMLLoadNode.childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.addItem(_local3);
_local2++;
}
};
SaveItemObj.prototype.printitems = function () {
trace("Save item name = " + this.name);
var _local2 = "";
for (var _local3 in this.attributelist) {
_local2 = _local2 + (((_local3 + ":") + this.attributelist[_local3]) + ", ");
}
trace("Attributes = " + _local2);
trace("Total items = " + this.itemcount);
trace("----------------------------------");
};
SaveItemObj.prototype.testcheck = function () {
trace("print test ");
};
SaveDataObj = function (username, saveURL, indexa) {
this.savePath = saveURL;
this.userid = username;
this.forceLocalFlag = false;
this.saveIndex = indexa;
this.recipientObj = null;
};
SaveDataObj.prototype = new SaveItemObj("SavedData");
SaveDataObj.prototype.save = function () {
var _local2 = this.convertXML();
var _local3 = new XML();
_local3.parentdata = this.recipientObj;
_local3.onLoad = function (success) {
if (success) {
this.parentdata.saved(true);
} else {
this.parentdata.saved(false);
}
};
var _local4 = SharedObject.getLocal(this.userid + "_neoplanetsave");
_local4.data[this.saveIndex] = _local2.toString();
_local4.flush(100000);
if ((this.userid && (this.userid != "")) && (!this.forceLocalFlag)) {
_local2.contentType = "text/xml";
_local2.sendAndLoad((((this.savePath + "&type=save&userid=") + this.userid) + "&saveindex=") + this.saveIndex, _local3);
} else {
this.recipientObj.saved(true);
}
};
SaveDataObj.prototype.load = function () {
for (var _local6 in this.attributelist) {
delete this.attributelist[_local6];
}
for (var _local6 in this.itemlist) {
delete this.itemlist[_local6];
}
var loadXML = new XML();
loadXML.ignoreWhite = true;
loadXML.parentdata = this;
loadXML.onLoad = function (success) {
var _local7 = loadXML.firstChild;
var _local8 = _local7.nextSibling;
if ((_local8.firstChild.nodeValue != "342134") && (!this.parentdata.forceLocalFlag)) {
success = false;
}
if (success) {
var _local5 = loadXML.firstChild;
var _local4 = _local5.childNodes;
if (_local4.length == 0) {
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
this.parseXML(_local6.data[this.parentdata.saveIndex]);
_local5 = this.firstChild;
_local4 = _local5.childNodes;
}
for (prop in _local5.attributes) {
this.parentdata.setAttribute(prop, _local5.attributes[prop]);
}
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.parentdata.addItem(_local3);
_local2++;
}
this.parentdata.onLoad();
} else {
this.parentdata.forceLocalFlag = true;
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
this.parseXML(_local6.data[this.parentdata.saveIndex]);
this.onLoad("true");
}
};
if ((this.userid && (this.userid != "")) && (!this.forceLocalFlag)) {
loadXML.load((((this.savePath + "&type=retrieve&userid=") + this.userid) + "&saveindex=") + this.saveIndex);
} else {
var _local7 = SharedObject.getLocal(this.userid + "_neoplanetsave");
loadXML.parseXML(_local7.data[this.saveIndex]);
loadXML.onLoad("true");
}
};
SaveDataObj.prototype.forceLocal = function (setlocal) {
this.forceLocalFlag = setlocal;
};
SaveDataObj.prototype.loadSaveItem = function (saveitem) {
this.attributelist = saveitem.attributelist;
this.itemlist = saveitem.itemlist;
this.itemcount = saveitem.itemcount;
};
SaveDataObj.prototype.extractSaveItem = function () {
var _local2 = new SaveItemObj("");
_local2.attributelist = this.attributelist;
_local2.itemlist = this.itemlist;
_local2.itemcount = this.itemcount;
return(_local2);
};
SaveDataObj.prototype.convertXML = function () {
var _local4 = new XML();
var _local2 = new XMLNode(1, "SavedData");
_local4.appendChild(_local2);
for (var _local3 in this.attributelist) {
_local2.attributes[_local3] = this.attributelist[_local3];
}
for (var _local3 in this.itemlist) {
_local2.appendChild(this.itemlist[_local3].convertXML());
}
return(_local4);
};
SaveDataObj.prototype.cloneSave = function (prevSave) {
var _local6 = prevSave.convertXML();
var _local5 = _local6.firstChild;
for (prop in _local5.attributes) {
this.setAttribute(prop, _local5.attributes[prop]);
}
var _local4 = _local5.childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.addItem(_local3);
_local2++;
}
};
SaveDataObj.prototype.parseXML = function (xmlstr) {
var _local6 = new XML();
_local6.parseXML(xmlstr);
var _local5 = _local6.firstChild;
for (prop in _local5.attributes) {
this.setAttribute(prop, _local5.attributes[prop]);
}
var _local4 = _local5.childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.addItem(_local3);
_local2++;
}
};
SaveDataObj.prototype.addListener = function (listobj) {
this.recipientObj = listobj;
};
SaveListObj = function (username, passwd) {
this.hostname = "http://mobileweapon.net/ep1/";
this.filename = "neoplanetas.php";
this.savePath = ((this.hostname + this.filename) + "?sessid=") + _global.session;
this.userid = username;
this.password = passwd;
this.recipientObj = null;
this.loaded = false;
this.loadSaveList = new Array();
this.forceLoadShared = false;
};
SaveListObj.prototype.checkForceLocal = function () {
return(this.forceLoadShared);
};
SaveListObj.prototype.forceLocal = function (flocal) {
this.forceLoadShared = flocal;
};
SaveListObj.prototype.connect = function () {
if (this.userid == "") {
this.forceLoadShared = true;
this.recipientObj.error("NOUSERNAME");
return(undefined);
}
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
if (success) {
var _local3 = replyXML.firstChild;
if ((_local3.attributes.key == "INVALID") || (replyXML.toString() == "invalid session")) {
this.recObj.recipientObj.connected(false);
} else {
_global.session = _local3.attributes.key;
this.recObj.savePath = ((this.recObj.hostname + this.recObj.filename) + "?sessid=") + _global.session;
this.recObj.recipientObj.connected(true);
}
} else {
this.recipientObj.error("NOCONNECTION");
}
};
replyXML.load((((this.savePath + "&type=authenticate&userid=") + this.userid) + "&password=") + this.password);
};
SaveListObj.prototype.createNewUser = function (email) {
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
if (success) {
var _local3 = replyXML.firstChild;
if (_local3.attributes.key == "DUPLICATE") {
this.recObj.recipientObj.created(false, _local3.attributes.key);
} else {
_global.session = _local3.attributes.key;
this.recObj.savePath = ((this.recObj.hostname + this.recObj.filename) + "?sessid=") + _global.session;
this.recObj.recipientObj.created(true, "");
}
} else {
this.recObj.recipientObj.created(false, "NOCON");
}
};
replyXML.load((((((this.savePath + "&type=createuser&userid=") + this.userid) + "&password=") + this.password) + "&email=") + email);
};
SaveListObj.prototype.listAllSaves = function () {
if (!this.loaded) {
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
var _local8 = replyXML.firstChild;
var _local9 = _local8.nextSibling;
if ((_local9.firstChild.nodeValue != "342134") && (!this.recObj.forceLoadShared)) {
success = false;
}
if (success) {
_local8 = replyXML.firstChild;
var _local4 = _local8.childNodes;
this.recObj.loadSaveList = new Array();
var _local2 = 0;
while (_local2 < _local4.length) {
this.recObj.loadSaveList[_local4[_local2].attributes.name] = _local4[_local2].attributes.date;
_local2++;
}
var _local6 = SharedObject.getLocal(this.recObj.userid + "_neoplanetsave");
var _local5 = new XML();
_local5.parseXML(_local6.data.savelist);
var _local7 = _local5.firstChild;
var _local3 = _local7.childNodes;
_local2 = 0;
while (_local2 < _local3.length) {
if (this.recObj.loadSaveList[_local3[_local2].attributes.name]) {
if (this.recObj.loadSaveList[_local3[_local2].attributes.name] < _local3[_local2].attributes.date) {
this.recObj.loadSaveList[_local3[_local2].attributes.name] = _local3[_local2].attributes.date;
}
} else {
this.recObj.loadSaveList[_local3[_local2].attributes.name] = _local3[_local2].attributes.date;
}
_local2++;
}
this.recObj.loaded = true;
this.recObj.recipientObj.getList(this.recObj.loadSaveList);
} else {
trace("failure?");
var _local6 = SharedObject.getLocal(this.recObj.userid + "_neoplanetsave");
this.parseXML(_local6.data.savelist);
this.recObj.forceLoadShared = true;
this.onLoad(true);
}
};
if (this.forceLoadShared) {
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
replyXML.parseXML(_local6.data.savelist);
replyXML.onLoad(true);
} else {
replyXML.load((this.savePath + "&type=listsaves&userid=") + this.userid);
}
} else {
this.recipientObj.getList(this.loadSaveList);
}
};
SaveListObj.prototype.loadAllSaves = function () {
};
SaveListObj.prototype.getSave = function (indexa) {
var _local2 = new SaveDataObj(this.userid, this.savePath, indexa);
_local2.printitems();
_local2.recipientObj = this.recipientObj;
if (this.forceLoadShared) {
_local2.forceLocal(true);
}
_local2.onLoad = function () {
this.recipientObj.getSave(this);
};
_local2.load();
};
SaveListObj.prototype.createNewSave = function (currSaveObj, indexa) {
var _local7 = new SaveDataObj(this.userid, this.savePath, indexa);
_local7.cloneSave(currSaveObj);
_local7.forceLocal(this.forceLoadShared);
var _local2 = new Date();
var _local3 = _local2.getMonth() + 1;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
var _local6 = _local2.getDate();
if (_local6 < 10) {
_local6 = "0" + _local6;
}
var _local5 = _local2.getHours();
if (_local5 < 10) {
_local5 = "0" + _local5;
}
var _local4 = _local2.getMinutes();
if (_local4 < 10) {
_local4 = "0" + _local4;
}
this.loadSaveList[indexa] = (((((((_local2.getFullYear() + "-") + _local3) + "-") + _local6) + " ") + _local5) + ":") + _local4;
this.saveList();
return(_local7);
};
SaveListObj.prototype.createEmptySave = function (indexa) {
var _local7 = new SaveDataObj(this.userid, this.savePath, indexa);
_local7.forceLocal(this.forceLoadShared);
var _local2 = new Date();
var _local3 = _local2.getMonth() + 1;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
var _local6 = _local2.getDate();
if (_local6 < 10) {
_local6 = "0" + _local6;
}
var _local5 = _local2.getHours();
if (_local5 < 10) {
_local5 = "0" + _local5;
}
var _local4 = _local2.getMinutes();
if (_local4 < 10) {
_local4 = "0" + _local4;
}
this.loadSaveList[indexa] = (((((((_local2.getFullYear() + "-") + _local3) + "-") + _local6) + " ") + _local5) + ":") + _local4;
this.saveList();
return(_local7);
};
SaveListObj.prototype.saveList = function () {
var _local3 = new XML();
var _local4 = _local3.createElement("savelist");
_local3.appendChild(_local4);
for (var _local5 in this.loadSaveList) {
var _local2 = _local3.createElement("savedata");
_local2.attributes.name = _local5;
_local2.attributes.date = this.loadSaveList[_local5];
_local4.appendChild(_local2);
}
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
_local6.data.savelist = _local3.toString();
_local6.flush(10000);
};
SaveListObj.prototype.deleteSave = function (indexa) {
trace("deleting " + indexa);
delete this.loadSaveList[indexa];
this.saveList();
var replyXML = new XML();
replyXML.onLoad = function (success) {
trace(replyXML);
if (success && (replyXML == "SUCCESS")) {
this.recObj.deleted(true);
} else {
var _local2 = SharedObject.getLocal(this.userid + "_neoplanetsave");
delete _local2.data[indexa];
this.recObj.deleted(true);
}
};
replyXML.recObj = this.recipientObj;
replyXML.load((((this.savePath + "&type=delete&userid=") + this.userid) + "&saveindex=") + indexa);
var _local2 = SharedObject.getLocal(this.userid + "_neoplanetsave");
delete _local2.data[indexa];
};
SaveListObj.prototype.addListener = function (recObject) {
this.recipientObj = recObject;
};
SaveListObj.prototype.forceOnline = function (username, userpass, email) {
this.userid = username;
this.password = userpass;
this.createNewUser(email);
};
_global.mainsave = null;
listenerobject = new Object();
listenerobject.getList = function (r_array) {
_root.savebox.loadingbar._visible = false;
_root.tempsave = new Array();
if (_root.SaveList.checkForceLocal()) {
_root.savebox.message.text = "You are not connected to our server.";
}
clear_savelist();
var pcount = 1;
for (var pos in r_array) {
_root.tempsave[pcount - 1] = pos;
_root.savebox.savelistholder.attachMovie("save links", "save" + pcount, 20 + pcount);
_root.savebox.savelistholder.attachMovie("close button", "deletesave" + pcount, 40 + pcount);
eval ("_root.savebox.savelistholder.save" + pcount).save_name.text = (pcount + ". ") + pos;
eval ("_root.savebox.savelistholder.save" + pcount).save_time.text = convertdatetime(r_array[pos]);
eval ("_root.savebox.savelistholder.save" + pcount).savename = pos;
eval ("_root.savebox.savelistholder.save" + pcount)._x = 5;
eval ("_root.savebox.savelistholder.save" + pcount)._y = (pcount - 1) * 25;
eval ("_root.savebox.savelistholder.deletesave" + pcount)._x = 10;
eval ("_root.savebox.savelistholder.deletesave" + pcount)._y = 6 + ((pcount - 1) * 25);
eval ("_root.savebox.savelistholder.deletesave" + pcount).id = eval ("_root.savebox.savelistholder.save" + pcount);
eval ("_root.savebox.savelistholder.save" + pcount).selid = pcount;
eval ("_root.savebox.savelistholder.deletesave" + pcount).onRelease = function () {
this.id.gotoAndStop(30);
if (!this.selected) {
this.id.gotoAndStop(30);
this.id.selected = true;
if (this.id.selid != this._parent.selectid) {
eval ("_root.savebox.savelistholder.save" + this._parent.selectid).selected = false;
eval ("_root.savebox.savelistholder.save" + this._parent.selectid).gotoAndStop(1);
this._parent.selectid = this.id.selid;
}
}
this._parent._parent.message.text = "This save file will be deleted. Are you sure?";
this._parent._parent.yesbutt._visible = true;
this._parent._parent.yesbutt.savename = this.id.savename;
this._parent._parent.yesbutt.onRelease = function () {
_root.SaveList.deleteSave(this.savename);
this._visible = false;
var p = 1;
while (eval ("_root.savebox.savelistholder.save" + p)) {
eval ("_root.savebox.savelistholder.save" + p).removeMovieClip();
eval ("_root.savebox.savelistholder.deletesave" + p).removeMovieClip();
p++;
}
_root.SaveList.listAllSaves();
};
};
eval ("_root.savebox.savelistholder.save" + pcount).onRollOver = function () {
if (!this.selected) {
this.gotoAndPlay(2);
}
};
eval ("_root.savebox.savelistholder.save" + pcount).onRollOut = function () {
if (!this.selected) {
this.gotoAndStop(1);
}
};
eval ("_root.savebox.savelistholder.save" + pcount).onRelease = function () {
this.gotoAndStop(15);
if (!this.selected) {
this.selected = true;
if (this.selid != this._parent.selectid) {
eval ("_root.savebox.savelistholder.save" + this._parent.selectid).selected = false;
eval ("_root.savebox.savelistholder.save" + this._parent.selectid).gotoAndStop(1);
this._parent.selectid = this.selid;
}
}
if (this._parent._parent.usetype == "load") {
this._parent._parent.message.text = "Your current data will be lost. Are you sure?";
this._parent._parent.yesbutt._visible = true;
this._parent._parent.yesbutt.savename = this.savename;
this._parent._parent.yesbutt.onRelease = function () {
_root.savebox.message.text = "Loading... Please wait";
_root.SaveList.getSave(this.savename);
var p = 1;
while (eval ("_root.savebox.savelistholder.save" + p)) {
eval ("_root.savebox.savelistholder.save" + p).removeMovieClip();
eval ("_root.savebox.savelistholder.deletesave" + p).removeMovieClip();
p++;
}
_root.savebox.gotoAndStop(6);
_root.savebox.errtext.text = "Loading... Please wait";
_root.savebox.loginbutt._visible = false;
};
}
if (this._parent._parent.usetype == "save") {
this._parent._parent.message.text = "Your previous data will be overridden. Are you sure?";
this._parent._parent.yesbutt._visible = true;
this._parent._parent.yesbutt.buttontext.text = "Save";
this._parent._parent.yesbutt.savename = this.savename;
this._parent._parent.yesbutt.onRelease = function () {
var newsave = _root.SaveList.createNewSave(_global.mainsave, this.savename);
_global.mainsave = newsave;
var p = 1;
while (eval ("_root.savebox.savelistholder.save" + p)) {
eval ("_root.savebox.savelistholder.save" + p).removeMovieClip();
eval ("_root.savebox.savelistholder.deletesave" + p).removeMovieClip();
p++;
}
_root.savebox.gotoAndStop(6);
_root.savebox.errtext.text = "Saving... Please wait";
_root.savebox.loginbutt._visible = false;
_global.mainsave.addListener(_root.listenerobject);
_global.mainsave.save();
};
}
};
pcount++;
}
if (pcount == 0) {
_root.savebox.message.text = "No save found.";
}
var txt_ht = _root.savebox.savelistholder._height;
var mask_ht = _root.savebox.maskbox._height;
if (txt_ht > mask_ht) {
_root.savebox.slider._height = Math.round((mask_ht * mask_ht) / txt_ht);
} else {
_root.savebox.slider._visible = false;
}
var p = 1;
while (eval ("_root.savebox.savelistholder.save" + p)) {
p++;
}
trace((("Save count: " + p) + ". Usetype: ") + _root.savebox.usetype);
if ((p <= 4) && (_root.savebox.usetype == "save")) {
_root.savebox.newsavelink._visible = true;
delete _root.savebox.newsavelink.onRelease;
} else {
_root.savebox.newsavelink._visible = false;
}
};
listenerobject.deleted = function (success) {
if (success) {
_root.savebox.message.text = "Your save file has been removed.";
}
};
listenerobject.getSave = function (saveobj) {
var _local3 = saveobj.getItemList("globalvars");
_global.mainsave = saveobj;
reload_data();
populate_inventory();
init_map();
_root.savebox._visible = false;
_root.inventory._visible = false;
_global.option = "load";
playSound("press");
gotoAndStop (16);
};
listenerobject.connected = function (success) {
if (success) {
trace("connection success");
var _local3 = SharedObject.getLocal("/mobileweapon");
_local3.data.userid = _root.SaveList.userid;
_local3.data.password = _root.SaveList.password;
_global.quickstart = false;
_root.SaveList.listAllSaves();
} else {
trace("connection failed");
_root.savebox.gotoAndStop(2);
_root.savebox.message.text = "Invalid username or password.";
}
};
listenerobject.error = function (errtype) {
if (errtype == "NOUSERNAME") {
trace("no username?");
var _local2 = SharedObject.getLocal("/mobileweapon");
_local2.data.userid = _root.SaveList.userid;
_local2.data.password = _root.SaveList.password;
_root.SaveList.listAllSaves();
}
if (errtype == "NOCONNECTION") {
var _local2 = SharedObject.getLocal("/mobileweapon");
_local2.data.userid = _root.SaveList.userid;
_local2.data.password = _root.SaveList.password;
_root.SaveList.listAllSaves();
}
};
listenerobject.created = function (success, errtype) {
if (success) {
var _local4 = SharedObject.getLocal("/mobileweapon");
_local4.data.userid = _root.SaveList.userid.userid;
_local4.data.password = _root.SaveList.userid.password;
var _local5 = "<SavedData><character id=\"A001\" name=\"Yun\" reflex=\"20\" accuracy=\"15\" technique=\"2\" xp=\"0\" active=\"1\" level=\"1\" sp=\"3\"><bot botid=\"luna\" name=\"Luna\" defense=\"3\" currhp=\"120\" hp=\"120\" energy=\"4\" active=\"true\"><parts name=\"part1\" colorr=\"150\" colorg=\"120\" colorb=\"30\" /><parts name=\"part2\" colorr=\"125\" colorg=\"120\" colorb=\"120\" /><parts name=\"part3\" colorr=\"35\" colorg=\"35\" colorb=\"110\" /></bot></character><globalvars maplocation=\"1\" arealocation=\"1\" tx=\"300\" tz=\"-180\" credits=\"120\" chance=\"20\" /><inventory><item id=\"C01AT\" location=\"top\" equip=\"A001\" /><item id=\"C01AB\" location=\"bottom\" equip=\"A001\" /><item id=\"C01AF\" location=\"footwear\" equip=\"A001\" /><item id=\"W01H\" location=\"back\" equip=\"A001\" /><item id=\"W01M\" location=\"right\" equip=\"A001\" /><item id=\"I001R\" location=\"none\" /><item id=\"I001R\" location=\"none\" /><item id=\"I003Q\" location=\"none\" /></inventory><questlist><quest id=\"1\" prog=\"1\" /></questlist></SavedData>";
var _local3 = SaveList.createEmptySave("new");
_local3.parseXML(_local5);
_local3.save();
_local3.printitems();
_global.mainsave = _local3;
_global.option = "newgame";
gotoAndStop (14);
} else {
trace("creation failed");
if (errtype == "DUPLICATE") {
_root.errormsg1.text = "This username has been used.";
}
if (errtype == "NOCON") {
_root.errormsg3.text = "No connection to server.";
}
}
};
listenerobject.saved = function (success, errtype) {
_root.savebox.gotoAndStop(2);
_root.savebox.message.text = "Data saved.";
};
listenerobject.converted = function (success, errtype) {
if (success) {
trace("creation success");
_root.savebox.gotoAndStop(6);
_root.savebox.errtext.text = "Moving your save files online. This may take a few minutes depending on your connection speed.";
var _local7 = _root.SaveList.loadSaveList;
var _local8 = SharedObject.getLocal("_neoplanetsave");
this.vcount = 0;
for (var _local9 in _local7) {
this.vcount++;
}
for (var _local9 in _local7) {
var _local4 = new SaveDataObj(_root.SaveList.userid, _root.SaveList.savePath, _local9);
_local4.parseXML(_local8.data[_local9]);
_local4.printitems();
var _local6 = new Object();
_local6.saved = function (success) {
trace("called");
_root.listenerobject.vcount--;
if (_root.listenerobject.vcount == 0) {
_root.savebox.gotoAndStop(2);
_root.savebox.message.text = "Transfer completed.";
var _local3 = SharedObject.getLocal("/mobileweapon");
_local3.data.password = _root.SaveList.password;
_local3.data.userid = _root.SaveList.userid;
delete _local3.data.quickstart;
_local3.flush();
_global.quickstart = false;
_root.SaveList.forceLocal(false);
}
};
_local4.addListener(_local6);
_local4.forceLocal(false);
_local4.save();
}
} else {
trace("creation failed");
_root.SaveList.userid = "";
_root.SaveList.password = "";
if (errtype == "DUPLICATE") {
_root.savebox.errtext.text = "This username has been used.";
_root.savebox.loginbutt._visible = true;
}
if (errtype == "NOCON") {
_root.savebox.errtext.text = "No connection to server.";
_root.savebox.loginbutt._visible = true;
}
}
this.created = this.created_backup;
};
listenerobject.continueSaved = function () {
};
var so = SharedObject.getLocal("/mobileweapon");
_root.savebox.yesbutt._visible = false;
_root.savebox._visible = false;
if (so.data.userid == undefined) {
_root.savebox.gotoAndStop(4);
} else {
if (so.data.userid == "") {
_global.quickstart = true;
}
_root.SaveList = new SaveListObj(so.data.userid, so.data.password);
_root.SaveList.addListener(listenerobject);
_root.SaveList.connect();
}
mobile_btn.enabled = false;
multi_btn.enabled = false;
function tylerLink() {
getURL ("http://www.mobileweapon.net", "_blank");
}
MENU.customItems.push(tylerLink);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
customMenuItem1 = new ContextMenuItem("Copyright(c)2005-2006. All rights reserved.", tylerLink);
customMenuItem2 = new ContextMenuItem("Concept by TYLER Projects| Games Studio", tylerLink);
customMenuItem3 = new ContextMenuItem("Visit our website > http://www.mobileweapon.net", tylerLink);
MENU.customItems.push(customMenuItem1);
MENU.customItems.push(customMenuItem2);
MENU.customItems.push(customMenuItem3);
_root.menu = MENU;
function playSound(s) {
_root.soundfx.gotoAndPlay(s);
}
stopAllSounds();
if (_global.musicSetting) {
currentMusic = "intro";
music.gotoAndStop("intro");
}
Frame 10
stop();
if (_global.musicSetting) {
currentMusic = "intro";
music.gotoAndStop("intro");
}
Frame 11
stopAllSounds();
nextFrame();
Frame 12
if (_global.musicSetting) {
music.gotoAndStop("morning");
}
nextFrame();
Frame 13
function dialogNext() {
dialog.gotoAndStop(step);
}
stop();
step = 1;
if (_global.part1r == undefined) {
_global.part1r = 80;
_global.part1g = 110;
_global.part1b = 150;
_global.part2r = 150;
_global.part2g = 150;
_global.part2b = 150;
_global.part3r = 130;
_global.part3g = 140;
_global.part3b = 140;
}
pilotName.text = _global.pilotName;
mawName.text = _global.mawName;
Frame 14
function dialogNext() {
dialog.gotoAndStop(step);
}
stop();
step = 1;
if (_global.part1r == undefined) {
_global.part1r = 80;
_global.part1g = 110;
_global.part1b = 150;
_global.part2r = 150;
_global.part2g = 150;
_global.part2b = 150;
_global.part3r = 130;
_global.part3g = 140;
_global.part3b = 140;
}
guy.selected = true;
guy.gotoAndStop(2);
Instance of Symbol 1910 MovieClip "guy" in Frame 14
on (press) {
this.selected = true;
_parent.gal.selected = false;
_parent.gal.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (!this.selected) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1914 MovieClip "gal" in Frame 14
on (press) {
this.selected = true;
_parent.guy.selected = false;
_parent.guy.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (!this.selected) {
this.gotoAndStop(1);
}
}
Frame 15
function dialogNext() {
dialog.gotoAndStop(step);
}
stop();
step = 1;
if (_global.part1r == undefined) {
_global.part1r = 80;
_global.part1g = 110;
_global.part1b = 150;
_global.part2r = 150;
_global.part2g = 150;
_global.part2b = 150;
_global.part3r = 130;
_global.part3g = 140;
_global.part3b = 140;
}
prev_btn._visible = true;
Frame 16
function getCharColor(characterid) {
var _local3 = _global.mainsave.getItemList("character");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("name") == characterid) {
return(_local3[_local2].getItemList("parts"));
}
_local2++;
}
}
function setMapLocation(newloc) {
var _local2 = _global.mainsave.getItemList("globalvars");
_local2[0].setAttribute("maplocation", newloc);
}
function getMapLocation() {
var _local2 = _global.mainsave.getItemList("globalvars");
return(parseInt(_local2[0].getAttribute("maplocation")));
}
function getAreaLocation() {
var _local2 = _global.mainsave.getItemList("globalvars");
return(parseInt(_local2[0].getAttribute("arealocation")));
}
function setAreaLocation(newloc) {
var _local2 = _global.mainsave.getItemList("globalvars");
_local2[0].setAttribute("arealocation", newloc);
}
function getXloc() {
var _local2 = _global.mainsave.getItemList("globalvars");
return(parseInt(_local2[0].getAttribute("tx")));
}
function setXloc(newloc) {
var _local2 = _global.mainsave.getItemList("globalvars");
_local2[0].setAttribute("tx", newloc);
}
function getZloc() {
var _local2 = _global.mainsave.getItemList("globalvars");
return(parseInt(_local2[0].getAttribute("tz")));
}
function setZloc(newloc) {
var _local2 = _global.mainsave.getItemList("globalvars");
_local2[0].setAttribute("tz", newloc);
}
function getCredits() {
var _local2 = _global.mainsave.getItemList("globalvars");
return(parseInt(_local2[0].getAttribute("credits")));
}
function setCredits(newData) {
var _local2 = _global.mainsave.getItemList("globalvars");
_local2[0].setAttribute("credits", newData);
trace("Set credits as " + newData);
trace("Set credits as " + _local2[0].getAttribute("credits"));
}
function getChance() {
var _local2 = _global.mainsave.getItemList("globalvars");
return(parseInt(_local2[0].getAttribute("chance")));
}
function setChance(newloc) {
var _local2 = _global.mainsave.getItemList("globalvars");
_local2[0].setAttribute("chance", newloc);
}
function checkAreaLocked(areaid) {
var _local5 = _global.mainsave.getItemList("arealist");
var _local3 = _local5[0].getItemList("area");
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2].getAttribute("id") == areaid) && (_local3[_local2].getAttribute("unlock") == "true")) {
return(true);
}
_local2++;
}
return(false);
}
function unlockArea(areaid) {
trace("Unlocked area:" + areaid);
var _local3 = _global.mainsave.getItemList("arealist");
if (_local3.length == 0) {
var _local4 = new SaveItemObj("arealist");
_global.mainsave.addItem(_local4);
_local3 = _global.mainsave.getItemList("arealist");
}
var _local2 = new SaveItemObj("area");
_local2.setAttribute("unlock", "true");
_local2.setAttribute("id", areaid);
_local3[0].addItem(_local2);
}
function saveMapDetails() {
var _local3 = _global.mainsave.getItemList("globalvars");
_local3[0].printitems();
setAreaLocation(_root.areaLocation);
setMapLocation(_root.mapLocation);
setChance(_root.chance);
setXloc(parseInt(_root.world[player].tempx));
setZloc(parseInt(_root.world[player].tempz));
}
function evaluse(functionid, characterid, parameters) {
var _local2 = parameters.split(":");
switch (functionid) {
case "boastattribute" :
return(_root.boastattribute(characterid, _local2[0], _local2[1], _local2[2], _local2[3], _local2[4]));
case "addattribute" :
return(_root.addattribute(characterid, _local2[0], _local2[1], _local2[2], _local2[3]));
}
}
function boastattribute(characterid, attribute, addremove, maxvalue, minvalue, timelag) {
var _local2 = Math.random() * (maxvalue - minvalue);
_local2 = minvalue + _local2;
var _local6 = _root.getCharacterAttr(characterid, attribute);
_root.setCharacterAttr(characterid, attribute, _local2);
if (!_root.intervalcount) {
_root.intervalcount = new Array();
}
var _local3 = _root.intervalcount.length;
_root.intervalcount[_local3] = setInterval("endattributeboast", timelag, _local3, characterid, attribute, _local6);
}
function endattributeboast(intervalid, characterid, attribute, oldvalue) {
_root.setCharacterAttr(characterid, attribute, oldvalue);
clearInterval(_root.intervalcount[intervalid]);
}
function addattribute(characterid, attribute, addremove, maxvalue, minvalue) {
maxvalue = parseInt(maxvalue);
minvalue = parseInt(minvalue);
var _local2 = Math.floor(Math.random() * (maxvalue - minvalue));
_local2 = minvalue + _local2;
var _local3 = _root.getCharacterAttr(characterid, attribute);
_local3 = parseInt(_local3);
if (attribute == "currhp") {
hpvalue = parseInt(_root.getCharacterAttr(characterid, "hp"));
if ((_local3 + _local2) > hpvalue) {
_local2 = hpvalue - _local3;
}
}
if (addremove == "add") {
var _local6 = _local3 + _local2;
}
if (addremove == "subtract") {
var _local6 = _local3 - _local2;
}
_root.setCharacterAttr(characterid, attribute, _local6);
var _local4 = new Array();
_local4.attribute = attribute;
_local4.amount = _local2;
_local4.addremove = addremove;
_local4.newvalue = _local6;
_local4.oldvalue = _local3;
return(_local4);
}
function checkItemNumber(itemid) {
var _local7 = _global.mainsave.getItemList("inventory");
var _local4 = _local7[0].getItemList("item");
var _local5 = 0;
var _local2 = 0;
while (_local2 < _local4.length) {
if (_local4[_local2].getAttribute("id") == itemid) {
var _local3 = _local4[_local2].getAttribute("number");
if (_local3 == undefined) {
_local5++;
} else {
_local5 = _local5 + parseInt(_local3);
}
}
_local2++;
}
return(_local5);
}
function checkNonEquippedItemNumber(itemid) {
var _local7 = _global.mainsave.getItemList("inventory");
var _local3 = _local7[0].getItemList("item");
var _local5 = 0;
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2].getAttribute("id") == itemid) && (_local3[_local2].getAttribute("equip") == undefined)) {
var _local4 = _local3[_local2].getAttribute("number");
if (_local4 == undefined) {
_local5++;
} else {
_local5 = _local5 + parseInt(_local4);
}
}
_local2++;
}
return(_local5);
}
function equipItem(itemid, characterid) {
}
function reorg_invent() {
var _local5 = _global.mainsave.getItemList("inventory");
var _local2 = _local5[0].getItemListIndex("item");
var _local3 = new Array();
for (var _local6 in _local2) {
if (_local3[_local2[_local6].getAttribute("id")]) {
_local3[_local2[_local6].getAttribute("id")] = _local2[_local6];
} else {
var _local4 = parseInt(_local3[_local2[_local6].getAttribute("id")].getAttribute("number"));
_local4++;
_local3[_local2[_local6].getAttribute("id")].setAttribute("number", _local4);
_local5[0].removeItem(_local6);
}
}
}
function addItem(itemid, num) {
var _local10 = _global.mainsave.getItemList("inventory");
counter = 0;
if (_local10.length == 0) {
var _local11 = new SaveItemObj("inventory");
_global.mainsave.addItem(_local11);
_local10 = _global.mainsave.getItemList("inventory");
}
var _local5 = _local10[0].getItemList("item");
if (_local5.length >= 48) {
return("MAXOUT");
}
if ((_root.invenitem[itemid].type == "USE") || (_root.invenitem[itemid].type == "NONE")) {
var _local3 = 0;
while (_local3 < _local5.length) {
trace(_local5[_local3].getAttribute("id"));
if (_local5[_local3].getAttribute("id") == itemid) {
var _local6 = parseInt(_local5[_local3].getAttribute("number"));
if (!_local6) {
_local6 = 0;
}
var _local7 = _local6 + num;
if (_local7 > 99) {
return("MAXOUT");
}
_local5[_local3].setAttribute("number", _local7);
counter++;
return("SUCCESS");
}
_local3++;
}
if (counter == 0) {
var _local4 = new SaveItemObj("item");
_local4.setAttribute("id", itemid);
_local4.setAttribute("location", "none");
_local4.setAttribute("number", num);
_local10[0].addItem(_local4);
}
} else {
while (counter < num) {
var _local4 = new SaveItemObj("item");
_local4.setAttribute("id", itemid);
_local4.setAttribute("location", "none");
_local4.setAttribute("number", "1");
_local10[0].addItem(_local4);
counter++;
}
}
return("SUCCESS");
}
function removeItem(itemid, num) {
var _local5 = _global.mainsave.getItemList("inventory");
var _local2 = _local5[0].getItemListIndex("item");
var _local8 = 0;
trace("REMOVE ITEM\n===============");
for (var _local6 in _local2) {
if ((_local2[_local6].getAttribute("equip") == undefined) && (_local2[_local6].getAttribute("id") == itemid)) {
var _local3 = parseInt(_local2[_local6].getAttribute("number"));
if (!_local3) {
_local3 = 1;
}
if (_local3 <= num) {
trace("REMOVE ITEM SLOT: " + invenitem[_local2[_local6].getAttribute("id")].name);
_local5[0].removeItem(_local6);
num--;
} else {
trace("REDUCE ITEM NUMBER: " + invenitem[_local2[_local6].getAttribute("id")].name);
_local2[_local6].setAttribute("number", _local3 - num);
num = 0;
}
if (num <= 0) {
return(true);
}
}
}
return(false);
}
function listallItems() {
var _local3 = _global.mainsave.getItemList("inventory");
var _local2 = _local3[0].getItemList("item");
return(_local2);
}
function listallEquippedItems() {
var _local4 = new Array();
var _local5 = _global.mainsave.getItemList("inventory");
var _local3 = _local5[0].getItemList("item");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("equip")) {
_local4[_local4.length] = _local3[_local2];
}
_local2++;
}
return(_local4);
}
function getItemName(itemid) {
return(invenitem[itemid].name);
}
function getItemProp(itemid) {
return(invenitem[itemid]);
}
function printallitems() {
var _local4 = _global.mainsave.getItemList("inventory");
var _local3 = _local4[0].getItemList("item");
trace("==================================");
trace("TOTAL ITEMS: " + _local3.length);
var _local2 = 0;
while (_local2 < _local3.length) {
trace((invenitem[_local3[_local2].getAttribute("id")].name + " number: ") + _local3[_local2].getAttribute("number"));
_local2++;
}
}
function getEquippedTop() {
var _local4 = _global.mainsave.getItemList("inventory");
var _local3 = _local4[0].getItemList("item");
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2].getAttribute("equip") == "A001") && (invenitem[_local3[_local2].getAttribute("id")].equip == "TOP")) {
return(invenitem[_local3[_local2].getAttribute("id")]);
}
_local2++;
}
return(undefined);
}
function getEquippedBottom() {
var _local4 = _global.mainsave.getItemList("inventory");
var _local3 = _local4[0].getItemList("item");
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2].getAttribute("equip") == "A001") && (invenitem[_local3[_local2].getAttribute("id")].equip == "BOTTOM")) {
return(invenitem[_local3[_local2].getAttribute("id")]);
}
_local2++;
}
return(undefined);
}
function getCharacterAttr(characterid, attribute) {
var _local5 = _global.mainsave.getItemList("character");
var _local4 = 0;
while (_local4 < _local5.length) {
if (_local5[_local4].getAttribute("id") == characterid) {
if (_local5[_local4].getAttribute(attribute)) {
return(_local5[_local4].getAttribute(attribute));
}
var _local3 = _local5[_local4].getItemList("bot");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("active") == "true") {
return(_local3[_local2].getAttribute(attribute));
}
_local2++;
}
}
_local4++;
}
}
function setCharacterAttr(characterid, attribute, val) {
var _local5 = _global.mainsave.getItemList("character");
var _local4 = 0;
while (_local4 < _local5.length) {
if (_local5[_local4].getAttribute("id") == characterid) {
if (_local5[_local4].getAttribute(attribute)) {
_local5[_local4].setAttribute(attribute, val);
} else {
var _local3 = _local5[_local4].getItemList("bot");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("active") == "true") {
_local3[_local2].setAttribute(attribute, val);
}
_local2++;
}
}
return(undefined);
}
_local4++;
}
}
function setActiveBot() {
}
function addBot() {
}
function getEquip(characterid) {
}
function addCharacter(charid, position) {
var _local4 = _global.mainsave.getItemList("character");
var _local6 = false;
var _local3 = 0;
while (_local3 < _local4.length) {
var _local5 = _local4[_local3].getAttribute("id");
if (_local5 == charid) {
_local4[_local3].setAttribute("active", position);
_local6 = true;
break;
}
_local3++;
}
if (!_local6) {
this["add" + charid](position);
}
}
function addA002(pos) {
var _local8 = ("<character id=\"A002\" name=\"Barrage\" reflex=\"7\" accuracy=\"11\" technique=\"12\" xp=\"550\" active=\"" + pos) + "\" level=\"5\" sp=\"0\"><bot botid=\"stinger\" name=\"Stinger\" defense=\"5\" currhp=\"180\" hp=\"180\" energy=\"2\" active=\"true\"><parts name=\"part1\" colorr=\"255\" colorg=\"30\" colorb=\"0\" /><parts name=\"part2\" colorr=\"255\" colorg=\"255\" colorb=\"255\" /><parts name=\"part3\" colorr=\"250\" colorg=\"200\" colorb=\"100\" /></bot></character>";
var _local5 = new SaveItemObj("character");
var _local6 = new XML(_local8);
_local5.loadXML(_local6.firstChild);
_global.mainsave.addItem(_local5);
var _local9 = "<inventory><item id=\"C01AT\" location=\"top\" equip=\"A002\" /><item id=\"C02AB\" location=\"bottom\" equip=\"A002\" /><item id=\"C01AF\" location=\"footwear\" equip=\"A002\" /><item id=\"W02L\" location=\"left\" equip=\"A002\" /><item id=\"A01\" location=\"armor\" equip=\"A002\" /></inventory>";
var _local7 = new SaveItemObj("inventory");
_local6 = new XML(_local9);
_local7.loadXML(_local6.firstChild);
var _local4 = _global.mainsave.getItemList("inventory");
var _local3 = _local7.getItemList("item");
var _local2 = 0;
while (_local2 < _local3.length) {
_local4[0].addItem(_local3[_local2]);
_local2++;
}
trace(_local5.convertXML());
_local7.printitems();
}
function inactivateCharacter(charid) {
var _local3 = _global.mainsave.getItemList("character");
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = _local3[_local2].getAttribute("id");
if (_local4 == charid) {
_local3[_local2].setAttribute("active", false);
break;
}
_local2++;
}
}
function getMainCharacters() {
var _local4 = _global.mainsave.getItemList("character");
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].getAttribute("name") == _root.SaveList.userid) {
return(_local4[_local3]);
}
_local3++;
}
}
function getActiveCharacters() {
var _local3 = _global.mainsave.getItemList("character");
var _local4 = new Array();
var _local5 = 0;
var _local2 = 0;
while (_local2 < _local3.length) {
if (parseInt(_local3[_local2].getAttribute("active")) > 0) {
_local4[_local5++] = _local3[_local2];
}
_local2++;
}
return(_local4);
}
function repairAll() {
var _local5 = _global.mainsave.getItemList("character");
var _local4 = 0;
while (_local4 < _local5.length) {
var _local3 = _local5[_local4].getItemList("bot");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("active")) {
_local3[_local2].setAttribute("currhp", _local3[_local2].getAttribute("hp"));
}
_local2++;
}
_local4++;
}
populate_inventory();
}
function getQuests() {
var _local2 = 1;
while (_local2 <= _level0.total_quests) {
_level0["quest_" + _local2].prog = 0;
_local2++;
}
var _local6 = _global.mainsave.getItemList("questlist");
var _local3 = _local6[0].getItemList("quest");
_local2 = 0;
while (_local2 < _local3.length) {
var _local5 = _local3[_local2].getAttribute("id");
var _local4 = _local3[_local2].getAttribute("prog");
_level0["quest_" + _local5].prog = int(_local4);
_local2++;
}
}
function saveQuests() {
trace("SAAAAVE ME");
var _local7 = _global.mainsave.getItemList("questlist");
var _local2 = 1;
while (_local2 <= _level0.total_quests) {
var _local4 = _local7[0].getItemList("quest");
if (_level0["quest_" + _local2].prog > 0) {
if (_local4.length > 0) {
var _local6 = false;
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].getAttribute("id") == _local2) {
_local4[_local3].setAttribute("prog", _level0["quest_" + _local2].prog);
_local6 = true;
break;
}
_local3++;
}
if (!_local6) {
trace((_local2 + " ") + _level0["quest_" + _local2].prog);
var _local5 = new SaveItemObj("quest");
_local5.setAttribute("id", _local2);
_local5.setAttribute("prog", _level0["quest_" + _local2].prog);
_local7[0].addItem(_local5);
}
} else {
var _local5 = new SaveItemObj("quest");
_local5.setAttribute("id", _local2);
_local5.setAttribute("prog", _level0["quest_" + _local2].prog);
_local7[0].addItem(_local5);
}
}
_local2++;
}
_local7[0].printitems();
}
function reload_data() {
chance = getChance();
mapLocation = getMapLocation();
areaLocation = getAreaLocation();
tx = getXloc();
tz = getZloc();
var _local11 = _global.mainsave.getItemList("character");
var _local10 = 0;
while (_local10 < _local11.length) {
if (_local11[_local10].getAttribute("id") == "A001") {
var _local9 = _local11[_local10].getItemList("bot");
var _local5 = 0;
while (_local5 < _local9.length) {
if (_local9[_local5].getAttribute("active")) {
var _local4 = _local9[_local5].getItemList("parts");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].getAttribute("name");
_local3 = _local3.substr(-1, 1);
var _local6 = _local4[_local2].getAttribute("colorr");
var _local7 = _local4[_local2].getAttribute("colorb");
var _local8 = _local4[_local2].getAttribute("colorg");
trace((_local2 + ":") + _local6);
_global[("part" + _local3) + "r"] = _local6;
_global[("part" + _local3) + "g"] = _local8;
_global[("part" + _local3) + "b"] = _local7;
_local2++;
}
break;
}
_local5++;
}
}
_local10++;
}
getQuests();
}
SaveItemObj = function (saveName) {
this.name = saveName;
this.attributelist = new Object();
this.itemlist = new Object();
this.itemcount = 0;
};
SaveItemObj.prototype.getName = function () {
return(this.name);
};
SaveItemObj.prototype.addAttribute = function (addtriName, value) {
this.attributelist[addtriName] = value;
};
SaveItemObj.prototype.removeAttribute = function (addtriName) {
delete this.attributelist[addtriName];
};
SaveItemObj.prototype.setAttribute = function (addtriName, value) {
this.attributelist[addtriName] = value;
};
SaveItemObj.prototype.getAttribute = function (addtriName) {
return(this.attributelist[addtriName]);
};
SaveItemObj.prototype.getAttributeList = function () {
return(this.attributelist);
};
SaveItemObj.prototype.addItem = function (itemobj) {
this.itemlist[this.itemcount++] = itemobj;
};
SaveItemObj.prototype.removeItem = function (indexa) {
delete this.itemlist[indexa];
};
SaveItemObj.prototype.setItem = function (indexa, itemobj) {
this.itemlist[indexa] = itemobj;
};
SaveItemObj.prototype.getItem = function (indexa) {
return(this.itemlist[indexa]);
};
SaveItemObj.prototype.getItemList = function (itemname) {
var _local2 = new Array();
var _local3 = 0;
for (var _local4 in this.itemlist) {
if (this.itemlist[_local4].getName() == itemname) {
_local2[_local3++] = this.itemlist[_local4];
}
}
return(_local2);
};
SaveItemObj.prototype.getItemListIndex = function (itemname) {
var _local2 = new Array();
for (var _local3 in this.itemlist) {
if (this.itemlist[_local3].getName() == itemname) {
_local2[_local3] = this.itemlist[_local3];
}
}
return(_local2);
};
SaveItemObj.prototype.convertXML = function () {
var _local2 = new XMLNode(1, this.name);
for (var _local3 in this.attributelist) {
_local2.attributes[_local3] = this.attributelist[_local3];
}
for (var _local3 in this.itemlist) {
_local2.appendChild(this.itemlist[_local3].convertXML());
}
return(_local2);
};
SaveItemObj.prototype.loadXML = function (XMLLoadNode) {
for (var _local7 in this.attributelist) {
delete this.attributelist[_local7];
}
for (var _local7 in this.itemlist) {
delete this.itemlist[_local7];
}
for (var _local6 in XMLLoadNode.attributes) {
this.setAttribute(_local6, XMLLoadNode.attributes[_local6]);
}
var _local4 = XMLLoadNode.childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.addItem(_local3);
_local2++;
}
};
SaveItemObj.prototype.printitems = function () {
trace("Save item name = " + this.name);
var _local2 = "";
for (var _local3 in this.attributelist) {
_local2 = _local2 + (((_local3 + ":") + this.attributelist[_local3]) + ", ");
}
trace("Attributes = " + _local2);
trace("Total items = " + this.itemcount);
trace("----------------------------------");
};
SaveItemObj.prototype.testcheck = function () {
trace("print test ");
};
SaveDataObj = function (username, saveURL, indexa) {
this.savePath = saveURL;
this.userid = username;
this.forceLocalFlag = false;
this.saveIndex = indexa;
this.recipientObj = null;
};
SaveDataObj.prototype = new SaveItemObj("SavedData");
SaveDataObj.prototype.save = function () {
var _local2 = this.convertXML();
var _local3 = new XML();
_local3.parentdata = this.recipientObj;
_local3.onLoad = function (success) {
if (success) {
this.parentdata.saved(true);
} else {
this.parentdata.saved(false);
}
};
var _local4 = SharedObject.getLocal(this.userid + "_neoplanetsave");
_local4.data[this.saveIndex] = _local2.toString();
_local4.flush(100000);
if ((this.userid && (this.userid != "")) && (!this.forceLocalFlag)) {
_local2.contentType = "text/xml";
_local2.sendAndLoad((((this.savePath + "&type=save&userid=") + this.userid) + "&saveindex=") + this.saveIndex, _local3);
} else {
this.recipientObj.saved(true);
}
};
SaveDataObj.prototype.load = function () {
for (var _local6 in this.attributelist) {
delete this.attributelist[_local6];
}
for (var _local6 in this.itemlist) {
delete this.itemlist[_local6];
}
var loadXML = new XML();
loadXML.ignoreWhite = true;
loadXML.parentdata = this;
loadXML.onLoad = function (success) {
var _local7 = loadXML.firstChild;
var _local8 = _local7.nextSibling;
if ((_local8.firstChild.nodeValue != "342134") && (!this.parentdata.forceLocalFlag)) {
success = false;
}
if (success) {
var _local5 = loadXML.firstChild;
var _local4 = _local5.childNodes;
if (_local4.length == 0) {
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
this.parseXML(_local6.data[this.parentdata.saveIndex]);
_local5 = this.firstChild;
_local4 = _local5.childNodes;
}
for (prop in _local5.attributes) {
this.parentdata.setAttribute(prop, _local5.attributes[prop]);
}
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.parentdata.addItem(_local3);
_local2++;
}
this.parentdata.onLoad();
} else {
this.parentdata.forceLocalFlag = true;
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
this.parseXML(_local6.data[this.parentdata.saveIndex]);
this.onLoad("true");
}
};
if ((this.userid && (this.userid != "")) && (!this.forceLocalFlag)) {
loadXML.load((((this.savePath + "&type=retrieve&userid=") + this.userid) + "&saveindex=") + this.saveIndex);
} else {
var _local7 = SharedObject.getLocal(this.userid + "_neoplanetsave");
loadXML.parseXML(_local7.data[this.saveIndex]);
loadXML.onLoad("true");
}
};
SaveDataObj.prototype.forceLocal = function (setlocal) {
this.forceLocalFlag = setlocal;
};
SaveDataObj.prototype.loadSaveItem = function (saveitem) {
this.attributelist = saveitem.attributelist;
this.itemlist = saveitem.itemlist;
this.itemcount = saveitem.itemcount;
};
SaveDataObj.prototype.extractSaveItem = function () {
var _local2 = new SaveItemObj("");
_local2.attributelist = this.attributelist;
_local2.itemlist = this.itemlist;
_local2.itemcount = this.itemcount;
return(_local2);
};
SaveDataObj.prototype.convertXML = function () {
var _local4 = new XML();
var _local2 = new XMLNode(1, "SavedData");
_local4.appendChild(_local2);
for (var _local3 in this.attributelist) {
_local2.attributes[_local3] = this.attributelist[_local3];
}
for (var _local3 in this.itemlist) {
_local2.appendChild(this.itemlist[_local3].convertXML());
}
return(_local4);
};
SaveDataObj.prototype.cloneSave = function (prevSave) {
var _local6 = prevSave.convertXML();
var _local5 = _local6.firstChild;
for (prop in _local5.attributes) {
this.setAttribute(prop, _local5.attributes[prop]);
}
var _local4 = _local5.childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.addItem(_local3);
_local2++;
}
};
SaveDataObj.prototype.parseXML = function (xmlstr) {
var _local6 = new XML();
_local6.parseXML(xmlstr);
var _local5 = _local6.firstChild;
for (prop in _local5.attributes) {
this.setAttribute(prop, _local5.attributes[prop]);
}
var _local4 = _local5.childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new SaveItemObj(_local4[_local2].nodeName);
_local3.loadXML(_local4[_local2]);
this.addItem(_local3);
_local2++;
}
};
SaveDataObj.prototype.addListener = function (listobj) {
this.recipientObj = listobj;
};
SaveListObj = function (username, passwd) {
this.hostname = "http://mobileweapon.net/ep1/";
this.filename = "neoplanetas.php";
this.savePath = ((this.hostname + this.filename) + "?sessid=") + _global.session;
this.userid = username;
this.password = passwd;
this.recipientObj = null;
this.loaded = false;
this.loadSaveList = new Array();
this.forceLoadShared = false;
};
SaveListObj.prototype.checkForceLocal = function () {
return(this.forceLoadShared);
};
SaveListObj.prototype.forceLocal = function (flocal) {
this.forceLoadShared = flocal;
};
SaveListObj.prototype.connect = function () {
if (this.userid == "") {
this.forceLoadShared = true;
this.recipientObj.error("NOUSERNAME");
return(undefined);
}
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
if (success) {
var _local3 = replyXML.firstChild;
if ((_local3.attributes.key == "INVALID") || (replyXML.toString() == "invalid session")) {
this.recObj.recipientObj.connected(false);
} else {
_global.session = _local3.attributes.key;
this.recObj.savePath = ((this.recObj.hostname + this.recObj.filename) + "?sessid=") + _global.session;
this.recObj.recipientObj.connected(true);
}
} else {
this.recipientObj.error("NOCONNECTION");
}
};
replyXML.load((((this.savePath + "&type=authenticate&userid=") + this.userid) + "&password=") + this.password);
};
SaveListObj.prototype.createNewUser = function (email) {
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
if (success) {
var _local3 = replyXML.firstChild;
if (_local3.attributes.key == "DUPLICATE") {
this.recObj.recipientObj.created(false, _local3.attributes.key);
} else {
_global.session = _local3.attributes.key;
this.recObj.savePath = ((this.recObj.hostname + this.recObj.filename) + "?sessid=") + _global.session;
this.recObj.recipientObj.created(true, "");
}
} else {
this.recObj.recipientObj.created(false, "NOCON");
}
};
replyXML.load((((((this.savePath + "&type=createuser&userid=") + this.userid) + "&password=") + this.password) + "&email=") + email);
};
SaveListObj.prototype.listAllSaves = function () {
if (!this.loaded) {
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
var _local8 = replyXML.firstChild;
var _local9 = _local8.nextSibling;
if ((_local9.firstChild.nodeValue != "342134") && (!this.recObj.forceLoadShared)) {
success = false;
}
if (success) {
_local8 = replyXML.firstChild;
var _local4 = _local8.childNodes;
this.recObj.loadSaveList = new Array();
var _local2 = 0;
while (_local2 < _local4.length) {
this.recObj.loadSaveList[_local4[_local2].attributes.name] = _local4[_local2].attributes.date;
_local2++;
}
var _local6 = SharedObject.getLocal(this.recObj.userid + "_neoplanetsave");
var _local5 = new XML();
_local5.parseXML(_local6.data.savelist);
var _local7 = _local5.firstChild;
var _local3 = _local7.childNodes;
_local2 = 0;
while (_local2 < _local3.length) {
if (this.recObj.loadSaveList[_local3[_local2].attributes.name]) {
if (this.recObj.loadSaveList[_local3[_local2].attributes.name] < _local3[_local2].attributes.date) {
this.recObj.loadSaveList[_local3[_local2].attributes.name] = _local3[_local2].attributes.date;
}
} else {
this.recObj.loadSaveList[_local3[_local2].attributes.name] = _local3[_local2].attributes.date;
}
_local2++;
}
this.recObj.loaded = true;
this.recObj.recipientObj.getList(this.recObj.loadSaveList);
} else {
trace("failure?");
var _local6 = SharedObject.getLocal(this.recObj.userid + "_neoplanetsave");
this.parseXML(_local6.data.savelist);
this.recObj.forceLoadShared = true;
this.onLoad(true);
}
};
if (this.forceLoadShared) {
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
replyXML.parseXML(_local6.data.savelist);
replyXML.onLoad(true);
} else {
replyXML.load((this.savePath + "&type=listsaves&userid=") + this.userid);
}
} else {
this.recipientObj.getList(this.loadSaveList);
}
};
SaveListObj.prototype.loadAllSaves = function () {
};
SaveListObj.prototype.getSave = function (indexa) {
var _local2 = new SaveDataObj(this.userid, this.savePath, indexa);
_local2.printitems();
_local2.recipientObj = this.recipientObj;
if (this.forceLoadShared) {
_local2.forceLocal(true);
}
_local2.onLoad = function () {
this.recipientObj.getSave(this);
};
_local2.load();
};
SaveListObj.prototype.createNewSave = function (currSaveObj, indexa) {
var _local7 = new SaveDataObj(this.userid, this.savePath, indexa);
_local7.cloneSave(currSaveObj);
_local7.forceLocal(this.forceLoadShared);
var _local2 = new Date();
var _local3 = _local2.getMonth() + 1;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
var _local6 = _local2.getDate();
if (_local6 < 10) {
_local6 = "0" + _local6;
}
var _local5 = _local2.getHours();
if (_local5 < 10) {
_local5 = "0" + _local5;
}
var _local4 = _local2.getMinutes();
if (_local4 < 10) {
_local4 = "0" + _local4;
}
this.loadSaveList[indexa] = (((((((_local2.getFullYear() + "-") + _local3) + "-") + _local6) + " ") + _local5) + ":") + _local4;
this.saveList();
return(_local7);
};
SaveListObj.prototype.createEmptySave = function (indexa) {
var _local7 = new SaveDataObj(this.userid, this.savePath, indexa);
_local7.forceLocal(this.forceLoadShared);
var _local2 = new Date();
var _local3 = _local2.getMonth() + 1;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
var _local6 = _local2.getDate();
if (_local6 < 10) {
_local6 = "0" + _local6;
}
var _local5 = _local2.getHours();
if (_local5 < 10) {
_local5 = "0" + _local5;
}
var _local4 = _local2.getMinutes();
if (_local4 < 10) {
_local4 = "0" + _local4;
}
this.loadSaveList[indexa] = (((((((_local2.getFullYear() + "-") + _local3) + "-") + _local6) + " ") + _local5) + ":") + _local4;
this.saveList();
return(_local7);
};
SaveListObj.prototype.saveList = function () {
var _local3 = new XML();
var _local4 = _local3.createElement("savelist");
_local3.appendChild(_local4);
for (var _local5 in this.loadSaveList) {
var _local2 = _local3.createElement("savedata");
_local2.attributes.name = _local5;
_local2.attributes.date = this.loadSaveList[_local5];
_local4.appendChild(_local2);
}
var _local6 = SharedObject.getLocal(this.userid + "_neoplanetsave");
_local6.data.savelist = _local3.toString();
_local6.flush(10000);
};
SaveListObj.prototype.deleteSave = function (indexa) {
trace("deleting " + indexa);
delete this.loadSaveList[indexa];
this.saveList();
var replyXML = new XML();
replyXML.onLoad = function (success) {
trace(replyXML);
if (success && (replyXML == "SUCCESS")) {
this.recObj.deleted(true);
} else {
var _local2 = SharedObject.getLocal(this.userid + "_neoplanetsave");
delete _local2.data[indexa];
this.recObj.deleted(true);
}
};
replyXML.recObj = this.recipientObj;
replyXML.load((((this.savePath + "&type=delete&userid=") + this.userid) + "&saveindex=") + indexa);
var _local2 = SharedObject.getLocal(this.userid + "_neoplanetsave");
delete _local2.data[indexa];
};
SaveListObj.prototype.addListener = function (recObject) {
this.recipientObj = recObject;
};
SaveListObj.prototype.forceOnline = function (username, userpass, email) {
this.userid = username;
this.password = userpass;
this.createNewUser(email);
};
var invenitem = new Array();
item = "C01AT";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Cotton shirt";
invenitem[item].price = "10";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "TOP";
invenitem[item].gender = "ALL";
invenitem[item].description = "A plain cotton shirt.";
invenitem[item].r = "150";
invenitem[item].g = "150";
invenitem[item].b = "150";
invenitem[item].image = "cottonshirt";
item = "C02AT";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Felt Jacket";
invenitem[item].price = "300";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "TOP";
invenitem[item].gender = "ALL";
invenitem[item].description = "A jacket that keeps you cozy.";
invenitem[item].reflex = "+1";
invenitem[item].r = "30";
invenitem[item].g = "30";
invenitem[item].b = "60";
invenitem[item].image = "feltjacket";
item = "C03AT";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Ranger Vest";
invenitem[item].price = "2000";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "TOP";
invenitem[item].gender = "ALL";
invenitem[item].description = "A combat vest that offers mobility.";
invenitem[item].reflex = "+3";
invenitem[item].r = "0";
invenitem[item].g = "50";
invenitem[item].b = "0";
invenitem[item].image = "rangervest";
item = "C04AT";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Flight Jacket";
invenitem[item].price = "10000";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "TOP";
invenitem[item].gender = "ALL";
invenitem[item].description = "Cool and slick.";
invenitem[item].r = "30";
invenitem[item].g = "30";
invenitem[item].b = "30";
invenitem[item].reflex = "+8";
invenitem[item].technique = "+1";
invenitem[item].image = "flightjacket";
itemequip = "BOTTOM";
item = "C01AB";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Cotton Shorts";
invenitem[item].price = "10";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = itemequip;
invenitem[item].gender = "ALL";
invenitem[item].description = "A plain cotton shorts.";
invenitem[item].r = "150";
invenitem[item].g = "150";
invenitem[item].b = "150";
invenitem[item].image = "cottonshorts";
item = "C02AB";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Bermudas";
invenitem[item].price = "300";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = itemequip;
invenitem[item].gender = "ALL";
invenitem[item].description = "Beach wear bermudas.";
invenitem[item].reflex = "+1";
invenitem[item].r = "60";
invenitem[item].g = "60";
invenitem[item].b = "30";
invenitem[item].image = "bermudas";
item = "C03AB";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Tight jeans";
invenitem[item].price = "2000";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = itemequip;
invenitem[item].gender = "ALL";
invenitem[item].description = "Really tight jeans...";
invenitem[item].reflex = "-1";
invenitem[item].accuracy = "+4";
invenitem[item].r = "20";
invenitem[item].g = "20";
invenitem[item].b = "60";
invenitem[item].image = "tightjeans";
item = "C04AB";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Combat Fatigues";
invenitem[item].price = "10000";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = itemequip;
invenitem[item].gender = "ALL";
invenitem[item].description = "Army surplus fatigues.";
invenitem[item].r = "30";
invenitem[item].g = "80";
invenitem[item].b = "30";
invenitem[item].reflex = "+6";
invenitem[item].technique = "+2";
invenitem[item].image = "combatfatigues";
item = "C01AH";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Glass Goggles";
invenitem[item].price = "600";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "HEADGEAR";
invenitem[item].gender = "ALL";
invenitem[item].description = "Goggles made of glass.\nHandle with care!";
invenitem[item].accuracy = "+2";
item = "C01AF";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Canvas shoes";
invenitem[item].price = "10";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "FOOTWEAR";
invenitem[item].gender = "ALL";
invenitem[item].description = "Plain canvas shoes.";
invenitem[item].image = "canvasshoes";
item = "C02AF";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Leather shoes";
invenitem[item].price = "600";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "FOOTWEAR";
invenitem[item].gender = "ALL";
invenitem[item].description = "Made of artificial leather.";
invenitem[item].reflex = "+3";
invenitem[item].image = "leathershoes";
item = "C03AF";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Army boots";
invenitem[item].price = "2000";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "FOOTWEAR";
invenitem[item].gender = "ALL";
invenitem[item].description = "Specially made to fit and last.";
invenitem[item].reflex = "+8";
invenitem[item].image = "armyboots";
item = "C01AA";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Neural enhancer";
invenitem[item].price = "20000";
invenitem[item].type = "CLOTHES";
invenitem[item].equip = "ACCESSORY";
invenitem[item].gender = "ALL";
invenitem[item].description = "A choker that connects to your neural system.";
invenitem[item].accuracy = "+5";
invenitem[item].reflex = "+5";
item = "I001R";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Basic Repair Kit";
invenitem[item].price = "10";
invenitem[item].type = "USE";
invenitem[item].equip = "NO";
invenitem[item].description = "Repair 20-40 HP to your MaW";
invenitem[item].useid = "addattribute";
invenitem[item].parameters = "currhp:add:40:20";
invenitem[item].image = "repairkit";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
item = "I002R";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Advanced Repair Kit";
invenitem[item].price = "100";
invenitem[item].type = "USE";
invenitem[item].equip = "NO";
invenitem[item].description = "Repair 100-130 HP to your MaW";
invenitem[item].useid = "addattribute";
invenitem[item].parameters = "currhp:add:130:100";
invenitem[item].image = "repairkit";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
item = "A300E";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Calling Card";
invenitem[item].price = "-1";
invenitem[item].type = "USE";
invenitem[item].equip = "NO";
invenitem[item].description = "Uncle Ron's missing cards";
invenitem[item].useid = "addattribute";
invenitem[item].parameters = "reflex:add:40:40:20";
item = "I000Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Gear";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "A common gear piece.";
invenitem[item].image = "gear";
invenitem[item].price = "5";
invenitem[item].augment = "5";
item = "I001Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Polyboard";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "An assembly needed to repair structures.";
invenitem[item].image = "polyboard";
invenitem[item].price = "20";
item = "I002Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Gyrobolt";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "A common bolt piece.";
invenitem[item].image = "bolt";
invenitem[item].price = "10";
invenitem[item].augment = "6";
item = "I003Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Ron's List";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "Ron needs: 5 Gears, 3 Gyrobolts and 1 Polyboard.";
invenitem[item].image = "list";
item = "I004Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Gift Voucher";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "Voucher for Elyssa's clothes shop.";
invenitem[item].image = "list";
item = "I005Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Robyn's Bill";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "Robyn's bill for the clothes she bought at Elyssa's shop.";
invenitem[item].image = "list";
item = "I006Q";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Plasmarock Chunk";
invenitem[item].type = "NONE";
invenitem[item].equip = "NO";
invenitem[item].description = "A small chunk of plasmarock.";
invenitem[item].image = "plasmarock";
invenitem[item].price = "20";
equip = "MELEE";
item = "W01M";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Bronze fist";
invenitem[item].price = "50";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 5;
invenitem[item].maxdamage = 10;
invenitem[item].energy = 20;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 10;
invenitem[item].description = "Basic hand used by MAWs for close ranged striking.";
invenitem[item].image = "bronzefist";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 5;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
item = "W02M";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Iron hammer";
invenitem[item].price = "300";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 15;
invenitem[item].maxdamage = 20;
invenitem[item].energy = 20;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 15;
invenitem[item].description = "A huge hammer forged entirely of iron. (Cannot be used by Stinger MaW)";
invenitem[item].image = "ironhammer";
invenitem[item].user = new Array("avenger", "luna");
invenitem[item].minreflex = 10;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
item = "W03M";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Power fist";
invenitem[item].price = "1000";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 25;
invenitem[item].maxdamage = 28;
invenitem[item].energy = 20;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 20;
invenitem[item].description = "Packs a deadly punch. (Cannot be used by Stinger MaW)";
invenitem[item].image = "steelfist";
invenitem[item].user = new Array("luna", "avenger");
invenitem[item].minreflex = 30;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
equip = "LRANGE";
item = "W01L";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Antique revolver";
invenitem[item].price = "60";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 6;
invenitem[item].maxdamage = 12;
invenitem[item].energy = 40;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 0;
invenitem[item].description = "An old revolver model made for MaWs.";
invenitem[item].image = "antiquerevolver";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 5;
invenitem[item].mintechnique = 0;
item = "W02L";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Shotgun";
invenitem[item].price = "350";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 15;
invenitem[item].maxdamage = 25;
invenitem[item].energy = 40;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 5;
invenitem[item].description = "You need a shotgun in every game.";
invenitem[item].image = "shotgun";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 10;
invenitem[item].mintechnique = 0;
item = "W03L";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Basic sniper rifle";
invenitem[item].price = "1100";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 25;
invenitem[item].maxdamage = 35;
invenitem[item].energy = 40;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 25;
invenitem[item].description = "Start your sniper training with this easy to use rifle!";
invenitem[item].image = "bsniper";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 30;
invenitem[item].mintechnique = 0;
equip = "HRANGE";
item = "W01H";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Mini Cannon";
invenitem[item].price = "80";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 10;
invenitem[item].maxdamage = 15;
invenitem[item].energy = 50;
invenitem[item].hits = 1;
invenitem[item].hitbonus = -10;
invenitem[item].description = "A simple cannon.";
invenitem[item].image = "minicannon";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 5;
item = "W02H";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Dual Cannon";
invenitem[item].price = "400";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 25;
invenitem[item].maxdamage = 35;
invenitem[item].energy = 50;
invenitem[item].hits = 1;
invenitem[item].hitbonus = -10;
invenitem[item].description = "Mini-sized twin cannon for double the damage.";
invenitem[item].image = "dualcannon";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 10;
item = "W03H";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Portable Launcher";
invenitem[item].price = "1500";
invenitem[item].type = "WEAPON";
invenitem[item].equip = equip;
invenitem[item].mindamage = 40;
invenitem[item].maxdamage = 50;
invenitem[item].energy = 35;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 0;
invenitem[item].description = "Obliterate all enemies with multi-discharge. (Only usable by Stinger)";
invenitem[item].image = "portablelauncher";
invenitem[item].user = new Array("stinger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 30;
equip = "ARMOR";
item = "A01";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Bronze plating";
invenitem[item].price = "50";
invenitem[item].type = "ARMOR";
invenitem[item].equip = equip;
invenitem[item].defense = 2;
invenitem[item].description = "A basic plating that every rookie needs.";
invenitem[item].image = "bronzeplating";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
item = "A02";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Iron plating";
invenitem[item].price = "800";
invenitem[item].type = "ARMOR";
invenitem[item].equip = equip;
invenitem[item].defense = 8;
invenitem[item].description = "An average plating with good protection.";
invenitem[item].image = "ironplating";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 5;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
item = "A03";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Steel plating";
invenitem[item].price = "1800";
invenitem[item].type = "ARMOR";
invenitem[item].equip = equip;
invenitem[item].defense = 15;
invenitem[item].description = "Specially designed with extra steel platings.";
invenitem[item].image = "steelplating";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 5;
invenitem[item].mintechnique = 5;
item = "A04";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Reinforced frame";
invenitem[item].price = "3500";
invenitem[item].type = "ARMOR";
invenitem[item].equip = equip;
invenitem[item].defense = 25;
invenitem[item].description = "Built for heavy MaWs. (Cannot be used by Luna MaW)";
invenitem[item].image = "reinforcedframe";
invenitem[item].user = new Array("stinger", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 30;
equip = "SPECIAL";
item = "S001";
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = "Repair Chip";
invenitem[item].price = "3000";
invenitem[item].type = "SPECIAL";
invenitem[item].equip = "SPECIAL";
invenitem[item].description = "Allows MAWs to fix themselves.";
invenitem[item].skill = "selffix";
invenitem[item].parameters = "30:20";
invenitem[item].image = "repairchip";
invenitem[item].user = new Array("stinger", "luna", "avenger");
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
total_quests = 7;
quest_1 = {prog:0, desc:"Find parts for Ron."};
quest_3 = {prog:0, desc:"Find plasmarock for Ron."};
quest_2 = {prog:0, desc:"Talked to robyn for the first time flag. NOT PROPER QUEST."};
quest_4 = {prog:0, desc:"Talked to donna for the first time flag. NOT PROPER QUEST."};
quest_5 = {prog:0, desc:"Guess Donna's last name."};
quest_6 = {prog:0, desc:"Talked to elyssa for the first time flag. NOT PROPER QUEST."};
quest_7 = {prog:0, desc:"Send a clothes bill to Robyn."};
getQuests();
xpArray = new Array(50, 155, 320, 550, 850, 1250, 1850, 2750, 4000, 5600, 7600, 10200, 13500, 17500, 22300, 27900, 34400, 41800, 50100, 59500, 70000, 81600, 94400, 108400, 123600, 140100, 158000, 177500, 198500, 221200, 99999999999999);
savebox._visible = false;
inventory._visible = false;
savebox.changebutt._visible = false;
populate_inventory();
isometricAS = function (maxx, maxz) {
this.maxx = maxx;
this.maxz = maxz;
this.theta = 30;
this.alpha = 45;
this.theta = this.theta * (Math.PI/180);
this.alpha = this.alpha * (Math.PI/180);
this.sinTheta = Math.sin(this.theta);
this.cosTheta = Math.cos(this.theta);
this.sinAlpha = Math.sin(this.alpha);
this.cosAlpha = Math.cos(this.alpha);
};
isometricAS.prototype.mapToScreen = function (xpp, ypp, zpp) {
var _local3 = ypp;
var _local4 = (xpp * this.cosAlpha) + (zpp * this.sinAlpha);
var _local2 = (zpp * this.cosAlpha) - (xpp * this.sinAlpha);
var _local6 = _local4;
var _local5 = (_local3 * this.cosTheta) - (_local2 * this.sinTheta);
return([_local6, _local5]);
};
isometricAS.prototype.mapToIsoWorld = function (screenX, screenY) {
var _local2 = ((screenX / this.cosAlpha) - (screenY / (this.sinAlpha * this.sinTheta))) * (1 / ((this.cosAlpha / this.sinAlpha) + (this.sinAlpha / this.cosAlpha)));
var _local3 = (1 / this.cosAlpha) * (screenX - (_local2 * this.sinAlpha));
return([_local3, _local2]);
};
isometricAS.prototype.calculateDepth = function (x, y, z) {
var _local4 = 5;
x = Math.abs(x) * _local4;
y = Math.abs(y);
z = Math.abs(z) * _local4;
var _local2 = this.maxx;
var _local5 = this.maxz;
var _local7 = (_local2 * (_local5 - 1)) + x;
var _local6 = ((_local2 * (z - 1)) + x) + (_local7 * y);
return(_local6);
};
function bgGraphics(main, left, right, up, down, canopy) {
bgColour();
bg.gotoAndStop(main);
if (left != "") {
bgLeft.gotoAndStop(left);
}
if (right != "") {
bgRight.gotoAndStop(right);
}
if (up != "") {
bgUp.gotoAndStop(up);
}
if (down != "") {
bgDown.gotoAndStop(down);
}
if (currentcanopy != canopy) {
currentcanopy = canopy;
if ((canopy == "") || (canopy == undefined)) {
canopyClip.gotoAndStop(1);
} else {
canopyClip.gotoAndStop(canopy);
}
}
}
function map1(area) {
areaCharType = "pilot";
clearWorld("Blank");
areaName = "Tikila Village";
areaMusic = "town";
areaTerrain = "jungle";
encounterRate = 0;
mapLocation = 1;
areaLocation = area;
bgMusic(areaMusic);
changeSurroundBlank(1, 1);
switch (area) {
case 1 :
generateNewChar("clare", 165, -345, "npc", "standing", "Clare");
objString = "2,,1,,vegetable||3,,1,,Boulder||4,,19,,Boulder||6,,6,,chair||7,,21,,vegetable||8,,9,,Boulder||9,,19,,sign_r,,To: Great Tiki Jungle\nDanger ahead!||13,,17,,chair";
makeObjectsArray(objString);
tileString = "5,,8,,track||5,,16,,track||6,,8,,track||6,,16,,track||7,,8,,track||7,,16,,track||8,,8,,track||8,,16,,track||9,,6,,track||9,,8,,track||9,,11,,track||9,,12,,track||9,,16,,track||9,,18,,track||9,,19,,track||10,,6,,track||10,,7,,track||10,,8,,track||10,,9,,track||10,,10,,track||10,,11,,track||10,,12,,track||10,,13,,track||10,,14,,track||10,,16,,track||10,,17,,track||10,,18,,track||10,,19,,track||10,,20,,track||11,,10,,track||11,,11,,track||11,,14,,track||11,,15,,track||11,,16,,track||11,,17,,track||11,,19,,track||11,,20,,track||12,,10,,track||12,,11,,track||13,,10,,track||13,,11,,track||14,,11,,track||15,,11,,track||15,,12,,track||16,,11,,track||16,,12,,track||17,,10,,track||17,,11,,track||18,,10,,track||19,,10,,track||19,,11,,track||20,,10,,track||20,,11,,track";
makeTilesArray(tileString);
makeLargeObject(1, 4, 7, 4, "inn", "l");
makeLargeObject(1, 4, 15, 5, "ronGarage", "l");
makeLargeObject(10, 5, 4, 3, "clothesShop", "r");
makeLargeObject(17, 2, 17, 2, "fountain", "l");
makePathway(5, 16, "ronGarage");
makePathway(9, 5, "clothesShop");
makePathway(5, 8, "inn");
makeObject(5, 6, "Blank");
standardPathway("down", -1, 2);
standardPathway("right", 2);
bgGraphics(1, "sea", "town", "sea", "town_exit", "lensflare");
break;
case 2 :
generateNewChar("zocra", 280, -340, "npc", "moving", "Captain Zocra");
objString = "2,,6,,chair||4,,17,,Boulder||5,,15,,vegetable||5,,16,,vegetable||5,,17,,vegetable||5,,18,,vegetable||5,,19,,vegetable||6,,15,,vegetable||6,,16,,vegetable||6,,17,,vegetable||6,,18,,vegetable||6,,19,,vegetable||7,,15,,vegetable||7,,16,,vegetable||7,,17,,vegetable||7,,18,,vegetable||7,,19,,vegetable||8,,15,,vegetable||8,,16,,vegetable||8,,17,,vegetable||8,,18,,vegetable||8,,19,,vegetable||9,,15,,vegetable||9,,16,,vegetable||9,,17,,vegetable||9,,18,,vegetable||9,,19,,vegetable||12,,15,,vegetable||12,,16,,vegetable||12,,17,,vegetable||12,,18,,vegetable||12,,19,,vegetable||13,,15,,vegetable||13,,16,,vegetable||13,,17,,vegetable||13,,18,,vegetable||13,,19,,vegetable||14,,15,,vegetable||14,,16,,vegetable||14,,17,,vegetable||14,,18,,vegetable||14,,19,,vegetable||15,,15,,vegetable||15,,16,,vegetable||15,,17,,vegetable||15,,18,,vegetable||15,,19,,vegetable||16,,15,,vegetable||16,,16,,vegetable||16,,17,,vegetable||16,,18,,vegetable||16,,19,,vegetable||19,,9,,sign_l,,To: Special Events Area\n== No events today ==||20,,8,,Boulder";
makeObjectsArray(objString);
tileString = "1,,10,,track||1,,11,,track||2,,10,,track||2,,11,,track||3,,10,,track||3,,11,,track||4,,5,,track||4,,6,,track||4,,7,,track||4,,9,,track||4,,10,,track||4,,11,,track||5,,7,,track||5,,8,,track||5,,9,,track||5,,10,,track||5,,11,,track||6,,10,,track||6,,11,,track||7,,10,,track||7,,11,,track||8,,10,,track||8,,11,,track||9,,5,,track||9,,6,,track||9,,8,,track||9,,9,,track||9,,10,,track||9,,11,,track||10,,6,,track||10,,7,,track||10,,8,,track||10,,9,,track||10,,10,,track||10,,11,,track||11,,10,,track||11,,11,,track||12,,10,,track||12,,11,,track||13,,7,,track||13,,8,,track||13,,9,,track||13,,10,,track||13,,11,,track||14,,5,,track||14,,6,,track||14,,7,,track||14,,8,,track||14,,9,,track||14,,10,,track||15,,6,,track";
makeTilesArray(tileString);
makeLargeObject(5, 4, 4, 3, "house01", "r");
makeLargeObject(10, 4, 4, 3, "house01", "r");
makeLargeObject(15, 4, 4, 3, "house01", "r");
makePathway(9, 5, "house01");
standardPathway("left", 1);
bgGraphics(1, "", "wall", "sea", "wall", "lensflare");
}
}
function map5() {
areaCharType = "pilot";
clearWorld("Blank");
areaName = "Petshop";
areaMusic = "beach";
areaTerrain = "beach";
encounterRate = 0;
mapLocation = 5;
areaLocation = 1;
changeSurroundBlank(1, 1);
makeObject(13, 18, "Tree");
makeObject(3, 4, "Boulder");
makeObject(7, 7, "Boulder");
makeObject(9, 6, "Tree");
standardPathway("up", -1, 2);
bgMusic(areaMusic);
bgGraphics(1, "sea", "", "jungle", "", "jungle");
}
function map6(area) {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Endless Gorge";
areaLocation = area;
areaTerrain = "gorge";
areaMusic = "jungle";
encounterRate = 0;
mapLocation = 6;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
bgGraphics(areaTerrain, "", "", "", "", "");
if (!(area === 1)) {
} else {
objString = "7,,5,,blank||7,,6,,blank||7,,7,,blank||7,,8,,blank||7,,9,,blank||7,,10,,blank||7,,11,,blank||7,,12,,blank||7,,13,,blank||7,,14,,blank||7,,15,,blank||7,,16,,blank||7,,17,,blank||7,,18,,blank||7,,19,,blank||7,,20,,blank||7,,21,,blank||8,,1,,blank||8,,2,,blank||8,,3,,blank||8,,4,,blank||8,,5,,blank||8,,7,,blank||8,,12,,blank||9,,7,,blank||9,,12,,blank||10,,7,,blank||10,,12,,blank||11,,7,,blank||11,,12,,blank||12,,7,,blank||12,,12,,blank||13,,6,,blank||13,,7,,blank||13,,8,,blank||13,,9,,blank||13,,10,,blank||13,,11,,blank||13,,12,,blank||14,,3,,blank||14,,4,,blank||14,,5,,blank||14,,6,,blank||14,,11,,blank||14,,12,,blank||14,,13,,blank||14,,14,,blank||14,,15,,blank||15,,1,,blank||15,,2,,blank||15,,3,,blank||15,,15,,blank||15,,16,,blank||15,,17,,blank||15,,18,,blank||15,,19,,blank||15,,20,,blank||15,,21,,blank";
makeObjectsArray(objString);
standardPathway("left", -1, 2);
standardPathway("right", -1, 7);
}
}
function map7() {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Ferrous Jungle";
areaTerrain = "jungle";
areaMusic = "jungle";
encounterRate = 0;
mapLocation = 7;
areaLocation = 1;
changeSurroundBlank(1, 1);
makeObject(1, 20, "Boulder");
makeObject(2, 19, "Boulder");
makeObject(20, 3, "Boulder");
makeObject(20, 15, "Boulder");
makeObject(20, 20, "Boulder");
standardPathway("left", -1, 6);
standardPathway("up", -1, 8);
bgMusic(areaMusic);
bgGraphics(1, "", "", "", "", "jungle");
}
function map8() {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Costa De Acero";
areaMusic = "beach";
areaTerrain = "beach";
encounterRate = 0;
mapLocation = 8;
areaLocation = 1;
changeSurroundBlank(1, 1);
makeObject(13, 18, "Tree");
makeObject(3, 4, "Boulder");
makeObject(7, 7, "Boulder");
makeObject(9, 6, "Tree");
standardPathway("right", -1, 10);
standardPathway("left", -1, 9);
bgMusic(areaMusic);
bgGraphics(2, "", "", "sea", "", "lensflare");
}
function map10() {
areaCharType = "pilot";
clearWorld("Blank");
areaName = "Acero Terminus";
areaMusic = "town";
areaTerrain = "jungle";
encounterRate = 0;
mapLocation = 10;
areaLocation = 1;
changeSurroundBlank(1, 1);
standardPathway("left", -1, 8);
bgMusic(areaMusic);
bgGraphics(1, "beach", "", "", "", "lensflare");
}
function enterShop(shop) {
areaNameClip._visible = false;
_global.action = "talking";
floor._visible = false;
canopyClip._visible = false;
bgLeft._visible = false;
bgRight._visible = false;
bgUp._visible = false;
bgDown._visible = false;
worldMenu._visible = false;
shopSystem.gotoAndStop(shop);
shopSystem._visible = true;
bg.gotoAndStop(shop);
}
function exitShop() {
areaNameClip._visible = true;
_global.action = "walking";
floor._visible = true;
canopyClip._visible = true;
talkingSystem._visible = false;
shopSystem._visible = false;
bgLeft._visible = true;
bgRight._visible = true;
bgUp._visible = true;
bgDown._visible = true;
worldMenu._visible = true;
playSound("close");
bg.gotoAndStop(areaTerrain);
}
function map2(area) {
areaCharType = "maw";
areaName = "Great Tiki Jungle";
areaTerrain = "jungle";
areaMusic = "jungle";
mapLocation = 2;
areaLocation = area;
clearWorld("Blank");
changeSurroundBlank(1, 1);
chestCredits = 5;
bgMusic(areaMusic);
switch (area) {
case 1 :
encounterRate = "jungle_1";
objString = "1,,20,,Tree||2,,18,,Boulder||3,,3,,Grass||3,,4,,Grass||3,,16,,Grass||3,,17,,Grass||3,,18,,Grass||4,,8,,Boulder||4,,19,,Fern||5,,12,,Tree||7,,5,,Grass||7,,12,,_level0.obj||7,,14,,Boulder||7,,15,,Boulder||8,,2,,sign_r,,To Tikila Town.||18,,8,,Fern||18,,18,,Grass||18,,19,,Grass||19,,5,,Grass||19,,13,,Boulder||19,,15,,Tree";
makeObjectsArray(objString);
standardPathway("up", -1, 1);
standardPathway("down", 2);
bgGraphics(areaTerrain, "jungle", "", "", areaTerrain);
break;
case 2 :
encounterRate = "jungle_1";
objString = "1,,1,,Fern||1,,2,,Boulder||1,,6,,Boulder||1,,8,,Boulder||1,,15,,Tree||1,,20,,Boulder||2,,4,,Tree||2,,7,,Boulder||2,,10,,Boulder||2,,12,,Fern||2,,14,,Boulder||2,,20,,Boulder||3,,9,,Tree||3,,17,,Boulder||3,,19,,Fern||4,,1,,Boulder||4,,6,,Fern||5,,1,,Boulder||5,,15,,Boulder||5,,16,,Boulder||5,,19,,Boulder||5,,20,,Boulder||6,,13,,Grass||6,,20,,Boulder||9,,16,,Boulder||9,,19,,Boulder||13,,17,,Boulder||14,,3,,Tree||14,,15,,Grass||14,,16,,Grass||14,,20,,Fern||15,,1,,Fern||15,,15,,Grass||16,,19,,Boulder||18,,2,,Boulder||19,,7,,Fern||19,,17,,Boulder||20,,17,,Boulder||20,,20,,Boulder";
makeObjectsArray(objString);
standardPathway("up", 1);
standardPathway("right", 3);
bgGraphics(areaTerrain, "jungle", "", "jungle", "", areaTerrain);
break;
case 3 :
encounterRate = "jungle_1";
objString = "1,,3,,Grass||1,,20,,Fern||2,,1,,Fern||2,,3,,Grass||2,,17,,Boulder||3,,1,,Fern||3,,3,,Grass||3,,4,,Grass||3,,12,,Grass||4,,3,,Grass||4,,12,,Grass||5,,12,,Grass||5,,18,,Tree||5,,20,,Boulder||6,,12,,Grass||6,,13,,Grass||6,,15,,Fern||7,,3,,Fern||7,,13,,Grass||7,,15,,Grass||7,,16,,Grass||7,,17,,Grass||8,,13,,Grass||9,,3,,Grass||9,,19,,sign_r,,To deep jungle regions.\nDangerous creatures ahead!||10,,3,,Grass||12,,4,,Boulder||13,,1,,Fern||14,,15,,Grass||14,,18,,Grass||15,,14,,Grass||15,,15,,Grass||15,,17,,Grass||15,,18,,Grass||16,,15,,Grass||17,,15,,Grass||18,,3,,Fern||18,,8,,sign_l,,To scrapyard.||18,,13,,Boulder||18,,14,,Boulder||19,,2,,Boulder||19,,19,,Fern";
makeObjectsArray(objString);
standardPathway("down", 5);
standardPathway("left", 2);
standardPathway("right", -1, 3);
bgGraphics(areaTerrain, "jungle", "", "mountain", "", areaTerrain);
break;
case 4 :
chestCredits = 10;
encounterRate = "jungle_2";
objString = "1,,9,,Grass||1,,10,,Grass||1,,12,,Grass||1,,16,,Tree||2,,4,,Boulder||3,,7,,Grass||3,,9,,Fern||3,,19,,Fern||4,,2,,Grass||4,,3,,Tree||4,,13,,Tree||4,,17,,Boulder||4,,18,,Grass||4,,19,,Grass||5,,6,,Fern||5,,8,,Grass||5,,12,,Grass||5,,13,,Grass||7,,3,,Fern||7,,6,,Boulder||9,,3,,Boulder||12,,3,,Fern||12,,16,,Grass||12,,17,,Grass||12,,18,,Fern||13,,1,,Boulder||13,,18,,Grass||13,,20,,Grass||14,,16,,Boulder||15,,3,,Grass||15,,4,,Grass||15,,14,,Grass||16,,14,,Grass||17,,1,,Tree||17,,15,,Grass||17,,16,,Grass||18,,4,,Fern||18,,19,,Fern||19,,14,,Grass||20,,8,,Boulder||20,,18,,Tree";
makeObjectsArray(objString);
standardPathway("right", 5);
standardPathway("down", 9);
bgGraphics(areaTerrain, "mountain", "", "jungle", "", areaTerrain);
break;
case 5 :
chestCredits = 10;
encounterRate = "jungle_2";
objString = "1,,2,,Tree||2,,1,,Fern||2,,8,,Tree||2,,17,,Tree||2,,20,,Fern||3,,3,,Boulder||3,,5,,Fern||3,,15,,Fern||4,,6,,Grass||5,,3,,Fern||5,,6,,Grass||5,,7,,Grass||6,,2,,Tree||6,,4,,Grass||6,,5,,Grass||6,,6,,Grass||6,,14,,Grass||6,,19,,Boulder||7,,14,,Grass||8,,14,,Grass||8,,15,,Grass||8,,18,,Fern||9,,14,,Grass||9,,15,,Grass||10,,14,,Grass||10,,15,,Grass||10,,18,,Grass||11,,15,,Grass||11,,18,,Grass||12,,16,,Boulder||14,,1,,Tree||14,,7,,Grass||14,,15,,Grass||15,,6,,Grass||18,,2,,Tree||18,,3,,Fern||18,,6,,Fern||18,,19,,Fern||19,,15,,Fern||19,,17,,Grass||20,,5,,Fern||20,,17,,Tree";
makeObjectsArray(objString);
standardPathway("up", 3);
standardPathway("right", 6);
standardPathway("left", 4);
bgGraphics(areaTerrain, "jungle", "", "jungle", "", areaTerrain);
break;
case 6 :
chestCredits = 2;
encounterRate = "jungle_2";
objString = "1,,16,,Tree||3,,3,,Boulder||3,,5,,Tree||5,,1,,Fern||5,,20,,Fern||7,,17,,Boulder||7,,19,,Fern||8,,2,,Fern||9,,16,,Grass||11,,3,,Grass||11,,5,,Grass||11,,6,,Grass||11,,15,,Fern||11,,20,,Grass||12,,3,,Grass||12,,14,,Grass||13,,2,,Grass||13,,3,,Grass||13,,10,,Grass||13,,19,,Grass||14,,1,,Grass||14,,2,,Grass||14,,3,,Grass||14,,4,,Grass||14,,18,,Grass||14,,19,,Grass||14,,20,,Grass||15,,1,,Grass||15,,2,,Grass||15,,17,,Grass||15,,18,,Grass||15,,19,,Grass||16,,2,,Grass||16,,3,,Grass||16,,5,,Grass||16,,6,,Grass||16,,14,,Grass||16,,15,,Grass||16,,16,,Boulder||16,,17,,Grass||16,,18,,Grass||16,,19,,Grass||16,,20,,Grass||17,,1,,Grass||17,,2,,Grass||17,,3,,Grass||17,,4,,Grass||17,,5,,Grass||17,,7,,Grass||17,,8,,Grass||17,,9,,Grass||17,,10,,Grass||17,,11,,Grass||17,,13,,Grass||17,,14,,Grass||17,,16,,Grass||17,,17,,Grass||17,,19,,Grass||18,,1,,Grass||18,,3,,Grass||18,,4,,Grass||18,,5,,Grass||18,,6,,Grass||18,,7,,Grass||18,,8,,Grass||18,,9,,Grass||18,,10,,Grass||18,,12,,Boulder||18,,13,,Grass||18,,14,,Grass||18,,16,,Grass||18,,17,,Grass||18,,18,,Grass||18,,19,,Grass||19,,1,,Boulder||19,,2,,Grass||19,,3,,Grass||19,,4,,Grass||19,,5,,Grass||19,,6,,Grass||19,,7,,Boulder||19,,8,,Grass||19,,9,,Grass||19,,10,,Grass||19,,11,,Grass||19,,12,,Grass||19,,13,,Grass||19,,14,,Grass||19,,15,,Grass||19,,16,,Grass||19,,18,,Grass||19,,19,,Grass||19,,20,,Grass||20,,3,,Grass||20,,5,,Grass||20,,6,,Grass||20,,7,,Grass||20,,9,,Grass||20,,11,,Grass||20,,12,,Grass||20,,13,,Grass||20,,14,,Boulder||20,,16,,Grass||20,,17,,Grass||20,,19,,Grass";
makeObjectsArray(objString);
standardPathway("left", 5);
bgGraphics(areaTerrain, "jungle", "", "mountain", "", areaTerrain);
break;
case 7 :
encounterRate = "jungle_3";
objString = "1,,15,,Grass||1,,16,,Grass||1,,17,,Grass||2,,8,,sign_r,,To Azure Cove.||2,,12,,Grass||2,,15,,Grass||2,,17,,Grass||2,,18,,Grass||3,,2,,Grass||3,,4,,Grass||3,,5,,Grass||3,,15,,Grass||4,,11,,Grass||5,,11,,Grass||5,,12,,Grass||5,,15,,Grass||6,,5,,Grass||6,,6,,Grass||6,,15,,Grass||7,,2,,Grass||7,,5,,Grass||8,,1,,Fern||8,,2,,Grass||8,,15,,Grass||9,,3,,Boulder||9,,17,,Grass||10,,14,,Fern||10,,15,,Grass||10,,17,,Grass||11,,2,,Grass||11,,15,,Grass||11,,17,,Grass||11,,20,,Fern||12,,15,,Grass||12,,16,,Grass||12,,19,,Boulder||13,,16,,Grass||14,,17,,Grass||15,,5,,Fern||15,,16,,Grass||15,,17,,Grass||17,,3,,Tree||18,,2,,Fern||19,,17,,Fern||20,,5,,Boulder";
makeObjectsArray(objString);
standardPathway("left", -1, 4);
standardPathway("right", 8);
bgGraphics(1, "beach", ",mountain", "", "jungle");
break;
case 8 :
encounterRate = "jungle_3";
objString = "1,,19,,Fern||2,,5,,Fern||2,,6,,Grass||2,,16,,Boulder||3,,3,,Tree||3,,6,,Grass||3,,16,,Boulder||4,,6,,Grass||4,,19,,Tree||5,,2,,Fern||5,,5,,Fern||5,,6,,Grass||5,,7,,Grass||5,,14,,Grass||6,,7,,Grass||6,,14,,Grass||6,,20,,Grass||7,,3,,Grass||7,,5,,Boulder||7,,7,,Grass||7,,14,,Grass||7,,18,,Fern||7,,20,,Grass||8,,1,,Fern||8,,3,,Grass||8,,14,,Grass||8,,20,,Grass||9,,3,,Grass||9,,15,,Grass||10,,15,,Grass||10,,19,,Fern||12,,2,,Tree||12,,6,,Fern||12,,7,,Grass||13,,7,,Grass||13,,19,,Tree||14,,7,,Grass||15,,3,,Fern||15,,5,,Grass||15,,17,,Fern||16,,5,,Grass||17,,3,,Tree||17,,5,,Grass||17,,19,,Grass||18,,5,,Grass||18,,7,,Grass||18,,16,,Tree||18,,19,,Grass||19,,7,,Grass||19,,18,,Fern||20,,4,,Fern||20,,14,,Boulder";
makeObjectsArray(objString);
standardPathway("right", 9);
standardPathway("left", 7);
bgGraphics(1, "jungle", "", "mountain", "", "jungle");
break;
case 9 :
encounterRate = "jungle_3";
objString = "1,,1,,Tree||1,,5,,Boulder||1,,19,,Fern||3,,3,,Fern||3,,5,,Grass||4,,16,,Fern||4,,18,,Grass||4,,19,,Grass||6,,3,,Boulder||6,,16,,Tree||6,,19,,Boulder||13,,11,,Tree||13,,19,,Boulder||14,,7,,Fern||15,,3,,Tree||15,,16,,Fern||16,,9,,Grass||16,,15,,Grass||16,,18,,Grass||18,,2,,Fern||18,,14,,Fern||19,,4,,Grass||19,,6,,Fern||20,,11,,Fern||20,,19,,Fern";
makeObjectsArray(objString);
standardPathway("up", 4);
standardPathway("down", 10);
standardPathway("left", 8);
bgGraphics(1, "jungle", "", "jungle", "", "jungle");
break;
case 10 :
encounterRate = "jungle_4";
objString = "2,,7,,Fern||2,,14,,Grass||2,,16,,Fern||3,,4,,Grass||3,,7,,Fern||3,,10,,Boulder||3,,15,,Tree||4,,6,,Tree||4,,13,,Fern||4,,19,,Fern||5,,1,,Tree||5,,9,,Grass||5,,12,,Tree||5,,16,,Grass||7,,6,,Fern||8,,18,,Boulder||13,,6,,repairstation||15,,8,,Grass||15,,17,,Fern||16,,5,,Grass||16,,6,,Grass||17,,8,,Boulder||17,,9,,Grass||18,,1,,Tree||18,,4,,Grass||18,,9,,Grass||18,,14,,Grass||18,,15,,Grass||19,,8,,Fern||19,,9,,Grass||19,,14,,Grass||19,,17,,Tree||19,,19,,Grass||20,,14,,Grass";
makeObjectsArray(objString);
makePathway(13, 7, "repairstation");
standardPathway("up", 9);
standardPathway("down", 13);
standardPathway("right", 11);
bgGraphics(1, "mountain", "", "jungle", "", "jungle");
break;
case 11 :
encounterRate = "jungle_4";
objString = "2,,3,,Fern||3,,18,,Fern||4,,2,,Boulder||4,,3,,Boulder||4,,19,,Boulder||5,,3,,Tree||5,,5,,Fern||6,,15,,Fern||6,,18,,Fern||7,,5,,Boulder||7,,14,,Boulder||8,,3,,Fern||8,,18,,Boulder||11,,18,,Fern||12,,5,,Fern||13,,5,,Boulder||13,,6,,Boulder||13,,17,,Fern||14,,17,,Fern||16,,4,,Fern||16,,6,,Fern||16,,18,,Fern||17,,5,,Boulder||17,,19,,Fern||18,,18,,Boulder||19,,2,,Boulder||19,,5,,Fern||20,,16,,Fern";
makeObjectsArray(objString);
standardPathway("left", 10);
standardPathway("right", 12);
bgGraphics(1, "jungle", "", "mountain", "", "jungle");
break;
case 12 :
encounterRate = "jungle_4";
objString = "1,,6,,Grass||1,,7,,Grass||1,,13,,Grass||1,,14,,Boulder||2,,4,,Grass||2,,14,,Boulder||2,,15,,Boulder||3,,3,,Grass||4,,3,,Boulder||4,,13,,Grass||5,,15,,Grass||6,,15,,Grass||7,,3,,Grass||7,,17,,Grass||7,,18,,Grass||7,,20,,Grass||8,,3,,Grass||10,,10,,Fern||14,,3,,Boulder||14,,4,,Grass||15,,4,,Boulder||15,,20,,Boulder||17,,4,,Grass||17,,5,,Grass||17,,16,,Boulder||17,,18,,Grass||17,,19,,Grass||18,,2,,Tree||18,,10,,Grass||18,,12,,Boulder||18,,13,,Boulder||19,,9,,Grass||19,,10,,Grass||19,,12,,Boulder||19,,15,,Grass||19,,16,,Grass";
makeObjectsArray(objString);
standardPathway("down", 14);
standardPathway("left", 11);
bgGraphics(1, "jungle", "", "mountain", "", "jungle");
break;
case 13 :
encounterRate = "jungle_4";
objString = "3,,10,,Fern||3,,17,,Fern||4,,2,,Tree||4,,5,,Fern||4,,7,,Fern||4,,10,,Fern||4,,16,,Fern||4,,19,,Fern||5,,4,,Grass||5,,10,,Boulder||5,,14,,Fern||6,,9,,Grass||6,,15,,Grass||6,,18,,Boulder||14,,19,,Grass||15,,13,,Grass||16,,8,,Grass||17,,3,,Grass||17,,7,,Boulder||17,,8,,Boulder||17,,19,,Fern||18,,6,,Fern||18,,8,,Boulder||18,,13,,Fern||18,,15,,Boulder||19,,2,,Fern||19,,3,,Fern||19,,4,,Boulder||19,,18,,Fern";
makeObjectsArray(objString);
standardPathway("up", 10);
standardPathway("down", 19);
bgGraphics(1, "mountain", "", "jungle", "", "jungle");
break;
case 14 :
encounterRate = "jungle_4";
objString = "2,,6,,Grass||2,,7,,Grass||2,,8,,Grass,,To Azure Cove.||2,,9,,Grass,,To Plasma Mine.\nExtremely Dangerous!!||2,,18,,Fern||3,,4,,Grass||3,,11,,Boulder||3,,13,,Grass||4,,1,,Boulder||4,,7,,Tree||4,,16,,Grass||5,,17,,Grass||5,,19,,Boulder||6,,18,,Grass||7,,18,,Grass||8,,7,,Fern||8,,13,,Fern||8,,18,,Grass||9,,18,,Grass,,To ChocoPet shop!\n:)||9,,19,,Grass||10,,19,,Grass||11,,19,,Grass||12,,14,,Fern||12,,19,,Grass||13,,19,,Grass||14,,19,,Grass||16,,1,,Grass||17,,18,,Boulder||17,,19,,Boulder||18,,3,,Grass||18,,18,,Grass||19,,1,,Fern||20,,4,,Grass||20,,16,,Boulder||20,,17,,Boulder||21,,4,,Grass";
makeObjectsArray(objString);
standardPathway("up", 12);
standardPathway("right", 15);
bgGraphics(1, "mountain", "", "jungle", "", "jungle");
break;
case 15 :
encounterRate = "jungle_4";
objString = "2,,3,,Fern||3,,17,,Fern||4,,7,,Fern||5,,14,,Fern||6,,6,,Grass||6,,19,,Grass||7,,1,,Grass||7,,2,,Grass||7,,6,,Grass||7,,16,,Grass||7,,19,,Grass||8,,6,,Grass||8,,14,,Boulder||8,,16,,Grass||9,,14,,Boulder||12,,7,,Boulder||13,,2,,Grass||13,,19,,Grass||14,,2,,Grass||14,,16,,Grass||15,,2,,Grass||16,,2,,Grass||17,,6,,Grass||18,,9,,sign_l,,To Endless Gorge.||18,,19,,Grass||20,,8,,Grass||20,,14,,Grass";
makeObjectsArray(objString);
standardPathway("right", -1, 6);
standardPathway("left", 14);
bgGraphics(1, "jungle", "", "mountain", "", "jungle");
break;
case 16 :
encounterRate = "jungle_4";
objString = "2,,6,,Grass||2,,7,,Grass||2,,8,,Grass,,To Azure Cove.||2,,9,,Grass,,To Plasma Mine.\nExtremely Dangerous!!||2,,10,,Grass||2,,11,,Boulder||2,,15,,Grass||2,,16,,Grass||3,,11,,Boulder||4,,7,,Grass||4,,9,,Tree||4,,15,,Fern||5,,4,,Fern||5,,5,,Boulder||5,,6,,Grass||5,,18,,Boulder||5,,19,,Grass||7,,4,,Grass||8,,3,,Grass||8,,4,,Grass||13,,6,,Boulder||14,,6,,Fern||14,,19,,Grass||14,,20,,Grass||15,,4,,Grass||15,,18,,Fern||16,,4,,Grass||16,,16,,Grass||17,,15,,Grass||17,,16,,Grass||19,,4,,Grass||19,,6,,Fern||19,,14,,Grass";
makeObjectsArray(objString);
standardPathway("down", 21);
standardPathway("right", 17);
bgGraphics(1, "mountain", "", "mountain", "", "jungle");
break;
case 17 :
encounterRate = "jungle_4";
objString = "1,,7,,Grass||2,,6,,Grass||2,,7,,Grass||2,,18,,Fern||3,,5,,Grass||3,,6,,Boulder||3,,7,,Boulder||3,,17,,Boulder||4,,3,,Boulder||4,,4,,Boulder||4,,5,,Grass||4,,17,,Grass||5,,3,,Grass||5,,7,,Fern||5,,17,,Boulder||6,,3,,Grass||6,,5,,Fern||6,,17,,Grass||7,,19,,Grass||8,,3,,Boulder||8,,16,,Fern||8,,19,,Grass||9,,4,,Grass||10,,4,,Boulder||10,,17,,Boulder||10,,18,,Boulder||11,,17,,Boulder||12,,6,,Fern||13,,4,,Grass||13,,18,,Grass||14,,6,,Boulder||14,,18,,Grass||15,,4,,Grass||15,,5,,Grass||15,,6,,Boulder||15,,17,,Boulder||15,,18,,Boulder||15,,19,,Fern||16,,5,,Boulder||16,,17,,Grass||16,,18,,Grass||17,,4,,Grass||17,,6,,Fern||17,,17,,Grass||17,,18,,Boulder||18,,3,,Boulder||18,,4,,Boulder||19,,6,,Grass||19,,16,,Grass||19,,17,,Boulder||19,,18,,Fern||20,,15,,Grass||20,,16,,Boulder";
makeObjectsArray(objString);
standardPathway("right", 18);
standardPathway("left", 16);
bgGraphics(1, "jungle", "", "mountain", "", "jungle");
break;
case 18 :
encounterRate = "jungle_4";
objString = "2,,4,,Grass||2,,5,,Grass||2,,6,,Grass||3,,3,,Grass||3,,4,,Grass||3,,14,,Grass||4,,4,,Boulder||4,,6,,Tree||4,,14,,Grass||4,,17,,Boulder||4,,20,,Fern||5,,3,,Grass||5,,14,,Grass||5,,15,,Grass||6,,3,,Grass||7,,3,,Grass||7,,5,,Fern||7,,18,,Grass||11,,5,,Grass||12,,5,,Grass||13,,2,,Boulder||15,,17,,Grass||15,,18,,Grass||16,,5,,Grass||16,,14,,Grass||16,,15,,Grass||17,,14,,Grass||18,,3,,Tree||18,,4,,Grass||18,,14,,Grass||18,,16,,Boulder||19,,16,,Fern||20,,14,,Grass||21,,14,,Grass";
makeObjectsArray(objString);
standardPathway("right", 19);
standardPathway("left", 17);
bgGraphics(1, "jungle", "", "mountain", "", "jungle");
break;
case 19 :
encounterRate = "jungle_4";
objString = "1,,5,,Grass||1,,6,,Grass||2,,2,,Fern||2,,6,,Boulder||3,,6,,Boulder||3,,15,,Grass||3,,19,,Fern||4,,15,,Grass||4,,16,,Grass||5,,4,,Tree||5,,7,,Grass||5,,16,,Grass||5,,17,,Grass||6,,8,,Grass||6,,17,,Boulder||7,,1,,Grass||7,,2,,Grass||7,,17,,Boulder||8,,2,,Grass||8,,4,,Boulder||8,,5,,Boulder||8,,7,,Grass||9,,7,,Grass||9,,18,,Grass,,To ChocoPet shop!\n:)||11,,19,,Boulder||12,,19,,Boulder||13,,18,,Boulder||16,,3,,Grass||16,,4,,Grass||16,,18,,Grass||17,,4,,Grass||17,,5,,Grass||17,,6,,Boulder||17,,7,,Boulder||17,,18,,Grass||17,,20,,Fern||18,,10,,Grass||18,,12,,Boulder||18,,15,,Grass||18,,16,,Grass||19,,3,,Fern||19,,8,,Fern";
makeObjectsArray(objString);
standardPathway("up", 13);
standardPathway("left", 18);
bgGraphics(1, "jungle", "", "jungle", "", "jungle");
break;
case 20 :
encounterRate = "jungle_4";
objString = "2,,5,,Boulder||2,,9,,sign_r,,To Plasma Mine.\nExtremely Dangerous!!||4,,17,,Grass||4,,18,,Grass||5,,5,,Grass||5,,18,,Grass||6,,5,,Grass||9,,14,,Grass||13,,18,,Boulder||18,,5,,Fern||19,,18,,Fern";
makeObjectsArray(objString);
standardPathway("right", 21);
standardPathway("left", -1, 11);
bgGraphics(1, "jungle", "", "mountain", "beach", "jungle");
break;
case 21 :
encounterRate = "jungle_4";
objString = "2,,7,,Grass||3,,2,,Fern||3,,6,,Grass||3,,7,,Grass||3,,18,,Fern||4,,5,,Boulder||4,,21,,Grass||5,,21,,Grass||6,,4,,Grass||7,,1,,Grass||7,,2,,Grass||7,,18,,Tree||8,,1,,Grass||9,,19,,Grass||11,,18,,Grass||13,,18,,Grass||14,,18,,Grass||15,,17,,Boulder||16,,9,,Fern||16,,16,,Grass||17,,15,,Grass||18,,13,,Grass||18,,16,,Grass||19,,3,,Tree||19,,11,,Grass||19,,12,,Grass||19,,13,,Grass||19,,16,,Grass||20,,7,,Grass||20,,8,,Grass";
makeObjectsArray(objString);
standardPathway("up", 16);
standardPathway("left", 20);
bgGraphics(1, "jungle", "", "jungle", "beach", "jungle");
break;
case 22 :
encounterRate = "jungle_4";
objString = "2,,5,,Grass||2,,6,,Grass||2,,7,,Grass||4,,3,,Grass||4,,16,,Grass||4,,17,,Grass||5,,2,,Fern||5,,7,,Boulder||6,,11,,Grass||6,,12,,Grass||7,,11,,Grass||7,,17,,Boulder||9,,18,,sign_r,,To ChocoPet shop!\n:)||14,,5,,Fern||15,,12,,Boulder||17,,3,,Grass||17,,16,,Grass||17,,17,,Grass||18,,6,,Grass||18,,7,,Grass||18,,11,,Grass||19,,3,,Grass||20,,3,,Grass";
makeObjectsArray(objString);
standardPathway("up", 18);
standardPathway("down", -1, 5);
bgGraphics(1, "mountain", "", "jungle", "beach", "jungle");
}
}
function map3(area) {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Scrapyard";
areaTerrain = "scrapyard";
areaMusic = "scrapyard";
mapLocation = 3;
areaLocation = area;
chestCredits = 10;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
switch (area) {
case 1 :
encounterRate = "scrapyard_4";
objString = "1,,6,,wall_r||1,,7,,wall_r||1,,8,,wall_r||1,,9,,wall_r||1,,12,,Grass||1,,13,,Grass||1,,18,,Grass||2,,5,,wall_r||2,,6,,wall_r||2,,9,,wall_r||2,,10,,wall_r||2,,15,,Boulder||3,,4,,wall_r||3,,5,,wall_r||3,,10,,wall_r||3,,11,,wall_r||3,,19,,Boulder||4,,3,,wall_r||4,,4,,wall_r||4,,11,,wall_r||4,,12,,wall_r||4,,15,,Grass||4,,16,,Grass||5,,2,,wall_r||5,,3,,wall_r||5,,4,,scrapluna_l||5,,12,,wall_r||5,,13,,wall_r||5,,19,,crane_l||6,,1,,wall_r||6,,2,,wall_r||6,,3,,wall_r||6,,13,,wall_r||6,,14,,wall_r||7,,1,,wall_r||7,,7,,scrapavenger_l||7,,10,,scrapavenger_l||7,,14,,wall_r||7,,15,,wall_r||8,,1,,wall_r||8,,3,,scrapavenger_l||8,,12,,sign_r,,Do not disturb the machines.||8,,15,,wall_r||8,,16,,wall_r||8,,17,,scrapavenger_l||8,,19,,scrapavenger_l||9,,1,,wall_r||10,,1,,wall_r||11,,1,,wall_r||12,,1,,wall_r||13,,1,,wall_r||13,,15,,wall_r||13,,16,,wall_r||13,,17,,scrapavenger_l||13,,19,,scrapavenger_l||14,,1,,wall_r||14,,3,,scrapavenger_l||14,,7,,scrapavenger_l||14,,10,,scrapavenger_l||14,,14,,wall_r||14,,15,,wall_r||15,,1,,wall_r||15,,2,,wall_r||15,,13,,wall_r||15,,14,,wall_r||16,,1,,wall_r||16,,2,,wall_r||16,,3,,wall_r||16,,4,,scrapluna_l||16,,12,,wall_r||16,,13,,wall_r||16,,16,,Boulder||16,,17,,Boulder||16,,19,,crane_l||17,,3,,wall_r||17,,4,,wall_r||17,,11,,wall_r||17,,12,,wall_r||18,,1,,Grass||18,,2,,Grass||18,,3,,wall_r||18,,4,,wall_r||18,,5,,wall_r||18,,10,,wall_r||18,,11,,wall_r||18,,15,,Grass||19,,1,,Grass||19,,2,,Grass||19,,5,,wall_r||19,,6,,wall_r||19,,9,,wall_r||19,,10,,wall_r||19,,14,,Grass||19,,15,,Grass||19,,17,,Grass||19,,18,,Grass||20,,1,,Grass||20,,2,,Grass||20,,3,,Grass||20,,6,,wall_r||20,,7,,wall_r||20,,8,,wall_r||20,,9,,wall_r||20,,13,,Grass";
makeObjectsArray(objString);
makeObject(10, 6, "boss", "derelict");
standardPathway("down", 3);
bgGraphics(areaTerrain, "mountain", "", "mountain", "", "");
break;
case 2 :
encounterRate = "scrapyard_6";
objString = "1,,14,,Grass||2,,2,,wall_l||2,,3,,wall_l||2,,13,,Grass||2,,14,,Grass||3,,7,,Boulder||4,,3,,scrap||4,,4,,scrap||4,,5,,scrap||4,,6,,scrap||4,,10,,scrapavenger_r||4,,14,,crane_r||4,,18,,scrapavenger_r||5,,2,,scrap||5,,3,,scrap||5,,6,,scrap||5,,7,,scrap||6,,2,,scrap||6,,3,,scrap||6,,7,,scrap||6,,8,,scrap||7,,2,,scrap||7,,3,,scrap||7,,5,,scrapluna_l||7,,8,,scrap||7,,9,,scrap||7,,10,,scrap||7,,11,,scrap||7,,12,,scrap||7,,13,,scrap||7,,14,,scrap||7,,15,,scrap||8,,3,,scrap||8,,11,,scrap||8,,16,,scrap||8,,17,,scrap||8,,18,,scrap||8,,19,,scrap||8,,20,,scrap||9,,3,,scrap||10,,3,,scrap||10,,9,,scrap||11,,3,,scrap||11,,4,,scrap||11,,6,,scrap||11,,7,,scrap||11,,8,,scrap||11,,9,,scrap||12,,4,,scrap||12,,5,,scrap||12,,6,,scrap||12,,8,,scrap||13,,4,,scrap||13,,5,,scrap||13,,8,,scrap||13,,15,,scrap||14,,2,,Grass||14,,7,,scrap||14,,8,,scrap||15,,2,,Grass||15,,7,,scrap||16,,6,,scrap||16,,7,,scrap||17,,6,,scrap||17,,16,,scrap||17,,17,,scrap||17,,18,,scrap||17,,19,,scrap||17,,20,,scrap||18,,3,,crane_l||18,,6,,scrap||18,,15,,scrap||18,,16,,scrap||19,,6,,scrap||19,,15,,scrap||19,,18,,scrap||20,,6,,scrap||20,,15,,scrap";
makeObjectsArray(objString);
standardPathway("right", 3);
standardPathway("down", 5);
bgGraphics(areaTerrain, "mountain", "", "mountain", "", "");
break;
case 3 :
encounterRate = "scrapyard_6";
objString = "1,,4,,Grass||1,,5,,Grass||1,,7,,scrap||1,,13,,scrap||2,,7,,scrap||2,,13,,scrap||2,,14,,scrap||2,,17,,crane_r||3,,4,,scrapluna_l||3,,7,,scrap||3,,9,,scrap||3,,14,,scrap||3,,19,,scrapluna_r||4,,2,,crane_l||4,,7,,scrap||4,,8,,scrap||4,,14,,scrap||4,,15,,scrap||4,,16,,scrap||5,,8,,scrap||5,,9,,scrap||5,,16,,scrap||5,,17,,scrap||5,,20,,Grass||6,,1,,wall_l||6,,2,,wall_l||6,,5,,scrap||6,,6,,scrap||6,,9,,scrap||6,,17,,scrap||7,,1,,wall_l||7,,2,,wall_l||7,,4,,scrap||7,,5,,scrap||7,,6,,scrap||7,,7,,scrap||7,,10,,scrap||7,,11,,scrap||7,,17,,scrap||7,,18,,scrap||8,,1,,wall_r||8,,2,,wall_r||8,,3,,wall_r||8,,4,,wall_r||8,,5,,scrapavenger_l||8,,7,,scrap||8,,8,,scrap||8,,11,,scrap||8,,12,,scrap||8,,18,,scrap||8,,19,,scrap||9,,8,,scrap||9,,9,,scrap||9,,12,,scrap||9,,13,,scrap||9,,19,,scrap||10,,9,,scrap||10,,10,,scrap||10,,11,,scrap||10,,13,,scrap||10,,19,,scrap||11,,11,,scrap||11,,12,,scrap||11,,13,,scrap||11,,19,,scrap||12,,1,,wall_r||12,,2,,wall_r||12,,3,,wall_r||12,,4,,wall_r||12,,5,,scrapavenger_l||12,,12,,scrap||12,,13,,scrap||12,,19,,scrap||13,,1,,wall_l||13,,2,,wall_l||13,,4,,scrap||13,,6,,repairstation||13,,19,,scrap||14,,1,,wall_l||14,,2,,wall_l||14,,4,,scrap||14,,5,,scrap||14,,20,,scrap||15,,1,,wall_l||15,,2,,wall_l||15,,5,,scrap||15,,6,,scrap||15,,7,,scrap||15,,8,,scrap||15,,9,,scrap||15,,20,,scrap||16,,9,,scrap||16,,19,,scrap||16,,20,,scrap||17,,9,,scrap||17,,10,,scrap||17,,17,,scrap||17,,18,,scrap||17,,19,,scrap||18,,5,,scrap||18,,6,,scrap||18,,7,,scrap||18,,10,,scrap||18,,16,,scrap||18,,17,,scrap||19,,4,,scrap||19,,5,,scrap||19,,7,,scrap||19,,10,,scrap||19,,11,,scrap||19,,12,,scrap||19,,13,,scrap||19,,14,,scrap||19,,15,,scrap||19,,16,,scrap||20,,6,,scrap||20,,7,,scrap||20,,8,,scrap||20,,19,,Grass||20,,20,,Grass";
makeObjectsArray(objString);
makePathway(13, 7, "repairstation");
standardPathway("up", 1);
standardPathway("left", 2);
bgGraphics(areaTerrain, "", "", "", "", "");
break;
case 4 :
encounterRate = "scrapyard_5";
objString = "1,,11,,Grass||1,,12,,Grass||1,,13,,Grass||2,,4,,Grass||2,,15,,scrap||2,,16,,scrap||2,,17,,scrap||2,,18,,scrap||2,,19,,scrap||3,,4,,scrap||3,,5,,scrap||3,,6,,scrap||3,,9,,crane_r||3,,12,,scrap||3,,13,,scrap||3,,14,,scrap||3,,15,,scrap||3,,16,,scrap||3,,18,,scrap||4,,1,,scrap||4,,2,,scrap||4,,3,,scrap||4,,4,,scrap||4,,6,,scrap||4,,10,,scrap||4,,11,,scrap||4,,12,,scrap||4,,16,,scrap||4,,18,,scrap||4,,19,,scrap||5,,2,,scrap||5,,3,,scrap||5,,4,,scrap||5,,5,,scrap||5,,6,,scrap||5,,7,,scrap||5,,8,,scrap||5,,9,,scrap||5,,10,,scrap||5,,11,,scrap||5,,16,,scrap||5,,18,,scrap||5,,19,,scrap||6,,2,,scrap||6,,4,,scrap||6,,5,,scrap||6,,6,,scrap||6,,7,,scrap||6,,8,,scrap||6,,9,,scrap||6,,16,,scrap||6,,17,,scrap||6,,18,,scrap||6,,19,,scrap||6,,20,,scrap||7,,2,,scrap||8,,2,,scrap||9,,1,,scrap||9,,2,,scrap||10,,1,,scrap||10,,2,,scrap||11,,2,,scrap||11,,11,,scrap||12,,2,,scrap||12,,10,,scrapavenger_r||13,,2,,scrap||13,,3,,scrap||14,,3,,scrap||14,,4,,scrap||14,,18,,scrap||14,,19,,scrap||14,,20,,scrap||15,,2,,Grass||15,,4,,scrap||15,,5,,scrap||15,,18,,scrap||16,,4,,scrap||16,,5,,scrap||16,,18,,scrap||17,,5,,scrap||17,,6,,scrap||17,,17,,scrap||17,,18,,scrap||18,,6,,scrap||18,,7,,scrap||18,,8,,scrap||18,,17,,scrap||18,,18,,scrap||18,,19,,scrap||19,,5,,Grass||19,,6,,Grass||19,,8,,scrap||19,,15,,scrap||19,,16,,scrap||19,,17,,scrap||19,,18,,scrap||20,,8,,scrap||20,,15,,scrap";
makeObjectsArray(objString);
standardPathway("right", 5);
standardPathway("down", 8);
bgGraphics(areaTerrain, "mountain", "", "mountain", "", "");
break;
case 5 :
encounterRate = "scrapyard_6";
objString = "1,,7,,scrap||1,,14,,scrap||2,,3,,Grass||2,,4,,Grass||2,,5,,crane_l||2,,7,,scrap||2,,8,,scrap||2,,14,,scrap||3,,3,,scrap||3,,8,,scrap||3,,14,,scrap||4,,2,,scrap||4,,3,,scrap||4,,4,,scrap||4,,5,,scrap||4,,8,,scrap||4,,14,,scrap||4,,19,,scrapavenger_r||5,,3,,scrap||5,,4,,scrap||5,,5,,scrap||5,,7,,scrap||5,,8,,scrap||5,,14,,scrap||5,,16,,scrap||6,,7,,scrap||6,,14,,scrap||6,,15,,scrap||6,,16,,scrap||6,,17,,scrap||7,,1,,scrap||7,,2,,scrap||7,,3,,scrap||7,,5,,scrap||7,,6,,scrap||7,,7,,scrap||7,,15,,scrap||7,,17,,scrap||8,,1,,scrap||8,,3,,scrap||8,,4,,scrap||8,,5,,scrap||8,,15,,scrap||8,,16,,scrap||8,,17,,scrap||8,,18,,scrap||8,,19,,scrap||8,,20,,scrap||12,,16,,scrap||13,,10,,scrapavenger_l||14,,1,,scrap||15,,1,,scrap||15,,2,,scrap||16,,2,,scrap||16,,3,,scrap||17,,3,,scrap||17,,4,,scrap||17,,5,,scrap||17,,6,,scrap||17,,7,,scrap||17,,8,,scrap||17,,9,,scrap||17,,10,,scrap||17,,11,,scrap||18,,4,,scrap||18,,5,,scrap||18,,6,,scrap||18,,10,,scrap||18,,11,,scrap||18,,12,,scrap||18,,13,,scrap||19,,8,,scrap||19,,9,,scrap||19,,10,,scrap||19,,11,,scrap||19,,12,,scrap||19,,13,,scrap||19,,14,,scrap||19,,15,,scrap||19,,16,,scrap||19,,17,,scrap||19,,18,,scrap||19,,19,,scrap||19,,20,,scrap||20,,1,,wall_r||20,,2,,wall_r||20,,3,,wall_r||20,,4,,wall_r||20,,5,,wall_r||20,,7,,wall_r||20,,8,,wall_r||20,,9,,Grass||20,,11,,wall_r||20,,12,,wall_r||20,,13,,wall_r||20,,14,,scrap||20,,15,,scrap||20,,16,,wall_r||20,,17,,wall_r||20,,18,,wall_r";
makeObjectsArray(objString);
standardPathway("left", 4);
standardPathway("up", 2);
standardPathway("down", 9);
bgGraphics(areaTerrain, "", "", "", "", "");
break;
case 6 :
encounterRate = "scrapyard_4";
objString = "1,,2,,scrap||1,,3,,scrap||1,,4,,scrap||2,,1,,scrap||2,,2,,scrap||2,,3,,scrap||2,,4,,scrap||2,,7,,scrap||2,,8,,scrap||2,,9,,scrap||2,,10,,scrap||2,,11,,scrap||2,,17,,scrap||2,,18,,scrap||3,,1,,scrap||3,,3,,scrap||3,,6,,scrap||3,,7,,scrap||3,,11,,scrap||3,,12,,scrap||3,,13,,scrap||3,,17,,crane_r||4,,3,,scrap||4,,5,,scrap||4,,6,,scrap||4,,13,,scrap||4,,14,,scrap||5,,4,,scrap||5,,5,,scrap||5,,10,,scrapavenger_r||5,,14,,scrap||5,,15,,scrap||5,,16,,scrap||6,,3,,scrap||6,,4,,scrap||6,,16,,scrap||6,,17,,scrap||6,,18,,scrap||7,,2,,scrap||7,,3,,scrap||7,,18,,scrap||7,,19,,scrap||7,,20,,scrap||8,,2,,scrap||8,,18,,Grass||8,,20,,scrap||9,,2,,scrap||9,,3,,scrap||9,,18,,Grass||9,,20,,scrap||10,,2,,scrap||10,,3,,scrap||10,,18,,Grass||11,,2,,scrap||11,,18,,Grass||12,,2,,scrap||12,,16,,Grass||12,,17,,Grass||12,,18,,Grass||12,,21,,scrap||13,,2,,scrap||13,,16,,Grass||13,,17,,Grass||13,,18,,Grass||13,,19,,Grass||13,,20,,Grass||13,,21,,scrap||14,,1,,scrap||14,,2,,scrap||14,,10,,Grass||14,,20,,scrap||14,,21,,scrap||15,,1,,scrap||15,,8,,Grass||15,,18,,scrap||15,,19,,scrap||15,,20,,scrap||16,,1,,scrap||16,,6,,Grass||16,,7,,Grass||16,,8,,Grass||16,,18,,scrap||17,,1,,scrap||17,,18,,scrap||18,,1,,scrap||18,,2,,scrap||18,,16,,scrap||18,,17,,scrap||18,,18,,scrap||19,,2,,scrap||19,,3,,scrap||19,,15,,scrap||19,,16,,scrap||20,,3,,scrap||20,,4,,scrap||20,,5,,scrap||20,,6,,scrap||20,,7,,scrap||20,,8,,scrap||20,,9,,scrap||20,,13,,scrap||20,,14,,scrap||20,,15,,scrap||21,,12,,scrap||21,,13,,scrap";
makeObjectsArray(objString);
standardPathway("right", 7);
standardPathway("down", 11);
bgGraphics(areaTerrain, "mountain", "", "mountain", "", "");
break;
case 7 :
encounterRate = "scrapyard_4";
objString = "1,,3,,scrap||1,,4,,scrap||1,,7,,Grass||1,,15,,scrap||1,,16,,scrap||1,,17,,scrap||2,,2,,scrap||2,,4,,scrap||2,,5,,scrap||2,,14,,scrap||2,,15,,scrap||2,,16,,scrap||3,,2,,scrap||3,,5,,scrap||3,,6,,scrap||3,,7,,scrap||3,,8,,scrap||3,,13,,scrap||3,,14,,scrap||3,,18,,scrap||3,,20,,wall_l||4,,1,,scrap||4,,8,,scrap||4,,14,,scrap||4,,15,,scrap||4,,16,,scrap||4,,20,,wall_l||5,,8,,scrap||5,,9,,scrap||5,,16,,scrap||5,,17,,scrap||5,,18,,scrap||5,,19,,scrap||6,,1,,wall_l||6,,2,,scrap||6,,3,,scrap||6,,4,,scrap||6,,5,,scrap||6,,8,,scrap||6,,9,,scrap||6,,19,,scrap||6,,20,,scrap||7,,1,,wall_l||7,,2,,scrap||7,,3,,scrap||7,,4,,scrap||7,,5,,scrap||7,,6,,scrap||7,,7,,scrap||7,,8,,scrap||7,,19,,scrap||7,,20,,scrap||8,,1,,wall_l||8,,3,,scrap||8,,4,,scrap||8,,15,,scrap||8,,16,,scrap||8,,17,,scrap||8,,18,,scrap||8,,19,,scrap||9,,4,,scrap||9,,5,,scrap||9,,13,,scrap||9,,14,,scrap||9,,15,,scrap||9,,16,,scrap||10,,5,,scrap||10,,13,,scrap||11,,3,,scrap||11,,4,,scrap||11,,5,,scrap||11,,13,,scrap||11,,14,,scrap||11,,15,,scrap||11,,16,,scrap||12,,3,,scrap||12,,15,,scrap||12,,16,,scrap||12,,17,,scrap||12,,18,,scrap||12,,19,,scrap||13,,3,,scrap||13,,4,,scrap||13,,6,,sign_l,,Clock Crawlers drop gyrobolts!||13,,19,,scrap||13,,20,,scrap||14,,4,,scrap||14,,19,,scrap||14,,20,,scrap||15,,1,,Grass||15,,4,,scrap||15,,18,,scrap||15,,19,,scrap||16,,1,,Grass||16,,4,,scrap||16,,17,,scrap||16,,18,,scrap||17,,1,,Grass||17,,4,,scrap||17,,11,,scrap||17,,12,,scrap||17,,13,,scrap||17,,14,,scrap||17,,15,,scrap||17,,16,,scrap||17,,17,,scrap||17,,20,,wall_l||18,,4,,scrap||18,,11,,scrap||18,,12,,scrap||18,,13,,scrap||18,,19,,scrap||18,,20,,wall_l||19,,1,,wall_l||19,,4,,scrap||19,,5,,scrap||19,,13,,scrap||19,,14,,scrap||19,,15,,scrap||19,,18,,scrap||19,,19,,scrap||20,,5,,scrap||20,,6,,scrap||20,,7,,scrap||20,,15,,scrap||20,,16,,scrap||20,,17,,scrap||21,,7,,scrap||21,,8,,scrap||21,,9,,scrap||21,,12,,scrap||21,,13,,scrap||21,,14,,scrap||21,,15,,scrap||21,,16,,scrap||21,,17,,scrap";
makeObjectsArray(objString);
standardPathway("left", 6);
standardPathway("right", 8);
bgGraphics(areaTerrain, "", "", "mountain", "", "");
break;
case 8 :
encounterRate = "scrapyard_3";
objString = "1,,7,,scrap||1,,8,,scrap||1,,13,,scrap||1,,14,,scrap||2,,2,,scrap||2,,3,,scrap||2,,4,,scrap||2,,5,,scrap||2,,6,,scrap||2,,7,,scrap||2,,14,,scrap||2,,15,,scrap||2,,16,,scrap||2,,19,,crane_r||3,,2,,scrap||3,,4,,scrapavenger_r||3,,16,,scrap||4,,1,,scrap||4,,2,,scrap||4,,16,,scrap||5,,1,,scrap||5,,17,,scrap||5,,18,,scrap||5,,19,,scrap||6,,1,,scrap||6,,19,,scrap||7,,1,,scrap||7,,19,,scrap||7,,20,,scrap||8,,1,,scrap||8,,10,,scrap||8,,11,,scrap||8,,12,,scrap||8,,20,,scrap||8,,21,,scrap||9,,9,,scrap||9,,10,,scrap||9,,12,,scrap||9,,21,,scrap||10,,8,,scrap||10,,9,,scrap||10,,11,,scrapluna_l||10,,12,,scrap||11,,8,,scrap||11,,12,,scrap||12,,8,,scrap||12,,11,,scrap||12,,12,,scrap||12,,21,,scrap||13,,1,,scrap||13,,8,,scrap||13,,9,,scrap||13,,10,,scrap||13,,11,,scrap||13,,20,,scrap||13,,21,,scrap||14,,1,,scrap||14,,19,,scrap||14,,20,,scrap||15,,1,,scrap||15,,2,,scrap||15,,3,,scrap||15,,19,,scrap||16,,3,,scrap||16,,17,,scrap||16,,18,,scrap||16,,19,,scrap||17,,3,,scrap||17,,4,,scrap||17,,5,,scrap||17,,17,,scrap||18,,5,,scrap||18,,15,,scrap||18,,16,,scrap||18,,17,,scrap||19,,5,,scrap||19,,6,,scrap||19,,7,,scrap||19,,15,,scrap||20,,2,,crane_l||20,,7,,scrap||20,,8,,scrap||20,,13,,scrap||20,,14,,scrap||20,,15,,scrap||21,,8,,scrap||21,,9,,scrap||21,,12,,scrap||21,,13,,scrap";
makeObjectsArray(objString);
standardPathway("up", 4);
standardPathway("down", 12);
standardPathway("left", 7);
standardPathway("right", 9);
bgGraphics(areaTerrain, "", "", "", "", "");
break;
case 9 :
encounterRate = "scrapyard_5";
objString = "1,,2,,scrapavenger_r||1,,4,,scrap||1,,5,,scrap||1,,6,,scrap||1,,14,,scrap||1,,15,,scrap||1,,16,,scrap||2,,1,,scrap||2,,4,,scrap||2,,17,,scrap||2,,20,,wall_l||3,,1,,scrap||3,,3,,scrap||3,,4,,scrap||3,,17,,scrap||3,,18,,scrap||3,,20,,wall_l||4,,1,,scrap||4,,2,,scrap||4,,3,,scrap||4,,17,,scrap||4,,18,,scrap||4,,20,,wall_l||5,,1,,scrap||5,,2,,scrap||5,,16,,scrap||5,,18,,scrap||5,,20,,wall_l||6,,1,,scrap||6,,14,,scrap||6,,18,,scrap||7,,14,,scrap||7,,15,,scrap||7,,18,,scrap||7,,21,,wall_l||8,,18,,scrap||8,,21,,wall_l||9,,13,,scrap||9,,14,,scrap||9,,18,,scrap||10,,12,,scrap||10,,13,,scrap||10,,18,,scrap||11,,11,,scrap||11,,12,,scrap||11,,13,,scrap||11,,14,,scrap||11,,15,,scrap||11,,16,,scrap||11,,18,,scrap||12,,12,,scrap||12,,13,,scrap||12,,18,,scrap||13,,13,,scrap||13,,14,,scrap||13,,18,,scrap||14,,1,,scrap||14,,2,,scrap||14,,17,,scrap||14,,18,,scrap||15,,2,,scrap||15,,17,,scrap||15,,20,,wall_l||16,,2,,scrap||16,,17,,scrap||16,,20,,wall_l||17,,2,,scrap||17,,3,,scrap||17,,14,,scrap||17,,15,,scrap||17,,17,,scrap||17,,20,,wall_l||18,,2,,scrap||18,,3,,scrap||18,,14,,scrap||18,,17,,scrap||18,,18,,scrap||18,,21,,wall_l||19,,2,,scrap||19,,3,,scrap||19,,14,,scrap||19,,18,,scrap||19,,21,,wall_l||20,,3,,scrap||20,,4,,scrap||20,,5,,scrap||20,,14,,scrap||20,,17,,scrap||20,,18,,scrap||21,,3,,scrap||21,,4,,scrap||21,,5,,scrap||21,,13,,scrap||21,,14,,scrap";
makeObjectsArray(objString);
standardPathway("up", 5);
standardPathway("left", 8);
standardPathway("right", 10);
bgGraphics(areaTerrain, "", "", "", "", "");
break;
case 10 :
encounterRate = "scrapyard_5";
objString = "1,,4,,scrap||1,,13,,scrap||1,,14,,scrap||1,,15,,scrap||1,,16,,scrap||2,,2,,wall_l||2,,4,,scrap||2,,14,,scrap||2,,15,,scrap||3,,1,,wall_l||3,,2,,wall_l||3,,4,,scrap||3,,15,,scrap||4,,2,,wall_l||4,,5,,scrap||4,,15,,scrap||4,,16,,scrap||4,,17,,scrap||4,,18,,scrap||5,,2,,wall_l||5,,4,,scrap||5,,5,,scrap||5,,7,,scrap||5,,18,,scrap||5,,19,,scrap||5,,20,,scrap||6,,5,,scrap||6,,7,,scrap||6,,17,,scrap||6,,18,,scrap||6,,19,,scrap||6,,20,,scrap||7,,1,,Grass||7,,5,,scrap||7,,7,,scrap||7,,19,,scrap||7,,20,,scrap||8,,1,,Grass||8,,5,,scrap||8,,6,,scrap||9,,5,,scrap||10,,4,,scrap||10,,5,,scrap||10,,6,,scrap||10,,7,,scrap||11,,4,,scrap||11,,6,,scrap||11,,9,,scrap||12,,5,,scrap||12,,9,,scrap||13,,5,,scrap||13,,14,,scrap||14,,5,,scrap||14,,6,,scrap||14,,8,,scrap||14,,12,,scrap||14,,14,,scrap||14,,19,,scrap||15,,2,,wall_r||15,,6,,scrap||15,,8,,scrap||15,,10,,scrap||15,,11,,scrap||15,,12,,scrap||15,,13,,scrap||15,,19,,scrap||16,,1,,wall_l||16,,2,,Grass||16,,3,,wall_l||16,,4,,Boulder||16,,7,,scrap||16,,8,,scrap||16,,9,,scrap||16,,11,,scrap||16,,14,,scrap||16,,15,,scrap||16,,16,,scrap||16,,17,,scrap||16,,19,,scrap||17,,2,,wall_r||17,,7,,scrap||17,,15,,scrap||17,,19,,scrap||18,,2,,Boulder||18,,12,,wall_r||18,,17,,scrap||18,,18,,scrap||18,,19,,scrap||18,,20,,scrap||19,,6,,wall_r||19,,7,,wall_r||19,,12,,wall_r||19,,13,,wall_r||19,,14,,wall_r||19,,19,,scrap||20,,19,,scrap";
makeObjectsArray(objString);
standardPathway("left", 9);
standardPathway("down", 13);
bgGraphics(areaTerrain, "", "", "mountain", "", "");
break;
case 11 :
encounterRate = "scrapyard_5";
objString = "2,,1,,scrap||2,,2,,wall_r||2,,3,,wall_r||2,,4,,wall_r||2,,5,,wall_r||2,,6,,wall_r||2,,14,,wall_l||2,,15,,wall_l||2,,16,,wall_l||2,,17,,wall_l||2,,18,,wall_l||2,,19,,wall_l||3,,1,,scrap||3,,7,,wall_r||3,,8,,wall_r||3,,9,,wall_r||3,,10,,wall_r||3,,11,,wall_r||3,,12,,wall_r||3,,13,,wall_r||3,,14,,wall_r||3,,18,,wall_l||3,,19,,wall_l||4,,1,,scrap||4,,3,,scrapavenger_r||4,,4,,scrapavenger_r||4,,5,,scrapavenger_r||4,,7,,scrapavenger_r||4,,8,,scrapavenger_r||4,,10,,scrapavenger_r||4,,11,,scrapavenger_r||4,,13,,scrapavenger_r||4,,18,,wall_l||4,,19,,wall_l||5,,1,,wall_l||5,,17,,wall_l||5,,18,,wall_l||6,,1,,scrap||6,,4,,scrapavenger_r||6,,5,,scrapavenger_r||6,,7,,scrapavenger_r||6,,8,,scrapavenger_r||6,,10,,scrapavenger_r||6,,11,,scrapavenger_r||6,,13,,scrapavenger_r||6,,16,,wall_l||6,,17,,wall_l||7,,17,,wall_l||7,,18,,wall_l||7,,19,,wall_l||8,,6,,scrapavenger_r||8,,7,,scrapavenger_r||8,,9,,scrapavenger_r||8,,10,,scrapavenger_r||8,,12,,scrapavenger_r||8,,14,,scrapavenger_r||8,,15,,scrapavenger_r||8,,20,,wall_l||9,,20,,wall_l||10,,8,,scrapavenger_r||10,,9,,scrapavenger_r||10,,11,,scrapavenger_r||10,,12,,scrapavenger_r||10,,15,,scrapavenger_r||10,,20,,wall_l||11,,20,,wall_l||12,,13,,scrapavenger_r||12,,14,,scrapavenger_r||12,,20,,wall_l||13,,1,,scrap||13,,9,,scrapavenger_r||13,,20,,wall_l||14,,1,,scrap||14,,5,,scrapavenger_r||14,,6,,scrapavenger_r||14,,9,,scrapavenger_r||14,,18,,wall_l||14,,19,,wall_l||14,,20,,wall_l||15,,1,,wall_l||15,,18,,wall_l||16,,1,,wall_l||16,,7,,scrapavenger_r||16,,8,,scrapavenger_r||16,,18,,wall_l||16,,19,,wall_l||16,,20,,wall_l||17,,1,,wall_l||17,,13,,wall_l||17,,14,,wall_l||17,,15,,wall_l||17,,20,,wall_l||18,,1,,scrap||18,,2,,scrap||18,,3,,scrap||18,,13,,wall_l||18,,16,,wall_l||18,,20,,wall_l||19,,1,,wall_l||19,,3,,scrap||19,,13,,wall_l||19,,16,,wall_l||19,,20,,wall_l||20,,1,,wall_l||20,,2,,wall_r||20,,3,,wall_r||20,,4,,scrap||20,,5,,scrap||20,,6,,scrap||20,,7,,wall_r||20,,8,,wall_r||20,,9,,wall_r||20,,10,,wall_r||20,,11,,wall_r||20,,12,,wall_r||20,,13,,wall_l||20,,16,,wall_l||20,,17,,wall_l||20,,18,,wall_l||20,,19,,wall_l||20,,20,,wall_l||21,,3,,wall_r||21,,4,,scrap||21,,5,,scrap";
makeObjectsArray(objString);
standardPathway("up", 6);
bgGraphics(areaTerrain, "mountain", "", "", "", "");
break;
case 12 :
encounterRate = "scrapyard_2";
objString = "1,,1,,wall_r||1,,2,,wall_r||1,,4,,wall_r||1,,5,,wall_r||1,,6,,wall_r||1,,7,,wall_r||1,,13,,wall_r||1,,14,,wall_r||1,,18,,wall_r||1,,19,,wall_r||1,,20,,wall_r||2,,9,,wall_r||2,,10,,wall_r||2,,12,,wall_r||2,,13,,wall_r||3,,2,,scrap||3,,3,,scrap||3,,4,,scrap||3,,17,,scrap||3,,18,,scrap||4,,2,,scrap||4,,13,,scrap||4,,14,,scrap||4,,15,,scrap||4,,17,,scrap||4,,18,,scrap||5,,2,,scrap||5,,3,,scrap||5,,7,,scrap||5,,8,,scrap||5,,12,,scrap||5,,14,,scrap||5,,15,,scrap||5,,16,,scrap||7,,2,,crane_r||7,,7,,crane_r||7,,12,,crane_r||7,,17,,crane_r||16,,2,,scrap||16,,3,,scrap||16,,9,,scrap||16,,10,,scrap||16,,11,,scrap||16,,12,,scrap||16,,13,,scrap||16,,17,,scrap||16,,18,,scrap||18,,7,,wall_r||19,,1,,wall_r||19,,2,,wall_r||19,,6,,wall_r||19,,7,,wall_r||19,,8,,wall_r||19,,17,,wall_r||19,,18,,wall_r||19,,19,,wall_r||19,,20,,wall_r||19,,21,,wall_r||20,,4,,wall_r||20,,5,,wall_r||20,,6,,wall_r||20,,13,,wall_r||20,,14,,wall_r||20,,15,,wall_r||20,,16,,wall_r||20,,17,,wall_r||21,,10,,wall_r||21,,11,,wall_r||21,,12,,wall_r||21,,13,,wall_r";
makeObjectsArray(objString);
standardPathway("up", 8);
standardPathway("down", 14);
bgGraphics(areaTerrain, "mountain", "", "", "", "");
break;
case 13 :
encounterRate = "scrapyard_3";
objString = "2,,2,,scrap||2,,3,,scrap||2,,4,,scrap||2,,5,,scrap||2,,6,,scrap||2,,8,,scrap||2,,9,,scrap||2,,10,,scrap||2,,11,,scrap||2,,12,,scrap||2,,13,,scrap||2,,14,,scrap||2,,16,,scrap||2,,17,,scrap||2,,18,,scrap||2,,19,,scrap||3,,2,,scrap||3,,3,,scrap||3,,4,,scrap||3,,5,,scrap||3,,6,,scrap||3,,8,,scrap||3,,9,,scrap||3,,10,,scrap||3,,11,,scrap||3,,12,,scrap||3,,13,,scrap||3,,14,,scrap||3,,16,,scrap||3,,17,,scrap||3,,18,,scrap||3,,19,,scrap||4,,2,,scrap||4,,3,,scrap||4,,4,,scrap||4,,5,,scrap||4,,6,,scrap||4,,8,,scrap||4,,9,,scrap||4,,10,,scrap||4,,11,,scrap||4,,12,,scrap||4,,13,,scrap||4,,14,,scrap||4,,16,,scrap||4,,17,,scrap||4,,18,,scrap||4,,19,,scrap||5,,2,,scrap||5,,3,,scrap||5,,4,,scrap||5,,5,,scrap||5,,6,,scrap||5,,8,,scrap||5,,9,,scrap||5,,10,,scrap||5,,11,,scrap||5,,12,,scrap||5,,13,,scrap||5,,14,,scrap||5,,16,,scrap||5,,17,,scrap||5,,18,,scrap||5,,19,,scrap||7,,16,,scrap||7,,17,,scrap||8,,16,,scrap||8,,17,,scrap||16,,1,,wall_r||16,,2,,wall_r||16,,3,,wall_r||16,,4,,wall_r||16,,5,,wall_r||16,,6,,wall_r||16,,7,,wall_r||16,,8,,wall_r||16,,9,,wall_r||16,,10,,wall_r||16,,11,,wall_r||16,,12,,wall_r||16,,13,,wall_r||16,,14,,wall_r||16,,15,,wall_r||16,,16,,wall_r||16,,17,,wall_r||16,,18,,wall_r||16,,19,,wall_r||16,,20,,wall_r||16,,21,,wall_r||19,,1,,wall_r||19,,2,,wall_r||19,,3,,wall_r||19,,4,,wall_r||19,,5,,wall_r||19,,6,,wall_r||19,,7,,wall_r||19,,8,,wall_r||19,,9,,wall_r||19,,10,,wall_r||19,,11,,wall_r||19,,12,,wall_r||19,,13,,wall_r||19,,14,,wall_r||19,,15,,wall_r||19,,16,,wall_r||19,,17,,wall_r||19,,18,,wall_r||19,,19,,wall_r||19,,20,,wall_r||19,,21,,wall_r||20,,2,,Grass||20,,3,,Grass||20,,5,,Grass||20,,6,,Grass||20,,17,,Grass||20,,18,,Grass||21,,9,,Grass||21,,14,,Grass||21,,15,,Grass";
makeObjectsArray(objString);
standardPathway("up", 10);
standardPathway("down", 16);
bgGraphics(areaTerrain, "mountain", "", "", "", "");
break;
case 14 :
encounterRate = "scrapyard_2";
objString = "1,,6,,wall_r||1,,7,,wall_r||2,,5,,crane_r||2,,9,,scrap||2,,10,,scrap||2,,11,,scrap||2,,12,,scrap||2,,17,,Grass||2,,18,,Grass||3,,4,,scrapluna_l||3,,7,,scrap||3,,8,,scrap||3,,9,,scrap||3,,10,,scrapluna_r||3,,12,,scrap||3,,13,,scrap||3,,14,,Boulder||3,,15,,Boulder||4,,6,,scrap||4,,7,,scrap||4,,13,,scrap||4,,14,,scrap||4,,17,,scrapluna_r||5,,4,,scrap||5,,5,,scrap||5,,6,,scrap||5,,12,,scrap||5,,14,,scrap||5,,15,,scrap||6,,1,,crane_l||6,,3,,scrap||6,,4,,scrap||6,,15,,scrap||6,,16,,scrap||6,,18,,Grass||7,,1,,scrap||7,,2,,scrap||7,,3,,scrap||7,,16,,scrap||7,,17,,scrap||8,,17,,scrap||8,,18,,scrap||8,,19,,scrap||8,,20,,scrap||11,,7,,scrap||11,,8,,scrap||12,,3,,scrap||12,,4,,scrap||12,,5,,scrap||12,,6,,scrap||12,,7,,scrap||12,,8,,scrap||12,,13,,scrap||12,,14,,scrap||12,,15,,scrap||13,,2,,scrap||13,,3,,scrap||13,,5,,scrap||13,,8,,scrap||13,,13,,scrap||13,,15,,scrap||13,,16,,scrap||14,,1,,crane_l||14,,2,,scrap||14,,6,,Boulder||14,,8,,scrap||14,,13,,scrap||14,,16,,scrap||14,,17,,scrap||14,,19,,scrap||14,,20,,scrap||15,,1,,scrap||15,,2,,scrap||15,,8,,scrap||15,,13,,scrap||15,,15,,wall_r||15,,17,,scrap||15,,18,,scrap||15,,19,,scrap||16,,5,,scrapluna_l||16,,7,,scrap||16,,8,,scrap||16,,13,,scrap||17,,7,,scrap||17,,13,,scrap||17,,14,,scrap||18,,7,,scrap||18,,14,,scrap||19,,4,,wall_r||19,,5,,wall_r||19,,7,,scrap||19,,8,,scrap||19,,14,,scrap||20,,8,,scrap||20,,13,,scrap||20,,14,,scrap||21,,12,,scrap||21,,13,,scrap";
makeObjectsArray(objString);
standardPathway("up", 12);
standardPathway("right", 15);
standardPathway("down", 17);
bgGraphics(areaTerrain, "mountain", "", "", "", "");
break;
case 15 :
encounterRate = "scrapyard_2";
objString = "1,,1,,scrap||1,,2,,scrap||1,,3,,scrap||1,,6,,scrap||1,,15,,scrap||2,,1,,scrap||2,,2,,scrap||2,,6,,scrap||2,,7,,crane_l||2,,15,,scrap||2,,16,,scrap||2,,17,,scrap||2,,18,,scrap||3,,4,,scrap||3,,5,,scrap||3,,6,,scrap||3,,15,,scrap||3,,16,,scrap||3,,17,,scrap||3,,18,,scrap||4,,1,,scrap||4,,4,,scrap||4,,5,,scrap||4,,6,,scrap||4,,15,,scrap||4,,19,,scrap||4,,20,,scrap||5,,1,,scrap||5,,2,,scrap||5,,3,,scrap||5,,6,,scrap||5,,15,,scrap||5,,18,,scrap||5,,19,,scrap||6,,6,,scrap||6,,15,,scrap||6,,16,,scrap||7,,1,,scrap||7,,2,,scrap||7,,3,,scrap||7,,6,,scrap||7,,7,,crane_r||7,,15,,scrap||7,,16,,scrap||8,,6,,scrap||8,,15,,scrap||8,,16,,scrap||8,,18,,scrap||8,,19,,scrap||8,,20,,scrap||9,,6,,scrap||9,,15,,scrap||9,,16,,scrap||9,,17,,scrap||10,,6,,scrap||10,,15,,scrap||10,,16,,scrap||11,,2,,scrap||11,,3,,scrap||11,,4,,scrap||11,,6,,scrap||11,,15,,scrap||11,,17,,scrap||11,,18,,scrap||11,,19,,scrap||12,,1,,scrap||12,,6,,scrap||12,,15,,scrap||13,,1,,scrap||13,,2,,scrap||13,,3,,scrap||13,,4,,scrap||13,,5,,scrap||13,,6,,scrap||13,,7,,crane_l||13,,15,,scrap||13,,19,,scrap||13,,20,,scrap||14,,2,,scrap||14,,3,,scrap||14,,6,,scrap||14,,15,,scrap||14,,18,,scrap||14,,19,,scrap||15,,1,,scrap||15,,2,,scrap||15,,3,,scrap||15,,4,,scrap||15,,6,,scrap||15,,15,,scrap||16,,2,,scrap||16,,3,,scrap||16,,4,,scrap||16,,6,,scrap||16,,15,,scrap||17,,6,,scrap||17,,15,,scrap||17,,16,,scrap||17,,17,,scrap||17,,18,,scrap||17,,19,,scrap||17,,20,,scrap||18,,2,,scrap||18,,3,,scrap||18,,4,,scrap||18,,6,,scrap||18,,15,,scrap||19,,1,,scrap||19,,2,,scrap||19,,3,,scrap||19,,4,,scrap||19,,5,,scrap||19,,6,,scrap||19,,15,,scrap||19,,18,,scrap||19,,19,,scrap||20,,5,,scrap||20,,6,,scrap||20,,15,,scrap||20,,17,,scrap||20,,18,,scrap||20,,19,,scrap||21,,6,,scrap||21,,15,,scrap||21,,16,,scrap||21,,17,,scrap";
makeObjectsArray(objString);
standardPathway("left", 14);
standardPathway("right", 16);
bgGraphics(areaTerrain, "", "", "mountain", "", "");
break;
case 16 :
encounterRate = "scrapyard_3";
objString = "1,,6,,scrap||1,,18,,scrap||1,,19,,scrap||2,,6,,scrap||2,,15,,scrap||2,,16,,scrap||2,,17,,scrap||3,,3,,scrap||3,,4,,scrap||3,,5,,scrap||3,,6,,scrap||3,,17,,scrap||3,,18,,scrap||4,,3,,scrap||4,,4,,scrap||5,,1,,wall_r||5,,2,,wall_r||5,,3,,wall_r||5,,15,,scrap||5,,16,,scrap||6,,3,,wall_l||6,,16,,scrap||6,,17,,scrap||6,,18,,scrap||6,,19,,Grass||6,,20,,Grass||7,,3,,wall_l||8,,3,,wall_l||8,,4,,wall_l||9,,17,,scrap||9,,18,,scrap||10,,18,,scrap||10,,19,,scrap||11,,17,,scrap||11,,18,,scrap||12,,17,,scrap||12,,18,,scrap||12,,19,,Grass||13,,16,,scrap||13,,17,,scrap||14,,3,,wall_l||14,,4,,wall_l||14,,15,,scrap||14,,18,,Boulder||15,,3,,wall_l||15,,14,,scrap||15,,15,,scrap||15,,16,,scrap||15,,17,,scrap||15,,18,,scrap||16,,1,,wall_r||16,,2,,wall_r||16,,3,,wall_r||16,,15,,scrap||16,,16,,scrap||16,,17,,scrap||16,,18,,scrap||17,,6,,scrap||17,,7,,scrap||17,,15,,scrap||17,,16,,scrap||17,,17,,scrap||18,,1,,scrap||18,,2,,scrap||18,,12,,scrap||18,,13,,scrap||18,,16,,scrap||18,,17,,Grass||18,,18,,Grass||19,,4,,scrap||19,,7,,scrap||19,,8,,scrap||19,,17,,Grass||20,,1,,Grass||20,,2,,Grass||20,,4,,scrap||20,,6,,Boulder||20,,8,,scrap||20,,9,,scrap||20,,16,,Grass||21,,15,,Grass||21,,16,,Grass";
makeObjectsArray(objString);
standardPathway("up", 13);
standardPathway("left", 15);
bgGraphics(areaTerrain, "", "", "", "", "");
break;
case 17 :
encounterRate = "scrapyard_1";
objString = "1,,12,,Boulder||1,,15,,Grass||1,,16,,Grass||1,,18,,Grass||2,,3,,scrapavenger_l||2,,5,,scrapavenger_l||2,,6,,scrap||3,,3,,scrap||3,,4,,scrap||3,,5,,scrap||3,,6,,scrap||3,,7,,scrap||3,,9,,crane_r||3,,12,,scrap||3,,13,,scrap||3,,14,,scrap||3,,15,,scrap||3,,16,,scrap||3,,17,,scrap||4,,3,,scrap||4,,8,,scrap||4,,12,,scrap||4,,13,,scrap||4,,14,,scrap||4,,15,,scrap||4,,16,,scrap||4,,17,,scrap||5,,2,,scrap||5,,3,,scrap||5,,9,,scrap||5,,10,,scrap||5,,13,,scrap||5,,14,,scrap||5,,19,,crane_r||6,,1,,scrap||6,,2,,scrap||6,,10,,scrap||7,,1,,scrap||7,,10,,scrap||7,,13,,scrapavenger_r||7,,15,,scrapavenger_r||7,,16,,scrap||7,,17,,scrap||7,,18,,scrap||7,,19,,scrap||8,,10,,scrap||8,,11,,Boulder||8,,12,,scrap||8,,13,,scrap||8,,14,,scrap||8,,15,,scrap||8,,16,,scrap||8,,20,,scrap||9,,10,,scrap||9,,12,,scrap||10,,9,,scrap||10,,10,,scrap||10,,11,,scrap||10,,12,,scrap||11,,4,,scrap||11,,9,,scrap||11,,10,,scrap||11,,11,,scrap||12,,4,,scrap||12,,5,,scrap||12,,10,,scrap||12,,11,,scrap||13,,2,,crane_l||13,,4,,scrap||13,,5,,scrap||13,,10,,scrap||14,,5,,scrap||15,,1,,scrap||15,,2,,scrap||15,,3,,scrap||15,,4,,scrap||15,,5,,scrap||15,,17,,scrap||15,,18,,scrap||15,,19,,scrap||15,,20,,scrap||16,,4,,scrap||16,,5,,scrap||16,,12,,scrap||16,,17,,scrap||17,,2,,Boulder||17,,4,,scrap||17,,5,,scrap||17,,16,,scrap||17,,17,,scrap||18,,5,,scrap||18,,15,,scrap||18,,16,,scrap||18,,19,,Boulder||19,,1,,scrap||19,,2,,scrap||19,,5,,scrap||19,,6,,scrap||19,,7,,scrap||19,,8,,scrap||19,,9,,scrap||19,,14,,scrap||19,,15,,scrap||20,,4,,Grass||20,,7,,scrap||20,,8,,scrap||20,,9,,scrap||20,,10,,scrap||20,,11,,scrap||20,,12,,scrap||20,,13,,scrap||20,,14,,scrap";
makeObjectsArray(objString);
standardPathway("up", 14);
standardPathway("down", 18);
bgGraphics(areaTerrain, "mountain", "", "", "", "");
break;
case 18 :
encounterRate = "scrapyard_1";
objString = "7,,5,,repairstation||1,,1,,wall_r||1,,3,,wall_r||1,,4,,wall_r||1,,6,,wall_r||1,,7,,wall_r||1,,10,,Grass||1,,11,,wall_r||1,,12,,wall_r||1,,13,,wall_r||1,,14,,wall_l||2,,14,,wall_l||3,,14,,wall_l||3,,19,,Fern||4,,2,,scrapluna_l||4,,7,,scrap||4,,8,,scrap||4,,9,,scrap||4,,10,,scrap||4,,14,,wall_l||4,,17,,Grass||4,,20,,Boulder||5,,2,,scrap||5,,3,,scrap||5,,9,,scrap||5,,14,,wall_l||5,,17,,Grass||6,,14,,wall_l||7,,5,,repairstation||7,,10,,scrap||7,,14,,wall_l||7,,15,,wall_l||7,,18,,Boulder||13,,14,,wall_l||13,,15,,wall_l||14,,2,,crane_l||14,,14,,wall_l||14,,17,,sign_l,,Gears can be obtained from gear flies.||15,,9,,scrap||15,,10,,scrap||15,,14,,wall_l||16,,6,,scrap||16,,7,,scrap||16,,8,,scrap||16,,14,,wall_l||17,,6,,scrap||17,,14,,wall_l||17,,17,,Grass||18,,14,,wall_l||18,,16,,Grass||19,,14,,wall_l||19,,20,,Boulder||20,,3,,wall_r||20,,4,,wall_r||20,,7,,wall_r||20,,8,,wall_r||20,,12,,wall_r||20,,13,,wall_r||20,,14,,wall_l";
makeObjectsArray(objString);
makePathway(7, 6, "repairstation");
standardPathway("down", -1, 2);
standardPathway("up", 17);
bgGraphics(areaTerrain, "jungle", "", "", "", "");
}
}
function map4(area) {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Azure Cove";
areaTerrain = "beach";
areaMusic = "beach";
mapLocation = 4;
areaLocation = area;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
switch (area) {
case 1 :
encounterRate = "azure_1";
makeObject(13, 18, "Tree");
makeObject(3, 4, "Boulder");
makeObject(7, 7, "Boulder");
makeObject(9, 6, "Tree");
standardPathway("left", 2);
standardPathway("right", -1, 2);
bgGraphics(areaTerrain, "", "", "sea", "", "lensflare");
break;
case 2 :
encounterRate = "azure_1";
makeObject(1, 4, "Boulder");
makeObject(4, 7, "Boulder");
makeObject(5, 8, "Tree");
standardPathway("right", 1);
bgGraphics(areaTerrain, "jungle", "", "sea", "", "lensflare");
}
}
function map9(area) {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Costal Cavern";
areaTerrain = "cave";
encounterRate = 1;
mapLocation = 9;
areaLocation = area;
changeSurroundBlank(1, 1);
switch (area) {
case 1 :
areaName = "Costal Cavern Entrance";
areaTerrain = "beach";
areaMusic = "beach";
makeObject(1, 20, "Boulder");
makeObject(20, 3, "Boulder");
makeObject(20, 20, "Boulder");
standardPathway("left", 2);
standardPathway("right", -1, 8);
bgMusic(areaMusic);
bgGraphics(areaTerrain, "", "", "", "", "lensflare");
break;
case 2 :
areaTerrain = "cave";
areaMusic = "cave";
makeObject(1, 20, "Boulder");
makeObject(2, 19, "Boulder");
makeObject(20, 3, "Boulder");
makeObject(20, 15, "Boulder");
makeObject(20, 20, "Boulder");
makeObject(3, 7, "Bone");
standardPathway("right", 1);
bgMusic(areaMusic);
bgGraphics(areaTerrain, "", "", "", "", "cave");
}
}
function map11(area) {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Lazlo Mine";
areaTerrain = "cave";
areaMusic = "cave";
encounterRate = "NONSAVE";
mapLocation = 11;
areaLocation = area;
changeSurroundBlank(1, 1);
bgGraphics(areaTerrain, "", "", "", "", areaTerrain);
bgColour("Dark");
switch (area) {
case 1 :
areaName = "Entrance to Lazlo Mine";
areaTerrain = "jungle";
areaMusic = "jungle";
objString = "1,,9,,rock||1,,10,,rock||1,,11,,rock||1,,12,,rock||1,,13,,rock||2,,2,,Boulder||2,,3,,Fern||2,,20,,Boulder||3,,2,,Boulder||3,,3,,Boulder||3,,5,,Grass||3,,19,,Grass||4,,8,,sign_l,,Mine closed.||6,,19,,Boulder||7,,18,,Boulder||7,,19,,Boulder||12,,3,,Boulder||12,,19,,Fern||13,,6,,repairstation||13,,19,,Grass||14,,19,,Grass||15,,4,,Fern||16,,20,,Boulder||17,,3,,Boulder||17,,18,,Boulder||18,,3,,Grass||18,,4,,Grass||18,,18,,Boulder";
makeObjectsArray(objString);
tileString = "1,,10,,track||1,,11,,track||2,,10,,track||2,,11,,track||3,,10,,track||3,,11,,track||3,,12,,track||4,,11,,track||4,,12,,track||5,,11,,track||5,,12,,track||6,,12,,track||6,,13,,track||7,,12,,track||7,,13,,track||8,,11,,track||8,,12,,track||8,,13,,track||9,,10,,track||9,,11,,track||9,,12,,track||10,,9,,track||10,,10,,track||10,,11,,track||11,,9,,track||11,,10,,track||12,,9,,track||12,,10,,track||13,,10,,track||13,,11,,track||14,,10,,track||14,,11,,track||15,,10,,track||15,,11,,track||16,,9,,track||16,,10,,track||16,,11,,track||17,,9,,track||17,,10,,track||18,,10,,track||18,,11,,track||19,,10,,track||19,,11,,track||20,,10,,track||20,,11,,track";
makeTilesArray(tileString);
standardPathway("left", 100);
standardPathway("right", -1, 2);
makePathway(13, 7, "repairstation");
bgGraphics(areaTerrain, "mine", "", "jungle", "", areaTerrain);
bgColour();
break;
case 100 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "1,,1,,wall_l||1,,7,,lamp,,100>20>20||1,,14,,lamp,,100>20>20||1,,20,,wall_l||2,,1,,wall_l||2,,16,,Boulder||2,,20,,wall_l||3,,1,,wall_l||3,,8,,sign_l,,You can still turn back now.||3,,20,,wall_l||4,,1,,wall_l||4,,20,,wall_l||5,,1,,wall_l||5,,20,,wall_l||6,,1,,wall_l||6,,20,,wall_l||7,,1,,wall_l||7,,20,,wall_l||8,,1,,wall_l||8,,20,,wall_l||9,,1,,wall_l||9,,18,,spike||9,,20,,wall_l||10,,1,,wall_l||10,,20,,wall_l||11,,1,,wall_l||11,,20,,wall_l||12,,1,,wall_l||12,,20,,wall_l||13,,1,,wall_l||13,,20,,wall_l||14,,1,,wall_l||14,,5,,Boulder||14,,20,,wall_l||15,,1,,wall_l||15,,20,,wall_l||16,,1,,wall_l||16,,20,,wall_l||17,,1,,wall_l||17,,20,,wall_l||18,,1,,wall_l||18,,17,,Boulder||18,,20,,wall_l||19,,1,,wall_l||19,,3,,spike||19,,20,,wall_l||20,,1,,wall_l||20,,20,,wall_l||21,,1,,wall_r||21,,2,,wall_r||21,,3,,wall_r||21,,4,,wall_r||21,,5,,wall_r||21,,6,,wall_r||21,,7,,wall_r||21,,14,,wall_r||21,,15,,wall_r||21,,16,,wall_r||21,,17,,wall_r||21,,18,,wall_r||21,,19,,wall_r||21,,20,,wall_r";
makeObjectsArray(objString);
standardPathway("left", 101);
standardPathway("right", 1);
break;
case 101 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "1,,1,,wall_r||1,,2,,wall_r||1,,3,,wall_r||1,,4,,wall_r||1,,5,,wall_r||1,,6,,wall_r||1,,7,,wall_r||1,,8,,wall_r||1,,9,,wall_r||1,,10,,wall_r||1,,11,,wall_r||1,,12,,wall_r||1,,13,,wall_r||1,,14,,wall_r||1,,15,,wall_r||1,,16,,wall_r||1,,17,,wall_r||1,,18,,wall_r||1,,19,,wall_r||1,,20,,wall_r||2,,1,,wall_l||2,,20,,wall_l||3,,1,,wall_l||3,,20,,wall_l||4,,1,,wall_l||4,,16,,cart||4,,20,,wall_l||5,,1,,wall_l||5,,3,,cart||5,,20,,wall_l||6,,1,,wall_l||6,,20,,wall_l||7,,1,,wall_l||7,,16,,spike||7,,20,,wall_l||8,,4,,lamp,,20>100>20||8,,18,,lamp,,100>20>20||14,,1,,wall_l||14,,20,,wall_l||15,,1,,wall_l||15,,20,,wall_l||16,,1,,wall_l||16,,20,,wall_l||17,,1,,wall_l||17,,20,,wall_l||18,,1,,wall_l||18,,5,,spike||18,,14,,cart||18,,20,,wall_l||19,,1,,wall_l||19,,20,,wall_l||20,,1,,wall_l||20,,20,,wall_l";
makeObjectsArray(objString);
standardPathway("up", 107);
standardPathway("down", 102);
standardPathway("right", 100);
break;
case 102 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "4,,18,,rock||5,,6,,cart||6,,1,,wall_l||7,,1,,wall_r||7,,2,,wall_r||7,,3,,wall_r||7,,5,,lamp,,100>20>20||14,,1,,wall_r||14,,2,,wall_r||14,,5,,wall_r||15,,1,,wall_l||15,,2,,cart||16,,14,,rock";
makeObjectsArray(objString);
standardPathway("up", 101);
standardPathway("left", 103);
break;
case 103 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "3,,5,,spike||3,,6,,rock||3,,8,,cart||3,,18,,spike||4,,16,,rock||5,,13,,spike||5,,15,,rock||8,,19,,lamp,,100>20>20||14,,3,,spike||15,,15,,spike||15,,16,,spike||16,,15,,spike||17,,3,,rock";
makeObjectsArray(objString);
standardPathway("right", 102);
standardPathway("down", 104);
break;
case 104 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "1,,6,,spike||2,,3,,spike||2,,6,,spike||3,,4,,rock||3,,5,,rock||4,,1,,spike||4,,18,,spike||5,,4,,spike||7,,17,,rock||9,,16,,spike||10,,19,,spike||12,,14,,rock||12,,15,,rock||13,,14,,rock||15,,18,,spike||16,,7,,rock||16,,8,,rock||16,,12,,spike||16,,17,,spike||16,,18,,spike||17,,5,,spike||17,,11,,spike||17,,12,,spike||18,,4,,spike||18,,5,,spike||18,,6,,spike||18,,15,,spike";
makeObjectsArray(objString);
standardPathway("up", 103);
standardPathway("left", 105);
break;
case 105 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "2,,11,,rock||2,,15,,spike||2,,18,,spike||3,,17,,rock||3,,18,,rock||4,,8,,spike||4,,9,,spike||4,,10,,rock||4,,11,,spike||4,,12,,spike||4,,14,,spike||4,,16,,spike||4,,18,,rock||5,,5,,spike||5,,7,,spike||6,,2,,spike||6,,4,,spike||6,,5,,spike||6,,9,,spike||6,,10,,spike||7,,3,,spike||7,,6,,rock||7,,11,,rock||7,,15,,spike||8,,2,,spike||8,,3,,spike||8,,18,,lamp,,100>20>20||9,,5,,spike||9,,6,,spike||10,,5,,spike||10,,9,,spike||11,,8,,spike||12,,2,,spike||12,,3,,spike||13,,2,,spike||13,,3,,spike||14,,1,,spike||14,,5,,rock||15,,1,,spike||15,,2,,spike||16,,18,,spike||16,,19,,spike||17,,3,,rock||17,,18,,spike||18,,2,,spike||19,,15,,spike";
makeObjectsArray(objString);
standardPathway("right", 104);
standardPathway("down", 106);
break;
case 106 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "3,,9,,spike||3,,10,,spike||3,,11,,spike||3,,12,,spike||3,,13,,rock||4,,2,,spike||4,,3,,spike||4,,5,,rock||4,,6,,rock||4,,7,,spike||4,,8,,spike||4,,12,,spike||4,,13,,rock||4,,14,,spike||5,,9,,cart||5,,11,,cart||5,,15,,spike||5,,16,,spike||6,,1,,spike||6,,2,,rock||6,,6,,cart||6,,14,,cart||6,,16,,spike||6,,17,,spike||8,,3,,cart||8,,17,,rock||8,,18,,rock||10,,16,,cart||10,,19,,rock||11,,19,,spike||12,,19,,spike||13,,19,,spike||14,,3,,cart||14,,18,,spike||14,,19,,spike||15,,7,,cart||15,,12,,cart||15,,17,,spike||15,,18,,spike||16,,2,,spike||16,,3,,spike||16,,4,,spike||16,,16,,rock||16,,17,,rock||17,,4,,spike||18,,5,,rock||18,,7,,spike||18,,8,,spike||18,,11,,rock||18,,14,,spike||18,,15,,spike||19,,8,,spike||19,,14,,spike";
makeObjectsArray(objString);
standardPathway("up", 105);
standardPathway("center", 205, undefined, "lift_down");
break;
case 107 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "2,,2,,spike||2,,3,,rock||2,,17,,spike||3,,15,,rock||5,,6,,spike||7,,1,,wall_r||7,,3,,wall_r||7,,4,,wall_r||7,,5,,wall_r||7,,6,,wall_r||7,,7,,wall_r||7,,13,,wall_r||7,,14,,wall_r||7,,15,,wall_r||7,,16,,wall_r||7,,17,,wall_r||7,,18,,wall_r||7,,19,,wall_r||7,,20,,wall_r||7,,21,,wall_r||9,,1,,spike||11,,1,,spike||11,,2,,spike||11,,5,,spike||12,,3,,spike||13,,1,,spike||14,,3,,spike||15,,1,,wall_r||15,,2,,wall_r||15,,3,,wall_r||15,,4,,wall_r||15,,5,,wall_r||15,,6,,wall_r||15,,7,,wall_r||15,,8,,wall_r||15,,9,,wall_r||15,,10,,wall_r||15,,11,,wall_r||15,,12,,wall_r||15,,13,,wall_r||15,,14,,wall_r||15,,15,,wall_r||15,,16,,wall_r||15,,17,,wall_r||15,,18,,wall_r||15,,19,,wall_r||15,,20,,wall_r||15,,21,,wall_r||18,,11,,rock||18,,15,,spike||19,,2,,spike||19,,4,,rock||19,,7,,spike||19,,10,,spike||19,,15,,spike||19,,20,,spike||20,,7,,spike||21,,4,,spike";
makeObjectsArray(objString);
standardPathway("down", 101);
standardPathway("left", 108);
break;
case 108 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "2,,17,,spike||2,,18,,spike||3,,14,,rock||4,,4,,spike||4,,5,,spike||4,,6,,spike||4,,8,,rock||4,,10,,spike||4,,13,,rock||4,,14,,rock||5,,8,,rock||6,,1,,spike||6,,12,,rock||7,,9,,rock||7,,12,,rock||7,,17,,spike||7,,18,,spike||8,,1,,lamp,,20>100>20||8,,18,,spike||9,,15,,spike||10,,15,,spike||10,,16,,spike||11,,16,,spike||12,,19,,rock||16,,18,,spike||17,,2,,spike||17,,16,,rock||18,,3,,spike||19,,5,,spike||19,,16,,spike||20,,5,,spike||20,,15,,spike||20,,16,,spike";
makeObjectsArray(objString);
standardPathway("up", 109);
standardPathway("right", 107);
break;
case 109 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "1,,7,,spike||2,,3,,spike||2,,4,,spike||3,,3,,spike||4,,1,,spike||4,,7,,cart||5,,1,,spike||5,,5,,spike||5,,16,,spike||5,,17,,spike||6,,1,,spike||6,,16,,spike||8,,15,,spike||11,,8,,lamp,,20>100>20||13,,2,,spike||14,,2,,spike||14,,3,,spike||16,,6,,spike||16,,7,,spike||16,,10,,spike||16,,20,,spike||17,,7,,spike||17,,8,,spike||17,,9,,spike||17,,17,,spike||17,,18,,spike||18,,5,,spike||18,,14,,spike||18,,17,,spike||19,,5,,spike||19,,6,,spike||19,,14,,spike";
makeObjectsArray(objString);
standardPathway("down", 108);
standardPathway("left", 110);
break;
case 110 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "2,,8,,spike||3,,5,,spike||3,,8,,spike||3,,9,,spike||4,,3,,spike||4,,5,,spike||4,,6,,rock||4,,7,,rock||5,,1,,spike||5,,12,,spike||5,,13,,spike||6,,2,,rock||6,,3,,rock||6,,14,,rock||6,,15,,rock||6,,17,,spike||6,,18,,spike||7,,10,,spike||7,,15,,rock||7,,18,,spike||8,,10,,spike||8,,11,,spike||8,,18,,spike||9,,19,,spike||10,,15,,rock||11,,18,,spike||12,,18,,spike||13,,18,,spike||14,,2,,spike||14,,3,,spike||14,,17,,rock||14,,18,,rock||15,,5,,rock||15,,6,,rock||15,,18,,rock||16,,2,,spike||16,,6,,rock||16,,7,,rock||17,,2,,spike||17,,7,,rock||18,,7,,rock||18,,18,,spike||19,,3,,spike||19,,7,,rock||19,,18,,spike||20,,6,,spike";
makeObjectsArray(objString);
standardPathway("up", 111);
standardPathway("right", 109);
break;
case 111 :
encounterRate = "lazlo_1";
areaName = "Lazlo Mine Level 1";
objString = "2,,2,,rock||2,,3,,rock||2,,17,,rock||3,,3,,rock||3,,17,,rock||4,,4,,rock||4,,5,,rock||4,,15,,rock||5,,5,,rock||5,,14,,rock||5,,15,,rock||6,,10,,spike||6,,14,,rock||7,,5,,spike||7,,7,,rock||7,,13,,rock||7,,14,,rock||7,,16,,spike||7,,18,,spike||7,,19,,spike||10,,6,,lamp,,20>100>20||12,,4,,spike||13,,6,,rock||14,,6,,rock||14,,15,,spike||14,,16,,spike||14,,18,,spike||14,,19,,spike||15,,5,,rock||15,,10,,spike||15,,13,,rock||15,,14,,rock||16,,14,,rock||16,,15,,rock||17,,3,,rock||18,,3,,rock||18,,17,,rock||19,,1,,rock||19,,17,,rock||19,,18,,rock";
makeObjectsArray(objString);
standardPathway("down", 110);
standardPathway("center", 211, undefined, "lift_down");
break;
case 200 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "1,,17,,spike||2,,2,,spike||3,,6,,crate||3,,10,,crate||3,,13,,cart||3,,15,,crate||3,,16,,crate||3,,17,,crate||3,,20,,crate||4,,5,,crate||4,,6,,crate||4,,9,,crate||4,,10,,crate||5,,12,,crate||6,,3,,crate||6,,4,,crate||6,,8,,cart||7,,3,,crate||7,,6,,crate||9,,9,,lamp,,20>100>20||11,,3,,crate||12,,3,,crate||13,,3,,crate||15,,3,,crate||15,,5,,crate||15,,18,,crate||15,,19,,crate||16,,1,,spike||16,,3,,crate||16,,5,,crate||16,,18,,crate||17,,1,,spike||17,,3,,crate||17,,5,,crate||17,,7,,cart||18,,16,,crate||19,,14,,crate||19,,15,,crate||20,,5,,crate||20,,15,,crate";
makeObjectsArray(objString);
standardPathway("down", 203);
standardPathway("right", 201);
break;
case 201 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "1,,7,,spike||2,,6,,spike||2,,7,,spike||2,,16,,spike||3,,2,,spike||3,,6,,spike||3,,18,,spike||4,,4,,spike||4,,5,,spike||4,,18,,spike||4,,19,,spike||5,,2,,spike||5,,15,,crate||6,,4,,crate||6,,5,,crate||6,,6,,crate||6,,7,,crate||6,,8,,crate||6,,12,,crate||6,,13,,crate||6,,14,,crate||6,,15,,crate||6,,16,,crate||6,,17,,crate||6,,18,,spike||7,,4,,crate||7,,8,,crate||7,,12,,crate||7,,17,,crate||7,,18,,spike||8,,4,,crate||8,,5,,cart||8,,7,,crate||8,,8,,crate||8,,12,,crate||8,,13,,crate||8,,14,,crate||8,,15,,crate||8,,17,,crate||9,,2,,spike||9,,4,,crate||9,,7,,crate||9,,15,,crate||9,,17,,crate||10,,4,,crate||10,,5,,crate||10,,7,,crate||10,,8,,lamp,,20>100>20||10,,13,,lamp,,20>100>20||10,,14,,crate||10,,15,,crate||10,,17,,crate||11,,4,,crate||11,,5,,crate||11,,7,,crate||11,,15,,crate||11,,17,,crate||12,,4,,crate||12,,7,,crate||12,,15,,crate||12,,17,,crate||13,,4,,crate||13,,7,,crate||13,,8,,crate||13,,9,,crate||13,,13,,crate||13,,14,,crate||13,,15,,crate||13,,17,,crate||14,,4,,crate||14,,9,,crate||14,,13,,crate||14,,17,,crate||15,,4,,crate||15,,5,,crate||15,,6,,crate||15,,7,,crate||15,,8,,crate||15,,9,,crate||15,,13,,crate||15,,14,,crate||15,,15,,crate||15,,16,,crate||15,,17,,crate||16,,3,,spike||17,,3,,spike||17,,6,,spike||17,,17,,spike||17,,18,,spike||18,,3,,spike||18,,6,,spike||18,,17,,spike||20,,15,,spike";
makeObjectsArray(objString);
standardPathway("left", 200);
standardPathway("right", 202);
break;
case 202 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "2,,8,,lamp,,20>100>20||2,,17,,spike||3,,3,,spike||3,,14,,spike||3,,15,,spike||4,,3,,spike||4,,8,,fungus||4,,13,,fungus||4,,15,,spike||5,,2,,spike||5,,3,,spike||5,,7,,fungus||5,,14,,fungus||5,,19,,spike||6,,6,,fungus||6,,13,,crate||6,,15,,fungus||6,,19,,spike||7,,5,,fungus||7,,16,,fungus||8,,4,,fungus||8,,6,,crate||8,,17,,fungus||9,,4,,fungus||9,,6,,crate||10,,4,,fungus||11,,4,,fungus||11,,6,,crate||12,,4,,fungus||13,,5,,fungus||13,,12,,crate||13,,17,,fungus||13,,19,,lamp,,100>20>20||14,,6,,fungus||14,,10,,crate||14,,16,,fungus||15,,7,,fungus||15,,10,,crate||15,,15,,fungus||16,,8,,fungus||16,,14,,fungus||16,,18,,spike||17,,4,,spike||17,,9,,fungus||17,,10,,fungus||17,,11,,fungus||17,,12,,fungus||17,,13,,fungus||18,,5,,spike||19,,4,,spike||19,,5,,spike";
makeObjectsArray(objString);
standardPathway("down", 204);
standardPathway("left", 201);
standardPathway("center", 314, undefined, "lift_down");
break;
case 203 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "4,,2,,spike||4,,7,,spike||4,,8,,spike||4,,12,,spike||4,,15,,spike||4,,16,,spike||4,,18,,spike||5,,7,,spike||5,,18,,spike||7,,11,,lamp,,20>100>20||11,,8,,rock||11,,15,,rock||17,,2,,spike||17,,3,,spike||17,,18,,spike||17,,19,,spike||18,,5,,spike||18,,6,,spike||18,,9,,spike||19,,13,,spike||19,,14,,spike";
makeObjectsArray(objString);
standardPathway("down", 207);
standardPathway("up", 200);
break;
case 204 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "2,,4,,fungus||3,,17,,fungus||4,,9,,rock||4,,10,,rock||5,,9,,rock||5,,10,,rock||7,,5,,fungus||8,,1,,spike||8,,2,,spike||8,,16,,spike||8,,17,,spike||8,,19,,spike||8,,20,,spike||8,,21,,spike||9,,2,,spike||9,,3,,spike||9,,4,,spike||9,,5,,spike||9,,15,,spike||9,,16,,spike||10,,6,,spike||10,,14,,spike||10,,15,,spike||11,,7,,spike||11,,8,,spike||11,,14,,spike||12,,8,,spike||12,,14,,spike||13,,9,,spike||13,,13,,spike||13,,14,,spike||13,,21,,spike||14,,1,,spike||14,,9,,spike||14,,10,,spike||14,,11,,spike||14,,12,,spike||14,,13,,spike||14,,20,,spike||14,,21,,spike||15,,2,,spike||15,,3,,spike||15,,4,,spike||15,,19,,spike||15,,20,,spike||16,,4,,spike||16,,5,,spike||16,,19,,spike||17,,5,,spike||17,,6,,spike||17,,17,,spike||17,,18,,spike||17,,19,,spike||18,,6,,spike||18,,7,,spike||18,,16,,spike||18,,17,,spike||19,,7,,spike||19,,15,,spike||19,,16,,spike||20,,8,,spike||20,,9,,spike||20,,10,,spike||20,,11,,spike||20,,12,,spike||20,,13,,spike||20,,14,,spike||20,,15,,spike";
makeObjectsArray(objString);
standardPathway("down", 209);
standardPathway("up", 202);
break;
case 205 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "3,,7,,spike||3,,9,,spike||4,,5,,spike||4,,6,,spike||4,,12,,spike||5,,4,,spike||5,,14,,spike||5,,15,,spike||6,,3,,spike||6,,7,,lamp,,100>20>20||6,,13,,lamp,,100>20>20||6,,16,,spike||6,,17,,spike||7,,3,,spike||7,,17,,spike||8,,3,,spike||9,,3,,spike||9,,18,,spike||9,,19,,spike||11,,3,,spike||12,,19,,spike||13,,1,,spike||13,,2,,spike||13,,19,,spike||14,,1,,spike||14,,3,,spike||15,,3,,spike||15,,4,,spike||15,,18,,spike||16,,4,,spike||16,,5,,spike||16,,17,,spike||17,,15,,spike||18,,6,,spike||19,,7,,spike||19,,13,,spike";
makeObjectsArray(objString);
standardPathway("center", 106, undefined, "lift_up");
standardPathway("right", 206);
break;
case 206 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "2,,2,,spike||2,,3,,spike||2,,4,,spike||2,,5,,spike||2,,13,,spike||2,,14,,spike||3,,1,,spike||3,,2,,spike||3,,16,,spike||4,,1,,spike||4,,16,,spike||4,,17,,spike||5,,1,,spike||5,,7,,cart||5,,17,,spike||5,,18,,spike||6,,1,,spike||6,,14,,crate||6,,18,,spike||6,,19,,spike||7,,1,,spike||7,,14,,crate||7,,19,,spike||8,,1,,spike||9,,18,,spike||9,,19,,spike||10,,1,,spike||10,,2,,spike||10,,3,,spike||10,,4,,spike||10,,16,,spike||10,,17,,spike||10,,18,,spike||11,,1,,spike||11,,19,,spike||12,,19,,spike||12,,20,,spike||13,,1,,spike||13,,19,,spike||14,,1,,spike||14,,2,,spike||14,,7,,lamp,,100>20>20||14,,19,,spike||15,,1,,spike||15,,2,,spike||15,,19,,spike||16,,1,,spike||16,,2,,spike||16,,18,,spike||16,,19,,spike||17,,2,,spike||17,,3,,spike||17,,15,,spike||17,,16,,spike||17,,17,,spike||17,,18,,spike||18,,3,,spike||18,,4,,spike||19,,5,,spike||19,,6,,spike";
makeObjectsArray(objString);
standardPathway("left", 205);
standardPathway("right", 207);
break;
case 207 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "2,,2,,crate||2,,3,,crate||2,,4,,crate||2,,7,,lamp,,100>20>20||2,,14,,lamp,,100>20>20||3,,2,,crate||3,,3,,crate||3,,4,,crate||3,,19,,rock||4,,2,,crate||4,,3,,crate||4,,4,,crate||6,,15,,crate||7,,2,,lamp,,20>100>20||7,,19,,lamp,,20>100>20||13,,6,,repairstation||14,,2,,lamp,,20>100>20||14,,19,,lamp,,20>100>20||16,,3,,rock||18,,3,,crate||18,,4,,crate||18,,18,,crate||18,,19,,crate||19,,3,,crate||19,,7,,lamp,,100>20>20||19,,14,,lamp,,100>20>20||19,,18,,crate||19,,19,,crate";
makeObjectsArray(objString);
makePathway(13, 7, "repairstation");
standardPathway("up", 203);
standardPathway("down", 210);
standardPathway("left", 206);
standardPathway("right", 208);
break;
case 208 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "3,,3,,crate||3,,4,,crate||3,,6,,lamp,,100>20>20||3,,15,,lamp,,100>20>20||3,,18,,crate||3,,19,,crate||4,,3,,crate||4,,18,,crate||4,,19,,crate||5,,3,,crate||5,,18,,crate||5,,19,,crate||6,,18,,crate||6,,19,,crate||7,,6,,lamp,,100>20>20||7,,15,,lamp,,100>20>20||7,,18,,crate||7,,19,,crate||8,,18,,crate||8,,19,,crate||9,,18,,crate||9,,19,,crate||10,,18,,crate||10,,19,,crate||11,,6,,lamp,,100>20>20||11,,15,,lamp,,100>20>20||11,,18,,crate||11,,19,,crate||12,,18,,crate||12,,19,,crate||13,,18,,crate||13,,19,,crate||14,,2,,crate||14,,3,,crate||14,,18,,crate||14,,19,,crate||15,,2,,crate||15,,3,,crate||15,,6,,lamp,,100>20>20||15,,15,,lamp,,100>20>20||15,,18,,crate||15,,19,,crate||16,,2,,crate||16,,3,,crate||16,,18,,crate||16,,19,,crate||17,,2,,crate||17,,3,,crate||17,,18,,crate||17,,19,,crate||18,,18,,crate||18,,19,,crate||19,,6,,lamp,,100>20>20||19,,15,,lamp,,100>20>20||19,,18,,crate||19,,19,,crate";
makeObjectsArray(objString);
standardPathway("left", 207);
standardPathway("right", 209);
break;
case 209 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "1,,5,,crate||1,,6,,crate||1,,17,,crate||1,,18,,crate||2,,5,,crate||2,,14,,lamp,,100>20>20||2,,17,,crate||2,,18,,crate||3,,17,,crate||3,,18,,crate||4,,4,,crate||4,,8,,lamp,,100>20>20||4,,17,,crate||4,,18,,crate||5,,17,,crate||5,,18,,crate||6,,2,,spike||6,,17,,crate||6,,18,,crate||7,,2,,spike||7,,18,,crate||9,,18,,crate||11,,17,,crate||12,,17,,crate||12,,18,,crate||14,,15,,crate||15,,15,,crate||15,,16,,crate||16,,12,,crate||16,,16,,crate||17,,6,,spike||17,,7,,spike||17,,8,,spike||19,,3,,spike";
makeObjectsArray(objString);
standardPathway("up", 204);
standardPathway("left", 208);
break;
case 210 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "2,,5,,spike||2,,6,,spike||2,,7,,spike||3,,2,,spike||3,,5,,spike||3,,7,,spike||3,,14,,spike||3,,18,,spike||3,,19,,spike||4,,2,,spike||4,,7,,spike||4,,8,,spike||4,,10,,spike||4,,12,,spike||4,,14,,spike||4,,15,,spike||4,,16,,spike||4,,18,,spike||4,,19,,spike||5,,2,,spike||5,,3,,spike||5,,8,,spike||5,,10,,spike||5,,12,,spike||5,,14,,spike||5,,15,,spike||5,,16,,spike||5,,18,,spike||6,,2,,spike||6,,3,,spike||6,,4,,spike||6,,9,,spike||6,,10,,spike||6,,11,,spike||6,,12,,spike||6,,13,,spike||6,,17,,spike||6,,18,,spike||7,,2,,spike||7,,3,,spike||7,,11,,spike||7,,12,,spike||7,,13,,spike||14,,9,,spike||15,,9,,spike||15,,11,,spike||16,,8,,spike||16,,10,,spike||16,,11,,spike||17,,6,,spike||17,,7,,spike||17,,8,,spike||17,,11,,spike||17,,18,,spike||17,,19,,spike||18,,3,,spike||18,,6,,spike||18,,7,,spike||18,,16,,spike||18,,18,,spike||18,,19,,spike||19,,1,,spike||19,,3,,spike||19,,4,,spike||19,,5,,spike||19,,6,,spike||19,,11,,spike||19,,12,,spike||19,,13,,spike||19,,14,,spike||19,,15,,spike||19,,17,,spike||19,,18,,spike||19,,19,,spike||20,,13,,spike||20,,19,,spike";
makeObjectsArray(objString);
standardPathway("up", 207);
standardPathway("down", 211);
break;
case 211 :
encounterRate = "lazlo_2";
areaName = "Lazlo Mine Level 2";
objString = "3,,1,,spike||3,,2,,spike||3,,13,,crate||4,,1,,spike||4,,2,,spike||4,,9,,spike||5,,1,,spike||5,,2,,spike||5,,16,,cart||6,,3,,spike||6,,4,,spike||6,,6,,spike||7,,4,,spike||7,,5,,spike||7,,6,,spike||7,,8,,lamp,,20>100>20||7,,18,,crate||15,,1,,spike||15,,4,,spike||15,,5,,spike||15,,7,,spike||15,,8,,spike||15,,11,,cart||15,,17,,crate||16,,1,,spike||16,,2,,spike||16,,3,,spike||17,,2,,spike||18,,12,,spike||18,,13,,spike";
makeObjectsArray(objString);
standardPathway("up", 210);
standardPathway("center", 111, undefined, "lift_up");
break;
case 300 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,14,,spike||3,,15,,spike||3,,17,,spike||3,,19,,spike||4,,11,,spike||4,,12,,spike||4,,20,,spike||5,,9,,spike||6,,7,,spike||6,,9,,spike||6,,13,,fungus||7,,6,,spike||9,,6,,spike||10,,5,,spike||10,,6,,spike||11,,4,,spike||11,,11,,lamp,,20>20>100||12,,4,,spike||12,,7,,fungus||13,,4,,spike||14,,4,,spike||15,,4,,spike||16,,2,,spike||16,,3,,spike||16,,19,,spike||16,,20,,spike||16,,21,,spike||17,,2,,spike||17,,18,,spike||18,,2,,spike||18,,17,,spike||19,,4,,spike||19,,17,,spike||20,,4,,spike||20,,5,,spike||21,,5,,spike||21,,16,,spike";
makeObjectsArray(objString);
standardPathway("right", 301);
standardPathway("down", 302);
break;
case 301 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,7,,spike||2,,7,,spike||3,,4,,spike||3,,15,,spike||3,,16,,spike||3,,19,,fungus||5,,3,,spike||5,,4,,fungus||5,,7,,sign_l,,Unexplored level ahead. Venture at own risk. Under construction.||5,,16,,fungus||9,,18,,spike||10,,3,,spike||10,,18,,spike||13,,3,,spike||13,,18,,spike||14,,18,,spike||17,,3,,fungus||17,,6,,spike||17,,15,,spike||17,,18,,fungus||18,,3,,fungus||18,,11,,spike||18,,12,,spike";
makeObjectsArray(objString);
standardPathway("left", 300);
standardPathway("center", 400, undefined, "lift_down");
break;
case 302 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,10,,spike||1,,11,,spike||1,,12,,spike||1,,15,,spike||1,,16,,spike||2,,9,,spike||2,,10,,spike||2,,14,,lamp,,20>20>100||2,,16,,spike||3,,4,,fungus||3,,8,,spike||3,,9,,spike||3,,17,,spike||3,,18,,spike||4,,8,,spike||4,,18,,spike||5,,7,,spike||5,,8,,spike||5,,18,,spike||5,,19,,spike||6,,7,,spike||6,,19,,spike||7,,1,,spike||7,,2,,spike||7,,7,,spike||7,,19,,spike||7,,20,,spike||8,,2,,spike||8,,3,,spike||8,,7,,spike||8,,20,,spike||9,,3,,spike||9,,4,,spike||9,,7,,spike||10,,5,,spike||10,,7,,spike||10,,13,,spike||10,,14,,spike||10,,15,,spike||11,,6,,spike||11,,7,,spike||11,,13,,spike||11,,15,,spike||12,,13,,spike||12,,15,,spike||13,,13,,spike||13,,15,,spike||13,,16,,spike||13,,17,,spike||13,,18,,spike||14,,1,,spike||14,,2,,spike||14,,13,,spike||14,,19,,spike||14,,20,,spike||14,,21,,spike||15,,2,,spike||15,,13,,spike||16,,3,,spike||16,,6,,spike||16,,7,,spike||16,,8,,spike||16,,9,,spike||16,,10,,spike||16,,11,,spike||16,,12,,spike||16,,13,,spike||17,,3,,spike||17,,4,,spike||17,,5,,spike||17,,6,,spike||17,,7,,spike||17,,8,,spike||17,,9,,spike||17,,10,,spike||17,,11,,spike||18,,2,,fungus||18,,17,,fungus||18,,18,,fungus||18,,19,,fungus||19,,17,,fungus||19,,18,,fungus";
makeObjectsArray(objString);
standardPathway("up", 300);
standardPathway("down", 305);
break;
case 303 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,11,,spike||3,,17,,spike||3,,18,,spike||3,,19,,spike||4,,8,,spike||4,,11,,spike||4,,12,,spike||4,,13,,spike||4,,14,,spike||4,,15,,spike||4,,16,,spike||4,,17,,spike||4,,19,,spike||4,,20,,spike||5,,6,,spike||5,,8,,spike||5,,11,,spike||6,,6,,spike||6,,11,,spike||6,,12,,spike||6,,18,,spike||6,,19,,spike||7,,5,,spike||7,,6,,spike||7,,10,,spike||7,,11,,spike||7,,14,,spike||7,,19,,spike||8,,9,,spike||8,,13,,spike||9,,5,,spike||10,,4,,spike||11,,3,,spike||11,,4,,spike||12,,3,,spike||12,,6,,spike||13,,3,,spike||13,,6,,spike||14,,2,,spike||14,,6,,spike||15,,2,,spike||16,,2,,spike||17,,2,,spike||17,,4,,spike||17,,20,,spike||18,,2,,spike||18,,19,,spike||18,,20,,spike||19,,2,,spike||20,,3,,spike||20,,18,,spike||21,,2,,spike||21,,3,,spike||21,,18,,spike";
makeObjectsArray(objString);
standardPathway("right", 304);
standardPathway("down", 308);
break;
case 304 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "2,,6,,spike||3,,4,,spike||3,,6,,spike||3,,16,,spike||4,,3,,spike||4,,18,,spike||6,,1,,spike||6,,6,,crate||7,,4,,spike||7,,16,,spike||7,,19,,spike||9,,17,,spike||11,,3,,spike||11,,4,,spike||12,,4,,spike||12,,15,,crate||13,,18,,spike||14,,6,,crate||14,,18,,spike||15,,6,,crate||15,,15,,spike||15,,18,,spike||16,,2,,spike||17,,2,,spike||17,,6,,spike||18,,2,,spike||18,,4,,spike||19,,16,,spike||19,,18,,spike||20,,16,,spike||20,,18,,spike";
makeObjectsArray(objString);
standardPathway("left", 303);
standardPathway("right", 305);
break;
case 305 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "2,,5,,spike||2,,16,,spike||3,,17,,spike||4,,3,,spike||4,,4,,spike||5,,19,,spike||6,,2,,spike||6,,19,,spike||7,,1,,spike||7,,3,,scrapluna_l||7,,21,,spike||14,,2,,lamp,,20>20>100||17,,20,,spike||18,,2,,spike||18,,19,,spike||19,,2,,spike||19,,3,,spike||20,,17,,spike||21,,5,,spike";
makeObjectsArray(objString);
standardPathway("left", 304);
standardPathway("right", 306);
standardPathway("up", 302);
standardPathway("down", 309);
break;
case 306 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,5,,spike||1,,14,,spike||1,,15,,spike||2,,5,,spike||2,,15,,spike||3,,4,,spike||3,,5,,spike||3,,17,,spike||4,,2,,spike||4,,3,,spike||4,,4,,spike||4,,5,,spike||4,,17,,spike||5,,2,,spike||6,,2,,spike||7,,2,,spike||7,,18,,spike||8,,15,,crate||8,,16,,crate||8,,18,,spike||9,,16,,crate||10,,2,,spike||10,,16,,crate||10,,18,,spike||11,,2,,spike||11,,5,,sign_l,,Plasmarocks spawn rate is erratic.||12,,3,,spike||12,,19,,spike||13,,3,,spike||13,,18,,spike||13,,19,,spike||14,,3,,spike||14,,19,,spike||15,,18,,spike||16,,18,,spike||17,,3,,spike||18,,3,,spike||18,,18,,spike||19,,18,,spike||20,,4,,spike||20,,17,,spike||21,,4,,spike||21,,17,,spike";
makeObjectsArray(objString);
standardPathway("left", 305);
standardPathway("right", 307);
break;
case 307 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,16,,spike||2,,4,,spike||2,,16,,spike||3,,2,,spike||3,,3,,spike||3,,16,,spike||3,,18,,rock||4,,3,,spike||4,,17,,spike||5,,2,,spike||5,,5,,rock||5,,18,,spike||6,,2,,spike||6,,19,,spike||6,,20,,spike||6,,21,,spike||7,,3,,spike||7,,21,,spike||8,,3,,spike||8,,7,,spike||9,,3,,spike||9,,8,,spike||10,,3,,spike||10,,9,,spike||11,,9,,spike||12,,7,,rock||12,,9,,spike||12,,10,,spike||13,,3,,spike||13,,4,,spike||13,,10,,spike||13,,11,,spike||14,,4,,spike||14,,13,,rock||15,,5,,spike||16,,8,,spike||17,,20,,spike||17,,21,,spike||18,,4,,spike||18,,5,,spike||18,,9,,spike||18,,14,,spike||18,,15,,spike||18,,18,,spike||19,,6,,spike||19,,9,,spike||19,,10,,spike||19,,11,,spike||19,,12,,spike||19,,18,,spike||19,,19,,spike";
makeObjectsArray(objString);
standardPathway("left", 306);
standardPathway("down", 310);
break;
case 308 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "2,,3,,spike||2,,5,,spike||2,,9,,spike||2,,15,,spike||2,,18,,spike||3,,3,,spike||3,,8,,spike||3,,9,,spike||3,,13,,spike||3,,18,,spike||4,,3,,spike||4,,8,,spike||4,,10,,fungus||4,,13,,spike||4,,18,,spike||5,,5,,fungus||5,,8,,spike||5,,15,,fungus||5,,18,,spike||6,,8,,spike||6,,18,,spike||7,,18,,spike||15,,7,,spike||16,,7,,spike||16,,13,,fungus||16,,19,,spike||17,,4,,spike||17,,7,,spike||17,,19,,spike||18,,1,,spike||18,,4,,spike||18,,7,,spike||18,,10,,spike||18,,13,,spike||18,,16,,spike||18,,19,,spike||19,,1,,spike||19,,4,,spike||19,,7,,spike||19,,10,,spike||19,,13,,spike||19,,14,,spike||19,,16,,spike||19,,19,,spike||20,,14,,spike";
makeObjectsArray(objString);
standardPathway("up", 303);
standardPathway("down", 312);
break;
case 309 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,15,,spike||2,,3,,spike||2,,11,,spike||2,,15,,spike||3,,2,,spike||3,,3,,spike||3,,18,,spike||4,,8,,spike||4,,9,,spike||5,,7,,spike||5,,8,,spike||5,,14,,crate||5,,15,,crate||5,,16,,crate||5,,19,,spike||6,,8,,spike||6,,10,,cart||6,,13,,sign_r,,Plasmarocks can be found on this level.||6,,14,,crate||6,,15,,crate||6,,16,,crate||16,,1,,spike||16,,3,,cart||17,,1,,spike||17,,19,,spike||18,,4,,spike||18,,19,,spike||19,,3,,spike||19,,6,,spike||19,,9,,spike||19,,14,,spike||19,,15,,spike";
makeObjectsArray(objString);
standardPathway("up", 305);
standardPathway("down", 314);
break;
case 310 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,3,,spike||3,,17,,spike||3,,18,,spike||4,,3,,fungus||4,,4,,fungus||4,,6,,spike||4,,7,,spike||4,,9,,fungus||4,,13,,spike||4,,15,,fungus||4,,19,,fungus||5,,8,,fungus||5,,9,,fungus||5,,13,,spike||16,,20,,spike||17,,3,,spike||17,,18,,fungus||18,,3,,spike||18,,5,,fungus||18,,10,,fungus||18,,11,,fungus||18,,17,,fungus||19,,7,,spike||19,,8,,spike||19,,15,,spike||19,,16,,spike||20,,11,,spike||20,,16,,spike||20,,17,,spike";
makeObjectsArray(objString);
standardPathway("up", 307);
standardPathway("down", 316);
break;
case 311 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,3,,spike||1,,4,,spike||1,,9,,fungus||1,,11,,fungus||2,,8,,fungus||2,,9,,spike||2,,10,,spike||2,,11,,spike||2,,12,,spike||2,,14,,fungus||3,,6,,fungus||3,,8,,spike||3,,13,,spike||3,,16,,spike||3,,17,,spike||4,,1,,spike||4,,2,,spike||4,,7,,spike||4,,8,,spike||4,,10,,plasmarock||4,,14,,spike||4,,15,,fungus||4,,16,,spike||4,,17,,spike||5,,1,,spike||5,,7,,spike||5,,14,,spike||6,,6,,fungus||6,,7,,spike||6,,14,,spike||6,,15,,fungus||7,,7,,fungus||7,,8,,spike||7,,13,,spike||7,,14,,fungus||7,,19,,spike||8,,6,,fungus||8,,7,,fungus||8,,8,,fungus||8,,14,,fungus||8,,16,,fungus||8,,19,,spike||8,,20,,spike||9,,8,,fungus||9,,9,,fungus||9,,13,,fungus||9,,15,,fungus||9,,20,,spike||9,,21,,spike||10,,14,,fungus||10,,15,,fungus||11,,8,,fungus||12,,14,,fungus||13,,14,,fungus||13,,20,,spike||14,,1,,spike||14,,8,,fungus||14,,20,,spike||15,,1,,spike||15,,14,,fungus||15,,19,,spike||15,,20,,spike||16,,1,,spike||19,,17,,spike||19,,18,,spike||20,,5,,spike||20,,6,,spike";
makeObjectsArray(objString);
standardPathway("right", 312);
break;
case 312 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,6,,spike||2,,4,,spike||2,,5,,spike||2,,14,,spike||3,,3,,spike||3,,14,,spike||4,,3,,spike||4,,17,,spike||4,,18,,spike||5,,6,,lamp,,0>0>0||6,,2,,spike||6,,19,,spike||7,,19,,spike||8,,1,,spike||15,,2,,spike||16,,2,,spike||16,,3,,spike||16,,20,,spike||16,,21,,spike||17,,2,,spike||17,,3,,spike||18,,2,,spike||19,,2,,spike||19,,6,,spike||19,,17,,spike||19,,18,,spike||20,,5,,spike||21,,16,,spike";
makeObjectsArray(objString);
standardPathway("left", 311);
standardPathway("right", 313);
standardPathway("up", 308);
standardPathway("down", 318);
break;
case 313 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,5,,spike||1,,18,,spike||2,,2,,spike||2,,4,,spike||2,,5,,spike||2,,17,,spike||2,,18,,spike||3,,2,,spike||4,,1,,spike||4,,7,,cart||4,,18,,spike||4,,19,,spike||4,,20,,spike||5,,3,,spike||5,,17,,spike||5,,18,,spike||6,,3,,spike||6,,4,,spike||6,,17,,spike||7,,3,,spike||7,,4,,spike||7,,15,,crate||7,,17,,spike||7,,18,,spike||8,,15,,crate||8,,18,,spike||9,,18,,spike||9,,19,,spike||10,,19,,spike||11,,3,,spike||11,,19,,spike||12,,3,,spike||12,,4,,spike||12,,18,,spike||13,,4,,spike||13,,18,,spike||13,,19,,spike||14,,7,,crate||14,,19,,spike||15,,2,,spike||15,,3,,spike||15,,7,,crate||15,,18,,spike||16,,2,,spike||16,,7,,crate||16,,18,,spike||17,,2,,spike||17,,3,,spike||18,,4,,spike||18,,17,,spike||19,,2,,spike||19,,16,,spike||19,,17,,spike||20,,6,,spike||20,,16,,spike||20,,17,,spike||21,,15,,spike||21,,16,,spike";
makeObjectsArray(objString);
standardPathway("left", 312);
standardPathway("right", 314);
break;
case 314 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,7,,crate||1,,8,,crate||1,,13,,crate||1,,14,,crate||2,,2,,spike||2,,3,,spike||2,,16,,spike||3,,16,,spike||3,,17,,spike||3,,18,,spike||3,,19,,spike||4,,2,,spike||4,,19,,spike||5,,2,,spike||5,,5,,cart||6,,20,,crate||7,,20,,crate||8,,13,,lamp,,20>100>100||9,,1,,rock||10,,1,,rock||11,,1,,rock||12,,1,,rock||14,,7,,lamp,,20>100>100||14,,17,,cart||14,,20,,crate||15,,20,,crate||16,,5,,cart||17,,1,,spike||17,,2,,spike||18,,2,,spike||18,,19,,spike||19,,19,,spike||20,,6,,crate||20,,7,,crate||20,,15,,crate||20,,16,,crate";
makeObjectsArray(objString);
standardPathway("center", 202, undefined, "lift_up");
standardPathway("left", 313);
standardPathway("right", 315);
standardPathway("up", 309);
standardPathway("down", 319);
break;
case 315 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,4,,spike||3,,5,,spike||3,,17,,spike||4,,17,,spike||5,,2,,spike||5,,3,,spike||5,,5,,fungus||5,,16,,fungus||5,,19,,fungus||6,,2,,spike||6,,5,,fungus||6,,16,,fungus||8,,19,,spike||9,,18,,spike||9,,19,,spike||11,,4,,spike||12,,4,,spike||12,,17,,spike||12,,18,,spike||13,,4,,spike||13,,18,,spike||14,,6,,fungus||14,,18,,spike||15,,6,,fungus||15,,17,,spike||16,,17,,spike||17,,5,,spike||18,,4,,spike||19,,4,,spike||19,,17,,spike";
makeObjectsArray(objString);
standardPathway("left", 314);
standardPathway("right", 316);
break;
case 316 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,3,,spike||1,,4,,spike||2,,3,,spike||3,,17,,spike||3,,18,,spike||4,,18,,spike||5,,1,,spike||6,,20,,spike||7,,1,,spike||7,,20,,spike||16,,1,,spike||16,,19,,spike||16,,20,,spike||16,,21,,spike||17,,1,,spike||18,,2,,spike||18,,15,,cart||18,,18,,spike||18,,19,,spike||20,,4,,spike||20,,17,,spike||20,,18,,spike||21,,17,,spike";
makeObjectsArray(objString);
standardPathway("left", 315);
standardPathway("right", 317);
standardPathway("up", 310);
standardPathway("down", 320);
break;
case 317 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,5,,spike||1,,6,,spike||1,,14,,spike||1,,15,,spike||2,,2,,spike||2,,3,,spike||2,,4,,spike||2,,5,,spike||2,,15,,spike||3,,1,,spike||3,,2,,spike||3,,14,,spike||3,,15,,spike||4,,1,,spike||4,,14,,spike||5,,1,,spike||5,,13,,spike||5,,14,,spike||6,,1,,spike||6,,10,,spike||6,,11,,spike||6,,12,,spike||6,,13,,spike||6,,14,,spike||6,,15,,spike||6,,16,,spike||6,,17,,spike||7,,1,,spike||7,,9,,spike||7,,10,,spike||7,,11,,fungus||7,,13,,fungus||7,,16,,fungus||7,,17,,spike||8,,9,,spike||8,,18,,spike||9,,1,,spike||9,,9,,spike||9,,10,,fungus||9,,13,,plasmarock||9,,19,,spike||10,,1,,spike||10,,9,,spike||10,,18,,fungus||10,,19,,spike||11,,1,,spike||11,,9,,spike||11,,10,,fungus||11,,20,,spike||12,,1,,spike||12,,9,,spike||12,,10,,spike||12,,20,,spike||13,,1,,spike||13,,10,,spike||13,,11,,spike||13,,12,,spike||13,,13,,spike||13,,14,,fungus||13,,20,,spike||14,,1,,spike||14,,2,,spike||14,,12,,spike||14,,13,,spike||14,,20,,spike||15,,2,,spike||15,,3,,spike||15,,20,,spike||16,,3,,spike||16,,19,,spike||16,,20,,spike||17,,3,,spike||17,,4,,spike||17,,5,,spike||17,,19,,spike||18,,5,,spike||18,,17,,spike||18,,18,,spike||18,,19,,spike||19,,6,,spike||19,,7,,spike||19,,15,,spike||19,,16,,spike||19,,17,,spike||20,,8,,spike||20,,9,,spike||20,,10,,spike||20,,12,,spike||20,,13,,spike||20,,14,,spike||20,,15,,spike||21,,11,,spike||21,,13,,spike";
makeObjectsArray(objString);
standardPathway("left", 316);
break;
case 318 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "2,,17,,spike||2,,18,,spike||2,,19,,spike||3,,2,,spike||3,,3,,spike||3,,11,,spike||3,,12,,spike||3,,13,,spike||3,,14,,spike||3,,15,,spike||3,,16,,spike||4,,2,,spike||4,,4,,spike||4,,5,,spike||4,,6,,spike||4,,8,,spike||4,,9,,spike||4,,10,,spike||4,,11,,spike||4,,12,,spike||4,,13,,spike||5,,5,,crate||5,,6,,crate||5,,10,,spike||5,,11,,spike||5,,12,,spike||5,,13,,spike||6,,17,,crate||6,,18,,crate||15,,4,,spike||15,,9,,crate||15,,10,,crate||15,,16,,spike||15,,19,,spike||16,,4,,spike||16,,6,,spike||16,,14,,spike||16,,15,,spike||16,,16,,spike||16,,19,,spike||17,,4,,spike||17,,5,,spike||17,,6,,spike||17,,8,,spike||17,,9,,spike||17,,10,,spike||17,,11,,spike||17,,12,,spike||17,,13,,spike||18,,7,,spike||18,,10,,spike||18,,12,,spike||18,,13,,spike||18,,14,,spike||18,,15,,spike||18,,16,,spike||18,,17,,spike||19,,2,,spike||19,,3,,spike||19,,4,,spike||19,,6,,spike||19,,7,,spike||19,,8,,spike||19,,10,,spike||19,,12,,spike||19,,14,,spike||19,,15,,spike||19,,17,,spike||19,,18,,spike||19,,19,,spike||19,,20,,spike";
makeObjectsArray(objString);
standardPathway("up", 312);
standardPathway("down", 321);
break;
case 319 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,17,,spike||3,,18,,spike||3,,19,,spike||4,,1,,spike||4,,3,,spike||4,,4,,spike||4,,5,,spike||4,,6,,spike||4,,12,,spike||4,,13,,spike||4,,14,,spike||5,,2,,spike||5,,6,,spike||5,,7,,spike||5,,11,,spike||5,,12,,spike||5,,18,,fungus||5,,19,,fungus||6,,7,,spike||6,,8,,spike||6,,9,,spike||6,,10,,spike||6,,11,,spike||6,,12,,spike||7,,8,,spike||7,,9,,spike||7,,14,,fungus||8,,9,,rock||9,,9,,rock||10,,9,,rock||11,,9,,rock||12,,9,,spike||12,,10,,spike||12,,11,,spike||13,,8,,spike||13,,9,,spike||13,,10,,spike||13,,11,,spike||13,,12,,spike||14,,7,,spike||14,,8,,spike||14,,13,,spike||14,,14,,spike||15,,1,,spike||15,,5,,spike||15,,6,,spike||15,,7,,spike||15,,15,,spike||15,,16,,spike||15,,19,,fungus||16,,1,,spike||16,,2,,spike||16,,3,,spike||16,,4,,spike||16,,5,,spike||17,,4,,spike||18,,8,,spike||18,,9,,spike||18,,10,,spike||18,,11,,spike||18,,17,,spike||18,,18,,spike||18,,19,,spike||19,,17,,spike";
makeObjectsArray(objString);
standardPathway("up", 314);
standardPathway("down", 323);
break;
case 320 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,2,,spike||3,,3,,spike||3,,15,,spike||3,,16,,spike||3,,17,,spike||3,,18,,spike||4,,4,,spike||4,,5,,spike||4,,13,,spike||4,,14,,spike||4,,15,,spike||5,,11,,spike||5,,12,,spike||5,,13,,spike||6,,3,,spike||6,,4,,spike||6,,11,,spike||7,,4,,spike||7,,5,,spike||7,,6,,spike||7,,7,,spike||7,,8,,spike||7,,9,,spike||7,,10,,spike||7,,11,,spike||7,,12,,spike||7,,16,,lamp,,0>0>0||8,,10,,spike||15,,20,,spike||16,,19,,spike||16,,20,,spike||17,,1,,spike||18,,2,,spike||18,,3,,spike||18,,4,,spike||18,,5,,spike||18,,6,,spike||18,,7,,spike||18,,8,,spike||18,,9,,spike||18,,15,,spike||18,,16,,spike||19,,2,,spike||19,,3,,spike||19,,13,,spike||19,,14,,spike||19,,15,,spike||19,,16,,spike||19,,17,,spike||19,,18,,spike||19,,19,,spike||20,,3,,spike||20,,4,,spike||20,,5,,spike||20,,6,,spike||20,,7,,spike";
makeObjectsArray(objString);
standardPathway("up", 316);
standardPathway("down", 325);
break;
case 321 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "2,,2,,fungus||2,,3,,fungus||3,,2,,fungus||3,,10,,spike||3,,11,,spike||3,,12,,spike||3,,13,,spike||4,,6,,spike||4,,7,,spike||4,,8,,spike||4,,9,,spike||4,,10,,spike||4,,13,,spike||4,,14,,spike||5,,5,,spike||5,,6,,spike||5,,15,,spike||5,,16,,spike||6,,2,,spike||6,,3,,spike||6,,4,,spike||6,,16,,spike||6,,17,,spike||6,,19,,fungus||7,,2,,spike||7,,17,,spike||7,,19,,fungus||7,,20,,fungus||8,,18,,spike||9,,18,,spike||9,,19,,spike||10,,19,,spike||11,,19,,spike||12,,19,,fungus||12,,20,,fungus||13,,3,,spike||13,,4,,spike||13,,5,,spike||14,,1,,spike||14,,2,,spike||14,,3,,spike||14,,5,,spike||14,,6,,spike||15,,1,,spike||15,,6,,spike||15,,21,,spike||16,,1,,spike||16,,2,,spike||16,,6,,spike||16,,21,,spike||17,,5,,spike||17,,6,,spike||17,,21,,spike||18,,5,,spike||18,,21,,spike||19,,2,,fungus||19,,5,,spike||19,,20,,spike||19,,21,,spike||20,,5,,spike||20,,20,,spike||21,,5,,spike||21,,17,,spike||21,,18,,spike||21,,19,,spike";
makeObjectsArray(objString);
standardPathway("right", 322);
standardPathway("up", 318);
break;
case 322 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,3,,spike||1,,6,,spike||1,,17,,spike||2,,3,,spike||2,,5,,spike||2,,6,,spike||2,,15,,spike||2,,17,,spike||2,,18,,spike||3,,15,,spike||3,,18,,spike||4,,4,,spike||4,,6,,cart||4,,15,,spike||4,,18,,spike||5,,4,,spike||5,,15,,spike||5,,18,,spike||6,,4,,spike||6,,18,,spike||7,,4,,spike||7,,6,,spike||7,,15,,spike||7,,18,,spike||8,,3,,spike||8,,6,,spike||8,,15,,spike||9,,3,,spike||10,,3,,spike||11,,3,,spike||12,,3,,spike||12,,17,,spike||12,,18,,spike||13,,3,,spike||13,,18,,spike||14,,18,,spike||15,,17,,spike||15,,18,,spike||16,,17,,spike||17,,4,,spike||17,,17,,spike||18,,4,,spike||19,,4,,spike||19,,16,,spike||20,,16,,spike||21,,5,,spike||21,,16,,spike";
makeObjectsArray(objString);
standardPathway("left", 321);
standardPathway("right", 323);
break;
case 323 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,4,,spike||1,,16,,spike||2,,4,,spike||2,,5,,spike||2,,7,,fungus||2,,16,,spike||2,,17,,spike||3,,5,,spike||3,,6,,fungus||3,,7,,fungus||3,,17,,spike||3,,18,,spike||4,,4,,spike||4,,18,,spike||4,,19,,spike||6,,1,,fungus||7,,16,,lamp,,20>20>20||7,,19,,wall_r||7,,20,,spike||8,,19,,wall_r||8,,20,,wall_r||8,,21,,wall_r||14,,19,,wall_r||14,,20,,wall_r||14,,21,,wall_r||15,,19,,wall_r||17,,1,,spike||17,,2,,spike||17,,18,,spike||18,,3,,spike||18,,18,,spike||19,,4,,spike||19,,5,,fungus||19,,6,,fungus||19,,18,,fungus||19,,19,,fungus||20,,6,,fungus";
makeObjectsArray(objString);
standardPathway("left", 322);
standardPathway("right", 324);
standardPathway("up", 319);
standardPathway("down", 326);
break;
case 324 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,3,,spike||1,,6,,fungus||2,,3,,spike||2,,6,,fungus||3,,3,,spike||3,,17,,spike||4,,3,,spike||4,,17,,spike||4,,18,,spike||5,,3,,spike||5,,6,,spike||5,,18,,spike||6,,3,,spike||6,,6,,spike||6,,16,,fungus||6,,17,,spike||6,,18,,spike||7,,6,,spike||7,,15,,fungus||7,,16,,fungus||7,,17,,spike||8,,6,,spike||8,,17,,spike||9,,6,,spike||10,,18,,fungus||11,,6,,fungus||11,,16,,spike||11,,18,,fungus||12,,6,,fungus||12,,16,,spike||14,,20,,spike||14,,21,,spike||15,,3,,spike||15,,7,,fungus||15,,18,,spike||15,,21,,spike||16,,3,,spike||16,,5,,spike||16,,18,,spike||17,,3,,spike||17,,4,,spike||17,,5,,spike||17,,6,,spike||18,,4,,spike||18,,6,,spike||19,,20,,spike||20,,15,,spike||20,,19,,spike||20,,20,,spike||21,,15,,spike";
makeObjectsArray(objString);
standardPathway("left", 323);
standardPathway("right", 325);
break;
case 325 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "1,,4,,spike||2,,3,,spike||3,,2,,spike||3,,4,,spike||3,,8,,rock||3,,19,,spike||4,,1,,spike||4,,4,,spike||4,,5,,spike||4,,19,,spike||5,,1,,spike||5,,3,,spike||5,,4,,spike||5,,5,,spike||5,,19,,spike||6,,4,,spike||6,,5,,spike||6,,6,,spike||7,,5,,spike||7,,6,,spike||7,,7,,spike||7,,16,,rock||7,,19,,spike||8,,6,,spike||8,,7,,spike||8,,8,,spike||8,,19,,spike||9,,8,,spike||9,,19,,spike||10,,18,,spike||10,,19,,spike||11,,18,,spike||12,,18,,spike||13,,18,,spike||14,,18,,spike||15,,15,,spike||15,,16,,spike||15,,18,,spike||16,,16,,spike||16,,17,,spike||16,,19,,spike||16,,20,,spike||17,,6,,rock||17,,7,,rock||17,,8,,rock||17,,17,,spike||17,,18,,spike||17,,19,,spike||18,,1,,spike||18,,17,,spike||18,,18,,spike||18,,19,,spike||19,,1,,spike||19,,4,,spike||19,,5,,spike||19,,6,,spike||19,,7,,spike||19,,10,,rock||19,,14,,spike||19,,17,,spike||19,,18,,spike||20,,13,,spike||20,,18,,spike";
makeObjectsArray(objString);
standardPathway("left", 324);
standardPathway("up", 320);
break;
case 326 :
encounterRate = "lazlo_3";
areaName = "Lazlo Mine Level 3";
objString = "3,,7,,cart||3,,9,,cart||3,,14,,lamp,,10>30>10||4,,18,,cart||6,,1,,wall_r||6,,2,,wall_r||6,,8,,lamp||7,,2,,wall_r||7,,3,,wall_r||7,,4,,wall_r||7,,14,,fungus||7,,15,,fungus||7,,16,,fungus||7,,17,,fungus||7,,18,,rock||8,,14,,fungus||8,,18,,fungus||9,,14,,rock||9,,16,,plasmarock||9,,18,,fungus||10,,14,,rock||10,,18,,fungus||11,,14,,rock||11,,15,,fungus||11,,16,,fungus||11,,17,,fungus||11,,18,,rock||13,,18,,lamp,,10>30>10||14,,2,,wall_r||14,,3,,wall_r||14,,4,,wall_r||15,,1,,wall_r||15,,2,,wall_r||15,,13,,rock||15,,14,,fungus||15,,15,,fungus||15,,16,,fungus||15,,17,,rock||16,,10,,lamp,,10>30>10||16,,13,,fungus||16,,17,,fungus||17,,13,,rock||17,,15,,plasmarock||17,,17,,fungus||18,,4,,cart||18,,8,,cart||18,,13,,fungus||18,,17,,fungus||18,,18,,cart||19,,13,,rock||19,,14,,fungus||19,,15,,fungus||19,,16,,fungus||19,,17,,rock";
makeObjectsArray(objString);
standardPathway("up", 323);
break;
case 400 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "2,,5,,spike||2,,10,,spike||3,,5,,spike||3,,7,,spike||3,,8,,spike||3,,10,,spike||3,,11,,spike||3,,16,,spike||4,,5,,spike||4,,11,,spike||4,,12,,spike||5,,3,,spike||5,,14,,rock||6,,2,,spike||6,,3,,spike||6,,7,,rock||6,,10,,rock||6,,11,,rock||6,,17,,spike||6,,18,,spike||6,,19,,spike||7,,4,,rock||7,,5,,rock||7,,13,,rock||7,,20,,spike||8,,4,,rock||8,,13,,rock||8,,14,,rock||8,,21,,spike||10,,4,,rock||11,,4,,rock||12,,2,,spike||12,,4,,rock||13,,2,,spike||13,,4,,rock||13,,15,,rock||13,,16,,rock||14,,2,,spike||14,,3,,spike||14,,5,,rock||14,,15,,rock||14,,21,,spike||15,,3,,spike||15,,5,,rock||15,,14,,rock||15,,20,,spike||15,,21,,spike||16,,10,,rock||16,,11,,rock||16,,13,,rock||16,,18,,spike||16,,19,,spike||17,,8,,rock||17,,10,,rock||17,,11,,rock||17,,19,,spike||17,,20,,spike||18,,5,,spike||18,,16,,spike||19,,5,,spike||19,,15,,spike||19,,16,,spike||20,,9,,spike||20,,10,,spike";
makeObjectsArray(objString);
standardPathway("center", 301, undefined, "lift_up");
standardPathway("down", 401);
break;
case 401 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "3,,6,,spike||3,,7,,spike||3,,9,,spike||4,,1,,spike||4,,5,,spike||4,,6,,spike||4,,9,,spike||4,,10,,spike||4,,19,,spike||4,,20,,spike||4,,21,,spike||5,,1,,spike||5,,2,,spike||5,,3,,spike||5,,5,,spike||5,,12,,spike||5,,13,,spike||5,,14,,spike||5,,15,,spike||5,,16,,spike||5,,18,,spike||5,,19,,spike||6,,1,,spike||6,,2,,spike||6,,3,,spike||6,,8,,rock||6,,11,,spike||6,,12,,spike||7,,17,,rock||7,,18,,rock||8,,11,,sign_r,,These caverns have not been properly explored.||16,,1,,spike||16,,21,,spike||17,,2,,spike||18,,2,,spike||18,,5,,spike||18,,10,,rock||18,,18,,spike||18,,19,,spike||18,,20,,spike||18,,21,,spike||19,,2,,spike||19,,3,,spike||19,,5,,spike||19,,6,,spike||19,,7,,spike||19,,8,,spike||19,,9,,spike||19,,12,,spike||19,,13,,spike||19,,14,,spike||19,,15,,spike||19,,17,,spike||19,,18,,spike";
makeObjectsArray(objString);
standardPathway("up", 400);
standardPathway("down", 402);
break;
case 402 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "3,,10,,spike||3,,14,,spike||3,,20,,spike||4,,1,,spike||4,,2,,spike||4,,3,,spike||4,,5,,spike||4,,7,,spike||4,,8,,spike||4,,9,,spike||4,,10,,spike||4,,12,,spike||4,,14,,spike||4,,15,,spike||4,,17,,spike||4,,18,,spike||4,,19,,spike||4,,20,,spike||5,,10,,spike||5,,15,,spike||6,,7,,spike||6,,8,,spike||6,,9,,spike||6,,10,,spike||6,,14,,spike||6,,15,,spike||8,,12,,rock||10,,15,,rock||12,,15,,rock||13,,14,,rock||14,,14,,rock||16,,12,,rock||17,,2,,spike||18,,1,,spike||18,,11,,rock||18,,17,,spike||18,,20,,spike||18,,21,,spike||19,,1,,spike||19,,3,,spike||19,,6,,spike||19,,17,,spike||19,,19,,spike||20,,6,,spike||20,,7,,spike||20,,8,,spike||20,,12,,spike||20,,13,,spike||20,,14,,spike||20,,15,,spike||20,,16,,spike";
makeObjectsArray(objString);
standardPathway("up", 401);
standardPathway("down", 403);
break;
case 403 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "1,,6,,spike||1,,17,,spike||2,,6,,spike||3,,4,,spike||3,,5,,spike||3,,18,,spike||4,,3,,spike||4,,4,,spike||4,,18,,spike||5,,1,,spike||5,,2,,spike||5,,6,,fungus||6,,16,,fungus||6,,18,,spike||6,,20,,spike||6,,21,,spike||7,,21,,spike||8,,18,,spike||9,,20,,spike||10,,20,,spike||11,,18,,spike||11,,19,,spike||12,,18,,spike||14,,17,,spike||14,,18,,spike||14,,19,,spike||15,,14,,fungus||16,,17,,spike||17,,1,,spike||17,,8,,fungus||17,,9,,fungus||17,,17,,spike||18,,2,,spike||18,,4,,spike||18,,5,,spike||18,,11,,spike||18,,15,,spike||18,,16,,spike||18,,17,,spike||19,,5,,spike||19,,9,,spike||19,,11,,spike||19,,13,,spike||19,,14,,spike||19,,15,,spike||20,,8,,spike||20,,9,,spike||21,,4,,spike||21,,5,,spike||21,,6,,spike||21,,7,,spike";
makeObjectsArray(objString);
standardPathway("up", 402);
standardPathway("left", 404);
break;
case 404 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "1,,4,,spike||1,,5,,spike||1,,6,,spike||1,,15,,spike||1,,17,,spike||2,,4,,spike||2,,5,,spike||2,,18,,spike||3,,18,,spike||4,,4,,spike||4,,6,,rock||4,,18,,spike||5,,2,,spike||5,,3,,spike||5,,4,,spike||5,,17,,spike||5,,18,,spike||6,,2,,spike||6,,15,,rock||6,,17,,spike||6,,18,,spike||7,,17,,spike||8,,17,,spike||9,,2,,spike||9,,17,,spike||10,,2,,spike||10,,3,,spike||11,,3,,spike||11,,16,,spike||11,,17,,spike||11,,19,,spike||12,,3,,spike||12,,17,,spike||13,,3,,spike||13,,6,,rock||13,,17,,spike||14,,3,,spike||14,,4,,spike||14,,6,,rock||14,,17,,spike||15,,4,,spike||15,,15,,spike||15,,17,,spike||15,,18,,spike||16,,4,,spike||16,,15,,spike||16,,17,,spike||17,,4,,spike||17,,15,,spike||17,,17,,spike||18,,3,,spike||18,,4,,spike||18,,15,,spike||18,,17,,spike||19,,3,,spike||19,,15,,spike||19,,16,,spike||19,,19,,spike||21,,4,,spike";
makeObjectsArray(objString);
standardPathway("left", 405);
standardPathway("right", 403);
break;
case 405 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "1,,3,,spike||1,,5,,spike||1,,16,,spike||2,,3,,spike||2,,5,,spike||2,,16,,spike||3,,2,,spike||3,,3,,spike||3,,7,,rock||3,,18,,spike||3,,19,,spike||4,,2,,spike||4,,7,,rock||4,,18,,spike||5,,2,,spike||5,,16,,fungus||5,,18,,spike||6,,2,,spike||6,,4,,spike||6,,15,,rock||6,,18,,spike||7,,2,,spike||7,,4,,spike||7,,16,,fungus||7,,18,,spike||8,,6,,fungus||8,,18,,spike||9,,3,,spike||9,,6,,fungus||9,,18,,spike||9,,19,,spike||10,,3,,spike||10,,18,,spike||10,,19,,spike||11,,3,,spike||11,,19,,spike||12,,3,,spike||12,,18,,spike||12,,19,,spike||13,,2,,spike||13,,4,,fungus||13,,18,,spike||14,,1,,spike||14,,2,,spike||14,,3,,spike||14,,7,,rock||14,,18,,spike||15,,2,,spike||15,,18,,spike||16,,2,,spike||16,,4,,spike||16,,18,,spike||17,,2,,spike||17,,4,,spike||17,,16,,spike||17,,18,,spike||18,,3,,spike||18,,4,,spike||18,,16,,spike||19,,3,,spike||19,,16,,spike||19,,17,,spike||20,,3,,spike||20,,16,,spike||21,,16,,spike";
makeObjectsArray(objString);
standardPathway("left", 406);
standardPathway("right", 404);
break;
case 406 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "3,,9,,fungus||4,,13,,fungus||4,,14,,fungus||4,,15,,fungus||5,,4,,fungus||5,,12,,fungus||5,,16,,fungus||6,,8,,fungus||6,,12,,fungus||6,,14,,plasmarock||6,,16,,fungus||7,,12,,fungus||7,,16,,fungus||8,,1,,spike||8,,2,,spike||8,,3,,spike||8,,13,,fungus||8,,14,,fungus||8,,15,,fungus||8,,18,,fungus||9,,3,,spike||9,,4,,spike||9,,5,,spike||10,,5,,spike||10,,6,,spike||11,,6,,spike||11,,7,,spike||11,,8,,rock||12,,7,,spike||12,,8,,rock||12,,9,,rock||13,,8,,rock||13,,9,,spike||13,,10,,spike||14,,10,,spike||14,,11,,spike||15,,11,,spike||15,,12,,spike||15,,17,,fungus||16,,12,,spike||16,,17,,fungus||17,,12,,spike||17,,13,,spike||17,,14,,spike||18,,1,,spike||18,,14,,spike||18,,15,,spike||19,,2,,spike||19,,14,,spike||20,,2,,spike||20,,3,,spike||20,,14,,spike||21,,4,,spike||21,,5,,spike||21,,14,,spike";
makeObjectsArray(objString);
standardPathway("up", 407);
standardPathway("right", 405);
break;
case 407 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "2,,6,,rock||3,,10,,spike||3,,18,,rock||4,,4,,spike||4,,5,,spike||4,,16,,spike||5,,1,,spike||5,,2,,spike||5,,3,,spike||5,,4,,spike||5,,5,,spike||5,,6,,spike||5,,7,,spike||5,,8,,spike||5,,9,,spike||5,,11,,spike||5,,13,,spike||5,,14,,spike||5,,15,,spike||5,,16,,spike||5,,17,,spike||5,,18,,spike||5,,19,,spike||5,,21,,spike||6,,2,,spike||6,,3,,spike||6,,7,,spike||6,,12,,spike||6,,13,,spike||6,,15,,spike||6,,20,,spike||6,,21,,spike||7,,1,,spike||7,,2,,spike||7,,12,,spike||7,,13,,spike||16,,1,,spike||16,,2,,spike||16,,11,,spike||16,,19,,spike||17,,2,,spike||17,,3,,spike||17,,4,,spike||17,,5,,spike||17,,6,,spike||17,,7,,spike||17,,8,,spike||17,,11,,spike||17,,13,,spike||17,,14,,spike||17,,16,,spike||17,,17,,spike||17,,18,,spike||17,,19,,spike||17,,20,,spike||17,,21,,spike||18,,7,,spike||18,,9,,spike||18,,10,,spike||18,,11,,spike||18,,13,,spike||18,,14,,spike||18,,15,,spike||18,,16,,spike||18,,19,,spike||19,,3,,rock||19,,14,,spike";
makeObjectsArray(objString);
standardPathway("up", 408);
standardPathway("down", 406);
break;
case 408 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "3,,2,,spike||3,,5,,spike||3,,6,,spike||3,,8,,spike||3,,18,,spike||3,,20,,spike||4,,1,,spike||4,,4,,spike||4,,6,,spike||4,,7,,spike||4,,8,,spike||4,,11,,spike||4,,14,,spike||4,,16,,spike||4,,17,,spike||4,,18,,spike||4,,20,,spike||5,,3,,spike||5,,9,,rock||5,,11,,spike||5,,12,,spike||5,,13,,fungus||5,,14,,fungus||5,,18,,spike||5,,19,,spike||5,,20,,spike||6,,2,,rock||6,,7,,fungus||6,,16,,spike||6,,19,,fungus||7,,11,,scrapluna_l||15,,17,,fungus||16,,2,,spike||16,,5,,rock||16,,7,,spike||16,,10,,fungus||16,,15,,spike||16,,21,,spike||17,,1,,spike||17,,2,,spike||17,,4,,spike||17,,18,,spike||17,,19,,spike||17,,20,,spike||17,,21,,spike||18,,1,,spike||18,,4,,spike||18,,5,,spike||18,,6,,spike||18,,7,,spike||18,,8,,spike||18,,10,,spike||18,,12,,spike||18,,13,,spike||18,,14,,spike||18,,15,,spike||18,,16,,spike||18,,17,,spike||19,,3,,fungus||19,,7,,spike||19,,8,,spike||19,,13,,spike";
makeObjectsArray(objString);
standardPathway("up", 409);
standardPathway("down", 407);
break;
case 409 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "2,,9,,spike||2,,10,,spike||2,,11,,spike||2,,12,,spike||3,,7,,spike||3,,8,,spike||3,,13,,spike||4,,7,,spike||4,,13,,spike||5,,10,,fungus||5,,14,,spike||5,,18,,spike||6,,6,,fungus||6,,15,,spike||7,,3,,spike||7,,4,,spike||8,,3,,spike||9,,2,,spike||10,,1,,spike||10,,4,,fungus||12,,2,,spike||12,,16,,spike||13,,3,,spike||13,,4,,spike||13,,15,,spike||13,,16,,spike||14,,5,,spike||14,,17,,spike||15,,6,,spike||15,,12,,spike||15,,18,,spike||16,,11,,spike||16,,12,,spike||16,,18,,spike||17,,13,,spike||17,,18,,spike||17,,20,,spike||18,,5,,spike||18,,6,,spike||18,,14,,spike||18,,15,,spike||18,,16,,spike||18,,17,,spike||18,,18,,spike||18,,19,,spike||19,,17,,spike||21,,17,,spike";
makeObjectsArray(objString);
standardPathway("right", 410);
standardPathway("down", 408);
break;
case 410 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "1,,3,,spike||1,,17,,spike||2,,3,,spike||2,,6,,fungus||2,,17,,spike||2,,18,,spike||3,,3,,spike||3,,18,,spike||4,,3,,spike||4,,18,,spike||5,,17,,spike||5,,18,,spike||6,,7,,cart||6,,16,,spike||6,,17,,spike||7,,5,,spike||7,,16,,spike||8,,5,,spike||8,,16,,spike||9,,6,,spike||9,,17,,fungus||10,,6,,spike||11,,6,,spike||11,,17,,spike||12,,6,,spike||12,,17,,spike||13,,5,,spike||13,,6,,spike||13,,17,,spike||13,,18,,spike||14,,5,,spike||14,,6,,spike||14,,18,,spike||15,,4,,spike||15,,5,,spike||15,,18,,spike||16,,2,,spike||16,,3,,spike||17,,2,,spike||17,,18,,spike||18,,1,,spike||18,,3,,fungus||19,,1,,spike||19,,2,,spike||19,,16,,spike||19,,17,,spike||20,,2,,spike||20,,15,,spike||20,,16,,spike||21,,2,,spike||21,,14,,spike";
makeObjectsArray(objString);
standardPathway("left", 409);
standardPathway("right", 411);
break;
case 411 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "1,,5,,spike||1,,17,,spike||2,,5,,spike||2,,17,,spike||2,,18,,spike||3,,5,,spike||3,,6,,spike||3,,18,,spike||3,,19,,spike||4,,5,,spike||4,,19,,spike||4,,20,,spike||4,,21,,spike||5,,5,,spike||5,,21,,spike||6,,4,,spike||6,,5,,spike||7,,4,,spike||8,,1,,spike||8,,2,,spike||8,,3,,spike||10,,1,,spike||10,,3,,fungus||11,,1,,spike||11,,7,,fungus||12,,1,,spike||13,,1,,spike||13,,3,,fungus||13,,5,,plasmarock||14,,1,,spike||14,,7,,fungus||15,,2,,spike||15,,5,,fungus||15,,14,,spike||15,,15,,spike||15,,16,,spike||15,,17,,spike||15,,18,,spike||15,,19,,spike||15,,20,,spike||16,,3,,spike||16,,13,,spike||16,,14,,spike||16,,20,,spike||16,,21,,spike||17,,4,,spike||17,,5,,spike||17,,6,,spike||17,,7,,spike||17,,13,,spike||18,,7,,spike||18,,8,,spike||18,,9,,spike||18,,10,,spike||18,,12,,spike||19,,12,,spike||20,,12,,spike||21,,12,,spike";
makeObjectsArray(objString);
standardPathway("left", 410);
standardPathway("down", 412);
break;
case 412 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "2,,7,,rock||2,,8,,rock||2,,17,,spike||2,,18,,spike||2,,19,,spike||2,,20,,spike||3,,1,,spike||3,,16,,spike||3,,17,,spike||4,,1,,spike||4,,2,,spike||4,,16,,spike||5,,2,,spike||5,,3,,spike||5,,4,,spike||5,,15,,spike||5,,16,,spike||6,,4,,spike||6,,5,,spike||6,,6,,spike||6,,7,,spike||6,,14,,spike||6,,15,,spike||6,,18,,rock||7,,7,,spike||7,,8,,spike||7,,9,,spike||7,,10,,spike||7,,11,,spike||7,,12,,spike||7,,13,,spike||7,,18,,rock||9,,10,,sign_r,,Some strange structures have been discovered ahead...||15,,1,,spike||15,,21,,spike||16,,1,,spike||16,,2,,spike||16,,20,,spike||16,,21,,spike||17,,2,,spike||17,,3,,spike||17,,19,,spike||17,,20,,spike||18,,5,,spike||18,,6,,spike||18,,7,,spike||18,,17,,spike||18,,18,,spike||18,,19,,spike||19,,4,,rock||19,,8,,spike||19,,9,,spike||19,,10,,spike||19,,11,,spike||19,,13,,spike||19,,14,,spike||19,,15,,spike||19,,16,,spike||20,,12,,spike||20,,13,,spike";
makeObjectsArray(objString);
standardPathway("up", 411);
standardPathway("down", 413);
break;
case 413 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "1,,16,,spike||2,,5,,spike||2,,6,,spike||3,,3,,rock||3,,4,,spike||4,,2,,spike||4,,16,,rock||4,,19,,spike||7,,15,,spike||7,,20,,spike||8,,15,,spike||8,,18,,spike||9,,18,,spike||10,,18,,spike||11,,11,,spike||11,,18,,spike||12,,16,,spike||12,,18,,spike||13,,16,,spike||14,,12,,spike||15,,10,,spike||16,,15,,spike||16,,18,,spike||17,,1,,spike||18,,7,,spike||18,,9,,rock||18,,11,,spike||19,,1,,spike||19,,3,,spike||19,,5,,spike||19,,6,,spike||19,,12,,spike||19,,13,,spike||20,,5,,spike";
makeObjectsArray(objString);
standardPathway("up", 412);
standardPathway("left", 414);
break;
case 414 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "2,,9,,spike||2,,10,,spike||3,,1,,spike||3,,2,,spike||3,,3,,spike||3,,4,,spike||3,,7,,spike||3,,8,,spike||3,,10,,spike||3,,11,,spike||3,,12,,spike||3,,13,,spike||4,,5,,spike||4,,6,,spike||4,,14,,spike||5,,2,,rock||5,,5,,spike||5,,10,,rock||5,,15,,spike||6,,5,,spike||6,,15,,spike||7,,15,,spike||8,,15,,spike||9,,14,,spike||9,,15,,spike||10,,14,,spike||11,,14,,spike||12,,14,,spike||13,,14,,spike||13,,15,,spike||13,,16,,spike||13,,17,,spike||14,,17,,spike||15,,1,,spike||15,,18,,spike||15,,19,,spike||16,,1,,spike||16,,19,,spike||17,,1,,spike||17,,16,,rock||17,,19,,spike||18,,1,,spike||18,,2,,spike||18,,3,,spike||18,,19,,spike||19,,3,,spike||19,,19,,spike||20,,3,,spike||20,,4,,spike||20,,18,,spike||20,,19,,spike||21,,5,,spike||21,,17,,spike||21,,18,,spike";
makeObjectsArray(objString);
standardPathway("up", 415);
standardPathway("right", 413);
break;
case 415 :
encounterRate = "lazlo_4";
areaName = "Lazlo Mine Level 4";
objString = "2,,2,,spike||2,,6,,spike||2,,11,,spike||2,,12,,spike||3,,3,,spike||3,,6,,spike||3,,8,,spike||3,,11,,spike||3,,12,,spike||3,,19,,rock||4,,4,,spike||4,,5,,spike||4,,7,,spike||4,,8,,spike||4,,10,,spike||4,,11,,spike||4,,12,,spike||4,,14,,spike||4,,15,,spike||4,,16,,spike||4,,17,,spike||5,,1,,spike||5,,2,,spike||5,,3,,spike||5,,4,,spike||5,,6,,spike||5,,7,,spike||5,,9,,spike||5,,10,,spike||5,,11,,spike||5,,12,,spike||5,,13,,spike||5,,16,,spike||5,,17,,spike||6,,3,,spike||6,,4,,spike||6,,5,,spike||6,,7,,spike||6,,11,,spike||6,,12,,spike||6,,16,,spike||6,,20,,spike||7,,3,,spike||7,,15,,spike||7,,16,,spike||7,,18,,spike||7,,19,,spike||7,,20,,spike||8,,4,,spike||8,,15,,spike||8,,18,,spike||9,,2,,spike||9,,3,,spike||9,,4,,spike||9,,5,,spike||10,,3,,spike||11,,4,,spike||11,,5,,spike||12,,4,,spike||12,,14,,spike||13,,3,,spike||13,,15,,spike||13,,16,,spike||14,,2,,spike||14,,3,,spike||14,,4,,spike||14,,5,,spike||14,,6,,spike||14,,16,,spike||14,,19,,spike||14,,20,,spike||15,,13,,spike||15,,15,,spike||15,,18,,spike||15,,20,,spike||16,,4,,spike||16,,5,,spike||16,,7,,spike||16,,8,,spike||16,,10,,spike||16,,11,,spike||16,,12,,spike||16,,13,,spike||16,,14,,spike||16,,15,,spike||16,,20,,spike||16,,21,,spike||17,,4,,spike||17,,5,,spike||17,,8,,spike||17,,13,,spike||17,,16,,spike||18,,7,,spike||18,,8,,spike||18,,9,,spike||18,,10,,spike||18,,12,,spike||18,,13,,spike||18,,15,,spike||18,,18,,rock||18,,19,,rock||19,,3,,rock||19,,7,,spike||19,,8,,spike||19,,16,,spike";
makeObjectsArray(objString);
standardPathway("center", 500, undefined, "lift_down");
standardPathway("down", 414);
break;
case 500 :
areaName = "Lazlo Mine Level 5";
objString = "1,,4,,wall_l||1,,17,,wall_l||1,,18,,wall_l||2,,4,,wall_l||2,,18,,wall_l||3,,4,,wall_l||3,,18,,wall_l||4,,4,,wall_l||4,,5,,wall_r||4,,6,,wall_r||4,,7,,wall_r||4,,14,,wall_r||4,,15,,wall_r||4,,16,,wall_r||4,,17,,wall_r||4,,18,,wall_l||5,,9,,rock||6,,1,,spike||6,,2,,spike||6,,8,,rock||6,,11,,rock||6,,13,,rock||7,,1,,spike||7,,8,,rock||7,,9,,rock||7,,12,,rock||7,,16,,sign_r,,For your own safety. Please do not proceed any further.||7,,20,,spike||7,,21,,spike||8,,21,,spike||10,,1,,spike||15,,1,,spike||16,,1,,spike||17,,1,,spike||17,,2,,spike||17,,19,,spike||17,,20,,spike||18,,19,,spike||20,,5,,spike||20,,6,,spike||20,,15,,spike||20,,16,,spike||20,,17,,spike";
makeObjectsArray(objString);
standardPathway("left", 501);
standardPathway("center", 415, undefined, "lift_up");
break;
case 501 :
areaName = "Lazlo Mine Level 5";
objString = "1,,3,,wall_l||1,,18,,wall_l||2,,1,,fungus||2,,3,,wall_l||2,,7,,lamp,,50>20>50||2,,18,,wall_l||3,,3,,wall_l||3,,18,,wall_l||3,,20,,fungus||4,,3,,wall_l||4,,18,,wall_l||5,,3,,wall_l||5,,18,,wall_l||6,,3,,wall_l||6,,15,,lamp,,50>20>50||6,,18,,wall_l||7,,3,,wall_l||7,,18,,wall_l||8,,3,,wall_l||8,,18,,wall_l||9,,3,,wall_l||9,,7,,lamp,,50>20>50||9,,18,,wall_l||10,,3,,wall_l||10,,18,,wall_l||11,,3,,wall_l||11,,18,,wall_l||12,,3,,wall_l||12,,18,,wall_l||13,,3,,wall_l||13,,18,,wall_l||14,,3,,wall_l||14,,15,,lamp,,50>20>50||14,,18,,wall_l||15,,3,,wall_l||15,,18,,wall_l||15,,20,,fungus||16,,3,,wall_l||16,,18,,wall_l||17,,3,,wall_l||17,,7,,lamp,,50>20>50||17,,18,,wall_l||18,,3,,wall_l||18,,18,,wall_l||19,,3,,wall_l||19,,18,,wall_l||19,,19,,fungus||20,,3,,wall_l||20,,18,,wall_l||21,,3,,wall_l||21,,18,,wall_l";
makeObjectsArray(objString);
standardPathway("left", 502);
standardPathway("right", 500);
break;
case 502 :
areaName = "Lazlo Mine Level 5";
objString = "1,,3,,wall_l||1,,18,,wall_l||2,,1,,spike||2,,3,,wall_l||2,,7,,lamp,,50>20>50||2,,18,,wall_l||3,,3,,wall_l||3,,18,,wall_l||3,,20,,spike||4,,3,,wall_l||4,,18,,wall_l||5,,3,,wall_l||5,,18,,wall_l||6,,3,,wall_l||6,,15,,lamp,,50>20>50||6,,18,,wall_l||7,,3,,wall_l||7,,18,,wall_l||7,,20,,fungus||8,,3,,wall_l||8,,18,,wall_l||9,,3,,wall_l||9,,7,,lamp,,50>20>50||9,,18,,wall_l||10,,3,,wall_l||10,,18,,wall_l||11,,3,,wall_l||11,,18,,wall_l||12,,3,,wall_l||12,,18,,wall_l||13,,3,,wall_l||13,,18,,wall_l||14,,3,,wall_l||14,,15,,lamp,,50>20>50||14,,18,,wall_l||15,,3,,wall_l||15,,18,,wall_l||16,,3,,wall_l||16,,18,,wall_l||16,,19,,spike||17,,1,,spike||17,,3,,wall_l||17,,7,,lamp,,50>20>50||17,,18,,wall_l||18,,3,,wall_l||18,,18,,wall_l||19,,3,,wall_l||19,,18,,wall_l||20,,3,,wall_l||20,,18,,wall_l||20,,20,,spike||21,,3,,wall_l||21,,18,,wall_l";
makeObjectsArray(objString);
standardPathway("left", 503);
standardPathway("right", 501);
break;
case 503 :
areaName = "Lazlo Mine Level 5";
objString = "1,,14,,fungus||2,,5,,fungus||2,,6,,fungus||4,,3,,wall_r||4,,4,,wall_r||4,,5,,wall_r||4,,6,,wall_r||4,,7,,wall_r||4,,8,,wall_r||4,,9,,wall_r||4,,10,,wall_r||4,,11,,wall_r||4,,12,,wall_r||4,,13,,wall_r||4,,14,,wall_r||4,,15,,wall_r||4,,16,,wall_r||4,,17,,wall_r||4,,18,,wall_r||4,,20,,fungus||5,,1,,fungus||5,,3,,wall_l||5,,18,,wall_l||5,,20,,fungus||5,,21,,fungus||6,,1,,fungus||6,,3,,wall_l||6,,18,,wall_l||7,,3,,wall_l||7,,18,,wall_l||8,,3,,wall_l||8,,18,,wall_l||9,,3,,wall_l||9,,18,,wall_l||10,,3,,wall_l||10,,18,,wall_l||11,,3,,wall_l||11,,18,,wall_l||12,,3,,wall_l||12,,18,,wall_l||13,,3,,wall_l||13,,18,,wall_l||14,,3,,wall_l||14,,18,,wall_l||15,,3,,wall_l||15,,18,,wall_l||15,,20,,fungus||16,,3,,wall_l||16,,18,,wall_l||17,,3,,wall_l||17,,7,,lamp,,50>20>50||17,,14,,lamp,,50>20>50||17,,18,,wall_l||18,,3,,wall_l||18,,18,,wall_l||18,,20,,fungus||19,,3,,wall_l||19,,18,,wall_l||19,,20,,fungus||20,,3,,wall_l||20,,7,,lamp,,50>20>50||20,,14,,lamp,,50>20>50||20,,18,,wall_l||21,,3,,wall_r||21,,18,,wall_r";
makeObjectsArray(objString);
standardPathway("right", 502);
standardPathway("center", 504, undefined, "lift_up");
break;
case 504 :
areaName = "Lazlo Mine Secret Entrance";
areaTerrain = "jungle";
areaMusic = "jungle";
objString = "3,,2,,Grass||3,,19,,Fern||4,,5,,Fern||6,,18,,Grass||8,,17,,Boulder||12,,19,,Fern||15,,3,,Boulder||16,,15,,Grass||16,,17,,Boulder||16,,18,,Boulder||18,,4,,Grass||18,,6,,Fern";
makeObjectsArray(objString);
standardPathway("left", -1, 12);
standardPathway("center", 503, undefined, "lift_down");
bgGraphics(areaTerrain, "jungle", "", "jungle", "", areaTerrain);
bgColour();
}
bgMusic(areaMusic);
}
function map12(area) {
areaCharType = "maw";
clearWorld("Blank");
areaName = "Ancient Ruins";
areaTerrain = "jungle";
areaMusic = "jungle";
encounterRate = "NONSAVE";
mapLocation = 12;
areaLocation = area;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
switch (area) {
case 1 :
objString = "1,,8,,wall_l||1,,13,,wall_l||2,,1,,wall_l||2,,2,,wall_l||2,,8,,wall_l||2,,13,,wall_l||2,,19,,wall_l||3,,1,,wall_l||3,,8,,wall_r||3,,9,,wall_r||3,,10,,wall_r||3,,11,,wall_r||3,,12,,wall_r||3,,13,,wall_r||3,,16,,Grass||3,,17,,Grass||4,,5,,Grass||4,,6,,Grass||5,,11,,sign_r,,Access to ruins blocked.||5,,19,,wall_l||6,,2,,wall_l||6,,18,,wall_l||6,,19,,wall_l||6,,20,,wall_l||7,,2,,wall_l||7,,12,,Grass||7,,18,,wall_l||8,,2,,wall_l||8,,8,,Grass||8,,9,,Grass||8,,10,,Grass||8,,18,,wall_l||9,,2,,wall_l||9,,17,,wall_l||10,,2,,wall_l||10,,12,,Grass||10,,13,,Grass||11,,17,,wall_l||12,,1,,wall_r||12,,2,,wall_r||12,,3,,wall_r||12,,4,,wall_r||12,,16,,wall_r||12,,17,,wall_r||12,,18,,wall_r||12,,19,,wall_r||12,,20,,wall_r||12,,21,,wall_r||13,,4,,wall_r||13,,5,,wall_r||13,,6,,wall_r||13,,13,,wall_r||13,,14,,wall_r||13,,15,,wall_r||13,,16,,wall_r||14,,6,,wall_r||14,,7,,wall_r||14,,8,,wall_r||14,,13,,wall_r||16,,13,,Grass||16,,20,,Fern||17,,15,,Grass||17,,16,,Grass||17,,17,,Grass||18,,8,,Grass||19,,5,,Fern";
makeObjectsArray(objString);
standardPathway("left", 2);
standardPathway("right", -1, 11);
bgGraphics(areaTerrain, "", "", "sea", "", areaTerrain);
break;
case 2 :
standardPathway("right", 1);
}
}
function generateNewChar(newChar, newX, newZ, type, state, displayName) {
charCount++;
buildCharacter("n" + charCount, world.path, newChar);
world["n" + charCount].char = newChar;
world["n" + charCount].type = type;
world["n" + charCount].tempx = newX;
world["n" + charCount].tempz = newZ;
world["n" + charCount].moving = false;
world["n" + charCount].walkTime = 100;
world["n" + charCount].action = "walking";
world["n" + charCount].walkDir = random(8) + 1;
floor["n" + charCount].onEnterFrame = function () {
moveCharacter(this._name);
detectObjects(this._name);
positionCharacter(this._name);
if (state == "moving") {
AI(this._name);
}
};
floor["n" + charCount].onRollOver = function () {
txter = displayName;
point = new Object();
point.x = _x;
point.y = _y;
this.localToGlobal(point);
txtbubble.popup_text(txter, 60, "0xFFCC99", point.x + 30, point.y - 30, 0, 0, "hide");
txtbubble.settimer(40);
};
floor["n" + charCount].onRelease = function () {
if ((Math.abs(_level0.floor[player]._x - _level0.floor[this._name]._x) < 50) && (Math.abs(_level0.floor[player]._y - _level0.floor[this._name]._y) < 50)) {
_level0.worldMenu._visible = false;
_level0.talkingSystem.chatActivate(_level0.talkingSystem[newChar + "_1"]);
_level0.talkingSystem._visible = true;
_global.action = "talking";
} else {
txter = "Too far!";
point = new Object();
point.x = _x;
point.y = _y;
this.localToGlobal(point);
txtbubble.popup_text(txter, 50, "0xFFCCCC", point.x + 30, point.y - 30, 0, 0, "hide");
txtbubble.settimer(40);
}
};
}
function AI(char) {
if (world[char].action == "walking") {
if (world[char].walkTime < 0) {
world[char].walkTime = 30 + random(30);
world[char].walkDir = random(50);
switch (world[char].walkDir) {
case 1 :
_root.AIworldClicked(char, world[char].clip._x + 50, world[char].clip._y + 25);
break;
case 2 :
break;
case 3 :
_root.AIworldClicked(char, world[char].clip._x + 50, world[char].clip._y - 25);
break;
case 4 :
break;
case 5 :
_root.AIworldClicked(char, world[char].clip._x - 50, world[char].clip._y - 25);
break;
case 6 :
break;
case 7 :
_root.AIworldClicked(char, world[char].clip._x - 50, world[char].clip._y + 25);
break;
case 8 :
break;
}
}
world[char].walkTime--;
}
}
function buildWorld(floorx, floorz) {
world = new Object();
world.maxx = floorx;
world.maxz = floorz;
world.cellWidth = 29;
world.width = floorx * world.cellWidth;
world.length = (-floorz) * world.cellWidth;
world.path = floor;
buildFloor(floor, floorx, floorz);
charCount = 0;
buildCharacter(player, floor);
}
function buildCharacter(char, path, charClip) {
world[char] = new Object();
world[char].tempx = 100;
world[char].tempy = 0;
world[char].tempz = -100;
world[char].speed = 6;
world[char].feeler = 10;
world[char].width = 10;
world[char].xmov = 0;
world[char].ymov = 0;
world[char].zmov = 0;
world[char].moving = false;
world[char].frame = -1;
path.attachMovie("worldChar", char, 100 + charCount);
world[char].clip = path[char];
world[char].clip.gotoAndStop(charClip);
positionCharacter(char);
}
function positionCharacter(char) {
world[char].x = world[char].tempx;
world[char].y = world[char].tempy;
world[char].z = world[char].tempz;
var _local2 = iso.mapToScreen(world[char].x, world[char].y, world[char].z);
world[char].clip._x = _local2[0];
world[char].clip._y = _local2[1];
}
function buildFloor(path, floorx, floorz) {
path.tile._visible = false;
world.tiles = [];
var _local6 = 0;
var _local2 = 1;
while (_local2 <= floorx) {
var _local1 = 1;
while (_local1 <= floorz) {
if (_local2 == 1) {
world.tiles[_local1] = [];
}
var _local9 = iso.calculateDepth(_local1, _local6, _local2);
var _local3 = (("cell" + _local1) + "_") + _local2;
path.attachMovie("tile", _local3, _local9);
var _local4 = path[_local3];
world.tiles[_local1][_local2] = {x:_local1, y:_local6, z:_local2, depth:_local9, clip:_local4};
var _local7 = (_local1 - 1) * world.cellWidth;
var _local5 = (-(_local2 - 1)) * world.cellWidth;
temp = iso.mapToScreen(_local7, _local6, _local5);
_local4._x = temp[0];
_local4._y = temp[1];
_local1++;
}
_local2++;
}
}
function clearWorld(tileSet) {
world.char.frame = -1;
if (areaCharType == "pilot") {
world[player].clip.gotoAndStop(selectedPilot);
} else {
world[player].clip.gotoAndStop(selectedMaw);
}
var _local2 = 0;
while (_local2 <= maxx) {
var _local1 = 0;
while (_local1 <= maxz) {
world.tiles[_local2 + 1][_local1 + 1].property = undefined;
world.tiles[_local2 + 1][_local1 + 1].type = undefined;
world.tiles[_local2 + 1][_local1 + 1].isObject = false;
world.tiles[_local2 + 1][_local1 + 1].clip.objects.gotoAndStop(1);
world.tiles[_local2 + 1][_local1 + 1].isPathway = false;
world.tiles[_local2 + 1][_local1 + 1].destination = -1;
world.tiles[_local2 + 1][_local1 + 1].neighbour = undefined;
world.tiles[_local2 + 1][_local1 + 1].destinationPositX = undefined;
world.tiles[_local2 + 1][_local1 + 1].destinationPositZ = undefined;
world.tiles[_local2 + 1][_local1 + 1].clip.innerTile.gotoAndStop(tileSet);
delete world.tiles[_local2 + 1][_local1 + 1].clip.onRelease;
_local1++;
}
_local2++;
}
bgLeft.gotoAndStop("blank");
bgRight.gotoAndStop("blank");
bgUp.gotoAndStop("blank");
bgDown.gotoAndStop("blank");
i = 0;
while (i <= 20) {
floor["n" + i].removeMovieClip();
i++;
}
charCount = 0;
}
function makeObject(x, z, object, property) {
world.tiles[x + 1][z + 1].isObject = true;
world.tiles[x + 1][z + 1].type = object;
world.tiles[x + 1][z + 1].property = property;
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(object);
switch (object) {
case "lamp" :
var _local3 = new Color(world.tiles[x + 1][z + 1].clip.objects.clip);
var _local2 = property.split(">");
_local3.setTransform({ra:_local2[0], rb:0, ga:_local2[1], gb:0, ba:_local2[2], bb:0, aa:100, ab:0});
break;
case "sign_l" :
case "sign_r" :
world.tiles[x + 1][z + 1].clip.onRelease = function () {
if ((Math.abs(this._x - world[player].clip._x) < 50) && (Math.abs(this._y - world[player].clip._y) < 50)) {
actionReadSign(x + 1, z + 1);
}
};
break;
case "Grass" :
world.tiles[x + 1][z + 1].clip.onRelease = function () {
if ((Math.abs(this._x - world[player].clip._x) < 50) && (Math.abs(this._y - world[player].clip._y) < 50)) {
actionCutGrass(x + 1, z + 1);
}
};
break;
case "rock" :
world.tiles[x + 1][z + 1].clip.objects.clip.gotoAndStop(1);
world.tiles[x + 1][z + 1].clip.onRelease = function () {
if ((Math.abs(this._x - world[player].clip._x) < 50) && (Math.abs(this._y - world[player].clip._y) < 50)) {
actionBlastRock(x + 1, z + 1);
}
};
break;
case "plasmarock" :
if (random(100) <= 20) {
world.tiles[x + 1][z + 1].clip.objects.clip.gotoAndStop(1);
world.tiles[x + 1][z + 1].clip.onRelease = function () {
if ((Math.abs(this._x - world[player].clip._x) < 50) && (Math.abs(this._y - world[player].clip._y) < 50)) {
actionTakePlasmarock(x + 1, z + 1);
}
};
} else {
world.tiles[x + 1][z + 1].isObject = false;
world.tiles[x + 1][z + 1].type = undefined;
world.tiles[x + 1][z + 1].property = undefined;
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(1);
}
break;
case "boss" :
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(property);
world.tiles[x + 1][z + 1].clip.onRelease = function () {
if ((Math.abs(this._x - world[player].clip._x) < 50) && (Math.abs(this._y - world[player].clip._y) < 50)) {
actionFightBoss(x + 1, z + 1);
}
};
break;
case "chair" :
}
}
function makeManyObjects(x, xnum, z, znum, object) {
var _local2 = 0;
while (_local2 < xnum) {
var _local1 = 0;
while (_local1 < znum) {
makeObject(x + _local2, z + _local1, object);
_local1++;
}
_local2++;
}
}
function makeObjectsArray(objString) {
var _local2 = objString.split("||");
var _local1 = 0;
while (_local1 <= _local2.length) {
obj = _local2[_local1].split(",,");
makeObject(parseInt(obj[0]), parseInt(obj[1]), obj[2], obj[3]);
_local1++;
}
}
function makeTilesArray(tileString) {
var _local2 = tileString.split("||");
var _local1 = 0;
while (_local1 <= _local2.length) {
tile = _local2[_local1].split(",,");
world.tiles[parseInt(tile[0]) + 1][parseInt(tile[1]) + 1].clip.innerTile.gotoAndStop(tile[2]);
_local1++;
}
}
function makeLargeObject(x, xnum, z, znum, object, dir) {
if (dir == "l") {
makeManyObjects(x - 1, xnum + 1, z - 1, znum + 1, "Blank");
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(object);
} else {
makeManyObjects((x + 3) - xnum, xnum, (z + 1) - znum, znum, "Blank");
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(object);
}
}
function makePathway(x, z, destination, destinationPositX, destinationPositZ, neighbour, special) {
world.tiles[x + 1][z + 1].isObject = false;
world.tiles[x + 1][z + 1].isPathway = true;
world.tiles[x + 1][z + 1].destination = destination;
if (special == undefined) {
switch (destination) {
case -1 :
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop("MapPathway");
world.tiles[x + 1][z + 1].neighbour = neighbour;
break;
default :
world.tiles[x + 1][z + 1].destinationPositX = destinationPositX;
world.tiles[x + 1][z + 1].destinationPositZ = destinationPositZ;
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop("Pathway");
}
} else {
world.tiles[x + 1][z + 1].destinationPositX = destinationPositX;
world.tiles[x + 1][z + 1].destinationPositZ = destinationPositZ;
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop(special);
}
}
function standardPathway(dir, destination, neighbour, specialtile) {
switch (dir) {
case "up" :
makePathway(10, 0, destination, 315, -580, neighbour);
makePathway(11, 0, destination, 315, -580, neighbour);
break;
case "down" :
makePathway(10, 21, destination, 315, -60, neighbour);
makePathway(11, 21, destination, 315, -60, neighbour);
break;
case "left" :
makePathway(0, 10, destination, 580, -310, neighbour);
makePathway(0, 11, destination, 580, -310, neighbour);
break;
case "right" :
makePathway(21, 10, destination, 70, -310, neighbour);
makePathway(21, 11, destination, 70, -310, neighbour);
break;
case "center" :
makePathway(10, 10, destination, 315, -260, neighbour, specialtile);
}
}
function changeGroundTile(x, z, object) {
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop(object);
}
function changeManyGroundTiles(x, xnum, z, znum, object) {
var _local2 = 0;
while (_local2 < xnum) {
var _local1 = 0;
while (_local1 < znum) {
world.tiles[(x + _local2) + 1][(z + _local1) + 1].clip.innerTile.gotoAndStop(object);
_local1++;
}
_local2++;
}
}
function changeSurroundBlank(x, z) {
var _local1 = 1;
while (_local1 <= maxx) {
var _local3 = 1;
while (_local3 <= x) {
world.tiles[_local1][_local3].isObject = true;
world.tiles[_local1][_local3].clip.innerTile.gotoAndStop("Blank");
world.tiles[_local1][(maxx + 1) - _local3].isObject = true;
world.tiles[_local1][(maxx + 1) - _local3].clip.innerTile.gotoAndStop("Blank");
_local3++;
}
var _local2 = 1;
while (_local2 <= z) {
world.tiles[_local2][_local1].isObject = true;
world.tiles[_local2][_local1].clip.innerTile.gotoAndStop("Blank");
world.tiles[(maxx + 1) - _local2][_local1].isObject = true;
world.tiles[(maxx + 1) - _local2][_local1].clip.innerTile.gotoAndStop("Blank");
_local2++;
}
_local1++;
}
}
function mapAction() {
var _local4 = world[player].tempx + world[player].feelerx;
var _local3 = Math.abs(world[player].tempz + world[player].feelerz);
var _local1 = Math.ceil(_local4 / world.cellWidth);
var _local2 = Math.ceil(_local3 / world.cellWidth);
if (world.tiles[_local1][_local2].isObject) {
mapActionCheck(_local1, _local2);
}
switch (world[player].frame) {
case 1 :
_local1++;
break;
case 2 :
_local1++;
_local2--;
break;
case 3 :
_local2--;
break;
case 4 :
_local1--;
_local2--;
break;
case 5 :
_local1--;
break;
case 6 :
_local1--;
_local2++;
break;
case 7 :
_local2++;
break;
case 8 :
_local1++;
_local2++;
}
if (world.tiles[_local1][_local2].isObject) {
mapActionCheck(_local1, _local2);
}
}
function mapActionCheck(x_tile, z_tile) {
switch (world.tiles[x_tile][z_tile].type) {
case "sign_l" :
case "sign_r" :
actionReadSign(x_tile, z_tile);
break;
case "Grass" :
actionCutGrass(x_tile, z_tile);
break;
case "rock" :
actionBlastRock(x_tile, z_tile);
break;
case "Chest" :
actionOpenChest(x_tile, z_tile);
break;
case "boss" :
actionFightBoss(x_tile, z_tile);
break;
case "chair" :
}
}
function bgColour(colour) {
switch (colour) {
case "Dark" :
c = new Color(skyColor);
c.setTransform({ra:0, rb:0, ga:0, gb:0, ba:0, bb:0, aa:100, ab:0});
break;
default :
mydate = new Date();
h = mydate.getHours();
if ((h > 6) && (h < 14)) {
skyColor.gotoAndStop("morning");
} else if ((h >= 14) && (h < 18)) {
skyColor.gotoAndStop("afternoon");
} else {
skyColor.gotoAndStop("night");
}
c = new Color(skyColor);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
}
}
function charAreaPosition(dir, x, z) {
switch (dir) {
case "left" :
world[player].tempx = 70;
world[player].tempz = -310;
break;
case "right" :
world[player].tempx = 580;
world[player].tempz = -310;
break;
case "up" :
world[player].tempx = 315;
world[player].tempz = -60;
break;
case "down" :
world[player].tempx = 315;
world[player].tempz = -580;
break;
case "custom" :
world[player].tempx = 200;
world[player].tempz = -500;
}
}
function mapPositor() {
trace("**mapPositor**");
trace("mapLocation: " + mapLocation);
trace("mapLastPosit: " + mapLastPosit);
switch (mapLocation) {
case 1 :
charAreaPosition("down");
map1(1);
return;
case 2 :
switch (mapLastPosit) {
case 1 :
charAreaPosition("up");
map2(1);
break;
case 3 :
charAreaPosition("right");
map2(3);
break;
case 4 :
charAreaPosition("left");
map2(7);
break;
case 5 :
charAreaPosition("down");
map2(22);
break;
case 6 :
charAreaPosition("right");
map2(15);
break;
case 11 :
charAreaPosition("left");
map2(20);
}
return;
case 3 :
charAreaPosition("down");
map3(18);
return;
case 4 :
charAreaPosition("right");
map4(1);
return;
case 5 :
charAreaPosition("up");
map5(1);
return;
case 6 :
switch (mapLastPosit) {
case 2 :
charAreaPosition("left");
map6(1);
break;
case 7 :
charAreaPosition("right");
map6(1);
}
return;
case 7 :
switch (mapLastPosit) {
case 6 :
charAreaPosition("left");
map7(1);
break;
case 8 :
charAreaPosition("up");
map7(1);
}
return;
case 8 :
switch (mapLastPosit) {
case 7 :
charAreaPosition("down");
map8(1);
break;
case 9 :
charAreaPosition("left");
map8(1);
break;
case 10 :
charAreaPosition("right");
map8(1);
}
return;
case 9 :
charAreaPosition("right");
map9(1);
return;
case 10 :
charAreaPosition("left");
map10(1);
return;
case 11 :
switch (mapLastPosit) {
case 2 :
charAreaPosition("right");
map11(1);
break;
case 12 :
charAreaPosition("left");
map11(504);
}
return;
case 12 :
charAreaPosition("right");
map12(1);
}
}
function actionCutGrass(x_tile, z_tile) {
playSound("cut");
if (random(10) == 0) {
world.tiles[x_tile][z_tile].type = "Chest";
world.tiles[x_tile][z_tile].clip.objects.gotoAndStop("chest_closed");
world.tiles[x_tile][z_tile].credits = random(chestCredits) + 1;
world.tiles[x_tile][z_tile].clip.onRelease = function () {
if ((Math.abs(this._x - world[player].clip._x) < 50) && (Math.abs(this._y - world[player].clip._y) < 50)) {
actionOpenChest(x_tile, z_tile);
}
};
} else {
world.tiles[x_tile][z_tile].isObject = false;
world.tiles[x_tile][z_tile].type = "";
delete world.tiles[x_tile][z_tile].clip.onRelease;
world.tiles[x_tile][z_tile].clip.objects.gotoAndStop(1);
}
}
function actionBlastRock(x_tile, z_tile) {
var _local2 = _level0.getActiveCharacters();
var _local5 = false;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].getAttribute("id") == "A002") {
_local5 = true;
}
_local1++;
}
if (_local5) {
playSound("blast");
world.tiles[x_tile][z_tile].isObject = false;
world.tiles[x_tile][z_tile].type = "";
delete world.tiles[x_tile][z_tile].clip.onRelease;
world.tiles[x_tile][z_tile].clip.objects.clip.play();
} else {
txter = "You need a different MaW to blast this rock.";
point = new Object();
point.x = world.tiles[x_tile][z_tile].clip.objects._x;
point.y = world.tiles[x_tile][z_tile].clip.objects._y;
world.tiles[x_tile][z_tile].clip.objects.localToGlobal(point);
txtbubble.popup_text(txter, 150, "0xD6E1E9", point.x, point.y + 70, world.tiles[x_tile][z_tile].clip.objects._width, world.tiles[x_tile][z_tile].clip.objects._height);
txtbubble.settimer(50);
}
}
function actionTakePlasmarock(x_tile, z_tile) {
if (_level0.addItem("I006Q", 1) == "SUCCESS") {
playSound("grab");
world.tiles[x_tile][z_tile].isObject = false;
world.tiles[x_tile][z_tile].type = "";
delete world.tiles[x_tile][z_tile].clip.onRelease;
world.tiles[x_tile][z_tile].clip.objects.gotoAndStop(1);
populate_inventory();
txter = "1 Plasmarock obtained!";
point = new Object();
point.x = world.tiles[x_tile][z_tile].clip.objects._x;
point.y = world.tiles[x_tile][z_tile].clip.objects._y;
world.tiles[x_tile][z_tile].clip.objects.localToGlobal(point);
txtbubble.popup_text(txter, 150, "0xD6E1E9", point.x, point.y + 70, world.tiles[x_tile][z_tile].clip.objects._width, world.tiles[x_tile][z_tile].clip.objects._height);
txtbubble.settimer(50);
} else {
playSound("error");
txter = "Inventory full!";
point = new Object();
point.x = world.tiles[x_tile][z_tile].clip.objects._x;
point.y = world.tiles[x_tile][z_tile].clip.objects._y;
world.tiles[x_tile][z_tile].clip.objects.localToGlobal(point);
txtbubble.popup_text(txter, 150, "0xD6E1E9", point.x, point.y + 70, world.tiles[x_tile][z_tile].clip.objects._width, world.tiles[x_tile][z_tile].clip.objects._height);
txtbubble.settimer(50);
}
}
function actionOpenChest(x_tile, z_tile) {
world.tiles[x_tile][z_tile].type = undefined;
world.tiles[x_tile][z_tile].isObject = false;
world.tiles[x_tile][z_tile].clip.objects.gotoAndStop("chest_opened");
delete world.tiles[x_tile][z_tile].clip.onRelease;
playSound("cash");
txter = ("You have found " + world.tiles[x_tile][z_tile].credits) + " credits!";
setCredits(world.tiles[x_tile][z_tile].credits + getCredits());
inventory.credits.text = getCredits();
point = new Object();
point.x = world.tiles[x_tile][z_tile].clip.objects._x;
point.y = world.tiles[x_tile][z_tile].clip.objects._y;
world.tiles[x_tile][z_tile].clip.objects.localToGlobal(point);
txtbubble.popup_text(txter, 150, "0xD6E1E9", point.x, point.y + 70, world.tiles[x_tile][z_tile].clip.objects._width, world.tiles[x_tile][z_tile].clip.objects._height);
txtbubble.settimer(50);
}
function actionReadSign(x_tile, z_tile) {
txter = world.tiles[x_tile][z_tile].property;
point = new Object();
point.x = world.tiles[x_tile][z_tile].clip.objects._x;
point.y = world.tiles[x_tile][z_tile].clip.objects._y;
world.tiles[x_tile][z_tile].clip.objects.localToGlobal(point);
txtbubble.popup_text(txter, 150, "0xD6E1E9", point.x, point.y + 70, world.tiles[x_tile][z_tile].clip.objects._width, world.tiles[x_tile][z_tile].clip.objects._height);
txtbubble.settimer(50);
}
function actionSit_key(target) {
if ((Math.abs(target._x - world[player].clip._x) < 30) && (Math.abs(target._y - world[player].clip._y) < 30)) {
world[player].moving = false;
world[player].clip.char.gotoAndStop("sit");
var _local2 = iso.mapToIsoWorld(target._x, target._y);
var _local4 = _local2[0];
var _local3 = _local2[1];
world[player].tempx = _local4;
world[player].tempz = _local3;
positionCharacter(player);
if (world[player].clip.getDepth() < target.getDepth()) {
}
}
}
function actionSit_mouse() {
if ((Math.abs(this._x - world[player].clip._x) < 30) && (Math.abs(this._y - world[player].clip._y) < 30)) {
world[player].moving = false;
world[player].clip.char.gotoAndStop("sit");
var _local2 = iso.mapToIsoWorld(this._x, this._y);
var _local4 = _local2[0];
var _local3 = _local2[1];
world[player].tempx = _local4;
world[player].tempz = _local3;
positionCharacter(player);
if (world[player].clip.getDepth() < this.getDepth()) {
}
}
}
function actionFightBoss(x_tile, z_tile) {
world.tiles[x_tile][z_tile].type = undefined;
world.tiles[x_tile][z_tile].isObject = false;
world.tiles[x_tile][z_tile].clip.objects.gotoAndStop("blank");
delete world.tiles[x_tile][z_tile].clip.onRelease;
startCombat("scrapyard_boss");
}
mapActionKeyList = new Object();
mapActionKeyList.onKeyUp = function () {
if (Key.getCode() == 32) {
if (_global.action == "walking") {
mapAction();
}
}
};
Key.addListener(mapActionKeyList);
function worldClicked(char, xm, ym) {
var _local7 = iso.mapToIsoWorld(xm, ym);
xm = _local7[0];
var _local3 = _local7[1];
if (_global.action == "walking") {
if ((((xm >= 0) && (xm <= world.width)) && (_local3 >= world.length)) && (_local3 <= 0)) {
var _local13 = world[char].x;
var _local12 = world[char].z;
world[char].startx = _local13;
world[char].startz = _local12;
world[char].endx = xm;
world[char].endz = _local3;
var _local8 = 45;
var _local6 = Math.atan2(_local3 - _local12, xm - _local13);
var _local5 = (_local6 * 180) / Math.PI;
_local5 = _local5 + (_local8 / 2);
if (_local5 < 0) {
_local5 = _local5 + 360;
}
var _local9 = Math.ceil(_local5 / _local8);
world[char].clip.char.gotoAndStop("walk" + _local9);
world[char].frame = _local9;
world[char].moving = true;
var _local11 = Math.cos(_local6);
var _local10 = Math.sin(_local6);
world[char].xmov = world[char].speed * _local11;
world[char].zmov = world[char].speed * _local10;
world[char].feelerx = world[char].feeler * _local11;
world[char].feelerz = world[char].feeler * _local10;
}
}
}
function AIworldClicked(char, xm, ym) {
var _local7 = iso.mapToIsoWorld(xm, ym);
xm = _local7[0];
var _local3 = _local7[1];
if (_global.action == "walking") {
if ((((xm >= 0) && (xm <= world.width)) && (_local3 >= world.length)) && (_local3 <= 0)) {
var _local13 = world[char].x;
var _local12 = world[char].z;
world[char].startx = _local13;
world[char].startz = _local12;
world[char].endx = xm;
world[char].endz = _local3;
var _local8 = 45;
var _local6 = Math.atan2(_local3 - _local12, xm - _local13);
var _local5 = (_local6 * 180) / Math.PI;
_local5 = _local5 + (_local8 / 2);
if (_local5 < 0) {
_local5 = _local5 + 360;
}
var _local9 = Math.ceil(_local5 / _local8);
world[char].clip.char.gotoAndStop("walk" + _local9);
world[char].frame = _local9;
world[char].moving = true;
var _local11 = Math.cos(_local6);
var _local10 = Math.sin(_local6);
world[char].xmov = world[char].speed * _local11;
world[char].zmov = world[char].speed * _local10;
world[char].feelerx = world[char].feeler * _local11;
world[char].feelerz = world[char].feeler * _local10;
}
}
}
function moveCharacter(char) {
if (world[char].moving) {
if (char == player) {
encounter(encounterRate);
}
world[char].tempx = world[char].x + world[char].xmov;
world[char].tempy = world[char].y + world[char].ymov;
world[char].tempz = world[char].z + world[char].zmov;
var _local5 = world[char].startx;
var _local4 = world[char].startz;
var _local3 = world[char].endx;
var _local2 = world[char].endz;
var _local7 = world[char].tempx;
var _local6 = world[char].tempz;
if (((((_local3 - _local5) != 0) && ((_local3 - _local7) != 0)) && ((_local2 - _local4) != 0)) && ((_local2 - _local6) != 0)) {
if ((((_local3 - _local5) / Math.abs(_local3 - _local5)) != ((_local3 - _local7) / Math.abs(_local3 - _local7))) || (((_local2 - _local4) / Math.abs(_local2 - _local4)) != ((_local2 - _local6) / Math.abs(_local2 - _local6)))) {
world[char].moving = false;
world[char].xmov = 0;
world[char].zmov = 0;
world[char].tempx = _local3;
world[char].tempz = _local2;
world[char].clip.char.gotoAndStop("stand" + world[char].frame);
}
}
}
}
function encounter(encounterRate) {
if ((encounterRate != 0) && (encounterRate != "NONSAVE")) {
chance--;
trace(chance);
if (chance <= 0) {
chance = random(500) + 100;
startCombat();
world[player].moving = false;
world[player].clip.char.gotoAndStop("stand" + world[player].frame);
}
}
}
function detectObjects(char, type) {
var _local9 = world[char].tempx + world[char].feelerx;
var _local8 = Math.abs(world[char].tempz + world[char].feelerz);
var _local4 = Math.ceil(_local9 / world.cellWidth);
var _local5 = Math.ceil(_local8 / world.cellWidth);
if (!world.tiles[_local4][_local5].isObject) {
_local9 = world[char].tempx;
_local8 = Math.abs(world[char].tempz);
_local4 = Math.ceil(_local9 / world.cellWidth);
_local5 = Math.ceil(_local8 / world.cellWidth);
var _local7 = world.tiles[_local4][_local5].depth + 1;
world[char].clip.swapDepths(_local7);
if (world.tiles[_local4][_local5].isPathway && (world[char].moving)) {
world[char].clip.char.gotoAndStop("stand" + world[char].frame);
world[char].moving = false;
if (type == "player") {
switch (world.tiles[_local4][_local5].destination) {
case -1 :
_global.action = "talking";
floor.mouseClickRegion._visible = false;
mapClip._visible = true;
mapLastPosit = world.tiles[_local4][_local5].neighbour;
trace("area: " + checkAreaLocked(world.tiles[_local4][_local5].neighbour));
if (!checkAreaLocked(world.tiles[_local4][_local5].neighbour)) {
unlockArea(world.tiles[_local4][_local5].neighbour);
}
mapClip.mapChar._x = mapClip["map" + mapLocation]._x;
mapClip.mapChar._y = mapClip["map" + mapLocation]._y + 20;
mapClip.refreshMap();
mapClip.moveable = true;
break;
case "repairstation" :
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop("stand7");
enterShop(world.tiles[_local4][_local5].destination);
break;
case "clothesShop" :
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop("stand7");
enterShop(world.tiles[_local4][_local5].destination);
break;
case "house01" :
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop("stand7");
enterShop(world.tiles[_local4][_local5].destination);
break;
case "inn" :
world[char].tempx = 195;
world[char].tempz = -250;
world[char].clip.char.gotoAndStop("stand1");
enterShop(world.tiles[_local4][_local5].destination);
break;
case "ronGarage" :
world[char].tempx = 195;
world[char].tempz = -485;
world[char].clip.char.gotoAndStop("stand1");
enterShop(world.tiles[_local4][_local5].destination);
break;
default :
world[player].tempx = world.tiles[_local4][_local5].destinationPositX;
world[player].tempz = world.tiles[_local4][_local5].destinationPositZ;
_root["map" + _root.mapLocation](world.tiles[_local4][_local5].destination);
}
}
}
} else if (world[char].moving) {
world[char].tempx = world[char].x;
world[char].tempz = world[char].z;
world[char].xmov = 0;
world[char].ymov = 0;
world[char].moving = false;
var _local6 = world[char].frame;
world[char].clip.char.gotoAndStop("stand" + _local6);
}
}
function captureKeys() {
if (Key.isDown(16)) {
trace("X: " + Math.round(world[player].tempx));
trace("Z: " + Math.round(world[player].tempz));
}
if (_global.action == "walking") {
xx = world[player].clip._x;
zz = world[player].clip._y;
if (Key.isDown(39)) {
xx = xx + xSize;
zz = zz + zSize;
worldClicked(player, xx, zz);
} else if (Key.isDown(37)) {
xx = xx - xSize;
zz = zz - zSize;
worldClicked(player, xx, zz);
} else if (Key.isDown(38)) {
xx = xx + xSize;
zz = zz - zSize;
worldClicked(player, xx, zz);
} else if (Key.isDown(40)) {
xx = xx - xSize;
zz = zz + zSize;
worldClicked(player, xx, zz);
}
}
}
maxx = 22;
maxz = 22;
iso = new isometricAS(maxx, maxz);
player = "playerChar";
buildWorld(maxx, maxz);
floor.mouseClickRegion.onRelease = function () {
_root.worldClicked(player, _root.floor._xmouse, _root.floor._ymouse);
};
xSize = 20;
zSize = 10;
function init_map() {
var _local4 = getActiveCharacters();
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].getAttribute("id") == "A001") {
heroName = _local4[_local3].getAttribute("name");
if (_local4[_local3].getAttribute("gender") == "M") {
selectedPilot = "jin";
} else {
selectedPilot = "yun";
}
}
_local3++;
}
selectedMaw = "luna";
if (!checkAreaLocked(1)) {
unlockArea(1);
}
if (!checkAreaLocked(2)) {
unlockArea(2);
}
currentMusic = -1;
if ((mapLocation == undefined) || (areaLocation == undefined)) {
error._visible = true;
} else {
error._visible = false;
}
_root["map" + mapLocation](parseInt(areaLocation));
world[player].tempx = parseInt(tx);
world[player].tempz = parseInt(tz);
_global.action = "walking";
_global.clicked = false;
talkingSystem._visible = false;
shopSystem._visible = false;
combatSceneClip._visible = false;
mapClip._visible = false;
levelUpMessage._visible = false;
help._visible = false;
}
reload_data();
init_map();
stop();
_root.onEnterFrame = function () {
moveCharacter(player);
detectObjects(player, "player");
positionCharacter(player);
captureKeys();
};
function bgMusic(newMusic) {
if (_global.musicSetting) {
if (currentMusic != newMusic) {
trace(newMusic);
if (newMusic == undefined) {
newMusic = _root.areaMusic;
}
currentMusic = newMusic;
stopAllSounds();
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
}
function battleMusic() {
if (_global.musicSetting) {
stopAllSounds();
currentMusic = "battle";
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
function playSound(s) {
_root.soundfx.gotoAndStop(1);
_root.soundfx.gotoAndPlay(s);
}
bgMusic();
function levelUp() {
levelUpMessage._visible = false;
levelUpMessage.leveluptxt.text = "";
var _local3 = _global.mainsave.getItemList("character");
var _local9 = false;
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = parseInt(_local3[_local2].getAttribute("level"));
var _local5 = parseInt(_local3[_local2].getAttribute("xp"));
var _local7 = parseInt(_local3[_local2].getAttribute("sp"));
var _local6 = xpNeeded(_local4);
trace(("Needs " + (_local6 - _local5)) + " xp more to level up.");
if (_local5 >= _local6) {
trace("Level up!");
playSound("levelup");
_local4++;
_local3[_local2].setAttribute("level", _local4);
_local7 = _local7 + 3;
_local3[_local2].setAttribute("sp", _local7);
var _local8 = _local3[_local2].getAttribute("name");
levelUpMessage.leveluptxt.text = levelUpMessage.leveluptxt.text + (((_local8 + " has reached level ") + _local4) + "!\n(+ 3 stats points)\n");
levelUpMessage._visible = true;
populate_inventory();
if (_local4 >= 20) {
_local9 = true;
}
}
_local2++;
}
if (_local9) {
levelUpMessage.overlevel._visible = true;
} else {
levelUpMessage.overlevel._visible = false;
}
}
function xpNeeded(levelNo) {
return(xpArray[levelNo - 1]);
}
function startCombat(bossSet) {
_global.action = "talking";
areaNameClip._visible = false;
worldMenu._visible = false;
floor._visible = false;
canopyClip._visible = false;
inventory._visible = false;
savebox._visible = false;
floor.mouseClickRegion._visible = false;
combatSceneClip.gotoAndPlay(2);
if (bossSet == undefined) {
combatSceneClip.msNum = encounterRate;
} else {
combatSceneClip.msNum = bossSet;
}
combatSceneClip._visible = true;
hero1 = new Object();
hero1.part1r = _global.part1r;
hero1.part1g = _global.part1g;
hero1.part1b = _global.part1b;
hero1.part2r = _global.part2r;
hero1.part2g = _global.part2g;
hero1.part2b = _global.part2b;
hero1.part3r = _global.part3r;
hero1.part3g = _global.part3g;
hero1.part3b = _global.part3b;
hero2 = new Object();
hero2.part1r = 150;
hero2.part1g = 120;
hero2.part1b = 30;
hero2.part2r = 125;
hero2.part2g = 120;
hero2.part2b = 120;
hero2.part3r = 35;
hero2.part3g = 35;
hero2.part3b = 110;
hero3 = new Object();
hero3.part1r = 140;
hero3.part1g = 100;
hero3.part1b = 60;
hero3.part2r = 150;
hero3.part2g = 90;
hero3.part2b = 10;
hero3.part3r = 90;
hero3.part3g = 45;
hero3.part3b = 0;
}
function endCombat() {
_global.action = "walking";
combatSceneClip._visible = false;
bgMusic();
worldMenu._visible = true;
bgDown._visible = true;
bgRight._visible = true;
bgUp._visible = true;
bgLeft._visible = true;
bg._visible = true;
areaNameClip._visible = true;
floor.mouseClickRegion._visible = true;
canopyClip._visible = true;
floor._visible = true;
clearInterval(_root.combatSceneClip.combatScene.IA);
combatSceneClip.gotoAndStop(1);
populate_inventory();
levelUp();
}
function quit() {
_global.option = undefined;
Key.removeListener(talkingSystem.keylist);
Key.removeListener(mapActionKeyList);
gotoAndStop (3);
}
Symbol 39 MovieClip [burrowstrike] Frame 50
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 87 MovieClip [drillmissile] Frame 50
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 103 MovieClip [beanspray] Frame 2
stop();
Symbol 103 MovieClip [beanspray] Frame 47
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 169 MovieClip [launcher] Frame 2
stop();
Symbol 169 MovieClip [launcher] Frame 63
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 170 MovieClip [laser] Frame 2
stop();
Symbol 170 MovieClip [laser] Frame 14
xplode1._xscale = 50;
xplode1._yscale = 50;
xplode2._xscale = 50;
xplode2._yscale = 50;
Symbol 170 MovieClip [laser] Frame 46
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 184 MovieClip [sharkBite] Frame 65
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 188 MovieClip [web] Frame 2
stop();
Symbol 188 MovieClip [web] Frame 14
xplode._xscale = 50;
xplode._yscale = 50;
Symbol 188 MovieClip [web] Frame 46
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 198 MovieClip [spark] Frame 31
stop();
Symbol 201 MovieClip [spiderAttack] Frame 32
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 202 MovieClip Frame 33
stop();
Symbol 203 MovieClip [cannon2] Frame 2
stop();
Symbol 203 MovieClip [cannon2] Frame 14
xplode1._xscale = 50;
xplode1._yscale = 50;
xplode2._xscale = 50;
xplode2._yscale = 50;
Symbol 203 MovieClip [cannon2] Frame 46
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 204 MovieClip [cannon] Frame 2
stop();
Symbol 204 MovieClip [cannon] Frame 14
xplode._xscale = 50;
xplode._yscale = 50;
Symbol 204 MovieClip [cannon] Frame 46
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 232 MovieClip [sniper] Frame 2
stop();
bullet._xscale = 150;
bullet._yscale = 150;
Symbol 232 MovieClip [sniper] Frame 36
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 236 MovieClip Frame 2
stop();
Symbol 237 MovieClip Frame 14
stop();
Symbol 238 MovieClip [shotgun1] Frame 2
stop();
bullet.gotoAndPlay(1);
bullet._xscale = 200;
bullet._yscale = 200;
Symbol 238 MovieClip [shotgun1] Frame 14
xplode._xscale = 50;
xplode._yscale = 50;
xplode2._xscale = 50;
xplode2._yscale = 50;
xplode3._xscale = 50;
xplode3._yscale = 50;
xplode4._xscale = 50;
xplode4._yscale = 50;
xplode5._xscale = 50;
xplode5._yscale = 50;
xplode6._xscale = 50;
xplode6._yscale = 50;
xplode._x = xplode._x + random(5);
xplode._x = xplode._x - random(10);
xplode._y = xplode._y + random(5);
xplode._y = xplode._y - random(10);
xplode2._x = xplode2._x + random(5);
xplode2._x = xplode2._x - random(10);
xplode2._y = xplode2._y + random(5);
xplode2._y = xplode2._y - random(10);
xplode3._x = xplode3._x + random(5);
xplode3._x = xplode3._x - random(10);
xplode3._y = xplode3._y + random(5);
xplode3._y = xplode3._y - random(10);
xplode4._x = xplode4._x + random(5);
xplode4._x = xplode4._x - random(10);
xplode4._y = xplode4._y + random(5);
xplode4._y = xplode4._y - random(10);
xplode5._x = xplode5._x + random(5);
xplode5._x = xplode5._x - random(10);
xplode5._y = xplode5._y + random(5);
xplode5._y = xplode5._y - random(10);
xplode6._x = xplode6._x + random(5);
xplode6._x = xplode6._x - random(10);
xplode6._y = xplode6._y + random(5);
xplode6._y = xplode6._y - random(10);
Symbol 238 MovieClip [shotgun1] Frame 36
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 239 MovieClip Frame 2
stop();
Symbol 240 MovieClip [gun1] Frame 2
stop();
bullet._xscale = 150;
bullet._yscale = 150;
Symbol 240 MovieClip [gun1] Frame 14
xplode._xscale = 75;
xplode._yscale = 75;
xplode._x = xplode._x + random(20);
xplode._x = xplode._x - random(30);
xplode._y = xplode._y + random(20);
xplode._y = xplode._y - random(30);
Symbol 240 MovieClip [gun1] Frame 36
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 241 MovieClip [spark1] Frame 1
center._xscale = 50;
center._yscale = 50;
Symbol 241 MovieClip [spark1] Frame 31
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 242 MovieClip [spark3] Frame 31
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 243 MovieClip Frame 16
stop();
Symbol 244 MovieClip [big_spark1] Frame 1
center._xscale = 70;
center._yscale = 70;
spread._xscale = 150;
spread._yscale = 150;
Symbol 244 MovieClip [big_spark1] Frame 35
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 245 MovieClip [spark2] Frame 16
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 268 MovieClip [bang] Frame 14
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 276 MovieClip [hitmiss] Frame 1
stop();
function showHit(damage) {
damageFinal = damage;
damageCount = 0.4 * damageFinal;
damageStep = Math.ceil(damageFinal / 20);
playFade = false;
shownFinal = false;
isCritical = false;
trace("testin " + damage);
this.gotoAndStop("default");
damageDisplay._visible = true;
}
function showCritical(damage) {
damageFinal = damage;
damageCount = 0.2 * damageFinal;
damageStep = Math.ceil(damageFinal / 20);
playFade = false;
shownFinal = false;
isCritical = true;
damageDisplay._visible = true;
this.gotoAndStop("default");
}
function miss() {
this.gotoAndPlay("miss");
}
function heal(damage) {
damageFinal = damage;
damageCount = 0.4 * damageFinal;
damageStep = Math.ceil(damageFinal / 20);
playFade = false;
shownFinal = false;
isCritical = false;
damageDisplay._visible = true;
this.gotoAndStop("healing");
}
function displayComplete() {
if (numType == "heal") {
_parent[owner].lifeGet(getDmg);
} else {
_parent[owner].lifeLoss(getDmg);
}
this.removeMovieClip();
}
Symbol 276 MovieClip [hitmiss] Frame 2
stop();
this.onEnterFrame = function () {
if (!playFade) {
if (!shownFinal) {
if (damageCount < damageFinal) {
damageCount = damageCount + damageStep;
damageDisplay.text = Math.round(damageCount);
} else {
shownFinal = true;
damageDisplay.text = damageFinal;
}
} else {
shownFinal = false;
playFade = true;
if (isCritical) {
this.gotoAndPlay("critical");
} else {
this.gotoAndPlay("flashFinal");
}
}
}
};
Symbol 276 MovieClip [hitmiss] Frame 10
ddHolder.damageDisplay.text = damageFinal;
Symbol 276 MovieClip [hitmiss] Frame 32
displayComplete();
stop();
Symbol 276 MovieClip [hitmiss] Frame 33
ddHolder.damageDisplay.text = damageFinal;
damageDisplay.text = damageFinal;
Symbol 276 MovieClip [hitmiss] Frame 72
displayComplete();
stop();
Symbol 276 MovieClip [hitmiss] Frame 88
displayComplete();
stop();
Symbol 276 MovieClip [hitmiss] Frame 104
stop();
showHit(getDmg);
Symbol 276 MovieClip [hitmiss] Frame 105
stop();
showCritical(getDmg);
Symbol 276 MovieClip [hitmiss] Frame 106
stop();
miss();
Symbol 296 MovieClip [phasebat] Frame 1
stop();
Symbol 296 MovieClip [phasebat] Frame 10
_parent.startAttack();
Symbol 296 MovieClip [phasebat] Frame 23
stop();
_parent.endAttack();
Symbol 296 MovieClip [phasebat] Frame 24
_parent.startAttack();
Symbol 296 MovieClip [phasebat] Frame 44
stop();
_parent.endAttack();
Symbol 296 MovieClip [phasebat] Frame 45
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 296 MovieClip [phasebat] Frame 64
gotoAndPlay ("move");
Symbol 296 MovieClip [phasebat] Frame 87
_parent._visible = false;
gotoAndStop (1);
Symbol 317 MovieClip [drillfiend] Frame 1
stop();
Symbol 317 MovieClip [drillfiend] Frame 10
_parent.startAttack();
Symbol 317 MovieClip [drillfiend] Frame 35
stop();
_parent.endAttack();
Symbol 317 MovieClip [drillfiend] Frame 36
_parent.startAttack();
Symbol 317 MovieClip [drillfiend] Frame 90
stop();
_parent.endAttack();
Symbol 317 MovieClip [drillfiend] Frame 91
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 317 MovieClip [drillfiend] Frame 103
gotoAndPlay ("move");
Symbol 317 MovieClip [drillfiend] Frame 112
gotoAndPlay ("move");
Symbol 317 MovieClip [drillfiend] Frame 135
_parent._visible = false;
gotoAndStop (1);
Symbol 321 MovieClip [hermitshark] Frame 1
stop();
Symbol 321 MovieClip [hermitshark] Frame 10
_parent.startAttack();
Symbol 321 MovieClip [hermitshark] Frame 73
stop();
_parent.endAttack();
Symbol 321 MovieClip [hermitshark] Frame 74
_parent.startAttack();
Symbol 321 MovieClip [hermitshark] Frame 84
stop();
_parent.endAttack();
Symbol 321 MovieClip [hermitshark] Frame 85
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 321 MovieClip [hermitshark] Frame 105
gotoAndPlay ("move");
Symbol 321 MovieClip [hermitshark] Frame 128
_parent._visible = false;
gotoAndStop (1);
Symbol 324 MovieClip [junglespider] Frame 1
stop();
Symbol 324 MovieClip [junglespider] Frame 10
_parent.startAttack();
Symbol 324 MovieClip [junglespider] Frame 49
stop();
_parent.endAttack();
Symbol 324 MovieClip [junglespider] Frame 50
_parent.startAttack();
Symbol 324 MovieClip [junglespider] Frame 57
stop();
_parent.endAttack();
Symbol 324 MovieClip [junglespider] Frame 58
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 324 MovieClip [junglespider] Frame 79
gotoAndPlay ("move");
Symbol 324 MovieClip [junglespider] Frame 102
_parent._visible = false;
gotoAndStop (1);
Symbol 335 MovieClip [derelict] Frame 1
stop();
Symbol 335 MovieClip [derelict] Frame 10
_parent.startAttack();
Symbol 335 MovieClip [derelict] Frame 21
stop();
_parent.endAttack();
Symbol 335 MovieClip [derelict] Frame 22
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 335 MovieClip [derelict] Frame 36
gotoAndPlay ("move");
Symbol 335 MovieClip [derelict] Frame 59
_parent._visible = false;
gotoAndStop (1);
Symbol 352 MovieClip [gearFly] Frame 1
stop();
Symbol 352 MovieClip [gearFly] Frame 10
_parent.startAttack();
Symbol 352 MovieClip [gearFly] Frame 17
stop();
_parent.endAttack();
Symbol 352 MovieClip [gearFly] Frame 18
_parent.startAttack();
Symbol 352 MovieClip [gearFly] Frame 25
stop();
_parent.endAttack();
Symbol 352 MovieClip [gearFly] Frame 26
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 352 MovieClip [gearFly] Frame 46
gotoAndPlay ("move");
Symbol 352 MovieClip [gearFly] Frame 69
_parent._visible = false;
gotoAndStop (1);
Symbol 371 MovieClip [clock] Frame 1
stop();
Symbol 371 MovieClip [clock] Frame 10
_parent.startAttack();
Symbol 371 MovieClip [clock] Frame 17
stop();
_parent.endAttack();
Symbol 371 MovieClip [clock] Frame 18
_parent.startAttack();
Symbol 371 MovieClip [clock] Frame 25
stop();
_parent.endAttack();
Symbol 371 MovieClip [clock] Frame 26
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 371 MovieClip [clock] Frame 47
gotoAndPlay ("move");
Symbol 371 MovieClip [clock] Frame 70
_parent._visible = false;
gotoAndStop (1);
Symbol 389 MovieClip [sproutwarrior] Frame 1
stop();
Symbol 389 MovieClip [sproutwarrior] Frame 10
_parent.startAttack();
Symbol 389 MovieClip [sproutwarrior] Frame 23
stop();
_parent.endAttack();
Symbol 389 MovieClip [sproutwarrior] Frame 24
_parent.startAttack();
Symbol 389 MovieClip [sproutwarrior] Frame 48
stop();
_parent.endAttack();
Symbol 389 MovieClip [sproutwarrior] Frame 49
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 389 MovieClip [sproutwarrior] Frame 69
gotoAndPlay ("move");
Symbol 389 MovieClip [sproutwarrior] Frame 92
_parent._visible = false;
gotoAndStop (1);
Symbol 415 MovieClip [lightning] Frame 15
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
Symbol 419 MovieClip [rusty] Frame 1
stop();
Symbol 419 MovieClip [rusty] Frame 10
_parent.startAttack();
Symbol 419 MovieClip [rusty] Frame 23
stop();
_parent.endAttack();
Symbol 419 MovieClip [rusty] Frame 24
_parent.startAttack();
Symbol 419 MovieClip [rusty] Frame 35
stop();
_parent.endAttack();
Symbol 419 MovieClip [rusty] Frame 36
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
Symbol 419 MovieClip [rusty] Frame 56
gotoAndPlay ("move");
Symbol 419 MovieClip [rusty] Frame 79
_parent._visible = false;
gotoAndStop (1);
Symbol 449 MovieClip [stinger] Frame 1
function colorBot(target) {
if (_parent.part1r == undefined) {
_parent.part1r = 80;
}
if (_parent.part1g == undefined) {
_parent.part1g = 110;
}
if (_parent.part1b == undefined) {
_parent.part1b = 150;
}
if (_parent.part2r == undefined) {
_parent.part2r = 100;
}
if (_parent.part2g == undefined) {
_parent.part2g = 100;
}
if (_parent.part2b == undefined) {
_parent.part2b = 100;
}
if (_parent.part3r == undefined) {
_parent.part3r = 130;
}
if (_parent.part3g == undefined) {
_parent.part3g = 140;
}
if (_parent.part3b == undefined) {
_parent.part3b = 140;
}
c = new Color(target.part1);
c.setTransform({ra:_parent.part1r, rb:0, ga:_parent.part1g, gb:0, ba:_parent.part1b, bb:0, aa:100, ab:0});
c = new Color(target.part2);
c.setTransform({ra:_parent.part2r, rb:0, ga:_parent.part2g, gb:0, ba:_parent.part2b, bb:0, aa:100, ab:0});
c = new Color(target.part3);
c.setTransform({ra:_parent.part3r, rb:0, ga:_parent.part3g, gb:0, ba:_parent.part3b, bb:0, aa:100, ab:0});
}
stop();
colorBot(bot);
Symbol 449 MovieClip [stinger] Frame 8
colorBot(bot);
_parent.startAttack();
Symbol 449 MovieClip [stinger] Frame 17
gotoAndStop (1);
_parent.endAttack();
Symbol 449 MovieClip [stinger] Frame 18
_parent.startAttack();
Symbol 449 MovieClip [stinger] Frame 30
gotoAndStop (1);
_parent.endAttack();
Symbol 449 MovieClip [stinger] Frame 31
_parent.startAttack();
Symbol 449 MovieClip [stinger] Frame 45
gotoAndStop (1);
_parent.endAttack();
Symbol 449 MovieClip [stinger] Frame 46
stop();
colorBot(bot.bot);
Symbol 449 MovieClip [stinger] Frame 52
stop();
colorBot(bot);
Symbol 449 MovieClip [stinger] Frame 59
stop();
colorBot(bot);
Symbol 449 MovieClip [stinger] Frame 66
stop();
colorBot(bot);
Symbol 449 MovieClip [stinger] Frame 72
colorBot(bot);
Symbol 449 MovieClip [stinger] Frame 94
_parent._visible = false;
gotoAndStop (1);
Symbol 473 MovieClip [avenger] Frame 1
function colorBot(target) {
c = new Color(target.part1);
c.setTransform({ra:_parent.part1r, rb:0, ga:_parent.part1g, gb:0, ba:_parent.part1b, bb:0, aa:100, ab:0});
c = new Color(target.part2);
c.setTransform({ra:_parent.part2r, rb:0, ga:_parent.part2g, gb:0, ba:_parent.part2b, bb:0, aa:100, ab:0});
c = new Color(target.part3);
c.setTransform({ra:_parent.part3r, rb:0, ga:_parent.part3g, gb:0, ba:_parent.part3b, bb:0, aa:100, ab:0});
}
stop();
colorBot(bot);
Symbol 473 MovieClip [avenger] Frame 8
colorBot(bot);
_parent.startAttack();
Symbol 473 MovieClip [avenger] Frame 13
gotoAndStop (1);
_parent.endAttack();
Symbol 473 MovieClip [avenger] Frame 14
stop();
colorBot(bot.bot);
Symbol 473 MovieClip [avenger] Frame 20
stop();
colorBot(bot);
Symbol 473 MovieClip [avenger] Frame 27
stop();
colorBot(bot);
Symbol 473 MovieClip [avenger] Frame 34
stop();
colorBot(bot);
Symbol 473 MovieClip [avenger] Frame 40
colorBot(bot);
Symbol 473 MovieClip [avenger] Frame 62
_parent._visible = false;
gotoAndStop (1);
Symbol 542 MovieClip [luna] Frame 1
function colorBot(target) {
if (_parent.part1r == undefined) {
_parent.part1r = 80;
}
if (_parent.part1g == undefined) {
_parent.part1g = 110;
}
if (_parent.part1b == undefined) {
_parent.part1b = 150;
}
if (_parent.part2r == undefined) {
_parent.part2r = 100;
}
if (_parent.part2g == undefined) {
_parent.part2g = 100;
}
if (_parent.part2b == undefined) {
_parent.part2b = 100;
}
if (_parent.part3r == undefined) {
_parent.part3r = 130;
}
if (_parent.part3g == undefined) {
_parent.part3g = 140;
}
if (_parent.part3b == undefined) {
_parent.part3b = 140;
}
c = new Color(target.part1);
c.setTransform({ra:_parent.part1r, rb:0, ga:_parent.part1g, gb:0, ba:_parent.part1b, bb:0, aa:100, ab:0});
c = new Color(target.part2);
c.setTransform({ra:_parent.part2r, rb:0, ga:_parent.part2g, gb:0, ba:_parent.part2b, bb:0, aa:100, ab:0});
c = new Color(target.part3);
c.setTransform({ra:_parent.part3r, rb:0, ga:_parent.part3g, gb:0, ba:_parent.part3b, bb:0, aa:100, ab:0});
trace("a1:" + _parent.part1r);
trace("a2" + _parent.part1g);
trace("a3" + _parent.part1b);
trace("a1:" + _parent.part2r);
trace("a2" + _parent.part2g);
trace("a3" + _parent.part2b);
trace("a1:" + _parent.part3r);
trace("a2" + _parent.part3g);
trace("a3" + _parent.part3b);
}
stop();
colorBot(bot);
Symbol 542 MovieClip [luna] Frame 8
colorBot(bot);
_parent.startAttack();
Symbol 542 MovieClip [luna] Frame 20
gotoAndStop (1);
_parent.endAttack();
Symbol 542 MovieClip [luna] Frame 21
colorBot(bot);
_parent.startAttack();
Symbol 542 MovieClip [luna] Frame 30
gotoAndStop (1);
_parent.endAttack();
Symbol 542 MovieClip [luna] Frame 31
colorBot(bot);
_parent.startAttack();
Symbol 542 MovieClip [luna] Frame 43
gotoAndStop (1);
_parent.endAttack();
Symbol 542 MovieClip [luna] Frame 44
stop();
colorBot(bot.bot);
Symbol 542 MovieClip [luna] Frame 50
stop();
colorBot(bot);
Symbol 542 MovieClip [luna] Frame 57
stop();
colorBot(bot);
Symbol 542 MovieClip [luna] Frame 64
stop();
colorBot(bot);
Symbol 542 MovieClip [luna] Frame 70
colorBot(bot);
Symbol 542 MovieClip [luna] Frame 92
_parent._visible = false;
gotoAndStop (1);
Symbol 550 MovieClip [save links] Frame 1
stop();
Symbol 550 MovieClip [save links] Frame 15
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 35
Symbol 620 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 15
stop();
Symbol 630 MovieClip [remove_effect] Frame 25
this.removeMovieClip();
Symbol 637 MovieClip [add_effect] Frame 25
this.removeMovieClip();
Symbol 651 MovieClip [txttiming] Frame 1
var timelapse = 0;
stop();
Symbol 651 MovieClip [txttiming] Frame 2
stop();
var curr_time = 0;
onEnterFrame = function () {
curr_time++;
if (curr_time >= (this._x - 10)) {
_parent._alpha = (this._x - curr_time) * 10;
}
if (curr_time >= this._x) {
_parent._visible = false;
this.removeMovieClip();
}
};
Symbol 1094 MovieClip Frame 1
function colorChar() {
var _local3 = new Color(char.part1);
var _local2 = _level0.getEquippedTop();
var _local1 = _level0.getEquippedBottom();
var _local5 = 100;
var _local9 = 100;
var _local7 = 100;
var _local4 = 100;
var _local8 = 100;
var _local6 = 100;
if (_local2) {
_local5 = _local2.r;
_local9 = _local2.g;
_local7 = _local2.b;
}
if (_local1) {
_local4 = _local1.r;
_local8 = _local1.g;
_local6 = _local1.b;
}
_local3.setTransform({ra:_local5, rb:0, ga:_local9, gb:0, ba:_local7, bb:0, aa:100, ab:0});
_local3 = new Color(char.part2);
_local3.setTransform({ra:_local4, rb:0, ga:_local8, gb:0, ba:_local6, bb:0, aa:100, ab:0});
}
stop();
colorChar();
Symbol 1094 MovieClip Frame 7
colorChar();
Symbol 1094 MovieClip Frame 12
colorChar();
Symbol 1094 MovieClip Frame 18
colorChar();
Symbol 1094 MovieClip Frame 24
colorChar();
Symbol 1094 MovieClip Frame 30
colorChar();
Symbol 1094 MovieClip Frame 36
colorChar();
Symbol 1094 MovieClip Frame 42
colorChar();
Symbol 1094 MovieClip Frame 47
colorChar();
Symbol 1094 MovieClip Frame 53
colorChar();
Symbol 1094 MovieClip Frame 59
colorChar();
Symbol 1094 MovieClip Frame 65
colorChar();
Symbol 1094 MovieClip Frame 71
colorChar();
Symbol 1094 MovieClip Frame 77
colorChar();
Symbol 1094 MovieClip Frame 83
colorChar();
Symbol 1094 MovieClip Frame 89
colorChar();
Symbol 1094 MovieClip Frame 95
colorChar();
Symbol 1529 MovieClip Frame 1
function colorChar() {
var _local3 = new Color(char.part1);
var _local2 = _level0.getEquippedTop();
var _local1 = _level0.getEquippedBottom();
var _local5 = 100;
var _local9 = 100;
var _local7 = 100;
var _local4 = 100;
var _local8 = 100;
var _local6 = 100;
if (_local2) {
_local5 = _local2.r;
_local9 = _local2.g;
_local7 = _local2.b;
}
if (_local1) {
_local4 = _local1.r;
_local8 = _local1.g;
_local6 = _local1.b;
}
_local3.setTransform({ra:_local5, rb:0, ga:_local9, gb:0, ba:_local7, bb:0, aa:100, ab:0});
_local3 = new Color(char.part2);
_local3.setTransform({ra:_local4, rb:0, ga:_local8, gb:0, ba:_local6, bb:0, aa:100, ab:0});
}
stop();
colorChar();
Symbol 1529 MovieClip Frame 7
colorChar();
Symbol 1529 MovieClip Frame 12
colorChar();
Symbol 1529 MovieClip Frame 18
colorChar();
Symbol 1529 MovieClip Frame 24
colorChar();
Symbol 1529 MovieClip Frame 30
colorChar();
Symbol 1529 MovieClip Frame 36
colorChar();
Symbol 1529 MovieClip Frame 42
colorChar();
Symbol 1529 MovieClip Frame 47
colorChar();
Symbol 1529 MovieClip Frame 53
colorChar();
Symbol 1529 MovieClip Frame 59
colorChar();
Symbol 1529 MovieClip Frame 65
colorChar();
Symbol 1529 MovieClip Frame 71
colorChar();
Symbol 1529 MovieClip Frame 77
colorChar();
Symbol 1529 MovieClip Frame 83
colorChar();
Symbol 1529 MovieClip Frame 89
colorChar();
Symbol 1529 MovieClip Frame 95
colorChar();
Symbol 1537 MovieClip Frame 1
stop();
Symbol 1594 MovieClip Frame 1
stop();
Symbol 1731 MovieClip Frame 1
function colorBot() {
c = new Color(bot.part1);
c.setTransform({ra:_global.part1r, rb:0, ga:_global.part1g, gb:0, ba:_global.part1b, bb:0, aa:100, ab:0});
c = new Color(bot.part2);
c.setTransform({ra:_global.part2r, rb:0, ga:_global.part2g, gb:0, ba:_global.part2b, bb:0, aa:100, ab:0});
c = new Color(bot.part3);
c.setTransform({ra:_global.part3r, rb:0, ga:_global.part3g, gb:0, ba:_global.part3b, bb:0, aa:100, ab:0});
}
stop();
colorBot();
Symbol 1731 MovieClip Frame 7
colorBot();
Symbol 1731 MovieClip Frame 12
colorBot();
Symbol 1731 MovieClip Frame 18
colorBot();
Symbol 1731 MovieClip Frame 24
colorBot();
Symbol 1731 MovieClip Frame 30
colorBot();
Symbol 1731 MovieClip Frame 36
colorBot();
Symbol 1731 MovieClip Frame 42
colorBot();
Symbol 1731 MovieClip Frame 47
colorBot();
Symbol 1731 MovieClip Frame 53
colorBot();
Symbol 1731 MovieClip Frame 59
colorBot();
Symbol 1731 MovieClip Frame 65
colorBot();
Symbol 1731 MovieClip Frame 71
colorBot();
Symbol 1731 MovieClip Frame 77
colorBot();
Symbol 1731 MovieClip Frame 83
colorBot();
Symbol 1731 MovieClip Frame 89
colorBot();
Symbol 1732 MovieClip [worldChar] Frame 1
stop();
Symbol 1734 Button [close button]
on (release) {
this._visible = false;
this._parent.menu._visible = true;
}
Symbol 1735 Button [close button]
on (release) {
this._visible = false;
_parent.menu._visible = true;
}
Symbol 1743 MovieClip [bubbletxt] Frame 1
function popup_text(txt, wid, color, xcoor, ycoor, objwith, objheight, pointerflag) {
this.poptxt = txt;
var _local5 = pop.getTextFormat();
var _local2 = _local5.getTextExtent(txt, wid);
pop._x = 5;
pop._y = 3;
pop._width = wid + 10;
pop._height = _local2.height + 10;
corner_left_top._x = 0;
corner_left_top._y = 9;
chcolor = new Color(corner_left_top);
chcolor.setRGB(color);
corner_left_bottom._x = 9;
corner_left_bottom._y = _local2.height + 9;
chcolor = new Color(corner_left_bottom);
chcolor.setRGB(color);
left._x = 0;
left._y = 9;
left._height = _local2.height - 9;
left._width = 9;
chcolor = new Color(left);
chcolor.setRGB(color);
middle._x = 9;
middle._y = 0;
middle._width = wid;
middle._height = _local2.height + 9;
chcolor = new Color(middle);
chcolor.setRGB(color);
corner_right_top._x = wid + 9;
corner_right_top._y = 0;
chcolor = new Color(corner_right_top);
chcolor.setRGB(color);
right._x = wid + 9;
right._y = 9;
right._height = _local2.height - 9;
right._width = 9;
chcolor = new Color(right);
chcolor.setRGB(color);
corner_right_bottom._x = wid + 18;
corner_right_bottom._y = _local2.height;
chcolor = new Color(corner_right_bottom);
chcolor.setRGB(color);
if (((xcoor + wid) + 18) > 400) {
this._x = xcoor - wid;
pointer._xscale = -100;
pointer._x = wid;
} else {
pointer._xscale = 100;
pointer._x = 20;
this._x = xcoor - 20;
}
if ((ycoor - (_local2.height + 25)) < 0) {
this._y = (ycoor + 25) + objheight;
pointer._yscale = -100;
pointer._y = 0;
} else {
pointer._yscale = 100;
pointer._y = _local2.height + 9;
this._y = ycoor - (_local2.height + 25);
}
if (pointerflag == "hide") {
pointer._visible = false;
} else {
pointer._visible = true;
}
chcolor = new Color(pointer);
chcolor.setRGB(color);
this._alpha = 100;
this._visible = true;
}
function settimer(timelag) {
this.attachMovie("txttiming", "txttimer", 0, {_x:timelag});
txttimer.gotoAndStop(2);
}
stop();
Symbol 1744 Button [close button]
on (release) {
gotoAndStop (1);
}
Symbol 1762 MovieClip Frame 1
var textspeech = new Array();
textspeech[0] = "Loading";
textspeech[1] = "Getting bored?";
textspeech[2] = "Maybe you would like to get a drink first?";
textspeech[3] = "Your connection is really slow";
Instance of Symbol 1652 MovieClip "bot" in Symbol 1763 MovieClip Frame 1
onClipEvent (load) {
c = new Color(part1);
c.setTransform({ra:150, rb:0, ga:120, gb:0, ba:30, bb:0, aa:100, ab:0});
c = new Color(part2);
c.setTransform({ra:125, rb:0, ga:120, gb:0, ba:120, bb:0, aa:100, ab:0});
c = new Color(part3);
c.setTransform({ra:30, rb:0, ga:40, gb:0, ba:30, bb:0, aa:100, ab:0});
}
Symbol 1773 MovieClip Frame 1
stop();
unloadMovieNum (3);
Symbol 1773 MovieClip Frame 2
loadMovieNum ("http://www.mobileweapon.net/files/mw1/music/town.swf", 3);
Symbol 1773 MovieClip Frame 10
loadMovieNum ("http://www.mobileweapon.net/files/mw1/music/jungle.swf", 3);
Symbol 1773 MovieClip Frame 17
loadMovieNum ("http://www.mobileweapon.net/files/mw1/music/beach.swf", 3);
Symbol 1773 MovieClip Frame 25
loadMovieNum ("http://www.mobileweapon.net/files/mw1/music/cave.swf", 3);
Symbol 1773 MovieClip Frame 30
loadMovieNum ("http://www.mobileweapon.net/files/mw1/music/scrapyard.swf", 3);
Symbol 1773 MovieClip Frame 38
loadMovieNum (("http://www.mobileweapon.net/files/mw1/music/battle" + random(2)) + ".swf", 3);
Symbol 1773 MovieClip Frame 49
loadMovieNum ("http://www.mobileweapon.net/files/mw1/music/intro.swf", 3);
Symbol 1784 MovieClip Frame 1
stop();
soundPlaying = false;
Symbol 1784 MovieClip Frame 8
gotoAndStop (1);
Symbol 1784 MovieClip Frame 20
gotoAndStop (1);
Symbol 1784 MovieClip Frame 26
gotoAndStop (1);
Symbol 1784 MovieClip Frame 30
gotoAndStop (1);
Symbol 1784 MovieClip Frame 35
gotoAndStop (1);
Symbol 1784 MovieClip Frame 42
gotoAndStop (1);
Symbol 1784 MovieClip Frame 49
gotoAndStop (1);
Symbol 1784 MovieClip Frame 57
gotoAndStop (1);
Symbol 1784 MovieClip Frame 66
gotoAndStop (1);
Symbol 1791 MovieClip Frame 30
stop();
Symbol 1793 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 1796 Button
on (release) {
playSound("press");
gotoAndStop (10);
}
Symbol 1800 MovieClip Frame 1
stop();
Symbol 1800 MovieClip Frame 2
stop();
Symbol 1804 MovieClip Frame 1
stop();
Symbol 1804 MovieClip Frame 2
stop();
Symbol 1848 MovieClip Frame 1
if (_global.quickstart) {
newbutt._visible = true;
} else {
newbutt._visible = false;
}
stop();
Instance of Symbol 1800 MovieClip "newbutt" in Symbol 1848 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(5);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 1804 MovieClip "changebutt" in Symbol 1848 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(4);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 1745 MovieClip [close button] "closebutton" in Symbol 1848 MovieClip Frame 1
on (press) {
_parent._visible = false;
_global.option = undefined;
}
Instance of Symbol 1811 MovieClip "slider" in Symbol 1848 MovieClip Frame 1
on (press) {
this.startDrag(false, this._x, _parent.maskbox._y, this._x, (_parent.maskbox._height - this._height) + _parent.maskbox._y);
this.onEnterFrame = function () {
var _local3 = ((this._y - 50.7) * (_parent.savelistholder._height - _parent.maskbox._height)) / (_parent.maskbox._height - this._height);
_parent.savelistholder._y = 44 - _local3;
};
}
on (release) {
this.stopDrag();
this.onEnterFrame = function () {
};
}
Instance of Symbol 1815 MovieClip "newsavelink" in Symbol 1848 MovieClip Frame 1
on (press) {
_root.preparenewsave();
}
Symbol 1848 MovieClip Frame 2
stop();
Instance of Symbol 1826 MovieClip in Symbol 1848 MovieClip Frame 2
on (press) {
_parent._visible = false;
_global.option = undefined;
}
Symbol 1848 MovieClip Frame 3
stop();
savebutt.buttontext.text = "Save";
Instance of Symbol 1819 MovieClip "savebutt" in Symbol 1848 MovieClip Frame 3
on (press) {
_root.savenewgame(_parent.newsavename.text);
}
Symbol 1848 MovieClip Frame 4
_root.clear_savelist();
loginbutt.buttontext.text = "LOGIN";
Instance of Symbol 1819 MovieClip "loginbutt" in Symbol 1848 MovieClip Frame 4
on (press) {
_root.renewUser(_parent.newusername.text, _parent.newpassword.text);
}
Symbol 1848 MovieClip Frame 5
_root.clear_savelist();
loginbutt.buttontext.text = "CREATE";
savetext.text = "CREATE YOUR ACCOUNT";
stop();
Instance of Symbol 1819 MovieClip "loginbutt" in Symbol 1848 MovieClip Frame 5
on (press) {
_parent.errtext.text = "";
var error = false;
if (_parent.pname.text == "") {
_parent.errtext.text = "Please enter your username.";
error = true;
}
if (_parent.ppassword.text != _parent.ppasswordc.text) {
_parent.errtext.text = "Your passwords do not match.";
error = true;
}
if ((_parent.ppassword.text == "") || (_parent.ppasswordc.text == "")) {
_parent.errtext.text = "Please enter a password.";
error = true;
}
if (error) {
return(undefined);
}
_parent.errtext.text = "Contacting server... Please wait.";
this._visible = false;
_root.createNewAccount(_parent.pname.text, _parent.ppassword.text, _parent.email.text);
}
Symbol 1848 MovieClip Frame 6
loginbutt.buttontext.text = "CANCEL";
stop();
Symbol 1859 Button
on (release) {
_global.option = "load";
playSound("press");
_root.prepareload();
}
Symbol 1861 Button
on (release) {
playSound("press");
_global.option = "start";
gotoAndStop (11);
}
Symbol 1867 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 1875 MovieClip Frame 20
stop();
Symbol 1878 Button
on (release) {
gotoAndPlay (3);
}
Symbol 1886 Button
on (press) {
_root.SaveList = new SaveListObj("", "");
_root.SaveList.addListener(_root.listenerobject);
_root.SaveList.forceLocal();
var samdata = "<SavedData><character id=\"A001\" name=\"Yun\" reflex=\"5\" accuracy=\"5\" technique=\"5\" xp=\"0\" active=\"1\" level=\"1\" sp=\"3\"><bot botid=\"luna\" name=\"Luna\" defense=\"3\" currhp=\"120\" hp=\"120\" energy=\"4\" active=\"true\"><parts name=\"part1\" colorr=\"150\" colorg=\"120\" colorb=\"30\" /><parts name=\"part2\" colorr=\"125\" colorg=\"120\" colorb=\"120\" /><parts name=\"part3\" colorr=\"35\" colorg=\"35\" colorb=\"110\" /></bot></character>";
samdata = samdata + "<globalvars maplocation=\"1\" arealocation=\"1\" tx=\"300\" tz=\"-180\" credits=\"120\" chance=\"20\" /><inventory><item id=\"C01AT\" location=\"top\" equip=\"A001\" /><item id=\"C01AB\" location=\"bottom\" equip=\"A001\" /><item id=\"C01AF\" location=\"footwear\" equip=\"A001\" /><item id=\"W01H\" location=\"back\" equip=\"A001\" /><item id=\"W01M\" location=\"right\" equip=\"A001\" /><item id=\"I001R\" location=\"none\" number=\"2\" /><item id=\"I003Q\" location=\"none\" /></inventory><questlist><quest id=\"1\" prog=\"1\" /></questlist></SavedData>";
var so = SharedObject.getLocal("/mobileweapon");
so.data.userid = "";
so.data.password = "";
so.data.quickstart = "true";
_global.quickstart = true;
var newsave = _root.SaveList.createEmptySave("new");
newsave.parseXML(samdata);
newsave.save();
newsave.printitems();
_global.mainsave = newsave;
_global.option = "newgame";
soundfx.gotoAndPlay("ok");
gotoAndStop (14);
}
Symbol 1903 Button
on (release) {
errormsg3.text = "";
errormsg2.text = "";
errormsg1.text = "";
var error = false;
if (pname.text == "") {
errormsg1.text = "Please enter your username.";
error = true;
}
if (ppassword.text != ppasswordc.text) {
errormsg2.text = "Your passwords do not match.";
error = true;
}
if ((ppassword.text == "") || (ppasswordc.text == "")) {
errormsg2.text = "Please enter a password.";
error = true;
}
if (error) {
return(undefined);
}
_root.SaveList = new SaveListObj(pname.text, ppassword.text);
_root.SaveList.addListener(_root.listenerobject);
_root.SaveList.createNewUser(email.text);
_global.pilotName = pname.text;
_global.mawName = pname.text;
}
Symbol 1910 MovieClip Frame 1
stop();
Symbol 1914 MovieClip Frame 1
stop();
Symbol 1923 Button
on (release) {
errtext.text = "";
checklang = new Array("fuck", "ass", "f u c k", "fu ck", "fcuk");
if (playername.text == "") {
errtext.text = "Invalid player name. Please use another name";
return(undefined);
}
var i = 0;
while (i < checklang.length) {
if (checklang[i] == playername.text) {
errtext.text = "Invalid player name. Please use another name";
return(undefined);
}
i++;
}
var charlist = _global.mainsave.getItemList("character");
var p = 0;
while (p < charlist.length) {
if (charlist[p].getAttribute("id") == "A001") {
if (guy.selected) {
charlist[p].setAttribute("gender", "M");
}
if (gal.selected) {
charlist[p].setAttribute("gender", "F");
}
charlist[p].setAttribute("name", playername.text);
trace("activebot = " + charlist[p].activebot.getAttribute("name"));
}
p++;
}
_global.mainsave.save();
var counterxml = new XML();
counterxml.load("http://mobileweapon.net/ep1/neoplanetas.php?type=updatecounter&saveindex=" + playername.text);
soundfx.gotoAndPlay("ok");
gotoAndPlay (16);
}
Symbol 1930 Button
on (release) {
if (_level0.getCredits() >= 100) {
_level0.setCredits(_level0.getCredits() - 100);
_level0.playSound("cash");
this._visible = false;
_parent.menu._visible = true;
var charlist = _global.mainsave.getItemList("character");
var bot = charlist[0].getItemList("bot");
var parts = bot[0].getItemList("parts");
var j = 0;
while (j < parts.length) {
if (parts[j].getAttribute("name") == "part1") {
parts[j].setAttribute("colorr", part1.r);
parts[j].setAttribute("colorg", part1.g);
parts[j].setAttribute("colorb", part1.b);
}
if (parts[j].getAttribute("name") == "part2") {
parts[j].setAttribute("colorr", part2.r);
parts[j].setAttribute("colorg", part2.g);
parts[j].setAttribute("colorb", part2.b);
}
if (parts[j].getAttribute("name") == "part3") {
parts[j].setAttribute("colorr", part3.r);
parts[j].setAttribute("colorg", part3.g);
parts[j].setAttribute("colorb", part3.b);
}
j++;
}
_global.part1r = part1.r;
_global.part1g = part1.g;
_global.part1b = part1.b;
_global.part2r = part2.r;
_global.part2g = part2.g;
_global.part2b = part2.b;
_global.part3r = part3.r;
_global.part3g = part3.g;
_global.part3b = part3.b;
} else {
_level0.playSound("error");
message.text = "Not enough credits!";
}
}
Symbol 1931 Button
on (release) {
this._visible = false;
_parent.menu._visible = true;
}
Symbol 1934 Button
on (release) {
this.part1.r = 0;
this.part1.g = 35;
this.part1.b = 50;
this.part2.r = 0;
this.part2.g = 80;
this.part2.b = 80;
this.part3.r = 150;
this.part3.g = 150;
this.part3.b = 150;
colourAll();
}
Symbol 1936 Button
on (release) {
frame++;
if (frame > frameMax) {
frame = 1;
}
part1.gotoAndStop("f" + frame);
part2.gotoAndStop("f" + frame);
part3.gotoAndStop("f" + frame);
}
Symbol 1938 Button
on (release) {
frame--;
if (frame < 1) {
frame = frameMax;
}
part1.gotoAndStop("f" + frame);
part2.gotoAndStop("f" + frame);
part3.gotoAndStop("f" + frame);
}
Symbol 1941 Button
on (release) {
part1.stop();
part2.stop();
part3.stop();
}
Symbol 1942 Button
on (release) {
part1.play();
part2.play();
part3.play();
}
Symbol 1944 Button
on (release) {
this.part1.r = 150;
this.part1.g = 120;
this.part1.b = 30;
this.part2.r = 125;
this.part2.g = 120;
this.part2.b = 120;
this.part3.r = 35;
this.part3.g = 40;
this.part3.b = 110;
colourAll();
}
Symbol 1946 Button
on (release) {
this.part1.r = 140;
this.part1.g = 100;
this.part1.b = 60;
this.part2.r = 150;
this.part2.g = 90;
this.part2.b = 10;
this.part3.r = 90;
this.part3.g = 45;
this.part3.b = 0;
colourAll();
}
Symbol 1948 Button
on (release) {
this.part1.r = 30;
this.part1.g = 70;
this.part1.b = 30;
this.part2.r = 20;
this.part2.g = 45;
this.part2.b = 20;
this.part3.r = 100;
this.part3.g = 100;
this.part3.b = 70;
colourAll();
}
Symbol 1950 Button
on (release) {
this.part1.r = 125;
this.part1.g = 40;
this.part1.b = 60;
this.part2.r = 95;
this.part2.g = 15;
this.part2.b = 40;
this.part3.r = 125;
this.part3.g = 40;
this.part3.b = 105;
colourAll();
}
Symbol 1952 Button
on (release) {
this.part1.r = 80;
this.part1.g = 110;
this.part1.b = 150;
this.part2.r = 150;
this.part2.g = 150;
this.part2.b = 150;
this.part3.r = 130;
this.part3.g = 140;
this.part3.b = 140;
colourAll();
}
Symbol 1954 Button
on (release) {
this.part1.r = 30;
this.part1.g = 30;
this.part1.b = 30;
this.part2.r = 38;
this.part2.g = 38;
this.part2.b = 38;
this.part3.r = 100;
this.part3.g = 0;
this.part3.b = 0;
colourAll();
}
Symbol 1957 Button
on (release) {
selectedPart = "part1";
rSlider._x = sliderX + this[selectedPart].r;
gSlider._x = sliderX + this[selectedPart].g;
bSlider._x = sliderX + this[selectedPart].b;
c = new Color(part1_btn);
c.setTransform({ra:100, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
c = new Color(part2_btn);
c.setTransform({ra:0, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
c = new Color(part3_btn);
c.setTransform({ra:0, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
}
Symbol 1959 Button
on (release) {
selectedPart = "part2";
rSlider._x = sliderX + this[selectedPart].r;
gSlider._x = sliderX + this[selectedPart].g;
bSlider._x = sliderX + this[selectedPart].b;
c = new Color(part2_btn);
c.setTransform({ra:100, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
c = new Color(part1_btn);
c.setTransform({ra:0, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
c = new Color(part3_btn);
c.setTransform({ra:0, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
}
Symbol 1961 Button
on (release) {
selectedPart = "part3";
rSlider._x = sliderX + this[selectedPart].r;
gSlider._x = sliderX + this[selectedPart].g;
bSlider._x = sliderX + this[selectedPart].b;
c = new Color(part3_btn);
c.setTransform({ra:100, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
c = new Color(part1_btn);
c.setTransform({ra:0, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
c = new Color(part2_btn);
c.setTransform({ra:0, rb:100, ga:0, gb:100, ba:0, bb:100, aa:100, ab:0});
}
Symbol 2007 MovieClip Frame 1
function colourAll() {
c = new Color(this.part1);
c.setTransform({ra:part1.r, rb:0, ga:part1.g, gb:0, ba:part1.b, bb:0, aa:100, ab:0});
c = new Color(this.part2);
c.setTransform({ra:part2.r, rb:0, ga:part2.g, gb:0, ba:part2.b, bb:0, aa:100, ab:0});
c = new Color(this.part3);
c.setTransform({ra:part3.r, rb:0, ga:part3.g, gb:0, ba:part3.b, bb:0, aa:100, ab:0});
rSlider._x = sliderX + this[selectedPart].r;
gSlider._x = sliderX + this[selectedPart].g;
bSlider._x = sliderX + this[selectedPart].b;
}
function init() {
selectedPart = "part1";
part1.r = int(_global.part1r);
part1.g = int(_global.part1g);
part1.b = int(_global.part1b);
part2.r = int(_global.part2r);
part2.g = int(_global.part2g);
part2.b = int(_global.part2b);
part3.r = int(_global.part3r);
part3.g = int(_global.part3g);
part3.b = int(_global.part3b);
colourAll();
playing = false;
credits.text = _level0.getCredits();
message.text = "Each paint job costs 100 credits";
}
sliderX = rSlider._x;
frameMax = 8;
frame = 1;
onEnterFrame = function () {
var _local2 = new Color(this[selectedPart]);
_local2.setTransform({ra:this[selectedPart].r, rb:0, ga:this[selectedPart].g, gb:0, ba:this[selectedPart].b, bb:0, aa:100, ab:0});
};
Instance of Symbol 1955 MovieClip "bSlider" in Symbol 2007 MovieClip Frame 1
on (press) {
_parent.mover = true;
this.startDrag(false, _parent.sliderX, _y, _parent.sliderX + 150, _y);
}
on (release) {
_parent.mover = false;
stopDrag();
}
on (releaseOutside) {
_parent.mover = false;
stopDrag();
}
onClipEvent (mouseMove) {
if (_parent.mover) {
_parent[_parent.selectedPart].b = _x - _parent.sliderX;
}
}
Instance of Symbol 1955 MovieClip "gSlider" in Symbol 2007 MovieClip Frame 1
on (press) {
_parent.mover = true;
this.startDrag(false, _parent.sliderX, _y, _parent.sliderX + 150, _y);
}
on (release) {
_parent.mover = false;
stopDrag();
}
on (releaseOutside) {
_parent.mover = false;
stopDrag();
}
onClipEvent (mouseMove) {
if (_parent.mover) {
_parent[_parent.selectedPart].g = _x - _parent.sliderX;
}
}
Instance of Symbol 1955 MovieClip "rSlider" in Symbol 2007 MovieClip Frame 1
on (press) {
_parent.mover = true;
this.startDrag(false, _parent.sliderX, _y, _parent.sliderX + 150, _y);
}
on (release) {
_parent.mover = false;
stopDrag();
}
on (releaseOutside) {
_parent.mover = false;
stopDrag();
}
onClipEvent (mouseMove) {
if (_parent.mover) {
_parent[_parent.selectedPart].r = this._x - _parent.sliderX;
}
}
Symbol 2011 Button
on (release) {
_root.prevFrame();
}
Symbol 2015 Button
on (release) {
gotoAndStop (16);
}
Symbol 2016 Button
on (release) {
nextFrame();
}
Symbol 2018 Button
on (release) {
_level0.quit();
}
Symbol 2088 MovieClip Frame 1
function refreshMap() {
mapChar.innerClip.gotoAndStop(_root.selectedMaw);
mapChar.innerClip.char.gotoAndStop("walk8");
c = new Color(mapChar.innerClip.char.part1);
c.setTransform({ra:_global.part1r, rb:0, ga:_global.part1g, gb:0, ba:_global.part1b, bb:0, aa:100, ab:0});
c = new Color(mapChar.innerClip.char.part1);
c.setTransform({ra:_global.part2r, rb:0, ga:_global.part2g, gb:0, ba:_global.part2b, bb:0, aa:100, ab:0});
c = new Color(mapChar.innerClip.char.part1);
c.setTransform({ra:_global.part3r, rb:0, ga:_global.part3g, gb:0, ba:_global.part3b, bb:0, aa:100, ab:0});
i = 1;
while (i <= 12) {
if (_root.checkAreaLocked(i)) {
this["map" + i]._visible = true;
this["route" + i]._visible = true;
} else {
this["map" + i]._visible = false;
this["route" + i]._visible = false;
}
i++;
}
}
function mapMover(subDestination, finalDestination, target) {
if (_root.mapClip.mapChar.xspeed == -1) {
_root.mapClip.mapChar.xspeed = (_root.mapClip["map" + subDestination]._x - _root.mapClip.mapChar._x) / 100;
_root.mapClip.mapChar.yspeed = (_root.mapClip["map" + subDestination]._y - _root.mapClip.mapChar._y) / 100;
counter = 0;
}
counter++;
_root.mapClip.mapChar._x = _root.mapClip.mapChar._x + _root.mapClip.mapChar.xspeed;
_root.mapClip.mapChar._y = _root.mapClip.mapChar._y + _root.mapClip.mapChar.yspeed;
if (counter >= 100) {
clearInterval(_root.mapClip.mapMoverI);
_root.mapLocation = subDestination;
_root.mapClip.activateMapMove(subDestination, "map" + finalDestination);
}
}
function activateMapMove(start, destination) {
finalDestination = parseInt(destination.substr(3));
_root.mapClip.moveable = false;
_root.mapClip.mapChar.xspeed = -1;
_root.mapClip.mapChar.yspeed = -1;
if (start == finalDestination) {
_global.action = "walking";
_root.mapClip._visible = false;
_root.floor.mouseClickRegion._visible = true;
_root.mapPositor();
_root.mapClip.moveable = true;
} else {
_root.mapLastPosit = start;
switch (finalDestination) {
case 1 :
switch (start) {
case 2 :
subDestination = 1;
break;
case 3 :
case 4 :
case 5 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 2 :
switch (start) {
case 1 :
case 3 :
case 4 :
case 5 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 3 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 3;
break;
case 4 :
case 5 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 4 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 4;
break;
case 3 :
case 5 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 5 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 5;
break;
case 3 :
case 4 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 6 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 6;
break;
case 3 :
case 4 :
case 5 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 7 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 6;
break;
case 3 :
case 4 :
case 5 :
subDestination = 2;
break;
case 6 :
subDestination = 7;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 8 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 6;
break;
case 3 :
case 4 :
case 5 :
subDestination = 2;
break;
case 6 :
subDestination = 7;
break;
case 7 :
subDestination = 8;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 9 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 6;
break;
case 3 :
case 4 :
case 5 :
subDestination = 2;
break;
case 6 :
subDestination = 7;
break;
case 7 :
subDestination = 8;
break;
case 8 :
subDestination = 9;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 10 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 6;
break;
case 3 :
case 4 :
case 5 :
subDestination = 6;
break;
case 6 :
subDestination = 7;
break;
case 7 :
subDestination = 8;
break;
case 8 :
subDestination = 10;
break;
case 9 :
subDestination = 8;
break;
case 11 :
subDestination = 2;
break;
case 12 :
subDestination = 11;
}
break;
case 11 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 11;
break;
case 3 :
case 4 :
case 5 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 12 :
subDestination = 11;
}
break;
case 12 :
switch (start) {
case 1 :
subDestination = 2;
break;
case 2 :
subDestination = 11;
break;
case 3 :
case 4 :
case 5 :
case 6 :
subDestination = 2;
break;
case 7 :
subDestination = 6;
break;
case 8 :
subDestination = 7;
break;
case 9 :
subDestination = 8;
break;
case 10 :
subDestination = 8;
break;
case 11 :
subDestination = 12;
}
}
_root.mapClip.mapMoverI = setInterval(mapMover, 10, subDestination, finalDestination, this);
}
}
Instance of Symbol 2029 MovieClip "map7" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2031 MovieClip "map6" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2034 MovieClip "map11" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2037 MovieClip "map12" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2040 MovieClip "map5" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2044 MovieClip "map4" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2046 MovieClip "map2" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2050 MovieClip "map3" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2053 MovieClip "map1" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2056 MovieClip "map10" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2059 MovieClip "map8" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Instance of Symbol 2062 MovieClip "map9" in Symbol 2088 MovieClip Frame 1
on (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
Symbol 2091 MovieClip Frame 1
stop();
Symbol 2091 MovieClip Frame 10
if (_parent.changeBG) {
_level0.bg.gotoAndStop(_parent.changeBG);
_parent.changeBG = false;
}
gotoAndPlay ("out");
Symbol 2091 MovieClip Frame 20
gotoAndStop (1);
Symbol 2094 Button
on (release) {
_parent._parent.carryOn();
}
Symbol 2112 MovieClip Frame 1
stop();
Instance of Symbol 2116 MovieClip "submit" in Symbol 2119 MovieClip Frame 1
on (keyPress "<Enter>") {
_parent._parent.checkPassword();
}
Symbol 2126 MovieClip Frame 1
stop();
Symbol 2126 MovieClip Frame 2
stop();
Symbol 2127 MovieClip Frame 1
stop();
textCursor._visible = false;
function splitText() {
speechBox.text = "";
displayComplete = false;
if (charDialogue.length < 190) {
currTextBlock = charDialogue;
lastBlock = true;
} else {
tempText = charDialogue.slice(0, 190);
tempTextArray = tempText.split(" ");
newText = "";
i = 0;
while (i < (tempTextArray.length - 1)) {
newText = (newText + tempTextArray[i]) + " ";
i++;
}
currTextBlock = newText;
charDialogue = charDialogue.slice(newText.length);
}
charIndex = 0;
clearInterval(textInterval);
textInterval = setInterval(writeText, 20);
}
function charIn() {
gotoAndPlay ("CharIn");
lastBlock = false;
charNameDisplay.text = charName;
splitText();
}
function writeText() {
if (charIndex != currTextBlock.length) {
speechBox.text = speechBox.text + currTextBlock.charAt(charIndex);
charIndex++;
} else if (!displayComplete) {
displayComplete = true;
textCursor._visible = true;
}
}
function nextText() {
if (_parent.currChatArea == "down") {
if (!displayComplete) {
clearInterval(textInterval);
speechBox.text = "";
speechBox.text = currTextBlock;
displayComplete = true;
textCursor._visible = true;
} else if (!lastBlock) {
splitText();
} else if (!talkComplete) {
_parent.chatCount++;
inPlay = false;
if (_parent.transit) {
_parent.transition_screen.gotoAndPlay("in");
_parent.transit = false;
} else if (_parent.changeBG) {
_level0.bg.gotoAndStop(_parent.changeBG);
_parent.changeBG = false;
}
if (_parent.combatTrigger) {
_level0.startCombat(_parent.combatTrigger);
_parent.combatTrigger = false;
}
if (branch) {
_parent.chatActivate(_parent[branch]);
branch = false;
}
} else {
trace("Down Character is done talking");
}
}
trace((("down " + _parent.chatCount) + " ") + _parent.chatSet.length);
if ((_parent.chatCount >= _parent.chatSet.length) and (!talkComplete)) {
gotoAndPlay ("CharOut");
speechBox.text = "";
charNameDisplay.text = "";
textCursor._visible = false;
talkComplete = true;
}
}
function answersDisplay() {
speechBox.text = "";
charNameDisplay.text = charName;
textCursor._visible = false;
displayComplete = true;
gotoAndStop ("answers");
ansCustom._visible = false;
var _local2 = 0;
while (_local2 < 3) {
this["ans" + _local2]._visible = false;
_local2++;
}
_local2 = 0;
while (_local2 < ansArray.length) {
this["ans" + _local2].gotoAndStop(1);
if (_local2 == 0) {
this["ans" + _local2].gotoAndStop(2);
}
this["ans" + _local2].ans_label.text = ansArray[_local2];
this["ans" + _local2]._visible = true;
_local2++;
}
}
function passwordDisplay() {
speechBox.text = "";
charNameDisplay.text = charName;
textCursor._visible = false;
displayComplete = true;
gotoAndStop ("answers");
ansCustom._visible = true;
Selection.setFocus(ansCustom.ans_label);
var _local2 = 0;
while (_local2 < 3) {
this["ans" + _local2]._visible = false;
_local2++;
}
}
function checkPassword() {
var _local3 = "wrong";
ansCustom._visible = false;
var _local2 = 0;
while (_local2 < ansArray.length) {
if (ansCustom.ans_label.text.toLowerCase() == ansArray[_local2]) {
_local3 = _local2;
break;
}
_local2++;
}
trace(_local3);
if (_local3 != "wrong") {
var _local4 = responses[_local3 + 1];
} else {
var _local4 = responses[0];
}
trace(_local4);
_parent.chatActivate(_parent[_local4]);
}
charIndex = 0;
Symbol 2127 MovieClip Frame 9
stop();
Symbol 2127 MovieClip Frame 19
stop();
Symbol 2127 MovieClip Frame 29
stop();
gotoAndPlay ("hide");
Symbol 2127 MovieClip Frame 30
stop();
Instance of Symbol 2126 MovieClip "ans1" in Symbol 2127 MovieClip Frame 30
on (release) {
_parent._parent.chatActivate(_parent._parent[_parent.responses[1]]);
}
on (rollOver) {
var prevText = _parent.ans0.ans_label.text;
_parent.ans0.gotoAndStop(1);
_parent.ans0.ans_label.text = prevText;
prevText = _parent.ans2.ans_label.text;
_parent.ans2.gotoAndStop(1);
_parent.ans2.ans_label.text = prevText;
prevText = ans_label.text;
gotoAndStop (2);
ans_label.text = prevText;
answerIndex = 1;
}
Instance of Symbol 2126 MovieClip "ans2" in Symbol 2127 MovieClip Frame 30
on (release) {
_parent._parent.chatActivate(_parent._parent[_parent.responses[2]]);
}
on (rollOver) {
var prevText = _parent.ans0.ans_label.text;
_parent.ans0.gotoAndStop(1);
_parent.ans0.ans_label.text = prevText;
prevText = _parent.ans1.ans_label.text;
_parent.ans1.gotoAndStop(1);
_parent.ans1.ans_label.text = prevText;
prevText = ans_label.text;
gotoAndStop (2);
ans_label.text = prevText;
answerIndex = 2;
}
Instance of Symbol 2126 MovieClip "ans0" in Symbol 2127 MovieClip Frame 30
on (release) {
_parent._parent.chatActivate(_parent._parent[_parent.responses[0]]);
}
on (rollOver) {
var prevText = _parent.ans1.ans_label.text;
_parent.ans1.gotoAndStop(1);
_parent.ans1.ans_label.text = prevText;
prevText = _parent.ans2.ans_label.text;
_parent.ans2.gotoAndStop(1);
_parent.ans2.ans_label.text = prevText;
prevText = ans_label.text;
gotoAndStop (2);
ans_label.text = prevText;
answerIndex = 0;
}
Symbol 2127 MovieClip Frame 69
stop();
_parent._visible = false;
_level0.populate_inventory();
trace((("Chat finish clear: " + _parent.CI) + " and ") + textInterval);
clearInterval(_parent.CI);
clearInterval(textInterval);
if (_level0.shopSystem._visible) {
_level0.shopSystem.menu._visible = true;
} else {
_global.action = "walking";
_level0.floor.mouseClickRegion._visible = true;
_level0.worldMenu._visible = true;
}
Symbol 2131 MovieClip Frame 1
stop();
textCursor._visible = false;
function splitText() {
speechBox.text = "";
displayComplete = false;
if (charDialogue.length < 190) {
currTextBlock = charDialogue;
lastBlock = true;
} else {
tempText = charDialogue.slice(0, 190);
tempTextArray = tempText.split(" ");
newText = "";
i = 0;
while (i < (tempTextArray.length - 1)) {
newText = (newText + tempTextArray[i]) + " ";
i++;
}
currTextBlock = newText;
charDialogue = charDialogue.slice(newText.length);
}
charIndex = 0;
clearInterval(textInterval);
textInterval = setInterval(writeText, 20);
}
function charIn() {
gotoAndPlay ("CharIn");
lastBlock = false;
charNameDisplay.text = charName;
splitText();
}
function writeText() {
trace("a");
if (charIndex != currTextBlock.length) {
speechBox.text = speechBox.text + currTextBlock.charAt(charIndex);
charIndex++;
} else if (!displayComplete) {
displayComplete = true;
textCursor._visible = true;
}
}
function nextText() {
if (_parent.currChatArea == "up") {
if (!displayComplete) {
clearInterval(textInterval);
speechBox.text = "";
speechBox.text = currTextBlock;
displayComplete = true;
textCursor._visible = true;
} else if (!lastBlock) {
splitText();
} else if (!talkComplete) {
_parent.chatCount++;
inPlay = false;
if (_parent.transit) {
_parent.transition_screen.gotoAndPlay("in");
_parent.transit = false;
} else if (_parent.changeBG) {
_level0.bg.gotoAndStop(_parent.changeBG);
_parent.changeBG = false;
}
if (_parent.combatTrigger) {
_level0.startCombat(_parent.combatTrigger);
_parent.combatTrigger = false;
}
if (branch) {
_parent.chatActivate(_parent[branch]);
branch = false;
}
} else {
trace("Up Character is done talking");
}
}
trace((("up " + _parent.chatCount) + " ") + _parent.chatSet.length);
if ((_parent.chatCount >= _parent.chatSet.length) and (!talkComplete)) {
clearInterval(_parent.CI);
gotoAndPlay ("CharOut");
speechBox.text = "";
charNameDisplay.text = "";
textCursor._visible = false;
talkComplete = true;
}
}
charIndex = 0;
Symbol 2131 MovieClip Frame 9
stop();
Symbol 2131 MovieClip Frame 19
stop();
Symbol 2131 MovieClip Frame 29
stop();
gotoAndPlay ("hide");
Symbol 2131 MovieClip Frame 40
stop();
_parent._visible = false;
_level0.populate_inventory();
trace((("Chat finish clear: " + _parent.CI) + " and ") + textInterval);
clearInterval(_parent.CI);
clearInterval(textInterval);
if (_level0.shopSystem._visible) {
_level0.shopSystem.menu._visible = true;
} else {
_global.action = "walking";
_level0.floor.mouseClickRegion._visible = true;
_level0.worldMenu._visible = true;
}
Symbol 2132 MovieClip Frame 1
ron_0_1 = new Object();
ron_0_1.area = "up";
ron_0_1.speaker = "Uncle Ron";
ron_0_1.portrait = "ron";
ron_0_1.dialogue = new Array("Well well. Look who's finally up.");
ron_0_2 = new Object();
ron_0_2.area = "up";
ron_0_2.speaker = "Uncle Ron";
ron_0_2.portrait = "ron";
ron_0_2.dialogue = new Array("Thought you were going to 'forget' about helping me in the store today.");
ron_0_3 = new Object();
ron_0_3.area = "down";
ron_0_3.portrait = _level0.charA001.portrait;
ron_0_3.speaker = _level0.heroName;
ron_0_3.dialogue = new Array("Now now Ron, would I ever do that?");
ron_0_4 = new Object();
ron_0_4.area = "up";
ron_0_4.portrait = "ron";
ron_0_4.speaker = "Uncle Ron";
ron_0_4.dialogue = new Array("Wouldn't be the first time.");
ron_0_5 = new Object();
ron_0_5.area = "down";
ron_0_5.portrait = _level0.charA001.portrait;
ron_0_5.speaker = _level0.heroName;
ron_0_5.dialogue = new Array("Heh heh. So what's up for today?");
ron_0_6 = new Object();
ron_0_6.area = "up";
ron_0_6.portrait = "ron";
ron_0_6.speaker = "Uncle Ron";
ron_0_6.dialogue = new Array("First thing's first. I need to get some spare parts.");
ron_0_8 = new Object();
ron_0_8.area = "up";
ron_0_8.portrait = "ron";
ron_0_8.speaker = "Uncle Ron";
ron_0_8.dialogue = new Array("And since I twisted my ankle yesterday, you're going to help me do it.");
ron_0_16 = new Object();
ron_0_16.area = "down";
ron_0_16.portrait = _level0.charA001.portrait;
ron_0_16.speaker = _level0.heroName;
ron_0_16.dialogue = new Array("Wait, don't tell me...");
ron_0_17 = new Object();
ron_0_17.area = "down";
ron_0_17.portrait = _level0.charA001.portrait;
ron_0_17.speaker = _level0.heroName;
ron_0_17.dialogue = new Array("These parts can only be found at The Scrapyard.");
ron_0_18 = new Object();
ron_0_18.area = "up";
ron_0_18.portrait = "ron";
ron_0_18.speaker = "Uncle Ron";
ron_0_18.dialogue = new Array("That's right. You'd have to go though the Great Tiki Jungle to get there.");
ron_0_18a = new Object();
ron_0_18a.area = "up";
ron_0_18a.portrait = "ron";
ron_0_18a.speaker = "Uncle Ron";
ron_0_18a.dialogue = new Array("Now I know you're worried about the renegade machinery there. That's why you'll be using a MAW.");
ron_0_19 = new Object();
ron_0_19.area = "down";
ron_0_19.chatType = "choice";
ron_0_19.portrait = _level0.charA001.portrait;
ron_0_19.speaker = _level0.heroName;
ron_0_19.dialogue = new Array("I am?", "Woohoo!");
ron_0_19.responses = new Array("ron_0a", "ron_0b");
ron_0_19a = new Object();
ron_0_19a.area = "down";
ron_0_19a.portrait = _level0.charA001.portrait;
ron_0_19a.speaker = _level0.heroName;
ron_0_19a.dialogue = new Array("I am?");
ron_0_19b = new Object();
ron_0_19b.area = "down";
ron_0_19b.portrait = _level0.charA001.portrait;
ron_0_19b.speaker = _level0.heroName;
ron_0_19b.dialogue = new Array("Woohoo!");
ron_0_19a1 = new Object();
ron_0_19a1.area = "up";
ron_0_19a1.portrait = "ron";
ron_0_19a1.speaker = "Uncle Ron";
ron_0_19a1.dialogue = new Array("Yes you are.");
ron_0_19b1 = new Object();
ron_0_19b1.area = "up";
ron_0_19b1.portrait = "ron";
ron_0_19b1.speaker = "Uncle Ron";
ron_0_19b1.dialogue = new Array("Glad to see that you're so enthusiastic about it.");
ron_0_20 = new Object();
ron_0_20.area = "up";
ron_0_20.portrait = "ron";
ron_0_20.speaker = "Uncle Ron";
ron_0_20.dialogue = new Array("The MAW will be a big help if you run into any trouble at The Scrapyard.");
ron_0_21 = new Object();
ron_0_21.area = "down";
ron_0_21.portrait = _level0.charA001.portrait;
ron_0_21.speaker = _level0.heroName;
ron_0_21.dialogue = new Array("It's been a while since I piloted one. What are the parts for anyway?");
ron_0_22 = new Object();
ron_0_22.area = "up";
ron_0_22.portrait = "ron";
ron_0_22.speaker = "Uncle Ron";
ron_0_22.dialogue = new Array("We'll worry about that later.");
ron_0_23 = new Object();
ron_0_23.area = "up";
ron_0_23.speaker = "Uncle Ron";
ron_0_23.portrait = "ron";
ron_0_23.dialogue = new Array("Now help me up. We're going to the garage.", "Now help me up. We're going to the garage.");
ron_0_23.chatType = "random";
ron_0_23.responses = new Array("ron_1", "ron_1");
action1 = {actionType:"bg", transit:true, bg:"rongarage"};
ron_0_23.actions = new Array(action1);
ron_0 = new Array(ron_0_1, ron_0_2, ron_0_3, ron_0_4, ron_0_5, ron_0_6, ron_0_8, ron_0_16, ron_0_17, ron_0_18, ron_0_18a, ron_0_19);
ron_0a = new Array(ron_0_19a, ron_0_19a1, ron_0_20, ron_0_21, ron_0_22, ron_0_23);
ron_0b = new Array(ron_0_19b, ron_0_19b1, ron_0_20, ron_0_21, ron_0_22, ron_0_23);
ron_1_1 = new Object();
ron_1_1.area = "up";
ron_1_1.portrait = "ron";
ron_1_1.speaker = "Uncle Ron";
ron_1_1.dialogue = new Array("What we have here is one of the most basic Mobile Adaptive Weapon models.");
ron_1_2 = new Object();
ron_1_2.area = "up";
ron_1_2.portrait = "ron";
ron_1_2.speaker = "Uncle Ron";
ron_1_2.dialogue = new Array("This... is the " + _level0.botName);
ron_1_3 = new Object();
ron_1_3.area = "down";
ron_1_3.portrait = _level0.charA001.portrait;
ron_1_3.speaker = _level0.heroName;
ron_1_3.dialogue = new Array("Ah, I remember this model.");
ron_1_4 = new Object();
ron_1_4.area = "up";
ron_1_4.portrait = "ron";
ron_1_4.speaker = "Uncle Ron";
ron_1_4.dialogue = new Array("Of course, for this situation, you'll need to have weapons attached to the MAW.");
ron_1_5 = new Object();
ron_1_5.area = "up";
ron_1_5.portrait = "ron";
ron_1_5.speaker = "Uncle Ron";
ron_1_5.dialogue = new Array("Fortunately, it already comes with a Bronze Fist and a Mini Cannon.");
ron_1_6 = new Object();
ron_1_6.area = "down";
ron_1_6.portrait = _level0.charA001.portrait;
ron_1_6.speaker = _level0.heroName;
ron_1_6.dialogue = new Array("Fine by me.");
ron_1_7 = new Object();
ron_1_7.area = "up";
ron_1_7.portrait = "ron";
ron_1_7.speaker = "Uncle Ron";
ron_1_7.dialogue = new Array("Now I know you haven't piloted a MAW in a while, so do you need a refresher course?");
ron_1_8 = new Object();
ron_1_8.area = "down";
ron_1_8.portrait = _level0.charA001.portrait;
ron_1_8.chatType = "choice";
ron_1_8.speaker = _level0.heroName;
ron_1_8.dialogue = new Array("Yes.", "No.");
ron_1_8.responses = new Array("ron_1a", "ron_1b");
ron_1_8a = new Object();
ron_1_8a.area = "down";
ron_1_8a.portrait = _level0.charA001.portrait;
ron_1_8a.speaker = _level0.heroName;
ron_1_8a.dialogue = new Array("I'm quite sure I do.");
ron_1_8b = new Object();
ron_1_8b.area = "down";
ron_1_8b.portrait = _level0.charA001.portrait;
ron_1_8b.speaker = _level0.heroName;
ron_1_8b.dialogue = new Array("Nope.");
ron_1_9 = new Object();
ron_1_9.area = "up";
ron_1_9.portrait = "ron";
ron_1_9.speaker = "Uncle Ron";
ron_1_9.dialogue = new Array("Good. That will save us some time.");
ron_1_10 = new Object();
ron_1_10.area = "up";
ron_1_10.portrait = "ron";
ron_1_10.speaker = "Uncle Ron";
ron_1_10.dialogue = new Array("Now about those parts...");
ron_1_11 = new Object();
ron_1_11.area = "up";
ron_1_11.portrait = "ron";
ron_1_11.speaker = "Uncle Ron";
ron_1_11.dialogue = new Array("I need you to get me 5 Gears, 3 Gyrobolts and 1 Polyboard.");
action1 = {actionType:"quest", id:"1", val:1};
ron_1_11.actions = new Array(action1);
ron_1_12 = new Object();
ron_1_12.area = "up";
ron_1_12.portrait = "ron";
ron_1_12.speaker = "Uncle Ron";
ron_1_12.dialogue = new Array("Here, I'll put it down on a list for you.");
ron_1_13 = new Object();
ron_1_13.area = "down";
ron_1_13.portrait = _level0.charA001.portrait;
ron_1_13.speaker = _level0.heroName;
ron_1_13.dialogue = new Array("Leave it to me, Ron.");
ron_1 = new Array(ron_1_1, ron_1_3, ron_1_4, ron_1_5, ron_1_6, ron_1_10, ron_1_11, ron_1_12, ron_1_13);
ron_tut_1 = new Object();
ron_tut_1.area = "up";
ron_tut_1.portrait = "ron";
ron_tut_1.speaker = "Uncle Ron";
ron_tut_1.dialogue = new Array("Then let's begin.");
ron_2_1 = new Object();
ron_2_1.area = "up";
ron_2_1.portrait = "ron";
ron_2_1.speaker = "Uncle Ron";
ron_2_1.chatType = "compare";
condition1_1 = {compareType:"quest", id:"1", statusVal:1};
condition2_1 = {compareType:"quest", id:"1", statusVal:99};
condition2_2 = {compareType:"quest", id:"3", statusVal:0};
condition3_1 = {compareType:"quest", id:"3", statusVal:1};
condition4_1 = {compareType:"quest", id:"3", statusVal:99};
condition1 = new Array(condition1_1);
condition2 = new Array(condition2_1, condition2_2);
condition3 = new Array(condition2_1, condition3_1);
condition4 = new Array(condition4_1);
ron_2_1.conditionArray = new Array(condition1, condition2, condition3, condition4);
ron_2_1.dialogue = new Array("...", "Do you have the parts yet?", ("What is it, " + _level0.heroName) + "?", "Do you have the 3 plasmarocks?", "I'm still not done with the Macrogen.");
ron_2_1.responses = new Array("ron_0", "ron_3", "ron_3c", "ron_4", "ron_4c");
ron_3_1 = new Object();
ron_3_1.area = "down";
ron_3_1.portrait = _level0.charA001.portrait;
ron_3_1.speaker = _level0.heroName;
ron_3_1.chatType = "compare";
condition1_1 = {compareType:"item", id:"I000Q", minVal:5, maxVal:999};
condition1_2 = {compareType:"item", id:"I001Q", minVal:1, maxVal:999};
condition1_3 = {compareType:"item", id:"I002Q", minVal:3, maxVal:999};
condition1 = new Array(condition1_1, condition1_2, condition1_3);
ron_3_1.conditionArray = new Array(condition1);
ron_3_1.dialogue = new Array("Not yet.", "I have them.");
ron_3_1.responses = new Array("ron_3a", "ron_3b");
ron_3a_1 = new Object();
ron_3a_1.area = "up";
ron_3a_1.portrait = "ron";
ron_3a_1.speaker = "Uncle Ron";
ron_3a_1.dialogue = new Array("Take your time.");
ron_2 = new Array(ron_2_1);
ron_3 = new Array(ron_3_1);
ron_3a = new Array(ron_3a_1);
ron_3b_1 = new Object();
ron_3b_1.area = "up";
ron_3b_1.portrait = "ron";
ron_3b_1.speaker = "Uncle Ron";
ron_3b_1.dialogue = new Array("Excellent! Here's something for your efforts. (+ 300 credits)");
action1 = {actionType:"quest", id:"1", val:99};
action2 = {actionType:"item", id:"I000Q", val:-5};
action3 = {actionType:"item", id:"I002Q", val:-3};
action4 = {actionType:"item", id:"I001Q", val:-1};
action5 = {actionType:"item", id:"I003Q", val:-1};
action6 = {actionType:"credits", val:300};
ron_3b_1.actions = new Array(action1, action2, action3, action4, action5, action6);
ron_3b_2 = new Object();
ron_3b_2.area = "down";
ron_3b_2.portrait = _level0.charA001.portrait;
ron_3b_2.speaker = _level0.heroName;
ron_3b_2.dialogue = new Array("What are the parts for?");
ron_3b_2a = new Object();
ron_3b_2a.area = "up";
ron_3b_2a.portrait = "ron";
ron_3b_2a.speaker = "Uncle Ron";
ron_3b_2a.dialogue = new Array("Well the situation's like this...");
ron_3b_2b = new Object();
ron_3b_2b.area = "up";
ron_3b_2b.portrait = "ron";
ron_3b_2b.speaker = "Uncle Ron";
ron_3b_2b.dialogue = new Array("Why don't you go take a walk and come back later.");
ron_3b_3 = new Object();
ron_3b_3.area = "up";
ron_3b_3.portrait = "ron";
ron_3b_3.speaker = "Uncle Ron";
ron_3b_3.dialogue = new Array("Calisto called this morning. One of the Sprouts damaged the auto extender of the bridge at Endless Gorge.");
ron_3b_4 = new Object();
ron_3b_4.area = "down";
ron_3b_4.portrait = _level0.charA001.portrait;
ron_3b_4.speaker = _level0.heroName;
ron_3b_4.dialogue = new Array("Again?? That's the third time this month!");
ron_3b_5 = new Object();
ron_3b_5.area = "up";
ron_3b_5.portrait = "ron";
ron_3b_5.speaker = "Uncle Ron";
ron_3b_5.dialogue = new Array("That's what I told her. In any case, she needs a replacement Macrogen, so I'm building her one right now.");
ron_3b_5b = new Object();
ron_3b_5b.area = "down";
ron_3b_5b.portrait = _level0.charA001.portrait;
ron_3b_5b.speaker = _level0.heroName;
ron_3b_5b.dialogue = new Array("So that's why you need those parts.");
ron_3b_5c = new Object();
ron_3b_5c.area = "up";
ron_3b_5c.portrait = "ron";
ron_3b_5c.speaker = "Uncle Ron";
ron_3b_5c.dialogue = new Array("Yes, but we're not done yet.");
ron_3b_5d = new Object();
ron_3b_5d.area = "down";
ron_3b_5d.portrait = _level0.charA001.portrait;
ron_3b_5d.speaker = _level0.heroName;
ron_3b_5d.dialogue = new Array("We're not?");
ron_3b_6 = new Object();
ron_3b_6.area = "up";
ron_3b_6.portrait = "ron";
ron_3b_6.speaker = "Uncle Ron";
ron_3b_6.dialogue = new Array("No, I'm going to need 3 small chunks of plasmarock.");
action1 = {actionType:"quest", id:"3", val:1};
ron_3b_6.actions = new Array(action1);
ron_3b_7 = new Object();
ron_3b_7.area = "down";
ron_3b_7.portrait = _level0.charA001.portrait;
ron_3b_7.speaker = _level0.heroName;
ron_3b_7.dialogue = new Array("Ohhhh that's right... Fuel for the macrogen.");
ron_3b_8 = new Object();
ron_3b_8.area = "down";
ron_3b_8.portrait = _level0.charA001.portrait;
ron_3b_8.speaker = _level0.heroName;
ron_3b_8.dialogue = new Array("But don't you already have some in the garage?");
ron_3b_9 = new Object();
ron_3b_9.area = "up";
ron_3b_9.portrait = "ron";
ron_3b_9.speaker = "Uncle Ron";
ron_3b_9.dialogue = new Array("Those are already encapsulated. I need it in its raw form.");
ron_3b_10 = new Object();
ron_3b_10.area = "down";
ron_3b_10.portrait = _level0.charA001.portrait;
ron_3b_10.speaker = _level0.heroName;
ron_3b_10.dialogue = new Array("Ok, I'll get right to it.");
ron_3b_11 = new Object();
ron_3b_11.area = "up";
ron_3b_11.portrait = "ron";
ron_3b_11.speaker = "Uncle Ron";
ron_3b_11.dialogue = new Array(("Hold on a minute, " + _level0.heroName) + ". You're going to need some help on this.");
ron_3b_12 = new Object();
ron_3b_12.area = "up";
ron_3b_12.portrait = "ron";
ron_3b_12.speaker = "Uncle Ron";
ron_3b_12.dialogue = new Array("Billy! Get over here.");
ron_3b_13 = new Object();
ron_3b_13.area = "up";
ron_3b_13.portrait = "barrage";
ron_3b_13.speaker = "Billy Barrage";
ron_3b_13.dialogue = new Array("Be right over Mister R!");
ron_3b_14 = new Object();
ron_3b_14.area = "down";
ron_3b_14.portrait = _level0.charA001.portrait;
ron_3b_14.speaker = _level0.heroName;
ron_3b_14.dialogue = new Array("Oh, Billy Barrage is here?");
ron_3b_15 = new Object();
ron_3b_15.area = "up";
ron_3b_15.portrait = "ron";
ron_3b_15.speaker = "Uncle Ron";
ron_3b_15.dialogue = new Array("He came in with his MAW last night");
ron_3b_16 = new Object();
ron_3b_16.area = "down";
ron_3b_16.portrait = _level0.charA001.portrait;
ron_3b_16.speaker = _level0.heroName;
ron_3b_16.dialogue = new Array("But how would Billy help in this case?");
ron_3b_17 = new Object();
ron_3b_17.area = "up";
ron_3b_17.portrait = "ron";
ron_3b_17.speaker = "Uncle Ron";
ron_3b_17.dialogue = new Array("The reason is simple. On Acero Isle, we get our plasmarock mainly from within the Lazlo Mines.");
ron_3b_18 = new Object();
ron_3b_18.area = "up";
ron_3b_18.portrait = "ron";
ron_3b_18.speaker = "Uncle Ron";
ron_3b_18.dialogue = new Array("Billy's MAW has more power than yours, so it can easily break down any rocky obstacles in the mines.");
ron_3b_19 = new Object();
ron_3b_19.area = "up";
ron_3b_19.portrait = "ron";
ron_3b_19.speaker = "Uncle Ron";
ron_3b_19.dialogue = new Array("Besides, the mines are a dangerous place. Having another person to go with you wouldn't hurt.");
ron_3b_20 = new Object();
ron_3b_20.area = "up";
ron_3b_20.portrait = "barrage";
ron_3b_20.speaker = "Billy Barrage";
ron_3b_20.dialogue = new Array("What's up Mister R?");
ron_3b_21 = new Object();
ron_3b_21.area = "up";
ron_3b_21.portrait = "barrage";
ron_3b_21.speaker = "Billy Barrage";
ron_3b_21.dialogue = new Array(("Oh heeeey... " + _level0.heroName) + "!!!");
ron_3b_22 = new Object();
ron_3b_22.area = "down";
ron_3b_22.portrait = _level0.charA001.portrait;
ron_3b_22.speaker = _level0.heroName;
ron_3b_22.dialogue = new Array("Hey Billy, how have you been?");
ron_3b_23 = new Object();
ron_3b_23.area = "up";
ron_3b_23.portrait = "barrage";
ron_3b_23.speaker = "Billy Barrage";
ron_3b_23.dialogue = new Array("Never been better! Mister R here did a bang-up job repairing my MAW last night.");
ron_3b_24 = new Object();
ron_3b_24.area = "up";
ron_3b_24.portrait = "ron";
ron_3b_24.speaker = "Uncle Ron";
ron_3b_24.dialogue = new Array(("Billy, I was wondering if you could help " + _level0.heroName) + " out.");
ron_3b_25 = new Object();
ron_3b_25.area = "down";
ron_3b_25.portrait = _level0.charA001.portrait;
ron_3b_25.speaker = _level0.heroName;
ron_3b_25.dialogue = new Array("I need to get 3 small chunks of plasmarock at the Lazlo Mines.");
ron_3b_25a = new Object();
ron_3b_25a.area = "down";
ron_3b_25a.portrait = _level0.charA001.portrait;
ron_3b_25a.speaker = _level0.heroName;
ron_3b_25a.dialogue = new Array("Calisto's fixing the bridge at endless gorge and she needs a new Macrogen, so Ron's building her one.");
ron_3b_26 = new Object();
ron_3b_26.area = "up";
ron_3b_26.portrait = "barrage";
ron_3b_26.speaker = "Billy Barrage";
ron_3b_26.dialogue = new Array("Sure thing! I need to get back to Costa de Acero anyway. Can't go with the bridge down.");
action1 = {actionType:"party", id:"A002", pos:2};
ron_3b_26.actions = new Array(action1);
ron_3b_26a = new Object();
ron_3b_26a.area = "up";
ron_3b_26a.portrait = "barrage";
ron_3b_26a.speaker = "Billy Barrage";
ron_3b_26a.dialogue = new Array("Besides, I've dealt with mines before.");
ron_3b_27 = new Object();
ron_3b_27.area = "down";
ron_3b_27.portrait = _level0.charA001.portrait;
ron_3b_27.speaker = _level0.heroName;
ron_3b_27.dialogue = new Array("Oh that's right, your dad used to work in the mines didn't he?");
ron_3b_28 = new Object();
ron_3b_28.area = "up";
ron_3b_28.portrait = "barrage";
ron_3b_28.speaker = "Billy Barrage";
ron_3b_28.dialogue = new Array("Yep.");
ron_3b_29 = new Object();
ron_3b_29.area = "up";
ron_3b_29.portrait = "ron";
ron_3b_29.speaker = "Uncle Ron";
ron_3b_29.dialogue = new Array("You two better get going. If I know Calisto, she's probably getting frustrated from all the waiting right now.");
ron_3b_30 = new Object();
ron_3b_30.area = "down";
ron_3b_30.portrait = "barrage";
ron_3b_30.speaker = "Billy Barrage";
ron_3b_30.dialogue = new Array(("Right, let's go " + _level0.heroName) + "!");
ron_4_1 = new Object();
ron_4_1.area = "down";
ron_4_1.portrait = _level0.charA001.portrait;
ron_4_1.speaker = _level0.heroName;
ron_4_1.chatType = "compare";
condition1_1 = {compareType:"item", id:"I006Q", minVal:3, maxVal:999};
condition1 = new Array(condition1_1);
ron_4_1.conditionArray = new Array(condition1);
ron_4_1.dialogue = new Array("We'll get it soon.", "Here, just like you asked.");
ron_4_1.responses = new Array("ron_4a", "ron_4b");
ron_4_2 = new Object();
ron_4_2.area = "down";
ron_4_2.portrait = "barrage";
ron_4_2.speaker = "Billy Barrage";
ron_4_2.dialogue = new Array("You can count on us Mister R!");
ron_3c = new Array(ron_3b_2, ron_3b_2a, ron_3b_3, ron_3b_4, ron_3b_5, ron_3b_5b, ron_3b_5c, ron_3b_5d, ron_3b_6, ron_3b_7, ron_3b_8, ron_3b_9, ron_3b_10, ron_3b_11, ron_3b_12, ron_3b_13, ron_3b_14, ron_3b_15, ron_3b_16, ron_3b_17, ron_3b_18, ron_3b_19, ron_3b_20, ron_3b_21, ron_3b_22, ron_3b_23, ron_3b_24, ron_3b_25, ron_3b_25a, ron_3b_26, ron_3b_26a, ron_3b_27, ron_3b_28, ron_3b_29, ron_3b_30);
ron_3b = new Array(ron_3b_1, ron_3b_2, ron_3b_2a, ron_3b_3, ron_3b_4, ron_3b_5, ron_3b_5b, ron_3b_5c, ron_3b_5d, ron_3b_6, ron_3b_7, ron_3b_8, ron_3b_9, ron_3b_10, ron_3b_11, ron_3b_12, ron_3b_13, ron_3b_14, ron_3b_15, ron_3b_16, ron_3b_17, ron_3b_18, ron_3b_19, ron_3b_20, ron_3b_21, ron_3b_22, ron_3b_23, ron_3b_24, ron_3b_25, ron_3b_25a, ron_3b_26, ron_3b_26a, ron_3b_27, ron_3b_28, ron_3b_29, ron_3b_30);
ron_4 = new Array(ron_4_1);
ron_4a = new Array(ron_4_2);
ron_4_3 = new Object();
ron_4_3.area = "up";
ron_4_3.portrait = "ron";
ron_4_3.speaker = "Uncle Ron";
ron_4_3.dialogue = new Array("That will do nicely. Good work... both of you! Here's 500 credits.");
action1 = {actionType:"quest", id:"3", val:99};
action2 = {actionType:"credits", val:500};
action3 = {actionType:"item", id:"I006Q", val:-3};
ron_4_3.actions = new Array(action1, action2, action3);
ron_4_4 = new Object();
ron_4_4.area = "up";
ron_4_4.portrait = "ron";
ron_4_4.speaker = "Uncle Ron";
ron_4_4.dialogue = new Array("Now I can go on to build the Macrogen.");
ron_4_5 = new Object();
ron_4_5.area = "up";
ron_4_5.portrait = "ron";
ron_4_5.speaker = "Uncle Ron";
ron_4_5.dialogue = new Array("This may take a while though, so you two might want to come back later.");
ron_4_6 = new Object();
ron_4_6.area = "down";
ron_4_6.portrait = "barrage";
ron_4_6.speaker = "Billy Barrage";
ron_4_6.dialogue = new Array("You got it Mister R.");
ron_4_7 = new Object();
ron_4_7.area = "down";
ron_4_7.portrait = _level0.charA001.portrait;
ron_4_7.speaker = _level0.heroName;
ron_4_7.dialogue = new Array("We'll just come back later then.");
ron_4b = new Array(ron_4_3, ron_4_4, ron_4_5, ron_4_6);
ron_4c = new Array(ron_4_7);
robyn_0_1 = new Object();
robyn_0_1.area = "up";
robyn_0_1.speaker = "Robyn";
robyn_0_1.portrait = "robyn";
robyn_0_1.chatType = "compare";
condition1_1 = {compareType:"quest", id:"2", statusVal:99};
condition1 = new Array(condition1_1);
robyn_0_1.conditionArray = new Array(condition1);
robyn_0_1.dialogue = new Array("Hello, haven't seen you around for quite a while.", "Anything the matter?");
robyn_0_1.responses = new Array("robyn_0a", "robyn_0b");
robyn_0a_1 = new Object();
robyn_0a_1.area = "down";
robyn_0a_1.speaker = _level0.heroName;
robyn_0a_1.portrait = _level0.charA001.portrait;
robyn_0a_1.dialogue = new Array("Yeah I've been kind of busy.");
robyn_0a_2 = new Object();
robyn_0a_2.area = "up";
robyn_0a_2.speaker = "Robyn";
robyn_0a_2.portrait = "robyn";
robyn_0a_2.dialogue = new Array("Hope you haven't been giving old Ron too much trouble.");
robyn_0a_3 = new Object();
robyn_0a_3.area = "up";
robyn_0a_3.speaker = "Robyn";
robyn_0a_3.portrait = "robyn";
robyn_0a_3.dialogue = new Array("Anyway, can I get you anything?");
robyn_0a_4 = new Object();
robyn_0a_4.area = "down";
robyn_0a_4.speaker = _level0.heroName;
robyn_0a_4.portrait = _level0.charA001.portrait;
robyn_0a_4.dialogue = new Array("That's alright, Robyn.");
robyn_0a_5 = new Object();
robyn_0a_5.area = "down";
robyn_0a_5.speaker = _level0.heroName;
robyn_0a_5.portrait = _level0.charA001.portrait;
robyn_0a_5.dialogue = new Array("Just thought I'd drop by the Clockwork Inn for a visit.");
robyn_0a_6 = new Object();
robyn_0a_6.area = "up";
robyn_0a_6.speaker = "Robyn";
robyn_0a_6.portrait = "robyn";
robyn_0a_6.dialogue = new Array("Well now, isn't that nice?");
robyn_0a_7 = new Object();
robyn_0a_7.area = "up";
robyn_0a_7.speaker = "Robyn";
robyn_0a_7.portrait = "robyn";
robyn_0a_7.dialogue = new Array("I'll be right here if you need something.");
action1 = {actionType:"quest", id:"2", val:99};
robyn_0a_7.actions = new Array(action1);
robyn_0 = new Array(robyn_0_1);
robyn_0a = new Array(robyn_0a_1, robyn_0a_2, robyn_0a_3, robyn_0a_4, robyn_0a_5, robyn_0a_6, robyn_0a_7);
robyn_0b_1 = new Object();
robyn_0b_1.area = "down";
robyn_0b_1.speaker = _level0.heroName;
robyn_0b_1.portrait = _level0.charA001.portrait;
robyn_0b_1.chatType = "compare";
condition1_1 = {compareType:"quest", id:"7", statusVal:1};
condition1_2 = {compareType:"item", id:"I005Q", minVal:1, maxVal:999};
condition1 = new Array(condition1_1, condition1_2);
robyn_0b_1.conditionArray = new Array(condition1);
robyn_0b_1.dialogue = new Array("Anything interesting to share?", "Elyssa wanted me to give you this bill.");
robyn_0b_1.responses = new Array("robyn_0b1", "robyn_2");
robyn_0b_2 = new Object();
robyn_0b_2.area = "up";
robyn_0b_2.speaker = "Robyn";
robyn_0b_2.portrait = "robyn";
robyn_0b_2.chatType = "random";
robyn_0b_2.dialogue = new Array("Only my meat loaf slices. You want one?", "Here's a friendly reminder for you...", "You know, I'm really annoyed that I still can't guess Donna's last name.");
robyn_0b_2.responses = new Array("robyn_0d", "robyn_0e", "robyn_0c");
robyn_0c_1 = new Object();
robyn_0c_1.area = "up";
robyn_0c_1.speaker = "Robyn";
robyn_0c_1.portrait = "robyn";
robyn_0c_1.dialogue = new Array("Elyssa would probably know though. After all, they're business partners.");
robyn_1_1 = new Object();
robyn_1_1.area = "down";
robyn_1_1.speaker = _level0.heroName;
robyn_1_1.portrait = _level0.charA001.portrait;
robyn_1_1.dialogue = new Array("Thanks, Robyn.");
robyn_0d_1 = new Object();
robyn_0d_1.area = "down";
robyn_0d_1.speaker = _level0.heroName;
robyn_0d_1.portrait = _level0.charA001.portrait;
robyn_0d_1.dialogue = new Array("Uhhh.. I appreciate the offer, but no thanks.");
robyn_0e_1 = new Object();
robyn_0e_1.area = "up";
robyn_0e_1.speaker = "Robyn";
robyn_0e_1.portrait = "robyn";
robyn_0e_1.dialogue = new Array("Always remember to have a weapon selected before making an attack with a MAW.");
robyn_0e_2 = new Object();
robyn_0e_2.area = "up";
robyn_0e_2.speaker = "Robyn";
robyn_0e_2.portrait = "robyn";
robyn_0e_2.dialogue = new Array("Otherwise you won't be able to do anything.");
robyn_1_2 = new Object();
robyn_1_2.area = "up";
robyn_1_2.speaker = "Robyn";
robyn_1_2.portrait = "robyn";
robyn_1_2.dialogue = new Array("Anytime.");
robyn_0b = new Array(robyn_0b_1, robyn_0b_2);
robyn_0b1 = new Array(robyn_0b_2);
robyn_0c = new Array(robyn_0c_1, robyn_1_1, robyn_1_2);
robyn_0d = new Array(robyn_0d_1, robyn_1_2);
robyn_0e = new Array(robyn_0e_1, robyn_0e_2, robyn_1_1);
robyn_2_1 = new Object();
robyn_2_1.area = "up";
robyn_2_1.speaker = "Robyn";
robyn_2_1.portrait = "robyn";
robyn_2_1.dialogue = new Array("Thanks, kiddo. I almost forgot about this.");
action1 = {actionType:"quest", id:"7", val:2};
action2 = {actionType:"item", id:"I005Q", val:-1};
robyn_2_1.actions = new Array(action1, action2);
robyn_2_2 = new Object();
robyn_2_2.area = "up";
robyn_2_2.speaker = "Robyn";
robyn_2_2.portrait = "robyn";
robyn_2_2.dialogue = new Array("Tell her that I'll pay her tomorrow.");
robyn_2_3 = new Object();
robyn_2_3.area = "down";
robyn_2_3.speaker = _level0.heroName;
robyn_2_3.portrait = _level0.charA001.portrait;
robyn_2_3.dialogue = new Array("Alright.");
robyn_2 = new Array(robyn_2_1, robyn_2_2, robyn_2_3);
donna_0_1 = new Object();
donna_0_1.area = "up";
donna_0_1.speaker = "Donna";
donna_0_1.portrait = "donna";
donna_0_1.chatType = "compare";
condition1_1 = {compareType:"quest", id:"4", statusVal:99};
condition1_2 = {compareType:"quest", id:"5", statusVal:1};
condition1 = new Array(condition1_1, condition1_2);
condition2_1 = {compareType:"quest", id:"4", statusVal:99};
condition2_2 = {compareType:"quest", id:"5", statusVal:99};
condition2 = new Array(condition2_1, condition2_2);
donna_0_1.conditionArray = new Array(condition1, condition2);
donna_0_1.dialogue = new Array(("Hi " + _level0.heroName) + "!", "Oh you're back!", "What's up smarty-pants?");
donna_0_1.responses = new Array("donna_0a", "donna_1", "donna_1a");
donna_0_2 = new Object();
donna_0_2.area = "down";
donna_0_2.speaker = _level0.heroName;
donna_0_2.portrait = _level0.charA001.portrait;
donna_0_2.dialogue = new Array("Hey Donna.");
donna_0_3 = new Object();
donna_0_3.area = "down";
donna_0_3.speaker = _level0.heroName;
donna_0_3.portrait = _level0.charA001.portrait;
donna_0_3.dialogue = new Array("Wait a second, aren't you suppose to be at work?");
donna_0_4 = new Object();
donna_0_4.area = "up";
donna_0_4.speaker = "Donna";
donna_0_4.portrait = "donna";
donna_0_4.dialogue = new Array("It's my day off.");
donna_0_5 = new Object();
donna_0_5.area = "down";
donna_0_5.speaker = _level0.heroName;
donna_0_5.portrait = _level0.charA001.portrait;
donna_0_5.dialogue = new Array("It's always your day off.");
donna_0_6 = new Object();
donna_0_6.area = "up";
donna_0_6.speaker = "Donna";
donna_0_6.portrait = "donna";
donna_0_6.dialogue = new Array("Oh come on, not always.");
donna_0_7 = new Object();
donna_0_7.area = "up";
donna_0_7.speaker = "Donna";
donna_0_7.portrait = "donna";
donna_0_7.dialogue = new Array("Usually. Heh heh.");
donna_0_8 = new Object();
donna_0_8.area = "down";
donna_0_8.speaker = _level0.heroName;
donna_0_8.portrait = _level0.charA001.portrait;
donna_0_8.dialogue = new Array("Elyssa must be pretty frustrated with you constantly goofing off like that.");
donna_0_9 = new Object();
donna_0_9.area = "up";
donna_0_9.speaker = "Donna";
donna_0_9.portrait = "donna";
donna_0_9.dialogue = new Array("Ah don't worry about it.");
donna_0_10 = new Object();
donna_0_10.area = "up";
donna_0_10.speaker = "Donna";
donna_0_10.portrait = "donna";
donna_0_10.dialogue = new Array("Say, you want to take a shot at guessing my last name today?");
donna_0_11 = new Object();
donna_0_11.area = "down";
donna_0_11.speaker = _level0.heroName;
donna_0_11.portrait = _level0.charA001.portrait;
donna_0_11.dialogue = new Array("You're really good at changing the subject aren't you?");
donna_0_12 = new Object();
donna_0_12.area = "down";
donna_0_12.speaker = _level0.heroName;
donna_0_12.portrait = _level0.charA001.portrait;
donna_0_12.dialogue = new Array("Well maybe later, Donna. Right now I have errands to run for old Ron.");
donna_0_13 = new Object();
donna_0_13.area = "up";
donna_0_13.speaker = "Donna";
donna_0_13.portrait = "donna";
donna_0_13.dialogue = new Array("Okay. Later then!");
action1 = {actionType:"quest", id:"4", val:99};
action2 = {actionType:"quest", id:"5", val:1};
donna_0_13.actions = new Array(action1, action2);
donna_0 = new Array(donna_0_1);
donna_0a = new Array(donna_0_2, donna_0_3, donna_0_4, donna_0_5, donna_0_6, donna_0_7, donna_0_8, donna_0_9, donna_0_10, donna_0_11, donna_0_12, donna_0_13);
donna_1_1 = new Object();
donna_1_1.area = "down";
donna_1_1.chatType = "choice";
donna_1_1.portrait = _level0.charA001.portrait;
donna_1_1.speaker = _level0.heroName;
donna_1_1.dialogue = new Array("Just wanted to chat, Donna.", "I'd like to take a shot at guessing that last name of yours.");
donna_1_1.responses = new Array("donna_1a", "donna_1b");
donna_1a_1 = new Object();
donna_1a_1.area = "down";
donna_1a_1.speaker = _level0.heroName;
donna_1a_1.portrait = _level0.charA001.portrait;
donna_1a_1.dialogue = new Array("Just wanted to chat, Donna.");
donna_1b_1 = new Object();
donna_1b_1.area = "down";
donna_1b_1.speaker = _level0.heroName;
donna_1b_1.portrait = _level0.charA001.portrait;
donna_1b_1.dialogue = new Array("I'd like to take a shot at guessing that last name of yours.");
donna_1a_2 = new Object();
donna_1a_2.area = "up";
donna_1a_2.speaker = "Donna";
donna_1a_2.portrait = "donna";
donna_1a_2.dialogue = new Array("Oh okay. You know what...");
donna_1a_3 = new Object();
donna_1a_3.area = "up";
donna_1a_3.speaker = "Donna";
donna_1a_3.portrait = "donna";
donna_1a_3.chatType = "random";
donna_1a_3.dialogue = new Array("I had this uncle who once went into a MAW battle without equipping any weapons.", "I love lemon pie.");
donna_1a_3.responses = new Array("donna_1f", "donna_1g");
donna_1f_1 = new Object();
donna_1f_1.area = "up";
donna_1f_1.speaker = "Donna";
donna_1f_1.portrait = "donna";
donna_1f_1.dialogue = new Array("The poor guy couldn't do anything at all to win.");
donna_1f_2 = new Object();
donna_1f_2.area = "down";
donna_1f_2.speaker = _level0.heroName;
donna_1f_2.portrait = _level0.charA001.portrait;
donna_1f_2.dialogue = new Array("Didn't he at least try to escape from the battle?");
donna_1f_3 = new Object();
donna_1f_3.area = "up";
donna_1f_3.speaker = "Donna";
donna_1f_3.portrait = "donna";
donna_1f_3.dialogue = new Array("Sure he did! He exited his MAW and ran for his life.");
donna_1f_4 = new Object();
donna_1f_4.area = "up";
donna_1f_4.speaker = "Donna";
donna_1f_4.portrait = "donna";
donna_1f_4.dialogue = new Array("Unfortunately, the enemy MAW stepped on him. Poor Uncle Looney.");
donna_1f_5 = new Object();
donna_1f_5.area = "down";
donna_1f_5.speaker = _level0.heroName;
donna_1f_5.portrait = _level0.charA001.portrait;
donna_1f_5.dialogue = new Array("No comment.");
donna_1g_1 = new Object();
donna_1g_1.area = "down";
donna_1g_1.speaker = _level0.heroName;
donna_1g_1.portrait = _level0.charA001.portrait;
donna_1g_1.dialogue = new Array("Gee, now there's a comforting thought.");
donna_1 = new Array(donna_1_1);
donna_1a = new Array(donna_1a_1, donna_1a_2, donna_1a_3);
donna_1f = new Array(donna_1f_1, donna_1f_2, donna_1f_3, donna_1f_4, donna_1f_5);
donna_1g = new Array(donna_1g_1);
donna_1b_2 = new Object();
donna_1b_2.area = "up";
donna_1b_2.speaker = "Donna";
donna_1b_2.portrait = "donna";
donna_1b_2.dialogue = new Array("Oh ho... This should be interesting!");
donna_1b_3 = new Object();
donna_1b_3.area = "down";
donna_1b_3.speaker = _level0.heroName;
donna_1b_3.portrait = _level0.charA001.portrait;
donna_1b_3.chatType = "password";
donna_1b_3.dialogue = new Array("troy", "drew");
donna_1b_3.responses = new Array("donna_1c", "donna_1d", "donna_1e");
donna_1c_1 = new Object();
donna_1c_1.area = "up";
donna_1c_1.speaker = "Donna";
donna_1c_1.portrait = "donna";
donna_1c_1.dialogue = new Array("*EHH* Wrong answer!");
donna_1d_1 = new Object();
donna_1d_1.area = "up";
donna_1d_1.speaker = "Donna";
donna_1d_1.portrait = "donna";
donna_1d_1.dialogue = new Array("Wow, someone's clearly been reading to many comic books.");
donna_1e_1 = new Object();
donna_1e_1.area = "up";
donna_1e_1.speaker = "Donna";
donna_1e_1.portrait = "donna";
donna_1e_1.dialogue = new Array("You got it right! That's unbelievable!");
donna_1e_2 = new Object();
donna_1e_2.area = "up";
donna_1e_2.speaker = "Donna";
donna_1e_2.portrait = "donna";
donna_1e_2.dialogue = new Array("Just for that, I'm giving you this voucher from our shop.");
action1 = {actionType:"quest", id:"5", val:99};
action2 = {actionType:"item", id:"I004Q", val:1};
donna_1e_2.actions = new Array(action1, action2);
donna_1e_3 = new Object();
donna_1e_3.area = "down";
donna_1e_3.speaker = _level0.heroName;
donna_1e_3.portrait = _level0.charA001.portrait;
donna_1e_3.dialogue = new Array("Gee thanks, Donna!");
donna_1c_2 = new Object();
donna_1c_2.area = "up";
donna_1c_2.speaker = "Donna";
donna_1c_2.portrait = "donna";
donna_1c_2.dialogue = new Array(("Better luck next time, " + _level0.heroName) + ".");
donna_1b = new Array(donna_1b_1, donna_1b_2, donna_1b_3);
donna_1c = new Array(donna_1c_1, donna_1c_2);
donna_1d = new Array(donna_1d_1, donna_1c_1, donna_1c_2);
donna_1e = new Array(donna_1e_1, donna_1e_2, donna_1e_3);
zocra_1_1 = new Object();
zocra_1_1.area = "up";
zocra_1_1.speaker = "Captain Zocra";
zocra_1_1.dialogue = new Array("Venture out at your own risk. There are a lot of dangerous creatures in the jungle. Make sure that you are well prepared before moving into the deeper regions.");
zocra_1_2 = new Object();
zocra_1_2.area = "down";
zocra_1_2.speaker = _level0.heroName;
zocra_1_2.portrait = _level0.charA001.portrait;
zocra_1_2.dialogue = new Array("Thanks! I will take note.");
zocra_1 = new Array(zocra_1_1, zocra_1_2);
elyssa_1_1 = new Object();
elyssa_1_1.area = "up";
elyssa_1_1.speaker = "Elyssa";
elyssa_1_1.portrait = "elyssa";
elyssa_1_1.dialogue = new Array(("Hello " + _level0.heroName) + ".");
elyssa_1_2 = new Object();
elyssa_1_2.area = "down";
elyssa_1_2.portrait = _level0.charA001.portrait;
elyssa_1_2.speaker = _level0.heroName;
elyssa_1_2.chatType = "compare";
condition1_1 = {compareType:"quest", id:"6", statusVal:99};
condition1 = new Array(condition1_1);
condition2_1 = {compareType:"item", id:"I004Q", minVal:1, maxVal:999};
condition2 = new Array(condition2_1);
condition3_1 = {compareType:"quest", id:"7", statusVal:2};
condition3 = new Array(condition3_1);
elyssa_1_2.conditionArray = new Array(condition1, condition2, condition3);
elyssa_1_2.dialogue = new Array("How's business, Elyssa?", "Hi Elyssa.", "Hey Elyssa, I'd like to use this voucher.", "Robyn says she'll pay you tomorrow.");
elyssa_1_2.responses = new Array("elyssa_1a", "elyssa_2", "elyssa_5", "elyssa_6");
elyssa_1_3 = new Object();
elyssa_1_3.area = "up";
elyssa_1_3.speaker = "Elyssa";
elyssa_1_3.portrait = "elyssa";
elyssa_1_3.dialogue = new Array("Quite slow actually.");
elyssa_1_4 = new Object();
elyssa_1_4.area = "up";
elyssa_1_4.speaker = "Elyssa";
elyssa_1_4.portrait = "elyssa";
elyssa_1_4.dialogue = new Array("And how are things over at Ron's Garage sweetie?");
elyssa_1_5 = new Object();
elyssa_1_5.area = "down";
elyssa_1_5.portrait = _level0.charA001.portrait;
elyssa_1_5.speaker = _level0.heroName;
elyssa_1_5.dialogue = new Array("Ron twisted his ankle yesterday, so I'll be running some errands for him today.");
elyssa_1_6 = new Object();
elyssa_1_6.area = "up";
elyssa_1_6.speaker = "Elyssa";
elyssa_1_6.portrait = "elyssa";
elyssa_1_6.dialogue = new Array("It's nice that you're helping him out, unlike SOME people I know.");
elyssa_1_7 = new Object();
elyssa_1_7.area = "down";
elyssa_1_7.portrait = _level0.charA001.portrait;
elyssa_1_7.speaker = _level0.heroName;
elyssa_1_7.chatType = "compare";
condition1_1 = {compareType:"quest", id:"4", statusVal:99};
condition1 = new Array(condition1_1);
elyssa_1_7.conditionArray = new Array(condition1);
elyssa_1_7.dialogue = new Array("Donna's not here today?", "You mean Donna? She's over at the Clockwork Inn.");
elyssa_1_7.responses = new Array("elyssa_1b", "elyssa_1c");
elyssa_1_8 = new Object();
elyssa_1_8.area = "up";
elyssa_1_8.speaker = "Elyssa";
elyssa_1_8.portrait = "elyssa";
elyssa_1_8.dialogue = new Array("That girl... I should just cut her share of the profits one day.");
elyssa_1_9 = new Object();
elyssa_1_9.area = "up";
elyssa_1_9.speaker = "Elyssa";
elyssa_1_9.portrait = "elyssa";
elyssa_1_9.dialogue = new Array("No she's not.");
elyssa_1_10 = new Object();
elyssa_1_10.area = "up";
elyssa_1_10.speaker = "Elyssa";
elyssa_1_10.portrait = "elyssa";
elyssa_1_10.dialogue = new Array("Even though she is my best friend, sometimes I can't help but wonder why I put up with her.");
elyssa_1_11 = new Object();
elyssa_1_11.area = "up";
elyssa_1_11.speaker = "Elyssa";
elyssa_1_11.portrait = "elyssa";
elyssa_1_11.dialogue = new Array("Anyway, feel free to look around, sweetie. Maybe you can help speed-up business for today.");
action1 = {actionType:"quest", id:"6", val:99};
elyssa_1_11.actions = new Array(action1);
elyssa_1_12 = new Object();
elyssa_1_12.area = "down";
elyssa_1_12.portrait = _level0.charA001.portrait;
elyssa_1_12.speaker = _level0.heroName;
elyssa_1_12.dialogue = new Array("Sure thing.");
elyssa_1 = new Array(elyssa_1_1, elyssa_1_2);
elyssa_1a = new Array(elyssa_1_3, elyssa_1_4, elyssa_1_5, elyssa_1_6, elyssa_1_7);
elyssa_1b = new Array(elyssa_1_9, elyssa_1_10, elyssa_1_11, elyssa_1_12);
elyssa_1c = new Array(elyssa_1_8, elyssa_1_10, elyssa_1_11, elyssa_1_12);
elyssa_2_1 = new Object();
elyssa_2_1.area = "up";
elyssa_2_1.speaker = "Elyssa";
elyssa_2_1.portrait = "elyssa";
elyssa_2_1.chatType = "random";
elyssa_2_1.dialogue = new Array("I wish Donna was here.", "Sometimes I can't help but feel proud about this shop.", "Sweetie, can you do me a favour?");
elyssa_2_1.responses = new Array("elyssa_4", "elyssa_2a", "elyssa_3");
elyssa_2_2 = new Object();
elyssa_2_2.area = "down";
elyssa_2_2.portrait = _level0.charA001.portrait;
elyssa_2_2.speaker = _level0.heroName;
elyssa_2_2.dialogue = new Array("How long has it been since you and Donna started this?");
elyssa_2_3 = new Object();
elyssa_2_3.area = "up";
elyssa_2_3.speaker = "Elyssa";
elyssa_2_3.portrait = "elyssa";
elyssa_2_3.dialogue = new Array("*Sigh* Look at all the clothes. Aren't they beautiful?");
elyssa_2_4 = new Object();
elyssa_2_4.area = "up";
elyssa_2_4.speaker = "Elyssa";
elyssa_2_4.portrait = "elyssa";
elyssa_2_4.dialogue = new Array("I'm sorry, did you say something?");
elyssa_2_5 = new Object();
elyssa_2_5.area = "down";
elyssa_2_5.portrait = _level0.charA001.portrait;
elyssa_2_5.speaker = _level0.heroName;
elyssa_2_5.dialogue = new Array("...");
elyssa_2_6 = new Object();
elyssa_2_6.area = "down";
elyssa_2_6.portrait = _level0.charA001.portrait;
elyssa_2_6.speaker = _level0.heroName;
elyssa_2_6.dialogue = new Array("Never mind.");
elyssa_2 = new Array(elyssa_2_1);
elyssa_2a = new Array(elyssa_2_2, elyssa_2_3, elyssa_2_4, elyssa_2_5, elyssa_2_6);
elyssa_3_0 = new Object();
elyssa_3_0.area = "down";
elyssa_3_0.portrait = _level0.charA001.portrait;
elyssa_3_0.speaker = _level0.heroName;
elyssa_3_0.chatType = "compare";
condition1_1 = {compareType:"quest", id:"7", statusVal:1};
condition1 = new Array(condition1_1);
condition2_1 = {compareType:"quest", id:"7", statusVal:99};
condition2 = new Array(condition2_1);
elyssa_3_0.conditionArray = new Array(condition1, condition2);
elyssa_3_0.dialogue = new Array("What is it?", "But I'm already doing you a favour.", "What is it?");
elyssa_3_0.responses = new Array("elyssa_3a", "elyssa_3b", "elyssa_3c");
elyssa_3_0a = new Object();
elyssa_3_0a.area = "up";
elyssa_3_0a.speaker = "Elyssa";
elyssa_3_0a.portrait = "elyssa";
elyssa_3_0a.dialogue = new Array("A simple bill delivery.");
elyssa_3_0b = new Object();
elyssa_3_0b.area = "up";
elyssa_3_0b.speaker = "Elyssa";
elyssa_3_0b.portrait = "elyssa";
elyssa_3_0b.dialogue = new Array("I need you to do me another one.");
elyssa_3_1 = new Object();
elyssa_3_1.area = "down";
elyssa_3_1.portrait = _level0.charA001.portrait;
elyssa_3_1.speaker = _level0.heroName;
elyssa_3_1.chatType = "choice";
elyssa_3_1.dialogue = new Array("Yes.", "No.");
elyssa_3_1.responses = new Array("elyssa_3d", "elyssa_3e");
elyssa_3_2 = new Object();
elyssa_3_2.area = "down";
elyssa_3_2.portrait = _level0.charA001.portrait;
elyssa_3_2.speaker = _level0.heroName;
elyssa_3_2.dialogue = new Array("I can do that.");
elyssa_3_2a = new Object();
elyssa_3_2a.area = "down";
elyssa_3_2a.portrait = _level0.charA001.portrait;
elyssa_3_2a.speaker = _level0.heroName;
elyssa_3_2a.dialogue = new Array("What is it this time?");
elyssa_3_3 = new Object();
elyssa_3_3.area = "down";
elyssa_3_3.portrait = _level0.charA001.portrait;
elyssa_3_3.speaker = _level0.heroName;
elyssa_3_3.dialogue = new Array("Sorry Elyssa, I'm kind of busy right now.");
elyssa_3_4 = new Object();
elyssa_3_4.area = "up";
elyssa_3_4.speaker = "Elyssa";
elyssa_3_4.portrait = "elyssa";
elyssa_3_4.dialogue = new Array("hmmmmm....");
elyssa_3_5 = new Object();
elyssa_3_5.area = "up";
elyssa_3_5.speaker = "Elyssa";
elyssa_3_5.portrait = "elyssa";
elyssa_3_5.dialogue = new Array("Buy something.");
elyssa_3_6 = new Object();
elyssa_3_6.area = "up";
elyssa_3_6.speaker = "Elyssa";
elyssa_3_6.portrait = "elyssa";
elyssa_3_6.dialogue = new Array("Thank you. Just send this bill over to Robyn at the inn.");
action1 = {actionType:"quest", id:"7", val:1};
elyssa_3_6.actions = new Array(action1);
elyssa_3_7 = new Object();
elyssa_3_7.area = "up";
elyssa_3_7.speaker = "Elyssa";
elyssa_3_7.portrait = "elyssa";
elyssa_3_7.dialogue = new Array("Here, take it.");
elyssa_3_8 = new Object();
elyssa_3_8.area = "down";
elyssa_3_8.portrait = _level0.charA001.portrait;
elyssa_3_8.speaker = _level0.heroName;
elyssa_3_8.dialogue = new Array("\"Goods received by D.Drew.\"");
elyssa_3_9 = new Object();
elyssa_3_9.area = "down";
elyssa_3_9.portrait = _level0.charA001.portrait;
elyssa_3_9.speaker = _level0.heroName;
elyssa_3_9.dialogue = new Array("Um... Elyssa, this isn't a bill, it's a receipt.");
elyssa_3_10 = new Object();
elyssa_3_10.area = "up";
elyssa_3_10.speaker = "Elyssa";
elyssa_3_10.portrait = "elyssa";
elyssa_3_10.dialogue = new Array("Oh! Sorry about that, sweetie.");
elyssa_3_11 = new Object();
elyssa_3_11.area = "up";
elyssa_3_11.speaker = "Elyssa";
elyssa_3_11.portrait = "elyssa";
elyssa_3_11.dialogue = new Array("Here's the right one.");
action1 = {actionType:"item", id:"I005Q", val:1};
elyssa_3_11.actions = new Array(action1);
elyssa_3_12 = new Object();
elyssa_3_12.area = "down";
elyssa_3_12.portrait = _level0.charA001.portrait;
elyssa_3_12.speaker = _level0.heroName;
elyssa_3_12.dialogue = new Array("Okay.");
elyssa_3 = new Array(elyssa_3_0);
elyssa_3a = new Array(elyssa_3_0a, elyssa_3_1);
elyssa_3b = new Array(elyssa_3_0b, elyssa_3_2a, elyssa_3_5);
elyssa_3c = new Array(elyssa_3_5);
elyssa_3d = new Array(elyssa_3_2, elyssa_3_6, elyssa_3_7, elyssa_3_8, elyssa_3_9, elyssa_3_10, elyssa_3_11, elyssa_3_12);
elyssa_3e = new Array(elyssa_3_3, elyssa_3_4);
elyssa_4_1 = new Object();
elyssa_4_1.area = "up";
elyssa_4_1.speaker = "Elyssa";
elyssa_4_1.portrait = "elyssa";
elyssa_4_1.chatType = "compare";
condition1_1 = {compareType:"quest", id:"5", statusVal:1};
condition1 = new Array(condition1_1);
condition2_1 = {compareType:"quest", id:"5", statusVal:99};
condition2 = new Array(condition2_1);
elyssa_4_1.conditionArray = new Array(condition1, condition2);
elyssa_4_1.dialogue = new Array("It can get so boring sometimes.", "It can get so boring sometimes.", "It can get so boring sometimes.");
elyssa_4_1.responses = new Array("elyssa_4a", "elyssa_4b", "elyssa_4a");
elyssa_4_2 = new Object();
elyssa_4_2.area = "down";
elyssa_4_2.portrait = _level0.charA001.portrait;
elyssa_4_2.speaker = _level0.heroName;
elyssa_4_2.dialogue = new Array("Why don't you just... take a break?");
elyssa_4_3 = new Object();
elyssa_4_3.area = "up";
elyssa_4_3.speaker = "Elyssa";
elyssa_4_3.portrait = "elyssa";
elyssa_4_3.dialogue = new Array(("And I suppose you'll run the store for me while I'm away, right " + _level0.heroName) + "?");
elyssa_4_4 = new Object();
elyssa_4_4.area = "down";
elyssa_4_4.portrait = _level0.charA001.portrait;
elyssa_4_4.speaker = _level0.heroName;
elyssa_4_4.dialogue = new Array("Okay, point taken.");
elyssa_4_5 = new Object();
elyssa_4_5.area = "down";
elyssa_4_5.portrait = _level0.charA001.portrait;
elyssa_4_5.speaker = _level0.heroName;
elyssa_4_5.chatType = "choice";
elyssa_4_5.dialogue = new Array("Take a break then.", "Do you know Donna's last name?");
elyssa_4_5.responses = new Array("elyssa_4a", "elyssa_4c");
elyssa_4_6 = new Object();
elyssa_4_6.area = "down";
elyssa_4_6.portrait = _level0.charA001.portrait;
elyssa_4_6.speaker = _level0.heroName;
elyssa_4_6.dialogue = new Array("Speaking of Donna, do you know her last name by any chance?");
elyssa_4_7 = new Object();
elyssa_4_7.area = "up";
elyssa_4_7.speaker = "Elyssa";
elyssa_4_7.portrait = "elyssa";
elyssa_4_7.dialogue = new Array("Sorry sweetie, I made a pact with her about this. My lips sealed when it comes to this subject.");
elyssa_4_8 = new Object();
elyssa_4_8.area = "down";
elyssa_4_8.portrait = _level0.charA001.portrait;
elyssa_4_8.speaker = _level0.heroName;
elyssa_4_8.dialogue = new Array("Oh well.");
elyssa_4 = new Array(elyssa_4_1);
elyssa_4a = new Array(elyssa_4_2, elyssa_4_3, elyssa_4_4);
elyssa_4b = new Array(elyssa_4_5);
elyssa_4c = new Array(elyssa_4_6, elyssa_4_7, elyssa_4_8);
elyssa_5_1 = new Object();
elyssa_5_1.area = "up";
elyssa_5_1.speaker = "Elyssa";
elyssa_5_1.portrait = "elyssa";
elyssa_5_1.dialogue = new Array("Sure. Just give me a minute here...");
elyssa_5_2 = new Object();
elyssa_5_2.area = "up";
elyssa_5_2.speaker = "Elyssa";
elyssa_5_2.portrait = "elyssa";
elyssa_5_2.dialogue = new Array("Here you go sweetie. A free pair of glass goggles.");
elyssa_5_3 = new Object();
elyssa_5_3.area = "down";
elyssa_5_3.portrait = _level0.charA001.portrait;
elyssa_5_3.speaker = _level0.heroName;
elyssa_5_3.dialogue = new Array("Thanks.");
action1 = {actionType:"item", id:"C01AH", val:1};
action2 = {actionType:"item", id:"I004Q", val:-1};
elyssa_5_3.actions = new Array(action1, action2);
elyssa_5_4 = new Object();
elyssa_5_4.area = "up";
elyssa_5_4.speaker = "Elyssa";
elyssa_5_4.portrait = "elyssa";
elyssa_5_4.dialogue = new Array("Come back soon.");
elyssa_5 = new Array(elyssa_5_1, elyssa_5_2, elyssa_5_3, elyssa_5_4);
elyssa_6_1 = new Object();
elyssa_6_1.area = "up";
elyssa_6_1.speaker = "Elyssa";
elyssa_6_1.portrait = "elyssa";
elyssa_6_1.dialogue = new Array(("Thank you " + _level0.heroName) + ".");
elyssa_6_2 = new Object();
elyssa_6_2.area = "up";
elyssa_6_2.speaker = "Elyssa";
elyssa_6_2.portrait = "elyssa";
elyssa_6_2.dialogue = new Array("And here's a small fee for the trouble.");
action1 = {actionType:"credits", val:50};
action2 = {actionType:"quest", id:"7", val:99};
elyssa_6_2.actions = new Array(action1, action2);
elyssa_6 = new Array(elyssa_6_1, elyssa_6_2);
clare_1_1 = new Object();
clare_1_1.area = "up";
clare_1_1.speaker = "Clare";
clare_1_1.dialogue = new Array("Hmm.. I hope to travel to other parts of Sios someday..");
clare_1_2 = new Object();
clare_1_2.area = "down";
clare_1_2.portrait = _level0.charA001.portrait;
clare_1_2.speaker = _level0.heroName;
clare_1_2.dialogue = new Array("I'd love to do so too!");
clare_1 = new Array(clare_1_1, clare_1_2);
player_name = "Jin";
calisto_1_0 = new Object();
calisto_1_0.area = "up";
calisto_1_0.speaker = "Calisto";
calisto_1_0.chatType = "compare";
calisto_1_0.condition1_1 = {compareType:"quest", id:1, statusVal:"done"};
calisto_1_0.condition1 = new Array(calisto_1_0.condition1_1);
calisto_1_0.conditionArray = new Array(calisto_1_0.condition1);
calisto_1_0.dialogue = new Array("You haven't completed your chicken run yet.", "Oh good! You've completed your chicken run.");
calisto_1_0.responses = new Array("calisto_0b", "calisto_0a");
calisto_1_1 = new Object();
calisto_1_1.area = "up";
calisto_1_1.speaker = "Calisto";
calisto_1_1.dialogue = new Array("Hi there!");
calisto_1_2 = new Object();
calisto_1_2.area = "down";
calisto_1_2.speaker = player_name;
calisto_1_2.dialogue = new Array("Hey Calisto.");
calisto_1_3 = new Object();
calisto_1_3.area = "up";
calisto_1_3.speaker = "Calisto";
calisto_1_3.chatType = "random";
calisto_1_3.dialogue = new Array("Will you be ok if I use random line A?", "Will you be fine if I use random line B?");
calisto_1_3.responses = new Array("calisto_0c", "calisto_0c");
calisto_1_3.action1 = {actionType:"bg", transit:true};
calisto_1_3.actions = new Array(calisto_1_3.action1);
calisto_1_4 = new Object();
calisto_1_4.area = "down";
calisto_1_4.speaker = player_name;
calisto_1_4.dialogue = new Array("I'm fine.");
calisto_1_6 = new Object();
calisto_1_6.area = "down";
calisto_1_6.speaker = player_name;
calisto_1_6.chatType = "choice";
calisto_1_6.dialogue = new Array("Is that right?", "That's totally new to me.");
calisto_1_6.responses = new Array("calisto_1a", "calisto_1b");
calisto_1_6a = new Object();
calisto_1_6a.area = "down";
calisto_1_6a.speaker = player_name;
calisto_1_6a.dialogue = new Array("Is that right?");
calisto_1_6b = new Object();
calisto_1_6b.area = "down";
calisto_1_6b.speaker = player_name;
calisto_1_6b.dialogue = new Array("That's totally new to me.");
calisto_1_5 = new Object();
calisto_1_5.area = "up";
calisto_1_5.speaker = "Calisto";
calisto_1_5.dialogue = new Array("Did you know that many generations ago, the land of Sios was once a symbol for unity and harmony? Its people lived peacefully with one another, without strife or conflict. But the days of The Sundering arrived, and nothing was ever the same again for the inhabitants of Sios. Now, centuries later, Sios remains separated in terms of its geography and its people. The land itself consists of the five very different nations of Anthonia, Matahari, Vamoskia, Sian Shui, and Wyvernmaw, each one maintaining an uncomfortable truce with the others.Yet, the seperation of Sios did not hinder its people from making the most fascinating technological advancements. It was these very advancements that made it possible for MAWs to become part of the everyday lives of almost every person in Sios.");
calisto_1_7 = new Object();
calisto_1_7.area = "up";
calisto_1_7.speaker = "Calisto";
calisto_1_7.dialogue = new Array("Well now you know.");
calisto_1_8 = new Object();
calisto_1_8.area = "up";
calisto_1_8.speaker = "Calisto";
calisto_1_8.dialogue = new Array("Yes, that's right.");
calisto_1_8a = new Object();
calisto_1_8a.area = "up";
calisto_1_8a.speaker = "Calisto";
calisto_1_8a.dialogue = new Array("By the way, what's the color of my hair?");
calisto_1_9 = new Object();
calisto_1_9.area = "down";
calisto_1_9.speaker = player_name;
calisto_1_9.chatType = "password";
calisto_1_9.dialogue = new Array("red", "blue");
calisto_1_9.responses = new Array("calisto_1c", "calisto_1d", "calisto_1e");
calisto_1_9a = new Object();
calisto_1_9a.area = "up";
calisto_1_9a.speaker = "Calisto";
calisto_1_9a.dialogue = new Array("You are so color blind aren't you?");
calisto_1_9b = new Object();
calisto_1_9b.area = "up";
calisto_1_9b.speaker = "Calisto";
calisto_1_9b.dialogue = new Array("Try again.");
calisto_1_9c = new Object();
calisto_1_9c.area = "up";
calisto_1_9c.speaker = "Calisto";
calisto_1_9c.dialogue = new Array("That's right!");
calisto_1_11 = new Object();
calisto_1_11.area = "up";
calisto_1_11.speaker = "Calisto";
calisto_1_11.dialogue = new Array("Let's have a look at your health.");
calisto_1_10 = new Object();
calisto_1_10.area = "up";
calisto_1_10.speaker = "Calisto";
calisto_1_10.chatType = "compare";
calisto_1_10.condition1_1 = {compareType:"stats", hero:1, statusType:"hp", minVal:-999, maxVal:0};
calisto_1_10.condition2_1 = {compareType:"stats", hero:1, statusType:"hp", minVal:1, maxVal:100};
calisto_1_10.condition1 = new Array(calisto_1_10.condition1_1);
calisto_1_10.condition2 = new Array(calisto_1_10.condition2_1);
calisto_1_10.conditionArray = new Array(calisto_1_10.condition1, calisto_1_10.condition2);
calisto_1_10.dialogue = new Array("You have more than 100 hit points.", "You have no health. Shouldn't you be dead?", "You have a reasonable amount of hit points.");
calisto_1_10.responses = new Array("calisto_1i", "calisto_1i", "calisto_1i");
calisto_1_10a = new Object();
calisto_1_10a.area = "down";
calisto_1_10a.speaker = player_name;
calisto_1_10a.dialogue = new Array("I don't have any at all???");
calisto_1_10b = new Object();
calisto_1_10b.area = "down";
calisto_1_10b.speaker = player_name;
calisto_1_10b.dialogue = new Array("Hmm... that's not too bad.");
calisto_1_10c = new Object();
calisto_1_10c.area = "down";
calisto_1_10c.speaker = player_name;
calisto_1_10c.dialogue = new Array("Wow that's a lot.");
calisto_1_12 = new Object();
calisto_1_12.area = "up";
calisto_1_12.speaker = "Calisto";
calisto_1_12.dialogue = new Array("Come back when you've finished that.");
calisto_1_13 = new Object();
calisto_1_13.area = "up";
calisto_1_13.speaker = "Calisto";
calisto_1_13.dialogue = new Array("Now let's have a look at your potion stock.");
calisto_1_15 = new Object();
calisto_1_15.area = "up";
calisto_1_15.speaker = "Calisto";
calisto_1_15.dialogue = new Array("Here, have a potion.");
calisto_1_15.action1 = {actionType:"item", id:"potion", val:1};
calisto_1_15.actions = new Array(calisto_1_15.action1);
calisto_1_14 = new Object();
calisto_1_14.area = "up";
calisto_1_14.speaker = "Calisto";
calisto_1_14.chatType = "compare";
calisto_1_14.condition1_1 = {compareType:"item", id:"potion", minVal:-999, maxVal:0};
calisto_1_14.condition2_1 = {compareType:"item", id:"potion", minVal:1, maxVal:10};
calisto_1_14.condition1 = new Array(calisto_1_14.condition1_1);
calisto_1_14.condition2 = new Array(calisto_1_14.condition2_1);
calisto_1_14.conditionArray = new Array(calisto_1_14.condition1, calisto_1_14.condition2);
calisto_1_14.dialogue = new Array("You have more than 10 potions.", "You have no potions.", "You have potions, but no more than 10.");
calisto_1_14.responses = new Array("calisto_1f", "calisto_1g", "calisto_1h");
calisto_0 = new Array(calisto_1_1, calisto_1_2, calisto_1_0);
calisto_0a = new Array(calisto_1_3);
calisto_0c = new Array(calisto_1_4, calisto_1_5, calisto_1_6);
calisto_0b = new Array(calisto_1_12);
calisto_1a = new Array(calisto_1_6a, calisto_1_8, calisto_1_8a, calisto_1_9);
calisto_1b = new Array(calisto_1_6b, calisto_1_7);
calisto_1c = new Array(calisto_1_9b, calisto_1_9);
calisto_1d = new Array(calisto_1_9a, calisto_1_9b, calisto_1_9);
calisto_1e = new Array(calisto_1_9c, calisto_1_11, calisto_1_10);
calisto_1f = new Array(calisto_1_10c);
calisto_1g = new Array(calisto_1_15, calisto_1_14);
calisto_1h = new Array(calisto_1_10b);
calisto_1i = new Array(calisto_1_13, calisto_1_14);
function chatActivate(chatArray) {
this._visible = true;
clearInterval(CI);
bottomChatHolder.inPlay = false;
topChatHolder.inPlay = false;
topChatHolder.talkComplete = false;
bottomChatHolder.talkComplete = false;
clearInterval(bottomChatHolder.textInterval);
clearInterval(topChatHolder.textInterval);
chatCount = 0;
chatSet = chatArray;
chatStatus = "normal";
CI = setInterval(makeDialogue, 20, chatSet);
}
function makeDialogue(chatArray) {
if ((chatArray[chatCount].area == "up") and chatArray[chatCount]) {
if (!chatArray[chatCount].portrait) {
topChatHolder.chatPic.gotoAndStop(1);
} else {
topChatHolder.chatPic.gotoAndStop(chatArray[chatCount].portrait);
}
if (!topChatHolder.inPlay) {
currChatArea = chatArray[chatCount].area;
topChatHolder.charName = chatArray[chatCount].speaker;
if (chatArray[chatCount].dialogue.length > 1) {
switch (chatArray[chatCount].chatType) {
case "random" :
randomLine(chatArray, topChatHolder);
break;
case "randomBranch" :
randomBranch(chatArray, topChatHolder);
break;
case "password" :
passwordLine(chatArray, topChatHolder);
break;
case "choice" :
chooseLine(chatArray, topChatHolder);
break;
case "compare" :
compareBranch(chatArray, topChatHolder);
}
} else {
singleLine(chatArray, topChatHolder);
}
triggerAction(chatArray[chatCount]);
}
} else if ((chatArray[chatCount].area == "down") and chatArray[chatCount]) {
if (!chatArray[chatCount].portrait) {
bottomChatHolder.chatPic.gotoAndStop(1);
} else {
bottomChatHolder.chatPic.gotoAndStop(chatArray[chatCount].portrait);
}
if (!bottomChatHolder.inPlay) {
currChatArea = chatArray[chatCount].area;
bottomChatHolder.charName = chatArray[chatCount].speaker;
if (chatArray[chatCount].dialogue.length > 1) {
switch (chatArray[chatCount].chatType) {
case "random" :
randomLine(chatArray, bottomChatHolder);
break;
case "randomBranch" :
randomBranch(chatArray, bottomChatHolder);
break;
case "password" :
passwordLine(chatArray, bottomChatHolder);
break;
case "choice" :
chooseLine(chatArray, bottomChatHolder);
break;
case "compare" :
compareBranch(chatArray, bottomChatHolder);
}
} else {
singleLine(chatArray, bottomChatHolder);
}
triggerAction(chatArray[chatCount]);
}
}
}
function singleLine(chatArray, holder) {
holder.charDialogue = chatArray[chatCount].dialogue[0];
holder.inPlay = true;
holder.charIn();
}
function passwordLine(chatArray, holder) {
chatStatus = "answers";
holder.ansArray = chatArray[chatCount].dialogue;
holder.responses = chatArray[chatCount].responses;
holder.inPlay = true;
holder.passwordDisplay();
}
function chooseLine(chatArray, holder) {
chatStatus = "answers";
holder.ansArray = chatArray[chatCount].dialogue;
holder.responses = chatArray[chatCount].responses;
holder.inPlay = true;
holder.answersDisplay();
}
function randomLine(chatArray, holder) {
var _local1 = random(chatArray[chatCount].dialogue.length);
holder.charDialogue = chatArray[chatCount].dialogue[_local1];
holder.branch = chatArray[chatCount].responses[_local1];
holder.inPlay = true;
holder.charIn();
}
function compareBranch(chatArray, holder) {
var _local7 = 0;
var _local4 = 0;
while (_local4 < chatArray[chatCount].conditionArray.length) {
var _local2 = false;
var _local5 = chatArray[chatCount].conditionArray[_local4];
var _local3 = 0;
while (_local3 < _local5.length) {
var _local1 = _local5[_local3];
switch (_local1.compareType) {
case "quest" :
_local2 = compareQuest(_local1);
break;
case "item" :
_local2 = compareItem(_local1);
break;
case "stats" :
_local2 = compareStats(_local1);
}
if (!_local2) {
break;
}
_local3++;
}
if (_local2) {
_local7 = _local4 + 1;
}
_local4++;
}
holder.charDialogue = chatArray[chatCount].dialogue[_local7];
holder.branch = chatArray[chatCount].responses[_local7];
holder.inPlay = true;
holder.charIn();
}
function compareItem(comparer) {
var _local1 = _level0.checkItemNumber(comparer.id);
trace((("Item compare: You have " + _local1) + ":VS: need ") + comparer.minVal);
if ((_local1 >= comparer.minVal) and (_local1 <= comparer.maxVal)) {
trace("OK");
return(true);
}
trace("FAILED");
return(false);
}
function compareQuest(comparer) {
var _local1 = _level0["quest_" + comparer.id].prog;
if (_local1 == comparer.statusVal) {
return(true);
}
return(false);
}
function compareStats(comparer) {
if (comparer.hero) {
var _local3 = _root["hero_" + comparer.hero][comparer.statusType];
} else {
var _local3 = _root[comparer.statusType];
}
if (isNaN(_local3)) {
if (_local3 == comparer.statusVal) {
return(true);
}
return(false);
}
if ((_local3 >= comparer.minVal) and (_local3 <= comparer.maxVal)) {
return(true);
}
return(false);
}
function triggerAction(chatObj) {
var _local3 = chatObj.actions;
if (_local3) {
var _local2 = 0;
while (_local2 < _local3.length) {
var _local1 = _local3[_local2];
switch (_local1.actionType) {
case "quest" :
_level0["quest_" + _local1.id].prog = int(_local1.val);
break;
case "item" :
itemChange(_local1.id, _local1.val);
break;
case "party" :
_level0.addCharacter(_local1.id, _local1.pos);
break;
case "bg" :
if (_local1.transit) {
transit = true;
} else {
transit = false;
}
if (_local1.bg) {
changeBG = _local1.bg;
} else {
changeBG = false;
}
break;
case "combat" :
combatTrigger = _local1.mSet;
break;
case "stats" :
break;
case "credits" :
_level0.setCredits(_level0.getCredits() + _local1.val);
}
_local2++;
}
}
}
function itemChange(id, amount) {
if (amount < 0) {
_root.removeItem(id, Math.abs(amount));
} else {
_root.addItem(id, amount);
}
}
function carryOn() {
if ((currChatArea == "down") and (chatStatus == "normal")) {
bottomChatHolder.nextText();
topChatHolder.nextText();
} else if ((currChatArea == "up") and (chatStatus == "normal")) {
topChatHolder.nextText();
bottomChatHolder.nextText();
}
}
keylist = new Object();
keylist.onKeyUp = function () {
if (Key.getCode() == 32) {
carryOn();
}
};
Key.addListener(keylist);
if (_global.option == "newgame") {
_level0.world[_level0.player].tempx = 195;
_level0.world[_level0.player].tempz = -485;
_level0.world[_level0.player].clip.char.gotoAndStop("stand1");
_level0.enterShop("ronGarage");
_level0.shopSystem.menu._visible = false;
_level0.bg.gotoAndStop("house01");
chatActivate(ron_0);
_global.mainsave.save();
}
Symbol 2144 MovieClip Frame 1
function loadlisting() {
this._parent.menu._visible = false;
this._visible = true;
var replyXML = new XML();
this.statustext.text = "Connecting...";
_root.shopSystem.toplisting.loadingbar._visible = true;
replyXML.onLoad = function (success) {
_root.shopSystem.toplisting.loadingbar._visible = false;
_root.shopSystem.toplisting.statustext.text = "";
if (success) {
var firstNode = replyXML.firstChild;
var nlist = firstNode.childNodes;
var i = 0;
while (i < nlist.length) {
_root.shopSystem.toplisting.attachMovie("postername", "poster" + i, i + 5);
eval ("_root.shopSystem.toplisting.poster" + i).postername.text = nlist[i].attributes.name;
eval ("_root.shopSystem.toplisting.poster" + i)._y = 76 + (i * 25);
eval ("_root.shopSystem.toplisting.poster" + i)._x = 32;
i++;
}
var secondnode = firstNode.nextSibling;
var nlist = secondnode.childNodes;
var i = 0;
while (i < nlist.length) {
_root.shopSystem.toplisting.attachMovie("postername", "exp" + i, i + 20);
eval ("_root.shopSystem.toplisting.exp" + i).postername.text = nlist[i].attributes.name;
eval ("_root.shopSystem.toplisting.exp" + i)._y = 76 + (i * 25);
eval ("_root.shopSystem.toplisting.exp" + i)._x = 255;
i++;
}
var thirdnode = secondnode.nextSibling;
var nlist = thirdnode.childNodes;
var i = 0;
while (i < nlist.length) {
_root.shopSystem.toplisting.attachMovie("postername", "user" + i, i + 40);
eval ("_root.shopSystem.toplisting.user" + i).postername.text = nlist[i].attributes.name;
eval ("_root.shopSystem.toplisting.user" + i)._y = 76 + (i * 25);
eval ("_root.shopSystem.toplisting.user" + i)._x = 480;
i++;
}
} else {
_root.shopSystem.toplisting.statustext.text = "You are not connected to our server.";
}
};
replyXML.load("http://mobileweapon.net/ep1/stats.php?type=1");
}
this._visible = false;
Instance of Symbol 2139 MovieClip in Symbol 2144 MovieClip Frame 1
on (release) {
getURL ("http://mobileweapon.net/", "_blank", "GET");
}
Instance of Symbol 2141 MovieClip in Symbol 2144 MovieClip Frame 1
on (release) {
getURL ("http://mobileweapon.net/forum", "_blank", "GET");
}
Symbol 2150 Button
on (rollOver) {
gotoAndPlay (180);
}
Symbol 2152 MovieClip Frame 200
gotoAndPlay (35);
Symbol 2158 MovieClip Frame 9
stop();
Symbol 2171 MovieClip Frame 60
gotoAndPlay (6);
Symbol 2173 Button
on (release, keyPress "4") {
_root.exitShop();
}
Symbol 2174 Button
on (release, keyPress "3") {
this._parent.talk("donna_0");
}
Symbol 2175 Button
on (release, keyPress "2") {
this._parent.talk("robyn_0");
}
Symbol 2176 Button
on (release, keyPress "1") {
_parent.toplisting.loadlisting();
}
Symbol 2177 MovieClip Frame 1
stop();
Symbol 2183 Button
on (release) {
if (currentPage < totalPage) {
buildItems(currentPage + 1);
}
}
Symbol 2184 Button
on (release) {
if (currentPage > 1) {
buildItems(currentPage - 1);
}
}
Symbol 2188 MovieClip Frame 1
stop();
this.onRelease = function () {
this.hit = true;
this.gotoAndStop(3);
};
this.onRollOver = function () {
if (!this.hit) {
this.gotoAndStop(2);
}
};
this.onRollOut = function () {
if (!this.hit) {
this.gotoAndStop(1);
}
};
Symbol 2189 Button
on (release) {
this._visible = false;
shopConfirmation._visible = false;
this._parent.menu._visible = true;
}
Symbol 2193 Button
on (release) {
_parent.category = "ALL";
_parent.buildItems();
}
Symbol 2194 Button
on (release) {
_parent.category = "ACCESSORY";
_parent.buildItems();
}
Symbol 2195 Button
on (release) {
_parent.category = "FOOTWEAR";
_parent.buildItems();
}
Symbol 2196 Button
on (release) {
_parent.category = "BODY";
_parent.buildItems();
}
Symbol 2197 Button
on (release) {
_parent.category = "HEADGEAR";
_parent.buildItems();
}
Symbol 2203 Button
on (release) {
_parent.nextChar();
}
Symbol 2204 Button
on (release) {
_parent.prevChar();
}
Symbol 2206 MovieClip Frame 1
stop();
Symbol 2225 MovieClip Frame 1
stop();
Instance of Symbol 2206 MovieClip "ACCESSORY" in Symbol 2227 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2206 MovieClip "FOOTWEAR" in Symbol 2227 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2206 MovieClip "BOTTOM" in Symbol 2227 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2206 MovieClip "TOP" in Symbol 2227 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2206 MovieClip "HEADGEAR" in Symbol 2227 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Symbol 2231 MovieClip Frame 1
function shopTalk(dialogue) {
speechField.text = dialogue;
}
Symbol 2235 Button
on (release) {
this._visible = false;
}
Symbol 2236 Button
on (release) {
_parent.transact();
}
Symbol 2240 MovieClip Frame 1
shopConfirmationBacking.enabled = false;
Symbol 2246 Button
on (release) {
_parent.confirmation(this.item);
}
Symbol 2250 Button
on (release) {
_parent.wear(this.item);
}
Symbol 2252 MovieClip Frame 1
function itemSelected() {
_parent.shopKeeper.shopTalk(this.item.description);
_parent.fittingRoom.selectModel(this.item);
}
Symbol 2254 MovieClip Frame 1
shopItems = new Array("C01AT", "C02AT", "C03AT", "C04AT", "C01AB", "C02AB", "C03AB", "C04AB", "C01AH", "C01AF", "C02AF", "C03AF", "C01AA");
function buildItems(page) {
shopConfirmation._visible = false;
if (page == undefined) {
page = 1;
}
i = 0;
while (i < 6) {
this["itemHolder" + i]._visible = false;
i++;
}
var total = 0;
if (shopMode == "buy") {
trace("Creating shop items");
buildItemsList = shopItems;
} else {
trace("Creating inven items");
var tempArray = new Array();
var tempArray2 = _level0.listallItems();
var i = 0;
while (i < tempArray2.length) {
if ((tempArray2[i].getAttribute("equip") == undefined) && (_level0.invenitem[tempArray2[i].getAttribute("id")].type == "CLOTHES")) {
var addflag = true;
var x = 0;
while (x < tempArray.length) {
if (tempArray[x] == tempArray2[i].getAttribute("id")) {
addflag = false;
break;
}
x++;
}
if (addflag) {
tempArray.push(tempArray2[i].getAttribute("id"));
}
}
i++;
}
buildItemsList = tempArray;
}
i = 0;
while (i < buildItemsList.length) {
tempItem = _level0.invenitem[shopItems[i]];
var special = false;
if ((tempItem.equip == "TOP") || (tempItem.equip == "BOTTOM")) {
if (category == "BODY") {
special = true;
}
}
if (((tempItem.equip == category) || (category == "ALL")) || (special)) {
total++;
}
i++;
}
var counter = 0;
i = 0 + ((page - 1) * 6);
while (i < buildItemsList.length) {
tempHolder = eval ("itemHolder" + counter);
tempItem = _level0.invenitem[buildItemsList[i]];
var special = false;
if ((tempItem.equip == "TOP") || (tempItem.equip == "BOTTOM")) {
if (category == "BODY") {
special = true;
}
}
if ((tempItem.price != undefined) && (((tempItem.equip == category) || (category == "ALL")) || (special))) {
tempHolder._visible = true;
tempHolder.item = tempItem;
tempHolder.itemLoader.gotoAndStop(tempItem.equip);
if (tempItem.image != undefined) {
tempHolder.itemLoader.clip.gotoAndStop(tempItem.image);
}
tempHolder.itemName.text = tempItem.name;
if (shopMode == "sell") {
var itemnum = _level0.checkNonEquippedItemNumber(buildItemsList[i]);
if (itemnum > 1) {
tempHolder.itemName.text = tempHolder.itemName.text + (("(x" + itemnum) + ")");
}
tempHolder.itemCost.text = Math.floor(int(tempItem.price) / 2) + " credits";
} else {
tempHolder.itemCost.text = tempItem.price + " credits";
}
tempHolder.itemStats.text = "";
if (tempItem.reflex != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.reflex + " REFLEX\n");
}
if (tempItem.accuracy != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.accuracy + " ACCURACY\n");
}
if (tempItem.technique != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.technique + " TECHNIQUE\n");
}
counter++;
}
i++;
}
i = numItems;
while (i < 6) {
this["itemHolder" + i]._visible = false;
i++;
}
currentPage = page;
totalPage = Math.ceil(total / 6);
pageTxt.text = (currentPage + " / ") + totalPage;
}
function confirmation(item) {
buttonsEnabled = false;
shopConfirmation._visible = true;
shopConfirmation.item = item;
if (shopMode == "buy") {
if (_level0.getCredits() >= int(item.price)) {
shopConfirmation.confirmTxt.text = ((("Purchase " + item.name) + " for ") + item.price) + " credits?";
} else {
_level0.playSound("error");
shopConfirmation.confirmTxt.text = ("You do not have enough credits to purchase the " + item.name) + ".";
}
} else {
shopConfirmation.confirmTxt.text = ((("Sell " + item.name) + " for ") + Math.floor(int(item.price) / 2)) + " credits?";
}
}
function transact() {
var _local2 = _level0.getCredits();
shopConfirmation._visible = false;
var _local1 = shopConfirmation.item;
if (shopMode == "buy") {
trace("buy");
if (_level0.getCredits() >= int(_local1.price)) {
trace("Deduct " + _local1.price);
trace("BUY\n===========");
trace("ITEM: " + _local1.name);
var _local3 = _level0.addItem(_local1.id, 1);
if (_local3 == "SUCCESS") {
_level0.playSound("cash");
_local2 = _local2 - int(_local1.price);
_level0.setCredits(_local2);
credits.text = _local2;
_level0.populate_inventory();
} else {
_level0.playSound("error");
shopConfirmation._visible = true;
shopConfirmation.confirmTxt.text = "Your inventory is full!";
}
}
} else {
_level0.playSound("cash");
_local2 = _local2 + Math.floor(int(_local1.price) / 2);
_level0.setCredits(_local2);
trace((("sell: " + _local1.id) + ":") + _local1.name);
_level0.removeItem(_local1.id, 1);
credits.text = _local2;
buildItems();
_level0.populate_inventory();
}
}
function wear(item) {
shopKeeper.speechField.text = item.description;
fittingRoom[item.equip].item = item;
fittingRoom[item.equip].gotoAndStop(item.equip);
if (item.image != undefined) {
fittingRoom[item.equip].clip.gotoAndStop(item.image);
}
calBoost();
}
function remove(item) {
fittingRoom[item].item = undefined;
fittingRoom[item].gotoAndStop("blank");
calBoost();
}
function calBoost() {
var _local1 = 0;
var _local2 = 0;
_local1 = int(fittingRoom.HEADGEAR.item.reflex);
_local1 = _local1 + int(fittingRoom.TOP.item.reflex);
_local1 = _local1 + int(fittingRoom.BOTTOM.item.reflex);
_local1 = _local1 + int(fittingRoom.FOOTWEAR.item.reflex);
_local1 = _local1 + int(fittingRoom.ACCESSORY.item.reflex);
_local2 = int(totalChars[currentChar].getAttribute("reflex"));
addedReflex = _local2 + _local1;
if (_local1 >= 0) {
_local1 = "+" + _local1;
}
addedReflex = addedReflex + ((" (" + _local1) + ")");
_local1 = int(fittingRoom.HEADGEAR.item.accuracy);
_local1 = _local1 + int(fittingRoom.TOP.item.accuracy);
_local1 = _local1 + int(fittingRoom.BOTTOM.item.accuracy);
_local1 = _local1 + int(fittingRoom.FOOTWEAR.item.accuracy);
_local1 = _local1 + int(fittingRoom.ACCESSORY.item.accuracy);
_local2 = int(totalChars[currentChar].getAttribute("accuracy"));
addedAccuracy = _local2 + _local1;
if (_local1 >= 0) {
_local1 = "+" + _local1;
}
addedAccuracy = addedAccuracy + ((" (" + _local1) + ")");
_local1 = int(fittingRoom.HEADGEAR.item.technique);
_local1 = _local1 + int(fittingRoom.TOP.item.technique);
_local1 = _local1 + int(fittingRoom.BOTTOM.item.technique);
_local1 = _local1 + int(fittingRoom.FOOTWEAR.item.technique);
_local1 = _local1 + int(fittingRoom.ACCESSORY.item.technique);
_local2 = int(totalChars[currentChar].getAttribute("technique"));
addedTechnique = _local2 + _local1;
if (_local1 >= 0) {
_local1 = "+" + _local1;
}
addedTechnique = addedTechnique + ((" (" + _local1) + ")");
}
function prevChar() {
currentChar--;
if (currentChar < 0) {
currentChar = totalChars.length - 1;
}
setupFittingRoom();
calBoost();
}
function nextChar() {
currentChar++;
if (currentChar > (totalChars.length - 1)) {
currentChar = 0;
}
setupFittingRoom();
calBoost();
}
function setupFittingRoom() {
fittingRoom.charName.text = totalChars[currentChar].getAttribute("name");
var _local1 = _level0.getEquipStats(totalChars[currentChar].getAttribute("id"), "reflex");
fittingRoom.baseReflex.text = int(totalChars[currentChar].getAttribute("reflex")) + _local1;
if (_local1 >= 0) {
fittingRoom.baseReflex.text = fittingRoom.baseReflex.text + ((" (+" + _local1) + ")");
} else {
fittingRoom.baseReflex.text = fittingRoom.baseReflex.text + ((" (" + _local1) + ")");
}
_local1 = _level0.getEquipStats(totalChars[currentChar].getAttribute("id"), "accuracy");
fittingRoom.baseAccuracy.text = int(totalChars[currentChar].getAttribute("accuracy")) + _local1;
if (_local1 >= 0) {
fittingRoom.baseAccuracy.text = fittingRoom.baseAccuracy.text + ((" (+" + _local1) + ")");
} else {
fittingRoom.baseAccuracy.text = fittingRoom.baseAccuracy.text + ((" (" + _local1) + ")");
}
_local1 = _level0.getEquipStats(totalChars[currentChar].getAttribute("id"), "technique");
fittingRoom.baseTechnique.text = int(totalChars[currentChar].getAttribute("technique")) + _local1;
if (_local1 >= 0) {
fittingRoom.baseTechnique.text = fittingRoom.baseTechnique.text + ((" (+" + _local1) + ")");
} else {
fittingRoom.baseTechnique.text = fittingRoom.baseTechnique.text + ((" (" + _local1) + ")");
}
}
function init() {
_visible = true;
_parent.menu._visible = false;
buyBtn.gotoAndStop(3);
buyBtn.hit = true;
sellBtn.gotoAndStop(1);
sellBtn.hit = false;
category = "ALL";
shopMode = "buy";
credits.text = _level0.getCredits();
shopConfirmation._visible = false;
currentChar = 0;
totalChars = _level0.getActiveCharacters();
setupFittingRoom();
calBoost();
buildItems();
}
Instance of Symbol 2188 MovieClip "buyBtn" in Symbol 2254 MovieClip Frame 1
on (release) {
_parent.sellBtn.hit = false;
_parent.sellBtn.gotoAndStop(1);
_parent.shopMode = "buy";
_parent.buildItems();
}
Instance of Symbol 2188 MovieClip "sellBtn" in Symbol 2254 MovieClip Frame 1
on (release) {
_parent.buyBtn.hit = false;
_parent.buyBtn.gotoAndStop(1);
_parent.shopMode = "sell";
_parent.buildItems();
}
Symbol 2260 MovieClip Frame 9
stop();
Symbol 2264 Button
on (release, keyPress "3") {
_root.exitShop();
}
Symbol 2265 Button
on (release, keyPress "2") {
_parent.shop.init();
}
Symbol 2266 Button
on (release, keyPress "1") {
this._parent.talk("elyssa_1");
}
Symbol 2267 MovieClip Frame 1
stop();
Symbol 2272 Button
on (release) {
this._visible = false;
this._parent.menu._visible = true;
}
Symbol 2273 Button
on (release) {
_parent.category = "NO";
_parent.buildItems();
}
Symbol 2274 Button
on (release) {
_parent.category = "SPECIAL";
_parent.buildItems();
}
Symbol 2275 Button
on (release) {
_parent.category = "ALL";
_parent.buildItems();
}
Symbol 2276 Button
on (release) {
_parent.category = "HRANGE";
_parent.buildItems();
}
Symbol 2277 Button
on (release) {
_parent.category = "LRANGE";
_parent.buildItems();
}
Symbol 2278 Button
on (release) {
_parent.category = "MELEE";
_parent.buildItems();
}
Symbol 2279 Button
on (release) {
_parent.category = "ARMOR";
_parent.buildItems();
}
Symbol 2283 MovieClip Frame 1
stop();
Symbol 2303 MovieClip Frame 8
stop();
Instance of Symbol 2283 MovieClip "SPECIAL2" in Symbol 2305 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2283 MovieClip "SPECIAL1" in Symbol 2305 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2283 MovieClip "ARMOR" in Symbol 2305 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2283 MovieClip "MELEE" in Symbol 2305 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2283 MovieClip "LRANGE" in Symbol 2305 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Instance of Symbol 2283 MovieClip "HRANGE" in Symbol 2305 MovieClip Frame 1
on (release) {
_parent._parent.remove(this._name);
}
Symbol 2308 MovieClip Frame 1
function shopTalk(dialogue) {
speechField.text = dialogue;
}
Symbol 2314 MovieClip Frame 1
function itemSelected() {
_parent.shopKeeper.shopTalk(this.item.description);
_parent.fittingRoom.selectModel(this.item);
}
Symbol 2315 MovieClip Frame 1
shopItems = new Array("A01", "A02", "A03", "A04", "W01M", "W02M", "W03M", "W01L", "W02L", "W03L", "W01H", "W02H", "W03H", "S001", "I001R", "I002R");
function buildItems(page) {
shopConfirmation._visible = false;
if (page == undefined) {
page = 1;
}
i = 0;
while (i < 6) {
this["itemHolder" + i]._visible = false;
i++;
}
var total = 0;
if (shopMode == "buy") {
trace("creating buy items");
buildItemsList = shopItems;
} else {
trace("creating sell items");
var tempArray = new Array();
var tempArray2 = _level0.listallItems();
var i = 0;
while (i < tempArray2.length) {
if (((((_level0.invenitem[tempArray2[i].getAttribute("id")].type == "WEAPON") || (_level0.invenitem[tempArray2[i].getAttribute("id")].type == "ARMOR")) || (_level0.invenitem[tempArray2[i].getAttribute("id")].type == "USE")) || (_level0.invenitem[tempArray2[i].getAttribute("id")].type == "SPECIAL")) || (_level0.invenitem[tempArray2[i].getAttribute("id")].type == "NONE")) {
if ((tempArray2[i].getAttribute("equip") == undefined) && (_level0.invenitem[tempArray2[i].getAttribute("id")].price != undefined)) {
var addflag = true;
var x = 0;
while (x < tempArray.length) {
if (tempArray[x] == tempArray2[i].getAttribute("id")) {
addflag = false;
break;
}
x++;
}
if (addflag) {
tempArray.push(tempArray2[i].getAttribute("id"));
}
}
}
i++;
}
buildItemsList = tempArray;
}
i = 0;
while (i < buildItemsList.length) {
tempItem = _level0.invenitem[buildItemsList[i]];
if ((tempItem.equip == category) || (category == "ALL")) {
total++;
}
i++;
}
var counter = 0;
i = 0 + ((page - 1) * 6);
while (i < buildItemsList.length) {
tempHolder = eval ("itemHolder" + counter);
tempItem = _level0.invenitem[buildItemsList[i]];
if ((tempItem.price != undefined) && ((tempItem.equip == category) || (category == "ALL"))) {
tempHolder._visible = true;
tempHolder.item = tempItem;
tempHolder.itemLoader.gotoAndStop(tempItem.equip);
if (tempItem.image != undefined) {
tempHolder.itemLoader.clip.gotoAndStop(tempItem.image);
}
tempHolder.itemName.text = tempItem.name;
if (shopMode == "sell") {
var itemnum = _level0.checkNonEquippedItemNumber(buildItemsList[i]);
if (itemnum > 1) {
tempHolder.itemName.text = tempHolder.itemName.text + (("(x" + itemnum) + ")");
}
tempHolder.itemCost.text = Math.floor(int(tempItem.price) / 2) + " credits";
} else {
tempHolder.itemCost.text = tempItem.price + " credits";
}
tempHolder.itemStats.text = "";
if (tempItem.mindamage != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (((tempItem.mindamage + "-") + tempItem.maxdamage) + " DAMAGE\n");
}
if (tempItem.energy != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.energy + " ENERGY\n");
}
if (tempItem.hitbonus != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.hitbonus + " HITBONUS\n");
}
if (tempItem.hitpoints != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.hitpoints + " HITPOINTS\n");
}
if (tempItem.defense != undefined) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.defense + " DEFENSE\n");
}
tempHolder.itemStats.text = tempHolder.itemStats.text + "REQ: ";
if ((tempItem.minreflex != undefined) && (tempItem.minreflex != 0)) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.minreflex + " REF ");
}
if ((tempItem.minaccuracy != undefined) && (tempItem.minaccuracy != 0)) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.minaccuracy + " ACC ");
}
if ((tempItem.mintechnique != undefined) && (tempItem.mintechnique != 0)) {
tempHolder.itemStats.text = tempHolder.itemStats.text + (tempItem.mintechnique + " TEC ");
}
var c = new Color(tempHolder);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
if (int(totalChars[currentChar].getAttribute("reflex")) < tempItem.minreflex) {
var c = new Color(tempHolder);
c.setTransform({ra:100, rb:0, ga:30, gb:0, ba:30, bb:0, aa:100, ab:0});
}
if (int(totalChars[currentChar].getAttribute("accuracy")) < tempItem.minaccuracy) {
var c = new Color(tempHolder);
c.setTransform({ra:100, rb:0, ga:30, gb:0, ba:30, bb:0, aa:100, ab:0});
}
if (int(totalChars[currentChar].getAttribute("technique")) < tempItem.mintechnique) {
var c = new Color(tempHolder);
c.setTransform({ra:100, rb:0, ga:30, gb:0, ba:30, bb:0, aa:100, ab:0});
}
var correctbot = false;
var x = 0;
while (x < tempItem.user.length) {
if (activeBot.getAttribute("botid") == tempItem.user[x]) {
correctbot = true;
break;
}
x++;
}
if (!correctbot) {
var c = new Color(tempHolder);
c.setTransform({ra:100, rb:0, ga:30, gb:0, ba:30, bb:0, aa:100, ab:0});
}
counter++;
}
i++;
}
i = numItems;
while (i < 6) {
this["itemHolder" + i]._visible = false;
i++;
}
currentPage = page;
totalPage = Math.ceil(total / 6);
pageTxt.text = (currentPage + " / ") + totalPage;
}
function confirmation(item) {
buttonsEnabled = false;
shopConfirmation._visible = true;
shopConfirmation.item = item;
if (shopMode == "buy") {
if (_level0.getCredits() >= int(item.price)) {
shopConfirmation.confirmTxt.text = ((("Purchase " + item.name) + " for ") + item.price) + " credits?";
} else {
_level0.playSound("error");
shopConfirmation.confirmTxt.text = ("You do not have enough credits to purchase the " + item.name) + ".";
}
} else {
shopConfirmation.confirmTxt.text = ((("Sell " + item.name) + " for ") + Math.floor(int(item.price) / 2)) + " credits?";
}
}
function transact() {
var _local1 = _level0.getCredits();
shopConfirmation._visible = false;
var _local2 = shopConfirmation.item;
if (shopMode == "buy") {
trace("buy");
if (_level0.getCredits() >= int(_local2.price)) {
trace("Deduct " + _local2.price);
var _local3 = _level0.addItem(_local2.id, 1);
if (_local3 == "SUCCESS") {
_local1 = _local1 - int(_local2.price);
_level0.setCredits(_local1);
credits.text = _local1;
_level0.populate_inventory();
_level0.playSound("cash");
} else {
trace("inventory full?");
_level0.playSound("error");
shopConfirmation._visible = true;
shopConfirmation.confirmTxt.text = "Your inventory is full!";
}
} else {
_level0.playSound("error");
}
} else {
_level0.playSound("cash");
_local1 = _local1 + Math.floor(int(_local2.price) / 2);
_level0.setCredits(_local1);
_level0.removeItem(_local2.id, 1);
credits.text = _local1;
buildItems();
_level0.populate_inventory();
}
}
function wear(item) {
shopKeeper.speechField.text = item.description;
var _local1 = item.equip;
var _local3 = item.equip;
if (_local1 == "SPECIAL") {
if ((installationBay.SPECIAL1.item == undefined) || ((installationBay.SPECIAL1.item != undefined) && (installationBay.SPECIAL2.item != undefined))) {
_local1 = "SPECIAL1";
} else {
_local1 = "SPECIAL2";
}
}
installationBay[_local1].item = item;
installationBay[_local1].gotoAndStop(_local3);
installationBay[_local1].clip.gotoAndStop(item.image);
c = new Color(installationBay[_local1]);
if (item.r != undefined) {
c.setTransform({ra:item.r, rb:0, ga:item.g, gb:0, ba:item.b, bb:0, aa:100, ab:0});
} else {
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
}
calBoost();
}
function remove(item) {
installationBay[item].item = undefined;
installationBay[item].gotoAndStop("blank");
var _local1 = new Color(fittingRoom[item]);
_local1.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
calBoost();
}
function calBoost() {
var _local1 = 0;
var _local2 = 0;
_local1 = int(installationBay.ARMOR.item.hitpoints);
_local2 = int(activeBot.getAttribute("hp"));
addedHitpoints = _local2 + _local1;
if (_local1 >= 0) {
_local1 = "+" + _local1;
}
addedHitpoints = addedHitpoints + ((" (" + _local1) + ")");
_local1 = int(installationBay.ARMOR.item.defense);
_local2 = int(activeBot.getAttribute("defense"));
addedDefense = _local2 + _local1;
if (_local1 >= 0) {
_local1 = "+" + _local1;
}
addedDefense = addedDefense + ((" (" + _local1) + ")");
}
function prevChar() {
currentChar--;
if (currentChar < 0) {
currentChar = totalChars.length - 1;
}
setupInstallationBay();
buildItems();
calBoost();
}
function nextChar() {
currentChar++;
if (currentChar > (totalChars.length - 1)) {
currentChar = 0;
}
setupInstallationBay();
buildItems();
calBoost();
}
function setupInstallationBay() {
var _local3 = totalChars[currentChar].getItemList("bot");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("active")) {
activeBot = _local3[_local2];
installationBay.mawName.text = _local3[_local2].getAttribute("name");
installationBay.shopModels.gotoAndStop(_local3[_local2].getAttribute("botid"));
var _local1 = _level0.getEquipStats(totalChars[currentChar].getAttribute("id"), "hp");
installationBay.baseHP.text = int(_local3[_local2].getAttribute("hp")) + _local1;
if (_local1 >= 0) {
installationBay.baseHP.text = installationBay.baseHP.text + ((" (+" + _local1) + ")");
} else {
installationBay.baseHP.text = installationBay.baseHP.text + ((" (" + _local1) + ")");
}
_local1 = _level0.getEquipStats(totalChars[currentChar].getAttribute("id"), "defense");
installationBay.baseDefense.text = int(_local3[_local2].getAttribute("defense")) + _local1;
if (_local1 >= 0) {
installationBay.baseDefense.text = installationBay.baseDefense.text + ((" (+" + _local1) + ")");
} else {
installationBay.baseDefense.text = installationBay.baseDefense.text + ((" (" + _local1) + ")");
}
}
_local2++;
}
}
function init() {
_visible = true;
_parent.menu._visible = false;
buyBtn.gotoAndStop(3);
buyBtn.hit = true;
sellBtn.gotoAndStop(1);
sellBtn.hit = false;
category = "ALL";
shopMode = "buy";
credits.text = _level0.getCredits();
shopConfirmation._visible = false;
totalChars = _level0.getActiveCharacters();
currentChar = 0;
setupInstallationBay();
trace("Total chars: " + totalChars.length);
calBoost();
buildItems();
}
Instance of Symbol 2188 MovieClip "buyBtn" in Symbol 2315 MovieClip Frame 1
on (release) {
_parent.sellBtn.hit = false;
_parent.sellBtn.gotoAndStop(1);
_parent.shopMode = "buy";
_parent.buildItems();
}
Instance of Symbol 2188 MovieClip "sellBtn" in Symbol 2315 MovieClip Frame 1
on (release) {
_parent.buyBtn.hit = false;
_parent.buyBtn.gotoAndStop(1);
_parent.shopMode = "sell";
_parent.buildItems();
}
Symbol 2328 Button
on (release) {
this._visible = false;
this._parent.menu._visible = true;
}
Symbol 2329 Button
on (release) {
augment();
setChar();
}
Symbol 2332 Button
on (release) {
trace("Change char to " + (currchar + 1));
currchar++;
if (currchar >= charArray.length) {
currchar = 0;
}
setChar();
}
Symbol 2333 Button
on (release) {
trace("Change char to " + (currchar - 1));
currchar--;
if (currchar < 0) {
currchar = charArray.length - 1;
}
setChar();
}
Symbol 2335 MovieClip Frame 1
function init() {
_parent.menu._visible = false;
this._visible = true;
charArray = new Array();
var _local5 = _global.mainsave.getItemList("character");
var _local4 = 0;
while (_local4 < _local5.length) {
if ((_local5[_local4].getAttribute("active") != "0") && (_local5[_local4].getAttribute("active") != undefined)) {
charArray.push(_local5[_local4].getAttribute("id"));
}
_local4++;
}
creditstxt.text = _level0.getCredits();
itemcounttxt.text = _level0.checkItemNumber(itemcode);
currchar = 0;
setChar();
}
function setChar() {
var _local8 = _global.mainsave.getItemList("character");
var _local7 = 0;
while (_local7 < _local8.length) {
if (_local8[_local7].getAttribute("id") == charArray[currchar]) {
var _local3 = _local8[_local7].getItemList("bot");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("active")) {
var _local5 = int(_local3[_local2].getAttribute("hp"));
var _local4 = Math.ceil(_local5 / 4);
maw.text = ((_local3[_local2].getAttribute("name") + " (HP: ") + _local3[_local2].getAttribute("hp")) + ")";
message.text = "";
if (_local4 > _level.getCredits()) {
message.text = message.text + (("Insufficient credits. Need: " + _local4) + ".\n");
} else {
message.text = message.text + (("Credits needed: " + _local4) + " - Ok\n");
}
var _local6 = _level0.checkItemNumber(itemcode);
if (!_local6) {
message.text = message.text + (((("Insufficient " + itemname) + ". Need: ") + itemneeded) + ".\n");
} else {
message.text = message.text + (((itemname + " needed: ") + itemneeded) + " - Ok\n");
}
if (_local5 >= augmentmax) {
message.text = "Sorry, our garage cannot augment this MaW any further.";
}
return(true);
}
_local2++;
}
}
_local7++;
}
return(false);
}
function augment() {
var _local9 = _global.mainsave.getItemList("character");
var _local8 = 0;
while (_local8 < _local9.length) {
if (_local9[_local8].getAttribute("id") == charArray[currchar]) {
var _local3 = _local9[_local8].getItemList("bot");
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].getAttribute("active")) {
var _local6 = int(_local3[_local2].getAttribute("hp"));
var _local4 = Math.ceil(_local6 / 4);
maw.text = ((_local3[_local2].getAttribute("name") + " (HP: ") + _local3[_local2].getAttribute("hp")) + ")";
message.text = "";
if (_local4 > _level.getCredits()) {
message.text = message.text + (("Insufficient credits. Need: " + _local4) + ".\n");
} else {
message.text = message.text + (("Credits needed: " + _local4) + " - Ok\n");
}
var _local7 = _level0.checkItemNumber(itemcode);
if (!_local7) {
message.text = message.text + (((("Insufficient " + itemname) + ". Need: ") + itemneeded) + ".\n");
} else {
message.text = message.text + (((itemname + " needed: ") + itemneeded) + " - Ok\n");
}
if (_local6 >= augmentmax) {
message.text = "Sorry, our garage cannot augment this MaW any further.";
}
if (((_local4 <= _level.getCredits()) && (_local7)) && (_local6 < augmentmax)) {
_level0.playSound("cash");
_level0.setCredits(_level0.getCredits() - _local4);
_level0.removeItem(itemcode, itemneeded);
var _local5 = int(_local3[_local2].getAttribute("hp")) + augmentfactor;
if (_local5 > augmentmax) {
_local5 = augmentmax;
}
_local3[_local2].setAttribute("hp", _local5);
_local3[_local2].setAttribute("currhp", _local5);
creditstxt.text = _level0.getCredits();
itemcounttxt.text = _level0.checkItemNumber(itemcode);
_level0.populate_inventory();
return(true);
}
_level0.playSound("error");
return(false);
}
_local2++;
}
}
_local8++;
}
_level0.playSound("error");
return(false);
}
stop();
itemcode = "I000Q";
itemname = _level0.invenitem[itemcode].name;
augmentfactor = int(_level0.invenitem[itemcode].augment);
itemneeded = 1;
augmentmax = 400;
itemnametxt.text = itemname;
Symbol 2341 MovieClip Frame 9
stop();
Symbol 2343 Button
on (release, keyPress "6") {
_root.exitShop();
}
Symbol 2345 Button
on (release, keyPress "5") {
this._parent.augmentMAW.init();
}
Symbol 2347 Button
on (release, keyPress "4") {
var injured = false;
var charlist = _global.mainsave.getItemList("character");
var i = 0;
while (i < charlist.length) {
if ((charlist[i].getAttribute("active") != undefined) && (charlist[i].getAttribute("active") != "0")) {
var botlist = charlist[i].getItemList("bot");
var j = 0;
while (j < botlist.length) {
if ((botlist[j].getAttribute("currhp") != botlist[j].getAttribute("hp")) && (botlist[j].getAttribute("active") == "true")) {
injured = true;
}
j++;
}
}
i++;
}
if (injured) {
_level0.setCredits(_level0.getCredits() - 5);
_level0.repairAll();
_level0.playSound("cash");
} else {
_level0.playSound("error");
}
}
Symbol 2351 Button
on (release, keyPress "3") {
_parent.shop.init();
}
Symbol 2353 Button
on (release, keyPress "2") {
_parent.mawCustomiser._visible = true;
_parent.mawCustomiser.init();
this._visible = false;
}
Symbol 2354 Button
on (release, keyPress "1") {
this._parent.talk("ron_2");
}
Symbol 2361 MovieClip Frame 9
stop();
Symbol 2363 Button
on (release, keyPress "1") {
_root.exitShop();
}
Symbol 2364 MovieClip Frame 1
stop();
Symbol 2372 MovieClip Frame 9
stop();
Symbol 2373 Button
on (release) {
_level0.savebox._visible = false;
_level0.exitShop();
}
Symbol 2375 Button
on (release) {
_level0.preparesave();
}
Symbol 2378 Button
on (release) {
var injured = false;
var charlist = _global.mainsave.getItemList("character");
var i = 0;
while (i < charlist.length) {
if ((charlist[i].getAttribute("active") != undefined) && (charlist[i].getAttribute("active") != "0")) {
var botlist = charlist[i].getItemList("bot");
var j = 0;
while (j < botlist.length) {
if ((botlist[j].getAttribute("currhp") != botlist[j].getAttribute("hp")) && (botlist[j].getAttribute("active") == "true")) {
injured = true;
}
j++;
}
}
i++;
}
if (injured) {
var c = (_level0.getCredits() - 20);
_level0.setCredits(c);
_level0.repairAll();
_level0.playSound("cash");
} else {
_level0.playSound("error");
}
}
Symbol 2380 MovieClip Frame 1
stop();
function talk(person) {
menu._visible = false;
_level0.talkingSystem._visible = true;
trace((person + ":") + _level0.talkingSystem[person]);
_level0.talkingSystem.chatActivate(_level0.talkingSystem[person]);
}
Symbol 2380 MovieClip Frame 6
shop._visible = false;
Symbol 2380 MovieClip Frame 15
shop._visible = false;
mawCustomiser._visible = false;
augmentMAW._visible = false;
Symbol 2388 MovieClip Frame 1
stop();
Instance of Symbol 1745 MovieClip [close button] "closebutton" in Symbol 2388 MovieClip Frame 1
on (press) {
_parent._visible = false;
}
Symbol 2402 MovieClip Frame 50
stop();
_parent.animationcomplete = true;
Symbol 2420 MovieClip Frame 1
stop();
Symbol 2438 MovieClip Frame 1
function init() {
var _local2 = 1;
while (_local2 < 4) {
this["name" + _local2]._visible = false;
this["xp" + _local2]._visible = false;
this["addxp" + _local2]._visible = false;
this["winportrait" + _local2]._visible = false;
_local2++;
}
creditMsg._visible = false;
credits._visible = false;
addcredit._visible = false;
itemMsg._visible = false;
if (_alpha == 100) {
clicked();
}
}
function clicked() {
if ((creditMsg._visible == false) and (itemMsg._visible == false)) {
setXP();
setCredit();
setItem();
setQuest();
_parent._parent.bigFatReset();
} else if ((creditMsg._visible == true) and (itemMsg._visible == true)) {
clearInterval(creditI);
clearInterval(xp1I);
clearInterval(xp2I);
clearInterval(xp3I);
_level0.endCombat();
}
}
function setCredit() {
if (!_level0.getCredits()) {
credits.text = 0;
} else {
credits.text = _level0.getCredits();
}
addcredit.text = "+0";
credits._visible = true;
addcredit._visible = true;
creditMsg._visible = true;
_level0.setCredits(_level0.getCredits() + _parent._parent.total_credit);
creditI = setInterval(creditUp, 20, int(credits.text), _parent._parent.total_credit);
}
function setItem() {
_parent._parent.dropItems();
itemMsg.text = "Items obtained: " + _parent._parent.total_item;
itemMsg._visible = true;
}
function setQuest() {
var _local3 = _parent._parent.myQuest.id;
var _local2 = _parent._parent.myQuest.prog;
_level0["quest_" + _local3].prog = _local2;
}
function setXP() {
var _local9 = 0;
var _local4 = 1;
while (_local4 <= _parent._parent.heroCount) {
if (!_parent._parent["hero" + _local4].dying) {
_local9++;
}
_local4++;
}
var _local8 = Math.ceil(_parent._parent.total_xp / _local9);
var _local3 = 1;
while (_local3 <= _parent._parent.heroCount) {
this["name" + _local3].text = _parent._parent["hero" + _local3].hName + "'s XP:";
this["xp" + _local3].text = _parent._parent["hero" + _local3].xp;
this["addxp" + _local3].text = "+0";
this["name" + _local3]._visible = true;
this["winportrait" + _local3]._visible = true;
this["winportrait" + _local3].gotoAndStop(_parent._parent["hero" + _local3].portraitid);
this["xp" + _local3]._visible = true;
if (!_parent._parent["hero" + _local3].dying) {
var _local5 = _parent._parent["hero" + _local3].id;
var _local7 = _parent._parent["hero" + _local3].xp + _local8;
_level0.setCharacterAttr(_local5, "xp", _local7);
}
var _local6 = _parent._parent["hero" + _local3].currHP;
_level0.setCharacterAttr(_local5, "currhp", _local6);
_local3++;
}
if (!_parent._parent.hero1.dying) {
xp1I = setInterval(xp1Up, 20, _parent._parent.hero1.xp, _local8);
} else if ((_parent._parent.heroCount >= 2) and (!_parent._parent.hero2.dying)) {
xp2I = setInterval(xp2Up, 20, _parent._parent.hero2.xp, _local8);
} else if ((_parent._parent.heroCount == 3) and (!_parent._parent.hero3.dying)) {
xp3I = setInterval(xp3Up, 20, _parent._parent.hero3.xp, _local8);
}
}
function xp1Up(myXP, extraXP) {
if (int(xp1.text) >= (myXP + extraXP)) {
xp1.text = myXP + extraXP;
addxp1.text = "+" + extraXP;
clearInterval(xp1I);
if ((_parent._parent.heroCount >= 2) and (!_parent._parent.hero2.dying)) {
xp2I = setInterval(xp2Up, 20, _parent._parent.hero2.xp, extraXP);
} else if ((_parent._parent.heroCount == 3) and (!_parent._parent.hero3.dying)) {
xp3I = setInterval(xp3Up, 20, _parent._parent.hero3.xp, extraXP);
}
} else {
if (!addxp1._visible) {
addxp1._visible = true;
}
addxp1.text = "+" + (int(addxp1.text.substr(1)) + 1);
xp1.text = int(xp1.text) + 1;
}
}
function xp2Up(myXP, extraXP) {
if (int(xp2.text) >= (myXP + extraXP)) {
xp2.text = myXP + extraXP;
addxp2.text = "+" + extraXP;
clearInterval(xp2I);
if ((_parent._parent.heroCount == 3) and (!_parent._parent.hero3.dying)) {
xp3I = setInterval(xp3Up, 20, _parent._parent.hero3.xp, extraXP);
}
} else {
if (!addxp2._visible) {
addxp2._visible = true;
}
addxp2.text = "+" + (int(addxp2.text.substr(1)) + 1);
xp2.text = int(xp2.text) + 1;
}
}
function xp3Up(myXP, extraXP) {
trace((myXP + " ") + extraXP);
if (int(xp3.text) >= (myXP + extraXP)) {
xp3.text = myXP + extraXP;
addxp3.text = "+" + extraXP;
clearInterval(xp3I);
} else {
if (!addxp3._visible) {
addxp3._visible = true;
}
addxp3.text = "+" + (int(addxp3.text.substr(1)) + 1);
xp3.text = int(xp3.text) + 1;
}
}
function creditUp(myCred, extraCred) {
trace((myCred + " ") + extraCred);
if (int(credits.text) >= (myCred + extraCred)) {
credits.text = myCred + extraCred;
addcredit.text = "+" + extraCred;
clearInterval(creditI);
} else {
addcredit.text = "+" + (int(addcredit.text.substr(1)) + 1);
credits.text = int(credits.text) + 1;
}
}
stop();
init();
Symbol 2439 MovieClip Frame 1
stop();
Symbol 2439 MovieClip Frame 71
stop();
Instance of Symbol 2409 MovieClip in Symbol 2439 MovieClip Frame 71
on (release) {
_parent._parent.bigFatReset();
_level0.quit();
}
Symbol 2439 MovieClip Frame 142
stop();
Instance of Symbol 2438 MovieClip "winScreen" in Symbol 2439 MovieClip Frame 142
on (release) {
clicked();
}
Symbol 2445 Button
on (press) {
if (this._alpha == 100) {
this._alpha = 50;
this.shadow._visible = false;
} else {
this._alpha = 100;
this.shadow._visible = true;
}
}
Symbol 2448 MovieClip Frame 1
stop();
Symbol 2471 MovieClip Frame 1
var count = 0;
onEnterFrame = function () {
count++;
if (count == 10) {
mvtxt.text = Math.floor(Math.random() * 10000000);
count = 0;
}
};
Instance of Symbol 2448 MovieClip in Symbol 2486 MovieClip Frame 1
on (release, keyPress "c") {
if (_parent._parent.escapeInt) {
clearInterval(_parent._parent.escapeInt);
_parent._parent.escapeInt = false;
var j = 1;
while (j <= 3) {
_parent._parent["hero" + j].recharge = _parent._parent["hero" + j].baseRecharge;
_parent._parent["hero" + j].hero_clip.gotoAndPlay("normal");
j++;
}
_parent._parent.myState = "heroSelect";
_parent._visible = false;
} else {
_parent._visible = false;
_parent._parent.menu._visible = true;
_parent._parent["weapSelect" + _parent._parent.menu.myIndex]._visible = true;
_parent._parent.escape_btn._visible = true;
_parent._parent.combat_inventory._visible = true;
_parent._parent.myState = "heroSelect";
_parent._parent.pointer.shiftMe("hero" + _parent._parent.menu.myIndex);
_parent._parent.myState = "menuSelect";
}
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 2493 MovieClip "item_forward" in Symbol 2497 MovieClip Frame 1
on (release, keyPress "w") {
if (_parent._parent.myInventory and (_parent._parent.myInventory.length > 0)) {
_parent.itemIndex++;
if (_parent.itemIndex >= _parent._parent.myInventory.length) {
_parent.itemIndex = 0;
}
_parent.itemID = _parent._parent.myInventory[_parent.itemIndex].getAttribute("id");
_parent.itemNum = _level0.checkItemNumber(_parent.itemID);
var getItemName = _level0.getItemName(_parent.itemID);
_parent.item_label.label_text.text = (((("<" + (_parent.itemIndex + 1)) + "> ") + getItemName) + " x ") + _parent.itemNum;
}
}
Instance of Symbol 2496 MovieClip "item_back" in Symbol 2497 MovieClip Frame 1
on (release, keyPress "q") {
if (_parent._parent.myInventory and (_parent._parent.myInventory.length > 0)) {
_parent.itemIndex--;
if (_parent.itemIndex < 0) {
_parent.itemIndex = _parent._parent.myInventory.length - 1;
}
_parent.itemID = _parent._parent.myInventory[_parent.itemIndex].getAttribute("id");
_parent.itemNum = _level0.checkItemNumber(_parent.itemID);
var getItemName = _level0.getItemName(_parent.itemID);
_parent.item_label.label_text.text = (((("<" + (_parent.itemIndex + 1)) + "> ") + getItemName) + " x ") + _parent.itemNum;
}
}
Symbol 2502 MovieClip Frame 1
stop();
Symbol 2506 MovieClip Frame 1
stop();
function clickMe() {
if ((_parent._parent.myState == "heroSelect") or (_parent._parent.myState == "menuSelect")) {
_parent.weapIndex = _name.substr(-1, 1);
_parent.highlightSlots();
_parent._parent.changeWeap(_parent._name.substr(-1, 1), _parent.weapIndex);
}
}
Symbol 2506 MovieClip Frame 7
stop();
Symbol 2507 MovieClip Frame 1
function highlightSlots() {
var _local2 = 0;
while (_local2 < 3) {
this["weapSlot" + _local2].gotoAndStop("off");
_local2++;
}
this["weapSlot" + weapIndex].gotoAndStop("on");
}
function init() {
weapIndex = 0;
highlightSlots();
var _local3 = 0;
while (_local3 < _parent["hero" + _name.substr(-1, 1)].weapSet.length) {
this["weapSlot" + _local3].wid = _parent["hero" + _name.substr(-1, 1)].weapSet[_local3];
this["weapSlot" + _local3].weapName.text = _parent["weapon_" + this["weapSlot" + _local3].wid].wName;
_local3++;
}
_parent.changeWeap(_name.substr(-1, 1), weapIndex);
}
init();
Instance of Symbol 2506 MovieClip "weapSlot2" in Symbol 2507 MovieClip Frame 1
on (release, keyPress "3") {
clickMe();
}
Instance of Symbol 2506 MovieClip "weapSlot1" in Symbol 2507 MovieClip Frame 1
on (release, keyPress "2") {
clickMe();
}
Instance of Symbol 2506 MovieClip "weapSlot0" in Symbol 2507 MovieClip Frame 1
on (release, keyPress "1") {
clickMe();
}
Symbol 2511 MovieClip Frame 1
stop();
Symbol 2514 MovieClip Frame 1
stop();
Symbol 2515 MovieClip Frame 1
stop();
Symbol 2515 MovieClip Frame 11
stop();
Instance of Symbol 2511 MovieClip in Symbol 2515 MovieClip Frame 11
on (release, keyPress "f") {
_parent._parent._parent["hero" + _parent._parent.myIndex].selfRepair(_parent.minVal, _parent.maxVal);
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 2515 MovieClip Frame 22
stop();
Instance of Symbol 2514 MovieClip in Symbol 2515 MovieClip Frame 22
on (release, keyPress "r") {
_parent._parent._parent.heal(_parent.minVal, _parent.maxVal);
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 2518 MovieClip Frame 1
stop();
Symbol 2521 MovieClip Frame 1
stop();
Symbol 2524 MovieClip Frame 1
stop();
Instance of Symbol 2518 MovieClip "item_btn" in Symbol 2525 MovieClip Frame 1
on (release, keyPress "e") {
if (enabled) {
_parent._parent.useItem(_parent._parent.combat_inventory.itemID);
gotoAndStop (1);
}
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 2521 MovieClip "attack_btn" in Symbol 2525 MovieClip Frame 1
on (release, keyPress "a") {
if (enabled) {
_parent._parent.attack();
gotoAndStop (1);
}
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 2524 MovieClip in Symbol 2525 MovieClip Frame 1
on (release, keyPress "d") {
_parent._parent["hero" + _parent.myIndex].defend();
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 2530 MovieClip Frame 1
function shiftMe(targetMovie) {
if (((_parent.myState == "heroSelect") or (_parent.myState == "allySelect")) and (targetMovie.charAt(0) == "h")) {
_visible = true;
_x = _parent[targetMovie]._x;
_y = (_parent[targetMovie]._y - 110);
heroIndex = targetMovie.substr(-1, 1);
if (_parent.myState != "menuSelect") {
_parent.pointName.my_label.text = _parent[targetMovie].hName;
_parent.pointName.gotoAndStop(1);
_parent.pointName._visible = true;
}
} else if ((_parent.myState == "enemySelect") and (targetMovie.charAt(0) == "e")) {
_visible = true;
_x = _parent[targetMovie]._x;
_y = (_parent[targetMovie]._y - 60);
enemyIndex = targetMovie.substr(-1, 1);
if (_parent.myState != "menuSelect") {
_parent.pointName.my_label.text = _parent[targetMovie].eName;
_parent.pointName.gotoAndStop(2);
_parent.pointName._visible = true;
}
}
}
function indexDead() {
if (_parent.myState != "heroSelect") {
_parent.menu._visible = false;
_parent.myState = "heroSelect";
}
heroIndex = 0;
_visible = false;
}
Symbol 2539 MovieClip Frame 1
function init(amount) {
if (!maxHP) {
maxHP = amount;
currHP = maxHP;
HPDisplay.text = currHP;
}
}
function deductHP(damage) {
tempHP = currHP;
currHP = currHP - damage;
if (currHP <= 0) {
hpShade._width = 0;
hpPreview._width = 0;
} else {
hpShade._width = (currHP / maxHP) * 133.7;
}
damageStep = damage / (hpPreview._width - hpShade._width);
hpDamagedInterval = setInterval(reducePreviewHP, 50);
}
function addHP(life) {
currHP = currHP + life;
if (currHP >= maxHP) {
currHP = maxHP;
}
hpHealInterval = setInterval(increaseBar, 25);
}
function increaseBar() {
hpShade._width = hpShade._width + 1;
if (hpShade._width >= ((currHP / maxHP) * 133.7)) {
clearInterval(hpHealInterval);
hpShade._width = (currHP / maxHP) * 133.7;
hpPreview._width = hpShade._width;
HPDisplay.text = currHP;
}
}
function reducePreviewHP() {
tempHP = tempHP - damageStep;
HPDisplay.text = Math.round(tempHP);
hpPreview._width = hpPreview._width - 1;
if (hpPreview._width <= hpShade._width) {
hpPreview._width = hpShade._width;
clearInterval(hpDamagedInterval);
HPDisplay.text = currHP;
}
}
init(_parent._parent["hero" + _parent._name.substr(-1, 1)].maxHP);
Symbol 2550 MovieClip Frame 1
function init() {
maxEnergy = 125;
currEnergy = 40 + random(40);
shadeGlow._visible = false;
}
function deductEnergy(amtUsed) {
currEnergy = currEnergy - amtUsed;
if (currEnergy < 100) {
shadeGlow._visible = false;
}
}
function chargeEnergyBar() {
if (currEnergy >= 125) {
chargePercent.text = "125%";
shadeGlow._visible = true;
} else if (currEnergy >= 100) {
epShade._width = 100 + ((41.5 * (currEnergy - 100)) / 25);
chargePercent.text = Math.ceil(currEnergy) + "%";
} else {
shadeGlow._visible = false;
epShade._width = currEnergy;
chargePercent.text = Math.ceil(currEnergy) + "%";
}
}
init();
Symbol 2561 MovieClip Frame 1
stop();
Symbol 2564 MovieClip Frame 1
stop();
stop();
Symbol 2564 MovieClip Frame 10
gotoAndPlay ("ready");
Symbol 2569 MovieClip Frame 1
stop();
Symbol 2569 MovieClip Frame 2
stop();
Symbol 2569 MovieClip Frame 3
stop();
Symbol 2572 MovieClip Frame 1
function setPath(destX, destY, type, speed) {
dX = destX;
dY = destY;
moveType = type;
timing = speed;
moveCount = 0;
combo = weapUse.hits;
xSpeed = (destX - _x) / timing;
ySpeed = (destY - _y) / timing;
_parent.myState = "action";
switch (weapUse.moveType) {
case "go" :
hero_clip.gotoAndPlay("move");
MI = setInterval(moveMe, 10);
break;
case "projectile" :
attInt = setInterval(shootProj, weapUse.hitDelay, "normal");
break;
case "semi" :
attInt = setInterval(shootProj, weapUse.hitDelay, "semi");
break;
case "stop" :
attInt = setInterval(attackTarget, weapUse.hitDelay);
}
}
function goBack(speed) {
moveType = "back";
timing = speed;
moveCount = 0;
xSpeed = (rememX - _x) / timing;
ySpeed = (rememY - _y) / timing;
MI2 = setInterval(moveMe, 10);
}
function moveMe() {
trace("moving " + _name);
if (!_parent.action) {
_parent.action = _name;
}
if (_parent.action == _name) {
if (moveCount < timing) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
moveCount++;
} else if (moveType == "charge") {
clearInterval(MI);
attInt = setInterval(attackTarget, weapUse.hitDelay);
} else {
_parent.myState = "heroSelect";
clearInterval(MI2);
_parent.action = false;
}
}
}
function lifeLoss(life) {
currHP = currHP - life;
_parent["stats" + _name.substr(-1, 1)].health_bar.deductHP(life);
if (currHP <= 0) {
if (_name.substr(-1, 1) == _parent.pointer.heroIndex) {
_parent.pointer.indexDead();
}
currHP = 0;
killMe();
}
}
function attackTarget() {
trace("attacking " + _name);
if (!_parent.action) {
_parent.action = _name;
}
if (_parent.action == _name) {
var _local2 = (random(100) - weapUse.hitBonus) - currAccurate;
var _local3 = random(Math.ceil(0.5 * currTech)) + 1;
var _local4 = Math.ceil((weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage)) + _local3);
_parent.createSpark(weapUse.effect, dX - weapUse.xOffset, dY - weapUse.yOffset, "enemy" + _parent.pointer.enemyIndex, _local4, _local2);
hero_clip.gotoAndPlay("attack" + weapUse.attackType);
}
}
function shootProj(projType) {
trace("attacking " + _name);
if (!_parent.action) {
_parent.action = _name;
}
if (_parent.action == _name) {
var _local2 = (random(100) - weapUse.hitBonus) - currAccurate;
var _local3 = random(Math.ceil(0.5 * currTech)) + 1;
var _local4 = Math.ceil((weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage)) + _local3);
_parent.createProj(weapUse.effect, _x - weapUse.xOrigin, _y - weapUse.yOrigin, dX - weapUse.xOffset, dY - weapUse.yOffset, "enemy" + _parent.pointer.enemyIndex, _local4, projType, _local2);
hero_clip.gotoAndPlay("attack" + weapUse.attackType);
trace("attack" + weapUse.attackType);
}
}
function defend() {
resetStats();
hero_clip.gotoAndPlay("defend");
currArmor = baseArmor * 2;
eval ("_parent.stats" + _parent.menu.myIndex).action_bar.deductEnergy(50);
_parent.myState = "heroSelect";
_parent.menu._visible = false;
_parent.pointer._visible = false;
_parent["weapSelect" + _name.substr(-1, 1)]._visible = false;
_parent.escape_btn._visible = false;
_parent.pointName._visible = false;
_parent.combat_inventory._visible = false;
}
function selfRepair(minHeal, maxHeal) {
resetStats();
var percentHealed = (minHeal + random(maxHeal - minHeal));
healMe(percentHealed);
eval ("_parent.stats" + _parent.menu.myIndex).action_bar.deductEnergy(maxHeal * 2);
_parent.myState = "heroSelect";
_parent.menu._visible = false;
_parent.pointer._visible = false;
_parent["weapSelect" + _name.substr(-1, 1)]._visible = false;
_parent.escape_btn._visible = false;
_parent.pointName._visible = false;
_parent.combat_inventory._visible = false;
}
function healMe(percentHealed) {
var _local2 = percentHealed;
_parent.attachMovie("hitmiss", "heal" + _name, 5000 + _local2);
_parent["heal" + _name]._x = _x - 50;
_parent["heal" + _name]._y = _y - 50;
_parent["heal" + _name].getDmg = _local2;
_parent["heal" + _name].owner = _name;
_parent["heal" + _name].numType = "heal";
var _local3 = new Color(_parent["heal" + _name]);
var _local4 = {ra:0, rb:0, ga:60, gb:200, ba:0, bb:0, aa:100, ab:70};
_local3.setTransform(_local4);
_parent["heal" + _name].gotoAndStop("trigger_hit");
}
function lifeGet(amount) {
currHP = currHP + amount;
if (currHP >= maxHP) {
currHP = maxHP;
}
_parent["stats" + _name.substr(-1, 1)].health_bar.addHP(amount);
}
function resetStats() {
currArmor = baseArmor;
hero_clip.gotoAndPlay("normal");
_parent["stats" + _name.substr(-1, 1)].gotoAndStop("normal");
}
function killMe() {
if (!dying) {
_parent["stats" + _name.substr(-1, 1)].action_bar.currEnergy = 0;
_parent["stats" + _name.substr(-1, 1)].action_bar.chargeEnergyBar();
recharge = 0;
dying = true;
if (_parent.menu.myIndex == _name.substr(-1, 1)) {
_parent.menu._visible = false;
_parent["weapSelect" + _name.substr(-1, 1)]._visible = false;
_parent.escape_btn._visible = false;
_parent.combat_inventory._visible = false;
_parent.cancel_btn._visible = false;
_parent["stats" + _name.substr(-1, 1)].gotoAndStop("normal");
_parent.myState = "heroSelect";
}
clearInterval(MI);
clearInterval(MI2);
clearInterval(attInt);
_parent.action = false;
hero_clip.gotoAndPlay("die");
_parent.checkLose();
}
}
function startAttack() {
combo--;
if (((combo <= 0) or (!_visible)) or dying) {
clearInterval(attInt);
}
_parent.playSpark();
}
function endAttack() {
if (((combo <= 0) or (!_visible)) or dying) {
goBack(10);
}
}
Symbol 2575 MovieClip Frame 1
function goTo(speed) {
pickTarget = _parent.pickTarget("hero", "random");
destX = _parent["hero" + pickTarget]._x - 50;
destY = _parent["hero" + pickTarget]._y - 50;
moveType = "charge";
timing = speed;
moveCount = 0;
combo = weapUse.hits;
xSpeed = (destX - _x) / timing;
ySpeed = (destY - _y) / timing;
if ((pickTarget > 0) and (currHP > 0)) {
switch (weapUse.moveType) {
case "go" :
enemy_clip.gotoAndPlay("get_ready" + weapUse.attackType);
break;
case "semi" :
attInt = setInterval(shootProj, weapUse.hitDelay, "semi");
break;
case "projectile" :
attInt = setInterval(shootProj, weapUse.hitDelay, "normal");
break;
case "stop" :
attInt = setInterval(attackTarget, weapUse.hitDelay);
}
}
}
function goBack(speed) {
moveType = "back";
timing = speed;
moveCount = 0;
xSpeed = (rememX - _x) / timing;
ySpeed = (rememY - _y) / timing;
MI2 = setInterval(moveMe, 10);
}
function moveMe() {
trace("moving " + _name);
if (!_parent.action) {
_parent.action = _name;
}
if (_parent.action == _name) {
if (moveCount < timing) {
enabled = false;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
moveCount++;
} else if (moveType == "charge") {
clearInterval(MI);
attInt = setInterval(attackTarget, weapUse.hitDelay);
} else {
ATB = ATB - weapUse.eUse;
clearInterval(MI2);
_parent.action = false;
_parent.pointName._visible = false;
if (_parent.menu._visible) {
_parent.pointName.gotoAndStop(1);
_parent.pointName.my_label.text = _parent["hero" + _parent.menu.myIndex].hName;
_parent.pointName._visible = true;
}
enabled = true;
}
}
}
function lifeLoss(life) {
currHP = currHP - life;
if (currHP <= 0) {
currHP = 0;
killMe();
}
}
function killMe() {
if (!dying) {
dying = true;
ATB = 0;
clearInterval(MI);
clearInterval(MI2);
clearInterval(attInt);
_parent.action = false;
enemy_clip.gotoAndPlay("die");
_parent.checkWin();
}
}
function attackTarget() {
trace("attacking " + _name);
if (!_parent.action) {
_parent.action = _name;
}
if (_parent.action == _name) {
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
var _local2 = (random(100) - weapUse.hitBonus) - currAccurate;
var _local3 = Math.ceil(weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage));
_parent.createSpark(weapUse.effect, destX + weapUse.xOffset, destY + weapUse.yOffset, "hero" + pickTarget, _local3, _local2);
enemy_clip.gotoAndPlay("attack" + weapUse.attackType);
}
}
function shootProj(projType) {
trace("attacking " + _name);
if (!_parent.action) {
_parent.action = _name;
}
if (_parent.action == _name) {
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
var _local2 = (random(100) - weapUse.hitBonus) - currAccurate;
var _local3 = Math.ceil(weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage));
_parent.createProj(weapUse.effect, _x + weapUse.xOrigin, _y + weapUse.yOrigin, destX + weapUse.xOffset, destY + weapUse.yOffset, "hero" + pickTarget, _local3, projType, _local2);
enemy_clip.gotoAndPlay("attack" + weapUse.attackType);
}
}
function pickWeap() {
var _local2 = random(weapSet.length);
weapUse = _parent["weapon_" + weapSet[_local2]];
trace(weapUse.wName);
}
function startAttack() {
combo--;
if (((combo <= 0) or (!_visible)) or dying) {
clearInterval(attInt);
}
_parent.playSpark();
}
function endAttack() {
enemy_clip.gotoAndPlay("normal");
if (((combo <= 0) or (!_visible)) or dying) {
goBack(10);
}
}
Symbol 2584 MovieClip Frame 1
stop();
Symbol 2585 MovieClip Frame 1
function getWeapInfo(id) {
var _local2 = _level0.getItemProp(id);
this["weapon_" + id].minDamage = int(_local2.mindamage);
this["weapon_" + id].maxDamage = int(_local2.maxdamage);
this["weapon_" + id].eUse = int(_local2.energy);
this["weapon_" + id].hits = int(_local2.hits);
this["weapon_" + id].hitBonus = int(_local2.hitbonus);
}
weapCount = 9;
weapon_W01M = new Object();
weapon_W01M.wName = "B Fist";
weapon_W01M.effect = "spark1";
weapon_W01M.xOffset = 50;
weapon_W01M.yOffset = 50;
weapon_W01M.moveType = "go";
weapon_W01M.hitDelay = 1;
weapon_W01M.attackType = "";
getWeapInfo("W01M");
weapon_W02M = new Object();
weapon_W02M.wName = "I Hammer";
weapon_W02M.effect = "big_spark1";
weapon_W02M.xOffset = 50;
weapon_W02M.yOffset = 50;
weapon_W02M.moveType = "go";
weapon_W02M.hitDelay = 1;
weapon_W02M.attackType = "";
getWeapInfo("W02M");
weapon_W03M = new Object();
weapon_W03M.wName = "S Fist";
weapon_W03M.effect = "spark1";
weapon_W03M.xOffset = 50;
weapon_W03M.yOffset = 50;
weapon_W03M.moveType = "go";
weapon_W03M.hitDelay = 1;
weapon_W03M.attackType = "";
getWeapInfo("W03M");
weapon_W01H = new Object();
weapon_W01H.wName = "M Cannon";
weapon_W01H.effect = "cannon";
weapon_W01H.xOffset = 50;
weapon_W01H.yOffset = 50;
weapon_W01H.xOrigin = 50;
weapon_W01H.yOrigin = 50;
weapon_W01H.moveType = "projectile";
weapon_W01H.hitDelay = 1;
weapon_W01H.attackType = "3";
getWeapInfo("W01H");
weapon_W02H = new Object();
weapon_W02H.wName = "D Cannon";
weapon_W02H.effect = "cannon2";
weapon_W02H.xOffset = 50;
weapon_W02H.yOffset = 50;
weapon_W02H.xOrigin = 50;
weapon_W02H.yOrigin = 50;
weapon_W02H.moveType = "projectile";
weapon_W02H.hitDelay = 1;
weapon_W02H.attackType = "3";
getWeapInfo("W02H");
weapon_W03H = new Object();
weapon_W03H.wName = "P Launcher";
weapon_W03H.effect = "launcher";
weapon_W03H.xOffset = 50;
weapon_W03H.yOffset = 50;
weapon_W03H.xOrigin = 50;
weapon_W03H.yOrigin = 50;
weapon_W03H.moveType = "projectile";
weapon_W03H.hitDelay = 1;
weapon_W03H.attackType = "3";
getWeapInfo("W03H");
weapon_W01L = new Object();
weapon_W01L.wName = "A Revolver";
weapon_W01L.effect = "gun1";
weapon_W01L.xOffset = 50;
weapon_W01L.yOffset = 50;
weapon_W01L.xOrigin = 50;
weapon_W01L.yOrigin = 50;
weapon_W01L.moveType = "projectile";
weapon_W01L.hitDelay = 1;
weapon_W01L.attackType = "2";
getWeapInfo("W01L");
weapon_W02L = new Object();
weapon_W02L.wName = "Shotgun";
weapon_W02L.effect = "shotgun1";
weapon_W02L.xOffset = 50;
weapon_W02L.yOffset = 50;
weapon_W02L.xOrigin = 50;
weapon_W02L.yOrigin = 50;
weapon_W02L.moveType = "projectile";
weapon_W02L.hitDelay = 1;
weapon_W02L.attackType = "2";
getWeapInfo("W02L");
weapon_W03L = new Object();
weapon_W03L.wName = "B Sniper";
weapon_W03L.effect = "sniper";
weapon_W03L.xOffset = 50;
weapon_W03L.yOffset = 50;
weapon_W03L.xOrigin = 50;
weapon_W03L.yOrigin = 50;
weapon_W03L.moveType = "projectile";
weapon_W03L.hitDelay = 1;
weapon_W03L.attackType = "2";
getWeapInfo("W03L");
weapon_bash = new Object();
weapon_bash.wName = "Fly-By-Strike";
weapon_bash.effect = "spark2";
weapon_bash.xOffset = 50;
weapon_bash.yOffset = 50;
weapon_bash.minDamage = 6;
weapon_bash.maxDamage = 12;
weapon_bash.eUse = 50;
weapon_bash.moveType = "go";
weapon_bash.hits = 1;
weapon_bash.hitDelay = 1;
weapon_bash.hitBonus = 20;
weapon_bash.attackType = "";
weapon_clockSmash = new Object();
weapon_clockSmash.wName = "Clock Smash";
weapon_clockSmash.effect = "spark3";
weapon_clockSmash.xOffset = 50;
weapon_clockSmash.yOffset = 50;
weapon_clockSmash.minDamage = 7;
weapon_clockSmash.maxDamage = 14;
weapon_clockSmash.eUse = 50;
weapon_clockSmash.moveType = "go";
weapon_clockSmash.hits = 1;
weapon_clockSmash.hitDelay = 1;
weapon_clockSmash.hitBonus = 20;
weapon_clockSmash.attackType = "";
weapon_rustySmash = new Object();
weapon_rustySmash.wName = "Rusty Punch";
weapon_rustySmash.effect = "spark1";
weapon_rustySmash.xOffset = 50;
weapon_rustySmash.yOffset = 50;
weapon_rustySmash.minDamage = 10;
weapon_rustySmash.maxDamage = 15;
weapon_rustySmash.eUse = 40;
weapon_rustySmash.moveType = "go";
weapon_rustySmash.hits = 1;
weapon_rustySmash.hitDelay = 1;
weapon_rustySmash.hitBonus = 20;
weapon_rustySmash.attackType = "";
weapon_lightning = new Object();
weapon_lightning.wName = "Lightning Strike";
weapon_lightning.effect = "lightning";
weapon_lightning.xOffset = 50;
weapon_lightning.yOffset = 50;
weapon_lightning.minDamage = 13;
weapon_lightning.maxDamage = 18;
weapon_lightning.eUse = 40;
weapon_lightning.moveType = "stop";
weapon_lightning.hits = 1;
weapon_lightning.hitDelay = 1;
weapon_lightning.hitBonus = 0;
weapon_lightning.attackType = "2";
weapon_shoot = new Object();
weapon_shoot.wName = "Shoot";
weapon_shoot.effect = "bang";
weapon_shoot.xOffset = 50;
weapon_shoot.yOffset = 50;
weapon_shoot.minDamage = 25;
weapon_shoot.maxDamage = 50;
weapon_shoot.eUse = 40;
weapon_shoot.moveType = "stop";
weapon_shoot.hits = 1;
weapon_shoot.hitDelay = 1;
weapon_shoot.hitBonus = 0;
weapon_shoot.attackType = "2";
weapon_cannon = new Object();
weapon_cannon.wName = "Cannon";
weapon_cannon.effect = "cannon2";
weapon_cannon.xOffset = 50;
weapon_cannon.yOffset = 50;
weapon_cannon.xOrigin = 50;
weapon_cannon.yOrigin = 50;
weapon_cannon.minDamage = 40;
weapon_cannon.maxDamage = 50;
weapon_cannon.eUse = 50;
weapon_cannon.moveType = "projectile";
weapon_cannon.hits = 1;
weapon_cannon.hitDelay = 500;
weapon_cannon.hitBonus = -20;
weapon_cannon.attackType = "2";
weapon_popbomb = new Object();
weapon_popbomb.wName = "Pop Bomb";
weapon_popbomb.effect = "cannon";
weapon_popbomb.xOffset = 50;
weapon_popbomb.yOffset = 50;
weapon_popbomb.xOrigin = 50;
weapon_popbomb.yOrigin = 50;
weapon_popbomb.minDamage = 40;
weapon_popbomb.maxDamage = 50;
weapon_popbomb.eUse = 50;
weapon_popbomb.moveType = "semi";
weapon_popbomb.hits = 1;
weapon_popbomb.hitDelay = 1;
weapon_popbomb.hitBonus = 10;
weapon_popbomb.attackType = "";
weapon_slash = new Object();
weapon_slash.wName = "Slash";
weapon_slash.effect = "spark1";
weapon_slash.xOffset = 50;
weapon_slash.yOffset = 50;
weapon_slash.minDamage = 50;
weapon_slash.maxDamage = 100;
weapon_slash.eUse = 50;
weapon_slash.moveType = "go";
weapon_slash.hits = 1;
weapon_slash.hitDelay = 1;
weapon_slash.hitBonus = 10;
weapon_slash.attackType = "";
weapon_renegadeHook = new Object();
weapon_renegadeHook.wName = "Renegade Hook";
weapon_renegadeHook.effect = "spark3";
weapon_renegadeHook.xOffset = 50;
weapon_renegadeHook.yOffset = 50;
weapon_renegadeHook.minDamage = 17;
weapon_renegadeHook.maxDamage = 24;
weapon_renegadeHook.eUse = 60;
weapon_renegadeHook.moveType = "go";
weapon_renegadeHook.hits = 1;
weapon_renegadeHook.hitDelay = 1;
weapon_renegadeHook.hitBonus = 0;
weapon_renegadeHook.attackType = "";
weapon_spiderAttack = new Object();
weapon_spiderAttack.wName = "Venom Bite";
weapon_spiderAttack.effect = "spiderAttack";
weapon_spiderAttack.xOffset = 50;
weapon_spiderAttack.yOffset = 50;
weapon_spiderAttack.minDamage = 23;
weapon_spiderAttack.maxDamage = 28;
weapon_spiderAttack.eUse = 40;
weapon_spiderAttack.moveType = "stop";
weapon_spiderAttack.hits = 1;
weapon_spiderAttack.hitDelay = 100;
weapon_spiderAttack.hitBonus = 0;
weapon_spiderAttack.attackType = "";
weapon_web = new Object();
weapon_web.wName = "Corrosive Web";
weapon_web.effect = "web";
weapon_web.xOffset = 50;
weapon_web.yOffset = 50;
weapon_web.xOrigin = 50;
weapon_web.yOrigin = 50;
weapon_web.minDamage = 26;
weapon_web.maxDamage = 29;
weapon_web.eUse = 50;
weapon_web.moveType = "projectile";
weapon_web.hits = 1;
weapon_web.hitDelay = 500;
weapon_web.hitBonus = -10;
weapon_web.attackType = "2";
weapon_takedown = new Object();
weapon_takedown.wName = "Take Down";
weapon_takedown.effect = "spark1";
weapon_takedown.xOffset = 50;
weapon_takedown.yOffset = 50;
weapon_takedown.minDamage = 30;
weapon_takedown.maxDamage = 35;
weapon_takedown.eUse = 40;
weapon_takedown.moveType = "go";
weapon_takedown.hits = 1;
weapon_takedown.hitDelay = 1;
weapon_takedown.hitBonus = 0;
weapon_takedown.attackType = "";
weapon_beanspray = new Object();
weapon_beanspray.wName = "Bean Spray";
weapon_beanspray.effect = "beanspray";
weapon_beanspray.xOffset = 50;
weapon_beanspray.yOffset = 50;
weapon_beanspray.xOrigin = 50;
weapon_beanspray.yOrigin = 50;
weapon_beanspray.minDamage = 26;
weapon_beanspray.maxDamage = 32;
weapon_beanspray.eUse = 35;
weapon_beanspray.moveType = "projectile";
weapon_beanspray.hits = 1;
weapon_beanspray.hitDelay = 500;
weapon_beanspray.hitBonus = 5;
weapon_beanspray.attackType = "2";
weapon_sharkBite = new Object();
weapon_sharkBite.wName = "Shark Bite";
weapon_sharkBite.effect = "sharkBite";
weapon_sharkBite.xOffset = 50;
weapon_sharkBite.yOffset = 50;
weapon_sharkBite.minDamage = 23;
weapon_sharkBite.maxDamage = 28;
weapon_sharkBite.eUse = 40;
weapon_sharkBite.moveType = "stop";
weapon_sharkBite.hits = 1;
weapon_sharkBite.hitDelay = 100;
weapon_sharkBite.hitBonus = 0;
weapon_sharkBite.attackType = "";
weapon_laser = new Object();
weapon_laser.wName = "Laser";
weapon_laser.effect = "laser";
weapon_laser.xOffset = 50;
weapon_laser.yOffset = 50;
weapon_laser.xOrigin = 50;
weapon_laser.yOrigin = 50;
weapon_laser.minDamage = 26;
weapon_laser.maxDamage = 29;
weapon_laser.eUse = 50;
weapon_laser.moveType = "projectile";
weapon_laser.hits = 1;
weapon_laser.hitDelay = 500;
weapon_laser.hitBonus = -10;
weapon_laser.attackType = "2";
weapon_wingstrike = new Object();
weapon_wingstrike.wName = "Wing Strike";
weapon_wingstrike.effect = "spark1";
weapon_wingstrike.xOffset = 50;
weapon_wingstrike.yOffset = 50;
weapon_wingstrike.minDamage = 20;
weapon_wingstrike.maxDamage = 25;
weapon_wingstrike.eUse = 30;
weapon_wingstrike.moveType = "go";
weapon_wingstrike.hits = 1;
weapon_wingstrike.hitDelay = 1;
weapon_wingstrike.hitBonus = 0;
weapon_wingstrike.attackType = "";
weapon_crimsonblast = new Object();
weapon_crimsonblast.wName = "Crimson blast";
weapon_crimsonblast.effect = "laser";
weapon_crimsonblast.xOffset = 50;
weapon_crimsonblast.yOffset = 50;
weapon_crimsonblast.xOrigin = 50;
weapon_crimsonblast.yOrigin = 50;
weapon_crimsonblast.minDamage = 28;
weapon_crimsonblast.maxDamage = 30;
weapon_crimsonblast.eUse = 50;
weapon_crimsonblast.moveType = "projectile";
weapon_crimsonblast.hits = 1;
weapon_crimsonblast.hitDelay = 500;
weapon_crimsonblast.hitBonus = -5;
weapon_crimsonblast.attackType = "2";
weapon_burrowstrike = new Object();
weapon_burrowstrike.wName = "Burrow Strike";
weapon_burrowstrike.effect = "burrowstrike";
weapon_burrowstrike.xOffset = 50;
weapon_burrowstrike.yOffset = 50;
weapon_burrowstrike.minDamage = 32;
weapon_burrowstrike.maxDamage = 35;
weapon_burrowstrike.eUse = 50;
weapon_burrowstrike.moveType = "stop";
weapon_burrowstrike.hits = 1;
weapon_burrowstrike.hitDelay = 100;
weapon_burrowstrike.hitBonus = 0;
weapon_burrowstrike.attackType = "2";
weapon_drillmissile = new Object();
weapon_drillmissile.wName = "Drill Missile";
weapon_drillmissile.effect = "drillmissile";
weapon_drillmissile.xOffset = 50;
weapon_drillmissile.yOffset = 50;
weapon_drillmissile.minDamage = 18;
weapon_drillmissile.maxDamage = 20;
weapon_drillmissile.eUse = 20;
weapon_drillmissile.moveType = "stop";
weapon_drillmissile.hits = 1;
weapon_drillmissile.hitDelay = 100;
weapon_drillmissile.hitBonus = -5;
weapon_drillmissile.attackType = "";
ms_scrapyard_1 = new Object();
ms_scrapyard_1.mArray = new Array();
ms_scrapyard_1.mArray[0] = new Array("gearfly");
ms_scrapyard_1.mArray[1] = new Array("gearfly");
ms_scrapyard_1.mMin = 1;
ms_scrapyard_1.mMax = 2;
ms_scrapyard_2 = new Object();
ms_scrapyard_2.mArray = new Array();
ms_scrapyard_2.mArray[0] = new Array("gearfly", "clock");
ms_scrapyard_2.mArray[1] = new Array("gearfly", "clock");
ms_scrapyard_2.mMin = 1;
ms_scrapyard_2.mMax = 2;
ms_scrapyard_3 = new Object();
ms_scrapyard_3.mArray = new Array();
ms_scrapyard_3.mArray[0] = new Array("rusty", "clock");
ms_scrapyard_3.mArray[1] = new Array("rusty", "clock");
ms_scrapyard_3.mMin = 1;
ms_scrapyard_3.mMax = 2;
ms_scrapyard_4 = new Object();
ms_scrapyard_4.mArray = new Array();
ms_scrapyard_4.mArray[0] = new Array("rusty");
ms_scrapyard_4.mArray[1] = new Array("rusty");
ms_scrapyard_4.mMin = 1;
ms_scrapyard_4.mMax = 2;
ms_scrapyard_5 = new Object();
ms_scrapyard_5.mArray = new Array();
ms_scrapyard_5.mArray[0] = new Array("gearfly", "rusty");
ms_scrapyard_5.mArray[1] = new Array("gearfly", "rusty");
ms_scrapyard_5.mMin = 1;
ms_scrapyard_5.mMax = 2;
ms_scrapyard_6 = new Object();
ms_scrapyard_6.mArray = new Array();
ms_scrapyard_6.mArray[0] = new Array("gearfly", "rusty", "clock");
ms_scrapyard_6.mArray[1] = new Array("gearfly", "rusty", "clock");
ms_scrapyard_6.mMin = 1;
ms_scrapyard_6.mMax = 2;
ms_scrapyard_boss = new Object();
ms_scrapyard_boss.mArray = new Array();
ms_scrapyard_boss.mArray[0] = new Array("derelict");
ms_scrapyard_boss.mMin = 1;
ms_scrapyard_boss.mMax = 1;
ms_scrapyard_boss.noescape = true;
ms_jungle_1 = new Object();
ms_jungle_1.mArray = new Array();
ms_jungle_1.mArray[0] = new Array("gearfly");
ms_jungle_1.mArray[1] = new Array("gearfly");
ms_jungle_1.mMin = 1;
ms_jungle_1.mMax = 2;
ms_jungle_2 = new Object();
ms_jungle_2.mArray = new Array();
ms_jungle_2.mArray[0] = new Array("gearfly", "junglespider");
ms_jungle_2.mArray[1] = new Array("gearfly", "junglespider");
ms_jungle_2.mMin = 1;
ms_jungle_2.mMax = 2;
ms_jungle_3 = new Object();
ms_jungle_3.mArray = new Array();
ms_jungle_3.mArray[0] = new Array("junglespider");
ms_jungle_3.mArray[1] = new Array("junglespider");
ms_jungle_3.mMin = 1;
ms_jungle_3.mMax = 2;
ms_jungle_4 = new Object();
ms_jungle_4.mArray = new Array();
ms_jungle_4.mArray[0] = new Array("junglespider", "sproutwarrior");
ms_jungle_4.mArray[1] = new Array("junglespider");
ms_jungle_4.mMin = 1;
ms_jungle_4.mMax = 2;
ms_azure_1 = new Object();
ms_azure_1.mArray = new Array();
ms_azure_1.mArray[0] = new Array("hermitshark");
ms_azure_1.mArray[1] = new Array("hermitshark");
ms_azure_1.mMin = 1;
ms_azure_1.mMax = 2;
ms_lazlo_1 = new Object();
ms_lazlo_1.mArray = new Array();
ms_lazlo_1.mArray[0] = new Array("rusty", "clock");
ms_lazlo_1.mArray[1] = new Array("rusty", "clock");
ms_lazlo_1.mArray[2] = new Array("rusty", "clock");
ms_lazlo_1.mArray[3] = new Array("rusty", "clock");
ms_lazlo_1.mMin = 2;
ms_lazlo_1.mMax = 4;
ms_lazlo_2 = new Object();
ms_lazlo_2.mArray = new Array();
ms_lazlo_2.mArray[0] = new Array("phasebat", "rusty");
ms_lazlo_2.mArray[1] = new Array("phasebat", "rusty");
ms_lazlo_2.mArray[2] = new Array("phasebat", "rusty");
ms_lazlo_2.mMin = 2;
ms_lazlo_2.mMax = 3;
ms_lazlo_3 = new Object();
ms_lazlo_3.mArray = new Array();
ms_lazlo_3.mArray[0] = new Array("phasebat", "drillfiend");
ms_lazlo_3.mArray[1] = new Array("phasebat", "drillfiend");
ms_lazlo_3.mArray[2] = new Array("phasebat", "drillfiend");
ms_lazlo_3.mMin = 2;
ms_lazlo_3.mMax = 3;
ms_lazlo_4 = new Object();
ms_lazlo_4.mArray = new Array();
ms_lazlo_4.mArray[0] = new Array("phasebat", "drillfiend");
ms_lazlo_4.mArray[1] = new Array("phasebat", "drillfiend");
ms_lazlo_4.mArray[2] = new Array("phasebat", "drillfiend");
ms_lazlo_4.mArray[3] = new Array("phasebat", "drillfiend");
ms_lazlo_4.mMin = 3;
ms_lazlo_4.mMax = 4;
monster_gearfly = new Object();
monster_gearfly.sprite = "gearfly";
monster_gearfly.mName = "Gear Fly";
monster_gearfly.maxHP = 12;
monster_gearfly.weapSet = new Array("bash");
monster_gearfly.armor = 2;
monster_gearfly.accurate = 10;
monster_gearfly.reflex = 10;
monster_gearfly.recharge = 2;
monster_gearfly.xp = 5;
monster_gearfly.credit = 5;
monster_gearfly.item = new Array({id:"I000Q", chance:30});
monster_clock = new Object();
monster_clock.sprite = "clock";
monster_clock.mName = "Clock Crawler";
monster_clock.maxHP = 25;
monster_clock.weapSet = new Array("clockSmash");
monster_clock.armor = 3;
monster_clock.accurate = 0;
monster_clock.reflex = 0;
monster_clock.recharge = 3;
monster_clock.xp = 7;
monster_clock.credit = 10;
monster_clock.item = new Array({id:"I002Q", chance:20});
monster_rusty = new Object();
monster_rusty.sprite = "rusty";
monster_rusty.mName = "Rust Fiend";
monster_rusty.maxHP = 35;
monster_rusty.weapSet = new Array("rustySmash", "lightning");
monster_rusty.armor = 5;
monster_rusty.accurate = 10;
monster_rusty.reflex = 5;
monster_rusty.recharge = 2;
monster_rusty.xp = 12;
monster_rusty.credit = 15;
monster_rusty.item = new Array({id:"I001R", chance:10});
monster_derelict = new Object();
monster_derelict.sprite = "derelict";
monster_derelict.mName = "Rusted Derelict";
monster_derelict.maxHP = 200;
monster_derelict.weapSet = new Array("renegadeHook");
monster_derelict.armor = 5;
monster_derelict.accurate = 10;
monster_derelict.reflex = 10;
monster_derelict.recharge = 3;
monster_derelict.xp = 40;
monster_derelict.credit = 40;
monster_derelict.item = new Array({id:"I001Q", chance:100});
monster_junglespider = new Object();
monster_junglespider.sprite = "junglespider";
monster_junglespider.mName = "Jungle Spider";
monster_junglespider.maxHP = 45;
monster_junglespider.weapSet = new Array("spiderAttack", "web");
monster_junglespider.armor = 4;
monster_junglespider.accurate = 14;
monster_junglespider.reflex = 10;
monster_junglespider.recharge = 4;
monster_junglespider.xp = 15;
monster_junglespider.credit = 20;
monster_junglespider.item = new Array({id:"I001R", chance:20});
monster_sproutwarrior = new Object();
monster_sproutwarrior.sprite = "sproutwarrior";
monster_sproutwarrior.mName = "Sprout Warrior";
monster_sproutwarrior.maxHP = 60;
monster_sproutwarrior.weapSet = new Array("takedown", "beanspray");
monster_sproutwarrior.armor = 5;
monster_sproutwarrior.accurate = 10;
monster_sproutwarrior.reflex = 10;
monster_sproutwarrior.recharge = 3;
monster_sproutwarrior.xp = 20;
monster_sproutwarrior.credit = 25;
monster_sproutwarrior.item = new Array({id:"C01AT", chance:10}, {id:"C02AT", chance:1});
monster_shroomurai = new Object();
monster_shroomurai.sprite = "sproutWarrior";
monster_shroomurai.mName = "Shroomurai";
monster_shroomurai.maxHP = 60;
monster_shroomurai.weapSet = new Array("cannon");
monster_shroomurai.armor = 0;
monster_shroomurai.accurate = 20;
monster_shroomurai.reflex = 20;
monster_shroomurai.recharge = 4;
monster_shroomurai.xp = 35;
monster_shroomurai.credit = 15;
monster_sproutlord = new Object();
monster_sproutlord.sprite = "sproutlord";
monster_sproutlord.mName = "Sprout Lord";
monster_sproutlord.maxHP = 300;
monster_sproutlord.weapSet = new Array("slash");
monster_sproutlord.armor = 15;
monster_sproutlord.accurate = 5;
monster_sproutlord.reflex = 0;
monster_sproutlord.recharge = 5;
monster_sproutlord.xp = 300;
monster_sproutlord.credit = 250;
monster_hermitshark = new Object();
monster_hermitshark.sprite = "hermitshark";
monster_hermitshark.mName = "Hermit Shark";
monster_hermitshark.maxHP = 55;
monster_hermitshark.weapSet = new Array("sharkBite", "laser");
monster_hermitshark.armor = 5;
monster_hermitshark.accurate = 15;
monster_hermitshark.reflex = 20;
monster_hermitshark.recharge = 4;
monster_hermitshark.xp = 20;
monster_hermitshark.credit = 25;
monster_hermitshark.item = new Array({id:"C01AF", chance:10}, {id:"C02AF", chance:1});
monster_phasebat = new Object();
monster_phasebat.sprite = "phasebat";
monster_phasebat.mName = "Phase Bat";
monster_phasebat.maxHP = 60;
monster_phasebat.weapSet = new Array("crimsonblast", "wingstrike");
monster_phasebat.armor = 5;
monster_phasebat.accurate = 25;
monster_phasebat.reflex = 32;
monster_phasebat.recharge = 4;
monster_phasebat.xp = 30;
monster_phasebat.credit = 45;
monster_phasebat.item = new Array({id:"I001R", chance:10});
monster_drillfiend = new Object();
monster_drillfiend.sprite = "drillfiend";
monster_drillfiend.mName = "Drill Fiend";
monster_drillfiend.maxHP = 70;
monster_drillfiend.weapSet = new Array("drillmissile", "burrowstrike");
monster_drillfiend.armor = 7;
monster_drillfiend.accurate = 30;
monster_drillfiend.reflex = 30;
monster_drillfiend.recharge = 4;
monster_drillfiend.xp = 50;
monster_drillfiend.credit = 55;
monster_drillfiend.item = new Array({id:"I001R", chance:20});
function init() {
if (_root.areaTerrain == undefined) {
_root.areaTerrain = "jungle";
}
combatBG.gotoAndStop(_root.areaTerrain);
winLose._visible = false;
winLose.gotoAndStop(1);
total_xp = 0;
total_credit = 0;
total_item = "Nothing";
effectCount = 0;
effectPlay = 0;
dmgCount = 0;
msNum = _parent.msNum;
if (msNum == undefined) {
msNum = "lazlo_3";
}
bigFatReset();
heroSetup();
enemySetup();
populateItems();
IA = setInterval(ATBup, 500);
}
function populateItems() {
tempInventory = _level0.listallItems();
myInventory = new Array();
var _local1 = 0;
while (_local1 < tempInventory.length) {
var _local3 = tempInventory[_local1].getAttribute("id");
var _local2 = _level0.invenitem[_local3].type;
if (_local2 == "USE") {
myInventory.push(tempInventory[_local1]);
}
_local1++;
}
combat_inventory.itemIndex = 0;
if ((myInventory.length < 1) or (!myInventory)) {
menu.item_btn.enabled = false;
combat_inventory.itemID = false;
combat_inventory.item_label.label_text.text = "Empty";
} else {
combat_inventory.itemID = myInventory[combat_inventory.itemIndex].getAttribute("id");
combat_inventory.itemNum = _level0.checkItemNumber(combat_inventory.itemID);
var _local4 = _level0.invenitem[combat_inventory.itemID].name;
combat_inventory.item_label.label_text.text = (((("<" + (combat_inventory.itemIndex + 1)) + "> ") + _local4) + " x ") + combat_inventory.itemNum;
}
}
function heroSetup() {
var _local11 = _level0.listallEquippedItems();
var _local15 = _level0.getActiveCharacters();
if (_local15) {
heroCount = _local15.length;
var _local9 = 0;
while (_local9 < heroCount) {
var _local2 = _local15[_local9].getAttribute("active");
this["hero" + _local2].id = _local15[_local9].getAttribute("id");
var _local6 = this["hero" + _local2].id;
var _local16 = _level0["char" + _local6].portrait;
var _local17 = _level0.getCharacterAttr(_local6, "botid");
var _local19 = this["hero" + _local2].hero_clip.getDepth();
this["hero" + _local2].attachMovie(_local17, "hero_clip", _local19);
this["hero" + _local2].hName = _local15[_local9].getAttribute("name");
this["stats" + _local2].hero_name.text = this["hero" + _local2].hName;
this["stats" + _local2].portrait.gotoAndStop(_local16);
this["hero" + _local2].portraitid = _local16;
var _local18 = _local15[_local9].getItemList("bot");
var _local5 = _local18[0].getItemList("parts");
var _local3 = 0;
while (_local3 < _local5.length) {
var _local4 = _local5[_local3].getAttribute("name");
_local4 = _local4.substr(-1, 1);
var _local13 = _local5[_local3].getAttribute("colorr");
var _local12 = _local5[_local3].getAttribute("colorb");
var _local14 = _local5[_local3].getAttribute("colorg");
trace("AAAr:" + _local5[_local3].getAttribute("colorr"));
this["hero" + _local2][("part" + _local4) + "r"] = _local13;
this["hero" + _local2][("part" + _local4) + "g"] = _local14;
this["hero" + _local2][("part" + _local4) + "b"] = _local12;
_local3++;
}
this["hero" + _local2].xp = int(_local15[_local9].getAttribute("xp"));
this["hero" + _local2].baseRecharge = _level0["char" + _local6].energy;
this["hero" + _local2].recharge = this["hero" + _local2].baseRecharge;
this["hero" + _local2].maxHP = int(_level0.getCharacterAttr(_local6, "hp"));
this["hero" + _local2].currHP = int(_level0.getCharacterAttr(_local6, "currhp"));
this["stats" + _local2].health_bar.maxHP = this["hero" + _local2].maxHP;
this["stats" + _local2].health_bar.currHP = this["hero" + _local2].currHP;
this["stats" + _local2].health_bar.hpShade._width = (this["stats" + _local2].health_bar.currHP / this["stats" + _local2].health_bar.maxHP) * 133.7;
this["stats" + _local2].health_bar.hpPreview._width = this["stats" + _local2].health_bar.hpShade._width;
this["stats" + _local2].health_bar.HPDisplay.text = this["stats" + _local2].health_bar.currHP;
trace(_level0[_local6]);
this["hero" + _local2].baseArmor = _level0["char" + _local6].defense;
this["hero" + _local2].baseReflex = _level0["char" + _local6].reflex;
this["hero" + _local2].baseAccurate = _level0["char" + _local6].accuracy;
this["hero" + _local2].baseTech = _level0["char" + _local6].technique;
this["hero" + _local2].weapSet = new Array();
this["hero" + _local2].itemSet = new Array();
var _local7 = 0;
while (_local7 < _local11.length) {
if (_local11[_local7].getAttribute("equip") == _local6) {
var _local8 = _local11[_local7].getAttribute("id");
var _local10 = _level0.getItemProp(_local8);
if (_local10.type == "WEAPON") {
this["hero" + _local2].weapSet.push(_local8);
} else if (_local10.type == "SPECIAL") {
this["hero" + _local2].itemSet.push(_local8);
}
}
_local7++;
}
this["hero" + _local2].currArmor = this["hero" + _local2].baseArmor;
this["hero" + _local2].currReflex = this["hero" + _local2].baseReflex;
this["hero" + _local2].currAccurate = this["hero" + _local2].baseAccurate;
this["hero" + _local2].currTech = this["hero" + _local2].baseTech;
this["hero" + _local2].rememX = this["hero" + _local2]._x;
this["hero" + _local2].rememY = this["hero" + _local2]._y;
this["hero" + _local2].dying = false;
this["hero" + _local2].dmgCount = 0;
this["hero" + _local2].weapUse = null;
if (this["hero" + _local2].currHP > 0) {
this["hero" + _local2]._visible = true;
} else {
this["hero" + _local2].dying = true;
}
this["stats" + _local2]._visible = true;
_local9++;
}
} else {
falseHeroSetup();
}
}
function falseHeroSetup() {
heroCount = 3;
hero1.attachMovie("luna", "hero_clip", hero1.hero_clip.getDepth());
hero2.attachMovie("luna", "hero_clip", hero2.hero_clip.getDepth());
hero3.attachMovie("stinger", "hero_clip", hero3.hero_clip.getDepth());
hero1.hName = "Jin";
hero2.hName = "Calisto";
hero3.hName = "Barrage";
hero1.xp = 12;
hero2.xp = 35;
hero3.xp = 40;
var _local4 = 1;
while (_local4 <= 3) {
var _local3 = 1;
while (_local3 <= 3) {
this["hero" + _local4][("part" + _local3) + "r"] = _root["hero" + _local4][("part" + _local3) + "r"];
this["hero" + _local4][("part" + _local3) + "g"] = _root["hero" + _local4][("part" + _local3) + "g"];
this["hero" + _local4][("part" + _local3) + "b"] = _root["hero" + _local4][("part" + _local3) + "b"];
_local3++;
}
_local4++;
}
stats1.hero_name.text = hero1.hName;
stats2.hero_name.text = hero2.hName;
stats3.hero_name.text = hero3.hName;
hero1.baseRecharge = 4;
hero2.baseRecharge = 2;
hero3.baseRecharge = 5;
hero1.recharge = hero1.baseRecharge;
hero2.recharge = hero2.baseRecharge;
hero3.recharge = hero3.baseRecharge;
hero1.rememX = hero1._x;
hero1.rememY = hero1._y;
hero2.rememX = hero2._x;
hero2.rememY = hero2._y;
hero3.rememX = hero3._x;
hero3.rememY = hero3._y;
hero1.maxHP = 500;
hero1.currHP = hero1.maxHP;
hero2.maxHP = 300;
hero2.currHP = hero2.maxHP;
hero3.maxHP = 450;
hero3.currHP = hero3.maxHP;
hero1.dmgCount = 0;
hero2.dmgCount = 0;
hero3.dmgCount = 0;
hero1.baseArmor = 20;
hero1.currArmor = hero1.baseArmor;
hero2.baseArmor = 20;
hero2.currArmor = hero2.baseArmor;
hero3.baseArmor = 20;
hero3.currArmor = hero3.baseArmor;
hero1.baseAccurate = 10;
hero1.currAccurate = hero1.baseAccurate;
hero2.baseAccurate = 20;
hero2.currAccurate = hero2.baseAccurate;
hero3.baseAccurate = 10;
hero3.currAccurate = hero3.baseAccurate;
hero1.baseReflex = 10;
hero1.currReflex = hero1.baseReflex;
hero2.baseReflex = 5;
hero2.currReflex = hero2.baseReflex;
hero3.baseReflex = 10;
hero3.currReflex = hero3.baseReflex;
hero1.baseTech = 10;
hero1.currTech = hero1.baseTech;
hero2.baseTech = 5;
hero2.currTech = hero2.baseTech;
hero3.baseTech = 10;
hero3.currTech = hero3.baseTech;
hero1.weapSet = new Array("bash", "shoot");
hero2.weapSet = new Array("bash", "cannon");
hero3.weapSet = new Array("cannon");
hero1.weapUse = null;
hero2.weapUse = null;
hero3.weapUse = null;
weapSelect1._visible = false;
weapSelect2._visible = false;
weapSelect3._visible = false;
var _local5 = 1;
while (_local5 <= heroCount) {
this["hero" + _local5]._visible = true;
this["stats" + _local5]._visible = true;
_local5++;
}
}
function enemySetup() {
enemy1._visible = false;
enemy2._visible = false;
enemy3._visible = false;
enemy4._visible = false;
enemy5._visible = false;
enemy1.dying = false;
enemy2.dying = false;
enemy3.dying = false;
enemy4.dying = false;
enemy5.dying = false;
enemy1.rememX = enemy1._x;
enemy2.rememX = enemy2._x;
enemy3.rememX = enemy3._x;
enemy4.rememX = enemy4._x;
enemy5.rememX = enemy5._x;
enemy1.ATB = 40 + random(40);
enemy2.ATB = 40 + random(40);
enemy3.ATB = 40 + random(40);
enemy4.ATB = 40 + random(40);
enemy5.ATB = 40 + random(40);
enemy1.maxHP = 0;
enemy1.currHP = enemy1.maxHP;
enemy2.maxHP = 0;
enemy2.currHP = enemy2.maxHP;
enemy3.maxHP = 0;
enemy3.currHP = enemy3.maxHP;
enemy4.maxHP = 0;
enemy4.currHP = enemy4.maxHP;
enemy5.maxHP = 0;
enemy5.currHP = enemy5.maxHP;
enemy1.weapUse = null;
enemy2.weapUse = null;
enemy3.weapUse = null;
enemy4.weapUse = null;
enemy5.weapUse = null;
enemy1.dmgCount = 0;
enemy2.dmgCount = 0;
enemy3.dmgCount = 0;
enemy4.dmgCount = 0;
enemy5.dmgCount = 0;
msRef = this["ms_" + msNum];
if (msRef.noescape) {
escape_btn.enabled = false;
} else {
escape_btn.enabled = true;
}
if (msRef.quest) {
myQuest = msRef.quest;
} else {
myQuest = false;
}
enemyCount = msRef.mMin + random((msRef.mMax - msRef.mMin) + 1);
var _local2 = 1;
while (_local2 <= enemyCount) {
monsterPick = random(msRef.mArray[_local2 - 1].length);
monsterRef = this["monster_" + msRef.mArray[_local2 - 1][monsterPick]];
this["enemy" + _local2].attachMovie(monsterRef.sprite, "enemy_clip", this["enemy" + _local2].enemy_clip.getDepth());
this["enemy" + _local2]._y = this["enemy" + _local2]._y - (this["enemy" + _local2].enemy_clip._height / 2);
this["enemy" + _local2].rememY = this["enemy" + _local2]._y;
this["enemy" + _local2].eName = monsterRef.mName;
this["enemy" + _local2].ATBspeed = monsterRef.recharge;
this["enemy" + _local2].maxHP = monsterRef.maxHP;
this["enemy" + _local2].currHP = this["enemy" + _local2].maxHP;
this["enemy" + _local2].baseArmor = monsterRef.armor;
this["enemy" + _local2].currArmor = this["enemy" + _local2].baseArmor;
this["enemy" + _local2].baseReflex = monsterRef.reflex;
this["enemy" + _local2].currReflex = this["enemy" + _local2].baseReflex;
this["enemy" + _local2].baseAccurate = monsterRef.accurate;
this["enemy" + _local2].currAccurate = this["enemy" + _local2].baseAccurate;
this["enemy" + _local2].weapSet = monsterRef.weapSet;
if (monsterRef.item) {
var _local3 = random(monsterRef.item.length);
this["enemy" + _local2].itemDrop = monsterRef.item[_local3];
} else {
this["enemy" + _local2].itemDrop = false;
}
this["enemy" + _local2]._visible = true;
total_credit = total_credit + monsterRef.credit;
total_xp = total_xp + monsterRef.xp;
_local2++;
}
}
function heroClick() {
if ((myState == "heroSelect") and pointer._visible) {
menu.myIndex = pointer.heroIndex;
generateSkills();
menu._visible = true;
escape_btn._visible = true;
combat_inventory._visible = true;
myState = "menuSelect";
eval ("stats" + menu.myIndex).gotoAndPlay("ready");
this["weapSelect" + menu.myIndex]._visible = true;
changeWeap(menu.myIndex, this["weapSelect" + menu.myIndex].weapIndex);
}
}
function enemyClick() {
if ((((myState == "enemySelect") and pointer._visible) and eval ("hero" + menu.myIndex)._visible) and (!eval ("hero" + menu.myIndex).dying)) {
eval ("stats" + menu.myIndex).action_bar.deductEnergy(eval ("hero" + menu.myIndex).weapUse.eUse);
eval ("hero" + menu.myIndex).resetStats();
eval ("hero" + menu.myIndex).setPath(eval ("enemy" + pointer.enemyIndex)._x + 50, eval ("enemy" + pointer.enemyIndex)._y + 50, "charge", 20);
cancel_btn._visible = false;
pointer._visible = false;
}
}
function allyClick() {
if ((((myState == "allySelect") and pointer._visible) and eval ("hero" + menu.myIndex)._visible) and (!eval ("hero" + menu.myIndex).dying)) {
this["hero" + pointer.heroIndex].healMe(pointer.amntHealed);
pointer.amntHealed = false;
eval ("stats" + menu.myIndex).action_bar.deductEnergy(60);
eval ("hero" + menu.myIndex).resetStats();
myState = "heroSelect";
pointer._visible = false;
cancel_btn._visible = false;
}
}
function areaAttack() {
}
function attack() {
if (myState == "menuSelect") {
menu._visible = false;
this["weapSelect" + menu.myIndex]._visible = false;
escape_btn._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = true;
pointName._visible = false;
myState = "enemySelect";
pointer.shiftMe("enemy" + pickTarget("enemy", "lowest"));
}
}
function heal(minVal, maxVal) {
if (myState == "menuSelect") {
menu._visible = false;
this["weapSelect" + menu.myIndex]._visible = false;
escape_btn._visible = false;
pointName._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = true;
myState = "allySelect";
pointer.amntHealed = minVal + random(maxVal - minVal);
pointer.shiftMe("hero1");
}
}
function ATBup() {
var i = 1;
while (i <= heroCount) {
trace((("hero energy " + i) + " ") + eval ("stats" + i).action_bar.currEnergy);
if ((((eval ("stats" + i).action_bar.currEnergy < 100) and eval ("hero" + i)._visible) and (!eval ("hero" + i).dying)) and ((myState == "heroSelect") or (myState == "menuSelect"))) {
eval ("stats" + i).action_bar.currEnergy = eval ("stats" + i).action_bar.currEnergy + eval ("hero" + i).recharge;
eval ("stats" + i).action_bar.chargeEnergyBar();
if (eval ("stats" + i).action_bar.currEnergy >= 100) {
if (!pointer._visible) {
pointer._visible = true;
}
eval ("stats" + i).action_bar.currEnergy = 100;
eval ("stats" + i).action_bar.chargeEnergyBar();
if (eval ("hero" + i).hero_clip._currentframe == 1) {
eval ("hero" + i).hero_clip.gotoAndPlay("ready");
}
}
}
if (((eval ("stats" + i).action_bar.currEnergy >= 100) and eval ("hero" + i)._visible) and (!eval ("hero" + i).dying)) {
if (myState == "heroSelect") {
pointer.shiftMe("hero" + i);
}
heroClick();
if ((((eval ("stats" + i).action_bar.currEnergy < 125) and ((myState == "heroSelect") or (myState == "menuSelect"))) and eval ("hero" + i)._visible) and (!eval ("hero" + i).dying)) {
eval ("stats" + i).action_bar.currEnergy = eval ("stats" + i).action_bar.currEnergy + 0.5;
eval ("stats" + i).action_bar.chargeEnergyBar();
}
}
i++;
}
var j = 1;
while (j <= enemyCount) {
trace((("enemy energy " + j) + " ") + eval ("enemy" + j).ATB);
if ((eval ("enemy" + j).ATB < 100) and ((myState == "heroSelect") or (myState == "menuSelect"))) {
eval ("enemy" + j).ATB = eval ("enemy" + j).ATB + eval ("enemy" + j).ATBspeed;
if (((eval ("enemy" + j).ATB >= 100) and eval ("enemy" + j)._visible) and (!eval ("enemy" + j).dying)) {
eval ("enemy" + j).pickWeap();
eval ("enemy" + j).goTo(20);
}
}
j++;
}
}
function createSpark(effectName, posX, posY, owner, dmg, hit) {
this.attachMovie(effectName, "effect" + effectCount, 5000 + effectCount);
this["effect" + effectCount].owner = owner;
this["effect" + effectCount].dmg = dmg;
this["effect" + effectCount].hit = hit;
this["effect" + effectCount]._x = posX;
this["effect" + effectCount]._y = posY;
this["effect" + effectCount].gotoAndStop(1);
effectCount++;
}
function createProj(effectName, posX, posY, targX, targY, owner, dmg, projType, hit) {
this.attachMovie(effectName, "effect" + effectCount, 5000 + effectCount);
this["effect" + effectCount].owner = owner;
this["effect" + effectCount].dmg = dmg;
this["effect" + effectCount].hit = hit;
this["effect" + effectCount]._x = posX;
this["effect" + effectCount]._y = posY - 20;
this["effect" + effectCount].projectile = true;
if (projType == "semi") {
this["effect" + effectCount].semi = true;
} else {
this["effect" + effectCount].semi = false;
}
this["effect" + effectCount].gotoAndStop(1);
setProj(targX, targY, 5, effectCount);
effectCount++;
}
function setProj(pDestX, pDestY, pSpeed, pid) {
trace(this["effect" + pid]);
this["effect" + pid].dX = pDestX;
this["effect" + pid].dY = pDestY;
this["effect" + pid].timing = pSpeed;
this["effect" + pid].moveCount = 0;
this["effect" + pid].xSpeed = (pDestX - this["effect" + pid]._x) / pSpeed;
this["effect" + pid].ySpeed = (pDestY - this["effect" + pid]._y) / pSpeed;
}
function playSpark() {
if (this["effect" + effectPlay].projectile) {
this["effect" + effectPlay].gotoAndPlay("move");
this["PI" + effectPlay] = setInterval(moveProj, 25, effectPlay, this);
effectPlay++;
} else {
this["effect" + effectPlay].play();
effectPlay++;
}
}
function moveProj(pid, t) {
trace(t["effect" + pid]);
if (t["effect" + pid].moveCount < t["effect" + pid].timing) {
if (!t["effect" + pid].semi) {
t["effect" + pid]._x = t["effect" + pid]._x + t["effect" + pid].xSpeed;
t["effect" + pid]._y = t["effect" + pid]._y + t["effect" + pid].ySpeed;
}
t["effect" + pid].moveCount++;
} else {
if (t["effect" + pid].semi) {
t["effect" + pid]._x = t["effect" + pid].dX;
t["effect" + pid]._y = t["effect" + pid].dY;
}
clearInterval(t["PI" + pid]);
t["effect" + pid].gotoAndPlay("death");
}
}
function createDmg(posX, posY, dmg, owner, hit) {
this.attachMovie("hitmiss", "dmg" + dmgCount, 9000 + dmgCount);
this["dmg" + dmgCount].getDmg = Math.max(1, dmg - this[owner].currArmor);
this["dmg" + dmgCount].owner = owner;
if (random(100) > 50) {
var _local3 = -1;
} else {
var _local3 = 1;
}
this["dmg" + dmgCount]._x = (posX + (_local3 * random(20))) - 50;
this["dmg" + dmgCount]._y = (posY - (this[owner].dmgCount * 10)) - 50;
this[owner].dmgCount++;
if (this[owner].dmgCount > 3) {
this[owner].dmgCount = 0;
}
if ((hit + this[owner].currReflex) > 90) {
this["dmg" + dmgCount].getDmg = 0;
}
if (this["dmg" + dmgCount].getDmg > 0) {
this["dmg" + dmgCount].gotoAndStop("trigger_hit");
} else {
this["dmg" + dmgCount].gotoAndStop("trigger_miss");
}
dmgCount++;
}
function pickTarget(type, style) {
if (style == "lowest") {
if (type == "hero") {
var _local5 = 4;
} else {
var _local5 = 6;
}
var _local6 = 9999999 /* 0x98967F */;
var _local4 = false;
var _local3 = 1;
while (_local3 < _local5) {
if (this[type + _local3].currHP > 0) {
_local4 = true;
}
if ((this[type + _local3].currHP < _local6) and (this[type + _local3].currHP > 0)) {
_local6 = this[type + _local3].currHP;
target = _local3;
}
_local3++;
}
if (_local4) {
return(target);
}
return(0);
}
if (type == "hero") {
var _local5 = 4;
} else {
var _local5 = 6;
}
var _local3 = 1;
while (_local3 < _local5) {
if (this[type + _local3].currHP > 0) {
var _local4 = true;
}
_local3++;
}
target = Math.max(1, random(_local5));
trace(target);
if (_local4) {
while (_local4) {
if (this[type + target].currHP > 0) {
return(target);
}
target = Math.max(1, random(_local5));
}
} else {
return(0);
}
}
function changeWeap(heroVal, weapVal) {
var _local4 = this["weapSelect" + heroVal]["weapSlot" + weapVal].wid;
var _local3 = this["weapSelect" + heroVal]["weapSlot" + weapVal].weapName.text;
if (_local3 == "None") {
menu.attack_btn.enabled = false;
this["hero" + heroVal].weapUse = false;
} else {
menu.attack_btn.enabled = true;
this["hero" + heroVal].weapUse = this["weapon_" + _local4];
}
}
function escapeSuccess() {
trace("Escape Successful!");
clearInterval(escapeInt);
escapeInt = false;
cancel_btn._visible = false;
var _local2 = 1;
while (_local2 <= heroCount) {
var _local4 = this["hero" + _local2].id;
var _local3 = this["hero" + _local2].currHP;
_level0.setCharacterAttr(_local4, "currhp", _local3);
this["hero" + _local2].hero_clip.gotoAndPlay("normal");
_local2++;
}
bigFatReset();
_level0.endCombat();
}
function escapeAttempt() {
trace("escaping");
if ((random(100) > 60) and (!action)) {
escapeSuccess();
}
}
function escapeReady() {
var _local2 = 1;
while (_local2 <= 3) {
this["hero" + _local2].recharge = 0;
this["weapSelect" + _local2]._visible = false;
this["stats" + _local2].gotoAndStop("normal");
this["stats" + _local2].action_bar.currEnergy = 0;
this["stats" + _local2].action_bar.chargeEnergyBar();
this["hero" + _local2].hero_clip.gotoAndPlay("escape");
_local2++;
}
pointer._visible = false;
escape_btn._visible = false;
pointName._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = true;
menu._visible = false;
escapeInt = setInterval(escapeAttempt, 1000);
}
function checkLose() {
var _local3 = false;
var _local2 = 1;
while (_local2 <= heroCount) {
if (this["hero" + _local2]._visible and (!this["hero" + _local2].dying)) {
_local3 = true;
}
_local2++;
}
if (!_local3) {
loser();
}
}
function loser() {
if (!winLose._visible) {
var _local2 = 1;
while (_local2 < 4) {
this["weapSelect" + _local2]._visible = false;
_local2++;
}
myState = "endCombat";
winLose._visible = true;
clearInterval(IA);
winLose.gotoAndPlay("youLose");
}
}
function checkWin() {
var _local3 = false;
var _local2 = 1;
while (_local2 < (enemyCount + 1)) {
if (this["enemy" + _local2]._visible and (!this["enemy" + _local2].dying)) {
_local3 = true;
}
_local2++;
}
if (!_local3) {
winner();
}
}
function winner() {
if (!winLose._visible) {
menu._visible = false;
var _local2 = 1;
while (_local2 < 4) {
this["weapSelect" + _local2]._visible = false;
_local2++;
}
escape_btn._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = false;
myState = "endCombat";
winLose._visible = true;
winLose.gotoAndPlay("youWin");
}
}
function dropItems() {
var _local2 = 1;
while (_local2 < (enemyCount + 1)) {
var _local3 = this["enemy" + _local2].itemDrop.id;
var _local4 = _level0.getItemName(_local3);
var _local5 = this["enemy" + _local2].itemDrop.chance;
if (random(100) < _local5) {
_level0.addItem(_local3, 1);
if (total_item == "Nothing") {
total_item = _local4;
} else {
total_item = (total_item + ", ") + _local4;
}
}
_local2++;
}
}
function useItem(id) {
var useType = _level0.invenitem[id].useid;
var usePara = _level0.invenitem[id].parameters;
if (!(useType === "addattribute")) {
} else {
activateAttributeItem(usePara);
}
trace(id);
_level0.removeItem(combat_inventory.itemID, 1);
combat_inventory.itemNum = _level0.checkItemNumber(combat_inventory.itemID);
if (combat_inventory.itemNum < 1) {
myInventory.splice(combat_inventory.itemIndex, 1);
}
if (myInventory.length < 1) {
menu.item_btn.enabled = false;
combat_inventory.itemID = false;
combat_inventory.item_label.label_text.text = "Empty";
} else {
if (combat_inventory.itemIndex >= myInventory.length) {
combat_inventory.itemIndex = myInventory.length - 1;
}
combat_inventory.itemID = myInventory[combat_inventory.itemIndex].getAttribute("id");
var getItemName = _level0.invenitem[combat_inventory.itemID].name;
combat_inventory.item_label.label_text.text = (((("<" + (combat_inventory.itemIndex + 1)) + "> ") + getItemName) + " x ") + combat_inventory.itemNum;
}
this["hero" + menu.myIndex].resetStats();
eval ("stats" + menu.myIndex).action_bar.deductEnergy(30);
myState = "heroSelect";
menu._visible = false;
pointer._visible = false;
this["weapSelect" + menu.myIndex]._visible = false;
escape_btn._visible = false;
combat_inventory._visible = false;
}
function activateAttributeItem(parameters) {
var _local2 = parameters.split(":");
var _local7 = _local2[0];
var _local6 = _local2[1];
var _local5 = int(_local2[2]);
var _local3 = int(_local2[3]);
var _local4 = _local3 + random(_local5 - _local3);
if (_local6 == "add") {
if (!(_local7 === "currhp")) {
} else {
this["hero" + menu.myIndex].healMe(_local4);
}
}
}
function generateSkills() {
var _local7 = this["hero" + menu.myIndex].itemSet;
var _local2 = 1;
var _local4 = 0;
while (_local4 < _local7.length) {
if (_local7[_local4]) {
var _local6 = _local7[_local4];
var _local3 = _level0.invenitem[_local6].parameters.split(":");
var _local5 = _level0.invenitem[_local6].skill;
switch (_local5) {
case "selffix" :
menu["skill" + _local2].gotoAndStop(_local5);
menu["skill" + _local2].maxVal = int(_local3[0]);
menu["skill" + _local2].minVal = int(_local3[1]);
break;
case "repair" :
menu["skill" + _local2].gotoAndStop(_local5);
menu["skill" + _local2].maxVal = int(_local3[0]);
menu["skill" + _local2].minVal = int(_local3[1]);
}
_local2++;
}
_local4++;
}
}
function bigFatReset() {
trace("reset");
clearInterval(IA);
var j = 1;
while (j <= 3) {
this["weapSelect" + j]._visible = false;
this["stats" + j]._visible = false;
this["hero" + j]._visible = false;
this["hero" + j].weapUse = false;
this["hero" + j].hero_clip.gotoAndStop(1);
this["hero" + j].recharge = 0;
this["hero" + j]._x = this["hero" + j].rememX;
this["hero" + j]._y = this["hero" + j].rememY;
eval ("stats" + j).action_bar.currEnergy = 0;
eval ("stats" + j).action_bar.chargeEnergyBar();
clearInterval(this["hero" + j].attInt);
clearInterval(this["hero" + j].MI);
clearInterval(this["hero" + j].MI2);
j++;
}
var j = 1;
while (j <= 5) {
this["enemy" + j]._visible = false;
this["enemy" + j].weapUse = false;
this["enemy" + j].enemy_clip.gotoAndStop(1);
this["enemy" + j].currHP = 0;
this["enemy" + j].ATB = 0;
this["enemy" + j].ATBspeed = 0;
this["enemy" + j]._x = this["enemy" + j].rememX;
this["enemy" + j]._y = this["enemy" + j].rememY;
clearInterval(this["enemy" + j].attInt);
clearInterval(this["enemy" + j].MI);
clearInterval(this["enemy" + j].MI2);
j++;
}
pointName._visible = false;
escape_btn._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = false;
menu._visible = false;
pointer._visible = false;
action = false;
myState = "heroSelect";
}
init();
Instance of Symbol 2502 MovieClip "escape_btn" in Symbol 2585 MovieClip Frame 1
on (release, keyPress "s") {
if (enabled) {
_parent.escapeReady();
}
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndPlay (1);
}
Instance of Symbol 2572 MovieClip "hero3" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
if ((_parent.stats3.action_bar.currEnergy >= 100) or (_parent.myState == "allySelect")) {
_parent.pointer.shiftMe(this._name);
}
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
if (_parent.myState == "allySelect") {
_parent.allyClick();
} else {
_parent.heroClick();
}
}
Instance of Symbol 2572 MovieClip "hero1" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
if ((_parent.stats1.action_bar.currEnergy >= 100) or (_parent.myState == "allySelect")) {
_parent.pointer.shiftMe(this._name);
}
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
if (_parent.myState == "allySelect") {
_parent.allyClick();
} else {
_parent.heroClick();
}
}
Instance of Symbol 2572 MovieClip "hero2" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
if ((_parent.stats2.action_bar.currEnergy >= 100) or (_parent.myState == "allySelect")) {
_parent.pointer.shiftMe(this._name);
}
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
if (_parent.myState == "allySelect") {
_parent.allyClick();
} else {
_parent.heroClick();
}
}
Instance of Symbol 2575 MovieClip "enemy4" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
_parent.pointer.shiftMe(this._name);
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
_parent.enemyClick();
}
Instance of Symbol 2575 MovieClip "enemy2" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
_parent.pointer.shiftMe(this._name);
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
_parent.enemyClick();
}
Instance of Symbol 2575 MovieClip "enemy1" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
_parent.pointer.shiftMe(this._name);
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
_parent.enemyClick();
}
Instance of Symbol 2575 MovieClip "enemy3" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
_parent.pointer.shiftMe(this._name);
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
_parent.enemyClick();
}
Instance of Symbol 2575 MovieClip "enemy5" in Symbol 2585 MovieClip Frame 1
on (rollOver) {
_parent.pointer.shiftMe(this._name);
}
on (rollOut) {
if (_parent.myState != "menuSelect") {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = "";
_parent.pointer._visible = false;
}
}
on (release) {
_parent.enemyClick();
}
Symbol 2587 MovieClip Frame 1
stop();
Symbol 2587 MovieClip Frame 2
animationcomplete = false;
combatstart._visible = true;
combatstart.gotoAndStop(1);
combatstart.play();
stop();
onEnterFrame = function () {
if (animationcomplete) {
_level0.bgDown._visible = false;
_level0.bgRight._visible = false;
_level0.bgUp._visible = false;
_level0.bgLeft._visible = false;
_level0.bg._visible = false;
_level0.battleMusic();
play();
combatstart._visible = false;
delete onEnterFrame;
}
};
Symbol 2587 MovieClip Frame 40
stop();
Symbol 2590 Button
on (release) {
this.nextFrame();
}
Symbol 2591 Button
on (release) {
this.prevFrame();
}
Symbol 2592 Button
on (release) {
this._visible = false;
_global.action = "walking";
}
Symbol 2600 MovieClip Frame 1
stop();
Symbol 2607 Button
on (release) {
_global.action = "talking";
_level0.help._visible = true;
}
Symbol 2608 Button
on (release) {
if (_quality == "HIGH") {
_quality = "LOW";
} else {
_quality = "HIGH";
}
}
Symbol 2611 Button
on (release) {
_global.musicSetting = !_global.musicSetting;
if (!_global.musicSetting) {
stopAllSounds();
} else {
_level0.currentMusic = -1;
_level0.bgMusic(_level0.areaMusic);
}
}
Symbol 2615 Button
on (release) {
_level0.inventory._visible = true;
_global.action = "talking";
}
Symbol 2623 MovieClip Frame 1
stop();
Symbol 2623 MovieClip Frame 35
stop();
Symbol 2627 MovieClip Frame 1
stop();
Instance of Symbol 1745 MovieClip [close button] "closebutton" in Symbol 2627 MovieClip Frame 1
on (press) {
_parent._visible = false;
}
Symbol 2630 MovieClip Frame 1
stop();
Symbol 2630 MovieClip Frame 35
stop();
Symbol 2633 MovieClip Frame 1
stop();
Symbol 2633 MovieClip Frame 35
stop();
Symbol 2640 MovieClip Frame 1
stop();
dropbutt._visible = false;
Symbol 2641 Button
on (rollOver) {
var txter = (("You have " + this.selectedclip.details.getAttribute("xp")) + " total experience points.");
txtbubble.popup_text(txter, 150, "0xD6E1E9", expbutt._x + 125, expbutt._y + 5, expbutt._width, expbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
Symbol 2651 MovieClip Frame 1
stop();
Symbol 2651 MovieClip Frame 4
stop();
Symbol 2658 MovieClip Frame 1
stop();
Symbol 2658 MovieClip Frame 5
stop();
Symbol 2658 MovieClip Frame 9
stop();
Instance of Symbol 1811 MovieClip "slider" in Symbol 2665 MovieClip Frame 1
on (press) {
if (this._height <= (_parent.maskbox._height - 20)) {
this.startDrag(false, this._x, _parent.maskbox._y + 5, this._x, (_parent.maskbox._height - this._height) + 24);
}
this.onEnterFrame = function () {
if (this._height <= (_parent.maskbox._height - 20)) {
var _local3 = ((this._y - 28) * ((_parent.inventorycontent._height - _parent.maskbox._height) + 20)) / (_parent.maskbox._height - this._height);
_parent.inventorycontent._y = 25 - _local3;
}
};
}
on (release) {
this.stopDrag();
this.onEnterFrame = function () {
};
}
Symbol 2694 MovieClip Frame 1
stop();
Symbol 2694 MovieClip Frame 2
stop();
Symbol 2707 MovieClip Frame 1
stop();
Symbol 2707 MovieClip Frame 2
stop();
Symbol 2710 MovieClip Frame 1
stop();
Symbol 2710 MovieClip Frame 2
stop();
Symbol 2712 MovieClip Frame 1
txtbubble._visible = false;
stop();
Instance of Symbol 2644 MovieClip "statpt" in Symbol 2712 MovieClip Frame 1
on (rollOver) {
var txter = "You still have unspent stats point. Click on the plus icon below to add to your stats.";
_parent.txtbubble.popup_text(txter, 200, "0xD6E1E9", this._x, this._y - 20, this._width, this._height, true);
_parent.txtbubble.settimer(90);
}
Instance of Symbol 2646 MovieClip "technique_add" in Symbol 2712 MovieClip Frame 1
on (press) {
_parent.addstr();
}
Instance of Symbol 2646 MovieClip "accuracy_add" in Symbol 2712 MovieClip Frame 1
on (press) {
_parent.addstr();
}
Instance of Symbol 2646 MovieClip "reflex_add" in Symbol 2712 MovieClip Frame 1
on (press) {
_parent.addstr();
}
Symbol 2713 MovieClip Frame 1
alertbox._visible = false;
stop();
menuDialog._visible = false;
Instance of Symbol 2623 MovieClip "system_butt" in Symbol 2713 MovieClip Frame 1
on (press) {
if (_root.encounterRate == 0) {
this.play();
_root.preparesave();
} else {
var txter = "You cannot save at this point unless you find a repair station.";
_parent.characterdetails.txtbubble.popup_text(txter, 150, "0xD6E1E9", -170, 400, this._width, this._height, true);
_parent.characterdetails.txtbubble.settimer(90);
}
}
Instance of Symbol 2630 MovieClip in Symbol 2713 MovieClip Frame 1
on (release) {
_parent.alertbox.swapDepths(_parent.getNextHighestDepth());
_parent.alertbox._visible = true;
_parent.alertbox.alertmsg.text = "Do you really wish to exit the game?";
_parent.alertbox.dropbutt.alertbutttext.text = "Yes";
_parent.alertbox.dropbutt.onRelease = function () {
_root.quit();
};
}
Instance of Symbol 2633 MovieClip in Symbol 2713 MovieClip Frame 1
on (press) {
this.play();
_root.prepareload();
}
Instance of Symbol 1745 MovieClip [close button] "closebutton" in Symbol 2713 MovieClip Frame 1
on (press) {
_parent._visible = false;
_global.action = "walking";
}
Symbol 2713 MovieClip Frame 2
stop();
Symbol 2718 MovieClip Frame 1
stop();
Symbol 2734 MovieClip Frame 1
var mydate = new Date();
hh = mydate.getHours();
if ((hh >= 8) && (hh <= 18)) {
gotoAndPlay ("open");
} else {
gotoAndPlay ("close");
}
Symbol 2734 MovieClip Frame 14
gotoAndPlay ("open");
Symbol 2734 MovieClip Frame 85
gotoAndPlay ("close");
Symbol 2768 MovieClip Frame 1
stop();
Symbol 2768 MovieClip Frame 2
stop();
Symbol 2777 MovieClip Frame 60
stop();
_parent.gotoAndStop("blank");
Symbol 2787 MovieClip Frame 1
stop();
Symbol 2787 MovieClip Frame 11
stop();
Symbol 2804 MovieClip Frame 1
stop();
Symbol 2817 MovieClip Frame 1
stop();
Symbol 2817 MovieClip Frame 7
stop();
Symbol 2828 MovieClip Frame 1
stop();
Symbol 2839 MovieClip Frame 1
stop();
Symbol 2858 MovieClip Frame 1
stop();
Symbol 2862 MovieClip Frame 1
stop();
Symbol 2862 MovieClip Frame 10
stop();
Symbol 2862 MovieClip Frame 20
stop();