Combined Code
movieClip 7 {
}
movieClip 8 energybolt {
frame 15 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 9 shadowbolt {
frame 15 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 10 lightning {
frame 15 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 23 gearstrike {
frame 1 {
_level0.playSound('c_gearstrike');
}
frame 10 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 26 {
}
movieClip 28 {
}
movieClip 29 {
frame 1 {
flare._rotation = random(90);
}
frame 2 {
stop();
}
}
movieClip 56 {
frame 14 {
stop();
}
}
movieClip 57 oldgun {
frame 2 {
stop();
}
frame 2 {
bullet._xscale = 150;
bullet._yscale = 150;
}
frame 14 {
xplode._xscale = 75;
xplode._yscale = 75;
xplode._x += random(20);
xplode._x -= random(30);
xplode._y += random(20);
xplode._y -= random(30);
}
frame 36 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 60 {
}
movieClip 61 web {
frame 2 {
stop();
}
frame 14 {
xplode._xscale = 50;
xplode._yscale = 50;
}
frame 46 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 65 {
}
movieClip 71 hitmiss {
frame 1 {
stop();
}
frame 1 {
function showHit(damage) {
damageFinal = damage;
damageCount = 0.4 * damageFinal;
damageStep = Math.ceil(damageFinal / 20);
playFade = false;
shownFinal = false;
isCritical = false;
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() {
this.removeMovieClip();
}
}
frame 2 {
stop();
}
frame 2 {
this.onEnterFrame = function () {
if (!playFade) {
if (!shownFinal) {
if (damageCount < damageFinal) {
damageCount += damageStep;
if (damageCount > damageFinal) {
damageCount = damageFinal;
}
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');
}
}
}
};
}
frame 10 {
ddHolder.damageDisplay.text = damageFinal;
}
frame 10 {
var e = new Color(_parent[owner]);
e.setTransform({'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0});
}
frame 32 {
displayComplete();
stop();
}
frame 33 {
ddHolder.damageDisplay.text = damageFinal;
damageDisplay.text = damageFinal;
}
frame 38 {
var e = new Color(_parent[owner]);
e.setTransform({'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0});
}
frame 72 {
displayComplete();
stop();
}
frame 88 {
displayComplete();
stop();
}
frame 104 {
stop();
showHit(getDmg);
}
frame 105 {
stop();
showCritical(getDmg);
}
frame 106 {
stop();
miss();
}
}
movieClip 79 save links {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 81 delete button {
}
movieClip 85 {
}
movieClip 108 {
}
movieClip 127 {
frame 1 {
stop();
}
}
movieClip 139 {
frame 1 {
stop();
}
}
movieClip 147 {
frame 1 {
stop();
}
}
movieClip 161 {
frame 1 {
stop();
}
}
movieClip 173 {
frame 1 {
stop();
}
}
movieClip 185 {
frame 1 {
stop();
}
}
movieClip 195 {
frame 1 {
stop();
}
}
movieClip 205 {
frame 1 {
stop();
}
}
movieClip 208 {
}
movieClip 215 {
frame 1 {
stop();
}
}
movieClip 218 {
}
movieClip 219 {
frame 1 {
stop();
}
frame 46 {
}
}
movieClip 223 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 224 inventory_items {
}
movieClip 233 remove_effect {
frame 25 {
this.removeMovieClip();
}
}
movieClip 240 add_effect {
frame 25 {
this.removeMovieClip();
}
}
movieClip 243 postername {
}
movieClip 253 {
frame 1 {
stop();
}
}
movieClip 255 {
}
movieClip 257 {
}
movieClip 258 {
}
movieClip 263 characterswindow {
}
movieClip 264 equip_item {
}
movieClip 265 txttiming {
frame 1 {
var timelapse = 0;
}
frame 1 {
stop();
}
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();
}
};
}
}
movieClip 267 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 273 bubbletxt {
frame 1 {
function popup_text(txt, wid, color, xcoor, ycoor, objwith, objheight, pointerflag) {
this.poptxt = txt;
var v5 = pop.getTextFormat();
var v2 = v5.getTextExtent(txt, wid);
pop._x = 5;
pop._y = 3;
pop._width = wid + 10;
pop._height = v2.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 = v2.height + 9;
chcolor = new Color(corner_left_bottom);
chcolor.setRGB(color);
left._x = 0;
left._y = 9;
left._height = v2.height - 9;
left._width = 9;
chcolor = new Color(left);
chcolor.setRGB(color);
middle._x = 9;
middle._y = 0;
middle._width = wid;
middle._height = v2.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 = v2.height - 9;
right._width = 9;
chcolor = new Color(right);
chcolor.setRGB(color);
corner_right_bottom._x = wid + 18;
corner_right_bottom._y = v2.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 - (v2.height + 25) < 0) {
this._y = ycoor + 25 + objheight;
pointer._yscale = -100;
pointer._y = 0;
} else {
pointer._yscale = 100;
pointer._y = v2.height + 9;
this._y = ycoor - (v2.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();
}
}
movieClip 276 {
}
movieClip 278 {
}
movieClip 280 {
}
movieClip 281 loadbar {
}
frame 1 {
if (getBytesLoaded() >= getBytesTotal()) {
_global.musicSetting = true;
gotoAndPlay(3);
} else {
loaded.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
}
}
frame 1 {
function colorbot(bot) {
var v1 = new Color(bot.part1);
v1.setTransform({'ra': random(100), 'ga': random(100), 'ba': random(100)});
v1 = new Color(bot.part2);
v1.setTransform({'ra': random(100), 'ga': random(100), 'ba': random(100)});
v1 = new Color(bot.part3);
v1.setTransform({'ra': random(100), 'ga': random(100), 'ba': random(100)});
}
}
movieClip 287 {
}
button 288 {
on (release) {
getURL('http://www.newgrounds.com', 'blank');
}
}
movieClip 294 {
}
movieClip 296 {
}
movieClip 297 {
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';
}
}
movieClip 304 {
}
movieClip 307 {
}
movieClip 310 {
}
movieClip 314 {
}
movieClip 315 {
}
movieClip 316 {
}
movieClip 333 {
frame 1 {
stop();
}
}
movieClip 334 {
frame 216 {
tips.gotoAndStop(random(tips._totalframes + 1));
_level0.colorbot(_level0.loadbot.bot);
}
}
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 v3 = 'pm';
var v2 = origdate.substr(11, 2) - 12;
}
if (origdate.substr(11, 2) == 12) {
v3 = 'pm';
v2 = origdate.substr(11, 2);
}
if (origdate.substr(11, 2) < 12) {
v3 = 'am';
v2 = origdate.substr(11, 2);
}
newstr += ', ' + v2 + ':' + origdate.substr(14, 2) + ' ' + v3;
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 v3 = 0;
while (v3 < _root.tempsave.length) {
if (_root.tempsave[v3] == savename) {
_root.savebox.errtext.text = 'Another save data with the same name has been found. Please use a new save name.';
return undefined;
}
++v3;
}
var v5 = _root.SaveList.createNewSave(_global.mainsave, savename);
v5.save();
_global.mainsave = v5;
_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 v4 = _root.listallItems();
var v6 = 0;
var v2 = 0;
while (v2 < v4.length) {
if (charId == v4[v2].getAttribute('equip')) {
var v3 = _root.getItemProp(v4[v2].getAttribute('id'));
if (v3[stats] != undefined) {
v6 += parseFloat(v3[stats]);
}
}
++v2;
}
return v6;
}
function refresh_stats(charid) {
_root.inventory.characterdetails.statbox.basereflex.text = _level0['char' + charid].basereflex;
_root.inventory.characterdetails.statbox.baseaccuracy.text = _level0['char' + charid].baseaccuracy;
_root.inventory.characterdetails.statbox.basetechnique.text = _level0['char' + charid].basetechnique;
_root.inventory.characterdetails.statbox.basedefense.text = _level0['char' + charid].basedefense;
_root.inventory.characterdetails.statbox.hp.text = _level0['char' + charid].hp;
_root.inventory.characterdetails.statbox.baseenergy.text = _level0['char' + charid].baseenergy;
_root.inventory.characterdetails.statbox.basecapacity.text = _level0['char' + charid].basecapacity;
_root.inventory.characterdetails.statbox.totalreflex.text = _level0['char' + charid].reflex;
_root.inventory.characterdetails.statbox.totalaccuracy.text = _level0['char' + charid].accuracy;
_root.inventory.characterdetails.statbox.totaltechnique.text = _level0['char' + charid].technique;
_root.inventory.characterdetails.statbox.totaldefense.text = _level0['char' + charid].defense;
_root.inventory.characterdetails.statbox.totalenergy.text = _level0['char' + charid].energy;
_root.inventory.characterdetails.statbox.totalcapacity.text = _level0['char' + charid].capacity;
}
function generate_newstats(charobj, botobj) {
var v6 = getEquipStats(charobj.getAttribute('id'), 'reflex');
var v8 = getEquipStats(charobj.getAttribute('id'), 'accuracy');
var v4 = getEquipStats(charobj.getAttribute('id'), 'technique');
var v7 = getEquipStats(charobj.getAttribute('id'), 'defense');
var v3 = getEquipStats(charobj.getAttribute('id'), 'hp');
var v5 = getEquipStats(charobj.getAttribute('id'), 'addenergy');
var v9 = getEquipStats(charobj.getAttribute('id'), 'capacity');
if (!_level0['char' + charobj.getAttribute('id')]) {
_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')) + v3;
_level0['char' + charobj.getAttribute('id')].energy = parseFloat(botobj.getAttribute('energy'));
_level0['char' + charobj.getAttribute('id')].capacity = parseInt(botobj.getAttribute('capacity'));
if (!_level0['char' + charobj.getAttribute('id')].lastWeap) {
_level0['char' + charobj.getAttribute('id')].lastWeap = 0;
}
_level0['char' + charobj.getAttribute('id')].reflex = parseInt(charobj.getAttribute('reflex')) + v6;
_level0['char' + charobj.getAttribute('id')].accuracy = parseInt(charobj.getAttribute('accuracy')) + v8;
_level0['char' + charobj.getAttribute('id')].technique = parseInt(charobj.getAttribute('technique')) + v4;
_level0['char' + charobj.getAttribute('id')].defense = parseInt(botobj.getAttribute('defense')) + v7;
_level0['char' + charobj.getAttribute('id')].energy = parseFloat(botobj.getAttribute('energy')) + v5;
_level0['char' + charobj.getAttribute('id')].capacity = parseFloat(botobj.getAttribute('capacity')) + v9;
_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'));
_level0['char' + charobj.getAttribute('id')].baseenergy = parseFloat(botobj.getAttribute('energy'));
_level0['char' + charobj.getAttribute('id')].basecapacity = parseFloat(botobj.getAttribute('capacity'));
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 sorter(a, b) {
if (a.getAttribute('id') < b.getAttribute('id')) {
return -1;
} else {
if (a.getAttribute('id') > b.getAttribute('id')) {
return 1;
} else {
return 0;
}
}
}
function populate_inventory() {
_root.inventory.gotoAndStop(1);
_root.inventory.characterdetails.removeMovieClip();
var saveobj = _global.mainsave;
_level0.inventory.gotoAndStop(2);
_level0.inventory.credits.text = _level0.getCredits();
_level0.inventory.fame.text = _level0.getFame();
_level0.inventory.rank.text = _level0.rankCheck();
_level0.inventory.rank_image.gotoAndStop(_level0.rankImageCheck());
var i = 0;
while (i < 3) {
(eval('_root.inventory.charwin' + i)).removeMovieClip();
++i;
}
var chars = _level0.getActiveCharacters();
chars.sort(sorter);
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];
if (chars[i].getAttribute('id') == 'A001') {
if (chars[i].getAttribute('gender') == 'm') {
_root.inventory['charwin' + i].portrait.gotoAndStop('jin');
} else {
_root.inventory['charwin' + i].portrait.gotoAndStop('yun');
}
} else {
_root.inventory['charwin' + i].portrait.gotoAndStop(chars[i].getAttribute('name'));
}
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];
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;
_root.inventory['charwin' + i].currhp.text = botlist[j].getAttribute('currhp') + ' / ' + botlist[j].getAttribute('hp');
_root.inventory['charwin' + i].currhpval = botlist[j].getAttribute('currhp');
_root.inventory['charwin' + i].hpval = botlist[j].getAttribute('hp');
}
++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._visible = true;
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 v3 = parseInt(this._parent.selectedclip.details.getAttribute('reflex'));
_level0.playSound('grab');
this._parent.selectedclip.details.setAttribute('reflex', v3 + 1);
--this._parent.statpt.remainpt.text;
this._parent.selectedclip.details.setAttribute('sp', this._parent.statpt.remainpt.text);
++this._parent.statbox.basereflex.text;
++this._parent.statbox.totalreflex.text;
var v2 = getEquipStats(this._parent.selectedclip.details.getAttribute('id'), 'reflex');
_level0['char' + this._parent.selectedclip.details.getAttribute('id')].basereflex = parseInt(this._parent.selectedclip.details.getAttribute('reflex'));
_level0['char' + this._parent.selectedclip.details.getAttribute('id')].reflex = parseInt(this._parent.selectedclip.details.getAttribute('reflex')) + v2;
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 v2 = parseInt(this._parent.selectedclip.details.getAttribute('accuracy'));
_level0.playSound('grab');
this._parent.selectedclip.details.setAttribute('accuracy', v2 + 1);
--this._parent.statpt.remainpt.text;
this._parent.selectedclip.details.setAttribute('sp', this._parent.statpt.remainpt.text);
++this._parent.statbox.baseaccuracy.text;
++this._parent.statbox.totalaccuracy.text;
var v3 = getEquipStats(this._parent.selectedclip.details.getAttribute('id'), 'accuracy');
_level0['char' + this._parent.selectedclip.details.getAttribute('id')].baseaccuracy = parseInt(this._parent.selectedclip.details.getAttribute('accuracy'));
_level0['char' + this._parent.selectedclip.details.getAttribute('id')].accuracy = parseInt(this._parent.selectedclip.details.getAttribute('accuracy')) + v3;
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 v3 = parseInt(this._parent.selectedclip.details.getAttribute('technique'));
_level0.playSound('grab');
this._parent.selectedclip.details.setAttribute('technique', v3 + 1);
--this._parent.statpt.remainpt.text;
this._parent.selectedclip.details.setAttribute('sp', this._parent.statpt.remainpt.text);
++this._parent.statbox.basetechnique.text;
++this._parent.statbox.totaltechnique.text;
var v2 = getEquipStats(this._parent.selectedclip.details.getAttribute('id'), 'technique');
_level0['char' + this._parent.selectedclip.details.getAttribute('id')].basetechnique = parseInt(this._parent.selectedclip.details.getAttribute('technique'));
_level0['char' + this._parent.selectedclip.details.getAttribute('id')].technique = parseInt(this._parent.selectedclip.details.getAttribute('technique')) + v2;
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 () {
_level0.playSound('confirmSound');
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 () {
_level0.playSound('confirmSound');
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 = parseInt(this.details.getAttribute('xp'));
this._parent.characterdetails.supertext.text = 'No Overdrive learnt.';
if (int(this.details.getAttribute('level')) >= 8) {
this._parent.characterdetails.supertext.text = 'Learnt: ' + _level0['super_' + this.details.getAttribute('id') + '_1'].botid.toUpperCase() + '\'s ' + _level0['super_' + this.details.getAttribute('id') + '_1'].sname.toUpperCase();
}
_root.refresh_stats(this.details.getAttribute('id'));
_root.create_equip_icons();
};
++i;
}
_root.inventory.charwin0.onRelease();
_root.inventory.characterdetails.selectedclip = _root.inventory.charwin0;
_root.create_inventory();
}
function create_equip_icons() {
var iconsArray = new Array('armor', 'left', 'right', 'back', 'module1', 'module2', 'top', 'headgear', 'bottom', 'footwear', 'accessory');
var z = 0;
while (z < iconsArray.length) {
_root.inventory.characterdetails.equipbox[iconsArray[z]].itemimage.removeMovieClip();
delete _root.inventory.characterdetails.equipbox[iconsArray[z]].onRollOver;
delete _root.inventory.characterdetails.equipbox[iconsArray[z]].onRollOut;
delete _root.inventory.characterdetails.equipbox[iconsArray[z]].onPress;
delete _root.inventory.characterdetails.equipbox[iconsArray[z]].onRelease;
delete _root.inventory.characterdetails.equipbox[iconsArray[z]].onReleaseOutside;
_root.inventory.characterdetails.equipbox[iconsArray[z]].itemobj = null;
++z;
}
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'));
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].attachMovie('equip_item', 'itemimage', 1);
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].itemimage._x += 20;
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].itemimage._y += 20;
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].itemimage.itemimage.gotoAndStop(itemprop.type + itemprop.equip);
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].itemimage.itemimage.clip.gotoAndStop(itemprop.image);
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].itemobj = allitems[p];
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].itemprop = itemprop;
_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;
};
_root.inventory.characterdetails.equipbox[allitems[p].getAttribute('location')].onReleaseOutside = function () {
var v2 = this._parent._parent._parent.hover_inven._droptarget;
if (v2.indexOf('/inventory/characterdetails/inventorybox') != -1) {
this.itemobj.removeAttribute('equip');
this.itemobj.setAttribute('location', 'none');
this._parent._parent._parent.hover_inven.removeMovieClip();
_level0.generate_newstats(this._parent._parent.selectedclip.details, this._parent._parent.selectedclip.activebot);
_level0.refresh_stats(this._parent._parent.selectedclip.details.getAttribute('id'));
this.itemimage.removeMovieClip();
this.itemobj = null;
this.itemprop = null;
_level0.checkRequirements();
delete this.onRollOver;
delete this.onRollOut;
delete this.onPress;
delete this.onRelease;
delete this.onReleaseOutside;
} else {
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 v2 = '[' + this.itemprop.name + ']\n' + this.itemprop.description;
this._parent._parent.txtbubble.popup_text(v2, 150, '0xD6E1E9', this._parent._x + this._x + 20, this._parent._y + this._y + 5, 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;
_root.inventory.characterdetails.inventorybox.inventoryspace.text = _level0.getInventorySpace() + '/' + _level0.MAX_INVENTORY_SPACE;
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;
if (this.itemprop.undroppable) {
this._parent._parent._parent._parent.status.dropbutt._visible = false;
} else {
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;
};
};
}
_root.inventory.characterdetails.txtbubble._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.itemprop.equip == 'LIGHTARMS' || this.itemprop.equip == 'SPECIAL') {
this._parent._parent._parent.equipbox.right.gotoAndStop(2);
this._parent._parent._parent.equipbox.left.gotoAndStop(2);
}
if (this.itemprop.equip == 'GENERATOR') {
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 == 'MODULE') {
this._parent._parent._parent.equipbox.module1.gotoAndStop(2);
this._parent._parent._parent.equipbox.module2.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.module1.gotoAndStop(1);
this._parent._parent._parent.equipbox.module2.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 () {
var v4 = this.itemprop.description;
var v5 = _root.inventory.characterdetails.inventorybox._x;
var v3 = _root.inventory.characterdetails.inventorybox._y + _root.inventory.characterdetails.inventorybox.inventorycontent._y;
_root.inventory.characterdetails.txtbubble.popup_text(v4, 150, '0xD6E1E9', v5 + this._x + 15, v3 + this._y, this._width, this._height, true);
_root.inventory.characterdetails.txtbubble.settimer(90);
if (!this.selected) {
this.mouseover.gotoAndPlay(2);
}
};
(eval('_root.inventory.characterdetails.inventorybox.inventorycontent.items' + gcount)).onRollOut = function () {
_root.inventory.characterdetails.txtbubble._visible = false;
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.module1.gotoAndStop(1);
this._parent._parent._parent.equipbox.module2.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 v5 = this._parent._parent.hover_inven._droptarget;
if (v5.indexOf('/inventory/characterdetails/equipbox/right') != -1 && (this.itemprop.equip == 'MELEE' || this.itemprop.equip == 'LIGHTARMS' || this.itemprop.equip == 'SPECIAL')) {
var v8 = 'right';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/left') != -1 && (this.itemprop.equip == 'MELEE' || this.itemprop.equip == 'LIGHTARMS' || this.itemprop.equip == 'SPECIAL')) {
v8 = 'left';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/back') != -1 && this.itemprop.equip == 'GENERATOR') {
v8 = 'back';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/armor') != -1 && this.itemprop.equip == 'ARMOR') {
v8 = 'armor';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/module1') != -1 && this.itemprop.equip == 'MODULE') {
v8 = 'module1';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/module2') != -1 && this.itemprop.equip == 'MODULE') {
v8 = 'module2';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/top') != -1 && this.itemprop.equip == 'TOP') {
v8 = 'top';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/bottom') != -1 && this.itemprop.equip == 'BOTTOM') {
v8 = 'bottom';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/footwear') != -1 && this.itemprop.equip == 'FOOTWEAR') {
v8 = 'footwear';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/headgear') != -1 && this.itemprop.equip == 'HEADGEAR') {
v8 = 'headgear';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/accessory') != -1 && this.itemprop.equip == 'ACCESSORY') {
v8 = 'accessory';
}
if (v5.indexOf('/inventory/characterdetails/equipbox/') != -1 && v8 != undefined) {
var v6 = true;
var v9 = '';
if (v8 == 'right' || v8 == 'left' || v8 == 'back' || v8 == 'armor') {
v6 = false;
var v3 = 0;
while (v3 < this.itemprop.user.length) {
if (this._parent._parent._parent.selectedclip.activebot.getAttribute('botid') == this.itemprop.user[v3]) {
v6 = true;
break;
}
++v3;
}
if (v6) {
if (int(_level0['char' + this._parent._parent._parent.selectedclip.details.getAttribute('id')].basereflex) < this.itemprop.minreflex) {
v9 += 'Not enough BASE reflex - NEED ' + this.itemprop.minreflex + '\n';
v6 = false;
}
if (int(_level0['char' + this._parent._parent._parent.selectedclip.details.getAttribute('id')].baseaccuracy) < this.itemprop.minaccuracy) {
v9 += 'Not enough BASE accuracy - NEED ' + this.itemprop.minaccuracy + '\n';
v6 = false;
}
if (int(_level0['char' + this._parent._parent._parent.selectedclip.details.getAttribute('id')].basetechnique) < this.itemprop.mintechnique) {
v9 += 'Not enough BASE technique - NEED ' + this.itemprop.mintechnique + '\n';
v6 = false;
}
if (parseFloat(_level0['char' + this._parent._parent._parent.selectedclip.details.getAttribute('id')].capacity) < this.itemprop.mincapacity) {
v9 += 'Not enough TOTAL capacity - NEED ' + this.itemprop.mincapacity + '\n';
v6 = false;
}
} else {
v9 += 'Incompatible MAW model.\n';
}
}
if (v6) {
_level0.playSound('grab');
var v12 = this._parent._parent._parent.selectedclip.details.getAttribute('name');
var v11 = this._parent._parent._parent.selectedclip.details.getAttribute('id');
this._parent._parent._parent.equipbox[v8].itemobj.removeAttribute('equip');
this._parent._parent._parent.equipbox[v8].itemobj.setAttribute('location', 'none');
this._parent._parent.hover_inven.removeMovieClip();
this.itemobj.setAttribute('equip', v11);
this.itemobj.setAttribute('location', v8);
_root.generate_newstats(this._parent._parent._parent.selectedclip.details, this._parent._parent._parent.selectedclip.activebot);
_root.refresh_stats(v11);
_root.create_equip_icons();
_root.checkRequirements();
} else {
_level0.playSound('error');
this._parent._parent._parent.errtxtbubble.popup_text(v9, 200, '0xDD8888', this._parent._parent._x + this._parent._x + this._x + 15, this._parent._parent._y + this._parent._y + this._y + 5, this._width, this._height, true);
this._parent._parent._parent.errtxtbubble.settimer(90);
}
}
if (v5.indexOf('/inventory/charwin0') != -1) {
var v10 = _root.inventory.charwin0.details.getAttribute('id');
var v7 = _root.inventory.charwin0;
}
if (v5.indexOf('/inventory/charwin1') != -1) {
v10 = _root.inventory.charwin1.details.getAttribute('id');
v7 = _root.inventory.charwin1;
}
if (v5.indexOf('/inventory/charwin2') != -1) {
v10 = _root.inventory.charwin2.details.getAttribute('id');
v7 = _root.inventory.charwin2;
}
if (v5.indexOf('/inventory/charwin') != -1 && v10 != undefined && (this.itemprop.type == 'USE' || this.itemprop.type == 'USEWORLD')) {
var v4 = _root.evaluse(this.itemprop.useid, v10, this.itemprop.parameters);
if (!_level0.invenitem[this.itemobj.getAttribute('id')].reusable) {
_root.removeItem(this.itemobj.getAttribute('id'), 1);
create_inventory();
}
if (v4.addremove == 'add') {
this._parent._parent.attachMovie('add_effect', 'effects', 20);
}
if (v4.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 (v4.attribute == 'currhp') {
v4.attribute = 'Hit points';
v7.hpbar.barvalue.newvalue = v4.newvalue;
v7.hpbar.barvalue.oldvalue = v4.oldvalue;
if (v4.oldvalue <= 0) {
v4.oldvalue = 1;
}
if (v7.hpbar.barvalue._xscale <= 0) {
v7.hpbar.barvalue._xscale = 1;
}
v7.hpbar.barvalue.newpercent = Math.round(v4.newvalue * v7.hpbar.barvalue._xscale / v4.oldvalue);
v7.hpbar.barvalue.onEnterFrame = function () {
if (this._xscale < this.newpercent) {
++this._xscale;
this._parent._parent.currhp.text = Math.round(this._xscale * this._parent._parent.hpval / 100) + ' /' + this._parent._parent.hpval;
}
if (this._xscale > this.newpercent) {
--this._xscale;
this._parent._parent.currhp.text = Math.round(this._xscale * this._parent._parent.hpval / 100) + ' /' + this._parent._parent.hpval;
}
if (this._xscale > 100) {
this._xscale = 100;
this._parent._parent.currhp.text = this._parent._parent.hpval + ' /' + this._parent._parent.hpval;
}
if (this._xscale == this.newpercent || this._xscale >= 100) {
delete this.onEnterFrame;
}
};
}
v4.attribute = (v4.attribute.charAt(0)).toUpperCase() + v4.attribute.substring(1, v4.attribute.length);
this._parent._parent.effects.attribute = v4.attribute;
this._parent._parent.effects.value = v4.amount;
}
this._parent._parent.hover_inven.removeMovieClip();
v7.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._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;
_root.SaveList.userid = username;
_root.SaveList.password = userpass;
_root.SaveList.createNewUser(email);
}
System.security.allowDomain('http://mobileweapon.net/', 'http://www.mobileweapon.net', 'http://www.theagoraedge.com');
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 v2 = new Array();
var v3 = 0;
for (var v4 in this.itemlist) {
if (this.itemlist[v4].getName() == itemname) {
v2[v3++] = this.itemlist[v4];
}
}
return v2;
};
SaveItemObj.prototype.getItemListIndex = function (itemname) {
var v2 = new Array();
for (var v3 in this.itemlist) {
if (this.itemlist[v3].getName() == itemname) {
v2[v3] = this.itemlist[v3];
}
}
return v2;
};
SaveItemObj.prototype.convertXML = function () {
var v2 = new XMLNode(1, this.name);
for (var v3 in this.attributelist) {
v2.attributes[v3] = this.attributelist[v3];
}
for (v3 in this.itemlist) {
v2.appendChild(this.itemlist[v3].convertXML());
}
return v2;
};
SaveItemObj.prototype.loadXML = function (XMLLoadNode) {
for (var v7 in this.attributelist) {
delete this.attributelist[v7];
}
for (v7 in this.itemlist) {
delete this.itemlist[v7];
}
for (var v6 in XMLLoadNode.attributes) {
this.setAttribute(v6, XMLLoadNode.attributes[v6]);
}
var v4 = XMLLoadNode.childNodes;
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.addItem(v3);
++v2;
}
};
SaveItemObj.prototype.printitems = function () {
var v2 = '';
for (var v3 in this.attributelist) {
v2 += v3 + ':' + this.attributelist[v3] + ', ';
}
};
SaveItemObj.prototype.testcheck = function () {};
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 v2 = this.convertXML();
var v3 = new XML();
v3.parentdata = this.recipientObj;
v3.onLoad = function (success) {
if (success) {
this.parentdata.saved(true);
} else {
this.parentdata.saved(false);
}
};
var v4 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
v4.data[this.saveIndex] = v2.toString();
v4.flush(100000);
if (this.userid && this.userid != '' && !this.forceLocalFlag) {
v2.contentType = 'text/xml';
v2.sendAndLoad(this.savePath + '&type=save&userid=' + this.userid + '&saveindex=' + this.saveIndex, v3);
} else {
this.recipientObj.saved(true);
}
};
SaveDataObj.prototype.load = function () {
for (var v6 in this.attributelist) {
delete this.attributelist[v6];
}
for (v6 in this.itemlist) {
delete this.itemlist[v6];
}
var loadXML = new XML();
loadXML.ignoreWhite = true;
loadXML.parentdata = this;
loadXML.onLoad = function (success) {
var v7 = loadXML.firstChild;
var v8 = v7.nextSibling;
if (v8.firstChild.nodeValue != '342134' && !this.parentdata.forceLocalFlag) {
success = false;
}
if (success) {
var v5 = loadXML.firstChild;
var v4 = v5.childNodes;
if (v4.length == 0) {
var v6 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
this.parseXML(v6.data[this.parentdata.saveIndex]);
v5 = this.firstChild;
v4 = v5.childNodes;
}
for (prop in v5.attributes) {
this.parentdata.setAttribute(prop, v5.attributes[prop]);
}
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.parentdata.addItem(v3);
++v2;
}
this.parentdata.onLoad();
} else {
this.parentdata.forceLocalFlag = true;
var v6 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
this.parseXML(v6.data[this.parentdata.saveIndex]);
this.onLoad('true');
}
};
var v7 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
if (v7.data[this.saveIndex] == undefined) {
loadXML.load(this.savePath + '&type=retrieve&userid=' + this.userid + '&saveindex=' + this.saveIndex);
} else {
loadXML.parseXML(v7.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 v2 = new SaveItemObj('');
v2.attributelist = this.attributelist;
v2.itemlist = this.itemlist;
v2.itemcount = this.itemcount;
return v2;
};
SaveDataObj.prototype.convertXML = function () {
var v4 = new XML();
var v2 = new XMLNode(1, 'SavedData');
v4.appendChild(v2);
for (var v3 in this.attributelist) {
v2.attributes[v3] = this.attributelist[v3];
}
for (v3 in this.itemlist) {
v2.appendChild(this.itemlist[v3].convertXML());
}
return v4;
};
SaveDataObj.prototype.cloneSave = function (prevSave) {
var v6 = prevSave.convertXML();
var v5 = v6.firstChild;
for (prop in v5.attributes) {
this.setAttribute(prop, v5.attributes[prop]);
}
var v4 = v5.childNodes;
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.addItem(v3);
++v2;
}
};
SaveDataObj.prototype.parseXML = function (xmlstr) {
var v6 = new XML();
v6.parseXML(xmlstr);
var v5 = v6.firstChild;
for (prop in v5.attributes) {
this.setAttribute(prop, v5.attributes[prop]);
}
var v4 = v5.childNodes;
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.addItem(v3);
++v2;
}
};
SaveDataObj.prototype.addListener = function (listobj) {
this.recipientObj = listobj;
};
SaveListObj = function (username, passwd) {
this.hostname = 'http://mobileweapon.net/ep1/';
this.filename = 'neoplanetasp.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;
} else {
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
if (success) {
var v3 = replyXML.firstChild;
if (v3.attributes.key == 'INVALID' || replyXML.toString() == 'invalid session') {
this.recObj.recipientObj.connected(false);
} else {
_global.session = v3.attributes.key;
this.recObj.savePath = this.recObj.hostname + this.recObj.filename + '?sessid=' + _global.session;
this.recObj.recipientObj.connected(true, v3.attributes.userid);
}
} 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 v3 = replyXML.firstChild;
if (v3.attributes.key == 'DUPLICATE') {
this.recObj.recipientObj.created(false, v3.attributes.key);
} else {
_global.session = v3.attributes.key;
this.recObj.savePath = this.recObj.hostname + this.recObj.filename + '?sessid=' + _global.session;
this.recObj.recipientObj.created(true, v3.attributes.userid);
}
} 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 v6 = replyXML.firstChild;
var v7 = v6.nextSibling;
if (v7.firstChild.nodeValue != '342134' && !this.recObj.forceLoadShared) {
success = false;
}
if (success) {
v6 = replyXML.firstChild;
var v4 = v6.childNodes;
this.recObj.loadSaveList = new Array();
var v2 = 0;
while (v2 < v4.length) {
this.recObj.loadSaveList[v4[v2].attributes.name] = v4[v2].attributes.date;
++v2;
}
var v5 = checkXML.firstChild;
var v3 = v5.childNodes;
v2 = 0;
while (v2 < v3.length) {
if (neoplanetsave.data[v3[v2].attributes.name] == undefined && this.recObj.forceLoadShared) {
delete this.recObj.loadSaveList[v3[v2].attributes.name];
} else {
if (this.recObj.loadSaveList[v3[v2].attributes.name]) {
if (this.recObj.loadSaveList[v3[v2].attributes.name] < v3[v2].attributes.date) {
this.recObj.loadSaveList[v3[v2].attributes.name] = v3[v2].attributes.date;
}
} else {
this.recObj.loadSaveList[v3[v2].attributes.name] = v3[v2].attributes.date;
}
}
++v2;
}
this.recObj.loaded = true;
this.recObj.recipientObj.getList(this.recObj.loadSaveList);
} else {
var neoplanetsave = SharedObject.getLocal(this.recObj.userid + '_neoplanetsave', '/');
this.parseXML(neoplanetsave.data.savelist);
this.recObj.forceLoadShared = true;
this.onLoad(true);
}
};
if (this.forceLoadShared) {
var neoplanetsave = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
replyXML.parseXML(neoplanetsave.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 v2 = new SaveDataObj(this.userid, this.savePath, indexa);
v2.printitems();
v2.recipientObj = this.recipientObj;
if (this.forceLoadShared) {
v2.forceLocal(true);
}
v2.onLoad = function () {
this.recipientObj.getSave(this);
};
v2.load();
};
SaveListObj.prototype.createNewSave = function (currSaveObj, indexa) {
var v7 = new SaveDataObj(this.userid, this.savePath, indexa);
v7.cloneSave(currSaveObj);
v7.forceLocal(this.forceLoadShared);
var v2 = new Date();
var v3 = v2.getMonth() + 1;
if (v3 < 10) {
v3 = '0' + v3;
}
var v6 = v2.getDate();
if (v6 < 10) {
v6 = '0' + v6;
}
var v5 = v2.getHours();
if (v5 < 10) {
v5 = '0' + v5;
}
var v4 = v2.getMinutes();
if (v4 < 10) {
v4 = '0' + v4;
}
this.loadSaveList[indexa] = v2.getFullYear() + '-' + v3 + '-' + v6 + ' ' + v5 + ':' + v4;
this.saveList();
return v7;
};
SaveListObj.prototype.createEmptySave = function (indexa) {
var v7 = new SaveDataObj(this.userid, this.savePath, indexa);
v7.forceLocal(this.forceLoadShared);
var v2 = new Date();
var v3 = v2.getMonth() + 1;
if (v3 < 10) {
v3 = '0' + v3;
}
var v6 = v2.getDate();
if (v6 < 10) {
v6 = '0' + v6;
}
var v5 = v2.getHours();
if (v5 < 10) {
v5 = '0' + v5;
}
var v4 = v2.getMinutes();
if (v4 < 10) {
v4 = '0' + v4;
}
this.loadSaveList[indexa] = v2.getFullYear() + '-' + v3 + '-' + v6 + ' ' + v5 + ':' + v4;
return v7;
};
SaveListObj.prototype.saveList = function () {
var v3 = new XML();
var v4 = v3.createElement('savelist');
v3.appendChild(v4);
for (var v5 in this.loadSaveList) {
var v2 = v3.createElement('savedata');
v2.attributes.name = v5;
v2.attributes.date = this.loadSaveList[v5];
v4.appendChild(v2);
}
var v6 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
v6.data.savelist = v3.toString();
v6.flush(10000);
};
SaveListObj.prototype.deleteSave = function (indexa) {
delete this.loadSaveList[indexa];
this.saveList();
var replyXML = new XML();
replyXML.onLoad = function (success) {
if (success && replyXML == 'SUCCESS') {
this.recObj.deleted(true);
} else {
var v2 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
delete v2.data[indexa];
this.recObj.deleted(true);
}
};
replyXML.recObj = this.recipientObj;
replyXML.load(this.savePath + '&type=delete&userid=' + this.userid + '&saveindex=' + indexa);
var v2 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
delete v2.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 = '';
}
clear_savelist();
var v4 = 1;
for (var v8 in r_array) {
if (v8 == '_new') {
continue;
}
_root.tempsave[v4 - 1] = v8;
_root.savebox.savelistholder.attachMovie('save links', 'save' + v4, 20 + v4);
_root.savebox.savelistholder.attachMovie('delete button', 'deletesave' + v4, 40 + v4);
_root.savebox.savelistholder['save' + v4].save_name.text = v4 + '. ' + v8;
_root.savebox.savelistholder['save' + v4].save_time.text = convertdatetime(r_array[v8]);
_root.savebox.savelistholder['save' + v4].savename = v8;
_root.savebox.savelistholder['save' + v4]._x = 5;
_root.savebox.savelistholder['save' + v4]._y = (v4 - 1) * 25;
_root.savebox.savelistholder['deletesave' + v4]._x = 10;
_root.savebox.savelistholder['deletesave' + v4]._y = 6 + (v4 - 1) * 25;
_root.savebox.savelistholder['deletesave' + v4].id = _root.savebox.savelistholder['save' + v4];
_root.savebox.savelistholder['save' + v4].selid = v4;
_root.savebox.savelistholder['deletesave' + v4].onRelease = function () {
this.id.gotoAndStop(30);
if (!this.selected) {
this.id.gotoAndStop(30);
this.id.selected = true;
if (this.id.selid != this._parent.selectid) {
_root.savebox.savelistholder['save' + this._parent.selectid].selected = false;
_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 v3 = 1;
while (_root.savebox.savelistholder['save' + v3]) {
_root.savebox.savelistholder['save' + v3].removeMovieClip();
_root.savebox.savelistholder['deletesave' + v3].removeMovieClip();
++v3;
}
_root.SaveList.listAllSaves();
};
};
_root.savebox.savelistholder['save' + v4].onRollOver = function () {
if (!this.selected) {
this.gotoAndPlay(2);
}
};
_root.savebox.savelistholder['save' + v4].onRollOut = function () {
if (!this.selected) {
this.gotoAndStop(1);
}
};
_root.savebox.savelistholder['save' + v4].onRelease = function () {
this.gotoAndStop(15);
if (!this.selected) {
this.selected = true;
if (this.selid != this._parent.selectid) {
_root.savebox.savelistholder['save' + this._parent.selectid].selected = false;
_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 v3 = 1;
while (_root.savebox.savelistholder['save' + v3]) {
_root.savebox.savelistholder['save' + v3].removeMovieClip();
_root.savebox.savelistholder['deletesave' + v3].removeMovieClip();
++v3;
}
_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 v5 = _root.SaveList.createNewSave(_global.mainsave, this.savename);
_global.mainsave = v5;
var v4 = 1;
while (_root.savebox.savelistholder['save' + v4]) {
_root.savebox.savelistholder['save' + v4].removeMovieClip();
_root.savebox.savelistholder['deletesave' + v4].removeMovieClip();
++v4;
}
_root.savebox.gotoAndStop(6);
_root.savebox.errtext.text = 'Saving... Please wait';
_root.savebox.loginbutt._visible = false;
_global.mainsave.addListener(_root.listenerobject);
_global.mainsave.save();
};
}
};
++v4;
}
if (v4 == 0) {
_root.savebox.message.text = 'No save found.';
}
var v10 = _root.savebox.savelistholder._height;
var v9 = _root.savebox.maskbox._height;
if (v10 > v9) {
_root.savebox.slider._height = Math.round(v9 * v9 / v10);
} else {
_root.savebox.slider._visible = false;
}
var v6 = 1;
while (_root.savebox.savelistholder['save' + v6]) {
++v6;
}
if (v6 <= 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 v2 = saveobj.getItemList('globalvars');
_global.mainsave = saveobj;
reload_data();
init_map();
_global.option = 'load';
gotoAndStop(32);
};
listenerobject.connected = function (success, userid) {
if (success) {
var v3 = _global.mainsave.convertXML();
_root.sendSaveFile(userid, v3);
} else {
_root.savebox.gotoAndStop(4);
_root.savebox.errtext.text = 'Invalid username or password.';
}
};
listenerobject.error = function (errtype) {
if (errtype == 'NOUSERNAME' || errtype == 'NOCONNECTION') {
var v2 = SharedObject.getLocal('/mobileweapon');
v2.data.userid = _root.SaveList.userid;
v2.data.password = _root.SaveList.password;
_root.SaveList.listAllSaves();
}
};
listenerobject.created = function (success, errtype) {};
listenerobject.saved = function (success, errtype) {
_root.savebox.gotoAndStop(2);
_root.savebox.message.text = 'Data saved.';
};
listenerobject.converted = function (success, errtype) {
if (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 v5 = _global.mainsave.convertXML();
_root.sendSaveFile(errtype, v5);
} else {
_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;
so.data.userid = '';
_global.quickstart = true;
_root.SaveList = new SaveListObj(so.data.userid, so.data.password);
_root.SaveList.addListener(listenerobject);
_root.SaveList.connect();
}
frame 3 {
function tylerLink() {
getURL('http://www.mobileweapon.net', '_blank');
}
function highquality() {
_quality = 'HIGH';
}
function mediumquality() {
_quality = 'MEDIUM';
}
function lowquality() {
_quality = 'LOW';
}
function musicmenuOn() {
_global.musicSetting = true;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (_level0.combatSceneClip._visible) {
_level0.battleMusic();
} else {
currentMusic = '';
_level0.bgMusic(areaMusic);
}
}
function musicmenuOff() {
_global.musicSetting = false;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
}
MENU = new ContextMenu();
MENU.customItems.push(tylerLink);
MENU.hideBuiltInItems();
qMenuItem1 = new ContextMenuItem('Quality: High', highquality);
qMenuItem2 = new ContextMenuItem('Quality: Medium', mediumquality);
qMenuItem3 = new ContextMenuItem('Quality: Low', lowquality);
MENU.customItems.push(qMenuItem1);
MENU.customItems.push(qMenuItem2);
MENU.customItems.push(qMenuItem3);
sMenuItem1 = new ContextMenuItem('Sound On', musicmenuOn, true);
sMenuItem2 = new ContextMenuItem('Sound Off', musicmenuOff);
MENU.customItems.push(sMenuItem1);
MENU.customItems.push(sMenuItem2);
customMenuItem1 = new ContextMenuItem('Copyright(c)2005-2007. All rights reserved.', tylerLink, true);
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;
}
frame 3 {
function musicOn() {
_global.musicSetting = true;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (_level0.combatSceneClip._visible) {
_level0.battleMusic();
} else {
currentMusic = '';
_level0.bgMusic(areaMusic);
}
}
function musicOff() {
_global.musicSetting = false;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
}
function bgMusic(newMusic, noloop) {
if (_global.musicSetting) {
if (currentMusic != newMusic) {
if (newMusic == undefined) {
newMusic = _root.areaMusic;
}
currentMusic = newMusic;
stopAllSounds();
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
}
function battleMusic() {
if (_global.musicSetting) {
if (_level0.combatmusic) {
currentMusic = _level0.combatmusic;
} else {
currentMusic = 'battle' + (random(2) + 1);
}
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
function playSound(s) {
if (_global.musicSetting) {
sflag = !sflag;
if (sflag) {
soundfx.gotoAndStop(1);
soundfx.gotoAndStop(s);
} else {
soundfx2.gotoAndStop(1);
soundfx2.gotoAndStop(s);
}
}
}
sflag = true;
stopAllSounds();
currentMusic = '';
areaMusic = 'title';
bgMusic(areaMusic);
}
movieClip 429 {
frame 1 {
stop();
}
}
movieClip 450 {
frame 1 {
stop();
}
}
movieClip 457 {
frame 30 {
stop();
}
}
button 459 {
on (release) {
playSound('confirmSound');
_root.savebox._visible = true;
_root.savebox.gotoAndStop(8);
}
on (rollOver) {
_level0.playSound('select');
}
}
button 462 {
on (release) {
playSound('confirmSound');
gotoAndStop(10);
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 464 {
}
movieClip 469 {
}
movieClip 471 {
}
movieClip 475 {
}
movieClip 479 {
}
movieClip 483 {
}
movieClip 486 {
}
movieClip 515 {
frame 1 {
if (_global.quickstart) {
newbutt._visible = true;
} else {
newbutt._visible = false;
}
stop();
}
instance closebutton of movieClip 464 {
onClipEvent (press) {
if (_level0.shopSystem) {
_level0.shopSystem.menu._visible = true;
}
_level0.playSound('cancelSound');
_parent._visible = false;
_global.option = undefined;
}
}
instance slider of movieClip 471 {
onClipEvent (press) {
this.startDrag(false, this._x, _parent.maskbox._y, this._x, _parent.maskbox._height - this._height + _parent.maskbox._y);
this.onEnterFrame = function () {
var v3 = (this._y - 50.7) * (_parent.savelistholder._height - _parent.maskbox._height) / (_parent.maskbox._height - this._height);
_parent.savelistholder._y = 44 - v3;
};
}
onClipEvent (release) {
this.stopDrag();
this.onEnterFrame = function () {};
}
}
instance newsavelink of movieClip 475 {
onClipEvent (press) {
_root.preparenewsave();
}
}
frame 2 {
stop();
}
instance of movieClip 486 {
onClipEvent (press) {
if (_level0.shopSystem) {
_level0.shopSystem.menu._visible = true;
}
_parent._visible = false;
_global.option = undefined;
}
}
frame 3 {
stop();
savebutt.buttontext.text = 'Save';
}
instance savebutt of movieClip 479 {
onClipEvent (press) {
_root.savenewgame(_parent.newsavename.text);
}
}
frame 4 {
_root.clear_savelist();
loginbutt.buttontext.text = 'LOGIN';
}
instance loginbutt of movieClip 479 {
onClipEvent (press) {
_root.renewUser(_parent.newusername.text, _parent.newpassword.text);
}
}
frame 5 {
_root.clear_savelist();
loginbutt.buttontext.text = 'CREATE';
savetext.text = 'CREATE YOUR ACCOUNT';
stop();
}
instance loginbutt of movieClip 479 {
onClipEvent (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);
}
}
frame 6 {
loginbutt.buttontext.text = 'CANCEL';
stop();
}
frame 7 {
function AES_set_encrypt_key(userkey, bits, key) {
var v3;
var v4 = 0;
var v1 = 0;
if (userkey == undefined || key == undefined) {
return -1;
}
if (bits != 128 && bits != 192 && bits != 256) {
return -2;
}
if (bits == 128) {
key.rounds = 10;
} else {
if (bits == 192) {
key.rounds = 12;
} else {
key.rounds = 14;
}
}
key.rd_key[0] = parseInt('0x' + userkey.slice(0, 8));
key.rd_key[1] = parseInt('0x' + userkey.slice(8, 16));
key.rd_key[2] = parseInt('0x' + userkey.slice(16, 24));
key.rd_key[3] = parseInt('0x' + userkey.slice(24, 32));
if (bits == 128) {
for (;;) {
v3 = key.rd_key[3 + v1];
key.rd_key[4 + v1] = key.rd_key[v1] ^ Te4[v3 >> 16 & 255] & 4278190080.0 ^ Te4[v3 >> 8 & 255] & 16711680 ^ Te4[v3 & 255] & 65280 ^ Te4[v3 >> 24 & 255] & 255 ^ rcon[v4];
key.rd_key[5 + v1] = key.rd_key[1 + v1] ^ key.rd_key[4 + v1];
key.rd_key[6 + v1] = key.rd_key[2 + v1] ^ key.rd_key[5 + v1];
key.rd_key[7 + v1] = key.rd_key[3 + v1] ^ key.rd_key[6 + v1];
if (++v4 == 10) {
return 0;
}
v1 += 4;
}
}
key.rd_key[4] = parseInt('0x' + userkey.slice(32, 40));
key.rd_key[5] = parseInt('0x' + userkey.slice(40, 48));
if (bits == 192) {
for (;;) {
v3 = key.rd_key[5 + v1];
key.rd_key[6 + v1] = key.rd_key[v1] ^ Te4[v3 >> 16 & 255] & 4278190080.0 ^ Te4[v3 >> 8 & 255] & 16711680 ^ Te4[v3 & 255] & 65280 ^ Te4[v3 >> 24 & 255] & 255 ^ rcon[v4];
key.rd_key[7 + v1] = key.rd_key[1 + v1] ^ key.rd_key[6 + v1];
key.rd_key[8 + v1] = key.rd_key[2 + v1] ^ key.rd_key[7 + v1];
key.rd_key[9 + v1] = key.rd_key[3 + v1] ^ key.rd_key[8 + v1];
if (++v4 == 8) {
return 0;
}
key.rd_key[10 + v1] = key.rd_key[4 + v1] ^ key.rd_key[9 + v1];
key.rd_key[11 + v1] = key.rd_key[5 + v1] ^ key.rd_key[10 + v1];
v1 += 6;
}
}
key.rd_key[6] = parseInt('0x' + userkey.slice(48, 56));
key.rd_key[7] = parseInt('0x' + userkey.slice(56, 64));
if (bits == 256) {
for (;;) {
v3 = key.rd_key[7 + v1];
key.rd_key[8 + v1] = key.rd_key[v1] ^ Te4[v3 >> 16 & 255] & 4278190080.0 ^ Te4[v3 >> 8 & 255] & 16711680 ^ Te4[v3 & 255] & 65280 ^ Te4[v3 >> 24 & 255] & 255 ^ rcon[v4];
key.rd_key[9 + v1] = key.rd_key[1 + v1] ^ key.rd_key[8 + v1];
key.rd_key[10 + v1] = key.rd_key[2 + v1] ^ key.rd_key[9 + v1];
key.rd_key[11 + v1] = key.rd_key[3 + v1] ^ key.rd_key[10 + v1];
if (++v4 == 7) {
return 0;
}
v3 = key.rd_key[11 + v1];
key.rd_key[12 + v1] = key.rd_key[4 + v1] ^ Te4[v3 >> 24 & 255] & 4278190080.0 ^ Te4[v3 >> 16 & 255] & 16711680 ^ Te4[v3 >> 8 & 255] & 65280 ^ Te4[v3 & 255] & 255;
key.rd_key[13 + v1] = key.rd_key[5 + v1] ^ key.rd_key[12 + v1];
key.rd_key[14 + v1] = key.rd_key[6 + v1] ^ key.rd_key[13 + v1];
key.rd_key[15 + v1] = key.rd_key[7 + v1] ^ key.rd_key[14 + v1];
v1 += 8;
}
}
return 0;
}
function AES_set_decrypt_key(userkey, bits, key) {
var v5;
var v3 = 0;
var v4 = 0;
var v2 = 0;
status = AES_set_encrypt_key(userkey, bits, key);
if (status < 0) {
return undefined;
}
v3 = 0;
v4 = 4 * key.rounds;
while (v3 < v4) {
v5 = key.rd_key[v3];
key.rd_key[v3] = key.rd_key[v4];
key.rd_key[v4] = v5;
v5 = key.rd_key[v3 + 1];
key.rd_key[v3 + 1] = key.rd_key[v4 + 1];
key.rd_key[v4 + 1] = v5;
v5 = key.rd_key[v3 + 2];
key.rd_key[v3 + 2] = key.rd_key[v4 + 2];
key.rd_key[v4 + 2] = v5;
v5 = key.rd_key[v3 + 3];
key.rd_key[v3 + 3] = key.rd_key[v4 + 3];
key.rd_key[v4 + 3] = v5;
v3 += 4;
v4 -= 4;
}
v3 = 1;
while (v3 < key.rounds) {
v2 += 4;
key.rd_key[v2] = Td0[Te4[key.rd_key[v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[v2] & 255] & 255];
key.rd_key[1 + v2] = Td0[Te4[key.rd_key[1 + v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[1 + v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[1 + v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[1 + v2] & 255] & 255];
key.rd_key[2 + v2] = Td0[Te4[key.rd_key[2 + v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[2 + v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[2 + v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[2 + v2] & 255] & 255];
key.rd_key[3 + v2] = Td0[Te4[key.rd_key[3 + v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[3 + v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[3 + v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[3 + v2] & 255] & 255];
++v3;
}
return 0;
}
function AES_encrypt(bin, key) {
var v12;
var v10 = 0;
var v5;
var v4;
var v3;
var v2;
var v9;
var v8;
var v7;
var v6;
if (bin == undefined || key == undefined) {
return undefined;
}
v5 = parseInt('0x' + bin.slice(0, 8)) ^ key.rd_key[0];
v4 = parseInt('0x' + bin.slice(8, 16)) ^ key.rd_key[1];
v3 = parseInt('0x' + bin.slice(16, 24)) ^ key.rd_key[2];
v2 = parseInt('0x' + bin.slice(24, 32)) ^ key.rd_key[3];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[4];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[5];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[6];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[7];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[8];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[9];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[10];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[11];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[12];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[13];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[14];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[15];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[16];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[17];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[18];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[19];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[20];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[21];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[22];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[23];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[24];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[25];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[26];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[27];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[28];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[29];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[30];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[31];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[32];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[33];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[34];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[35];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[36];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[37];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[38];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[39];
if (key.rounds > 10) {
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[40];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[41];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[42];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[43];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[44];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[45];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[46];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[47];
if (key.rounds > 12) {
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[48];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[49];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[50];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[51];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[52];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[53];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[54];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[55];
}
}
v10 = key.rounds << 2;
v5 = Te4[v9 >> 24 & 255] & 4278190080.0 ^ Te4[v8 >> 16 & 255] & 16711680 ^ Te4[v7 >> 8 & 255] & 65280 ^ Te4[v6 & 255] & 255 ^ key.rd_key[v10];
out = byte2hex(v5 >> 24 & 255);
out += byte2hex(v5 >> 16 & 255);
out += byte2hex(v5 >> 8 & 255);
out += byte2hex(v5 & 255);
v4 = Te4[v8 >> 24 & 255] & 4278190080.0 ^ Te4[v7 >> 16 & 255] & 16711680 ^ Te4[v6 >> 8 & 255] & 65280 ^ Te4[v9 & 255] & 255 ^ key.rd_key[v10 + 1];
out += byte2hex(v4 >> 24 & 255);
out += byte2hex(v4 >> 16 & 255);
out += byte2hex(v4 >> 8 & 255);
out += byte2hex(v4 & 255);
v3 = Te4[v7 >> 24 & 255] & 4278190080.0 ^ Te4[v6 >> 16 & 255] & 16711680 ^ Te4[v9 >> 8 & 255] & 65280 ^ Te4[v8 & 255] & 255 ^ key.rd_key[v10 + 2];
out += byte2hex(v3 >> 24 & 255);
out += byte2hex(v3 >> 16 & 255);
out += byte2hex(v3 >> 8 & 255);
out += byte2hex(v3 & 255);
v2 = Te4[v6 >> 24 & 255] & 4278190080.0 ^ Te4[v9 >> 16 & 255] & 16711680 ^ Te4[v8 >> 8 & 255] & 65280 ^ Te4[v7 & 255] & 255 ^ key.rd_key[v10 + 3];
out += byte2hex(v2 >> 24 & 255);
out += byte2hex(v2 >> 16 & 255);
out += byte2hex(v2 >> 8 & 255);
out += byte2hex(v2 & 255);
return out;
}
function AES_decrypt(bin, key) {
var v12;
var v10 = 0;
var v5;
var v4;
var v3;
var v2;
var v9;
var v8;
var v7;
var v6;
if (bin == undefined || key == undefined) {
return undefined;
}
v5 = parseInt('0x' + bin.slice(0, 8)) ^ key.rd_key[0];
v4 = parseInt('0x' + bin.slice(8, 16)) ^ key.rd_key[1];
v3 = parseInt('0x' + bin.slice(16, 24)) ^ key.rd_key[2];
v2 = parseInt('0x' + bin.slice(24, 32)) ^ key.rd_key[3];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[4];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[5];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[6];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[7];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[8];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[9];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[10];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[11];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[12];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[13];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[14];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[15];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[16];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[17];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[18];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[19];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[20];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[21];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[22];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[23];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[24];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[25];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[26];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[27];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[28];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[29];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[30];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[31];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[32];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[33];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[34];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[35];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[36];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[37];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[38];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[39];
if (key.rounds > 10) {
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[40];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[41];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[42];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[43];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[44];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[45];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[46];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[47];
if (key.rounds > 12) {
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[48];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[49];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[50];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[51];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[52];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[53];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[54];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[55];
}
}
v10 = key.rounds << 2;
v5 = Td4[v9 >> 24 & 255] & 4278190080.0 ^ Td4[v6 >> 16 & 255] & 16711680 ^ Td4[v7 >> 8 & 255] & 65280 ^ Td4[v8 & 255] & 255 ^ key.rd_key[v10];
out = byte2hex(v5 >> 24 & 255);
out += byte2hex(v5 >> 16 & 255);
out += byte2hex(v5 >> 8 & 255);
out += byte2hex(v5 & 255);
v4 = Td4[v8 >> 24 & 255] & 4278190080.0 ^ Td4[v9 >> 16 & 255] & 16711680 ^ Td4[v6 >> 8 & 255] & 65280 ^ Td4[v7 & 255] & 255 ^ key.rd_key[v10 + 1];
out += byte2hex(v4 >> 24 & 255);
out += byte2hex(v4 >> 16 & 255);
out += byte2hex(v4 >> 8 & 255);
out += byte2hex(v4 & 255);
v3 = Td4[v7 >> 24 & 255] & 4278190080.0 ^ Td4[v8 >> 16 & 255] & 16711680 ^ Td4[v9 >> 8 & 255] & 65280 ^ Td4[v6 & 255] & 255 ^ key.rd_key[v10 + 2];
out += byte2hex(v3 >> 24 & 255);
out += byte2hex(v3 >> 16 & 255);
out += byte2hex(v3 >> 8 & 255);
out += byte2hex(v3 & 255);
v2 = Td4[v6 >> 24 & 255] & 4278190080.0 ^ Td4[v7 >> 16 & 255] & 16711680 ^ Td4[v8 >> 8 & 255] & 65280 ^ Td4[v9 & 255] & 255 ^ key.rd_key[v10 + 3];
out += byte2hex(v2 >> 24 & 255);
out += byte2hex(v2 >> 16 & 255);
out += byte2hex(v2 >> 8 & 255);
out += byte2hex(v2 & 255);
return out;
}
function AES_ecb_encrypt(bin, key, enc) {
if (bin == undefined || key == undefined) {
return undefined;
}
if (enc != 'AES_ENCRYPT' && enc != 'AES_DECRYPT') {
return undefined;
}
if (enc == 'AES_ENCRYPT') {
bout = AES_encrypt(bin, key);
return bout;
}
bout = AES_decrypt(bin, key);
return bout;
}
function AES_cbc_encrypt(bin, key, ivec, enc) {
var v7;
var v1;
var v5;
var v8;
var v4;
var v2;
var v3;
if (bin == undefined || key == undefined || ivec == undefined) {
return undefined;
}
v7 = bin.length;
if (v7 % 32 != 0) {
return undefined;
}
if (enc != 'AES_ENCRYPT' && enc != 'AES_DECRYPT') {
return undefined;
}
v2 = bin;
if (enc == 'AES_ENCRYPT') {
while (v7 > 0) {
v5 = '';
v1 = 0;
while (v1 < 32) {
v3 = parseInt('0x' + v2.slice(v1, v1 + 2)) ^ parseInt('0x' + ivec.slice(v1, v1 + 2));
v5 += byte2hex(v3);
v1 += 2;
}
v4 = AES_encrypt(v5, key);
ivec = v4;
v7 -= 32;
v2 = v2.slice(32);
v8 += v4;
}
return v8;
}
while (v7 > 0) {
v5 = AES_decrypt(v2, key);
v4 = '';
v1 = 0;
while (v1 < 32) {
v3 = parseInt('0x' + v5.slice(v1, v1 + 2)) ^ parseInt('0x' + ivec.slice(v1, v1 + 2));
v4 += byte2hex(v3);
v1 += 2;
}
ivec = v2;
v7 -= 32;
v2 = v2.slice(32);
v8 += v4;
}
return v8;
}
function byte2hex(byte) {
if ((byte.toString(16)).length < 2) {
return '0' + (byte.toString(16)).toUpperCase();
} else {
return (byte.toString(16)).toUpperCase();
}
}
function string2hex(s) {
var v3 = '';
var v1 = 0;
while (v1 < s.length) {
if (((s.charCodeAt(v1)).toString(16)).length < 2) {
v3 += '0' + ((s.charCodeAt(v1)).toString(16)).toUpperCase();
} else {
v3 += ((s.charCodeAt(v1)).toString(16)).toUpperCase();
}
++v1;
}
return v3;
}
function hex2string(hex) {
var v3 = '';
if (hex.length % 2 == 1) {
stop();
}
var v1 = 0;
while (v1 < hex.length) {
v3 += String.fromCharCode(parseInt('0x' + hex.slice(v1, v1 + 2)));
v1 += 2;
}
return v3;
}
function decryptfile(decodefile) {
var v1 = decodefile;
AES_set_decrypt_key(decrypt_key, 128, aes_key);
var v2 = '';
while (v1.length > 16) {
tmpcry = v1.substr(0, 32);
v1 = v1.substr(32, v1.length);
plain = AES_ecb_encrypt(tmpcry, aes_key, 'AES_DECRYPT');
v2 += hex2string(plain);
}
return v2;
}
function encryptfile(filecontent) {
AES_set_encrypt_key(decrypt_key, 128, aes_key);
var v4 = '';
while (filecontent.length > 0) {
var v2 = '';
if (filecontent.length >= 16) {
v2 = substring(filecontent, 0, 16);
filecontent = substring(filecontent, 17, filecontent.length);
} else {
v2 = substring(filecontent, 0, filecontent.length);
filecontent = '';
}
while (v2.length != 16) {
v2 += ' ';
}
var v3 = AES_ecb_encrypt(string2hex(v2), aes_key, 'AES_ENCRYPT');
v4 += v3;
}
return v4;
}
Te0 = [3328402341.0, 4168907908.0, 4000806809.0, 4135287693.0, 4294111757.0, 3597364157.0, 3731845041.0, 2445657428.0, 1613770832, 33620227, 3462883241.0, 1445669757, 3892248089.0, 3050821474.0, 1303096294, 3967186586.0, 2412431941.0, 528646813, 2311702848.0, 4202528135.0, 4026202645.0, 2992200171.0, 2387036105.0, 4226871307.0, 1101901292, 3017069671.0, 1604494077, 1169141738, 597466303, 1403299063, 3832705686.0, 2613100635.0, 1974974402, 3791519004.0, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546.0, 2211236943.0, 1748251740, 1369810420, 3521504564.0, 4193382664.0, 3799085459.0, 2883115123.0, 1647391059, 706024767, 134480908, 2512897874.0, 1176707941, 2646852446.0, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221.0, 3454790438.0, 1311188841, 2142417613, 3933566367.0, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818.0, 3025820398.0, 1537253627, 2756858614.0, 1983593293, 3084310113.0, 2108928974, 1378429307, 3722699582.0, 1580150641, 327451799, 2790478837.0, 3117535592.0, 0, 3253595436.0, 1075847264, 3825007647.0, 2041688520, 3059440621.0, 3563743934.0, 2378943302.0, 1740553945, 1916352843, 2487896798.0, 2555137236.0, 2958579944.0, 2244988746.0, 3151024235.0, 3320835882.0, 1336584933, 3992714006.0, 2252555205.0, 2588757463.0, 1714631509, 293963156, 2319795663.0, 3925473552.0, 67240454, 4269768577.0, 2689618160.0, 2017213508, 631218106, 1269344483, 2723238387.0, 1571005438, 2151694528.0, 93294474, 1066570413, 563977660, 1882732616, 4059428100.0, 1673313503, 2008463041, 2950355573.0, 1109467491, 537923632, 3858759450.0, 4260623118.0, 3218264685.0, 2177748300.0, 403442708, 638784309, 3287084079.0, 3193921505.0, 899127202, 2286175436.0, 773265209, 2479146071.0, 1437050866, 4236148354.0, 2050833735, 3362022572.0, 3126681063.0, 840505643, 3866325909.0, 3227541664.0, 427917720, 2655997905.0, 2749160575.0, 1143087718, 1412049534, 999329963, 193497219, 2353415882.0, 3354324521.0, 1807268051, 672404540, 2816401017.0, 3160301282.0, 369822493, 2916866934.0, 3688947771.0, 1681011286, 1949973070, 336202270, 2454276571.0, 201721354, 1210328172, 3093060836.0, 2680341085.0, 3184776046.0, 1135389935, 3294782118.0, 965841320, 831886756, 3554993207.0, 4068047243.0, 3588745010.0, 2345191491.0, 1849112409, 3664604599.0, 26054028, 2983581028.0, 2622377682.0, 1235855840, 3630984372.0, 2891339514.0, 4092916743.0, 3488279077.0, 3395642799.0, 4101667470.0, 1202630377, 268961816, 1874508501, 4034427016.0, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513.0, 3421038627.0, 2715671932.0, 3899946140.0, 1042226977, 2521517021.0, 1639824860, 227249030, 260737669, 3765465232.0, 2084453954, 1907733956, 3429263018.0, 2420656344.0, 100860677, 4160157185.0, 470683154, 3261161891.0, 1781871967, 2924959737.0, 1773779408, 394692241, 2579611992.0, 974986535, 664706745, 3655459128.0, 3958962195.0, 731420851, 571543859, 3530123707.0, 2849626480.0, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984.0, 2278477385.0, 2857719295.0, 1344809080, 2782912378.0, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649.0, 2218934982.0, 3496503480.0, 2185314755.0, 697932208, 1512910199, 504303377, 2075177163, 2824099068.0, 1841019862, 739644986];
Te1 = [2781242211.0, 2230877308.0, 2582542199.0, 2381740923.0, 234877682, 3184946027.0, 2984144751.0, 1418839493, 1348481072, 50462977, 2848876391.0, 2102799147, 434634494, 1656084439, 3863849899.0, 2599188086.0, 1167051466, 2636087938.0, 1082771913, 2281340285.0, 368048890, 3954334041.0, 3381544775.0, 201060592, 3963727277.0, 1739838676, 4250903202.0, 3930435503.0, 3206782108.0, 4149453988.0, 2531553906.0, 1536934080, 3262494647.0, 484572669, 2923271059.0, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525.0, 886171109, 150598129, 2481090929.0, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806.0, 252314885, 3039795866.0, 151914247, 908333586, 2602270848.0, 1038082786, 651029483, 1766729511, 3447698098.0, 2682942837.0, 454166793, 2652734339.0, 1951935532, 775166490, 758520603, 3000790638.0, 4004797018.0, 4217086112.0, 4137964114.0, 1299594043, 1639438038, 3464344499.0, 2068982057, 1054729187, 1901997871, 2534638724.0, 4121318227.0, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545.0, 3988151131.0, 3201591914.0, 1183697867, 3647454910.0, 1265776953, 3734260298.0, 3566750796.0, 3903871064.0, 1250283471, 1807470800, 717615087, 3847203498.0, 384695291, 3313910595.0, 3617213773.0, 1432761139, 2484176261.0, 3481945413.0, 283769337, 100925954, 2180939647.0, 4037038160.0, 1148730428, 3123027871.0, 3813386408.0, 4087501137.0, 4267549603.0, 3229630528.0, 2315620239.0, 2906624658.0, 3156319645.0, 1215313976, 82966005, 3747855548.0, 3245848246.0, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855.0, 2721421207.0, 3431482436.0, 959321879, 1469301956, 4065699751.0, 2197585534.0, 1199193405, 2898814052.0, 3887750493.0, 724703513, 2514908019.0, 2696962144.0, 2551808385.0, 3516813135.0, 2141445340, 1715741218, 2119445034, 2872807568.0, 2198571144.0, 3398190662.0, 700968686, 3547052216.0, 1009259540, 2041044702, 3803995742.0, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321.0, 168560134, 1816667172, 3837287516.0, 1570751170, 1857934291, 4014189740.0, 2797888098.0, 2822345105.0, 2754712981.0, 936633572, 2347923833.0, 852879335, 1133234376, 1500395319, 3084545389.0, 2348912013.0, 1689376213, 3533459022.0, 3762923945.0, 3034082412.0, 4205598294.0, 133428468, 634383082, 2949277029.0, 2398386810.0, 3913789102.0, 403703816, 3580869306.0, 2297460856.0, 1867130149, 1918643758, 607656988, 4049053350.0, 3346248884.0, 1368901318, 600565992, 2090982877, 2632479860.0, 557719327, 3717614411.0, 3697393085.0, 2249034635.0, 2232388234.0, 2430627952.0, 1115438654, 3295786421.0, 2865522278.0, 3633334344.0, 84280067, 33027830, 303828494, 2747425121.0, 1600795957, 4188952407.0, 3496589753.0, 2434238086.0, 1486471617, 658119965, 3106381470.0, 953803233, 334231800, 3005978776.0, 857870609, 3151128937.0, 1890179545, 2298973838.0, 2805175444.0, 3056442267.0, 574365214, 2450884487.0, 550103529, 1233637070, 4289353045.0, 2018519080, 2057691103, 2399374476.0, 4166623649.0, 2148108681.0, 387583245, 3664101311.0, 836232934, 3330556482.0, 3100665960.0, 3280093505.0, 2955516313.0, 2002398509, 287182607, 3413881008.0, 4238890068.0, 3597515707.0, 975967766];
Te2 = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762.0, 1807603307, 1873927791, 3310653893.0, 810573872, 16974337, 1739181671, 729634347, 4263110654.0, 3613570519.0, 2883997099.0, 1989864566, 3393556426.0, 2191335298.0, 3376449993.0, 2106063485, 4195741690.0, 1508618841, 1204391495, 4027317232.0, 2917941677.0, 3563566036.0, 2734514082.0, 2951366063.0, 2629772188.0, 2767672228.0, 1922491506, 3227229120.0, 3082974647.0, 4246528509.0, 2477669779.0, 644500518, 911895606, 1061256767, 4144166391.0, 3427763148.0, 878471220, 2784252325.0, 3845444069.0, 4043897329.0, 1905517169, 3631459288.0, 827548209, 356461077, 67897348, 3344078279.0, 593839651, 3277757891.0, 405286936, 2527147926.0, 84871685, 2595565466.0, 118033927, 305538066, 2157648768.0, 3795705826.0, 3945188843.0, 661212711, 2999812018.0, 1973414517, 152769033, 2208177539.0, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552.0, 1391895634, 994932283, 3596728278.0, 3016654259.0, 695947817, 3812548067.0, 795958831, 2224493444.0, 1408607827, 3513301457.0, 0, 3979133421.0, 543178784, 4229948412.0, 2982705585.0, 1542305371, 1790891114, 3410398667.0, 3201918910.0, 961245753, 1256100938, 1289001036, 1491644504, 3477767631.0, 3496721360.0, 4012557807.0, 2867154858.0, 4212583931.0, 1137018435, 1305975373, 861234739, 2241073541.0, 1171229253, 4178635257.0, 33948674, 2139225727, 1357946960, 1011120188, 2679776671.0, 2833468328.0, 1374921297, 2751356323.0, 1086357568, 2408187279.0, 2460827538.0, 2646352285.0, 944271416, 4110742005.0, 3168756668.0, 3066132406.0, 3665145818.0, 560153121, 271589392, 4279952895.0, 4077846003.0, 3530407890.0, 3444343245.0, 202643468, 322250259, 3962553324.0, 1608629855, 2543990167.0, 1154254916, 389623319, 3294073796.0, 2817676711.0, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865.0, 1339137615, 3699352540.0, 577127458, 712922154, 2427141008.0, 2290289544.0, 1187679302, 3995715566.0, 3100863416.0, 339486740, 3732514782.0, 1591917662, 186455563, 3681988059.0, 3762019296.0, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650.0, 3547250131.0, 2901361580.0, 1655096418, 2443721105.0, 2510565781.0, 3828863972.0, 2039214713, 3878868455.0, 3359869896.0, 928607799, 1840765549, 2374762893.0, 3580146133.0, 1322425422, 2850048425.0, 1823791212, 1459268694, 4094161908.0, 3928346602.0, 1706019429, 2056189050, 2934523822.0, 135794696, 3134549946.0, 2022240376, 628050469, 779246638, 472135708, 2800834470.0, 3032970164.0, 3327236038.0, 3894660072.0, 3715932637.0, 1956440180, 522272287, 1272813131, 3185336765.0, 2340818315.0, 2323976074.0, 1888542832, 1044544574, 3049550261.0, 1722469478, 1222152264, 50660867, 4127324150.0, 236067854, 1638122081, 895445557, 1475980887, 3117443513.0, 2257655686.0, 3243809217.0, 489110045, 2662934430.0, 3778599393.0, 4162055160.0, 2561878936.0, 288563729, 1773916777, 3648039385.0, 2391345038.0, 2493985684.0, 2612407707.0, 505560094, 2274497927.0, 3911240169.0, 3460925390.0, 1442818645, 678973480, 3749357023.0, 2358182796.0, 2717407649.0, 2306869641.0, 219617805, 3218761151.0, 3862026214.0, 1120306242, 1756942440, 1103331905, 2578459033.0, 762796589, 252780047, 2966125488.0, 1425844308, 3151392187.0, 372911126];
Te3 = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567.0, 1802223062, 1869591006, 3318043793.0, 808472672, 16843522, 1734846926, 724270422, 4278065639.0, 3621216949.0, 2880169549.0, 1987484396, 3402253711.0, 2189597983.0, 3385409673.0, 2105378810, 4210693615.0, 1499065266, 1195886990, 4042263547.0, 2913856577.0, 3570689971.0, 2728590687.0, 2947541573.0, 2627518243.0, 2762274643.0, 1920112356, 3233831835.0, 3082273397.0, 4261223649.0, 2475929149.0, 640051788, 909531756, 1061110142, 4160160501.0, 3435941763.0, 875846760, 2779116625.0, 3857003729.0, 4059105529.0, 1903268834, 3638064043.0, 825316194, 353713962, 67374088, 3351728789.0, 589522246, 3284360861.0, 404236336, 2526454071.0, 84217610, 2593830191.0, 117901582, 303183396, 2155911963.0, 3806477791.0, 3958056653.0, 656894286, 2998062463.0, 1970642922, 151591698, 2206440989.0, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667.0, 1381168804, 993742198, 3604373943.0, 3014905469.0, 690584402, 3823320797.0, 791638366, 2223281939.0, 1398011302, 3520161977.0, 0, 3991743681.0, 538992704, 4244381667.0, 2981218425.0, 1532751286, 1785380564, 3419096717.0, 3200178535.0, 960056178, 1246420628, 1280103576, 1482221744, 3486468741.0, 3503319995.0, 4025428677.0, 2863326543.0, 4227536621.0, 1128514950, 1296947098, 859002214, 2240123921.0, 1162203018, 4193849577.0, 33687044, 2139062782, 1347481760, 1010582648, 2678045221.0, 2829640523.0, 1364325282, 2745433693.0, 1077985408, 2408548869.0, 2459086143.0, 2644360225.0, 943212656, 4126475505.0, 3166494563.0, 3065430391.0, 3671750063.0, 555836226, 269496352, 4294908645.0, 4092792573.0, 3537006015.0, 3452783745.0, 202118168, 320025894, 3974901699.0, 1600119230, 2543297077.0, 1145359496, 387397934, 3301201811.0, 2812801621.0, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945.0, 1330631070, 3705438115.0, 572679748, 707427924, 2425400123.0, 2290647819.0, 1179044492, 4008585671.0, 3099120491.0, 336870440, 3739122087.0, 1583276732, 185277718, 3688593069.0, 3772791771.0, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855.0, 3553849021.0, 2897014595.0, 1650632388, 2442242105.0, 2509612081.0, 3840161747.0, 2038008818, 3890688725.0, 3368567691.0, 926374254, 1835907034, 2374863873.0, 3587531953.0, 1313788572, 2846482505.0, 1819063512, 1448540844, 4109633523.0, 3941213647.0, 1701162954, 2054852340, 2930698567.0, 134748176, 3132806511.0, 2021165296, 623210314, 774795868, 471606328, 2795958615.0, 3031746419.0, 3334885783.0, 3907527627.0, 3722280097.0, 1953799400, 522133822, 1263263126, 3183336545.0, 2341176845.0, 2324333839.0, 1886425312, 1044267644, 3048588401.0, 1718004428, 1212733584, 50529542, 4143317495.0, 235803164, 1633788866, 892690282, 1465383342, 3115962473.0, 2256965911.0, 3250673817.0, 488449850, 2661202215.0, 3789633753.0, 4177007595.0, 2560144171.0, 286339874, 1768537042, 3654906025.0, 2391705863.0, 2492770099.0, 2610673197.0, 505291324, 2273808917.0, 3924369609.0, 3469625735.0, 1431699370, 673740880, 3755965093.0, 2358021891.0, 2711746649.0, 2307489801.0, 218961690, 3217021541.0, 3873845719.0, 1111672452, 1751693520, 1094828930, 2576986153.0, 757954394, 252645662, 2964376443.0, 1414855848, 3149649517.0, 370555436];
Te4 = [1667457891, 2088533116, 2004318071, 2071690107, 4076008178.0, 1802201963, 1869573999, 3318072773.0, 808464432, 16843009, 1734829927, 724249387, 4278124286.0, 3621246935.0, 2880154539.0, 1987475062, 3402287818.0, 2189591170.0, 3385444809.0, 2105376125, 4210752250.0, 1499027801, 1195853639, 4042322160.0, 2913840557.0, 3570717908.0, 2728567458.0, 2947526575.0, 2627509404.0, 2762253476.0, 1920103026, 3233857728.0, 3082270647.0, 4261281277.0, 2475922323.0, 640034342, 909522486, 1061109567, 4160223223.0, 3435973836.0, 875836468, 2779096485.0, 3857049061.0, 4059165169.0, 1903260017, 3638089944.0, 825307441, 353703189, 67372036, 3351758791.0, 589505315, 3284386755.0, 404232216, 2526451350.0, 84215045, 2593823386.0, 117901063, 303174162, 2155905152.0, 3806520034.0, 3958107115.0, 656877351, 2998055602.0, 1970632053, 151587081, 2206434179.0, 741092396, 437918234, 454761243, 1852730990, 1515870810, 2694881440.0, 1381126738, 993737531, 3604403926.0, 3014898611.0, 690563369, 3823363043.0, 791621423, 2223277188.0, 1397969747, 3520188881.0, 0, 3991793133.0, 538976288, 4244438268.0, 2981212593.0, 1532713819, 1785358954, 3419130827.0, 3200171710.0, 960051513, 1246382666, 1280068684, 1482184792, 3486502863.0, 3503345872.0, 4025479151.0, 2863311530.0, 4227595259.0, 1128481603, 1296911693, 858993459, 2240120197.0, 1162167621, 4193909241.0, 33686018, 2139062143, 1347440720, 1010580540, 2678038431.0, 2829625512.0, 1364283729, 2745410467.0, 1077952576, 2408550287.0, 2459079314.0, 2644352413.0, 943208504, 4126537205.0, 3166485692.0, 3065427638.0, 3671775962.0, 555819297, 269488144, 4294967295.0, 4092851187.0, 3537031890.0, 3452816845.0, 202116108, 320017171, 3974950124.0, 1600085855, 2543294359.0, 1145324612, 387389207, 3301229764.0, 2812782503.0, 2122219134, 1027423549, 1684300900, 1566399837, 421075225, 1936946035, 1616928864, 2172748161.0, 1330597711, 3705461980.0, 572662306, 707406378, 2425393296.0, 2290649224.0, 1179010630, 4008636142.0, 3099113656.0, 336860180, 3739147998.0, 1583242846, 185273099, 3688618971.0, 3772834016.0, 842150450, 976894522, 168430090, 1229539657, 101058054, 606348324, 1549556828, 3267543746.0, 3553874899.0, 2896997548.0, 1650614882, 2442236305.0, 2509608341.0, 3840206052.0, 2038004089, 3890735079.0, 3368601800.0, 926365495, 1835887981, 2374864269.0, 3587560917.0, 1313754702, 2846468521.0, 1819044972, 1448498774, 4109694196.0, 3941264106.0, 1701143909, 2054847098, 2930683566.0, 134744072, 3132799674.0, 2021161080, 623191333, 774778414, 471604252, 2795939494.0, 3031741620.0, 3334915782.0, 3907578088.0, 3722304989.0, 1953789044, 522133279, 1263225675, 3183328701.0, 2341178251.0, 2324335242.0, 1886417008, 1044266558, 3048584629.0, 1717986918, 1212696648, 50529027, 4143380214.0, 235802126, 1633771873, 892679477, 1465341783, 3115956665.0, 2256963206.0, 3250700737.0, 488447261, 2661195422.0, 3789677025.0, 4177066232.0, 2560137368.0, 286331153, 1768515945, 3654932953.0, 2391707278.0, 2492765332.0, 2610666395.0, 505290270, 2273806215.0, 3924421097.0, 3469659854.0, 1431655765, 673720360, 3755991007.0, 2358021260.0, 2711724449.0, 2307492233.0, 218959117, 3217014719.0, 3873892070.0, 1111638594, 1751672936, 1094795585, 2576980377.0, 757935405, 252645135, 2964369584.0, 1414812756, 3149642683.0, 370546198];
Td0 = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851.0, 1273168787, 540080725, 2910219766.0, 2295101073.0, 4110568485.0, 1340463100, 3307916247.0, 641025152, 3043140495.0, 3736164937.0, 632953703, 1172967064, 1576976609, 3274667266.0, 2169303058.0, 2370213795.0, 1809054150, 59727847, 361929877, 3211623147.0, 2505202138.0, 3569255213.0, 1484005843, 1239443753, 2395588676.0, 1975683434, 4102977912.0, 2572697195.0, 666464733, 3202437046.0, 4035489047.0, 3374361702.0, 2110667444, 1675577880, 3843699074.0, 2538681184.0, 1649639237, 2976151520.0, 3144396420.0, 4269907996.0, 4178062228.0, 1883793496, 2403728665.0, 2497604743.0, 1383856311, 2876494627.0, 1917518562, 3810496343.0, 1716890410, 3001755655.0, 800440835, 2261089178.0, 3543599269.0, 807962610, 599762354, 33778362, 3977675356.0, 2328828971.0, 2809771154.0, 4077384432.0, 1315562145, 1708848333, 101039829, 3509871135.0, 3299278474.0, 875451293, 2733856160.0, 92987698, 2767645557.0, 193195065, 1080094634, 1584504582, 3178106961.0, 1042385657, 2531067453.0, 3711829422.0, 1306967366, 2438237621.0, 1908694277, 67556463, 1615861247, 429456164, 3602770327.0, 2302690252.0, 1742315127, 2968011453.0, 126454664, 3877198648.0, 2043211483, 2709260871.0, 2084704233, 4169408201.0, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683.0, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969.0, 607530554, 202008497, 2472011535.0, 3035535058.0, 463180190, 2160117071.0, 1641816226, 1517767529, 470948374, 3801332234.0, 3231722213.0, 1008918595, 303765277, 235474187, 4069246893.0, 766945465, 337553864, 1475418501, 2943682380.0, 4003061179.0, 2743034109.0, 4144047775.0, 1551037884, 1147550661, 1543208500, 2336434550.0, 3408119516.0, 3069049960.0, 3102011747.0, 3610369226.0, 1113818384, 328671808, 2227573024.0, 2236228733.0, 3535486456.0, 2935566865.0, 3341394285.0, 496906059, 3702665459.0, 226906860, 2009195472, 733156972, 2842737049.0, 294930682, 1206477858, 2835123396.0, 2700099354.0, 1451044056, 573804783, 2269728455.0, 3644379585.0, 2362090238.0, 2564033334.0, 2801107407.0, 2776292904.0, 3669462566.0, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770.0, 2430122216.0, 775550814, 2193862645.0, 2673705150.0, 1775276924, 1876241833, 3475313331.0, 3366754619.0, 270040487, 3902563182.0, 3678124923.0, 3441850377.0, 1851332852, 3969562369.0, 2203032232.0, 3868552805.0, 2868897406.0, 566021896, 4011190502.0, 3135740889.0, 1248802510, 3936291284.0, 699432150, 832877231, 708780849, 3332740144.0, 899835584, 1951317047, 4236429990.0, 3767586992.0, 866637845, 4043610186.0, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980.0, 3835036895.0, 2664543715.0, 1282050075, 3240894392.0, 1181045119, 2640243204.0, 25965917, 4203181171.0, 4211818798.0, 3009879386.0, 2463879762.0, 3910161971.0, 1842759443, 2597806476.0, 933301370, 1509430414, 3943906441.0, 3467192302.0, 3076639029.0, 3776767469.0, 2051518780, 2631065433.0, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300.0, 2017778566, 3400528769.0, 3110650942.0, 941896748, 3265478751.0, 371049330, 3168937228.0, 675039627, 4279080257.0, 967311729, 135050206, 3635733660.0, 1683407248, 2076935265, 3576870512.0, 1215061108, 3501741890.0];
Td1 = [1347548327, 1400783205, 3273267108.0, 2520393566.0, 3409685355.0, 4045380933.0, 2880240216.0, 2471224067.0, 1428173050, 4138563181.0, 2441661558.0, 636813900, 4233094615.0, 3620022987.0, 2149987652.0, 2411029155.0, 1239331162, 1730525723, 2554718734.0, 3781033664.0, 46346101, 310463728, 2743944855.0, 3328955385.0, 3875770207.0, 2501218972.0, 3955191162.0, 3667219033.0, 768917123, 3545789473.0, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113.0, 3065962831.0, 401639597, 1724457132, 3028143674.0, 409198410, 2196052529.0, 1620529459, 1164071807, 3769721975.0, 2226875310.0, 486441376, 2499348523.0, 1483753576, 428819965, 2274680428.0, 3075636216.0, 598438867, 3799141122.0, 1474502543, 711349675, 129166120, 53458370, 2592523643.0, 2782082824.0, 4063242375.0, 2988687269.0, 3120694122.0, 1559041666, 730517276, 2460449204.0, 4042459122.0, 2706270690.0, 3446004468.0, 3573941694.0, 533804130, 2328143614.0, 2637442643.0, 2695033685.0, 839224033, 1973745387, 957055980, 2856345839.0, 106852767, 1371368976, 4181598602.0, 1033297158, 2933734917.0, 1179510461, 3046200461.0, 91341917, 1862534868, 4284502037.0, 605657339, 2547432937.0, 3431546947.0, 2003294622, 3182487618.0, 2282195339.0, 954669403, 3682191598.0, 1201765386, 3917234703.0, 3388507166.0, 0, 2198438022.0, 1211247597, 2887651696.0, 1315723890, 4227665663.0, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604.0, 975451694, 2970356327.0, 261314535, 3535072918.0, 2652609425.0, 1333838021, 2724322336.0, 1767536459, 370938394, 182621114, 3854606378.0, 1128014560, 487725847, 185469197, 2918353863.0, 3106780840.0, 3356761769.0, 2237133081.0, 1286567175, 3152976349.0, 4255350624.0, 2683765030.0, 3160175349.0, 3309594171.0, 878443390, 1988838185, 3704300486.0, 1756818940, 1673061617, 3403100636.0, 272786309, 1075025698, 545572369, 2105887268, 4174560061.0, 296679730, 1841768865, 1260232239, 4091327024.0, 3960309330.0, 3497509347.0, 1814803222, 2578018489.0, 4195456072.0, 575138148, 3299409036.0, 446754879, 3629546796.0, 4011996048.0, 3347532110.0, 3252238545.0, 4270639778.0, 915985419, 3483825537.0, 681933534, 651868046, 2755636671.0, 3828103837.0, 223377554, 2607439820.0, 1649704518, 3270937875.0, 3901806776.0, 1580087799, 4118987695.0, 3198115200.0, 2087309459, 2842678573.0, 3016697106.0, 1003007129, 2802849917.0, 1860738147, 2077965243, 164439672, 4100872472.0, 32283319, 2827177882.0, 1709610350, 2125135846, 136428751, 3874428392.0, 3652904859.0, 3460984630.0, 3572145929.0, 3593056380.0, 2939266226.0, 824852259, 818324884, 3224740454.0, 930369212, 2801566410.0, 2967507152.0, 355706840, 1257309336, 4148292826.0, 243256656, 790073846, 2373340630.0, 1296297904, 1422699085, 3756299780.0, 3818836405.0, 457992840, 3099667487.0, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921.0, 2050466060, 2388260884.0, 2313884476.0, 4006521127.0, 901210569, 3990953189.0, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895.0, 3931371469.0, 1533017514, 350174575, 2256028891.0, 2177544179.0, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897.0, 1107234197, 1899603969, 3725069491.0, 2631447780.0, 2422494913.0, 1635502980, 1893020342, 1950903388, 1120974935];
Td2 = [2807058932.0, 1699970625, 2764249623.0, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800.0, 1844882806, 1989249228, 1277555970, 3623636965.0, 3419915562.0, 1149249077, 2744104290.0, 1514790577, 459744698, 244860394, 3235995134.0, 1963115311, 4027744588.0, 2544078150.0, 4190530515.0, 1608975247, 2627016082.0, 2062270317, 1507497298, 2200818878.0, 567498868, 1764313568, 3359936201.0, 2305455554.0, 2037970062, 1047239000, 1910319033, 1337376481, 2904027272.0, 2892417312.0, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315.0, 2686254721.0, 731183368, 1750626376, 4246310725.0, 1820824798, 4172763771.0, 3542330227.0, 48394827, 2404901663.0, 2871682645.0, 671593195, 3254988725.0, 2073724613, 145085239, 2280796200.0, 2779915199.0, 1790575107, 2187128086.0, 472615631, 3029510009.0, 4075877127.0, 3802222185.0, 4107101658.0, 3201631749.0, 1646252340, 4270507174.0, 1402811438, 1436590835, 3778151818.0, 3950355702.0, 3963161475.0, 4020912224.0, 2667994737.0, 273792366, 2331590177.0, 104699613, 95345982, 3175501286.0, 2377486676.0, 1560637892, 3564045318.0, 369057872, 4213447064.0, 3919042237.0, 1137477952, 2658625497.0, 1119727848, 2340947849.0, 1530455833, 4007360968.0, 172466556, 266959938, 516552836, 0, 2256734592.0, 3980931627.0, 1890328081, 1917742170, 4294704398.0, 945164165, 3575528878.0, 958871085, 3647212047.0, 2787207260.0, 1423022939, 775562294, 1739656202, 3876557655.0, 2530391278.0, 2443058075.0, 3310321856.0, 547512796, 1265195639, 437656594, 3121275539.0, 719700128, 3762502690.0, 387781147, 218828297, 3350065803.0, 2830708150.0, 2848461854.0, 428169201, 122466165, 3720081049.0, 1627235199, 648017665, 4122762354.0, 1002783846, 2117360635, 695634755, 3336358691.0, 4234721005.0, 4049844452.0, 3704280881.0, 2232435299.0, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185.0, 793451934, 821288114, 1391201670, 3822090177.0, 376187827, 3113855344.0, 1224348052, 1679968233, 2361698556.0, 1058709744, 752375421, 2431590963.0, 1321699145, 3519142200.0, 2734591178.0, 188127444, 2177869557.0, 3727205754.0, 2384911031.0, 3215212461.0, 2648976442.0, 2450346104.0, 3432737375.0, 1180849278, 331544205, 3102249176.0, 4150144569.0, 2952102595.0, 2159976285.0, 2474404304.0, 766078933, 313773861, 2570832044.0, 2108100632, 1668212892, 3145456443.0, 2013908262, 418672217, 3070356634.0, 2594734927.0, 1852171925, 3867060991.0, 3473416636.0, 3907448597.0, 2614737639.0, 919489135, 164948639, 2094410160, 2997825956.0, 590424639, 2486224549.0, 1723872674, 3157750862.0, 3399941250.0, 3501252752.0, 3625268135.0, 2555048196.0, 3673637356.0, 1343127501, 4130281361.0, 3599595085.0, 2957853679.0, 1297403050, 81781910, 3051593425.0, 2283490410.0, 532201772, 1367295589, 3926170974.0, 895287692, 1953757831, 1093597963, 492483431, 3528626907.0, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769.0, 3857572124.0, 2973530695.0, 3747192018.0, 1933530610, 3464042516.0, 935293895, 3454686199.0, 2858115069.0, 1863638845, 3683022916.0, 4085369519.0, 3292445032.0, 875313188, 1080017571, 3279033885.0, 621591778, 1233856572, 2504130317.0, 24197544, 3017672716.0, 3835484340.0, 3247465558.0, 2220981195.0, 3060847922.0, 1551124588, 1463996600];
Td3 = [4104605777.0, 1097159550, 396673818, 660510266, 2875968315.0, 2638606623.0, 4200115116.0, 3808662347.0, 821712160, 1986918061, 3430322568.0, 38544885, 3856137295.0, 718002117, 893681702, 1654886325, 2975484382.0, 3122358053.0, 3926825029.0, 4274053469.0, 796197571, 1290801793, 1184342925, 3556361835.0, 2405426947.0, 2459735317.0, 1836772287, 1381620373, 3196267988.0, 1948373848, 3764988233.0, 3385345166.0, 3263785589.0, 2390325492.0, 1480485785, 3111247143.0, 3780097726.0, 2293045232.0, 548169417, 3459953789.0, 3746175075.0, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046.0, 137073913, 1214797936, 1174215055, 3731654548.0, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170.0, 3049390895.0, 3313212038.0, 923313619, 679998000, 3215307299.0, 57326082, 377642221, 3474729866.0, 2041877159, 133361907, 1776460110, 3673476453.0, 96392454, 878845905, 2801699524.0, 777231668, 4082475170.0, 2330014213.0, 4142626212.0, 2213296395.0, 1626319424, 1906247262, 1846563261, 562755902, 3708173718.0, 1040559837, 3871163981.0, 1418573201, 3294430577.0, 114585348, 1343618912, 2566595609.0, 3186202582.0, 1078185097, 3651041127.0, 3896688048.0, 2307622919.0, 425408743, 3371096953.0, 2081048481, 1108339068, 2216610296.0, 0, 2156299017.0, 736970802, 292596766, 1517440620, 251657213, 2235061775.0, 2933202493.0, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748.0, 2610011675.0, 3234156416.0, 3693126241.0, 2001430874, 303699484, 2478443234.0, 2687165888.0, 585122620, 454499602, 151849742, 2345119218.0, 3064510765.0, 514443284, 4044981591.0, 1963412655, 2581445614.0, 2137062819, 19308535, 1928707164, 1715193156, 4219352155.0, 1126790795, 600235211, 3992742070.0, 3841024952.0, 836553431, 1669664834, 2535604243.0, 3323011204.0, 1243905413, 3141400786.0, 4180808110.0, 698445255, 2653899549.0, 2989552604.0, 2253581325.0, 3252932727.0, 3004591147.0, 1891211689, 2487810577.0, 3915653703.0, 4237083816.0, 4030667424.0, 2100090966, 865136418, 1229899655, 953270745, 3399679628.0, 3557504664.0, 4118925222.0, 2061379749, 3079546586.0, 2915017791.0, 983426092, 2022837584, 1607244650, 2118541908, 2366882550.0, 3635996816.0, 972512814, 3283088770.0, 1568718495, 3499326569.0, 3576539503.0, 621982671, 2895723464.0, 410887952, 2623762152.0, 1002142683, 645401037, 1494807662, 2595684844.0, 1335535747, 2507040230.0, 4293295786.0, 3167684641.0, 367585007, 3885750714.0, 1865862730, 2668221674.0, 2960971305.0, 2763173681.0, 1059270954, 2777952454.0, 2724642869.0, 1320957812, 2194319100.0, 2429595872.0, 2815956275.0, 77089521, 3973773121.0, 3444575871.0, 2448830231.0, 1305906550, 4021308739.0, 2857194700.0, 2516901860.0, 3518358430.0, 1787304780, 740276417, 1699839814, 1592394909, 2352307457.0, 2272556026.0, 188821243, 1729977011, 3687994002.0, 274084841, 3594982253.0, 3613494426.0, 2701949495.0, 4162096729.0, 322734571, 2837966542.0, 1640576439, 484830689, 1202797690, 3537852828.0, 4067639125.0, 349075736, 3342319475.0, 4157467219.0, 4255800159.0, 1030690015, 1155237496, 2951971274.0, 1757691577, 607398968, 2738905026.0, 499347990, 3794078908.0, 1011452712, 227885567, 2818666809.0, 213114376, 3034881240.0, 1455525988, 3414450555.0, 850817237, 1817998408, 3092726480.0];
Td4 = [1381126738, 151587081, 1785358954, 3587560917.0, 808464432, 909522486, 2779096485.0, 943208504, 3217014719.0, 1077952576, 2745410467.0, 2661195422.0, 2172748161.0, 4092851187.0, 3621246935.0, 4227595259.0, 2088533116, 3823363043.0, 960051513, 2189591170.0, 2610666395.0, 791621423, 4294967295.0, 2273806215.0, 875836468, 2391707278.0, 1128481603, 1145324612, 3301229764.0, 3739147998.0, 3924421097.0, 3419130827.0, 1414812756, 2071690107, 2492765332.0, 842150450, 2795939494.0, 3267543746.0, 589505315, 1027423549, 4008636142.0, 1280068684, 2509608341.0, 185273099, 1111638594, 4210752250.0, 3284386755.0, 1313754702, 134744072, 774778414, 2711724449.0, 1717986918, 673720360, 3654932953.0, 606348324, 2998055602.0, 1987475062, 1532713819, 2728567458.0, 1229539657, 1835887981, 2341178251.0, 3520188881.0, 623191333, 1920103026, 4177066232.0, 4143380214.0, 1684300900, 2256963206.0, 1751672936, 2560137368.0, 370546198, 3570717908.0, 2762253476.0, 1549556828, 3435973836.0, 1566399837, 1701143909, 3065427638.0, 2459079314.0, 1819044972, 1886417008, 1212696648, 1347440720, 4261281277.0, 3991793133.0, 3115956665.0, 3671775962.0, 1583242846, 353703189, 1179010630, 1465341783, 2812782503.0, 2374864269.0, 2644352413.0, 2223277188.0, 2425393296.0, 3638089944.0, 2880154539.0, 0, 2358021260.0, 3166485692.0, 3553874899.0, 168430090, 4160223223.0, 3840206052.0, 1482184792, 84215045, 3099113656.0, 3014898611.0, 1162167621, 101058054, 3503345872.0, 741092396, 505290270, 2408550287.0, 3402287818.0, 1061109567, 252645135, 33686018, 3250700737.0, 2947526575.0, 3183328701.0, 50529027, 16843009, 320017171, 2324335242.0, 1802201963, 976894522, 2442236305.0, 286331153, 1094795585, 1330597711, 1734829927, 3705461980.0, 3941264106.0, 2543294359.0, 4076008178.0, 3486502863.0, 3469659854.0, 4042322160.0, 3031741620.0, 3873892070.0, 1936946035, 2526451350.0, 2896997548.0, 1953789044, 572662306, 3890735079.0, 2913840557.0, 892679477, 2240120197.0, 3806520034.0, 4193909241.0, 926365495, 3907578088.0, 471604252, 1970632053, 3755991007.0, 1852730990, 1195853639, 4059165169.0, 437918234, 1903260017, 488447261, 690563369, 3318072773.0, 2307492233.0, 1869573999, 3082270647.0, 1650614882, 235802126, 2863311530.0, 404232216, 3200171710.0, 454761243, 4244438268.0, 1448498774, 1044266558, 1263225675, 3334915782.0, 3537031890.0, 2038004089, 538976288, 2593823386.0, 3688618971.0, 3233857728.0, 4278124286.0, 2021161080, 3452816845.0, 1515870810, 4109694196.0, 522133279, 3722304989.0, 2829625512.0, 858993459, 2290649224.0, 117901063, 3351758791.0, 825307441, 2981212593.0, 303174162, 269488144, 1499027801, 656877351, 2155905152.0, 3974950124.0, 1600085855, 1616928864, 1364283729, 2139062143, 2846468521.0, 421075225, 3048584629.0, 1246382666, 218959117, 757935405, 3857049061.0, 2054847098, 2678038431.0, 2475922323.0, 3385444809.0, 2627509404.0, 4025479151.0, 2694881440.0, 3772834016.0, 993737531, 1296911693, 2930683566.0, 707406378, 4126537205.0, 2964369584.0, 3368601800.0, 3958107115.0, 3149642683.0, 1010580540, 2206434179.0, 1397969747, 2576980377.0, 1633771873, 387389207, 724249387, 67372036, 2122219134, 3132799674.0, 2004318071, 3604403926.0, 640034342, 3789677025.0, 1768515945, 336860180, 1667457891, 1431655765, 555819297, 202116108, 2105376125];
rcon = [16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648.0, 452984832, 905969664];
AES_KEY = function () {
this.rounds = 12;
this.rd_key = [];
};
var aes_key = new AES_KEY();
var decrypt_key = '000102030405060708090a0b0c0d0e0f';
savetext.text = 'Export Save';
yesbutt.buttontext.text = 'CLOSE';
var str = _global.mainsave.convertXML();
savecode.text = str;
savecode.text = encryptfile(savecode.text);
stop();
}
instance yesbutt of movieClip 479 {
onClipEvent (press) {
_parent._visible = false;
}
}
frame 8 {
function AES_set_encrypt_key(userkey, bits, key) {
var v3;
var v4 = 0;
var v1 = 0;
if (userkey == undefined || key == undefined) {
return -1;
}
if (bits != 128 && bits != 192 && bits != 256) {
return -2;
}
if (bits == 128) {
key.rounds = 10;
} else {
if (bits == 192) {
key.rounds = 12;
} else {
key.rounds = 14;
}
}
key.rd_key[0] = parseInt('0x' + userkey.slice(0, 8));
key.rd_key[1] = parseInt('0x' + userkey.slice(8, 16));
key.rd_key[2] = parseInt('0x' + userkey.slice(16, 24));
key.rd_key[3] = parseInt('0x' + userkey.slice(24, 32));
if (bits == 128) {
for (;;) {
v3 = key.rd_key[3 + v1];
key.rd_key[4 + v1] = key.rd_key[v1] ^ Te4[v3 >> 16 & 255] & 4278190080.0 ^ Te4[v3 >> 8 & 255] & 16711680 ^ Te4[v3 & 255] & 65280 ^ Te4[v3 >> 24 & 255] & 255 ^ rcon[v4];
key.rd_key[5 + v1] = key.rd_key[1 + v1] ^ key.rd_key[4 + v1];
key.rd_key[6 + v1] = key.rd_key[2 + v1] ^ key.rd_key[5 + v1];
key.rd_key[7 + v1] = key.rd_key[3 + v1] ^ key.rd_key[6 + v1];
if (++v4 == 10) {
return 0;
}
v1 += 4;
}
}
key.rd_key[4] = parseInt('0x' + userkey.slice(32, 40));
key.rd_key[5] = parseInt('0x' + userkey.slice(40, 48));
if (bits == 192) {
for (;;) {
v3 = key.rd_key[5 + v1];
key.rd_key[6 + v1] = key.rd_key[v1] ^ Te4[v3 >> 16 & 255] & 4278190080.0 ^ Te4[v3 >> 8 & 255] & 16711680 ^ Te4[v3 & 255] & 65280 ^ Te4[v3 >> 24 & 255] & 255 ^ rcon[v4];
key.rd_key[7 + v1] = key.rd_key[1 + v1] ^ key.rd_key[6 + v1];
key.rd_key[8 + v1] = key.rd_key[2 + v1] ^ key.rd_key[7 + v1];
key.rd_key[9 + v1] = key.rd_key[3 + v1] ^ key.rd_key[8 + v1];
if (++v4 == 8) {
return 0;
}
key.rd_key[10 + v1] = key.rd_key[4 + v1] ^ key.rd_key[9 + v1];
key.rd_key[11 + v1] = key.rd_key[5 + v1] ^ key.rd_key[10 + v1];
v1 += 6;
}
}
key.rd_key[6] = parseInt('0x' + userkey.slice(48, 56));
key.rd_key[7] = parseInt('0x' + userkey.slice(56, 64));
if (bits == 256) {
for (;;) {
v3 = key.rd_key[7 + v1];
key.rd_key[8 + v1] = key.rd_key[v1] ^ Te4[v3 >> 16 & 255] & 4278190080.0 ^ Te4[v3 >> 8 & 255] & 16711680 ^ Te4[v3 & 255] & 65280 ^ Te4[v3 >> 24 & 255] & 255 ^ rcon[v4];
key.rd_key[9 + v1] = key.rd_key[1 + v1] ^ key.rd_key[8 + v1];
key.rd_key[10 + v1] = key.rd_key[2 + v1] ^ key.rd_key[9 + v1];
key.rd_key[11 + v1] = key.rd_key[3 + v1] ^ key.rd_key[10 + v1];
if (++v4 == 7) {
return 0;
}
v3 = key.rd_key[11 + v1];
key.rd_key[12 + v1] = key.rd_key[4 + v1] ^ Te4[v3 >> 24 & 255] & 4278190080.0 ^ Te4[v3 >> 16 & 255] & 16711680 ^ Te4[v3 >> 8 & 255] & 65280 ^ Te4[v3 & 255] & 255;
key.rd_key[13 + v1] = key.rd_key[5 + v1] ^ key.rd_key[12 + v1];
key.rd_key[14 + v1] = key.rd_key[6 + v1] ^ key.rd_key[13 + v1];
key.rd_key[15 + v1] = key.rd_key[7 + v1] ^ key.rd_key[14 + v1];
v1 += 8;
}
}
return 0;
}
function AES_set_decrypt_key(userkey, bits, key) {
var v5;
var v3 = 0;
var v4 = 0;
var v2 = 0;
status = AES_set_encrypt_key(userkey, bits, key);
if (status < 0) {
return undefined;
}
v3 = 0;
v4 = 4 * key.rounds;
while (v3 < v4) {
v5 = key.rd_key[v3];
key.rd_key[v3] = key.rd_key[v4];
key.rd_key[v4] = v5;
v5 = key.rd_key[v3 + 1];
key.rd_key[v3 + 1] = key.rd_key[v4 + 1];
key.rd_key[v4 + 1] = v5;
v5 = key.rd_key[v3 + 2];
key.rd_key[v3 + 2] = key.rd_key[v4 + 2];
key.rd_key[v4 + 2] = v5;
v5 = key.rd_key[v3 + 3];
key.rd_key[v3 + 3] = key.rd_key[v4 + 3];
key.rd_key[v4 + 3] = v5;
v3 += 4;
v4 -= 4;
}
v3 = 1;
while (v3 < key.rounds) {
v2 += 4;
key.rd_key[v2] = Td0[Te4[key.rd_key[v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[v2] & 255] & 255];
key.rd_key[1 + v2] = Td0[Te4[key.rd_key[1 + v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[1 + v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[1 + v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[1 + v2] & 255] & 255];
key.rd_key[2 + v2] = Td0[Te4[key.rd_key[2 + v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[2 + v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[2 + v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[2 + v2] & 255] & 255];
key.rd_key[3 + v2] = Td0[Te4[key.rd_key[3 + v2] >> 24 & 255] & 255] ^ Td1[Te4[key.rd_key[3 + v2] >> 16 & 255] & 255] ^ Td2[Te4[key.rd_key[3 + v2] >> 8 & 255] & 255] ^ Td3[Te4[key.rd_key[3 + v2] & 255] & 255];
++v3;
}
return 0;
}
function AES_encrypt(bin, key) {
var v12;
var v10 = 0;
var v5;
var v4;
var v3;
var v2;
var v9;
var v8;
var v7;
var v6;
if (bin == undefined || key == undefined) {
return undefined;
}
v5 = parseInt('0x' + bin.slice(0, 8)) ^ key.rd_key[0];
v4 = parseInt('0x' + bin.slice(8, 16)) ^ key.rd_key[1];
v3 = parseInt('0x' + bin.slice(16, 24)) ^ key.rd_key[2];
v2 = parseInt('0x' + bin.slice(24, 32)) ^ key.rd_key[3];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[4];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[5];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[6];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[7];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[8];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[9];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[10];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[11];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[12];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[13];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[14];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[15];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[16];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[17];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[18];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[19];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[20];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[21];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[22];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[23];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[24];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[25];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[26];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[27];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[28];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[29];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[30];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[31];
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[32];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[33];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[34];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[35];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[36];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[37];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[38];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[39];
if (key.rounds > 10) {
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[40];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[41];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[42];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[43];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[44];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[45];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[46];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[47];
if (key.rounds > 12) {
v5 = Te0[v9 >> 24 & 255] ^ Te1[v8 >> 16 & 255] ^ Te2[v7 >> 8 & 255] ^ Te3[v6 & 255] ^ key.rd_key[48];
v4 = Te0[v8 >> 24 & 255] ^ Te1[v7 >> 16 & 255] ^ Te2[v6 >> 8 & 255] ^ Te3[v9 & 255] ^ key.rd_key[49];
v3 = Te0[v7 >> 24 & 255] ^ Te1[v6 >> 16 & 255] ^ Te2[v9 >> 8 & 255] ^ Te3[v8 & 255] ^ key.rd_key[50];
v2 = Te0[v6 >> 24 & 255] ^ Te1[v9 >> 16 & 255] ^ Te2[v8 >> 8 & 255] ^ Te3[v7 & 255] ^ key.rd_key[51];
v9 = Te0[v5 >> 24 & 255] ^ Te1[v4 >> 16 & 255] ^ Te2[v3 >> 8 & 255] ^ Te3[v2 & 255] ^ key.rd_key[52];
v8 = Te0[v4 >> 24 & 255] ^ Te1[v3 >> 16 & 255] ^ Te2[v2 >> 8 & 255] ^ Te3[v5 & 255] ^ key.rd_key[53];
v7 = Te0[v3 >> 24 & 255] ^ Te1[v2 >> 16 & 255] ^ Te2[v5 >> 8 & 255] ^ Te3[v4 & 255] ^ key.rd_key[54];
v6 = Te0[v2 >> 24 & 255] ^ Te1[v5 >> 16 & 255] ^ Te2[v4 >> 8 & 255] ^ Te3[v3 & 255] ^ key.rd_key[55];
}
}
v10 = key.rounds << 2;
v5 = Te4[v9 >> 24 & 255] & 4278190080.0 ^ Te4[v8 >> 16 & 255] & 16711680 ^ Te4[v7 >> 8 & 255] & 65280 ^ Te4[v6 & 255] & 255 ^ key.rd_key[v10];
out = byte2hex(v5 >> 24 & 255);
out += byte2hex(v5 >> 16 & 255);
out += byte2hex(v5 >> 8 & 255);
out += byte2hex(v5 & 255);
v4 = Te4[v8 >> 24 & 255] & 4278190080.0 ^ Te4[v7 >> 16 & 255] & 16711680 ^ Te4[v6 >> 8 & 255] & 65280 ^ Te4[v9 & 255] & 255 ^ key.rd_key[v10 + 1];
out += byte2hex(v4 >> 24 & 255);
out += byte2hex(v4 >> 16 & 255);
out += byte2hex(v4 >> 8 & 255);
out += byte2hex(v4 & 255);
v3 = Te4[v7 >> 24 & 255] & 4278190080.0 ^ Te4[v6 >> 16 & 255] & 16711680 ^ Te4[v9 >> 8 & 255] & 65280 ^ Te4[v8 & 255] & 255 ^ key.rd_key[v10 + 2];
out += byte2hex(v3 >> 24 & 255);
out += byte2hex(v3 >> 16 & 255);
out += byte2hex(v3 >> 8 & 255);
out += byte2hex(v3 & 255);
v2 = Te4[v6 >> 24 & 255] & 4278190080.0 ^ Te4[v9 >> 16 & 255] & 16711680 ^ Te4[v8 >> 8 & 255] & 65280 ^ Te4[v7 & 255] & 255 ^ key.rd_key[v10 + 3];
out += byte2hex(v2 >> 24 & 255);
out += byte2hex(v2 >> 16 & 255);
out += byte2hex(v2 >> 8 & 255);
out += byte2hex(v2 & 255);
return out;
}
function AES_decrypt(bin, key) {
var v12;
var v10 = 0;
var v5;
var v4;
var v3;
var v2;
var v9;
var v8;
var v7;
var v6;
if (bin == undefined || key == undefined) {
return undefined;
}
v5 = parseInt('0x' + bin.slice(0, 8)) ^ key.rd_key[0];
v4 = parseInt('0x' + bin.slice(8, 16)) ^ key.rd_key[1];
v3 = parseInt('0x' + bin.slice(16, 24)) ^ key.rd_key[2];
v2 = parseInt('0x' + bin.slice(24, 32)) ^ key.rd_key[3];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[4];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[5];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[6];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[7];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[8];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[9];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[10];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[11];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[12];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[13];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[14];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[15];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[16];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[17];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[18];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[19];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[20];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[21];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[22];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[23];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[24];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[25];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[26];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[27];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[28];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[29];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[30];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[31];
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[32];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[33];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[34];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[35];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[36];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[37];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[38];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[39];
if (key.rounds > 10) {
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[40];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[41];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[42];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[43];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[44];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[45];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[46];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[47];
if (key.rounds > 12) {
v5 = Td0[v9 >> 24 & 255] ^ Td1[v6 >> 16 & 255] ^ Td2[v7 >> 8 & 255] ^ Td3[v8 & 255] ^ key.rd_key[48];
v4 = Td0[v8 >> 24 & 255] ^ Td1[v9 >> 16 & 255] ^ Td2[v6 >> 8 & 255] ^ Td3[v7 & 255] ^ key.rd_key[49];
v3 = Td0[v7 >> 24 & 255] ^ Td1[v8 >> 16 & 255] ^ Td2[v9 >> 8 & 255] ^ Td3[v6 & 255] ^ key.rd_key[50];
v2 = Td0[v6 >> 24 & 255] ^ Td1[v7 >> 16 & 255] ^ Td2[v8 >> 8 & 255] ^ Td3[v9 & 255] ^ key.rd_key[51];
v9 = Td0[v5 >> 24 & 255] ^ Td1[v2 >> 16 & 255] ^ Td2[v3 >> 8 & 255] ^ Td3[v4 & 255] ^ key.rd_key[52];
v8 = Td0[v4 >> 24 & 255] ^ Td1[v5 >> 16 & 255] ^ Td2[v2 >> 8 & 255] ^ Td3[v3 & 255] ^ key.rd_key[53];
v7 = Td0[v3 >> 24 & 255] ^ Td1[v4 >> 16 & 255] ^ Td2[v5 >> 8 & 255] ^ Td3[v2 & 255] ^ key.rd_key[54];
v6 = Td0[v2 >> 24 & 255] ^ Td1[v3 >> 16 & 255] ^ Td2[v4 >> 8 & 255] ^ Td3[v5 & 255] ^ key.rd_key[55];
}
}
v10 = key.rounds << 2;
v5 = Td4[v9 >> 24 & 255] & 4278190080.0 ^ Td4[v6 >> 16 & 255] & 16711680 ^ Td4[v7 >> 8 & 255] & 65280 ^ Td4[v8 & 255] & 255 ^ key.rd_key[v10];
out = byte2hex(v5 >> 24 & 255);
out += byte2hex(v5 >> 16 & 255);
out += byte2hex(v5 >> 8 & 255);
out += byte2hex(v5 & 255);
v4 = Td4[v8 >> 24 & 255] & 4278190080.0 ^ Td4[v9 >> 16 & 255] & 16711680 ^ Td4[v6 >> 8 & 255] & 65280 ^ Td4[v7 & 255] & 255 ^ key.rd_key[v10 + 1];
out += byte2hex(v4 >> 24 & 255);
out += byte2hex(v4 >> 16 & 255);
out += byte2hex(v4 >> 8 & 255);
out += byte2hex(v4 & 255);
v3 = Td4[v7 >> 24 & 255] & 4278190080.0 ^ Td4[v8 >> 16 & 255] & 16711680 ^ Td4[v9 >> 8 & 255] & 65280 ^ Td4[v6 & 255] & 255 ^ key.rd_key[v10 + 2];
out += byte2hex(v3 >> 24 & 255);
out += byte2hex(v3 >> 16 & 255);
out += byte2hex(v3 >> 8 & 255);
out += byte2hex(v3 & 255);
v2 = Td4[v6 >> 24 & 255] & 4278190080.0 ^ Td4[v7 >> 16 & 255] & 16711680 ^ Td4[v8 >> 8 & 255] & 65280 ^ Td4[v9 & 255] & 255 ^ key.rd_key[v10 + 3];
out += byte2hex(v2 >> 24 & 255);
out += byte2hex(v2 >> 16 & 255);
out += byte2hex(v2 >> 8 & 255);
out += byte2hex(v2 & 255);
return out;
}
function AES_ecb_encrypt(bin, key, enc) {
if (bin == undefined || key == undefined) {
return undefined;
}
if (enc != 'AES_ENCRYPT' && enc != 'AES_DECRYPT') {
return undefined;
}
if (enc == 'AES_ENCRYPT') {
bout = AES_encrypt(bin, key);
return bout;
}
bout = AES_decrypt(bin, key);
return bout;
}
function AES_cbc_encrypt(bin, key, ivec, enc) {
var v7;
var v1;
var v5;
var v8;
var v4;
var v2;
var v3;
if (bin == undefined || key == undefined || ivec == undefined) {
return undefined;
}
v7 = bin.length;
if (v7 % 32 != 0) {
return undefined;
}
if (enc != 'AES_ENCRYPT' && enc != 'AES_DECRYPT') {
return undefined;
}
v2 = bin;
if (enc == 'AES_ENCRYPT') {
while (v7 > 0) {
v5 = '';
v1 = 0;
while (v1 < 32) {
v3 = parseInt('0x' + v2.slice(v1, v1 + 2)) ^ parseInt('0x' + ivec.slice(v1, v1 + 2));
v5 += byte2hex(v3);
v1 += 2;
}
v4 = AES_encrypt(v5, key);
ivec = v4;
v7 -= 32;
v2 = v2.slice(32);
v8 += v4;
}
return v8;
}
while (v7 > 0) {
v5 = AES_decrypt(v2, key);
v4 = '';
v1 = 0;
while (v1 < 32) {
v3 = parseInt('0x' + v5.slice(v1, v1 + 2)) ^ parseInt('0x' + ivec.slice(v1, v1 + 2));
v4 += byte2hex(v3);
v1 += 2;
}
ivec = v2;
v7 -= 32;
v2 = v2.slice(32);
v8 += v4;
}
return v8;
}
function byte2hex(byte) {
if ((byte.toString(16)).length < 2) {
return '0' + (byte.toString(16)).toUpperCase();
} else {
return (byte.toString(16)).toUpperCase();
}
}
function string2hex(s) {
var v3 = '';
var v1 = 0;
while (v1 < s.length) {
if (((s.charCodeAt(v1)).toString(16)).length < 2) {
v3 += '0' + ((s.charCodeAt(v1)).toString(16)).toUpperCase();
} else {
v3 += ((s.charCodeAt(v1)).toString(16)).toUpperCase();
}
++v1;
}
return v3;
}
function hex2string(hex) {
var v3 = '';
if (hex.length % 2 == 1) {
stop();
}
var v1 = 0;
while (v1 < hex.length) {
v3 += String.fromCharCode(parseInt('0x' + hex.slice(v1, v1 + 2)));
v1 += 2;
}
return v3;
}
function decryptfile(decodefile) {
var v1 = decodefile;
AES_set_decrypt_key(decrypt_key, 128, aes_key);
var v2 = '';
while (v1.length > 16) {
tmpcry = v1.substr(0, 32);
v1 = v1.substr(32, v1.length);
plain = AES_ecb_encrypt(tmpcry, aes_key, 'AES_DECRYPT');
v2 += hex2string(plain);
}
return v2;
}
function encryptfile(filecontent) {
AES_set_encrypt_key(decrypt_key, 128, aes_key);
var v4 = '';
while (filecontent.length > 0) {
var v2 = '';
if (filecontent.length >= 16) {
v2 = substring(filecontent, 0, 16);
filecontent = substring(filecontent, 17, filecontent.length);
} else {
v2 = substring(filecontent, 0, filecontent.length);
filecontent = '';
}
while (v2.length != 16) {
v2 += ' ';
}
var v3 = AES_ecb_encrypt(string2hex(v2), aes_key, 'AES_ENCRYPT');
v4 += v3;
}
return v4;
}
Te0 = [3328402341.0, 4168907908.0, 4000806809.0, 4135287693.0, 4294111757.0, 3597364157.0, 3731845041.0, 2445657428.0, 1613770832, 33620227, 3462883241.0, 1445669757, 3892248089.0, 3050821474.0, 1303096294, 3967186586.0, 2412431941.0, 528646813, 2311702848.0, 4202528135.0, 4026202645.0, 2992200171.0, 2387036105.0, 4226871307.0, 1101901292, 3017069671.0, 1604494077, 1169141738, 597466303, 1403299063, 3832705686.0, 2613100635.0, 1974974402, 3791519004.0, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546.0, 2211236943.0, 1748251740, 1369810420, 3521504564.0, 4193382664.0, 3799085459.0, 2883115123.0, 1647391059, 706024767, 134480908, 2512897874.0, 1176707941, 2646852446.0, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221.0, 3454790438.0, 1311188841, 2142417613, 3933566367.0, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818.0, 3025820398.0, 1537253627, 2756858614.0, 1983593293, 3084310113.0, 2108928974, 1378429307, 3722699582.0, 1580150641, 327451799, 2790478837.0, 3117535592.0, 0, 3253595436.0, 1075847264, 3825007647.0, 2041688520, 3059440621.0, 3563743934.0, 2378943302.0, 1740553945, 1916352843, 2487896798.0, 2555137236.0, 2958579944.0, 2244988746.0, 3151024235.0, 3320835882.0, 1336584933, 3992714006.0, 2252555205.0, 2588757463.0, 1714631509, 293963156, 2319795663.0, 3925473552.0, 67240454, 4269768577.0, 2689618160.0, 2017213508, 631218106, 1269344483, 2723238387.0, 1571005438, 2151694528.0, 93294474, 1066570413, 563977660, 1882732616, 4059428100.0, 1673313503, 2008463041, 2950355573.0, 1109467491, 537923632, 3858759450.0, 4260623118.0, 3218264685.0, 2177748300.0, 403442708, 638784309, 3287084079.0, 3193921505.0, 899127202, 2286175436.0, 773265209, 2479146071.0, 1437050866, 4236148354.0, 2050833735, 3362022572.0, 3126681063.0, 840505643, 3866325909.0, 3227541664.0, 427917720, 2655997905.0, 2749160575.0, 1143087718, 1412049534, 999329963, 193497219, 2353415882.0, 3354324521.0, 1807268051, 672404540, 2816401017.0, 3160301282.0, 369822493, 2916866934.0, 3688947771.0, 1681011286, 1949973070, 336202270, 2454276571.0, 201721354, 1210328172, 3093060836.0, 2680341085.0, 3184776046.0, 1135389935, 3294782118.0, 965841320, 831886756, 3554993207.0, 4068047243.0, 3588745010.0, 2345191491.0, 1849112409, 3664604599.0, 26054028, 2983581028.0, 2622377682.0, 1235855840, 3630984372.0, 2891339514.0, 4092916743.0, 3488279077.0, 3395642799.0, 4101667470.0, 1202630377, 268961816, 1874508501, 4034427016.0, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513.0, 3421038627.0, 2715671932.0, 3899946140.0, 1042226977, 2521517021.0, 1639824860, 227249030, 260737669, 3765465232.0, 2084453954, 1907733956, 3429263018.0, 2420656344.0, 100860677, 4160157185.0, 470683154, 3261161891.0, 1781871967, 2924959737.0, 1773779408, 394692241, 2579611992.0, 974986535, 664706745, 3655459128.0, 3958962195.0, 731420851, 571543859, 3530123707.0, 2849626480.0, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984.0, 2278477385.0, 2857719295.0, 1344809080, 2782912378.0, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649.0, 2218934982.0, 3496503480.0, 2185314755.0, 697932208, 1512910199, 504303377, 2075177163, 2824099068.0, 1841019862, 739644986];
Te1 = [2781242211.0, 2230877308.0, 2582542199.0, 2381740923.0, 234877682, 3184946027.0, 2984144751.0, 1418839493, 1348481072, 50462977, 2848876391.0, 2102799147, 434634494, 1656084439, 3863849899.0, 2599188086.0, 1167051466, 2636087938.0, 1082771913, 2281340285.0, 368048890, 3954334041.0, 3381544775.0, 201060592, 3963727277.0, 1739838676, 4250903202.0, 3930435503.0, 3206782108.0, 4149453988.0, 2531553906.0, 1536934080, 3262494647.0, 484572669, 2923271059.0, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525.0, 886171109, 150598129, 2481090929.0, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806.0, 252314885, 3039795866.0, 151914247, 908333586, 2602270848.0, 1038082786, 651029483, 1766729511, 3447698098.0, 2682942837.0, 454166793, 2652734339.0, 1951935532, 775166490, 758520603, 3000790638.0, 4004797018.0, 4217086112.0, 4137964114.0, 1299594043, 1639438038, 3464344499.0, 2068982057, 1054729187, 1901997871, 2534638724.0, 4121318227.0, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545.0, 3988151131.0, 3201591914.0, 1183697867, 3647454910.0, 1265776953, 3734260298.0, 3566750796.0, 3903871064.0, 1250283471, 1807470800, 717615087, 3847203498.0, 384695291, 3313910595.0, 3617213773.0, 1432761139, 2484176261.0, 3481945413.0, 283769337, 100925954, 2180939647.0, 4037038160.0, 1148730428, 3123027871.0, 3813386408.0, 4087501137.0, 4267549603.0, 3229630528.0, 2315620239.0, 2906624658.0, 3156319645.0, 1215313976, 82966005, 3747855548.0, 3245848246.0, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855.0, 2721421207.0, 3431482436.0, 959321879, 1469301956, 4065699751.0, 2197585534.0, 1199193405, 2898814052.0, 3887750493.0, 724703513, 2514908019.0, 2696962144.0, 2551808385.0, 3516813135.0, 2141445340, 1715741218, 2119445034, 2872807568.0, 2198571144.0, 3398190662.0, 700968686, 3547052216.0, 1009259540, 2041044702, 3803995742.0, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321.0, 168560134, 1816667172, 3837287516.0, 1570751170, 1857934291, 4014189740.0, 2797888098.0, 2822345105.0, 2754712981.0, 936633572, 2347923833.0, 852879335, 1133234376, 1500395319, 3084545389.0, 2348912013.0, 1689376213, 3533459022.0, 3762923945.0, 3034082412.0, 4205598294.0, 133428468, 634383082, 2949277029.0, 2398386810.0, 3913789102.0, 403703816, 3580869306.0, 2297460856.0, 1867130149, 1918643758, 607656988, 4049053350.0, 3346248884.0, 1368901318, 600565992, 2090982877, 2632479860.0, 557719327, 3717614411.0, 3697393085.0, 2249034635.0, 2232388234.0, 2430627952.0, 1115438654, 3295786421.0, 2865522278.0, 3633334344.0, 84280067, 33027830, 303828494, 2747425121.0, 1600795957, 4188952407.0, 3496589753.0, 2434238086.0, 1486471617, 658119965, 3106381470.0, 953803233, 334231800, 3005978776.0, 857870609, 3151128937.0, 1890179545, 2298973838.0, 2805175444.0, 3056442267.0, 574365214, 2450884487.0, 550103529, 1233637070, 4289353045.0, 2018519080, 2057691103, 2399374476.0, 4166623649.0, 2148108681.0, 387583245, 3664101311.0, 836232934, 3330556482.0, 3100665960.0, 3280093505.0, 2955516313.0, 2002398509, 287182607, 3413881008.0, 4238890068.0, 3597515707.0, 975967766];
Te2 = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762.0, 1807603307, 1873927791, 3310653893.0, 810573872, 16974337, 1739181671, 729634347, 4263110654.0, 3613570519.0, 2883997099.0, 1989864566, 3393556426.0, 2191335298.0, 3376449993.0, 2106063485, 4195741690.0, 1508618841, 1204391495, 4027317232.0, 2917941677.0, 3563566036.0, 2734514082.0, 2951366063.0, 2629772188.0, 2767672228.0, 1922491506, 3227229120.0, 3082974647.0, 4246528509.0, 2477669779.0, 644500518, 911895606, 1061256767, 4144166391.0, 3427763148.0, 878471220, 2784252325.0, 3845444069.0, 4043897329.0, 1905517169, 3631459288.0, 827548209, 356461077, 67897348, 3344078279.0, 593839651, 3277757891.0, 405286936, 2527147926.0, 84871685, 2595565466.0, 118033927, 305538066, 2157648768.0, 3795705826.0, 3945188843.0, 661212711, 2999812018.0, 1973414517, 152769033, 2208177539.0, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552.0, 1391895634, 994932283, 3596728278.0, 3016654259.0, 695947817, 3812548067.0, 795958831, 2224493444.0, 1408607827, 3513301457.0, 0, 3979133421.0, 543178784, 4229948412.0, 2982705585.0, 1542305371, 1790891114, 3410398667.0, 3201918910.0, 961245753, 1256100938, 1289001036, 1491644504, 3477767631.0, 3496721360.0, 4012557807.0, 2867154858.0, 4212583931.0, 1137018435, 1305975373, 861234739, 2241073541.0, 1171229253, 4178635257.0, 33948674, 2139225727, 1357946960, 1011120188, 2679776671.0, 2833468328.0, 1374921297, 2751356323.0, 1086357568, 2408187279.0, 2460827538.0, 2646352285.0, 944271416, 4110742005.0, 3168756668.0, 3066132406.0, 3665145818.0, 560153121, 271589392, 4279952895.0, 4077846003.0, 3530407890.0, 3444343245.0, 202643468, 322250259, 3962553324.0, 1608629855, 2543990167.0, 1154254916, 389623319, 3294073796.0, 2817676711.0, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865.0, 1339137615, 3699352540.0, 577127458, 712922154, 2427141008.0, 2290289544.0, 1187679302, 3995715566.0, 3100863416.0, 339486740, 3732514782.0, 1591917662, 186455563, 3681988059.0, 3762019296.0, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650.0, 3547250131.0, 2901361580.0, 1655096418, 2443721105.0, 2510565781.0, 3828863972.0, 2039214713, 3878868455.0, 3359869896.0, 928607799, 1840765549, 2374762893.0, 3580146133.0, 1322425422, 2850048425.0, 1823791212, 1459268694, 4094161908.0, 3928346602.0, 1706019429, 2056189050, 2934523822.0, 135794696, 3134549946.0, 2022240376, 628050469, 779246638, 472135708, 2800834470.0, 3032970164.0, 3327236038.0, 3894660072.0, 3715932637.0, 1956440180, 522272287, 1272813131, 3185336765.0, 2340818315.0, 2323976074.0, 1888542832, 1044544574, 3049550261.0, 1722469478, 1222152264, 50660867, 4127324150.0, 236067854, 1638122081, 895445557, 1475980887, 3117443513.0, 2257655686.0, 3243809217.0, 489110045, 2662934430.0, 3778599393.0, 4162055160.0, 2561878936.0, 288563729, 1773916777, 3648039385.0, 2391345038.0, 2493985684.0, 2612407707.0, 505560094, 2274497927.0, 3911240169.0, 3460925390.0, 1442818645, 678973480, 3749357023.0, 2358182796.0, 2717407649.0, 2306869641.0, 219617805, 3218761151.0, 3862026214.0, 1120306242, 1756942440, 1103331905, 2578459033.0, 762796589, 252780047, 2966125488.0, 1425844308, 3151392187.0, 372911126];
Te3 = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567.0, 1802223062, 1869591006, 3318043793.0, 808472672, 16843522, 1734846926, 724270422, 4278065639.0, 3621216949.0, 2880169549.0, 1987484396, 3402253711.0, 2189597983.0, 3385409673.0, 2105378810, 4210693615.0, 1499065266, 1195886990, 4042263547.0, 2913856577.0, 3570689971.0, 2728590687.0, 2947541573.0, 2627518243.0, 2762274643.0, 1920112356, 3233831835.0, 3082273397.0, 4261223649.0, 2475929149.0, 640051788, 909531756, 1061110142, 4160160501.0, 3435941763.0, 875846760, 2779116625.0, 3857003729.0, 4059105529.0, 1903268834, 3638064043.0, 825316194, 353713962, 67374088, 3351728789.0, 589522246, 3284360861.0, 404236336, 2526454071.0, 84217610, 2593830191.0, 117901582, 303183396, 2155911963.0, 3806477791.0, 3958056653.0, 656894286, 2998062463.0, 1970642922, 151591698, 2206440989.0, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667.0, 1381168804, 993742198, 3604373943.0, 3014905469.0, 690584402, 3823320797.0, 791638366, 2223281939.0, 1398011302, 3520161977.0, 0, 3991743681.0, 538992704, 4244381667.0, 2981218425.0, 1532751286, 1785380564, 3419096717.0, 3200178535.0, 960056178, 1246420628, 1280103576, 1482221744, 3486468741.0, 3503319995.0, 4025428677.0, 2863326543.0, 4227536621.0, 1128514950, 1296947098, 859002214, 2240123921.0, 1162203018, 4193849577.0, 33687044, 2139062782, 1347481760, 1010582648, 2678045221.0, 2829640523.0, 1364325282, 2745433693.0, 1077985408, 2408548869.0, 2459086143.0, 2644360225.0, 943212656, 4126475505.0, 3166494563.0, 3065430391.0, 3671750063.0, 555836226, 269496352, 4294908645.0, 4092792573.0, 3537006015.0, 3452783745.0, 202118168, 320025894, 3974901699.0, 1600119230, 2543297077.0, 1145359496, 387397934, 3301201811.0, 2812801621.0, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945.0, 1330631070, 3705438115.0, 572679748, 707427924, 2425400123.0, 2290647819.0, 1179044492, 4008585671.0, 3099120491.0, 336870440, 3739122087.0, 1583276732, 185277718, 3688593069.0, 3772791771.0, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855.0, 3553849021.0, 2897014595.0, 1650632388, 2442242105.0, 2509612081.0, 3840161747.0, 2038008818, 3890688725.0, 3368567691.0, 926374254, 1835907034, 2374863873.0, 3587531953.0, 1313788572, 2846482505.0, 1819063512, 1448540844, 4109633523.0, 3941213647.0, 1701162954, 2054852340, 2930698567.0, 134748176, 3132806511.0, 2021165296, 623210314, 774795868, 471606328, 2795958615.0, 3031746419.0, 3334885783.0, 3907527627.0, 3722280097.0, 1953799400, 522133822, 1263263126, 3183336545.0, 2341176845.0, 2324333839.0, 1886425312, 1044267644, 3048588401.0, 1718004428, 1212733584, 50529542, 4143317495.0, 235803164, 1633788866, 892690282, 1465383342, 3115962473.0, 2256965911.0, 3250673817.0, 488449850, 2661202215.0, 3789633753.0, 4177007595.0, 2560144171.0, 286339874, 1768537042, 3654906025.0, 2391705863.0, 2492770099.0, 2610673197.0, 505291324, 2273808917.0, 3924369609.0, 3469625735.0, 1431699370, 673740880, 3755965093.0, 2358021891.0, 2711746649.0, 2307489801.0, 218961690, 3217021541.0, 3873845719.0, 1111672452, 1751693520, 1094828930, 2576986153.0, 757954394, 252645662, 2964376443.0, 1414855848, 3149649517.0, 370555436];
Te4 = [1667457891, 2088533116, 2004318071, 2071690107, 4076008178.0, 1802201963, 1869573999, 3318072773.0, 808464432, 16843009, 1734829927, 724249387, 4278124286.0, 3621246935.0, 2880154539.0, 1987475062, 3402287818.0, 2189591170.0, 3385444809.0, 2105376125, 4210752250.0, 1499027801, 1195853639, 4042322160.0, 2913840557.0, 3570717908.0, 2728567458.0, 2947526575.0, 2627509404.0, 2762253476.0, 1920103026, 3233857728.0, 3082270647.0, 4261281277.0, 2475922323.0, 640034342, 909522486, 1061109567, 4160223223.0, 3435973836.0, 875836468, 2779096485.0, 3857049061.0, 4059165169.0, 1903260017, 3638089944.0, 825307441, 353703189, 67372036, 3351758791.0, 589505315, 3284386755.0, 404232216, 2526451350.0, 84215045, 2593823386.0, 117901063, 303174162, 2155905152.0, 3806520034.0, 3958107115.0, 656877351, 2998055602.0, 1970632053, 151587081, 2206434179.0, 741092396, 437918234, 454761243, 1852730990, 1515870810, 2694881440.0, 1381126738, 993737531, 3604403926.0, 3014898611.0, 690563369, 3823363043.0, 791621423, 2223277188.0, 1397969747, 3520188881.0, 0, 3991793133.0, 538976288, 4244438268.0, 2981212593.0, 1532713819, 1785358954, 3419130827.0, 3200171710.0, 960051513, 1246382666, 1280068684, 1482184792, 3486502863.0, 3503345872.0, 4025479151.0, 2863311530.0, 4227595259.0, 1128481603, 1296911693, 858993459, 2240120197.0, 1162167621, 4193909241.0, 33686018, 2139062143, 1347440720, 1010580540, 2678038431.0, 2829625512.0, 1364283729, 2745410467.0, 1077952576, 2408550287.0, 2459079314.0, 2644352413.0, 943208504, 4126537205.0, 3166485692.0, 3065427638.0, 3671775962.0, 555819297, 269488144, 4294967295.0, 4092851187.0, 3537031890.0, 3452816845.0, 202116108, 320017171, 3974950124.0, 1600085855, 2543294359.0, 1145324612, 387389207, 3301229764.0, 2812782503.0, 2122219134, 1027423549, 1684300900, 1566399837, 421075225, 1936946035, 1616928864, 2172748161.0, 1330597711, 3705461980.0, 572662306, 707406378, 2425393296.0, 2290649224.0, 1179010630, 4008636142.0, 3099113656.0, 336860180, 3739147998.0, 1583242846, 185273099, 3688618971.0, 3772834016.0, 842150450, 976894522, 168430090, 1229539657, 101058054, 606348324, 1549556828, 3267543746.0, 3553874899.0, 2896997548.0, 1650614882, 2442236305.0, 2509608341.0, 3840206052.0, 2038004089, 3890735079.0, 3368601800.0, 926365495, 1835887981, 2374864269.0, 3587560917.0, 1313754702, 2846468521.0, 1819044972, 1448498774, 4109694196.0, 3941264106.0, 1701143909, 2054847098, 2930683566.0, 134744072, 3132799674.0, 2021161080, 623191333, 774778414, 471604252, 2795939494.0, 3031741620.0, 3334915782.0, 3907578088.0, 3722304989.0, 1953789044, 522133279, 1263225675, 3183328701.0, 2341178251.0, 2324335242.0, 1886417008, 1044266558, 3048584629.0, 1717986918, 1212696648, 50529027, 4143380214.0, 235802126, 1633771873, 892679477, 1465341783, 3115956665.0, 2256963206.0, 3250700737.0, 488447261, 2661195422.0, 3789677025.0, 4177066232.0, 2560137368.0, 286331153, 1768515945, 3654932953.0, 2391707278.0, 2492765332.0, 2610666395.0, 505290270, 2273806215.0, 3924421097.0, 3469659854.0, 1431655765, 673720360, 3755991007.0, 2358021260.0, 2711724449.0, 2307492233.0, 218959117, 3217014719.0, 3873892070.0, 1111638594, 1751672936, 1094795585, 2576980377.0, 757935405, 252645135, 2964369584.0, 1414812756, 3149642683.0, 370546198];
Td0 = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851.0, 1273168787, 540080725, 2910219766.0, 2295101073.0, 4110568485.0, 1340463100, 3307916247.0, 641025152, 3043140495.0, 3736164937.0, 632953703, 1172967064, 1576976609, 3274667266.0, 2169303058.0, 2370213795.0, 1809054150, 59727847, 361929877, 3211623147.0, 2505202138.0, 3569255213.0, 1484005843, 1239443753, 2395588676.0, 1975683434, 4102977912.0, 2572697195.0, 666464733, 3202437046.0, 4035489047.0, 3374361702.0, 2110667444, 1675577880, 3843699074.0, 2538681184.0, 1649639237, 2976151520.0, 3144396420.0, 4269907996.0, 4178062228.0, 1883793496, 2403728665.0, 2497604743.0, 1383856311, 2876494627.0, 1917518562, 3810496343.0, 1716890410, 3001755655.0, 800440835, 2261089178.0, 3543599269.0, 807962610, 599762354, 33778362, 3977675356.0, 2328828971.0, 2809771154.0, 4077384432.0, 1315562145, 1708848333, 101039829, 3509871135.0, 3299278474.0, 875451293, 2733856160.0, 92987698, 2767645557.0, 193195065, 1080094634, 1584504582, 3178106961.0, 1042385657, 2531067453.0, 3711829422.0, 1306967366, 2438237621.0, 1908694277, 67556463, 1615861247, 429456164, 3602770327.0, 2302690252.0, 1742315127, 2968011453.0, 126454664, 3877198648.0, 2043211483, 2709260871.0, 2084704233, 4169408201.0, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683.0, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969.0, 607530554, 202008497, 2472011535.0, 3035535058.0, 463180190, 2160117071.0, 1641816226, 1517767529, 470948374, 3801332234.0, 3231722213.0, 1008918595, 303765277, 235474187, 4069246893.0, 766945465, 337553864, 1475418501, 2943682380.0, 4003061179.0, 2743034109.0, 4144047775.0, 1551037884, 1147550661, 1543208500, 2336434550.0, 3408119516.0, 3069049960.0, 3102011747.0, 3610369226.0, 1113818384, 328671808, 2227573024.0, 2236228733.0, 3535486456.0, 2935566865.0, 3341394285.0, 496906059, 3702665459.0, 226906860, 2009195472, 733156972, 2842737049.0, 294930682, 1206477858, 2835123396.0, 2700099354.0, 1451044056, 573804783, 2269728455.0, 3644379585.0, 2362090238.0, 2564033334.0, 2801107407.0, 2776292904.0, 3669462566.0, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770.0, 2430122216.0, 775550814, 2193862645.0, 2673705150.0, 1775276924, 1876241833, 3475313331.0, 3366754619.0, 270040487, 3902563182.0, 3678124923.0, 3441850377.0, 1851332852, 3969562369.0, 2203032232.0, 3868552805.0, 2868897406.0, 566021896, 4011190502.0, 3135740889.0, 1248802510, 3936291284.0, 699432150, 832877231, 708780849, 3332740144.0, 899835584, 1951317047, 4236429990.0, 3767586992.0, 866637845, 4043610186.0, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980.0, 3835036895.0, 2664543715.0, 1282050075, 3240894392.0, 1181045119, 2640243204.0, 25965917, 4203181171.0, 4211818798.0, 3009879386.0, 2463879762.0, 3910161971.0, 1842759443, 2597806476.0, 933301370, 1509430414, 3943906441.0, 3467192302.0, 3076639029.0, 3776767469.0, 2051518780, 2631065433.0, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300.0, 2017778566, 3400528769.0, 3110650942.0, 941896748, 3265478751.0, 371049330, 3168937228.0, 675039627, 4279080257.0, 967311729, 135050206, 3635733660.0, 1683407248, 2076935265, 3576870512.0, 1215061108, 3501741890.0];
Td1 = [1347548327, 1400783205, 3273267108.0, 2520393566.0, 3409685355.0, 4045380933.0, 2880240216.0, 2471224067.0, 1428173050, 4138563181.0, 2441661558.0, 636813900, 4233094615.0, 3620022987.0, 2149987652.0, 2411029155.0, 1239331162, 1730525723, 2554718734.0, 3781033664.0, 46346101, 310463728, 2743944855.0, 3328955385.0, 3875770207.0, 2501218972.0, 3955191162.0, 3667219033.0, 768917123, 3545789473.0, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113.0, 3065962831.0, 401639597, 1724457132, 3028143674.0, 409198410, 2196052529.0, 1620529459, 1164071807, 3769721975.0, 2226875310.0, 486441376, 2499348523.0, 1483753576, 428819965, 2274680428.0, 3075636216.0, 598438867, 3799141122.0, 1474502543, 711349675, 129166120, 53458370, 2592523643.0, 2782082824.0, 4063242375.0, 2988687269.0, 3120694122.0, 1559041666, 730517276, 2460449204.0, 4042459122.0, 2706270690.0, 3446004468.0, 3573941694.0, 533804130, 2328143614.0, 2637442643.0, 2695033685.0, 839224033, 1973745387, 957055980, 2856345839.0, 106852767, 1371368976, 4181598602.0, 1033297158, 2933734917.0, 1179510461, 3046200461.0, 91341917, 1862534868, 4284502037.0, 605657339, 2547432937.0, 3431546947.0, 2003294622, 3182487618.0, 2282195339.0, 954669403, 3682191598.0, 1201765386, 3917234703.0, 3388507166.0, 0, 2198438022.0, 1211247597, 2887651696.0, 1315723890, 4227665663.0, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604.0, 975451694, 2970356327.0, 261314535, 3535072918.0, 2652609425.0, 1333838021, 2724322336.0, 1767536459, 370938394, 182621114, 3854606378.0, 1128014560, 487725847, 185469197, 2918353863.0, 3106780840.0, 3356761769.0, 2237133081.0, 1286567175, 3152976349.0, 4255350624.0, 2683765030.0, 3160175349.0, 3309594171.0, 878443390, 1988838185, 3704300486.0, 1756818940, 1673061617, 3403100636.0, 272786309, 1075025698, 545572369, 2105887268, 4174560061.0, 296679730, 1841768865, 1260232239, 4091327024.0, 3960309330.0, 3497509347.0, 1814803222, 2578018489.0, 4195456072.0, 575138148, 3299409036.0, 446754879, 3629546796.0, 4011996048.0, 3347532110.0, 3252238545.0, 4270639778.0, 915985419, 3483825537.0, 681933534, 651868046, 2755636671.0, 3828103837.0, 223377554, 2607439820.0, 1649704518, 3270937875.0, 3901806776.0, 1580087799, 4118987695.0, 3198115200.0, 2087309459, 2842678573.0, 3016697106.0, 1003007129, 2802849917.0, 1860738147, 2077965243, 164439672, 4100872472.0, 32283319, 2827177882.0, 1709610350, 2125135846, 136428751, 3874428392.0, 3652904859.0, 3460984630.0, 3572145929.0, 3593056380.0, 2939266226.0, 824852259, 818324884, 3224740454.0, 930369212, 2801566410.0, 2967507152.0, 355706840, 1257309336, 4148292826.0, 243256656, 790073846, 2373340630.0, 1296297904, 1422699085, 3756299780.0, 3818836405.0, 457992840, 3099667487.0, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921.0, 2050466060, 2388260884.0, 2313884476.0, 4006521127.0, 901210569, 3990953189.0, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895.0, 3931371469.0, 1533017514, 350174575, 2256028891.0, 2177544179.0, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897.0, 1107234197, 1899603969, 3725069491.0, 2631447780.0, 2422494913.0, 1635502980, 1893020342, 1950903388, 1120974935];
Td2 = [2807058932.0, 1699970625, 2764249623.0, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800.0, 1844882806, 1989249228, 1277555970, 3623636965.0, 3419915562.0, 1149249077, 2744104290.0, 1514790577, 459744698, 244860394, 3235995134.0, 1963115311, 4027744588.0, 2544078150.0, 4190530515.0, 1608975247, 2627016082.0, 2062270317, 1507497298, 2200818878.0, 567498868, 1764313568, 3359936201.0, 2305455554.0, 2037970062, 1047239000, 1910319033, 1337376481, 2904027272.0, 2892417312.0, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315.0, 2686254721.0, 731183368, 1750626376, 4246310725.0, 1820824798, 4172763771.0, 3542330227.0, 48394827, 2404901663.0, 2871682645.0, 671593195, 3254988725.0, 2073724613, 145085239, 2280796200.0, 2779915199.0, 1790575107, 2187128086.0, 472615631, 3029510009.0, 4075877127.0, 3802222185.0, 4107101658.0, 3201631749.0, 1646252340, 4270507174.0, 1402811438, 1436590835, 3778151818.0, 3950355702.0, 3963161475.0, 4020912224.0, 2667994737.0, 273792366, 2331590177.0, 104699613, 95345982, 3175501286.0, 2377486676.0, 1560637892, 3564045318.0, 369057872, 4213447064.0, 3919042237.0, 1137477952, 2658625497.0, 1119727848, 2340947849.0, 1530455833, 4007360968.0, 172466556, 266959938, 516552836, 0, 2256734592.0, 3980931627.0, 1890328081, 1917742170, 4294704398.0, 945164165, 3575528878.0, 958871085, 3647212047.0, 2787207260.0, 1423022939, 775562294, 1739656202, 3876557655.0, 2530391278.0, 2443058075.0, 3310321856.0, 547512796, 1265195639, 437656594, 3121275539.0, 719700128, 3762502690.0, 387781147, 218828297, 3350065803.0, 2830708150.0, 2848461854.0, 428169201, 122466165, 3720081049.0, 1627235199, 648017665, 4122762354.0, 1002783846, 2117360635, 695634755, 3336358691.0, 4234721005.0, 4049844452.0, 3704280881.0, 2232435299.0, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185.0, 793451934, 821288114, 1391201670, 3822090177.0, 376187827, 3113855344.0, 1224348052, 1679968233, 2361698556.0, 1058709744, 752375421, 2431590963.0, 1321699145, 3519142200.0, 2734591178.0, 188127444, 2177869557.0, 3727205754.0, 2384911031.0, 3215212461.0, 2648976442.0, 2450346104.0, 3432737375.0, 1180849278, 331544205, 3102249176.0, 4150144569.0, 2952102595.0, 2159976285.0, 2474404304.0, 766078933, 313773861, 2570832044.0, 2108100632, 1668212892, 3145456443.0, 2013908262, 418672217, 3070356634.0, 2594734927.0, 1852171925, 3867060991.0, 3473416636.0, 3907448597.0, 2614737639.0, 919489135, 164948639, 2094410160, 2997825956.0, 590424639, 2486224549.0, 1723872674, 3157750862.0, 3399941250.0, 3501252752.0, 3625268135.0, 2555048196.0, 3673637356.0, 1343127501, 4130281361.0, 3599595085.0, 2957853679.0, 1297403050, 81781910, 3051593425.0, 2283490410.0, 532201772, 1367295589, 3926170974.0, 895287692, 1953757831, 1093597963, 492483431, 3528626907.0, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769.0, 3857572124.0, 2973530695.0, 3747192018.0, 1933530610, 3464042516.0, 935293895, 3454686199.0, 2858115069.0, 1863638845, 3683022916.0, 4085369519.0, 3292445032.0, 875313188, 1080017571, 3279033885.0, 621591778, 1233856572, 2504130317.0, 24197544, 3017672716.0, 3835484340.0, 3247465558.0, 2220981195.0, 3060847922.0, 1551124588, 1463996600];
Td3 = [4104605777.0, 1097159550, 396673818, 660510266, 2875968315.0, 2638606623.0, 4200115116.0, 3808662347.0, 821712160, 1986918061, 3430322568.0, 38544885, 3856137295.0, 718002117, 893681702, 1654886325, 2975484382.0, 3122358053.0, 3926825029.0, 4274053469.0, 796197571, 1290801793, 1184342925, 3556361835.0, 2405426947.0, 2459735317.0, 1836772287, 1381620373, 3196267988.0, 1948373848, 3764988233.0, 3385345166.0, 3263785589.0, 2390325492.0, 1480485785, 3111247143.0, 3780097726.0, 2293045232.0, 548169417, 3459953789.0, 3746175075.0, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046.0, 137073913, 1214797936, 1174215055, 3731654548.0, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170.0, 3049390895.0, 3313212038.0, 923313619, 679998000, 3215307299.0, 57326082, 377642221, 3474729866.0, 2041877159, 133361907, 1776460110, 3673476453.0, 96392454, 878845905, 2801699524.0, 777231668, 4082475170.0, 2330014213.0, 4142626212.0, 2213296395.0, 1626319424, 1906247262, 1846563261, 562755902, 3708173718.0, 1040559837, 3871163981.0, 1418573201, 3294430577.0, 114585348, 1343618912, 2566595609.0, 3186202582.0, 1078185097, 3651041127.0, 3896688048.0, 2307622919.0, 425408743, 3371096953.0, 2081048481, 1108339068, 2216610296.0, 0, 2156299017.0, 736970802, 292596766, 1517440620, 251657213, 2235061775.0, 2933202493.0, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748.0, 2610011675.0, 3234156416.0, 3693126241.0, 2001430874, 303699484, 2478443234.0, 2687165888.0, 585122620, 454499602, 151849742, 2345119218.0, 3064510765.0, 514443284, 4044981591.0, 1963412655, 2581445614.0, 2137062819, 19308535, 1928707164, 1715193156, 4219352155.0, 1126790795, 600235211, 3992742070.0, 3841024952.0, 836553431, 1669664834, 2535604243.0, 3323011204.0, 1243905413, 3141400786.0, 4180808110.0, 698445255, 2653899549.0, 2989552604.0, 2253581325.0, 3252932727.0, 3004591147.0, 1891211689, 2487810577.0, 3915653703.0, 4237083816.0, 4030667424.0, 2100090966, 865136418, 1229899655, 953270745, 3399679628.0, 3557504664.0, 4118925222.0, 2061379749, 3079546586.0, 2915017791.0, 983426092, 2022837584, 1607244650, 2118541908, 2366882550.0, 3635996816.0, 972512814, 3283088770.0, 1568718495, 3499326569.0, 3576539503.0, 621982671, 2895723464.0, 410887952, 2623762152.0, 1002142683, 645401037, 1494807662, 2595684844.0, 1335535747, 2507040230.0, 4293295786.0, 3167684641.0, 367585007, 3885750714.0, 1865862730, 2668221674.0, 2960971305.0, 2763173681.0, 1059270954, 2777952454.0, 2724642869.0, 1320957812, 2194319100.0, 2429595872.0, 2815956275.0, 77089521, 3973773121.0, 3444575871.0, 2448830231.0, 1305906550, 4021308739.0, 2857194700.0, 2516901860.0, 3518358430.0, 1787304780, 740276417, 1699839814, 1592394909, 2352307457.0, 2272556026.0, 188821243, 1729977011, 3687994002.0, 274084841, 3594982253.0, 3613494426.0, 2701949495.0, 4162096729.0, 322734571, 2837966542.0, 1640576439, 484830689, 1202797690, 3537852828.0, 4067639125.0, 349075736, 3342319475.0, 4157467219.0, 4255800159.0, 1030690015, 1155237496, 2951971274.0, 1757691577, 607398968, 2738905026.0, 499347990, 3794078908.0, 1011452712, 227885567, 2818666809.0, 213114376, 3034881240.0, 1455525988, 3414450555.0, 850817237, 1817998408, 3092726480.0];
Td4 = [1381126738, 151587081, 1785358954, 3587560917.0, 808464432, 909522486, 2779096485.0, 943208504, 3217014719.0, 1077952576, 2745410467.0, 2661195422.0, 2172748161.0, 4092851187.0, 3621246935.0, 4227595259.0, 2088533116, 3823363043.0, 960051513, 2189591170.0, 2610666395.0, 791621423, 4294967295.0, 2273806215.0, 875836468, 2391707278.0, 1128481603, 1145324612, 3301229764.0, 3739147998.0, 3924421097.0, 3419130827.0, 1414812756, 2071690107, 2492765332.0, 842150450, 2795939494.0, 3267543746.0, 589505315, 1027423549, 4008636142.0, 1280068684, 2509608341.0, 185273099, 1111638594, 4210752250.0, 3284386755.0, 1313754702, 134744072, 774778414, 2711724449.0, 1717986918, 673720360, 3654932953.0, 606348324, 2998055602.0, 1987475062, 1532713819, 2728567458.0, 1229539657, 1835887981, 2341178251.0, 3520188881.0, 623191333, 1920103026, 4177066232.0, 4143380214.0, 1684300900, 2256963206.0, 1751672936, 2560137368.0, 370546198, 3570717908.0, 2762253476.0, 1549556828, 3435973836.0, 1566399837, 1701143909, 3065427638.0, 2459079314.0, 1819044972, 1886417008, 1212696648, 1347440720, 4261281277.0, 3991793133.0, 3115956665.0, 3671775962.0, 1583242846, 353703189, 1179010630, 1465341783, 2812782503.0, 2374864269.0, 2644352413.0, 2223277188.0, 2425393296.0, 3638089944.0, 2880154539.0, 0, 2358021260.0, 3166485692.0, 3553874899.0, 168430090, 4160223223.0, 3840206052.0, 1482184792, 84215045, 3099113656.0, 3014898611.0, 1162167621, 101058054, 3503345872.0, 741092396, 505290270, 2408550287.0, 3402287818.0, 1061109567, 252645135, 33686018, 3250700737.0, 2947526575.0, 3183328701.0, 50529027, 16843009, 320017171, 2324335242.0, 1802201963, 976894522, 2442236305.0, 286331153, 1094795585, 1330597711, 1734829927, 3705461980.0, 3941264106.0, 2543294359.0, 4076008178.0, 3486502863.0, 3469659854.0, 4042322160.0, 3031741620.0, 3873892070.0, 1936946035, 2526451350.0, 2896997548.0, 1953789044, 572662306, 3890735079.0, 2913840557.0, 892679477, 2240120197.0, 3806520034.0, 4193909241.0, 926365495, 3907578088.0, 471604252, 1970632053, 3755991007.0, 1852730990, 1195853639, 4059165169.0, 437918234, 1903260017, 488447261, 690563369, 3318072773.0, 2307492233.0, 1869573999, 3082270647.0, 1650614882, 235802126, 2863311530.0, 404232216, 3200171710.0, 454761243, 4244438268.0, 1448498774, 1044266558, 1263225675, 3334915782.0, 3537031890.0, 2038004089, 538976288, 2593823386.0, 3688618971.0, 3233857728.0, 4278124286.0, 2021161080, 3452816845.0, 1515870810, 4109694196.0, 522133279, 3722304989.0, 2829625512.0, 858993459, 2290649224.0, 117901063, 3351758791.0, 825307441, 2981212593.0, 303174162, 269488144, 1499027801, 656877351, 2155905152.0, 3974950124.0, 1600085855, 1616928864, 1364283729, 2139062143, 2846468521.0, 421075225, 3048584629.0, 1246382666, 218959117, 757935405, 3857049061.0, 2054847098, 2678038431.0, 2475922323.0, 3385444809.0, 2627509404.0, 4025479151.0, 2694881440.0, 3772834016.0, 993737531, 1296911693, 2930683566.0, 707406378, 4126537205.0, 2964369584.0, 3368601800.0, 3958107115.0, 3149642683.0, 1010580540, 2206434179.0, 1397969747, 2576980377.0, 1633771873, 387389207, 724249387, 67372036, 2122219134, 3132799674.0, 2004318071, 3604403926.0, 640034342, 3789677025.0, 1768515945, 336860180, 1667457891, 1431655765, 555819297, 202116108, 2105376125];
rcon = [16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648.0, 452984832, 905969664];
AES_KEY = function () {
this.rounds = 12;
this.rd_key = [];
};
var aes_key = new AES_KEY();
var decrypt_key = '000102030405060708090a0b0c0d0e0f';
yesbutt.buttontext.text = 'IMPORT';
savetext.text = 'Import Save';
stop();
}
instance yesbutt of movieClip 479 {
onClipEvent (press) {
var str = _parent.decryptfile(_parent.savecode.text);
var seeddate = new Date();
var seed = random(999);
var newsave = _root.SaveList.createEmptySave('Import' + seed);
newsave.parseXML(str);
newsave.save();
_root.SaveList.saveList();
_global.option = 'load';
playSound('confirmSound');
_root.prepareload();
}
}
}
button 519 {
on (release) {
_global.option = 'load';
playSound('confirmSound');
_root.prepareload();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 522 {
on (release) {
_global.option = 'start';
gotoAndStop(11);
}
on (rollOver) {
_level0.playSound('select');
}
}
button 524 {
on (release) {
getURL('http://www.newgrounds.com', 'blank');
}
}
movieClip 527 {
}
frame 10 {
stop();
}
frame 10 {
function musicOn() {
_global.musicSetting = true;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (_level0.combatSceneClip._visible) {
_level0.battleMusic();
} else {
currentMusic = '';
_level0.bgMusic(areaMusic);
}
}
function musicOff() {
_global.musicSetting = false;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
}
function bgMusic(newMusic, noloop) {
if (_global.musicSetting) {
if (currentMusic != newMusic) {
if (newMusic == undefined) {
newMusic = _root.areaMusic;
}
currentMusic = newMusic;
stopAllSounds();
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
}
function battleMusic() {
if (_global.musicSetting) {
if (_level0.combatmusic) {
currentMusic = _level0.combatmusic;
} else {
currentMusic = 'battle' + (random(2) + 1);
}
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
function playSound(s) {
if (_global.musicSetting) {
sflag = !sflag;
if (sflag) {
soundfx.gotoAndStop(1);
soundfx.gotoAndStop(s);
} else {
soundfx2.gotoAndStop(1);
soundfx2.gotoAndStop(s);
}
}
}
sflag = true;
areaMusic = 'intro';
bgMusic(areaMusic);
}
button 530 {
on (release) {
gotoAndPlay(3);
}
}
movieClip 533 {
}
frame 11 {
stopAllSounds();
nextFrame();
}
frame 11 {
function musicOn() {
_global.musicSetting = true;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (_level0.combatSceneClip._visible) {
_level0.battleMusic();
} else {
currentMusic = '';
_level0.bgMusic(areaMusic);
}
}
function musicOff() {
_global.musicSetting = false;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
}
function bgMusic(newMusic, noloop) {
if (_global.musicSetting) {
if (currentMusic != newMusic) {
if (newMusic == undefined) {
newMusic = _root.areaMusic;
}
currentMusic = newMusic;
stopAllSounds();
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
}
function battleMusic() {
if (_global.musicSetting) {
if (_level0.combatmusic) {
currentMusic = _level0.combatmusic;
} else {
currentMusic = 'battle' + (random(2) + 1);
}
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
function playSound(s) {
if (_global.musicSetting) {
sflag = !sflag;
if (sflag) {
soundfx.gotoAndStop(1);
soundfx.gotoAndStop(s);
} else {
soundfx2.gotoAndStop(1);
soundfx2.gotoAndStop(s);
}
}
}
sflag = true;
areaMusic = 'intro';
}
frame 12 {
if (_global.musicSetting) {
music.gotoAndStop('morning');
}
nextFrame();
}
frame 13 {
stop();
}
frame 13 {
pilotName.text = _global.pilotName;
mawName.text = _global.mawName;
}
button 537 {
on (press) {
getURL('http://www.mobileweapon.net', '_blank');
}
}
button 540 {
on (release) {
gotoAndStop(3);
}
}
button 541 {
on (press) {
var so = SharedObject.getLocal('/mobileweapon');
_root.SaveList = new SaveListObj(so.data.userid, so.data.password);
_root.SaveList.addListener(_root.listenerobject);
_root.SaveList.forceLocal();
_root.SaveList.connect();
var samdata = '<SavedData>';
samdata += '<globalvars maplocation="0" arealocation="1" tx="260" tz="-270" credits="120" chance="500" /><questlist><quest id="26" prog="1" /></questlist>';
samdata += '<character id="A001" name="Jin" reflex="5" accuracy="5" technique="5" xp="0" active="1" level="1" gender="m" sp="6" combat="true"><bot botid="luna" name="Luna" capacity="100" defense="3" currhp="120" hp="120" energy="3.5" 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 += '<character id="A003" name="Calisto" reflex="14" accuracy="14" technique="8" xp="1850" active="2" level="8" gender="f" sp="0" combat="true"><bot botid="luna" name="Luna" capacity="100" defense="3" currhp="250" hp="250" energy="3.5" active="true"><parts name="part1" colorr="70" colorg="20" colorb="20" /><parts name="part2" colorr="100" colorg="100" colorb="100" /><parts name="part3" colorr="80" colorg="30" colorb="70" /></bot></character>';
samdata += '<inventory>';
samdata += '<item id="C01AT" location="top" equip="A001" /><item id="C01AB" location="bottom" equip="A001" /><item id="C01AF" location="footwear" equip="A001" /><item id="W01MF" location="right" equip="A001" /><item id="I001R" location="none" number="3" />';
samdata += '<item id="C01AT" location="top" equip="A003" /><item id="C01AB" location="bottom" equip="A003" /><item id="C01AF" location="footwear" equip="A003" /><item id="W01LR" location="right" equip="A003" /><item id="A01" location="armor" equip="A003" />';
samdata += '</inventory>';
samdata += '</SavedData>';
so.data.quickstart = 'true';
_global.quickstart = true;
var newsave = _root.SaveList.createEmptySave('new');
newsave.parseXML(samdata);
newsave.printitems();
_global.mainsave = newsave;
_global.option = 'newgame';
_level0.playSound('confirmSound');
gotoAndStop('intro');
}
}
frame 14 {
stop();
}
frame 14 {
bgMusic(areaMusic);
}
button 545 {
on (release) {
gotoAndStop('choosechar');
}
}
movieClip 551 {
}
movieClip 554 {
}
movieClip 557 {
}
movieClip 560 {
}
movieClip 562 {
}
movieClip 564 {
}
movieClip 565 {
frame 1820 {
_parent.gotoAndStop('choosechar');
}
}
frame 21 {
stop();
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;
}
}
frame 21 {
guy.selected = true;
guy.gotoAndStop(2);
}
movieClip 569 {
}
movieClip 572 {
frame 1 {
stop();
}
}
instance guy of movieClip 572 {
onClipEvent (press) {
_level0.playSound('confirmSound');
this.selected = true;
_parent.gal.selected = false;
_parent.gal.gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
if (!this.selected) {
this.gotoAndStop(1);
}
}
}
movieClip 575 {
}
movieClip 576 {
frame 1 {
stop();
}
}
instance gal of movieClip 576 {
onClipEvent (press) {
_level0.playSound('confirmSound');
this.selected = true;
_parent.guy.selected = false;
_parent.guy.gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
if (!this.selected) {
this.gotoAndStop(1);
}
}
}
button 581 {
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);
}
++p;
}
var counterxml = new XML();
counterxml.load('http://mobileweapon.net/ep1/neoplanetas.php?type=updatecounter&saveindex=' + playername.text);
_level0.playSound('confirmSound');
gotoAndPlay(32);
}
}
frame 31 {
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;
}
}
frame 31 {
gotoAndStop(_root._currentframe - 1);
}
movieClip 604 bang {
frame 14 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 606 sniper {
frame 2 {
stop();
}
frame 2 {
bullet._xscale = 150;
bullet._yscale = 150;
}
frame 36 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 607 {
frame 2 {
stop();
}
}
movieClip 608 shotgun1 {
frame 2 {
stop();
}
frame 2 {
bullet.gotoAndPlay(1);
bullet._xscale = 200;
bullet._yscale = 200;
}
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 += random(5);
xplode._x -= random(10);
xplode._y += random(5);
xplode._y -= random(10);
xplode2._x += random(5);
xplode2._x -= random(10);
xplode2._y += random(5);
xplode2._y -= random(10);
xplode3._x += random(5);
xplode3._x -= random(10);
xplode3._y += random(5);
xplode3._y -= random(10);
xplode4._x += random(5);
xplode4._x -= random(10);
xplode4._y += random(5);
xplode4._y -= random(10);
xplode5._x += random(5);
xplode5._x -= random(10);
xplode5._y += random(5);
xplode5._y -= random(10);
xplode6._x += random(5);
xplode6._x -= random(10);
xplode6._y += random(5);
xplode6._y -= random(10);
}
frame 36 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 611 {
}
movieClip 646 launcher {
frame 2 {
stop();
}
frame 14 {
_level0.playSound('explode');
}
frame 19 {
_level0.playSound('explode');
}
frame 25 {
_level0.playSound('explode');
}
frame 30 {
_level0.playSound('explode');
}
frame 49 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 675 spark2 {
frame 16 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 706 big_spark1 {
frame 21 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 707 spark3 {
frame 20 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 708 spark1 {
frame 22 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 724 burrowstrike {
frame 5 {
_level0.playSound('drill');
}
frame 29 {
_level0.playSound('c_drill2');
}
frame 51 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 727 drillmissile {
frame 28 {
_level0.playSound('c_drillexplode');
}
frame 50 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 738 eddystab {
frame 1 {
_level0.playSound('c_eddystab');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 741 sword4 {
frame 1 {
_level0.playSound('c_jackslash');
}
frame 6 {
_level0.playSound('c_sword3');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 742 sword3 {
frame 1 {
_level0.playSound('c_sword3');
}
frame 6 {
_level0.playSound('c_sword3');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 755 sword2 {
frame 1 {
_level0.playSound('c_sword2');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 756 sword1 {
frame 1 {
_level0.playSound('c_sword1');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 759 {
}
movieClip 762 {
}
movieClip 763 {
frame 1 {
}
frame 2 {
stop();
}
}
movieClip 764 {
frame 18 {
stop();
}
}
movieClip 765 launcher2 {
frame 2 {
_level0.playSound('c_rocketLaunch');
}
frame 2 {
stop();
}
frame 2 {
}
frame 14 {
_level0.playSound('c_rocketExplode');
}
frame 14 {
xplode._x += random(10);
xplode._x -= random(5);
xplode._y += random(10);
xplode._y -= random(5);
}
frame 30 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 768 {
}
movieClip 771 {
frame 1 {
}
frame 20 {
stop();
}
}
movieClip 772 launcher1 {
frame 2 {
_level0.playSound('c_grenadeLauncher');
}
frame 2 {
stop();
}
frame 2 {
}
frame 18 {
_level0.playSound('c_grenadeHitGround');
}
frame 22 {
_level0.playSound('c_grenadeExplode');
}
frame 22 {
}
frame 49 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 775 {
}
movieClip 776 {
frame 1 {
}
frame 2 {
stop();
}
}
movieClip 778 {
}
movieClip 779 gun5 {
frame 2 {
_level0.playSound('c_gun5');
}
frame 2 {
stop();
}
frame 2 {
}
frame 14 {
_level0.playSound('c_ricochet3');
}
frame 14 {
var changeX1 = random(10);
var changeX2 = random(5);
var changeY1 = random(10);
var changeY2 = random(5);
xplode._x += changeX1;
xplode._x -= changeX2;
xplode._y += changeY1;
xplode._y -= changeY2;
xplode2._x += changeX1;
xplode2._x -= changeX2;
xplode2._y += changeY1;
xplode2._y -= changeY2;
}
frame 17 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 780 {
frame 1 {
}
frame 2 {
stop();
}
}
movieClip 781 gun4 {
frame 2 {
_level0.playSound('c_gun4');
}
frame 2 {
stop();
}
frame 2 {
}
frame 14 {
_level0.playSound('c_ricochet1');
}
frame 14 {
var changeX1 = random(10);
var changeX2 = random(5);
var changeY1 = random(10);
var changeY2 = random(5);
xplode._x += changeX1;
xplode._x -= changeX2;
xplode._y += changeY1;
xplode._y -= changeY2;
}
frame 17 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 782 {
frame 1 {
}
frame 2 {
stop();
}
}
movieClip 783 gun3 {
frame 2 {
_level0.playSound('c_gun3');
}
frame 2 {
stop();
}
frame 2 {
}
frame 14 {
_level0.playSound('c_ricochet1');
}
frame 14 {
var changeX1 = random(10);
var changeX2 = random(5);
var changeY1 = random(10);
var changeY2 = random(5);
xplode._x += changeX1;
xplode._x -= changeX2;
xplode._y += changeY1;
xplode._y -= changeY2;
xplode2._x += changeX1;
xplode2._x -= changeX2;
xplode2._y += changeY1;
xplode2._y -= changeY2;
}
frame 17 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 786 {
}
movieClip 787 {
frame 1 {
}
frame 2 {
stop();
}
}
movieClip 788 gun2 {
frame 2 {
_level0.playSound('c_gun2');
}
frame 2 {
stop();
}
frame 2 {
}
frame 14 {
_level0.playSound('c_ricochet2');
}
frame 14 {
var changeX1 = random(10);
var changeX2 = random(5);
var changeY1 = random(10);
var changeY2 = random(5);
xplode._x += changeX1;
xplode._x -= changeX2;
xplode._y += changeY1;
xplode._y -= changeY2;
xplode2._x += changeX1;
xplode2._x -= changeX2;
xplode2._y += changeY1;
xplode2._y -= changeY2;
}
frame 17 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 789 {
frame 1 {
}
frame 2 {
stop();
}
}
movieClip 790 gun1 {
frame 2 {
_level0.playSound('c_gun1');
}
frame 2 {
stop();
}
frame 2 {
}
frame 14 {
_level0.playSound('c_ricochet1');
}
frame 14 {
xplode._x += random(10);
xplode._x -= random(5);
xplode._y += random(10);
xplode._y -= random(5);
}
frame 17 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 802 hit5 {
frame 1 {
_level0.playSound('c_hit5');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 803 hit4 {
frame 17 {
stop();
}
}
movieClip 815 hit3 {
frame 1 {
_level0.playSound('c_hit3');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 816 hit2 {
frame 1 {
_level0.playSound('c_hit2');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 817 hit1 {
frame 1 {
_level0.playSound('c_hit1');
}
frame 10 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 818 swashslash {
frame 1 {
_level0.playSound('c_swashslash');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 819 lordslice {
frame 1 {
_level0.playSound('c_lordslice');
}
frame 6 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 821 beanspray {
frame 2 {
_level0.playSound('c_beanspray');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_beansprayhit');
}
frame 23 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 822 beanhit {
frame 1 {
_level0.playSound('c_beanhit');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 823 beanhit2 {
frame 1 {
_level0.playSound('c_beanhit2');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 830 {
}
movieClip 834 spiderAttack {
frame 24 {
_levelo.playSound('c_spiderattack');
}
frame 54 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 835 rustjab {
frame 1 {
_level0.playSound('c_rustjab');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 836 rogueslash {
frame 1 {
_level0.playSound('c_rogueslash');
}
frame 6 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 839 {
}
movieClip 840 corrosion {
frame 2 {
_level0.playSound('c_corrosion');
}
frame 2 {
stop();
}
frame 9 {
_level0.playSound('c_corrosionhit');
}
frame 34 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 841 wingslash {
frame 1 {
_level0.playSound('c_wingslash');
}
frame 6 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 842 guano {
frame 2 {
_level0.playSound('c_gauno');
}
frame 14 {
stop();
}
frame 15 {
_level0.playSound('c_gaunohit');
}
frame 40 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 843 officerslash2 {
frame 1 {
_level0.playSound('c_jackslash');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 844 officerslash1 {
frame 1 {
_level0.playSound('c_lordslice');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 845 jackslash {
frame 1 {
_level0.playSound('c_jackslash');
}
frame 11 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 846 {
}
movieClip 847 {
frame 2 {
stop();
}
}
movieClip 848 jackrocket {
frame 2 {
_level0.playSound('c_rocketLaunch2');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_rocketExplode2');
}
frame 14 {
xplode._x += random(10);
xplode._x -= random(5);
xplode._y += random(10);
xplode._y -= random(5);
}
frame 30 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 849 {
}
movieClip 850 {
}
movieClip 851 {
frame 2 {
stop();
}
}
movieClip 853 {
}
movieClip 854 jackgun {
frame 2 {
_level0.playSound('c_jackgun');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_ricochet1');
}
frame 14 {
xplode._x += random(10);
xplode._x -= random(5);
xplode._y += random(10);
xplode._y -= random(5);
}
frame 17 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 855 clocksmash3 {
frame 1 {
_level0.playSound('c_clocksmash3');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 858 {
}
movieClip 859 fryingpan {
frame 2 {
_level0.playSound('c_chopper');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_garbagehit');
}
frame 25 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 862 {
}
movieClip 863 fire {
frame 2 {
_level0.playSound('c_corrosion');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_grenadeExplode');
}
frame 32 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 866 {
}
movieClip 867 chopper {
frame 2 {
_level0.playSound('c_chopper');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_jackslash');
}
frame 20 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 880 sharkBite {
frame 34 {
_level0.playSound('c_sharkbite');
}
frame 65 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 881 laser {
frame 2 {
stop();
}
frame 2 {
_level0.playSound('c_laser');
}
frame 14 {
_level0.playSound('c_laserexplode');
}
frame 34 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 892 grinderattack {
frame 35 {
_level0.playSound('c_grinderattack');
}
frame 78 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 918 {
frame 1 {
stop();
}
}
movieClip 919 randombullet {
frame 2 {
_level0.playSound('c_spit');
}
frame 2 {
clip.gotoAndStop(random(25) + 1);
}
frame 14 {
_level0.playSound('c_garbagehit');
}
frame 24 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 920 clocksmash4 {
frame 1 {
_level0.playSound('c_clocksmash4');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 921 crunch {
frame 1 {
_level0.playSound('c_crunch');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 922 clocksmash2 {
frame 1 {
_level0.playSound('c_clocksmash2');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 923 clocksmash {
frame 1 {
_level0.playSound('c_clocksmash');
}
frame 12 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 936 {
}
movieClip 939 gearFly {
frame 1 {
stop();
}
frame 10 {
_level0.playSound('fly');
}
frame 10 {
_parent.startAttack();
}
frame 17 {
_parent.endAttack('attack');
}
frame 18 {
_parent.startAttack();
}
frame 25 {
_parent.endAttack('attack2');
}
frame 26 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 38 {
gotoAndPlay('move');
}
frame 46 {
gotoAndPlay('move');
}
frame 47 {
_level0.playSound('die');
}
frame 69 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 950 {
}
movieClip 951 {
}
movieClip 958 {
frame 5 {
_level0.playSound('smash');
}
}
movieClip 959 {
}
movieClip 962 {
}
movieClip 963 {
}
movieClip 965 {
}
movieClip 969 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('move');
}
frame 23 {
stop();
}
}
movieClip 970 fiend {
frame 1 {
stop();
_parent.colorBot(bot);
}
frame 10 {
_parent.startAttack();
_parent.colorBot(bot);
}
frame 23 {
_parent.endAttack('attack');
}
frame 24 {
_parent.startAttack();
_parent.colorBot(bot);
}
frame 24 {
_level0.playSound('c_lightning');
}
frame 35 {
_parent.endAttack('attack2');
}
frame 36 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
_parent.colorBot(bot.bot);
}
frame 41 {
_parent.colorBot(bot);
}
frame 48 {
gotoAndPlay('move');
}
frame 49 {
_parent.colorBot(bot);
}
frame 56 {
gotoAndPlay('move');
}
frame 57 {
_parent.colorBot(bot);
}
frame 57 {
_level0.playSound('die');
}
frame 79 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 976 {
}
movieClip 977 dummy {
frame 1 {
stop();
}
frame 10 {
_level0.playSound('fly');
}
frame 10 {
_parent.startAttack();
}
frame 17 {
_parent.endAttack('attack');
}
frame 18 {
_parent.startAttack();
}
frame 25 {
_parent.endAttack('attack2');
}
frame 26 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 46 {
gotoAndPlay('move');
}
frame 47 {
_level0.playSound('die');
}
frame 69 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 990 {
}
movieClip 1003 {
}
movieClip 1004 {
}
movieClip 1007 {
}
movieClip 1010 {
}
movieClip 1011 {
}
movieClip 1014 {
}
movieClip 1017 {
}
movieClip 1018 {
}
movieClip 1024 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('move');
}
frame 26 {
stop();
}
}
movieClip 1025 clock {
frame 1 {
stop();
_parent.colorBot(bot);
}
frame 10 {
_parent.startAttack();
_parent.colorBot(bot);
}
frame 10 {
_level0.playSound('smash');
}
frame 17 {
_parent.endAttack('attack');
}
frame 18 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
_parent.colorBot(bot.bot);
}
frame 28 {
_parent.colorBot(bot);
}
frame 35 {
gotoAndStop('move');
}
frame 36 {
_parent.colorBot(bot);
}
frame 44 {
gotoAndStop('move');
}
frame 45 {
_parent.colorBot(bot);
}
frame 45 {
_level0.playSound('move');
}
frame 70 {
_parent.escapeSuccess();
gotoAndStop(1);
}
frame 71 {
_parent.colorBot(bot);
}
frame 79 {
stop();
_parent.defendFinish();
}
frame 80 {
_parent.colorBot(bot);
}
frame 88 {
_parent.healFinish();
gotoAndStop(1);
}
frame 89 {
_parent.colorBot(bot);
}
frame 89 {
_level0.playSound('die');
}
frame 111 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 1032 {
}
movieClip 1039 {
}
movieClip 1046 {
}
movieClip 1047 {
}
movieClip 1068 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1089 {
}
movieClip 1110 {
}
movieClip 1111 {
}
movieClip 1118 {
}
movieClip 1125 {
}
movieClip 1132 {
}
movieClip 1133 {
}
movieClip 1154 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1175 {
}
movieClip 1196 {
}
movieClip 1197 {
}
movieClip 1204 {
}
movieClip 1211 {
}
movieClip 1218 {
}
movieClip 1219 {
}
movieClip 1240 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1261 {
}
movieClip 1282 {
}
movieClip 1283 {
}
movieClip 1290 {
}
movieClip 1297 {
}
movieClip 1304 {
}
movieClip 1305 {
}
movieClip 1326 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1347 {
}
movieClip 1368 {
}
movieClip 1369 {
}
movieClip 1376 {
}
movieClip 1383 {
}
movieClip 1390 {
}
movieClip 1391 {
}
movieClip 1412 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1433 {
}
movieClip 1454 {
}
movieClip 1455 {
}
movieClip 1458 {
}
movieClip 1461 {
}
movieClip 1464 {
}
movieClip 1465 {
}
movieClip 1466 {
frame 1 {
function colorChar() {
var v3 = new Color(char.part1);
var v2 = _level0.getEquippedTop();
var v1 = _level0.getEquippedBottom();
var v5 = 100;
var v9 = 100;
var v7 = 100;
var v4 = 100;
var v8 = 100;
var v6 = 100;
if (v2) {
v5 = v2.r;
v9 = v2.g;
v7 = v2.b;
}
if (v1) {
v4 = v1.r;
v8 = v1.g;
v6 = v1.b;
}
v3.setTransform({'ra': v5, 'rb': 0, 'ga': v9, 'gb': 0, 'ba': v7, 'bb': 0, 'aa': 100, 'ab': 0});
v3 = new Color(char.part2);
v3.setTransform({'ra': v4, 'rb': 0, 'ga': v8, 'gb': 0, 'ba': v6, 'bb': 0, 'aa': 100, 'ab': 0});
}
stop();
}
frame 1 {
colorChar();
}
frame 7 {
colorChar();
}
frame 12 {
colorChar();
}
frame 18 {
colorChar();
}
frame 24 {
colorChar();
}
frame 30 {
colorChar();
}
frame 36 {
colorChar();
}
frame 42 {
colorChar();
}
frame 47 {
colorChar();
}
frame 53 {
colorChar();
}
frame 59 {
colorChar();
}
frame 65 {
colorChar();
}
frame 71 {
colorChar();
}
frame 77 {
colorChar();
}
frame 83 {
colorChar();
}
frame 89 {
colorChar();
}
frame 95 {
colorChar();
}
}
movieClip 1467 {
frame 1 {
function colorChar() {
var v2 = new Color(char.part1);
v2.setTransform({'ra': _parent.r1, 'ga': _parent.g1, 'ba': _parent.b1});
v2 = new Color(char.part2);
v2.setTransform({'ra': _parent.r2, 'ga': _parent.g2, 'ba': _parent.b2});
}
stop();
}
frame 1 {
colorChar();
}
frame 7 {
colorChar();
}
frame 12 {
colorChar();
}
frame 18 {
colorChar();
}
frame 24 {
colorChar();
}
frame 30 {
colorChar();
}
frame 36 {
colorChar();
}
frame 42 {
colorChar();
}
frame 47 {
colorChar();
}
frame 53 {
colorChar();
}
frame 59 {
colorChar();
}
frame 65 {
colorChar();
}
frame 71 {
colorChar();
}
frame 77 {
colorChar();
}
frame 83 {
colorChar();
}
frame 89 {
colorChar();
}
frame 95 {
colorChar();
}
}
movieClip 1474 {
}
movieClip 1481 {
}
movieClip 1488 {
}
movieClip 1489 {
}
movieClip 1510 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1531 {
}
movieClip 1552 {
}
movieClip 1553 {
}
movieClip 1560 {
}
movieClip 1567 {
}
movieClip 1574 {
}
movieClip 1575 {
}
movieClip 1596 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1617 {
}
movieClip 1638 {
}
movieClip 1639 {
}
movieClip 1646 {
}
movieClip 1653 {
}
movieClip 1660 {
}
movieClip 1661 {
}
movieClip 1682 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1703 {
}
movieClip 1724 {
}
movieClip 1725 {
}
movieClip 1732 {
}
movieClip 1739 {
}
movieClip 1746 {
}
movieClip 1747 {
}
movieClip 1768 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1789 {
}
movieClip 1810 {
}
movieClip 1811 {
}
movieClip 1818 {
}
movieClip 1825 {
}
movieClip 1832 {
}
movieClip 1833 {
}
movieClip 1854 {
frame 3 {
_level0.playSound('walk_r');
}
frame 13 {
_level0.playSound('walk_l');
}
}
movieClip 1875 {
}
movieClip 1896 {
}
movieClip 1897 {
}
movieClip 1898 {
}
movieClip 1899 {
}
movieClip 1900 {
}
movieClip 1901 {
}
movieClip 1902 {
frame 1 {
function colorChar() {
var v3 = new Color(char.part1);
var v2 = _level0.getEquippedTop();
var v1 = _level0.getEquippedBottom();
var v5 = 100;
var v9 = 100;
var v7 = 100;
var v4 = 100;
var v8 = 100;
var v6 = 100;
if (v2) {
v5 = v2.r;
v9 = v2.g;
v7 = v2.b;
}
if (v1) {
v4 = v1.r;
v8 = v1.g;
v6 = v1.b;
}
v3.setTransform({'ra': v5, 'rb': 0, 'ga': v9, 'gb': 0, 'ba': v7, 'bb': 0, 'aa': 100, 'ab': 0});
v3 = new Color(char.part2);
v3.setTransform({'ra': v4, 'rb': 0, 'ga': v8, 'gb': 0, 'ba': v6, 'bb': 0, 'aa': 100, 'ab': 0});
}
stop();
}
frame 1 {
colorChar();
}
frame 7 {
colorChar();
}
frame 12 {
colorChar();
}
frame 18 {
colorChar();
}
frame 24 {
colorChar();
}
frame 30 {
colorChar();
}
frame 36 {
colorChar();
}
frame 42 {
colorChar();
}
frame 47 {
colorChar();
}
frame 53 {
colorChar();
}
frame 59 {
colorChar();
}
frame 65 {
colorChar();
}
frame 71 {
colorChar();
}
frame 77 {
colorChar();
}
frame 83 {
colorChar();
}
frame 89 {
colorChar();
}
frame 95 {
colorChar();
}
}
movieClip 1903 {
frame 1 {
function colorChar() {
var v2 = new Color(char.part1);
v2.setTransform({'ra': _parent.r1, 'ga': _parent.g1, 'ba': _parent.b1});
v2 = new Color(char.part2);
v2.setTransform({'ra': _parent.r2, 'ga': _parent.g2, 'ba': _parent.b2});
}
stop();
}
frame 1 {
colorChar();
}
frame 7 {
colorChar();
}
frame 12 {
colorChar();
}
frame 18 {
colorChar();
}
frame 24 {
colorChar();
}
frame 30 {
colorChar();
}
frame 36 {
colorChar();
}
frame 42 {
colorChar();
}
frame 47 {
colorChar();
}
frame 53 {
colorChar();
}
frame 59 {
colorChar();
}
frame 65 {
colorChar();
}
frame 71 {
colorChar();
}
frame 77 {
colorChar();
}
frame 83 {
colorChar();
}
frame 89 {
colorChar();
}
frame 95 {
colorChar();
}
}
movieClip 1910 {
}
movieClip 1911 {
frame 1 {
stop();
}
}
movieClip 1918 {
}
movieClip 1939 {
}
movieClip 1946 {
}
movieClip 1967 {
}
movieClip 1968 {
frame 1 {
stop();
}
}
movieClip 1975 {
}
movieClip 1982 {
}
movieClip 1989 {
}
movieClip 1992 {
}
movieClip 1995 {
}
movieClip 1998 {
}
movieClip 2001 {
}
movieClip 2007 {
}
movieClip 2011 {
}
movieClip 2012 {
}
movieClip 2019 {
}
movieClip 2026 {
}
movieClip 2033 {
}
movieClip 2036 {
}
movieClip 2039 {
}
movieClip 2042 {
}
movieClip 2045 {
}
movieClip 2048 {
}
movieClip 2055 {
}
movieClip 2062 {
}
movieClip 2069 {
}
movieClip 2072 {
}
movieClip 2075 {
}
movieClip 2078 {
}
movieClip 2081 {
}
movieClip 2084 {
}
movieClip 2091 {
}
movieClip 2098 {
}
movieClip 2105 {
}
movieClip 2108 {
}
movieClip 2111 {
}
movieClip 2114 {
}
movieClip 2117 {
}
movieClip 2120 {
}
movieClip 2127 {
}
movieClip 2134 {
}
movieClip 2141 {
}
movieClip 2144 {
}
movieClip 2147 {
}
movieClip 2150 {
}
movieClip 2153 {
}
movieClip 2156 {
}
movieClip 2157 {
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();
}
frame 1 {
colorBot();
}
frame 7 {
colorBot();
}
frame 12 {
colorBot();
}
frame 18 {
colorBot();
}
frame 24 {
colorBot();
}
frame 30 {
colorBot();
}
frame 36 {
colorBot();
}
frame 42 {
colorBot();
}
frame 47 {
colorBot();
}
frame 53 {
colorBot();
}
frame 59 {
colorBot();
}
frame 65 {
colorBot();
}
frame 71 {
colorBot();
}
frame 77 {
colorBot();
}
frame 83 {
colorBot();
}
frame 89 {
colorBot();
}
}
movieClip 2161 {
}
movieClip 2164 {
}
movieClip 2167 {
}
movieClip 2174 {
}
movieClip 2178 {
}
movieClip 2181 {
}
movieClip 2184 {
}
movieClip 2187 {
}
movieClip 2191 {
}
movieClip 2194 {
}
movieClip 2197 {
}
movieClip 2200 {
}
movieClip 2204 {
}
movieClip 2207 {
}
movieClip 2210 {
}
movieClip 2213 {
}
movieClip 2217 {
}
movieClip 2220 {
}
movieClip 2223 {
}
movieClip 2226 {
}
movieClip 2230 {
}
movieClip 2233 {
}
movieClip 2236 {
}
movieClip 2239 {
}
movieClip 2243 {
}
movieClip 2246 {
}
movieClip 2249 {
}
movieClip 2252 {
}
movieClip 2256 {
}
movieClip 2259 {
}
movieClip 2262 {
}
movieClip 2265 {
}
movieClip 2269 {
}
movieClip 2272 {
}
movieClip 2275 {
}
movieClip 2278 {
}
movieClip 2279 {
frame 1 {
function colorChar() {
c = new Color(char.part1);
c.setTransform({'ra': _global.part1r, 'ga': _global.part1g, 'ba': _global.part1b});
c = new Color(char.part2);
c.setTransform({'ra': _global.part2r, 'ga': _global.part2g, 'ba': _global.part2b});
c = new Color(char.part3);
c.setTransform({'ra': _global.part3r, 'ga': _global.part3g, 'ba': _global.part3b});
}
stop();
}
frame 1 {
colorChar();
}
frame 7 {
colorChar();
}
frame 12 {
colorChar();
}
frame 18 {
colorChar();
}
frame 24 {
colorChar();
}
frame 30 {
colorChar();
}
frame 36 {
colorChar();
}
frame 42 {
colorChar();
}
frame 47 {
colorChar();
}
frame 53 {
colorChar();
}
frame 59 {
colorChar();
}
frame 65 {
colorChar();
}
frame 71 {
colorChar();
}
frame 77 {
colorChar();
}
frame 83 {
colorChar();
}
frame 89 {
colorChar();
}
}
movieClip 2280 worldChar {
frame 1 {
stop();
}
frame 52 {
var c = new Color(char.part1);
c.setTransform({'ra': 70, 'ga': 20, 'ba': 20});
c = new Color(char.part2);
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
c = new Color(char.part3);
c.setTransform({'ra': 80, 'ga': 30, 'ba': 70});
}
}
movieClip 2291 drillclaw {
frame 2 {
_level0.playSound('c_spit');
stop();
}
frame 14 {
_level0.playSound('c_drillexplode');
}
frame 31 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit);
this.removeMovieClip();
}
}
movieClip 2297 {
}
movieClip 2298 cannon3 {
frame 2 {
_level0.playSound('c_lightning');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('c_laserexplode');
}
frame 27 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 2299 cannon2 {
frame 2 {
stop();
}
frame 2 {
_level0.playSound('hrange');
}
frame 14 {
_level0.playSound('explode');
}
frame 16 {
_level0.playSound('explode');
}
frame 37 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 2300 cannon {
frame 2 {
_level0.playSound('hrange');
}
frame 2 {
stop();
}
frame 14 {
_level0.playSound('explode');
}
frame 34 {
stop();
_parent.createDmg(this._x, this._y, dmg, owner, hit, crit);
this.removeMovieClip();
}
}
movieClip 2301 {
}
movieClip 2309 {
}
movieClip 2316 {
}
movieClip 2323 {
}
movieClip 2324 {
}
movieClip 2329 {
}
movieClip 2332 {
}
movieClip 2335 {
}
movieClip 2336 {
}
movieClip 2339 {
}
movieClip 2342 {
}
movieClip 2345 {
}
movieClip 2346 {
}
movieClip 2350 {
}
movieClip 2353 {
}
movieClip 2356 {
}
movieClip 2357 {
}
movieClip 2358 {
}
movieClip 2361 {
}
movieClip 2364 {
}
movieClip 2367 {
}
movieClip 2368 {
}
movieClip 2373 {
}
movieClip 2376 {
}
movieClip 2379 {
}
movieClip 2380 {
}
movieClip 2381 stinger {
frame 1 {
function colorBot(target) {
if (_parent.part1r == undefined) {
_parent.part1r = 50;
}
if (_parent.part1g == undefined) {
_parent.part1g = 80;
}
if (_parent.part1b == undefined) {
_parent.part1b = 100;
}
if (_parent.part2r == undefined) {
_parent.part2r = 30;
}
if (_parent.part2g == undefined) {
_parent.part2g = 40;
}
if (_parent.part2b == undefined) {
_parent.part2b = 80;
}
if (_parent.part3r == undefined) {
_parent.part3r = 100;
}
if (_parent.part3g == undefined) {
_parent.part3g = 100;
}
if (_parent.part3b == undefined) {
_parent.part3b = 100;
}
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});
}
}
frame 1 {
stop();
colorBot(bot);
}
frame 8 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 25 {
_parent.endAttack('attack');
}
frame 26 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 29 {
_parent.endAttack('attack2');
}
frame 30 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 44 {
_parent.endAttack('attack3');
}
frame 45 {
stop();
colorBot(bot.bot);
}
frame 51 {
stop();
colorBot(bot);
}
frame 58 {
stop();
colorBot(bot);
}
frame 65 {
stop();
colorBot(bot);
}
frame 71 {
_level0.playSound('die');
}
frame 71 {
colorBot(bot);
}
frame 93 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2384 {
}
movieClip 2387 {
}
movieClip 2390 {
}
movieClip 2394 {
}
movieClip 2395 {
}
movieClip 2399 {
}
movieClip 2402 {
}
movieClip 2405 {
}
movieClip 2406 {
}
movieClip 2408 {
}
movieClip 2411 {
}
movieClip 2413 {
}
movieClip 2414 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 6 {
stop();
}
frame 7 {
play();
}
frame 11 {
stop();
}
frame 12 {
play();
}
frame 16 {
stop();
}
frame 17 {
play();
}
frame 23 {
stop();
}
frame 24 {
play();
}
frame 31 {
stop();
}
frame 32 {
play();
}
frame 39 {
stop();
}
frame 40 {
play();
}
frame 47 {
stop();
}
frame 48 {
play();
}
frame 55 {
stop();
}
}
movieClip 2417 {
}
movieClip 2420 {
}
movieClip 2423 {
}
movieClip 2426 {
}
movieClip 2429 {
}
movieClip 2432 {
}
movieClip 2435 {
}
movieClip 2436 {
}
movieClip 2438 {
}
movieClip 2441 {
}
movieClip 2444 {
}
movieClip 2445 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 5 {
stop();
}
frame 6 {
play();
}
frame 9 {
stop();
}
frame 10 {
play();
}
frame 13 {
stop();
}
frame 14 {
play();
}
frame 17 {
stop();
}
frame 18 {
play();
}
frame 21 {
stop();
}
}
movieClip 2448 {
}
movieClip 2451 {
}
movieClip 2454 {
}
movieClip 2457 {
}
movieClip 2459 {
}
movieClip 2462 {
}
movieClip 2463 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 9 {
stop();
}
frame 10 {
play();
}
frame 16 {
stop();
}
frame 17 {
play();
}
frame 23 {
stop();
}
frame 24 {
play();
}
frame 29 {
stop();
}
frame 30 {
play();
}
frame 36 {
stop();
}
}
movieClip 2464 {
}
movieClip 2467 {
}
movieClip 2470 {
}
movieClip 2473 {
}
movieClip 2474 {
}
movieClip 2477 {
}
movieClip 2480 {
}
movieClip 2483 {
}
movieClip 2484 {
}
movieClip 2485 luna {
frame 1 {
function colorBot(target) {
if (_parent.part1r == undefined) {
_parent.part1r = 80;
}
if (_parent.part1g == undefined) {
_parent.part1g = 100;
}
if (_parent.part1b == undefined) {
_parent.part1b = 100;
}
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 = 100;
}
if (_parent.part3g == undefined) {
_parent.part3g = 100;
}
if (_parent.part3b == undefined) {
_parent.part3b = 100;
}
c = new Color(target.part1);
c.setTransform({'ra': _parent.part1r, 'ga': _parent.part1g, 'ba': _parent.part1b});
c = new Color(target.part2);
c.setTransform({'ra': _parent.part2r, 'ga': _parent.part2g, 'ba': _parent.part2b});
c = new Color(target.part3);
c.setTransform({'ra': _parent.part3r, 'ga': _parent.part3g, 'ba': _parent.part3b});
}
}
frame 1 {
stop();
colorBot(bot);
}
frame 8 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
_parent.startAttack();
colorBot(bot);
play();
}
frame 10 {
colorBot(bot);
}
frame 18 {
_parent.endAttack('attack');
}
frame 19 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 22 {
_parent.endAttack('attack2');
}
frame 23 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 35 {
_parent.endAttack('attack3');
}
frame 36 {
stop();
colorBot(bot.bot);
}
frame 42 {
stop();
colorBot(bot);
}
frame 49 {
stop();
colorBot(bot);
}
frame 56 {
stop();
colorBot(bot);
}
frame 62 {
colorBot(bot);
}
frame 62 {
_level0.playSound('die');
}
frame 84 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2492 {
}
movieClip 2499 {
}
movieClip 2506 {
}
movieClip 2508 {
}
movieClip 2515 {
}
movieClip 2522 {
}
movieClip 2529 {
}
movieClip 2536 {
}
movieClip 2537 {
}
movieClip 2538 {
}
movieClip 2541 {
}
movieClip 2544 {
}
movieClip 2547 {
}
movieClip 2549 {
}
movieClip 2552 {
}
movieClip 2555 {
}
movieClip 2558 {
}
movieClip 2563 {
}
movieClip 2566 {
}
movieClip 2569 {
}
movieClip 2572 {
}
movieClip 2573 {
}
movieClip 2574 avenger {
frame 1 {
function colorBot(target) {
if (_parent.part1r == undefined) {
_parent.part1r = 90;
}
if (_parent.part1g == undefined) {
_parent.part1g = 90;
}
if (_parent.part1b == undefined) {
_parent.part1b = 30;
}
if (_parent.part2r == undefined) {
_parent.part2r = 30;
}
if (_parent.part2g == undefined) {
_parent.part2g = 30;
}
if (_parent.part2b == undefined) {
_parent.part2b = 100;
}
if (_parent.part3r == undefined) {
_parent.part3r = 100;
}
if (_parent.part3g == undefined) {
_parent.part3g = 100;
}
if (_parent.part3b == undefined) {
_parent.part3b = 100;
}
c = new Color(target.part1);
c.setTransform({'ra': _parent.part1r, 'ga': _parent.part1g, 'ba': _parent.part1b});
c = new Color(target.part2);
c.setTransform({'ra': _parent.part2r, 'ga': _parent.part2g, 'ba': _parent.part2b});
c = new Color(target.part3);
c.setTransform({'ra': _parent.part3r, 'ga': _parent.part3g, 'ba': _parent.part3b});
}
}
frame 1 {
stop();
colorBot(bot);
}
frame 8 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 16 {
_parent.endAttack('attack');
}
frame 17 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 21 {
_parent.endAttack('attack2');
}
frame 22 {
weaponclip.gotoAndPlay(_parent.weapUse.wid);
colorBot(bot);
_parent.startAttack();
play();
}
frame 32 {
_parent.endAttack('attack3');
}
frame 33 {
stop();
colorBot(bot.bot);
}
frame 39 {
stop();
colorBot(bot.bot);
}
frame 46 {
stop();
colorBot(bot);
}
frame 53 {
stop();
colorBot(bot);
}
frame 59 {
colorBot(bot);
}
frame 59 {
_level0.playSound('die');
}
frame 81 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2585 {
}
movieClip 2596 {
}
movieClip 2597 {
}
movieClip 2600 {
}
movieClip 2603 {
}
movieClip 2604 {
}
movieClip 2607 {
}
movieClip 2610 {
}
movieClip 2611 {
}
movieClip 2614 {
}
movieClip 2617 {
}
movieClip 2618 {
}
movieClip 2622 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('move');
}
frame 26 {
stop();
}
}
movieClip 2623 sproutwarrior {
frame 1 {
stop();
_parent.colorBot(bot);
}
frame 10 {
_parent.startAttack();
_parent.colorBot(bot);
}
frame 10 {
_level0.playSound('smash');
}
frame 23 {
_parent.endAttack('attack');
}
frame 24 {
_parent.startAttack();
_parent.colorBot(bot);
}
frame 24 {
_level0.playSound('lrange');
}
frame 48 {
_parent.endAttack('attack2');
}
frame 49 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
_parent.colorBot(bot.bot);
}
frame 54 {
_parent.colorBot(bot);
}
frame 61 {
gotoAndPlay('move');
}
frame 62 {
_parent.colorBot(bot);
}
frame 69 {
gotoAndPlay('move');
}
frame 70 {
_parent.colorBot(bot);
}
frame 70 {
_level0.playSound('die');
}
frame 92 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2630 {
}
movieClip 2637 {
}
movieClip 2638 {
}
movieClip 2645 {
frame 8 {
stop();
}
}
movieClip 2652 {
frame 8 {
stop();
}
}
movieClip 2653 {
}
movieClip 2660 {
}
movieClip 2667 {
}
movieClip 2668 {
}
movieClip 2671 {
}
movieClip 2674 {
}
movieClip 2675 {
}
movieClip 2679 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('move');
}
frame 20 {
stop();
}
}
movieClip 2680 skullhead {
frame 1 {
stop();
_parent.colorBot(bot);
}
frame 7 {
_level0.playSound('hrange');
}
frame 7 {
_parent.colorBot(bot);
}
frame 18 {
_parent.startAttack();
}
frame 28 {
_parent.endAttack('attack');
}
frame 29 {
_level0.playSound('smash');
}
frame 29 {
_parent.startAttack();
_parent.colorBot(bot);
play();
}
frame 40 {
_parent.endAttack('attack2');
}
frame 41 {
_parent.MI = setInterval(_parent.moveMe, 10);
_parent.colorBot(bot.bot);
stop();
}
frame 46 {
_parent.colorBot(bot);
}
frame 53 {
gotoAndStop('move');
}
frame 54 {
_parent.colorBot(bot);
}
frame 62 {
gotoAndStop('move');
}
frame 63 {
_level0.playSound('die');
}
frame 63 {
_parent.colorBot(bot);
}
frame 85 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2691 {
}
movieClip 2692 {
}
movieClip 2697 phasebat {
frame 1 {
stop();
}
frame 10 {
_parent.startAttack();
}
frame 12 {
_level0.playSound('steelstab');
}
frame 23 {
_parent.endAttack('attack');
}
frame 24 {
_parent.startAttack();
}
frame 25 {
_level0.playSound('laser');
}
frame 44 {
_parent.endAttack('attack2');
}
frame 45 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 64 {
gotoAndPlay('move');
}
frame 65 {
_level0.playSound('die');
}
frame 87 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2698 junglespider {
frame 1 {
stop();
}
frame 10 {
_parent.startAttack();
}
frame 52 {
_parent.endAttack('attack');
}
frame 53 {
_parent.startAttack();
}
frame 55 {
_level0.playSound('web');
}
frame 60 {
_parent.endAttack('attack2');
}
frame 61 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 82 {
gotoAndPlay('move');
}
frame 83 {
_level0.playSound('die');
}
frame 105 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2699 {
}
movieClip 2702 hermitshark {
frame 1 {
stop();
}
frame 10 {
_parent.startAttack();
}
frame 73 {
_parent.endAttack('attack');
}
frame 74 {
_level0.playSound('laser');
}
frame 74 {
_parent.startAttack();
}
frame 84 {
_parent.endAttack('attack2');
}
frame 85 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 105 {
gotoAndPlay('move');
}
frame 106 {
_level0.playSound('die');
}
frame 128 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2709 {
}
movieClip 2717 {
}
movieClip 2720 {
}
movieClip 2721 drillfiend {
frame 1 {
stop();
}
frame 10 {
_parent.startAttack();
}
frame 35 {
_parent.endAttack('attack');
}
frame 36 {
_parent.startAttack();
}
frame 101 {
_parent.endAttack('attack2');
}
frame 102 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 114 {
gotoAndPlay('move');
}
frame 123 {
gotoAndPlay('move');
}
frame 124 {
_level0.playSound('die');
}
frame 146 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2728 {
}
movieClip 2745 {
}
movieClip 2746 grindworm {
frame 1 {
stop();
}
frame 19 {
_parent.startAttack();
}
frame 27 {
_parent.endAttack('attack');
}
frame 28 {
_parent.startAttack();
}
frame 128 {
stop();
_parent.endAttack('attack2');
}
frame 129 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 141 {
gotoAndPlay('move');
}
frame 150 {
gotoAndPlay('move');
}
frame 151 {
_level0.playSound('die');
}
frame 173 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2749 {
}
movieClip 2750 {
}
movieClip 2757 {
}
movieClip 2758 {
frame 11 {
stop();
}
}
movieClip 2759 derelict {
frame 1 {
stop();
}
frame 27 {
_parent.startAttack();
}
frame 30 {
_level0.playSound('smash');
}
frame 38 {
_parent.endAttack('attack');
}
frame 39 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 53 {
gotoAndPlay('move');
}
frame 54 {
_level0.playSound('die');
}
frame 76 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2766 {
}
movieClip 2787 chef {
frame 1 {
stop();
}
frame 16 {
_parent.startAttack();
}
frame 31 {
_parent.endAttack('attack');
}
frame 46 {
_parent.startAttack();
}
frame 71 {
_parent.endAttack('attack2');
}
frame 95 {
_parent.startAttack();
}
frame 111 {
_parent.endAttack('attack3');
}
frame 112 {
_parent.startAttack();
}
frame 138 {
_parent.endAttack('attack4');
}
frame 139 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 175 {
gotoAndPlay('move');
}
frame 176 {
_level0.playSound('die');
}
frame 186 {
_level0.playSound('explode');
}
frame 218 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2794 {
}
movieClip 2801 {
}
movieClip 2806 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('move');
}
frame 22 {
stop();
}
}
movieClip 2813 {
frame 15 {
_parent.play();
}
}
movieClip 2814 sproutlord {
frame 1 {
stop();
}
frame 10 {
_parent.startAttack();
}
frame 10 {
_level0.playSound('steelsword');
}
frame 14 {
_parent.endAttack('attack');
}
frame 15 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 20 {
stop();
}
frame 21 {
gotoAndPlay('move');
}
frame 30 {
_level0.playSound('die');
}
frame 52 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2821 {
}
movieClip 2839 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('move');
}
frame 20 {
stop();
}
}
movieClip 2840 pirate {
frame 1 {
stop();
}
frame 10 {
_parent.startAttack();
}
frame 13 {
_parent.endAttack('attack');
}
frame 14 {
_parent.startAttack();
}
frame 20 {
_level0.playSound('steelsword');
}
frame 28 {
_parent.endAttack('attack2');
}
frame 29 {
_parent.startAttack();
}
frame 34 {
_parent.endAttack('attack3');
}
frame 35 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 64 {
gotoAndPlay('move');
}
frame 65 {
_level0.playSound('die');
}
frame 97 {
_parent._visible = false;
gotoAndStop(1);
}
}
movieClip 2847 {
}
movieClip 2865 {
}
movieClip 2868 {
}
movieClip 2875 {
frame 10 {
_parent.play();
}
}
movieClip 2876 officer {
frame 1 {
stop();
}
frame 19 {
_parent.startAttack();
}
frame 57 {
_parent.endAttack('attack');
}
frame 58 {
}
frame 58 {
_level0.playSound('steelsword');
}
frame 64 {
_parent.startAttack();
}
frame 88 {
_parent.endAttack('attack2');
}
frame 93 {
_parent.startAttack();
}
frame 102 {
_parent.endAttack('attack3');
}
frame 103 {
stop();
_parent.MI = setInterval(_parent.moveMe, 10);
}
frame 103 {
_level0.playSound('move');
}
frame 124 {
counter = 0;
}
frame 132 {
gotoAndPlay('move');
}
frame 133 {
_level0.playSound('die');
}
frame 155 {
_parent._visible = false;
gotoAndStop(1);
}
}
frame 32 {
function getCharColor(characterid) {
var v3 = _global.mainsave.getItemList('character');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('name') == characterid) {
return v3[v2].getItemList('parts');
}
++v2;
}
}
function setMapLocation(newloc) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('maplocation', newloc);
}
function getMapLocation() {
var v2 = _global.mainsave.getItemList('globalvars');
return parseInt(v2[0].getAttribute('maplocation'));
}
function getAreaLocation() {
var v2 = _global.mainsave.getItemList('globalvars');
return parseInt(v2[0].getAttribute('arealocation'));
}
function setAreaLocation(newloc) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('arealocation', newloc);
}
function getXloc() {
var v2 = _global.mainsave.getItemList('globalvars');
return parseInt(v2[0].getAttribute('tx'));
}
function setXloc(newloc) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('tx', newloc);
}
function getZloc() {
var v2 = _global.mainsave.getItemList('globalvars');
return parseInt(v2[0].getAttribute('tz'));
}
function setZloc(newloc) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('tz', newloc);
}
function getCredits() {
var v2 = _global.mainsave.getItemList('globalvars');
return parseInt(v2[0].getAttribute('credits'));
}
function setCredits(newData) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('credits', newData);
}
function getChance() {
var v2 = _global.mainsave.getItemList('globalvars');
return parseInt(v2[0].getAttribute('chance'));
}
function setChance(newloc) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('chance', newloc);
}
function getFame() {
var v2 = _global.mainsave.getItemList('globalvars');
return int(v2[0].getAttribute('fame'));
}
function setFame(newfame) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('fame', newfame);
}
function getMM() {
var v2 = _global.mainsave.getItemList('globalvars');
return int(v2[0].getAttribute('mm'));
}
function setMM(newmm) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('mm', newmm);
}
function getHH() {
var v2 = _global.mainsave.getItemList('globalvars');
return int(v2[0].getAttribute('hh'));
}
function setHH(newhh) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('hh', newhh);
}
function getDD() {
var v2 = _global.mainsave.getItemList('globalvars');
return int(v2[0].getAttribute('dd'));
}
function setDD(newdd) {
var v2 = _global.mainsave.getItemList('globalvars');
v2[0].setAttribute('dd', newdd);
}
function checkAreaLocked(areaid) {
var v5 = _global.mainsave.getItemList('arealist');
var v3 = v5[0].getItemList('area');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('id') == areaid && v3[v2].getAttribute('unlock') == 'true') {
return true;
}
++v2;
}
return false;
}
function unlockArea(areaid) {
var v3 = _global.mainsave.getItemList('arealist');
if (v3.length == 0) {
var v4 = new SaveItemObj('arealist');
_global.mainsave.addItem(v4);
v3 = _global.mainsave.getItemList('arealist');
}
var v2 = new SaveItemObj('area');
v2.setAttribute('unlock', 'true');
v2.setAttribute('id', areaid);
v3[0].addItem(v2);
}
function saveMapDetails() {
var v3 = _global.mainsave.getItemList('globalvars');
v3[0].printitems();
setAreaLocation(_root.areaLocation);
setMapLocation(_root.mapLocation);
setChance(_root.chance);
setMM(_root.mm);
setHH(_root.hh);
setDD(_root.dd);
setXloc(parseInt(_root.world[player].tempx));
setZloc(parseInt(_root.world[player].tempz));
}
function evaluse(functionid, characterid, parameters) {
var v3 = parameters.split(':');
switch (functionid) {
case 'boastattribute':
return _root.boastattribute(characterid, v3[0], v3[1], v3[2], v3[3], v3[4]);
break;
case 'addattribute':
_level0.playSound('levelup');
return _root.addattribute(characterid, v3[0], v3[1], v3[2], v3[3]);
break;
case 'lowerencounter':
_level0.playSound('hrange');
_global.action = 'walking';
_level0.chance = int(v3[3]) + random(int(v3[2]) - int(v3[3]));
var v5 = 'Encounter rate lowered...';
var v4 = new Object();
v4.x = world[player].clip.char._x;
v4.y = world[player].clip.char._y;
world[player].clip.char.localToGlobal(v4);
txtbubble.popup_text(v5, 150, '0xFFFFFF', v4.x, v4.y - 40, 0, 0, 'hide');
txtbubble.settimer(50);
_level0.hidemenu();
return true;
break;
case 'raiseencounter':
_level0.playSound('explode');
_global.action = 'walking';
if (_level0.encounterRate != 0 && _level0.encounterRate != 'NONSAVE') {
_level0.chance = 2 + random(5);
} else {
var v5 = 'No visible effect...';
var v4 = new Object();
v4.x = world[player].clip.char._x;
v4.y = world[player].clip.char._y;
world[player].clip.char.localToGlobal(v4);
txtbubble.popup_text(v5, 150, '0xFFFFFF', v4.x, v4.y - 40, 0, 0, 'hide');
txtbubble.settimer(50);
}
_level0.hidemenu();
return true;
break;
case 'wait':
_level0.talkingSystem.chatActivate(_level0.talkingSystem.sleep_0);
_level0.hidemenu();
return true;
case 'showencountrate':
_global.action = 'walking';
var v5 = 'The radar indicates an encounter rate of ' + _level.encounterRate;
if (_level0.encounterRate == 'NONSAVE' || _level0.encounterRate == 0) {
v5 = 'The radar shows nothing.';
}
var v4 = new Object();
v4.x = world[player].clip.char._x;
v4.y = world[player].clip.char._y;
world[player].clip.char.localToGlobal(v4);
txtbubble.popup_text(v5, 150, '0xFFFFFF', v4.x, v4.y - 40, 0, 0, 'hide');
txtbubble.settimer(50);
_level0.hidemenu();
return true;
}
}
function boastattribute(characterid, attribute, addremove, maxvalue, minvalue, timelag) {
var v2 = Math.random() * (maxvalue - minvalue);
v2 = minvalue + v2;
var v6 = _root.getCharacterAttr(characterid, attribute);
_root.setCharacterAttr(characterid, attribute, v2);
if (!_root.intervalcount) {
_root.intervalcount = new Array();
}
var v3 = _root.intervalcount.length;
_root.intervalcount[v3] = setInterval('endattributeboast', timelag, v3, characterid, attribute, v6);
}
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 v2 = Math.floor(Math.random() * (maxvalue - minvalue));
v2 = minvalue + v2;
var v3 = _root.getCharacterAttr(characterid, attribute);
v3 = parseInt(v3);
if (attribute == 'currhp') {
hpvalue = parseInt(_root.getCharacterAttr(characterid, 'hp'));
if (v3 + v2 > hpvalue) {
v2 = hpvalue - v3;
}
}
if (addremove == 'add') {
var v6 = v3 + v2;
}
if (addremove == 'subtract') {
v6 = v3 - v2;
}
_root.setCharacterAttr(characterid, attribute, v6);
var v4 = new Array();
v4.attribute = attribute;
v4.amount = v2;
v4.addremove = addremove;
v4.newvalue = v6;
v4.oldvalue = v3;
return v4;
}
function checkItemNumber(itemid) {
var v7 = _global.mainsave.getItemList('inventory');
var v4 = v7[0].getItemList('item');
var v5 = 0;
var v2 = 0;
while (v2 < v4.length) {
if (v4[v2].getAttribute('id') == itemid) {
var v3 = v4[v2].getAttribute('number');
if (v3 == undefined) {
++v5;
} else {
v5 += parseInt(v3);
}
}
++v2;
}
return v5;
}
function checkNonEquippedItemNumber(itemid) {
var v7 = _global.mainsave.getItemList('inventory');
var v3 = v7[0].getItemList('item');
var v5 = 0;
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('id') == itemid && !v3[v2].getAttribute('equip')) {
var v4 = v3[v2].getAttribute('number');
if (!v4) {
++v5;
} else {
v5 += parseInt(v4);
}
}
++v2;
}
return v5;
}
function equipItem(itemid, characterid) {}
function reorg_invent() {
var v5 = _global.mainsave.getItemList('inventory');
var v2 = v5[0].getItemListIndex('item');
var v3 = new Array();
for (var v6 in v2) {
if (v3[v2[v6].getAttribute('id')]) {
v3[v2[v6].getAttribute('id')] = v2[v6];
} else {
var v4 = parseInt(v3[v2[v6].getAttribute('id')].getAttribute('number'));
v3[v2[v6].getAttribute('id')].setAttribute('number', ++v4);
v5[0].removeItem(v6);
}
}
}
function getInventorySpace() {
var v5 = _global.mainsave.getItemList('inventory');
var v3 = v5[0].getItemList('item');
var v4 = 0;
var v2 = 0;
while (v2 < v3.length) {
if (!v3[v2].getAttribute('equip')) {
++v4;
}
++v2;
}
return v4;
}
function addItem(itemid, num, quest) {
var v10 = _global.mainsave.getItemList('inventory');
counter = 0;
if (v10.length == 0) {
var v11 = new SaveItemObj('inventory');
_global.mainsave.addItem(v11);
v10 = _global.mainsave.getItemList('inventory');
}
var v5 = v10[0].getItemList('item');
if (_root.invenitem[itemid].stack) {
var v3 = 0;
while (v3 < v5.length) {
if (v5[v3].getAttribute('id') == itemid) {
var v6 = parseInt(v5[v3].getAttribute('number'));
if (!v6) {
v6 = 0;
}
var v7 = v6 + num;
if (v7 > 99) {
return 'MAXOUT';
}
v5[v3].setAttribute('number', v7);
++counter;
return 'SUCCESS';
}
++v3;
}
if (counter == 0) {
if (_level0.getInventorySpace() >= _level0.MAX_INVENTORY_SPACE) {
if (!quest) {
return 'MAXOUT';
}
}
var v4 = new SaveItemObj('item');
v4.setAttribute('id', itemid);
v4.setAttribute('location', 'none');
v4.setAttribute('number', num);
v10[0].addItem(v4);
}
return 'SUCCESS';
}
if (_level0.getInventorySpace() + num > _level0.MAX_INVENTORY_SPACE) {
if (!quest) {
return 'MAXOUT';
}
}
while (counter < num) {
v4 = new SaveItemObj('item');
v4.setAttribute('id', itemid);
v4.setAttribute('location', 'none');
v4.setAttribute('number', '1');
v10[0].addItem(v4);
++counter;
}
return 'SUCCESS';
}
function removeItem(itemid, num) {
var v5 = _global.mainsave.getItemList('inventory');
var v2 = v5[0].getItemListIndex('item');
var v8 = 0;
for (var v6 in v2) {
if (v2[v6].getAttribute('equip') == undefined && v2[v6].getAttribute('id') == itemid) {
var v3 = parseInt(v2[v6].getAttribute('number'));
if (!v3) {
v3 = 1;
}
if (v3 <= num) {
v5[0].removeItem(v6);
--num;
} else {
v2[v6].setAttribute('number', v3 - num);
num = 0;
}
if (num <= 0) {
return true;
}
}
}
return false;
}
function listallItems() {
var v3 = _global.mainsave.getItemList('inventory');
var v2 = v3[0].getItemList('item');
return v2;
}
function listallEquippedItems() {
var v4 = new Array();
var v5 = _global.mainsave.getItemList('inventory');
var v3 = v5[0].getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('equip')) {
v4[v4.length] = v3[v2];
}
++v2;
}
return v4;
}
function getItemName(itemid) {
return invenitem[itemid].name;
}
function getItemProp(itemid) {
return invenitem[itemid];
}
function printallitems() {
var v4 = _global.mainsave.getItemList('inventory');
var v3 = v4[0].getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
++v2;
}
}
function getEquippedTop() {
var v4 = _global.mainsave.getItemList('inventory');
var v3 = v4[0].getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('equip') == 'A001' && invenitem[v3[v2].getAttribute('id')].equip == 'TOP') {
return invenitem[v3[v2].getAttribute('id')];
}
++v2;
}
return undefined;
}
function getEquippedBottom() {
var v4 = _global.mainsave.getItemList('inventory');
var v3 = v4[0].getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('equip') == 'A001' && invenitem[v3[v2].getAttribute('id')].equip == 'BOTTOM') {
return invenitem[v3[v2].getAttribute('id')];
}
++v2;
}
return undefined;
}
function checkRequirements() {
var v4 = _level0.listallItems();
var v2 = 0;
while (v2 < v4.length) {
if (v4[v2].getAttribute('equip')) {
var v7 = v4[v2].getAttribute('id');
var v9 = v4[v2].getAttribute('equip');
var v5 = new Array('capacity');
var v3 = 0;
while (v3 < v5.length) {
var v8 = _level0['char' + v9][v5[v3]];
var v6 = _level0.invenitem[v7]['min' + v5[v3]];
if (v6) {
if (v8 < v6) {
var v1 = _level0.inventory.characterdetails.equipbox[v4[v2].getAttribute('location')];
v1.itemimage.removeMovieClip();
v1.itemobj = null;
v1.itemprop = null;
delete v1.onRollOver;
delete v1.onRollOut;
delete v1.onPress;
delete v1.onRelease;
delete v1.onReleaseOutside;
v4[v2].removeAttribute('equip');
v4[v2].setAttribute('location', 'none');
}
}
++v3;
}
}
++v2;
}
_level0.create_inventory();
}
function clothesdescription(ref, acc, tec) {
var v1 = '';
if (ref || acc || tec) {
v1 += '\n(ADDS';
if (ref) {
v1 += ' ' + ref + ' Ref';
}
if (acc) {
v1 += ' ' + acc + ' Acc';
}
if (tec) {
v1 += ' ' + tec + ' Tec';
}
if (cap) {
v1 += ' ' + cap + ' Cap';
}
v1 += ')';
}
return v1;
}
function weapdescription(mindmg, maxdmg, hits, crit, hitbonus, energy, mref, macc, mtec, mcap, user) {
var v2 = '\n(' + mindmg + '-' + maxdmg + ' dmg';
if (hits > 1) {
v2 += ' x ' + hits + ' hits';
}
v2 += ')';
if (crit || hitbonus) {
v2 += '\n';
if (crit) {
v2 += '[+' + crit + '% Crit] ';
}
if (hitbonus) {
v2 += '[' + hitbonus + ' Hitbonus]';
}
}
v2 += '\nUses ' + energy + ' energy';
if (mref || macc || mtec || mcap) {
v2 += '\n(REQ';
if (mref) {
v2 += ' ' + mref + ' Ref';
}
if (macc) {
v2 += ' ' + macc + ' Acc';
}
if (mtec) {
v2 += ' ' + mtec + ' Tec';
}
if (mcap) {
v2 += ' ' + mcap + ' Cap';
}
v2 += ')';
}
v2 += '\n(';
var v1 = 0;
while (v1 < user.length - 1) {
v2 += user[v1] + '|';
++v1;
}
v2 += user[user.length - 1];
return v2 + ')\n';
}
function armordescription(def, mref, macc, mtec, user) {
var v2 = '\n(+ ' + def + ' def)';
if (mref || macc || mtec) {
v2 += '\n(REQ';
if (mref) {
v2 += ' ' + mref + ' Ref';
}
if (macc) {
v2 += ' ' + macc + ' Acc';
}
if (mtec) {
v2 += ' ' + mtec + ' Tec';
}
v2 += ')';
}
v2 += '\n(';
var v1 = 0;
while (v1 < user.length - 1) {
v2 += user[v1] + '|';
++v1;
}
v2 += user[user.length - 1];
return v2 + ')';
}
function generatordescription(capacity, energy, user) {
var v3 = '(' + capacity + ' capacity)\n';
v3 += '(' + energy + ' energy)\n';
v3 += '(';
var v1 = 0;
while (v1 < user.length - 1) {
v3 += user[v1] + '|';
++v1;
}
v3 += user[user.length - 1];
return v3 + ')';
}
function getCharacterAttr(characterid, attribute) {
var v6 = _global.mainsave.getItemList('character');
var v4 = 0;
while (v4 < v6.length) {
if (v6[v4].getAttribute('id') == characterid) {
if (v6[v4].getAttribute(attribute)) {
return v6[v4].getAttribute(attribute);
} else {
var v3 = v6[v4].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('active') == 'true') {
return v3[v2].getAttribute(attribute);
}
++v2;
}
}
}
++v4;
}
}
function setCharacterAttr(characterid, attribute, val) {
var v5 = _global.mainsave.getItemList('character');
var v4 = 0;
while (v4 < v5.length) {
if (v5[v4].getAttribute('id') == characterid) {
if (v5[v4].getAttribute(attribute)) {
v5[v4].setAttribute(attribute, val);
} else {
var v3 = v5[v4].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('active') == 'true') {
v3[v2].setAttribute(attribute, val);
}
++v2;
}
}
return undefined;
}
++v4;
}
}
function replaceMaw(charid, newbotid) {
var v9 = _global.mainsave.getItemList('character');
var v13 = false;
_level0.selectedMaw = newbotid;
var v4 = 0;
while (v4 < v9.length) {
var v11 = v9[v4].getAttribute('id');
if (v11 == charid) {
var v3 = v9[v4].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
var v8 = v3[v2].getAttribute('botid');
v3[v2].setAttribute('botid', newbotid);
v3[v2].setAttribute('name', _level0.mawslist[newbotid].name);
v3[v2].setAttribute('energy', _level0.mawslist[newbotid].energy);
v3[v2].setAttribute('capacity', _level0.mawslist[newbotid].capacity);
v3[v2].setAttribute('defense', _level0.mawslist[newbotid].defense);
var v7 = int(v3[v2].getAttribute('hp')) - _level0.mawslist[v8].hp;
v3[v2].setAttribute('hp', _level0.mawslist[newbotid].hp + v7);
v3[v2].setAttribute('currhp', _level0.mawslist[newbotid].hp + v7);
++v2;
}
var v10 = _global.mainsave.getItemList('inventory');
var v6 = v10[0].getItemList('item');
v4 = 0;
while (v4 < v6.length) {
if (v6[v4].getAttribute('equip') == charid && _level0.invenitem[v6[v4].getAttribute('id')].type != 'CLOTHES') {
v6[v4].removeAttribute('equip');
v6[v4].setAttribute('location', 'none');
}
++v4;
}
}
++v4;
}
}
function addCharacter(charid, position) {
var v4 = _global.mainsave.getItemList('character');
var v6 = false;
var v3 = 0;
while (v3 < v4.length) {
var v5 = v4[v3].getAttribute('id');
if (v5 == charid) {
v4[v3].setAttribute('active', position);
v6 = true;
break;
}
++v3;
}
if (!v6) {
this['add' + charid](position);
}
}
function addA002(pos) {
var v5 = 'stinger';
var v15 = mawslist[v5].name;
var v11 = mawslist[v5].capacity;
var v13 = mawslist[v5].defense;
var v10 = 180;
var v12 = mawslist[v5].energy;
var v8 = '<character id="A002" name="Barrage" reflex="9" accuracy="9" technique="12" xp="550" active="' + pos + '" level="5" gender="m" sp="0" combat="true">';
v8 += '<bot botid="' + v5 + '" name="' + v15 + '" capacity="' + v11 + '" defense="' + v13 + '" currhp="' + v10 + '" hp="' + v10 + '" energy="' + v12 + '" active="true">';
v8 += '<parts name="part1" colorr="50" colorg="80" colorb="100" /><parts name="part2" colorr="100" colorg="100" colorb="100" /><parts name="part3" colorr="30" colorg="40" colorb="80" /></bot></character>';
var v6 = new SaveItemObj('character');
var v7 = new XML(v8);
v6.loadXML(v7.firstChild);
_global.mainsave.addItem(v6);
var v14 = '<inventory><item id="C01AT" location="top" equip="A002" /><item id="C02AB" location="bottom" equip="A002" /><item id="C01AF" location="footwear" equip="A002" /><item id="W01LM" location="right" equip="A002" /><item id="A01" location="armor" equip="A002" /></inventory>';
var v9 = new SaveItemObj('inventory');
v7 = new XML(v14);
v9.loadXML(v7.firstChild);
var v4 = _global.mainsave.getItemList('inventory');
var v3 = v9.getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
v4[0].addItem(v3[v2]);
++v2;
}
v9.printitems();
}
function addA003(pos) {
var v5 = 'luna';
var v15 = mawslist[v5].name;
var v11 = mawslist[v5].capacity;
var v13 = mawslist[v5].defense;
var v10 = 250;
var v12 = mawslist[v5].energy;
var v8 = '<character id="A003" name="Calisto" reflex="14" accuracy="14" technique="8" xp="1850" active="' + pos + '" level="8" gender="f" sp="0" combat="true">';
v8 += '<bot botid="' + v5 + '" name="' + v15 + '" capacity="' + v11 + '" defense="' + v13 + '" currhp="' + v10 + '" hp="' + v10 + '" energy="' + v12 + '" active="true">';
v8 += '<parts name="part1" colorr="70" colorg="20" colorb="20" /><parts name="part2" colorr="100" colorg="100" colorb="100" /><parts name="part3" colorr="80" colorg="30" colorb="70" /></bot></character>';
var v6 = new SaveItemObj('character');
var v7 = new XML(v8);
v6.loadXML(v7.firstChild);
_global.mainsave.addItem(v6);
var v14 = '<inventory><item id="C02AT" location="top" equip="A003" /><item id="C02AB" location="bottom" equip="A003" /><item id="C01AF" location="footwear" equip="A003" /><item id="W02M" location="right" equip="A003" /><item id="A01" location="armor" equip="A003" /></inventory>';
var v9 = new SaveItemObj('inventory');
v7 = new XML(v14);
v9.loadXML(v7.firstChild);
var v4 = _global.mainsave.getItemList('inventory');
var v3 = v9.getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
v4[0].addItem(v3[v2]);
++v2;
}
v9.printitems();
}
function addA004(pos) {
var v6 = 'mantra';
var v15 = mawslist[v6].name;
var v11 = mawslist[v6].capacity;
var v13 = mawslist[v6].defense;
var v10 = 300;
var v12 = mawslist[v6].energy;
var v5 = '<character id="A004" name="Laura" reflex="10" accuracy="19" technique="13" xp="4000" active="' + pos + '" level="10" gender="f" sp="0" combat="false">';
v5 += '<bot botid="' + v6 + '" name="' + v15 + '" capacity="' + v11 + '" defense="' + v13 + '" currhp="' + v10 + '" hp="' + v10 + '" energy="' + v12 + '" active="true">';
v5 += '<parts name="part1" colorr="60" colorg="50" colorb="100" />';
v5 += '<parts name="part2" colorr="30" colorg="30" colorb="50" />';
v5 += '<parts name="part3" colorr="100" colorg="100" colorb="100" />';
v5 += '</bot></character>';
var v7 = new SaveItemObj('character');
var v8 = new XML(v5);
v7.loadXML(v8.firstChild);
_global.mainsave.addItem(v7);
var v14 = '<inventory><item id="C02AT" location="top" equip="A004" /><item id="C02AB" location="bottom" equip="A004" /><item id="C02AF" location="footwear" equip="A004" /><item id="W02SC" location="right" equip="A004" /><item id="A02" location="armor" equip="A004" /><item id="G002" location="back" equip="A004" /></inventory>';
var v9 = new SaveItemObj('inventory');
v8 = new XML(v14);
v9.loadXML(v8.firstChild);
var v4 = _global.mainsave.getItemList('inventory');
var v3 = v9.getItemList('item');
var v2 = 0;
while (v2 < v3.length) {
v4[0].addItem(v3[v2]);
++v2;
}
v9.printitems();
}
function getMainCharacters() {
var v4 = _global.mainsave.getItemList('character');
var v3 = 0;
while (v3 < v4.length) {
if (v4[v3].getAttribute('name') == _root.SaveList.userid) {
return v4[v3];
}
++v3;
}
}
function activateCharacter(charid, pos) {
var v5 = 0;
var v6 = _level0.getActiveCharacters();
var v2 = 0;
while (v2 < v6.length) {
if (v6[v2].getAttribute('combat') == 'true') {
++v5;
}
++v2;
}
var v3 = _global.mainsave.getItemList('character');
v2 = 0;
while (v2 < v3.length) {
var v4 = v3[v2].getAttribute('id');
if (v4 == charid) {
v3[v2].setAttribute('active', pos);
if (v5 < 3) {
v3[v2].setAttribute('combat', 'true');
} else {
v3[v2].setAttribute('combat', 'false');
}
return true;
}
++v2;
}
return false;
}
function inactivateCharacter(charid) {
var v3 = _global.mainsave.getItemList('character');
var v2 = 0;
while (v2 < v3.length) {
var v4 = v3[v2].getAttribute('id');
if (v4 == charid) {
v3[v2].setAttribute('active', 'false');
v3[v2].setAttribute('combat', 'false');
return true;
}
++v2;
}
return false;
}
function activateCombatCharacter(charid) {
var v3 = 0;
var v2 = _level0.getActiveCharacters();
var v1 = 0;
while (v1 < v2.length) {
if (v2[v1].getAttribute('combat') == 'true') {
++v3;
}
++v1;
}
if (v3 < 3) {
_level0.setCharacterAttr(charid, 'combat', 'true');
return true;
}
return false;
}
function inactivateCombatCharacter(charid) {
var v6 = false;
var v3 = _global.mainsave.getItemList('character');
var v2 = 0;
while (v2 < v3.length) {
var v4 = v3[v2].getAttribute('id');
if (v4 != charid && v3[v2].getAttribute('combat') == 'true') {
v6 = true;
}
if (v6) {
_level0.setCharacterAttr(charid, 'combat', 'false');
return true;
}
++v2;
}
return false;
}
function getActiveCharacters() {
var v3 = _global.mainsave.getItemList('character');
var v4 = new Array();
var v5 = 0;
var v2 = 0;
while (v2 < v3.length) {
if (parseInt(v3[v2].getAttribute('active')) > 0) {
v4[v5++] = v3[v2];
}
++v2;
}
return v4;
}
function getCombatCharacters() {
var v2 = _global.mainsave.getItemList('character');
var v5 = new Array();
var v4 = 0;
var v3 = 0;
while (v3 < v2.length) {
if (v2[v3].getAttribute('combat') == 'true') {
v5[v4++] = v2[v3];
}
++v3;
}
if (v4 < 1) {
v3 = 0;
while (v3 < v2.length) {
if (v4 < 3 && parseInt(v2[v3].getAttribute('active')) > 0) {
v5[v4++] = v2[v3];
_level0.setCharacterAttr(v2[v3].getAttribute('id'), 'combat', 'true');
}
++v3;
}
}
v5.sort(sorter);
return v5;
}
function repairAll() {
var v5 = _global.mainsave.getItemList('character');
var v4 = 0;
while (v4 < v5.length) {
var v3 = v5[v4].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('active')) {
v3[v2].setAttribute('currhp', v3[v2].getAttribute('hp'));
}
++v2;
}
++v4;
}
populate_inventory();
}
function repair1() {
var v5 = _global.mainsave.getItemList('character');
var v4 = 0;
while (v4 < v5.length) {
var v3 = v5[v4].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('active')) {
v3[v2].setAttribute('currhp', 1);
}
++v2;
}
++v4;
}
populate_inventory();
}
function reload_data() {
chance = getChance();
mapLocation = getMapLocation();
areaLocation = getAreaLocation();
tx = getXloc();
tz = getZloc();
var v11 = _global.mainsave.getItemList('character');
var v10 = 0;
while (v10 < v11.length) {
if (v11[v10].getAttribute('id') == 'A001') {
var v6 = v11[v10].getItemList('bot');
var v5 = 0;
while (v5 < v6.length) {
if (v6[v5].getAttribute('active')) {
if (!v6[v5].getAttribute('capacity')) {
v6[v5].setAttribute('capacity', 100);
}
var v4 = v6[v5].getItemList('parts');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].getAttribute('name');
v3 = v3.substr(-1, 1);
var v7 = v4[v2].getAttribute('colorr');
var v8 = v4[v2].getAttribute('colorb');
var v9 = v4[v2].getAttribute('colorg');
_global['part' + v3 + 'r'] = v7;
_global['part' + v3 + 'g'] = v9;
_global['part' + v3 + 'b'] = v8;
++v2;
}
break;
}
++v5;
}
}
++v10;
}
getQuests();
populate_inventory();
}
function rankCheck() {
var v3 = rankArray[0].title;
var v2 = 0;
while (v2 < rankArray.length) {
if (_root.getFame() < rankArray[v2].fame) {
break;
}
v3 = rankArray[v2].title;
++v2;
}
return v3;
}
function rankImageCheck() {
var v3 = 0;
var v2 = 0;
while (v2 < rankArray.length) {
if (_root.getFame() < rankArray[v2].fame) {
break;
}
v3 = v2;
++v2;
}
return v3 + 1;
}
function hidemenu() {
_level0.questlog._visible = false;
_level0.inventory._visible = false;
_level0.savebox._visible = false;
}
function showquestlog() {
_level0.questlog._visible = true;
_level0.questlog.closebutt.alertbutttext.text = 'CLOSE';
var v2 = '';
var v3 = '';
var v1 = 1;
while (v1 <= _level0.total_quests) {
if (_level0['quest_' + v1].logged && _level0['quest_' + v1].prog > 0 && !_level0['quest_' + v1].side) {
if (_level0['quest_' + v1].prog < 99) {
v3 += _level0['quest_' + v1].desc + ' : ';
v3 += 'IN-PROGRESS\n';
} else {
v2 += _level0['quest_' + v1].desc + ' : ';
v2 += 'COMPLETED\n';
}
}
++v1;
}
v1 = 1;
while (v1 <= _level0.total_quests) {
if (_level0['quest_' + v1].logged && _level0['quest_' + v1].prog > 0 && _level0['quest_' + v1].side) {
if (_level0['quest_' + v1].prog < 99) {
v3 += _level0['quest_' + v1].desc + ' : ';
v3 += 'IN-PROGRESS (Side quests)\n';
} else {
v2 += _level0['quest_' + v1].desc + ' : ';
v2 += 'COMPLETED (Side quests)\n';
}
}
++v1;
}
_level0.questlog.quests.text = v3 + '\n\n' + v2;
}
function initQuests() {
total_quests = 88;
quest_1 = {'prog': 0, 'desc': 'Find parts for Ron from Scrapyard (NE of Tiki Jungle).', 'logged': true};
quest_3 = {'prog': 0, 'desc': 'Find 3 plasma rocks for Ron from Lazlo Mine (W of Tiki Jungle).', 'logged': true};
quest_24 = {'prog': 0, 'desc': 'Collect Ron\'s Cargo from the terminal.', 'logged': true};
quest_25 = {'prog': 0, 'desc': 'Find all Avenger parts so that Ron can build an Avenger model.', 'logged': true};
quest_27 = {'prog': 0, 'desc': 'Calisto thanks Ron. NOT PROPER QUEST.'};
quest_2 = {'prog': 0, 'desc': 'Talked to robyn for the first time flag. NOT PROPER QUEST.'};
quest_4 = {'prog': 0, 'desc': 'Talked to ronna for the first time flag. NOT PROPER QUEST.'};
quest_5 = {'prog': 0, 'desc': 'Guess Donna\'s last name.', 'logged': true, 'qtype': 'side'};
quest_59 = {'prog': 1, 'desc': 'Last name Troy. NOT PROPER QUEST.'};
quest_60 = {'prog': 1, 'desc': 'Last name Moss. NOT PROPER QUEST.'};
quest_61 = {'prog': 1, 'desc': 'Last name Pinciotti. NOT PROPER QUEST.'};
quest_62 = {'prog': 1, 'desc': 'Last name Martin. NOT PROPER QUEST.'};
quest_63 = {'prog': 1, 'desc': 'Last name Tello. NOT PROPER QUEST.'};
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.', 'logged': true, 'qtype': 'side'};
quest_8 = {'prog': 0, 'desc': 'Bring Macrogen to Calisto at Endless Gorge (SE of Tiki Jungle)', 'logged': true};
quest_9 = {'prog': 0, 'desc': 'Talked to Calisto for the first time flag. NOT PROPER QUEST.'};
quest_26 = {'prog': 0, 'desc': 'Navigate your way out of Tikila Grotto.', 'logged': true};
quest_10 = {'prog': 0, 'desc': 'Conversation with Billy in Mines 1. NOT PROPER QUEST.'};
quest_11 = {'prog': 0, 'desc': 'Conversation with Billy in Mines 2. NOT PROPER QUEST.'};
quest_12 = {'prog': 0, 'desc': 'Talked to Chow for the first time flag. NOT PROPER QUEST.'};
quest_13 = {'prog': 1, 'desc': 'Chow Unhappy. NOT PROPER QUEST.'};
quest_14 = {'prog': 1, 'desc': 'Chow Angry. NOT PROPER QUEST.'};
quest_15 = {'prog': 1, 'desc': 'Chow Very Angry. NOT PROPER QUEST.'};
quest_16 = {'prog': 0, 'desc': 'No more fried rice. NOT PROPER QUEST.'};
quest_17 = {'prog': 0, 'desc': 'Bumped into Lucille. NOT PROPER QUEST.'};
quest_18 = {'prog': 0, 'desc': 'Face-off with Lucille. NOT PROPER QUEST.'};
quest_19 = {'prog': 0, 'desc': 'Defeated Lucille the first time. NOT PROPER QUEST.'};
quest_20 = {'prog': 0, 'desc': 'First meeting with Jack. NOT PROPER QUEST.'};
quest_21 = {'prog': 0, 'desc': 'Jack defeated. NOT PROPER QUEST.'};
quest_22 = {'prog': 0, 'desc': 'First meeting with Drake. NOT PROPER QUEST.'};
quest_23 = {'prog': 0, 'desc': 'Look for the airship\'s navigation system in Tidal Caves. (NW of Costa de Acero)', 'logged': true};
quest_34 = {'prog': 0, 'desc': 'Find a way to fix the airship at Acero Terminus.', 'logged': true};
quest_28 = {'prog': 0, 'desc': 'Derelict defeated. NOT PROPER QUEST.'};
quest_29 = {'prog': 0, 'desc': 'Sprout Lord defeated. NOT PROPER QUEST.'};
quest_30 = {'prog': 0, 'desc': 'Worm defeated. NOT PROPER QUEST.'};
quest_31 = {'prog': 0, 'desc': 'Rock 1. NOT PROPER QUEST.'};
quest_32 = {'prog': 0, 'desc': 'Rock 2. NOT PROPER QUEST.'};
quest_33 = {'prog': 0, 'desc': 'Rock 3. NOT PROPER QUEST.'};
quest_35 = {'prog': 0, 'desc': 'Treasure 1 - 3_11:I002R. NOT PROPER QUEST.'};
quest_36 = {'prog': 0, 'desc': 'Treasure 2 - 2_214:W02MS. NOT PROPER QUEST.'};
quest_37 = {'prog': 0, 'desc': 'Treasure 3 - 7_19:G002. NOT PROPER QUEST.'};
quest_38 = {'prog': 0, 'desc': 'Treasure 4 - 11_317:I003R. NOT PROPER QUEST.'};
quest_39 = {'prog': 0, 'desc': 'Treasure 5 - 11_503:A03. NOT PROPER QUEST.'};
quest_40 = {'prog': 0, 'desc': 'Treasure 6 - 9_26:I002SB. NOT PROPER QUEST.'};
quest_41 = {'prog': 0, 'desc': 'Treasure 7 - 9_40:C02AF. NOT PROPER QUEST.'};
quest_42 = {'prog': 0, 'desc': 'Treasure 8 - 9_59:C03AT. NOT PROPER QUEST.'};
quest_43 = {'prog': 0, 'desc': 'Treasure 9 - 9_74:W03SC. NOT PROPER QUEST.'};
quest_44 = {'prog': 0, 'desc': 'Treasure 10 - 0_4:I001R. NOT PROPER QUEST.'};
quest_83 = {'prog': 0, 'desc': 'Treasure 11 - 12_124:I003R. NOT PROPER QUEST.'};
quest_84 = {'prog': 0, 'desc': 'Treasure 12 - 12_210:M002. NOT PROPER QUEST.'};
quest_85 = {'prog': 0, 'desc': 'Treasure 13 - 12_228:W03MF. NOT PROPER QUEST.'};
quest_86 = {'prog': 0, 'desc': 'Treasure 14 - 12_-113:W03MS. NOT PROPER QUEST.'};
quest_45 = {'prog': 0, 'desc': 'Talked to Cyphus the first time. NOT PROPER QUEST.'};
quest_46 = {'prog': 0, 'desc': 'Lodge Membership. Acero Hunt Initiate Rank. NOT PROPER QUEST.'};
quest_47 = {'prog': 0, 'desc': 'Defeat 5 Scarlet Spiders. Collect their webbing as proof.', 'logged': true, 'qtype': 'hunter'};
quest_48 = {'prog': 0, 'desc': 'Defeat 10 Silver Drillers. Collect their drills as proof.', 'logged': true, 'qtype': 'hunter'};
quest_49 = {'prog': 0, 'desc': 'Defeat 15 Steel Gearflies. Collect their wings as proof.', 'logged': true, 'qtype': 'hunter'};
quest_50 = {'prog': 0, 'desc': 'Defeat 15 Mutated Sproutlings. Collect yellow peas as proof.', 'logged': true, 'qtype': 'hunter'};
quest_51 = {'prog': 0, 'desc': 'Defeat 10 Hermit Crushers. Collect their claws as proof.', 'logged': true, 'qtype': 'hunter'};
quest_52 = {'prog': 0, 'desc': 'Defeat 1 Sprout Lord. Collect his crown as proof.', 'logged': true, 'qtype': 'hunter'};
quest_53 = {'prog': 0, 'desc': 'Defeat 5 Gold Clock Creeps. Collect gold quartz as proof.', 'logged': true, 'qtype': 'hunter'};
quest_54 = {'prog': 0, 'desc': 'Acero Hunter Rank. NOT PROPER QUEST.'};
quest_55 = {'prog': 0, 'desc': 'Acero Advanced Hunter Rank. NOT PROPER QUEST.'};
quest_56 = {'prog': 0, 'desc': 'Acero Elite Hunter Rank. NOT PROPER QUEST.'};
quest_57 = {'prog': 0, 'desc': 'Acero Master Hunter Rank. NOT PROPER QUEST.'};
quest_58 = {'prog': 1, 'desc': 'In the middle of a hunt. NOT PROPER QUEST.'};
quest_64 = {'prog': 0, 'desc': 'Saved Laura. NOT PROPER QUEST.'};
quest_65 = {'prog': 0, 'desc': 'Cali meets Laura. NOT PROPER QUEST.'};
quest_66 = {'prog': 0, 'desc': 'Laura asked once. NOT PROPER QUEST.'};
quest_67 = {'prog': 0, 'desc': 'Laura joins. NOT PROPER QUEST.'};
quest_68 = {'prog': 0, 'desc': 'Check main entrance once. NOT PROPER QUEST.'};
quest_69 = {'prog': 0, 'desc': 'Main entrance open. NOT PROPER QUEST.'};
quest_70 = {'prog': 0, 'desc': 'Puzzle 1. NOT PROPER QUEST.'};
quest_71 = {'prog': 0, 'desc': 'Puzzle 2. NOT PROPER QUEST.'};
quest_72 = {'prog': 0, 'desc': 'Puzzle 3. NOT PROPER QUEST.'};
quest_73 = {'prog': 0, 'desc': 'Puzzle 4. NOT PROPER QUEST.'};
quest_74 = {'prog': 0, 'desc': 'Seen top puzzle once. NOT PROPER QUEST.'};
quest_75 = {'prog': 0, 'desc': 'Seen bottom puzzle once. NOT PROPER QUEST.'};
quest_76 = {'prog': 0, 'desc': 'Seen riddle once. NOT PROPER QUEST.'};
quest_77 = {'prog': 0, 'desc': 'Top puzzle solved. NOT PROPER QUEST.'};
quest_78 = {'prog': 0, 'desc': 'Bottom puzzle solved. NOT PROPER QUEST.'};
quest_79 = {'prog': 0, 'desc': 'Riddle door opened. NOT PROPER QUEST.'};
quest_80 = {'prog': 0, 'desc': 'Puzzle explained once. NOT PROPER QUEST.'};
quest_81 = {'prog': 0, 'desc': 'Ruins boss defeated. NOT PROPER QUEST.'};
quest_82 = {'prog': 0, 'desc': 'Escort Laura safely through the Ancient Ruins.', 'logged': true, 'qtype': 'side'};
quest_87 = {'prog': 0, 'desc': 'Small talk 1. NOT PROPER QUEST.'};
quest_88 = {'prog': 0, 'desc': 'Small talk 2. NOT PROPER QUEST.'};
}
function getQuests() {
initQuests();
var v6 = _global.mainsave.getItemList('questlist');
var v3 = v6[0].getItemList('quest');
var v2 = 0;
while (v2 < v3.length) {
var v5 = v3[v2].getAttribute('id');
var v4 = v3[v2].getAttribute('prog');
_level0['quest_' + v5].prog = int(v4);
++v2;
}
}
function saveQuests() {
var v7 = _global.mainsave.getItemList('questlist');
var v2 = 1;
while (v2 <= _level0.total_quests) {
var v4 = v7[0].getItemList('quest');
if (_level0['quest_' + v2].prog > 0) {
if (v4.length > 0) {
var v6 = false;
var v3 = 0;
while (v3 < v4.length) {
if (v4[v3].getAttribute('id') == v2) {
v4[v3].setAttribute('prog', _level0['quest_' + v2].prog);
v6 = true;
break;
}
++v3;
}
if (!v6) {
var v5 = new SaveItemObj('quest');
v5.setAttribute('id', v2);
v5.setAttribute('prog', _level0['quest_' + v2].prog);
v7[0].addItem(v5);
}
} else {
var v5 = new SaveItemObj('quest');
v5.setAttribute('id', v2);
v5.setAttribute('prog', _level0['quest_' + v2].prog);
v7[0].addItem(v5);
}
}
++v2;
}
v7[0].printitems();
}
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 v2 = new Array();
var v3 = 0;
for (var v4 in this.itemlist) {
if (this.itemlist[v4].getName() == itemname) {
v2[v3++] = this.itemlist[v4];
}
}
return v2;
};
SaveItemObj.prototype.getItemListIndex = function (itemname) {
var v2 = new Array();
for (var v3 in this.itemlist) {
if (this.itemlist[v3].getName() == itemname) {
v2[v3] = this.itemlist[v3];
}
}
return v2;
};
SaveItemObj.prototype.convertXML = function () {
var v2 = new XMLNode(1, this.name);
for (var v3 in this.attributelist) {
v2.attributes[v3] = this.attributelist[v3];
}
for (v3 in this.itemlist) {
v2.appendChild(this.itemlist[v3].convertXML());
}
return v2;
};
SaveItemObj.prototype.loadXML = function (XMLLoadNode) {
for (var v7 in this.attributelist) {
delete this.attributelist[v7];
}
for (v7 in this.itemlist) {
delete this.itemlist[v7];
}
for (var v6 in XMLLoadNode.attributes) {
this.setAttribute(v6, XMLLoadNode.attributes[v6]);
}
var v4 = XMLLoadNode.childNodes;
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.addItem(v3);
++v2;
}
};
SaveItemObj.prototype.printitems = function () {
var v2 = '';
for (var v3 in this.attributelist) {
v2 += v3 + ':' + this.attributelist[v3] + ', ';
}
};
SaveItemObj.prototype.testcheck = function () {};
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 v2 = this.convertXML();
var v3 = new XML();
v3.parentdata = this.recipientObj;
v3.onLoad = function (success) {
if (success) {
this.parentdata.saved(true);
} else {
this.parentdata.saved(false);
}
};
var v4 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
v4.data[this.saveIndex] = v2.toString();
v4.flush(100000);
if (this.userid && this.userid != '' && !this.forceLocalFlag) {
v2.contentType = 'text/xml';
v2.sendAndLoad(this.savePath + '&type=save&userid=' + this.userid + '&saveindex=' + this.saveIndex, v3);
} else {
this.recipientObj.saved(true);
}
};
SaveDataObj.prototype.load = function () {
for (var v6 in this.attributelist) {
delete this.attributelist[v6];
}
for (v6 in this.itemlist) {
delete this.itemlist[v6];
}
var loadXML = new XML();
loadXML.ignoreWhite = true;
loadXML.parentdata = this;
loadXML.onLoad = function (success) {
var v7 = loadXML.firstChild;
var v8 = v7.nextSibling;
if (v8.firstChild.nodeValue != '342134' && !this.parentdata.forceLocalFlag) {
success = false;
}
if (success) {
var v5 = loadXML.firstChild;
var v4 = v5.childNodes;
if (v4.length == 0) {
var v6 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
this.parseXML(v6.data[this.parentdata.saveIndex]);
v5 = this.firstChild;
v4 = v5.childNodes;
}
for (prop in v5.attributes) {
this.parentdata.setAttribute(prop, v5.attributes[prop]);
}
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.parentdata.addItem(v3);
++v2;
}
this.parentdata.onLoad();
} else {
this.parentdata.forceLocalFlag = true;
var v6 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
this.parseXML(v6.data[this.parentdata.saveIndex]);
this.onLoad('true');
}
};
var v7 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
if (v7.data[this.saveIndex] == undefined) {
loadXML.load(this.savePath + '&type=retrieve&userid=' + this.userid + '&saveindex=' + this.saveIndex);
} else {
loadXML.parseXML(v7.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 v2 = new SaveItemObj('');
v2.attributelist = this.attributelist;
v2.itemlist = this.itemlist;
v2.itemcount = this.itemcount;
return v2;
};
SaveDataObj.prototype.convertXML = function () {
var v4 = new XML();
var v2 = new XMLNode(1, 'SavedData');
v4.appendChild(v2);
for (var v3 in this.attributelist) {
v2.attributes[v3] = this.attributelist[v3];
}
for (v3 in this.itemlist) {
v2.appendChild(this.itemlist[v3].convertXML());
}
return v4;
};
SaveDataObj.prototype.cloneSave = function (prevSave) {
var v6 = prevSave.convertXML();
var v5 = v6.firstChild;
for (prop in v5.attributes) {
this.setAttribute(prop, v5.attributes[prop]);
}
var v4 = v5.childNodes;
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.addItem(v3);
++v2;
}
};
SaveDataObj.prototype.parseXML = function (xmlstr) {
var v6 = new XML();
v6.parseXML(xmlstr);
var v5 = v6.firstChild;
for (prop in v5.attributes) {
this.setAttribute(prop, v5.attributes[prop]);
}
var v4 = v5.childNodes;
var v2 = 0;
while (v2 < v4.length) {
var v3 = new SaveItemObj(v4[v2].nodeName);
v3.loadXML(v4[v2]);
this.addItem(v3);
++v2;
}
};
SaveDataObj.prototype.addListener = function (listobj) {
this.recipientObj = listobj;
};
SaveListObj = function (username, passwd) {
this.hostname = 'http://mobileweapon.net/ep1/';
this.filename = 'neoplanetasp.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;
} else {
var replyXML = new XML();
replyXML.recObj = this;
replyXML.onLoad = function (success) {
if (success) {
var v3 = replyXML.firstChild;
if (v3.attributes.key == 'INVALID' || replyXML.toString() == 'invalid session') {
this.recObj.recipientObj.connected(false);
} else {
_global.session = v3.attributes.key;
this.recObj.savePath = this.recObj.hostname + this.recObj.filename + '?sessid=' + _global.session;
this.recObj.recipientObj.connected(true, v3.attributes.userid);
}
} 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 v3 = replyXML.firstChild;
if (v3.attributes.key == 'DUPLICATE') {
this.recObj.recipientObj.created(false, v3.attributes.key);
} else {
_global.session = v3.attributes.key;
this.recObj.savePath = this.recObj.hostname + this.recObj.filename + '?sessid=' + _global.session;
this.recObj.recipientObj.created(true, v3.attributes.userid);
}
} 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 v6 = replyXML.firstChild;
var v7 = v6.nextSibling;
if (v7.firstChild.nodeValue != '342134' && !this.recObj.forceLoadShared) {
success = false;
}
if (success) {
v6 = replyXML.firstChild;
var v4 = v6.childNodes;
this.recObj.loadSaveList = new Array();
var v2 = 0;
while (v2 < v4.length) {
this.recObj.loadSaveList[v4[v2].attributes.name] = v4[v2].attributes.date;
++v2;
}
var v5 = checkXML.firstChild;
var v3 = v5.childNodes;
v2 = 0;
while (v2 < v3.length) {
if (neoplanetsave.data[v3[v2].attributes.name] == undefined && this.recObj.forceLoadShared) {
delete this.recObj.loadSaveList[v3[v2].attributes.name];
} else {
if (this.recObj.loadSaveList[v3[v2].attributes.name]) {
if (this.recObj.loadSaveList[v3[v2].attributes.name] < v3[v2].attributes.date) {
this.recObj.loadSaveList[v3[v2].attributes.name] = v3[v2].attributes.date;
}
} else {
this.recObj.loadSaveList[v3[v2].attributes.name] = v3[v2].attributes.date;
}
}
++v2;
}
this.recObj.loaded = true;
this.recObj.recipientObj.getList(this.recObj.loadSaveList);
} else {
var neoplanetsave = SharedObject.getLocal(this.recObj.userid + '_neoplanetsave', '/');
this.parseXML(neoplanetsave.data.savelist);
this.recObj.forceLoadShared = true;
this.onLoad(true);
}
};
if (this.forceLoadShared) {
var neoplanetsave = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
replyXML.parseXML(neoplanetsave.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 v2 = new SaveDataObj(this.userid, this.savePath, indexa);
v2.printitems();
v2.recipientObj = this.recipientObj;
if (this.forceLoadShared) {
v2.forceLocal(true);
}
v2.onLoad = function () {
this.recipientObj.getSave(this);
};
v2.load();
};
SaveListObj.prototype.createNewSave = function (currSaveObj, indexa) {
var v7 = new SaveDataObj(this.userid, this.savePath, indexa);
v7.cloneSave(currSaveObj);
v7.forceLocal(this.forceLoadShared);
var v2 = new Date();
var v3 = v2.getMonth() + 1;
if (v3 < 10) {
v3 = '0' + v3;
}
var v6 = v2.getDate();
if (v6 < 10) {
v6 = '0' + v6;
}
var v5 = v2.getHours();
if (v5 < 10) {
v5 = '0' + v5;
}
var v4 = v2.getMinutes();
if (v4 < 10) {
v4 = '0' + v4;
}
this.loadSaveList[indexa] = v2.getFullYear() + '-' + v3 + '-' + v6 + ' ' + v5 + ':' + v4;
this.saveList();
return v7;
};
SaveListObj.prototype.createEmptySave = function (indexa) {
var v7 = new SaveDataObj(this.userid, this.savePath, indexa);
v7.forceLocal(this.forceLoadShared);
var v2 = new Date();
var v3 = v2.getMonth() + 1;
if (v3 < 10) {
v3 = '0' + v3;
}
var v6 = v2.getDate();
if (v6 < 10) {
v6 = '0' + v6;
}
var v5 = v2.getHours();
if (v5 < 10) {
v5 = '0' + v5;
}
var v4 = v2.getMinutes();
if (v4 < 10) {
v4 = '0' + v4;
}
this.loadSaveList[indexa] = v2.getFullYear() + '-' + v3 + '-' + v6 + ' ' + v5 + ':' + v4;
return v7;
};
SaveListObj.prototype.saveList = function () {
var v3 = new XML();
var v4 = v3.createElement('savelist');
v3.appendChild(v4);
for (var v5 in this.loadSaveList) {
var v2 = v3.createElement('savedata');
v2.attributes.name = v5;
v2.attributes.date = this.loadSaveList[v5];
v4.appendChild(v2);
}
var v6 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
v6.data.savelist = v3.toString();
v6.flush(10000);
};
SaveListObj.prototype.deleteSave = function (indexa) {
delete this.loadSaveList[indexa];
this.saveList();
var replyXML = new XML();
replyXML.onLoad = function (success) {
if (success && replyXML == 'SUCCESS') {
this.recObj.deleted(true);
} else {
var v2 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
delete v2.data[indexa];
this.recObj.deleted(true);
}
};
replyXML.recObj = this.recipientObj;
replyXML.load(this.savePath + '&type=delete&userid=' + this.userid + '&saveindex=' + indexa);
var v2 = SharedObject.getLocal(this.userid + '_neoplanetsave', '/');
delete v2.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);
};
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].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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 = '200';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'TOP';
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+1';
invenitem[item].description = 'A jacket that keeps you cozy.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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 = '1000';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'TOP';
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+3';
invenitem[item].description = 'A combat vest that offers mobility.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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 = '3000';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'TOP';
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+8';
invenitem[item].technique = '+1';
invenitem[item].description = 'Cool and slick.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
invenitem[item].r = '30';
invenitem[item].g = '30';
invenitem[item].b = '30';
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].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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 = '200';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = itemequip;
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+1';
invenitem[item].description = 'Beach wear bermudas.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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 = '850';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = itemequip;
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '-1';
invenitem[item].accuracy = '+4';
invenitem[item].description = 'Really tight jeans...';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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 = '3000';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = itemequip;
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+6';
invenitem[item].technique = '+2';
invenitem[item].description = 'Army surplus fatigues.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
invenitem[item].r = '30';
invenitem[item].g = '80';
invenitem[item].b = '30';
invenitem[item].image = 'combatfatigues';
item = 'C01AH';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Glass Goggles';
invenitem[item].price = '300';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'HEADGEAR';
invenitem[item].gender = 'ALL';
invenitem[item].accuracy = '+2';
invenitem[item].description = 'Goggles made of glass.\nHandle with care!';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
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].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
invenitem[item].image = 'canvasshoes';
item = 'C02AF';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Leather shoes';
invenitem[item].price = '300';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'FOOTWEAR';
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+3';
invenitem[item].description = 'Made of artificial leather.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
invenitem[item].image = 'leathershoes';
item = 'C03AF';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Army boots';
invenitem[item].price = '1000';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'FOOTWEAR';
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+8';
invenitem[item].description = 'Specially made to fit and last.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
invenitem[item].image = 'armyboots';
item = 'C01AA';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Neural enhancer';
invenitem[item].price = '5000';
invenitem[item].type = 'CLOTHES';
invenitem[item].equip = 'ACCESSORY';
invenitem[item].gender = 'ALL';
invenitem[item].reflex = '+5';
invenitem[item].accuracy = '+5';
invenitem[item].description = 'A choker that connects to your neural system.';
invenitem[item].description += clothesdescription(invenitem[item].reflex, invenitem[item].accuracy, invenitem[item].technique);
item = 'I001R';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Repair Kit (F)';
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].stack = true;
item = 'I002R';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Repair Kit (E)';
invenitem[item].price = '50';
invenitem[item].type = 'USE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Repair 50-80 HP to your MAW';
invenitem[item].useid = 'addattribute';
invenitem[item].parameters = 'currhp:add:80:50';
invenitem[item].image = 'repairkit2';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I003R';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Repair Kit Grade D';
invenitem[item].price = '100';
invenitem[item].type = 'USE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Repair 100-150 HP to your MAW';
invenitem[item].useid = 'addattribute';
invenitem[item].parameters = 'currhp:add:150:100';
invenitem[item].image = 'repairkit3';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I004R';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Repair Kit Grade C';
invenitem[item].price = '500';
invenitem[item].type = 'USE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Repair 200-300 HP to your MAW';
invenitem[item].useid = 'addattribute';
invenitem[item].parameters = 'currhp:add:300:200';
invenitem[item].image = 'repairkit4';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I001SB';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Smoke Bomb Grade D';
invenitem[item].price = '20';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Reduce chance of encountering enemies for a very short time.';
invenitem[item].useid = 'lowerencounter';
invenitem[item].parameters = 'chance:add:500:400';
invenitem[item].image = 'smokebomb1';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I002SB';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Smoke Bomb Grade C';
invenitem[item].price = '150';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Reduce chance of encountering enemies for a short time.';
invenitem[item].useid = 'lowerencounter';
invenitem[item].parameters = 'chance:add:800:500';
invenitem[item].image = 'smokebomb2';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I003SB';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Smoke Bomb Grade B';
invenitem[item].price = '1000';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Reduce chance of encountering enemies for a long time.';
invenitem[item].useid = 'lowerencounter';
invenitem[item].parameters = 'chance:add:1500:1000';
invenitem[item].image = 'smokebomb3';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I004SB';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Smoke Bomb Grade A';
invenitem[item].price = '2000';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Reduce chance of encountering enemies for a very long time.';
invenitem[item].useid = 'lowerencounter';
invenitem[item].parameters = 'chance:add:2000:1500';
invenitem[item].image = 'smokebomb4';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I001FC';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Fire Crackers';
invenitem[item].price = '50';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Creates a series of loud noise that attracts enemies.';
invenitem[item].useid = 'raiseencounter';
invenitem[item].parameters = 'chance:subtract:0:0';
invenitem[item].image = 'firecrackers';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I001UW';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Disposable Tent';
invenitem[item].price = '10';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Allows travellers to rest for 6 hours.';
invenitem[item].useid = 'wait';
invenitem[item].parameters = 'time:add:6:0';
invenitem[item].image = 'tent';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].stack = true;
item = 'I002UW';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Radar';
invenitem[item].price = '500';
invenitem[item].type = 'USEWORLD';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Shows the enemy encounter rate.';
invenitem[item].useid = 'showencountrate';
invenitem[item].parameters = '';
invenitem[item].image = 'radar';
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].reusable = true;
invenitem[item].stack = true;
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. (Augment use)';
invenitem[item].image = 'gear';
invenitem[item].price = '5';
invenitem[item].augment = '5';
invenitem[item].stack = true;
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';
invenitem[item].undroppable = true;
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. (Augment use)';
invenitem[item].image = 'bolt';
invenitem[item].price = '10';
invenitem[item].augment = '5';
invenitem[item].stack = true;
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].undroppable = true;
invenitem[item].stack = true;
item = 'I007Q';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Macrogen';
invenitem[item].type = 'NONE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Necessary part for Calisto to fix the bridge at Endless Gorge.';
invenitem[item].image = 'macrogen';
invenitem[item].undroppable = true;
item = 'I008Q';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Navigation System';
invenitem[item].type = 'NONE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'An airship navigation system.';
invenitem[item].image = 'nav_sys';
invenitem[item].undroppable = true;
item = 'I009Q';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Tide Information';
invenitem[item].type = 'NONE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'ACERO ISLE TIDE TIMINGS:\n0600 to 1159 - Low Tide\n1200 to 1759 - High Tide\n1800 to 2359 - Low Tide\n0000 to 0559 - High Tide\n';
invenitem[item].image = 'list';
item = 'I010Q';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Avenger Chassis';
invenitem[item].type = 'NONE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'The skeleton of a MAW model known as the Avenger.';
invenitem[item].image = 'avenger1';
invenitem[item].undroppable = true;
item = 'I011Q';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Avenger Core';
invenitem[item].type = 'NONE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'The core system of a MAW model known as the Avenger.';
invenitem[item].image = 'avenger2';
invenitem[item].undroppable = true;
item = 'I012Q';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Crate of Polyboards';
invenitem[item].type = 'NONE';
invenitem[item].equip = 'NO';
invenitem[item].description = 'Polyboards that Ron ordered.';
invenitem[item].image = 'box';
invenitem[item].undroppable = true;
equip = 'MELEE';
item = 'W01MF';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Brass knuckle';
invenitem[item].price = '50';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'FIST';
invenitem[item].equip = equip;
invenitem[item].mindamage = 5;
invenitem[item].maxdamage = 10;
invenitem[item].energy = 30;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 10;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna', 'avenger');
invenitem[item].description = 'Basic knuckle used by MAWs for close ranged striking.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'brassknuckle';
item = 'W02MF';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Heavy Fist';
invenitem[item].price = '300';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'FIST';
invenitem[item].equip = equip;
invenitem[item].mindamage = 8;
invenitem[item].maxdamage = 13;
invenitem[item].energy = 35;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 10;
invenitem[item].crit = 0;
invenitem[item].minreflex = 9;
invenitem[item].minaccuracy = 7;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna', 'avenger');
invenitem[item].description = 'A huge fist forged entirely of iron.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'heavyfist';
item = 'W03MF';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Stone Smasher';
invenitem[item].price = '800';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'FIST';
invenitem[item].equip = equip;
invenitem[item].mindamage = 15;
invenitem[item].maxdamage = 20;
invenitem[item].energy = 52;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 20;
invenitem[item].crit = 0;
invenitem[item].minreflex = 13;
invenitem[item].minaccuracy = 11;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 130;
invenitem[item].user = new Array('luna', 'avenger');
invenitem[item].description = 'Delivers a powerful crushing blow.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'stonesmasher';
item = 'W04MF';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Mach Gauntlet';
invenitem[item].price = '2700';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'FIST';
invenitem[item].equip = equip;
invenitem[item].mindamage = 12;
invenitem[item].maxdamage = 14;
invenitem[item].energy = 90;
invenitem[item].hits = 3;
invenitem[item].hitbonus = 15;
invenitem[item].crit = 0;
invenitem[item].minreflex = 17;
invenitem[item].minaccuracy = 15;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 200;
invenitem[item].user = new Array('luna', 'avenger');
invenitem[item].description = '3 times the action. 3 times the damage.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'machgauntlet';
item = 'W01MS';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Metal Sword';
invenitem[item].price = '450';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'SWORD';
invenitem[item].equip = equip;
invenitem[item].mindamage = 12;
invenitem[item].maxdamage = 16;
invenitem[item].energy = 35;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 10;
invenitem[item].minreflex = 12;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('avenger');
invenitem[item].description = 'A standard huge sword for MAW usage.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'metalsword';
item = 'W02MS';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Enhanced Blade';
invenitem[item].price = '950';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'SWORD';
invenitem[item].equip = equip;
invenitem[item].mindamage = 16;
invenitem[item].maxdamage = 20;
invenitem[item].energy = 52;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 20;
invenitem[item].crit = 5;
invenitem[item].minreflex = 17;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 130;
invenitem[item].user = new Array('avenger');
invenitem[item].description = 'A blade forged with a special treated metal.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'enhancedblade';
item = 'W03MS';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Steel Edge';
invenitem[item].price = '1800';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'SWORD';
invenitem[item].equip = equip;
invenitem[item].mindamage = 24;
invenitem[item].maxdamage = 27;
invenitem[item].energy = 62;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 25;
invenitem[item].crit = 6;
invenitem[item].minreflex = 22;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 130;
invenitem[item].user = new Array('avenger');
invenitem[item].description = 'Delivers a powerful crushing blow.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'steeledge';
item = 'W04MS';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Chef\'s Chopper';
invenitem[item].price = '3000';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'SWORD';
invenitem[item].equip = equip;
invenitem[item].mindamage = 28;
invenitem[item].maxdamage = 30;
invenitem[item].energy = 80;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 25;
invenitem[item].crit = 10;
invenitem[item].minreflex = 27;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 200;
invenitem[item].user = new Array('avenger');
invenitem[item].description = 'Chop Chop!!!';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'chopper';
item = 'W01MH';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Stout Hammer';
invenitem[item].price = '50';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'HAMMER';
invenitem[item].equip = equip;
invenitem[item].mindamage = 8;
invenitem[item].maxdamage = 10;
invenitem[item].energy = 40;
invenitem[item].hits = 1;
invenitem[item].hitbonus = -10;
invenitem[item].crit = 4;
invenitem[item].minreflex = 5;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 100;
invenitem[item].user = new Array('avenger');
invenitem[item].description = 'Smash away with this newbie hammer!';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'hammer1';
item = 'W02MH';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Crusher';
invenitem[item].price = '500';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'HAMMER';
invenitem[item].equip = equip;
invenitem[item].mindamage = 18;
invenitem[item].maxdamage = 20;
invenitem[item].energy = 50;
invenitem[item].hits = 1;
invenitem[item].hitbonus = -5;
invenitem[item].crit = 6;
invenitem[item].minreflex = 10;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 150;
invenitem[item].user = new Array('avenger');
invenitem[item].description = 'A giant hammer that instills fear in its opponent.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'hammer2';
item = 'W01MC';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Rending Claws';
invenitem[item].price = '2000';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'CLAWS';
invenitem[item].equip = equip;
invenitem[item].mindamage = 10;
invenitem[item].maxdamage = 16;
invenitem[item].energy = 60;
invenitem[item].hits = 2;
invenitem[item].hitbonus = 0;
invenitem[item].crit = 5;
invenitem[item].minreflex = 10;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 150;
invenitem[item].user = new Array('luna', 'avenger');
invenitem[item].description = 'These claws slice metals easily.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'claws2';
equip = 'LIGHTARMS';
item = 'W01LR';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Hunting Rifle';
invenitem[item].price = '400';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'RIFLE';
invenitem[item].equip = equip;
invenitem[item].mindamage = 10;
invenitem[item].maxdamage = 15;
invenitem[item].energy = 35;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 20;
invenitem[item].crit = 10;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 12;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna');
invenitem[item].description = 'A hunting rifle made for hunting giant beasts.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'huntingrifle';
item = 'W02LR';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'L25 Silencer';
invenitem[item].price = '2000';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'RIFLE';
invenitem[item].equip = equip;
invenitem[item].mindamage = 25;
invenitem[item].maxdamage = 30;
invenitem[item].energy = 85;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 30;
invenitem[item].crit = 15;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 22;
invenitem[item].mintechnique = 0;
invenitem[item].mincapacity = 200;
invenitem[item].user = new Array('luna');
invenitem[item].description = 'A much feared weapon due to its high critical.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'silencer';
item = 'W01LM';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Auto-Assault Gun';
invenitem[item].price = '550';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'MGUN';
invenitem[item].equip = equip;
invenitem[item].mindamage = 5;
invenitem[item].maxdamage = 7;
invenitem[item].energy = 40;
invenitem[item].hits = 3;
invenitem[item].hitbonus = -10;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 9;
invenitem[item].mintechnique = 7;
invenitem[item].user = new Array('avenger', 'luna', 'stinger');
invenitem[item].description = 'The original multi-shot gun!';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'assaultgun';
item = 'W02LM';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Chain-Repeater';
invenitem[item].price = '1500';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'MGUN';
invenitem[item].equip = equip;
invenitem[item].mindamage = 6;
invenitem[item].maxdamage = 8;
invenitem[item].energy = 60;
invenitem[item].hits = 5;
invenitem[item].hitbonus = -10;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 13;
invenitem[item].mintechnique = 11;
invenitem[item].mincapacity = 130;
invenitem[item].user = new Array('avenger', 'luna', 'stinger');
invenitem[item].description = 'Shoots up to 5 rounds at the enemies.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'chainrepeater';
item = 'W03LM';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Y&S Supressor';
invenitem[item].price = '3800';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'MGUN';
invenitem[item].equip = equip;
invenitem[item].mindamage = 7;
invenitem[item].maxdamage = 9;
invenitem[item].energy = 70;
invenitem[item].hits = 7;
invenitem[item].hitbonus = -10;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 17;
invenitem[item].mintechnique = 15;
invenitem[item].mincapacity = 130;
invenitem[item].user = new Array('avenger', 'luna', 'stinger');
invenitem[item].description = 'Rapid firing of up to 7 shots.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'supressor';
equip = 'SPECIAL';
item = 'W01SC';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Mini Cannon';
invenitem[item].price = '900';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'CANNON';
invenitem[item].equip = equip;
invenitem[item].mindamage = 20;
invenitem[item].maxdamage = 23;
invenitem[item].energy = 65;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 10;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 7;
invenitem[item].mintechnique = 9;
invenitem[item].mincapacity = 130;
invenitem[item].user = new Array('avenger', 'stinger');
invenitem[item].description = 'Shoots a single powerful shot.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'minicannon';
item = 'W02SC';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Powershots';
invenitem[item].price = '1900';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'CANNON';
invenitem[item].equip = equip;
invenitem[item].mindamage = 30;
invenitem[item].maxdamage = 32;
invenitem[item].energy = 95;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 15;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 11;
invenitem[item].mintechnique = 13;
invenitem[item].mincapacity = 150;
invenitem[item].user = new Array('avenger', 'stinger');
invenitem[item].description = 'Twin cannon head for double damage.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'powershots';
item = 'W03SC';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'TY Thunder-Shot';
invenitem[item].price = '4000';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'CANNON';
invenitem[item].equip = equip;
invenitem[item].mindamage = 40;
invenitem[item].maxdamage = 43;
invenitem[item].energy = 110;
invenitem[item].hits = 1;
invenitem[item].hitbonus = 5;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 15;
invenitem[item].mintechnique = 17;
invenitem[item].mincapacity = 200;
invenitem[item].user = new Array('avenger', 'stinger');
invenitem[item].description = 'Blasts a loud and powerful shot.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'thundershot';
item = 'W01SL';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Portable Launcher';
invenitem[item].price = '2500';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'LAUNCHER';
invenitem[item].equip = equip;
invenitem[item].mindamage = 19;
invenitem[item].maxdamage = 23;
invenitem[item].energy = 120;
invenitem[item].hits = 2;
invenitem[item].hitbonus = 0;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 22;
invenitem[item].mincapacity = 200;
invenitem[item].user = new Array('stinger');
invenitem[item].description = 'Fires twin rockets.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'portablelauncher';
item = 'W02SL';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Rolling Bomber';
invenitem[item].price = '4500';
invenitem[item].type = 'WEAPON';
invenitem[item].subtype = 'LAUNCHER';
invenitem[item].equip = equip;
invenitem[item].mindamage = 22;
invenitem[item].maxdamage = 24;
invenitem[item].energy = 120;
invenitem[item].hits = 4;
invenitem[item].hitbonus = 5;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 27;
invenitem[item].mincapacity = 200;
invenitem[item].user = new Array('stinger');
invenitem[item].description = 'Lobs 4 devasting grenades at the enemies.';
invenitem[item].description += weapdescription(invenitem[item].mindamage, invenitem[item].maxdamage, invenitem[item].hits, invenitem[item].crit, invenitem[item].hitbonus, invenitem[item].energy, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].mincapacity, invenitem[item].user);
invenitem[item].image = 'rollingbomber';
equip = 'ARMOR';
item = 'A01';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Ceramic plating';
invenitem[item].price = '50';
invenitem[item].type = 'ARMOR';
invenitem[item].equip = equip;
invenitem[item].defense = 2;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].description = 'A basic plating that every rookie needs.';
invenitem[item].description += armordescription(invenitem[item].defense, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].user);
invenitem[item].image = 'ceramicplating';
item = 'A02';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Steel plating';
invenitem[item].price = '500';
invenitem[item].type = 'ARMOR';
invenitem[item].equip = equip;
invenitem[item].defense = 6;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].description = 'An average plating with good protection.';
invenitem[item].description += armordescription(invenitem[item].defense, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].user);
invenitem[item].image = 'steelplating';
item = 'A03';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Composite plating';
invenitem[item].price = '1100';
invenitem[item].type = 'ARMOR';
invenitem[item].equip = equip;
invenitem[item].defense = 12;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].description = 'Specially designed with extra platings.';
invenitem[item].description += armordescription(invenitem[item].defense, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].user);
invenitem[item].image = 'compositeplating';
item = 'A04';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Reinforced frame';
invenitem[item].price = '2200';
invenitem[item].type = 'ARMOR';
invenitem[item].equip = equip;
invenitem[item].defense = 20;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 20;
invenitem[item].user = new Array('stinger', 'avenger');
invenitem[item].description = 'Built for heavy MaWs.';
invenitem[item].description += armordescription(invenitem[item].defense, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].user);
invenitem[item].image = 'reinforcedframe';
item = 'A05';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Agility Gear';
invenitem[item].price = '3000';
invenitem[item].type = 'ARMOR';
invenitem[item].equip = equip;
invenitem[item].defense = 18;
invenitem[item].minreflex = 20;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna');
invenitem[item].description = 'A rare armor made for light MAWs.';
invenitem[item].description += armordescription(invenitem[item].defense, invenitem[item].minreflex, invenitem[item].minaccuracy, invenitem[item].mintechnique, invenitem[item].user);
invenitem[item].image = 'agilitygear';
equip = 'MODULE';
item = 'M001';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Self-fix Chip';
invenitem[item].price = '3000';
invenitem[item].type = 'MODULE';
invenitem[item].equip = 'MODULE';
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].description = 'Allows MAWs to fix themselves.';
invenitem[item].skill = 'selffix';
invenitem[item].parameters = '30:20';
invenitem[item].image = 'repairchip';
item = 'M002';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Combat Scanner';
invenitem[item].price = '1000';
invenitem[item].type = 'MODULE';
invenitem[item].equip = 'MODULE';
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].description = 'Enables reading of enemies status.';
invenitem[item].skill = 'scan';
invenitem[item].parameters = '0:0';
invenitem[item].image = 'scanner';
item = 'M003';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Repair Drone';
invenitem[item].price = '5000';
invenitem[item].type = 'MODULE';
invenitem[item].equip = 'MODULE';
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('stinger', 'luna', 'avenger');
invenitem[item].description = 'Allows fixing of other MAWs.';
invenitem[item].skill = 'repair';
invenitem[item].parameters = '50:30';
invenitem[item].image = 'repairdrone';
equip = 'GENERATOR';
item = 'G001';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Steam Generator';
invenitem[item].price = '500';
invenitem[item].type = 'GENERATOR';
invenitem[item].equip = equip;
invenitem[item].capacity = 30;
invenitem[item].addenergy = 1.5;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna', 'avenger', 'stinger');
invenitem[item].description = 'The earliest and weakest generator model. \n';
invenitem[item].description += generatordescription(invenitem[item].capacity, invenitem[item].addenergy, invenitem[item].user);
invenitem[item].image = 'steamgenerator';
item = 'G002';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Dynamo';
invenitem[item].price = '1100';
invenitem[item].type = 'GENERATOR';
invenitem[item].equip = equip;
invenitem[item].capacity = 100;
invenitem[item].addenergy = 3.5;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna', 'avenger', 'stinger');
invenitem[item].description = 'An enhanced kinetic generator. \n';
invenitem[item].description += generatordescription(invenitem[item].capacity, invenitem[item].addenergy, invenitem[item].user);
invenitem[item].image = 'dynamo';
item = 'G003';
invenitem[item] = new Array();
invenitem[item].id = item;
invenitem[item].name = 'Induction Engine';
invenitem[item].price = '2000';
invenitem[item].type = 'GENERATOR';
invenitem[item].equip = equip;
invenitem[item].capacity = 80;
invenitem[item].addenergy = 4.5;
invenitem[item].minreflex = 0;
invenitem[item].minaccuracy = 0;
invenitem[item].mintechnique = 0;
invenitem[item].user = new Array('luna', 'avenger', 'stinger');
invenitem[item].description = 'A reasonably good generator with high output.\n';
invenitem[item].description += generatordescription(invenitem[item].capacity, invenitem[item].addenergy, invenitem[item].user);
invenitem[item].image = 'inductionengine';
mawslist = new Object();
mawslist.luna = {'name': 'Luna', 'energy': 3.5, 'defense': 3, 'hp': 120, 'capacity': 100};
mawslist.stinger = {'name': 'Stinger', 'energy': 2.5, 'defense': 7, 'hp': 180, 'capacity': 100};
mawslist.avenger = {'name': 'Avenger', 'energy': 3, 'defense': 5, 'hp': 150, 'capacity': 100};
mawslist.mantra = {'name': 'Mantra87', 'energy': 3, 'defense': 4, 'hp': 130, 'capacity': 100};
super_A001_1 = {'sname': 'MEGA-STRIKE', 'botid': 'avenger'};
super_A001_2 = {'sname': 'BLITZ-RUSH', 'botid': 'avenger'};
super_A002_1 = {'sname': 'MEGA-BLAST', 'botid': 'stinger'};
super_A002_2 = {'sname': 'PYRO-BURST', 'botid': 'stinger'};
super_A003_1 = {'sname': 'MULTI-FIX', 'botid': 'luna'};
super_A003_2 = {'sname': 'FOCUS-SHOT', 'botid': 'luna'};
super_A004_1 = {'sname': 'MEGA-SHOCK', 'botid': 'mantra'};
super_A004_2 = {'sname': 'HUR.-FISTS', 'botid': 'mantra'};
xpArray = new Array(50, 155, 320, 550, 850, 1250, 1850, 2750, 4000, 5600);
xpArray.push(7600, 10200, 13500, 17500, 22300, 27900, 34400, 41800, 50100, 59500);
xpArray.push(70000, 81600, 94400, 108400, 123600, 140100, 158000, 177500, 198700, 222000);
xpArray.push(247800, 276300, 307800, 342500, 380700, 422700, 468700, 519200, 574700, 635700);
xpArray.push(702700, 776200, 856700, 944700, 1040700, 1145200, 1258700, 1381700, 1514700, 1658700);
xpArray.push(1814700, 1983700, 2166700, 2364700, 2578700, 2809700, 3058700, 3326700, 3614700, 3924700);
xpArray.push(4258700, 4618700, 5006700, 5424700, 5874700, 6358700, 6878700, 7436700, 8034700, 8677700);
xpArray.push(9370700, 10118700, 10926700, 11799700, 12742700, 13760700, 14858700, 16041700, 17314700, 18687700);
xpArray.push(20170700, 21773700, 23506700, 25379700, 27402700, 29585700, 31938700, 34471700, 37194700, 40117700);
xpArray.push(43260700, 46643700, 50286700, 54209700, 58432700, 62975700, 67858700, 73101700, 78724700);
TIME_MORNING = 7;
TIME_AFTERNOON = 12;
TIME_NIGHT = 18;
super_A001_1 = {'sname': 'MEGASTRIKE', 'botid': 'avenger'};
super_A002_1 = {'sname': 'MEGABLAST', 'botid': 'stinger'};
super_A003_1 = {'sname': 'MULTIFIX', 'botid': 'luna'};
MAX_INVENTORY_SPACE = 48;
rankArray = new Array({'fame': 0, 'title': 'Unranked'}, {'fame': 50, 'title': 'Novice E Class'}, {'fame': 100, 'title': 'Novice D Class'}, {'fame': 200, 'title': 'Novice C Class'}, {'fame': 300, 'title': 'Novice B Class'}, {'fame': 400, 'title': 'Novice A Class'}, {'fame': 500, 'title': 'Advanced E Class'}, {'fame': 1000, 'title': 'Advanced D Class'}, {'fame': 2000, 'title': 'Advanced C Class'}, {'fame': 3000, 'title': 'Advanced B Class'}, {'fame': 4000, 'title': 'Advanced A Class'}, {'fame': 5000, 'title': 'Specialist E Class'}, {'fame': 10000, 'title': 'Specialist D Class'}, {'fame': 20000, 'title': 'Specialist C Class'}, {'fame': 30000, 'title': 'Specialist B Class'}, {'fame': 40000, 'title': 'Specialist A Class'}, {'fame': 50000, 'title': 'Elite E Class'}, {'fame': 100000, 'title': 'Elite D Class'}, {'fame': 200000, 'title': 'Elite C Class'}, {'fame': 300000, 'title': 'Elite B Class'}, {'fame': 400000, 'title': 'Elite A Class'}, {'fame': 500000, 'title': 'Ace E Class'}, {'fame': 1000000, 'title': 'Ace D Class'}, {'fame': 2000000, 'title': 'Ace C Class'}, {'fame': 5000000, 'title': 'Ace B Class'}, {'fame': 7000000, 'title': 'Ace A Class'}, {'fame': 10000000, 'title': 'Legendary'}, {'fame': 100000000, 'title': 'GodLike!!'});
getQuests();
}
frame 32 {
function map0(area) {
encounterRate = 10;
mSet = 'intro_3';
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Tikila Grotto';
areaTerrain = 'cave';
areaMusic = 'beach';
areaOverlay = 'cave';
chestCredits = 5;
mapLocation = 0;
areaLocation = area;
changeSurroundBlank(1, 1);
environment = 'seacave';
var v7 = '';
var v6 = '';
var v4 = '';
var v5 = '';
switch (area) {
case 1:
var v2 = '0`7`s1||0`9`fungus||0`10`fungus||0`11`fungus||1`11`fungus||1`12`fungus||1`13`fungus||1`15`fungus||2`16`fungus||3`12`s1||3`16`fungus||4`16`fungus||5`16`fungus||5`17`fungus||5`18`fungus||6`17`fungus||6`18`fungus||8`14`cart||8`18`fungus||9`18`fungus||10`16`s1||10`18`fungus||11`16`s1||11`19`fungus||12`19`fungus||13`19`fungus||14`19`fungus||15`18`fungus||15`19`fungus||16`12`s1||16`17`fungus||17`16`fungus||17`17`fungus||18`15`fungus||18`16`fungus||19`11`fungus||19`12`fungus||19`15`fungus';
makeObjectsArray(v2);
makeObjectsArray(v2);
if (quest_26.prog == 1 && _global.option == 'newgame') {
makeObject(11, 7, 'calisto_1');
}
standardPathway('up', 2);
break;
case 2:
var v2 = '2`1`fungus||2`2`fungus||2`3`fungus||2`4`fungus||2`5`fungus||2`6`fungus||2`7`fungus||2`8`fungus||2`10`fungus||2`11`fungus||2`12`fungus||2`13`fungus||2`14`fungus||2`15`fungus||2`16`fungus||2`17`fungus||2`18`fungus||2`19`fungus||3`8`fungus||3`9`fungus||3`10`fungus||3`19`fungus||4`1`s1||4`2`s1||4`17`s1||5`9`fungus||5`10`s1||6`9`s1||12`3`fungus||12`4`fungus||13`2`fungus||13`3`fungus||14`0`fungus||14`1`fungus||15`0`fungus||15`1`fungus||15`3`s1||15`20`fungus||16`1`fungus||16`3`fungus||16`19`fungus||16`20`fungus||17`2`fungus||17`18`fungus||17`19`fungus||18`3`fungus||18`4`fungus||18`17`fungus||18`18`fungus||19`4`fungus||19`5`fungus||19`14`fungus||19`15`s1||19`17`fungus||20`5`fungus||20`6`fungus||20`17`fungus||21`5`fungus||21`6`fungus||21`16`fungus||21`17`fungus';
makeObjectsArray(v2);
standardPathway('up', 5);
standardPathway('right', 3);
standardPathway('down', 1);
break;
case 3:
var v2 = '0`6`fungus||0`18`fungus||1`6`fungus||1`18`fungus||2`5`fungus||2`7`s1||2`18`fungus||3`4`fungus||3`5`fungus||3`18`fungus||4`4`fungus||4`18`fungus||5`4`fungus||5`18`fungus||6`4`fungus||6`15`fungus||6`17`fungus||6`18`fungus||7`3`fungus||7`4`fungus||7`15`s1||7`17`fungus||8`0`fungus||8`1`fungus||8`2`fungus||8`3`fungus||8`4`grass||8`10`grass||8`11`grass||8`17`fungus||9`10`grass||9`11`Boulder||9`12`grass||9`16`fungus||9`17`fungus||10`10`grass||10`11`grass||10`12`grass||10`16`fungus||11`10`grass||11`11`Boulder||11`12`grass||11`16`fungus||12`11`grass||12`12`grass||12`16`fungus||13`16`fungus||14`11`s1||14`14`fungus||14`15`fungus||14`16`fungus||15`14`fungus||16`13`fungus||16`14`fungus||17`12`fungus||17`13`fungus||18`9`fungus||18`10`fungus||18`11`fungus||18`12`fungus||19`0`fungus||19`1`fungus||19`2`fungus||19`3`fungus||19`4`fungus||19`5`fungus||19`6`fungus||19`7`fungus||19`8`fungus||19`9`fungus';
makeObjectsArray(v2);
standardPathway('up', 4);
standardPathway('left', 2);
break;
case 4:
var v2 = '1`7`fungus||1`8`fungus||1`9`fungus||1`10`fungus||1`11`fungus||1`13`fungus||1`14`fungus||1`15`fungus||1`16`fungus||1`17`fungus||1`18`fungus||1`19`fungus||2`6`fungus||2`7`fungus||2`11`fungus||2`12`fungus||2`13`fungus||2`19`fungus||3`6`fungus||4`5`fungus||4`6`fungus||4`8`s1||4`9`Boulder||5`3`fungus||5`4`fungus||5`5`fungus||5`8`Boulder||5`9`Boulder||6`0`fungus||6`1`fungus||6`2`fungus||6`3`fungus||6`17`fungus||7`0`fungus||7`1`fungus||8`0`fungus||9`0`fungus||9`1`fungus||9`4`s1||10`1`fungus||11`1`fungus||11`7`chest$f`ITEMS$I001R$44||12`1`fungus||13`1`fungus||13`2`fungus||14`2`fungus||15`2`fungus||16`2`fungus||17`2`fungus||17`4`s1||17`5`s1||17`6`Boulder||18`2`fungus||18`5`Boulder||19`2`fungus||20`2`fungus||20`3`fungus||20`8`fungus||20`9`fungus||20`10`fungus||20`11`fungus||20`19`fungus||20`20`fungus||20`21`fungus||21`3`fungus||21`4`fungus||21`5`fungus||21`6`fungus||21`7`fungus||21`10`fungus||21`11`fungus||21`12`fungus||21`13`fungus||21`14`fungus||21`15`fungus||21`16`fungus||21`17`fungus||21`18`fungus||21`21`fungus';
makeObjectsArray(v2);
standardPathway('down', 3);
break;
case 5:
var v2 = '2`2`fungus||2`3`fungus||2`16`fungus||2`17`fungus||3`1`s1||3`4`fungus||3`15`fungus||3`16`fungus||4`4`fungus||4`14`fungus||5`4`fungus||5`14`fungus||5`17`s1||6`4`fungus||6`13`fungus||6`14`fungus||6`16`Boulder||6`17`s1||7`4`fungus||7`13`fungus||8`4`fungus||8`13`fungus||9`4`fungus||9`5`fungus||9`12`fungus||9`13`fungus||9`15`s1||10`5`fungus||10`6`fungus||10`12`fungus||10`15`Boulder||11`3`fungus||11`4`s1||11`6`fungus||11`7`fungus||11`8`fungus||11`9`fungus||11`10`fungus||11`11`fungus||11`12`fungus||18`17`s1||19`5`fungus||19`6`fungus||19`7`fungus||19`8`fungus||19`9`fungus||19`17`fungus||19`18`fungus||20`1`fungus||20`2`fungus||20`3`fungus||20`4`fungus||20`9`fungus||20`10`fungus||20`11`fungus||20`12`fungus||20`13`fungus||20`14`fungus||20`15`fungus||20`16`fungus||20`19`fungus||20`20`fungus||20`21`fungus';
makeObjectsArray(v2);
standardPathway('up', 6);
standardPathway('down', 2);
break;
case 6:
var v2 = '0`10`fungus||0`11`fungus||0`12`fungus||0`13`fungus||1`1`fungus||1`2`fungus||1`3`fungus||1`4`fungus||1`5`fungus||1`6`fungus||1`8`fungus||1`9`fungus||1`10`fungus||1`13`fungus||1`14`fungus||1`15`fungus||1`16`fungus||1`17`fungus||1`18`fungus||2`6`fungus||2`7`fungus||2`8`fungus||2`18`fungus||6`16`grass||6`17`fungus||6`18`grass||7`16`grass||7`17`grass||7`18`grass||8`7`sign`Tikila Grotto||12`10`s1||12`11`grass||13`10`s1||13`11`s1||13`12`grass||14`11`grass||17`3`fungus||20`9`fungus||20`10`fungus||20`11`fungus||20`12`fungus||20`13`fungus||20`14`fungus||20`15`fungus||21`2`fungus||21`3`fungus||21`4`fungus||21`5`fungus||21`6`fungus||21`7`fungus||21`8`fungus||21`9`fungus||21`16`fungus||21`17`fungus||21`18`fungus||21`19`fungus||21`20`fungus||21`21`fungus';
makeObjectsArray(v2);
if (quest_26.prog != 99) {
var v3 = '0`1||1`1||2`1||3`1||4`1||5`1||6`1||7`1||8`1||9`1||10`1||11`1||12`1||13`1||14`1||15`1||16`1||17`1||18`1||19`1||20`1';
makeTilesArray(v3);
makeChatTilesArray(v3, 'calisto_0g', 'talk');
}
standardPathway('up', -1, 1);
standardPathway('down', 5);
}
bgGraphics(areaTerrain, v7, v6, v4, v5, areaOverlay);
bgMusic(areaMusic);
}
}
frame 32 {
function map1(area) {
encounterRate = 0;
areaCharType = 'pilot';
clearWorld('Blank');
areaName = 'Tikila Village';
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
areaMusic = 'town';
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
areaMusic = 'town';
} else {
areaMusic = 'town';
}
}
areaTerrain = 'towngrass';
mapLocation = 1;
areaLocation = area;
bgMusic(areaMusic);
changeSurroundBlank(1, 1);
environment = 'outdoor';
switch (area) {
case 1:
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
generateNewChar('clare', 165, -345, 'npc', 'standing', 'Clare');
}
var v2 = '2`1`p2||3`1`Boulder||4`19`Boulder||6`6`chair||7`21`p2||8`9`Boulder||9`19`sign`To: Great Tiki Jungle\nDanger ahead!||11`5`sign$f`Closed at night||13`17`chair';
makeObjectsArray(v2);
var v1 = '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(v1);
makeLargeObject(1, 4, 7, 4, 'inn', 'l');
makePathway(5, 8, 'Doorway', 'inn');
makeLargeObject(1, 4, 15, 5, 'ronGarage', 'l');
makePathway(5, 16, 'Doorway', 'ronGarage');
makeLargeObject(10, 5, 4, 3, 'clothesShop', 'r');
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
makePathway(9, 5, 'Doorway', 'clothesShop');
}
makeLargeObject(17, 2, 17, 2, 'fountain', 'l');
if (quest_8.prog == 1 && quest_17.prog != 99) {
makeObject(9, 20, 'Blank');
makeObject(9, 21, 'Blank');
makeObject(11, 20, 'Blank');
makeObject(12, 20, 'Blank');
makeObject(12, 21, 'Blank');
makeObject(10, 20, 'talk', 'lucille>lucille_0');
}
makeObject(5, 6, 'Blank');
standardPathway('down', -1, 2);
standardPathway('right', 2);
bgGraphics(areaTerrain, 'sea', 'town', 'sea1', 'town_exit');
break;
case 2:
if (!(hh >= TIME_MORNING && hh < TIME_NIGHT)) {
generateNewChar('zocra', 280, -340, 'npc', 'moving', 'Captain Zocra');
}
var v2 = '2`6`chair||4`17`Boulder||5`15`p2||5`16`p2||5`17`p2||5`18`p2||5`19`p2||6`15`p2||6`16`p2||6`17`p2||6`18`p2||6`19`p2||7`15`p2||7`16`p2||7`17`p2||7`18`p2||7`19`p2||8`15`p2||8`16`p2||8`17`p2||8`18`p2||8`19`p2||9`15`p2||9`16`p2||9`17`p2||9`18`p2||9`19`p2||12`15`p2||12`16`p2||12`17`p2||12`18`p2||12`19`p2||13`15`p2||13`16`p2||13`17`p2||13`18`p2||13`19`p2||14`15`p2||14`16`p2||14`17`p2||14`18`p2||14`19`p2||15`15`p2||15`16`p2||15`17`p2||15`18`p2||15`19`p2||16`15`p2||16`16`p2||16`17`p2||16`18`p2||16`19`p2||20`8`Boulder';
makeObjectsArray(v2);
var v1 = '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(v1);
makeLargeObject(5, 4, 4, 3, 'house01', 'r');
makeLargeObject(10, 4, 4, 3, 'house01', 'r');
makeLargeObject(15, 4, 4, 3, 'house01', 'r');
makePathway(9, 5, 'Doorway', 'house01');
standardPathway('left', 1);
bgGraphics(areaTerrain, 'town11', 'wall', 'sea2', 'wall');
}
}
}
frame 32 {
function map2(area) {
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
encounterRate = 10;
} else {
encounterRate = 20;
}
if (area == 206 || area == 207) {
areaCharType = 'pilot';
} else {
areaCharType = 'maw';
}
clearWorld('Blank');
areaName = 'Great Tiki Jungle';
areaTerrain = 'jungle';
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
areaMusic = 'jungle';
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
areaMusic = 'jungle';
} else {
areaMusic = 'jungle_night';
}
}
mapLocation = 2;
areaLocation = area;
changeSurroundBlank(1, 1);
chestCredits = 5;
bgMusic(areaMusic);
environment = 'outdoor';
switch (area) {
case 1:
mSet = 'jungle_1';
var v2 = '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`p1||5`12`Tree||7`5`grass||7`12`sign`N - Tikila Village\nNE - Scrapyard\nE - Endless Gorge\nNW - Azure Cove\nW - Lazlo Mines||7`14`Boulder||7`15`Boulder||8`2`sign`To Tikila Village.||18`8`p1||18`18`grass||18`19`grass||19`5`grass||19`13`Boulder||19`15`Tree';
makeObjectsArray(v2);
standardPathway('up', -1, 1);
standardPathway('down', 2);
bgGraphics(areaTerrain, 'jungle', '', '', '', areaTerrain);
break;
case 2:
mSet = 'jungle_1';
var v2 = '1`1`p1||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`p1||2`14`Boulder||2`20`Boulder||3`9`Tree||3`17`Boulder||3`19`p1||4`1`Boulder||4`6`p1||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`p1||15`1`p1||15`15`grass||16`19`Boulder||18`2`Boulder||19`7`p1||19`17`Boulder||20`17`Boulder||20`20`Boulder';
makeObjectsArray(v2);
standardPathway('up', 1);
standardPathway('right', 3);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 3:
mSet = 'jungle_1';
var v2 = '1`3`grass||1`20`p1||2`1`p1||2`3`grass||2`17`Boulder||3`1`p1||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`p1||7`3`p1||7`13`grass||7`15`grass||7`16`grass||7`17`grass||8`13`grass||9`3`grass||9`19`sign`To deep jungle regions.\nDangerous creatures ahead!||10`3`grass||12`4`Boulder||13`1`p1||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`p1||18`8`sign$f`To scrapyard.||18`13`Boulder||18`14`Boulder||19`2`Boulder||19`19`p1';
makeObjectsArray(v2);
standardPathway('down', 5);
standardPathway('left', 2);
standardPathway('right', -1, 3);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 4:
chestCredits = 10;
mSet = 'jungle_2';
var v2 = '1`9`grass||1`10`grass||1`12`grass||1`16`Tree||2`4`Boulder||3`7`grass||3`9`p1||3`19`p1||4`2`grass||4`3`Tree||4`13`Tree||4`17`Boulder||4`18`grass||4`19`grass||5`6`p1||5`8`grass||5`12`grass||5`13`grass||7`3`p1||7`6`Boulder||9`3`Boulder||12`3`p1||12`16`grass||12`17`grass||12`18`p1||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`p1||18`19`p1||19`14`grass||20`8`Boulder||20`18`Tree';
makeObjectsArray(v2);
standardPathway('right', 5);
standardPathway('down', 9);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 5:
chestCredits = 10;
mSet = 'jungle_2';
var v2 = '1`2`Tree||2`1`p1||2`8`Tree||2`17`Tree||2`20`p1||3`3`Boulder||3`5`p1||3`15`p1||4`6`grass||5`3`p1||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`p1||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`p1||18`6`p1||18`19`p1||19`15`p1||19`17`grass||20`5`p1||20`17`Tree';
makeObjectsArray(v2);
standardPathway('up', 3);
standardPathway('right', 6);
standardPathway('left', 4);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 6:
chestCredits = 2;
mSet = 'jungle_2';
var v2 = '1`16`Tree||3`3`Boulder||3`5`Tree||5`1`p1||5`20`p1||7`17`Boulder||7`19`p1||8`2`p1||9`16`grass||11`3`grass||11`5`grass||11`6`grass||11`15`p1||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(v2);
standardPathway('left', 5);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 7:
mSet = 'jungle_3';
var v2 = '1`15`grass||1`16`grass||1`17`grass||2`8`sign`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`p1||8`2`grass||8`15`grass||9`3`Boulder||9`17`grass||10`14`p1||10`15`grass||10`17`grass||11`2`grass||11`15`grass||11`17`grass||11`20`p1||12`15`grass||12`16`grass||12`19`Boulder||13`16`grass||14`17`grass||15`5`p1||15`16`grass||15`17`grass||17`3`Tree||18`2`p1||19`17`p1||20`5`Boulder';
makeObjectsArray(v2);
standardPathway('left', -1, 4);
standardPathway('right', 8);
bgGraphics(areaTerrain, 'beach', '', 'mountain', '', areaTerrain);
break;
case 8:
mSet = 'jungle_3';
var v2 = '1`19`p1||2`5`p1||2`6`grass||2`16`Boulder||3`3`Tree||3`6`grass||3`16`Boulder||4`6`grass||4`19`Tree||5`2`p1||5`5`p1||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`p1||7`20`grass||8`1`p1||8`3`grass||8`14`grass||8`20`grass||9`3`grass||9`15`grass||10`15`grass||10`19`p1||12`2`Tree||12`6`p1||12`7`grass||13`7`grass||13`19`Tree||14`7`grass||15`3`p1||15`5`grass||15`17`p1||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`p1||20`4`p1||20`14`Boulder';
makeObjectsArray(v2);
standardPathway('right', 9);
standardPathway('left', 7);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 9:
mSet = 'jungle_3';
var v2 = '1`1`Tree||1`5`Boulder||1`19`p1||3`3`p1||3`5`grass||4`16`p1||4`18`grass||4`19`grass||6`3`Boulder||6`16`Tree||6`19`Boulder||13`11`Tree||13`19`Boulder||14`7`p1||15`3`Tree||15`16`p1||16`9`grass||16`15`grass||16`18`grass||18`2`p1||18`14`p1||19`4`grass||19`6`p1||20`11`p1||20`19`p1';
makeObjectsArray(v2);
standardPathway('up', 4);
standardPathway('down', 10);
standardPathway('left', 8);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 10:
mSet = 'jungle_4';
var v2 = '2`7`p1||2`14`grass||2`16`p1||3`4`grass||3`7`p1||3`10`Boulder||3`15`Tree||4`6`Tree||4`13`p1||4`19`p1||5`1`Tree||5`9`grass||5`12`Tree||5`16`grass||7`6`p1||8`18`Boulder||13`6`repairstation||15`8`grass||15`17`p1||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`p1||19`9`grass||19`14`grass||19`17`Tree||19`19`grass||20`14`grass';
makeObjectsArray(v2);
makePathway(13, 7, 'Doorway', 'repairstation');
standardPathway('up', 9);
standardPathway('down', 13);
standardPathway('right', 201);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 13:
mSet = 'jungle_4';
var v2 = '3`10`p1||3`17`p1||4`2`Tree||4`5`p1||4`7`p1||4`10`p1||4`16`p1||4`19`p1||5`4`grass||5`10`Boulder||5`14`p1||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`p1||18`6`p1||18`8`Boulder||18`13`p1||18`15`Boulder||19`2`p1||19`3`p1||19`4`Boulder||19`18`p1';
makeObjectsArray(v2);
standardPathway('up', 10);
standardPathway('down', 19);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 16:
mSet = 'jungle_4';
var v2 = '2`6`grass||2`7`grass||2`8`grass||2`9`grass||2`10`grass||2`11`Boulder||2`15`grass||2`16`grass||3`11`Boulder||4`7`grass||4`9`Tree||4`15`p1||5`4`p1||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`p1||14`19`grass||14`20`grass||15`4`grass||15`18`p1||16`4`grass||16`16`grass||17`15`grass||17`16`grass||19`4`grass||19`6`p1||19`14`grass';
makeObjectsArray(v2);
standardPathway('down', 21);
standardPathway('right', 17);
bgGraphics(areaTerrain, 'mountain', '', 'mountain', '', areaTerrain);
break;
case 17:
mSet = 'jungle_4';
var v2 = '1`7`grass||2`6`grass||2`7`grass||2`18`p1||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`p1||5`17`Boulder||6`3`grass||6`5`p1||6`17`grass||7`19`grass||8`3`Boulder||8`16`p1||8`19`grass||9`4`grass||10`4`Boulder||10`17`Boulder||10`18`Boulder||11`17`Boulder||12`6`p1||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`p1||16`5`Boulder||16`17`grass||16`18`grass||17`4`grass||17`6`p1||17`17`grass||17`18`Boulder||18`3`Boulder||18`4`Boulder||19`6`grass||19`16`grass||19`17`Boulder||19`18`p1||20`15`grass||20`16`Boulder';
makeObjectsArray(v2);
standardPathway('right', 18);
standardPathway('left', 16);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 18:
mSet = 'jungle_4';
var v2 = '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`p1||5`3`grass||5`14`grass||5`15`grass||6`3`grass||7`3`grass||7`5`p1||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`p1||20`14`grass||21`14`grass';
makeObjectsArray(v2);
standardPathway('right', 19);
standardPathway('left', 17);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 19:
mSet = 'jungle_4';
var v2 = '1`5`grass||1`6`grass||2`2`p1||2`6`Boulder||3`6`Boulder||3`15`grass||3`19`p1||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||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`p1||18`10`grass||18`12`Boulder||18`15`grass||18`16`grass||19`3`p1||19`8`p1';
makeObjectsArray(v2);
standardPathway('up', 13);
standardPathway('left', 18);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 20:
mSet = 'jungle_4';
var v2 = '2`5`Boulder||2`9`sign`To Lazlo 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`p1||19`18`p1';
makeObjectsArray(v2);
standardPathway('right', 21);
standardPathway('left', -1, 11);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', 'beach', areaTerrain);
break;
case 21:
mSet = 'jungle_4';
var v2 = '2`7`grass||3`2`p1||3`6`grass||3`7`grass||3`18`p1||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`p1||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(v2);
standardPathway('up', 16);
standardPathway('left', 20);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', 'beach', areaTerrain);
break;
case 22:
mSet = 'jungle_4';
var v2 = '2`5`grass||2`6`grass||2`7`grass||4`3`grass||4`16`grass||4`17`grass||5`2`p1||5`7`Boulder||6`11`grass||6`12`grass||7`11`grass||7`17`Boulder||9`18`sign`To ChocoPet shop!\n:)||14`5`p1||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(v2);
standardPathway('up', 18);
standardPathway('down', -1, 5);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', 'beach', areaTerrain);
break;
case 201:
mSet = 'jungle_4';
var v2 = '2`3`p1||3`18`p1||4`2`Boulder||4`3`Boulder||4`19`Boulder||5`3`Tree||5`5`p1||6`15`p1||6`18`p1||7`5`Boulder||7`14`Boulder||8`3`p1||8`18`Boulder||11`18`p1||12`5`p1||13`5`Boulder||13`6`Boulder||13`17`p1||14`17`p1||16`4`p1||16`6`p1||16`18`p1||17`5`Boulder||17`19`p1||18`18`Boulder||19`2`Boulder||19`5`p1||20`16`p1';
makeObjectsArray(v2);
standardPathway('left', 10);
standardPathway('right', 202);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 202:
mSet = 'jungle_4';
var v2 = '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`p1||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(v2);
standardPathway('down', 203);
standardPathway('left', 201);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 203:
mSet = 'jungle_4';
var v2 = '2`6`grass||2`7`grass||2`8`grass||2`9`grass||2`18`p1||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`p1||8`13`p1||8`18`grass||9`18`grass||9`19`grass||10`19`grass||11`19`grass||12`14`p1||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`p1||20`4`grass||20`16`Boulder||20`17`Boulder||21`4`grass';
makeObjectsArray(v2);
standardPathway('up', 202);
standardPathway('right', 204);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 204:
mSet = 'jungle_4';
var v2 = '3`5`grass||3`7`boulder||3`8`boulder||3`18`grass||4`5`grass||4`6`grass||4`18`grass||5`18`grass||5`20`p1||6`18`grass||7`5`p1||8`18`grass||8`19`grass||9`5`grass||9`17`grass||10`16`grass||10`21`grass||11`18`boulder||11`21`grass||13`6`boulder||13`18`grass||13`19`grass||14`19`grass||15`4`fungus||15`5`grass||15`6`grass||15`19`grass||16`3`tree||18`4`grass||18`5`grass||19`18`p1||20`17`grass';
makeObjectsArray(v2);
standardPathway('left', 203);
standardPathway('right', 205);
standardPathway('down', 209);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 205:
mSet = 'jungle_4';
var v2 = '2`6`grass||4`6`tree||5`18`grass||6`5`grass||6`17`grass||7`3`scrap||7`5`grass||7`7`boulder||7`17`grass||7`18`boulder||8`3`scrap||8`17`grass||8`18`boulder||9`17`grass||14`18`grass||14`19`grass||15`4`scrap||15`18`grass||17`17`boulder||18`4`grass||19`7`grass||20`7`grass';
makeObjectsArray(v2);
standardPathway('left', 204);
standardPathway('up', 206);
standardPathway('right', 208);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 206:
encounterRate = 0;
var v2 = '3`10`p2||3`11`p2||4`7`scrapluna$f||4`10`p2||4`11`p2||4`15`Boulder||5`0`wall2||5`1`wall2||5`2`wall2||5`3`wall2||5`10`p2||5`11`p2||5`12`p2||6`3`wall2$f||6`4`wall2||7`4`wall2$f||8`4`wall2$f||13`4`wall2$f||14`4`wall2$f||15`3`wall2$f||15`4`wall2||15`12`sign$f`Calisto\'s House||16`0`wall2||16`1`wall2||16`2`wall2||16`3`wall2||16`6`p2||16`7`p2||16`8`p2||17`6`p2||17`7`p2||17`8`p2||18`17`Boulder||19`17`Boulder';
makeObjectsArray(v2);
standardPathway('up', 207);
standardPathway('down', 205);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 207:
encounterRate = 0;
var v2 = '3`3`wall2||3`4`wall2||3`5`wall2||3`6`wall2||3`7`wall2||3`8`wall2||3`9`wall2||3`10`wall2||3`11`wall2||3`12`wall2||3`13`wall2||3`14`wall2||3`15`wall2||3`16`wall2||3`17`wall2||3`18`wall2||3`19`wall2||4`2`wall2$f||4`3`t1$f||4`4`t1||4`5`t1||4`8`t1||4`9`t1||5`2`wall2$f||5`3`t1$f||5`4`t1||5`5`t1||5`14`lamp||6`1`wall2$f||6`12`chair||6`17`chair||7`1`wall2$f||8`1`wall2$f||9`1`wall2$f||10`1`wall2$f||11`1`wall2$f||12`1`wall2$f||13`1`wall2$f||14`1`wall2$f||15`1`wall2$f||15`16`p2||15`17`p2||15`18`p2||16`1`wall2$f||16`12`cart||16`13`cart||16`16`p2||16`17`p2||16`18`p2||17`1`wall2$f||17`4`crane$f||17`16`p2||17`17`p2||17`18`p2||18`2`wall2$f||19`2`wall2$f||20`3`wall2||20`4`wall2||20`5`wall2||20`6`wall2||20`7`wall2||20`8`wall2||20`9`wall2||20`10`wall2||20`11`wall2||20`12`wall2||20`13`wall2||20`14`wall2||20`15`wall2||20`16`wall2||20`17`wall2||20`18`wall2||20`19`wall2||20`20`wall2';
makeObjectsArray(v2);
makeLargeObject(10, 4, 4, 3, 'house02', 'r');
if (getCharacterAttr('A003', 'active') && getCharacterAttr('A003', 'active') != 'false') {
makePathway(9, 5, 'Doorway', 'house02');
}
standardPathway('down', 206);
bgGraphics(areaTerrain, 'mountain', '', 'mountain', '', areaTerrain);
break;
case 208:
mSet = 'jungle_4';
var v2 = '2`3`p1||3`17`p1||4`7`p1||5`14`p1||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$f`To Endless Gorge.||18`19`grass||20`8`grass||20`14`grass';
makeObjectsArray(v2);
standardPathway('right', -1, 6);
standardPathway('left', 205);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 209:
mSet = 'jungle_4';
var v2 = '4`9`boulder||4`14`boulder||6`3`tree||7`6`grass||7`8`grass||7`9`grass||8`5`grass||15`2`tree||15`4`grass||16`5`grass||17`7`grass||17`11`boulder||20`15`boulder||20`16`boulder';
makeObjectsArray(v2);
standardPathway('up', 204);
standardPathway('down', 211);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 210:
mSet = 'jungle_4';
var v2 = '4`10`grass||4`14`grass||5`5`tree||6`7`grass||6`18`tree||7`10`fungus||10`3`grass||11`3`grass||16`2`grass||17`2`grass||17`4`fungus||17`18`boulder||19`5`grass||20`4`grass||20`5`grass||20`15`boulder';
makeObjectsArray(v2);
standardPathway('right', 211);
standardPathway('down', 212);
bgGraphics(areaTerrain, 'mountain', '', 'mountain', '', areaTerrain);
break;
case 211:
mSet = 'jungle_4';
var v2 = '3`7`wall||3`8`wall||4`7`grass||5`5`p1||5`7`grass||7`5`grass||7`18`p1||8`17`grass||8`18`grass||14`18`grass||17`11`grass||18`2`p1||18`5`p1||18`8`grass||18`9`grass||18`14`grass||18`17`p1';
makeObjectsArray(v2);
standardPathway('up', 209);
standardPathway('left', 210);
standardPathway('down', 213);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 212:
mSet = 'jungle_4';
var v2 = '1`8`wall||1`9`wall||3`8`grass||3`11`grass||3`15`p1||3`18`wall||3`19`wall||4`6`p1||5`3`grass||5`4`grass||5`17`grass||18`19`p1||19`4`p1||19`17`grass||20`6`grass||21`6`grass';
makeObjectsArray(v2);
standardPathway('up', 210);
standardPathway('right', 213);
standardPathway('down', 214);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 213:
mSet = 'jungle_4';
var v2 = '6`18`p1||7`17`grass||8`17`grass||9`17`grass||10`16`grass||10`17`grass||11`16`grass||15`14`grass||15`15`grass||15`18`p1||16`14`grass||18`4`p1||18`5`grass||18`6`grass||18`10`grass||19`14`p1||19`17`p1';
makeObjectsArray(v2);
standardPathway('up', 211);
standardPathway('left', 212);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 214:
mSet = 'jungle_4';
var v2 = '2`9`wall||2`10`wall||2`11`wall||2`12`wall||2`13`wall||4`6`tree||4`10`crane||4`14`grass||4`18`grass||6`4`wall||6`5`wall$f||6`20`grass||7`17`wall$f||8`11`chest`ITEMS$W02MS$36||8`17`wall$f||12`17`wall$f||13`17`wall$f||14`11`scrapluna$f||16`19`grass||17`5`wall||17`19`grass||19`6`grass||19`16`wall$f||21`13`grass';
makeObjectsArray(v2);
standardPathway('up', 212);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
}
}
}
frame 32 {
function map3(area) {
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
encounterRate = 10;
} else {
encounterRate = 20;
}
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Scrapyard';
areaTerrain = 'scrapyard';
areaMusic = 'scrapyard';
areaOverlay = '';
mapLocation = 3;
areaLocation = area;
chestCredits = 10;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
environment = 'outdoor';
switch (area) {
case 1:
mSet = 'scrapyard_4';
objString = '1`6`wall||1`7`wall||1`8`wall||1`9`wall||1`12`grass||1`13`grass||1`18`grass||2`5`wall||2`6`wall||2`9`wall||2`10`wall||2`15`Boulder||3`4`wall||3`5`wall||3`10`wall||3`11`wall||3`19`Boulder||4`3`wall||4`4`wall||4`11`wall||4`12`wall||4`15`grass||4`16`grass||5`2`wall||5`3`wall||5`4`scrapluna$f||5`12`wall||5`13`wall||5`19`crane$f||6`1`wall||6`2`wall||6`3`wall||6`13`wall||6`14`wall||7`1`wall||7`7`scrapavenger$f||7`10`scrapavenger_l||7`14`wall||7`15`wall||8`1`wall||8`3`scrapavenger$f||8`12`sign`Do not disturb the machines.||8`15`wall||8`16`wall||8`17`scrapavenger$f||8`19`scrapavenger_l||9`1`wall||10`1`wall||11`1`wall||12`1`wall||13`1`wall||13`15`wall||13`16`wall||13`17`scrapavenger$f||13`19`scrapavenger_l||14`1`wall||14`3`scrapavenger$f||14`7`scrapavenger_l||14`10`scrapavenger$f||14`14`wall||14`15`wall||15`1`wall||15`2`wall||15`13`wall||15`14`wall||16`1`wall||16`2`wall||16`3`wall||16`4`scrapluna$f||16`12`wall||16`13`wall||16`16`Boulder||16`17`Boulder||16`19`crane$f||17`3`wall||17`4`wall||17`11`wall||17`12`wall||18`1`grass||18`2`grass||18`3`wall||18`4`wall||18`5`wall||18`10`wall||18`11`wall||18`15`grass||19`1`grass||19`2`grass||19`5`wall||19`6`wall||19`9`wall||19`10`wall||19`14`grass||19`15`grass||19`17`grass||19`18`grass||20`1`grass||20`2`grass||20`3`grass||20`6`wall||20`7`wall||20`8`wall||20`9`wall||20`13`grass';
makeObjectsArray(objString);
if (quest_28.prog == 0) {
makeObject(10, 6, 'talk', 'scrapyard_boss>scrapyard_boss_0');
}
standardPathway('down', 3);
bgGraphics(areaTerrain, 'mountain', '', 'mountain', '', areaOverlay);
break;
case 2:
mSet = 'scrapyard_6';
objString = '1`14`grass||2`2`wall$f||2`3`wall$f||2`13`grass||2`14`grass||3`7`Boulder||4`3`scrap||4`4`scrap||4`5`scrap||4`6`scrap||4`10`scrapavenger||4`14`crane||4`18`scrapavenger||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$f||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$f||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', '', areaOverlay);
break;
case 3:
mSet = '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||3`4`scrapluna$f||3`7`scrap||3`9`scrap||3`14`scrap||3`19`scrapluna||4`2`crane$f||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$f||6`2`wall$f||6`5`scrap||6`6`scrap||6`9`scrap||6`17`scrap||7`1`wall$f||7`2`wall$f||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||8`2`wall||8`3`wall||8`4`wall||8`5`scrapavenger$f||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||12`2`wall||12`3`wall||12`4`wall||12`5`scrapavenger$f||12`12`scrap||12`13`scrap||12`19`scrap||13`1`wall$f||13`2`wall$f||13`4`scrap||13`6`repairstation||13`19`scrap||14`1`wall$f||14`2`wall$f||14`4`scrap||14`5`scrap||14`20`scrap||15`1`wall$f||15`2`wall$f||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, 'Doorway', 'repairstation');
standardPathway('up', 1);
standardPathway('left', 2);
bgGraphics(areaTerrain, '', '', '', '', areaOverlay);
break;
case 4:
mSet = '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||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||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', '', areaOverlay);
break;
case 5:
mSet = 'scrapyard_6';
objString = '1`7`scrap||1`14`scrap||2`3`grass||2`4`grass||2`5`crane$f||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||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$f||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||20`2`wall||20`3`wall||20`4`wall||20`5`wall||20`7`wall||20`8`wall||20`9`grass||20`11`wall||20`12`wall||20`13`wall||20`14`scrap||20`15`scrap||20`16`wall||20`17`wall||20`18`wall';
makeObjectsArray(objString);
standardPathway('left', 4);
standardPathway('up', 2);
standardPathway('down', 9);
bgGraphics(areaTerrain, '', '', '', '', areaOverlay);
break;
case 6:
encounterRate = 20;
mSet = '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||4`3`scrap||4`5`scrap||4`6`scrap||4`13`scrap||4`14`scrap||5`4`scrap||5`5`scrap||5`10`scrapavenger||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', '', areaOverlay);
break;
case 7:
mSet = '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$f||4`1`scrap||4`8`scrap||4`14`scrap||4`15`scrap||4`16`scrap||4`20`wall$f||5`8`scrap||5`9`scrap||5`16`scrap||5`17`scrap||5`18`scrap||5`19`scrap||6`1`wall$f||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$f||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$f||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$f`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$f||18`4`scrap||18`11`scrap||18`12`scrap||18`13`scrap||18`19`scrap||18`20`wall$f||19`1`wall$f||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', '', areaOverlay);
break;
case 8:
mSet = '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||3`2`scrap||3`4`scrapavenger||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$f||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$f||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, '', '', '', '', areaOverlay);
break;
case 9:
mSet = 'scrapyard_5';
objString = '1`2`scrapavenger||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$f||3`1`scrap||3`3`scrap||3`4`scrap||3`17`scrap||3`18`scrap||3`20`wall$f||4`1`scrap||4`2`scrap||4`3`scrap||4`17`scrap||4`18`scrap||4`20`wall$f||5`1`scrap||5`2`scrap||5`16`scrap||5`18`scrap||5`20`wall$f||6`1`scrap||6`14`scrap||6`18`scrap||7`14`scrap||7`15`scrap||7`18`scrap||7`21`wall$f||8`18`scrap||8`21`wall$f||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$f||16`2`scrap||16`17`scrap||16`20`wall$f||17`2`scrap||17`3`scrap||17`14`scrap||17`15`scrap||17`17`scrap||17`20`wall$f||18`2`scrap||18`3`scrap||18`14`scrap||18`17`scrap||18`18`scrap||18`21`wall$f||19`2`scrap||19`3`scrap||19`14`scrap||19`18`scrap||19`21`wall$f||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, '', '', '', '', areaOverlay);
break;
case 10:
mSet = 'scrapyard_5';
objString = '1`4`scrap||1`13`scrap||1`14`scrap||1`15`scrap||1`16`scrap||2`2`wall$f||2`4`scrap||2`14`scrap||2`15`scrap||3`1`wall$f||3`2`wall$f||3`4`scrap||3`15`scrap||4`2`wall$f||4`5`scrap||4`15`scrap||4`16`scrap||4`17`scrap||4`18`scrap||5`2`wall$f||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||15`6`scrap||15`8`scrap||15`10`scrap||15`11`scrap||15`12`scrap||15`13`scrap||15`19`scrap||16`1`wall$f||16`2`grass||16`3`wall$f||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||17`7`scrap||17`15`scrap||17`19`scrap||18`2`Boulder||18`12`wall||18`17`scrap||18`18`scrap||18`19`scrap||18`20`scrap||19`6`wall||19`7`wall||19`12`wall||19`13`wall||19`14`wall||19`19`scrap||20`19`scrap';
makeObjectsArray(objString);
standardPathway('left', 9);
standardPathway('down', 13);
bgGraphics(areaTerrain, '', '', 'mountain', '', areaOverlay);
break;
case 11:
encounterRate = 30;
mSet = 'scrapyard_5';
var objString = '2`1`scrap||2`2`wall||2`3`wall||2`4`wall||2`5`wall||2`6`wall||2`14`wall$f||2`15`wall$f||2`16`wall$f||2`17`wall$f||2`18`wall$f||2`19`wall$f||3`1`scrap||3`7`wall||3`8`wall||3`9`wall||3`10`wall||3`11`wall||3`12`wall||3`13`wall||3`14`wall||3`18`wall$f||3`19`wall$f||4`1`scrap||4`3`scrapavenger||4`4`scrapavenger_r||4`5`scrapavenger||4`7`scrapavenger_r||4`8`scrapavenger||4`10`chest`ITEMS$I002R$35||4`11`scrapavenger||4`13`scrapavenger_r||4`18`wall$f||4`19`wall$f||5`1`wall$f||5`17`wall$f||5`18`wall$f||6`1`scrap||6`4`scrapavenger||6`5`scrapavenger_r||6`7`scrapavenger||6`8`scrapavenger_r||6`10`scrapavenger||6`11`scrapavenger_r||6`13`scrapavenger||6`16`wall$f||6`17`wall$f||7`17`wall$f||7`18`wall$f||7`19`wall$f||8`6`scrapavenger||8`7`scrapavenger_r||8`9`scrapavenger||8`10`scrapavenger_r||8`12`scrapavenger||8`14`scrapavenger_r||8`15`scrapavenger||8`20`wall$f||9`20`wall$f||10`8`scrapavenger||10`9`scrapavenger_r||10`11`scrapavenger||10`12`scrapavenger_r||10`15`scrapavenger||10`20`wall$f||11`20`wall$f||12`13`scrapavenger||12`14`scrapavenger_r||12`20`wall$f||13`1`scrap||13`9`scrapavenger||13`20`wall$f||14`1`scrap||14`5`scrapavenger||14`6`scrapavenger_r||14`9`scrapavenger||14`18`wall$f||14`19`wall$f||14`20`wall$f||15`1`wall$f||15`18`wall$f||16`1`wall$f||16`7`scrapavenger||16`8`scrapavenger_r||16`18`wall$f||16`19`wall$f||16`20`wall$f||17`1`wall$f||17`13`wall$f||17`14`wall$f||17`15`wall$f||17`20`wall$f||18`1`scrap||18`2`scrap||18`3`scrap||18`13`wall$f||18`16`wall$f||18`20`wall$f||19`1`wall$f||19`3`scrap||19`13`wall$f||19`16`wall$f||19`20`wall$f||20`1`wall$f||20`2`wall||20`3`wall||20`4`scrap||20`5`scrap||20`6`scrap||20`7`wall||20`8`wall||20`9`wall||20`10`wall||20`11`wall||20`12`wall||20`13`wall$f||20`16`wall$f||20`17`wall$f||20`18`wall$f||20`19`wall$f||20`20`wall$f||21`3`wall||21`4`scrap||21`5`scrap';
makeObjectsArray(objString);
standardPathway('up', 6);
bgGraphics(areaTerrain, 'mountain', '', '', '', areaOverlay);
break;
case 12:
mSet = 'scrapyard_2';
objString = '1`1`wall||1`2`wall||1`4`wall||1`5`wall||1`6`wall||1`7`wall||1`13`wall||1`14`wall||1`18`wall||1`19`wall||1`20`wall||2`9`wall||2`10`wall||2`12`wall||2`13`wall||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||7`7`crane_r||7`12`crane||7`17`crane||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||19`1`wall||19`2`wall||19`6`wall||19`7`wall||19`8`wall||19`17`wall||19`18`wall||19`19`wall||19`20`wall||19`21`wall||20`4`wall||20`5`wall||20`6`wall||20`13`wall||20`14`wall||20`15`wall||20`16`wall||20`17`wall||21`10`wall||21`11`wall||21`12`wall||21`13`wall';
makeObjectsArray(objString);
standardPathway('up', 8);
standardPathway('down', 14);
bgGraphics(areaTerrain, 'mountain', '', '', '', areaOverlay);
break;
case 13:
mSet = '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||16`2`wall||16`3`wall||16`4`wall||16`5`wall||16`6`wall||16`7`wall||16`8`wall||16`9`wall||16`10`wall||16`11`wall||16`12`wall||16`13`wall||16`14`wall||16`15`wall||16`16`wall||16`17`wall||16`18`wall||16`19`wall||16`20`wall||16`21`wall||19`1`wall||19`2`wall||19`3`wall||19`4`wall||19`5`wall||19`6`wall||19`7`wall||19`8`wall||19`9`wall||19`10`wall||19`11`wall||19`12`wall||19`13`wall||19`14`wall||19`15`wall||19`16`wall||19`17`wall||19`18`wall||19`19`wall||19`20`wall||19`21`wall||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', '', '', '', areaOverlay);
break;
case 14:
mSet = 'scrapyard_2';
objString = '1`6`wall||1`7`wall||2`5`crane||2`9`scrap||2`10`scrap||2`11`scrap||2`12`scrap||2`17`grass||2`18`grass||3`4`scrapluna$f||3`7`scrap||3`8`scrap||3`9`scrap||3`10`scrapluna||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||5`4`scrap||5`5`scrap||5`6`scrap||5`12`scrap||5`14`scrap||5`15`scrap||6`1`crane$f||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$f||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||15`17`scrap||15`18`scrap||15`19`scrap||16`5`scrapluna$f||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||19`5`wall||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', '', '', '', areaOverlay);
break;
case 15:
mSet = '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$f||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||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$f||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', '', areaOverlay);
break;
case 16:
mSet = '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||5`2`wall||5`3`wall||5`15`scrap||5`16`scrap||6`3`wall$f||6`16`scrap||6`17`scrap||6`18`scrap||6`19`grass||6`20`grass||7`3`wall$f||8`3`wall$f||8`4`wall$f||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$f||14`4`wall$f||14`15`scrap||14`18`Boulder||15`3`wall$f||15`14`scrap||15`15`scrap||15`16`scrap||15`17`scrap||15`18`scrap||16`1`wall||16`2`wall||16`3`wall||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, '', '', '', '', areaOverlay);
break;
case 17:
mSet = 'scrapyard_1';
objString = '1`12`Boulder||1`15`grass||1`16`grass||1`18`grass||2`3`scrapavenger$f||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||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||6`1`scrap||6`2`scrap||6`10`scrap||7`1`scrap||7`10`scrap||7`13`scrapavenger||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$f||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', '', '', '', areaOverlay);
break;
case 18:
encounterRate = 'NONSAVE';
objString = '7`5`repairstation||1`1`wall||1`3`wall||1`4`wall||1`6`wall||1`7`wall||1`10`grass||1`11`wall||1`12`wall||1`13`wall||1`14`wall$f||2`14`wall$f||3`14`wall$f||3`19`p1||4`2`scrapluna$f||4`7`scrap||4`8`scrap||4`9`scrap||4`10`scrap||4`14`wall$f||4`17`grass||4`20`Boulder||5`2`scrap||5`3`scrap||5`9`scrap||5`14`wall$f||5`17`grass||6`14`wall$f||7`5`repairstation||7`10`scrap||7`14`wall$f||7`15`wall$f||7`18`Boulder||13`14`wall$f||13`15`wall$f||14`2`crane$f||14`14`wall$f||14`17`sign$f`Gears can be obtained from gear flies.||15`9`scrap||15`10`scrap||15`14`wall$f||16`6`scrap||16`7`scrap||16`8`scrap||16`14`wall$f||17`6`scrap||17`14`wall$f||17`17`grass||18`14`wall$f||18`16`grass||19`14`wall$f||19`20`Boulder||20`3`wall||20`4`wall||20`7`wall||20`8`wall||20`12`wall||20`13`wall||20`14`wall$f';
makeObjectsArray(objString);
makePathway(7, 6, 'Doorway', 'repairstation');
standardPathway('down', -1, 2);
standardPathway('up', 17);
bgGraphics(areaTerrain, 'jungle', '', '', '', areaOverlay);
}
}
}
frame 32 {
function map4(area) {
encounterRate = 10;
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Azure Cove';
areaTerrain = 'beach';
areaMusic = 'beach';
areaOverlay = '';
mapLocation = 4;
areaLocation = area;
chestCredits = 15;
changeSurroundBlank(1, 1);
environment = 'outdoor';
switch (area) {
case 1:
mSet = 'azure_1';
var v1 = '3`15`grass2||4`18`tree||7`5`repairstation||7`18`boulder||14`15`grass2||14`16`grass2||17`9`sign`DANGER: Hermitshark Region||18`12`boulder';
makeObjectsArray(v1);
makePathway(7, 6, 'Doorway', 'repairstation');
standardPathway('left', 2);
standardPathway('right', -1, 2);
bgGraphics(areaTerrain, '', '', 'sea', areaOverlay);
break;
case 2:
mSet = 'azure_1';
var v1 = '2`8`grass2||2`9`grass2||2`16`grass2||3`7`grass2||3`8`grass2||5`3`boulder||7`3`grass2||8`3`grass2||14`19`boulder||16`14`boulder||16`17`grass2||17`4`grass2||17`17`grass2||19`15`grass2';
makeObjectsArray(v1);
standardPathway('down', 3);
standardPathway('right', 1);
bgGraphics(areaTerrain, 'sea', '', 'sea', areaOverlay);
break;
case 3:
mSet = 'azure_1';
var v1 = '1`7`boulder||2`4`grass2||3`3`grass2||3`18`boulder||4`3`boulder||5`2`boulder||8`18`grass2||12`18`boulder||13`16`boulder||16`17`grass2||17`17`grass2||18`6`grass2||19`14`grass2';
makeObjectsArray(v1);
standardPathway('up', 2);
standardPathway('left', 4);
bgGraphics(areaTerrain, '', '', '', areaOverlay);
break;
case 4:
mSet = 'azure_2';
var v1 = '2`7`grass2||2`15`grass2||2`16`grass2||7`16`boulder||14`17`grass2||18`14`boulder';
makeObjectsArray(v1);
standardPathway('left', 5);
standardPathway('right', 3);
bgGraphics(areaTerrain, '', '', 'sea', areaOverlay);
break;
case 5:
mSet = 'azure_2';
var v1 = '4`6`grass2||6`3`grass2||6`19`grass2||7`3`grass2||9`3`grass2||10`3`grass2||10`5`grass2||11`5`grass2||14`3`grass2||16`19`grass2||16`20`grass2||17`5`grass2';
makeObjectsArray(v1);
standardPathway('left', 6);
standardPathway('right', 4);
bgGraphics(areaTerrain, '', '', 'sea', areaOverlay);
break;
case 6:
mSet = 'azure_2';
var v1 = '2`15`boulder||3`6`grass2||5`20`grass2||8`2`sign$f`The signboard is faded away, but you can make out the word "Fried Rice"\n||10`20`grass2||14`16`grass2||15`16`grass2||16`2`tree||16`15`grass2||19`15`grass2';
makeObjectsArray(v1);
standardPathway('left', 7);
standardPathway('up', 9);
standardPathway('right', 5);
bgGraphics(areaTerrain, '', '', '', areaOverlay);
break;
case 7:
mSet = 'azure_3';
encounterRate = 20;
var v1 = '2`20`grass2||3`8`grass2||3`18`p1||4`21`grass2||7`19`tree||9`18`boulder||15`18`grass2';
makeObjectsArray(v1);
standardPathway('left', 8);
standardPathway('right', 6);
bgGraphics(areaTerrain, '', '', 'sea', areaOverlay);
break;
case 8:
mSet = 'azure_3';
encounterRate = 30;
var v1 = '3`4`s1||3`19`grass2||5`16`boulder||11`5`boulder||13`16`s1||15`7`boulder||16`19`grass2||17`13`boulder||18`6`boulder||18`7`boulder||20`12`boulder';
makeObjectsArray(v1);
standardPathway('right', 7);
bgGraphics(areaTerrain, 'jungle', '', 'sea', areaOverlay);
break;
case 9:
world[player].clip.gotoAndStop(selectedPilot);
encounterRate = 'NONSAVE';
areaMusic = 'beachstall';
var v1 = '2`14`tree||5`16`boulder||6`9`chair';
makeObjectsArray(v1);
makeLargeObject(10, 4, 4, 1, 'friedricestall', 'r');
makePathway(9, 5, 'Doorway', 'friedricestall');
makePathway(10, 5, 'Doorway', 'friedricestall');
standardPathway('down', 6);
bgGraphics(areaTerrain, 'sea', '', 'sea', areaOverlay);
}
bgMusic(areaMusic);
}
}
frame 32 {
function map5(area) {
areaCharType = 'pilot';
clearWorld('Blank');
areaName = 'Petshop';
areaMusic = 'beach';
areaTerrain = 'beach';
mSet = 0;
mapLocation = 5;
areaLocation = area;
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);
environment = 'outdoor';
bgGraphics(areaTerrain, 'sea', '', 'jungle', '', 'jungle');
}
}
frame 32 {
function map6(area) {
encounterRate = 0;
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Endless Gorge';
areaLocation = area;
areaTerrain = 'gorge';
areaMusic = 'jungle';
mapLocation = 6;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
environment = 'outdoor';
bgGraphics(areaTerrain, '', '', '', '', 'jungle');
if (area !== 1) {
} else {
if ((quest_3.prog == 1 || quest_3.prog == 99) && quest_8.prog != 99) {
generateNewChar('calisto', 165, -345, 'npc', 'standing', 'Calisto');
}
if (quest_8.prog == 99) {
objString = '5`8`bridgebase||5`11`bridgetop||6`8`blank||6`11`blank||7`8`blank||7`11`blank||8`8`blank||8`11`blank||9`5`blank||9`6`blank||9`7`blank||9`8`blank||9`11`blank||9`12`blank||9`13`blank||9`14`blank||9`15`blank||9`16`blank||9`17`blank||9`18`blank||9`19`blank||9`20`blank||9`21`blank||10`1`blank||10`2`blank||10`3`blank||10`4`blank||10`5`blank||10`8`bridgepiece||10`11`blank||11`8`blank||11`11`blank||12`8`blank||12`11`blank||13`8`bridgepiece||13`11`blank||14`8`blank||14`11`blank||15`8`blank||15`11`blank||16`1`blank||16`2`blank||16`8`bridgepiece||16`11`blank||16`12`blank||16`13`blank||16`14`blank||16`15`blank||17`2`blank||17`3`blank||17`4`blank||17`6`blank||17`7`blank||17`8`blank||17`15`blank||17`16`blank||17`17`blank||17`18`blank||17`19`blank||17`20`blank||18`4`blank||18`5`blank||18`6`blank||18`20`blank||18`21`blank';
} else {
objString = '5`8`bridgebase||5`11`bridgetop||6`8`blank||6`11`blank||7`8`blank||7`11`blank||8`8`blank||8`11`blank||9`5`blank||9`6`blank||9`7`blank||9`8`blank||9`9`blank||9`10`blank||9`11`blank||9`12`blank||9`13`blank||9`14`blank||9`15`blank||9`16`blank||9`17`blank||9`18`blank||9`19`blank||9`20`blank||9`21`blank||10`1`blank||10`2`blank||10`3`blank||10`4`blank||10`5`blank||16`1`blank||16`2`blank||16`9`blank||16`10`blank||16`11`blank||16`12`blank||16`13`blank||16`14`blank||16`15`blank||17`2`blank||17`3`blank||17`4`blank||17`6`blank||17`7`blank||17`8`blank||17`9`blank||17`15`blank||17`16`blank||17`17`blank||17`18`blank||17`19`blank||17`20`blank||18`4`blank||18`5`blank||18`6`blank||18`20`blank||18`21`blank';
}
makeObjectsArray(objString);
standardPathway('left', -1, 2);
standardPathway('right', -1, 7);
}
}
}
frame 32 {
function map7(area) {
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
encounterRate = 10;
} else {
encounterRate = 20;
}
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Iron Jungle';
areaTerrain = 'jungle';
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
areaMusic = 'jungle';
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
areaMusic = 'jungle';
} else {
areaMusic = 'jungle_night';
}
}
mapLocation = 7;
areaLocation = area;
changeSurroundBlank(1, 1);
chestCredits = 20;
bgMusic(areaMusic);
environment = 'outdoor';
switch (area) {
case 1:
mSet = 'iron_3';
var v1 = '0`10`grass||0`11`grass||2`14`p1||4`5`grass||4`11`grass||4`14`fungus||4`17`grass||5`5`grass||6`19`p1||7`5`repairstation||15`19`fungus||18`14`p1||18`18`grass||19`5`grass||20`13`grass||20`14`grass';
makeObjectsArray(v1);
makePathway(7, 6, 'Doorway', 'repairstation');
standardPathway('up', -1, 8);
standardPathway('down', 2);
bgGraphics(areaTerrain, 'mountain', '', '', '', areaTerrain);
break;
case 2:
mSet = 'iron_3';
var v1 = '2`4`Tree||2`8`p1||2`10`fungus||3`13`Boulder||3`16`grass||3`17`grass||4`4`grass||5`6`Boulder||5`9`grass||6`1`p1||6`15`p1||15`4`fungus||15`5`fungus||15`16`Boulder||15`19`p1||16`7`Boulder||16`11`p1||18`5`grass||18`16`grass||19`10`grass||19`11`grass';
makeObjectsArray(v1);
standardPathway('up', 1);
standardPathway('down', 3);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 3:
mSet = 'iron_3';
var v1 = '3`7`grass||3`8`grass||3`10`Tree||3`13`Boulder||3`16`grass||4`16`grass||4`17`grass||5`3`p1||5`19`Tree||6`5`Boulder||6`8`p1||11`20`grass||12`17`p1||12`20`grass||15`17`grass||16`17`grass||17`3`grass||18`3`grass||19`5`grass||19`16`grass||19`17`grass||20`3`p1';
makeObjectsArray(v1);
standardPathway('up', 2);
standardPathway('right', 4);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 4:
mSet = 'iron_3';
var v1 = '3`6`p1||4`16`grass||4`19`Boulder||5`16`grass||7`2`Tree||8`5`grass||9`5`grass||10`5`grass||10`6`Boulder||11`5`grass||12`5`grass||12`6`grass||13`6`grass||14`2`wall$f||14`3`wall||14`4`wall||14`5`wall||14`7`grass||15`2`wall$f||15`3`sign$f`The secret entrance to the sprout village is said to be in this jungle.||15`4`grass||15`5`grass||16`2`wall$f||16`3`wall||16`4`grass||17`13`p1||17`16`grass||17`17`grass';
makeObjectsArray(v1);
standardPathway('left', 3);
standardPathway('down', 5);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 5:
mSet = 'iron_3';
var v1 = '0`10`Tree||3`7`grass||3`17`grass||4`12`Boulder||5`16`p1||6`4`grass||6`7`p1||7`4`grass||7`19`grass||16`16`p1||18`19`grass||19`6`grass||19`10`p1||19`16`Boulder';
makeObjectsArray(v1);
standardPathway('up', 4);
standardPathway('down', 6);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 6:
mSet = 'iron_2';
var v1 = '0`10`grass||0`11`grass||2`7`p1||2`16`grass||3`4`grass||3`5`grass||4`9`grass||5`6`fungus||5`7`fungus||5`13`p1||5`15`fungus||5`16`fungus||5`18`grass||14`15`p1||14`19`grass||16`9`p1||17`5`fungus||17`6`fungus||18`8`grass||18`13`fungus||18`18`grass||19`4`grass||19`8`grass';
makeObjectsArray(v1);
standardPathway('up', 5);
standardPathway('down', 7);
standardPathway('left', 14);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 7:
mSet = 'iron_2';
var v1 = '1`10`Tree||3`11`grass||3`12`grass||3`17`grass||4`4`grass||5`4`grass||5`9`grass||6`15`fungus||6`19`grass||7`19`sign`Sprout warriors are usually controlled by a powerful sprout lord.||8`8`fungus||8`9`fungus||9`9`fungus||17`3`grass||17`13`fungus||17`16`grass||17`17`grass||19`7`grass||19`11`grass';
makeObjectsArray(v1);
standardPathway('up', 6);
standardPathway('down', 8);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 8:
mSet = 'iron_2';
var v1 = '0`11`grass||2`14`grass||3`8`grass||3`19`Tree||4`8`grass||4`17`grass||5`3`Tree||5`6`p1||5`12`grass||5`14`p1||7`17`grass||16`18`p1||17`5`grass||18`8`p1||18`16`grass||19`4`Tree||19`11`grass||21`10`grass||21`11`grass';
makeObjectsArray(v1);
standardPathway('up', 7);
standardPathway('down', 9);
standardPathway('right', 18);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 9:
mSet = 'iron_2';
var v1 = '2`7`p1||3`5`grass||5`4`grass||5`7`fungus||6`18`grass||7`4`p1||7`18`grass||8`20`fungus||10`16`grass||10`18`grass||11`18`grass||12`18`grass||13`18`grass||14`17`grass||16`14`grass||17`17`grass||17`18`grass||18`9`grass||18`10`grass||18`13`fungus||18`14`fungus||19`10`grass||19`11`grass||19`14`fungus';
makeObjectsArray(v1);
standardPathway('up', 8);
standardPathway('left', 10);
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
break;
case 10:
mSet = 'iron_1';
var v1 = '2`5`grass||2`7`Tree||5`16`Boulder||5`19`grass||6`6`Boulder||7`5`p1||8`17`p1||9`3`grass||12`17`grass||12`18`grass||14`3`grass||14`6`p1||15`16`Boulder||15`18`Boulder||17`15`p1||18`5`grass||19`18`grass';
makeObjectsArray(v1);
standardPathway('left', 11);
standardPathway('right', 9);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 11:
mSet = 'iron_1';
var v1 = '2`14`grass||3`12`p1||4`5`grass||4`8`grass||5`11`fungus||5`19`grass||7`5`p1||8`7`fungus||9`5`grass||14`17`fungus||14`18`fungus||17`4`p1||17`20`grass||18`3`grass||18`18`p1||20`17`grass||20`18`grass';
makeObjectsArray(v1);
standardPathway('down', 12);
standardPathway('right', 10);
bgGraphics(areaTerrain, 'mountain', '', 'mountain', '', areaTerrain);
break;
case 12:
mSet = 'iron_1';
var v1 = '1`6`Tree||2`10`p1||3`4`grass||3`17`grass||4`13`grass||4`17`grass||5`6`grass||5`7`p1||5`10`grass||6`16`p1||16`3`grass||16`14`p1||17`3`grass||18`7`p1||18`11`grass||18`17`grass||20`5`grass';
makeObjectsArray(v1);
standardPathway('down', 13);
standardPathway('up', 11);
bgGraphics(areaTerrain, 'mountain', '', 'jungle', '', areaTerrain);
break;
case 13:
mSet = 'iron_1';
var v1 = '2`5`p1||3`8`sign$f`W - Endless Gorge\nN - Costa de Acero/Tidal Caves/Acero Terminus||4`5`grass||5`3`p1||5`4`grass||5`5`grass||6`18`p1||7`15`grass||12`14`grass||13`18`p1||17`16`p1||18`6`p1||18`10`p1||19`15`grass||20`6`grass';
makeObjectsArray(v1);
standardPathway('up', 12);
standardPathway('left', -1, 6);
bgGraphics(areaTerrain, '', '', 'jungle', '', areaTerrain);
break;
case 14:
mSet = 'iron_4';
var v1 = '4`5`grass||4`6`grass||4`8`fungus||4`16`grass||7`18`grass||8`5`grass||8`16`fungus||12`4`grass||12`7`sign`Sprout village\nEnter upon pain of death.||12`18`grass||17`17`grass||18`6`grass';
makeObjectsArray(v1);
standardPathway('left', 15);
standardPathway('right', 6);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 15:
mSet = 'iron_4';
var v1 = '2`6`grass||2`14`grass||3`4`fungus||4`18`fungus||4`19`fungus||5`17`grass||6`4`grass||6`5`grass||6`7`fungus||6`13`fungus||6`17`grass||7`17`grass||10`6`fungus||11`6`fungus||11`17`fungus||11`19`fungus||12`5`fungus||12`19`fungus||13`17`fungus||14`19`grass||15`19`grass||16`6`grass||16`15`fungus||16`19`grass||17`6`grass||17`15`fungus||17`19`grass||19`4`fungus||19`5`fungus||19`7`fungus||20`17`fungus';
makeObjectsArray(v1);
standardPathway('left', 16);
standardPathway('right', 14);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 16:
mSet = 'iron_4';
var v1 = '0`5`fungus||0`16`fungus||1`5`fungus||1`6`fungus||1`16`fungus||2`6`fungus||2`16`fungus||3`3`grass||3`6`fungus||3`15`fungus||3`16`fungus||4`6`fungus||4`7`fungus||4`15`fungus||5`7`fungus||5`8`fungus||5`15`fungus||6`8`fungus||6`14`fungus||6`15`fungus||7`9`fungus||7`14`fungus||8`4`grass||8`9`fungus||8`14`fungus||8`18`grass||9`9`fungus||9`14`fungus||10`9`fungus||10`10`rock||10`11`rock||10`12`rock||10`13`rock||10`14`fungus||11`10`rock||11`11`rock||11`12`rock||11`13`rock||11`14`fungus||12`10`rock||12`11`rock||12`12`rock||12`13`rock||14`18`grass||15`18`grass||15`19`grass||16`4`grass||19`18`grass';
makeObjectsArray(v1);
standardPathway('left', 17);
standardPathway('right', 15);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 17:
mSet = 'iron_4';
var v1 = '1`13`grass||2`6`fungus||2`7`fungus||2`8`fungus||2`9`fungus||2`10`fungus||2`11`fungus||2`12`fungus||3`5`fungus||3`6`fungus||3`12`fungus||3`13`fungus||3`14`fungus||3`17`grass||4`2`grass||4`4`fungus||4`5`fungus||4`14`fungus||4`15`fungus||5`2`grass||5`4`fungus||5`7`fungus||5`12`fungus||5`15`fungus||5`16`fungus||5`20`grass||6`3`fungus||6`4`fungus||6`17`fungus||7`2`fungus||7`3`fungus||7`17`fungus||7`18`fungus||8`1`fungus||8`2`fungus||8`18`fungus||9`1`fungus||9`4`fungus||9`15`fungus||9`16`fungus||9`18`fungus||9`19`fungus||10`1`fungus||10`4`fungus||10`16`fungus||10`19`fungus||11`1`fungus||11`19`fungus||12`1`fungus||12`19`fungus||13`2`fungus||13`18`fungus||13`19`fungus||14`2`fungus||14`18`fungus||15`2`fungus||15`6`fungus||15`13`fungus||15`18`fungus||16`2`fungus||16`3`fungus||16`4`fungus||16`17`fungus||16`18`fungus||17`3`fungus||17`4`fungus||17`5`fungus||17`6`fungus||17`16`fungus||17`17`fungus||18`6`fungus||18`7`fungus||18`14`fungus||18`15`fungus||18`16`fungus||18`18`grass||19`7`fungus||19`8`fungus||19`13`fungus||19`14`fungus||19`18`grass||20`7`fungus||20`8`fungus||20`13`fungus||21`8`fungus||21`13`fungus||21`15`grass||21`16`grass';
makeObjectsArray(v1);
standardPathway('right', 16);
if (quest_29.prog != 99) {
makeObject(10, 10, 'talk', 'iron_boss>iron_boss_0');
}
bgGraphics(areaTerrain, 'mountain', '', 'mountain', '', areaTerrain);
break;
case 18:
mSet = 'iron_3';
var v1 = '6`6`fungus||6`17`fungus||7`11`grass||10`8`grass||10`11`fungus||10`14`grass||13`11`grass||15`6`fungus||15`16`fungus||16`16`fungus';
makeObjectsArray(v1);
standardPathway('left', 8);
standardPathway('right', 19);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
break;
case 19:
mSet = 'iron_3';
var v1 = '2`8`boulder||2`14`boulder||5`3`grass||6`8`p1||6`15`p1||7`18`grass||8`7`sign$f`May this gift assist you in your journey...||9`3`p1||10`10`chest$f`ITEMS$G002$37||12`18`p1||16`4`grass||16`9`p1||16`18`grass||17`15`p1||18`4`boulder||18`5`boulder||19`12`boulder';
makeObjectsArray(v1);
standardPathway('left', 18);
bgGraphics(areaTerrain, 'jungle', '', 'mountain', '', areaTerrain);
}
}
}
frame 32 {
function map8(area) {
encounterRate = 'NONSAVE';
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Costa De Acero';
areaMusic = 'beach';
areaTerrain = 'beach';
encounterRate = 0;
mapLocation = 8;
areaLocation = area;
changeSurroundBlank(1, 1);
var v1 = '4`7`boulder||6`18`p1||7`15`grass||8`6`sign$f`NW - Tidal Caves\nS - Iron Jungle\nSE - Acero Terminus||14`18`grass||17`7`boulder||17`16`p1||19`15`grass';
makeObjectsArray(v1);
standardPathway('right', -1, 10);
standardPathway('left', -1, 9);
standardPathway('down', -1, 7);
bgMusic(areaMusic);
environment = 'outdoor';
bgGraphics(areaTerrain, '', '', 'sea', '');
}
}
frame 32 {
function map9(area) {
encounterRate = 10;
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Tidal Caves';
areaTerrain = 'tidalcave';
areaMusic = 'cave';
areaOverlay = 'cave';
chestCredits = 40;
mapLocation = 9;
areaLocation = area;
changeSurroundBlank(1, 1);
environment = 'indoor';
var v3 = '';
var v2 = '';
var v1 = '';
var v4 = '';
switch (area) {
case 0:
encounterRate = 'NONSAVE';
areaTerrain = 'beach';
areaMusic = 'beach';
areaOverlay = 'lensflare';
v3 = 'mountain';
v1 = 'tidalcave';
objString = '3`0`blank||3`1`blank||3`2`blank||3`3`blank||4`3`blank||5`3`blank||6`3`blank||7`3`blank||7`4`blank||7`5`repairstation||8`4`blank||9`4`blank||10`4`blank||11`4`blank||12`4`blank||13`4`blank||14`3`blank||14`4`blank||15`0`blank||15`1`blank||15`2`blank||15`3`blank';
makePathway(7, 6, 'Doorway', 'repairstation');
makeObjectsArray(objString);
makePathway(11, 5, 'Pathway', 1, 315, -580);
standardPathway('right', -1, 8);
environment = 'outdoor';
break;
case 1:
mSet = 'tidal_1';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v1 = 'water_u';
objString = '0`5`blank||0`6`blank||0`7`blank||1`4`blank||1`5`blank||2`4`blank||3`3`blank||3`4`blank||4`2`blank||4`3`blank||4`4`blank||5`1`blank||5`2`blank||5`4`blank||6`1`blank||6`4`blank||7`1`blank||7`2`blank||7`4`blank||7`5`blank||7`6`blank||7`7`blank||8`2`blank||8`3`blank||8`4`blank||8`5`blank||8`6`blank||9`3`blank||9`5`blank||10`3`blank||10`5`blank||11`3`blank||11`4`blank||11`5`blank||12`2`blank||12`3`blank||12`4`blank||13`2`blank||13`4`blank||14`2`blank||14`4`blank||15`2`blank||15`4`blank||16`1`blank||16`2`blank||16`4`blank||16`5`blank||16`6`blank||17`1`blank||17`6`blank||17`7`blank||17`8`blank||18`1`blank||18`5`blank||18`6`blank||19`1`blank||19`4`blank||19`5`blank||20`1`blank||20`4`blank||21`1`blank||21`2`blank||21`3`blank||21`4`blank';
makeObjectsArray(objString);
}
objString = '3`16`rock||4`18`s2||16`18`sign$f`Tidal Caves: Flooded during high tide';
makeObjectsArray(objString);
makePathway(10, 21, 'Pathway', 0, 315, -200);
standardPathway('up', 2);
break;
case 2:
mSet = 'tidal_1';
objString = '3`14`rock||5`10`s2||5`11`grass2||6`10`grass2||6`11`grass2||7`10`grass2||8`17`s2||14`7`s2||15`4`rock||15`5`grass2||15`6`grass2||16`4`grass2||16`5`grass2||17`5`grass2';
makeObjectsArray(objString);
standardPathway('down', 1);
standardPathway('up', 3);
break;
case 3:
mSet = 'tidal_1';
objString = '6`10`grass2||6`11`rock||7`10`grass2||8`17`s2||15`4`rock||15`6`grass2||16`4`grass2||17`5`rock';
makeObjectsArray(objString);
standardPathway('down', 2);
standardPathway('left', 4);
break;
case 4:
mSet = 'tidal_1';
objString = '5`10`fungus||8`18`fungus||10`11`grass2||10`12`grass2||11`4`rock||11`10`grass2||11`11`grass2||12`9`grass2||12`10`s2||14`4`s2||14`19`s2||15`4`s2||15`16`s2||18`4`rock||18`13`rock';
makeObjectsArray(objString);
standardPathway('left', 5);
standardPathway('right', 3);
break;
case 5:
mSet = 'tidal_1';
objString = '0`7`s2||1`7`s2||1`9`rock||1`12`s2||1`15`grass2||2`15`grass2||2`16`grass2||2`17`grass2||3`17`grass2||3`18`grass2||8`18`s2||10`11`grass2||11`10`grass2||11`11`fungus||11`19`s2||12`9`grass2||12`10`fungus||14`19`s2||15`16`s2';
makeObjectsArray(objString);
standardPathway('up', 6);
standardPathway('right', 4);
break;
case 6:
mSet = 'tidal_1';
objString = '1`12`s2||9`10`grass2||9`11`grass2||9`12`grass2||10`9`grass2||10`10`s2||10`11`s2||10`12`grass2||11`9`grass2||11`11`grass2||11`12`grass2||11`19`s2||12`10`grass2||12`11`grass2||15`5`fungus';
makeObjectsArray(objString);
standardPathway('down', 5);
standardPathway('left', 7);
standardPathway('right', 8);
break;
case 7:
mSet = 'tidal_1';
objString = '1`13`s2||2`13`grass2||3`10`grass2||3`12`grass2||3`13`grass2||3`15`Boulder||4`5`s2||4`9`grass2||4`11`grass2||5`5`Boulder||6`14`s2||6`18`rock||8`20`grass2||10`20`grass2||11`21`grass2||14`21`rock||15`5`fungus||15`20`s2';
makeObjectsArray(objString);
standardPathway('up', 14);
standardPathway('right', 6);
break;
case 8:
mSet = 'tidal_1';
objString = '3`16`rock||4`18`s2||8`17`s2||9`3`grass2||9`4`rock||15`2`rock||17`18`fungus||18`13`fungus';
makeObjectsArray(objString);
standardPathway('left', 6);
standardPathway('up', 9);
break;
case 9:
mSet = 'tidal_1';
objString = '3`16`rock||4`18`s2||9`17`Boulder||10`15`s2||14`13`grass2||14`14`grass2||15`13`grass2||15`14`Boulder||15`15`grass2||15`16`grass2||16`13`grass2||16`14`grass2||16`15`grass2||16`16`fungus||16`17`grass2||17`16`grass2||20`10`rock';
makeObjectsArray(objString);
standardPathway('down', 8);
standardPathway('up', 10);
break;
case 10:
mSet = 'tidal_1';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v4 = 'water_d';
objString = '0`14`blank||0`15`blank||1`14`blank||1`15`blank||2`13`blank||2`14`blank||3`14`blank||3`15`blank||3`16`blank||4`14`blank||4`15`blank||5`15`blank||6`13`blank||6`14`blank||6`15`blank||7`12`blank||7`13`blank||7`14`blank||7`15`blank||8`11`blank||8`12`blank||8`13`blank||9`10`blank||9`11`blank||9`13`blank||10`10`blank||10`13`blank||11`10`blank||11`11`blank||11`13`blank||12`11`blank||12`13`blank||13`11`blank||13`12`blank||13`13`blank||14`12`blank||14`13`blank||14`14`blank||15`12`blank||15`14`blank||15`15`blank||16`12`blank||16`15`blank||17`12`blank||17`15`blank||17`16`blank||18`12`blank||18`16`blank||18`17`blank||19`12`blank||19`17`blank||19`18`blank||20`12`blank||20`13`blank||20`18`blank||21`13`blank||21`18`blank||21`19`blank';
makeObjectsArray(objString);
}
objString = '4`4`fungus||4`6`s2||9`3`s2||9`4`s2||16`4`fungus||19`3`s2';
makeObjectsArray(objString);
standardPathway('down', 9);
standardPathway('up', 13);
break;
case 13:
mSet = 'tidal_1';
objString = '5`13`grass2||5`14`rock||6`13`grass2||6`14`grass2||7`4`rock||7`5`rock||7`12`s2||15`6`s2||15`7`Boulder||16`6`Boulder||16`7`Boulder';
makeObjectsArray(objString);
standardPathway('down', 10);
standardPathway('left', 21);
makePathway(10, 1, 'Pathway', 23, 206, -346);
makePathway(11, 1, 'Pathway', 23, 206, -346);
break;
case 14:
mSet = 'tidal_1';
objString = '7`5`Boulder||7`13`Boulder||8`6`fungus||9`8`Boulder||13`17`Boulder||15`5`fungus||15`14`rock||16`5`rock||16`13`rock||16`14`rock||17`13`rock||18`13`fungus';
makeObjectsArray(objString);
standardPathway('down', 7);
standardPathway('left', 15);
break;
case 15:
mSet = 'tidal_1';
objString = '1`15`s2||1`16`grass2||2`15`grass2||2`16`grass2||5`14`s2||8`9`s2||8`11`s2||8`17`grass2||9`10`rock||9`17`grass2||9`18`grass2||10`9`s2||10`11`s2||10`17`rock||10`18`grass2||11`17`grass2||15`19`s2||18`14`s2';
makeObjectsArray(objString);
standardPathway('left', 16);
standardPathway('up', 19);
standardPathway('right', 14);
break;
case 16:
mSet = 'tidal_2';
objString = '0`6`s2||5`4`s2||5`5`s2||5`17`Boulder||6`13`s2||6`14`s2||10`10`Boulder||10`19`s2||13`6`s2||13`18`s2||14`18`s2';
makeObjectsArray(objString);
standardPathway('left', 17);
standardPathway('right', 15);
break;
case 17:
mSet = 'tidal_2';
objString = '3`12`grass2||3`13`grass2||3`14`grass2||4`11`grass2||4`12`grass2||4`14`grass2||4`15`grass2||5`11`fungus||5`12`grass2||5`13`fungus||5`14`grass2||6`6`fungus||6`11`grass2||6`12`grass2||6`13`grass2||7`12`grass2||11`18`s2||13`16`fungus||13`17`grass2||14`16`grass2||14`17`grass2||15`6`fungus||17`5`s2';
makeObjectsArray(objString);
standardPathway('up', 18);
standardPathway('right', 16);
break;
case 18:
mSet = 'tidal_2';
objString = '1`7`fungus||5`8`s2||7`5`s2||7`7`rock||7`10`fungus||9`4`rock||11`7`s2||12`7`s2||13`12`s2||15`5`s2||17`5`rock||18`9`rock';
makeObjectsArray(objString);
standardPathway('down', 17);
break;
case 19:
mSet = 'tidal_2';
objString = '3`11`grass2||3`12`grass2||3`13`grass2||4`7`s2||4`9`grass2||4`12`grass2||4`14`s2||5`6`grass2||5`7`grass2||5`17`grass2||6`6`grass2||9`12`Boulder||17`4`grass2||17`14`grass2||18`4`grass2||18`6`s2||18`8`grass2||18`9`grass2||18`13`grass2||18`14`grass2||18`15`s2||19`8`grass2||19`9`grass2||19`13`grass2';
makeObjectsArray(objString);
standardPathway('down', 15);
standardPathway('up', 20);
break;
case 20:
mSet = 'tidal_2';
objString = '1`12`s2||1`13`s2||2`12`Boulder||2`13`Boulder||3`8`s2||4`8`grass2||7`16`s2||7`17`Boulder||8`6`s2||8`12`s2||9`6`Boulder||14`10`Boulder||14`11`s2||15`10`Boulder||15`11`Boulder';
makeObjectsArray(objString);
standardPathway('down', 19);
standardPathway('right', 21);
break;
case 21:
mSet = 'tidal_2';
objString = '5`7`fungus||5`18`rock||6`5`grass2||6`17`fungus||6`18`rock||7`4`fungus||7`5`fungus||7`20`grass2||9`4`rock||11`13`grass2||11`14`grass2||13`17`rock||14`19`fungus||15`6`fungus||16`6`fungus||16`10`grass2||17`4`grass2||18`4`fungus||19`6`rock||20`6`rock';
makeObjectsArray(objString);
standardPathway('left', 20);
standardPathway('right', 13);
break;
case 23:
mSet = 'tidal_2';
areaName = 'Tidal Cave 2 Entrance';
areaTerrain = 'beach';
areaMusic = 'beach';
areaOverlay = '';
v3 = 'tidalcave';
v1 = 'tidalcave';
objString = '6`7`s2||6`8`s2||6`15`rock||7`5`repairstation||14`17`rock||14`18`s2||17`4`s2||18`12`s2||18`13`rock';
makeObjectsArray(objString);
makePathway(7, 6, 'Doorway', 'repairstation');
objString = '0`4`blank||0`15`blank||0`16`blank||1`4`blank||1`15`blank||2`4`blank||2`5`blank||2`6`blank||2`10`blank||2`11`blank||2`12`blank||2`13`blank||2`14`blank||2`15`blank||3`0`blank||3`1`blank||3`2`blank||3`6`blank||3`7`blank||3`8`blank||3`10`blank||3`13`blank||3`14`blank||4`2`blank||4`8`blank||4`9`blank||4`10`blank||5`2`blank||5`3`blank||6`3`blank||7`3`blank||7`4`blank||8`4`blank||9`3`blank||9`4`blank||10`3`blank||11`3`blank||12`3`blank||12`4`blank||13`3`blank||13`4`blank||14`3`blank||15`0`blank||15`1`blank||15`2`blank||15`3`blank';
makeObjectsArray(objString);
makePathway(5, 11, 'Pathway', 13, 335, -100);
makePathway(11, 5, 'Pathway', 24, 315, -580);
environment = 'outdoor';
break;
case 24:
mSet = 'tidal_2';
objString = '4`9`rock||6`13`s2||6`14`s2||6`18`s2||9`3`rock||10`10`s2||12`9`s2||12`10`s2||12`11`Boulder||12`12`s2||13`11`s2||17`9`rock||17`16`s2||18`5`s2||18`16`s2';
makeObjectsArray(objString);
makePathway(10, 21, 'Pathway', 23, 315, -200);
standardPathway('up', 27);
standardPathway('right', 25);
break;
case 25:
mSet = 'tidal_2';
objString = '4`4`s2||5`5`grass2||6`16`s2||8`6`s2||8`16`rock||9`6`s2||11`17`s2||11`19`grass2||12`7`rock||12`17`s2||12`19`grass2||15`5`grass2||15`14`s2||16`5`s2||17`5`s2||17`18`rock||17`19`grass2||18`18`grass2||18`19`rock||18`20`grass2||19`19`grass2';
makeObjectsArray(objString);
standardPathway('left', 24);
standardPathway('right', 26);
break;
case 26:
mSet = 'tidal_2';
var objString = '5`16`s2||8`17`rock||9`18`grass2||10`5`rock||12`5`s2||12`19`s2||15`5`grass2||16`11`chest$f`ITEMS$I002SB$40||18`15`grass2||18`16`grass2||18`17`s2||18`18`s2||19`6`s2||19`7`s2||19`14`grass2||19`15`rock||19`17`grass2||20`13`Boulder||20`14`grass2||20`15`grass2||20`16`Boulder||21`10`s2||21`14`s2';
makeObjectsArray(objString);
standardPathway('left', 25);
break;
case 27:
mSet = 'tidal_2';
objString = '3`14`s2||4`13`s2||4`14`rock||5`6`s2||5`7`s2||5`18`s2||12`9`rock||16`18`rock||16`19`s2||17`5`s2||18`10`s2||19`4`rock||19`10`s2||19`16`s2';
makeObjectsArray(objString);
standardPathway('down', 24);
standardPathway('up', 28);
break;
case 28:
mSet = 'tidal_2';
objString = '0`7`s2||3`7`rock||4`6`grass2||5`3`rock||5`5`s2||9`11`Boulder||10`4`grass2||10`5`rock||10`10`Boulder||10`11`Boulder||11`4`grass2||11`5`grass2||11`9`Boulder||11`10`Boulder||11`11`s2||11`12`Boulder||11`13`Boulder||12`9`grass2||12`11`Boulder||12`12`Boulder||13`11`Boulder||17`3`s2||17`6`rock||18`3`s2||18`6`s2';
makeObjectsArray(objString);
standardPathway('down', 27);
standardPathway('left', 30);
standardPathway('right', 29);
break;
case 29:
mSet = 'tidal_2';
objString = '1`14`s2||2`15`Boulder||5`4`s2||6`4`s2||7`3`Boulder||7`16`s2||8`14`Boulder||11`4`s2||12`4`s2||13`17`s2||14`17`s2||15`3`Boulder||15`8`Boulder||15`9`grass2||16`8`grass2||16`9`Boulder||18`4`s2||18`19`Boulder||20`17`s2';
makeObjectsArray(objString);
standardPathway('left', 28);
standardPathway('right', 41);
break;
case 30:
mSet = 'tidal_2';
objString = '16`5`grass2||16`6`grass2||16`7`grass2||17`6`grass2||17`7`Boulder||17`8`grass2||17`16`s2||18`6`grass2||18`7`rock||18`8`grass2||18`16`s2||18`17`grass2||18`18`grass2||19`4`s2||19`5`s2||19`6`grass2||19`7`grass2||19`15`s2||19`16`grass2||19`17`Boulder||20`5`s2||20`6`s2||20`15`grass2||20`16`grass2';
makeObjectsArray(objString);
standardPathway('left', 31);
standardPathway('right', 28);
break;
case 31:
mSet = 'tidal_3';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v2 = 'water_r';
objString = '11`13`blank||11`14`blank||11`15`blank||12`9`blank||12`13`blank||12`14`blank||12`15`blank||13`9`blank||13`10`blank||13`11`blank||13`17`blank||13`18`blank||13`19`blank||13`20`blank||13`21`blank||14`8`blank||14`9`blank||14`11`blank||14`12`blank||14`13`blank||14`14`blank||14`15`blank||14`16`blank||14`17`blank||15`5`blank||15`6`blank||15`7`blank||15`8`blank||16`0`blank||16`1`blank||16`3`blank||16`4`blank||16`5`blank||16`6`blank||16`7`blank||16`8`blank||16`9`blank||16`10`blank||16`11`blank||16`12`blank||16`13`blank||16`18`blank||16`19`blank||16`20`blank||16`21`blank||17`1`blank||17`2`blank||17`3`blank||17`4`blank||17`7`blank||17`8`blank||17`13`blank||17`14`blank||17`15`blank||17`16`blank||17`17`blank||17`18`blank||18`0`blank||18`1`blank||18`2`blank||18`4`blank||19`2`blank||19`3`blank||19`4`blank||20`3`blank||20`4`blank||21`3`blank||21`4`blank';
makeObjectsArray(objString);
}
objString = '2`6`s2||2`10`s2||3`6`rock||3`15`grass2||3`16`s2||3`17`grass2||4`2`grass2||4`3`s2||4`4`grass2||4`15`grass2||4`16`grass2||4`17`grass2||5`2`grass2||5`3`Boulder||5`4`grass2||6`3`grass2||6`4`grass2||6`19`s2||6`20`grass2||7`19`s2||7`20`grass2';
makeObjectsArray(objString);
standardPathway('up', 33);
standardPathway('right', 30);
break;
case 33:
mSet = 'tidal_3';
objString = '4`7`s2||6`15`grass2||6`16`s2||6`17`grass2||7`15`grass2||7`16`grass2||7`17`grass2||8`3`s2||8`4`grass2||8`12`fungus||9`3`grass2||9`4`grass2||9`7`fungus||10`3`grass2||11`11`fungus||13`9`fungus||13`14`fungus||17`8`s2||17`9`s2||18`13`grass2||18`14`s2||18`15`s2||18`16`grass2||19`14`grass2||19`15`grass2';
makeObjectsArray(objString);
standardPathway('down', 31);
standardPathway('left', 38);
standardPathway('up', 35);
break;
case 35:
mSet = 'tidal_3';
objString = '3`15`s2||4`15`s2||4`16`Boulder||5`6`s2||6`12`s2||7`11`s2||7`12`Boulder||7`13`s2||11`5`s2||11`7`Boulder||12`6`Boulder||12`7`Boulder||12`16`s2||12`17`Boulder||12`18`s2||13`16`s2||14`15`s2||15`6`s2||16`6`s2||16`7`Boulder||17`6`Boulder||19`12`s2||19`13`Boulder||20`12`Boulder||20`13`Boulder';
makeObjectsArray(objString);
standardPathway('down', 33);
standardPathway('right', 36);
break;
case 36:
mSet = 'tidal_3';
objString = '4`3`s2||5`5`Boulder||6`18`s2||7`17`grass2||7`18`s2||7`19`grass2||8`12`s2||8`17`grass2||8`18`grass2||11`4`grass2||11`5`grass2||12`4`grass2||12`5`grass2||12`6`grass2||12`21`Boulder||13`4`grass2||13`5`s2||13`6`grass2||13`19`s2||14`4`grass2||14`5`Boulder||14`6`grass2||15`4`grass2||15`5`grass2||15`15`s2||16`3`grass2||16`4`s2||16`5`grass2||16`15`s2||16`17`Boulder||17`3`grass2||17`4`grass2||17`5`grass2||18`4`grass2||18`5`grass2';
makeObjectsArray(objString);
standardPathway('left', 35);
standardPathway('right', 37);
break;
case 37:
mSet = 'tidal_3';
objString = '1`6`s2||3`15`s2||3`16`s2||4`16`grass2||4`17`grass2||5`17`grass2||8`6`s2||8`11`s2||8`18`grass2||8`19`grass2||9`18`s2||9`19`grass2||10`9`fungus||10`18`grass2||10`19`grass2||11`18`grass2||11`19`grass2||13`7`s2||13`12`s2||17`15`Boulder||17`16`grass2||18`3`s2||18`4`s2||18`5`grass2||18`15`grass2||18`16`grass2||18`17`s2||18`18`grass2||18`19`s2||19`3`grass2||19`4`grass2||19`5`grass2||19`16`grass2||19`17`grass2||19`18`grass2||20`3`grass2||20`4`grass2||20`5`grass2||20`16`grass2';
makeObjectsArray(objString);
standardPathway('left', 36);
standardPathway('right', 60);
makePathway(10, 1, 'Pathway', 61, 206, -346);
makePathway(11, 1, 'Pathway', 61, 206, -346);
break;
case 38:
mSet = 'tidal_3';
objString = '15`5`s2||18`13`s2||19`5`s2';
makeObjectsArray(objString);
standardPathway('left', 39);
standardPathway('right', 33);
break;
case 39:
mSet = 'tidal_3';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v2 = 'water_r';
objString = '11`13`blank||11`14`blank||11`15`blank||12`9`blank||12`13`blank||12`14`blank||12`15`blank||13`9`blank||13`10`blank||13`11`blank||13`17`blank||13`18`blank||13`19`blank||13`20`blank||13`21`blank||14`8`blank||14`9`blank||14`11`blank||14`12`blank||14`13`blank||14`14`blank||14`15`blank||14`16`blank||14`17`blank||15`5`blank||15`6`blank||15`7`blank||15`8`blank||16`0`blank||16`1`blank||16`3`blank||16`4`blank||16`5`blank||16`6`blank||16`7`blank||16`8`blank||16`9`blank||16`10`blank||16`11`blank||16`12`blank||16`13`blank||16`18`blank||16`19`blank||16`20`blank||16`21`blank||17`1`blank||17`2`blank||17`3`blank||17`4`blank||17`7`blank||17`8`blank||17`13`blank||17`14`blank||17`15`blank||17`16`blank||17`17`blank||17`18`blank||18`0`blank||18`1`blank||18`2`blank||18`4`blank||19`2`blank||19`3`blank||19`4`blank||20`3`blank||20`4`blank||21`3`blank||21`4`blank';
makeObjectsArray(objString);
}
objString = '0`9`s2||3`2`s2||5`6`s2';
makeObjectsArray(objString);
standardPathway('left', 40);
standardPathway('right', 38);
break;
case 40:
mSet = 'tidal_3';
var objString = '0`13`s2||1`13`s2||2`7`s2||4`4`s2||4`10`chest`ITEMS$C02AF$41||4`15`s2||6`2`s2||7`2`s2||7`18`s2||7`19`s2||10`12`s2';
makeObjectsArray(objString);
standardPathway('right', 39);
break;
case 41:
mSet = 'tidal_3';
objString = '5`2`grass2||5`3`s2||5`14`s2||5`15`s2||5`16`grass2||6`3`grass2||6`14`grass2||6`15`grass2||6`16`grass2||7`3`grass2||8`3`s2||9`3`grass2||10`5`rock||10`18`rock||12`16`s2||12`18`grass2||13`16`s2||13`17`grass2||13`18`grass2||14`17`grass2||16`3`s2||17`5`grass2||17`6`grass2||17`7`s2||18`5`rock||18`6`grass2';
makeObjectsArray(objString);
standardPathway('left', 29);
standardPathway('right', 42);
break;
case 42:
mSet = 'tidal_3';
objString = '2`5`s2||2`7`grass2||3`5`s2||3`6`grass2||3`7`s2||4`6`grass2||4`15`s2||5`6`grass2||5`7`grass2||5`16`s2||5`17`grass2||6`1`rock||6`16`grass2||6`17`grass2||8`14`rock||12`20`s2||15`16`grass2||15`17`grass2||16`3`s2||16`4`grass2||16`16`rock||18`13`grass2||18`14`grass2';
makeObjectsArray(objString);
standardPathway('left', 41);
standardPathway('up', 43);
break;
case 43:
mSet = 'tidal_3';
objString = '3`0`s2||3`6`s2||3`12`grass2||3`13`s2||4`0`rock||4`1`s2||4`7`grass2||4`8`grass2||4`9`rock||4`11`rock||4`12`grass2||4`13`grass2||5`17`grass2||5`18`s2||5`19`grass2||6`18`grass2||6`19`grass2||6`20`grass2||15`14`grass2||15`15`grass2||15`16`s2||16`6`s2||16`14`grass2||16`15`grass2||16`16`s2||16`17`grass2||17`4`grass2||17`5`grass2||17`6`s2||17`7`grass2||17`14`grass2||17`15`rock||17`16`grass2||18`4`grass2||18`5`grass2||18`6`grass2';
makeObjectsArray(objString);
standardPathway('down', 42);
standardPathway('up', 44);
break;
case 44:
mSet = 'tidal_3';
objString = '2`11`s2||2`12`grass2||3`4`grass2||3`5`s2||3`11`grass2||4`3`grass2||4`4`Boulder||7`15`grass2||7`16`grass2||8`15`s2||8`16`grass2||17`14`s2||17`15`Boulder||18`15`grass2';
makeObjectsArray(objString);
standardPathway('down', 43);
standardPathway('up', 49);
standardPathway('right', 52);
break;
case 46:
mSet = 'tidal_4';
objString = '2`9`s2||2`10`s2||2`11`grass2||3`9`grass2||3`10`grass2||3`11`grass2||4`15`grass2||5`4`s2||11`18`s2||11`19`grass2||12`18`grass2||12`19`Boulder||19`19`grass2||19`20`s2||19`21`grass2||20`19`grass2||20`20`Boulder||20`21`grass2||21`19`grass2||21`20`grass2||21`21`grass2';
makeObjectsArray(objString);
standardPathway('up', 47);
standardPathway('right', 49);
break;
case 47:
mSet = 'tidal_4';
objString = '2`9`s2||3`9`grass2||4`15`grass2||5`4`s2||6`4`Boulder||19`19`grass2||19`20`s2||19`21`grass2||20`20`Boulder';
makeObjectsArray(objString);
standardPathway('down', 46);
standardPathway('left', 60);
standardPathway('right', 50);
break;
case 49:
mSet = 'tidal_4';
objString = '9`10`s2';
makeObjectsArray(objString);
standardPathway('down', 44);
standardPathway('left', 46);
standardPathway('up', 50);
standardPathway('right', 53);
break;
case 50:
mSet = 'tidal_4';
objString = '9`10`s2';
makeObjectsArray(objString);
standardPathway('down', 49);
standardPathway('left', 47);
standardPathway('up', 51);
standardPathway('right', 54);
break;
case 51:
mSet = 'tidal_4';
objString = '1`6`s2||1`8`s2||2`7`fungus||2`10`s2||2`15`s2||2`16`s2||3`9`Boulder||3`16`fungus||4`16`Boulder||6`4`s2||6`5`s2||7`4`s2||7`5`s2||8`4`Boulder||8`9`fungus||19`5`Boulder||19`6`s2';
makeObjectsArray(objString);
standardPathway('down', 50);
standardPathway('right', 55);
break;
case 52:
mSet = 'tidal_4';
objString = '2`11`s2||2`12`grass2||3`4`grass2||3`5`s2||3`11`grass2||4`4`Boulder||7`15`grass2||7`16`grass2||8`16`grass2||17`14`s2||17`15`Boulder||18`15`grass2';
makeObjectsArray(objString);
standardPathway('left', 44);
standardPathway('up', 53);
break;
case 53:
mSet = 'tidal_4';
objString = '9`10`s2';
makeObjectsArray(objString);
standardPathway('down', 52);
standardPathway('left', 49);
standardPathway('up', 54);
standardPathway('right', 57);
break;
case 54:
mSet = 'tidal_4';
objString = '9`10`s2';
makeObjectsArray(objString);
standardPathway('down', 53);
standardPathway('left', 50);
standardPathway('up', 55);
standardPathway('right', 58);
break;
case 55:
mSet = 'tidal_4';
objString = '1`6`s2||1`8`fungus||2`7`fungus||6`4`s2||6`5`s2||7`4`s2||7`5`s2||8`4`Boulder||8`9`fungus||19`5`Boulder||19`6`s2||19`15`s2||20`15`s2';
makeObjectsArray(objString);
standardPathway('left', 51);
standardPathway('down', 54);
standardPathway('right', 59);
break;
case 57:
mSet = 'tidal_4';
objString = '4`17`s2||5`17`s2||6`16`s2||6`17`rock||13`18`rock||15`17`s2||17`4`grass2||17`5`rock||18`4`s2||18`6`grass2||18`13`grass2||18`14`s2||18`15`grass2||19`4`s2||19`5`rock||19`6`grass2||19`13`s2||19`14`grass2||19`15`grass2||20`6`grass2';
makeObjectsArray(objString);
standardPathway('left', 53);
standardPathway('up', 58);
break;
case 58:
mSet = 'tidal_4';
objString = '13`18`rock||15`17`s2||17`4`grass2||17`5`rock||18`4`s2||18`6`grass2||18`13`grass2||18`14`s2||18`15`grass2||19`4`s2||19`6`grass2||19`13`s2||19`14`grass2||19`15`grass2';
makeObjectsArray(objString);
standardPathway('down', 57);
standardPathway('left', 54);
standardPathway('up', 59);
break;
case 59:
mSet = 'tidal_4';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v2 = 'water_r';
objString = '11`13`blank||11`14`blank||11`15`blank||12`9`blank||12`13`blank||12`14`blank||12`15`blank||13`9`blank||13`10`blank||13`11`blank||13`17`blank||13`18`blank||13`19`blank||13`20`blank||13`21`blank||14`8`blank||14`9`blank||14`11`blank||14`12`blank||14`13`blank||14`14`blank||14`15`blank||14`16`blank||14`17`blank||15`5`blank||15`6`blank||15`7`blank||15`8`blank||16`0`blank||16`1`blank||16`3`blank||16`4`blank||16`5`blank||16`6`blank||16`7`blank||16`8`blank||16`9`blank||16`10`blank||16`11`blank||16`12`blank||16`13`blank||16`18`blank||16`19`blank||16`20`blank||16`21`blank||17`1`blank||17`2`blank||17`3`blank||17`4`blank||17`7`blank||17`8`blank||17`13`blank||17`14`blank||17`15`blank||17`16`blank||17`17`blank||17`18`blank||18`0`blank||18`1`blank||18`2`blank||18`4`blank||19`2`blank||19`3`blank||19`4`blank||20`3`blank||20`4`blank||21`3`blank||21`4`blank';
makeObjectsArray(objString);
}
objString = '3`6`grass2||3`7`s2||3`8`s2||4`0`rock||4`4`s2||4`5`grass2||4`6`fungus||4`7`grass2||4`8`grass2||5`4`grass2||5`5`grass2||5`6`grass2||5`7`grass2||5`16`s2||6`18`grass2||6`19`fungus||7`17`grass2||7`18`grass2||7`19`grass2||8`1`fungus||8`17`grass2||8`18`s2||8`19`grass2||19`4`chest$f`ITEMS$C03AT$42';
makeObjectsArray(objString);
standardPathway('down', 58);
standardPathway('left', 55);
break;
case 60:
mSet = 'tidal_4';
objString = '4`2`Boulder||4`3`grass2||4`4`grass2||4`14`Boulder||4`15`grass2||5`2`grass2||5`3`grass2||5`14`grass2||5`15`grass2||6`0`grass2||6`15`fungus||6`16`grass2||7`0`grass2||7`16`grass2||8`16`grass2||8`17`grass2||11`1`fungus||12`18`Boulder||12`19`grass2||13`18`grass2||13`19`fungus||16`14`fungus||17`3`grass2||17`14`Boulder||18`3`grass2||18`4`grass2||19`3`grass2||19`4`grass2||20`3`Boulder||20`4`grass2';
makeObjectsArray(objString);
standardPathway('left', 37);
standardPathway('right', 47);
break;
case 61:
mSet = 'tidal_4';
areaName = 'Tidal Cave 3 Entrance';
areaTerrain = 'beach';
areaMusic = 'beach';
areaOverlay = 'lensflare';
v3 = 'tidalcave';
v1 = 'tidalcave';
objString = '4`1`s2||4`2`rock||5`17`s2||6`18`s2||7`5`repairstation||11`18`rock||19`3`rock||20`13`rock||20`16`s2';
makeObjectsArray(objString);
objString = '0`4`blank||0`15`blank||0`16`blank||1`4`blank||1`15`blank||2`4`blank||2`5`blank||2`6`blank||2`10`blank||2`11`blank||2`12`blank||2`13`blank||2`14`blank||2`15`blank||3`0`blank||3`1`blank||3`2`blank||3`6`blank||3`7`blank||3`8`blank||3`10`blank||3`13`blank||3`14`blank||4`2`blank||4`8`blank||4`9`blank||4`10`blank||5`2`blank||5`3`blank||6`3`blank||7`3`blank||7`4`blank||8`4`blank||9`3`blank||9`4`blank||10`3`blank||11`3`blank||12`3`blank||12`4`blank||13`3`blank||13`4`blank||14`3`blank||15`0`blank||15`1`blank||15`2`blank||15`3`blank';
makeObjectsArray(objString);
makePathway(7, 6, 'Doorway', 'repairstation');
makePathway(5, 11, 'Pathway', 37, 335, -100);
makePathway(11, 5, 'Pathway', 62, 315, -580);
environment = 'outdoor';
break;
case 62:
mSet = 'tidal_5';
objString = '4`6`s2||5`6`rock||5`16`rock||5`17`s2||5`18`s2||6`17`grass2||6`18`rock||8`3`grass2||8`4`grass2||8`11`s2||9`3`s2||9`4`grass2||9`11`s2||10`10`s2||10`11`s2||11`10`s2||12`10`s2||13`18`grass2||13`19`s2||13`20`rock||14`19`grass2||14`20`grass2||18`3`s2||19`3`rock';
makeObjectsArray(objString);
makePathway(10, 21, 'Pathway', 61, 315, -200);
standardPathway('left', 63);
standardPathway('up', 67);
break;
case 63:
mSet = 'tidal_5';
objString = '3`2`s2||5`3`grass2||5`16`s2||6`2`grass2||6`3`grass2||6`9`rock||6`16`s2||6`17`s2||6`18`grass2||7`2`s2||7`3`grass2||7`17`grass2||7`18`grass2||8`16`rock||12`7`rock||13`18`s2||13`19`grass2||14`18`grass2||14`19`grass2||15`4`s2||15`19`rock||16`3`grass2||16`4`s2||16`16`s2||17`3`s2||17`5`grass2||18`4`rock';
makeObjectsArray(objString);
standardPathway('left', 64);
standardPathway('right', 62);
break;
case 64:
mSet = 'tidal_5';
objString = '2`13`rock||3`12`s2||5`18`rock||7`13`fungus||7`16`s2||7`17`s2||12`15`s2||13`15`s2||13`16`s2||14`15`s2||15`12`s2||17`15`rock';
makeObjectsArray(objString);
standardPathway('up', 65);
standardPathway('right', 63);
break;
case 65:
mSet = 'tidal_5';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v4 = 'water_d';
objString = '0`14`blank||0`15`blank||1`14`blank||1`15`blank||2`13`blank||2`14`blank||3`14`blank||3`15`blank||3`16`blank||4`14`blank||4`15`blank||5`15`blank||6`13`blank||6`14`blank||6`15`blank||7`12`blank||7`13`blank||7`14`blank||7`15`blank||8`11`blank||8`12`blank||8`13`blank||9`10`blank||9`11`blank||9`13`blank||10`10`blank||10`13`blank||11`10`blank||11`11`blank||11`13`blank||12`11`blank||12`13`blank||13`11`blank||13`12`blank||13`13`blank||14`12`blank||14`13`blank||14`14`blank||15`12`blank||15`14`blank||15`15`blank||16`12`blank||16`15`blank||17`12`blank||17`15`blank||17`16`blank||18`12`blank||18`16`blank||18`17`blank||19`12`blank||19`17`blank||19`18`blank||20`12`blank||20`13`blank||20`18`blank||21`13`blank||21`18`blank||21`19`blank';
makeObjectsArray(objString);
}
objString = '1`4`s2||2`2`fungus||5`2`s2||6`2`rock||6`3`s2||7`0`s2||7`2`s2||15`3`s2||16`2`rock||16`3`s2||19`5`fungus||20`4`s2';
makeObjectsArray(objString);
standardPathway('down', 64);
standardPathway('up', 66);
break;
case 66:
mSet = 'tidal_5';
objString = '1`8`grass2||1`9`fungus||1`10`Boulder||1`11`s2||2`8`grass2||2`9`Boulder||2`10`grass2||3`7`s2||4`1`Boulder||4`2`grass2||5`0`s2||5`1`grass2||5`2`grass2||8`2`s2||15`2`s2||17`2`s2||17`3`Boulder||18`2`grass2||18`3`grass2||19`4`grass2||19`5`grass2||20`3`s2||20`4`grass2||20`7`Boulder||21`4`Boulder';
makeObjectsArray(objString);
standardPathway('down', 65);
break;
case 67:
mSet = 'tidal_5';
objString = '1`7`s2||1`14`s2||2`1`s2||3`12`s2||4`7`s2||16`19`s2||17`16`s2||18`9`s2||18`10`s2||19`2`s2||19`6`s2||20`6`s2';
makeObjectsArray(objString);
standardPathway('down', 62);
standardPathway('up', 68);
break;
case 68:
mSet = 'tidal_5';
objString = '1`7`s2||1`14`s2||2`1`s2||3`12`s2||9`7`grass2||9`8`grass2||9`9`grass2||10`7`grass2||10`8`s2||10`9`grass2||11`7`grass2||11`8`grass2||11`9`grass2||16`19`s2||17`16`s2||19`2`s2||19`6`s2';
makeObjectsArray(objString);
standardPathway('down', 67);
standardPathway('up', 75);
standardPathway('right', 69);
break;
case 69:
mSet = 'tidal_5';
objString = '2`15`s2||2`17`grass2||3`2`s2||3`14`Boulder||3`15`s2||3`16`s2||3`17`grass2||4`14`grass2||4`15`grass2||4`16`grass2||4`17`grass2||5`1`grass2||5`10`grass2||5`15`grass2||5`16`grass2||8`2`s2||8`16`s2||9`17`Boulder||10`7`grass2||12`16`grass2||13`14`s2||15`16`grass2||16`3`Boulder||17`15`Boulder||18`1`grass2||18`3`s2';
makeObjectsArray(objString);
standardPathway('left', 68);
standardPathway('right', 71);
break;
case 71:
mSet = 'tidal_5';
objString = '0`5`s2||1`5`grass2||1`12`grass2||1`13`s2||1`14`Boulder||2`13`grass2||2`14`grass2||5`2`grass2||5`3`s2||6`2`Boulder||6`3`grass2||6`4`grass2||7`3`grass2||10`4`s2||15`6`s2||16`10`s2||17`10`s2||17`11`Boulder||17`12`grass2||18`11`grass2||18`12`grass2||18`14`grass2||18`15`s2';
makeObjectsArray(objString);
standardPathway('down', 73);
standardPathway('left', 69);
break;
case 73:
mSet = 'tidal_5';
objString = '1`6`grass2||1`7`grass2||1`8`s2||1`14`s2||2`2`grass2||2`3`s2||2`4`grass2||2`6`grass2||2`13`grass2||2`14`s2||2`15`grass2||2`16`grass2||3`4`grass2||3`15`grass2||4`15`s2||7`9`Boulder||7`18`s2||8`17`Boulder||8`18`grass2||8`19`Boulder||9`18`grass2||12`17`grass2||13`16`Boulder||13`17`grass2||14`16`grass2||15`7`Boulder||17`18`s2||17`19`grass2';
makeObjectsArray(objString);
standardPathway('up', 71);
standardPathway('right', 74);
break;
case 74:
mSet = 'tidal_5';
if (quest_23.prog == 0 || hh >= 0 && hh < 6 || hh >= 12 && hh < 18) {
v2 = 'water_r';
objString = '11`13`blank||11`14`blank||11`15`blank||12`9`blank||12`13`blank||12`14`blank||12`15`blank||13`9`blank||13`10`blank||13`11`blank||13`17`blank||13`18`blank||13`19`blank||13`20`blank||13`21`blank||14`8`blank||14`9`blank||14`11`blank||14`12`blank||14`13`blank||14`14`blank||14`15`blank||14`16`blank||14`17`blank||15`5`blank||15`6`blank||15`7`blank||15`8`blank||16`0`blank||16`1`blank||16`3`blank||16`4`blank||16`5`blank||16`6`blank||16`7`blank||16`8`blank||16`9`blank||16`10`blank||16`11`blank||16`12`blank||16`13`blank||16`18`blank||16`19`blank||16`20`blank||16`21`blank||17`1`blank||17`2`blank||17`3`blank||17`4`blank||17`7`blank||17`8`blank||17`13`blank||17`14`blank||17`15`blank||17`16`blank||17`17`blank||17`18`blank||18`0`blank||18`1`blank||18`2`blank||18`4`blank||19`2`blank||19`3`blank||19`4`blank||20`3`blank||20`4`blank||21`3`blank||21`4`blank';
makeObjectsArray(objString);
}
objString = '1`3`s2||1`15`s2||1`19`Boulder||2`2`s2||2`3`Boulder||2`4`grass2||2`5`grass2||2`6`s2||2`15`grass2||2`16`grass2||2`17`grass2||3`3`grass2||3`16`grass2||3`19`s2||19`6`chest$f`ITEMS$W03SC$43||20`15`grass2||21`6`s2||21`14`grass2||21`15`Boulder||21`16`grass2||21`17`s2';
makeObjectsArray(objString);
standardPathway('left', 73);
break;
case 75:
mSet = 'tidal_6';
objString = '1`5`fungus||2`4`s2||2`12`s2||3`14`fungus||3`16`s2||4`0`fungus||5`3`s2||8`11`rock||9`4`fungus||16`16`s2||17`9`fungus||17`10`s2||17`11`s2||19`4`s2';
makeObjectsArray(objString);
standardPathway('down', 68);
standardPathway('up', 77);
break;
case 77:
mSet = 'tidal_6';
objString = '0`4`grass2||0`5`s2||0`6`grass2||0`7`fungus||1`4`grass2||1`5`grass2||1`6`grass2||1`7`grass2||3`2`fungus||5`1`fungus||5`3`s2||8`8`grass2||8`9`grass2||8`10`s2||9`8`grass2||9`9`s2||9`10`grass2||10`8`s2||10`9`grass2||10`10`grass2||15`4`s2||16`2`fungus||16`3`grass2||16`4`grass2||17`2`grass2||17`3`grass2||19`3`s2';
makeObjectsArray(objString);
standardPathway('down', 75);
standardPathway('left', 79);
standardPathway('right', 81);
break;
case 79:
mSet = 'tidal_6';
objString = '0`14`s2||1`16`s2||2`16`fungus||2`17`grass2||3`16`grass2||3`17`grass2||4`2`scrapavenger$f||6`3`scrapluna$f||7`0`scrapluna_l||7`2`scrapavenger$f||9`3`scrapluna$f||10`0`scrapavenger$f||10`2`scrapavenger_l||12`2`scrapluna$f||13`1`grass2||14`17`s2||17`4`s2||17`19`fungus';
makeObjectsArray(objString);
standardPathway('left', 80);
standardPathway('right', 77);
break;
case 80:
var objString = '7`0`blank||7`1`blank||7`2`blank||7`3`blank||7`4`blank||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';
makeObjectsArray(objString);
mSet = 'tidal_6';
if (quest_20.prog != 99) {
makeObject(10, 10, 'talk', 'jack>jack_0');
}
standardPathway('right', 79);
break;
case 81:
mSet = 'tidal_6';
objString = '0`14`s2||1`16`s2||2`2`s2||2`14`grass2||2`16`fungus||3`1`grass2||4`1`grass2||5`1`fungus||5`15`s2||6`2`grass2||7`17`fungus||8`16`grass2||9`3`s2||9`16`grass2||12`1`fungus||12`2`grass2||13`1`grass2||14`2`grass2||14`17`s2||14`18`grass2||15`18`grass2||15`19`grass2||17`4`s2||17`19`fungus';
makeObjectsArray(objString);
standardPathway('left', 77);
standardPathway('right', 84);
break;
case 84:
mSet = 'tidal_6';
objString = '3`1`grass2||4`0`grass2||4`1`fungus||4`2`grass2||4`3`s2||4`12`s2||5`2`grass2||5`3`grass2||5`4`grass2||5`5`rock||6`17`rock||6`18`grass2||6`19`grass2||7`17`grass2||7`18`grass2||7`19`s2||7`20`grass2||8`19`grass2||8`20`grass2||9`4`s2||12`1`rock||12`2`grass2||13`1`grass2||13`21`grass2||14`16`s2||14`17`grass2||14`21`fungus||15`15`grass2||15`16`rock||15`17`grass2||16`6`fungus||16`16`grass2||17`4`s2||21`15`s2';
makeObjectsArray(objString);
standardPathway('left', 81);
}
bgGraphics(areaTerrain, v3, v2, v1, v4, areaOverlay);
bgMusic(areaMusic);
}
}
frame 32 {
function map10(area) {
encounterRate = 0;
areaCharType = 'pilot';
clearWorld('Blank');
areaName = 'Acero Terminus';
areaMusic = 'town';
areaTerrain = 'towndirt';
mSet = 0;
mapLocation = 10;
areaLocation = area;
changeSurroundBlank(1, 1);
bgMusic(areaMusic);
environment = 'outdoor';
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
var v1 = 3;
} else {
var v1 = 20;
}
switch (area) {
case 1:
if (random(v1) == 1) {
generateNewChar('malenpc', 180, -240, 'npc', 'moving');
}
if (random(v1) == 1) {
generateNewChar('femalenpc', 280, -340, 'npc', 'moving');
}
tileString = '0`10`track||0`11`track||1`10`track||1`11`track||2`11`track||3`11`track||4`10`track||4`11`track||5`10`track||5`11`track||6`11`track||7`11`track||8`11`track||9`11`track||9`12`track||10`12`track||10`13`track||10`20`track||11`12`track||11`13`track||11`14`track||11`15`track||11`16`track||11`17`track||11`18`track||11`19`track||11`20`track||12`12`track||12`15`track||12`16`track||13`12`track||14`12`track||15`12`track||16`11`track||16`12`track||17`10`track||17`11`track||18`10`track||18`11`track||19`11`track||20`10`track||20`11`track';
makeTilesArray(tileString);
objString = '1`8`p2||1`14`p2||2`8`sign$f`Acero Terminus - Gateway to Sios.||11`5`sign$f`Closed at night||12`17`chair||18`5`Boulder||19`20`p2||19`21`p2||20`20`p2||20`21`p2';
makeObjectsArray(objString);
makeLargeObject(10, 10, 4, 3, 'terminal', 'r');
if (hh >= TIME_MORNING && hh < TIME_NIGHT) {
makePathway(9, 5, 'Doorway', 'terminal');
}
makeLargeObject(15, 2, 15, 2, 'fountain', 'l');
standardPathway('left', -1, 8);
standardPathway('right', 2);
standardPathway('down', 3);
bgGraphics(areaTerrain, 'town_exit', '', 'airship', '');
break;
case 2:
if (random(v1) == 1) {
generateNewChar('malenpc', 180, -240, 'npc', 'moving');
}
if (random(v1) == 1) {
generateNewChar('femalenpc', 280, -340, 'npc', 'moving');
}
tileString = '1`10`track||1`11`track||2`11`track||3`11`track||4`11`track||5`11`track||6`11`track||7`11`track||7`12`track||8`12`track||9`12`track||9`13`track||9`14`track||9`15`track||10`15`track||10`16`track||10`20`track||11`17`track||11`18`track||11`19`track||11`20`track';
makeTilesArray(tileString);
objString = '3`15`chair||3`18`chair||16`15`t1||16`16`t1||16`17`t1||16`18`t1||16`19`t1||17`15`t1||17`16`t1||17`17`t1||17`18`t1||17`19`t1||18`15`t1||18`16`t1||18`17`t1||18`18`t1||18`19`t1';
makeObjectsArray(objString);
standardPathway('left', 1);
standardPathway('down', 4);
bgGraphics(areaTerrain, '', 'wall2', 'sea', '');
break;
case 3:
if (random(v1) == 1) {
generateNewChar('malenpc', 180, -240, 'npc', 'moving');
}
if (random(v1) == 1) {
generateNewChar('femalenpc', 280, -340, 'npc', 'moving');
}
tileString = '9`4`track||9`5`track||10`1`track||10`2`track||10`3`track||10`4`track||10`5`track||10`6`track||10`7`track||10`8`track||10`9`track||11`10`track||11`11`track||12`11`track||12`12`track||13`12`track||14`12`track||15`12`track||16`12`track||17`11`track||17`12`track||18`11`track||19`11`track||20`11`track';
makeTilesArray(tileString);
var objString = '5`3`boulder||5`6`hydrant||5`7`p2||14`2`barrel||14`3`barrel||14`4`barrel||14`17`p2||14`18`p2||15`2`barrel||15`3`barrel||15`4`barrel||15`17`p2||15`18`p2||16`2`barrel||16`3`barrel||16`4`barrel||16`17`barrel||17`2`barrel||17`3`barrel||17`4`barrel||18`16`boulder';
makeObjectsArray(objString);
makeLargeObject(1, 4, 15, 5, 'vendingmachine', 'l');
makePathway(5, 16, 'Doorway', 'vendingmachine');
standardPathway('right', 4);
standardPathway('up', 1);
bgGraphics(areaTerrain, 'wall2', '', '', 'wall2');
break;
case 4:
if (random(v1) == 1) {
generateNewChar('malenpc', 180, -240, 'npc', 'moving');
}
if (random(v1) == 1) {
generateNewChar('femalenpc', 280, -340, 'npc', 'moving');
}
tileString = '0`10`track||0`11`track||1`10`track||1`11`track||2`10`track||3`10`track||4`10`track||5`10`track||6`9`track||7`8`track||7`9`track||8`7`track||8`8`track||9`3`track||9`4`track||9`5`track||9`6`track||9`7`track||10`1`track||10`2`track||10`3`track';
makeTilesArray(tileString);
objString = '3`16`t1||3`17`t1||4`13`chair||4`16`t1||4`17`t1||13`14`p2||13`15`p2||13`16`p2||13`17`p2||14`12`p2||14`13`p2||14`14`p2||14`15`p2||14`16`p2||14`17`p2||15`12`p2||15`13`p2||15`14`p2||15`15`p2||15`16`p2||15`17`p2||16`12`p2||16`13`p2||16`14`p2||16`15`p2||16`16`p2||16`17`p2||17`12`p2||17`13`p2||17`14`p2||17`15`p2||17`16`p2||17`17`p2||18`14`p2||18`15`p2||18`16`p2||18`17`Boulder';
makeObjectsArray(objString);
makeLargeObject(1, 4, 3, 4, 'house03', 'l');
makePathway(5, 4, 'Doorway', 'house03');
standardPathway('left', 3);
standardPathway('up', 2);
bgGraphics(areaTerrain, '', 'wall2', '', 'wall2');
}
}
}
frame 32 {
function map11(area) {
encounterRate = 10;
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Lazlo Mine';
areaTerrain = 'cave';
areaMusic = 'cave';
mapLocation = 11;
chestCredits = 20;
areaLocation = area;
changeSurroundBlank(1, 1);
environment = 'indoor';
bgGraphics(areaTerrain, '', '', '', '', areaTerrain);
switch (area) {
case 1:
encounterRate = 'NONSAVE';
areaTerrain = 'jungle';
areaMusic = 'jungle';
var v1 = '1`9`rock||1`10`rock||1`11`rock||1`12`rock||1`13`rock||2`2`Boulder||2`3`p1||2`20`Boulder||3`2`Boulder||3`3`Boulder||3`5`grass||3`19`grass||4`8`sign$f`Mine closed.||6`19`Boulder||7`18`Boulder||7`19`Boulder||12`3`Boulder||12`19`p1||13`6`repairstation||13`19`grass||14`19`grass||15`4`p1||16`20`Boulder||17`3`Boulder||17`18`Boulder||18`3`grass||18`4`grass||18`18`Boulder';
makeObjectsArray(v1);
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, 'Doorway', 'repairstation');
environment = 'outdoor';
bgGraphics(areaTerrain, 'mine', '', 'jungle', '', areaTerrain);
break;
case 100:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '1`1`wall$f||1`7`lamp`100>20>20||1`14`lamp`100>20>20||1`20`wall$f||2`1`wall$f||2`16`Boulder||2`20`wall$f||3`1`wall$f||3`8`sign$f`You can still turn back now.||3`20`wall$f||4`1`wall$f||4`20`wall$f||5`1`wall$f||5`20`wall$f||6`1`wall$f||6`20`wall$f||7`1`wall$f||7`20`wall$f||8`1`wall$f||8`20`wall$f||9`1`wall$f||9`18`s1||9`20`wall$f||10`1`wall$f||10`20`wall$f||11`1`wall$f||11`20`wall$f||12`1`wall$f||12`20`wall$f||13`1`wall$f||13`20`wall$f||14`1`wall$f||14`5`Boulder||14`20`wall$f||15`1`wall$f||15`20`wall$f||16`1`wall$f||16`20`wall$f||17`1`wall$f||17`20`wall$f||18`1`wall$f||18`17`Boulder||18`20`wall$f||19`1`wall$f||19`3`s1||19`20`wall$f||20`1`wall$f||20`20`wall$f||21`1`wall||21`2`wall||21`3`wall||21`4`wall||21`5`wall||21`6`wall||21`7`wall||21`14`wall||21`15`wall||21`16`wall||21`17`wall||21`18`wall||21`19`wall||21`20`wall';
makeObjectsArray(v1);
if (quest_10.prog == 0) {
var tileString = '12`1||12`2||12`3||12`4||12`5||12`6||12`7||12`8||12`9||12`10||12`11||12`12||12`13||12`14||12`15||12`16||12`17||12`18||12`19||12`20';
makeChatTilesArray(tileString, 'billy_1', 'talk');
}
standardPathway('left', 101);
standardPathway('right', 1);
break;
case 101:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '1`1`wall||1`2`wall||1`3`wall||1`4`wall||1`5`wall||1`6`wall||1`7`wall||1`8`wall||1`9`wall||1`10`wall||1`11`wall||1`12`wall||1`13`wall||1`14`wall||1`15`wall||1`16`wall||1`17`wall||1`18`wall||1`19`wall||1`20`wall||2`1`wall$f||2`20`wall$f||3`1`wall$f||3`20`wall$f||4`1`wall$f||4`16`cart||4`20`wall$f||5`1`wall$f||5`3`cart||5`20`wall$f||6`1`wall$f||6`20`wall$f||7`1`wall$f||7`16`s1||7`20`wall$f||8`4`lamp`20>100>20||8`18`lamp`100>20>20||14`1`wall$f||14`20`wall$f||15`1`wall$f||15`20`wall$f||16`1`wall$f||16`20`wall$f||17`1`wall$f||17`20`wall$f||18`1`wall$f||18`5`s1||18`14`cart||18`20`wall$f||19`1`wall$f||19`20`wall$f||20`1`wall$f||20`20`wall$f';
makeObjectsArray(v1);
standardPathway('up', 107);
standardPathway('down', 102);
standardPathway('right', 100);
break;
case 102:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '4`18`rock||5`6`cart||6`1`wall$f||7`1`wall||7`2`wall||7`3`wall||7`5`lamp`100>20>20||14`1`wall||14`2`wall||14`5`wall||15`1`wall$f||15`2`cart||16`14`rock';
makeObjectsArray(v1);
standardPathway('up', 101);
standardPathway('left', 103);
break;
case 103:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '3`5`s1||3`6`rock||3`8`cart||3`18`s1||4`16`rock||5`13`s1||5`15`rock||8`19`lamp`100>20>20||14`3`s1||15`15`s1||15`16`s1||16`15`s1||17`3`rock';
makeObjectsArray(v1);
standardPathway('right', 102);
standardPathway('down', 104);
break;
case 104:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '1`6`s1||2`3`s1||2`6`s1||3`4`rock||3`5`rock||4`1`s1||4`18`s1||5`4`s1||7`17`rock||9`16`s1||10`19`s1||12`14`rock||12`15`rock||13`14`rock||15`18`s1||16`7`rock||16`8`rock||16`12`s1||16`17`s1||16`18`s1||17`5`s1||17`11`s1||17`12`s1||18`4`s1||18`5`s1||18`6`s1||18`15`s1';
makeObjectsArray(v1);
standardPathway('up', 103);
standardPathway('left', 105);
break;
case 105:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '2`11`rock||2`15`s1||2`18`s1||3`17`rock||3`18`rock||4`8`s1||4`9`s1||4`10`rock||4`11`s1||4`12`s1||4`14`s1||4`16`s1||4`18`rock||5`5`s1||5`7`s1||6`2`s1||6`4`s1||6`5`s1||6`9`s1||6`10`s1||7`3`s1||7`6`rock||7`11`rock||7`15`s1||8`2`s1||8`3`s1||8`18`lamp`100>20>20||9`5`s1||9`6`s1||10`5`s1||10`9`s1||11`8`s1||12`2`s1||12`3`s1||13`2`s1||13`3`s1||14`1`s1||14`5`rock||15`1`s1||15`2`s1||16`18`s1||16`19`s1||17`3`rock||17`18`s1||18`2`s1||19`15`s1';
makeObjectsArray(v1);
standardPathway('right', 104);
standardPathway('down', 106);
break;
case 106:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '3`9`s1||3`10`s1||3`11`s1||3`12`s1||3`13`rock||4`2`s1||4`3`s1||4`5`rock||4`6`rock||4`7`s1||4`8`s1||4`12`s1||4`13`rock||4`14`s1||5`9`cart||5`11`cart||5`15`s1||5`16`s1||6`1`s1||6`2`rock||6`6`cart||6`14`cart||6`16`s1||6`17`s1||8`3`cart||8`17`rock||8`18`rock||10`16`cart||10`19`rock||11`19`s1||12`19`s1||13`19`s1||14`3`cart||14`18`s1||14`19`s1||15`7`cart||15`12`cart||15`17`s1||15`18`s1||16`2`s1||16`3`s1||16`4`s1||16`16`rock||16`17`rock||17`4`s1||18`5`rock||18`7`s1||18`8`s1||18`11`rock||18`14`s1||18`15`s1||19`8`s1||19`14`s1';
makeObjectsArray(v1);
standardPathway('up', 105);
standardPathway('center', 205, undefined, 'lift_down');
break;
case 107:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '2`2`s1||2`3`rock||2`17`s1||3`15`rock||5`6`s1||7`1`wall||7`3`wall||7`4`wall||7`5`wall||7`6`wall||7`7`wall||7`13`wall||7`14`wall||7`15`wall||7`16`wall||7`17`wall||7`18`wall||7`19`wall||7`20`wall||7`21`wall||9`1`s1||11`1`s1||11`2`s1||11`5`s1||12`3`s1||13`1`s1||14`3`s1||15`1`wall||15`2`wall||15`3`wall||15`4`wall||15`5`wall||15`6`wall||15`7`wall||15`8`wall||15`9`wall||15`10`wall||15`11`wall||15`12`wall||15`13`wall||15`14`wall||15`15`wall||15`16`wall||15`17`wall||15`18`wall||15`19`wall||15`20`wall||15`21`wall||18`11`rock||18`15`s1||19`2`s1||19`4`rock||19`7`s1||19`10`s1||19`15`s1||19`20`s1||20`7`s1||21`4`s1';
makeObjectsArray(v1);
standardPathway('down', 101);
standardPathway('left', 108);
break;
case 108:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '2`17`s1||2`18`s1||3`14`rock||4`4`s1||4`5`s1||4`6`s1||4`8`rock||4`10`s1||4`13`rock||4`14`rock||5`8`rock||6`1`s1||6`12`rock||7`9`rock||7`12`rock||7`17`s1||7`18`s1||8`1`lamp`20>100>20||8`18`s1||9`15`s1||10`15`s1||10`16`s1||11`16`s1||12`19`rock||16`18`s1||17`2`s1||17`16`rock||18`3`s1||19`5`s1||19`16`s1||20`5`s1||20`15`s1||20`16`s1';
makeObjectsArray(v1);
standardPathway('up', 109);
standardPathway('right', 107);
break;
case 109:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '1`7`s1||2`3`s1||2`4`s1||3`3`s1||4`1`s1||4`7`cart||5`1`s1||5`5`s1||5`16`s1||5`17`s1||6`1`s1||6`16`s1||8`15`s1||11`8`lamp`20>100>20||13`2`s1||14`2`s1||14`3`s1||16`6`s1||16`7`s1||16`10`s1||16`20`s1||17`7`s1||17`8`s1||17`9`s1||17`17`s1||17`18`s1||18`5`s1||18`14`s1||18`17`s1||19`5`s1||19`6`s1||19`14`s1';
makeObjectsArray(v1);
standardPathway('down', 108);
standardPathway('left', 110);
break;
case 110:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '2`8`s1||3`5`s1||3`8`s1||3`9`s1||4`3`s1||4`5`s1||4`6`rock||4`7`rock||5`1`s1||5`12`s1||5`13`s1||6`2`rock||6`3`rock||6`14`rock||6`15`rock||6`17`s1||6`18`s1||7`10`s1||7`15`rock||7`18`s1||8`10`s1||8`11`s1||8`18`s1||9`19`s1||10`15`rock||11`18`s1||12`18`s1||13`18`s1||14`2`s1||14`3`s1||14`17`rock||14`18`rock||15`5`rock||15`6`rock||15`18`rock||16`2`s1||16`6`rock||16`7`rock||17`2`s1||17`7`rock||18`7`rock||18`18`s1||19`3`s1||19`7`rock||19`18`s1||20`6`s1';
makeObjectsArray(v1);
standardPathway('up', 111);
standardPathway('right', 109);
break;
case 111:
mSet = 'lazlo_1';
areaName = 'Lazlo Mine Level 1';
var v1 = '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`s1||6`14`rock||7`5`s1||7`7`rock||7`13`rock||7`14`rock||7`16`s1||7`18`s1||7`19`s1||10`6`lamp`20>100>20||12`4`s1||13`6`rock||14`6`rock||14`15`s1||14`16`s1||14`18`s1||14`19`s1||15`5`rock||15`10`s1||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(v1);
standardPathway('down', 110);
standardPathway('center', 211, undefined, 'lift_down');
break;
case 200:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '1`17`s1||2`2`s1||3`6`t1||3`10`t1||3`13`cart||3`15`t1||3`16`t1||3`17`t1||3`20`t1||4`5`t1||4`6`t1||4`9`t1||4`10`t1||5`12`t1||6`3`t1||6`4`t1||6`8`cart||7`3`t1||7`6`t1||9`9`lamp`20>100>20||11`3`t1||12`3`t1||13`3`t1||15`3`t1||15`5`t1||15`18`t1||15`19`t1||16`1`s1||16`3`t1||16`5`t1||16`18`t1||17`1`s1||17`3`t1||17`5`t1||17`7`cart||18`16`t1||19`14`t1||19`15`t1||20`5`t1||20`15`t1';
makeObjectsArray(v1);
standardPathway('down', 203);
standardPathway('right', 201);
break;
case 201:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '1`7`s1||2`6`s1||2`7`s1||2`16`s1||3`2`s1||3`6`s1||3`18`s1||4`4`s1||4`5`s1||4`18`s1||4`19`s1||5`2`s1||5`15`t1||6`4`t1||6`5`t1||6`6`t1||6`7`t1||6`8`t1||6`12`t1||6`13`t1||6`14`t1||6`15`t1||6`16`t1||6`17`t1||6`18`s1||7`4`t1||7`8`t1||7`12`t1||7`17`t1||7`18`s1||8`4`t1||8`5`cart||8`7`t1||8`8`t1||8`12`t1||8`13`t1||8`14`t1||8`15`t1||8`17`t1||9`2`s1||9`4`t1||9`7`t1||9`15`t1||9`17`t1||10`4`t1||10`5`t1||10`7`t1||10`8`lamp`20>100>20||10`13`lamp`20>100>20||10`14`t1||10`15`t1||10`17`t1||11`4`t1||11`5`t1||11`7`t1||11`15`t1||11`17`t1||12`4`t1||12`7`t1||12`15`t1||12`17`t1||13`4`t1||13`7`t1||13`8`t1||13`9`t1||13`13`t1||13`14`t1||13`15`t1||13`17`t1||14`4`t1||14`9`t1||14`13`t1||14`17`t1||15`4`t1||15`5`t1||15`6`t1||15`7`t1||15`8`t1||15`9`t1||15`13`t1||15`14`t1||15`15`t1||15`16`t1||15`17`t1||16`3`s1||17`3`s1||17`6`s1||17`17`s1||17`18`s1||18`3`s1||18`6`s1||18`17`s1||20`15`s1';
makeObjectsArray(v1);
standardPathway('left', 200);
standardPathway('right', 202);
break;
case 202:
encounterRate = 'NONSAVE';
areaName = 'Lazlo Mine Level 2';
var v1 = '2`8`lamp`20>100>20||2`17`s1||3`3`s1||3`14`s1||3`15`s1||4`3`s1||4`8`fungus||4`13`fungus||4`15`s1||5`2`s1||5`3`s1||5`7`fungus||5`14`fungus||5`19`s1||6`6`fungus||6`13`t1||6`15`fungus||6`19`s1||7`5`fungus||7`16`fungus||8`4`fungus||8`6`t1||8`17`fungus||9`4`fungus||9`6`t1||10`4`fungus||11`4`fungus||11`6`t1||12`4`fungus||13`5`fungus||13`6`repairstation||13`12`t1||13`17`fungus||13`19`lamp`100>20>20||14`6`fungus||14`10`t1||14`16`fungus||15`7`fungus||15`10`t1||15`15`fungus||16`8`fungus||16`14`fungus||16`18`s1||17`4`s1||17`9`fungus||17`10`fungus||17`11`fungus||17`12`fungus||17`13`fungus||18`5`s1||19`4`s1||19`5`s1';
makeObjectsArray(v1);
makePathway(13, 7, 'Doorway', 'repairstation');
standardPathway('down', 204);
standardPathway('left', 201);
standardPathway('center', 314, undefined, 'lift_down');
break;
case 203:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '4`2`s1||4`7`s1||4`8`s1||4`12`s1||4`15`s1||4`16`s1||4`18`s1||5`7`s1||5`18`s1||7`11`lamp`20>100>20||11`8`rock||11`15`rock||17`2`s1||17`3`s1||17`18`s1||17`19`s1||18`5`s1||18`6`s1||18`9`s1||19`13`s1||19`14`s1';
makeObjectsArray(v1);
standardPathway('down', 207);
standardPathway('up', 200);
break;
case 204:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '2`4`fungus||3`17`fungus||4`9`rock||4`10`rock||5`9`rock||5`10`rock||7`5`fungus||8`1`s1||8`2`s1||8`16`s1||8`17`s1||8`19`s1||8`20`s1||8`21`s1||9`2`s1||9`3`s1||9`4`s1||9`5`s1||9`15`s1||9`16`s1||10`6`s1||10`14`s1||10`15`s1||11`7`s1||11`8`s1||11`14`s1||12`8`s1||12`14`s1||13`9`s1||13`13`s1||13`14`s1||13`21`s1||14`1`s1||14`9`s1||14`10`s1||14`11`s1||14`12`s1||14`13`s1||14`20`s1||14`21`s1||15`2`s1||15`3`s1||15`4`s1||15`19`s1||15`20`s1||16`4`s1||16`5`s1||16`19`s1||17`5`s1||17`6`s1||17`17`s1||17`18`s1||17`19`s1||18`6`s1||18`7`s1||18`16`s1||18`17`s1||19`7`s1||19`15`s1||19`16`s1||20`8`s1||20`9`s1||20`10`s1||20`11`s1||20`12`s1||20`13`s1||20`14`s1||20`15`s1';
makeObjectsArray(v1);
standardPathway('down', 209);
standardPathway('up', 202);
break;
case 205:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '3`7`s1||3`9`s1||4`5`s1||4`6`s1||4`12`s1||5`4`s1||5`14`s1||5`15`s1||6`3`s1||6`7`lamp`100>20>20||6`13`lamp`100>20>20||6`16`s1||6`17`s1||7`3`s1||7`17`s1||8`3`s1||9`3`s1||9`18`s1||9`19`s1||11`3`s1||12`19`s1||13`1`s1||13`2`s1||13`19`s1||14`1`s1||14`3`s1||15`3`s1||15`4`s1||15`18`s1||16`4`s1||16`5`s1||16`17`s1||17`15`s1||18`6`s1||19`7`s1||19`13`s1';
makeObjectsArray(v1);
standardPathway('center', 106, undefined, 'lift_up');
standardPathway('right', 206);
break;
case 206:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '2`2`s1||2`3`s1||2`4`s1||2`5`s1||2`13`s1||2`14`s1||3`1`s1||3`2`s1||3`16`s1||4`1`s1||4`16`s1||4`17`s1||5`1`s1||5`7`cart||5`17`s1||5`18`s1||6`1`s1||6`14`t1||6`18`s1||6`19`s1||7`1`s1||7`14`t1||7`19`s1||8`1`s1||9`18`s1||9`19`s1||10`1`s1||10`2`s1||10`3`s1||10`4`s1||10`16`s1||10`17`s1||10`18`s1||11`1`s1||11`19`s1||12`19`s1||12`20`s1||13`1`s1||13`19`s1||14`1`s1||14`2`s1||14`7`lamp`100>20>20||14`19`s1||15`1`s1||15`2`s1||15`19`s1||16`1`s1||16`2`s1||16`18`s1||16`19`s1||17`2`s1||17`3`s1||17`15`s1||17`16`s1||17`17`s1||17`18`s1||18`3`s1||18`4`s1||19`5`s1||19`6`s1';
makeObjectsArray(v1);
standardPathway('left', 205);
standardPathway('right', 207);
break;
case 207:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '2`2`t1||2`3`t1||2`4`t1||2`7`lamp`100>20>20||2`14`lamp`100>20>20||3`2`t1||3`3`t1||3`4`t1||3`19`rock||4`2`t1||4`3`t1||4`4`t1||6`15`t1||7`2`lamp`20>100>20||7`19`lamp`20>100>20||14`2`lamp`20>100>20||14`19`lamp`20>100>20||16`3`rock||18`3`t1||18`4`t1||18`18`t1||18`19`t1||19`3`t1||19`7`lamp`100>20>20||19`14`lamp`100>20>20||19`18`t1||19`19`t1';
makeObjectsArray(v1);
if (quest_30.prog == 0 && checkItemNumber('I006Q') >= 3) {
tileString = '1`4||2`5||3`5||3`6||4`6||4`7||5`7||5`8||6`8||6`9||7`9||7`10||8`10||8`11||9`11||9`12||10`12||10`13||11`13||11`14||12`14||12`15||13`15||13`16||14`16||14`17||15`17||15`18||16`18||16`19||17`19||17`20||18`20||18`21||19`21';
makeTilesArray(tileString);
makeChatTilesArray(tileString, 'worm_boss_0', 'talkshake');
}
standardPathway('up', 203);
standardPathway('down', 210);
standardPathway('left', 206);
standardPathway('right', 208);
break;
case 208:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '3`3`t1||3`4`t1||3`6`lamp`100>20>20||3`15`lamp`100>20>20||3`18`t1||3`19`t1||4`3`t1||4`18`t1||4`19`t1||5`3`t1||5`18`t1||5`19`t1||6`18`t1||6`19`t1||7`6`lamp`100>20>20||7`15`lamp`100>20>20||7`18`t1||7`19`t1||8`18`t1||8`19`t1||9`18`t1||9`19`t1||10`18`t1||10`19`t1||11`6`lamp`100>20>20||11`15`lamp`100>20>20||11`18`t1||11`19`t1||12`18`t1||12`19`t1||13`18`t1||13`19`t1||14`2`t1||14`3`t1||14`18`t1||14`19`t1||15`2`t1||15`3`t1||15`6`lamp`100>20>20||15`15`lamp`100>20>20||15`18`t1||15`19`t1||16`2`t1||16`3`t1||16`18`t1||16`19`t1||17`2`t1||17`3`t1||17`18`t1||17`19`t1||18`18`t1||18`19`t1||19`6`lamp`100>20>20||19`15`lamp`100>20>20||19`18`t1||19`19`t1';
makeObjectsArray(v1);
standardPathway('left', 207);
standardPathway('right', 209);
break;
case 209:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '1`5`t1||1`6`t1||1`17`t1||1`18`t1||2`5`t1||2`14`lamp`100>20>20||2`17`t1||2`18`t1||3`17`t1||3`18`t1||4`4`t1||4`8`lamp`100>20>20||4`17`t1||4`18`t1||5`17`t1||5`18`t1||6`2`s1||6`17`t1||6`18`t1||7`2`s1||7`18`t1||9`18`t1||11`17`t1||12`17`t1||12`18`t1||14`15`t1||15`15`t1||15`16`t1||16`12`t1||16`16`t1||17`6`s1||17`7`s1||17`8`s1||19`3`s1';
makeObjectsArray(v1);
standardPathway('up', 204);
standardPathway('left', 208);
break;
case 210:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '2`5`s1||2`6`s1||2`7`s1||3`2`s1||3`5`s1||3`7`s1||3`14`s1||3`18`s1||3`19`s1||4`2`s1||4`7`s1||4`8`s1||4`10`s1||4`12`s1||4`14`s1||4`15`s1||4`16`s1||4`18`s1||4`19`s1||5`2`s1||5`3`s1||5`8`s1||5`10`s1||5`12`s1||5`14`s1||5`15`s1||5`16`s1||5`18`s1||6`2`s1||6`3`s1||6`4`s1||6`9`s1||6`10`s1||6`11`s1||6`12`s1||6`13`s1||6`17`s1||6`18`s1||7`2`s1||7`3`s1||7`11`s1||7`12`s1||7`13`s1||14`9`s1||15`9`s1||15`11`s1||16`8`s1||16`10`s1||16`11`s1||17`6`s1||17`7`s1||17`8`s1||17`11`s1||17`18`s1||17`19`s1||18`3`s1||18`6`s1||18`7`s1||18`16`s1||18`18`s1||18`19`s1||19`1`s1||19`3`s1||19`4`s1||19`5`s1||19`6`s1||19`11`s1||19`12`s1||19`13`s1||19`14`s1||19`15`s1||19`17`s1||19`18`s1||19`19`s1||20`13`s1||20`19`s1';
makeObjectsArray(v1);
standardPathway('up', 207);
standardPathway('down', 211);
break;
case 211:
mSet = 'lazlo_2';
areaName = 'Lazlo Mine Level 2';
var v1 = '3`1`s1||3`2`s1||3`13`t1||4`1`s1||4`2`s1||4`9`s1||5`1`s1||5`2`s1||5`16`cart||6`3`s1||6`4`s1||6`6`s1||7`4`s1||7`5`s1||7`6`s1||7`8`lamp`20>100>20||7`18`t1||15`1`s1||15`4`s1||15`5`s1||15`7`s1||15`8`s1||15`11`cart||15`17`t1||16`1`s1||16`2`s1||16`3`s1||17`2`s1||18`12`s1||18`13`s1';
makeObjectsArray(v1);
standardPathway('up', 210);
standardPathway('center', 111, undefined, 'lift_up');
break;
case 300:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '3`14`s1||3`15`s1||3`17`s1||3`19`s1||4`11`s1||4`12`s1||4`20`s1||5`9`s1||6`7`s1||6`9`s1||6`13`fungus||7`6`s1||9`6`s1||10`5`s1||10`6`s1||11`4`s1||11`11`lamp`20>20>100||12`4`s1||12`7`fungus||13`4`s1||14`4`s1||15`4`s1||16`2`s1||16`3`s1||16`19`s1||16`20`s1||16`21`s1||17`2`s1||17`18`s1||18`2`s1||18`17`s1||19`4`s1||19`17`s1||20`4`s1||20`5`s1||21`5`s1||21`16`s1';
makeObjectsArray(v1);
standardPathway('right', 301);
standardPathway('down', 302);
break;
case 301:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`7`s1||2`7`s1||3`4`s1||3`15`s1||3`16`s1||3`19`fungus||5`3`s1||5`4`fungus||5`7`sign$f`To: Level 4 mines.||5`16`fungus||9`18`s1||10`3`s1||10`18`s1||13`3`s1||13`18`s1||14`18`s1||17`3`fungus||17`6`s1||17`15`s1||17`18`fungus||18`3`fungus||18`11`s1||18`12`s1';
makeObjectsArray(v1);
standardPathway('left', 300);
standardPathway('center', 400, undefined, 'lift_down');
break;
case 302:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`10`s1||1`11`s1||1`12`s1||1`15`s1||1`16`s1||2`9`s1||2`10`s1||2`14`lamp`20>20>100||2`16`s1||3`4`fungus||3`8`s1||3`9`s1||3`17`s1||3`18`s1||4`8`s1||4`18`s1||5`7`s1||5`8`s1||5`18`s1||5`19`s1||6`7`s1||6`19`s1||7`1`s1||7`2`s1||7`7`s1||7`19`s1||7`20`s1||8`2`s1||8`3`s1||8`7`s1||8`20`s1||9`3`s1||9`4`s1||9`7`s1||10`5`s1||10`7`s1||10`13`s1||10`14`s1||10`15`s1||11`6`s1||11`7`s1||11`13`s1||11`15`s1||12`13`s1||12`15`s1||13`13`s1||13`15`s1||13`16`s1||13`17`s1||13`18`s1||14`1`s1||14`2`s1||14`13`s1||14`19`s1||14`20`s1||14`21`s1||15`2`s1||15`13`s1||16`3`s1||16`6`s1||16`7`s1||16`8`s1||16`9`s1||16`10`s1||16`11`s1||16`12`s1||16`13`s1||17`3`s1||17`4`s1||17`5`s1||17`6`s1||17`7`s1||17`8`s1||17`9`s1||17`10`s1||17`11`s1||18`2`fungus||18`17`fungus||18`18`fungus||18`19`fungus||19`17`fungus||19`18`fungus';
makeObjectsArray(v1);
standardPathway('up', 300);
standardPathway('down', 305);
break;
case 303:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '3`11`s1||3`17`s1||3`18`s1||3`19`s1||4`8`s1||4`11`s1||4`12`s1||4`13`s1||4`14`s1||4`15`s1||4`16`s1||4`17`s1||4`19`s1||4`20`s1||5`6`s1||5`8`s1||5`11`s1||6`6`s1||6`11`s1||6`12`s1||6`18`s1||6`19`s1||7`5`s1||7`6`s1||7`10`s1||7`11`s1||7`14`s1||7`19`s1||8`9`s1||8`13`s1||9`5`s1||10`4`s1||11`3`s1||11`4`s1||12`3`s1||12`6`s1||13`3`s1||13`6`s1||14`2`s1||14`6`s1||15`2`s1||16`2`s1||17`2`s1||17`4`s1||17`20`s1||18`2`s1||18`19`s1||18`20`s1||19`2`s1||20`3`s1||20`18`s1||21`2`s1||21`3`s1||21`18`s1';
makeObjectsArray(v1);
standardPathway('right', 304);
standardPathway('down', 308);
break;
case 304:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '2`6`s1||3`4`s1||3`6`s1||3`16`s1||4`3`s1||4`18`s1||6`1`s1||6`6`t1||7`4`s1||7`16`s1||7`19`s1||9`17`s1||11`3`s1||11`4`s1||12`4`s1||12`15`t1||13`18`s1||14`6`t1||14`18`s1||15`6`t1||15`15`s1||15`18`s1||16`2`s1||17`2`s1||17`6`s1||18`2`s1||18`4`s1||19`16`s1||19`18`s1||20`16`s1||20`18`s1';
makeObjectsArray(v1);
standardPathway('left', 303);
standardPathway('right', 305);
break;
case 305:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '2`5`s1||2`16`s1||3`17`s1||4`3`s1||4`4`s1||5`19`s1||6`2`s1||6`19`s1||7`1`s1||7`3`scrapluna$f||7`21`s1||14`2`lamp`20>20>100||17`20`s1||18`2`s1||18`19`s1||19`2`s1||19`3`s1||20`17`s1||21`5`s1';
makeObjectsArray(v1);
standardPathway('left', 304);
standardPathway('right', 306);
standardPathway('up', 302);
standardPathway('down', 309);
break;
case 306:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`5`s1||1`14`s1||1`15`s1||2`5`s1||2`15`s1||3`4`s1||3`5`s1||3`17`s1||4`2`s1||4`3`s1||4`4`s1||4`5`s1||4`17`s1||5`2`s1||6`2`s1||7`2`s1||7`18`s1||8`15`t1||8`16`t1||8`18`s1||9`16`t1||10`2`s1||10`16`t1||10`18`s1||11`2`s1||11`5`sign$f`(There are giant teeth markings on the sign).||12`3`s1||12`19`s1||13`3`s1||13`18`s1||13`19`s1||14`3`s1||14`19`s1||15`18`s1||16`18`s1||17`3`s1||18`3`s1||18`18`s1||19`18`s1||20`4`s1||20`17`s1||21`4`s1||21`17`s1';
makeObjectsArray(v1);
standardPathway('left', 305);
standardPathway('right', 307);
break;
case 307:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`16`s1||2`4`s1||2`16`s1||3`2`s1||3`3`s1||3`16`s1||3`18`rock||4`3`s1||4`17`s1||5`2`s1||5`5`rock||5`18`s1||6`2`s1||6`19`s1||6`20`s1||6`21`s1||7`3`s1||7`21`s1||8`3`s1||8`7`s1||9`3`s1||9`8`s1||10`3`s1||10`9`s1||11`9`s1||12`7`rock||12`9`s1||12`10`s1||13`3`s1||13`4`s1||13`10`s1||13`11`s1||14`4`s1||14`13`rock||15`5`s1||16`8`s1||17`20`s1||17`21`s1||18`4`s1||18`5`s1||18`9`s1||18`14`s1||18`15`s1||18`18`s1||19`6`s1||19`9`s1||19`10`s1||19`11`s1||19`12`s1||19`18`s1||19`19`s1';
makeObjectsArray(v1);
standardPathway('left', 306);
standardPathway('down', 310);
break;
case 308:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '2`3`s1||2`5`s1||2`9`s1||2`15`s1||2`18`s1||3`3`s1||3`8`s1||3`9`s1||3`13`s1||3`18`s1||4`3`s1||4`8`s1||4`10`fungus||4`13`s1||4`18`s1||5`5`fungus||5`8`s1||5`15`fungus||5`18`s1||6`8`s1||6`18`s1||7`18`s1||15`7`s1||16`7`s1||16`13`fungus||16`19`s1||17`4`s1||17`7`s1||17`19`s1||18`1`s1||18`4`s1||18`7`s1||18`10`s1||18`13`s1||18`16`s1||18`19`s1||19`1`s1||19`4`s1||19`7`s1||19`10`s1||19`13`s1||19`14`s1||19`16`s1||19`19`s1||20`14`s1';
makeObjectsArray(v1);
standardPathway('up', 303);
standardPathway('down', 312);
break;
case 309:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`15`s1||2`3`s1||2`11`s1||2`15`s1||3`2`s1||3`3`s1||3`18`s1||4`8`s1||4`9`s1||5`7`s1||5`8`s1||5`14`t1||5`15`t1||5`16`t1||5`19`s1||6`8`s1||6`10`cart||6`13`sign`Plasmarocks can be found on this level.||6`14`t1||6`15`t1||6`16`t1||16`1`s1||16`3`cart||17`1`s1||17`19`s1||18`4`s1||18`19`s1||19`3`s1||19`6`s1||19`9`s1||19`14`s1||19`15`s1';
makeObjectsArray(v1);
standardPathway('up', 305);
standardPathway('down', 314);
break;
case 310:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '3`3`s1||3`17`s1||3`18`s1||4`3`fungus||4`4`fungus||4`6`s1||4`7`s1||4`9`fungus||4`13`s1||4`15`fungus||4`19`fungus||5`8`fungus||5`9`fungus||5`13`s1||16`20`s1||17`3`s1||17`18`fungus||18`3`s1||18`5`fungus||18`10`fungus||18`11`fungus||18`17`fungus||19`7`s1||19`8`s1||19`15`s1||19`16`s1||20`11`s1||20`16`s1||20`17`s1';
makeObjectsArray(v1);
standardPathway('up', 307);
standardPathway('down', 316);
break;
case 311:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
makeObject(4, 10, 'plasmarock', 31);
var v1 = '1`3`s1||1`4`s1||1`9`fungus||1`11`fungus||2`8`fungus||2`9`s1||2`10`s1||2`11`s1||2`12`s1||2`14`fungus||3`6`fungus||3`8`s1||3`13`s1||3`16`s1||3`17`s1||4`1`s1||4`2`s1||4`7`s1||4`8`s1||4`14`s1||4`15`fungus||4`16`s1||4`17`s1||5`1`s1||5`7`s1||5`14`s1||6`6`fungus||6`7`s1||6`14`s1||6`15`fungus||7`7`fungus||7`8`s1||7`13`s1||7`14`fungus||7`19`s1||8`6`fungus||8`7`fungus||8`8`fungus||8`14`fungus||8`16`fungus||8`19`s1||8`20`s1||9`8`fungus||9`9`fungus||9`13`fungus||9`15`fungus||9`20`s1||9`21`s1||10`14`fungus||10`15`fungus||11`8`fungus||12`14`fungus||13`14`fungus||13`20`s1||14`1`s1||14`8`fungus||14`20`s1||15`1`s1||15`14`fungus||15`19`s1||15`20`s1||16`1`s1||19`17`s1||19`18`s1||20`5`s1||20`6`s1';
makeObjectsArray(v1);
standardPathway('right', 312);
break;
case 312:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`6`s1||2`4`s1||2`5`s1||2`14`s1||3`3`s1||3`14`s1||4`3`s1||4`17`s1||4`18`s1||5`6`lamp`0>0>0||6`2`s1||6`19`s1||7`19`s1||8`1`s1||15`2`s1||16`2`s1||16`3`s1||16`20`s1||16`21`s1||17`2`s1||17`3`s1||18`2`s1||19`2`s1||19`6`s1||19`17`s1||19`18`s1||20`5`s1||21`16`s1';
makeObjectsArray(v1);
standardPathway('left', 311);
standardPathway('right', 313);
standardPathway('up', 308);
standardPathway('down', 318);
break;
case 313:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`5`s1||1`18`s1||2`2`s1||2`4`s1||2`5`s1||2`17`s1||2`18`s1||3`2`s1||4`1`s1||4`7`cart||4`18`s1||4`19`s1||4`20`s1||5`3`s1||5`17`s1||5`18`s1||6`3`s1||6`4`s1||6`17`s1||7`3`s1||7`4`s1||7`15`t1||7`17`s1||7`18`s1||8`15`t1||8`18`s1||9`18`s1||9`19`s1||10`19`s1||11`3`s1||11`19`s1||12`3`s1||12`4`s1||12`18`s1||13`4`s1||13`18`s1||13`19`s1||14`7`t1||14`19`s1||15`2`s1||15`3`s1||15`7`t1||15`18`s1||16`2`s1||16`7`t1||16`18`s1||17`2`s1||17`3`s1||18`4`s1||18`17`s1||19`2`s1||19`16`s1||19`17`s1||20`6`s1||20`16`s1||20`17`s1||21`15`s1||21`16`s1';
makeObjectsArray(v1);
standardPathway('left', 312);
standardPathway('right', 314);
break;
case 314:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`7`t1||1`8`t1||1`13`t1||1`14`t1||2`2`s1||2`3`s1||2`16`s1||3`16`s1||3`17`s1||3`18`s1||3`19`s1||4`2`s1||4`19`s1||5`2`s1||5`5`cart||6`20`t1||7`20`t1||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`t1||15`20`t1||16`5`cart||17`1`s1||17`2`s1||18`2`s1||18`19`s1||19`19`s1||20`6`t1||20`7`t1||20`15`t1||20`16`t1';
makeObjectsArray(v1);
if (quest_11.prog == 0) {
var tileString = '8`7||8`8||8`9||8`10||8`11||8`12||8`14||9`7||9`14||10`7||10`14||11`7||11`14||12`7||12`14||13`7||13`14||14`8||14`9||14`10||14`11||14`12||14`13||14`14';
makeChatTilesArray(tileString, 'billy_2', 'talk');
}
standardPathway('center', 202, undefined, 'lift_up');
standardPathway('left', 313);
standardPathway('right', 315);
standardPathway('up', 309);
standardPathway('down', 319);
break;
case 315:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '3`4`s1||3`5`s1||3`17`s1||4`17`s1||5`2`s1||5`3`s1||5`5`fungus||5`16`fungus||5`19`fungus||6`2`s1||6`5`fungus||6`16`fungus||8`19`s1||9`18`s1||9`19`s1||11`4`s1||12`4`s1||12`17`s1||12`18`s1||13`4`s1||13`18`s1||14`6`fungus||14`18`s1||15`6`fungus||15`17`s1||16`17`s1||17`5`s1||18`4`s1||19`4`s1||19`17`s1';
makeObjectsArray(v1);
standardPathway('left', 314);
standardPathway('right', 316);
break;
case 316:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`3`s1||1`4`s1||2`3`s1||3`17`s1||3`18`s1||4`18`s1||5`1`s1||6`20`s1||7`1`s1||7`20`s1||16`1`s1||16`19`s1||16`20`s1||16`21`s1||17`1`s1||18`2`s1||18`15`cart||18`18`s1||18`19`s1||20`4`s1||20`17`s1||20`18`s1||21`17`s1';
makeObjectsArray(v1);
standardPathway('left', 315);
standardPathway('right', 317);
standardPathway('up', 310);
standardPathway('down', 320);
break;
case 317:
encounterRate = 20;
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`5`s1||1`6`s1||1`14`s1||1`15`s1||2`2`s1||2`4`s1||2`5`s1||2`15`s1||3`1`s1||3`14`s1||3`15`s1||4`1`s1||4`14`s1||5`1`s1||5`13`s1||5`14`s1||6`10`s1||6`11`s1||6`12`s1||6`13`s1||6`14`s1||6`15`s1||6`16`s1||6`17`s1||7`1`s1||7`9`s1||7`10`s1||7`11`fungus||7`13`fungus||7`16`fungus||7`17`s1||8`9`s1||8`18`s1||9`1`s1||9`9`s1||9`10`fungus||9`11`chest$f`ITEMS$I003R$38||9`19`s1||10`1`s1||10`9`s1||10`14`sign$f`Plasma rock depleted here.||10`18`fungus||10`19`s1||11`9`s1||11`10`fungus||11`20`s1||12`1`s1||12`9`s1||12`10`s1||12`20`s1||13`10`s1||13`11`s1||13`12`s1||13`13`s1||13`14`fungus||14`12`s1||14`13`s1||15`20`s1||16`20`s1||17`5`s1||18`19`s1||19`15`s1||20`9`s1||20`10`s1||20`12`s1||20`15`s1||21`11`s1||21`13`s1';
makeObjectsArray(v1);
standardPathway('left', 316);
break;
case 318:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '2`17`s1||2`18`s1||2`19`s1||3`2`s1||3`3`s1||3`11`s1||3`12`s1||3`13`s1||3`14`s1||3`15`s1||3`16`s1||4`2`s1||4`4`s1||4`5`s1||4`6`s1||4`8`s1||4`9`s1||4`10`s1||4`11`s1||4`12`s1||4`13`s1||5`5`t1||5`6`t1||5`10`s1||5`11`s1||5`12`s1||5`13`s1||6`17`t1||6`18`t1||15`4`s1||15`9`t1||15`10`t1||15`16`s1||15`19`s1||16`4`s1||16`6`s1||16`14`s1||16`15`s1||16`16`s1||16`19`s1||17`4`s1||17`5`s1||17`6`s1||17`8`s1||17`9`s1||17`10`s1||17`11`s1||17`12`s1||17`13`s1||18`7`s1||18`10`s1||18`12`s1||18`13`s1||18`14`s1||18`15`s1||18`16`s1||18`17`s1||19`2`s1||19`3`s1||19`4`s1||19`6`s1||19`7`s1||19`8`s1||19`10`s1||19`12`s1||19`14`s1||19`15`s1||19`17`s1||19`18`s1||19`19`s1||19`20`s1';
makeObjectsArray(v1);
standardPathway('up', 312);
standardPathway('down', 321);
break;
case 319:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '3`17`s1||3`18`s1||3`19`s1||4`1`s1||4`3`s1||4`4`s1||4`5`s1||4`6`s1||4`12`s1||4`13`s1||4`14`s1||5`2`s1||5`6`s1||5`7`s1||5`11`s1||5`12`s1||5`18`fungus||5`19`fungus||6`7`s1||6`8`s1||6`9`s1||6`10`s1||6`11`s1||6`12`s1||7`8`s1||7`9`s1||7`14`fungus||8`9`rock||9`9`rock||10`9`rock||11`9`rock||12`9`s1||12`10`s1||12`11`s1||13`8`s1||13`9`s1||13`10`s1||13`11`s1||13`12`s1||14`7`s1||14`8`s1||14`13`s1||14`14`s1||15`1`s1||15`5`s1||15`6`s1||15`7`s1||15`15`s1||15`16`s1||15`19`fungus||16`1`s1||16`2`s1||16`3`s1||16`4`s1||16`5`s1||17`4`s1||18`8`s1||18`9`s1||18`10`s1||18`11`s1||18`17`s1||18`18`s1||18`19`s1||19`17`s1';
makeObjectsArray(v1);
standardPathway('up', 314);
standardPathway('down', 323);
break;
case 320:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '3`2`s1||3`3`s1||3`15`s1||3`16`s1||3`17`s1||3`18`s1||4`4`s1||4`5`s1||4`13`s1||4`14`s1||4`15`s1||5`11`s1||5`12`s1||5`13`s1||6`3`s1||6`4`s1||6`11`s1||7`4`s1||7`5`s1||7`6`s1||7`7`s1||7`8`s1||7`9`s1||7`10`s1||7`11`s1||7`12`s1||7`16`lamp`0>0>0||8`10`s1||15`20`s1||16`19`s1||16`20`s1||17`1`s1||18`2`s1||18`3`s1||18`4`s1||18`5`s1||18`6`s1||18`7`s1||18`8`s1||18`9`s1||18`15`s1||18`16`s1||19`2`s1||19`3`s1||19`13`s1||19`14`s1||19`15`s1||19`16`s1||19`17`s1||19`18`s1||19`19`s1||20`3`s1||20`4`s1||20`5`s1||20`6`s1||20`7`s1';
makeObjectsArray(v1);
standardPathway('up', 316);
standardPathway('down', 325);
break;
case 321:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '2`2`fungus||2`3`fungus||3`2`fungus||3`10`s1||3`11`s1||3`12`s1||3`13`s1||4`6`s1||4`7`s1||4`8`s1||4`9`s1||4`10`s1||4`13`s1||4`14`s1||5`5`s1||5`6`s1||5`15`s1||5`16`s1||6`2`s1||6`3`s1||6`4`s1||6`16`s1||6`17`s1||6`19`fungus||7`2`s1||7`17`s1||7`19`fungus||7`20`fungus||8`18`s1||9`18`s1||9`19`s1||10`19`s1||11`19`s1||12`19`fungus||12`20`fungus||13`3`s1||13`4`s1||13`5`s1||14`1`s1||14`2`s1||14`3`s1||14`5`s1||14`6`s1||15`1`s1||15`6`s1||15`21`s1||16`1`s1||16`2`s1||16`6`s1||16`21`s1||17`5`s1||17`6`s1||17`21`s1||18`5`s1||18`21`s1||19`2`fungus||19`5`s1||19`20`s1||19`21`s1||20`5`s1||20`20`s1||21`5`s1||21`17`s1||21`18`s1||21`19`s1';
makeObjectsArray(v1);
standardPathway('right', 322);
standardPathway('up', 318);
break;
case 322:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`3`s1||1`6`s1||1`17`s1||2`3`s1||2`5`s1||2`6`s1||2`15`s1||2`17`s1||2`18`s1||3`15`s1||3`18`s1||4`4`s1||4`6`cart||4`15`s1||4`18`s1||5`4`s1||5`15`s1||5`18`s1||6`4`s1||6`18`s1||7`4`s1||7`6`s1||7`15`s1||7`18`s1||8`3`s1||8`6`s1||8`15`s1||9`3`s1||10`3`s1||11`3`s1||12`3`s1||12`17`s1||12`18`s1||13`3`s1||13`18`s1||14`18`s1||15`17`s1||15`18`s1||16`17`s1||17`4`s1||17`17`s1||18`4`s1||19`4`s1||19`16`s1||20`16`s1||21`5`s1||21`16`s1';
makeObjectsArray(v1);
standardPathway('left', 321);
standardPathway('right', 323);
break;
case 323:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`4`s1||1`16`s1||2`4`s1||2`5`s1||2`7`fungus||2`16`s1||2`17`s1||3`5`s1||3`6`fungus||3`7`fungus||3`17`s1||3`18`s1||4`4`s1||4`18`s1||4`19`s1||6`1`fungus||7`16`lamp`20>20>20||7`19`wall||7`20`s1||8`19`wall||8`20`wall||8`21`wall||14`19`wall||14`20`wall||14`21`wall||15`19`wall||17`1`s1||17`2`s1||17`18`s1||18`3`s1||18`18`s1||19`4`s1||19`5`fungus||19`6`fungus||19`18`fungus||19`19`fungus||20`6`fungus';
makeObjectsArray(v1);
standardPathway('left', 322);
standardPathway('right', 324);
standardPathway('up', 319);
standardPathway('down', 326);
break;
case 324:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`3`s1||1`6`fungus||2`3`s1||2`6`fungus||3`3`s1||3`17`s1||4`3`s1||4`17`s1||4`18`s1||5`3`s1||5`6`s1||5`18`s1||6`3`s1||6`6`s1||6`16`fungus||6`17`s1||6`18`s1||7`6`s1||7`15`fungus||7`16`fungus||7`17`s1||8`6`s1||8`17`s1||9`6`s1||10`18`fungus||11`6`fungus||11`16`s1||11`18`fungus||12`6`fungus||12`16`s1||14`20`s1||14`21`s1||15`3`s1||15`7`fungus||15`18`s1||15`21`s1||16`3`s1||16`5`s1||16`18`s1||17`3`s1||17`4`s1||17`5`s1||17`6`s1||18`4`s1||18`6`s1||19`20`s1||20`15`s1||20`19`s1||20`20`s1||21`15`s1';
makeObjectsArray(v1);
standardPathway('left', 323);
standardPathway('right', 325);
break;
case 325:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
var v1 = '1`4`s1||2`3`s1||3`2`s1||3`4`s1||3`8`rock||3`19`s1||4`1`s1||4`4`s1||4`5`s1||4`19`s1||5`1`s1||5`3`s1||5`4`s1||5`5`s1||5`19`s1||6`4`s1||6`5`s1||6`6`s1||7`5`s1||7`6`s1||7`7`s1||7`16`rock||7`19`s1||8`6`s1||8`7`s1||8`8`s1||8`19`s1||9`8`s1||9`19`s1||10`18`s1||10`19`s1||11`18`s1||12`18`s1||13`18`s1||14`18`s1||15`15`s1||15`16`s1||15`18`s1||16`16`s1||16`17`s1||16`19`s1||16`20`s1||17`6`rock||17`7`rock||17`8`rock||17`17`s1||17`18`s1||17`19`s1||18`1`s1||18`17`s1||18`18`s1||18`19`s1||19`1`s1||19`4`s1||19`5`s1||19`6`s1||19`7`s1||19`10`rock||19`14`s1||19`17`s1||19`18`s1||20`13`s1||20`18`s1';
makeObjectsArray(v1);
standardPathway('left', 324);
standardPathway('up', 320);
break;
case 326:
mSet = 'lazlo_3';
areaName = 'Lazlo Mine Level 3';
makeObject(9, 16, 'plasmarock', 32);
var v1 = '3`7`cart||3`9`cart||3`14`lamp`10>30>10||4`18`cart||6`1`wall||6`2`wall||6`8`lamp||7`2`wall||7`3`wall||7`4`wall||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`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||14`3`wall||14`4`wall||15`1`wall||15`2`wall||15`13`rock||16`10`lamp`10>30>10||16`13`fungus||16`17`fungus||18`4`cart||18`8`cart||18`13`fungus||18`17`fungus||18`18`cart||19`14`fungus||19`16`fungus||19`17`rock';
makeObjectsArray(v1);
standardPathway('up', 323);
break;
case 400:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '2`5`s1||2`10`s1||3`5`s1||3`7`s1||3`8`s1||3`10`s1||3`11`s1||3`16`s1||4`5`s1||4`11`s1||4`12`s1||5`3`s1||5`14`rock||6`2`s1||6`3`s1||6`7`rock||6`10`rock||6`11`rock||6`17`s1||6`18`s1||6`19`s1||7`4`rock||7`5`rock||7`13`rock||7`20`s1||8`4`rock||8`13`rock||8`14`rock||8`21`s1||10`4`rock||11`4`rock||12`2`s1||12`4`rock||13`2`s1||13`4`rock||13`15`rock||13`16`rock||14`2`s1||14`3`s1||14`5`rock||14`15`rock||14`21`s1||15`3`s1||15`5`rock||15`14`rock||15`20`s1||15`21`s1||16`10`rock||16`11`rock||16`13`rock||16`18`s1||16`19`s1||17`8`rock||17`10`rock||17`11`rock||17`19`s1||17`20`s1||18`5`s1||18`16`s1||19`5`s1||19`15`s1||19`16`s1||20`9`s1||20`10`s1';
makeObjectsArray(v1);
standardPathway('center', 301, undefined, 'lift_up');
standardPathway('down', 401);
break;
case 401:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '3`6`s1||3`7`s1||3`9`s1||4`1`s1||4`5`s1||4`6`s1||4`9`s1||4`10`s1||4`19`s1||4`20`s1||4`21`s1||5`1`s1||5`2`s1||5`3`s1||5`5`s1||5`12`s1||5`13`s1||5`14`s1||5`15`s1||5`16`s1||5`18`s1||5`19`s1||6`1`s1||6`2`s1||6`3`s1||6`8`rock||6`11`s1||6`12`s1||7`17`rock||7`18`rock||8`11`sign`These caverns have not been properly explored.||16`1`s1||16`21`s1||17`2`s1||18`2`s1||18`5`s1||18`10`rock||18`18`s1||18`19`s1||18`20`s1||18`21`s1||19`2`s1||19`3`s1||19`5`s1||19`6`s1||19`7`s1||19`8`s1||19`9`s1||19`12`s1||19`13`s1||19`14`s1||19`15`s1||19`17`s1||19`18`s1';
makeObjectsArray(v1);
standardPathway('up', 400);
standardPathway('down', 402);
break;
case 402:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '3`10`s1||3`14`s1||3`20`s1||4`1`s1||4`2`s1||4`3`s1||4`5`s1||4`7`s1||4`8`s1||4`9`s1||4`10`s1||4`12`s1||4`14`s1||4`15`s1||4`17`s1||4`18`s1||4`19`s1||4`20`s1||5`10`s1||5`15`s1||6`7`s1||6`8`s1||6`9`s1||6`10`s1||6`14`s1||6`15`s1||8`12`rock||10`15`rock||12`15`rock||13`14`rock||14`14`rock||16`12`rock||17`2`s1||18`1`s1||18`11`rock||18`17`s1||18`20`s1||18`21`s1||19`1`s1||19`3`s1||19`6`s1||19`17`s1||19`19`s1||20`6`s1||20`7`s1||20`8`s1||20`12`s1||20`13`s1||20`14`s1||20`15`s1||20`16`s1';
makeObjectsArray(v1);
standardPathway('up', 401);
standardPathway('down', 403);
break;
case 403:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '1`6`s1||1`17`s1||2`6`s1||3`4`s1||3`5`s1||3`18`s1||4`3`s1||4`4`s1||4`18`s1||5`1`s1||5`2`s1||5`6`fungus||6`16`fungus||6`18`s1||6`20`s1||6`21`s1||7`21`s1||8`18`s1||9`20`s1||10`20`s1||11`18`s1||11`19`s1||12`18`s1||14`17`s1||14`18`s1||14`19`s1||15`14`fungus||16`17`s1||17`1`s1||17`8`fungus||17`9`fungus||17`17`s1||18`2`s1||18`4`s1||18`5`s1||18`11`s1||18`15`s1||18`16`s1||18`17`s1||19`5`s1||19`9`s1||19`11`s1||19`13`s1||19`14`s1||19`15`s1||20`8`s1||20`9`s1||21`4`s1||21`5`s1||21`6`s1||21`7`s1';
makeObjectsArray(v1);
standardPathway('up', 402);
standardPathway('left', 404);
break;
case 404:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '1`4`s1||1`5`s1||1`6`s1||1`15`s1||1`17`s1||2`4`s1||2`5`s1||2`18`s1||3`18`s1||4`4`s1||4`6`rock||4`18`s1||5`2`s1||5`3`s1||5`4`s1||5`17`s1||5`18`s1||6`2`s1||6`15`rock||6`17`s1||6`18`s1||7`17`s1||8`17`s1||9`2`s1||9`17`s1||10`2`s1||10`3`s1||11`3`s1||11`16`s1||11`17`s1||11`19`s1||12`3`s1||12`17`s1||13`3`s1||13`6`rock||13`17`s1||14`3`s1||14`4`s1||14`6`rock||14`17`s1||15`4`s1||15`15`s1||15`17`s1||15`18`s1||16`4`s1||16`15`s1||16`17`s1||17`4`s1||17`15`s1||17`17`s1||18`3`s1||18`4`s1||18`15`s1||18`17`s1||19`3`s1||19`15`s1||19`16`s1||19`19`s1||21`4`s1';
makeObjectsArray(v1);
standardPathway('left', 405);
standardPathway('right', 403);
break;
case 405:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '1`3`s1||1`5`s1||1`16`s1||2`3`s1||2`5`s1||2`16`s1||3`2`s1||3`3`s1||3`7`rock||3`18`s1||3`19`s1||4`2`s1||4`7`rock||4`18`s1||5`2`s1||5`16`fungus||5`18`s1||6`2`s1||6`4`s1||6`15`rock||6`18`s1||7`2`s1||7`4`s1||7`16`fungus||7`18`s1||8`6`fungus||8`18`s1||9`3`s1||9`6`fungus||9`18`s1||9`19`s1||10`3`s1||10`18`s1||10`19`s1||11`3`s1||11`19`s1||12`3`s1||12`18`s1||12`19`s1||13`2`s1||13`4`fungus||13`18`s1||14`1`s1||14`2`s1||14`3`s1||14`7`rock||14`18`s1||15`2`s1||15`18`s1||16`2`s1||16`4`s1||16`18`s1||17`2`s1||17`4`s1||17`16`s1||17`18`s1||18`3`s1||18`4`s1||18`16`s1||19`3`s1||19`16`s1||19`17`s1||20`3`s1||20`16`s1||21`16`s1';
makeObjectsArray(v1);
standardPathway('left', 406);
standardPathway('right', 404);
break;
case 406:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '3`9`fungus||4`13`fungus||4`15`fungus||5`4`fungus||5`12`rock||5`16`fungus||6`8`fungus||6`12`rock||7`12`fungus||7`16`fungus||8`1`s1||8`2`s1||8`3`s1||8`13`rock||8`14`fungus||8`15`fungus||8`18`fungus||9`3`s1||9`4`s1||9`5`s1||10`5`s1||10`6`s1||11`6`s1||11`7`s1||11`8`rock||12`7`s1||12`8`rock||12`9`rock||13`8`rock||13`9`s1||13`10`s1||14`10`s1||14`11`s1||15`11`s1||15`12`s1||15`17`fungus||16`12`s1||16`17`fungus||17`12`s1||17`13`s1||17`14`s1||18`1`s1||18`14`s1||18`15`s1||19`2`s1||19`14`s1||20`2`s1||20`3`s1||20`14`s1||21`4`s1||21`5`s1||21`14`s1';
makeObjectsArray(v1);
makeObject(6, 14, 'plasmarock', 33);
standardPathway('up', 407);
standardPathway('right', 405);
break;
case 407:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '2`6`rock||3`10`s1||3`18`rock||4`4`s1||4`5`s1||4`16`s1||5`1`s1||5`2`s1||5`3`s1||5`4`s1||5`5`s1||5`6`s1||5`7`s1||5`8`s1||5`9`s1||5`11`s1||5`13`s1||5`14`s1||5`15`s1||5`16`s1||5`17`s1||5`18`s1||5`19`s1||5`21`s1||6`2`s1||6`3`s1||6`7`s1||6`12`s1||6`13`s1||6`15`s1||6`20`s1||6`21`s1||7`1`s1||7`2`s1||7`12`s1||7`13`s1||16`1`s1||16`2`s1||16`11`s1||16`19`s1||17`2`s1||17`3`s1||17`4`s1||17`5`s1||17`6`s1||17`7`s1||17`8`s1||17`11`s1||17`13`s1||17`14`s1||17`16`s1||17`17`s1||17`18`s1||17`19`s1||17`20`s1||17`21`s1||18`7`s1||18`9`s1||18`10`s1||18`11`s1||18`13`s1||18`14`s1||18`15`s1||18`16`s1||18`19`s1||19`3`rock||19`14`s1';
makeObjectsArray(v1);
standardPathway('up', 408);
standardPathway('down', 406);
break;
case 408:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '3`2`s1||3`5`s1||3`6`s1||3`8`s1||3`18`s1||3`20`s1||4`1`s1||4`4`s1||4`6`s1||4`7`s1||4`8`s1||4`11`s1||4`14`s1||4`16`s1||4`17`s1||4`18`s1||4`20`s1||5`3`s1||5`9`rock||5`11`s1||5`12`s1||5`13`fungus||5`14`fungus||5`18`s1||5`19`s1||5`20`s1||6`2`rock||6`7`fungus||6`16`s1||6`19`fungus||7`11`scrapluna$f||15`17`fungus||16`2`s1||16`5`rock||16`7`s1||16`10`fungus||16`15`s1||16`21`s1||17`1`s1||17`2`s1||17`4`s1||17`18`s1||17`19`s1||17`20`s1||17`21`s1||18`1`s1||18`4`s1||18`5`s1||18`6`s1||18`7`s1||18`8`s1||18`10`s1||18`12`s1||18`13`s1||18`14`s1||18`15`s1||18`16`s1||18`17`s1||19`3`fungus||19`7`s1||19`8`s1||19`13`s1';
makeObjectsArray(v1);
standardPathway('up', 409);
standardPathway('down', 407);
break;
case 409:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '2`9`s1||2`10`s1||2`11`s1||2`12`s1||3`7`s1||3`8`s1||3`13`s1||4`7`s1||4`13`s1||5`10`fungus||5`14`s1||5`18`s1||6`6`fungus||6`15`s1||7`3`s1||7`4`s1||8`3`s1||9`2`s1||10`1`s1||10`4`fungus||12`2`s1||12`16`s1||13`3`s1||13`4`s1||13`15`s1||13`16`s1||14`5`s1||14`17`s1||15`6`s1||15`12`s1||15`18`s1||16`11`s1||16`12`s1||16`18`s1||17`13`s1||17`18`s1||17`20`s1||18`5`s1||18`6`s1||18`14`s1||18`15`s1||18`16`s1||18`17`s1||18`18`s1||18`19`s1||19`17`s1||21`17`s1';
makeObjectsArray(v1);
standardPathway('right', 410);
standardPathway('down', 408);
break;
case 410:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '1`3`s1||1`17`s1||2`3`s1||2`6`fungus||2`17`s1||2`18`s1||3`3`s1||3`18`s1||4`3`s1||4`18`s1||5`17`s1||5`18`s1||6`7`cart||6`16`s1||6`17`s1||7`5`s1||7`16`s1||8`5`s1||8`16`s1||9`6`s1||9`17`fungus||10`6`s1||11`6`s1||11`17`s1||12`6`s1||12`17`s1||13`5`s1||13`6`s1||13`17`s1||13`18`s1||14`5`s1||14`6`s1||14`18`s1||15`4`s1||15`5`s1||15`18`s1||16`2`s1||16`3`s1||17`2`s1||17`18`s1||18`1`s1||18`3`fungus||19`1`s1||19`2`s1||19`16`s1||19`17`s1||20`2`s1||20`15`s1||20`16`s1||21`2`s1||21`14`s1';
makeObjectsArray(v1);
standardPathway('left', 409);
standardPathway('right', 411);
break;
case 411:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '1`5`s1||1`17`s1||2`5`s1||2`17`s1||2`18`s1||3`5`s1||3`6`s1||3`18`s1||3`19`s1||4`19`s1||4`20`s1||4`21`s1||5`21`s1||6`4`s1||6`5`s1||7`4`s1||8`1`s1||8`2`s1||8`3`s1||10`1`s1||10`3`fungus||11`1`s1||11`7`fungus||12`1`s1||13`1`s1||13`3`fungus||14`1`s1||15`5`fungus||15`14`s1||15`15`s1||15`16`s1||15`18`s1||15`19`s1||15`20`s1||16`3`s1||16`13`s1||16`14`s1||16`20`s1||16`21`s1||17`4`s1||17`5`s1||17`6`s1||17`7`s1||17`13`s1||18`8`s1||18`9`s1||18`10`s1||18`12`s1';
makeObjectsArray(v1);
standardPathway('left', 410);
standardPathway('down', 412);
break;
case 412:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '2`7`rock||2`8`rock||2`17`s1||2`18`s1||2`19`s1||2`20`s1||3`1`s1||3`16`s1||3`17`s1||4`1`s1||4`2`s1||4`16`s1||5`2`s1||5`3`s1||5`4`s1||5`15`s1||5`16`s1||6`4`s1||6`5`s1||6`6`s1||6`7`s1||6`14`s1||6`15`s1||6`18`rock||7`7`s1||7`8`s1||7`9`s1||7`10`s1||7`11`s1||7`12`s1||7`13`s1||7`18`rock||9`10`sign`Some strange structures have been discovered ahead...||15`1`s1||15`21`s1||16`1`s1||16`2`s1||16`20`s1||16`21`s1||17`2`s1||17`3`s1||17`19`s1||17`20`s1||18`5`s1||18`6`s1||18`7`s1||18`17`s1||18`18`s1||18`19`s1||19`4`rock||19`8`s1||19`9`s1||19`10`s1||19`11`s1||19`13`s1||19`14`s1||19`15`s1||19`16`s1||20`12`s1||20`13`s1';
makeObjectsArray(v1);
standardPathway('up', 411);
standardPathway('down', 413);
break;
case 413:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '1`16`s1||2`5`s1||2`6`s1||3`3`rock||3`4`s1||4`2`s1||4`16`rock||4`19`s1||7`15`s1||7`20`s1||8`15`s1||8`18`s1||9`18`s1||10`18`s1||11`11`s1||11`18`s1||12`16`s1||12`18`s1||13`16`s1||14`12`s1||15`10`s1||16`15`s1||16`18`s1||17`1`s1||18`7`s1||18`9`rock||18`11`s1||19`1`s1||19`3`s1||19`5`s1||19`6`s1||19`12`s1||19`13`s1||20`5`s1';
makeObjectsArray(v1);
if (quest_30.prog == 0 && checkItemNumber('I006Q') >= 3) {
tileString = '1`4||2`5||3`5||3`6||4`6||4`7||5`7||5`8||6`8||6`9||7`9||7`10||8`10||8`11||9`11||9`12||10`12||10`13||11`13||11`14||12`14||12`15||13`15||13`16||14`16||14`17||15`17||15`18||16`18||16`19||17`19||17`20||18`20||18`21||19`21';
makeTilesArray(tileString);
makeChatTilesArray(tileString, 'worm_boss_0', 'talkshake');
}
standardPathway('up', 412);
standardPathway('left', 414);
break;
case 414:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '2`9`s1||2`10`s1||3`1`s1||3`2`s1||3`3`s1||3`4`s1||3`7`s1||3`8`s1||3`10`s1||3`11`s1||3`12`s1||3`13`s1||4`5`s1||4`6`s1||4`14`s1||5`2`rock||5`5`s1||5`10`rock||5`15`s1||6`5`s1||6`15`s1||7`15`s1||8`15`s1||9`14`s1||9`15`s1||10`14`s1||11`14`s1||12`14`s1||13`14`s1||13`15`s1||13`16`s1||13`17`s1||14`17`s1||15`1`s1||15`18`s1||15`19`s1||16`1`s1||16`19`s1||17`1`s1||17`16`rock||17`19`s1||18`1`s1||18`2`s1||18`3`s1||18`19`s1||19`3`s1||19`19`s1||20`3`s1||20`4`s1||20`18`s1||20`19`s1||21`5`s1||21`17`s1||21`18`s1';
makeObjectsArray(v1);
standardPathway('up', 415);
standardPathway('right', 413);
break;
case 415:
mSet = 'lazlo_4';
areaName = 'Lazlo Mine Level 4';
var v1 = '2`2`s1||2`6`s1||2`11`s1||2`12`s1||3`3`s1||3`6`s1||3`8`s1||3`11`s1||3`12`s1||3`19`rock||4`4`s1||4`5`s1||4`7`s1||4`8`s1||4`10`s1||4`11`s1||4`12`s1||4`14`s1||4`15`s1||4`16`s1||4`17`s1||5`1`s1||5`2`s1||5`3`s1||5`4`s1||5`6`s1||5`7`s1||5`9`s1||5`10`s1||5`11`s1||5`12`s1||5`13`s1||5`16`s1||5`17`s1||6`3`s1||6`4`s1||6`5`s1||6`7`s1||6`11`s1||6`12`s1||6`16`s1||6`20`s1||7`3`s1||7`15`s1||7`16`s1||7`18`s1||7`19`s1||7`20`s1||8`4`s1||8`15`s1||8`18`s1||9`2`s1||9`3`s1||9`4`s1||9`5`s1||10`3`s1||11`4`s1||11`5`s1||12`4`s1||12`14`s1||13`3`s1||13`15`s1||13`16`s1||14`2`s1||14`3`s1||14`4`s1||14`5`s1||14`6`s1||14`16`s1||14`19`s1||14`20`s1||15`13`s1||15`15`s1||15`18`s1||15`20`s1||16`4`s1||16`5`s1||16`7`s1||16`8`s1||16`10`s1||16`11`s1||16`12`s1||16`13`s1||16`14`s1||16`15`s1||16`20`s1||16`21`s1||17`4`s1||17`5`s1||17`8`s1||17`13`s1||17`16`s1||18`7`s1||18`8`s1||18`9`s1||18`10`s1||18`12`s1||18`13`s1||18`15`s1||18`18`rock||18`19`rock||19`3`rock||19`7`s1||19`8`s1||19`16`s1';
makeObjectsArray(v1);
standardPathway('center', 500, undefined, 'lift_down');
standardPathway('down', 414);
break;
case 500:
encounterRate = 'NONSAVE';
areaName = 'Lazlo Mine Level 5';
var v1 = '1`4`wall$f||1`17`wall$f||1`18`wall$f||2`4`wall$f||2`18`wall$f||3`4`wall$f||3`18`wall$f||4`4`wall$f||4`5`wall||4`6`wall||4`7`wall||4`14`wall||4`15`wall||4`16`wall||4`17`wall||4`18`wall$f||5`9`rock||6`1`s1||6`2`s1||6`8`rock||6`11`rock||6`13`rock||7`1`s1||7`8`rock||7`9`rock||7`12`rock||7`16`sign`For your own safety. Please do not proceed any further.||7`20`s1||7`21`s1||8`21`s1||10`1`s1||15`1`s1||16`1`s1||17`1`s1||17`2`s1||17`19`s1||17`20`s1||18`19`s1||20`5`s1||20`6`s1||20`15`s1||20`16`s1||20`17`s1';
makeObjectsArray(v1);
standardPathway('left', 501);
standardPathway('center', 415, undefined, 'lift_up');
break;
case 501:
encounterRate = 'NONSAVE';
areaName = 'Lazlo Mine Level 5';
var v1 = '1`3`wall$f||1`18`wall$f||2`1`fungus||2`3`wall$f||2`7`lamp`50>20>50||2`18`wall$f||3`3`wall$f||3`18`wall$f||3`20`fungus||4`3`wall$f||4`18`wall$f||5`3`wall$f||5`18`wall$f||6`3`wall$f||6`15`lamp`50>20>50||6`18`wall$f||7`3`wall$f||7`18`wall$f||8`3`wall$f||8`18`wall$f||9`3`wall$f||9`7`lamp`50>20>50||9`18`wall$f||10`3`wall$f||10`18`wall$f||11`3`wall$f||11`18`wall$f||12`3`wall$f||12`18`wall$f||13`3`wall$f||13`18`wall$f||14`3`wall$f||14`15`lamp`50>20>50||14`18`wall$f||15`3`wall$f||15`18`wall$f||15`20`fungus||16`3`wall$f||16`18`wall$f||17`3`wall$f||17`7`lamp`50>20>50||17`18`wall$f||18`3`wall$f||18`18`wall$f||19`3`wall$f||19`18`wall$f||19`19`fungus||20`3`wall$f||20`18`wall$f||21`3`wall$f||21`18`wall$f';
makeObjectsArray(v1);
standardPathway('left', 502);
standardPathway('right', 500);
break;
case 502:
encounterRate = 'NONSAVE';
areaName = 'Lazlo Mine Level 5';
var v1 = '1`3`wall$f||1`18`wall$f||2`1`s1||2`3`wall$f||2`7`lamp`50>20>50||2`18`wall$f||3`3`wall$f||3`18`wall$f||3`20`s1||4`3`wall$f||4`18`wall$f||5`3`wall$f||5`18`wall$f||6`3`wall$f||6`15`lamp`50>20>50||6`18`wall$f||7`3`wall$f||7`18`wall$f||7`20`fungus||8`3`wall$f||8`18`wall$f||9`3`wall$f||9`7`lamp`50>20>50||9`18`wall$f||10`3`wall$f||10`18`wall$f||11`3`wall$f||11`18`wall$f||12`3`wall$f||12`18`wall$f||13`3`wall$f||13`18`wall$f||14`3`wall$f||14`15`lamp`50>20>50||14`18`wall$f||15`3`wall$f||15`18`wall$f||16`3`wall$f||16`18`wall$f||16`19`s1||17`1`s1||17`3`wall$f||17`7`lamp`50>20>50||17`18`wall$f||18`3`wall$f||18`18`wall$f||19`3`wall$f||19`18`wall$f||20`3`wall$f||20`18`wall$f||20`20`s1||21`3`wall$f||21`18`wall$f';
makeObjectsArray(v1);
standardPathway('left', 503);
standardPathway('right', 501);
break;
case 503:
encounterRate = 'NONSAVE';
areaName = 'Lazlo Mine Level 5';
var v1 = '1`14`fungus||2`5`fungus||2`6`fungus||2`8`wall||2`9`wall||2`10`wall||2`11`wall||2`12`wall||3`8`wall$f||3`10`chest`ITEMS$A03$39||3`12`wall$f||4`3`wall||4`4`wall||4`5`wall||4`6`wall||4`7`wall||4`8`wall||4`12`wall||4`13`wall||4`14`wall||4`15`wall||4`16`wall||4`17`wall||4`18`wall||4`20`fungus||5`1`fungus||5`3`wall$f||5`18`wall$f||5`20`fungus||5`21`fungus||6`1`fungus||6`3`wall$f||6`18`wall$f||7`3`wall$f||7`18`wall$f||8`3`wall$f||8`18`wall$f||9`3`wall$f||9`18`wall$f||10`3`wall$f||10`18`wall$f||11`3`wall$f||11`18`wall$f||12`3`wall$f||12`18`wall$f||13`3`wall$f||13`18`wall$f||14`3`wall$f||14`18`wall$f||15`3`wall$f||15`18`wall$f||15`20`fungus||16`3`wall$f||16`18`wall$f||17`3`wall$f||17`7`lamp`50>20>50||17`14`lamp`50>20>50||17`18`wall$f||18`3`wall$f||18`18`wall$f||18`20`fungus||19`3`wall$f||19`18`wall$f||19`20`fungus||20`3`wall$f||20`7`lamp`50>20>50||20`14`lamp`50>20>50||20`18`wall$f||21`3`wall||21`18`wall';
makeObjectsArray(v1);
standardPathway('right', 502);
standardPathway('center', 504, undefined, 'lift_up');
break;
case 504:
encounterRate = 'NONSAVE';
areaName = 'Lazlo Mine Secret Entrance';
areaTerrain = 'jungle';
areaMusic = 'jungle';
var v1 = '3`2`grass||3`19`p1||4`5`p1||6`18`grass||8`17`Boulder||12`19`p1||15`3`Boulder||16`15`grass||16`17`Boulder||16`18`Boulder||18`4`grass||18`6`p1';
makeObjectsArray(v1);
standardPathway('left', -1, 12);
standardPathway('center', 503, undefined, 'lift_down');
environment = 'outdoor';
bgGraphics(areaTerrain, 'jungle', '', 'jungle', '', areaTerrain);
}
bgMusic(areaMusic);
}
}
frame 32 {
function map12(area) {
encounterRate = 'NONSAVE';
areaCharType = 'maw';
clearWorld('Blank');
areaName = 'Ancient Ruins';
areaTerrain = 'jungle';
areaMusic = 'jungle';
mapLocation = 12;
areaLocation = area;
changeSurroundBlank(1, 1);
environment = 'outdoor';
bgMusic(areaMusic);
switch (area) {
case 1:
objString = '1`8`wall$f||1`13`wall$f||2`1`wall$f||2`2`wall$f||2`8`wall$f||2`13`wall$f||2`19`wall$f||3`1`wall$f||3`8`wall||3`9`wall||3`10`wall||3`11`wall||3`12`wall||3`13`wall||3`16`grass||3`17`grass||4`5`grass||4`6`grass||5`11`sign`Access to ruins blocked.||5`19`wall$f||6`2`wall$f||6`18`wall$f||6`19`wall$f||6`20`wall$f||7`2`wall$f||7`5`repairstation||7`12`grass||7`18`wall$f||8`2`wall$f||8`8`grass||8`9`grass||8`10`grass||8`18`wall$f||9`2`wall$f||9`17`wall$f||10`2`wall$f||10`12`grass||10`13`grass||11`17`wall$f||12`1`wall||12`2`wall||12`3`wall||12`4`wall||12`16`wall||12`17`wall||12`18`wall||12`19`wall||12`20`wall||12`21`wall||13`4`wall||13`5`wall||13`6`wall||13`13`wall||13`14`wall||13`15`wall||13`16`wall||14`6`wall||14`7`wall||14`8`wall||14`13`wall||16`13`grass||16`20`p1||17`15`grass||17`16`grass||17`17`grass||18`8`grass||19`5`p1';
makeObjectsArray(objString);
makePathway(7, 6, 'Doorway', 'repairstation');
standardPathway('left', 2);
standardPathway('right', -1, 11);
bgGraphics(areaTerrain, '', '', 'sea', '', areaTerrain);
break;
case 2:
standardPathway('right', 1);
}
}
}
frame 32 {
isometricAS = function (maxx, maxz) {
this.maxx = maxx;
this.maxz = maxz;
this.theta = 30;
this.alpha = 45;
this.theta *= 0.0174532925199433;
this.alpha *= 0.0174532925199433;
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 v3 = ypp;
var v4 = xpp * this.cosAlpha + zpp * this.sinAlpha;
var v2 = zpp * this.cosAlpha - xpp * this.sinAlpha;
var v6 = v4;
var v5 = v3 * this.cosTheta - v2 * this.sinTheta;
return [v6, v5];
};
isometricAS.prototype.mapToIsoWorld = function (screenX, screenY) {
var v2 = (screenX / this.cosAlpha - screenY / this.sinAlpha * this.sinTheta) * (1 / (this.cosAlpha / this.sinAlpha + this.sinAlpha / this.cosAlpha));
var v3 = (1 / this.cosAlpha) * (screenX - v2 * this.sinAlpha);
return [v3, v2];
};
isometricAS.prototype.calculateDepth = function (x, y, z) {
var v4 = 5;
x = Math.abs(x) * v4;
y = Math.abs(y);
z = Math.abs(z) * v4;
var v2 = this.maxx;
var v5 = this.maxz;
var v7 = v2 * (v5 - 1) + x;
var v6 = v2 * (z - 1) + x + v7 * y;
return v6;
};
}
frame 32 {
function enterShop(shop, hideMenu, showWorld_param) {
questlog._visible = false;
savebox._visible = false;
inventory._visible = false;
areaNameClip._visible = false;
_global.action = 'talking';
worldMenu._visible = false;
if (!showWorld_param) {
hideWorld();
}
shopSystem.gotoAndStop('blank');
shopSystem.gotoAndStop(shop);
shopSystem._visible = true;
if (hideMenu) {
shopSystem.menu._visible = false;
}
bg.gotoAndStop(shop);
}
function exitShop() {
shopSystem._visible = false;
if (!talkingSystem._visible) {
_global.action = 'walking';
worldMenu._visible = true;
floor.mouseClickRegion._visible = true;
areaNameClip._visible = true;
}
bg.gotoAndStop(areaTerrain);
_level0.populate_inventory();
showWorld();
}
function hideWorld() {
floor._visible = false;
lighting._visible = false;
canopyClip._visible = false;
bgLeft._visible = false;
bgRight._visible = false;
bgUp._visible = false;
bgDown._visible = false;
}
function showWorld() {
floor._visible = true;
lighting._visible = true;
canopyClip._visible = true;
bgLeft._visible = true;
bgRight._visible = true;
bgUp._visible = true;
bgDown._visible = true;
}
}
frame 32 {
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;
if (newChar == 'malenpc' || newChar == 'femalenpc') {
floor['n' + charCount].newChar = newChar;
floor['n' + charCount].r1 = random(100);
floor['n' + charCount].g1 = random(100);
floor['n' + charCount].b1 = random(100);
floor['n' + charCount].r2 = random(100);
floor['n' + charCount].g2 = random(100);
floor['n' + charCount].b2 = random(100);
if (newChar == 'femalenpc') {
displayName = randomFemaleNPCnames[random(randomFemaleNPCnames.length)];
} else {
displayName = randomMaleNPCnames[random(randomMaleNPCnames.length)];
}
floor['n' + charCount].displayName = displayName;
}
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) {
if (!_level0.talkingSystem._visible) {
_level0.worldMenu._visible = false;
if (this.newChar == 'malenpc' || this.newChar == 'femalenpc') {
_level0.talkingSystem[newChar + '_1_1'].speaker = this.displayName;
}
_level0.talkingSystem.chatActivate(_level0.talkingSystem[newChar + '_1']);
_level0.talkingSystem._visible = true;
}
} 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;
break;
case 2:
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;
default:
}
}
--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 v2 = iso.mapToScreen(world[char].x, world[char].y, world[char].z);
world[char].clip._x = v2[0];
world[char].clip._y = v2[1];
}
function buildFloor(path, floorx, floorz) {
path.tile._visible = false;
world.tiles = [];
var v6 = 0;
var v2 = 1;
while (v2 <= floorx) {
var v1 = 1;
while (v1 <= floorz) {
if (v2 == 1) {
world.tiles[v1] = [];
}
var v9 = iso.calculateDepth(v1, v6, v2);
var v3 = 'cell' + v1 + '_' + v2;
path.attachMovie('tile', v3, v9);
var v4 = path[v3];
world.tiles[v1][v2] = {'x': v1, 'y': v6, 'z': v2, 'depth': v9, 'clip': v4};
var v7 = (v1 - 1) * world.cellWidth;
var v5 = -(v2 - 1) * world.cellWidth;
temp = iso.mapToScreen(v7, v6, v5);
v4._x = temp[0];
v4._y = temp[1];
++v1;
}
++v2;
}
}
function clearWorld(tileSet) {
floor._visible = true;
lighting._visible = true;
canopyClip._visible = true;
bgLeft._visible = true;
bgRight._visible = true;
bgUp._visible = true;
bgDown._visible = true;
if (areaCharType == 'pilot') {
world[player].clip.gotoAndStop(selectedPilot);
} else {
selectedMaw = getCharacterAttr('A001', 'botid');
world[player].clip.gotoAndStop(selectedMaw);
}
var v2 = 0;
while (v2 <= maxx) {
var v1 = 0;
while (v1 <= maxz) {
world.tiles[v2 + 1][v1 + 1].property = undefined;
world.tiles[v2 + 1][v1 + 1].type = undefined;
world.tiles[v2 + 1][v1 + 1].isObject = false;
world.tiles[v2 + 1][v1 + 1].clip.objects.gotoAndStop(1);
world.tiles[v2 + 1][v1 + 1].isPathway = false;
world.tiles[v2 + 1][v1 + 1].destination = -1;
world.tiles[v2 + 1][v1 + 1].neighbour = undefined;
world.tiles[v2 + 1][v1 + 1].destinationPositX = undefined;
world.tiles[v2 + 1][v1 + 1].destinationPositZ = undefined;
world.tiles[v2 + 1][v1 + 1].clip.innerTile.gotoAndStop(tileSet);
delete world.tiles[v2 + 1][v1 + 1].clip.onRelease;
++v1;
}
++v2;
}
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) {
var v3 = object.split('$');
world.tiles[x + 1][z + 1].isObject = true;
world.tiles[x + 1][z + 1].type = v3[0];
world.tiles[x + 1][z + 1].property = property;
if (v3[1]) {
world.tiles[x + 1][z + 1].clip.objects._xscale = -100;
} else {
world.tiles[x + 1][z + 1].clip.objects._xscale = 100;
}
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(v3[0]);
switch (v3[0]) {
case 'lamp':
var v5 = new Color(world.tiles[x + 1][z + 1].clip.objects.clip);
var v4 = property.split('>');
v5.setTransform({'ra': v4[0], 'ga': v4[1], 'ba': v4[2], 'aa': 100});
break;
case 'stand1':
var v5 = new Color(world.tiles[x + 1][z + 1].clip.objects.clip);
var v4 = property.split('>');
v5.setTransform({'ra': v4[0], 'ga': v4[1], 'ba': v4[2], 'aa': v4[3]});
break;
case 'sign':
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':
case 'grass2':
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 (_level0['quest_' + property].prog != 99) {
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 'chest':
var v6 = property.split('$');
if (_level0['quest_' + v6[2]].prog != 99) {
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) {
actionTakeItem(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 'plasmarock_old':
if (random(100) <= 25) {
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 'talk':
var v4 = property.split('>');
v3 = v4[0].split('$');
if (v3[1]) {
world.tiles[x + 1][z + 1].clip.objects._xscale = -100;
} else {
world.tiles[x + 1][z + 1].clip.objects._xscale = 100;
}
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(v3[0]);
world.tiles[x + 1][z + 1].property = v4[1];
world.tiles[x + 1][z + 1].clip.onRelease = function () {
if (Math.abs(this._x - world[player].clip._x) < 100 && Math.abs(this._y - world[player].clip._y) < 100) {
if (!_level0.talkingSystem._visible) {
actionTalk(x + 1, z + 1);
}
} 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);
}
};
break;
case 'chair':
}
}
function makeManyObjects(x, xnum, z, znum, object) {
var v2 = 0;
while (v2 < xnum) {
var v1 = 0;
while (v1 < znum) {
makeObject(x + v2, z + v1, object);
++v1;
}
++v2;
}
}
function makeObjectsArray(objString) {
var v2 = objString.split('||');
var v1 = 0;
while (v1 <= v2.length) {
obj = v2[v1].split('`');
makeObject(parseInt(obj[0]), parseInt(obj[1]), obj[2], obj[3]);
++v1;
}
}
function makeTilesArray(tileString) {
var v2 = tileString.split('||');
var v1 = 0;
while (v1 <= v2.length) {
tile = v2[v1].split('`');
world.tiles[parseInt(tile[0]) + 1][parseInt(tile[1]) + 1].clip.innerTile.gotoAndStop(tile[2]);
++v1;
}
}
function makeChatTilesArray(tileString, person, chatmode) {
var v2 = tileString.split('||');
var v1 = 0;
while (v1 <= v2.length) {
tile = v2[v1].split('`');
makePathway(parseInt(tile[0]), parseInt(tile[1]), 'blank', chatmode, undefined, undefined, person);
++v1;
}
}
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, image, 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;
world.tiles[x + 1][z + 1].neighbour = neighbour;
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(image);
}
function standardPathway(dir, destination, neighbour, specialtile) {
var v1 = 'Pathway';
if (destination == -1) {
v1 = 'MapPathway';
}
if (specialtile) {
v1 = specialtile;
}
switch (dir) {
case 'up':
makePathway(10, 0, v1, destination, 315, -580, neighbour);
makePathway(11, 0, v1, destination, 315, -580, neighbour);
break;
case 'down':
makePathway(10, 21, v1, destination, 315, -60, neighbour);
makePathway(11, 21, v1, destination, 315, -60, neighbour);
break;
case 'left':
makePathway(0, 10, v1, destination, 580, -310, neighbour);
makePathway(0, 11, v1, destination, 580, -310, neighbour);
break;
case 'right':
makePathway(21, 10, v1, destination, 70, -310, neighbour);
makePathway(21, 11, v1, destination, 70, -310, neighbour);
break;
case 'center':
makePathway(10, 10, v1, destination, 315, -260, neighbour);
}
}
function changeGroundTile(x, z, object) {
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop(object);
}
function changeManyGroundTiles(x, xnum, z, znum, object) {
var v2 = 0;
while (v2 < xnum) {
var v1 = 0;
while (v1 < znum) {
world.tiles[x + v2 + 1][z + v1 + 1].clip.innerTile.gotoAndStop(object);
++v1;
}
++v2;
}
}
function changeSurroundBlank(x, z) {
var v1 = 1;
while (v1 <= maxx) {
var v3 = 1;
while (v3 <= x) {
world.tiles[v1][v3].isObject = true;
world.tiles[v1][v3].clip.innerTile.gotoAndStop('Blank');
world.tiles[v1][maxx + 1 - v3].isObject = true;
world.tiles[v1][maxx + 1 - v3].clip.innerTile.gotoAndStop('Blank');
++v3;
}
var v2 = 1;
while (v2 <= z) {
world.tiles[v2][v1].isObject = true;
world.tiles[v2][v1].clip.innerTile.gotoAndStop('Blank');
world.tiles[maxx + 1 - v2][v1].isObject = true;
world.tiles[maxx + 1 - v2][v1].clip.innerTile.gotoAndStop('Blank');
++v2;
}
++v1;
}
}
function bgGraphics(main, left, right, up, down, canopy) {
bgColour('normalmode');
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(currentcanopy);
}
}
}
function bgColour(mode) {
var v1 = new Color(skyColor);
switch (environment) {
case 'indoor':
v1.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
lighting.gotoAndStop(1);
break;
case 'outdoor':
if (mode == 'normalmode') {
v1.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
skyColor.gotoAndStop('morning');
lighting.gotoAndStop('morning');
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
skyColor.gotoAndStop('afternoon');
lighting.gotoAndStop('afternoon');
} else {
skyColor.gotoAndStop('night');
lighting.gotoAndStop('night');
}
}
} else {
v1.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
skyColor.gotoAndPlay('morningtransit');
lighting.gotoAndPlay('morningtransit');
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
skyColor.gotoAndPlay('afternoontransit');
lighting.gotoAndPlay('afternoontransit');
} else {
skyColor.gotoAndPlay('nighttransit');
lighting.gotoAndPlay('nighttransit');
}
}
}
break;
case 'seacave':
lighting.gotoAndStop('seacave');
if (mode == 'normalmode') {
v1.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
skyColor.gotoAndStop('morning');
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
skyColor.gotoAndStop('afternoon');
} else {
skyColor.gotoAndStop('night');
}
}
} else {
v1.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (hh >= TIME_MORNING && hh < TIME_AFTERNOON) {
skyColor.gotoAndPlay('morningtransit');
} else {
if (hh >= TIME_AFTERNOON && hh < TIME_NIGHT) {
skyColor.gotoAndPlay('afternoontransit');
} else {
skyColor.gotoAndPlay('nighttransit');
}
}
}
}
}
function mapAction() {
var v4 = world[player].tempx + world[player].feelerx;
var v3 = Math.abs(world[player].tempz + world[player].feelerz);
var v1 = Math.ceil(v4 / world.cellWidth);
var v2 = Math.ceil(v3 / world.cellWidth);
if (world.tiles[v1][v2].isObject) {
mapActionCheck(v1, v2);
}
switch (world[player].frame) {
case 1:
++v1;
break;
case 2:
++v1;
--v2;
break;
case 3:
--v2;
break;
case 4:
--v1;
--v2;
break;
case 5:
--v1;
break;
case 6:
--v1;
++v2;
break;
case 7:
++v2;
break;
case 8:
++v1;
++v2;
}
if (world.tiles[v1][v2].isObject) {
mapActionCheck(v1, v2);
}
}
function mapActionCheck(x_tile, z_tile) {
switch (world.tiles[x_tile][z_tile].type) {
case 'sign':
actionReadSign(x_tile, z_tile);
break;
case 'grass':
case 'grass2':
actionCutGrass(x_tile, z_tile);
break;
case 'rock':
actionBlastRock(x_tile, z_tile);
break;
case 'chest':
actionTakeItem(x_tile, z_tile);
break;
case 'talk':
actionTalk(x_tile, z_tile);
break;
case 'plasmarock':
actionTakePlasmarock(x_tile, z_tile);
break;
case 'chair':
}
}
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() {
switch (mapLocation) {
case 0:
charAreaPosition('up');
map0(6);
break;
case 1:
charAreaPosition('down');
map1(1);
break;
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(208);
break;
case 11:
charAreaPosition('left');
map2(20);
}
break;
case 3:
charAreaPosition('down');
map3(18);
break;
case 4:
charAreaPosition('right');
map4(1);
break;
case 5:
charAreaPosition('up');
map5(1);
break;
case 6:
switch (mapLastPosit) {
case 2:
charAreaPosition('left');
map6(1);
break;
case 7:
charAreaPosition('right');
map6(1);
}
break;
case 7:
switch (mapLastPosit) {
case 6:
charAreaPosition('left');
map7(13);
break;
case 8:
charAreaPosition('up');
map7(1);
}
break;
case 8:
switch (mapLastPosit) {
case 7:
charAreaPosition('down');
map8(1);
break;
case 9:
charAreaPosition('left');
map8(1);
break;
case 10:
charAreaPosition('right');
map8(1);
}
break;
case 9:
charAreaPosition('right');
map9(0);
break;
case 10:
charAreaPosition('left');
map10(1);
break;
case 11:
switch (mapLastPosit) {
case 2:
charAreaPosition('right');
map11(1);
break;
case 12:
charAreaPosition('left');
map11(504);
}
break;
case 12:
charAreaPosition('right');
map12(1);
}
}
function actionBlastRock(x_tile, z_tile) {
var v2 = _level0.getActiveCharacters();
var v5 = false;
var v1 = 0;
while (v1 < v2.length) {
if (v2[v1].getAttribute('id') == 'A002') {
v5 = true;
}
++v1;
}
if (v5) {
playSound('explode');
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');
_level0['quest_' + world.tiles[x_tile][z_tile].property].prog = 99;
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 actionTakeItem(x_tile, z_tile) {
var v4 = world.tiles[x_tile][z_tile].property.split('$');
var v7 = v4[0];
var v3 = v4[1];
var v6 = v4[2];
var v5 = true;
switch (v7) {
case 'ENEMY':
startCombat();
break;
case 'CREDITS':
playSound('cash');
txter = 'You have found ' + int(v3) + ' credits!';
setCredits(int(v3) + 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);
break;
default:
if (_level0.addItem(v3, 1) == 'SUCCESS') {
playSound('grab');
if (v6) {
_level0['quest_' + v6].prog = 99;
}
populate_inventory();
txter = invenitem[v3].name + ' 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 {
v5 = false;
playSound('error');
txter = 'Found ' + invenitem[v3].name + '!\n But inventory is 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);
}
}
if (v5) {
world.tiles[x_tile][z_tile].clip.objects.gotoAndStop(world.tiles[x_tile][z_tile].type + '_opened');
world.tiles[x_tile][z_tile].type = undefined;
world.tiles[x_tile][z_tile].isObject = false;
delete world.tiles[x_tile][z_tile].clip.onRelease;
}
}
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');
if (random(5) == 0 && encounterRate != 0 && encounterRate != 'NONSAVE') {
world.tiles[x_tile][z_tile].property = 'ITEMS$I001R';
} else {
world.tiles[x_tile][z_tile].property = '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) {
actionTakeItem(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 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 v2 = iso.mapToIsoWorld(target._x, target._y);
var v4 = v2[0];
var v3 = v2[1];
world[player].tempx = v4;
world[player].tempz = v3;
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 v2 = iso.mapToIsoWorld(this._x, this._y);
var v4 = v2[0];
var v3 = v2[1];
world[player].tempx = v4;
world[player].tempz = v3;
positionCharacter(player);
if (world[player].clip.getDepth() < this.getDepth()) {
}
}
}
function actionTalk(x_tile, z_tile) {
talkingSystem.chatActivate(talkingSystem[world.tiles[x_tile][z_tile].property]);
talkingSystem._visible = true;
worldMenu._visible = false;
_global.action = 'talking';
}
function timing() {
if (timingdelay++ >= 30) {
timingdelay = 0;
if (++mm > 59) {
mm = 0;
if (++hh > 23) {
hh -= 24;
++dd;
}
if (hh == TIME_MORNING || hh == TIME_AFTERNOON || hh == TIME_NIGHT) {
bgColour('transitmode');
}
}
if (mm < 10) {
mmtxt = '0' + mm;
} else {
mmtxt = mm;
}
if (hh < 10) {
hhtxt = '0' + hh;
} else {
hhtxt = hh;
}
}
}
function timingRefresh() {
if (mm > 59) {
mm = 0;
++hh;
}
bgColour('normalmode');
if (hh > 23) {
hh -= 24;
++dd;
}
if (mm < 10) {
mmtxt = '0' + mm;
} else {
mmtxt = mm;
}
if (hh < 10) {
hhtxt = '0' + hh;
} else {
hhtxt = hh;
}
}
function resetmap() {
_level0['map' + _level0.mapLocation](_level0.areaLocation);
}
function shake(xStrength, yStrength, time) {
_level0._x = random(xStrength) - random(xStrength);
_level0._y = random(yStrength) - random(yStrength);
++_level0.shakeTime;
if (_level0.shakeTime == time) {
clearInterval(_level0.shakeI);
_level0.shakeTime = 0;
_level0._x = 0;
_level0._y = 0;
}
}
function shakefunction(intervaltime, xStrength, yStrength, time) {
clearInterval(shakeI);
_level0.shakeTime = 0;
_level0.shakeI = setInterval(_level0.shake, intervaltime, xStrength, yStrength, time);
}
function worldClicked(char, xm, ym) {
var v7 = iso.mapToIsoWorld(xm, ym);
xm = v7[0];
var v3 = v7[1];
if (_global.action == 'walking') {
if (xm >= 0 && xm <= world.width && v3 >= world.length && v3 <= 0) {
var v13 = world[char].x;
var v12 = world[char].z;
world[char].startx = v13;
world[char].startz = v12;
world[char].endx = xm;
world[char].endz = v3;
var v8 = 45;
var v6 = Math.atan2(v3 - v12, xm - v13);
var v5 = v6 * 180 / Math.PI;
v5 += v8 / 2;
if (v5 < 0) {
v5 += 360;
}
var v9 = Math.ceil(v5 / v8);
world[char].clip.char.gotoAndStop('walk' + v9);
world[char].frame = v9;
world[char].moving = true;
var v11 = Math.cos(v6);
var v10 = Math.sin(v6);
world[char].xmov = world[char].speed * v11;
world[char].zmov = world[char].speed * v10;
world[char].feelerx = world[char].feeler * v11;
world[char].feelerz = world[char].feeler * v10;
}
}
}
function AIworldClicked(char, xm, ym) {
var v7 = iso.mapToIsoWorld(xm, ym);
xm = v7[0];
var v3 = v7[1];
if (_global.action == 'walking') {
if (xm >= 0 && xm <= world.width && v3 >= world.length && v3 <= 0) {
var v13 = world[char].x;
var v12 = world[char].z;
world[char].startx = v13;
world[char].startz = v12;
world[char].endx = xm;
world[char].endz = v3;
var v8 = 45;
var v6 = Math.atan2(v3 - v12, xm - v13);
var v5 = v6 * 180 / Math.PI;
v5 += v8 / 2;
if (v5 < 0) {
v5 += 360;
}
var v9 = Math.ceil(v5 / v8);
world[char].clip.char.gotoAndStop('walk' + v9);
world[char].frame = v9;
world[char].moving = true;
var v11 = Math.cos(v6);
var v10 = Math.sin(v6);
world[char].xmov = world[char].speed * v11;
world[char].zmov = world[char].speed * v10;
world[char].feelerx = world[char].feeler * v11;
world[char].feelerz = world[char].feeler * v10;
}
}
}
function moveCharacter(char) {
if (world[char].moving) {
if (char == player) {
encounter();
}
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 v9 = world[char].startx;
var v8 = world[char].startz;
var v7 = world[char].endx;
var v6 = world[char].endz;
var v11 = world[char].tempx;
var v10 = world[char].tempz;
var v4 = v7 - v9;
var v3 = v7 - v11;
var v5 = v6 - v8;
var v2 = v6 - v10;
if (v4 == 0) {
v4 = 1;
}
if (v3 == 0) {
v3 = 1;
}
if (v5 == 0) {
v5 = 1;
}
if (v2 == 0) {
v2 = 1;
}
if (v4 / Math.abs(v4) != v3 / Math.abs(v3) || v5 / Math.abs(v5) != v2 / Math.abs(v2)) {
world[char].moving = false;
world[char].xmov = 0;
world[char].zmov = 0;
world[char].tempx = v7;
world[char].tempz = v6;
world[char].clip.char.gotoAndStop('stand' + world[char].frame);
}
}
}
function encounter() {
if (encounterRate != 0 && encounterRate != 'NONSAVE') {
chance -= encounterRate;
if (chance <= 0) {
chance = random(3500) + 1500;
startCombat();
world[player].moving = false;
world[player].clip.char.gotoAndStop('stand' + world[player].frame);
}
}
}
function detectObjects(char, type) {
var v9 = world[char].tempx + world[char].feelerx;
var v8 = Math.abs(world[char].tempz + world[char].feelerz);
var v4 = Math.ceil(v9 / world.cellWidth);
var v5 = Math.ceil(v8 / world.cellWidth);
if (!world.tiles[v4][v5].isObject) {
v9 = world[char].tempx;
v8 = Math.abs(world[char].tempz);
v4 = Math.ceil(v9 / world.cellWidth);
v5 = Math.ceil(v8 / world.cellWidth);
var v7 = world.tiles[v4][v5].depth + 1;
world[char].clip.swapDepths(v7);
if (world.tiles[v4][v5].isPathway && world[char].moving) {
world[char].clip.char.gotoAndStop('stand' + world[char].frame);
world[char].moving = false;
if (type == 'player') {
switch (world.tiles[v4][v5].destination) {
case -1:
_global.action = 'talking';
floor.mouseClickRegion._visible = false;
mapClip._visible = true;
mapLastPosit = world.tiles[v4][v5].neighbour;
if (!checkAreaLocked(world.tiles[v4][v5].neighbour)) {
unlockArea(world.tiles[v4][v5].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[v4][v5].destination);
break;
case 'clothesShop':
case 'house01':
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop('stand7');
enterShop(world.tiles[v4][v5].destination);
break;
case 'house02':
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop('stand7');
enterShop(world.tiles[v4][v5].destination);
break;
case 'house03':
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop('stand7');
enterShop(world.tiles[v4][v5].destination);
break;
case 'inn':
case 'inn2':
world[char].tempx = 195;
world[char].tempz = -250;
world[char].clip.char.gotoAndStop('stand1');
enterShop(world.tiles[v4][v5].destination);
break;
case 'ronGarage':
case 'vendingmachine':
world[char].tempx = 195;
world[char].tempz = -485;
world[char].clip.char.gotoAndStop('stand1');
enterShop(world.tiles[v4][v5].destination);
break;
case 'friedricestall':
case 'terminal':
world[char].tempx = 280;
world[char].tempz = -200;
world[char].clip.char.gotoAndStop('stand7');
enterShop(world.tiles[v4][v5].destination);
break;
case 'shake':
shakefunction(10, 3, 3, 200);
break;
case 'talkshake':
_level0.playSound('quake');
shakefunction(10, 3, 3, 200);
case 'talk':
_level0.worldMenu._visible = false;
_level0.talkingSystem.chatActivate(_level0.talkingSystem[world.tiles[v4][v5].neighbour]);
_level0.talkingSystem._visible = true;
break;
default:
world[player].tempx = world.tiles[v4][v5].destinationPositX;
world[player].tempz = world.tiles[v4][v5].destinationPositZ;
_root['map' + _root.mapLocation](world.tiles[v4][v5].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 v6 = world[char].frame;
world[char].clip.char.gotoAndStop('stand' + v6);
}
}
}
function captureKeys() {
if (_global.action == 'walking') {
xx = world[player].clip._x;
zz = world[player].clip._y;
if (Key.isDown(39)) {
xx += xSize;
zz += zSize;
worldClicked(player, xx, zz);
} else {
if (Key.isDown(37)) {
xx -= xSize;
zz -= zSize;
worldClicked(player, xx, zz);
} else {
if (Key.isDown(38)) {
xx += xSize;
zz -= zSize;
worldClicked(player, xx, zz);
} else {
if (Key.isDown(40)) {
xx -= xSize;
zz += zSize;
worldClicked(player, xx, zz);
}
}
}
}
}
}
function init_map() {
heroName = getCharacterAttr('A001', 'name');
if (getCharacterAttr('A001', 'gender') == 'm') {
selectedPilot = 'jin';
} else {
selectedPilot = 'yun';
}
selectedMaw = getCharacterAttr('A001', 'botid');
if (!checkAreaLocked(0)) {
unlockArea(0);
}
if (!checkAreaLocked(1)) {
unlockArea(1);
}
if (!checkAreaLocked(2)) {
unlockArea(2);
}
currentMusic = -1;
if (mapLocation == undefined || areaLocation == undefined) {
error._visible = true;
} else {
error._visible = false;
}
mm = getMM();
hh = getHH();
dd = getDD();
_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;
savebox._visible = false;
questlog._visible = false;
inventory._visible = false;
savebox.changebutt._visible = false;
talkingSystem.gotoAndStop(2);
timingdelay = 0;
}
randomMaleNPCnames = new Array('Adam', 'Akhiller', 'Ampkit', 'Boonies', 'Brandon', 'Brocke', 'Cal', 'Cervantes', 'Christopher', 'Cobi', 'Dar', 'David', 'Flechette', 'Joe', 'Kaidumo', 'Kirby', 'Kirevo', 'Malcom', 'Mango', 'Max', 'Maximus', 'Neo', 'Ordule', 'Pyrrus', 'Ramil', 'Remy', 'Rook', 'Sicshot', 'Slashaar', 'Trey', 'Ty', 'Sam', 'Jay', 'Reef', 'Xeron', 'Wheeze', 'Wolfgang', 'Zakath', 'Zarqa');
randomFemaleNPCnames = new Array('Ariel', 'Angela', 'Candice', 'Carrie', 'Chris', 'Celeste', 'Dawn', 'Electra', 'Fiona', 'Hazel', 'Jane', 'Joscelyn', 'Kelly', 'Kyeti', 'Laura', 'Mandy', 'Millie', 'Nancy', 'Polly', 'Sally', 'Seela', 'Sharon', 'Shermaine', 'Shirley', 'Valerie');
mapActionKeyList = new Object();
mapActionKeyList.onKeyUp = function () {
if (Key.getCode() == 32) {
if (_global.action == 'walking') {
mapAction();
}
}
};
Key.addListener(mapActionKeyList);
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;
reload_data();
init_map();
stop();
_root.onEnterFrame = function () {
moveCharacter(player);
detectObjects(player, 'player');
positionCharacter(player);
timing();
captureKeys();
};
}
frame 32 {
function musicOn() {
_global.musicSetting = true;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (_level0.combatSceneClip._visible) {
_level0.battleMusic();
} else {
currentMusic = '';
_level0.bgMusic(areaMusic);
}
}
function musicOff() {
_global.musicSetting = false;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
}
function bgMusic(newMusic, noloop) {
if (_global.musicSetting) {
if (currentMusic != newMusic) {
if (newMusic == undefined) {
newMusic = _root.areaMusic;
}
currentMusic = newMusic;
stopAllSounds();
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
}
function battleMusic() {
if (_global.musicSetting) {
if (_level0.combatmusic) {
currentMusic = _level0.combatmusic;
} else {
currentMusic = 'battle' + (random(2) + 1);
}
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
function playSound(s) {
if (_global.musicSetting) {
sflag = !sflag;
if (sflag) {
soundfx.gotoAndStop(1);
soundfx.gotoAndStop(s);
} else {
soundfx2.gotoAndStop(1);
soundfx2.gotoAndStop(s);
}
}
}
sflag = true;
bgMusic();
}
frame 32 {
function debugger_map() {
_level0['map' + debugger.mapcheat.text](int(debugger.loccheat.text));
}
function debugger_keys() {
if (Key.isDown(16)) {
debugger.xycheat.text = 'x-' + world[player].tempx + ' :z-' + world[player].tempz;
chance = 10000;
}
if (Key.isDown(17)) {
chance = 0;
}
if (Key.isDown(90)) {
_level0.debugger._visible = true;
}
if (Key.isDown(88)) {
_level0.debugger._visible = false;
}
}
_level0.debugger._visible = false;
}
frame 32 {
function levelUp() {
levelUpMessage._visible = false;
levelUpMessage.leveluptxt.text = '';
var v3 = _global.mainsave.getItemList('character');
var v12 = false;
var v2 = 0;
while (v2 < v3.length) {
var v4 = parseInt(v3[v2].getAttribute('level'));
if (v4 < xpArray.length) {
var v5 = parseInt(v3[v2].getAttribute('xp'));
var v8 = parseInt(v3[v2].getAttribute('sp'));
var v6 = xpNeeded(v4);
if (v5 >= v6) {
var v7 = v3[v2].getAttribute('name');
var v11 = v3[v2].getAttribute('id');
playSound('levelup');
++v4;
v3[v2].setAttribute('level', v4);
v8 += 3;
v3[v2].setAttribute('sp', v8);
levelUpMessage.leveluptxt.text += v7 + ' has reached level ' + v4 + '!\n(+ 3 stats points)\n';
levelUpMessage._visible = true;
populate_inventory();
if (v4 >= 20) {
v12 = true;
}
if (v4 == 8) {
var v10 = _level0['super_' + v3[v2].getAttribute('id') + '_1'].sname.toUpperCase();
var v9 = _level0['super_' + v3[v2].getAttribute('id') + '_1'].botid.toUpperCase();
levelUpMessage.leveluptxt.text += v7 + ' has learned a new ' + v10 + ' Overdrive for ' + v9 + ' Class MAWs!\n';
}
}
}
++v2;
}
if (v12) {
levelUpMessage.overlevel._visible = true;
} else {
levelUpMessage.overlevel._visible = false;
}
}
function xpNeeded(levelNo) {
return xpArray[levelNo - 1];
}
function startCombat(customMonsterSet) {
stopAllSounds();
_global.action = 'talking';
worldMenu._visible = false;
floor._visible = false;
floor.mouseClickRegion._visible = false;
inventory._visible = false;
questlog._visible = false;
savebox._visible = false;
combatSceneClip.gotoAndPlay(2);
if (customMonsterSet == undefined) {
combatSceneClip.msNum = mSet;
} else {
combatSceneClip.msNum = customMonsterSet;
}
combatSceneClip._visible = true;
}
function endCombat(param1) {
if (param1) {
_level0.talkingSystem.chatActivate(_level0.talkingSystem[param1]);
if (!shopSystem._visible) {
floor._visible = true;
lighting._visible = true;
canopyClip._visible = true;
bgDown._visible = true;
bgRight._visible = true;
bgUp._visible = true;
bgLeft._visible = true;
}
} else {
_global.action = 'walking';
floor._visible = true;
worldMenu._visible = true;
floor.mouseClickRegion._visible = true;
areaNameClip._visible = true;
lighting._visible = true;
canopyClip._visible = true;
bgDown._visible = true;
bgRight._visible = true;
bgUp._visible = true;
bgLeft._visible = true;
}
combatSceneClip._visible = false;
bgMusic();
bg._visible = true;
clearInterval(_root.combatSceneClip.combatScene.IA);
combatSceneClip.gotoAndStop(1);
var v6 = _global.mainsave.getItemList('character');
var v8 = new Array();
var v9 = 0;
var v5 = 0;
while (v5 < v6.length) {
var v4 = v6[v5].getItemList('bot');
var v3 = 0;
while (v3 < v4.length) {
if (parseInt(v4[v3].getAttribute('currhp')) <= 0) {
v4[v3].setAttribute('currhp', 1);
}
++v3;
}
++v5;
}
populate_inventory();
levelUp();
}
}
frame 32 {
function quit() {
_global.option = undefined;
Key.removeListener(talkingSystem.keylist);
Key.removeListener(mapActionKeyList);
gotoAndStop(3);
}
function endGame() {
_global.option = undefined;
Key.removeListener(talkingSystem.keylist);
Key.removeListener(mapActionKeyList);
gotoAndPlay(34);
}
}
button 2878 {
on (release) {
_level0.quit();
}
}
movieClip 2884 {
}
movieClip 2886 {
}
movieClip 2889 {
}
movieClip 2892 {
}
movieClip 2895 {
}
movieClip 2898 {
}
movieClip 2901 {
}
movieClip 2904 {
}
movieClip 2908 {
}
movieClip 2910 {
}
movieClip 2914 {
}
movieClip 2917 {
}
movieClip 2920 {
}
movieClip 2923 {
}
movieClip 2926 {
}
movieClip 2928 {
}
movieClip 2930 {
}
movieClip 2932 {
}
movieClip 2934 {
}
movieClip 2936 {
}
movieClip 2938 {
}
movieClip 2940 {
}
movieClip 2942 {
}
movieClip 2944 {
}
movieClip 2946 {
}
movieClip 2948 {
}
movieClip 2950 {
}
movieClip 2954 {
frame 1 {
function refreshMap() {
mapChar.innerClip.gotoAndStop(_level0.selectedMaw);
mapChar.innerClip.char.gotoAndStop(1);
mapChar.innerClip.char.gotoAndStop('walk8');
i = 0;
while (i <= 12) {
if (_level0.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) {
var v1 = 50;
if (_level0.mapClip.mapChar.xspeed == -1) {
_level0.mapClip.mapChar.xspeed = (_level0.mapClip['map' + subDestination]._x - _level0.mapClip.mapChar._x) / v1;
_level0.mapClip.mapChar.yspeed = (_level0.mapClip['map' + subDestination]._y - _level0.mapClip.mapChar._y) / v1;
counter = 0;
}
++counter;
_level0.mapClip.mapChar._x += _level0.mapClip.mapChar.xspeed;
_level0.mapClip.mapChar._y += _level0.mapClip.mapChar.yspeed;
if (counter >= v1) {
clearInterval(_level0.mapClip.mapMoverI);
_level0.mapLocation = subDestination;
_level0.mapClip.activateMapMove(subDestination, 'map' + finalDestination);
}
}
function activateMapMove(start, destination) {
finalDestination = parseInt(destination.substr(3));
_level0.mapClip.moveable = false;
_level0.mapClip.mapChar.xspeed = -1;
_level0.mapClip.mapChar.yspeed = -1;
if (start == finalDestination) {
_global.action = 'walking';
_level0.mapClip._visible = false;
_level0.floor.mouseClickRegion._visible = true;
_level0.mapPositor();
_level0.mapClip.moveable = true;
_level0.areaname._visible = true;
_level0.areaname.gotoAndPlay(2);
_level0.areaname.areaname.areaname1.text = _level0.areaName.toUpperCase();
_level0.areaname.areaname.areaname2.text = _level0.areaName.toUpperCase();
} else {
_level0.mapLastPosit = start;
switch (finalDestination) {
case 0:
switch (start) {
case 1:
subDestination = 0;
break;
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 1:
switch (start) {
case 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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 0:
subDestination = 1;
break;
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;
}
}
_level0.mapClip.mapMoverI = setInterval(mapMover, 10, subDestination, finalDestination, this);
}
}
}
instance map0 of movieClip 2889 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map7 of movieClip 2892 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map6 of movieClip 2895 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map11 of movieClip 2898 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map12 of movieClip 2901 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map5 of movieClip 2904 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map4 of movieClip 2908 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map2 of movieClip 2910 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map3 of movieClip 2914 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map1 of movieClip 2917 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map10 of movieClip 2920 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map8 of movieClip 2923 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
instance map9 of movieClip 2926 {
onClipEvent (release) {
if (_root.mapClip.moveable) {
_parent.activateMapMove(_root.mapLocation, this._name);
}
}
}
}
movieClip 2956 {
}
movieClip 2957 {
frame 1 {
stop();
}
frame 2 {
gotoAndPlay('out');
}
frame 11 {
stop();
_parent.endOfMessageActions();
if (_parent.sleep) {
gotoAndPlay('sleep');
_parent.sleep = false;
} else {
play();
}
}
frame 28 {
gotoAndStop(1);
}
frame 29 {
_level0.bgMusic('sleep', true);
_parent.sleep = false;
play();
}
frame 120 {
gotoAndStop(1);
}
}
button 2960 {
on (release) {
_parent._parent.carryOn();
}
}
movieClip 2961 {
}
movieClip 2997 {
frame 1 {
stop();
}
}
movieClip 2999 {
}
movieClip 3002 {
}
movieClip 3005 {
instance submit of movieClip 3002 {
onClipEvent (keyPress '<Enter>') {
_parent._parent.checkPassword();
}
}
}
movieClip 3011 {
}
movieClip 3012 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 3013 {
frame 1 {
stop();
textCursor._visible = false;
}
frame 1 {
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);
talkSoundCounter = 0;
textInterval = setInterval(writeText, 30);
}
function charIn() {
gotoAndPlay('CharIn');
lastBlock = false;
if (!charName or charName == '') {
charNameDisplay.text = '';
nameBacking._visible = false;
} else {
charNameDisplay.text = charName;
nameBacking._visible = true;
}
splitText();
}
function writeText() {
if (charIndex != currTextBlock.length) {
if (_parent.transition_screen._currentframe == 1) {
if (talkSoundCounter == 1) {
_level0.playSound('talkSound');
}
++talkSoundCounter;
if (talkSoundCounter > 2) {
talkSoundCounter = 0;
}
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) {
_level0.playSound('confirmSound');
++_parent.chatCount;
inPlay = false;
if (_parent.transit) {
_parent.transition_screen.gotoAndPlay('in');
_parent.transit = false;
}
if (_parent.transition_screen._currentframe == 1) {
_parent.endOfMessageActions();
}
if (branch) {
_parent.chatActivate(_parent[branch]);
branch = false;
}
} else {}
}
}
}
if (_parent.chatCount >= _parent.chatSet.length and !talkComplete) {
clearInterval(_parent.CI);
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 v2 = 0;
while (v2 < 3) {
this['ans' + v2]._visible = false;
++v2;
}
v2 = 0;
while (v2 < ansArray.length) {
this['ans' + v2].gotoAndStop(1);
if (v2 == 0) {
this['ans' + v2].gotoAndStop(2);
}
this['ans' + v2].ans_label.text = '<' + (v2 + 1) + '> ' + ansArray[v2];
this['ans' + v2]._visible = true;
++v2;
}
}
function passwordDisplay() {
speechBox.text = '';
charNameDisplay.text = charName;
textCursor._visible = false;
displayComplete = true;
gotoAndStop('answers');
ansCustom._visible = true;
Selection.setFocus(ansCustom.ans_label);
var v2 = 0;
while (v2 < 3) {
this['ans' + v2]._visible = false;
++v2;
}
}
function checkPassword() {
var v3 = 'wrong';
ansCustom._visible = false;
var v2 = 0;
while (v2 < ansArray.length) {
if (ansCustom.ans_label.text.toLowerCase() == ansArray[v2]) {
v3 = v2;
break;
}
++v2;
}
if (v3 != 'wrong') {
var v4 = responses[v3 + 1];
} else {
var v4 = responses[0];
}
_parent.chatActivate(_parent[v4]);
}
charIndex = 0;
}
frame 9 {
stop();
}
frame 10 {
play();
}
frame 19 {
stop();
}
frame 20 {
play();
}
frame 29 {
stop();
gotoAndPlay('hide');
}
frame 30 {
stop();
}
instance ans1 of movieClip 3012 {
onClipEvent (release, keyPress '2') {
_level0.playSound('confirmSound');
_parent._parent.chatActivate(_parent._parent[_parent.responses[1]]);
}
onClipEvent (rollOver) {
_level0.playSound('select');
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 ans2 of movieClip 3012 {
onClipEvent (release, keyPress '3') {
_level0.playSound('confirmSound');
_parent._parent.chatActivate(_parent._parent[_parent.responses[2]]);
}
onClipEvent (rollOver) {
_level0.playSound('select');
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 ans0 of movieClip 3012 {
onClipEvent (release, keyPress '1') {
_level0.playSound('confirmSound');
_parent._parent.chatActivate(_parent._parent[_parent.responses[0]]);
}
onClipEvent (rollOver) {
_level0.playSound('select');
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;
}
}
frame 69 {
stop();
_parent.endCoversation();
}
}
movieClip 3016 {
frame 1 {
stop();
textCursor._visible = false;
}
frame 1 {
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);
talkSoundCounter = 0;
textInterval = setInterval(writeText, 30);
}
function charIn() {
gotoAndPlay('CharIn');
lastBlock = false;
if (!charName or charName == '') {
charNameDisplay.text = '';
nameBacking._visible = false;
} else {
charNameDisplay.text = charName;
nameBacking._visible = true;
}
splitText();
}
function writeText() {
if (charIndex != currTextBlock.length) {
if (_parent.transition_screen._currentframe == 1) {
if (talkSoundCounter == 1) {
_level0.playSound('talkSound');
}
++talkSoundCounter;
if (talkSoundCounter > 2) {
talkSoundCounter = 0;
}
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) {
_level0.playSound('confirmSound');
++_parent.chatCount;
inPlay = false;
if (_parent.transit) {
_parent.transition_screen.gotoAndPlay('in');
_parent.transit = false;
}
if (_parent.transition_screen._currentframe == 1) {
_parent.endOfMessageActions();
}
if (branch) {
_parent.chatActivate(_parent[branch]);
branch = false;
}
} else {}
}
}
}
if (_parent.chatCount >= _parent.chatSet.length and !talkComplete) {
clearInterval(_parent.CI);
gotoAndPlay('CharOut');
speechBox.text = '';
charNameDisplay.text = '';
textCursor._visible = false;
talkComplete = true;
}
}
charIndex = 0;
}
frame 9 {
stop();
}
frame 10 {
play();
}
frame 19 {
stop();
}
frame 20 {
play();
}
frame 29 {
stop();
gotoAndPlay('hide');
}
frame 40 {
stop();
_parent.endCoversation();
}
}
movieClip 3017 {
frame 1 {
function chatActivate(chatArray) {
_global.action = 'talking';
_level0.worldMenu._visible = false;
_level0.floor.mouseClickRegion._visible = false;
_level0.areaNameClip._visible = false;
bottomChatHolder._visible = true;
topChatHolder._visible = true;
this._visible = true;
clearInterval(CI);
_level0.questlog._visible = false;
_level0.inventory._visible = false;
bottomChatHolder.inPlay = false;
topChatHolder.inPlay = false;
topChatHolder.talkComplete = false;
bottomChatHolder.talkComplete = false;
clearInterval(topChatHolder.textInterval);
clearInterval(bottomChatHolder.textInterval);
chatCount = 0;
chatSet = chatArray;
chatStatus = 'normal';
Key.removeListener(keylist);
keylist = new Object();
keylist.onKeyUp = function () {
if (Key.getCode() == 32) {
carryOn();
}
};
Key.addListener(keylist);
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 v1 = random(chatArray[chatCount].dialogue.length);
holder.charDialogue = chatArray[chatCount].dialogue[v1];
holder.branch = chatArray[chatCount].responses[v1];
holder.inPlay = true;
holder.charIn();
}
function compareBranch(chatArray, holder) {
var v7 = 0;
var v4 = 0;
while (v4 < chatArray[chatCount].conditionArray.length) {
var v2 = false;
var v5 = chatArray[chatCount].conditionArray[v4];
var v3 = 0;
while (v3 < v5.length) {
var v1 = v5[v3];
switch (v1.compareType) {
case 'quest':
v2 = compareQuest(v1);
break;
case 'item':
v2 = compareItem(v1);
break;
case 'stats':
v2 = compareStats(v1);
break;
case 'credits':
v2 = compareCredits(v1);
}
if (!v2) {
break;
}
++v3;
}
if (v2) {
v7 = v4 + 1;
}
++v4;
}
holder.charDialogue = chatArray[chatCount].dialogue[v7];
holder.branch = chatArray[chatCount].responses[v7];
holder.inPlay = true;
holder.charIn();
}
function compareItem(comparer) {
var v1 = _level0.checkItemNumber(comparer.id);
if (v1 >= comparer.minVal and v1 <= comparer.maxVal) {
return true;
} else {
return false;
}
}
function compareCredits(comparer) {
var v1 = _level0.getCredits();
if (v1 >= comparer.minVal and v1 <= comparer.maxVal) {
return true;
} else {
return false;
}
}
function compareQuest(comparer) {
var v2 = _root['quest_' + comparer.id].prog;
if (v2 == comparer.statusVal) {
return true;
} else {
return false;
}
}
function compareStats(comparer) {
if (comparer.hero) {
var v3 = _root['hero_' + comparer.hero][comparer.statusType];
} else {
var v3 = _root[comparer.statusType];
}
if (isNaN(v3)) {
if (v3 == comparer.statusVal) {
return true;
} else {
return false;
}
} else {
if (v3 >= comparer.minVal and v3 <= comparer.maxVal) {
return true;
} else {
return false;
}
}
}
function triggerAction(chatObj) {
startFight = false;
combatTrigger = false;
gameOver = false;
leaveCombat = false;
winBattle = false;
var v3 = chatObj.actions;
if (v3) {
var v2 = 0;
while (v2 < v3.length) {
var v1 = v3[v2];
switch (v1.actionType) {
case 'quest':
_level0['quest_' + v1.id].prog = int(v1.val);
break;
case 'item':
itemChange(v1.id, v1.val);
break;
case 'party':
_level0.addCharacter(v1.id, v1.pos);
break;
case 'wakeParty':
_level0.activateCharacter(v1.id, v1.pos);
break;
case 'sleepParty':
_level0.inactivateCharacter(v1.id);
break;
case 'bg':
if (v1.transit) {
transit = true;
} else {
transit = false;
}
if (v1.sleep) {
sleep = true;
} else {
sleep = false;
}
if (v1.bg) {
changeBG = v1.bg;
} else {
changeBG = false;
}
break;
case 'music':
_level0.bgMusic(v1.trackname, v1.noloop);
break;
case 'startFight':
startFight = true;
break;
case 'gameOver':
gameOver = true;
break;
case 'endgame':
endGame = true;
break;
case 'leaveCombat':
leaveCombat = v1.chatID;
break;
case 'bottomVisible':
bottomChatHolder._visible = v1.toShow;
break;
case 'topVisible':
topChatHolder._visible = v1.toShow;
break;
case 'newmap':
newMap = v1.mapID;
newMapArea = v1.areaID;
newMapLocX = v1.locX;
newMapLocZ = v1.locZ;
break;
case 'setTime':
setTimeHours = v1.hours;
setTimeMins = v1.mins;
break;
case 'shiftTime':
shiftHours = v1.hours;
shiftMins = v1.mins;
break;
case 'shop':
shopName = v1.shopName;
shopMenuHide = v1.shopMenuHide;
break;
case 'winBattle':
winBattle = true;
break;
case 'combat':
combatTrigger = v1.mSet;
break;
case 'credits':
_level0.setCredits(_level0.getCredits() + v1.val);
break;
case 'resetmap':
resetMap = true;
break;
case 'shake':
_level0.shakefunction(v1.iTime, v1.xStrength, v1.yStrength, v1.counter);
break;
case 'sound':
_level0.playSound(v1.id);
break;
case 'animate_map':
_level0.floor[v1.id].objects.clip.gotoAndPlay(v1.val);
break;
case 'exitShop':
exitShop = true;
break;
break;
case 'stats':
case 'mawChange':
_level0.replaceMaw(v1.charid, v1.botid);
}
++v2;
}
}
}
function itemChange(id, amount) {
if (amount < 0) {
_level0.removeItem(id, Math.abs(amount));
} else {
_root.addItem(id, amount, true);
}
}
function carryOn() {
if (currChatArea == 'down' and chatStatus == 'normal' and transition_screen._currentframe == 1) {
bottomChatHolder.nextText();
topChatHolder.nextText();
} else {
if (currChatArea == 'up' and chatStatus == 'normal' and transition_screen._currentframe == 1) {
topChatHolder.nextText();
bottomChatHolder.nextText();
}
}
}
function endOfMessageActions() {
if (newMap) {
_level0['map' + newMap](newMapArea);
_level0.mapLocation = newMap;
_level0.world[_level0.player].tempx = newMapLocX;
_level0.world[_level0.player].tempz = newMapLocZ;
newMap = false;
newMapArea = false;
newMapLocX = false;
newMapLocZ = false;
}
if (shopName != undefined) {
_level0.enterShop(shopName, shopMenuHide);
shopName = undefined;
shopMenuHide = undefined;
}
if (changeBG) {
_level0.bg.gotoAndStop(changeBG);
changeBG = false;
}
if (bottomVisible != undefined) {
bottomChatHolder._visible = bottomVisible;
bottomVisible = undefined;
}
if (topVisible != undefined) {
topChatHolder._visible = topVisible;
topVisible = undefined;
}
if (resetMap) {
_level0['map' + _level0.mapLocation](_level0.areaLocation);
resetMap = false;
}
if (setTimeHours) {
_level0.hh = setTimeHours;
setTimeHours = false;
}
if (shiftHours) {
_level0.hh += shiftHours;
_level0.timingRefresh();
shiftHours = false;
}
if (setTimeMins) {
_level0.mm = setTimeMins;
setTimeMins = false;
}
if (shiftMins) {
_level0.mm += shiftMins;
_level0.timingRefresh();
shiftMins = false;
}
if (exitShop) {
_level0.exitShop();
exitShop = false;
}
if (startFight) {
_level0.combatSceneClip.combatScene.myState = 'heroSelect';
startFight = false;
}
if (gameOver) {
_level0.combatSceneClip.combatScene.loser();
gameOver = false;
}
if (leaveCombat) {
_level0.endCombat(leaveCombat);
leaveCombat = false;
}
if (winBattle) {
_level0.combatSceneClip.combatScene.winner();
winBattle = false;
}
if (combatTrigger) {
_level0.startCombat(combatTrigger);
combatTrigger = false;
}
}
function endCoversation() {
Key.removeListener(keylist);
clearInterval(CI);
clearInterval(topChatHolder.textInterval);
clearInterval(bottomChatHolder.textInterval);
bottomChatHolder._visible = true;
topChatHolder._visible = true;
this._visible = false;
_level0.populate_inventory();
if (_level0.shopSystem._visible) {
if (_level0.shopSystem.menu) {
_level0.shopSystem.menu._visible = true;
}
} else {
if (!_level0.combatSceneClip._visible) {
_global.action = 'walking';
_level0.floor._visible = true;
_level0.worldMenu._visible = true;
_level0.floor.mouseClickRegion._visible = true;
_level0.bgDown._visible = true;
_level0.bgRight._visible = true;
_level0.bgUp._visible = true;
_level0.bgLeft._visible = true;
_level0.areaNameClip._visible = true;
_level0.canopyClip._visible = true;
}
}
if (endGame) {
_level0.endGame();
endGame = false;
}
}
ron_0_0 = new Object();
ron_0_0.area = 'down';
ron_0_0.portrait = _level0.charA001.portrait;
ron_0_0.speaker = _level0.heroName;
action1 = {'actionType': 'setTime', 'hours': 6, 'mins': 59};
action2 = {'actionType': 'topVisible', 'toShow': false};
ron_0_0.dialogue = new Array('...zzzZZZzzzZZZ...');
ron_0_0.actions = new Array(action1, action2);
ron_0_0a = new Object();
ron_0_0a.area = 'up';
ron_0_0a.speaker = 'Uncle Ron';
ron_0_0a.portrait = 'ron';
ron_0_0a.dialogue = new Array('...');
action1 = {'actionType': 'topVisible', 'toShow': true};
ron_0_0a.actions = new Array(action1);
ron_0_0b = new Object();
ron_0_0b.area = 'up';
ron_0_0b.speaker = 'Uncle Ron';
ron_0_0b.portrait = 'ron';
ron_0_0b.dialogue = new Array(_level0.heroName + '!');
ron_0_0c = new Object();
ron_0_0c.area = 'up';
ron_0_0c.speaker = 'Uncle Ron';
ron_0_0c.portrait = 'ron';
ron_0_0c.dialogue = new Array('Up and at \'em, ' + _level0.heroName + '.');
ron_0_0d = new Object();
ron_0_0d.area = 'down';
ron_0_0d.portrait = _level0.charA001.portrait;
ron_0_0d.speaker = _level0.heroName;
ron_0_0d.dialogue = new Array('...zzzZZZ...Wha..?');
ron_0_0e = new Object();
ron_0_0e.area = 'down';
ron_0_0e.portrait = _level0.charA001.portrait;
ron_0_0e.speaker = _level0.heroName;
ron_0_0e.dialogue = new Array('...Ron...M\'sleepy...');
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('Go ahead and freshen up. I\'ll wait right here.');
ron_0_1e = new Object();
ron_0_1e.area = 'down';
ron_0_1e.portrait = _level0.charA001.portrait;
ron_0_1e.speaker = _level0.heroName;
ron_0_1e.dialogue = new Array('...*Yawn*...Fine fine...');
action1 = {'actionType': 'bg', 'transit': true};
ron_0_1e.actions = new Array(action1);
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.');
action1 = {'actionType': 'topVisible', 'toShow': true};
action2 = {'actionType': 'bottomVisible', 'toShow': false};
ron_0_2.actions = new Array(action1, action2);
ron_0_3 = new Object();
ron_0_3.area = 'down';
ron_0_3.portrait = _level0.charA001.portrait;
ron_0_3.speaker = _level0.heroName;
action1 = {'actionType': 'bottomVisible', 'toShow': true};
ron_0_3.dialogue = new Array('Now now Ron, would I ever do that?');
ron_0_3.actions = new Array(action1);
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('With my ankle twisted, I can\'t do it, so you\'re going to do it for me.');
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 wait 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, so I suggest you use your 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('Oh great...', '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('Oh great...');
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('I\'m quite sure it\'s a better alternative than going on foot.');
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('Anyway, your 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('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'};
action2 = {'actionType': 'newmap', 'mapID': 1, 'areaID': 1, 'locX': 200, 'locZ': -490};
action3 = {'actionType': 'shop', 'shopName': 'rongarage', 'shopMenuHide': true};
ron_0_23.actions = new Array(action1, action2, action3);
ron_0 = new Array(ron_0_0, ron_0_0a, ron_0_0b, ron_0_0c, ron_0_0d, ron_0_0e, ron_0_1, ron_0_1e, 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_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('Well now, your Luna seems to be in good condition.');
action1 = {'actionType': 'bottomVisible', 'toShow': false};
ron_1_2.actions = new Array(action1);
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('Can I use one of the other models instead?');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
ron_1_3.actions = new Array(action1);
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('Just use your own, ' + _level0.heroName + '.');
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('Besides, most of the other MAWs here require some additional servicing before they can be used.');
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('Okay, that\'s fine by me.');
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};
action2 = {'actionType': 'item', 'id': 'I003Q', 'val': 1};
ron_1_11.actions = new Array(action1, action2);
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_12a = new Object();
ron_1_12a.area = 'up';
ron_1_12a.portrait = 'ron';
ron_1_12a.speaker = 'Uncle Ron';
ron_1_12a.dialogue = new Array('Easy enough a task 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.');
action1 = {'actionType': 'setTime', 'hours': 8, 'mins': 0};
ron_1_13.actions = new Array('action1');
ron_1 = new Array(ron_1_2, ron_1_3, ron_1_4, ron_1_5, ron_1_6, ron_1_10, ron_1_11, ron_1_12, ron_1_12a, ron_1_13);
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};
condition4_2 = {'compareType': 'quest', 'id': '8', 'statusVal': 0};
condition5_1 = {'compareType': 'quest', 'id': '3', 'statusVal': 99};
condition5_2 = {'compareType': 'quest', 'id': '8', 'statusVal': 1};
condition6_1 = {'compareType': 'quest', 'id': '8', 'statusVal': 99};
condition6_2 = {'compareType': 'quest', 'id': '24', 'statusVal': 1};
condition1 = new Array(condition1_1);
condition2 = new Array(condition2_1, condition2_2);
condition3 = new Array(condition2_1, condition3_1);
condition4 = new Array(condition4_1, condition4_2);
condition5 = new Array(condition5_1, condition5_2);
condition6 = new Array(condition6_1, condition6_2);
ron_2_1.conditionArray = new Array(condition1, condition2, condition3, condition4, condition5, condition6);
ron_2_1.dialogue = new Array('...', 'Do you have the parts yet?', 'What is it, ' + _level0.heroName + '?', 'Do you have the 3 plasmarocks?', 'Just let me get this last bolt aaaaand...', 'Better hand that Macrogen over to Calisto soon.', 'Have you collected the polyboards from the terminal?');
ron_2_1.responses = new Array('ron_0', 'ron_3', 'ron_3c', 'ron_4', 'ron_4d', 'ron_4c', 'ron_5');
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 while she was doing maintenance. 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_9a = new Object();
ron_3b_9a.area = 'down';
ron_3b_9a.chatType = 'compare';
ron_3b_9a.portrait = _level0.charA001.portrait;
ron_3b_9a.speaker = _level0.heroName;
condition1_1 = {'compareType': 'item', 'id': 'I010Q', 'minVal': 1, 'maxVal': 999};
condition1 = new Array(condition1_1);
ron_3b_9a.conditionArray = new Array(condition1);
ron_3b_9a.dialogue = new Array('Let me get to it then.', 'Oh yeah, I also found this chassis from a derelict MAW in the scrapyard.');
ron_3b_9a.responses = new Array('ron_3e', 'ron_3d');
ron_3b_9b = new Object();
ron_3b_9b.area = 'down';
ron_3b_9b.portrait = _level0.charA001.portrait;
ron_3b_9b.speaker = _level0.heroName;
ron_3b_9b.dialogue = new Array('Thought you might have some use for it.');
ron_3b_9c = new Object();
ron_3b_9c.area = 'up';
ron_3b_9c.portrait = 'ron';
ron_3b_9c.speaker = 'Uncle Ron';
ron_3b_9c.dialogue = new Array('Oh ho, an Avenger model...');
ron_3b_9d = new Object();
ron_3b_9d.area = 'up';
ron_3b_9d.portrait = 'ron';
ron_3b_9d.speaker = 'Uncle Ron';
ron_3b_9d.dialogue = new Array('Leave it here first. I\'ll need the core system too before I can do anything with the chassis.');
action1 = {'actionType': 'quest', 'id': '25', 'val': 1};
action2 = {'actionType': 'item', 'id': 'I010Q', 'val': -1};
ron_3b_9d.actions = new Array(action1, action2);
ron_3b_9e = new Object();
ron_3b_9e.area = 'up';
ron_3b_9e.portrait = 'ron';
ron_3b_9e.speaker = 'Uncle Ron';
ron_3b_9e.dialogue = new Array('For now, let\'s just worry about the plasmarock.');
ron_3b_10 = new Object();
ron_3b_10.area = 'down';
ron_3b_10.chatType = 'random';
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.', 'Ok, I\'ll get right to it.');
ron_3b_10.responses = new Array('ron_3e', 'ron_3e');
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_23a = new Object();
ron_3b_23a.area = 'down';
ron_3b_23a.portrait = _level0.charA001.portrait;
ron_3b_23a.speaker = _level0.heroName;
ron_3b_23a.dialogue = new Array('How about Dixie?');
ron_3b_23b = new Object();
ron_3b_23b.area = 'up';
ron_3b_23b.portrait = 'barrage';
ron_3b_23b.speaker = 'Billy Barrage';
ron_3b_23b.dialogue = new Array('Mom? Oh, she\'s doing alright. As always, she\'s not on Acero. Probably out there handling another case. ');
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 was heading back to Acero Terminus 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_9a);
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_9a);
ron_3d = new Array(ron_3b_9b, ron_3b_9c, ron_3b_9d, ron_3b_9e, ron_3b_10);
ron_3e = new Array(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! (+ 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_4a = new Object();
ron_4_4a.area = 'down';
ron_4_4a.chatType = 'compare';
ron_4_4a.portrait = _level0.charA001.portrait;
ron_4_4a.speaker = _level0.heroName;
condition1_1 = {'compareType': 'item', 'id': 'I011Q', 'minVal': 1, 'maxVal': 999};
condition1_2 = {'compareType': 'quest', 'id': '25', 'statusVal': 1};
condition1 = new Array(condition1_1, condition1_2);
ron_4_4a.conditionArray = new Array(condition1);
ron_4_4a.dialogue = new Array('We\'ll wait for you here then.', 'Oh, I also found a core system for the Avenger.');
ron_4_4a.responses = new Array('ron_4f', 'ron_4e');
ron_4_4b = new Object();
ron_4_4b.area = 'up';
ron_4_4b.portrait = 'ron';
ron_4_4b.speaker = 'Uncle Ron';
ron_4_4b.dialogue = new Array('That\'s good! Bring your MAW into the garage, and place the Avenger parts next to it.');
ron_4_4c = new Object();
ron_4_4c.area = 'up';
ron_4_4c.portrait = 'ron';
ron_4_4c.speaker = 'Uncle Ron';
ron_4_4c.dialogue = new Array('I think it\'s time you got yourself a new model.');
action1 = {'actionType': 'quest', 'id': '25', 'val': 99};
action2 = {'actionType': 'item', 'id': 'I011Q', 'val': -1};
ron_4_4c.actions = new Array(action1, action2);
ron_4_4d = new Object();
ron_4_4d.area = 'down';
ron_4_4d.chatType = 'random';
ron_4_4d.portrait = _level0.charA001.portrait;
ron_4_4d.speaker = _level0.heroName;
ron_4_4d.dialogue = new Array('Seriously?! I\'ll go bring it in right now.', 'Seriously?! I\'ll go bring it in right now.');
ron_4_4d.responses = new Array('ron_4f', 'ron_4f');
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 is going to take a while.');
ron_4_6 = new Object();
ron_4_6.area = 'down';
ron_4_6.portrait = 'barrage';
ron_4_6.speaker = 'Billy Barrage';
ron_4_6.chatType = 'random';
ron_4_6.dialogue = new Array('No problem Mister R.', 'No problem Mister R.');
ron_4_6.responses = new Array('ron_4d', 'ron_4d');
action1 = {'actionType': 'bg', 'transit': true};
ron_4_6.actions = new Array(action1);
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_4_8 = new Object();
ron_4_8.area = 'up';
ron_4_8.chatType = 'compare';
ron_4_8.portrait = 'ron';
ron_4_8.speaker = 'Uncle Ron';
condition1_1 = {'compareType': 'quest', 'id': '25', 'statusVal': 99};
condition1 = new Array(condition1_1);
ron_4_8.conditionArray = new Array(condition1);
action1 = {'actionType': 'bottomVisible', 'toShow': false};
ron_4_8.dialogue = new Array('There. I\'m finally finished.', 'There. I\'m finally finished.');
ron_4_8.responses = new Array('ron_4g', 'ron_4h');
ron_4_8.actions = new Array(action1);
ron_4_8e = new Object();
ron_4_8e.area = 'down';
ron_4_8e.portrait = _level0.charA001.portrait;
ron_4_8e.speaker = _level0.heroName;
ron_4_8e.dialogue = new Array('What about the Avenger?');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
ron_4_8e.actions = new Array(action1);
ron_4_8a = new Object();
ron_4_8a.area = 'up';
ron_4_8a.portrait = 'ron';
ron_4_8a.speaker = 'Uncle Ron';
ron_4_8a.dialogue = new Array('That\'s ready too ' + _level0.heroName + '.');
ron_4_8b = new Object();
ron_4_8b.area = 'up';
ron_4_8b.portrait = 'ron';
ron_4_8b.speaker = 'Uncle Ron';
ron_4_8b.dialogue = new Array('I\'ve taken down all the attachments from your Luna, so remember to fix them on your new MAW.');
action1 = {'actionType': 'mawChange', 'charid': 'A001', 'botid': 'avenger'};
ron_4_8b.actions = new Array(action1);
ron_4_8c = new Object();
ron_4_8c.area = 'down';
ron_4_8c.chatType = 'random';
ron_4_8c.portrait = _level0.charA001.portrait;
ron_4_8c.speaker = _level0.heroName;
ron_4_8c.dialogue = new Array('Thanks so much for this Ron. Can\'t wait to try it out.', 'Thanks so much for this Ron. Can\'t wait to try it out.');
ron_4_8c.responses = new Array('ron_4g', 'ron_4g');
ron_4_8d = new Object();
ron_4_8d.area = 'down';
ron_4_8d.portrait = _level0.charA001.portrait;
ron_4_8d.speaker = _level0.heroName;
ron_4_8d.dialogue = new Array('So what now?');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
ron_4_8d.actions = new Array(action1);
ron_4_9 = new Object();
ron_4_9.area = 'up';
ron_4_9.portrait = 'ron';
ron_4_9.speaker = 'Uncle Ron';
ron_4_9.dialogue = new Array('Time to bring this over to Calisto.');
action1 = {'actionType': 'item', 'id': 'I007Q', 'val': 1};
action2 = {'actionType': 'quest', 'id': '8', 'val': 1};
ron_4_9.actions = new Array(action1, action2);
ron_4_10 = new Object();
ron_4_10.area = 'down';
ron_4_10.portrait = _level0.charA001.portrait;
ron_4_10.speaker = _level0.heroName;
ron_4_10.dialogue = new Array('... If she\'s still waiting at the gorge.');
ron_4_11 = new Object();
ron_4_11.area = 'up';
ron_4_11.portrait = 'ron';
ron_4_11.speaker = 'Uncle Ron';
ron_4_11.dialogue = new Array('Oh and ' + _level0.heroName + ', once the bridge is fixed, cross it and head to Acero Terminus.');
ron_4_11a = new Object();
ron_4_11a.area = 'up';
ron_4_11a.portrait = 'ron';
ron_4_11a.speaker = 'Uncle Ron';
ron_4_11a.dialogue = new Array('Drake called to tell me that the shipment of polyboards I ordered just came in.');
ron_4_11b = new Object();
ron_4_11b.area = 'up';
ron_4_11b.portrait = 'ron';
ron_4_11b.speaker = 'Uncle Ron';
ron_4_11b.dialogue = new Array('So just go over to the terminal building to pick those up.');
action1 = {'actionType': 'quest', 'id': '24', 'val': 1};
ron_4_11b.actions = new Array(action1);
ron_4_12 = new Object();
ron_4_12.area = 'down';
ron_4_12.portrait = _level0.charA001.portrait;
ron_4_12.speaker = _level0.heroName;
ron_4_12.dialogue = new Array('Oh joy. More work.');
ron_4b = new Array(ron_4_3, ron_4_4, ron_4_4a);
ron_4c = new Array(ron_4_10);
ron_4d = new Array(ron_4_8, ron_4_9, ron_4_10, ron_4_11, ron_4_11a, ron_4_11b, ron_4_12);
ron_4e = new Array(ron_4_4b, ron_4_4c, ron_4_4d);
ron_4f = new Array(ron_4_5, ron_4_6);
ron_4g = new Array(ron_4_8d, ron_4_9, ron_4_10, ron_4_11, ron_4_11a, ron_4_11b, ron_4_12);
ron_4h = new Array(ron_4_8e, ron_4_8a, ron_4_8b, ron_4_8c);
ron_5_0 = new Object();
ron_5_0.area = 'down';
ron_5_0.chatType = 'compare';
ron_5_0.portrait = _level0.charA001.portrait;
ron_5_0.speaker = _level0.heroName;
condition1_1 = {'compareType': 'quest', 'id': '27', 'statusVal': 99};
condition1 = new Array(condition1_1);
ron_5_0.conditionArray = new Array(condition1);
ron_5_0.dialogue = new Array('Oh right right! I nearly forgot all about it.', 'Oh right right! I nearly forgot all about it.');
ron_5_0.responses = new Array('ron_5a', 'ron_5b');
ron_5_1 = new Object();
ron_5_1.area = 'down';
ron_5_1.portrait = 'calisto';
ron_5_1.speaker = 'Calisto';
ron_5_1.dialogue = new Array('Hey Ron, thank you so much for buildin\' that Macrogen.');
ron_5_2 = new Object();
ron_5_2.area = 'up';
ron_5_2.portrait = 'ron';
ron_5_2.speaker = 'Uncle Ron';
ron_5_2.dialogue = new Array('Ah, my former apprentice...');
ron_5_3 = new Object();
ron_5_3.area = 'up';
ron_5_3.portrait = 'ron';
ron_5_3.speaker = 'Uncle Ron';
action1 = {'actionType': 'quest', 'id': '27', 'val': 99};
ron_5_3.dialogue = new Array('Always glad to help.');
ron_5_3.actions = new Array(action1);
ron_5_4 = new Object();
ron_5_4.area = 'down';
ron_5_4.portrait = 'calisto';
ron_5_4.speaker = 'Calisto';
ron_5_4.dialogue = new Array('Sounds to me like \'nearly\' is an understatement.');
ron_5 = new Array(ron_5_0);
ron_5a = new Array(ron_5_1, ron_5_2, ron_5_3);
ron_5b = new Array(ron_5_4);
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);
condition2_1 = {'compareType': 'quest', 'id': '18', 'statusVal': 99};
condition2 = new Array(condition2_1);
robyn_0_1.conditionArray = new Array(condition1, condition2);
robyn_0_1.dialogue = new Array('Hey kiddo, haven\'t seen you around for quite a while.', 'Something I can do for you kiddo?', 'Something I can do for you kiddo?');
robyn_0_1.responses = new Array('robyn_0a', 'robyn_0b', '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?', 'Kiddo, 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 kiddo.');
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.');
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 too 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.portrait = 'malenpc';
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': 'quest', 'id': '18', 'statusVal': 99};
condition2 = new Array(condition2_1);
condition3_1 = {'compareType': 'item', 'id': 'I004Q', 'minVal': 1, 'maxVal': 999};
condition3 = new Array(condition3_1);
condition4_1 = {'compareType': 'quest', 'id': '7', 'statusVal': 2};
condition4 = new Array(condition4_1);
elyssa_1_2.conditionArray = new Array(condition1, condition2, condition3, condition4);
elyssa_1_2.dialogue = new Array('How\'s business, Elyssa?', 'Hi 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_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('That\'s okay sweetie. I\'ll just do it later then.');
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.portrait = 'femalenpc';
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);
chowfun_1_1 = new Object();
chowfun_1_1.area = 'up';
chowfun_1_1.speaker = 'Chow Fun';
chowfun_1_1.portrait = 'chowfun';
chowfun_1_1.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '12', 'statusVal': 99};
condition1 = new Array(condition1_1);
chowfun_1_1.conditionArray = new Array(condition1);
chowfun_1_1.dialogue = new Array(_level0.heroName + '! Nice to see you today.', 'Hello ' + _level0.heroName + '! What can I do for you?');
chowfun_1_1.responses = new Array('chowfun_1a', 'chowfun_2');
chowfun_1_2 = new Object();
chowfun_1_2.area = 'up';
chowfun_1_2.speaker = 'Chow Fun';
chowfun_1_2.portrait = 'chowfun';
chowfun_1_2.dialogue = new Array('You here for my fried rice?');
chowfun_1_3 = new Object();
chowfun_1_3.area = 'down';
chowfun_1_3.speaker = _level0.heroName;
chowfun_1_3.portrait = _level0.charA001.portrait;
chowfun_1_3.dialogue = new Array('Um.. No Mr Chow.');
chowfun_1_4 = new Object();
chowfun_1_4.area = 'up';
chowfun_1_4.speaker = 'Chow Fun';
chowfun_1_4.portrait = 'chowfun';
chowfun_1_4.dialogue = new Array('Buy fishing materials?');
chowfun_1_5 = new Object();
chowfun_1_5.area = 'down';
chowfun_1_5.speaker = _level0.heroName;
chowfun_1_5.portrait = _level0.charA001.portrait;
chowfun_1_5.dialogue = new Array('Um.. No it isn\'t that either.');
chowfun_1_6 = new Object();
chowfun_1_6.area = 'up';
chowfun_1_6.speaker = 'Chow Fun';
chowfun_1_6.portrait = 'chowfun';
chowfun_1_6.dialogue = new Array('Sell me fish?');
chowfun_1_7 = new Object();
chowfun_1_7.area = 'down';
chowfun_1_7.speaker = _level0.heroName;
chowfun_1_7.portrait = _level0.charA001.portrait;
chowfun_1_7.dialogue = new Array('Ah not really. I\'m just here to hang out at the Cove.');
chowfun_1_8 = new Object();
chowfun_1_8.area = 'up';
chowfun_1_8.speaker = 'Chow Fun';
chowfun_1_8.portrait = 'chowfun';
chowfun_1_8.dialogue = new Array('Oh good good. Azura Cove is always nice, yes?');
chowfun_1_9 = new Object();
chowfun_1_9.area = 'down';
chowfun_1_9.speaker = _level0.heroName;
chowfun_1_9.portrait = _level0.charA001.portrait;
chowfun_1_9.dialogue = new Array('Yes it is. I\'ll see you around Mr Chow.');
action1 = {'actionType': 'quest', 'id': '12', 'val': 99};
chowfun_1_9.actions = new Array(action1);
chowfun_1_10 = new Object();
chowfun_1_10.area = 'up';
chowfun_1_10.speaker = 'Chow Fun';
chowfun_1_10.portrait = 'chowfun';
chowfun_1_10.dialogue = new Array('Okay. If you hungry, you come to my shop anytime. No problem.');
chowfun_1 = new Array(chowfun_1_1);
chowfun_1a = new Array(chowfun_1_2, chowfun_1_3, chowfun_1_4, chowfun_1_5, chowfun_1_6, chowfun_1_7, chowfun_1_8, chowfun_1_9, chowfun_1_10);
chowfun_2_1 = new Object();
chowfun_2_1.area = 'down';
chowfun_2_1.chatType = 'choice';
chowfun_2_1.speaker = _level0.heroName;
chowfun_2_1.portrait = _level0.charA001.portrait;
chowfun_2_1.dialogue = new Array('Fried Rice', 'Chat');
chowfun_2_1.responses = new Array('chowfun_3', 'chowfun_2a');
chowfun_2_2 = new Object();
chowfun_2_2.area = 'down';
chowfun_2_2.speaker = _level0.heroName;
chowfun_2_2.portrait = _level0.charA001.portrait;
chowfun_2_2.dialogue = new Array('Let\'s just chat Mr Chow.');
chowfun_2_3 = new Object();
chowfun_2_3.area = 'up';
chowfun_2_3.speaker = 'Chow Fun';
chowfun_2_3.portrait = 'chowfun';
chowfun_2_3.dialogue = new Array('Okay, we talk.');
chowfun_2_4 = new Object();
chowfun_2_4.area = 'up';
chowfun_2_4.speaker = 'Chow Fun';
chowfun_2_4.portrait = 'chowfun';
chowfun_2_4.chatType = 'random';
chowfun_2_4.dialogue = new Array('I have a MAW you know?', 'There are many important things in fishing.', 'Do you know how to fish?', 'If you catch any fish, you come to me.', 'Come to my shop if you need fishing items.');
chowfun_2_4.responses = new Array('chowfun_2b', 'chowfun_2c', 'chowfun_2d', 'chowfun_2e', 'chowfun_2f');
chowfun_2_5 = new Object();
chowfun_2_5.area = 'down';
chowfun_2_5.speaker = _level0.heroName;
chowfun_2_5.portrait = _level0.charA001.portrait;
chowfun_2_5.dialogue = new Array('Sure Mr Chow, you\'ve mentioned it before.');
chowfun_2_6 = new Object();
chowfun_2_6.area = 'up';
chowfun_2_6.speaker = 'Chow Fun';
chowfun_2_6.portrait = 'chowfun';
chowfun_2_6.dialogue = new Array('It\'s out in the back.');
chowfun_2_7 = new Object();
chowfun_2_7.area = 'up';
chowfun_2_7.speaker = 'Chow Fun';
chowfun_2_7.portrait = 'chowfun';
chowfun_2_7.dialogue = new Array('I think I make good MAW pilot.');
chowfun_2_8 = new Object();
chowfun_2_8.area = 'down';
chowfun_2_8.speaker = _level0.heroName;
chowfun_2_8.portrait = _level0.charA001.portrait;
chowfun_2_8.dialogue = new Array('But don\'t you specialise in cooking and fishing?');
chowfun_2_9 = new Object();
chowfun_2_9.area = 'up';
chowfun_2_9.speaker = 'Chow Fun';
chowfun_2_9.portrait = 'chowfun';
chowfun_2_9.dialogue = new Array('Ah you young people never believe me. Maybe one day I show you.');
chowfun_2_10 = new Object();
chowfun_2_10.area = 'down';
chowfun_2_10.speaker = _level0.heroName;
chowfun_2_10.portrait = _level0.charA001.portrait;
chowfun_2_10.dialogue = new Array('Like what?');
chowfun_2_10a = new Object();
chowfun_2_10a.area = 'down';
chowfun_2_10a.chatType = 'choice';
chowfun_2_10a.speaker = _level0.heroName;
chowfun_2_10a.portrait = _level0.charA001.portrait;
chowfun_2_10a.dialogue = new Array('Yes', 'No');
chowfun_2_10a.responses = new Array('chowfun_2g', 'chowfun_2h');
chowfun_2_10b = new Object();
chowfun_2_10b.area = 'down';
chowfun_2_10b.speaker = _level0.heroName;
chowfun_2_10b.portrait = _level0.charA001.portrait;
chowfun_2_10b.dialogue = new Array('Not really.');
chowfun_2_10c = new Object();
chowfun_2_10c.area = 'down';
chowfun_2_10c.speaker = _level0.heroName;
chowfun_2_10c.portrait = _level0.charA001.portrait;
chowfun_2_10c.dialogue = new Array('I\'ve done it before.');
chowfun_2_10d = new Object();
chowfun_2_10d.area = 'up';
chowfun_2_10d.speaker = 'Chow Fun';
chowfun_2_10d.portrait = 'chowfun';
chowfun_2_10d.dialogue = new Array('No problem. I teach you basics.');
chowfun_2_10e = new Object();
chowfun_2_10e.area = 'up';
chowfun_2_10e.speaker = 'Chow Fun';
chowfun_2_10e.portrait = 'chowfun';
chowfun_2_10e.dialogue = new Array('Okay. You don\'t need lesson then.');
chowfun_2_11 = new Object();
chowfun_2_11.area = 'up';
chowfun_2_11.speaker = 'Chow Fun';
chowfun_2_11.portrait = 'chowfun';
chowfun_2_11.chatType = 'random';
chowfun_2_11.dialogue = new Array('Different baits sink to different depths.', 'Always better to get stronger fishing lines.', 'Stronger rods not always better.', 'Casting distance very important, because different fish swim at different distance.');
chowfun_2_11.responses = new Array('chowfun_2i', 'chowfun_2j', 'chowfun_2k', 'chowfun_2l');
chowfun_2_12 = new Object();
chowfun_2_12.area = 'up';
chowfun_2_12.speaker = 'Chow Fun';
chowfun_2_12.portrait = 'chowfun';
chowfun_2_12.dialogue = new Array('You cast line, and then you wait. When fish bites on to bait, you reel in your line.');
chowfun_2_12a = new Object();
chowfun_2_12a.area = 'up';
chowfun_2_12a.speaker = 'Chow Fun';
chowfun_2_12a.portrait = 'chowfun';
chowfun_2_12a.dialogue = new Array('But be careful when reeling. If you pull too much, line will break. Once you reel the line to shore or surface, fish is yours.');
chowfun_2_12b = new Object();
chowfun_2_12b.area = 'up';
chowfun_2_12b.speaker = 'Chow Fun';
chowfun_2_12b.portrait = 'chowfun';
chowfun_2_12b.dialogue = new Array('You can also reel in fishing line towards shore when waiting for fish to bite.');
chowfun_2_12c = new Object();
chowfun_2_12c.area = 'up';
chowfun_2_12c.speaker = 'Chow Fun';
chowfun_2_12c.portrait = 'chowfun';
chowfun_2_12c.dialogue = new Array('Very simple.');
chowfun_2_13 = new Object();
chowfun_2_13.area = 'up';
chowfun_2_13.speaker = 'Chow Fun';
chowfun_2_13.portrait = 'chowfun';
chowfun_2_13.dialogue = new Array('Very useful, since some fish live very deep in the water.');
chowfun_2_14 = new Object();
chowfun_2_14.area = 'up';
chowfun_2_14.speaker = 'Chow Fun';
chowfun_2_14.portrait = 'chowfun';
chowfun_2_14.dialogue = new Array('If line is stronger, then weight limit is more, and line will have less chance of breaking while reeling.');
chowfun_2_15 = new Object();
chowfun_2_15.area = 'up';
chowfun_2_15.speaker = 'Chow Fun';
chowfun_2_15.portrait = 'chowfun';
chowfun_2_15.dialogue = new Array('Sometimes, rod\'s pull becomes so strong that fishing line breaks easily.');
chowfun_2_15a = new Object();
chowfun_2_15a.area = 'up';
chowfun_2_15a.speaker = 'Chow Fun';
chowfun_2_15a.portrait = 'chowfun';
chowfun_2_15a.dialogue = new Array('Best to use strong rods with strong lines, especially when you want to catch bigger fish.');
chowfun_2_16 = new Object();
chowfun_2_16.area = 'up';
chowfun_2_16.speaker = 'Chow Fun';
chowfun_2_16.portrait = 'chowfun';
chowfun_2_16.dialogue = new Array('When distance nearer to shore, it is faster and easier to catch fish.');
chowfun_2_17 = new Object();
chowfun_2_17.area = 'up';
chowfun_2_17.speaker = 'Chow Fun';
chowfun_2_17.portrait = 'chowfun';
chowfun_2_17.dialogue = new Array('I need it to make beautiful fish cake for my fried rice, so I give you best price for it.');
chowfun_2_18 = new Object();
chowfun_2_18.area = 'up';
chowfun_2_18.speaker = 'Chow Fun';
chowfun_2_18.portrait = 'chowfun';
chowfun_2_18.dialogue = new Array('My shop the only place on Acero that sell fishing lines, fishing bait and fishing rods.');
chowfun_2_18a = new Object();
chowfun_2_18a.area = 'up';
chowfun_2_18a.speaker = 'Chow Fun';
chowfun_2_18a.portrait = 'chowfun';
chowfun_2_18a.dialogue = new Array('...And fried rice.');
chowfun_2_19 = new Object();
chowfun_2_19.area = 'down';
chowfun_2_19.speaker = _level0.heroName;
chowfun_2_19.portrait = _level0.charA001.portrait;
chowfun_2_19.dialogue = new Array('Thanks, Mr Chow. I\'ll take note.');
chowfun_2 = new Array(chowfun_2_1);
chowfun_2a = new Array(chowfun_2_2, chowfun_2_3, chowfun_2_4);
chowfun_2b = new Array(chowfun_2_5, chowfun_2_6, chowfun_2_7, chowfun_2_8, chowfun_2_9);
chowfun_2c = new Array(chowfun_2_10, chowfun_2_11);
chowfun_2d = new Array(chowfun_2_10a);
chowfun_2e = new Array(chowfun_2_17, chowfun_2_19);
chowfun_2f = new Array(chowfun_2_18, chowfun_2_18a, chowfun_2_19);
chowfun_2g = new Array(chowfun_2_10c, chowfun_2_10e);
chowfun_2h = new Array(chowfun_2_10b, chowfun_2_10d, chowfun_2_12, chowfun_2_12a, chowfun_2_12b, chowfun_2_12c);
chowfun_2i = new Array(chowfun_2_13, chowfun_2_19);
chowfun_2j = new Array(chowfun_2_14, chowfun_2_19);
chowfun_2k = new Array(chowfun_2_15, chowfun_2_15a, chowfun_2_19);
chowfun_2l = new Array(chowfun_2_16, chowfun_2_19);
chowfun_3_1 = new Object();
chowfun_3_1.area = 'down';
chowfun_3_1.speaker = _level0.heroName;
chowfun_3_1.portrait = _level0.charA001.portrait;
chowfun_3_1.dialogue = new Array('One plate of fried rice Mr Chow.');
chowfun_3_2 = new Object();
chowfun_3_2.area = 'up';
chowfun_3_2.speaker = 'Chow Fun';
chowfun_3_2.portrait = 'chowfun';
chowfun_3_2.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '16', 'statusVal': 99};
condition1 = new Array(condition1_1);
chowfun_3_2.conditionArray = new Array(condition1);
chowfun_3_2.dialogue = new Array('Okay, 10 credits.', 'No. No more fried rice for you.');
chowfun_3_2.responses = new Array('chowfun_3f', 'chowfun_3g');
chowfun_3_2a = new Object();
chowfun_3_2a.area = 'down';
chowfun_3_2a.speaker = _level0.heroName;
chowfun_3_2a.portrait = _level0.charA001.portrait;
chowfun_3_2a.dialogue = new Array('Okay fine.');
chowfun_3_3 = new Object();
chowfun_3_3.area = 'down';
chowfun_3_3.speaker = _level0.heroName;
chowfun_3_3.chatType = 'choice';
chowfun_3_3.portrait = _level0.charA001.portrait;
chowfun_3_3.dialogue = new Array('Yes', 'No', 'Haggle');
chowfun_3_3.responses = new Array('chowfun_3a', 'chowfun_3b', 'chowfun_3c');
chowfun_3_4 = new Object();
chowfun_3_4.area = 'down';
chowfun_3_4.speaker = _level0.heroName;
chowfun_3_4.chatType = 'compare';
condition1_1 = {'compareType': 'credits', 'minVal': 10, 'maxVal': 99999999};
condition1 = new Array(condition1_1);
chowfun_3_4.conditionArray = new Array(condition1);
chowfun_3_4.portrait = _level0.charA001.portrait;
chowfun_3_4.dialogue = new Array('I uh.. don\'t have enough credits.', 'It\'s a deal.');
chowfun_3_4.responses = new Array('chowfun_3d', 'chowfun_4');
chowfun_3_5 = new Object();
chowfun_3_5.area = 'up';
chowfun_3_5.speaker = 'Chow Fun';
chowfun_3_5.portrait = 'chowfun';
chowfun_3_5.dialogue = new Array('You don\'t like my rice?');
chowfun_3_6 = new Object();
chowfun_3_6.area = 'down';
chowfun_3_6.speaker = _level0.heroName;
chowfun_3_6.portrait = _level0.charA001.portrait;
chowfun_3_6.dialogue = new Array('No it isn\'t that Mr Chow. I just don\'t feel like spending any credits right now.');
chowfun_3_7 = new Object();
chowfun_3_7.area = 'down';
chowfun_3_7.speaker = _level0.heroName;
chowfun_3_7.portrait = _level0.charA001.portrait;
chowfun_3_7.dialogue = new Array('Can\'t you make it any cheaper?');
chowfun_3_8 = new Object();
chowfun_3_8.area = 'down';
chowfun_3_8.speaker = _level0.heroName;
chowfun_3_8.portrait = _level0.charA001.portrait;
chowfun_3_8.dialogue = new Array('I think I\'ll take a pass on the fried rice then.');
chowfun_3_9 = new Object();
chowfun_3_9.area = 'up';
chowfun_3_9.speaker = 'Chow Fun';
chowfun_3_9.portrait = 'chowfun';
chowfun_3_9.dialogue = new Array('Okay. You seem like a nice person. I give you best price ever...');
chowfun_3_10 = new Object();
chowfun_3_10.area = 'up';
chowfun_3_10.speaker = 'Chow Fun';
chowfun_3_10.portrait = 'chowfun';
chowfun_3_10.dialogue = new Array('9 credits.');
chowfun_3_11 = new Object();
chowfun_3_11.area = 'down';
chowfun_3_11.speaker = _level0.heroName;
chowfun_3_11.chatType = 'choice';
chowfun_3_11.portrait = _level0.charA001.portrait;
chowfun_3_11.dialogue = new Array('Yes', 'No');
chowfun_3_11.responses = new Array('chowfun_3e', 'chowfun_3b');
chowfun_3_12 = new Object();
chowfun_3_12.area = 'down';
chowfun_3_12.chatType = 'compare';
chowfun_3_12.speaker = _level0.heroName;
chowfun_3_12.portrait = _level0.charA001.portrait;
condition1_1 = {'compareType': 'credits', 'minVal': 9, 'maxVal': 99999999};
condition1 = new Array(condition1_1);
chowfun_3_12.conditionArray = new Array(condition1);
chowfun_3_12.dialogue = new Array('I uh.. don\'t have enough credits.', 'It\'s a deal.');
chowfun_3_12.responses = new Array('chowfun_3d', 'chowfun_4a');
chowfun_3 = new Array(chowfun_3_1, chowfun_3_2);
chowfun_3f = new Array(chowfun_3_3);
chowfun_3g = new Array(chowfun_3_2a);
chowfun_3a = new Array(chowfun_3_4);
chowfun_3b = new Array(chowfun_3_8, chowfun_3_5, chowfun_3_6, chowfun_1_10);
chowfun_3c = new Array(chowfun_3_7, chowfun_3_9, chowfun_3_10, chowfun_3_11);
chowfun_3d = new Array(chowfun_3_8, chowfun_1_10);
chowfun_3e = new Array(chowfun_3_12);
chowfun_4_1 = new Object();
chowfun_4_1.area = 'up';
chowfun_4_1.speaker = 'Chow Fun';
chowfun_4_1.portrait = 'chowfun';
chowfun_4_1.chatType = 'random';
chowfun_4_1.dialogue = new Array('Okay. You just wait here.', 'Okay. You just wait here.');
chowfun_4_1.responses = new Array('chowfun_4b', 'chowfun_4b');
action1 = {'actionType': 'credits', 'val': -10};
action2 = {'actionType': 'bg', 'transit': true};
chowfun_4_1.actions = new Array(action1, action2);
chowfun_4_1a = new Object();
chowfun_4_1a.area = 'up';
chowfun_4_1a.speaker = 'Chow Fun';
chowfun_4_1a.portrait = 'chowfun';
chowfun_4_1a.chatType = 'random';
chowfun_4_1a.dialogue = new Array('Okay. You just wait here.', 'Okay. You just wait here.');
chowfun_4_1a.responses = new Array('chowfun_4b', 'chowfun_4b');
action1 = {'actionType': 'credits', 'val': -9};
action2 = {'actionType': 'bg', 'transit': true};
chowfun_4_1a.actions = new Array(action1, action2);
chowfun_4_2 = new Object();
chowfun_4_2.area = 'up';
chowfun_4_2.speaker = 'Chow Fun';
chowfun_4_2.portrait = 'chowfun';
chowfun_4_2.dialogue = new Array('Done!');
action1 = {'actionType': 'bottomVisible', 'toShow': false};
chowfun_4_2.actions = new Array(action1);
chowfun_4_3 = new Object();
chowfun_4_3.area = 'down';
chowfun_4_3.speaker = _level0.heroName;
chowfun_4_3.portrait = _level0.charA001.portrait;
chowfun_4_3.dialogue = new Array('Wow that was fast.');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
chowfun_4_3.actions = new Array(action1);
chowfun_4_4 = new Object();
chowfun_4_4.area = 'down';
chowfun_4_4.speaker = _level0.heroName;
chowfun_4_4.portrait = _level0.charA001.portrait;
chowfun_4_4.dialogue = new Array('Let me try some.');
chowfun_4_5 = new Object();
chowfun_4_5.area = 'down';
chowfun_4_5.speaker = _level0.heroName;
chowfun_4_5.portrait = _level0.charA001.portrait;
chowfun_4_5.dialogue = new Array('(Takes a spoonful of fried rice)');
chowfun_4_6 = new Object();
chowfun_4_6.area = 'up';
chowfun_4_6.speaker = 'Chow Fun';
chowfun_4_6.portrait = 'chowfun';
chowfun_4_6.dialogue = new Array('How is it?');
chowfun_4_7 = new Object();
chowfun_4_7.area = 'down';
chowfun_4_7.speaker = _level0.heroName;
chowfun_4_7.portrait = _level0.charA001.portrait;
chowfun_4_7.chatType = 'choice';
chowfun_4_7.dialogue = new Array('Good', 'Bad', 'Terrible');
chowfun_4_7.responses = new Array('chowfun_4c', 'chowfun_5', 'chowfun_6');
chowfun_4_8 = new Object();
chowfun_4_8.area = 'down';
chowfun_4_8.speaker = _level0.heroName;
chowfun_4_8.portrait = _level0.charA001.portrait;
chowfun_4_8.dialogue = new Array('Hey, this is pretty tasty Mr Chow.');
chowfun_4_9 = new Object();
chowfun_4_9.area = 'down';
chowfun_4_9.speaker = _level0.heroName;
chowfun_4_9.portrait = _level0.charA001.portrait;
chowfun_4_9.dialogue = new Array('(Finishes eating the plate of fried rice)');
action1 = {'actionType': 'quest', 'id': '13', 'val': 0};
action2 = {'actionType': 'quest', 'id': '14', 'val': 0};
action3 = {'actionType': 'quest', 'id': '15', 'val': 0};
chowfun_4_9.actions = new Array(action1, action2, action3);
chowfun_4_10 = new Object();
chowfun_4_10.area = 'up';
chowfun_4_10.speaker = 'Chow Fun';
chowfun_4_10.portrait = 'chowfun';
chowfun_4_10.dialogue = new Array('That\'s good. I am always happy when my customer is happy.');
chowfun_4 = new Array(chowfun_4_1);
chowfun_4a = new Array(chowfun_4_1a);
chowfun_4b = new Array(chowfun_4_2, chowfun_4_3, chowfun_4_4, chowfun_4_5, chowfun_4_6, chowfun_4_7);
chowfun_4c = new Array(chowfun_4_8, chowfun_4_9, chowfun_4_10);
chowfun_5_1 = new Object();
chowfun_5_1.area = 'down';
chowfun_5_1.speaker = _level0.heroName;
chowfun_5_1.portrait = _level0.charA001.portrait;
chowfun_5_1.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '13', 'statusVal': 99};
condition1 = new Array(condition1_1);
condition2_1 = {'compareType': 'quest', 'id': '14', 'statusVal': 99};
condition2 = new Array(condition2_1);
condition3_1 = {'compareType': 'quest', 'id': '15', 'statusVal': 99};
condition3 = new Array(condition3_1);
chowfun_5_1.conditionArray = new Array(condition1, condition2, condition3);
chowfun_5_1.dialogue = new Array('This fried rice stinks.', 'This fried rice stinks.', 'This fried rice stinks.', 'This fried rice stinks.');
chowfun_5_1.responses = new Array('chowfun_5a', 'chowfun_5b', 'chowfun_5c', 'chowfun_5d');
chowfun_5_2 = new Object();
chowfun_5_2.area = 'up';
chowfun_5_2.speaker = 'Chow Fun';
chowfun_5_2.portrait = 'chowfun';
chowfun_5_2.dialogue = new Array('Oh yeah?');
action1 = {'actionType': 'quest', 'id': '13', 'val': 99};
chowfun_5_2.actions = new Array(action1);
chowfun_5_3 = new Object();
chowfun_5_3.area = 'up';
chowfun_5_3.speaker = 'Chow Fun';
chowfun_5_3.portrait = 'chowfun';
chowfun_5_3.dialogue = new Array('No problem. I can change another for you.');
chowfun_5_4 = new Object();
chowfun_5_4.area = 'down';
chowfun_5_4.speaker = _level0.heroName;
chowfun_5_4.portrait = _level0.charA001.portrait;
chowfun_5_4.dialogue = new Array('Uh... That\'s alright. Maybe next time.');
chowfun_6_1 = new Object();
chowfun_6_1.area = 'down';
chowfun_6_1.speaker = _level0.heroName;
chowfun_6_1.portrait = _level0.charA001.portrait;
chowfun_6_1.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '14', 'statusVal': 99};
condition1 = new Array(condition1_1);
condition2_1 = {'compareType': 'quest', 'id': '15', 'statusVal': 99};
condition2 = new Array(condition2_1);
chowfun_6_1.conditionArray = new Array(condition1, condition2);
chowfun_6_1.dialogue = new Array('This fried rice stinks!!!', 'This fried rice stinks!!!', 'This fried rice stinks!!!');
chowfun_6_1.responses = new Array('chowfun_6a', 'chowfun_6b', 'chowfun_6b');
chowfun_6_2 = new Object();
chowfun_6_2.area = 'down';
chowfun_6_2.speaker = _level0.heroName;
chowfun_6_2.portrait = _level0.charA001.portrait;
chowfun_6_2.dialogue = new Array('(Throws the plate of rice at Chow\'s face)');
chowfun_6_3 = new Object();
chowfun_6_3.area = 'up';
chowfun_6_3.speaker = 'Chow Fun';
chowfun_6_3.portrait = 'chowfun';
chowfun_6_3.dialogue = new Array('What\'s the matter with you?');
chowfun_6_4 = new Object();
chowfun_6_4.area = 'up';
chowfun_6_4.speaker = 'Chow Fun';
chowfun_6_4.portrait = 'chowfun';
chowfun_6_4.dialogue = new Array('You got a big problem?');
action1 = {'actionType': 'quest', 'id': '15', 'val': 99};
action2 = {'actionType': 'quest', 'id': '13', 'val': 0};
action3 = {'actionType': 'quest', 'id': '14', 'val': 0};
chowfun_6_4.actions = new Array(action1, action2, action3);
chowfun_6_4a = new Object();
chowfun_6_4a.area = 'up';
chowfun_6_4a.speaker = 'Chow Fun';
chowfun_6_4a.portrait = 'chowfun';
chowfun_6_4a.dialogue = new Array('You got a big problem?');
action1 = {'actionType': 'quest', 'id': '14', 'val': 99};
action2 = {'actionType': 'quest', 'id': '13', 'val': 0};
chowfun_6_4a.actions = new Array(action1, action2);
chowfun_6_5 = new Object();
chowfun_6_5.area = 'up';
chowfun_6_5.speaker = 'Chow Fun';
chowfun_6_5.portrait = 'chowfun';
chowfun_6_5.dialogue = new Array('You don\'t like my rice?!?');
chowfun_6_6 = new Object();
chowfun_6_6.area = 'up';
chowfun_6_6.speaker = 'Chow Fun';
chowfun_6_6.portrait = 'chowfun';
chowfun_6_6.dialogue = new Array('(Scoops rice back on to the plate with his hands)');
chowfun_6_7 = new Object();
chowfun_6_7.area = 'up';
chowfun_6_7.speaker = 'Chow Fun';
chowfun_6_7.portrait = 'chowfun';
chowfun_6_7.dialogue = new Array('What\'s wrong with the food?');
action1 = {'actionType': 'quest', 'id': '14', 'val': 99};
action2 = {'actionType': 'quest', 'id': '13', 'val': 0};
chowfun_6_7.actions = new Array(action1, action2);
chowfun_6_7a = new Object();
chowfun_6_7a.area = 'up';
chowfun_6_7a.speaker = 'Chow Fun';
chowfun_6_7a.portrait = 'chowfun';
chowfun_6_7a.dialogue = new Array('What\'s wrong with the food?');
chowfun_6_8 = new Object();
chowfun_6_8.area = 'up';
chowfun_6_8.speaker = 'Chow Fun';
chowfun_6_8.portrait = 'chowfun';
chowfun_6_8.dialogue = new Array('(Eats the fried rice himself)');
chowfun_6_9 = new Object();
chowfun_6_9.area = 'up';
chowfun_6_9.speaker = 'Chow Fun';
chowfun_6_9.portrait = 'chowfun';
chowfun_6_9.dialogue = new Array('It is beautiful for me.');
chowfun_6_10 = new Object();
chowfun_6_10.area = 'up';
chowfun_6_10.speaker = 'Chow Fun';
chowfun_6_10.portrait = 'chowfun';
chowfun_6_10.dialogue = new Array('For you, rice nothing.');
chowfun_6_11 = new Object();
chowfun_6_11.area = 'up';
chowfun_6_11.speaker = 'Chow Fun';
chowfun_6_11.portrait = 'chowfun';
chowfun_6_11.dialogue = new Array('But for me, rice just like my father and mother.');
chowfun_6_12 = new Object();
chowfun_6_12.area = 'up';
chowfun_6_12.speaker = 'Chow Fun';
chowfun_6_12.portrait = 'chowfun';
chowfun_6_12.dialogue = new Array('Don\'t mess with my family!');
chowfun_6_13 = new Object();
chowfun_6_13.area = 'up';
chowfun_6_13.speaker = 'Chow Fun';
chowfun_6_13.portrait = 'chowfun';
chowfun_6_13.dialogue = new Array('*Sob* I am very hurt about it...');
chowfun_6_14 = new Object();
chowfun_6_14.area = 'up';
chowfun_6_14.speaker = 'Chow Fun';
chowfun_6_14.portrait = 'chowfun';
chowfun_6_14.dialogue = new Array('I feel sorry with my rice... *Sob*');
chowfun_7_1 = new Object();
chowfun_7_1.area = 'up';
chowfun_7_1.speaker = 'Chow Fun';
chowfun_7_1.portrait = 'chowfun';
chowfun_7_1.dialogue = new Array('If you have any dignity, apologize to the rice now!!!');
chowfun_7_2 = new Object();
chowfun_7_2.area = 'down';
chowfun_7_2.speaker = _level0.heroName;
chowfun_7_2.portrait = _level0.charA001.portrait;
chowfun_7_2.chatType = 'choice';
chowfun_7_2.dialogue = new Array('Yes', 'No');
chowfun_7_2.responses = new Array('chowfun_7', 'chowfun_7a');
chowfun_5 = new Array(chowfun_5_1);
chowfun_5a = new Array(chowfun_5_2, chowfun_5_3, chowfun_5_4, chowfun_1_10);
chowfun_5b = new Array(chowfun_6_7, chowfun_6_8, chowfun_6_9, chowfun_3_5, chowfun_5_3, chowfun_5_4, chowfun_1_10);
chowfun_5c = new Array(chowfun_6_3, chowfun_6_4, chowfun_6_5, chowfun_5_3, chowfun_5_4, chowfun_1_10);
chowfun_5d = new Array(chowfun_3_5, chowfun_6_5, chowfun_6_8, chowfun_6_10, chowfun_6_11, chowfun_6_12, chowfun_6_13, chowfun_6_14, chowfun_7_1, chowfun_7_2);
chowfun_6 = new Array(chowfun_6_1);
chowfun_6a = new Array(chowfun_6_2, chowfun_6_3, chowfun_6_4a, chowfun_3_5, chowfun_6_5, chowfun_6_6, chowfun_5_3, chowfun_5_4, chowfun_1_10);
chowfun_6b = new Array(chowfun_6_2, chowfun_3_5, chowfun_6_5, chowfun_6_6, chowfun_6_7a, chowfun_6_8, chowfun_6_9, chowfun_6_10, chowfun_6_11, chowfun_6_12, chowfun_6_13, chowfun_6_14, chowfun_7_1, chowfun_7_2);
chowfun_7_3 = new Object();
chowfun_7_3.area = 'down';
chowfun_7_3.speaker = _level0.heroName;
chowfun_7_3.portrait = _level0.charA001.portrait;
chowfun_7_3.dialogue = new Array('Apologize? Uh... I\'m sorry?');
chowfun_7_4 = new Object();
chowfun_7_4.area = 'up';
chowfun_7_4.speaker = 'Chow Fun';
chowfun_7_4.portrait = 'chowfun';
chowfun_7_4.dialogue = new Array('That\'s better. Much better.');
action1 = {'actionType': 'quest', 'id': '13', 'val': 0};
action2 = {'actionType': 'quest', 'id': '14', 'val': 0};
action3 = {'actionType': 'quest', 'id': '15', 'val': 0};
chowfun_7_4.actions = new Array(action1, action2, action3);
chowfun_7_5 = new Object();
chowfun_7_5.area = 'down';
chowfun_7_5.speaker = _level0.heroName;
chowfun_7_5.portrait = _level0.charA001.portrait;
chowfun_7_5.dialogue = new Array('To heck with your rice, and to heck with you!');
chowfun_7_6 = new Object();
chowfun_7_6.area = 'up';
chowfun_7_6.speaker = 'Chow Fun';
chowfun_7_6.portrait = 'chowfun';
chowfun_7_6.dialogue = new Array('Open your mouth and eat the rice!!!');
chowfun_7_7 = new Object();
chowfun_7_7.area = 'down';
chowfun_7_7.speaker = _level0.heroName;
chowfun_7_7.portrait = _level0.charA001.portrait;
chowfun_7_7.chatType = 'choice';
chowfun_7_7.dialogue = new Array('Yes', 'No');
chowfun_7_7.responses = new Array('chowfun_7b', 'chowfun_7c');
chowfun_7_8 = new Object();
chowfun_7_8.area = 'down';
chowfun_7_8.speaker = _level0.heroName;
chowfun_7_8.portrait = _level0.charA001.portrait;
chowfun_7_8.dialogue = new Array('(Silently finishes up the plate of fried rice)');
chowfun_7_9 = new Object();
chowfun_7_9.area = 'down';
chowfun_7_9.speaker = _level0.heroName;
chowfun_7_9.portrait = _level0.charA001.portrait;
chowfun_7_9.dialogue = new Array('Never!');
action1 = {'actionType': 'quest', 'id': '16', 'val': 99};
chowfun_7_9.actions = new Array(action1);
chowfun_7_10 = new Object();
chowfun_7_10.area = 'up';
chowfun_7_10.speaker = 'Chow Fun';
chowfun_7_10.portrait = 'chowfun';
chowfun_7_10.dialogue = new Array('Then we settle this with MAWs! Right here, right now!');
action1 = {'actionType': 'combat', 'mSet': 'chef'};
action2 = {'actionType': 'exitShop'};
chowfun_7_10.actions = new Array(action1, action2);
chowfun_7 = new Array(chowfun_7_3, chowfun_7_4);
chowfun_7a = new Array(chowfun_7_5, chowfun_7_6, chowfun_7_7);
chowfun_7b = new Array(chowfun_7_8, chowfun_7_4);
chowfun_7c = new Array(chowfun_7_9, chowfun_7_10);
calisto_0_1 = new Object();
calisto_0_1.area = 'up';
calisto_0_1.speaker = 'Calisto Filio';
calisto_0_1.portrait = 'calisto';
calisto_0_1.dialogue = new Array('So, are you ready?');
calisto_0_2 = new Object();
calisto_0_2.area = 'down';
calisto_0_2.speaker = _level0.heroName;
calisto_0_2.portrait = _level0.charA001.portrait;
calisto_0_2.dialogue = new Array('Let\'s do this!');
action1 = {'actionType': 'combat', 'mSet': 'intro_1'};
calisto_0_2.actions = new Array(action1);
calisto_0_2a = new Object();
calisto_0_2a.area = 'up';
calisto_0_2a.speaker = 'Calisto Filio';
calisto_0_2a.portrait = 'calisto';
calisto_0_2a.dialogue = new Array('Well, we\'re here.');
calisto_0_2b = new Object();
calisto_0_2b.area = 'up';
calisto_0_2b.speaker = 'Calisto Filio';
calisto_0_2b.portrait = 'calisto';
calisto_0_2b.dialogue = new Array('You know, I really really don\'t want to \'baby-sit\' you today.');
calisto_0_2c = new Object();
calisto_0_2c.area = 'down';
calisto_0_2c.speaker = _level0.heroName;
calisto_0_2c.portrait = _level0.charA001.portrait;
calisto_0_2c.dialogue = new Array('Oh come on Cali, I\'m the one being trained, not you, and you don\'t hear me whining.');
calisto_0_2d = new Object();
calisto_0_2d.area = 'down';
calisto_0_2d.speaker = _level0.heroName;
calisto_0_2d.portrait = _level0.charA001.portrait;
calisto_0_2d.dialogue = new Array('Besides, you wouldn\'t be doing this if Ron didn\'t twist his ankle.');
calisto_0_2e = new Object();
calisto_0_2e.area = 'down';
calisto_0_2e.speaker = _level0.heroName;
calisto_0_2e.portrait = _level0.charA001.portrait;
calisto_0_2e.dialogue = new Array('He can\'t train me today, so he picked you. After all, you are my \'senior\'.');
calisto_0_2f = new Object();
calisto_0_2f.area = 'up';
calisto_0_2f.speaker = 'Calisto Filio';
calisto_0_2f.portrait = 'calisto';
calisto_0_2f.dialogue = new Array('Ahem, in more ways than one I might add.');
calisto_0_2g = new Object();
calisto_0_2g.area = 'down';
calisto_0_2g.speaker = _level0.heroName;
calisto_0_2g.portrait = _level0.charA001.portrait;
calisto_0_2g.dialogue = new Array('Riiiiight. You\'re older in age too.');
calisto_0_2h = new Object();
calisto_0_2h.area = 'up';
calisto_0_2h.speaker = 'Calisto Filio';
calisto_0_2h.portrait = 'calisto';
calisto_0_2h.dialogue = new Array('Hey! That wasn\'t what I meant and you know it.');
calisto_0_2i = new Object();
calisto_0_2i.area = 'down';
calisto_0_2i.speaker = _level0.heroName;
calisto_0_2i.portrait = _level0.charA001.portrait;
calisto_0_2i.dialogue = new Array('But it\'s a fact.');
calisto_0_2j = new Object();
calisto_0_2j.area = 'up';
calisto_0_2j.speaker = 'Calisto Filio';
calisto_0_2j.portrait = 'calisto';
calisto_0_2j.dialogue = new Array('Fine fine, let\'s just get to your training.');
calisto_0_2k = new Object();
calisto_0_2k.area = 'down';
calisto_0_2k.speaker = _level0.heroName;
calisto_0_2k.portrait = _level0.charA001.portrait;
calisto_0_2k.dialogue = new Array('Let\'s.');
calisto_0_3 = new Object();
calisto_0_3.area = 'up';
calisto_0_3.speaker = 'Calisto Filio';
calisto_0_3.portrait = 'calisto';
calisto_0_3.dialogue = new Array('Ok ' + _level0.heroName + ', before we begin...');
calisto_0_3a = new Object();
calisto_0_3a.area = 'up';
calisto_0_3a.speaker = 'Calisto Filio';
calisto_0_3a.portrait = 'calisto';
calisto_0_3a.dialogue = new Array('Do you think you\'ll need a refresher course on pilotin\' the MAW?');
calisto_0_3b = new Object();
calisto_0_3b.area = 'down';
calisto_0_3b.chatType = 'choice';
calisto_0_3b.speaker = _level0.heroName;
calisto_0_3b.portrait = _level0.charA001.portrait;
calisto_0_3b.dialogue = new Array('Yes', 'No');
calisto_0_3b.responses = new Array('calisto_0a', 'calisto_0b');
calisto_0 = new Array(calisto_0_2a, calisto_0_2b, calisto_0_2c, calisto_0_2d, calisto_0_2e, calisto_0_2f, calisto_0_2g, calisto_0_2h, calisto_0_2i, calisto_0_2j, calisto_0_2k, calisto_0_3, calisto_0_3a, calisto_0_3b);
calisto_0_3c = new Object();
calisto_0_3c.area = 'down';
calisto_0_3c.speaker = _level0.heroName;
calisto_0_3c.portrait = _level0.charA001.portrait;
calisto_0_3c.dialogue = new Array('Actually I think I--');
calisto_0_3d = new Object();
calisto_0_3d.area = 'down';
calisto_0_3d.speaker = _level0.heroName;
calisto_0_3d.portrait = _level0.charA001.portrait;
calisto_0_3d.dialogue = new Array('No thanks Cali, I\'m fine.');
calisto_0_3e = new Object();
calisto_0_3e.area = 'up';
calisto_0_3e.speaker = 'Calisto Filio';
calisto_0_3e.portrait = 'calisto';
calisto_0_3e.dialogue = new Array('*Groan* Okay fine, fine. We\'ll run through this again.');
action1 = {'actionType': 'shop', 'shopName': 'nil', 'shopMenuHide': true};
action2 = {'actionType': 'bg', 'transit': true, 'bg': 'tutorial_1'};
calisto_0_3e.actions = new Array(action1, action2);
calisto_0_3f = new Object();
calisto_0_3f.area = 'up';
calisto_0_3f.speaker = 'Calisto Filio';
calisto_0_3f.portrait = 'calisto';
action1 = {'actionType': 'bottomVisible', 'toShow': false};
calisto_0_3f.dialogue = new Array('First thing\'s first. Do you see that orange bar at the right hand corner of your interface.');
calisto_0_3f.actions = new Array(action1);
calisto_0_3g = new Object();
calisto_0_3g.area = 'down';
calisto_0_3g.speaker = _level0.heroName;
calisto_0_3g.portrait = _level0.charA001.portrait;
calisto_0_3g.dialogue = new Array('Sure.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_2'};
action2 = {'actionType': 'bottomVisible', 'toShow': true};
calisto_0_3g.actions = new Array(action1, action2);
calisto_0_3h = new Object();
calisto_0_3h.area = 'up';
calisto_0_3h.speaker = 'Calisto Filio';
calisto_0_3h.portrait = 'calisto';
calisto_0_3h.dialogue = new Array('Ok, that indicates the energy levels of your Moblie Adaptive Weapon (or MAW). Once it hits 100%, your MAW is ready for action.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_3'};
calisto_0_3h.actions = new Array(action1);
calisto_0_3i = new Object();
calisto_0_3i.area = 'up';
calisto_0_3i.speaker = 'Calisto Filio';
calisto_0_3i.portrait = 'calisto';
calisto_0_3i.dialogue = new Array('Now, once your MAW is ready, a menu will pop up on your interface.');
calisto_0_3j = new Object();
calisto_0_3j.area = 'up';
calisto_0_3j.speaker = 'Calisto Filio';
calisto_0_3j.portrait = 'calisto';
calisto_0_3j.dialogue = new Array('On the right side of this menu, you\'ll notice 2 slots.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_4'};
calisto_0_3j.actions = new Array(action1);
calisto_0_3k = new Object();
calisto_0_3k.area = 'up';
calisto_0_3k.speaker = 'Calisto Filio';
calisto_0_3k.portrait = 'calisto';
calisto_0_3k.dialogue = new Array('These will show the weapons your MAW has. The slot that is highlighted will show which weapon is currently in use.');
calisto_0_3l = new Object();
calisto_0_3l.area = 'up';
calisto_0_3l.speaker = 'Calisto Filio';
calisto_0_3l.portrait = 'calisto';
calisto_0_3l.dialogue = new Array('To choose a weapon, click on any one slot, or press \'1\' or \'2\'.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_5'};
calisto_0_3l.actions = new Array(action1);
calisto_0_3m = new Object();
calisto_0_3m.area = 'up';
calisto_0_3m.speaker = 'Calisto Filio';
calisto_0_3m.portrait = 'calisto';
calisto_0_3m.dialogue = new Array('Do not select a slot labelled \'NONE\', since that means the slot has no weapon, preventin\' you from attackin\'.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_3'};
calisto_0_3m.actions = new Array(action1);
calisto_0_3n = new Object();
calisto_0_3n.area = 'down';
calisto_0_3n.speaker = _level0.heroName;
calisto_0_3n.portrait = _level0.charA001.portrait;
calisto_0_3n.dialogue = new Array('Alright, what\'s next?');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_5a'};
calisto_0_3n.actions = new Array(action1);
calisto_0_3o = new Object();
calisto_0_3o.area = 'up';
calisto_0_3o.speaker = 'Calisto Filio';
calisto_0_3o.portrait = 'calisto';
calisto_0_3o.dialogue = new Array('Now, to pull off an attack, click on the \'ATTACK\' button, or press the \'A\' key. A pointer will appear above your enemies.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_6'};
calisto_0_3o.actions = new Array(action1);
calisto_0_3p = new Object();
calisto_0_3p.area = 'up';
calisto_0_3p.speaker = 'Calisto Filio';
calisto_0_3p.portrait = 'calisto';
calisto_0_3p.dialogue = new Array('Next, select which enemy you want to attack, either by clicking, or by scrollin\' through them with the LEFT and RIGHT keys, and then pressin\' SPACE.');
calisto_0_3q = new Object();
calisto_0_3q.area = 'up';
calisto_0_3q.speaker = 'Calisto Filio';
calisto_0_3q.portrait = 'calisto';
calisto_0_3q.dialogue = new Array('Make sure the pointer is above the correct enemy that you want to select. Take your time, since enemies will not attack at this point of time.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_7'};
calisto_0_3q.actions = new Array(action1);
calisto_0_3q1 = new Object();
calisto_0_3q1.area = 'up';
calisto_0_3q1.speaker = 'Calisto Filio';
calisto_0_3q1.portrait = 'calisto';
calisto_0_3q1.dialogue = new Array('Once you pull off an attack, a portion of your energy level will be deducted, and you\'ll have to wait until your MAW is ready again.');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'resetmap'};
calisto_0_3q1.actions = new Array(action1, action2);
calisto_0_3r = new Object();
calisto_0_3r.area = 'down';
calisto_0_3r.speaker = _level0.heroName;
calisto_0_3r.portrait = _level0.charA001.portrait;
action1 = {'actionType': 'topVisible', 'toShow': false};
action2 = {'actionType': 'exitShop'};
calisto_0_3r.dialogue = new Array('And that\'s it?');
calisto_0_3r.actions = new Array(action1, action2);
calisto_0_3s = new Object();
calisto_0_3s.area = 'up';
calisto_0_3s.speaker = 'Calisto Filio';
calisto_0_3s.portrait = 'calisto';
action1 = {'actionType': 'topVisible', 'toShow': true};
calisto_0_3s.dialogue = new Array('That\'s it. Do you need me to go through it once more?');
calisto_0_3s.actions = new Array(action1);
calisto_0_3t = new Object();
calisto_0_3t.area = 'up';
calisto_0_3t.speaker = 'Calisto Filio';
calisto_0_3t.portrait = 'calisto';
calisto_0_3t.dialogue = new Array('Good. Now take down the dummy!');
action1 = {'actionType': 'combat', 'mSet': 'intro_1'};
calisto_0_3t.actions = new Array(action1);
calisto_0a = new Array(calisto_0_3c, calisto_0_3e, calisto_0_3f, calisto_0_3g, calisto_0_3h, calisto_0_3i, calisto_0_3j, calisto_0_3k, calisto_0_3l, calisto_0_3m, calisto_0_3n, calisto_0_3o, calisto_0_3p, calisto_0_3q, calisto_0_3q1, calisto_0_3r, calisto_0_3s, calisto_0_3b);
calisto_0b = new Array(calisto_0_3d, calisto_0_1, calisto_0_2);
calisto_0_4a = new Object();
calisto_0_4a.area = 'up';
calisto_0_4a.speaker = 'Calisto Filio';
calisto_0_4a.portrait = 'calisto';
calisto_0_4a.dialogue = new Array('Nice work.');
calisto_0_4b = new Object();
calisto_0_4b.area = 'down';
calisto_0_4b.speaker = _level0.heroName;
calisto_0_4b.portrait = _level0.charA001.portrait;
calisto_0_4b.dialogue = new Array('Oh that was nothing.');
calisto_0_4b1 = new Object();
calisto_0_4b1.area = 'up';
calisto_0_4b1.speaker = 'Calisto Filio';
calisto_0_4b1.portrait = 'calisto';
calisto_0_4b1.dialogue = new Array('Hmph. Don\'t get too comfortable, there\'s more.');
calisto_0_4c = new Object();
calisto_0_4c.area = 'up';
calisto_0_4c.speaker = 'Calisto Filio';
calisto_0_4c.portrait = 'calisto';
calisto_0_4c.dialogue = new Array('We\'ll move on to live targets. Do you need to know about advanced combat techniques?');
calisto_0_4d = new Object();
calisto_0_4d.area = 'down';
calisto_0_4d.chatType = 'choice';
calisto_0_4d.speaker = _level0.heroName;
calisto_0_4d.portrait = _level0.charA001.portrait;
calisto_0_4d.dialogue = new Array('Yes', 'No');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
calisto_0_4d.responses = new Array('calisto_0d', 'calisto_0e');
calisto_0_4d.actions = new Array(action1);
calisto_0_4e = new Object();
calisto_0_4e.area = 'down';
calisto_0_4e.speaker = _level0.heroName;
calisto_0_4e.portrait = _level0.charA001.portrait;
calisto_0_4e.dialogue = new Array('No, I already know what to do.');
calisto_0_4f = new Object();
calisto_0_4f.area = 'down';
calisto_0_4f.speaker = _level0.heroName;
calisto_0_4f.portrait = _level0.charA001.portrait;
calisto_0_4f.dialogue = new Array('Well I er...');
calisto_0_4g = new Object();
calisto_0_4g.area = 'up';
calisto_0_4g.speaker = 'Calisto Filio';
calisto_0_4g.portrait = 'calisto';
calisto_0_4g.dialogue = new Array('*Sigh* Why am I not surprised.');
action1 = {'actionType': 'bg', 'transit': true, 'bg': 'tutorial_8'};
action2 = {'actionType': 'shop', 'shopName': 'nil', 'shopMenuHide': true};
calisto_0_4g.actions = new Array(action1, action2);
calisto_0_4h = new Object();
calisto_0_4h.area = 'up';
calisto_0_4h.speaker = 'Calisto Filio';
calisto_0_4h.portrait = 'calisto';
action1 = {'actionType': 'bottomVisible', 'toShow': false};
calisto_0_4h.dialogue = new Array('Alright, since most enemies you face don\'t just do nothin\'...');
calisto_0_4h.actions = new Array(action1);
calisto_0_4i = new Object();
calisto_0_4i.area = 'up';
calisto_0_4i.speaker = 'Calisto Filio';
calisto_0_4i.portrait = 'calisto';
calisto_0_4i.dialogue = new Array('There is an obvious need to consider other aspects of combat besides offense.');
calisto_0_4j = new Object();
calisto_0_4j.area = 'down';
calisto_0_4j.speaker = _level0.heroName;
calisto_0_4j.portrait = _level0.charA001.portrait;
calisto_0_4j.dialogue = new Array('Like defense right?');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_8a'};
action2 = {'actionType': 'bottomVisible', 'toShow': true};
calisto_0_4j.actions = new Array(action1, action2);
calisto_0_4k = new Object();
calisto_0_4k.area = 'up';
calisto_0_4k.speaker = 'Calisto Filio';
calisto_0_4k.portrait = 'calisto';
calisto_0_4k.dialogue = new Array('That\'s right. Just click on the \'DEFEND\' button or press the \'D\' key.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_9'};
calisto_0_4k.actions = new Array(action1);
calisto_0_4l = new Object();
calisto_0_4l.area = 'up';
calisto_0_4l.speaker = 'Calisto Filio';
calisto_0_4l.portrait = 'calisto';
calisto_0_4l.dialogue = new Array('Your MAW will begin to block, allowin\' it to take less damage until you perform your next action.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_10'};
calisto_0_4l.actions = new Array(action1);
calisto_0_4m = new Object();
calisto_0_4m.area = 'up';
calisto_0_4m.speaker = 'Calisto Filio';
calisto_0_4m.portrait = 'calisto';
calisto_0_4m.dialogue = new Array('Now, if you look closely at the bottom of the interface menu, you will see an INVENTORY bar.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_11'};
calisto_0_4m.actions = new Array(action1);
calisto_0_4n = new Object();
calisto_0_4n.area = 'up';
calisto_0_4n.speaker = 'Calisto Filio';
calisto_0_4n.portrait = 'calisto';
calisto_0_4n.dialogue = new Array('To scroll through the INVENTORY bar, click the back and forward arrows at the side of the bar, or use the keys \'Q\' and \'W\'.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_12'};
calisto_0_4n.actions = new Array(action1);
calisto_0_4o = new Object();
calisto_0_4o.area = 'up';
calisto_0_4o.speaker = 'Calisto Filio';
calisto_0_4o.portrait = 'calisto';
calisto_0_4o.dialogue = new Array('This is used together with the \'USE ITEM\' command, by clicking it or pressing the \'E\' key.');
calisto_0_4p = new Object();
calisto_0_4p.area = 'up';
calisto_0_4p.speaker = 'Calisto Filio';
calisto_0_4p.portrait = 'calisto';
calisto_0_4p.dialogue = new Array('Such a commmand is especially important when you need to use items to repair your MAW.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_3'};
calisto_0_4p.actions = new Array(action1);
calisto_0_4q = new Object();
calisto_0_4q.area = 'down';
calisto_0_4q.speaker = _level0.heroName;
calisto_0_4q.portrait = _level0.charA001.portrait;
calisto_0_4q.dialogue = new Array('Anything else, Cali?');
calisto_0_4q1 = new Object();
calisto_0_4q1.area = 'up';
calisto_0_4q1.speaker = 'Calisto Filio';
calisto_0_4q1.portrait = 'calisto';
calisto_0_4q1.dialogue = new Array('Wellll.... As you know, your MAW\'s energy levels can go beyond 100%.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_12a'};
calisto_0_4q1.actions = new Array(action1);
calisto_0_4q2 = new Object();
calisto_0_4q2.area = 'up';
calisto_0_4q2.speaker = 'Calisto Filio';
calisto_0_4q2.portrait = 'calisto';
calisto_0_4q2.dialogue = new Array('At 125%, the energy bar will start to flash, and any SPECIAL SKILLS developed for the MAW will kick in.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_12b'};
calisto_0_4q2.actions = new Array(action1);
calisto_0_4q3 = new Object();
calisto_0_4q3.area = 'up';
calisto_0_4q3.speaker = 'Calisto Filio';
calisto_0_4q3.portrait = 'calisto';
calisto_0_4q3.dialogue = new Array('These skills are developed later on as you gain more experience in MAW combat.');
calisto_0_4q4 = new Object();
calisto_0_4q4.area = 'up';
calisto_0_4q4.speaker = 'Calisto Filio';
calisto_0_4q4.portrait = 'calisto';
calisto_0_4q4.dialogue = new Array('Click on their respective buttons, or press the key that corresponds to the highlighted letter in the skill\'s name, and see what it does.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_8'};
calisto_0_4q4.actions = new Array(action1);
calisto_0_4r = new Object();
calisto_0_4r.area = 'up';
calisto_0_4r.speaker = 'Calisto Filio';
calisto_0_4r.portrait = 'calisto';
calisto_0_4r.dialogue = new Array('One more thing, if at any time you feel you can\'t win a battle, don\'t be ashamed to run.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_13'};
calisto_0_4r.actions = new Array(action1);
calisto_0_4s = new Object();
calisto_0_4s.area = 'up';
calisto_0_4s.speaker = 'Calisto Filio';
calisto_0_4s.portrait = 'calisto';
calisto_0_4s.dialogue = new Array('Click the \'ESCAPE\' command at the bottom right of the menu, or press the \'S\' key.');
action1 = {'actionType': 'bg', 'transit': false, 'bg': 'tutorial_14'};
calisto_0_4s.actions = new Array(action1);
calisto_0_4t = new Object();
calisto_0_4t.area = 'up';
calisto_0_4t.speaker = 'Calisto Filio';
calisto_0_4t.portrait = 'calisto';
calisto_0_4t.dialogue = new Array('You will always escape with success. It\'s only a question of how long it takes.');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'resetmap'};
action3 = {'actionType': 'exitShop'};
calisto_0_4t.actions = new Array(action1, action2, action3);
calisto_0_4u = new Object();
calisto_0_4u.area = 'up';
calisto_0_4u.speaker = 'Calisto Filio';
calisto_0_4u.portrait = 'calisto';
calisto_0_4u.dialogue = new Array('So... Do I need to repeat myself?');
action1 = {'actionType': 'bottomVisible', 'toShow': false};
calisto_0_4u.actions = new Array(action1);
calisto_0_4v = new Object();
calisto_0_4v.area = 'up';
calisto_0_4v.speaker = 'Calisto Filio';
calisto_0_4v.portrait = 'calisto';
calisto_0_4v.dialogue = new Array('Then let\'s take down that swarm of gearflies.');
calisto_0_4w = new Object();
calisto_0_4w.area = 'down';
calisto_0_4w.speaker = _level0.heroName;
calisto_0_4w.portrait = _level0.charA001.portrait;
calisto_0_4w.dialogue = new Array('Where?');
calisto_0_4x = new Object();
calisto_0_4x.area = 'up';
calisto_0_4x.speaker = 'Calisto Filio';
calisto_0_4x.portrait = 'calisto';
calisto_0_4x.dialogue = new Array('Over there...');
calisto_0_4y = new Object();
calisto_0_4y.area = 'down';
calisto_0_4y.speaker = _level0.heroName;
calisto_0_4y.portrait = _level0.charA001.portrait;
calisto_0_4y.dialogue = new Array('I can\'t se--Oh! There they are.');
action1 = {'actionType': 'combat', 'mSet': 'intro_2'};
calisto_0_4y.actions = new Array(action1);
calisto_0c = new Array(calisto_0_4a, calisto_0_4b, calisto_0_4b1, calisto_0_4c, calisto_0_4d);
calisto_0d = new Array(calisto_0_4f, calisto_0_4g, calisto_0_4h, calisto_0_4i, calisto_0_4j, calisto_0_4k, calisto_0_4l, calisto_0_4m, calisto_0_4n, calisto_0_4o, calisto_0_4p, calisto_0_4q, calisto_0_4q1, calisto_0_4q2, calisto_0_4q3, calisto_0_4q4, calisto_0_4r, calisto_0_4s, calisto_0_4t, calisto_0_4u, calisto_0_4d);
calisto_0e = new Array(calisto_0_4e, calisto_0_4v, calisto_0_4w, calisto_0_4x, calisto_0_4y);
calisto_0_5 = new Object();
calisto_0_5.area = 'up';
calisto_0_5.speaker = 'Calisto Filio';
calisto_0_5.portrait = 'calisto';
calisto_0_5.dialogue = new Array('Very nice, ' + _level0.heroName + '. You did pretty good.');
calisto_0_5a = new Object();
calisto_0_5a.area = 'down';
calisto_0_5a.speaker = _level0.heroName;
calisto_0_5a.portrait = _level0.charA001.portrait;
calisto_0_5a.dialogue = new Array('Why thank you, Cali.');
calisto_0_5a1 = new Object();
calisto_0_5a1.area = 'up';
calisto_0_5a1.speaker = 'Calisto Filio';
calisto_0_5a1.portrait = 'calisto';
calisto_0_5a1.dialogue = new Array('And now for the final phase of today\'s trainin\'...');
calisto_0_5a2 = new Object();
calisto_0_5a2.area = 'down';
calisto_0_5a2.speaker = _level0.heroName;
calisto_0_5a2.portrait = _level0.charA001.portrait;
calisto_0_5a2.dialogue = new Array('Which is...?');
calisto_0_5b = new Object();
calisto_0_5b.area = 'up';
calisto_0_5b.speaker = 'Calisto Filio';
calisto_0_5b.portrait = 'calisto';
calisto_0_5b.dialogue = new Array('Navigate your way out of this grotto. Simple as that.');
calisto_0_5c = new Object();
calisto_0_5c.area = 'up';
calisto_0_5c.speaker = 'Calisto Filio';
calisto_0_5c.portrait = 'calisto';
calisto_0_5c.dialogue = new Array('You might encounter a couple more gearflies along the way.');
calisto_0_5d = new Object();
calisto_0_5d.area = 'up';
calisto_0_5d.speaker = 'Calisto Filio';
calisto_0_5d.portrait = 'calisto';
calisto_0_5d.dialogue = new Array('Should be \'fun\'. *Grin*');
action1 = {'actionType': 'animate_map', 'id': 'cell12_8', 'val': 'a2'};
action2 = {'actionType': 'quest', 'id': '26', 'val': 2};
action3 = {'actionType': 'resetmap'};
calisto_0_5d.actions = new Array(action1, action2, action3);
calisto_0_5e = new Object();
calisto_0_5e.area = 'down';
calisto_0_5e.speaker = _level0.heroName;
calisto_0_5e.portrait = _level0.charA001.portrait;
calisto_0_5e.dialogue = new Array('Says you.');
calisto_0f = new Array(calisto_0_5, calisto_0_5a, calisto_0_5a1, calisto_0_5a2, calisto_0_5b, calisto_0_5c, calisto_0_5d, calisto_0_5e);
calisto_0_6 = new Object();
calisto_0_6.area = 'up';
calisto_0_6.speaker = 'Calisto Filio';
calisto_0_6.portrait = 'calisto';
calisto_0_6.dialogue = new Array('Alright, this is it.');
calisto_0_6a = new Object();
calisto_0_6a.area = 'down';
calisto_0_6a.speaker = _level0.heroName;
calisto_0_6a.portrait = _level0.charA001.portrait;
calisto_0_6a.dialogue = new Array('We\'re done?');
calisto_0_6b = new Object();
calisto_0_6b.area = 'up';
calisto_0_6b.speaker = 'Calisto Filio';
calisto_0_6b.portrait = 'calisto';
calisto_0_6b.dialogue = new Array('We\'re done. The end of today\'s trainin\' session.');
calisto_0_6b1 = new Object();
calisto_0_6b1.area = 'down';
calisto_0_6b1.speaker = _level0.heroName;
calisto_0_6b1.portrait = _level0.charA001.portrait;
calisto_0_6b1.dialogue = new Array('Finally!!!');
calisto_0_6b2 = new Object();
calisto_0_6b2.area = 'up';
calisto_0_6b2.speaker = 'Calisto Filio';
calisto_0_6b2.portrait = 'calisto';
calisto_0_6b2.dialogue = new Array('Oh come on, don\'t make it sound like it\'s THAT bad.');
calisto_0_6b3 = new Object();
calisto_0_6b3.area = 'up';
calisto_0_6b3.speaker = 'Calisto Filio';
calisto_0_6b3.portrait = 'calisto';
calisto_0_6b3.dialogue = new Array('Don\'t you want to be a great MAW pilot someday?');
calisto_0_6b4 = new Object();
calisto_0_6b4.area = 'down';
calisto_0_6b4.chatType = 'choice';
calisto_0_6b4.speaker = _level0.heroName;
calisto_0_6b4.portrait = _level0.charA001.portrait;
calisto_0_6b4.dialogue = new Array('I do?', 'I do!', 'Don\'t you?');
calisto_0_6b4.responses = new Array('calisto_0h', 'calisto_0i', 'calisto_0j');
calisto_0_6b5 = new Object();
calisto_0_6b5.area = 'down';
calisto_0_6b5.speaker = _level0.heroName;
calisto_0_6b5.portrait = _level0.charA001.portrait;
calisto_0_6b5.dialogue = new Array('I do?');
calisto_0_6b6 = new Object();
calisto_0_6b6.area = 'up';
calisto_0_6b6.speaker = 'Calisto Filio';
calisto_0_6b6.portrait = 'calisto';
calisto_0_6b6.dialogue = new Array('I sense a lack of self-confidence...');
calisto_0_6b7 = new Object();
calisto_0_6b7.area = 'down';
calisto_0_6b7.speaker = _level0.heroName;
calisto_0_6b7.portrait = _level0.charA001.portrait;
calisto_0_6b7.dialogue = new Array('Well it\'s not as if that\'s going to be my mission in life.');
calisto_0_6b8 = new Object();
calisto_0_6b8.area = 'down';
calisto_0_6b8.speaker = _level0.heroName;
calisto_0_6b8.portrait = _level0.charA001.portrait;
calisto_0_6b8.dialogue = new Array('I do!');
calisto_0_6b9 = new Object();
calisto_0_6b9.area = 'up';
calisto_0_6b9.speaker = 'Calisto Filio';
calisto_0_6b9.portrait = 'calisto';
calisto_0_6b9.dialogue = new Array('Ha! That\'s the spirit.');
calisto_0_6b10 = new Object();
calisto_0_6b10.area = 'down';
calisto_0_6b10.speaker = _level0.heroName;
calisto_0_6b10.portrait = _level0.charA001.portrait;
calisto_0_6b10.dialogue = new Array('Don\'t you?');
calisto_0_6b11 = new Object();
calisto_0_6b11.area = 'up';
calisto_0_6b11.speaker = 'Calisto Filio';
calisto_0_6b11.portrait = 'calisto';
calisto_0_6b11.dialogue = new Array('Hey, I was the one askin\' the question...');
calisto_0_6b12 = new Object();
calisto_0_6b12.area = 'up';
calisto_0_6b12.speaker = 'Calisto Filio';
calisto_0_6b12.portrait = 'calisto';
calisto_0_6b12.dialogue = new Array('Besides, I already am pretty good MAW pilot, or Ron wouldn\'t have asked me to train you.');
calisto_0_6b13 = new Object();
calisto_0_6b13.area = 'down';
calisto_0_6b13.speaker = _level0.heroName;
calisto_0_6b13.portrait = _level0.charA001.portrait;
calisto_0_6b13.dialogue = new Array('A little overconfident, aren\'t we?');
calisto_0_6c = new Object();
calisto_0_6c.area = 'down';
calisto_0_6c.speaker = _level0.heroName;
calisto_0_6c.portrait = _level0.charA001.portrait;
calisto_0_6c.dialogue = new Array('Anyway, all I want to do now is go back and slump on my bed.');
calisto_0_6d = new Object();
calisto_0_6d.area = 'down';
calisto_0_6d.speaker = _level0.heroName;
calisto_0_6d.portrait = _level0.charA001.portrait;
calisto_0_6d.dialogue = new Array('And let\'s not forget that I have to help out in the garage tomorrow.');
calisto_0_6e = new Object();
calisto_0_6e.area = 'up';
calisto_0_6e.speaker = 'Calisto Filio';
calisto_0_6e.portrait = 'calisto';
calisto_0_6e.dialogue = new Array('Big whoop. I used to do that all the time when I was under Ron.');
calisto_0_6f = new Object();
calisto_0_6f.area = 'up';
calisto_0_6f.speaker = 'Calisto Filio';
calisto_0_6f.portrait = 'calisto';
calisto_0_6f.dialogue = new Array('Just be glad you don\'t have to do bridge maintenance like me.');
calisto_0_6g = new Object();
calisto_0_6g.area = 'down';
calisto_0_6g.speaker = _level0.heroName;
calisto_0_6g.portrait = _level0.charA001.portrait;
calisto_0_6g.dialogue = new Array('Bridge maintenance?');
calisto_0_6h = new Object();
calisto_0_6h.area = 'up';
calisto_0_6h.speaker = 'Calisto Filio';
calisto_0_6h.portrait = 'calisto';
calisto_0_6h.dialogue = new Array('Yeah, you know the one at the Endless Gorge? I have to service it every few months or so.');
calisto_0_6i = new Object();
calisto_0_6i.area = 'down';
calisto_0_6i.speaker = _level0.heroName;
calisto_0_6i.portrait = _level0.charA001.portrait;
calisto_0_6i.dialogue = new Array('Wow, those shoes of yours... I do not want to be in them tomorrow.');
calisto_0_6j = new Object();
calisto_0_6j.area = 'up';
calisto_0_6j.speaker = 'Calisto Filio';
calisto_0_6j.portrait = 'calisto';
calisto_0_6j.dialogue = new Array('Told you.');
calisto_0_6k = new Object();
calisto_0_6k.area = 'up';
calisto_0_6k.speaker = 'Calisto Filio';
calisto_0_6k.portrait = 'calisto';
calisto_0_6k.dialogue = new Array('Now come on, let\'s get out of this grotto and go home.');
calisto_0_6l = new Object();
calisto_0_6l.area = 'down';
calisto_0_6l.speaker = _level0.heroName;
calisto_0_6l.portrait = _level0.charA001.portrait;
calisto_0_6l.dialogue = new Array('Right, you go your way, and I go mine.');
action1 = {'actionType': 'quest', 'id': '26', 'val': 99};
action3 = {'actionType': 'bg', 'transit': true, 'bg': 'blackout'};
action2 = {'actionType': 'shop', 'shopName': 'blackout', 'shopMenuHide': true};
action4 = {'actionType': 'sleepParty', 'id': 'A003'};
calisto_0_6l.actions = new Array(action1, action2, action3, action4);
calisto_0_6m = new Object();
calisto_0_6m.area = 'down';
calisto_0_6m.speaker = '';
calisto_0_6m.portrait = '';
calisto_0_6m.dialogue = new Array('(...And so...)');
action1 = {'actionType': 'topVisible', 'toShow': false};
calisto_0_6m.actions = new Array(action1);
calisto_0_6n = new Object();
calisto_0_6n.area = 'down';
calisto_0_6n.speaker = '';
calisto_0_6n.portrait = '';
calisto_0_6n.dialogue = new Array('(' + _level0.heroName + ' finally returns to Tikila Village...)');
action1 = {'actionType': 'bg', 'transit': true};
action3 = {'actionType': 'newmap', 'mapID': 1, 'areaID': 2, 'locX': 310, 'locZ': -210};
action4 = {'actionType': 'setTime', 'hours': 20, 'mins': 59};
action2 = {'actionType': 'exitShop'};
calisto_0_6n.actions = new Array(action1, action2, action3, action4);
calisto_0_7 = new Object();
calisto_0_7.area = 'down';
calisto_0_7.speaker = _level0.heroName;
calisto_0_7.portrait = _level0.charA001.portrait;
calisto_0_7.dialogue = new Array('*Yawn* That was certainly tiring...');
calisto_0_7a = new Object();
calisto_0_7a.area = 'down';
calisto_0_7a.chatType = 'random';
calisto_0_7a.speaker = _level0.heroName;
calisto_0_7a.portrait = _level0.charA001.portrait;
calisto_0_7a.dialogue = new Array('Hope I\'m able to get up early tomorrow.', 'Hope I\'m able to get up early tomorrow.');
action1 = {'actionType': 'bg', 'transit': true, 'sleep': true, 'bg': 'house01'};
action2 = {'actionType': 'shop', 'shopName': 'house01', 'shopMenuHide': true};
calisto_0_7a.actions = new Array(action1, action2);
calisto_0_7a.responses = new Array('ron_0', 'ron_0');
calisto_0g = new Array(calisto_0_6, calisto_0_6a, calisto_0_6b, calisto_0_6b1, calisto_0_6b2, calisto_0_6b3, calisto_0_6b4);
calisto_0h = new Array(calisto_0_6b5, calisto_0_6b6, calisto_0_6b7, calisto_0_6c, calisto_0_6d, calisto_0_6e, calisto_0_6f, calisto_0_6g, calisto_0_6h, calisto_0_6i, calisto_0_6j, calisto_0_6k, calisto_0_6l, calisto_0_6m, calisto_0_6n, calisto_0_7, calisto_0_7a);
calisto_0i = new Array(calisto_0_6b8, calisto_0_6b9, calisto_0_6c, calisto_0_6d, calisto_0_6e, calisto_0_6f, calisto_0_6g, calisto_0_6h, calisto_0_6i, calisto_0_6j, calisto_0_6k, calisto_0_6l, calisto_0_6m, calisto_0_6n, calisto_0_7, calisto_0_7a);
calisto_0j = new Array(calisto_0_6b10, calisto_0_6b11, calisto_0_6b12, calisto_0_6b13, calisto_0_6c, calisto_0_6d, calisto_0_6e, calisto_0_6f, calisto_0_6g, calisto_0_6h, calisto_0_6i, calisto_0_6j, calisto_0_6k, calisto_0_6l, calisto_0_6m, calisto_0_6n, calisto_0_7, calisto_0_7a);
calisto_1_1 = new Object();
calisto_1_1.area = 'up';
calisto_1_1.speaker = 'Calisto Filio';
calisto_1_1.portrait = 'calisto';
calisto_1_1.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 1};
condition1_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 0};
condition2_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 0};
condition2_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 1};
condition3_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 1};
condition3_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 1};
condition4_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 99};
condition4_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 1};
condition5_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 99};
condition5_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 99};
condition5_3 = {'compareType': 'item', 'id': 'I007Q', 'minVal': 1, 'maxVal': 999};
condition6_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 0};
condition6_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 99};
condition7_1 = {'compareType': 'quest', 'id': '9', 'statusVal': 1};
condition7_2 = {'compareType': 'quest', 'id': '3', 'statusVal': 99};
condition1 = new Array(condition1_1, condition1_2);
condition2 = new Array(condition2_1, condition2_2);
condition3 = new Array(condition3_1, condition3_2);
condition4 = new Array(condition4_1, condition4_2);
condition5 = new Array(condition5_1, condition5_2, condition5_3);
condition6 = new Array(condition6_1, condition6_2);
condition7 = new Array(condition7_1, condition7_2);
calisto_1_1.conditionArray = new Array(condition1, condition2, condition3, condition4, condition5, condition6, condition7);
calisto_1_1.dialogue = new Array('Mornin\' ' + _level0.heroName + '.', 'Somethin\' else I can do for you ' + _level0.heroName + '?', 'Mornin\' ' + _level0.heroName + '.', 'What now ' + _level0.heroName + '?', 'What are you still doin\' here? Shouldn\'t you be lookin\' for plasmarock?', 'What now ' + _level0.heroName + '?', 'Mornin\' ' + _level0.heroName + '.', 'What now ' + _level0.heroName + '?');
calisto_1_1.responses = new Array('calisto_1a', 'calisto_1b', 'calisto_2', 'calisto_2a', 'calisto_2b', 'calisto_3a', 'calisto_2', 'calisto_2a');
calisto_1_2 = new Object();
calisto_1_2.area = 'down';
calisto_1_2.speaker = _level0.heroName;
calisto_1_2.portrait = _level0.charA001.portrait;
calisto_1_2.dialogue = new Array('Cali... Still servicing the bridge?');
calisto_1_3 = new Object();
calisto_1_3.area = 'up';
calisto_1_3.speaker = 'Calisto Filio';
calisto_1_3.portrait = 'calisto';
calisto_1_3.dialogue = new Array('Not really. Some stupid sprout damaged the auto extender on this side when I was about to leave. So the bridge is down.');
calisto_1_4 = new Object();
calisto_1_4.area = 'up';
calisto_1_4.speaker = 'Calisto Filio';
calisto_1_4.portrait = 'calisto';
calisto_1_4.dialogue = new Array('If you\'re headin\' to Acero Terminus, you might want to wait \'til I\'m done fixin\' it.');
calisto_1_5 = new Object();
calisto_1_5.area = 'down';
calisto_1_5.speaker = _level0.heroName;
calisto_1_5.portrait = _level0.charA001.portrait;
calisto_1_5.dialogue = new Array('Actually I was just passing by. I think I\'ll just leave you to your work.');
calisto_1_6 = new Object();
calisto_1_6.area = 'up';
calisto_1_6.speaker = 'Calisto Filio';
calisto_1_6.portrait = 'calisto';
calisto_1_6.dialogue = new Array('Good. I\'ve got a lot of it ahead of me.');
action1 = {'actionType': 'quest', 'id': '9', 'val': 1};
calisto_1_6.actions = new Array(action1);
calisto_1 = new Array(calisto_1_1);
calisto_1a = new Array(calisto_1_2, calisto_1_3, calisto_1_4, calisto_1_5, calisto_1_6);
calisto_1b = new Array(calisto_1_5, calisto_1_6);
calisto_2_1 = new Object();
calisto_2_1.area = 'down';
calisto_2_1.speaker = _level0.heroName;
calisto_2_1.portrait = _level0.charA001.portrait;
calisto_2_1.dialogue = new Array('Hey Cali.');
calisto_2_2 = new Object();
calisto_2_2.area = 'down';
calisto_2_2.speaker = 'Billy Barrage';
calisto_2_2.portrait = 'barrage';
calisto_2_2.dialogue = new Array('Hey Cali!');
calisto_2_3 = new Object();
calisto_2_3.area = 'up';
calisto_2_3.speaker = 'Calisto Filio';
calisto_2_3.portrait = 'calisto';
calisto_2_3.dialogue = new Array('And I see you\'ve brought along Billy Barrage as well.');
calisto_2_5 = new Object();
calisto_2_5.area = 'down';
calisto_2_5.speaker = _level0.heroName;
calisto_2_5.portrait = _level0.charA001.portrait;
calisto_2_5.dialogue = new Array('Cali, Ron told us about the Macrogen you needed.');
calisto_2_6 = new Object();
calisto_2_6.area = 'up';
calisto_2_6.speaker = 'Calisto Filio';
calisto_2_6.portrait = 'calisto';
calisto_2_6.dialogue = new Array('And you brought it with you? Finally!!');
action1 = {'actionType': 'quest', 'id': '9', 'val': 99};
calisto_2_6.actions = new Array(action1);
calisto_2_7 = new Object();
calisto_2_7.area = 'down';
calisto_2_7.speaker = _level0.heroName;
calisto_2_7.portrait = _level0.charA001.portrait;
calisto_2_7.chatType = 'compare';
condition1_1 = {'compareType': 'item', 'id': 'I007Q', 'minVal': 1, 'maxVal': 999};
condition1 = new Array(condition1_1);
calisto_2_7.conditionArray = new Array(condition1);
calisto_2_7.dialogue = new Array('Um no, we don\'t exactly have it yet.', 'Sorry you had to wait.');
calisto_2_7.responses = new Array('calisto_2d', 'calisto_3');
calisto_2_8 = new Object();
calisto_2_8.area = 'down';
calisto_2_8.speaker = 'Billy Barrage';
calisto_2_8.portrait = 'barrage';
calisto_2_8.dialogue = new Array('Mister R needs some raw plasmarock first.');
calisto_2_9 = new Object();
calisto_2_9.area = 'up';
calisto_2_9.speaker = 'Calisto Filio';
calisto_2_9.portrait = 'calisto';
calisto_2_9.dialogue = new Array('Well then what you both still standin\' around for?');
calisto_2_9 = new Object();
calisto_2_9.area = 'up';
calisto_2_9.speaker = 'Calisto Filio';
calisto_2_9.portrait = 'calisto';
calisto_2_9.dialogue = new Array('Go get that plasmarock already!');
calisto_2_10 = new Object();
calisto_2_10.area = 'down';
calisto_2_10.speaker = _level0.heroName;
calisto_2_10.chatType = 'compare';
condition1_1 = {'compareType': 'item', 'id': 'I006Q', 'minVal': 3, 'maxVal': 999};
condition1 = new Array(condition1_1);
calisto_2_10.conditionArray = new Array(condition1);
calisto_2_10.portrait = _level0.charA001.portrait;
calisto_2_10.dialogue = new Array('Relax Cali, we\'ll have it in no time.', 'Relax Cali, we already got what we need.');
calisto_2_10.responses = new Array('calisto_2c', 'calisto_2c');
calisto_2_11 = new Object();
calisto_2_11.area = 'up';
calisto_2_11.speaker = 'Calisto Filio';
calisto_2_11.portrait = 'calisto';
calisto_2_11.dialogue = new Array('*Sigh* I\'ll relax once I see that Macrogen.');
calisto_2 = new Array(calisto_2_1, calisto_2_2, calisto_2_3, calisto_2_5, calisto_2_6, calisto_2_7);
calisto_2a = new Array(calisto_2_2, calisto_2_3, calisto_2_5, calisto_2_6, calisto_2_7);
calisto_2b = new Array(calisto_2_10);
calisto_2c = new Array(calisto_2_11);
calisto_2d = new Array(calisto_2_8, calisto_2_9, calisto_2_9a, calisto_2_10);
calisto_3_0 = new Object();
calisto_3_0.area = 'down';
calisto_3_0.speaker = _level0.heroName;
calisto_3_0.portrait = _level0.charA001.portrait;
1;
calisto_3_0.dialogue = new Array('I\'ve got your Macrogen, Cali.');
calisto_3_1 = new Object();
calisto_3_1.area = 'up';
calisto_3_1.speaker = 'Calisto Filio';
calisto_3_1.portrait = 'calisto';
calisto_3_1.dialogue = new Array('Took you two long enough.');
calisto_3_2 = new Object();
calisto_3_2.area = 'down';
calisto_3_2.speaker = _level0.heroName;
calisto_3_2.portrait = _level0.charA001.portrait;
1;
calisto_3_2.dialogue = new Array('Well excuuuuuuse me for \'takin\' my time\', but you have no idea how difficult it was to find the parts Ron needed to build that thing.');
calisto_3_3 = new Object();
calisto_3_3.area = 'up';
calisto_3_3.speaker = 'Calisto Filio';
calisto_3_3.portrait = 'calisto';
calisto_3_3.dialogue = new Array('And you have no idea how long I\'ve been standin\' here just waitin\'.');
calisto_3_4 = new Object();
calisto_3_4.area = 'down';
calisto_3_4.speaker = 'Billy Barrage';
calisto_3_4.portrait = 'barrage';
calisto_3_4.dialogue = new Array(_level0.heroName + '\'s right Cali. Give us a break.');
calisto_3_5 = new Object();
calisto_3_5.area = 'up';
calisto_3_5.speaker = 'Calisto Filio';
calisto_3_5.portrait = 'calisto';
calisto_3_5.dialogue = new Array('*Sigh* You\'re right Billy. It\'s nobody\'s fault, so I apologize.');
calisto_3_6 = new Object();
calisto_3_6.area = 'down';
calisto_3_6.speaker = _level0.heroName;
calisto_3_6.portrait = _level0.charA001.portrait;
1;
calisto_3_6.dialogue = new Array('So what happens now?');
calisto_3_7 = new Object();
calisto_3_7.area = 'up';
calisto_3_7.speaker = 'Calisto Filio';
calisto_3_7.portrait = 'calisto';
calisto_3_7.dialogue = new Array('Now? Now I...');
calisto_3_8 = new Object();
calisto_3_8.area = 'down';
calisto_3_8.speaker = 'Billy Barrage';
calisto_3_8.portrait = 'barrage';
calisto_3_8.dialogue = new Array('Fix the bridge!');
calisto_3_9 = new Object();
calisto_3_9.area = 'up';
calisto_3_9.speaker = 'Calisto Filio';
calisto_3_9.portrait = 'calisto';
calisto_3_9.dialogue = new Array('Don\'t do that.');
calisto_3_10 = new Object();
calisto_3_10.area = 'down';
calisto_3_10.speaker = 'Billy Barrage';
calisto_3_10.portrait = 'barrage';
calisto_3_10.dialogue = new Array('Do what?');
calisto_3_11 = new Object();
calisto_3_11.area = 'up';
calisto_3_11.speaker = 'Calisto Filio';
calisto_3_11.portrait = 'calisto';
calisto_3_11.dialogue = new Array('Finish my sentences. It\'s annoyin\'.');
calisto_3_12 = new Object();
calisto_3_12.area = 'down';
calisto_3_12.speaker = 'Billy Barrage';
calisto_3_12.portrait = 'barrage';
calisto_3_12.dialogue = new Array('Sorry, Cali.');
calisto_3_13 = new Object();
calisto_3_13.area = 'up';
calisto_3_13.speaker = 'Calisto Filio';
calisto_3_13.portrait = 'calisto';
calisto_3_13.dialogue = new Array('You two wait right here for me, okay? I want to thank Ron personally, so I\'ll go back to the garage with you.');
action1 = {'actionType': 'item', 'id': 'I007Q', 'val': -1};
action2 = {'actionType': 'quest', 'id': '8', 'val': 99};
action3 = {'actionType': 'wakeParty', 'id': 'A003', 'pos': 3};
calisto_3_13.actions = new Array(action1, action2, action3);
calisto_3_14 = new Object();
calisto_3_14.area = 'down';
calisto_3_14.speaker = _level0.heroName;
calisto_3_14.portrait = _level0.charA001.portrait;
calisto_3_14.dialogue = new Array('Sure. But I need to head to Acero Terminus to collect something first.');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'resetmap'};
calisto_3_14.actions = new Array(action1, action2);
calisto_3_15 = new Object();
calisto_3_15.area = 'up';
calisto_3_15.speaker = 'Calisto Filio';
calisto_3_15.portrait = 'calisto';
action1 = {'actionType': 'bottomVisible', 'toShow': false};
calisto_3_15.dialogue = new Array('There! All done.');
calisto_3_15.actions = new Array(action1);
calisto_3_16 = new Object();
calisto_3_16.area = 'up';
calisto_3_16.speaker = 'Calisto Filio';
calisto_3_16.portrait = 'calisto';
calisto_3_16.dialogue = new Array('Not a bad piece of work if I do say so myself.');
calisto_3_17 = new Object();
calisto_3_17.area = 'down';
calisto_3_17.speaker = _level0.heroName;
calisto_3_17.portrait = _level0.charA001.portrait;
action1 = {'actionType': 'bottomVisible', 'toShow': true};
calisto_3_17.dialogue = new Array('Um... Could you not stand there and admire it? I still have an errand to run for Ron.');
calisto_3_17.actions = new Array(action1);
calisto_3_18 = new Object();
calisto_3_18.area = 'up';
calisto_3_18.speaker = 'Calisto Filio';
calisto_3_18.portrait = 'calisto';
calisto_3_18.dialogue = new Array('Oh right, sorry ' + _level0.heroName + '. Let\'s go.');
calisto_3 = new Array(calisto_3_1, calisto_3_2, calisto_3_3, calisto_3_4, calisto_3_5, calisto_3_6, calisto_3_7, calisto_3_8, calisto_3_9, calisto_3_10, calisto_3_11, calisto_3_12, calisto_3_13, calisto_3_14, calisto_3_15, calisto_3_16, calisto_3_17, calisto_3_18);
calisto_3a = new Array(calisto_3_0, calisto_3_1, calisto_3_2, calisto_3_3, calisto_3_4, calisto_3_5, calisto_3_6, calisto_3_7, calisto_3_8, calisto_3_9, calisto_3_10, calisto_3_11, calisto_3_12, calisto_3_13, calisto_3_14, calisto_3_15, calisto_3_16, calisto_3_17, calisto_3_18);
var maxd = 8;
malenpc_1_1 = new Object();
malenpc_1_1.area = 'up';
malenpc_1_1.speaker = '';
malenpc_1_1.portrait = 'malenpc';
malenpc_1_1.chatType = 'random';
malenpc_1_1.responses = new Array();
var i = 1;
while (i <= maxd) {
this['malenpc_d' + i] = new Object();
this['malenpc_d' + i].area = 'down';
this['malenpc_d' + i].speaker = _level0.heroName;
this['malenpc_d' + i].portrait = _level0.charA001.portrait;
this['malenpc_ds' + i] = new Array(this['malenpc_d' + i]);
malenpc_1_1.responses.push('malenpc_ds' + i);
++i;
}
malenpc_1_1.dialogue = new Array('There\'s rumours that says Mister Ron is one of the greatest inventor in Sios.', 'How I wish that I have an airship of my own...', 'I have never been to the Imperial City. I\'d love to visit it someday.', 'Do you know how plasma rocks are created? Nobody seems to know.', 'There are strange ruins all over Sios.. I wonder who created them...', '........................... zzzZZZZZZZzzzzz', 'You must be pretty free to be talking to me eh? Go fight some monsters instead. Haha..', 'There are hidden places in most areas. They are usually filled with powerful monsters. Do not fight them if you are not confident.');
malenpc_d1.dialogue = new Array('Really!? That old coot?');
malenpc_d2.dialogue = new Array('Oh yes, then you will be able to travel all over Sios!');
malenpc_d3.dialogue = new Array('Is it far away? I\'d love to visit it too...');
malenpc_d4.dialogue = new Array('Beats me... :p');
malenpc_d5.dialogue = new Array('............');
malenpc_d6.dialogue = new Array('...................');
malenpc_d7.dialogue = new Array('Can\'t I take a rest?');
malenpc_d8.dialogue = new Array('I\'d sure like to meet them... :D');
malenpc_1 = new Array(malenpc_1_1);
var maxd = 14;
femalenpc_1_1 = new Object();
femalenpc_1_1.area = 'up';
femalenpc_1_1.speaker = '';
femalenpc_1_1.portrait = 'femalenpc';
femalenpc_1_1.chatType = 'random';
femalenpc_1_1.responses = new Array();
var i = 1;
while (i <= maxd) {
this['femalenpc_d' + i] = new Object();
this['femalenpc_d' + i].area = 'down';
this['femalenpc_d' + i].speaker = _level0.heroName;
this['femalenpc_d' + i].portrait = _level0.charA001.portrait;
this['femalenpc_ds' + i] = new Array(this['femalenpc_d' + i]);
femalenpc_1_1.responses.push('femalenpc_ds' + i);
++i;
}
femalenpc_1_1.dialogue = new Array('Be careful when visiting ancient ruins, they all seem to be infested with monsters.', 'There seem to be more monster attacks recently...', 'Imperial soldiers have been sighted wondering around the Island...', 'The other day, I traded a voucher with Elyssa for something other than glass goggles.', 'I heard that some pirates have a hideout on this island.', 'Plasma rocks are used to power just about most of our machines.', '*sigh* Times are tough.', 'I think I might go take a stroll through the forest.', 'Do you know that your MAW can slice patches of grass in its path?', 'Smoke bombs are really effective if you want to avoid fights.', 'Here\'s a tip, the effects of smoke bombs are not cumulative.', 'Some shops are closed at night.', 'Monsters are more active at night in the open areas...', 'Let me give you a tip on combat: Don\'t bother defending if you have lousy armor, its not worth the effort.');
femalenpc_d1.dialogue = new Array('Ohhh... I\'ll be careful...');
femalenpc_d2.dialogue = new Array('Don\'t worry, our MAWs will protect the town!');
femalenpc_d3.dialogue = new Array('Hmmm....');
femalenpc_d4.dialogue = new Array('Ehh... Thanks for the info.');
femalenpc_d5.dialogue = new Array('I\'ve heard too.');
femalenpc_d6.dialogue = new Array('What will happen if we ran out of plasma rocks?');
femalenpc_d7.dialogue = new Array('That\'s all you ever say!');
femalenpc_d8.dialogue = new Array('You might want to think twice about that...');
femalenpc_d9.dialogue = new Array('That\'s a really useful function.');
femalenpc_d10.dialogue = new Array('I\'ll take note of that.');
femalenpc_d11.dialogue = new Array('Thanks for the tip!');
femalenpc_d12.dialogue = new Array('That\'s normal I guess...');
femalenpc_d13.dialogue = new Array('I guess roaming around at night is not such a good idea...');
femalenpc_d14.dialogue = new Array('That makes sense...');
femalenpc_1 = new Array(femalenpc_1_1);
scrapyard_boss_d1 = new Object();
scrapyard_boss_d1.area = 'up';
scrapyard_boss_d1.speaker = '???';
scrapyard_boss_d1.dialogue = new Array('Unknown entity... Detected!');
scrapyard_boss_d1.portrait = 'scrapyard_boss';
action1 = {'actionType': 'animate_map', 'id': 'cell11_7', 'val': 'a2'};
scrapyard_boss_d1.actions = new Array(action1);
scrapyard_boss_d2 = new Object();
scrapyard_boss_d2.area = 'up';
scrapyard_boss_d2.speaker = '???';
scrapyard_boss_d2.dialogue = new Array('This is Avenger MK1, model #235, programmed for scrap disposal. Entity shall State... Its... Business!');
scrapyard_boss_d2.portrait = 'scrapyard_boss';
scrapyard_boss_r1 = new Object();
scrapyard_boss_r1.area = 'down';
scrapyard_boss_r1.chatType = 'choice';
scrapyard_boss_r1.speaker = _level0.heroName;
scrapyard_boss_r1.portrait = _level0.charA001.portrait;
scrapyard_boss_r1.dialogue = new Array('I\'m hear to collect parts.', 'I represent the Scrap Collector\'s Union.', 'Are you the boss?');
scrapyard_boss_r1.responses = new Array('scrapyard_boss_1', 'scrapyard_boss_2', 'scrapyard_boss_3');
scrapyard_boss_r2 = new Object();
scrapyard_boss_r2.area = 'down';
scrapyard_boss_r2.speaker = _level0.heroName;
scrapyard_boss_r2.portrait = _level0.charA001.portrait;
scrapyard_boss_r2.dialogue = new Array('Oh, I\'m just here to collect some spare parts.');
scrapyard_boss_r3 = new Object();
scrapyard_boss_r3.area = 'down';
scrapyard_boss_r3.speaker = _level0.heroName;
scrapyard_boss_r3.portrait = _level0.charA001.portrait;
scrapyard_boss_r3.dialogue = new Array('My business? I represent the Scrap Collector\'s Union, and I\'m here to make you an offer...');
scrapyard_boss_r4 = new Object();
scrapyard_boss_r4.area = 'down';
scrapyard_boss_r4.speaker = _level0.heroName;
scrapyard_boss_r4.portrait = _level0.charA001.portrait;
scrapyard_boss_r4.dialogue = new Array('I was just wondering... Are you the boss of this place?');
scrapyard_boss_r5 = new Object();
scrapyard_boss_r5.area = 'up';
scrapyard_boss_r5.speaker = 'Avenger MK1';
scrapyard_boss_r5.dialogue = new Array('Then entity is.. Trespassing!');
scrapyard_boss_r5.portrait = 'scrapyard_boss';
scrapyard_boss_r6 = new Object();
scrapyard_boss_r6.area = 'up';
scrapyard_boss_r6.speaker = 'Avenger MK1';
scrapyard_boss_r6.dialogue = new Array('Error! Error! Nonsensical Data!');
scrapyard_boss_r6.portrait = 'scrapyard_boss';
scrapyard_boss_r7 = new Object();
scrapyard_boss_r7.area = 'up';
scrapyard_boss_r7.speaker = 'Avenger MK1';
scrapyard_boss_r7.dialogue = new Array('Correcting!');
scrapyard_boss_r7.portrait = 'scrapyard_boss';
scrapyard_boss_r8 = new Object();
scrapyard_boss_r8.area = 'up';
scrapyard_boss_r8.speaker = 'Avenger MK1';
scrapyard_boss_r8.dialogue = new Array('Positive! Self is... considered as... Boss.');
scrapyard_boss_r8.portrait = 'scrapyard_boss';
scrapyard_boss_r9 = new Object();
scrapyard_boss_r9.area = 'up';
scrapyard_boss_r9.speaker = 'Avenger MK1';
scrapyard_boss_r9.dialogue = new Array('Entity does not... Exist in... Self\'s... Employee records.');
scrapyard_boss_r9.portrait = 'scrapyard_boss';
scrapyard_boss_r10 = new Object();
scrapyard_boss_r10.area = 'down';
scrapyard_boss_r10.speaker = _level0.heroName;
scrapyard_boss_r10.portrait = _level0.charA001.portrait;
scrapyard_boss_r10.dialogue = new Array('Okay, maybe I shouldn\'t have said that.');
action1 = {'actionType': 'combat', 'mSet': 'scrapyard_boss'};
action2 = {'actionType': 'animate_map', 'id': 'cell11_7', 'val': 'a3'};
action3 = {'actionType': 'bg', 'transit': true};
scrapyard_boss_r10.actions = new Array(action1, action2, action3);
scrapyard_boss_r11 = new Object();
scrapyard_boss_r11.area = 'down';
scrapyard_boss_r11.speaker = _level0.heroName;
scrapyard_boss_r11.portrait = _level0.charA001.portrait;
scrapyard_boss_r11.dialogue = new Array('Hmm... the chasis of this derelict could come in handy.');
action1 = {'actionType': 'topVisible', 'toShow': false};
action2 = {'actionType': 'quest', 'id': '28', 'val': 99};
action3 = {'actionType': 'bg', 'transit': true};
scrapyard_boss_r11.actions = new Array(action1, action2, action3);
scrapyard_boss_r12 = new Object();
scrapyard_boss_r12.area = 'down';
scrapyard_boss_r12.speaker = _level0.heroName;
scrapyard_boss_r12.portrait = _level0.charA001.portrait;
scrapyard_boss_r12.dialogue = new Array('I may as well bring it to Ron.');
action1 = {'actionType': 'topVisible', 'toShow': false};
action3 = {'actionType': 'item', 'id': 'I010Q', 'val': 1};
action2 = {'actionType': 'resetmap'};
scrapyard_boss_r12.actions = new Array(action1, action2, action3);
scrapyard_boss_0 = new Array(scrapyard_boss_d1, scrapyard_boss_d2, scrapyard_boss_r1);
scrapyard_boss_1 = new Array(scrapyard_boss_r2, scrapyard_boss_r5, scrapyard_boss_r10);
scrapyard_boss_2 = new Array(scrapyard_boss_r3, scrapyard_boss_r6, scrapyard_boss_r7, scrapyard_boss_r10);
scrapyard_boss_3 = new Array(scrapyard_boss_r4, scrapyard_boss_r8, scrapyard_boss_r9, scrapyard_boss_r5, scrapyard_boss_r10);
scrapyard_boss_4 = new Array(scrapyard_boss_r11, scrapyard_boss_r12);
iron_boss_d1 = new Object();
iron_boss_d1.area = 'up';
iron_boss_d1.speaker = '???';
iron_boss_d1.dialogue = new Array('Graahh!');
iron_boss_d1.portrait = 'iron_boss';
action1 = {'actionType': 'animate_map', 'id': 'cell11_11', 'val': 'a2'};
action2 = {'actionType': 'music', 'trackname': 'suspense', 'noloop': true};
iron_boss_d1.actions = new Array(action1, action2);
iron_boss_d2 = new Object();
iron_boss_d2.area = 'up';
iron_boss_d2.speaker = '???';
iron_boss_d2.dialogue = new Array('I will MASH you!!');
iron_boss_d2.portrait = 'iron_boss';
iron_boss_r1 = new Object();
iron_boss_r1.area = 'down';
iron_boss_r1.speaker = _level0.heroName;
iron_boss_r1.portrait = _level0.charA001.portrait;
iron_boss_r1.dialogue = new Array('....!!');
action1 = {'actionType': 'combat', 'mSet': 'iron_boss'};
action2 = {'actionType': 'animate_map', 'id': 'cell11_11', 'val': 'a3'};
action3 = {'actionType': 'quest', 'id': '29', 'val': 99};
action4 = {'actionType': 'resetmap'};
iron_boss_r1.actions = new Array(action1, action2, action3, action4);
iron_boss_0 = new Array(iron_boss_d1, iron_boss_d2, iron_boss_r1);
worm_boss_r0 = new Object();
worm_boss_r0.area = 'up';
worm_boss_r0.speaker = 'Billy Barrage';
worm_boss_r0.portrait = 'barrage';
worm_boss_r0.dialogue = new Array('Woah... The ground\'s shaking.');
worm_boss_r1 = new Object();
worm_boss_r1.area = 'down';
worm_boss_r1.speaker = _level0.heroName;
worm_boss_r1.portrait = _level0.charA001.portrait;
worm_boss_r1.dialogue = new Array('This is not good.. Not good at all.');
worm_boss_r2 = new Object();
worm_boss_r2.area = 'up';
worm_boss_r2.speaker = 'Billy Barrage';
worm_boss_r2.portrait = 'barrage';
worm_boss_r2.dialogue = new Array('Something\'s coming towards us!');
action1 = {'actionType': 'combat', 'mSet': 'worm_boss'};
action2 = {'actionType': 'quest', 'id': '30', 'val': 99};
action3 = {'actionType': 'resetmap'};
worm_boss_r2.actions = new Array(action1, action2, action3);
worm_boss_0 = new Array(worm_boss_r0, worm_boss_r1, worm_boss_r2);
drak_0_0 = new Object();
drak_0_0.area = 'up';
drak_0_0.speaker = 'Drake Thompson';
drak_0_0.portrait = 'drak';
drak_0_0.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '22', 'statusVal': 99};
condition1 = new Array(condition1_1);
condition2_1 = {'compareType': 'quest', 'id': '22', 'statusVal': 99};
condition2_2 = {'compareType': 'quest', 'id': '23', 'statusVal': 1};
condition2 = new Array(condition2_1, condition2_2);
drak_0_0.conditionArray = new Array(condition1, condition2);
drak_0_0.dialogue = new Array('Hullo Billy!', 'Oh, back again I see.', 'How\'s the search going?');
drak_0_0.responses = new Array('drak_0a', 'drak_0b', 'drak_1');
drak_0_1 = new Object();
drak_0_1.area = 'up';
drak_0_1.speaker = 'Drake Thompson';
drak_0_1.portrait = 'drak';
drak_0_1.dialogue = new Array('Oh! And ' + _level0.heroName + ' and Calisto too! Welcome! Welcome to Acero Terminus!');
drak_0_2 = new Object();
drak_0_2.area = 'down';
drak_0_2.speaker = 'Billy Barrage';
drak_0_2.portrait = 'barrage';
drak_0_2.dialogue = new Array('Mister D!');
drak_0_3 = new Object();
drak_0_3.area = 'down';
drak_0_3.speaker = 'Calisto';
drak_0_3.portrait = 'calisto';
drak_0_3.dialogue = new Array('Always in high spirits eh Drake?');
drak_0_4 = new Object();
drak_0_4.area = 'down';
drak_0_4.speaker = _level0.heroName;
drak_0_4.portrait = _level0.charA001.portrait;
drak_0_4.dialogue = new Array('Good to see you Drake. How\'s business for the terminal?');
drak_0_5 = new Object();
drak_0_5.area = 'up';
drak_0_5.speaker = 'Drake Thompson';
drak_0_5.portrait = 'drak';
drak_0_5.dialogue = new Array('Oh not good, not good. Not good at all.');
drak_0_6 = new Object();
drak_0_6.area = 'up';
drak_0_6.speaker = 'Drake Thompson';
drak_0_6.portrait = 'drak';
drak_0_6.dialogue = new Array('In fact, Royo Airways hasn\'t had a trip out of Acero since yesterday morning.');
drak_0_7 = new Object();
drak_0_7.area = 'up';
drak_0_7.speaker = 'Drake Thompson';
drak_0_7.portrait = 'drak';
drak_0_7.dialogue = new Array('We\'re running late, so very very late!');
drak_0_8 = new Object();
drak_0_8.area = 'down';
drak_0_8.speaker = 'Billy Barrage';
drak_0_8.portrait = 'barrage';
drak_0_8.dialogue = new Array('What happened?');
drak_0_9 = new Object();
drak_0_9.area = 'up';
drak_0_9.speaker = 'Drake Thompson';
drak_0_9.portrait = 'drak';
drak_0_9.dialogue = new Array('Well you see, the airship\'s navigation unit had to be replaced, so Royo Corp took back the old one.');
drak_0_10 = new Object();
drak_0_10.area = 'up';
drak_0_10.speaker = 'Drake Thompson';
drak_0_10.portrait = 'drak';
drak_0_10.dialogue = new Array('They were bringing in a new one, but there was this minor accident on the way here, and...');
drak_0_11 = new Object();
drak_0_11.area = 'down';
drak_0_11.speaker = 'Calisto';
drak_0_11.portrait = 'calisto';
drak_0_11.dialogue = new Array('And?');
drak_0_12 = new Object();
drak_0_12.area = 'up';
drak_0_12.speaker = 'Drake Thompson';
drak_0_12.portrait = 'drak';
drak_0_12.dialogue = new Array('...And the cargo fell out while the delivery airship was over Tidal Caves.');
drak_0_13 = new Object();
drak_0_13.area = 'up';
drak_0_13.speaker = 'Drake Thompson';
drak_0_13.portrait = 'drak';
drak_0_13.dialogue = new Array('So now the replacement navigation unit\'s lost, and the people at Royo Corp have to make a new one.');
drak_0_14 = new Object();
drak_0_14.area = 'up';
drak_0_14.speaker = 'Drake Thompson';
drak_0_14.portrait = 'drak';
drak_0_14.dialogue = new Array('Which could take about a week or so according to my contact at Royo.');
drak_0_14a = new Object();
drak_0_14a.area = 'up';
drak_0_14a.speaker = 'Drake Thompson';
drak_0_14a.portrait = 'drak';
drak_0_14a.dialogue = new Array('Ah, the company\'s probably having a fit about the losses being made at this terminal.');
drak_0_15 = new Object();
drak_0_15.area = 'down';
drak_0_15.chatType = 'choice';
drak_0_15.speaker = _level0.heroName;
drak_0_15.portrait = _level0.charA001.portrait;
drak_0_15.dialogue = new Array('Sorry to hear that.', 'Why don\'t you just go look for it?', 'You sold that Navi Unit didn\'t you?');
drak_0_15.responses = new Array('drak_0a1', 'drak_0a2', 'drak_0a3');
drak_0_15a = new Object();
drak_0_15a.area = 'down';
drak_0_15a.speaker = _level0.heroName;
drak_0_15a.portrait = _level0.charA001.portrait;
drak_0_15a.dialogue = new Array('Wow... Um, sorry to hear that Drake. Especially since Acero Isle only has one passenger airship.');
drak_0_15a1 = new Object();
drak_0_15a1.area = 'up';
drak_0_15a1.speaker = 'Drake Thompson';
drak_0_15a1.portrait = 'drak';
drak_0_15a1.dialogue = new Array('That\'s alright ' + _level0.heroName + '.');
drak_0_15a2 = new Object();
drak_0_15a2.area = 'down';
drak_0_15a2.speaker = 'Billy Barrage';
drak_0_15a2.portrait = 'barrage';
drak_0_15a2.dialogue = new Array('Why not just go search for the Navigation Unit in the caves?');
drak_0_15a3 = new Object();
drak_0_15a3.area = 'up';
drak_0_15a3.speaker = 'Drake Thompson';
drak_0_15a3.portrait = 'drak';
drak_0_15a3.dialogue = new Array('And just how is an old geezer like me going to do that, Billy?');
drak_0_15a4 = new Object();
drak_0_15a4.area = 'down';
drak_0_15a4.speaker = 'Billy Barrage';
drak_0_15a4.portrait = 'barrage';
drak_0_15a4.dialogue = new Array('Point taken Mister D.');
drak_0_15a5 = new Object();
drak_0_15a5.area = 'down';
drak_0_15a5.speaker = 'Calisto';
drak_0_15a5.portrait = 'calisto';
drak_0_15a5.dialogue = new Array('Oh come on Drake, you sold away that Navigation Unit didn\'t you?');
drak_0_15a6 = new Object();
drak_0_15a6.area = 'up';
drak_0_15a6.speaker = 'Drake Thompson';
drak_0_15a6.portrait = 'drak';
drak_0_15a6.dialogue = new Array('What?!? How could you-- All I\'ve ever done was take from the petty cash box!');
drak_0_15a7 = new Object();
drak_0_15a7.area = 'down';
drak_0_15a7.speaker = 'Calisto';
drak_0_15a7.portrait = 'calisto';
drak_0_15a7.dialogue = new Array('Jeez.. Relax. I was only kidding.');
drak_0_15b = new Object();
drak_0_15b.area = 'down';
drak_0_15b.speaker = _level0.heroName;
drak_0_15b.portrait = _level0.charA001.portrait;
drak_0_15b.dialogue = new Array('Anyway, I came to pick up Ron\'s wares. You know, the crate of polyboards he ordered?');
drak_0_15c = new Object();
drak_0_15c.area = 'up';
drak_0_15c.speaker = 'Drake Thompson';
drak_0_15c.portrait = 'drak';
drak_0_15c.dialogue = new Array('Ah, they\'re right over there. Be my guest.');
action1 = {'actionType': 'quest', 'id': '22', 'val': 99};
action2 = {'actionType': 'item', 'id': 'I012Q', 'val': 1};
drak_0_15c.actions = new Array(action1, action2);
drak_0_15d = new Object();
drak_0_15d.area = 'down';
drak_0_15d.speaker = _level0.heroName;
drak_0_15d.portrait = _level0.charA001.portrait;
drak_0_15d.dialogue = new Array('Thanks Drake.');
drak_0_15e = new Object();
drak_0_15e.area = 'up';
drak_0_15e.speaker = 'Drake Thompson';
drak_0_15e.portrait = 'drak';
drak_0_15e.dialogue = new Array('No need for thanks. It is my job after all.');
drak_0_15f = new Object();
drak_0_15f.area = 'up';
drak_0_15f.speaker = 'Drake Thompson';
drak_0_15f.portrait = 'drak';
drak_0_15f.dialogue = new Array('Now if only things weren\'t running so far behind schedule...');
drak_0_16 = new Object();
drak_0_16.area = 'down';
drak_0_16.speaker = _level0.heroName;
drak_0_16.portrait = _level0.charA001.portrait;
drak_0_16.dialogue = new Array('Oh no... We can\'t afford to wait another day, let alone another week.');
drak_0_17 = new Object();
drak_0_17.area = 'down';
drak_0_17.speaker = _level0.heroName;
drak_0_17.portrait = _level0.charA001.portrait;
drak_0_17.chatType = 'compare';
condition1_1 = {'compareType': 'quest', 'id': '24', 'statusVal': 99};
condition1_2 = {'compareType': 'quest', 'id': '18', 'statusVal': 99};
condition1 = new Array(condition1_1, condition1_2);
drak_0_17.conditionArray = new Array(condition1, condition2);
drak_0_17.dialogue = new Array('Just double checking to see if I left anything behind.', 'Drake, is there anything we can do to get the airship runnning as soon as possible?');
drak_0_17.responses = new Array('drak_0c', 'drak_0d');
drak_0_17a = new Object();
drak_0_17a.area = 'up';
drak_0_17a.speaker = 'Drake Thompson';
drak_0_17a.portrait = 'drak';
drak_0_17a.dialogue = new Array('No I don\'t think so. But if I do happen to find anything, I\'ll be sure to call the garage.');
drak_0_18 = new Object();
drak_0_18.area = 'up';
drak_0_18.speaker = 'Drake Thompson';
drak_0_18.portrait = 'drak';
drak_0_18.dialogue = new Array('You seem to be urgent. Where are the three of you going anyway?');
drak_0_19 = new Object();
drak_0_19.area = 'down';
drak_0_19.speaker = 'Calisto';
drak_0_19.portrait = 'calisto';
drak_0_19.dialogue = new Array('The Imperial City.');
drak_0_20 = new Object();
drak_0_20.area = 'down';
drak_0_20.speaker = 'Billy Barrage';
drak_0_20.portrait = 'barrage';
drak_0_20.dialogue = new Array('Soldiers kidnapped Mister R.');
drak_0_21 = new Object();
drak_0_21.area = 'up';
drak_0_21.speaker = 'Drake Thompson';
drak_0_21.portrait = 'drak';
drak_0_21.dialogue = new Array('The Imperialists took Ron?? But why would they do that?');
drak_0_22 = new Object();
drak_0_22.area = 'down';
drak_0_22.speaker = _level0.heroName;
drak_0_22.portrait = _level0.charA001.portrait;
drak_0_22.dialogue = new Array('That\'s what we intend to find out.');
drak_0_23 = new Object();
drak_0_23.area = 'up';
drak_0_23.speaker = 'Drake Thompson';
drak_0_23.portrait = 'drak';
drak_0_23.dialogue = new Array('This explains why Imperial Soldiers have been going around Acero asking questions.');
drak_0_24 = new Object();
drak_0_24.area = 'up';
drak_0_24.speaker = 'Drake Thompson';
drak_0_24.portrait = 'drak';
drak_0_24.dialogue = new Array('Tell you what, go over to Tidal Caves and see if you can find that navigation unit.');
drak_0_25 = new Object();
drak_0_25.area = 'up';
drak_0_25.speaker = 'Drake Thompson';
drak_0_25.portrait = 'drak';
drak_0_25.dialogue = new Array('There\'s a slim chance that it\'s still intact even after the fall.');
drak_0_26 = new Object();
drak_0_26.area = 'up';
drak_0_26.speaker = 'Drake Thompson';
drak_0_26.portrait = 'drak';
drak_0_26.dialogue = new Array('If it still works, then we can get you three to the city as soon as possible.');
drak_0_27 = new Object();
drak_0_27.area = 'down';
drak_0_27.speaker = _level0.heroName;
drak_0_27.portrait = _level0.charA001.portrait;
drak_0_27.dialogue = new Array('Thanks Drake. We\'ll do out best to find it.');
drak_0_28 = new Object();
drak_0_28.area = 'up';
drak_0_28.speaker = 'Drake Thompson';
drak_0_28.portrait = 'drak';
drak_0_28.dialogue = new Array('Now remember, the entrance is flooded at high tide, so you\'ll have to wait until the tide is low in order to explore it.');
drak_0_28a = new Object();
drak_0_28a.area = 'up';
drak_0_28a.speaker = 'Drake Thompson';
drak_0_28a.portrait = 'drak';
drak_0_28a.dialogue = new Array('Here, take this. It\'s a list of timings for the tides.');
action1 = {'actionType': 'item', 'id': 'I009Q', 'val': 1};
drak_0_28a.actions = new Array(action1);
drak_0_29 = new Object();
drak_0_29.area = 'up';
drak_0_29.speaker = 'Drake Thompson';
drak_0_29.portrait = 'drak';
drak_0_29.dialogue = new Array('Come to think of it, if you three do manage to bring it back intact, business can finally pick up again.');
drak_0_30 = new Object();
drak_0_30.area = 'up';
drak_0_30.speaker = 'Drake Thompson';
drak_0_30.portrait = 'drak';
drak_0_30.dialogue = new Array('But right now... Dear me, we are late, so late!');
action1 = {'actionType': 'quest', 'id': '23', 'val': 1};
drak_0_30.actions = new Array(action1);
drak_0 = new Array(drak_0_0);
drak_0a = new Array(drak_0_1, drak_0_2, drak_0_3, drak_0_4, drak_0_5, drak_0_6, drak_0_7, drak_0_8, drak_0_9, drak_0_10, drak_0_11, drak_0_12, drak_0_13, drak_0_14, drak_0_14a, drak_0_15);
drak_0a1 = new Array(drak_0_15a, drak_0_15a1, drak_0_15b, drak_0_15c, drak_0_15d, drak_0_15e, drak_0_15f);
drak_0a2 = new Array(drak_0_15a2, drak_0_15a3, drak_0_15a4, drak_0_15b, drak_0_15c, drak_0_15d, drak_0_15e, drak_0_15f);
drak_0a3 = new Array(drak_0_15a5, drak_0_15a6, drak_0_15a7, drak_0_15b, drak_0_15c, drak_0_15d, drak_0_15e, drak_0_15f);
drak_0b = new Array(drak_0_17);
drak_0c = new Array(drak_0_17a, drak_0_15d, drak_0_15e, drak_0_15f);
drak_0d = new Array(drak_0_18, drak_0_19, drak_0_20, drak_0_21, drak_0_22, drak_0_23, drak_0_24, drak_0_25, drak_0_26, drak_0_28, drak_0_28a, drak_0_27, drak_0_29, drak_0_30);
drak_1_0 = new Object();
drak_1_0.area = 'down';
drak_1_0.speaker = 'Billy Barrage';
drak_1_0.portrait = 'barrage';
drak_1_0.chatType = 'compare';
condition1_1 = {'compareType': 'item', 'id': 'I008Q', 'minVal': 1, 'maxVal': 999};
condition1 = new Array(condition1_1);
drak_1_0.conditionArray = new Array(condition1);
drak_1_0.dialogue = new Array('Still no luck finding it, Mister D.', 'We finally found it, Mister D!');
drak_1_0.responses = new Array('drak_1a', 'drak_2');
drak_1_1 = new Object();
drak_1_1.area = 'up';
drak_1_1.speaker = 'Drake Thompson';
drak_1_1.portrait = 'drak';
drak_1_1.dialogue = new Array('Keep trying you three, and remember to enter the cave only when the tide is low.');
drak_1_2 = new Object();
drak_1_2.area = 'up';
drak_1_2.speaker = 'Drake Thompson';
drak_1_2.portrait = 'drak';
drak_1_2.dialogue = new Array('*Sigh* Dear me, dear me... We are so far, so far behind schedule...');
drak_1 = new Array(drak_1_0);
drak_1a = new Array(drak_1_1, drak_1_2);
drak_2_1 = new Object();
drak_2_1.area = 'up';
drak_2_1.speaker = 'Drake Thompson';
drak_2_1.portrait = 'drak';
drak_2_1.dialogue = new Array('That\'s unbelievable! And it\'s still working?');
drak_2_2 = new Object();
drak_2_2.area = 'down';
drak_2_2.speaker = 'Calisto';
drak_2_2.portrait = 'calisto';
drak_2_2.dialogue = new Array('I can attest to that.');
drak_2_3 = new Object();
drak_2_3.area = 'up';
drak_2_3.speaker = 'Drake Thompson';
drak_2_3.portrait = 'drak';
drak_2_3.dialogue = new Array('Oh this is good! Very very good!');
drak_2_4 = new Object();
drak_2_4.area = 'up';
drak_2_4.speaker = 'Drake Thompson';
drak_2_4.portrait = 'drak';
drak_2_4.dialogue = new Array('Amazing! Must have been a lot of trouble finding this thing.');
drak_2_5 = new Object();
drak_2_5.area = 'down';
drak_2_5.speaker = 'Calisto';
drak_2_5.portrait = 'calisto';
drak_2_5.dialogue = new Array('Oh no, no trouble at all.');
drak_2_6 = new Object();
drak_2_6.area = 'down';
drak_2_6.speaker = 'Billy Barrage';
drak_2_6.portrait = 'barrage';
drak_2_6.dialogue = new Array('...');
drak_2_7 = new Object();
drak_2_7.area = 'down';
drak_2_7.speaker = _level0.heroName;
drak_2_7.portrait = _level0.charA001.portrait;
drak_2_7.dialogue = new Array('(Glares at Calisto)');
drak_2_8 = new Object();
drak_2_8.area = 'down';
drak_2_8.speaker = 'Calisto';
drak_2_8.portrait = 'calisto';
drak_2_8.dialogue = new Array('*Grin*');
drak_2_9 = new Object();
drak_2_9.area = 'up';
drak_2_9.speaker = 'Drake Thompson';
drak_2_9.portrait = 'drak';
drak_2_9.dialogue = new Array('Wait here while I get the boys to install the unit into the airship.');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'quest', 'id': '23', 'val': 99};
action3 = {'actionType': 'item', 'id': 'I008Q', 'val': -1};
action4 = {'actionType': 'quest', 'id': '34', 'val': 99};
drak_2_9.actions = new Array(action1, action2, action3, action4);
drak_2_10 = new Object();
drak_2_10.area = 'up';
drak_2_10.speaker = 'Drake Thompson';
drak_2_10.portrait = 'drak';
drak_2_10.dialogue = new Array('Right, now that that\'s done, she should be up and running.');
action1 = {'actionType': 'bottomVisible', 'toShow': false};
drak_2_10.actions = new Array(action1);
drak_2_11 = new Object();
drak_2_11.area = 'down';
drak_2_11.speaker = _level0.heroName;
drak_2_11.portrait = _level0.charA001.portrait;
drak_2_11.dialogue = new Array('So how much for the tickets to the Imperial City?');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
drak_2_11.actions = new Array(action1);
drak_2_12 = new Object();
drak_2_12.area = 'up';
drak_2_12.speaker = 'Drake Thompson';
drak_2_12.portrait = 'drak';
drak_2_12.dialogue = new Array('Tickets? *Pfft* Forget about it!');
drak_2_13 = new Object();
drak_2_13.area = 'down';
drak_2_13.speaker = _level0.heroName;
drak_2_13.portrait = _level0.charA001.portrait;
drak_2_13.dialogue = new Array('???');
drak_2_14 = new Object();
drak_2_14.area = 'up';
drak_2_14.speaker = 'Drake Thompson';
drak_2_14.portrait = 'drak';
drak_2_14.dialogue = new Array('Look, after what you\'ve done for us by getting back the Navi Unit, and considering the urgency of your current situation, I\'d say this one\'s on the house!');
drak_2_15 = new Object();
drak_2_15.area = 'up';
drak_2_15.speaker = 'Drake Thompson';
drak_2_15.portrait = 'drak';
drak_2_15.dialogue = new Array('Besides, Billy and his mother are frequent fliers with us, since they go all over the place for bounty hunting.');
drak_2_16 = new Object();
drak_2_16.area = 'down';
drak_2_16.speaker = 'Billy Barrage';
drak_2_16.portrait = 'barrage';
drak_2_16.dialogue = new Array('But what about-');
drak_2_17 = new Object();
drak_2_17.area = 'up';
drak_2_17.speaker = 'Drake Thompson';
drak_2_17.portrait = 'drak';
drak_2_17.dialogue = new Array('Don\'t worry about it. Leave everything to me, it\'s the least I can do for all of you.');
drak_2_18 = new Object();
drak_2_18.area = 'up';
drak_2_18.speaker = 'Drake Thompson';
drak_2_18.portrait = 'drak';
drak_2_18.dialogue = new Array('Now then... Go on and load your MAWs into the airship.');
drak_2_19 = new Object();
drak_2_19.area = 'up';
drak_2_19.speaker = 'Drake Thompson';
drak_2_19.portrait = 'drak';
drak_2_19.dialogue = new Array('Next stop: The Imperial City!');
drak_2_20 = new Object();
drak_2_20.area = 'up';
drak_2_20.speaker = 'Drake Thompson';
drak_2_20.portrait = 'drak';
drak_2_20.dialogue = new Array('ALL ABOARD!!!');
action1 = {'actionType': 'music', 'trackname': 'sleep', 'noloop': false};
drak_2_20.actions = new Array(action1);
drak_2_21 = new Object();
drak_2_21.area = 'down';
drak_2_21.speaker = _level0.heroName;
drak_2_21.portrait = _level0.charA001.portrait;
drak_2_21.dialogue = new Array('I guess this is it then.');
drak_2_22 = new Object();
drak_2_22.area = 'down';
drak_2_22.speaker = 'Billy Barrage';
drak_2_22.portrait = 'barrage';
drak_2_22.dialogue = new Array('No turning back now.');
drak_2_23 = new Object();
drak_2_23.area = 'down';
drak_2_23.speaker = 'Calisto';
drak_2_23.portrait = 'calisto';
drak_2_23.dialogue = new Array('Hmph... And the adventure continues...');
action1 = {'actionType': 'endgame'};
drak_2_23.actions = new Array(action1);
drak_2 = new Array(drak_2_1, drak_2_2, drak_2_4, drak_2_5, drak_2_6, drak_2_7, drak_2_8, drak_2_3, drak_2_9, drak_2_10, drak_2_11, drak_2_12, drak_2_13, drak_2_14, drak_2_15, drak_2_16, drak_2_17, drak_2_18, drak_2_19, drak_2_20, drak_2_21, drak_2_22, drak_2_23);
jack_0_0 = new Object();
jack_0_0.area = 'down';
jack_0_0.speaker = _level0.heroName;
jack_0_0.portrait = _level0.charA001.portrait;
jack_0_0.dialogue = new Array('I think this is what we\'re looking for.');
jack_0_0a = new Object();
jack_0_0a.area = 'down';
jack_0_0a.speaker = 'Calisto';
jack_0_0a.portrait = 'calisto';
jack_0_0a.dialogue = new Array('Heeeey, looks like the unit\'s still workin\' fine.');
jack_0_1 = new Object();
jack_0_1.area = 'up';
jack_0_1.speaker = '???';
jack_0_1.portrait = 'blank';
jack_0_1.dialogue = new Array('Yar!');
jack_0_2 = new Object();
jack_0_2.area = 'down';
jack_0_2.speaker = _level0.heroName;
jack_0_2.portrait = _level0.charA001.portrait;
jack_0_2.dialogue = new Array('Did you say something, Billy?');
jack_0_3 = new Object();
jack_0_3.area = 'down';
jack_0_3.speaker = 'Billy Barrage';
jack_0_3.portrait = 'barrage';
jack_0_3.dialogue = new Array('Wasn\'t me.');
jack_0_4 = new Object();
jack_0_4.area = 'up';
jack_0_4.speaker = '???';
jack_0_4.portrait = 'jack';
jack_0_4.dialogue = new Array('Yar! Who be stealin\' Deadeye Jack\'s compass?');
action1 = {'actionType': 'animate_map', 'id': 'cell11_11', 'val': 'a2'};
jack_0_4.actions = new Array(action1);
jack_0_4a = new Object();
jack_0_4a.area = 'down';
jack_0_4a.chatType = 'choice';
jack_0_4a.speaker = _level0.heroName;
jack_0_4a.portrait = _level0.charA001.portrait;
jack_0_4a.dialogue = new Array('This doesn\'t belong to you.', 'You have got to be kidding.', 'Ahoy there!');
jack_0_4a.responses = new Array('jack_0a', 'jack_0b', 'jack_0c');
jack_0_4b = new Object();
jack_0_4b.area = 'down';
jack_0_4b.speaker = _level0.heroName;
jack_0_4b.portrait = _level0.charA001.portrait;
jack_0_4b.dialogue = new Array('Ahoy there, matey!');
jack_0_4c = new Object();
jack_0_4c.area = 'up';
jack_0_4c.speaker = '???';
jack_0_4c.portrait = 'jack';
jack_0_4c.dialogue = new Array('Shiver me timbers! Ye\'r a fellow pirate too?');
jack_0_4d = new Object();
jack_0_4d.area = 'down';
jack_0_4d.speaker = 'Calisto';
jack_0_4d.portrait = 'calisto';
jack_0_4d.dialogue = new Array('Okay quit foolin\' around with the pirate-talk.');
jack_0_4e = new Object();
jack_0_4e.area = 'down';
jack_0_4e.speaker = _level0.heroName;
jack_0_4e.portrait = _level0.charA001.portrait;
jack_0_4e.dialogue = new Array('*Ahem* Sorry.');
jack_0_5 = new Object();
jack_0_5.area = 'down';
jack_0_5.speaker = 'Calisto';
jack_0_5.portrait = 'calisto';
jack_0_5.dialogue = new Array('You have got to be kiddin\' me...');
jack_0_5a = new Object();
jack_0_5a.area = 'down';
jack_0_5a.speaker = 'Calisto';
jack_0_5a.portrait = 'calisto';
jack_0_5a.dialogue = new Array('Are you for real?');
jack_0_6 = new Object();
jack_0_6.area = 'up';
jack_0_6.speaker = 'Deadeye Jack';
jack_0_6.portrait = 'jack';
jack_0_6.dialogue = new Array('What d\'ye mean, girlie?');
jack_0_7 = new Object();
jack_0_7.area = 'down';
jack_0_7.speaker = 'Calisto';
jack_0_7.portrait = 'calisto';
jack_0_7.dialogue = new Array('*Groan* Never mind.');
jack_0_8 = new Object();
jack_0_8.area = 'up';
jack_0_8.speaker = 'Deadeye Jack';
jack_0_8.portrait = 'jack';
jack_0_8.dialogue = new Array('Now stop wastin\' me time and gimme back me compass.');
jack_0_9 = new Object();
jack_0_9.area = 'down';
jack_0_9.speaker = 'Billy Barrage';
jack_0_9.portrait = 'barrage';
jack_0_9.dialogue = new Array('Sir, this doesn\'t belong to you.');
jack_0_10 = new Object();
jack_0_10.area = 'up';
jack_0_10.speaker = 'Deadeye Jack';
jack_0_10.portrait = 'jack';
jack_0_10.dialogue = new Array('Ye\'r wrong boy, this belongs ta Jack \'n Jack only.');
jack_0_11 = new Object();
jack_0_11.area = 'up';
jack_0_11.speaker = 'Deadeye Jack';
jack_0_11.portrait = 'jack';
jack_0_11.dialogue = new Array('Jack be needin\' it fer sailin\' the high seas, \'n deliverin\' imitation machine parts.');
jack_0_12 = new Object();
jack_0_12.area = 'up';
jack_0_12.speaker = 'Deadeye Jack';
jack_0_12.portrait = 'jack';
jack_0_12.dialogue = new Array('Top-o-the-line these parts are, jus\' like the ones fr\'m Royo Corp.');
jack_0_13 = new Object();
jack_0_13.area = 'down';
jack_0_13.speaker = _level0.heroName;
jack_0_13.portrait = _level0.charA001.portrait;
jack_0_13.dialogue = new Array('Imitation machine parts? Wait, don\'t you people rob and pillage other ships at sea?');
jack_0_14 = new Object();
jack_0_14.area = 'up';
jack_0_14.speaker = 'Deadeye Jack';
jack_0_14.portrait = 'jack';
jack_0_14.dialogue = new Array('Pillage? Rob? What\'r ye talkin\' about? I\'m a pirate!');
jack_0_15 = new Object();
jack_0_15.area = 'up';
jack_0_15.speaker = 'Deadeye Jack';
jack_0_15.portrait = 'jack';
jack_0_15.dialogue = new Array('Me ship\'s compass went down, so Jack be needin\' a new one ta make dem deliveries.');
jack_0_16 = new Object();
jack_0_16.area = 'down';
jack_0_16.speaker = 'Calisto';
jack_0_16.portrait = 'calisto';
jack_0_16.dialogue = new Array('It\'s not a \'Compass\', doofus. It\'s a \'Na-vi-ga-tion U-nit\'');
jack_0_17 = new Object();
jack_0_17.area = 'down';
jack_0_17.speaker = 'Calisto';
jack_0_17.portrait = 'calisto';
jack_0_17.dialogue = new Array('Or are those words too big for you?');
jack_0_18 = new Object();
jack_0_18.area = 'up';
jack_0_18.speaker = 'Deadeye Jack';
jack_0_18.portrait = 'jack';
jack_0_18.dialogue = new Array('Yar! Ye be payin\' fer them insults, girlie!');
action1 = {'actionType': 'quest', 'id': '20', 'val': 99};
jack_0_18.actions = new Array(action1);
jack_0_19 = new Object();
jack_0_19.area = 'up';
jack_0_19.speaker = 'Deadeye Jack';
jack_0_19.portrait = 'jack';
jack_0_19.dialogue = new Array('Avast ye scurvy dogs!!!');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'resetmap'};
action3 = {'actionType': 'combat', 'mSet': 'jack'};
jack_0_19.actions = new Array(action1, action2, action3);
jack_0 = new Array(jack_0_0, jack_0_0a, jack_0_1, jack_0_2, jack_0_3, jack_0_4, jack_0_4a);
jack_0a = new Array(jack_0_9, jack_0_10, jack_0_8, jack_0_11, jack_0_12, jack_0_13, jack_0_14, jack_0_15, jack_0_16, jack_0_17, jack_0_18, jack_0_19);
jack_0b = new Array(jack_0_5, jack_0_5a, jack_0_6, jack_0_7, jack_0_8, jack_0_11, jack_0_12, jack_0_13, jack_0_14, jack_0_15, jack_0_16, jack_0_17, jack_0_18, jack_0_19);
jack_0c = new Array(jack_0_4b, jack_0_4c, jack_0_4d, jack_0_4e, jack_0_8, jack_0_11, jack_0_12, jack_0_13, jack_0_14, jack_0_15, jack_0_16, jack_0_17, jack_0_18, jack_0_19);
jack_1_1 = new Object();
jack_1_1.area = 'up';
jack_1_1.speaker = 'Deadeye Jack';
jack_1_1.portrait = 'jack';
jack_1_1.dialogue = new Array('Ye may have beaten ol\' Jack... but...');
jack_1_2 = new Object();
jack_1_2.area = 'up';
jack_1_2.speaker = 'Deadeye Jack';
jack_1_2.portrait = 'jack';
jack_1_2.dialogue = new Array('...ye\'ll never... get...get me compass...');
jack_1_3 = new Object();
jack_1_3.area = 'up';
jack_1_3.speaker = 'Deadeye Jack';
jack_1_3.portrait = 'jack';
jack_1_3.dialogue = new Array('Never!');
jack_1_4 = new Object();
jack_1_4.area = 'down';
jack_1_4.speaker = 'Calisto';
jack_1_4.portrait = 'calisto';
jack_1_4.dialogue = new Array('Oh put a sock in it already Jacky-boy.');
jack_1_5 = new Object();
jack_1_5.area = 'up';
jack_1_5.speaker = 'Deadeye Jack';
jack_1_5.portrait = 'jack';
jack_1_5.dialogue = new Array('Ye best... start rememberin\'... Deadeye Jack...');
jack_1_6 = new Object();
jack_1_6.area = 'up';
jack_1_6.speaker = 'Deadeye Jack';
jack_1_6.portrait = 'jack';
jack_1_6.dialogue = new Array('... just like Jack... will remember... ye~*');
action1 = {'actionType': 'quest', 'id': '21', 'val': 99};
jack_1_6.actions = new Array(action1);
jack_1_6a = new Object();
jack_1_6a.area = 'up';
jack_1_6a.speaker = 'Deadeye Jack';
jack_1_6a.portrait = 'jack';
jack_1_6a.chatType = 'random';
jack_1_6a.dialogue = new Array('...ZZZzzzZZZZzzzZz...', '...ZZZzzzZZZZzzzZz...');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'resetmap'};
action3 = {'actionType': 'item', 'id': 'I008Q', 'val': 1};
jack_1_6a.actions = new Array(action1, action2, action3);
jack_1_6a.responses = new Array('jack_1a', 'jack_1a');
jack_1_7 = new Object();
jack_1_7.area = 'up';
jack_1_7.speaker = 'Billy Barrage';
jack_1_7.portrait = 'barrage';
action1 = {'actionType': 'bottomVisible', 'toShow': false};
jack_1_7.dialogue = new Array('Looks like he\'s out.');
jack_1_7.actions = new Array(action1);
jack_1_8 = new Object();
jack_1_8.area = 'down';
jack_1_8.speaker = _level0.heroName;
jack_1_8.portrait = _level0.charA001.portrait;
action1 = {'actionType': 'bottomVisible', 'toShow': true};
jack_1_8.dialogue = new Array('Great! Let\'s get that navigation unit out of here.');
jack_1_8.actions = new Array(action1);
jack_1 = new Array(jack_1_1, jack_1_2, jack_1_3, jack_1_4, jack_1_5, jack_1_6, jack_1_6a);
jack_1a = new Array(jack_1_7, jack_1_8);
lucille_0_1 = new Object();
lucille_0_1.area = 'up';
lucille_0_1.speaker = '???';
lucille_0_1.portrait = 'lucille';
lucille_0_1.dialogue = new Array('You two!');
action1 = {'actionType': 'animate_map', 'id': 'cell11_21', 'val': 'a2'};
action2 = {'actionType': 'music', 'trackname': 'officer', 'noloop': false};
lucille_0_1.actions = new Array(action1, action2);
lucille_0_2 = new Object();
lucille_0_2.area = 'up';
lucille_0_2.speaker = '???';
lucille_0_2.portrait = 'lucille';
lucille_0_2.dialogue = new Array('Get out of our way.');
lucille_0_3 = new Object();
lucille_0_3.area = 'down';
lucille_0_3.speaker = 'Billy Barrage';
lucille_0_3.portrait = 'barrage';
lucille_0_3.dialogue = new Array('It wouldn\'t hurt to be a little more polite, Ma\'am.');
lucille_0_4 = new Object();
lucille_0_4.area = 'up';
lucille_0_4.speaker = '???';
lucille_0_4.portrait = 'lucille';
lucille_0_4.dialogue = new Array('I\'d keep my mouth shut if I were you, boy.');
lucille_0_5 = new Object();
lucille_0_5.area = 'down';
lucille_0_5.speaker = _level0.heroName;
lucille_0_5.portrait = _level0.charA001.portrait;
lucille_0_5.dialogue = new Array('Come on Billy, let\'s go. We\'re wasting time here.');
lucille_0_6 = new Object();
lucille_0_6.area = 'up';
lucille_0_6.speaker = '???';
lucille_0_6.portrait = 'lucille';
lucille_0_6.dialogue = new Array('You\'d do well to listen to your friend.');
action1 = {'actionType': 'quest', 'id': '17', 'val': 99};
action2 = {'actionType': 'animate_map', 'id': 'cell11_21', 'val': 'a3'};
lucille_0_6.actions = new Array(action1, action2);
lucille_0_6a = new Object();
lucille_0_6a.area = 'up';
lucille_0_6a.speaker = '???';
lucille_0_6a.portrait = 'lucille';
lucille_0_6a.chatType = 'random';
lucille_0_6a.dialogue = new Array('All right men, spread out and search! We haven\'t got all day!', 'All right men, spread out and search! We haven\'t got all day!');
lucille_0_6a.responses = new Array('lucille_0a', 'lucille_0a');
lucille_0_7 = new Object();
lucille_0_7.area = 'up';
lucille_0_7.speaker = 'Billy Barrage';
lucille_0_7.portrait = 'barrage';
action1 = {'actionType': 'animate_map', 'id': 'cell11_21', 'val': 'a4'};
lucille_0_7.actions = new Array(action1);
lucille_0_7.dialogue = new Array('What was that about?');
lucille_0_8 = new Object();
lucille_0_8.area = 'down';
lucille_0_8.speaker = _level0.heroName;
lucille_0_8.portrait = _level0.charA001.portrait;
lucille_0_8.dialogue = new Array('...');
action1 = {'actionType': 'resetmap'};
lucille_0_8.actions = new Array(action1);
lucille_0 = new Array(lucille_0_1, lucille_0_2, lucille_0_3, lucille_0_4, lucille_0_5, lucille_0_6, lucille_0_6a);
lucille_0a = new Array(lucille_0_7, lucille_0_8);
lucille_1_1 = new Object();
lucille_1_1.area = 'down';
lucille_1_1.speaker = 'Billy Barrage';
lucille_1_1.portrait = 'barrage';
lucille_1_1.dialogue = new Array('We\'re back Mister R!');
action1 = {'actionType': 'music', 'trackname': 'none', 'noloop': true};
lucille_1_1.actions = new Array(action1);
lucille_1_2 = new Object();
lucille_1_2.area = 'down';
lucille_1_2.speaker = 'Calisto';
lucille_1_2.portrait = 'calisto';
lucille_1_2.dialogue = new Array('Oh Rooooon! You there?');
lucille_1_3 = new Object();
lucille_1_3.area = 'down';
lucille_1_3.speaker = _level0.heroName;
lucille_1_3.portrait = _level0.charA001.portrait;
lucille_1_3.dialogue = new Array('Hmm... He\'s doesn\'t seem to be around.');
lucille_1_3a = new Object();
lucille_1_3a.area = 'down';
lucille_1_3a.speaker = _level0.heroName;
lucille_1_3a.portrait = _level0.charA001.portrait;
lucille_1_3a.dialogue = new Array('I\'ll just leave the \'boards right here.');
action1 = {'actionType': 'quest', 'id': '24', 'val': 99};
action2 = {'actionType': 'item', 'id': 'I012Q', 'val': -1};
lucille_1_3a.actions = new Array(action1, action2);
lucille_1_4 = new Object();
lucille_1_4.area = 'down';
lucille_1_4.speaker = 'Calisto';
lucille_1_4.portrait = 'calisto';
lucille_1_4.dialogue = new Array('Where do you think he went ' + _level0.heroName + '?');
lucille_1_5 = new Object();
lucille_1_5.area = 'up';
lucille_1_5.speaker = '???';
lucille_1_5.portrait = 'lucille';
lucille_1_5.dialogue = new Array('I\'m afraid he\'s not here right now.');
action1 = {'actionType': 'music', 'trackname': 'suspense', 'noloop': true};
lucille_1_5.actions = new Array(action1);
lucille_1_6 = new Object();
lucille_1_6.area = 'down';
lucille_1_6.speaker = _level0.heroName;
lucille_1_6.portrait = _level0.charA001.portrait;
lucille_1_6.dialogue = new Array('You! What are you doing here?');
lucille_1_6a = new Object();
lucille_1_6a.area = 'up';
lucille_1_6a.speaker = '???';
lucille_1_6a.portrait = 'lucille';
lucille_1_6a.dialogue = new Array('That\'s none of your business.');
lucille_1_7 = new Object();
lucille_1_7.area = 'down';
lucille_1_7.speaker = 'Billy Barrage';
lucille_1_7.portrait = 'barrage';
lucille_1_7.dialogue = new Array('Who exactly are you, and what have you done with Mister R?');
lucille_1_8 = new Object();
lucille_1_8.area = 'up';
lucille_1_8.speaker = '???';
lucille_1_8.portrait = 'lucille';
lucille_1_8.dialogue = new Array('Do you not recognise the Imperial crest boy?');
lucille_1_9 = new Object();
lucille_1_9.area = 'up';
lucille_1_9.speaker = '???';
lucille_1_9.portrait = 'lucille';
lucille_1_9.dialogue = new Array('I am Ariel Highwater, Second Commander of the Third Imperial Sky Fleet.');
action1 = {'actionType': 'music', 'trackname': 'officer', 'noloop': false};
lucille_1_9.actions = new Array(action1);
lucille_1_10 = new Object();
lucille_1_10.area = 'up';
lucille_1_10.speaker = 'Ariel Highwater';
lucille_1_10.portrait = 'lucille';
lucille_1_10.dialogue = new Array('Do not worry about the old man, we have him.');
lucille_1_11 = new Object();
lucille_1_11.area = 'down';
lucille_1_11.speaker = 'Calisto';
lucille_1_11.portrait = 'calisto';
lucille_1_11.dialogue = new Array('Where are you people takin\' him?');
lucille_1_11a = new Object();
lucille_1_11a.area = 'down';
lucille_1_11a.speaker = _level0.heroName;
lucille_1_11a.portrait = _level0.charA001.portrait;
lucille_1_11a.dialogue = new Array('Answer her!');
lucille_1_12 = new Object();
lucille_1_12.area = 'up';
lucille_1_12.speaker = 'Ariel Highwater';
lucille_1_12.portrait = 'lucille';
lucille_1_12.dialogue = new Array('Except for my superiors, I answer to no one. And especially not to children such as yourselves.');
lucille_1_12a = new Object();
lucille_1_12a.area = 'up';
lucille_1_12a.speaker = 'Ariel Highwater';
lucille_1_12a.portrait = 'lucille';
lucille_1_12a.dialogue = new Array('Now if you\'ll excuse me, I must be going now that I have retrieved Ronald\'s belongings.');
lucille_1_13 = new Object();
lucille_1_13.area = 'down';
lucille_1_13.speaker = 'Calisto';
lucille_1_13.portrait = 'calisto';
lucille_1_13.dialogue = new Array('You\'re not goin\' anywhere until you tell us what we want to know.');
lucille_1_14 = new Object();
lucille_1_14.area = 'up';
lucille_1_14.speaker = 'Ariel Highwater';
lucille_1_14.portrait = 'lucille';
lucille_1_14.dialogue = new Array('Oh really? And I assume you\'re going to try to stop me?');
lucille_1_15 = new Object();
lucille_1_15.area = 'down';
lucille_1_15.speaker = _level0.heroName;
lucille_1_15.portrait = _level0.charA001.portrait;
lucille_1_15.dialogue = new Array('We most certainly will.');
lucille_1_16 = new Object();
lucille_1_16.area = 'up';
lucille_1_16.speaker = 'Ariel Highwater';
lucille_1_16.portrait = 'lucille';
lucille_1_16.dialogue = new Array('How interesting...');
lucille_1_17 = new Object();
lucille_1_17.area = 'up';
lucille_1_17.speaker = 'Ariel Highwater';
lucille_1_17.portrait = 'lucille';
lucille_1_17.dialogue = new Array('Since I find this all very amusing, I\'ll make you a deal.');
lucille_1_18 = new Object();
lucille_1_18.area = 'up';
lucille_1_18.speaker = 'Ariel Highwater';
lucille_1_18.portrait = 'lucille';
lucille_1_18.dialogue = new Array('A MAW duel... Against all three of you.');
lucille_1_19 = new Object();
lucille_1_19.area = 'up';
lucille_1_19.speaker = 'Ariel Highwater';
lucille_1_19.portrait = 'lucille';
lucille_1_19.dialogue = new Array('If you win this, I\'ll tell you where the old man is.');
lucille_1_19a = new Object();
lucille_1_19a.area = 'up';
lucille_1_19a.speaker = 'Ariel Highwater';
lucille_1_19a.portrait = 'lucille';
lucille_1_19a.dialogue = new Array('Men, take Ronald\'s belongings back to the airship and await my return.');
lucille_1_19b = new Object();
lucille_1_19b.area = 'up';
lucille_1_19b.speaker = 'Imperial Soldier';
lucille_1_19b.portrait = 'soldier1';
lucille_1_19b.dialogue = new Array('But commander, we can\'t-');
lucille_1_19c = new Object();
lucille_1_19c.area = 'up';
lucille_1_19c.speaker = 'Ariel Highwater';
lucille_1_19c.portrait = 'lucille';
lucille_1_19c.dialogue = new Array('Leave us!');
lucille_1_19d = new Object();
lucille_1_19d.area = 'up';
lucille_1_19d.speaker = 'Imperial Soldier';
lucille_1_19d.portrait = 'soldier1';
lucille_1_19d.dialogue = new Array('Yes, Ma\'am.');
lucille_1_20 = new Object();
lucille_1_20.area = 'down';
lucille_1_20.speaker = 'Calisto';
lucille_1_20.portrait = 'calisto';
lucille_1_20.dialogue = new Array('Lady, you just went and made a big mistake.');
lucille_1_21 = new Object();
lucille_1_21.area = 'up';
lucille_1_21.speaker = 'Ariel Highwater';
lucille_1_21.portrait = 'lucille';
lucille_1_21.dialogue = new Array('We\'ll see who\'s really making the mistakes.');
action1 = {'actionType': 'quest', 'id': '18', 'val': 99};
lucille_1_21.actions = new Array(action1);
lucille_1_22 = new Object();
lucille_1_22.area = 'up';
lucille_1_22.speaker = 'Ariel Highwater';
lucille_1_22.portrait = 'lucille';
lucille_1_22.dialogue = new Array('Now then, shall we head outside to finish this?');
action1 = {'actionType': 'bg', 'transit': true, 'bg': 'town'};
action2 = {'actionType': 'combat', 'mSet': 'officer_boss'};
lucille_1_22.actions = new Array(action1, action2);
lucille_1 = new Array(lucille_1_1, lucille_1_2, lucille_1_3, lucille_1_3a, lucille_1_4, lucille_1_5, lucille_1_6, lucille_1_6a, lucille_1_7, lucille_1_8, lucille_1_9, lucille_1_10, lucille_1_11, lucille_1_11a, lucille_1_12, lucille_1_12a, lucille_1_13, lucille_1_14, lucille_1_15, lucille_1_16, lucille_1_17, lucille_1_18, lucille_1_19, lucille_1_19a, lucille_1_19b, lucille_1_19c, lucille_1_19d, lucille_1_20, lucille_1_21, lucille_1_22);
lucille_2_1 = new Object();
lucille_2_1.area = 'up';
lucille_2_1.speaker = 'Ariel Highwater';
lucille_2_1.portrait = 'lucille';
lucille_2_1.dialogue = new Array('I commend you for your valiant efforts, but you should have known this was inevitable.');
action1 = {'actionType': 'music', 'trackname': 'officer', 'noloop': false};
lucille_2_1.actions = new Array(action1);
lucille_2_2 = new Object();
lucille_2_2.area = 'up';
lucille_2_2.speaker = 'Ariel Highwater';
lucille_2_2.portrait = 'lucille';
lucille_2_2.chatType = 'random';
lucille_2_2.dialogue = new Array('I must be off now. \'Til we meet again.', 'I must be off now. \'Til we meet again.');
action1 = {'actionType': 'bg', 'transit': true};
lucille_2_2.responses = new Array('lucille_2a', 'lucille_2a');
lucille_2_2.actions = new Array(action1);
lucille_2_3a = new Object();
lucille_2_3a.area = 'up';
lucille_2_3a.speaker = 'Robyn';
lucille_2_3a.portrait = 'robyn';
lucille_2_3a.dialogue = new Array('Kiddo!');
action1 = {'actionType': 'topVisible', 'toShow': true};
lucille_2_3a.actions = new Array(action1);
lucille_2_3 = new Object();
lucille_2_3.area = 'down';
lucille_2_3.speaker = _level0.heroName;
lucille_2_3.portrait = _level0.charA001.portrait;
action1 = {'actionType': 'topVisible', 'toShow': false};
action2 = {'actionType': 'music', 'trackname': 'town', 'noloop': false};
lucille_2_3.dialogue = new Array('Uhhn...');
lucille_2_3.actions = new Array(action1, action2);
lucille_2_4 = new Object();
lucille_2_4.area = 'up';
lucille_2_4.speaker = 'Robyn';
lucille_2_4.portrait = 'robyn';
lucille_2_4.dialogue = new Array(_level0.heroName + ', wake up!');
lucille_2_5 = new Object();
lucille_2_5.area = 'down';
lucille_2_5.speaker = _level0.heroName;
lucille_2_5.portrait = _level0.charA001.portrait;
lucille_2_5.dialogue = new Array('Ow, my head...');
lucille_2_6 = new Object();
lucille_2_6.area = 'up';
lucille_2_6.speaker = 'Elyssa';
lucille_2_6.portrait = 'elyssa';
lucille_2_6.dialogue = new Array('Rise and shine, sweetie.');
lucille_2_7 = new Object();
lucille_2_7.area = 'up';
lucille_2_7.speaker = 'Donna';
lucille_2_7.portrait = 'donna';
lucille_2_7.dialogue = new Array('Wow! You guys really got creamed!');
lucille_2_8 = new Object();
lucille_2_8.area = 'up';
lucille_2_8.speaker = 'Robyn';
lucille_2_8.portrait = 'robyn';
lucille_2_8.dialogue = new Array('We saw the whole fight. Is everyone alright?');
lucille_2_9 = new Object();
lucille_2_9.area = 'down';
lucille_2_9.speaker = 'Billy Barrage';
lucille_2_9.portrait = 'barrage';
lucille_2_9.dialogue = new Array('I\'m fine. Just a little dizzy that\'s all. I think Cali\'s hurt though.');
lucille_2_10 = new Object();
lucille_2_10.area = 'down';
lucille_2_10.speaker = 'Calisto';
lucille_2_10.portrait = 'calisto';
lucille_2_10.dialogue = new Array('Anhh... The only thing hurt was my pride. Damn that woman\'s good.');
lucille_2_11 = new Object();
lucille_2_11.area = 'up';
lucille_2_11.speaker = 'Donna';
lucille_2_11.portrait = 'donna';
lucille_2_11.dialogue = new Array('She must be. I heard that Imperial soldiers are well trained in MAW combat.');
lucille_2_12 = new Object();
lucille_2_12.area = 'down';
lucille_2_12.speaker = 'Calisto';
lucille_2_12.portrait = 'calisto';
lucille_2_12.dialogue = new Array('She wasn\'t just a simple soldier. She was a Fleet Commander.');
lucille_2_13 = new Object();
lucille_2_13.area = 'up';
lucille_2_13.speaker = 'Robyn';
lucille_2_13.portrait = 'robyn';
lucille_2_13.dialogue = new Array('Before you three came back here, we already saw Imperial soldiers escorting old Ron away.');
lucille_2_14 = new Object();
lucille_2_14.area = 'down';
lucille_2_14.speaker = _level0.heroName;
lucille_2_14.portrait = _level0.charA001.portrait;
lucille_2_14.dialogue = new Array('But what would the Imperialists want with Ron?');
lucille_2_16 = new Object();
lucille_2_16.area = 'down';
lucille_2_16.speaker = _level0.heroName;
lucille_2_16.portrait = _level0.charA001.portrait;
lucille_2_16.dialogue = new Array('Ah it doesn\'t matter. I\'ve got to find him in any case!');
lucille_2_16a = new Object();
lucille_2_16a.area = 'down';
lucille_2_16a.speaker = _level0.heroName;
lucille_2_16a.portrait = _level0.charA001.portrait;
lucille_2_16a.dialogue = new Array('The only problem is I don\'t know where to look.');
lucille_2_17 = new Object();
lucille_2_17.area = 'up';
lucille_2_17.speaker = 'Robyn';
lucille_2_17.portrait = 'robyn';
lucille_2_17.dialogue = new Array('Kiddo, my best guess is that they took him to the Imperial City.');
lucille_2_18 = new Object();
lucille_2_18.area = 'down';
lucille_2_18.speaker = _level0.heroName;
lucille_2_18.portrait = _level0.charA001.portrait;
lucille_2_18.dialogue = new Array('But with the airship at Acero Terminus down, there\'s no way I can reach the Imperial City.');
lucille_2_20 = new Object();
lucille_2_20.area = 'down';
lucille_2_20.speaker = 'Billy Barrage';
lucille_2_20.portrait = 'barrage';
lucille_2_20.dialogue = new Array('Don\'t worry about it, we\'ll find a way. First thing we need to do is talk to Drake.');
lucille_2_21 = new Object();
lucille_2_21.area = 'down';
lucille_2_21.speaker = _level0.heroName;
lucille_2_21.portrait = _level0.charA001.portrait;
lucille_2_21.dialogue = new Array('\'We\'? You mean...?');
lucille_2_22 = new Object();
lucille_2_22.area = 'down';
lucille_2_22.speaker = 'Billy Barrage';
lucille_2_22.portrait = 'barrage';
lucille_2_22.dialogue = new Array('Count me in ' + _level0.heroName + '. We\'ll find Mister R together.');
lucille_2_23 = new Object();
lucille_2_23.area = 'down';
lucille_2_23.speaker = 'Calisto';
lucille_2_23.portrait = 'calisto';
lucille_2_23.dialogue = new Array('Don\'t forget about me. Ron was my teacher remember?');
lucille_2_23a = new Object();
lucille_2_23a.area = 'down';
lucille_2_23a.speaker = _level0.heroName;
lucille_2_23a.portrait = _level0.charA001.portrait;
lucille_2_23a.dialogue = new Array('Billy... Calisto...');
lucille_2_23b = new Object();
lucille_2_23b.area = 'down';
lucille_2_23b.speaker = _level0.heroName;
lucille_2_23b.portrait = _level0.charA001.portrait;
lucille_2_23b.dialogue = new Array('I really appreciate this.');
lucille_2_23c = new Object();
lucille_2_23c.area = 'down';
lucille_2_23c.speaker = 'Calisto';
lucille_2_23c.portrait = 'calisto';
lucille_2_23c.dialogue = new Array('Hey, don\'t sweat it.');
lucille_2_24 = new Object();
lucille_2_24.area = 'up';
lucille_2_24.speaker = 'Elyssa';
lucille_2_24.portrait = 'elyssa';
lucille_2_24.dialogue = new Array('We\'d better head back.');
lucille_2_25 = new Object();
lucille_2_25.area = 'up';
lucille_2_25.speaker = 'Robyn';
lucille_2_25.portrait = 'robyn';
lucille_2_25.dialogue = new Array('You\'re right.');
lucille_2_26 = new Object();
lucille_2_26.area = 'up';
lucille_2_26.speaker = 'Robyn';
lucille_2_26.portrait = 'robyn';
lucille_2_26.dialogue = new Array('Well kiddo, all the best on your journey.');
lucille_2_27 = new Object();
lucille_2_27.area = 'up';
lucille_2_27.speaker = 'Robyn';
lucille_2_27.portrait = 'robyn';
lucille_2_27.dialogue = new Array('Take care of yourselves...');
lucille_2_28 = new Object();
lucille_2_28.area = 'up';
lucille_2_28.speaker = 'Elyssa';
lucille_2_28.portrait = 'elyssa';
lucille_2_28.dialogue = new Array('... And bring Ron back safely.');
lucille_2_29 = new Object();
lucille_2_29.area = 'up';
lucille_2_29.speaker = 'Donna';
lucille_2_29.portrait = 'donna';
lucille_2_29.dialogue = new Array('Don\'t forget to get your MAWs repaired!');
lucille_2_30 = new Object();
lucille_2_30.area = 'up';
lucille_2_30.speaker = 'Elyssa';
lucille_2_30.portrait = 'elyssa';
lucille_2_30.dialogue = new Array('Donna sweetie, just when are you coming back to work?');
lucille_2_31 = new Object();
lucille_2_31.area = 'up';
lucille_2_31.speaker = 'Donna';
lucille_2_31.portrait = 'donna';
lucille_2_31.dialogue = new Array('Heeey, not to worry El! I\'ll be there. *Grin*');
lucille_2_32 = new Object();
lucille_2_32.area = 'up';
lucille_2_32.speaker = 'Elyssa';
lucille_2_32.portrait = 'elyssa';
lucille_2_32.chatType = 'random';
lucille_2_32.dialogue = new Array('*Sigh* Never mind.', '*Sigh* Never mind.');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'exitShop'};
lucille_2_32.actions = new Array(action1, action2);
lucille_2_32.responses = new Array('lucille_2b', 'lucille_2b');
lucille_2_33 = new Object();
lucille_2_33.area = 'down';
lucille_2_33.speaker = _level0.heroName;
lucille_2_33.portrait = _level0.charA001.portrait;
action1 = {'actionType': 'topVisible', 'toShow': false};
lucille_2_33.dialogue = new Array('Come on, time to go.');
lucille_2_33.actions = new Array(action1);
lucille_2_34 = new Object();
lucille_2_34.area = 'up';
lucille_2_34.speaker = 'Billy Barrage';
lucille_2_34.portrait = 'barrage';
action1 = {'actionType': 'topVisible', 'toShow': true};
lucille_2_34.dialogue = new Array('Lead the way, ' + _level0.heroName + '!');
lucille_2_34.actions = new Array(action1);
lucille_2 = new Array(lucille_2_1, lucille_2_2);
lucille_2a = new Array(lucille_2_3, lucille_2_3a, lucille_2_4, lucille_2_5, lucille_2_6, lucille_2_7, lucille_2_8, lucille_2_9, lucille_2_10, lucille_2_11, lucille_2_12, lucille_2_13, lucille_2_14, lucille_2_16, lucille_2_16a, lucille_2_17, lucille_2_18, lucille_2_20, lucille_2_21, lucille_2_22, lucille_2_23, lucille_2_23a, lucille_2_23b, lucille_2_23c, lucille_2_24, lucille_2_25, lucille_2_26, lucille_2_27, lucille_2_28, lucille_2_29, lucille_2_30, lucille_2_31, lucille_2_32);
lucille_2b = new Array(lucille_2_33, lucille_2_34);
lucille_3_1 = new Object();
lucille_3_1.area = 'up';
lucille_3_1.speaker = 'Ariel Highwater';
lucille_3_1.portrait = 'lucille';
lucille_3_1.dialogue = new Array('Uhnn... It seems I\'ve underestimated you... All of you.');
action1 = {'actionType': 'music', 'trackname': 'officer', 'noloop': false};
lucille_3_1.actions = new Array(action1);
lucille_3_2 = new Object();
lucille_3_2.area = 'up';
lucille_3_2.speaker = 'Ariel Highwater';
lucille_3_2.portrait = 'lucille';
lucille_3_2.dialogue = new Array('But I shall keep my word as promised, and disclose the old man\'s location.');
lucille_3_3 = new Object();
lucille_3_3.area = 'up';
lucille_3_3.speaker = 'Ariel Highwater';
lucille_3_3.portrait = 'lucille';
lucille_3_3.dialogue = new Array('If you want to find him, come to the Imperial City.');
lucille_3_4 = new Object();
lucille_3_4.area = 'up';
lucille_3_4.speaker = 'Ariel Highwater';
lucille_3_4.portrait = 'lucille';
lucille_3_4.dialogue = new Array('Now you must excuse me. My airship awaits.');
lucille_3_5 = new Object();
lucille_3_5.area = 'down';
lucille_3_5.speaker = _level0.heroName;
lucille_3_5.portrait = _level0.charA001.portrait;
lucille_3_5.dialogue = new Array('Wait! You can\'t just-');
lucille_3_6 = new Object();
lucille_3_6.area = 'up';
lucille_3_6.speaker = 'Ariel Highwater';
lucille_3_6.portrait = 'lucille';
lucille_3_6.chatType = 'random';
lucille_3_6.dialogue = new Array('I look foward to the arrival of you and your friends... ' + _level0.heroName + '.', 'I look foward to the arrival of you and your friends... ' + _level0.heroName + '.');
action1 = {'actionType': 'bg', 'transit': true};
lucille_3_6.actions = new Array(action1);
lucille_3_6.responses = new Array('lucille_3a', 'lucille_3a');
lucille_3_7 = new Object();
lucille_3_7.area = 'up';
lucille_3_7.speaker = 'Calisto';
lucille_3_7.portrait = 'calisto';
lucille_3_7.dialogue = new Array('*Kaff* *Kaff* It\'s a smoke screen!');
action1 = {'actionType': 'bottomVisible', 'toShow': false};
lucille_3_7.actions = new Array(action1);
lucille_3_8 = new Object();
lucille_3_8.area = 'down';
lucille_3_8.speaker = 'Biily Barrage';
lucille_3_8.portrait = 'barrage';
lucille_3_8.dialogue = new Array('She\'s gone.');
action1 = {'actionType': 'bottomVisible', 'toShow': true};
lucille_3_8.actions = new Array(action1);
lucille_3_9 = new Object();
lucille_3_9.area = 'up';
lucille_3_9.speaker = 'Calisto';
lucille_3_9.portrait = 'calisto';
lucille_3_9.chatType = 'random';
lucille_3_9.dialogue = new Array('What a dirty trick!', 'What a dirty trick!');
action1 = {'actionType': 'bg', 'transit': true};
action2 = {'actionType': 'quest', 'id': '19', 'val': 99};
action3 = {'actionType': 'quest', 'id': '34', 'val': 1};
lucille_3_9.actions = new Array(action1, action2, action3);
lucille_3_9.responses = new Array('lucille_3b', 'lucille_3b');
lucille_3_10 = new Object();
lucille_3_10.area = 'down';
lucille_3_10.speaker = _level0.heroName;
lucille_3_10.portrait = _level0.charA001.portrait;
lucille_3_10.dialogue = new Array('Looks like the smoke\'s cleared.');
action1 = {'actionType': 'music', 'trackname': 'town', 'noloop': false};
action2 = {'actionType': 'topVisible', 'toShow': false};
lucille_3_10.actions = new Array(action1, action2);
lucille_3_11 = new Object();
lucille_3_11.area = 'up';
lucille_3_11.speaker = 'Donna';
lucille_3_11.portrait = 'donna';
lucille_3_11.dialogue = new Array('Wow! You guys were amazing!');
action1 = {'actionType': 'topVisible', 'toShow': true};
lucille_3_11.actions = new Array(action1);
lucille_3_12 = new Object();
lucille_3_12.area = 'down';
lucille_3_12.speaker = _level0.heroName;
lucille_3_12.portrait = _level0.charA001.portrait;
lucille_3_12.dialogue = new Array('We\'re okay Robyn.');
lucille_3_13 = new Object();
lucille_3_13.area = 'down';
lucille_3_13.speaker = _level0.heroName;
lucille_3_13.portrait = _level0.charA001.portrait;
lucille_3_13.dialogue = new Array('With the airship at Acero Terminus down, there\'s no way I can reach the Imperial City.');
lucille_3 = new Array(lucille_3_1, lucille_3_2, lucille_3_3, lucille_3_4, lucille_3_5, lucille_3_6);
lucille_3a = new Array(lucille_3_7, lucille_3_8, lucille_3_9);
lucille_3b = new Array(lucille_3_10, lucille_3_11, lucille_2_8, lucille_3_12, lucille_2_13, lucille_2_14, lucille_2_16, lucille_2_18, lucille_2_20, lucille_2_21, lucille_2_22, lucille_2_23, lucille_2_23a, lucille_2_23b, lucille_2_23c, lucille_2_24, lucille_2_25, lucille_2_26, lucille_2_27, lucille_2_28, lucille_2_29, lucille_2_30, lucille_2_31, lucille_2_32);
billy_1_1 = new Object();
billy_1_1.area = 'up';
billy_1_1.speaker = 'Billy Barrage';
billy_1_1.portrait = 'barrage';
billy_1_1.dialogue = new Array('This sure brings back memories...');
billy_1_2 = new Object();
billy_1_2.area = 'down';
billy_1_2.speaker = _level0.heroName;
billy_1_2.portrait = _level0.charA001.portrait;
billy_1_2.dialogue = new Array('You followed your father into the mines a lot didn\'t you?');
billy_1_3 = new Object();
billy_1_3.area = 'up';
billy_1_3.speaker = 'Billy Barrage';
billy_1_3.portrait = 'barrage';
billy_1_3.dialogue = new Array('Sometimes. They wouldn\'t let kids in of course, so Dad had to think of some way to sneak me in.');
billy_1_4 = new Object();
billy_1_4.area = 'up';
billy_1_4.speaker = 'Billy Barrage';
billy_1_4.portrait = 'barrage';
billy_1_4.dialogue = new Array('But that was my old man, you know? His life was the mines, and he was hoping to bring it into his kid\'s life too.');
billy_1_5 = new Object();
billy_1_5.area = 'up';
billy_1_5.speaker = 'Billy Barrage';
billy_1_5.portrait = 'barrage';
billy_1_5.dialogue = new Array('I guess it was only appropriate that his life ended in the mines.');
billy_1_6 = new Object();
billy_1_6.area = 'down';
billy_1_6.speaker = _level0.heroName;
billy_1_6.portrait = _level0.charA001.portrait;
billy_1_6.dialogue = new Array('It was that mining accident years ago, wasn\'t it?');
billy_1_7 = new Object();
billy_1_7.area = 'up';
billy_1_7.speaker = 'Billy Barrage';
billy_1_7.portrait = 'barrage';
billy_1_7.dialogue = new Array('Yeah...');
billy_1_8 = new Object();
billy_1_8.area = 'down';
billy_1_8.speaker = _level0.heroName;
billy_1_8.portrait = _level0.charA001.portrait;
billy_1_8.dialogue = new Array('Sorry Billy, I didn\'t mean to bring it up.');
billy_1_9 = new Object();
billy_1_9.area = 'up';
billy_1_9.speaker = 'Billy Barrage';
billy_1_9.portrait = 'barrage';
billy_1_9.dialogue = new Array('Hey no sweat, man! It\'s not your fault.');
billy_1_10 = new Object();
billy_1_10.area = 'up';
billy_1_10.speaker = 'Billy Barrage';
billy_1_10.portrait = 'barrage';
billy_1_10.dialogue = new Array('Anyway, I always wondered what my old man would think if he knew that his son became a Bounty Hunter like his mother.');
billy_1_11 = new Object();
billy_1_11.area = 'down';
billy_1_11.speaker = _level0.heroName;
billy_1_11.portrait = _level0.charA001.portrait;
billy_1_11.dialogue = new Array('I think you would\'ve had his full support.');
billy_1_12 = new Object();
billy_1_12.area = 'up';
billy_1_12.speaker = 'Billy Barrage';
billy_1_12.portrait = 'barrage';
billy_1_12.dialogue = new Array('Hey with that guy, it\'s hard to say.');
billy_1_13 = new Object();
billy_1_13.area = 'up';
billy_1_13.speaker = 'Billy Barrage';
billy_1_13.portrait = 'barrage';
billy_1_13.dialogue = new Array('Now come on, let\'s keep moving. We can probably find the plasmarock in the lower levels.');
billy_1_14 = new Object();
billy_1_14.area = 'down';
billy_1_14.speaker = _level0.heroName;
billy_1_14.portrait = _level0.charA001.portrait;
billy_1_14.dialogue = new Array('Right.');
action1 = {'actionType': 'quest', 'id': '10', 'val': 99};
action2 = {'actionType': 'resetmap'};
billy_1_14.actions = new Array(action1, action2);
billy_1 = new Array(billy_1_1, billy_1_2, billy_1_3, billy_1_4, billy_1_5, billy_1_6, billy_1_7, billy_1_8, billy_1_9, billy_1_10, billy_1_11, billy_1_12, billy_1_13, billy_1_14);
billy_2_1 = new Object();
billy_2_1.area = 'up';
billy_2_1.speaker = 'Billy Barrage';
billy_2_1.portrait = 'barrage';
billy_2_1.dialogue = new Array('We should be able to find some plasmarock from this level onwards.');
billy_2_2 = new Object();
billy_2_2.area = 'down';
billy_2_2.speaker = _level0.heroName;
billy_2_2.portrait = _level0.charA001.portrait;
billy_2_2.dialogue = new Array('The blood of gods...');
billy_2_3 = new Object();
billy_2_3.area = 'up';
billy_2_3.speaker = 'Billy Barrage';
billy_2_3.portrait = 'barrage';
billy_2_3.dialogue = new Array('Huh?');
billy_2_4 = new Object();
billy_2_4.area = 'down';
billy_2_4.speaker = _level0.heroName;
billy_2_4.portrait = _level0.charA001.portrait;
billy_2_4.dialogue = new Array('Nothing. Just thinking out loud about the tales behind it. Do you remember them?');
billy_2_5 = new Object();
billy_2_5.area = 'up';
billy_2_5.speaker = 'Billy Barrage';
billy_2_5.portrait = 'barrage';
billy_2_5.dialogue = new Array('Sure! My old man used to talk about it sometimes.');
billy_2_6 = new Object();
billy_2_6.area = 'up';
billy_2_6.speaker = 'Billy Barrage';
billy_2_6.portrait = 'barrage';
billy_2_6.dialogue = new Array('Legend has it that plasmarock comes from the veins in the bodies of massive beings who once ruled over Sios.');
billy_2_7 = new Object();
billy_2_7.area = 'down';
billy_2_7.speaker = _level0.heroName;
billy_2_7.portrait = _level0.charA001.portrait;
billy_2_7.dialogue = new Array('Do you think it\'s true?');
billy_2_8 = new Object();
billy_2_8.area = 'up';
billy_2_8.speaker = 'Billy Barrage';
billy_2_8.portrait = 'barrage';
billy_2_8.dialogue = new Array('Hey they may be legends, but then again, anything\'s possible right??');
billy_2_9 = new Object();
billy_2_9.area = 'up';
billy_2_9.speaker = 'Billy Barrage';
billy_2_9.portrait = 'barrage';
billy_2_9.dialogue = new Array('Think about it, if they were true, then we\'re actually standing inside the body of a dead god right now.');
billy_2_10 = new Object();
billy_2_10.area = 'up';
billy_2_10.speaker = 'Billy Barrage';
billy_2_10.portrait = 'barrage';
billy_2_10.dialogue = new Array('How cool would that be??');
billy_2_10a = new Object();
billy_2_10a.area = 'down';
billy_2_10a.speaker = _level0.heroName;
billy_2_10a.chatType = 'choice';
billy_2_10a.portrait = _level0.charA001.portrait;
billy_2_10a.dialogue = new Array('I believe...', 'I don\'t believe...');
billy_2_10a.responses = new Array('billy_3', 'billy_4');
billy_2_10b = new Object();
billy_2_10b.area = 'down';
billy_2_10b.speaker = _level0.heroName;
billy_2_10b.portrait = _level0.charA001.portrait;
billy_2_10b.dialogue = new Array('I guess it\'s possible.');
billy_2_10c = new Object();
billy_2_10c.area = 'up';
billy_2_10c.speaker = 'Billy Barrage';
billy_2_10c.portrait = 'barrage';
billy_2_10c.dialogue = new Array('Makes you wonder if anyone on Sios will ever find any physical proof of the legend.');
action1 = {'actionType': 'quest', 'id': '11', 'val': 99};
action2 = {'actionType': 'resetmap'};
billy_2_10c.actions = new Array(action1, action2);
billy_2_11 = new Object();
billy_2_11.area = 'down';
billy_2_11.speaker = _level0.heroName;
billy_2_11.portrait = _level0.charA001.portrait;
billy_2_11.dialogue = new Array('Coming from a tale that\'s thousands of years old... I don\'t buy it.');
billy_2_12 = new Object();
billy_2_12.area = 'up';
billy_2_12.speaker = 'Billy Barrage';
billy_2_12.portrait = 'barrage';
billy_2_12.dialogue = new Array('Nothing wrong with that either.');
action1 = {'actionType': 'quest', 'id': '11', 'val': 99};
action2 = {'actionType': 'resetmap'};
billy_2_12.actions = new Array(action1, action2);
billy_2 = new Array(billy_2_1, billy_2_2, billy_2_3, billy_2_4, billy_2_5, billy_2_6, billy_2_7, billy_2_8, billy_2_9, billy_2_10, billy_2_10a);
billy_3 = new Array(billy_2_10b, billy_2_10c);
billy_4 = new Array(billy_2_11, billy_2_12);
hero_0_1 = new Object();
hero_0_1.area = 'up';
hero_0_1.speaker = _level0.heroName;
hero_0_1.portrait = _level0.charA001.portrait;
hero_0_1.dialogue = new Array('Time for a rest.');
action1 = {'actionType': 'bg', 'transit': true, 'bg': 'house01'};
hero_0_1.actions = new Array(action1);
hero_0 = new Array(hero_0_1);
sleep_0_1 = new Object();
sleep_0_1.area = 'down';
sleep_0_1.speaker = _level0.heroName;
sleep_0_1.portrait = _level0.charA001.portrait;
sleep_0_1.dialogue = new Array('Time to take a rest.');
action1 = {'actionType': 'bg', 'transit': true, 'sleep': true};
action2 = {'actionType': 'shiftTime', 'hours': 6, 'mins': 0};
action3 = {'actionType': 'topVisible', 'toShow': false};
sleep_0_1.actions = new Array(action1, action2, action3);
sleep_0_2 = new Object();
sleep_0_2.area = 'down';
sleep_0_2.speaker = _level0.heroName;
sleep_0_2.portrait = _level0.charA001.portrait;
sleep_0_2.dialogue = new Array('Let\'s go!');
action1 = {'actionType': 'resetmap'};
sleep_0_2.actions = new Array(action1);
sleep_0 = new Array(sleep_0_1, sleep_0_2);
sleep_1_1 = new Object();
sleep_1_1.area = 'down';
sleep_1_1.speaker = _level0.heroName;
sleep_1_1.portrait = _level0.charA001.portrait;
sleep_1_1.dialogue = new Array('Time for a rest.');
action1 = {'actionType': 'bg', 'transit': true, 'sleep': true};
action2 = {'actionType': 'shiftTime', 'hours': 6, 'mins': 0};
action3 = {'actionType': 'topVisible', 'toShow': false};
sleep_1_1.actions = new Array(action1, action2, action3);
sleep_1_2 = new Object();
sleep_1_2.area = 'down';
sleep_1_2.speaker = _level0.heroName;
sleep_1_2.portrait = _level0.charA001.portrait;
sleep_1_2.dialogue = new Array('Let\'s go!');
sleep_1 = new Array(sleep_1_1, sleep_1_2);
sleep_2_1 = new Object();
sleep_2_1.area = 'down';
sleep_2_1.speaker = 'Calisto Filio';
sleep_2_1.portrait = 'calisto';
sleep_2_1.dialogue = new Array('Nap time!');
action1 = {'actionType': 'bg', 'transit': true, 'sleep': true};
action2 = {'actionType': 'shiftTime', 'hours': 6, 'mins': 0};
action3 = {'actionType': 'topVisible', 'toShow': false};
sleep_2_1.actions = new Array(action1, action2, action3);
sleep_2_2 = new Object();
sleep_2_2.area = 'down';
sleep_2_2.speaker = 'Calisto Filio';
sleep_2_2.portrait = 'calisto';
sleep_2_2.dialogue = new Array('Okay, everybody up!');
sleep_2 = new Array(sleep_2_1, sleep_2_2);
sleep_3_1 = new Object();
sleep_3_1.area = 'down';
sleep_3_1.speaker = 'Billy Barrage';
sleep_3_1.portrait = 'barrage';
sleep_3_1.dialogue = new Array('Let\'s get some sleep.');
action1 = {'actionType': 'bg', 'transit': true, 'sleep': true};
action2 = {'actionType': 'shiftTime', 'hours': 6, 'mins': 0};
action3 = {'actionType': 'topVisible', 'toShow': false};
sleep_3_1.actions = new Array(action1, action2, action3);
sleep_3_2 = new Object();
sleep_3_2.area = 'down';
sleep_3_2.speaker = 'Billy Barrage';
sleep_3_2.portrait = 'barrage';
sleep_3_2.dialogue = new Array('Alright, time to get up.');
sleep_3 = new Array(sleep_3_1, sleep_3_2);
if (_global.option == 'newgame') {
_level0.world[_level0.player].clip.char.gotoAndStop('stand1');
chatActivate(calisto_0);
_global.mainsave.save();
}
}
frame 2 {
gotoAndStop(2);
}
}
movieClip 3029 {
frame 10 {
stop();
}
}
movieClip 3042 {
frame 60 {
gotoAndPlay(6);
}
}
button 3044 {
on (release, keyPress '3') {
_level0.playSound('cancelSound');
_level0.bgMusic(_level0.areaMusic);
_root.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3045 {
on (release, keyPress '2') {
if (_level0.hh >= _level0.TIME_MORNING && _level0.hh < _level0.TIME_NIGHT) {
this._parent.talk('donna_0');
} else {
if (random(2) == 1) {
var displayName = _level0.randomMaleNPCnames[random(_level0.randomMaleNPCnames.length)];
_level0.talkingSystem.malenpc_1_1.speaker = displayName;
this._parent.talk('malenpc_1');
} else {
var displayName = _level0.randomFemaleNPCnames[random(_level0.randomFemaleNPCnames.length)];
_level0.talkingSystem.femalenpc_1_1.speaker = displayName;
this._parent.talk('femalenpc_1');
}
}
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3046 {
on (release, keyPress '1') {
this._parent.talk('robyn_0');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3047 {
frame 1 {
if (_level0.hh >= _level0.TIME_MORNING && _level0.hh < _level0.TIME_NIGHT) {
patron.text = 'DONNA';
} else {
patron.text = 'PATRONS';
_level0.bgMusic('inn');
}
stop();
}
}
movieClip 3054 {
frame 9 {
stop();
}
}
button 3058 {
on (release, keyPress '2') {
_level0.playSound('cancelSound');
_root.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3059 {
on (release, keyPress '1') {
this._parent.talk('drak_0');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3060 {
frame 1 {
stop();
}
}
button 3066 {
on (release) {
if (currentPage < totalPage) {
buildItems(currentPage + 1);
}
}
}
button 3067 {
on (release) {
if (currentPage > 1) {
buildItems(currentPage - 1);
}
}
}
movieClip 3071 {
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);
}
};
}
}
button 3072 {
on (release) {
_level0.playSound('cancelSound');
this._visible = false;
shopConfirmation._visible = false;
this._parent.menu._visible = true;
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3076 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'ALL';
_parent.buildItems();
}
}
button 3077 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'ACCESSORY';
_parent.buildItems();
}
}
button 3078 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'FOOTWEAR';
_parent.buildItems();
}
}
button 3079 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'BODY';
_parent.buildItems();
}
}
button 3080 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'HEADGEAR';
_parent.buildItems();
}
}
movieClip 3082 {
}
button 3086 {
on (release) {
_parent.nextChar();
}
}
button 3087 {
on (release) {
_parent.prevChar();
}
}
movieClip 3089 {
frame 1 {
stop();
}
}
movieClip 3103 {
frame 1 {
stop();
}
}
movieClip 3105 {
}
movieClip 3109 {
frame 1 {
function shopTalk(dialogue) {
speechField.text = dialogue;
}
}
}
button 3120 {
on (release) {
_parent.changeQuantity(1);
}
}
button 3121 {
on (release) {
_parent.changeQuantity(99);
}
}
button 3122 {
on (release) {
_parent.changeQuantity(quantity - 1);
}
}
button 3123 {
on (release) {
_parent.changeQuantity(quantity + 10);
}
}
button 3124 {
on (release) {
_parent.changeQuantity(quantity - 10);
}
}
button 3125 {
on (release) {
_parent.changeQuantity(quantity + 1);
}
}
button 3126 {
on (release) {
_level0.playSound('cancelSound');
this._visible = false;
}
}
button 3127 {
on (release) {
_parent.transact();
}
}
movieClip 3131 {
frame 1 {
shopConfirmationBacking.enabled = false;
}
}
button 3138 {
on (release) {
_parent.confirmation(this.item);
}
on (rollOver) {
_parent.describe(this.item);
_level0.playSound('select');
}
}
movieClip 3140 {
frame 1 {
function itemSelected() {
_parent.shopKeeper.shopTalk(this.item.description);
_parent.fittingRoom.selectModel(this.item);
}
}
}
movieClip 3142 {
frame 1 {
shopItems = new Array('C01AT', 'C02AT', 'C03AT', 'C04AT', 'C01AB', 'C02AB', 'C03AB', 'C04AB', 'C01AH', 'C01AF', 'C02AF', 'C03AF', 'C01AA');
}
frame 1 {
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') {
buildItemsList = shopItems;
} else {
var tempArray = new Array();
var tempArray2 = _level0.listallItems();
var i = 0;
while (i < tempArray2.length) {
if (!_level0.invenitem[tempArray2[i].getAttribute('id')].undroppable && 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 = +((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 += '(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 += tempItem.reflex + ' REFLEX\n';
}
if (tempItem.accuracy != undefined) {
tempHolder.itemStats.text += tempItem.accuracy + ' ACCURACY\n';
}
if (tempItem.technique != undefined) {
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 describe(item) {
shopKeeper.speechField.text = item.description;
}
function wear(item) {
fittingRoom[item.equip].item = item;
fittingRoom[item.equip].gotoAndStop(item.equip);
if (item.image != undefined) {
fittingRoom[item.equip].clip.gotoAndStop(item.image);
}
}
function remove(item) {
fittingRoom[item].item = undefined;
fittingRoom[item].gotoAndStop('blank');
calBoost();
}
function calBoost() {
var v1 = 0;
var v2 = 0;
v1 = int(fittingRoom.HEADGEAR.item.reflex);
v1 += int(fittingRoom.TOP.item.reflex);
v1 += int(fittingRoom.BOTTOM.item.reflex);
v1 += int(fittingRoom.FOOTWEAR.item.reflex);
v1 += int(fittingRoom.ACCESSORY.item.reflex);
v2 = int(totalChars[currentChar].getAttribute('reflex'));
addedReflex = v2 + v1;
if (v1 >= 0) {
v1 = '+' + v1;
}
addedReflex += ' (' + v1 + ')';
v1 = int(fittingRoom.HEADGEAR.item.accuracy);
v1 += int(fittingRoom.TOP.item.accuracy);
v1 += int(fittingRoom.BOTTOM.item.accuracy);
v1 += int(fittingRoom.FOOTWEAR.item.accuracy);
v1 += int(fittingRoom.ACCESSORY.item.accuracy);
v2 = int(totalChars[currentChar].getAttribute('accuracy'));
addedAccuracy = v2 + v1;
if (v1 >= 0) {
v1 = '+' + v1;
}
addedAccuracy += ' (' + v1 + ')';
v1 = int(fittingRoom.HEADGEAR.item.technique);
v1 += int(fittingRoom.TOP.item.technique);
v1 += int(fittingRoom.BOTTOM.item.technique);
v1 += int(fittingRoom.FOOTWEAR.item.technique);
v1 += int(fittingRoom.ACCESSORY.item.technique);
v2 = int(totalChars[currentChar].getAttribute('technique'));
addedTechnique = v2 + v1;
if (v1 >= 0) {
v1 = '+' + v1;
}
addedTechnique += ' (' + v1 + ')';
}
function prevChar() {
--currentChar;
if (currentChar < 0) {
currentChar = totalChars.length - 1;
}
setupFittingRoom();
}
function nextChar() {
++currentChar;
if (currentChar > totalChars.length - 1) {
currentChar = 0;
}
setupFittingRoom();
}
function setupFittingRoom() {
fittingRoom.ACCESSORY.gotoAndStop('blank');
fittingRoom.HEADGEAR.gotoAndStop('blank');
fittingRoom.TOP.gotoAndStop('blank');
fittingRoom.BOTTOM.gotoAndStop('blank');
fittingRoom.FOOTWEAR.gotoAndStop('blank');
var v3 = _root.listallItems();
var v2 = 0;
while (v2 < v3.length) {
if (totalChars[currentChar].getAttribute('id') == v3[v2].getAttribute('equip')) {
wear(_level0.invenitem[v3[v2].getAttribute('id')]);
}
++v2;
}
fittingRoom.charName.text = totalChars[currentChar].getAttribute('name');
var v4 = _level0.getEquipStats(totalChars[currentChar].getAttribute('id'), 'reflex');
fittingRoom.reflex.text = int(totalChars[currentChar].getAttribute('reflex')) + v4;
if (v4 >= 0) {
fittingRoom.reflex.text += ' (+' + v4 + ')';
} else {
fittingRoom.reflex.text += ' (' + v4 + ')';
}
v4 = _level0.getEquipStats(totalChars[currentChar].getAttribute('id'), 'accuracy');
fittingRoom.accuracy.text = int(totalChars[currentChar].getAttribute('accuracy')) + v4;
if (v4 >= 0) {
fittingRoom.accuracy.text += ' (+' + v4 + ')';
} else {
fittingRoom.accuracy.text += ' (' + v4 + ')';
}
v4 = _level0.getEquipStats(totalChars[currentChar].getAttribute('id'), 'technique');
fittingRoom.technique.text = int(totalChars[currentChar].getAttribute('technique')) + v4;
if (v4 >= 0) {
fittingRoom.technique.text += ' (+' + v4 + ')';
} else {
fittingRoom.technique.text += ' (' + v4 + ')';
}
}
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();
buildItems();
}
function confirmation(item) {
buttonsEnabled = false;
shopConfirmation._visible = true;
shopConfirmation.item = item;
changeQuantity(1);
}
function changeQuantity(newnum) {
if (newnum < 1) {
newnum = 1;
}
if (newnum > 99) {
newnum = 99;
}
var v7 = new TextFormat();
var v5 = shopConfirmation.item;
if (shopMode == 'buy') {
var v9 = _global.mainsave.getItemList('inventory');
var v3 = v9[0].getItemList('item');
var v6 = _level0.MAX_INVENTORY_SPACE - _level0.getInventorySpace();
if (v5.stack) {
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('id') == v5.id) {
v6 = 99 - parseInt(v3[v2].getAttribute('number'));
}
++v2;
}
}
if (newnum > v6) {
newnum = v6;
}
var v10 = int(v5.price) * newnum;
if (newnum < 1) {
newnum = 0;
_level0.playSound('error');
shopConfirmation.confirmTxt.text = 'Your inventory is full!';
v7.color = 5570560;
} else {
if (_level0.getCredits() >= v10) {
shopConfirmation.confirmTxt.text = 'Purchase ' + newnum + ' ' + v5.name + ' for ' + v10 + ' credits?';
v7.color = 21760;
} else {
_level0.playSound('error');
shopConfirmation.confirmTxt.text = 'You do not have enough credits to purchase ' + newnum + ' ' + v5.name + '.';
v7.color = 5570560;
}
}
shopConfirmation.quantity = newnum;
} else {
var v8 = _level0.checkNonEquippedItemNumber(v5.id);
if (newnum > v8) {
newnum = v8;
}
shopConfirmation.quantity = newnum;
var v10 = int(v5.price) * newnum;
shopConfirmation.confirmTxt.text = 'Sell ' + newnum + ' ' + v5.name + ' for ' + Math.floor(v10 / 2) + ' credits?';
v7.color = 0;
}
shopConfirmation.confirmTxt.setTextFormat(v7);
}
function transact() {
var v1 = _level0.getCredits();
shopConfirmation._visible = false;
var v3 = shopConfirmation.item;
var v2 = shopConfirmation.quantity;
var v4 = int(v3.price) * v2;
if (shopMode == 'buy') {
if (_level0.getCredits() >= v4) {
var v5 = _level0.addItem(v3.id, v2);
if (v5 == 'SUCCESS' && v2 > 0) {
v1 -= v4;
_level0.setCredits(v1);
credits.text = v1;
_level0.populate_inventory();
_level0.playSound('cash');
} else {
_level0.playSound('error');
shopConfirmation._visible = true;
shopConfirmation.confirmTxt.text = 'Your inventory is full!';
}
} else {
_level0.playSound('error');
}
} else {
_level0.playSound('cash');
v1 += Math.floor(v4 / 2);
_level0.setCredits(v1);
_level0.removeItem(v3.id, v2);
credits.text = v1;
buildItems();
_level0.populate_inventory();
}
}
}
instance buyBtn of movieClip 3071 {
onClipEvent (release) {
_level0.playSound('confirmSound');
_parent.sellBtn.hit = false;
_parent.sellBtn.gotoAndStop(1);
_parent.shopMode = 'buy';
_parent.buildItems();
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance sellBtn of movieClip 3071 {
onClipEvent (release) {
_level0.playSound('confirmSound');
_parent.buyBtn.hit = false;
_parent.buyBtn.gotoAndStop(1);
_parent.shopMode = 'sell';
_parent.buildItems();
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
}
movieClip 3151 {
frame 9 {
stop();
}
}
button 3154 {
on (release, keyPress '3') {
_level0.playSound('cancelSound');
_root.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3155 {
on (release, keyPress '2') {
_parent.shop.init();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3156 {
on (release, keyPress '1') {
this._parent.talk('elyssa_1');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3157 {
frame 1 {
stop();
}
}
movieClip 3164 {
frame 9 {
stop();
}
}
button 3166 {
on (release, keyPress '1') {
this._parent.talk('chowfun_1');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3167 {
frame 1 {
stop();
}
}
button 3172 {
on (release) {
_level0.playSound('cancelSound');
this._visible = false;
this._parent.menu._visible = true;
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3173 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'GENERATOR';
_parent.buildItems();
}
}
button 3174 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'NO';
_parent.buildItems();
}
}
button 3175 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'MODULE';
_parent.buildItems();
}
}
button 3176 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'ALL';
_parent.buildItems();
}
}
button 3177 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'SPECIAL';
_parent.buildItems();
}
}
button 3178 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'LIGHTARMS';
_parent.buildItems();
}
}
button 3179 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'MELEE';
_parent.buildItems();
}
}
button 3180 {
on (release) {
_level0.playSound('confirmSound');
_parent.category = 'ARMOR';
_parent.buildItems();
}
}
movieClip 3182 {
}
movieClip 3184 {
frame 1 {
stop();
}
}
movieClip 3202 {
frame 8 {
stop();
}
}
movieClip 3204 {
}
movieClip 3207 {
frame 1 {
stop();
}
}
movieClip 3210 {
frame 1 {
function shopTalk(dialogue) {
speechField.text = dialogue;
}
}
}
movieClip 3214 {
frame 1 {
function itemSelected() {
_parent.shopKeeper.shopTalk(this.item.description);
_parent.fittingRoom.selectModel(this.item);
}
}
}
movieClip 3215 {
frame 1 {
function shopsetup(activatedShop) {
if (activatedShop == 1) {
shopname.text = 'Ron\'s Garage';
shopKeeper.shopKeeperName.text = 'Ron';
shopKeeper.speechField.text = '*Cough* So, has anything caught your fancy?';
shopKeeper.shopkeeperportrait.gotoAndStop('ron');
shopItems = new Array('A01', 'A02', 'A03', 'W01MF', 'W02MF', 'W01MS', 'W02MS', 'W01LR', 'W01LM', 'W01SC', 'G001', 'G002', 'M001', 'M002', 'I001R', 'I002R', 'I001SB', 'I001FC', 'I002UW');
}
if (activatedShop == 2) {
shopname.text = 'Royo MAW Vending Machine';
shopKeeper.shopKeeperName.text = 'Vending Machine';
shopKeeper.speechField.text = 'PLEASE SELECT A CHOICE:';
shopKeeper.shopkeeperportrait.gotoAndStop('vendingmachine');
shopItems = new Array('A02', 'A03', 'A04', 'W03MF', 'W04MF', 'W02MS', 'W03MS', 'W01LR', 'W02LR', 'W02LM', 'W02SC', 'W01SL', 'G001', 'G002', 'G003', 'M001', 'M002', 'M003', 'I002R', 'I001SB', 'I002SB', 'I001FC', 'I001UW', 'I002UW');
}
}
function init(activatedShop) {
shopsetup(activatedShop);
_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();
calBoost();
buildItems();
}
}
frame 1 {
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') {
buildItemsList = shopItems;
} else {
var tempArray = new Array();
var tempArray2 = _level0.listallItems();
var i = 0;
while (i < tempArray2.length) {
if (_level0.invenitem[tempArray2[i].getAttribute('id')].type != 'CLOTHES') {
if (!_level0.invenitem[tempArray2[i].getAttribute('id')].undroppable && 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 = +((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 += '(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) {
tempHolder.itemStats.text += tempItem.mindamage + '-' + tempItem.maxdamage + ' DAMAGE\n';
}
if (tempItem.capacity) {
tempHolder.itemStats.text += tempItem.capacity + ' CAPACITY\n';
}
if (tempItem.addenergy) {
tempHolder.itemStats.text += tempItem.addenergy + ' ENERGY\n';
}
if (tempItem.energy) {
tempHolder.itemStats.text += tempItem.energy + ' ENERGY\n';
}
if (tempItem.hitbonus) {
tempHolder.itemStats.text += tempItem.hitbonus + ' HITBONUS\n';
}
if (tempItem.hitpoints) {
tempHolder.itemStats.text += tempItem.hitpoints + ' HITPOINTS\n';
}
if (tempItem.defense) {
tempHolder.itemStats.text += tempItem.defense + ' DEFENSE\n';
}
if (tempItem.minreflex || tempItem.minaccuracy || tempItem.mintechnique || tempItem.mincapacity) {
tempHolder.itemStats.text += 'REQ: ';
}
if (tempItem.minreflex) {
tempHolder.itemStats.text += tempItem.minreflex + ' REF ';
}
if (tempItem.minaccuracy) {
tempHolder.itemStats.text += tempItem.minaccuracy + ' ACC ';
}
if (tempItem.mintechnique) {
tempHolder.itemStats.text += tempItem.mintechnique + ' TEC ';
}
if (tempItem.mincapacity) {
tempHolder.itemStats.text += tempItem.mincapacity + ' CAP ';
}
var c = new Color(tempHolder);
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (shopMode == 'buy') {
var basestatlimitArray = new Array('reflex', 'accuracy', 'technique');
var totalstatlimitArray = new Array('capacity');
var statval = 0;
var z = 0;
while (z < basestatlimitArray.length) {
statval = _level0['char' + totalChars[currentChar].getAttribute('id')]['base' + basestatlimitArray[z]];
if (statval < tempItem['min' + basestatlimitArray[z]]) {
c = new Color(tempHolder);
c.setTransform({'ra': 100, 'ga': 30, 'ba': 30});
}
++z;
}
var z = 0;
while (z < totalstatlimitArray.length) {
statval = _level0['char' + totalChars[currentChar].getAttribute('id')][totalstatlimitArray[z]];
if (statval < tempItem['min' + totalstatlimitArray[z]]) {
c = new Color(tempHolder);
c.setTransform({'ra': 100, 'ga': 30, 'ba': 30});
}
++z;
}
var correctbot = false;
var x = 0;
while (x < tempItem.user.length) {
if (activeBot.getAttribute('botid') == tempItem.user[x]) {
correctbot = true;
break;
}
++x;
}
if (!correctbot) {
c = new Color(tempHolder);
c.setTransform({'ra': 100, 'ga': 30, 'ba': 30});
}
}
++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 describe(item) {
shopKeeper.speechField.text = item.description;
}
function wear(item) {
var v1 = item.equip;
var v3 = item.equip;
if (v1 == 'MODULE') {
if (installationBay.MODULE1.item == undefined || installationBay.MODULE1.item != undefined && installationBay.MODULE2.item != undefined) {
v1 = 'MODULE1';
} else {
v1 = 'MODULE2';
}
}
if (v1 == 'MELEE' || v1 == 'LIGHTARMS' || v1 == 'SPECIAL') {
if (installationBay.WEAPON1.item == undefined || installationBay.WEAPON1.item != undefined && installationBay.WEAPON2.item != undefined) {
v1 = 'WEAPON1';
} else {
v1 = 'WEAPON2';
}
}
installationBay[v1].item = item;
installationBay[v1].gotoAndStop(v3);
installationBay[v1].clip.gotoAndStop(item.image);
c = new Color(installationBay[v1]);
if (item.r != undefined) {
c.setTransform({'ra': item.r, 'ga': item.g, 'ba': item.b});
} else {
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
}
}
function prevChar() {
--currentChar;
if (currentChar < 0) {
currentChar = totalChars.length - 1;
}
setupInstallationBay();
buildItems();
}
function nextChar() {
++currentChar;
if (currentChar > totalChars.length - 1) {
currentChar = 0;
}
setupInstallationBay();
buildItems();
}
function setupInstallationBay() {
installationBay.MODULE1.gotoAndStop('blank');
installationBay.MODULE2.gotoAndStop('blank');
installationBay.GENERATOR.gotoAndStop('blank');
installationBay.ARMOR.gotoAndStop('blank');
installationBay.WEAPON1.gotoAndStop('blank');
installationBay.WEAPON2.gotoAndStop('blank');
var v6 = totalChars[currentChar].getItemList('bot');
var v4 = 0;
while (v4 < v6.length) {
if (v6[v4].getAttribute('active')) {
var v5 = _root.listallItems();
var v3 = 0;
while (v3 < v5.length) {
if (totalChars[currentChar].getAttribute('id') == v5[v3].getAttribute('equip')) {
wear(_level0.invenitem[v5[v3].getAttribute('id')]);
}
++v3;
}
activeBot = v6[v4];
installationBay.mawName.text = totalChars[currentChar].getAttribute('name') + '\'s ' + v6[v4].getAttribute('name');
installationBay.shopModels.gotoAndStop(v6[v4].getAttribute('botid'));
var v2 = _level0.getEquipStats(totalChars[currentChar].getAttribute('id'), 'capacity');
installationBay.capacity.text = parseFloat(v6[v4].getAttribute('capacity')) + v2;
if (v2 >= 0) {
installationBay.capacity.text += ' (+' + v2 + ')';
} else {
installationBay.capacity.text += ' (' + v2 + ')';
}
v2 = _level0.getEquipStats(totalChars[currentChar].getAttribute('id'), 'addenergy');
installationBay.energy.text = parseFloat(v6[v4].getAttribute('energy')) + v2;
if (v2 >= 0) {
installationBay.energy.text += ' (+' + v2 + ')';
} else {
installationBay.energy.text += ' (' + v2 + ')';
}
v2 = _level0.getEquipStats(totalChars[currentChar].getAttribute('id'), 'defense');
installationBay.defense.text = parseFloat(v6[v4].getAttribute('defense')) + v2;
if (v2 >= 0) {
installationBay.defense.text += ' (+' + v2 + ')';
} else {
installationBay.defense.text += ' (' + v2 + ')';
}
}
++v4;
}
}
function confirmation(item) {
buttonsEnabled = false;
shopConfirmation._visible = true;
shopConfirmation.item = item;
changeQuantity(1);
}
function changeQuantity(newnum) {
if (newnum < 1) {
newnum = 1;
}
if (newnum > 99) {
newnum = 99;
}
var v7 = new TextFormat();
var v5 = shopConfirmation.item;
if (shopMode == 'buy') {
var v9 = _global.mainsave.getItemList('inventory');
var v3 = v9[0].getItemList('item');
var v6 = _level0.MAX_INVENTORY_SPACE - _level0.getInventorySpace();
if (v5.stack) {
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('id') == v5.id) {
v6 = 99 - parseInt(v3[v2].getAttribute('number'));
}
++v2;
}
}
if (newnum > v6) {
newnum = v6;
}
var v10 = int(v5.price) * newnum;
if (newnum < 1) {
newnum = 0;
_level0.playSound('error');
shopConfirmation.confirmTxt.text = 'Your inventory is full!';
v7.color = 5570560;
} else {
if (_level0.getCredits() >= v10) {
shopConfirmation.confirmTxt.text = 'Purchase ' + newnum + ' ' + v5.name + ' for ' + v10 + ' credits?';
v7.color = 21760;
} else {
_level0.playSound('error');
shopConfirmation.confirmTxt.text = 'You do not have enough credits to purchase ' + newnum + ' ' + v5.name + '.';
v7.color = 5570560;
}
}
shopConfirmation.quantity = newnum;
} else {
var v8 = _level0.checkNonEquippedItemNumber(v5.id);
if (newnum > v8) {
newnum = v8;
}
shopConfirmation.quantity = newnum;
var v10 = int(v5.price) * newnum;
shopConfirmation.confirmTxt.text = 'Sell ' + newnum + ' ' + v5.name + ' for ' + Math.floor(v10 / 2) + ' credits?';
v7.color = 0;
}
shopConfirmation.confirmTxt.setTextFormat(v7);
}
function transact() {
var v1 = _level0.getCredits();
shopConfirmation._visible = false;
var v3 = shopConfirmation.item;
var v2 = shopConfirmation.quantity;
var v4 = int(v3.price) * v2;
if (shopMode == 'buy') {
if (_level0.getCredits() >= v4) {
var v5 = _level0.addItem(v3.id, v2);
if (v5 == 'SUCCESS' && v2 > 0) {
v1 -= v4;
_level0.setCredits(v1);
credits.text = v1;
_level0.populate_inventory();
_level0.playSound('cash');
} else {
_level0.playSound('error');
shopConfirmation._visible = true;
shopConfirmation.confirmTxt.text = 'Your inventory is full!';
}
} else {
_level0.playSound('error');
}
} else {
_level0.playSound('cash');
v1 += Math.floor(v4 / 2);
_level0.setCredits(v1);
_level0.removeItem(v3.id, v2);
credits.text = v1;
buildItems();
_level0.populate_inventory();
}
}
}
instance buyBtn of movieClip 3071 {
onClipEvent (release) {
_level0.playSound('confirmSound');
_parent.sellBtn.hit = false;
_parent.sellBtn.gotoAndStop(1);
_parent.shopMode = 'buy';
_parent.buildItems();
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance sellBtn of movieClip 3071 {
onClipEvent (release) {
_level0.playSound('confirmSound');
_parent.buyBtn.hit = false;
_parent.buyBtn.gotoAndStop(1);
_parent.shopMode = 'sell';
_parent.buildItems();
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
}
button 3219 {
on (release) {
if (_level0.getCredits() >= 100) {
_level0.setCredits(_level0.getCredits() - 100);
credits.text = _level0.getCredits();
_level0.playSound('cash');
shopKeeper.speechField.text = 'Paint job completed! (-100 credits)';
var charlist = _global.mainsave.getItemList('character');
var i = 0;
while (i < 3) {
var charid = charlist[i].getAttribute('id');
if (charid == charArray[currchar].getAttribute('id')) {
var bot = charlist[i].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', maw.innerclip.part1.r);
parts[j].setAttribute('colorg', maw.innerclip.part1.g);
parts[j].setAttribute('colorb', maw.innerclip.part1.b);
}
if (parts[j].getAttribute('name') == 'part2') {
parts[j].setAttribute('colorr', maw.innerclip.part2.r);
parts[j].setAttribute('colorg', maw.innerclip.part2.g);
parts[j].setAttribute('colorb', maw.innerclip.part2.b);
}
if (parts[j].getAttribute('name') == 'part3') {
parts[j].setAttribute('colorr', maw.innerclip.part3.r);
parts[j].setAttribute('colorg', maw.innerclip.part3.g);
parts[j].setAttribute('colorb', maw.innerclip.part3.b);
}
++j;
}
if (charid == 'A001') {
_global.part1r = maw.innerclip.part1.r;
_global.part1g = maw.innerclip.part1.g;
_global.part1b = maw.innerclip.part1.b;
_global.part2r = maw.innerclip.part2.r;
_global.part2g = maw.innerclip.part2.g;
_global.part2b = maw.innerclip.part2.b;
_global.part3r = maw.innerclip.part3.r;
_global.part3g = maw.innerclip.part3.g;
_global.part3b = maw.innerclip.part3.b;
}
}
++i;
}
} else {
_level0.playSound('error');
shopKeeper.speechField.text = 'Not enough credits!';
}
}
}
button 3221 {
on (release) {
_level0.playSound('cancelSound');
this._visible = false;
_parent.menu._visible = true;
}
}
button 3226 {
on (release) {
_level0.playSound('confirmSound');
++currchar;
if (currchar >= charArray.length) {
currchar = 0;
}
setChar();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3227 {
on (release) {
_level0.playSound('confirmSound');
--currchar;
if (currchar < 0) {
currchar = charArray.length - 1;
}
setChar();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3233 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 0;
maw.innerclip.part1.g = 35;
maw.innerclip.part1.b = 50;
maw.innerclip.part2.r = 0;
maw.innerclip.part2.g = 80;
maw.innerclip.part2.b = 80;
maw.innerclip.part3.r = 150;
maw.innerclip.part3.g = 150;
maw.innerclip.part3.b = 150;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3235 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 150;
maw.innerclip.part1.g = 120;
maw.innerclip.part1.b = 30;
maw.innerclip.part2.r = 125;
maw.innerclip.part2.g = 120;
maw.innerclip.part2.b = 120;
maw.innerclip.part3.r = 35;
maw.innerclip.part3.g = 40;
maw.innerclip.part3.b = 110;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3237 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 140;
maw.innerclip.part1.g = 100;
maw.innerclip.part1.b = 60;
maw.innerclip.part2.r = 150;
maw.innerclip.part2.g = 90;
maw.innerclip.part2.b = 10;
maw.innerclip.part3.r = 90;
maw.innerclip.part3.g = 45;
maw.innerclip.part3.b = 0;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3239 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 30;
maw.innerclip.part1.g = 70;
maw.innerclip.part1.b = 30;
maw.innerclip.part2.r = 20;
maw.innerclip.part2.g = 45;
maw.innerclip.part2.b = 20;
maw.innerclip.part3.r = 100;
maw.innerclip.part3.g = 100;
maw.innerclip.part3.b = 70;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3241 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 125;
maw.innerclip.part1.g = 40;
maw.innerclip.part1.b = 60;
maw.innerclip.part2.r = 95;
maw.innerclip.part2.g = 15;
maw.innerclip.part2.b = 40;
maw.innerclip.part3.r = 125;
maw.innerclip.part3.g = 40;
maw.innerclip.part3.b = 105;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3243 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 80;
maw.innerclip.part1.g = 110;
maw.innerclip.part1.b = 150;
maw.innerclip.part2.r = 150;
maw.innerclip.part2.g = 150;
maw.innerclip.part2.b = 150;
maw.innerclip.part3.r = 130;
maw.innerclip.part3.g = 140;
maw.innerclip.part3.b = 140;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3245 {
on (release) {
_level0.playSound('confirmSound');
maw.innerclip.part1.r = 30;
maw.innerclip.part1.g = 30;
maw.innerclip.part1.b = 30;
maw.innerclip.part2.r = 38;
maw.innerclip.part2.g = 38;
maw.innerclip.part2.b = 38;
maw.innerclip.part3.r = 100;
maw.innerclip.part3.g = 0;
maw.innerclip.part3.b = 0;
colourAll();
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3247 {
}
button 3249 {
on (release) {
_level0.playSound('confirmSound');
selectedPart = 'part1';
rSlider._x = sliderX + maw.innerclip[selectedPart].r;
gSlider._x = sliderX + maw.innerclip[selectedPart].g;
bSlider._x = sliderX + maw.innerclip[selectedPart].b;
c = new Color(part1_btn);
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
c = new Color(part2_btn);
c.setTransform({'ra': 50, 'ga': 50, 'ba': 50});
c = new Color(part3_btn);
c.setTransform({'ra': 50, 'ga': 50, 'ba': 50});
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3251 {
on (release) {
_level0.playSound('confirmSound');
selectedPart = 'part2';
rSlider._x = sliderX + maw.innerclip[selectedPart].r;
gSlider._x = sliderX + maw.innerclip[selectedPart].g;
bSlider._x = sliderX + maw.innerclip[selectedPart].b;
c = new Color(part2_btn);
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
c = new Color(part1_btn);
c.setTransform({'ra': 50, 'ga': 50, 'ba': 50});
c = new Color(part3_btn);
c.setTransform({'ra': 50, 'ga': 50, 'ba': 50});
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3253 {
on (release) {
_level0.playSound('confirmSound');
selectedPart = 'part3';
rSlider._x = sliderX + maw.innerclip[selectedPart].r;
gSlider._x = sliderX + maw.innerclip[selectedPart].g;
bSlider._x = sliderX + maw.innerclip[selectedPart].b;
c = new Color(part3_btn);
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
c = new Color(part1_btn);
c.setTransform({'ra': 50, 'ga': 50, 'ba': 50});
c = new Color(part2_btn);
c.setTransform({'ra': 50, 'ga': 50, 'ba': 50});
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3259 {
}
movieClip 3262 {
}
movieClip 3265 {
}
movieClip 3266 {
}
movieClip 3271 {
}
movieClip 3274 {
}
movieClip 3277 {
}
movieClip 3278 {
}
movieClip 3283 {
}
movieClip 3286 {
}
movieClip 3289 {
}
movieClip 3290 {
}
movieClip 3291 {
frame 1 {
stop();
}
}
movieClip 3293 {
frame 1 {
function paintshopsetup(activatedShop) {
if (activatedShop == 1) {
shopKeeper.shopKeeperName.text = 'Ron';
shopKeeper.speechField.text = 'Hmm.. so you want to repaint your MAW?';
shopKeeper.shopkeeperportrait.gotoAndStop('ron');
}
if (activatedShop == 2) {
shopKeeper.shopKeeperName.text = 'Vending Machine';
shopKeeper.speechField.text = 'PLEASE CHOOSE YOUR PAINT SCHEME:';
shopKeeper.shopkeeperportrait.gotoAndStop('vendingmachine');
}
}
function colourAll() {
var v1 = new Color(maw.innerclip.part1);
v1.setTransform({'ra': maw.innerclip.part1.r, 'ga': maw.innerclip.part1.g, 'ba': maw.innerclip.part1.b});
v1 = new Color(maw.innerclip.part2);
v1.setTransform({'ra': maw.innerclip.part2.r, 'ga': maw.innerclip.part2.g, 'ba': maw.innerclip.part2.b});
v1 = new Color(maw.innerclip.part3);
v1.setTransform({'ra': maw.innerclip.part3.r, 'ga': maw.innerclip.part3.g, 'ba': maw.innerclip.part3.b});
rSlider._x = sliderX + maw.innerclip[selectedPart].r;
gSlider._x = sliderX + maw.innerclip[selectedPart].g;
bSlider._x = sliderX + maw.innerclip[selectedPart].b;
}
function init(activatedShop) {
selectedPart = 'part1';
paintshopsetup(activatedShop);
playing = false;
credits.text = _level0.getCredits();
charArray = _level0.getActiveCharacters();
currchar = 0;
setChar();
}
function setChar() {
var v11 = _global.mainsave.getItemList('character');
var v10 = 0;
while (v10 < v11.length) {
if (v11[v10].getAttribute('id') == charArray[currchar].getAttribute('id')) {
var v6 = v11[v10].getItemList('bot');
var v5 = 0;
while (v5 < v6.length) {
if (v6[v5].getAttribute('active')) {
maw.gotoAndStop(v6[v5].getAttribute('botid'));
mawname.text = v11[v10].getAttribute('name') + '\'s ' + v6[v5].getAttribute('name');
var v4 = v6[v5].getItemList('parts');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].getAttribute('name');
v3 = v3.substr(-1, 1);
var v8 = v4[v2].getAttribute('colorr');
var v7 = v4[v2].getAttribute('colorb');
var v9 = v4[v2].getAttribute('colorg');
maw.innerclip['part' + v3].r = parseInt(v8);
maw.innerclip['part' + v3].g = parseInt(v9);
maw.innerclip['part' + v3].b = parseInt(v7);
++v2;
}
colourAll();
return true;
}
++v5;
}
}
++v10;
}
return false;
}
sliderX = 369;
onEnterFrame = function () {
var v1 = new Color(maw.innerclip[selectedPart]);
v1.setTransform({'ra': maw.innerclip[selectedPart].r, 'ga': maw.innerclip[selectedPart].g, 'ba': maw.innerclip[selectedPart].b});
};
}
instance bSlider of movieClip 3247 {
onClipEvent (press) {
_parent.mover = true;
this.startDrag(false, _parent.sliderX, _y, _parent.sliderX + 150, _y);
}
onClipEvent (release) {
_parent.mover = false;
stopDrag();
}
onClipEvent (releaseOutside) {
_parent.mover = false;
stopDrag();
}
onClipEvent (mouseMove) {
if (_parent.mover) {
_parent.maw.innerclip[_parent.selectedPart].b = _x - _parent.sliderX;
}
}
}
instance gSlider of movieClip 3247 {
onClipEvent (press) {
_parent.mover = true;
this.startDrag(false, _parent.sliderX, _y, _parent.sliderX + 150, _y);
}
onClipEvent (release) {
_parent.mover = false;
stopDrag();
}
onClipEvent (releaseOutside) {
_parent.mover = false;
stopDrag();
}
onClipEvent (mouseMove) {
if (_parent.mover) {
_parent.maw.innerclip[_parent.selectedPart].g = _x - _parent.sliderX;
}
}
}
instance rSlider of movieClip 3247 {
onClipEvent (press) {
_parent.mover = true;
this.startDrag(false, _parent.sliderX, _y, _parent.sliderX + 150, _y);
}
onClipEvent (release) {
_parent.mover = false;
stopDrag();
}
onClipEvent (releaseOutside) {
_parent.mover = false;
stopDrag();
}
onClipEvent (mouseMove) {
if (_parent.mover) {
_parent.maw.innerclip[_parent.selectedPart].r = this._x - _parent.sliderX;
}
}
}
}
button 3312 {
on (release) {
augment();
}
on (rollOver) {
_level0.playSound('select');
setChar();
}
}
button 3313 {
on (release) {
_level0.playSound('cancelSound');
this._visible = false;
this._parent.menu._visible = true;
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3315 {
frame 1 {
function augmentshopsetup(activatedShop) {
if (activatedShop == 1) {
itemcode = 'I000Q';
itemname = _level0.invenitem[itemcode].name;
augmentfactor = int(_level0.invenitem[itemcode].augment);
itemneeded = 1;
augmentmax = 400;
itemnametxt.text = itemname + '(s)';
shopKeeper.shopKeeperName.text = 'Ron';
shopKeeper.speechField.text = 'Soo... you want to strengthen your MAW?';
shopKeeper.shopkeeperportrait.gotoAndStop('ron');
}
if (activatedShop == 2) {
itemcode = 'I002Q';
itemname = _level0.invenitem[itemcode].name;
augmentfactor = int(_level0.invenitem[itemcode].augment);
itemneeded = 1;
augmentmax = 500;
itemnametxt.text = itemname + '(s)';
shopKeeper.shopKeeperName.text = 'Vending Machine';
shopKeeper.speechField.text = 'PLEASE SELECT MAW TO STRENGTHEN:';
shopKeeper.shopkeeperportrait.gotoAndStop('vendingmachine');
}
}
function init(activatedShop) {
stop();
augmentshopsetup(activatedShop);
_parent.menu._visible = false;
this._visible = true;
charArray = _level0.getActiveCharacters();
creditstxt.text = _level0.getCredits();
itemcounttxt.text = _level0.checkItemNumber(itemcode);
currchar = 0;
setChar();
}
function setChar() {
var v12 = _global.mainsave.getItemList('character');
var v10 = 0;
while (v10 < v12.length) {
if (v12[v10].getAttribute('id') == charArray[currchar].getAttribute('id')) {
var v3 = v12[v10].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('active')) {
var v5 = int(v3[v2].getAttribute('hp'));
var v9 = _level0.mawslist[v3[v2].getAttribute('botid')].hp;
var v7 = Math.ceil(v5 / 4);
var v4 = true;
mawname.text = v12[v10].getAttribute('name') + '\'s ' + v3[v2].getAttribute('name');
hptext.text = v3[v2].getAttribute('hp');
defensetext.text = v3[v2].getAttribute('defense');
energytext.text = v3[v2].getAttribute('energy');
capacitytext.text = v3[v2].getAttribute('capacity');
maw.gotoAndStop(v3[v2].getAttribute('botid'));
shopKeeper.speechField.text = '';
if (v7 > _level.getCredits()) {
shopKeeper.speechField.text += 'You do not have sufficient credits. (Need: ' + v7 + ')\n';
v4 = false;
} else {
shopKeeper.speechField.text += 'You have enough credits. (Credits needed: ' + v7 + ' - Ok)\n';
}
var v11 = _level0.checkItemNumber(itemcode);
if (!v11) {
shopKeeper.speechField.text += 'You do not have sufficient ' + itemname + '. (Need: ' + itemneeded + ')\n';
v4 = false;
} else {
shopKeeper.speechField.text += 'You have enough ' + itemname + ' (Needed: ' + itemneeded + ' - Ok)\n';
}
if (v5 - v9 >= augmentmax) {
shopKeeper.speechField.text = 'Sorry, our garage cannot augment this MAW any further.';
v4 = false;
}
var v8 = new Color(augmentbtn);
var v6 = new TextFormat();
if (v4) {
v8.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
v6.color = 16777215;
} else {
v8.setTransform({'ra': 40, 'ga': 20, 'ba': 20});
v6.color = 16733525;
}
shopKeeper.speechField.setTextFormat(v6);
return true;
}
++v2;
}
}
++v10;
}
return false;
}
function augment() {
var v10 = _global.mainsave.getItemList('character');
var v7 = 0;
while (v7 < v10.length) {
if (v10[v7].getAttribute('id') == charArray[currchar].getAttribute('id')) {
var v3 = v10[v7].getItemList('bot');
var v2 = 0;
while (v2 < v3.length) {
if (v3[v2].getAttribute('active')) {
var v5 = int(v3[v2].getAttribute('hp'));
var v9 = _level0.mawslist[v3[v2].getAttribute('botid')].hp;
var v4 = Math.ceil(v5 / 4);
mawname.text = v10[v7].getAttribute('name') + '\'s ' + v3[v2].getAttribute('name');
shopKeeper.speechField.text = '';
if (v4 > _level.getCredits()) {
shopKeeper.speechField.text += 'You do not have sufficient credits. (Need: ' + v4 + ')\n';
} else {
shopKeeper.speechField.text += 'You have enough credits. (Credits needed: ' + v4 + ' - Ok)\n';
}
var v6 = _level0.checkItemNumber(itemcode);
if (!v6) {
shopKeeper.speechField.text += 'You do not have sufficient ' + itemname + '. (Need: ' + itemneeded + ')\n';
} else {
shopKeeper.speechField.text += 'You have enough ' + itemname + ' (Needed: ' + itemneeded + ' - Ok)\n';
}
if (v5 - v9 >= augmentmax) {
shopKeeper.speechField.text = 'Sorry, our garage cannot augment this MAW any further.';
}
if (v4 <= _level.getCredits() && v6 && v5 < augmentmax) {
_level0.playSound('cash');
_level0.setCredits(_level0.getCredits() - v4);
_level0.removeItem(itemcode, itemneeded);
shopKeeper.speechField.text = mawname.text + ' augmented successfully!\n(' + v4 + ' credits deducted)\n(' + itemneeded + ' ' + itemname + '(s) removed)';
var v8 = int(v3[v2].getAttribute('hp')) + augmentfactor;
v3[v2].setAttribute('hp', v8);
v3[v2].setAttribute('currhp', v8);
creditstxt.text = _level0.getCredits();
itemcounttxt.text = _level0.checkItemNumber(itemcode);
hptext.text = v3[v2].getAttribute('hp');
defensetext.text = v3[v2].getAttribute('defense');
energytext.text = v3[v2].getAttribute('energy');
capacitytext.text = v3[v2].getAttribute('capacity');
_level0.populate_inventory();
return true;
} else {
_level0.playSound('error');
return false;
}
}
++v2;
}
}
++v7;
}
_level0.playSound('error');
return false;
}
}
}
movieClip 3321 {
frame 9 {
stop();
}
}
button 3323 {
on (release, keyPress '6') {
_level0.resetmap();
_level0.playSound('cancelSound');
_root.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3325 {
on (release, keyPress '5') {
this._parent.augmentMAW.init(1);
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3327 {
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');
}
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3332 {
on (release, keyPress '3') {
_parent.shop.init(1);
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3334 {
on (release, keyPress '2') {
_parent.mawCustomiser._visible = true;
_parent.mawCustomiser.init(1);
this._visible = false;
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3335 {
on (release, keyPress '1') {
this._parent.talk('ron_2');
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3339 {
on (release, keyPress '1') {
_level0.playSound('cancelSound');
_root.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3340 {
frame 1 {
stop();
if (_level0.quest_18.prog == 0 && _level0.checkItemNumber('I012Q') > 0) {
gotoAndStop('a2');
} else {
if (_level0.quest_18.prog == 99) {
gotoAndStop('a3');
} else {
gotoAndStop('a1');
}
}
}
frame 2 {
stop();
}
frame 3 {
stop();
this._parent.talk('lucille_1');
_level0.worldMenu._visible = false;
}
frame 4 {
stop();
}
}
movieClip 3347 {
frame 9 {
stop();
}
}
button 3349 {
on (release, keyPress '5') {
_level0.resetmap();
_level0.playSound('cancelSound');
_root.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3351 {
on (release, keyPress '4') {
this._parent.augmentMAW.init(2);
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3353 {
on (release, keyPress '3') {
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');
}
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3356 {
on (release, keyPress '2') {
_parent.shop.init(2);
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3358 {
on (release, keyPress '1') {
_parent.mawCustomiser._visible = true;
_parent.mawCustomiser.init(2);
this._visible = false;
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3359 {
frame 1 {
stop();
}
}
movieClip 3368 {
frame 9 {
stop();
}
}
button 3370 {
on (release, keyPress '2') {
_level0.resetmap();
_root.exitShop();
_level0.playSound('cancelSound');
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3371 {
on (release, keyPress '1') {
this._parent.talk('sleep_1');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3372 {
frame 1 {
stop();
}
}
movieClip 3378 {
frame 9 {
stop();
}
}
button 3379 {
on (release, keyPress '1') {
this._parent.talk('sleep_2');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3380 {
frame 1 {
stop();
}
}
movieClip 3385 {
frame 9 {
stop();
}
}
button 3386 {
on (release, keyPress '1') {
this._parent.talk('sleep_3');
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3387 {
frame 1 {
stop();
}
}
movieClip 3392 {
frame 9 {
stop();
}
}
button 3393 {
on (release, keyPress '3') {
_level0.playSound('cancelSound');
_level0.savebox._visible = false;
_level0.exitShop();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3395 {
on (release, keyPress '2') {
this._visible = false;
_level0.preparesave();
}
on (rollOver) {
_level0.playSound('select');
}
}
button 3398 {
on (release, keyPress '1') {
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');
}
}
on (rollOver) {
_level0.playSound('select');
}
}
movieClip 3399 {
}
movieClip 3400 {
frame 1 {
function talk(person) {
menu._visible = false;
_level0.talkingSystem._visible = true;
_level0.talkingSystem.chatActivate(_level0.talkingSystem[person]);
}
}
frame 1 {
stop();
}
frame 2 {
}
frame 18 {
shop._visible = false;
}
frame 27 {
shop._visible = false;
}
frame 38 {
shop._visible = false;
mawCustomiser._visible = false;
augmentMAW._visible = false;
menu.gotoAndStop('a0');
}
frame 46 {
shop._visible = false;
mawCustomiser._visible = false;
augmentMAW._visible = false;
}
}
movieClip 3406 {
}
button 3407 {
on (release) {
this._visible = false;
}
}
movieClip 3410 {
frame 1 {
stop();
}
instance closebutton of movieClip 464 {
onClipEvent (press) {
_parent._visible = false;
}
}
}
movieClip 3414 {
}
movieClip 3415 {
}
movieClip 3417 {
}
movieClip 3421 {
}
movieClip 3423 {
frame 50 {
stop();
_parent.animationcomplete = true;
}
}
movieClip 3429 {
}
movieClip 3437 {
}
movieClip 3440 {
}
movieClip 3443 {
}
movieClip 3446 {
}
movieClip 3447 {
frame 1 {
stop();
}
}
movieClip 3463 {
}
movieClip 3465 {
frame 1 {
function init() {
_level0.bgMusic('combatwin', true);
var v2 = 1;
while (v2 < 4) {
this['name' + v2]._visible = false;
this['xp' + v2]._visible = false;
this['addxp' + v2]._visible = false;
this['winportrait' + v2]._visible = false;
++v2;
}
creditMsg._visible = false;
credits._visible = false;
addcredit._visible = false;
fame._visible = false;
addfame._visible = false;
fameMsg._visible = false;
itemMsg._visible = false;
if (_alpha == 100) {
clicked();
}
}
function clicked() {
if (creditMsg._visible == false and itemMsg._visible == false) {
setXP();
setCredit();
setFame();
setItem();
setQuest();
_parent._parent.bigFatReset();
} else {
if (creditMsg._visible == true and itemMsg._visible == true) {
clearInterval(creditI);
clearInterval(fameI);
clearInterval(xp1I);
clearInterval(xp2I);
clearInterval(xp3I);
_level0.endCombat(_parent._parent.chatter_win);
}
}
}
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 setFame() {
var v2 = _parent._parent.total_hits + _parent._parent.total_crit;
if (!_level0.getFame()) {
fame.text = 0;
} else {
fame.text = _level0.getFame();
}
addfame.text = '+0';
fame._visible = true;
addfame._visible = true;
fameMsg._visible = true;
_level0.setFame(_level0.getFame() + v2);
fameI = setInterval(fameUp, 20, int(fame.text), v2);
}
function setItem() {
_parent._parent.dropItems();
itemMsg.text = 'Items obtained: ' + _parent._parent.total_item;
itemMsg._visible = true;
}
function setQuest() {
var v3 = _parent._parent.myQuest.id;
var v2 = _parent._parent.myQuest.prog;
_level0['quest_' + v3].prog = v2;
}
function setXP() {
var v9 = 0;
var v4 = 1;
while (v4 <= _parent._parent.heroCount) {
if (!_parent._parent['hero' + v4].dying) {
++v9;
}
++v4;
}
var v8 = Math.ceil(_parent._parent.total_xp / 1);
var v3 = 1;
while (v3 <= _parent._parent.heroCount) {
this['name' + v3].text = _parent._parent['hero' + v3].hName + '\'s XP:';
this['xp' + v3].text = _parent._parent['hero' + v3].xp;
this['addxp' + v3].text = '+0';
this['name' + v3]._visible = true;
this['winportrait' + v3]._visible = true;
this['winportrait' + v3].gotoAndStop(_parent._parent['hero' + v3].portraitid);
this['xp' + v3]._visible = true;
var v6 = _parent._parent['hero' + v3].id;
if (!_parent._parent['hero' + v3].dying) {
var v7 = _parent._parent['hero' + v3].xp + v8;
_level0.setCharacterAttr(v6, 'xp', v7);
}
var v5 = _parent._parent['hero' + v3].currHP;
if (v5 < 0) {
v5 = 0;
}
_level0.setCharacterAttr(v6, 'currhp', v5);
++v3;
}
if (!_parent._parent.hero1.dying) {
xp1I = setInterval(xp1Up, 20, _parent._parent.hero1.xp, v8);
} else {
if (_parent._parent.heroCount >= 2 and !_parent._parent.hero2.dying) {
xp2I = setInterval(xp2Up, 20, _parent._parent.hero2.xp, v8);
} else {
if (_parent._parent.heroCount == 3 and !_parent._parent.hero3.dying) {
xp3I = setInterval(xp3Up, 20, _parent._parent.hero3.xp, v8);
}
}
}
}
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 {
_level0.playSound('talkSound');
if (!addxp1._visible) {
addxp1._visible = true;
}
var v3 = Math.max(1, Math.round(extraXP / 50));
addxp1.text = '+' + (int(addxp1.text.substr(1)) + v3);
xp1.text = int(xp1.text) + v3;
}
}
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 {
_level0.playSound('talkSound');
if (!addxp2._visible) {
addxp2._visible = true;
}
var v3 = Math.max(1, Math.round(extraXP / 50));
addxp2.text = '+' + (int(addxp2.text.substr(1)) + v3);
xp2.text = int(xp2.text) + v3;
}
}
function xp3Up(myXP, extraXP) {
if (int(xp3.text) >= myXP + extraXP) {
xp3.text = myXP + extraXP;
addxp3.text = '+' + extraXP;
clearInterval(xp3I);
} else {
_level0.playSound('talkSound');
if (!addxp3._visible) {
addxp3._visible = true;
}
var v2 = Math.max(1, Math.round(extraXP / 50));
addxp3.text = '+' + (int(addxp3.text.substr(1)) + v2);
xp3.text = int(xp3.text) + v2;
}
}
function creditUp(myCred, extraCred) {
if (int(credits.text) >= myCred + extraCred) {
credits.text = myCred + extraCred;
addcredit.text = '+' + extraCred;
clearInterval(creditI);
} else {
_level0.playSound('talkSound');
var v2 = Math.max(1, Math.round(extraCred / 50));
addcredit.text = '+' + (int(addcredit.text.substr(1)) + v2);
credits.text = int(credits.text) + v2;
}
}
function fameUp(myCred, extraCred) {
if (int(fame.text) >= myCred + extraCred) {
fame.text = myCred + extraCred;
addfame.text = '+' + extraCred;
clearInterval(fameI);
} else {
_level0.playSound('talkSound');
var v2 = Math.max(1, Math.round(extraCred / 50));
addfame.text = '+' + (int(addfame.text.substr(1)) + v2);
fame.text = int(fame.text) + v2;
}
}
stop();
}
frame 1 {
init();
}
}
movieClip 3466 {
frame 1 {
stop();
}
frame 71 {
stop();
}
instance of movieClip 3429 {
onClipEvent (release, keyPress '<Space>') {
_parent._parent.bigFatReset();
_level0.quit();
}
}
frame 142 {
stop();
}
instance winScreen of movieClip 3465 {
onClipEvent (release, keyPress 'c') {
clicked();
}
}
frame 212 {
_parent.bigFatReset();
_level0.endCombat(_parent.chatter_leave);
}
instance of movieClip 3463 {
onClipEvent (release) {
_parent._parent.bigFatReset();
_level0.quit();
}
}
}
button 3472 {
on (press) {
if (this._alpha == 100) {
this._alpha = 50;
this.shadow._visible = false;
} else {
this._alpha = 100;
this.shadow._visible = true;
}
}
}
movieClip 3475 {
frame 1 {
stop();
}
}
movieClip 3480 {
}
movieClip 3483 {
}
movieClip 3486 {
}
movieClip 3489 {
}
movieClip 3492 {
}
movieClip 3494 {
}
movieClip 3498 {
frame 1 {
var count = 0;
onEnterFrame = function () {
++count;
if (count == 10) {
mvtxt.text = Math.floor(Math.random() * 10000000);
count = 0;
}
};
}
}
movieClip 3502 {
}
movieClip 3503 {
}
movieClip 3505 {
}
movieClip 3506 {
}
movieClip 3508 {
}
movieClip 3510 {
}
movieClip 3512 {
}
movieClip 3513 {
instance of movieClip 3475 {
onClipEvent (release, keyPress 'c') {
_level0.playSound('cancelSound');
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';
}
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
}
movieClip 3517 {
}
movieClip 3520 {
}
movieClip 3523 {
}
movieClip 3524 {
instance item_forward of movieClip 3520 {
onClipEvent (release, keyPress 'w') {
if (_parent._parent.myInventory and _parent._parent.myInventory.length > 0) {
_level0.playSound('select');
++_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 item_back of movieClip 3523 {
onClipEvent (release, keyPress 'q') {
if (_parent._parent.myInventory and _parent._parent.myInventory.length > 0) {
_level0.playSound('select');
--_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;
}
}
}
}
movieClip 3529 {
frame 1 {
stop();
}
}
movieClip 3534 {
}
movieClip 3535 {
frame 1 {
stop();
}
frame 30 {
gotoAndStop(1);
}
}
movieClip 3539 {
frame 1 {
stop();
}
frame 1 {
function clickMe() {
if (_parent._parent.myState == 'heroSelect' or _parent._parent.myState == 'menuSelect') {
_level0.playSound('confirmSound');
_parent.weapIndex = _name.substr(-1, 1);
_parent.highlightSlots();
_parent._parent.changeWeap(_parent._name.substr(-1, 1), _parent.weapIndex);
}
}
}
frame 7 {
stop();
}
}
movieClip 3540 {
frame 1 {
function highlightSlots() {
var v2 = 0;
while (v2 < 3) {
this['weapSlot' + v2].gotoAndStop('off');
++v2;
}
this['weapSlot' + weapIndex].gotoAndStop('on');
}
function init() {
var v4 = _parent['hero' + _name.substr(-1, 1)].id;
weapIndex = _level0['char' + v4].lastWeap;
if (!weapIndex) {
weapIndex = 0;
}
highlightSlots();
var v3 = 0;
while (v3 < _parent['hero' + _name.substr(-1, 1)].weapSet.length) {
if (_parent['hero' + _name.substr(-1, 1)].weapSet[v3] != 'None') {
this['weapSlot' + v3].wid = _parent['hero' + _name.substr(-1, 1)].weapSet[v3];
this['weapSlot' + v3].weapName.text = _parent['weapon_' + this['weapSlot' + v3].wid].wName;
}
++v3;
}
_parent.changeWeap(_name.substr(-1, 1), weapIndex);
}
}
frame 1 {
init();
}
instance weapSlot2 of movieClip 3539 {
onClipEvent (release, keyPress '3') {
clickMe();
}
}
instance weapSlot1 of movieClip 3539 {
onClipEvent (release, keyPress '2') {
clickMe();
}
}
instance weapSlot0 of movieClip 3539 {
onClipEvent (release, keyPress '1') {
clickMe();
}
}
}
movieClip 3544 {
frame 1 {
stop();
}
}
movieClip 3547 {
frame 1 {
stop();
}
}
movieClip 3550 {
frame 1 {
stop();
}
}
movieClip 3553 {
frame 1 {
stop();
}
}
movieClip 3556 {
frame 1 {
stop();
}
}
movieClip 3559 {
frame 1 {
stop();
}
}
movieClip 3562 {
frame 1 {
stop();
}
}
movieClip 3565 {
frame 1 {
stop();
}
}
movieClip 3568 {
frame 1 {
stop();
}
}
movieClip 3571 {
frame 1 {
stop();
}
}
movieClip 3572 {
frame 1 {
stop();
}
frame 11 {
stop();
}
instance of movieClip 3544 {
onClipEvent (release, keyPress 'f') {
_level0.playSound('confirmSound');
_parent._parent._parent['hero' + _parent._parent.myIndex].selfRepair(_parent.minVal, _parent.maxVal);
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 22 {
stop();
}
instance of movieClip 3547 {
onClipEvent (release, keyPress 'r') {
_level0.playSound('confirmSound');
_parent._parent._parent.heal(_parent.minVal, _parent.maxVal);
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 32 {
stop();
}
instance of movieClip 3550 {
onClipEvent (release, keyPress 'm') {
_level0.playSound('confirmSound');
_parent._parent._parent.attack('bighit');
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 41 {
stop();
}
instance of movieClip 3553 {
onClipEvent (release, keyPress 't') {
_level0.playSound('confirmSound');
_parent._parent._parent.skipTurn();
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 51 {
stop();
}
instance of movieClip 3556 {
onClipEvent (release, keyPress 'm') {
_level0.playSound('confirmSound');
_parent._parent._parent.superfix();
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 61 {
stop();
}
instance of movieClip 3559 {
onClipEvent (release, keyPress 'u') {
_level0.playSound('confirmSound');
_parent._parent._parent.areaAttack('super');
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 71 {
stop();
}
instance of movieClip 3562 {
onClipEvent (release, keyPress 'u') {
_level0.playSound('confirmSound');
_parent._parent._parent.attack('bigbighit');
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 3565 {
onClipEvent (release, keyPress 'n') {
_level0.playSound('confirmSound');
_parent._parent._parent.attack('scan');
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 91 {
stop();
}
instance of movieClip 3568 {
onClipEvent (release, keyPress 'm') {
_level0.playSound('confirmSound');
_parent._parent._parent.attack('bighit');
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
frame 100 {
stop();
}
instance of movieClip 3571 {
onClipEvent (release, keyPress 'u') {
_level0.playSound('confirmSound');
_parent._parent._parent.attack('bigbighit');
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
}
movieClip 3575 {
frame 1 {
stop();
}
}
movieClip 3578 {
frame 1 {
stop();
}
}
movieClip 3581 {
frame 1 {
stop();
}
}
movieClip 3582 {
instance item_btn of movieClip 3575 {
onClipEvent (release, keyPress 'e') {
if (enabled) {
_level0.playSound('confirmSound');
_parent._parent.useItem(_parent._parent.combat_inventory.itemID);
gotoAndStop(1);
}
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
instance attack_btn of movieClip 3578 {
onClipEvent (release, keyPress 'a') {
if (enabled) {
_level0.playSound('confirmSound');
_parent._parent.attack('regular');
gotoAndStop(1);
}
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
instance of movieClip 3581 {
onClipEvent (release, keyPress 'd') {
_level0.playSound('confirmSound');
_parent._parent['hero' + _parent.myIndex].defend();
gotoAndStop(1);
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(1);
}
}
}
movieClip 3586 {
}
movieClip 3587 {
frame 1 {
function shiftMe(targetMovie) {
if ((_parent.myState == 'heroSelect' or _parent.myState == 'allySelect') and targetMovie.charAt(0) == 'h' and _parent[targetMovie]._visible) {
_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' and _parent[targetMovie]._visible) {
_level0.playSound('select');
_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;
}
}
}
movieClip 3592 {
}
movieClip 3595 {
}
movieClip 3596 {
frame 1 {
function init(amount) {
if (!maxHP) {
maxHP = amount;
currHP = maxHP;
HPDisplay.text = currHP;
}
}
function deductHP(damage) {
tempHP = 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 += life;
if (currHP >= maxHP) {
currHP = maxHP;
}
hpHealInterval = setInterval(increaseBar, 25);
}
function increaseBar() {
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 -= damageStep;
HPDisplay.text = Math.round(tempHP);
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);
}
}
movieClip 3604 {
}
movieClip 3606 {
}
movieClip 3607 {
frame 1 {
function init() {
fullEnergyValue = _parent._parent['hero' + _parent._name.substr(-1, 1)].eCap;
maxEnergyValue = Math.ceil(1.25 * fullEnergyValue);
maxEnergy = 125;
currEnergy = 40 + random(40);
currEnergyValue = (currEnergy / maxEnergy) * maxEnergyValue;
shadeGlow._visible = false;
}
function deductEnergy(amtUsed) {
if (currEnergy > 100) {
currEnergyValue = 0.64 * maxEnergyValue - amtUsed;
if (currEnergyValue < 0) {
currEnergyValue = 0;
}
currEnergy = (currEnergyValue / maxEnergyValue) * maxEnergy;
} else {
currEnergyValue -= amtUsed;
currEnergy = (currEnergyValue / maxEnergyValue) * maxEnergy;
}
if (currEnergy < 100) {
shadeGlow._visible = false;
}
}
function deductPercent(amtUsed) {
currEnergy -= amtUsed;
currEnergyValue = (currEnergy / maxEnergy) * maxEnergyValue;
if (currEnergy < 100) {
shadeGlow._visible = false;
}
}
function chargeEnergyBar() {
if (currEnergy >= maxEnergy) {
currEnergy = maxEnergy;
currEnergyValue = maxEnergyValue;
chargePercent.text = maxEnergy + '%';
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();
}
}
movieClip 3613 {
frame 1 {
stop();
}
}
movieClip 3616 {
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 10 {
gotoAndPlay('ready');
}
}
movieClip 3636 {
}
movieClip 3637 {
frame 1 {
stop();
}
frame 16 {
stop();
}
instance of movieClip 3636 {
onClipEvent (release) {
_parent._parent.scanner.scanTarget = false;
_parent._parent.scanner._x = -999;
_parent._parent.scanner._y = -999;
_parent._parent.action = false;
_parent._parent.myState = 'heroSelect';
_parent.gotoAndStop(1);
}
}
}
movieClip 3639 {
}
movieClip 3641 {
}
movieClip 3644 {
frame 12 {
gotoAndPlay('stationary');
}
}
movieClip 3647 {
frame 1 {
stop();
}
frame 18 {
sc.gotoAndPlay('stationary');
}
frame 34 {
sc.gotoAndStop('move');
}
frame 43 {
sc.gotoAndPlay('stationary');
}
frame 57 {
_parent.scanResult.gotoAndStop('show');
_parent.scanResult.myName.text = _parent['enemy' + scanTarget].eName;
_parent.scanResult.myLife.text = _parent['enemy' + scanTarget].currHP + ' / ' + _parent['enemy' + scanTarget].maxHP;
_parent.scanResult.myArmor.text = _parent['enemy' + scanTarget].baseArmor;
_parent.scanResult.myAccuracy.text = _parent['enemy' + scanTarget].baseAccurate;
_parent.scanResult.myReflex.text = _parent['enemy' + scanTarget].baseReflex;
_parent.scanResult.myCredits.text = _parent['enemy' + scanTarget].credit;
_parent.scanResult.myExp.text = _parent['enemy' + scanTarget].xp;
_parent.scanResult.gotoAndPlay('show');
gotoAndStop(1);
}
}
movieClip 3654 {
}
movieClip 3664 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 11 {
stop();
}
frame 12 {
play();
}
frame 21 {
stop();
}
}
movieClip 3686 {
frame 74 {
stop();
}
}
movieClip 3707 {
frame 74 {
stop();
}
}
movieClip 3728 {
frame 74 {
stop();
}
}
movieClip 3749 {
frame 74 {
stop();
}
}
movieClip 3752 {
}
movieClip 3754 {
}
movieClip 3757 {
frame 23 {
var e = _parent._parent['enemy' + _parent.attackee];
enemy.attachMovie(e.sprite, 'clip', 100);
if (e.color1 != undefined) {
var c = new Color(enemy.clip.bot.part1);
c.setTransform(e.color1);
c = new Color(enemy.clip.bot.part2);
c.setTransform(e.color2);
}
}
frame 45 {
_level0.playSound('c_hit5');
}
frame 66 {
_level0.playSound('c_hit5');
}
frame 70 {
_level0.playSound('c_grenadeExplode');
}
frame 74 {
_level0.playSound('c_rocketExplode2');
}
frame 91 {
stop();
}
}
movieClip 3764 {
frame 10 {
stop();
}
}
movieClip 3769 {
}
movieClip 3774 {
frame 90 {
stop();
}
}
movieClip 3779 {
frame 90 {
stop();
}
}
movieClip 3784 {
frame 90 {
stop();
}
}
movieClip 3785 {
}
movieClip 3789 {
}
movieClip 3793 {
frame 1 {
var e = _parent._parent['enemy' + _parent.attackee];
enemy.attachMovie(e.sprite, 'clip', 100);
if (e.color1 != undefined) {
var c = new Color(enemy.clip.bot.part1);
c.setTransform(e.color1);
c = new Color(enemy.clip.bot.part2);
c.setTransform(e.color2);
}
_level0.playSound('c_gun5');
_level0.playSound('c_ricochet1');
}
frame 5 {
_level0.playSound('c_gun5');
_level0.playSound('c_ricochet1');
}
frame 9 {
_level0.playSound('c_gun5');
_level0.playSound('c_ricochet1');
}
frame 11 {
_level0.playSound('c_ricochet1');
}
frame 13 {
_level0.playSound('c_gun5');
}
frame 16 {
_level0.playSound('c_gun5');
_level0.playSound('c_ricochet1');
}
frame 20 {
_level0.playSound('c_gun5');
_level0.playSound('c_ricochet1');
}
frame 24 {
_level0.playSound('c_gun5');
}
frame 26 {
_level0.playSound('c_ricochet1');
}
frame 28 {
_level0.playSound('c_gun5');
}
frame 31 {
_level0.playSound('c_rocketLaunch');
}
frame 32 {
_level0.playSound('c_rocketLaunch');
}
frame 62 {
var e = _parent._parent['enemy' + _parent.attackee];
enemy.attachMovie(e.sprite, 'clip', 100);
if (e.color1 != undefined) {
var c = new Color(enemy.clip.bot.part1);
c.setTransform(e.color1);
c = new Color(enemy.clip.bot.part2);
c.setTransform(e.color2);
}
_level0.playSound('c_rocketLaunch2');
}
frame 68 {
_level0.playSound('c_rocketExplode2');
}
frame 70 {
_level0.playSound('c_rocketExplode2');
}
frame 90 {
stop();
}
}
movieClip 3798 {
frame 10 {
stop();
}
}
movieClip 3800 {
frame 1 {
var e = _parent._parent['enemy' + _parent.attackee];
enemy.attachMovie(e.sprite, 'clip', 100);
if (e.color1 != undefined) {
var c = new Color(enemy.clip.bot.part1);
c.setTransform(e.color1);
c = new Color(enemy.clip.bot.part2);
c.setTransform(e.color2);
}
}
}
movieClip 3837 {
frame 6 {
_level0.playSound('c_repair');
}
frame 15 {
_level0.playSound('c_repair');
}
frame 23 {
_level0.playSound('c_repair');
}
frame 30 {
_level0.playSound('c_repair');
}
frame 39 {
_level0.playSound('c_repair');
}
frame 51 {
_level0.playSound('c_repair');
}
frame 65 {
_level0.playSound('c_repair');
}
frame 76 {
_level0.playSound('c_repair');
}
frame 82 {
stop();
}
}
movieClip 3838 {
frame 1 {
function doDamage(multiplier, deduct) {
var v5 = _parent['enemy' + attackee]._x;
var v4 = _parent['enemy' + attackee]._y;
var v6 = 0;
var v3 = 100;
switch (_parent['hero' + attacker].id) {
case 'A001':
var v8 = _parent['hero' + attacker].currAccurate;
break;
case 'A002':
var v8 = _parent['hero' + attacker].currTech;
break;
case 'A003':
var v8 = _parent['hero' + attacker].currReflex;
}
var v2 = (_parent['hero' + attacker].lvl - 1) * multiplier * 3.5;
var v7 = _parent['hero' + attacker].lvl * multiplier * 3.5;
v6 = Math.ceil(v2 + random(v7 - v2));
v3 = -_parent['hero' + attacker].currAccurate;
_parent.createDmg(v5, v4, v6, 'enemy' + attackee, v3, false);
attacker = false;
attackee = false;
_parent.action = false;
_parent.myState = 'heroSelect';
gotoAndStop(1);
}
function doAreaDamage(multiplier, deduct) {
var v2 = 1;
while (v2 <= _parent.enemyCount) {
var v6 = _parent['enemy' + v2]._x;
var v5 = _parent['enemy' + v2]._y;
var v7 = 0;
var v4 = 100;
var v3 = (_parent['hero' + attacker].lvl - 2) * multiplier * 3.5;
var v8 = (_parent['hero' + attacker].lvl - 1) * multiplier * 3.5;
v7 = Math.ceil(v3 + random(v8 - v3));
v4 = -_parent['hero' + attacker].currAccurate;
if (!_parent['enemy' + v2].dying) {
_parent.createDmg(v6, v5, v7, 'enemy' + v2, v4, false);
}
++v2;
}
attacker = false;
attackee = false;
_parent.action = false;
_parent.myState = 'heroSelect';
gotoAndStop(1);
}
function doMassHeal(multiplier, deduct) {
var v5 = 15 + _parent['hero' + healer].lvl * multiplier;
var v2 = 1;
while (v2 <= _parent.heroCount) {
var v3 = _parent['hero' + v2].maxHP;
var v4 = Math.ceil(((v5 - 5) / 100) * v3 + (random(5) / 100) * v3);
if (!_parent['hero' + v2].dying) {
_parent['hero' + v2].healMe(v4);
}
++v2;
}
healer = false;
_parent.action = false;
_parent.myState = 'heroSelect';
gotoAndStop(1);
}
function colorBot(target, ref) {
var v2 = new Color(target.part1);
v2.setTransform({'ra': ref.part1r, 'ga': ref.part1g, 'ba': ref.part1b});
v2 = new Color(target.part2);
v2.setTransform({'ra': ref.part2r, 'ga': ref.part2g, 'ba': ref.part2b});
v2 = new Color(target.part3);
v2.setTransform({'ra': ref.part3r, 'ga': ref.part3g, 'ba': ref.part3b});
}
}
frame 1 {
stop();
}
frame 2 {
_level0.playSound('c_s_eyes');
if (_level0.getCharacterAttr('A001', 'gender') == 'f') {
eyes.gotoAndPlay('female');
} else {
eyes.gotoAndPlay('male');
}
}
frame 41 {
_level0.playSound('c_s_bg');
colorBot(super.bot, _parent['hero' + attacker]);
}
frame 132 {
doDamage(2.1, 85);
}
frame 133 {
_level0.playSound('c_s_eyes');
}
frame 172 {
_level0.playSound('c_s_bg');
colorBot(super.bot, _parent['hero' + attacker]);
}
frame 262 {
doDamage(2.2, 85);
}
frame 263 {
_level0.playSound('c_s_eyes');
}
frame 299 {
_level0.playSound('c_s_bg');
}
frame 338 {
doDamage(2.5, 125);
}
frame 339 {
_level0.playSound('c_s_eyes');
colorBot(super.botclip.bot, _parent['hero' + attacker]);
}
frame 345 {
if (_level0.getCharacterAttr('A001', 'gender') == 'f') {
eyes.gotoAndPlay('female');
} else {
eyes.gotoAndPlay('male');
}
}
frame 378 {
_level0.playSound('c_s_bg');
}
frame 473 {
doDamage(3, 125);
}
frame 474 {
_level0.playSound('c_s_eyes');
colorBot(super.botclip.bot, _parent['hero' + attacker]);
}
frame 508 {
_level0.playSound('c_s_bg');
}
frame 517 {
_level0.playSound('rapidshot');
}
frame 550 {
doAreaDamage(2, 125);
}
frame 551 {
_level0.playSound('c_s_eyes');
}
frame 675 {
doMassHeal(0.5, 85);
}
}
movieClip 3843 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 3845 {
}
movieClip 3846 {
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':
clearInterval(MI);
MI = setInterval(moveMe, 10);
break;
case 'projectile':
clearInterval(attInt);
attInt = setInterval(shootProj, weapUse.hitDelay, 'normal');
break;
case 'semi':
clearInterval(attInt);
attInt = setInterval(shootProj, weapUse.hitDelay, 'semi');
break;
case 'stop':
clearInterval(attInt);
attInt = setInterval(attackTarget, weapUse.hitDelay);
}
}
function goBack(speed) {
moveType = 'back';
timing = speed;
moveCount = 0;
xSpeed = (rememX - _x) / timing;
ySpeed = (rememY - _y) / timing;
clearInterval(MI2);
MI2 = setInterval(moveMe, 10);
}
function moveMe() {
var v2 = _parent['enemy' + _parent.pointer.enemyIndex];
if ((!v2._visible or v2.dying) and moveType == 'charge') {
changeTarget();
xSpeed = (destX - _x) / timing;
ySpeed = (destY - _y) / timing;
}
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
if (moveType == 'charge') {
hero_clip.gotoAndPlay('move');
}
}
if (_parent.action == _name and !dying and _visible) {
if (moveCount < timing) {
_x = _x + xSpeed;
_y = _y + ySpeed;
++moveCount;
} else {
if (moveType == 'charge') {
clearInterval(attInt);
clearInterval(MI);
attInt = setInterval(attackTarget, weapUse.hitDelay);
} else {
_parent.myState = 'heroSelect';
clearInterval(MI2);
_parent.action = false;
}
}
}
}
function lifeLoss(life) {
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 elementDamage(calcDamage) {
if (weapUse.elements) {
var v4 = 0;
while (v4 < weapUse.elements.length) {
var v2 = weapUse.elements[v4];
var v3 = _parent['enemy' + _parent.pointer.enemyIndex];
var v5 = 1;
if (v3[v2]) {
v5 = v3[v2];
}
calcDamage = Math.ceil(calcDamage * v5);
++v4;
}
}
return calcDamage;
}
function attackTarget() {
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
}
if (_parent.action == _name) {
var v2 = _parent['enemy' + _parent.pointer.enemyIndex];
if (!dying and _visible) {
if (v2._visible and !v2.dying) {
hero_clip.gotoAndPlay('attack' + weapUse.attackType);
clearInterval(attInt);
} else {
if (weapUse.moveType == 'go') {
combo = 0;
clearInterval(attInt);
endAttack();
} else {
changeTarget();
}
}
} else {
combo = 0;
clearInterval(attInt);
}
}
}
function shootProj(projType) {
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
}
if (_parent.action == _name and !dying and _visible) {
var v2 = _parent['enemy' + _parent.pointer.enemyIndex];
if (!dying and _visible) {
if (v2._visible and !v2.dying) {
hero_clip.projType = projType;
hero_clip.gotoAndPlay('attack' + weapUse.attackType);
clearInterval(attInt);
} else {
changeTarget();
}
} else {
combo = 0;
clearInterval(attInt);
}
}
}
function triggerAttack() {
var v5 = random(100) - weapUse.hitBonus - currAccurate;
var v6 = random(Math.ceil(0.5 * currTech)) + 1;
var v3 = Math.ceil(weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage) + v6);
v3 = elementDamage(v3);
var v4 = false;
if (weapUse.crit) {
if (random(100) < weapUse.crit) {
v4 = true;
}
}
_parent.createSpark(weapUse.effect, dX - weapUse.xOffset, dY - weapUse.yOffset, 'enemy' + _parent.pointer.enemyIndex, v3, v5, v4);
}
function triggerProjectile() {
var v9 = random(100) - weapUse.hitBonus - currAccurate;
var v10 = random(Math.ceil(0.5 * currTech)) + 1;
var v6 = Math.ceil(weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage) + v10);
var v7 = false;
if (weapUse.crit) {
if (random(100) < weapUse.crit) {
v7 = true;
}
}
v6 = elementDamage(v6);
var v8 = 5;
if (weapUse.chiongSpeed) {
v8 = weapUse.chiongSpeed;
}
var v4 = _x;
var v3 = _y;
if (hero_clip.muzzle) {
var v5 = {'x': hero_clip.muzzle._x, 'y': hero_clip.muzzle._y};
hero_clip.muzzle.localToGlobal(v5);
v4 = v5.x;
v3 = v5.y;
}
if (weapUse.xOrigin) {
v4 -= weapUse.xOrigin;
}
if (weapUse.yOrigin) {
v3 -= weapUse.yOrigin;
}
_parent.createProj(weapUse.effect, v4, v3, dX - weapUse.xOffset, dY - weapUse.yOffset, 'enemy' + _parent.pointer.enemyIndex, v6, hero_clip.projType, v9, v7, v8);
}
function changeTarget() {
_parent.pointer.enemyIndex = _parent.pickTarget('enemy', 'first');
_parent.lastEnemySelected = _parent.pointer.enemyIndex;
dX = _parent['enemy' + _parent.pointer.enemyIndex]._x + 50;
dY = _parent['enemy' + _parent.pointer.enemyIndex]._y + 50;
}
function defend() {
resetStats();
hero_clip.gotoAndPlay('defend');
currArmor = Math.ceil(baseArmor * 1.35);
(eval('_parent.stats' + _parent.menu.myIndex)).action_bar.deductPercent(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.deductPercent(60);
_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(amtHealed) {
_level0.playSound('c_repair');
var v3 = amtHealed;
var v7 = int(id.substr(-1, 1));
_parent.attachMovie('hitmiss', 'heal' + _name, _parent.getNextHighestDepth());
_parent['heal' + _name]._x = _x - 50;
_parent['heal' + _name]._y = _y - 50;
_parent['heal' + _name].getDmg = v3;
_parent['heal' + _name].owner = _name;
_parent['heal' + _name].numType = 'heal';
var v5 = new Color(_parent['heal' + _name]);
var v6 = new Color(this);
var v4 = {'ra': 0, 'rb': 0, 'ga': 60, 'gb': 200, 'ba': 0, 'bb': 0, 'aa': 100, 'ab': 70};
v5.setTransform(v4);
v6.setTransform(v4);
lifeGet(v3);
_parent['heal' + _name].gotoAndStop('trigger_hit');
}
function lifeGet(amount) {
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(superI);
clearInterval(MI);
clearInterval(MI2);
clearInterval(attInt);
if (_parent.pointer.heroIndex == _name.substr(-1, 1) and _parent.myState == 'allySelect') {
_parent.pointer.heroIndex = _parent.pickTarget('hero', 'first');
if (_parent.pointer._visible) {
_parent.pointer.shiftMe('hero' + _parent.pointer.heroIndex);
}
}
if (_parent.action == _name) {
_parent.action = false;
}
hero_clip.gotoAndPlay('die');
_parent.checkLose();
}
}
function startAttack() {
switch (weapUse.moveType) {
case 'go':
triggerAttack();
break;
case 'projectile':
triggerProjectile();
break;
case 'semi':
triggerProjectile();
break;
case 'stop':
triggerAttack();
}
if (!_parent.firstHit) {
_parent.current_combo = 0;
_parent.firstHit = true;
}
--combo;
if (combo <= 0 or !_visible or dying) {
combo = 0;
_parent.firstHit = false;
clearInterval(attInt);
}
_parent.playSpark();
}
function endAttack(frameno) {
if (combo <= 0 or !_visible or dying) {
hero_clip.gotoAndStop('normal');
goBack(10);
} else {
hero_clip.gotoAndPlay(frameno);
}
}
}
}
movieClip 3848 {
}
movieClip 3849 {
frame 1 {
function goTo(speed) {
var v2 = 'random';
if (weapUse.pickStyle) {
v2 = weapUse.pickStyle;
}
pickTarget = _parent.pickTarget('hero', v2);
destX = _parent['hero' + pickTarget].rememX - 50;
destY = _parent['hero' + pickTarget].rememY - 50;
moveType = 'charge';
timing = speed;
moveCount = 0;
combo = weapUse.hits;
xSpeed = (destX - _x) / timing;
ySpeed = (destY - _y) / timing;
if (pickTarget > 0 and currHP > 0) {
_parent.lastHeroSelected = pickTaget;
switch (weapUse.moveType) {
case 'go':
clearInterval(MI);
enemy_clip.gotoAndPlay('get_ready' + weapUse.attackType);
break;
case 'semi':
clearInterval(attInt);
attInt = setInterval(shootProj, weapUse.hitDelay, 'semi');
break;
case 'projectile':
clearInterval(attInt);
attInt = setInterval(shootProj, weapUse.hitDelay, 'normal');
break;
case 'stop':
clearInterval(attInt);
attInt = setInterval(attackTarget, weapUse.hitDelay);
}
}
}
function goBack(speed) {
moveType = 'back';
timing = speed;
moveCount = 0;
xSpeed = (rememX - _x) / timing;
ySpeed = (rememY - _y) / timing;
clearInterval(MI2);
MI2 = setInterval(moveMe, 10);
}
function moveMe() {
var v2 = _parent['hero' + pickTarget];
if ((!v2._visible or v2.dying) and moveType == 'charge') {
changeTarget();
xSpeed = (destX - _x) / timing;
ySpeed = (destY - _y) / timing;
}
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
if (moveType == 'charge') {
enemy_clip.bot.play();
}
}
if (_parent.action == _name and !dying and _visible) {
if (moveCount < timing) {
enabled = false;
_x = _x + xSpeed;
_y = _y + ySpeed;
++moveCount;
} else {
if (moveType == 'charge') {
clearInterval(MI);
clearInterval(attInt);
attInt = setInterval(attackTarget, weapUse.hitDelay);
} else {
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 -= life;
if (currHP <= 0) {
currHP = 0;
killMe();
}
}
function killMe() {
if (!dying) {
_parent.total_hits += fameRating;
dying = true;
ATB = 0;
ATBSpeed = 0;
clearInterval(MI);
clearInterval(MI2);
clearInterval(attInt);
if (_parent.action == _name) {
_parent.action = false;
}
smartAim();
enemy_clip.gotoAndPlay('die');
_parent.checkWin();
}
}
function smartAim() {
if (_parent.pointer.enemyIndex == _name.substr(-1, 1) and _parent.myState == 'enemySelect') {
_parent['hero' + _parent.menu.myIndex].changeTarget();
if (_parent.pointer._visible) {
_parent.pointer.shiftMe('enemy' + _parent.pointer.enemyIndex);
}
}
}
function elementDamage(calcDamage) {
if (weapUse.elements) {
var v4 = 0;
while (v4 < weapUse.elements.length) {
var v2 = weapUse.elements[v4];
var v3 = _parent['hero' + pickTarget];
var v5 = 1;
if (v3[v2]) {
v5 = v3[v2];
}
calcDamage = Math.ceil(calcDamage * v5);
++v4;
}
}
return calcDamage;
}
function attackTarget() {
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
}
if (_parent.action == _name) {
var v2 = _parent['hero' + pickTarget];
if (!dying and _visible) {
if (v2._visible and !v2.dying) {
enemy_clip.gotoAndPlay('attack' + weapUse.attackType);
clearInterval(attInt);
} else {
if (weapUse.moveType == 'go') {
combo = 0;
clearInterval(attInt);
endAttack();
} else {
changeTarget();
}
}
} else {
combo = 0;
clearInterval(attInt);
}
}
}
function shootProj(projType) {
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
}
if (_parent.action == _name) {
var v2 = _parent['hero' + pickTarget];
if (!dying and _visible) {
if (v2._visible and !v2.dying) {
enemy_clip.projType = projType;
enemy_clip.gotoAndPlay('attack' + weapUse.attackType);
clearInterval(attInt);
} else {
changeTarget();
}
} else {
combo = 0;
clearInterval(attInt);
}
}
}
function triggerAttack() {
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
var v4 = random(100) - weapUse.hitBonus - currAccurate;
var v2 = Math.ceil(weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage));
v2 = elementDamage(v2);
var v3 = false;
if (weapUse.crit) {
if (random(100) < weapUse.crit) {
v3 = true;
v2 *= 2;
}
}
_parent.createSpark(weapUse.effect, destX + weapUse.xOffset, destY + weapUse.yOffset, 'hero' + pickTarget, v2, v4, v3);
}
function triggerProjectile() {
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
var v5 = random(100) - weapUse.hitBonus - currAccurate;
var v2 = Math.ceil(weapUse.minDamage + random(weapUse.maxDamage - weapUse.minDamage));
v2 = elementDamage(v2);
var v3 = false;
if (weapUse.crit) {
if (random(100) < weapUse.crit) {
v3 = true;
v2 *= 2;
}
}
var v4 = 5;
if (weapUse.chiongSpeed) {
v4 = weapUse.chiongSpeed;
}
_parent.createProj(weapUse.effect, _x + weapUse.xOrigin, _y + weapUse.yOrigin, destX + weapUse.xOffset, destY + weapUse.yOffset, 'hero' + pickTarget, v2, enemy_clip.projType, v5, v3, v4);
}
function changeTarget() {
pickTarget = _parent.pickTarget('hero', 'first');
destX = _parent['hero' + pickTarget]._x - 50;
destY = _parent['hero' + pickTarget]._y - 50;
}
function pickWeap() {
var v2 = random(weapSet.length);
weapUse = _parent['weapon_' + weapSet[v2]];
}
function startAttack() {
switch (weapUse.moveType) {
case 'go':
triggerAttack();
break;
case 'semi':
triggerProjectile();
break;
case 'projectile':
triggerProjectile();
break;
case 'stop':
triggerAttack();
}
--combo;
if (combo <= 0 or !_visible or dying) {
combo = 0;
}
_parent.playSpark();
}
function endAttack(frameno) {
if (combo <= 0 or !_visible or dying) {
enemy_clip.gotoAndStop('normal');
goBack(10);
} else {
enemy_clip.gotoAndPlay(frameno);
}
}
function escapeAttempt() {
combo = 1;
clearInterval(attInt);
attInt = setInterval(escaping, weapUse.hitDelay);
}
function escaping() {
if (combo <= 0 or !_visible or dying) {
clearInterval(attInt);
} else {
if (!_parent.action) {
_parent.action = _name;
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
_parent.total_xp -= xp;
_parent.total_credit -= credit;
}
if (_parent.action == _name) {
dying = true;
ATB = 0;
currHP = 0;
itemDrop = false;
clearInterval(MI);
clearInterval(MI2);
smartAim();
if (_parent.total_xp < 0) {
_parent.total_xp = 0;
}
enemy_clip.gotoAndPlay('escape');
--combo;
}
}
}
function escapeSuccess() {
_parent.action = _name;
if (_parent.action) {
_parent.action = false;
}
clearInterval(attInt);
_parent.pointName._visible = false;
_visible = false;
_parent.checkWin();
}
function defendAttempt() {
combo = 1;
clearInterval(attInt);
attInt = setInterval(defending, weapUse.hitDelay);
}
function defending() {
if (combo <= 0 or !_visible or dying) {
clearInterval(attInt);
} else {
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
ATB -= weapUse.eUse;
}
if (_parent.action == _name and !dying and _visible) {
currArmor = Math.ceil(currArmor * weapUse.multiplier);
enemy_clip.gotoAndPlay('defend');
--combo;
}
}
}
function defendFinish() {
_parent.action = _name;
if (_parent.action) {
_parent.action = false;
}
clearInterval(attInt);
_parent.pointName._visible = false;
}
function healAttempt() {
combo = weapUse.hits;
clearInterval(attInt);
attInt = setInterval(healing, weapUse.hitDelay);
}
function healing() {
if (combo <= 0 or !_visible or dying) {
clearInterval(attInt);
_parent.action = _name;
if (_parent.action) {
_parent.action = false;
}
_parent.pointName._visible = false;
} else {
if (!_parent.action and !dying and _visible) {
_parent.action = _name;
_parent.pointName.my_label.text = weapUse.wName;
_parent.pointName.gotoAndStop(3);
_parent.pointName._visible = true;
ATB -= weapUse.eUse;
}
if (_parent.action == _name and !dying and _visible) {
enemy_clip.gotoAndPlay('heal');
--combo;
}
}
}
function healFinish() {
var v2 = 'random';
if (weapUse.pickStyle) {
v2 = weapUse.pickStyle;
}
pickTarget = _parent.pickTarget('enemy', v2);
var v3 = weapUse.minHeal + random(weapUse.maxHeal - weapUse.minHeal + 1);
_parent['enemy' + pickTarget].healMe(v3);
}
function healMe(amtHealed) {
var v3 = amtHealed;
_parent.attachMovie('hitmiss', 'heal' + _name, 5000 + v3);
_parent['heal' + _name]._x = _x - 50;
_parent['heal' + _name]._y = _y - 50;
_parent['heal' + _name].getDmg = v3;
_parent['heal' + _name].owner = _name;
_parent['heal' + _name].numType = 'heal';
var v5 = new Color(_parent['heal' + _name]);
var v6 = new Color(this);
var v4 = {'ra': 0, 'rb': 0, 'ga': 60, 'gb': 200, 'ba': 0, 'bb': 0, 'aa': 100, 'ab': 70};
v5.setTransform(v4);
v6.setTransform(v4);
lifeGet(v3);
_parent['heal' + _name].gotoAndStop('trigger_hit');
}
function lifeGet(amount) {
currHP += amount;
if (currHP >= maxHP) {
currHP = maxHP;
}
}
function resetStats() {
currArmor = baseArmor;
}
function colorBot(target) {
var v1 = new Color(target.part1);
v1.setTransform(color1);
v1 = new Color(target.part2);
v1.setTransform(color2);
}
}
}
movieClip 3860 {
frame 1 {
stop();
}
}
movieClip 3861 {
frame 1 {
function getWeapInfo(id) {
var v2 = _level0.getItemProp(id);
this['weapon_' + id].minDamage = int(v2.mindamage);
this['weapon_' + id].maxDamage = int(v2.maxdamage);
this['weapon_' + id].eUse = int(v2.energy);
this['weapon_' + id].hits = int(v2.hits);
this['weapon_' + id].hitBonus = int(v2.hitbonus);
this['weapon_' + id].crit = int(v2.crit);
}
weapid = 'W01MF';
this['weapon_' + weapid] = {'wName': 'BRASS KN.', 'wid': weapid, 'effect': 'hit1', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W02MF';
this['weapon_' + weapid] = {'wName': 'HEAVY FIST', 'wid': weapid, 'effect': 'hit2', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W03MF';
this['weapon_' + weapid] = {'wName': 'S. SMASHER', 'wid': weapid, 'effect': 'hit3', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W04MF';
this['weapon_' + weapid] = {'wName': 'MACH GAUN.', 'wid': weapid, 'effect': 'hit2', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W01MS';
this['weapon_' + weapid] = {'wName': 'METAL SWD', 'wid': weapid, 'effect': 'sword1', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W02MS';
this['weapon_' + weapid] = {'wName': 'ENHANCED B.', 'wid': weapid, 'effect': 'sword2', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W03MS';
this['weapon_' + weapid] = {'wName': 'STEEL EDGE', 'wid': weapid, 'effect': 'sword3', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W04MS';
this['weapon_' + weapid] = {'wName': 'CHEF CHOP', 'wid': weapid, 'effect': 'sword4', 'xOffset': 50, 'yOffset': 50, 'moveType': 'go', 'hitDelay': 50, 'attackType': ''};
getWeapInfo(weapid);
weapid = 'W01LR';
this['weapon_' + weapid] = {'wName': 'HUNT. RIF', 'wid': weapid, 'effect': 'gun4', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 500, 'attackType': '2', 'chiongSpeed': 5};
getWeapInfo(weapid);
weapid = 'W02LR';
this['weapon_' + weapid] = {'wName': 'SILENCER', 'wid': weapid, 'effect': 'gun2', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 500, 'attackType': '2', 'chiongSpeed': 5};
getWeapInfo(weapid);
weapid = 'W01LM';
this['weapon_' + weapid] = {'wName': 'AUTO-A GUN', 'wid': weapid, 'effect': 'gun3', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 100, 'attackType': '2', 'chiongSpeed': 5};
getWeapInfo(weapid);
weapid = 'W02LM';
this['weapon_' + weapid] = {'wName': 'CHAIN REP.', 'wid': weapid, 'effect': 'gun1', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 100, 'attackType': '2', 'chiongSpeed': 5};
getWeapInfo(weapid);
weapid = 'W03LM';
this['weapon_' + weapid] = {'wName': 'Y&S SUPPR.', 'wid': weapid, 'effect': 'gun5', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 100, 'attackType': '2'};
getWeapInfo(weapid);
weapid = 'W01SC';
this['weapon_' + weapid] = {'wName': 'M. CANNON', 'wid': weapid, 'effect': 'cannon', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 200, 'attackType': '3'};
getWeapInfo(weapid);
weapid = 'W02SC';
this['weapon_' + weapid] = {'wName': 'POWERSHOTS', 'wid': weapid, 'effect': 'cannon2', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 300, 'attackType': '3'};
getWeapInfo(weapid);
weapid = 'W03SC';
this['weapon_' + weapid] = {'wName': 'THUNDER S.', 'wid': weapid, 'effect': 'cannon3', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 50, 'moveType': 'projectile', 'hitDelay': 50, 'attackType': '3', 'chiongSpeed': 15};
getWeapInfo(weapid);
weapid = 'W01SL';
this['weapon_' + weapid] = {'wName': 'P LAUNCHER', 'wid': weapid, 'effect': 'launcher2', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 500, 'attackType': '3'};
getWeapInfo(weapid);
weapid = 'W02SL';
this['weapon_' + weapid] = {'wName': 'ROLL BOMB', 'wid': weapid, 'effect': 'launcher1', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 0, 'yOrigin': 0, 'moveType': 'projectile', 'hitDelay': 500, 'attackType': '3', 'chiongSpeed': 20};
getWeapInfo(weapid);
weapon_testmelee = {'wName': 'MELEE TEST', 'wid': 'W01MS', 'effect': 'spark2', 'xOffset': 50, 'yOffset': 50, 'minDamage': 6, 'maxDamage': 12, 'eUse': 10, 'moveType': 'go', 'hits': 1, 'hitDelay': 200, 'hitBonus': 20, 'attackType': ''};
weapon_testlightarms = {'wName': 'LARMS TEST', 'wid': 'W01LR', 'effect': 'gun2', 'xOffset': 50, 'yOffset': 50, 'minDamage': 6, 'maxDamage': 12, 'eUse': 10, 'hits': 1, 'hitDelay': 200, 'hitBonus': 20, 'moveType': 'projectile', 'attackType': '2'};
weapon_testspecial = {'wName': 'SPECIAL TEST', 'wid': 'W01SC', 'xOffset': 50, 'yOffset': 50, 'effect': 'cannon', 'minDamage': 6, 'maxDamage': 12, 'eUse': 10, 'hits': 1, 'hitDelay': 200, 'hitBonus': 20, 'moveType': 'projectile', 'attackType': '3'};
weapon_bash = {'wName': 'FLY BY STRIKE', 'effect': 'gearstrike', 'xOffset': 50, 'yOffset': 50, 'minDamage': 5, 'maxDamage': 10, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 50, 'hitBonus': 20, 'attackType': ''};
weapon_escape = {'wName': 'ESCAPE', 'Escape': true, 'lifeCheck': 100, 'hitDelay': 1000};
weapon_brassclock_att1 = {'wName': 'CLOCK SMASH', 'effect': 'clocksmash', 'xOffset': 50, 'yOffset': 50, 'minDamage': 7, 'maxDamage': 12, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 100, 'chiongSpeed': 30, 'hitBonus': 20, 'attackType': ''};
weapon_bronzeclock_att1 = {'wName': 'SPIKED SMASH', 'effect': 'clocksmash2', 'xOffset': 50, 'yOffset': 50, 'minDamage': 15, 'maxDamage': 18, 'eUse': 40, 'moveType': 'go', 'hits': 1, 'chiongSpeed': 30, 'hitDelay': 500, 'hitBonus': 20, 'attackType': ''};
weapon_ironclock_att1 = {'wName': 'HEAVY SMASH', 'effect': 'clocksmash3', 'xOffset': 50, 'yOffset': 50, 'minDamage': 26, 'maxDamage': 30, 'eUse': 45, 'moveType': 'go', 'hits': 1, 'hitDelay': 200, 'hitBonus': 10, 'attackType': '', 'chiongSpeed': 30};
weapon_goldclock_att1 = {'wName': 'GLARING SMASH', 'effect': 'clocksmash4', 'xOffset': 50, 'yOffset': 50, 'minDamage': 18, 'maxDamage': 20, 'eUse': 40, 'moveType': 'go', 'hits': 1, 'hitDelay': 500, 'hitBonus': 50, 'attackType': '', 'chiongSpeed': 30};
weapon_rustfiend_att1 = {'wName': 'RUSTY JAB', 'effect': 'rustjab', 'xOffset': 50, 'yOffset': 50, 'minDamage': 9, 'maxDamage': 12, 'eUse': 40, 'moveType': 'go', 'hits': 1, 'hitDelay': 50, 'hitBonus': 20, 'chiongSpeed': 30, 'attackType': ''};
weapon_rustfiend_att2 = {'wName': 'BOLT', 'effect': 'lightning', 'xOffset': 50, 'yOffset': 50, 'minDamage': 10, 'maxDamage': 15, 'eUse': 50, 'moveType': 'stop', 'hits': 1, 'hitDelay': 50, 'hitBonus': 0, 'attackType': '2'};
weapon_emeraldfiend_att1 = {'wName': 'EMERALD STAB', 'effect': 'eddystab', 'xOffset': 50, 'yOffset': 50, 'minDamage': 13, 'maxDamage': 17, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 100, 'hitBonus': 10, 'chiongSpeed': 30, 'attackType': ''};
weapon_emeraldfiend_att2 = {'wName': 'ENERGY BOLT', 'effect': 'energybolt', 'xOffset': 50, 'yOffset': 50, 'minDamage': 18, 'maxDamage': 20, 'eUse': 40, 'moveType': 'stop', 'hits': 1, 'hitDelay': 50, 'hitBonus': 0, 'attackType': '2'};
weapon_shoot = {'wName': 'Shoot', 'effect': 'bang', 'xOffset': 50, 'yOffset': 50, 'minDamage': 25, 'maxDamage': 50, 'eUse': 40, 'moveType': 'stop', 'hits': 1, 'hitDelay': 50, 'hitBonus': 0, 'attackType': '2'};
weapon_cannon = {'wName': 'Cannon', 'effect': 'gun2', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 50, 'minDamage': 2, 'maxDamage': 3, 'eUse': 50, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 50, 'hitBonus': -20, 'attackType': '2'};
weapon_popbomb = {'wName': 'Pop Bomb', 'effect': 'cannon', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 50, 'minDamage': 40, 'maxDamage': 50, 'eUse': 50, 'moveType': 'semi', 'hits': 1, 'hitDelay': 50, 'hitBonus': 10, 'attackType': ''};
weapon_renegadeHook = {'wName': 'TRASH COMPACTOR', 'effect': 'crunch', 'xOffset': 50, 'yOffset': 50, 'minDamage': 13, 'maxDamage': 20, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 200, 'hitBonus': 0, 'chiongSpeed': 20, 'attackType': ''};
weapon_junglespider_att1 = {'wName': 'SPIDER BITE', 'effect': 'spiderAttack', 'xOffset': 50, 'yOffset': 50, 'minDamage': 10, 'maxDamage': 15, 'eUse': 40, 'moveType': 'stop', 'hits': 1, 'hitDelay': 500, 'hitBonus': 0, 'attackType': ''};
weapon_junglespider_att2 = {'wName': 'CORROSIVE WEB', 'effect': 'web', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 50, 'minDamage': 16, 'maxDamage': 20, 'eUse': 50, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 500, 'hitBonus': -10, 'attackType': '2'};
weapon_sproutfighter_att1 = {'wName': 'RIGHT HOOK', 'effect': 'beanhit', 'xOffset': 50, 'yOffset': 50, 'minDamage': 20, 'maxDamage': 25, 'eUse': 35, 'moveType': 'go', 'hits': 1, 'hitDelay': 100, 'hitBonus': 10, 'attackType': ''};
weapon_sproutfighter_att2 = {'wName': 'BEAN SHOT', 'effect': 'beanspray', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 0, 'minDamage': 24, 'maxDamage': 27, 'eUse': 45, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 500, 'hitBonus': 5, 'attackType': '2'};
weapon_sproutberserker_att1 = {'wName': 'TAKE DOWN', 'effect': 'beanhit2', 'xOffset': 50, 'yOffset': 50, 'minDamage': 30, 'maxDamage': 34, 'eUse': 55, 'moveType': 'go', 'hits': 1, 'hitDelay': 200, 'hitBonus': 10, 'attackType': ''};
weapon_sproutberserker_att2 = {'wName': 'BEAN SPRAY', 'effect': 'beanspray', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 0, 'minDamage': 21, 'maxDamage': 23, 'eUse': 50, 'moveType': 'projectile', 'hits': 3, 'hitDelay': 1000, 'hitBonus': 5, 'attackType': '2'};
weapon_sharkBite = {'wName': 'SHARK ATTACK', 'effect': 'sharkBite', 'xOffset': 50, 'yOffset': 50, 'minDamage': 23, 'maxDamage': 28, 'eUse': 50, 'moveType': 'stop', 'hits': 1, 'hitDelay': 500, 'hitBonus': 0, 'attackType': ''};
weapon_laser = {'wName': 'CRIMSON BLAST', 'effect': 'laser', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 50, 'minDamage': 21, 'maxDamage': 23, 'eUse': 40, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 500, 'hitBonus': -10, 'chiongSpeed': 5, 'attackType': '2'};
weapon_wingstrike = {'wName': 'WING SLASH', 'effect': 'wingslash', 'xOffset': 50, 'yOffset': 50, 'minDamage': 15, 'maxDamage': 20, 'eUse': 40, 'moveType': 'go', 'hits': 1, 'hitDelay': 200, 'hitBonus': 10, 'attackType': ''};
weapon_crimsonblast = {'wName': 'GUANO GURGE', 'effect': 'guano', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 20, 'yOrigin': -10, 'minDamage': 19, 'maxDamage': 23, 'eUse': 50, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 500, 'hitBonus': -15, 'chiongSpeed': 10, 'attackType': '2'};
weapon_burrowstrike = {'wName': 'BURROW STRIKE', 'effect': 'burrowstrike', 'xOffset': 50, 'yOffset': 50, 'minDamage': 22, 'maxDamage': 26, 'eUse': 60, 'moveType': 'stop', 'hits': 1, 'hitDelay': 500, 'hitBonus': 0, 'attackType': '2'};
weapon_drillmissile = {'wName': 'DRILL MISSLE', 'effect': 'drillmissile', 'xOffset': 50, 'yOffset': 50, 'minDamage': 19, 'maxDamage': 21, 'eUse': 45, 'moveType': 'stop', 'hits': 1, 'hitDelay': 250, 'hitBonus': -5, 'attackType': ''};
weapon_garbagespray = {'wName': 'GARBAGE SPEW', 'effect': 'randombullet', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 50, 'yOrigin': 0, 'minDamage': 3, 'maxDamage': 10, 'eUse': 40, 'moveType': 'projectile', 'hits': 8, 'hitDelay': 50, 'hitBonus': 0, 'attackType': ''};
weapon_grinder = {'wName': 'CRUSH GRINDER', 'effect': 'grinderattack', 'xOffset': 50, 'yOffset': 50, 'minDamage': 26, 'maxDamage': 30, 'eUse': 40, 'moveType': 'stop', 'hits': 1, 'hitDelay': 50, 'hitBonus': 5, 'attackType': '2'};
weapon_slash = {'wName': 'GIANT SLASH', 'effect': 'lordslice', 'xOffset': 50, 'yOffset': 50, 'minDamage': 55, 'maxDamage': 65, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 500, 'hitBonus': 10, 'chiongSpeed': 20, 'attackType': ''};
weapon_skullhead1_att1 = {'wName': 'SLUDGE SLING', 'effect': 'corrosion', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 30, 'yOrigin': 0, 'minDamage': 27, 'maxDamage': 30, 'eUse': 40, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 1000, 'hitBonus': 5, 'attackType': ''};
weapon_skullhead1_att2 = {'wName': 'DOUBLE SLASH', 'effect': 'rogueslash', 'xOffset': 50, 'yOffset': 50, 'minDamage': 20, 'maxDamage': 22, 'eUse': 50, 'moveType': 'go', 'hits': 2, 'hitDelay': 50, 'hitBonus': 20, 'attackType': '2'};
weapon_skullhead2_att2 = {'wName': 'HYDRO SLASH', 'effect': 'swashslash', 'xOffset': 50, 'yOffset': 50, 'minDamage': 33, 'maxDamage': 37, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 50, 'hitBonus': 20, 'attackType': '2'};
weapon_pirate_att1 = {'wName': 'GATLING CARNAGE', 'effect': 'jackgun', 'xOffset': 50, 'yOffset': 50, 'xOrigin': -20, 'yOrigin': 50, 'minDamage': 25, 'maxDamage': 30, 'eUse': 40, 'moveType': 'projectile', 'hits': 7, 'hitDelay': 100, 'hitBonus': 0, 'chiongSpeed': 5, 'attackType': ''};
weapon_pirate_att2 = {'wName': 'CAPTAIN\'S CLAW', 'effect': 'jackslash', 'xOffset': 50, 'yOffset': 50, 'minDamage': 40, 'maxDamage': 48, 'eUse': 50, 'moveType': 'go', 'hits': 1, 'hitDelay': 50, 'hitBonus': 20, 'attackType': '2'};
weapon_pirate_att3 = {'wName': 'B.M.D', 'effect': 'jackrocket', 'xOffset': 50, 'yOffset': 50, 'xOrigin': -20, 'yOrigin': 50, 'minDamage': 70, 'maxDamage': 85, 'eUse': 60, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 500, 'hitBonus': 20, 'attackType': '3'};
weapon_chef_att1 = {'wName': 'KNIFE TOSS', 'effect': 'chopper', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 80, 'yOrigin': -20, 'minDamage': 45, 'maxDamage': 60, 'eUse': 35, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 2000, 'hitBonus': 0, 'attackType': ''};
weapon_chef_att2 = {'wName': 'FLYING PAN', 'effect': 'fryingpan', 'xOffset': 50, 'yOffset': 50, 'xOrigin': 20, 'yOrigin': 20, 'minDamage': 55, 'maxDamage': 70, 'eUse': 40, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 2000, 'hitBonus': 0, 'attackType': '2'};
weapon_chef_att3 = {'wName': 'B.B.Q. SHOT', 'effect': 'fire', 'xOffset': 50, 'yOffset': 50, 'xOrigin': -20, 'yOrigin': -20, 'minDamage': 40, 'maxDamage': 58, 'eUse': 35, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 3000, 'hitBonus': 0, 'attackType': '3'};
weapon_chef_att4 = {'wName': 'CHOP CHOP', 'effect': 'spark1', 'xOffset': 50, 'yOffset': 50, 'minDamage': 58, 'maxDamage': 65, 'eUse': 45, 'moveType': 'go', 'hits': 1, 'hitDelay': 50, 'hitBonus': 20, 'attackType': '4'};
weapon_officer_att1 = {'wName': 'DRILL CLAW', 'effect': 'drillclaw', 'xOffset': 50, 'yOffset': 50, 'xOrigin': -40, 'yOrigin': -30, 'minDamage': 120, 'maxDamage': 134, 'eUse': 40, 'moveType': 'projectile', 'hits': 1, 'hitDelay': 800, 'hitBonus': 0, 'attackType': ''};
weapon_officer_att2 = {'wName': 'TERRA SLASH', 'effect': 'officerslash1', 'xOffset': 50, 'yOffset': 50, 'minDamage': 90, 'maxDamage': 120, 'eUse': 30, 'moveType': 'go', 'hits': 1, 'hitDelay': 50, 'hitBonus': 20, 'attackType': '2'};
weapon_officer_att3 = {'wName': 'PHANTOM CUTTER', 'effect': 'officerslash2', 'xOffset': 50, 'yOffset': 50, 'minDamage': 73, 'maxDamage': 85, 'eUse': 50, 'moveType': 'go', 'hits': 3, 'hitDelay': 50, 'hitBonus': 0, 'attackType': '3'};
ms_test_1 = new Object();
ms_test_1.mArray = new Array();
ms_test_1.mArray[0] = new Array('dummy');
ms_test_1.mMin = 1;
ms_test_1.mMax = 1;
ms_intro_1 = new Object();
ms_intro_1.mArray = new Array();
ms_intro_1.mArray[0] = new Array('dummy');
ms_intro_1.mMin = 1;
ms_intro_1.mMax = 1;
ms_intro_1.noescape = true;
ms_intro_1.chatter_win = 'calisto_0c';
ms_intro_2 = new Object();
ms_intro_2.mArray = new Array();
ms_intro_2.mArray[0] = new Array('gearfly');
ms_intro_2.mArray[1] = new Array('gearfly');
ms_intro_2.mArray[2] = new Array('gearfly');
ms_intro_2.mMin = 3;
ms_intro_2.mMax = 3;
ms_intro_2.noescape = true;
ms_intro_2.chatter_win = 'calisto_0f';
ms_intro_3 = new Object();
ms_intro_3.mArray = new Array();
ms_intro_3.mArray[0] = new Array('gearfly');
ms_intro_3.mArray[1] = new Array('gearfly');
ms_intro_3.mMin = 1;
ms_intro_3.mMax = 2;
ms_officer_boss = new Object();
ms_officer_boss.mArray = new Array();
ms_officer_boss.mArray[0] = new Array('officer');
ms_officer_boss.mMin = 1;
ms_officer_boss.mMax = 1;
ms_officer_boss.noescape = true;
ms_officer_boss.chatter_lose = 'lucille_2';
ms_officer_boss.chatter_win = 'lucille_3';
ms_officer_boss.music = 'boss2';
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', 'brassclock');
ms_scrapyard_2.mArray[1] = new Array('gearfly', 'brassclock');
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('rustfiend', 'brassclock');
ms_scrapyard_3.mArray[1] = new Array('rustfiend', 'brassclock');
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('brassclock');
ms_scrapyard_4.mArray[1] = new Array('rustfiend', 'brassclock');
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', 'rustfiend', 'brassclock');
ms_scrapyard_5.mArray[1] = new Array('gearfly', 'rustfiend', 'brassclock');
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', 'rustfiend', 'brassclock');
ms_scrapyard_6.mArray[1] = new Array('gearfly', 'rustfiend', 'brassclock');
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_scrapyard_boss.chatter_win = 'scrapyard_boss_4';
ms_scrapyard_boss.music = 'boss1';
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('gearfly', 'junglespider');
ms_jungle_3.mArray[1] = new Array('gearfly', 'junglespider');
ms_jungle_3.mArray[2] = new Array('gearfly', 'junglespider');
ms_jungle_3.mMin = 2;
ms_jungle_3.mMax = 3;
ms_jungle_4 = new Object();
ms_jungle_4.mArray = new Array();
ms_jungle_4.mArray[0] = new Array('junglespider', 'emeraldfiend');
ms_jungle_4.mArray[1] = new Array('gearfly', 'junglespider', 'emeraldfiend');
ms_jungle_4.mArray[2] = new Array('gearfly', 'junglespider', 'emeraldfiend');
ms_jungle_4.mArray[3] = new Array('gearfly', 'junglespider', 'emeraldfiend');
ms_jungle_4.mMin = 2;
ms_jungle_4.mMax = 4;
ms_azure_1 = new Object();
ms_azure_1.mArray = new Array();
ms_azure_1.mArray[0] = new Array('gearfly', 'hermitshark');
ms_azure_1.mArray[1] = new Array('gearfly');
ms_azure_1.mMin = 1;
ms_azure_1.mMax = 2;
ms_azure_2 = new Object();
ms_azure_2.mArray = new Array();
ms_azure_2.mArray[0] = new Array('hermitshark');
ms_azure_2.mMin = 1;
ms_azure_2.mMax = 1;
ms_azure_3 = new Object();
ms_azure_3.mArray = new Array();
ms_azure_3.mArray[0] = new Array('hermitshark');
ms_azure_3.mArray[1] = new Array('hermitshark');
ms_azure_3.mMin = 1;
ms_azure_3.mMax = 2;
ms_chef = new Object();
ms_chef.mArray = new Array();
ms_chef.mArray[0] = new Array('chef');
ms_chef.mMin = 1;
ms_chef.mMax = 1;
ms_chef.noescape = true;
ms_chef.music = 'boss1';
ms_lazlo_1 = new Object();
ms_lazlo_1.mArray = new Array();
ms_lazlo_1.mArray[0] = new Array('bronzeclock');
ms_lazlo_1.mArray[1] = new Array('bronzeclock');
ms_lazlo_1.mArray[2] = new Array('bronzeclock');
ms_lazlo_1.mMin = 1;
ms_lazlo_1.mMax = 3;
ms_lazlo_2 = new Object();
ms_lazlo_2.mArray = new Array();
ms_lazlo_2.mArray[0] = new Array('phasebat', 'bronzeclock');
ms_lazlo_2.mArray[1] = new Array('phasebat', 'bronzeclock');
ms_lazlo_2.mArray[2] = new Array('phasebat', 'bronzeclock');
ms_lazlo_2.mMin = 1;
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 = 1;
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', 'bronzeclock');
ms_lazlo_4.mArray[1] = new Array('phasebat', 'drillfiend', 'bronzeclock');
ms_lazlo_4.mArray[2] = new Array('phasebat', 'drillfiend', 'bronzeclock');
ms_lazlo_4.mArray[3] = new Array('phasebat', 'drillfiend', 'bronzeclock');
ms_lazlo_4.mMin = 2;
ms_lazlo_4.mMax = 3;
ms_worm_boss = new Object();
ms_worm_boss.mArray = new Array();
ms_worm_boss.mArray[0] = new Array('grindworm');
ms_worm_boss.mMin = 1;
ms_worm_boss.mMax = 1;
ms_worm_boss.noescape = true;
ms_worm_boss.music = 'boss1';
ms_iron_1 = new Object();
ms_iron_1.mArray = new Array();
ms_iron_1.mArray[0] = new Array('sproutfighter', 'sproutberserker');
ms_iron_1.mArray[1] = new Array('sproutfighter');
ms_iron_1.mArray[2] = new Array('sproutfighter');
ms_iron_1.mArray[3] = new Array('sproutfighter');
ms_iron_1.mMin = 2;
ms_iron_1.mMax = 4;
ms_iron_2 = new Object();
ms_iron_2.mArray = new Array();
ms_iron_2.mArray[0] = new Array('sproutfighter', 'ironclock', 'sproutberserker');
ms_iron_2.mArray[1] = new Array('sproutfighter', 'ironclock');
ms_iron_2.mArray[2] = new Array('sproutfighter', 'ironclock');
ms_iron_2.mArray[3] = new Array('sproutfighter');
ms_iron_2.mMin = 2;
ms_iron_2.mMax = 4;
ms_iron_3 = new Object();
ms_iron_3.mArray = new Array();
ms_iron_3.mArray[0] = new Array('sproutfighter', 'sproutberserker');
ms_iron_3.mArray[1] = new Array('sproutfighter');
ms_iron_3.mArray[2] = new Array('sproutfighter', 'ironclock');
ms_iron_3.mArray[3] = new Array('sproutfighter', 'brassclock', 'bronzeclock', 'ironclock', 'goldclock');
ms_iron_3.mMin = 2;
ms_iron_3.mMax = 4;
ms_iron_4 = new Object();
ms_iron_4.mArray = new Array();
ms_iron_4.mArray[0] = new Array('sproutfighter', 'sproutberserker');
ms_iron_4.mArray[1] = new Array('sproutfighter', 'sproutberserker');
ms_iron_4.mArray[2] = new Array('sproutfighter');
ms_iron_4.mArray[3] = new Array('sproutfighter');
ms_iron_4.mArray[4] = new Array('sproutfighter');
ms_iron_4.mMin = 4;
ms_iron_4.mMax = 5;
ms_iron_boss = new Object();
ms_iron_boss.mArray = new Array();
ms_iron_boss.mArray[0] = new Array('sproutlord');
ms_iron_boss.mArray[1] = new Array('sproutberserker');
ms_iron_boss.mArray[2] = new Array('sproutberserker');
ms_iron_boss.mMin = 3;
ms_iron_boss.mMax = 3;
ms_iron_boss.noescape = true;
ms_iron_boss.music = 'boss1';
ms_tidal_1 = new Object();
ms_tidal_1.mArray = new Array();
ms_tidal_1.mArray[0] = new Array('skullhead1');
ms_tidal_1.mArray[1] = new Array('skullhead1', 'ironclock');
ms_tidal_1.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_1.mArray[3] = new Array('ironclock');
ms_tidal_1.mMin = 2;
ms_tidal_1.mMax = 4;
ms_tidal_2 = new Object();
ms_tidal_2.mArray = new Array();
ms_tidal_2.mArray[0] = new Array('hermitshark', 'skullhead1');
ms_tidal_2.mArray[1] = new Array('skullhead1');
ms_tidal_2.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_2.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_2.mArray[4] = new Array('skullhead1', 'ironclock');
ms_tidal_2.mMin = 3;
ms_tidal_2.mMax = 5;
ms_tidal_3 = new Object();
ms_tidal_3.mArray = new Array();
ms_tidal_3.mArray[0] = new Array('skullhead1', 'hermitshark');
ms_tidal_3.mArray[1] = new Array('skullhead1', 'ironclock');
ms_tidal_3.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_3.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_3.mMin = 2;
ms_tidal_3.mMax = 4;
ms_tidal_4 = new Object();
ms_tidal_4.mArray = new Array();
ms_tidal_4.mArray[0] = new Array('skullhead1', 'skullhead2');
ms_tidal_4.mArray[1] = new Array('skullhead1', 'hermitshark');
ms_tidal_4.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_4.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_4.mMin = 3;
ms_tidal_4.mMax = 4;
ms_tidal_5 = new Object();
ms_tidal_5.mArray = new Array();
ms_tidal_5.mArray[0] = new Array('skullhead1', 'skullhead2');
ms_tidal_5.mArray[1] = new Array('skullhead1', 'skullhead2');
ms_tidal_5.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_5.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_5.mArray[4] = new Array('skullhead1', 'ironclock');
ms_tidal_5.mMin = 3;
ms_tidal_5.mMax = 5;
ms_tidal_6 = new Object();
ms_tidal_6.mArray = new Array();
ms_tidal_6.mArray[0] = new Array('skullhead2');
ms_tidal_6.mArray[1] = new Array('skullhead1', 'skullhead2');
ms_tidal_6.mArray[2] = new Array('skullhead1', 'skullhead2', 'ironclock');
ms_tidal_6.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_6.mArray[4] = new Array('skullhead1', 'ironclock');
ms_tidal_6.mMin = 4;
ms_tidal_6.mMax = 5;
ms_jack = new Object();
ms_jack.mArray = new Array();
ms_jack.mArray[0] = new Array('pirate');
ms_jack.mArray[1] = new Array('skullhead2');
ms_jack.mArray[2] = new Array('skullhead2');
ms_jack.mArray[3] = new Array('skullhead1');
ms_jack.mArray[4] = new Array('skullhead1');
ms_jack.mMin = 5;
ms_jack.mMax = 5;
ms_jack.noescape = true;
ms_jack.chatter_win = 'jack_1';
ms_jack.music = 'boss1';
monster_dummy = new Object();
monster_dummy.sprite = 'dummy';
monster_dummy.mName = 'Dummy';
monster_dummy.maxHP = 50;
monster_dummy.weapSet = new Array();
monster_dummy.armor = 1;
monster_dummy.accurate = 0;
monster_dummy.reflex = 5;
monster_dummy.recharge = 0;
monster_dummy.xp = 10;
monster_dummy.fameRating = 0;
monster_dummy.credit = 0;
monster_dummy.yOffset = 0;
monster_dummy.item = new Array();
monster_officer = new Object();
monster_officer.sprite = 'officer';
monster_officer.mName = 'Serra Superion';
monster_officer.maxHP = 5000;
monster_officer.weapSet = new Array('officer_att1', 'officer_att2', 'officer_att3');
monster_officer.armor = 10;
monster_officer.accurate = 60;
monster_officer.reflex = 35;
monster_officer.recharge = 3.5;
monster_officer.xp = 3000;
monster_officer.fameRating = 25;
monster_officer.credit = 5000;
monster_officer.yOffset = -20;
monster_officer.item = new Array({'id': 'W02SL', 'chance': 100});
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 = 0;
monster_gearfly.accurate = 10;
monster_gearfly.reflex = 10;
monster_gearfly.recharge = 2;
monster_gearfly.xp = 5;
monster_gearfly.fameRating = 1;
monster_gearfly.credit = 10;
monster_gearfly.item = new Array({'id': 'I000Q', 'chance': 60});
monster_brassclock = new Object();
monster_brassclock.sprite = 'clock';
monster_brassclock.mName = 'Brass Clock Creep';
monster_brassclock.maxHP = 20;
monster_brassclock.weapSet = new Array('brassclock_att1');
monster_brassclock.armor = 2;
monster_brassclock.accurate = 0;
monster_brassclock.reflex = 0;
monster_brassclock.recharge = 2.5;
monster_brassclock.xp = 7;
monster_brassclock.credit = 20;
monster_brassclock.fameRating = 1;
monster_brassclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_brassclock.color2 = {'ra': 100, 'ga': 80, 'ba': 60};
monster_brassclock.item = new Array({'id': 'I002Q', 'chance': 60});
monster_rustfiend = new Object();
monster_rustfiend.sprite = 'fiend';
monster_rustfiend.mName = 'Rust Fiend';
monster_rustfiend.maxHP = 25;
monster_rustfiend.weapSet = new Array('rustfiend_att1', 'rustfiend_att2');
monster_rustfiend.armor = 3;
monster_rustfiend.accurate = 5;
monster_rustfiend.reflex = 5;
monster_rustfiend.recharge = 2;
monster_rustfiend.xp = 10;
monster_rustfiend.fameRating = 1;
monster_rustfiend.credit = 30;
monster_rustfiend.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_rustfiend.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_rustfiend.item = new Array({'id': 'I001R', 'chance': 80}, {'id': 'A01', 'chance': 20});
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 = -5;
monster_derelict.reflex = -5;
monster_derelict.recharge = 2.5;
monster_derelict.xp = 100;
monster_derelict.fameRating = 5;
monster_derelict.credit = 200;
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 = 30;
monster_junglespider.weapSet = new Array('junglespider_att1', 'junglespider_att2');
monster_junglespider.armor = 3;
monster_junglespider.accurate = 0;
monster_junglespider.reflex = 10;
monster_junglespider.recharge = 2;
monster_junglespider.xp = 15;
monster_junglespider.fameRating = 2;
monster_junglespider.credit = 35;
monster_junglespider.color1 = {'ra': 50, 'ga': 100, 'ba': 80};
monster_junglespider.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_junglespider.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'G001', 'chance': 10});
monster_emeraldfiend = new Object();
monster_emeraldfiend.sprite = 'fiend';
monster_emeraldfiend.mName = 'Emerald Fiend';
monster_emeraldfiend.maxHP = 40;
monster_emeraldfiend.weapSet = new Array('emeraldfiend_att1', 'emeraldfiend_att2');
monster_emeraldfiend.armor = 4;
monster_emeraldfiend.accurate = 10;
monster_emeraldfiend.reflex = 0;
monster_emeraldfiend.recharge = 2.5;
monster_emeraldfiend.xp = 20;
monster_emeraldfiend.fameRating = 2;
monster_emeraldfiend.credit = 40;
monster_emeraldfiend.color1 = {'ra': 50, 'ga': 100, 'ba': 80};
monster_emeraldfiend.color2 = {'ra': 50, 'ga': 100, 'ba': 50};
monster_emeraldfiend.item = new Array({'id': 'I001R', 'chance': 30}, {'id': 'A01', 'chance': 5});
monster_hermitshark = new Object();
monster_hermitshark.sprite = 'hermitshark';
monster_hermitshark.mName = 'Hermit Shark';
monster_hermitshark.maxHP = 61;
monster_hermitshark.weapSet = new Array('sharkBite', 'laser');
monster_hermitshark.armor = 5;
monster_hermitshark.accurate = 15;
monster_hermitshark.reflex = 10;
monster_hermitshark.fameRating = 3;
monster_hermitshark.recharge = 2.5;
monster_hermitshark.xp = 30;
monster_hermitshark.credit = 72;
monster_hermitshark.item = new Array({'id': 'I001SB', 'chance': 50}, {'id': 'C02AF', 'chance': 5});
monster_chef = new Object();
monster_chef.sprite = 'chef';
monster_chef.mName = 'Steel Chef';
monster_chef.maxHP = 2000;
monster_chef.weapSet = new Array('chef_att1', 'chef_att2', 'chef_att3');
monster_chef.armor = 20;
monster_chef.accurate = 40;
monster_chef.reflex = 20;
monster_chef.recharge = 3;
monster_chef.xp = 1000;
monster_chef.fameRating = 15;
monster_chef.credit = 2000;
monster_chef.yOffset = 20;
monster_chef.item = new Array({'id': 'W04MS', 'chance': 100});
monster_bronzeclock = new Object();
monster_bronzeclock.sprite = 'clock';
monster_bronzeclock.mName = 'Bronze Clock Creep';
monster_bronzeclock.maxHP = 35;
monster_bronzeclock.weapSet = new Array('bronzeclock_att1');
monster_bronzeclock.armor = 3;
monster_bronzeclock.accurate = 20;
monster_bronzeclock.reflex = 0;
monster_bronzeclock.recharge = 2.5;
monster_bronzeclock.xp = 15;
monster_bronzeclock.fameRating = 1;
monster_bronzeclock.credit = 50;
monster_bronzeclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_bronzeclock.color2 = {'ra': 80, 'ga': 60, 'ba': 20};
monster_bronzeclock.item = new Array({'id': 'I002Q', 'chance': 80}, {'id': 'I001R', 'chance': 10});
monster_phasebat = new Object();
monster_phasebat.sprite = 'phasebat';
monster_phasebat.mName = 'Phase Bat';
monster_phasebat.maxHP = 47;
monster_phasebat.weapSet = new Array('crimsonblast', 'wingstrike');
monster_phasebat.armor = 2;
monster_phasebat.accurate = 10;
monster_phasebat.reflex = 20;
monster_phasebat.recharge = 3;
monster_phasebat.xp = 25;
monster_phasebat.fameRating = 2;
monster_phasebat.credit = 40;
monster_phasebat.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'W01LR', 'chance': 10});
monster_drillfiend = new Object();
monster_drillfiend.sprite = 'drillfiend';
monster_drillfiend.mName = 'Drill Fiend';
monster_drillfiend.maxHP = 56;
monster_drillfiend.weapSet = new Array('drillmissile', 'burrowstrike');
monster_drillfiend.armor = 5;
monster_drillfiend.accurate = 20;
monster_drillfiend.reflex = -10;
monster_drillfiend.recharge = 2;
monster_drillfiend.xp = 30;
monster_drillfiend.fameRating = 2;
monster_drillfiend.credit = 80;
monster_drillfiend.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'W01SC', 'chance': 5});
monster_grindworm = new Object();
monster_grindworm.sprite = 'grindworm';
monster_grindworm.mName = 'Grind Worm';
monster_grindworm.maxHP = 500;
monster_grindworm.weapSet = new Array('grinder', 'garbagespray');
monster_grindworm.armor = 8;
monster_grindworm.accurate = 20;
monster_grindworm.reflex = -10;
monster_grindworm.recharge = 2.5;
monster_grindworm.xp = 200;
monster_grindworm.credit = 300;
monster_grindworm.fameRating = 8;
monster_grindworm.item = new Array({'id': 'I011Q', 'chance': 100});
monster_sproutfighter = new Object();
monster_sproutfighter.sprite = 'sproutwarrior';
monster_sproutfighter.mName = 'Sprout Fighter';
monster_sproutfighter.maxHP = 55;
monster_sproutfighter.weapSet = new Array('sproutfighter_att1', 'sproutfighter_att2');
monster_sproutfighter.armor = 4;
monster_sproutfighter.accurate = 15;
monster_sproutfighter.reflex = 15;
monster_sproutfighter.recharge = 2.5;
monster_sproutfighter.xp = 28;
monster_sproutfighter.credit = 59;
monster_sproutfighter.fameRating = 3;
monster_sproutfighter.color1 = {'ra': 40, 'ga': 40, 'ba': 60};
monster_sproutfighter.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_sproutfighter.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'C02AT', 'chance': 5});
monster_sproutberserker = new Object();
monster_sproutberserker.sprite = 'sproutwarrior';
monster_sproutberserker.mName = 'Sprout Berserker';
monster_sproutberserker.maxHP = 65;
monster_sproutberserker.weapSet = new Array('sproutberserker_att1', 'sproutberserker_att2');
monster_sproutberserker.armor = 3;
monster_sproutberserker.accurate = 5;
monster_sproutberserker.reflex = -10;
monster_sproutberserker.recharge = 3;
monster_sproutberserker.xp = 42;
monster_sproutberserker.credit = 48;
monster_sproutberserker.fameRating = 3;
monster_sproutberserker.color1 = {'ra': 80, 'ga': 40, 'ba': 30};
monster_sproutberserker.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_sproutberserker.item = new Array({'id': 'I002R', 'chance': 50}, {'id': 'C02AB', 'chance': 3});
monster_ironclock = new Object();
monster_ironclock.sprite = 'clock';
monster_ironclock.mName = 'Iron Clock Creep';
monster_ironclock.maxHP = 60;
monster_ironclock.weapSet = new Array('ironclock_att1');
monster_ironclock.armor = 6;
monster_ironclock.accurate = 20;
monster_ironclock.reflex = 0;
monster_ironclock.recharge = 2;
monster_ironclock.xp = 36;
monster_ironclock.fameRating = 3;
monster_ironclock.credit = 89;
monster_ironclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_ironclock.color2 = {'ra': 50, 'ga': 50, 'ba': 50};
monster_ironclock.item = new Array({'id': 'I002Q', 'chance': 50}, {'id': 'I001R', 'chance': 30});
monster_goldclock = new Object();
monster_goldclock.sprite = 'clock';
monster_goldclock.mName = 'Golden Clock Creep';
monster_goldclock.maxHP = 10;
monster_goldclock.weapSet = new Array('escape', 'goldclock_att1', 'escape');
monster_goldclock.armor = 20;
monster_goldclock.accurate = 20;
monster_goldclock.reflex = 60;
monster_goldclock.recharge = 3;
monster_goldclock.xp = 150;
monster_goldclock.fameRating = 5;
monster_goldclock.credit = 200;
monster_goldclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_goldclock.color2 = {'ra': 200, 'ga': 150, 'ba': 20};
monster_goldclock.item = new Array({'id': 'I003R', 'chance': 50}, {'id': 'W04MF', 'chance': 2});
monster_sproutlord = new Object();
monster_sproutlord.sprite = 'sproutlord';
monster_sproutlord.mName = 'Sprout Lord';
monster_sproutlord.maxHP = 2000;
monster_sproutlord.weapSet = new Array('slash');
monster_sproutlord.armor = 8;
monster_sproutlord.accurate = -15;
monster_sproutlord.reflex = -15;
monster_sproutlord.recharge = 3.5;
monster_sproutlord.xp = 700;
monster_sproutlord.fameRating = 15;
monster_sproutlord.credit = 1000;
monster_sproutlord.item = new Array({'id': 'A05', 'chance': 100});
monster_skullhead1 = new Object();
monster_skullhead1.sprite = 'skullhead';
monster_skullhead1.mName = 'Rogue Skullhead';
monster_skullhead1.maxHP = 82;
monster_skullhead1.weapSet = new Array('skullhead1_att1', 'skullhead1_att2');
monster_skullhead1.armor = 5;
monster_skullhead1.accurate = 10;
monster_skullhead1.reflex = 20;
monster_skullhead1.recharge = 2.5;
monster_skullhead1.color1 = {'ra': 60, 'ga': 40, 'ba': 20};
monster_skullhead1.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_skullhead1.xp = 56;
monster_skullhead1.fameRating = 4;
monster_skullhead1.credit = 78;
monster_skullhead1.item = new Array({'id': 'I002R', 'chance': 50}, {'id': 'W01MS', 'chance': 5});
monster_skullhead2 = new Object();
monster_skullhead2.sprite = 'skullhead';
monster_skullhead2.mName = 'Swashbuckler Skullhead';
monster_skullhead2.maxHP = 94;
monster_skullhead2.weapSet = new Array('skullhead1_att1', 'skullhead2_att2');
monster_skullhead2.armor = 8;
monster_skullhead2.accurate = 20;
monster_skullhead2.reflex = 10;
monster_skullhead2.recharge = 3;
monster_skullhead2.color1 = {'ra': 40, 'ga': 40, 'ba': 50};
monster_skullhead2.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_skullhead2.xp = 69;
monster_skullhead2.fameRating = 4;
monster_skullhead2.credit = 96;
monster_skullhead2.item = new Array({'id': 'I002R', 'chance': 50}, {'id': 'W02MS', 'chance': 3});
monster_pirate = new Object();
monster_pirate.sprite = 'pirate';
monster_pirate.mName = 'Black Bonehead';
monster_pirate.maxHP = 1200;
monster_pirate.weapSet = new Array('pirate_att1', 'pirate_att2', 'pirate_att2', 'pirate_att3');
monster_pirate.armor = 10;
monster_pirate.accurate = 20;
monster_pirate.reflex = 20;
monster_pirate.recharge = 3;
monster_pirate.xp = 400;
monster_pirate.fameRating = 12;
monster_pirate.credit = 500;
monster_pirate.item = new Array({'id': 'W03LM', 'chance': 80});
}
frame 1 {
function init() {
if (_root.areaTerrain == undefined) {
_root.areaTerrain = 'scrapyard';
}
combatBG.gotoAndStop(_root.areaTerrain);
_level0.bg._visible = false;
winLose._visible = false;
winLose.gotoAndStop(1);
total_xp = 0;
total_credit = 0;
total_item = 'Nothing';
total_hits = 0;
total_crit = 0;
current_combo = 0;
effectCount = 0;
effectPlay = 0;
dmgCount = 0;
lastEnemySelected = 1;
lastHeroSelected = 1;
msNum = _parent.msNum;
if (msNum == undefined) {
msNum = 'test_1';
}
bigFatReset();
heroSetup();
enemySetup();
populateItems();
makeKeys();
if (chatter_begin) {
_level0.talkingSystem.chatActivate(_level0.talkingSystem[chatter_begin]);
} else {
myState = 'heroSelect';
}
IA = setInterval(ATBup, 500);
}
function makeKeys() {
keylist = new Object();
keylist.onKeyUp = function () {
if (Key.getCode() == 32 and (myState == 'enemySelect' or myState == 'allySelect')) {
if (myState == 'enemySelect') {
enemyClick();
} else {
if (myState == 'allySelect') {
allyClick();
}
}
}
if (Key.getCode() == 37 and (myState == 'enemySelect' or myState == 'allySelect')) {
if (myState == 'enemySelect') {
var v1 = pointer.enemyIndex;
shiftLeft(v1);
} else {
if (myState == 'allySelect') {
var v1 = pointer.heroIndex;
shiftLeftAlly(v1);
}
}
}
if (Key.getCode() == 39 and (myState == 'enemySelect' or myState == 'allySelect')) {
if (myState == 'enemySelect') {
v1 = pointer.enemyIndex;
shiftRight(v1);
} else {
if (myState == 'allySelect') {
v1 = pointer.heroIndex;
shiftRightAlly(v1);
}
}
}
};
Key.addListener(keylist);
}
function shiftLeft(currI) {
switch (currI) {
case '1':
currI = '2';
break;
case '2':
currI = '4';
break;
case '3':
currI = '1';
break;
case '4':
currI = '5';
break;
case '5':
currI = '3';
}
if (this['enemy' + currI]._visible) {
pointer.shiftMe('enemy' + currI);
} else {
shiftLeft(currI);
}
}
function shiftLeftAlly(currI) {
switch (currI) {
case '1':
currI = '3';
break;
case '2':
currI = '1';
break;
case '3':
currI = '2';
}
if (this['hero' + currI]._visible) {
pointer.shiftMe('hero' + currI);
} else {
shiftLeftAlly(currI);
}
}
function shiftRight(currI) {
switch (currI) {
case '1':
currI = '3';
break;
case '2':
currI = '1';
break;
case '3':
currI = '5';
break;
case '4':
currI = '2';
break;
case '5':
currI = '4';
}
if (this['enemy' + currI]._visible) {
pointer.shiftMe('enemy' + currI);
} else {
shiftRight(currI);
}
}
function shiftRightAlly(currI) {
switch (currI) {
case '1':
currI = '2';
break;
case '2':
currI = '3';
break;
case '3':
currI = '1';
}
if (this['hero' + currI]._visible) {
pointer.shiftMe('hero' + currI);
} else {
shiftRightAlly(currI);
}
}
function heroSetup() {
var v10 = _level0.listallEquippedItems();
var v12 = _level0.getActiveCharacters();
if (v12) {
heroCount = v12.length;
var v9 = 0;
while (v9 < heroCount) {
var v2 = v12[v9].getAttribute('active');
this['hero' + v2].id = v12[v9].getAttribute('id');
var v4 = this['hero' + v2].id;
var v17 = _level0['char' + v4].portrait;
var v16 = _level0.getCharacterAttr(v4, 'botid');
var v19 = this['hero' + v2].hero_clip.getDepth();
this['hero' + v2].attachMovie(v16, 'hero_clip', v19);
this['hero' + v2].botid = v16;
this['hero' + v2].hName = v12[v9].getAttribute('name');
this['stats' + v2].hero_name.text = this['hero' + v2].hName;
this['stats' + v2].portrait.gotoAndStop(v17);
this['hero' + v2].portraitid = v17;
var v18 = v12[v9].getItemList('bot');
var v7 = v18[0].getItemList('parts');
var v3 = 0;
while (v3 < v7.length) {
var v6 = v7[v3].getAttribute('name');
v6 = v6.substr(-1, 1);
var v14 = v7[v3].getAttribute('colorr');
var v13 = v7[v3].getAttribute('colorb');
var v15 = v7[v3].getAttribute('colorg');
this['hero' + v2]['part' + v6 + 'r'] = v14;
this['hero' + v2]['part' + v6 + 'g'] = v15;
this['hero' + v2]['part' + v6 + 'b'] = v13;
++v3;
}
this['hero' + v2].xp = int(v12[v9].getAttribute('xp'));
this['hero' + v2].lvl = int(v12[v9].getAttribute('level'));
this['hero' + v2].baseRecharge = _level0['char' + v4].energy;
this['hero' + v2].recharge = this['hero' + v2].baseRecharge;
this['hero' + v2].eCap = _level0['char' + v4].capacity;
this['hero' + v2].maxHP = int(_level0.getCharacterAttr(v4, 'hp'));
this['hero' + v2].currHP = int(_level0.getCharacterAttr(v4, 'currhp'));
this['stats' + v2].health_bar.maxHP = this['hero' + v2].maxHP;
this['stats' + v2].health_bar.currHP = this['hero' + v2].currHP;
this['stats' + v2].health_bar.hpShade._width = (this['stats' + v2].health_bar.currHP / this['stats' + v2].health_bar.maxHP) * 133.7;
this['stats' + v2].health_bar.hpPreview._width = this['stats' + v2].health_bar.hpShade._width;
this['stats' + v2].health_bar.HPDisplay.text = this['stats' + v2].health_bar.currHP;
this['hero' + v2].baseArmor = _level0['char' + v4].defense;
this['hero' + v2].baseReflex = _level0['char' + v4].reflex;
this['hero' + v2].baseAccurate = _level0['char' + v4].accuracy;
this['hero' + v2].baseTech = _level0['char' + v4].technique;
this['hero' + v2].Shock = 1.5;
this['hero' + v2].Heat = 0.5;
this['hero' + v2].weapSet = new Array('None', 'None', 'None');
this['hero' + v2].itemSet = new Array();
var v8 = 0;
while (v8 < v10.length) {
if (v10[v8].getAttribute('equip') == v4) {
var v5 = v10[v8].getAttribute('id');
var v11 = _level0.getItemProp(v5);
if (v11.type == 'WEAPON') {
if (v10[v8].getAttribute('location') == 'right') {
this['hero' + v2].weapSet[0] = v5;
} else {
this['hero' + v2].weapSet[1] = v5;
}
} else {
if (v11.type == 'MODULE') {
this['hero' + v2].itemSet.push(v5);
}
}
}
++v8;
}
this['hero' + v2].currArmor = this['hero' + v2].baseArmor;
this['hero' + v2].currReflex = this['hero' + v2].baseReflex;
this['hero' + v2].currAccurate = this['hero' + v2].baseAccurate;
this['hero' + v2].currTech = this['hero' + v2].baseTech;
this['hero' + v2].rememX = this['hero' + v2]._x;
this['hero' + v2].rememY = this['hero' + v2]._y;
this['hero' + v2].dying = false;
this['hero' + v2].dmgCount = 0;
this['hero' + v2].weapUse = null;
if (this['hero' + v2].currHP > 0) {
this['hero' + v2]._visible = true;
} else {
this['hero' + v2].dying = true;
}
this['stats' + v2]._visible = true;
++v9;
}
} else {
falseHeroSetup();
}
}
function falseHeroSetup() {
heroCount = 3;
hero1.attachMovie('avenger', '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 = 'Hero';
hero2.hName = 'Calisto';
hero3.hName = 'Barrage';
hero1.id = 'A001';
hero1.botid = 'avenger';
hero2.id = 'A003';
hero2.botid = 'luna';
hero3.id = 'A002';
hero3.botid = 'stinger';
hero1.xp = 12;
hero2.xp = 560;
hero3.xp = 4840;
hero1.lvl = 10;
hero2.lvl = 10;
hero3.lvl = 10;
var v4 = 1;
while (v4 <= 3) {
var v3 = 1;
while (v3 <= 3) {
this['hero' + v4]['part' + v3 + 'r'] = _root['hero' + v4]['part' + v3 + 'r'];
this['hero' + v4]['part' + v3 + 'g'] = _root['hero' + v4]['part' + v3 + 'g'];
this['hero' + v4]['part' + v3 + 'b'] = _root['hero' + v4]['part' + v3 + 'b'];
++v3;
}
++v4;
}
stats1.hero_name.text = hero1.hName;
stats2.hero_name.text = hero2.hName;
stats3.hero_name.text = hero3.hName;
hero1.baseRecharge = 8;
hero2.baseRecharge = 8;
hero3.baseRecharge = 8;
hero1.eCap = 100;
hero2.eCap = 150;
hero3.eCap = 200;
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 = 1000;
hero1.currHP = hero1.maxHP;
hero2.maxHP = 3000;
hero2.currHP = hero2.maxHP;
hero3.maxHP = 4500;
hero3.currHP = hero3.maxHP;
hero1.dmgCount = 0;
hero2.dmgCount = 0;
hero3.dmgCount = 0;
hero1.baseArmor = 0;
hero1.currArmor = hero1.baseArmor;
hero2.baseArmor = 0;
hero2.currArmor = hero2.baseArmor;
hero3.baseArmor = 0;
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', 'None', 'cannon');
hero2.weapSet = new Array('bash', 'cannon', 'shoot');
hero3.weapSet = new Array('cannon', 'bash', 'shoot');
hero1.weapUse = null;
hero2.weapUse = null;
hero3.weapUse = null;
weapSelect1._visible = false;
weapSelect2._visible = false;
weapSelect3._visible = false;
var v5 = 1;
while (v5 <= heroCount) {
this['hero' + v5]._visible = true;
this['stats' + v5]._visible = true;
++v5;
}
}
function specialSetup(msRef) {
if (msRef.noescape) {
escape_btn.enabled = false;
escape_btn._alpha = 25;
} else {
escape_btn.enabled = true;
escape_btn._alpha = 75;
}
if (msRef.quest) {
myQuest = msRef.quest;
} else {
myQuest = false;
}
if (msRef.chatter_lose) {
chatter_lose = msRef.chatter_lose;
} else {
chatter_lose = false;
}
if (msRef.chatter_win) {
chatter_win = msRef.chatter_win;
} else {
chatter_win = false;
}
if (msRef.chatter_begin) {
chatter_begin = msRef.chatter_begin;
} else {
chatter_begin = false;
}
if (msRef.chatter_victory) {
chatter_victory = msRef.chatter_victory;
} else {
chatter_victory = false;
}
if (msRef.chatter_defeat) {
chatter_defeat = msRef.chatter_defeat;
} else {
chatter_defeat = false;
}
}
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];
specialSetup(msRef);
enemyCount = msRef.mMin + random(msRef.mMax - msRef.mMin + 1);
var v2 = 1;
while (v2 <= enemyCount) {
monsterPick = random(msRef.mArray[v2 - 1].length);
monsterRef = this['monster_' + msRef.mArray[v2 - 1][monsterPick]];
this['enemy' + v2].attachMovie(monsterRef.sprite, 'enemy_clip', this['enemy' + v2].enemy_clip.getDepth());
this['enemy' + v2]._y -= this['enemy' + v2].enemy_clip._height / 2 - int(monsterRef.yOffset);
this['enemy' + v2].rememY = this['enemy' + v2]._y;
this['enemy' + v2].sprite = monsterRef.sprite;
this['enemy' + v2].eName = monsterRef.mName;
this['enemy' + v2].fameRating = monsterRef.fameRating;
this['enemy' + v2].ATBspeed = monsterRef.recharge;
this['enemy' + v2].maxHP = monsterRef.maxHP;
this['enemy' + v2].currHP = this['enemy' + v2].maxHP;
this['enemy' + v2].baseArmor = monsterRef.armor;
this['enemy' + v2].currArmor = this['enemy' + v2].baseArmor;
this['enemy' + v2].baseReflex = monsterRef.reflex;
this['enemy' + v2].currReflex = this['enemy' + v2].baseReflex;
this['enemy' + v2].baseAccurate = monsterRef.accurate;
this['enemy' + v2].currAccurate = this['enemy' + v2].baseAccurate;
this['enemy' + v2].weapSet = monsterRef.weapSet;
this['enemy' + v2].credit = monsterRef.credit;
this['enemy' + v2].xp = monsterRef.xp;
if (monsterRef.Shock) {
this['enemy' + v2].Shock = monsterRef.Shock;
}
if (monsterRef.Heat) {
this['enemy' + v2].Heat = monsterRef.Heat;
}
if (monsterRef.Cold) {
this['enemy' + v2].Cold = monsterRef.Cold;
}
if (monsterRef.color1 != undefined) {
this['enemy' + v2].color1 = monsterRef.color1;
this['enemy' + v2].color2 = monsterRef.color2;
var v3 = new Color(this['enemy' + v2].enemy_clip.bot.part1);
v3.setTransform(monsterRef.color1);
v3 = new Color(this['enemy' + v2].enemy_clip.bot.part2);
v3.setTransform(monsterRef.color2);
}
if (monsterRef.item) {
var v4 = random(monsterRef.item.length);
this['enemy' + v2].itemDrop = monsterRef.item[v4];
} else {
this['enemy' + v2].itemDrop = false;
}
this['enemy' + v2]._visible = true;
total_credit += monsterRef.credit;
total_xp += monsterRef.xp;
++v2;
}
}
function ATBup() {
var i = 1;
while (i <= heroCount) {
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.currEnergyValue += (eval('hero' + i)).recharge;
(eval('stats' + i)).action_bar.currEnergy = ((eval('stats' + i)).action_bar.currEnergyValue / (eval('stats' + i)).action_bar.maxEnergyValue) * (eval('stats' + i)).action_bar.maxEnergy;
(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.currEnergyValue = (eval('stats' + i)).action_bar.fullEnergyValue;
(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') {
_level0.playSound('menuSound');
pointer.shiftMe('hero' + i);
heroClick();
generateSkills();
}
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 += 1;
(eval('stats' + i)).action_bar.currEnergyValue = ((eval('stats' + i)).action_bar.currEnergy / (eval('stats' + i)).action_bar.maxEnergy) * (eval('stats' + i)).action_bar.maxEnergyValue;
(eval('stats' + i)).action_bar.chargeEnergyBar();
}
if ((eval('stats' + i)).action_bar.currEnergy >= 125) {
if (!(eval('hero' + i)).fullyCharged) {
(eval('hero' + i)).fullyCharged = true;
generateSkills();
}
}
}
++i;
}
var j = 1;
while (j <= enemyCount) {
if ((eval('enemy' + j)).ATB < 100 and (myState == 'heroSelect' or myState == 'menuSelect') and !action) {
(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)).resetStats();
(eval('enemy' + j)).pickWeap();
var chiongSpeed = 20;
if ((eval('enemy' + j)).weapUse.chiongSpeed) {
chiongSpeed = (eval('enemy' + j)).weapUse.chiongSpeed;
}
if ((eval('enemy' + j)).weapUse.Escape) {
(eval('enemy' + j)).escapeAttempt();
} else {
if ((eval('enemy' + j)).weapUse.Defend) {
(eval('enemy' + j)).defendAttempt();
} else {
if ((eval('enemy' + j)).weapUse.Heal) {
(eval('enemy' + j)).healAttempt();
} else {
(eval('enemy' + j)).goTo(chiongSpeed);
}
}
}
}
}
++j;
}
}
function heroClick() {
if (myState == 'heroSelect' and pointer._visible) {
menu.myIndex = pointer.heroIndex;
(eval('hero' + menu.myIndex)).fullyCharged = false;
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;
this['weapSelect' + menu.myIndex].weapSlot2._visible = false;
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) {
_level0.playSound('confirmSound');
if (pointer.aType == 'regular') {
var chiongSpeed = 20;
if ((eval('hero' + menu.myIndex)).weapUse.chiongSpeed) {
chiongSpeed = (eval('hero' + menu.myIndex)).weapUse.chiongSpeed;
}
(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)).rememX + 50, (eval('enemy' + pointer.enemyIndex)).rememY + 50, 'charge', chiongSpeed);
} else {
if (pointer.aType == 'bighit') {
var heroid = this['hero' + menu.myIndex].id;
myState = 'megastrike';
(eval('stats' + menu.myIndex)).action_bar.deductPercent(85);
superScreen.attacker = menu.myIndex;
superScreen.attackee = pointer.enemyIndex;
(eval('hero' + menu.myIndex)).resetStats();
var superName = heroid + '_bighit';
clearInterval((eval('hero' + menu.myIndex)).superI);
(eval('hero' + menu.myIndex)).superI = setInterval(playSuper, 10, superName);
} else {
if (pointer.aType == 'bigbighit') {
var heroid = this['hero' + menu.myIndex].id;
myState = 'ultihit';
(eval('stats' + menu.myIndex)).action_bar.deductPercent(125);
superScreen.attacker = menu.myIndex;
superScreen.attackee = pointer.enemyIndex;
(eval('hero' + menu.myIndex)).resetStats();
var superName = heroid + '_bigbighit';
clearInterval((eval('hero' + menu.myIndex)).superI);
(eval('hero' + menu.myIndex)).superI = setInterval(playSuper, 10, superName);
} else {
if (pointer.aType == 'scan') {
myState = 'scanner';
scanner.scanUser = menu.myIndex;
scanner.scanTarget = pointer.enemyIndex;
scanner._x = this['enemy' + pointer.enemyIndex]._x;
scanner._y = this['enemy' + pointer.enemyIndex]._y;
(eval('stats' + menu.myIndex)).action_bar.deductPercent(50);
(eval('hero' + menu.myIndex)).resetStats();
clearInterval((eval('hero' + menu.myIndex)).superI);
(eval('hero' + menu.myIndex)).superI = setInterval(playScan, 10);
}
}
}
}
lastEnemySelected = pointer.enemyIndex;
cancel_btn._visible = false;
pointName._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) {
_level0.playSound('confirmSound');
this['hero' + pointer.heroIndex].healMe(pointer.amntHealed);
pointer.amntHealed = false;
(eval('stats' + menu.myIndex)).action_bar.deductPercent(65);
(eval('hero' + menu.myIndex)).resetStats();
myState = 'heroSelect';
pointer._visible = false;
cancel_btn._visible = false;
}
}
function areaAttack(type) {
if (myState == 'menuSelect') {
menu._visible = false;
this['weapSelect' + menu.myIndex]._visible = false;
escape_btn._visible = false;
combat_inventory._visible = false;
pointName._visible = false;
pointer._visible = false;
myState = 'areaAttack';
if (type == 'super') {
var heroid = this['hero' + menu.myIndex].id;
superScreen.attacker = menu.myIndex;
(eval('stats' + menu.myIndex)).action_bar.deductPercent(125);
(eval('hero' + menu.myIndex)).resetStats();
var superName = heroid + '_areasuper';
clearInterval((eval('hero' + menu.myIndex)).superI);
(eval('hero' + menu.myIndex)).superI = setInterval(playSuper, 10, superName);
}
}
}
function attack(type) {
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', 'lastSelect'));
pointer.aType = type;
}
}
function skipTurn() {
menu._visible = false;
this['weapSelect' + menu.myIndex]._visible = false;
escape_btn._visible = false;
combat_inventory._visible = false;
pointName._visible = false;
myState = 'heroSelect';
var v2 = menu.myIndex;
this['stats' + v2].gotoAndStop(1);
++v2;
while (v2 != menu.myIndex) {
if (v2 > heroCount) {
v2 = 1;
}
if (this['stats' + v2].action_bar.currEnergy >= 100) {
pointer.shiftMe('hero' + v2);
break;
}
++v2;
}
heroClick();
generateSkills();
}
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 superfix() {
if (myState == 'menuSelect') {
menu._visible = false;
this['weapSelect' + menu.myIndex]._visible = false;
(eval('stats' + menu.myIndex)).action_bar.deductPercent(85);
escape_btn._visible = false;
pointName._visible = false;
combat_inventory._visible = false;
myState = 'superfix';
pointer._visible = false;
var heroid = this['hero' + menu.myIndex].id;
superScreen.healer = menu.myIndex;
(eval('hero' + menu.myIndex)).resetStats();
var superName = heroid + '_massheal';
clearInterval((eval('hero' + menu.myIndex)).superI);
(eval('hero' + menu.myIndex)).superI = setInterval(playSuper, 10, superName);
}
}
function playSuper(superName) {
if (!action) {
action = 'hero' + menu.myIndex;
}
if (action == 'hero' + menu.myIndex) {
current_combo = 0;
var scanTarget = eval('enemy' + pointer.enemyIndex);
var heroScanner = eval('hero' + menu.myIndex);
if (pointer.aType == 'bigbighit' or pointer.aType == 'bighit') {
if (!heroScanner.dying and heroScanner._visible and scanTarget._visible and !scanTarget.dying) {
pointer.aType = false;
superScreen.gotoAndPlay(superName);
}
} else {
if (!heroScanner.dying and heroScanner._visible) {
superScreen.gotoAndPlay(superName);
}
}
clearInterval((eval('hero' + menu.myIndex)).superI);
}
}
function playScan() {
if (!action) {
action = 'hero' + menu.myIndex;
}
if (action == 'hero' + menu.myIndex) {
var scanTarget = eval('enemy' + pointer.enemyIndex);
var heroScanner = eval('hero' + menu.myIndex);
if (!heroScanner.dying and heroScanner._visible and scanTarget._visible and !scanTarget.dying) {
scanner.gotoAndPlay(2);
}
clearInterval((eval('hero' + menu.myIndex)).superI);
}
}
function changeWeap(heroVal, weapVal) {
var v5 = this['weapSelect' + heroVal]['weapSlot' + weapVal].wid;
var v4 = this['weapSelect' + heroVal]['weapSlot' + weapVal].weapName.text;
if (v4 == 'NONE') {
menu.attack_btn.enabled = false;
menu.attack_btn._alpha = 25;
this['hero' + heroVal].weapUse = false;
} else {
menu.attack_btn.enabled = true;
menu.attack_btn._alpha = 75;
this['hero' + heroVal].weapUse = this['weapon_' + v5];
}
var v6 = this['hero' + heroVal].id;
_level0['char' + v6].lastWeap = weapVal;
}
function generateSkills() {
var j = 1;
while (j <= 6) {
menu['skill' + j].gotoAndStop(1);
++j;
}
var specialArray = this['hero' + menu.myIndex].itemSet;
var skillCounter = 1;
menu['skill' + skillCounter].gotoAndStop('wait');
++skillCounter;
var i = 0;
while (i < specialArray.length) {
if (specialArray[i]) {
var siid = specialArray[i];
var sipara = _level0.invenitem[siid].parameters.split(':');
var siskill = _level0.invenitem[siid].skill;
switch (siskill) {
case 'selffix':
menu['skill' + skillCounter].gotoAndStop(siskill);
menu['skill' + skillCounter].maxVal = int(sipara[0]);
menu['skill' + skillCounter].minVal = int(sipara[1]);
break;
case 'repair':
menu['skill' + skillCounter].gotoAndStop(siskill);
menu['skill' + skillCounter].maxVal = int(sipara[0]);
menu['skill' + skillCounter].minVal = int(sipara[1]);
break;
case 'scan':
menu['skill' + skillCounter].gotoAndStop(siskill);
}
++skillCounter;
}
++i;
}
if ((eval('stats' + menu.myIndex)).action_bar.currEnergy >= (eval('stats' + menu.myIndex)).action_bar.maxEnergy) {
if (this['hero' + menu.myIndex].lvl >= 8) {
if (this['hero' + menu.myIndex].id == 'A003') {
menu['skill' + skillCounter].gotoAndStop('superfix');
++skillCounter;
} else {
if (this['hero' + menu.myIndex].id == 'A002') {
menu['skill' + skillCounter].gotoAndStop('bighit2');
++skillCounter;
} else {
if (this['hero' + menu.myIndex].id == 'A001' and this['hero' + menu.myIndex].botid == 'avenger') {
menu['skill' + skillCounter].gotoAndStop('bighit');
++skillCounter;
}
}
}
}
}
}
function createSpark(effectName, posX, posY, owner, dmg, hit, crit) {
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].crit = crit;
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, crit, pspeed) {
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].crit = crit;
this['effect' + effectCount]._x = posX;
this['effect' + effectCount]._y = posY;
var v2 = Math.atan2(targY - posY - 20, targX - posX) * 180 / Math.PI;
this['effect' + effectCount]._rotation = v2;
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, pspeed, effectCount);
++effectCount;
}
function setProj(pDestX, pDestY, pSpeed, 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');
clearInterval(this['PI' + effectPlay]);
this['PI' + effectPlay] = setInterval(moveProj, 25, effectPlay, this);
++effectPlay;
} else {
this['effect' + effectPlay].play();
++effectPlay;
}
if (effectPlay < effectCount) {
playSpark();
}
if (effectPlay > effectCount) {
effectPlay = effectCount;
}
}
function moveProj(pid, t) {
if (t['effect' + pid].moveCount < t['effect' + pid].timing) {
if (!t['effect' + pid].semi) {
t['effect' + pid]._x += t['effect' + pid].xSpeed;
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, crit) {
this.attachMovie('hitmiss', 'dmg' + dmgCount, 9000 + dmgCount);
var v3 = dmg;
if (crit) {
v3 *= 2;
}
this['dmg' + dmgCount].getDmg = Math.max(1, v3 - this[owner].currArmor);
this['dmg' + dmgCount].owner = owner;
if (random(100) > 50) {
var v5 = -1;
} else {
var v5 = 1;
}
this['dmg' + dmgCount]._x = posX + v5 * 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) {
var v4 = new Color(this[owner]);
v4.setRGB(16711680);
if (crit) {
this['dmg' + dmgCount]._xscale = 120;
this['dmg' + dmgCount]._yscale = 120;
this['dmg' + dmgCount].gotoAndStop('trigger_crit');
} else {
this['dmg' + dmgCount].gotoAndStop('trigger_hit');
}
this[owner].lifeLoss(this['dmg' + dmgCount].getDmg);
if (owner.substr(0, 1) == 'e') {
heroHits();
}
} else {
this['dmg' + dmgCount].gotoAndStop('trigger_miss');
}
++dmgCount;
}
function pickTarget(type, style) {
var v3 = 1;
if (style == 'lastSelect') {
if (type == 'hero') {
var v6 = heroCount + 1;
v3 = lastHeroSelected;
} else {
var v6 = enemyCount + 1;
v3 = lastEnemySelected;
}
var v5 = false;
if (this[type + v3].currHP > 0) {
v5 = true;
} else {
v3 = pickTarget(type, 'random');
if (this[type + v3].currHP > 0) {
v5 = true;
}
}
if (v5) {
return v3;
} else {
return 0;
}
} else {
if (style == 'first') {
if (type == 'hero') {
var v6 = heroCount + 1;
} else {
var v6 = enemyCount + 1;
}
var v5 = false;
var v4 = 1;
while (v4 < v6) {
if (this[type + v4].currHP > 0) {
v5 = true;
v3 = v4;
break;
}
++v4;
}
if (v5) {
return v3;
} else {
return 0;
}
} else {
if (style == 'lowest') {
if (type == 'hero') {
var v6 = heroCount + 1;
} else {
var v6 = enemyCount + 1;
}
var v7 = 9999999;
var v5 = false;
var v4 = 1;
while (v4 < v6) {
if (this[type + v4].currHP > 0) {
v5 = true;
}
if (this[type + v4].currHP < v7 and this[type + v4].currHP > 0) {
v7 = this[type + v4].currHP;
v3 = v4;
}
++v4;
}
if (v5) {
return v3;
} else {
return 0;
}
} else {
if (type == 'hero') {
var v6 = heroCount + 1;
} else {
var v6 = enemyCount + 1;
}
var v4 = 1;
while (v4 < v6) {
if (this[type + v4].currHP > 0) {
var v5 = true;
}
++v4;
}
v3 = Math.max(1, random(v6));
if (v5) {
while (v5) {
if (this[type + v3].currHP > 0) {
return v3;
break;
} else {
v3 = Math.max(1, random(v6));
}
}
} else {
return 0;
}
}
}
}
}
function heroHits() {
++current_combo;
if (current_combo < 10) {
hitcount.hcdisplay.counter.text = '0' + current_combo;
} else {
hitcount.hcdisplay.counter.text = current_combo;
}
if (hitcount._currentframe >= 6) {
hitcount.gotoAndPlay('normal');
} else {
if (hitcount._currentframe < 2) {
hitcount.gotoAndPlay('start');
}
}
}
function populateItems() {
tempInventory = _level0.listallItems();
myInventory = new Array();
var v1 = 0;
while (v1 < tempInventory.length) {
var v3 = tempInventory[v1].getAttribute('id');
var v2 = _level0.invenitem[v3].type;
if (v2 == 'USE' or v2 == 'USECOMBAT') {
myInventory.push(tempInventory[v1]);
}
++v1;
}
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 v4 = _level0.invenitem[combat_inventory.itemID].name;
combat_inventory.item_label.label_text.text = '<' + (combat_inventory.itemIndex + 1) + '> ' + v4 + ' x ' + combat_inventory.itemNum;
}
}
function dropItems() {
var v2 = 1;
while (v2 < enemyCount + 1) {
var v3 = this['enemy' + v2].itemDrop.id;
var v4 = _level0.getItemName(v3);
var v5 = this['enemy' + v2].itemDrop.chance;
if (random(10000) / 100 < v5) {
_level0.addItem(v3, 1, true);
if (total_item == 'Nothing') {
total_item = v4;
} else {
total_item = total_item + ', ' + v4;
}
}
++v2;
}
}
function useItem(id) {
var useType = _level0.invenitem[id].useid;
var usePara = _level0.invenitem[id].parameters;
if (useType !== 'addattribute') {
} else {
activateAttributeItem(usePara);
}
_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');
combat_inventory.itemNum = _level0.checkItemNumber(combat_inventory.itemID);
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 v2 = parameters.split(':');
var v7 = v2[0];
var v6 = v2[1];
var v5 = int(v2[2]);
var v3 = int(v2[3]);
var v4 = v3 + random(v5 - v3);
if (v6 == 'add') {
if (v7 !== 'currhp') {
} else {
this['hero' + menu.myIndex].healMe(v4);
}
}
}
function escapeSuccess() {
var v2 = 1;
while (v2 <= heroCount) {
var v4 = this['hero' + v2].id;
var v3 = this['hero' + v2].currHP;
if (v3 < 0) {
v3 = 0;
}
_level0.setCharacterAttr(v4, 'currhp', v3);
this['hero' + v2].hero_clip.gotoAndPlay('normal');
++v2;
}
bigFatReset();
escapeInt = false;
_level0.endCombat();
}
function escapeAttempt() {
if (random(100) < 60 and !action and checkLose()) {
escapeSuccess();
}
}
function escapeReady() {
var v2 = 1;
while (v2 <= 3) {
this['hero' + v2].recharge = 0;
this['weapSelect' + v2]._visible = false;
this['stats' + v2].gotoAndStop('normal');
this['stats' + v2].action_bar.currEnergy = 0;
this['stats' + v2].action_bar.currEnergyValue = 0;
this['stats' + v2].action_bar.chargeEnergyBar();
this['hero' + v2].hero_clip.gotoAndPlay('escape');
++v2;
}
pointer._visible = false;
escape_btn._visible = false;
pointName._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = true;
menu._visible = false;
clearInterval(escapeInt);
escapeInt = setInterval(escapeAttempt, 1000);
}
function checkLose() {
var v3 = false;
var v2 = 1;
while (v2 <= heroCount) {
if (this['hero' + v2]._visible and !this['hero' + v2].dying) {
v3 = true;
}
++v2;
}
if (!v3) {
if (chatter_defeat) {
myState = 'endCombat';
_level0.repair1();
_level0.talkingSystem.activateChat(_level0.talkingSystem[chatter_defeat]);
return v3;
}
if (chatter_lose) {
_level0.repair1();
chatter_leave = chatter_lose;
specialCase();
return v3;
}
loser();
}
return v3;
}
function specialCase() {
if (!winLose._visible) {
myState = 'endCombat';
winLose._visible = true;
clearInterval(IA);
winLose.gotoAndPlay('specialLose');
}
}
function loser() {
if (!winLose._visible) {
var v2 = 1;
while (v2 < 4) {
this['weapSelect' + v2]._visible = false;
++v2;
}
myState = 'endCombat';
winLose._visible = true;
clearInterval(IA);
winLose.gotoAndPlay('youLose');
}
}
function checkWin() {
var v3 = false;
var v2 = 1;
while (v2 < enemyCount + 1) {
if (this['enemy' + v2]._visible and !this['enemy' + v2].dying) {
v3 = true;
}
++v2;
}
if (!v3) {
if (chatter_victory) {
myState = 'endCombat';
if (chatter_win) {
chatter_leave = chatter_win;
}
_level0.talkingSystem.activateChat(_level0.talkingSystem[chatter_victory]);
} else {
winner();
}
}
}
function winner() {
if (!winLose._visible) {
menu._visible = false;
var v2 = 1;
while (v2 < 4) {
this['weapSelect' + v2]._visible = false;
++v2;
}
escape_btn._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = false;
myState = 'endCombat';
winLose._visible = true;
winLose.gotoAndPlay('youWin');
}
}
function bigFatReset() {
clearInterval(IA);
clearInterval(superI);
clearInterval(escapeInt);
Key.removeListener(keylist);
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].fullyCharged = 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].superI);
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].Shock = 1;
this['enemy' + j].Heat = 1;
this['enemy' + j].Cold = 1;
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;
superScreen.gotoAndStop(1);
escape_btn._visible = false;
combat_inventory._visible = false;
cancel_btn._visible = false;
menu._visible = false;
pointer._visible = false;
action = false;
myState = 'endCombat';
}
}
frame 1 {
init();
}
instance escape_btn of movieClip 3529 {
onClipEvent (release, keyPress 's') {
if (enabled) {
_level0.playSound('confirmSound');
_parent.escapeReady();
}
}
onClipEvent (rollOver) {
_level0.playSound('select');
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndPlay(1);
}
}
instance hero3 of movieClip 3846 {
onClipEvent (rollOver) {
if (_parent.stats3.action_bar.currEnergy >= 100 or _parent.myState == 'allySelect') {
_parent.pointer.shiftMe(this._name);
}
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
if (_parent.myState == 'allySelect') {
_parent.allyClick();
} else {
_parent.heroClick();
}
}
}
instance hero1 of movieClip 3846 {
onClipEvent (rollOver) {
if (_parent.stats1.action_bar.currEnergy >= 100 or _parent.myState == 'allySelect') {
_parent.pointer.shiftMe(this._name);
}
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
if (_parent.myState == 'allySelect') {
_parent.allyClick();
} else {
_parent.heroClick();
}
}
}
instance hero2 of movieClip 3846 {
onClipEvent (rollOver) {
if (_parent.stats2.action_bar.currEnergy >= 100 or _parent.myState == 'allySelect') {
_parent.pointer.shiftMe(this._name);
}
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
if (_parent.myState == 'allySelect') {
_parent.allyClick();
} else {
_parent.heroClick();
}
}
}
instance enemy4 of movieClip 3849 {
onClipEvent (rollOver) {
_parent.pointer.shiftMe(this._name);
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
_parent.enemyClick();
}
}
instance enemy2 of movieClip 3849 {
onClipEvent (rollOver) {
_parent.pointer.shiftMe(this._name);
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
_parent.enemyClick();
}
}
instance enemy1 of movieClip 3849 {
onClipEvent (rollOver) {
_parent.pointer.shiftMe(this._name);
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
_parent.enemyClick();
}
}
instance enemy3 of movieClip 3849 {
onClipEvent (rollOver) {
_parent.pointer.shiftMe(this._name);
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
_parent.enemyClick();
}
}
instance enemy5 of movieClip 3849 {
onClipEvent (rollOver) {
_parent.pointer.shiftMe(this._name);
}
onClipEvent (rollOut) {
if (_parent.myState != 'menuSelect') {
_parent.pointName._visible = false;
_parent.pointName.my_label.text = '';
_parent.pointer._visible = false;
}
}
onClipEvent (release) {
_parent.enemyClick();
}
}
}
movieClip 3863 {
frame 1 {
stop();
}
frame 2 {
ms_test_1 = new Object();
ms_test_1.mArray = new Array();
ms_test_1.mArray[0] = new Array('dummy');
ms_test_1.mMin = 1;
ms_test_1.mMax = 1;
ms_intro_1 = new Object();
ms_intro_1.mArray = new Array();
ms_intro_1.mArray[0] = new Array('dummy');
ms_intro_1.mMin = 1;
ms_intro_1.mMax = 1;
ms_intro_1.noescape = true;
ms_intro_1.chatter_win = 'calisto_0c';
ms_intro_2 = new Object();
ms_intro_2.mArray = new Array();
ms_intro_2.mArray[0] = new Array('gearfly');
ms_intro_2.mArray[1] = new Array('gearfly');
ms_intro_2.mArray[2] = new Array('gearfly');
ms_intro_2.mMin = 3;
ms_intro_2.mMax = 3;
ms_intro_2.noescape = true;
ms_intro_2.chatter_win = 'calisto_0f';
ms_intro_3 = new Object();
ms_intro_3.mArray = new Array();
ms_intro_3.mArray[0] = new Array('gearfly');
ms_intro_3.mArray[1] = new Array('gearfly');
ms_intro_3.mMin = 1;
ms_intro_3.mMax = 2;
ms_officer_boss = new Object();
ms_officer_boss.mArray = new Array();
ms_officer_boss.mArray[0] = new Array('officer');
ms_officer_boss.mMin = 1;
ms_officer_boss.mMax = 1;
ms_officer_boss.noescape = true;
ms_officer_boss.chatter_lose = 'lucille_2';
ms_officer_boss.chatter_win = 'lucille_3';
ms_officer_boss.music = 'boss2';
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', 'brassclock');
ms_scrapyard_2.mArray[1] = new Array('gearfly', 'brassclock');
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('rustfiend', 'brassclock');
ms_scrapyard_3.mArray[1] = new Array('rustfiend', 'brassclock');
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('brassclock');
ms_scrapyard_4.mArray[1] = new Array('rustfiend', 'brassclock');
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', 'rustfiend', 'brassclock');
ms_scrapyard_5.mArray[1] = new Array('gearfly', 'rustfiend', 'brassclock');
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', 'rustfiend', 'brassclock');
ms_scrapyard_6.mArray[1] = new Array('gearfly', 'rustfiend', 'brassclock');
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_scrapyard_boss.chatter_win = 'scrapyard_boss_4';
ms_scrapyard_boss.music = 'boss1';
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('gearfly', 'junglespider');
ms_jungle_3.mArray[1] = new Array('gearfly', 'junglespider');
ms_jungle_3.mArray[2] = new Array('gearfly', 'junglespider');
ms_jungle_3.mMin = 2;
ms_jungle_3.mMax = 3;
ms_jungle_4 = new Object();
ms_jungle_4.mArray = new Array();
ms_jungle_4.mArray[0] = new Array('junglespider', 'emeraldfiend');
ms_jungle_4.mArray[1] = new Array('gearfly', 'junglespider', 'emeraldfiend');
ms_jungle_4.mArray[2] = new Array('gearfly', 'junglespider', 'emeraldfiend');
ms_jungle_4.mArray[3] = new Array('gearfly', 'junglespider', 'emeraldfiend');
ms_jungle_4.mMin = 2;
ms_jungle_4.mMax = 4;
ms_azure_1 = new Object();
ms_azure_1.mArray = new Array();
ms_azure_1.mArray[0] = new Array('gearfly', 'hermitshark');
ms_azure_1.mArray[1] = new Array('gearfly');
ms_azure_1.mMin = 1;
ms_azure_1.mMax = 2;
ms_azure_2 = new Object();
ms_azure_2.mArray = new Array();
ms_azure_2.mArray[0] = new Array('hermitshark');
ms_azure_2.mMin = 1;
ms_azure_2.mMax = 1;
ms_azure_3 = new Object();
ms_azure_3.mArray = new Array();
ms_azure_3.mArray[0] = new Array('hermitshark');
ms_azure_3.mArray[1] = new Array('hermitshark');
ms_azure_3.mMin = 1;
ms_azure_3.mMax = 2;
ms_chef = new Object();
ms_chef.mArray = new Array();
ms_chef.mArray[0] = new Array('chef');
ms_chef.mMin = 1;
ms_chef.mMax = 1;
ms_chef.noescape = true;
ms_chef.music = 'boss1';
ms_lazlo_1 = new Object();
ms_lazlo_1.mArray = new Array();
ms_lazlo_1.mArray[0] = new Array('bronzeclock');
ms_lazlo_1.mArray[1] = new Array('bronzeclock');
ms_lazlo_1.mArray[2] = new Array('bronzeclock');
ms_lazlo_1.mMin = 1;
ms_lazlo_1.mMax = 3;
ms_lazlo_2 = new Object();
ms_lazlo_2.mArray = new Array();
ms_lazlo_2.mArray[0] = new Array('phasebat', 'bronzeclock');
ms_lazlo_2.mArray[1] = new Array('phasebat', 'bronzeclock');
ms_lazlo_2.mArray[2] = new Array('phasebat', 'bronzeclock');
ms_lazlo_2.mMin = 1;
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 = 1;
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', 'bronzeclock');
ms_lazlo_4.mArray[1] = new Array('phasebat', 'drillfiend', 'bronzeclock');
ms_lazlo_4.mArray[2] = new Array('phasebat', 'drillfiend', 'bronzeclock');
ms_lazlo_4.mArray[3] = new Array('phasebat', 'drillfiend', 'bronzeclock');
ms_lazlo_4.mMin = 2;
ms_lazlo_4.mMax = 3;
ms_worm_boss = new Object();
ms_worm_boss.mArray = new Array();
ms_worm_boss.mArray[0] = new Array('grindworm');
ms_worm_boss.mMin = 1;
ms_worm_boss.mMax = 1;
ms_worm_boss.noescape = true;
ms_worm_boss.music = 'boss1';
ms_iron_1 = new Object();
ms_iron_1.mArray = new Array();
ms_iron_1.mArray[0] = new Array('sproutfighter', 'sproutberserker');
ms_iron_1.mArray[1] = new Array('sproutfighter');
ms_iron_1.mArray[2] = new Array('sproutfighter');
ms_iron_1.mArray[3] = new Array('sproutfighter');
ms_iron_1.mMin = 2;
ms_iron_1.mMax = 4;
ms_iron_2 = new Object();
ms_iron_2.mArray = new Array();
ms_iron_2.mArray[0] = new Array('sproutfighter', 'ironclock', 'sproutberserker');
ms_iron_2.mArray[1] = new Array('sproutfighter', 'ironclock');
ms_iron_2.mArray[2] = new Array('sproutfighter', 'ironclock');
ms_iron_2.mArray[3] = new Array('sproutfighter');
ms_iron_2.mMin = 2;
ms_iron_2.mMax = 4;
ms_iron_3 = new Object();
ms_iron_3.mArray = new Array();
ms_iron_3.mArray[0] = new Array('sproutfighter', 'sproutberserker');
ms_iron_3.mArray[1] = new Array('sproutfighter');
ms_iron_3.mArray[2] = new Array('sproutfighter', 'ironclock');
ms_iron_3.mArray[3] = new Array('sproutfighter', 'brassclock', 'bronzeclock', 'ironclock', 'goldclock');
ms_iron_3.mMin = 2;
ms_iron_3.mMax = 4;
ms_iron_4 = new Object();
ms_iron_4.mArray = new Array();
ms_iron_4.mArray[0] = new Array('sproutfighter', 'sproutberserker');
ms_iron_4.mArray[1] = new Array('sproutfighter', 'sproutberserker');
ms_iron_4.mArray[2] = new Array('sproutfighter');
ms_iron_4.mArray[3] = new Array('sproutfighter');
ms_iron_4.mArray[4] = new Array('sproutfighter');
ms_iron_4.mMin = 4;
ms_iron_4.mMax = 5;
ms_iron_boss = new Object();
ms_iron_boss.mArray = new Array();
ms_iron_boss.mArray[0] = new Array('sproutlord');
ms_iron_boss.mArray[1] = new Array('sproutberserker');
ms_iron_boss.mArray[2] = new Array('sproutberserker');
ms_iron_boss.mMin = 3;
ms_iron_boss.mMax = 3;
ms_iron_boss.noescape = true;
ms_iron_boss.music = 'boss1';
ms_tidal_1 = new Object();
ms_tidal_1.mArray = new Array();
ms_tidal_1.mArray[0] = new Array('skullhead1');
ms_tidal_1.mArray[1] = new Array('skullhead1', 'ironclock');
ms_tidal_1.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_1.mArray[3] = new Array('ironclock');
ms_tidal_1.mMin = 2;
ms_tidal_1.mMax = 4;
ms_tidal_2 = new Object();
ms_tidal_2.mArray = new Array();
ms_tidal_2.mArray[0] = new Array('hermitshark', 'skullhead1');
ms_tidal_2.mArray[1] = new Array('skullhead1');
ms_tidal_2.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_2.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_2.mArray[4] = new Array('skullhead1', 'ironclock');
ms_tidal_2.mMin = 3;
ms_tidal_2.mMax = 5;
ms_tidal_3 = new Object();
ms_tidal_3.mArray = new Array();
ms_tidal_3.mArray[0] = new Array('skullhead1', 'hermitshark');
ms_tidal_3.mArray[1] = new Array('skullhead1', 'ironclock');
ms_tidal_3.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_3.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_3.mMin = 2;
ms_tidal_3.mMax = 4;
ms_tidal_4 = new Object();
ms_tidal_4.mArray = new Array();
ms_tidal_4.mArray[0] = new Array('skullhead1', 'skullhead2');
ms_tidal_4.mArray[1] = new Array('skullhead1', 'hermitshark');
ms_tidal_4.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_4.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_4.mMin = 3;
ms_tidal_4.mMax = 4;
ms_tidal_5 = new Object();
ms_tidal_5.mArray = new Array();
ms_tidal_5.mArray[0] = new Array('skullhead1', 'skullhead2');
ms_tidal_5.mArray[1] = new Array('skullhead1', 'skullhead2');
ms_tidal_5.mArray[2] = new Array('skullhead1', 'ironclock');
ms_tidal_5.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_5.mArray[4] = new Array('skullhead1', 'ironclock');
ms_tidal_5.mMin = 3;
ms_tidal_5.mMax = 5;
ms_tidal_6 = new Object();
ms_tidal_6.mArray = new Array();
ms_tidal_6.mArray[0] = new Array('skullhead2');
ms_tidal_6.mArray[1] = new Array('skullhead1', 'skullhead2');
ms_tidal_6.mArray[2] = new Array('skullhead1', 'skullhead2', 'ironclock');
ms_tidal_6.mArray[3] = new Array('skullhead1', 'ironclock');
ms_tidal_6.mArray[4] = new Array('skullhead1', 'ironclock');
ms_tidal_6.mMin = 4;
ms_tidal_6.mMax = 5;
ms_jack = new Object();
ms_jack.mArray = new Array();
ms_jack.mArray[0] = new Array('pirate');
ms_jack.mArray[1] = new Array('skullhead2');
ms_jack.mArray[2] = new Array('skullhead2');
ms_jack.mArray[3] = new Array('skullhead1');
ms_jack.mArray[4] = new Array('skullhead1');
ms_jack.mMin = 5;
ms_jack.mMax = 5;
ms_jack.noescape = true;
ms_jack.chatter_win = 'jack_1';
ms_jack.music = 'boss1';
monster_dummy = new Object();
monster_dummy.sprite = 'dummy';
monster_dummy.mName = 'Dummy';
monster_dummy.maxHP = 50;
monster_dummy.weapSet = new Array();
monster_dummy.armor = 1;
monster_dummy.accurate = 0;
monster_dummy.reflex = 5;
monster_dummy.recharge = 0;
monster_dummy.xp = 10;
monster_dummy.fameRating = 0;
monster_dummy.credit = 0;
monster_dummy.yOffset = 0;
monster_dummy.item = new Array();
monster_officer = new Object();
monster_officer.sprite = 'officer';
monster_officer.mName = 'Serra Superion';
monster_officer.maxHP = 5000;
monster_officer.weapSet = new Array('officer_att1', 'officer_att2', 'officer_att3');
monster_officer.armor = 10;
monster_officer.accurate = 60;
monster_officer.reflex = 35;
monster_officer.recharge = 3.5;
monster_officer.xp = 3000;
monster_officer.fameRating = 25;
monster_officer.credit = 5000;
monster_officer.yOffset = -20;
monster_officer.item = new Array({'id': 'W02SL', 'chance': 100});
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 = 0;
monster_gearfly.accurate = 10;
monster_gearfly.reflex = 10;
monster_gearfly.recharge = 2;
monster_gearfly.xp = 5;
monster_gearfly.fameRating = 1;
monster_gearfly.credit = 10;
monster_gearfly.item = new Array({'id': 'I000Q', 'chance': 60});
monster_brassclock = new Object();
monster_brassclock.sprite = 'clock';
monster_brassclock.mName = 'Brass Clock Creep';
monster_brassclock.maxHP = 20;
monster_brassclock.weapSet = new Array('brassclock_att1');
monster_brassclock.armor = 2;
monster_brassclock.accurate = 0;
monster_brassclock.reflex = 0;
monster_brassclock.recharge = 2.5;
monster_brassclock.xp = 7;
monster_brassclock.credit = 20;
monster_brassclock.fameRating = 1;
monster_brassclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_brassclock.color2 = {'ra': 100, 'ga': 80, 'ba': 60};
monster_brassclock.item = new Array({'id': 'I002Q', 'chance': 60});
monster_rustfiend = new Object();
monster_rustfiend.sprite = 'fiend';
monster_rustfiend.mName = 'Rust Fiend';
monster_rustfiend.maxHP = 25;
monster_rustfiend.weapSet = new Array('rustfiend_att1', 'rustfiend_att2');
monster_rustfiend.armor = 3;
monster_rustfiend.accurate = 5;
monster_rustfiend.reflex = 5;
monster_rustfiend.recharge = 2;
monster_rustfiend.xp = 10;
monster_rustfiend.fameRating = 1;
monster_rustfiend.credit = 30;
monster_rustfiend.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_rustfiend.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_rustfiend.item = new Array({'id': 'I001R', 'chance': 80}, {'id': 'A01', 'chance': 20});
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 = -5;
monster_derelict.reflex = -5;
monster_derelict.recharge = 2.5;
monster_derelict.xp = 100;
monster_derelict.fameRating = 5;
monster_derelict.credit = 200;
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 = 30;
monster_junglespider.weapSet = new Array('junglespider_att1', 'junglespider_att2');
monster_junglespider.armor = 3;
monster_junglespider.accurate = 0;
monster_junglespider.reflex = 10;
monster_junglespider.recharge = 2;
monster_junglespider.xp = 15;
monster_junglespider.fameRating = 2;
monster_junglespider.credit = 35;
monster_junglespider.color1 = {'ra': 50, 'ga': 100, 'ba': 80};
monster_junglespider.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_junglespider.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'G001', 'chance': 10});
monster_emeraldfiend = new Object();
monster_emeraldfiend.sprite = 'fiend';
monster_emeraldfiend.mName = 'Emerald Fiend';
monster_emeraldfiend.maxHP = 40;
monster_emeraldfiend.weapSet = new Array('emeraldfiend_att1', 'emeraldfiend_att2');
monster_emeraldfiend.armor = 4;
monster_emeraldfiend.accurate = 10;
monster_emeraldfiend.reflex = 0;
monster_emeraldfiend.recharge = 2.5;
monster_emeraldfiend.xp = 20;
monster_emeraldfiend.fameRating = 2;
monster_emeraldfiend.credit = 40;
monster_emeraldfiend.color1 = {'ra': 50, 'ga': 100, 'ba': 80};
monster_emeraldfiend.color2 = {'ra': 50, 'ga': 100, 'ba': 50};
monster_emeraldfiend.item = new Array({'id': 'I001R', 'chance': 30}, {'id': 'A01', 'chance': 5});
monster_hermitshark = new Object();
monster_hermitshark.sprite = 'hermitshark';
monster_hermitshark.mName = 'Hermit Shark';
monster_hermitshark.maxHP = 61;
monster_hermitshark.weapSet = new Array('sharkBite', 'laser');
monster_hermitshark.armor = 5;
monster_hermitshark.accurate = 15;
monster_hermitshark.reflex = 10;
monster_hermitshark.fameRating = 3;
monster_hermitshark.recharge = 2.5;
monster_hermitshark.xp = 30;
monster_hermitshark.credit = 72;
monster_hermitshark.item = new Array({'id': 'I001SB', 'chance': 50}, {'id': 'C02AF', 'chance': 5});
monster_chef = new Object();
monster_chef.sprite = 'chef';
monster_chef.mName = 'Steel Chef';
monster_chef.maxHP = 2000;
monster_chef.weapSet = new Array('chef_att1', 'chef_att2', 'chef_att3');
monster_chef.armor = 20;
monster_chef.accurate = 40;
monster_chef.reflex = 20;
monster_chef.recharge = 3;
monster_chef.xp = 1000;
monster_chef.fameRating = 15;
monster_chef.credit = 2000;
monster_chef.yOffset = 20;
monster_chef.item = new Array({'id': 'W04MS', 'chance': 100});
monster_bronzeclock = new Object();
monster_bronzeclock.sprite = 'clock';
monster_bronzeclock.mName = 'Bronze Clock Creep';
monster_bronzeclock.maxHP = 35;
monster_bronzeclock.weapSet = new Array('bronzeclock_att1');
monster_bronzeclock.armor = 3;
monster_bronzeclock.accurate = 20;
monster_bronzeclock.reflex = 0;
monster_bronzeclock.recharge = 2.5;
monster_bronzeclock.xp = 15;
monster_bronzeclock.fameRating = 1;
monster_bronzeclock.credit = 50;
monster_bronzeclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_bronzeclock.color2 = {'ra': 80, 'ga': 60, 'ba': 20};
monster_bronzeclock.item = new Array({'id': 'I002Q', 'chance': 80}, {'id': 'I001R', 'chance': 10});
monster_phasebat = new Object();
monster_phasebat.sprite = 'phasebat';
monster_phasebat.mName = 'Phase Bat';
monster_phasebat.maxHP = 47;
monster_phasebat.weapSet = new Array('crimsonblast', 'wingstrike');
monster_phasebat.armor = 2;
monster_phasebat.accurate = 10;
monster_phasebat.reflex = 20;
monster_phasebat.recharge = 3;
monster_phasebat.xp = 25;
monster_phasebat.fameRating = 2;
monster_phasebat.credit = 40;
monster_phasebat.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'W01LR', 'chance': 10});
monster_drillfiend = new Object();
monster_drillfiend.sprite = 'drillfiend';
monster_drillfiend.mName = 'Drill Fiend';
monster_drillfiend.maxHP = 56;
monster_drillfiend.weapSet = new Array('drillmissile', 'burrowstrike');
monster_drillfiend.armor = 5;
monster_drillfiend.accurate = 20;
monster_drillfiend.reflex = -10;
monster_drillfiend.recharge = 2;
monster_drillfiend.xp = 30;
monster_drillfiend.fameRating = 2;
monster_drillfiend.credit = 80;
monster_drillfiend.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'W01SC', 'chance': 5});
monster_grindworm = new Object();
monster_grindworm.sprite = 'grindworm';
monster_grindworm.mName = 'Grind Worm';
monster_grindworm.maxHP = 500;
monster_grindworm.weapSet = new Array('grinder', 'garbagespray');
monster_grindworm.armor = 8;
monster_grindworm.accurate = 20;
monster_grindworm.reflex = -10;
monster_grindworm.recharge = 2.5;
monster_grindworm.xp = 200;
monster_grindworm.credit = 300;
monster_grindworm.fameRating = 8;
monster_grindworm.item = new Array({'id': 'I011Q', 'chance': 100});
monster_sproutfighter = new Object();
monster_sproutfighter.sprite = 'sproutwarrior';
monster_sproutfighter.mName = 'Sprout Fighter';
monster_sproutfighter.maxHP = 55;
monster_sproutfighter.weapSet = new Array('sproutfighter_att1', 'sproutfighter_att2');
monster_sproutfighter.armor = 4;
monster_sproutfighter.accurate = 15;
monster_sproutfighter.reflex = 15;
monster_sproutfighter.recharge = 2.5;
monster_sproutfighter.xp = 28;
monster_sproutfighter.credit = 59;
monster_sproutfighter.fameRating = 3;
monster_sproutfighter.color1 = {'ra': 40, 'ga': 40, 'ba': 60};
monster_sproutfighter.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_sproutfighter.item = new Array({'id': 'I001R', 'chance': 50}, {'id': 'C02AT', 'chance': 5});
monster_sproutberserker = new Object();
monster_sproutberserker.sprite = 'sproutwarrior';
monster_sproutberserker.mName = 'Sprout Berserker';
monster_sproutberserker.maxHP = 65;
monster_sproutberserker.weapSet = new Array('sproutberserker_att1', 'sproutberserker_att2');
monster_sproutberserker.armor = 3;
monster_sproutberserker.accurate = 5;
monster_sproutberserker.reflex = -10;
monster_sproutberserker.recharge = 3;
monster_sproutberserker.xp = 42;
monster_sproutberserker.credit = 48;
monster_sproutberserker.fameRating = 3;
monster_sproutberserker.color1 = {'ra': 80, 'ga': 40, 'ba': 30};
monster_sproutberserker.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_sproutberserker.item = new Array({'id': 'I002R', 'chance': 50}, {'id': 'C02AB', 'chance': 3});
monster_ironclock = new Object();
monster_ironclock.sprite = 'clock';
monster_ironclock.mName = 'Iron Clock Creep';
monster_ironclock.maxHP = 60;
monster_ironclock.weapSet = new Array('ironclock_att1');
monster_ironclock.armor = 6;
monster_ironclock.accurate = 20;
monster_ironclock.reflex = 0;
monster_ironclock.recharge = 2;
monster_ironclock.xp = 36;
monster_ironclock.fameRating = 3;
monster_ironclock.credit = 89;
monster_ironclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_ironclock.color2 = {'ra': 50, 'ga': 50, 'ba': 50};
monster_ironclock.item = new Array({'id': 'I002Q', 'chance': 50}, {'id': 'I001R', 'chance': 30});
monster_goldclock = new Object();
monster_goldclock.sprite = 'clock';
monster_goldclock.mName = 'Golden Clock Creep';
monster_goldclock.maxHP = 10;
monster_goldclock.weapSet = new Array('escape', 'goldclock_att1', 'escape');
monster_goldclock.armor = 20;
monster_goldclock.accurate = 20;
monster_goldclock.reflex = 60;
monster_goldclock.recharge = 3;
monster_goldclock.xp = 150;
monster_goldclock.fameRating = 5;
monster_goldclock.credit = 200;
monster_goldclock.color1 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_goldclock.color2 = {'ra': 200, 'ga': 150, 'ba': 20};
monster_goldclock.item = new Array({'id': 'I003R', 'chance': 50}, {'id': 'W04MF', 'chance': 2});
monster_sproutlord = new Object();
monster_sproutlord.sprite = 'sproutlord';
monster_sproutlord.mName = 'Sprout Lord';
monster_sproutlord.maxHP = 2000;
monster_sproutlord.weapSet = new Array('slash');
monster_sproutlord.armor = 8;
monster_sproutlord.accurate = -15;
monster_sproutlord.reflex = -15;
monster_sproutlord.recharge = 3.5;
monster_sproutlord.xp = 700;
monster_sproutlord.fameRating = 15;
monster_sproutlord.credit = 1000;
monster_sproutlord.item = new Array({'id': 'A05', 'chance': 100});
monster_skullhead1 = new Object();
monster_skullhead1.sprite = 'skullhead';
monster_skullhead1.mName = 'Rogue Skullhead';
monster_skullhead1.maxHP = 82;
monster_skullhead1.weapSet = new Array('skullhead1_att1', 'skullhead1_att2');
monster_skullhead1.armor = 5;
monster_skullhead1.accurate = 10;
monster_skullhead1.reflex = 20;
monster_skullhead1.recharge = 2.5;
monster_skullhead1.color1 = {'ra': 60, 'ga': 40, 'ba': 20};
monster_skullhead1.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_skullhead1.xp = 56;
monster_skullhead1.fameRating = 4;
monster_skullhead1.credit = 78;
monster_skullhead1.item = new Array({'id': 'I002R', 'chance': 50}, {'id': 'W01MS', 'chance': 5});
monster_skullhead2 = new Object();
monster_skullhead2.sprite = 'skullhead';
monster_skullhead2.mName = 'Swashbuckler Skullhead';
monster_skullhead2.maxHP = 94;
monster_skullhead2.weapSet = new Array('skullhead1_att1', 'skullhead2_att2');
monster_skullhead2.armor = 8;
monster_skullhead2.accurate = 20;
monster_skullhead2.reflex = 10;
monster_skullhead2.recharge = 3;
monster_skullhead2.color1 = {'ra': 40, 'ga': 40, 'ba': 50};
monster_skullhead2.color2 = {'ra': 100, 'ga': 100, 'ba': 100};
monster_skullhead2.xp = 69;
monster_skullhead2.fameRating = 4;
monster_skullhead2.credit = 96;
monster_skullhead2.item = new Array({'id': 'I002R', 'chance': 50}, {'id': 'W02MS', 'chance': 3});
monster_pirate = new Object();
monster_pirate.sprite = 'pirate';
monster_pirate.mName = 'Black Bonehead';
monster_pirate.maxHP = 1200;
monster_pirate.weapSet = new Array('pirate_att1', 'pirate_att2', 'pirate_att2', 'pirate_att3');
monster_pirate.armor = 10;
monster_pirate.accurate = 20;
monster_pirate.reflex = 20;
monster_pirate.recharge = 3;
monster_pirate.xp = 400;
monster_pirate.fameRating = 12;
monster_pirate.credit = 500;
monster_pirate.item = new Array({'id': 'W03LM', 'chance': 80});
animationcomplete = false;
combatstart._visible = true;
combatstart.gotoAndStop(1);
combatstart.play();
stop();
onEnterFrame = function () {
if (animationcomplete) {
_level0.lighting._visible = false;
_level0.bgDown._visible = false;
_level0.bgRight._visible = false;
_level0.bgUp._visible = false;
_level0.bgLeft._visible = false;
_level0.areaNameClip._visible = false;
_level0.canopyClip._visible = false;
_level0.combatmusic = this['ms_' + msNum].music;
_level0.battleMusic();
play();
combatstart._visible = false;
delete onEnterFrame;
}
};
}
frame 40 {
stop();
}
}
button 3866 {
on (release) {
this.nextFrame();
}
}
button 3867 {
on (release) {
this.prevFrame();
}
}
button 3868 {
on (release) {
this._visible = false;
_global.action = 'walking';
}
}
movieClip 3872 {
}
movieClip 3876 {
frame 1 {
stop();
}
}
movieClip 3880 {
}
button 3888 {
on (release) {
_global.action = 'talking';
_level0.help._visible = true;
}
}
button 3889 {
on (release) {
switch (_quality) {
case 'LOW':
_quality = 'MEDIUM';
break;
case 'MEDIUM':
_quality = 'HIGH';
break;
case 'HIGH':
_quality = 'LOW';
break;
default:
_quality = 'MEDIUM';
}
}
}
button 3892 {
on (release) {
_global.musicSetting = !_global.musicSetting;
if (!_global.musicSetting) {
var c = new Color(musicbtn);
c.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
} else {
var c = new Color(musicbtn);
c.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
_level0.currentMusic = -1;
_level0.bgMusic(_level0.areaMusic);
}
}
}
button 3896 {
on (release) {
_level0.playSound('select');
_level0.inventory._visible = true;
_global.action = 'talking';
}
}
movieClip 3899 {
}
movieClip 3903 {
}
movieClip 3906 {
frame 1 {
stop();
}
frame 1 {
buttonblocker.enabled = false;
}
instance closebutt of movieClip 3903 {
onClipEvent (release) {
_level0.playSound('cancelSound');
_parent._visible = false;
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance closebutton of movieClip 464 {
onClipEvent (press) {
_level0.playSound('cancelSound');
_parent._visible = false;
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
}
movieClip 3911 {
frame 1 {
stop();
}
frame 35 {
stop();
}
}
movieClip 3914 {
frame 1 {
stop();
}
frame 35 {
stop();
}
}
movieClip 3917 {
frame 1 {
stop();
}
frame 35 {
stop();
}
}
movieClip 3919 {
frame 1 {
stop();
}
instance closebutton of movieClip 464 {
onClipEvent (press) {
_level0.playSound('cancelSound');
_parent._visible = false;
}
}
}
movieClip 3922 {
frame 1 {
stop();
}
frame 35 {
stop();
}
}
movieClip 3925 {
frame 1 {
stop();
}
frame 35 {
stop();
}
}
movieClip 3960 {
frame 1 {
stop();
}
}
movieClip 3970 {
frame 1 {
stop();
dropbutt._visible = false;
}
}
button 3971 {
on (rollOver) {
var txter = 'Determines evasion.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', refbutt._x + 25, refbutt._y + 5, refbutt._width, refbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3972 {
on (rollOver) {
var txter = 'Chance of hitting enemies.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', accbutt._x + 25, accbutt._y + 5, accbutt._width, accbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3973 {
on (rollOver) {
var txter = 'Increases damage range.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', tecbutt._x + 25, tecbutt._y + 5, tecbutt._width, tecbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3974 {
on (rollOver) {
var txter = 'Reduces damage from enemies.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', defbutt._x + 25, defbutt._y + 5, defbutt._width, defbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3975 {
on (rollOver) {
var txter = 'How much damage a MAW can take.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', hpbutt._x + 25, hpbutt._y + 5, hpbutt._width, hpbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3976 {
on (rollOver) {
var txter = 'Energy recharge rate.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', enebutt._x + 25, enebutt._y + 5, enebutt._width, enebutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3977 {
on (rollOver) {
var txter = 'Energy capacity of the MAW.';
txtbubble.popup_text(txter, 150, '0xD6E1E9', capbutt._x + 25, capbutt._y + 5, capbutt._width, capbutt._height, true);
txtbubble.settimer(90);
}
on (rollOut) {
txtbubble._visible = false;
}
}
button 3978 {
on (rollOver) {
var levelxp = _root.xpArray[int(this.selectedclip.details.getAttribute('level')) - 1];
var currxp = parseInt(this.selectedclip.details.getAttribute('xp'));
var txter = 'You need ' + (levelxp - currxp) + ' more experience points to reach level ' + (int(this.selectedclip.details.getAttribute('level')) + 1) + '.';
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;
}
}
movieClip 3983 {
}
movieClip 3985 {
}
movieClip 3988 {
frame 1 {
stop();
}
frame 4 {
stop();
}
}
movieClip 3995 {
frame 1 {
stop();
}
frame 5 {
stop();
}
frame 9 {
stop();
}
}
movieClip 3998 {
}
movieClip 3999 {
}
movieClip 4003 {
instance slider of movieClip 471 {
onClipEvent (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 v3 = (this._y - 28) * (_parent.inventorycontent._height - _parent.maskbox._height + 20) / (_parent.maskbox._height - this._height);
_parent.inventorycontent._y = 25 - v3;
}
};
}
onClipEvent (release) {
this.stopDrag();
this.onEnterFrame = function () {};
}
}
}
movieClip 4035 {
}
movieClip 4037 {
frame 1 {
stop();
}
}
movieClip 4041 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4054 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4057 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 4059 {
frame 1 {
txtbubble._visible = false;
errtxtbubble._visible = false;
stop();
}
instance statpt of movieClip 3983 {
onClipEvent (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 technique_add of movieClip 3985 {
onClipEvent (press) {
_parent.addstr();
}
}
instance accuracy_add of movieClip 3985 {
onClipEvent (press) {
_parent.addstr();
}
}
instance reflex_add of movieClip 3985 {
onClipEvent (press) {
_parent.addstr();
}
}
}
movieClip 4060 {
frame 1 {
alertbox._visible = false;
stop();
}
frame 1 {
menuDialog._visible = false;
}
instance system_butt of movieClip 3911 {
onClipEvent (press) {
_level0.playSound('confirmSound');
this.play();
_root.questlog._visible = false;
_root.savebox._visible = true;
_root.savebox.gotoAndStop(7);
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance quest_butt of movieClip 3914 {
onClipEvent (release) {
this.play();
_level0.playSound('confirmSound');
_level0.showquestlog();
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance system_butt of movieClip 3917 {
onClipEvent (press) {
if (_root.encounterRate == 0) {
_level0.playSound('confirmSound');
this.play();
_root.questlog._visible = false;
_root.preparesave();
} else {
_level0.playSound('error');
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);
}
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance of movieClip 3922 {
onClipEvent (release) {
this.play();
_level0.playSound('confirmSound');
_parent.alertbox.swapDepths(_parent.getNextHighestDepth());
_parent.alertbox._visible = true;
_root.questlog._visible = false;
_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();
};
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance of movieClip 3925 {
onClipEvent (press) {
_level0.playSound('confirmSound');
this.play();
_root.questlog._visible = false;
_root.prepareload();
}
onClipEvent (rollOver) {
_level0.playSound('select');
}
}
instance closebutton of movieClip 464 {
onClipEvent (press) {
_level0.playSound('cancelSound');
_parent._visible = false;
_level0.savebox._visible = false;
_global.action = 'walking';
}
}
frame 2 {
stop();
}
}
movieClip 4063 {
}
movieClip 4066 {
}
movieClip 4068 {
}
movieClip 4071 {
}
movieClip 4072 {
}
movieClip 4075 {
}
movieClip 4076 {
}
movieClip 4077 {
}
movieClip 4084 {
frame 1 {
stop();
}
frame 59 {
gotoAndStop(1);
}
}
movieClip 4088 {
frame 1 {
stop();
}
frame 30 {
stop();
}
frame 60 {
stop();
}
frame 90 {
stop();
}
frame 91 {
stop();
}
}
movieClip 4091 {
frame 1 {
stop();
}
}
movieClip 4094 {
frame 1 {
if (_level0.hh >= 8 && _level0.hh < 19) {
stop();
} else {
gotoAndStop('night');
}
}
}
movieClip 4099 {
}
movieClip 4106 {
}
movieClip 4109 {
}
movieClip 4110 {
frame 1 {
if (_level0.hh >= 8 && _level0.hh <= 18) {
gotoAndPlay('open');
} else {
gotoAndPlay('close');
}
}
frame 14 {
gotoAndPlay('open');
}
frame 85 {
gotoAndPlay('close');
}
}
movieClip 4127 {
}
movieClip 4128 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 4134 {
}
movieClip 4158 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('cut');
stop();
}
}
movieClip 4161 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('cut');
stop();
}
}
movieClip 4170 {
frame 60 {
stop();
_parent.gotoAndStop('blank');
}
}
movieClip 4177 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 4182 {
}
movieClip 4191 {
}
movieClip 4201 {
frame 1 {
stop();
}
frame 9 {
stop();
}
frame 12 {
stop();
}
}
movieClip 4204 {
frame 1 {
stop();
}
frame 31 {
_level0.playSound('smash');
}
frame 35 {
stop();
}
frame 38 {
stop();
}
}
movieClip 4208 {
frame 1 {
stop();
}
frame 2 {
_level0.playSound('explode');
}
frame 5 {
_level0.playSound('explode');
}
frame 8 {
_level0.playSound('explode');
}
frame 19 {
_level0.playSound('smash');
}
frame 25 {
stop();
}
}
movieClip 4264 {
frame 1 {
stop();
}
frame 33 {
stop();
}
frame 150 {
stop();
}
frame 176 {
stop();
}
}
movieClip 4265 {
frame 1 {
stop();
}
}
movieClip 4268 {
}
movieClip 4269 {
}
movieClip 4278 {
}
movieClip 4279 {
frame 1 {
stop();
}
frame 7 {
stop();
}
}
movieClip 4280 tile {
}
movieClip 4282 {
}
movieClip 4283 {
}
movieClip 4294 {
frame 1 {
stop();
}
}
movieClip 4297 {
}
movieClip 4298 {
}
movieClip 4309 {
}
movieClip 4329 {
frame 1 {
stop();
}
frame 14 {
v;
}
}
movieClip 4362 {
}
movieClip 4366 {
}
movieClip 4369 {
}
movieClip 4378 {
}
movieClip 4420 {
frame 1 {
stop();
}
}
movieClip 4429 {
frame 1 {
stop();
}
frame 9 {
stop();
}
frame 19 {
stop();
}
frame 30 {
stop();
}
}
frame 33 {
gotoAndStop(32);
}
frame 34 {
function musicOn() {
_global.musicSetting = true;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 100, 'ga': 100, 'ba': 100});
if (_level0.combatSceneClip._visible) {
_level0.battleMusic();
} else {
currentMusic = '';
_level0.bgMusic(areaMusic);
}
}
function musicOff() {
_global.musicSetting = false;
var v2 = new Color(worldMenu.musicbtn);
v2.setTransform({'ra': 0, 'ga': 0, 'ba': 0});
stopAllSounds();
}
function bgMusic(newMusic, noloop) {
if (_global.musicSetting) {
if (currentMusic != newMusic) {
if (newMusic == undefined) {
newMusic = _root.areaMusic;
}
currentMusic = newMusic;
stopAllSounds();
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
}
function battleMusic() {
if (_global.musicSetting) {
if (_level0.combatmusic) {
currentMusic = _level0.combatmusic;
} else {
currentMusic = 'battle' + (random(2) + 1);
}
music.gotoAndStop(1);
music.gotoAndStop(currentMusic);
}
}
function playSound(s) {
if (_global.musicSetting) {
sflag = !sflag;
if (sflag) {
soundfx.gotoAndStop(1);
soundfx.gotoAndStop(s);
} else {
soundfx2.gotoAndStop(1);
soundfx2.gotoAndStop(s);
}
}
}
sflag = true;
currentMusic = '';
areaMusic = 'ending';
bgMusic('ending');
}
movieClip 4435 {
}