Frame 1
if (getBytesLoaded() >= getBytesTotal()) {
_global.musicSetting = true;
gotoAndPlay (3);
} else {
loaded.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
var so = SharedObject.getLocal("mobileweapon");
if (so.data.credits == undefined) {
load_btn._visible = false;
} else {
load_btn._visible = true;
}
function tylerLink() {
getURL ("http://www.mobileweapon.net", "_blank");
}
MENU.customItems.push(tylerLink);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
customMenuItem1 = new ContextMenuItem("Copyright(c)2005-2006. All rights reserved.", tylerLink);
customMenuItem2 = new ContextMenuItem("Concept by TYLER Projects| Games Studio", tylerLink);
customMenuItem3 = new ContextMenuItem("Visit our website > http://www.mobileweapon.net", tylerLink);
MENU.customItems.push(customMenuItem1);
MENU.customItems.push(customMenuItem2);
MENU.customItems.push(customMenuItem3);
_root.menu = MENU;
function playSound(s) {
_root.soundfx.gotoAndPlay(s);
}
stopAllSounds();
if (_global.musicSetting) {
music.gotoAndStop("intro");
}
_global.pilotName = "Tyler";
_global.mawName = "Avenger";
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stopAllSounds();
nextFrame();
Frame 14
if (_global.musicSetting) {
music.gotoAndStop("morning");
}
nextFrame();
Frame 15
function dialogNext() {
dialog.gotoAndStop(step);
}
stop();
step = 1;
prev_btn._visible = false;
pilotName.text = _global.pilotName;
mawName.text = _global.mawName;
Frame 16
prev_btn._visible = true;
Frame 19
inv1Name = "Blade2";
inv2Name = "Gun2";
inv3Name = "Suit2";
blade = "Blade1";
gun = "Gun1";
suit = "Suit1";
Frame 20
inv1Name = "Blade2";
inv2Name = "Gun2";
inv3Name = "Suit2";
blade = "Blade1";
gun = "Gun1";
suit = "Suit1";
tutWin.equip1.enabled = false;
tutWin.equip2.enabled = false;
tutWin.equip3.enabled = false;
Frame 25
menuBar.gotoAndStop(2);
Frame 27
isometricAS = function (maxx, maxz) {
this.maxx = maxx;
this.maxz = maxz;
this.theta = 30;
this.alpha = 45;
this.theta = this.theta * (Math.PI/180);
this.alpha = this.alpha * (Math.PI/180);
this.sinTheta = Math.sin(this.theta);
this.cosTheta = Math.cos(this.theta);
this.sinAlpha = Math.sin(this.alpha);
this.cosAlpha = Math.cos(this.alpha);
};
isometricAS.prototype.mapToScreen = function (xpp, ypp, zpp) {
var _local3 = ypp;
var _local4 = (xpp * this.cosAlpha) + (zpp * this.sinAlpha);
var _local2 = (zpp * this.cosAlpha) - (xpp * this.sinAlpha);
var _local6 = _local4;
var _local5 = (_local3 * this.cosTheta) - (_local2 * this.sinTheta);
var _local8 = (_local2 * this.cosTheta) + (_local3 * this.sinTheta);
return([_local6, _local5]);
};
isometricAS.prototype.mapToIsoWorld = function (screenX, screenY) {
var _local2 = ((screenX / this.cosAlpha) - (screenY / (this.sinAlpha * this.sinTheta))) * (1 / ((this.cosAlpha / this.sinAlpha) + (this.sinAlpha / this.cosAlpha)));
var _local3 = (1 / this.cosAlpha) * (screenX - (_local2 * this.sinAlpha));
return([_local3, _local2]);
};
isometricAS.prototype.calculateDepth = function (x, y, z) {
var _local4 = 5;
x = Math.abs(x) * _local4;
y = Math.abs(y);
z = Math.abs(z) * _local4;
var _local2 = this.maxx;
var _local5 = this.maxz;
var _local7 = (_local2 * (_local5 - 1)) + x;
var _local6 = ((_local2 * (z - 1)) + x) + (_local7 * y);
return(_local6);
};
function map1() {
clearWorld("Turf");
_root.area = "Town";
encounterRate = 0;
mapLocation = 1;
areaLocation = 1;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 9, 5, 2, "Concrete");
largeObject(8, 2, 1, 2, "Object");
makeObject(10, 2, "house1d");
makeObject(10, 1, "house1e");
makeDoor(8, 3, "house1a", 111);
makeDoor(9, 3, "House1b", 111);
makeDoor(10, 3, "house1c", 111);
makeObject(8, 7, "Table");
makeObject(7, 7, "Chair");
makeObject(3, 4, "Lamp");
makeObject(3, 7, "Lamp");
makeObject(2, 9, "Tree");
standardPathway("left", 21);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map21() {
clearWorld("Turf");
_root.area = "City (area 1)";
encounterRate = 0;
mapLocation = 2;
areaLocation = 21;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 10, 5, 2, "Concrete");
changeManyGroundTiles(5, 2, 1, 4, "Concrete");
makeObject(4, 7, "Lamp");
makeObject(7, 4, "Lamp");
makeObject(4, 4, "Chair");
makeObject(9, 9, "Tree");
makeObject(1, 10, "Tree");
standardPathway("left", 24);
standardPathway("right", 1);
standardPathway("up", 22);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map22() {
clearWorld("Turf");
_root.area = "City (area 2)";
encounterRate = 0;
mapLocation = 2;
areaLocation = 22;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 6, 5, 2, "Concrete");
changeManyGroundTiles(5, 2, 7, 4, "Concrete");
changeManyGroundTiles(7, 3, 5, 2, "Concrete");
changeManyGroundTiles(8, 2, 4, 1, "Concrete");
largeObject(7, 3, 1, 2, "Object");
makeObject(7, 3, "condo1a");
makeObject(10, 3, "condo1d");
makeObject(10, 2, "condo1e");
makeObject(10, 1, "condo1f");
makeDoor(8, 3, "condo1b", 114);
makeDoor(9, 3, "condo1c", 114);
makeObject(4, 7, "Lamp");
makeObject(9, 9, "Tree");
makeObject(1, 10, "Tree");
standardPathway("left", 23);
standardPathway("down", 21);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map23() {
clearWorld("Turf");
_root.area = "City (area 3)";
encounterRate = 0;
mapLocation = 2;
areaLocation = 23;
changeSurroundBlank(1, 1);
changeManyGroundTiles(5, 6, 5, 2, "Concrete");
changeManyGroundTiles(5, 2, 7, 4, "Concrete");
changeManyGroundTiles(9, 1, 2, 3, "Concrete");
changeManyGroundTiles(8, 1, 2, 1, "Concrete");
largeObject(1, 7, 1, 4, "Blank");
makeObject(7, 4, "cafe1");
makeDoor(7, 3, "cafe2", 231);
makeDoor(7, 2, "cafe3", 231);
makeObject(7, 1, "cafe4");
makeObject(3, 7, "Table");
makeObject(7, 7, "Lamp");
makeObject(9, 9, "Tree");
makeObject(1, 10, "Tree");
standardPathway("right", 22);
standardPathway("down", 24);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map24() {
clearWorld("Turf");
_root.area = "City (area 4)";
encounterRate = 0;
mapLocation = 2;
areaLocation = 24;
changeSurroundBlank(1, 1);
changeManyGroundTiles(5, 2, 1, 10, "Concrete");
changeManyGroundTiles(7, 4, 5, 2, "Concrete");
makeObject(8, 1, "Object");
makeObject(9, 1, "Object");
makeObject(10, 1, "shop1d");
makeDoor(8, 2, "shop1a", 241);
makeDoor(9, 2, "shop1b", 241);
makeDoor(10, 2, "shop1c", 241);
makeObject(4, 4, "Lamp");
makeObject(4, 5, "Chair");
makeObject(4, 7, "Lamp");
makeObject(9, 9, "Tree");
makeObject(1, 1, "Tree");
standardPathway("down", 31);
standardPathway("up", 23);
standardPathway("right", 21);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map31() {
clearWorld("Grass");
_root.area = "Mountain Pass (area 1)";
encounterRate = 1;
mapLocation = 3;
areaLocation = 31;
changeSurroundBlank(1, 1);
setHeight(1, 1, 8);
setHeight(2, 1, 5);
setHeight(3, 1, 2);
largeObject(1, 4, 1, 1, "Boulder");
largeObject(7, 4, 1, 1, "Boulder");
largeObject(10, 1, 2, 8, "Boulder");
largeObject(1, 10, 10, 1, "Boulder");
largeObject(3, 7, 9, 1, "Tree");
makeObject(3, 4, "Boulder");
makeObject(7, 7, "Boulder");
makeObject(9, 6, "Tree");
standardPathway("up", 24);
standardPathway("left", 32);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(1);
}
function map32() {
clearWorld("Grass");
_root.area = "Mountain Pass (area 2)";
encounterRate = 1;
mapLocation = 3;
areaLocation = 32;
changeSurroundBlank(1, 1);
largeObject(1, 10, 1, 1, "Boulder");
largeObject(1, 10, 2, 1, "Boulder");
largeObject(1, 10, 10, 1, "Boulder");
setManyHeight(1, 9, 1, 2, 5);
setManyHeight(1, 8, 1, 1, 8);
setManyHeight(1, 7, 1, 1, 10);
changeManyGroundTiles(1, 7, 1, 1, "Ice");
makeObject(1, 4, "Boulder");
makeObject(4, 7, "Boulder");
makeObject(5, 8, "Tree");
standardPathway("right", 31);
standardPathway("left", 33);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(1);
}
function map33() {
clearWorld("Grass");
_root.area = "Mountain Pass (area 3)";
encounterRate = 1;
mapLocation = 3;
areaLocation = 33;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 1, 1, 10, "Soil");
changeManyGroundTiles(2, 1, 2, 8, "Soil");
largeObject(2, 9, 1, 1, "Boulder");
largeObject(2, 9, 10, 1, "Boulder");
setManyHeight(4, 6, 1, 2, 3);
setManyHeight(5, 4, 1, 1, 8);
makeObject(6, 2, "Boulder");
makeObject(9, 7, "Boulder");
standardPathway("right", 32);
standardPathway("left", 41);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(1);
}
function map41() {
clearWorld("Soil");
_root.area = "Great Desert (area 1)";
encounterRate = 5;
mapLocation = 4;
areaLocation = 41;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 6, 9, 1, "Railway");
makeObject(7, 3, "Boulder");
makeObject(4, 3, "Boulder");
makeObject(3, 7, "Bone");
standardPathway("right", 33);
standardPathway("left", 42);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(5);
}
function map42() {
clearWorld("Soil");
_root.area = "Great Desert (area 2)";
encounterRate = 5;
mapLocation = 4;
areaLocation = 42;
changeSurroundBlank(1, 1);
changeManyGroundTiles(4, 6, 9, 1, "Railway");
makeObject(2, 6, "Boulder");
makeObject(7, 3, "Boulder");
makeObject(6, 7, "Bone");
standardPathway("right", 41);
standardPathway("left", 43);
standardPathway("up", 44);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(5);
}
function map43() {
clearWorld("Soil");
_root.area = "Great Desert (area 3)";
encounterRate = 5;
mapLocation = 4;
areaLocation = 43;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 10, 1, 10, "Soil");
changeManyGroundTiles(1, 1, 2, 3, "Water");
changeManyGroundTiles(1, 1, 7, 4, "Water");
largeObject(1, 1, 2, 3, "Water");
largeObject(1, 1, 7, 4, "Water");
makeObject(7, 3, "Boulder");
makeObject(9, 3, "Boulder");
makeObject(3, 7, "Bone");
standardPathway("right", 42);
standardPathway("left", 5);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(5);
}
function map44() {
clearWorld("Soil");
_root.area = "Great Desert (area 4)";
encounterRate = 5;
mapLocation = 4;
areaLocation = 44;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 10, 1, 10, "Soil");
makeObject(7, 3, "Boulder");
makeObject(9, 3, "Boulder");
makeObject(3, 7, "Bone");
standardPathway("down", 42);
standardPathway("up", 6);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(5);
}
function map5() {
clearWorld("Turf");
_root.area = "Kryon Isle";
encounterRate = 0;
mapLocation = 5;
areaLocation = 5;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 1, 1, 10, "Water");
changeManyGroundTiles(2, 9, 1, 1, "Water");
changeManyGroundTiles(2, 9, 10, 1, "Water");
changeManyGroundTiles(10, 1, 2, 3, "Water");
changeManyGroundTiles(10, 1, 7, 3, "Water");
largeObject(1, 1, 1, 10, "Water");
largeObject(2, 9, 1, 1, "Water");
largeObject(2, 9, 10, 1, "Water");
largeObject(10, 1, 2, 3, "Water");
largeObject(10, 1, 7, 2, "Water");
largeObject(3, 2, 5, 3, "Object");
makeObject(3, 8, "b1");
makeDoor(4, 8, "b2", 51);
makeObject(5, 8, "b3");
makeDoor(5, 7, "b4", 51);
makeDoor(5, 6, "b5", 51);
makeObject(5, 5, "b6");
makeObject(5, 3, "Tree2");
standardPathway("right", 43);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map6() {
clearWorld("Soil");
_root.area = "Oasis";
encounterRate = 0;
mapLocation = 6;
areaLocation = 6;
changeSurroundBlank(1, 1);
changeManyGroundTiles(9, 1, 4, 5, "Turf");
changeManyGroundTiles(6, 1, 4, 6, "Turf");
changeManyGroundTiles(7, 3, 4, 1, "Turf");
changeManyGroundTiles(7, 3, 9, 1, "Turf");
changeGroundTile(8, 8, "Turf");
changeGroundTile(5, 6, "Turf");
changeManyGroundTiles(7, 1, 5, 4, "Water");
changeManyGroundTiles(8, 1, 5, 3, "Water");
largeObject(7, 1, 5, 4, "Water");
largeObject(8, 1, 5, 3, "Water");
makeObject(9, 4, "Tree2");
mydate = new Date();
hh = mydate.getHours();
if (hh == 0) {
makeNPC(8, 8, "Midnight", 1);
}
makeObject(9, 4, "Tree2");
standardPathway("down", 44);
standardPathway("up", 7);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(5);
}
function map7() {
clearWorld("Ice");
_root.area = "Stormfort";
encounterRate = 0;
mapLocation = 7;
areaLocation = 7;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 3, 1, 3, "Water");
changeManyGroundTiles(9, 2, 1, 2, "Water");
largeObject(1, 3, 1, 3, "Water");
largeObject(9, 2, 1, 2, "Water");
makeObject(5, 3, "Object");
makeObject(6, 3, "Object");
makeObject(7, 3, "shop1d");
makeDoor(5, 4, "shop1a", 71);
makeDoor(6, 4, "shop1b", 71);
makeDoor(7, 4, "shop1c", 71);
makeObject(10, 4, "Warning");
makeObject(8, 8, "Tree");
standardPathway("down", 6);
standardPathway("left", 8);
standardPathway("right", 91);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(1);
}
function map8() {
clearWorld("Turf");
_root.area = "Dragon's Horn";
encounterRate = 0;
mapLocation = 8;
areaLocation = 8;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 3, 1, 3, "Water");
changeManyGroundTiles(1, 2, 7, 4, "Water");
largeObject(1, 3, 1, 3, "Water");
largeObject(1, 2, 7, 4, "Water");
largeObject(3, 2, 7, 2, "Object");
makeObject(3, 9, "house2a");
makeObject(4, 9, "house2b");
makeDoor(5, 7, "house2e", 81);
makeDoor(5, 8, "house2d", 81);
makeDoor(5, 9, "house2c", 81);
makeObject(6, 4, "Tree2");
standardPathway("right", 7);
bgSound();
save_btn._visible = true;
backgroundScene.gotoAndStop(3);
}
function map91() {
clearWorld("Soil");
_root.area = "Wastelands (area 1)";
encounterRate = 2;
mapLocation = 9;
areaLocation = 91;
changeSurroundBlank(1, 1);
changeManyGroundTiles(1, 1, 1, 10, "Ice");
changeManyGroundTiles(2, 1, 2, 8, "Ice");
changeManyGroundTiles(3, 1, 3, 6, "Ice");
makeObject(10, 4, "Warning");
makeObject(2, 7, "Boulder");
makeObject(5, 3, "Tree");
standardPathway("left", 7);
standardPathway("right", 92);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(4);
}
function map92() {
clearWorld("Soil");
_root.area = "Wastelands (area 2)";
encounterRate = 2;
mapLocation = 9;
areaLocation = 92;
changeSurroundBlank(1, 1);
largeObject(6, 1, 1, 4, "Barricade");
largeObject(6, 1, 7, 4, "Barricade");
makeObject(7, 4, "Bone");
makeObject(7, 7, "Bone");
makeObject(4, 4, "Warning");
makeObject(7, 9, "Boulder");
standardPathway("left", 91);
standardPathway("right", 93);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(4);
}
function map93() {
clearWorld("Soil");
_root.area = "Wastelands (Mavericks' Camp)";
encounterRate = 2;
mapLocation = 9;
areaLocation = 93;
changeSurroundBlank(1, 1);
largeObject(2, 1, 1, 4, "Barricade");
largeObject(2, 1, 7, 4, "Barricade");
largeObject(3, 8, 10, 1, "Bone");
largeObject(3, 8, 1, 1, "Bone");
largeObject(10, 1, 2, 8, "Bone");
largeObject(3, 7, 4, 1, "Wall");
makeDoor(7, 4, "maverickBase", 931);
makeObject(3, 7, "Warning");
makeObject(3, 9, "Boulder");
makeObject(8, 3, "Airship");
standardPathway("left", 92);
bgSound();
save_btn._visible = false;
backgroundScene.gotoAndStop(4);
}
function Condo() {
if (_global.action != "talking") {
_global.action = "talking";
talkMov.gotoAndStop("condolvl1");
talkMov._visible = true;
}
}
function House1() {
if (_global.action != "talking") {
_global.action = "talking";
talkMov.gotoAndStop("House1");
talkMov._visible = true;
}
}
function House2() {
if (_global.action != "talking") {
_global.action = "talking";
talkMov.gotoAndStop("House2");
talkMov._visible = true;
}
}
function Shop1() {
if ((_global.action != "buying") and (_global.action != "selling")) {
_global.action = "buying";
talkMov.gotoAndStop("Shop1");
talkMov._visible = true;
}
}
function Shop2() {
if ((_global.action != "buying") and (_global.action != "selling")) {
_global.action = "buying";
talkMov.gotoAndStop("Shop2");
talkMov._visible = true;
}
}
function Bar() {
if (_global.action != "talking") {
_global.action = "talking";
talkMov.gotoAndStop("Bar");
talkMov._visible = true;
}
}
function Cafe() {
if (_global.action != "talking") {
_global.action = "talking";
talkMov.gotoAndStop("Cafe");
talkMov._visible = true;
}
}
function maverickBase() {
if (_global.action != "talking") {
_global.action = "talking";
talkMov.gotoAndStop("maverickBase");
talkMov._visible = true;
}
}
function npc_Midnight() {
if (_global.action != "talking") {
trace("midnight");
_global.action = "talking";
talkMov.gotoAndStop("npc_Midnight");
talkMov._visible = true;
}
}
function charAreaPosition(dir) {
switch (dir) {
case "left" :
world.char.tempx = 40;
world.char.tempz = -180;
break;
case "right" :
world.char.tempx = 300;
world.char.tempz = -180;
break;
case "up" :
world.char.tempx = 180;
world.char.tempz = -40;
break;
case "down" :
world.char.tempx = 180;
world.char.tempz = -300;
}
}
function standardPathway(dir, destination) {
switch (dir) {
case "up" :
makePathway(5, 0, "Pathway", destination);
makePathway(6, 0, "Pathway", destination);
break;
case "down" :
makePathway(5, 11, "Pathway", destination);
makePathway(6, 11, "Pathway", destination);
break;
case "left" :
makePathway(0, 5, "Pathway", destination);
makePathway(0, 6, "Pathway", destination);
break;
case "right" :
makePathway(11, 5, "Pathway", destination);
makePathway(11, 6, "Pathway", destination);
}
}
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 = this.floor;
var _local2 = world.path;
buildFloor(_local2, floorx, floorz);
buildCharacter(_local2);
}
function buildCharacter(path) {
world.char = new Object();
world.char.tempx = 10;
world.char.tempy = 0;
world.char.tempz = -10;
world.char.speed = 4;
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;
world.char.clip = path.character;
positionCharacter();
}
function positionCharacter() {
world.char.x = world.char.tempx;
world.char.y = world.char.tempy;
world.char.z = world.char.tempz;
var _local1 = iso.mapToScreen(world.char.x, world.char.y, world.char.z);
world.char.clip._x = _local1[0];
world.char.clip._y = _local1[1];
}
function buildFloor(path, floorx, floorz) {
path.tile._visible = false;
world.tiles = [];
var _local6 = 0;
var _local2 = 1;
while (_local2 <= floorx) {
var _local1 = 1;
while (_local1 <= floorz) {
if (_local2 == 1) {
world.tiles[_local1] = [];
}
var _local9 = iso.calculateDepth(_local1, _local6, _local2);
var _local3 = (("cell" + _local1) + "_") + _local2;
path.attachMovie("tile", _local3, _local9);
var _local4 = path[_local3];
world.tiles[_local1][_local2] = {x:_local1, y:_local6, z:_local2, depth:_local9, clip:_local4};
var _local7 = (_local1 - 1) * world.cellWidth;
var _local5 = (-(_local2 - 1)) * world.cellWidth;
temp = iso.mapToScreen(_local7, _local6, _local5);
_local4._x = temp[0];
_local4._y = temp[1];
_local1++;
}
_local2++;
}
}
function clearWorld(tileSet) {
world.char.frame = -1;
var _local2 = 1;
while (_local2 <= maxx) {
var _local1 = 1;
while (_local1 <= maxz) {
world.tiles[_local2 + 1][_local1 + 1].isObject = false;
world.tiles[_local2 + 1][_local1 + 1].clip.objects.gotoAndStop(1);
world.tiles[_local2 + 1][_local1 + 1].isPathway = false;
world.tiles[_local2 + 1][_local1 + 1].areaLocation = -1;
world.tiles[_local2 + 1][_local1 + 1].clip.innerTile.gotoAndStop(tileSet);
world.tiles[_local2 + 1][_local1 + 1].clip.innerTile._y = 10.5;
world.tiles[_local2 + 1][_local1 + 1].clip.objects._y = -49.4;
_local1++;
}
_local2++;
}
}
function setHeight(x, z, height) {
world.tiles[x + 1][z + 1].clip.innerTile._y = 10.5 - (5 * height);
world.tiles[x + 1][z + 1].clip.objects._y = -49.4 - (5 * height);
}
function setManyHeight(x, xnum, z, znum, height) {
var _local2 = 1;
while (_local2 <= xnum) {
var _local1 = 1;
while (_local1 <= znum) {
world.tiles[x + _local2][z + _local1].clip.innerTile._y = 10.5 - (5 * height);
world.tiles[x + _local2][z + _local1].clip.objects._y = -49.4 - (5 * height);
world.tiles[x + _local2][z + _local1].isObject = true;
_local1++;
}
_local2++;
}
}
function makeObject(x, z, object) {
world.tiles[x + 1][z + 1].isObject = true;
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(object);
}
function makeNPC(x, z, object, num) {
world.tiles[x + 1][z + 1].isObject = true;
world.tiles[x + 1][z + 1].isNPC = true;
world.tiles[x + 1][z + 1].NPCnum = num;
world.tiles[x + 1][z + 1].objName = object;
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(object);
}
function makePathway(x, z, object, destination) {
world.tiles[x + 1][z + 1].isObject = false;
world.tiles[x + 1][z + 1].isPathway = true;
world.tiles[x + 1][z + 1].areaLocation = destination;
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop(object);
}
function makeDoor(x, z, object, destination) {
world.tiles[x + 1][z + 1].isPathway = true;
world.tiles[x + 1][z + 1].isObject = false;
world.tiles[x + 1][z + 1].areaLocation = destination;
world.tiles[x + 1][z + 1].clip.objects.gotoAndStop(object);
}
function changeGroundTile(x, z, object) {
world.tiles[x + 1][z + 1].clip.innerTile.gotoAndStop(object);
}
function changeManyGroundTiles(x, xnum, z, znum, object) {
var _local2 = 0;
while (_local2 < xnum) {
var _local1 = 0;
while (_local1 < znum) {
world.tiles[(x + _local2) + 1][(z + _local1) + 1].clip.innerTile.gotoAndStop(object);
_local1++;
}
_local2++;
}
}
function largeObject(x, xnum, z, znum, object) {
var _local2 = 0;
while (_local2 < xnum) {
var _local1 = 0;
while (_local1 < znum) {
world.tiles[(x + _local2) + 1][(z + _local1) + 1].clip.objects.gotoAndStop(object);
world.tiles[(x + _local2) + 1][(z + _local1) + 1].isObject = true;
_local1++;
}
_local2++;
}
}
function changeSurroundBlank(x, z) {
var _local1 = 1;
while (_local1 <= maxx) {
var _local3 = 1;
while (_local3 <= x) {
world.tiles[_local1][_local3].isObject = true;
world.tiles[_local1][_local3].clip.innerTile.gotoAndStop("Blank");
world.tiles[_local1][(maxx + 1) - _local3].isObject = true;
world.tiles[_local1][(maxx + 1) - _local3].clip.innerTile.gotoAndStop("Blank");
_local3++;
}
var _local2 = 1;
while (_local2 <= z) {
world.tiles[_local2][_local1].isObject = true;
world.tiles[_local2][_local1].clip.innerTile.gotoAndStop("Blank");
world.tiles[(maxx + 1) - _local2][_local1].isObject = true;
world.tiles[(maxx + 1) - _local2][_local1].clip.innerTile.gotoAndStop("Blank");
_local2++;
}
_local1++;
}
}
function calRank() {
if (baseHP < 10) {
rank = "Novice E Class";
} else if (baseHP < 20) {
rank = "Novice D Class";
} else if (baseHP < 30) {
rank = "Novice C Class";
} else if (baseHP < 40) {
rank = "Novice B Class";
} else if (baseHP < 50) {
rank = "Novice A Class";
} else if (baseHP < 70) {
rank = "Advanced E Class";
} else if (baseHP < 90) {
rank = "Advanced D Class";
} else if (baseHP < 110) {
rank = "Advanced C Class";
} else if (baseHP < 130) {
rank = "Advanced B Class";
} else if (baseHP < 150) {
rank = "Advanced A Class";
} else if (baseHP < 180) {
rank = "Specialist E Class";
} else if (baseHP < 210) {
rank = "Specialist D Class";
} else if (baseHP < 240) {
rank = "Specialist C Class";
} else if (baseHP < 270) {
rank = "Specialist B Class";
} else if (baseHP < 310) {
rank = "Specialist A Class";
} else if (baseHP < 400) {
rank = "Elite E Class";
} else if (baseHP < 500) {
rank = "Elite D Class";
} else if (baseHP < 600) {
rank = "Elite C Class";
} else if (baseHP < 700) {
rank = "Elite B Class";
} else if (baseHP < 1000) {
rank = "Elite A Class";
} else if (baseHP < 2000) {
rank = "Ace E Class";
} else if (baseHP < 3000) {
rank = "Ace D Class";
} else if (baseHP < 4000) {
rank = "Ace C Class";
} else if (baseHP < 5000) {
rank = "Ace B Class";
} else if (baseHP < 10000) {
rank = "Ace A Class";
} else if (baseHP < 20000) {
rank = "Ace S Class";
} else {
rank = "Legendary";
}
}
function worldClicked(xm, ym) {
var _local6 = iso.mapToIsoWorld(xm, ym);
xm = _local6[0];
var _local2 = _local6[1];
if (_global.action == "walking") {
if ((((xm >= 0) && (xm <= world.width)) && (_local2 >= world.length)) && (_local2 <= 0)) {
var _local12 = world.char.x;
var _local11 = world.char.z;
world.char.startx = _local12;
world.char.startz = _local11;
world.char.endx = xm;
world.char.endz = _local2;
var _local7 = 45;
var _local5 = Math.atan2(_local2 - _local11, xm - _local12);
var _local4 = (_local5 * 180) / Math.PI;
_local4 = _local4 + (_local7 / 2);
if (_local4 < 0) {
_local4 = _local4 + 360;
}
var _local8 = Math.ceil(_local4 / _local7);
world.char.clip.gotoAndStop("walk" + _local8);
world.char.frame = _local8;
world.char.moving = true;
var _local10 = Math.cos(_local5);
var _local9 = Math.sin(_local5);
world.char.xmov = world.char.speed * _local10;
world.char.zmov = world.char.speed * _local9;
world.char.feelerx = world.char.feeler * _local10;
world.char.feelerz = world.char.feeler * _local9;
}
}
}
function moveCharacter() {
if (world.char.moving) {
encounter(encounterRate);
world.char.tempx = world.char.x + world.char.xmov;
world.char.tempy = world.char.y + world.char.ymov;
world.char.tempz = world.char.z + world.char.zmov;
var _local4 = world.char.startx;
var _local3 = world.char.startz;
var _local2 = world.char.endx;
var _local1 = world.char.endz;
var _local6 = world.char.tempx;
var _local5 = world.char.tempz;
if ((((_local2 - _local4) / Math.abs(_local2 - _local4)) != ((_local2 - _local6) / Math.abs(_local2 - _local6))) || (((_local1 - _local3) / Math.abs(_local1 - _local3)) != ((_local1 - _local5) / Math.abs(_local1 - _local5)))) {
world.char.moving = false;
world.char.xmov = 0;
world.char.zmov = 0;
world.char.tempx = _local2;
world.char.tempz = _local1;
world.char.clip.gotoAndStop("stand" + world.char.frame);
}
}
}
function encounter(encounterRate) {
if (encounterRate > 0) {
chance--;
trace(chance);
if (chance <= 0) {
_global.action = "talking";
trace(_global.action + "*");
chance = random(300) + 50;
_root.enemy = encounterRate;
_root.combatScene.startCombat();
_root.combatScene._visible = true;
_root.buttonblocker._visible = true;
world.char.moving = false;
world.char.clip.gotoAndStop("stand" + world.char.frame);
}
}
}
function detectObjects() {
var _local7 = world.char.tempx + world.char.feelerx;
var _local6 = Math.abs(world.char.tempz + world.char.feelerz);
var _local2 = Math.ceil(_local7 / world.cellWidth);
var _local3 = Math.ceil(_local6 / world.cellWidth);
if (!world.tiles[_local2][_local3].isObject) {
_local7 = world.char.tempx;
_local6 = Math.abs(world.char.tempz);
_local2 = Math.ceil(_local7 / world.cellWidth);
_local3 = Math.ceil(_local6 / world.cellWidth);
var _local5 = world.tiles[_local2][_local3].depth + 1;
world.char.clip.swapDepths(_local5);
if (world.tiles[_local2][_local3].isPathway && (world.char.moving)) {
world.char.clip.gotoAndStop("stand" + world.char.frame);
world.char.moving = false;
switch (world.tiles[_local2][_local3].areaLocation) {
case 1 :
if (!(areaLocation === 21)) {
} else {
charAreaPosition("left");
}
map1();
break;
case 21 :
switch (areaLocation) {
case 1 :
charAreaPosition("right");
break;
case 22 :
charAreaPosition("up");
break;
case 24 :
charAreaPosition("left");
}
map21();
break;
case 22 :
switch (areaLocation) {
case 21 :
charAreaPosition("down");
break;
case 23 :
charAreaPosition("left");
}
map22();
break;
case 23 :
switch (areaLocation) {
case 22 :
charAreaPosition("right");
break;
case 24 :
charAreaPosition("down");
}
map23();
break;
case 24 :
switch (areaLocation) {
case 21 :
charAreaPosition("right");
break;
case 23 :
charAreaPosition("up");
break;
case 31 :
charAreaPosition("down");
}
map24();
break;
case 31 :
switch (areaLocation) {
case 24 :
charAreaPosition("up");
break;
case 32 :
charAreaPosition("left");
}
map31();
break;
case 32 :
switch (areaLocation) {
case 31 :
charAreaPosition("right");
break;
case 33 :
charAreaPosition("left");
}
map32();
break;
case 33 :
switch (areaLocation) {
case 32 :
charAreaPosition("right");
break;
case 41 :
charAreaPosition("left");
}
map33();
break;
case 41 :
switch (areaLocation) {
case 33 :
charAreaPosition("right");
break;
case 42 :
charAreaPosition("left");
}
map41();
break;
case 42 :
switch (areaLocation) {
case 43 :
charAreaPosition("left");
break;
case 44 :
charAreaPosition("up");
break;
case 41 :
charAreaPosition("right");
}
map42();
break;
case 43 :
switch (areaLocation) {
case 5 :
charAreaPosition("left");
break;
case 42 :
charAreaPosition("right");
}
map43();
break;
case 44 :
switch (areaLocation) {
case 42 :
charAreaPosition("down");
break;
case 6 :
charAreaPosition("up");
}
map44();
break;
case 5 :
if (!(areaLocation === 43)) {
} else {
charAreaPosition("right");
}
map5();
break;
case 6 :
switch (areaLocation) {
case 44 :
charAreaPosition("down");
break;
case 7 :
charAreaPosition("up");
}
map6();
break;
case 7 :
switch (areaLocation) {
case 6 :
charAreaPosition("down");
break;
case 8 :
charAreaPosition("left");
break;
case 91 :
charAreaPosition("right");
}
map7();
break;
case 8 :
if (!(areaLocation === 7)) {
} else {
charAreaPosition("right");
}
map8();
break;
case 91 :
switch (areaLocation) {
case 7 :
charAreaPosition("left");
break;
case 92 :
charAreaPosition("right");
}
map91();
break;
case 92 :
switch (areaLocation) {
case 91 :
charAreaPosition("left");
break;
case 93 :
charAreaPosition("right");
}
map92();
break;
case 93 :
if (!(areaLocation === 92)) {
} else {
charAreaPosition("left");
}
map93();
break;
case 111 :
_root.buttonblocker._visible = true;
House1();
break;
case 114 :
_root.buttonblocker._visible = true;
Condo();
break;
case 231 :
_root.buttonblocker._visible = true;
Cafe();
break;
case 241 :
_root.buttonblocker._visible = true;
Shop1();
break;
case 51 :
_root.buttonblocker._visible = true;
Bar();
break;
case 71 :
_root.buttonblocker._visible = true;
Shop2();
break;
case 81 :
_root.buttonblocker._visible = true;
House2();
break;
case 931 :
_root.buttonblocker._visible = true;
maverickBase();
}
}
} else {
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 _local4 = world.char.frame;
world.char.clip.gotoAndStop("stand" + _local4);
if (world.tiles[_local2][_local3].isNPC) {
_root.buttonblocker._visible = true;
npc_Midnight();
}
}
}
function captureKeys() {
}
floor.onRelease = function () {
_root.worldClicked(this._xmouse, this._ymouse);
};
items = new Object();
items.i0 = new Object();
items.i0.code = 0;
items.i0.name = "-empty-";
items.i0.kind = 0;
items.i0.cost = 0;
items.i0.effect = 0;
items.i1 = new Object();
items.i1.code = 1;
items.i1.name = "Energy Blade";
items.i1.kind = 1;
items.i1.cost = 100;
items.i1.effect = 30;
items.i2 = new Object();
items.i2.code = 2;
items.i2.name = "Sonic Blade";
items.i2.kind = 1;
items.i2.cost = 500;
items.i2.effect = 50;
items.i3 = new Object();
items.i3.code = 3;
items.i3.name = "Inferno";
items.i3.kind = 1;
items.i3.cost = 1000;
items.i3.effect = 80;
items.i4 = new Object();
items.i4.code = 4;
items.i4.name = "X Slasher";
items.i4.kind = 1;
items.i4.cost = 4000;
items.i4.effect = 100;
items.i15 = new Object();
items.i15.code = 15;
items.i15.name = "Phantom Claw";
items.i15.kind = 1;
items.i15.cost = 10000;
items.i15.effect = 150;
items.i5 = new Object();
items.i5.code = 5;
items.i5.name = "Chain Gun";
items.i5.kind = 2;
items.i5.cost = 200;
items.i5.effect = 60;
items.i6 = new Object();
items.i6.code = 6;
items.i6.name = "Gatling Cannon";
items.i6.kind = 2;
items.i6.cost = 1000;
items.i6.effect = 90;
items.i7 = new Object();
items.i7.code = 7;
items.i7.name = "Beam Cannon";
items.i7.kind = 2;
items.i7.cost = 3000;
items.i7.effect = 130;
items.i8 = new Object();
items.i8.code = 8;
items.i8.name = "Napalm Scatter";
items.i8.kind = 2;
items.i8.cost = 5000;
items.i8.effect = 160;
items.i9 = new Object();
items.i9.code = 9;
items.i9.name = "Meteor Launcher";
items.i9.kind = 2;
items.i9.cost = 10000;
items.i9.effect = 250;
items.i10 = new Object();
items.i10.code = 10;
items.i10.name = "Brass Armor";
items.i10.kind = 3;
items.i10.cost = 100;
items.i10.effect = 200;
items.i11 = new Object();
items.i11.code = 11;
items.i11.name = "Iron Armor";
items.i11.kind = 3;
items.i11.cost = 500;
items.i11.effect = 400;
items.i12 = new Object();
items.i12.code = 12;
items.i12.name = "Steel Protector";
items.i12.kind = 3;
items.i12.cost = 1000;
items.i12.effect = 800;
items.i13 = new Object();
items.i13.code = 13;
items.i13.name = "Mithril Suit";
items.i13.kind = 3;
items.i13.cost = 4000;
items.i13.effect = 1500;
items.i14 = new Object();
items.i14.code = 14;
items.i14.name = "Celestial Armor";
items.i14.kind = 3;
items.i14.cost = 20000;
items.i14.effect = 3000;
if (_global.option == "load") {
var so = SharedObject.getLocal("mobileweapon");
pilotName = so.data.pilotName;
mawName = so.data.mawName;
credits = so.data.credits;
bankCredits = so.data.bankCredits;
baseHP = so.data.baseHP;
fame = so.data.fame;
chance = so.data.chance;
inventory = new Object();
inventory.i1 = so.data.i1;
inventory.i2 = so.data.i2;
inventory.i3 = so.data.i3;
inventory.blade = so.data.blade;
inventory.gun = so.data.gun;
inventory.suit = so.data.suit;
mapLocation = so.data.mapLocation;
areaLocation = so.data.areaLocation;
tx = so.data.tempx;
tz = so.data.tempz;
quest1 = so.data.quest1;
quest2 = so.data.quest2;
quest3 = so.data.quest3;
} else {
pilotName = _global.pilotName;
mawName = _global.mawName;
credits = 10;
bankCredits = 0;
baseHP = 0;
chance = 100;
fame = 0;
inventory = new Object();
inventory.i1 = items.i0;
inventory.i2 = items.i0;
inventory.i3 = items.i0;
inventory.blade = items.i1;
inventory.gun = items.i5;
inventory.suit = items.i10;
mapLocation = 1;
areaLocation = 1;
tx = 300;
tz = -180;
quest1 = 0;
quest2 = 0;
quest3 = 0;
}
calRank();
playingType = -1;
inv1Name = inventory.i1.name;
inv2Name = inventory.i2.name;
inv3Name = inventory.i3.name;
blade = inventory.blade.name;
gun = inventory.gun.name;
suit = inventory.suit.name;
AGL = 100;
enemy = 1;
HP = baseHP + inventory.suit.effect;
maxx = 12;
maxz = 12;
iso = new isometricAS(maxx, maxz);
buildWorld(maxx, maxz);
switch (areaLocation) {
case 1 :
map1();
break;
case 21 :
map21();
break;
case 22 :
map22();
break;
case 23 :
map23();
break;
case 24 :
map24();
break;
case 31 :
map31();
break;
case 32 :
map32();
break;
case 33 :
map33();
break;
case 41 :
map41();
break;
case 42 :
map42();
break;
case 43 :
map43();
break;
case 44 :
map44();
break;
case 5 :
map5();
break;
case 6 :
map6();
break;
case 7 :
map7();
break;
case 8 :
map8();
break;
case 91 :
map91();
break;
case 92 :
map92();
break;
case 93 :
map93();
}
world.char.tempx = tx;
world.char.tempz = tz;
_global.action = "walking";
_global.clicked = false;
xx = world.char.clip._x;
zz = world.char.clip._y;
stop();
_root.onEnterFrame = function () {
moveCharacter();
detectObjects();
positionCharacter();
captureKeys();
};
function bgSound() {
if (playingType != encounterRate) {
playingType = encounterRate;
stopAllSounds();
trace("Play music: " + playingType);
if (_global.musicSetting) {
music.gotoAndStop(1);
}
switch (playingType) {
case 0 :
mydate = new Date();
h = mydate.getHours();
if ((h > 6) && (h < 14)) {
skyColor.gotoAndStop("morning");
if (_global.musicSetting) {
music.gotoAndStop("morning");
}
} else if ((h >= 14) && (h < 18)) {
skyColor.gotoAndStop("afternoon");
if (_global.musicSetting) {
music.gotoAndStop("afternoon");
}
} else {
skyColor.gotoAndStop("night");
if (_global.musicSetting) {
music.gotoAndStop("night");
}
}
break;
case 1 :
case 2 :
case 5 :
if (!_global.musicSetting) {
break;
}
music.gotoAndStop("wilderness");
}
}
}
function battleSound() {
stopAllSounds();
playingType = 9;
if (_global.musicSetting) {
music.gotoAndStop("battle");
}
}
function playSound(s) {
_root.soundfx.gotoAndPlay(s);
}
bgSound();
combatScene._visible = false;
talkMov._visible = false;
buttonblocker._visible = false;
buttonblocker.enabled = false;
mapWin._visible = false;
inventoryWin._visible = false;
function quit() {
gotoAndStop (3);
}
menuDialog._visible = false;
Symbol 9 MovieClip Frame 1
var textspeech = new Array();
textspeech[0] = "Loading";
textspeech[1] = "Getting bored?";
textspeech[2] = "Maybe you would like to get a drink first?";
textspeech[3] = "Your connection is really slow";
Symbol 58 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
soundPlaying = false;
Symbol 68 MovieClip Frame 8
gotoAndStop (1);
Symbol 68 MovieClip Frame 12
gotoAndStop (1);
Symbol 68 MovieClip Frame 18
gotoAndStop (1);
Symbol 68 MovieClip Frame 22
gotoAndStop (1);
Symbol 68 MovieClip Frame 27
gotoAndStop (1);
Symbol 68 MovieClip Frame 34
gotoAndStop (1);
Symbol 68 MovieClip Frame 41
gotoAndStop (1);
Symbol 68 MovieClip Frame 49
gotoAndStop (1);
Symbol 73 Button
on (release) {
_global.musicSetting = !_global.musicSetting;
if (!_global.musicSetting) {
stopAllSounds();
} else {
music.gotoAndStop(1);
music.gotoAndStop("intro");
}
}
Symbol 80 MovieClip Frame 30
stop();
Symbol 83 Button
on (release) {
playSound("press");
gotoAndStop (12);
}
Symbol 92 MovieClip Frame 30
stop();
Symbol 94 Button
on (release) {
_global.option = "load";
playSound("press");
gotoAndStop (27);
}
Symbol 101 MovieClip Frame 30
stop();
Symbol 103 Button
on (release) {
playSound("press");
gotoAndStop (11);
}
Symbol 104 Button
on (release) {
playSound("press");
gotoAndStop (10);
}
Symbol 106 Button
on (release) {
playSound("press");
_global.option = "start";
gotoAndStop (13);
}
Symbol 111 MovieClip Frame 20
stop();
Symbol 116 MovieClip Frame 20
stop();
Symbol 118 Button
on (release) {
gotoAndStop (3);
}
Symbol 144 Button
on (release) {
getURL ("http://www.mobileweapon.net", "_blank");
}
Symbol 157 Button
on (release) {
_global.pilotName = pilotNameInput.text;
_global.mawName = mawNameInput.text;
soundfx.gotoAndPlay("ok");
}
Symbol 170 Button
on (release) {
_root.prevFrame();
}
Symbol 174 Button
on (release) {
gotoAndStop (27);
}
Symbol 178 Button
on (release) {
nextFrame();
}
Symbol 190 Button
on (release) {
playSound("press");
tutWin._visible = !tutWin._visible;
}
Symbol 204 Button
on (release) {
if (_root.inv3Name != "-empty-") {
_root.playSound("equip");
temp = _root.inventory.i3;
switch (_root.inventory.i3.kind) {
case 1 :
_root.inventory.i3 = _root.inventory.blade;
_root.inventory.blade = temp;
_root.blade = temp.name;
blade.text = temp.name;
break;
case 2 :
_root.inventory.i3 = _root.inventory.gun;
_root.inventory.gun = temp;
_root.gun = temp.name;
gun.text = temp.name;
break;
case 3 :
_root.inventory.i3 = _root.inventory.suit;
_root.inventory.suit = temp;
_root.suit = temp.name;
suit.text = temp.name;
_root.HP = _root.baseHP + _root.inventory.suit.effect;
}
_root.inv3Name = _root.inventory.i3.name;
}
}
Symbol 205 Button
on (release) {
if (_root.inv2Name != "-empty-") {
_root.playSound("equip");
temp = _root.inventory.i2;
switch (_root.inventory.i2.kind) {
case 1 :
_root.inventory.i2 = _root.inventory.blade;
_root.inventory.blade = temp;
_root.blade = temp.name;
blade.text = temp.name;
break;
case 2 :
_root.inventory.i2 = _root.inventory.gun;
_root.inventory.gun = temp;
_root.gun = temp.name;
gun.text = temp.name;
break;
case 3 :
_root.inventory.i2 = _root.inventory.suit;
_root.inventory.suit = temp;
_root.suit = temp.name;
suit.text = temp.name;
_root.HP = _root.baseHP + _root.inventory.suit.effect;
}
_root.inv2Name = _root.inventory.i2.name;
}
}
Symbol 206 Button
on (release) {
if (_root.inv1Name != "-empty-") {
_root.playSound("equip");
temp = _root.inventory.i1;
switch (_root.inventory.i1.kind) {
case 1 :
_root.inventory.i1 = _root.inventory.blade;
_root.inventory.blade = temp;
_root.blade = temp.name;
blade.text = temp.name;
trace("Blade effect:" + _root.inventory.blade.effect);
break;
case 2 :
_root.inventory.i1 = _root.inventory.gun;
_root.inventory.gun = temp;
_root.gun = temp.name;
gun.text = temp.name;
trace("Gun effect:" + _root.inventory.gun.effect);
break;
case 3 :
_root.inventory.i1 = _root.inventory.suit;
_root.inventory.suit = temp;
_root.suit = temp.name;
suit.text = temp.name;
_root.HP = _root.baseHP + _root.inventory.suit.effect;
}
_root.inv1Name = _root.inventory.i1.name;
}
}
Symbol 210 Button
on (release) {
_parent.playSound("close");
_visible = false;
}
Symbol 218 Button
on (press) {
this.startDrag();
}
on (release) {
this.stopDrag();
}
Symbol 222 MovieClip Frame 1
stop();
gun.text = _root.gun;
blade.text = _root.blade;
suit.text = _root.suit;
Symbol 235 Button
on (release) {
mapWin._visible = !mapWin._visible;
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 30
if (random(5) == 1) {
gotoAndPlay (20);
}
Symbol 335 MovieClip Frame 1
stop();
gotoAndStop(random(5) + 1);
Symbol 337 MovieClip Frame 1
stop();
Instance of Symbol 319 MovieClip in Symbol 337 MovieClip Frame 34
onClipEvent (load) {
if (random(30) == 0) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 352 Button
on (release, keyPress "e") {
if (random(2) != 0) {
_root.playSound("lose");
_parent.escapeFailed.gotoAndPlay(2);
_root.combatScene.mainCharNextTurn = "true";
_root.combatScene.currMainCharTimer = 0;
_root.combatScene.timerCharge = 2;
this.gotoAndStop(1);
} else {
clearInterval(_root.combatInterval);
_root.combatScene._visible = false;
_root.buttonblocker._visible = false;
_global.action = "walking";
_root.bgSound();
_root.combatScene.combatStage.gotoAndStop(1);
}
}
Symbol 357 Button
on (release, keyPress "r") {
_root.combatScene.mainCharNextTurn = "false";
_root.combatScene.currMainCharTimer = 0;
_root.combatScene.timerCharge = 3;
_root.combatScene.mainCharAttack(2);
this.gotoAndStop(1);
}
Symbol 363 Button
on (release, keyPress "b") {
_root.combatScene.mainCharNextTurn = "false";
_root.combatScene.currMainCharTimer = 0;
_root.combatScene.timerCharge = 7;
_root.combatScene.mainCharAttack(1);
this.gotoAndStop(1);
}
Symbol 365 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 15
_root.combatScene.currMainCharTimer = 0;
if (_root.combatScene.enemyDamage != "miss") {
_root.combatScene.currEnemyHP = _root.combatScene.currEnemyHP - _root.combatScene.enemyDamage;
if (_root.combatScene.currEnemyHP < 0) {
_root.combatScene.currEnemyHP = 0;
}
}
_root.combatScene.mainCharNextTurn = "true";
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 15
_root.combatScene.enemyNextTurn = "true";
if (_root.combatScene.mainCharDamage != "miss") {
_root.combatScene.currMainCharHP = _root.combatScene.currMainCharHP - _root.combatScene.mainCharDamage;
if (_root.combatScene.currMainCharHP < 0) {
_root.combatScene.currMainCharHP = 0;
}
}
this.gotoAndStop(1);
Symbol 392 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
_root._y = _root._y + (random(5) - random(5));
Symbol 403 MovieClip Frame 6
_root._y = 0;
Symbol 415 MovieClip Frame 12
stop();
Symbol 428 MovieClip Frame 14
stop();
Symbol 433 MovieClip Frame 21
stop();
Symbol 437 MovieClip Frame 15
stop();
Symbol 478 MovieClip Frame 8
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 13
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 14
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 15
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 16
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 17
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 18
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 19
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 20
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 21
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 32
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 33
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 34
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 35
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 36
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 37
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 38
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 39
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 40
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 41
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 57
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 60
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 70
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 82
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 83
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 85
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 86
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 88
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 89
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 101
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 162
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 163
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 165
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 166
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 167
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 168
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 169
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 170
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 172
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 173
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 182
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 199
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 201
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 212
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 230
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 232
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 242
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 260
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 261
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 262
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 263
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 264
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 265
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 270
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 293
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 294
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 296
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 297
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 298
_parent.enemyD.play();
gotoAndPlay ("mainChar");
Symbol 511 MovieClip Frame 320
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 321
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 324
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 325
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 328
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 329
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 511 MovieClip Frame 332
if (_root.combatScene.enemyDamage != "miss") {
var c = new Color(_parent.enemyState);
c.setRGB(16711680);
_parent.border.play();
}
Symbol 511 MovieClip Frame 333
var c = new Color(_parent.enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
_parent.enemyD.play();
Symbol 511 MovieClip Frame 349
gotoAndPlay ("mainChar");
Symbol 532 MovieClip Frame 24
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(255);
_root.combatScene.combatStage.border.play();
}
Symbol 532 MovieClip Frame 28
_root.combatScene.combatStage.mainCharD.play();
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 532 MovieClip Frame 35
_parent.gotoAndPlay("robot1");
gotoAndStop (1);
Symbol 540 MovieClip Frame 40
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 540 MovieClip Frame 42
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 540 MovieClip Frame 45
_root.combatScene.combatStage.mainCharD.play();
_parent.gotoAndPlay("robot1");
gotoAndStop (1);
Symbol 563 MovieClip Frame 25
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(255);
_root.combatScene.combatStage.border.play();
}
Symbol 563 MovieClip Frame 27
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 563 MovieClip Frame 36
_root.combatScene.combatStage.mainCharD.play();
Symbol 563 MovieClip Frame 41
_parent.gotoAndPlay("robot5");
gotoAndStop (1);
Symbol 581 MovieClip Frame 22
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 581 MovieClip Frame 23
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 581 MovieClip Frame 24
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 581 MovieClip Frame 25
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 581 MovieClip Frame 27
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 581 MovieClip Frame 28
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 581 MovieClip Frame 29
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 581 MovieClip Frame 30
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 581 MovieClip Frame 32
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 581 MovieClip Frame 33
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 581 MovieClip Frame 39
_root.combatScene.combatStage.mainCharD.play();
Symbol 581 MovieClip Frame 45
_parent.gotoAndPlay("robot5");
gotoAndStop (1);
Symbol 595 MovieClip Frame 13
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(65280);
_root.combatScene.combatStage.border.play();
}
Symbol 595 MovieClip Frame 15
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 595 MovieClip Frame 18
_root.combatScene.combatStage.mainCharD.play();
Symbol 595 MovieClip Frame 26
_parent.gotoAndPlay("robot2");
this.gotoAndStop(1);
Symbol 605 MovieClip Frame 21
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 605 MovieClip Frame 22
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 605 MovieClip Frame 23
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 605 MovieClip Frame 24
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 605 MovieClip Frame 25
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 605 MovieClip Frame 26
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 605 MovieClip Frame 27
_root.combatScene.combatStage.mainCharD.play();
Symbol 605 MovieClip Frame 34
_parent.gotoAndPlay("robot2");
this.gotoAndStop(1);
Symbol 625 MovieClip Frame 23
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 625 MovieClip Frame 25
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 625 MovieClip Frame 34
_root.combatScene.combatStage.mainCharD.play();
Symbol 625 MovieClip Frame 37
_parent.gotoAndStop("robot3");
this.gotoAndStop(1);
Symbol 627 MovieClip Frame 32
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 627 MovieClip Frame 33
_root.combatScene.combatStage.mainCharD.play();
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 627 MovieClip Frame 34
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 627 MovieClip Frame 35
_root.combatScene.combatStage.mainCharD.play();
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 627 MovieClip Frame 36
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 627 MovieClip Frame 37
_root.combatScene.combatStage.mainCharD.play();
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 627 MovieClip Frame 46
_parent.gotoAndStop("robot3");
this.gotoAndStop(1);
Symbol 630 MovieClip Frame 21
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 630 MovieClip Frame 22
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 630 MovieClip Frame 23
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 630 MovieClip Frame 24
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 630 MovieClip Frame 25
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 630 MovieClip Frame 26
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 630 MovieClip Frame 27
_root.combatScene.combatStage.mainCharD.play();
Symbol 630 MovieClip Frame 44
_parent.gotoAndStop("robot4");
this.gotoAndStop(1);
Symbol 633 MovieClip Frame 8
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 9
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 10
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 11
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 12
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 13
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 19
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 20
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 21
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 22
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 23
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 24
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 25
if (_root.combatScene.mainCharDamage != "miss") {
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setRGB(16711680);
_root.combatScene.combatStage.border.play();
}
Symbol 633 MovieClip Frame 26
var c = new Color(_root.combatScene.combatStage.mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
Symbol 633 MovieClip Frame 27
_root.combatScene.combatStage.mainCharD.play();
Symbol 633 MovieClip Frame 41
_parent.gotoAndStop("robot4");
this.gotoAndStop(1);
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 7
stop();
Symbol 634 MovieClip Frame 17
stop();
Symbol 634 MovieClip Frame 27
stop();
Symbol 634 MovieClip Frame 34
stop();
Symbol 634 MovieClip Frame 44
stop();
Symbol 634 MovieClip Frame 55
stop();
Symbol 634 MovieClip Frame 61
stop();
Symbol 634 MovieClip Frame 71
stop();
Symbol 634 MovieClip Frame 81
stop();
Symbol 634 MovieClip Frame 88
stop();
Symbol 634 MovieClip Frame 98
stop();
Symbol 634 MovieClip Frame 108
stop();
Symbol 634 MovieClip Frame 115
stop();
Symbol 634 MovieClip Frame 125
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 650 Button
on (release) {
_root.bgSound();
_global.action = "walking";
_root.combatScene._visible = false;
_root.buttonblocker._visible = false;
}
Symbol 655 Button
on (release) {
_root.bgSound();
_global.action = "walking";
_root.combatScene._visible = false;
_root.buttonblocker._visible = false;
}
Symbol 660 Button
on (release) {
_root.playSound("close");
_global.action = "walking";
_root.combatScene._visible = false;
_root.buttonblocker._visible = false;
}
Symbol 668 MovieClip Frame 2
function onchange(components) {
if (components._name == "gun") {
_root.combatScene.gunType = components.getValue();
} else {
_root.combatScene.bladeType = components.getValue();
}
}
Symbol 668 MovieClip Frame 28
stop();
Symbol 668 MovieClip Frame 29
enemyState.gotoAndStop("robot" + _parent.eneType);
_root.playSound("die");
Symbol 668 MovieClip Frame 39
stop();
var c = new Color(mainChar);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
battlemsg = ("You get " + _parent.robots["r" + _root.enemy].GAINCREDITS) + " credits.";
battlemsg = battlemsg + (("\nYou augment your armour by " + _parent.robots["r" + _root.enemy].GAINHP) + " HP from the scraps.");
battlemsg = battlemsg + (("\nYou gain " + _parent.robots["r" + _root.enemy].FAME) + " fame.");
_root.credits = _root.credits + _parent.robots["r" + _root.enemy].GAINCREDITS;
_root.baseHP = _root.baseHP + _parent.robots["r" + _root.enemy].GAINHP;
_root.calRank();
_root.fame = _root.fame + _root.combatScene.robots["r" + _root.enemy].FAME;
_root.HP = _root.inventory.suit.effect + _root.baseHP;
if (_root.enemy == 3) {
if (_root.quest2 == 0) {
_root.quest2 = 1;
}
}
if (_root.enemy == 4) {
gotoAndStop ("end");
}
Symbol 668 MovieClip Frame 40
enemyState.gotoAndStop("robot" + _parent.eneType);
_root.playSound("die");
Symbol 668 MovieClip Frame 50
stop();
var c = new Color(enemyState);
c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
battlemsg = ("You lose " + _parent.robots["r" + _root.enemy].LOSECREDITS) + " credits!!";
battlemsg = battlemsg + (("\nYou lose " + _parent.robots["r" + _root.enemy].FAME) + " fame.");
_root.fame = _root.fame - _root.combatScene.robots["r" + _root.enemy].FAME;
_root.credits = _root.credits - _parent.robots["r" + _root.enemy].LOSECREDITS;
if (_root.credits < 0) {
_root.credits = 0;
}
Symbol 668 MovieClip Frame 51
stop();
Symbol 669 MovieClip Frame 1
function startCombat() {
trace("Start Combat");
if (_root.enemy == 4) {
stopAllSounds();
_root.playingType = 9;
_root.music.gotoAndStop("boss");
} else {
_root.battleSound();
}
_root.combatInterval = setInterval(combatTimer, 50);
combatStage.gotoAndPlay("combatstart");
combatStage.background.gotoAndStop(_root.enemy);
currMainCharTimer = -100;
timerCharge = 5;
mainCharNextTurn = "true";
currMainCharHP = _root.HP;
mainCharSPEED = _root.AGL;
gunType = _root.inventory.gun.code;
bladeType = _root.inventory.blade.code;
enemyTimerCharge = 5;
currETimer = -100;
enemyNextTurn = "true";
eneType = _root.enemy;
combatStage.enemyState.gotoAndStop("robot" + eneType);
currEnemyHP = robots["r" + eneType].HP + random(robots["r" + eneType].RND);
currEnemySTR = robots["r" + eneType].STR;
currEnemySPEED = robots["r" + eneType].SPEED;
currEnemyFAME = robots["r" + eneType].FAME;
enemyMawName = robots["r" + eneType].NAME;
enemyPilotName = robots["r" + eneType].PILOT[random(robots["r" + eneType].PILOT.length)];
}
function enemyAttack() {
attackType = random(2) + 1;
if (attackType == 1) {
enemyTimerCharge = 5;
} else {
enemyTimerCharge = 2;
}
hitChance = mainCharSPEED - currEnemySPEED;
if (random(100) > 10) {
var _local2 = currEnemySTR;
mainCharDamage = parseInt((attackType * _local2) + random(20));
if (mainCharDamage <= 0) {
mainCharDamage = 1;
}
} else {
mainCharDamage = "miss";
}
combatStage.enemyState.gotoAndPlay((("robot" + eneType) + "Attack") + attackType);
combatStage.enemyAttack.attackName.attackText.text = robots["r" + _root.enemy]["A" + attackType];
combatStage.enemyAttack.play();
}
function mainCharAttack(attackType) {
var _local3 = currEnemySPEED - mainCharSPEED;
if (attackType == 1) {
trace("BLADE");
combatStage.mainCharAttack.attackName.attackText.text = _root.inventory.blade.name;
if (random(100) > 5) {
enemyDamage = (_root.inventory.blade.effect - 10) + random(20);
if (enemyDamage <= 0) {
enemyDamage = 1;
}
} else {
enemyDamage = "miss";
}
} else {
trace("GUN");
combatStage.mainCharAttack.attackName.attackText.text = _root.inventory.gun.name;
if (random(100) > 10) {
enemyDamage = _root.inventory.gun.effect + random(10);
if (enemyDamage <= 0) {
enemyDamage = 1;
}
} else {
enemyDamage = "miss";
}
}
trace("Damage cal: " + enemyDamage);
if (attackType == 2) {
switch (gunType) {
case 5 :
combatStage.mainChar.gotoAndPlay("mainCharShoot1");
break;
case 6 :
combatStage.mainChar.gotoAndPlay("mainCharShoot2");
break;
case 7 :
combatStage.mainChar.gotoAndPlay("mainCharShoot3");
break;
case 8 :
combatStage.mainChar.gotoAndPlay("mainCharShoot4");
break;
case 9 :
combatStage.mainChar.gotoAndPlay("mainCharShoot5");
}
} else {
switch (bladeType) {
case 1 :
combatStage.mainChar.gotoAndPlay("mainCharSlash1");
break;
case 2 :
combatStage.mainChar.gotoAndPlay("mainCharSlash2");
break;
case 3 :
combatStage.mainChar.gotoAndPlay("mainCharSlash3");
break;
case 4 :
combatStage.mainChar.gotoAndPlay("mainCharSlash4");
break;
case 15 :
combatStage.mainChar.gotoAndPlay("mainCharSlash5");
}
}
combatStage.mainCharAttack.play();
}
function combatTimer() {
if (_root.combatScene.enemyNextTurn == "true") {
if (currETimer >= currEnemySPEED) {
enemyNextTurn = "false";
enemyAttack();
currETimer = 0;
} else {
currETimer = currETimer + enemyTimerCharge;
}
}
if (_root.combatScene.mainCharNextTurn == "true") {
if (_root.combatScene.currMainCharTimer >= _root.combatScene.mainCharSPEED) {
_root.combatScene.combatStage.Menu.gotoAndStop(2);
} else {
currMainCharTimer = currMainCharTimer + timerCharge;
combatStage.timebar._xscale = (_root.combatScene.currMainCharTimer / _root.combatScene.mainCharSPEED) * 100;
}
}
if (_root.combatScene.currEnemyHP <= 0) {
clearInterval(_root.combatInterval);
_root.combatScene.combatStage.gotoAndPlay("EnemyLose");
}
if (_root.combatScene.currMainCharHP <= 0) {
clearInterval(_root.combatInterval);
_root.combatScene.combatStage.gotoAndPlay("mainCharLose");
}
}
var eneType;
var enemyName;
var enemyDamage = 0;
var mainCharDamage = 0;
var robots = new Object();
robots.r1 = new Object();
robots.r1.NAME = "Mystro";
robots.r1.PILOT = Array("Bandit", "Thug", "Outlaw", "Rogue");
robots.r1.HP = 125;
robots.r1.RND = 30;
robots.r1.STR = 30;
robots.r1.SPEED = 125;
robots.r1.FAME = 1;
robots.r1.GAINCREDITS = 200;
robots.r1.LOSECREDITS = 100;
robots.r1.GAINHP = 5;
robots.r1.A1 = "Frost Arrows";
robots.r1.A2 = "Fire Pyre";
robots.r2 = new Object();
robots.r2.NAME = "ManDrake";
robots.r2.PILOT = Array("Bandit Baron", "Marauder", "Beserker");
robots.r2.HP = 600;
robots.r2.RND = 100;
robots.r2.STR = 70;
robots.r2.SPEED = 105;
robots.r2.FAME = 5;
robots.r2.GAINCREDITS = 1000;
robots.r2.LOSECREDITS = 500;
robots.r2.GAINHP = 15;
robots.r2.A1 = "Acid Slash";
robots.r2.A2 = "Dragon Fury";
robots.r3 = new Object();
robots.r3.NAME = "Vulcan ARMS";
robots.r3.PILOT = Array("Bane");
robots.r3.HP = 1200;
robots.r3.RND = 0;
robots.r3.STR = 80;
robots.r3.SPEED = 85;
robots.r3.FAME = 10;
robots.r3.GAINCREDITS = 2000;
robots.r3.LOSECREDITS = 1000;
robots.r3.GAINHP = 30;
robots.r3.A1 = "Twin Cannon";
robots.r3.A2 = "All-Out Attack";
robots.r4 = new Object();
robots.r4.NAME = "Maverick Weapons";
robots.r4.PILOT = Array("Unknown");
robots.r4.HP = 2000;
robots.r4.RND = 0;
robots.r4.STR = 90;
robots.r4.SPEED = 85;
robots.r4.FAME = 30;
robots.r4.GAINCREDITS = 5000;
robots.r4.LOSECREDITS = 5000;
robots.r4.GAINHP = 50;
robots.r4.A1 = "Shadow Strike";
robots.r4.A2 = "Armageddon";
robots.r5 = new Object();
robots.r5.NAME = "Twin-Mragons";
robots.r5.PILOT = Array("Brigand", "Pirate", "Desperado");
robots.r5.HP = 400;
robots.r5.RND = 60;
robots.r5.STR = 45;
robots.r5.SPEED = 110;
robots.r5.FAME = 2;
robots.r5.GAINCREDITS = 500;
robots.r5.LOSECREDITS = 300;
robots.r5.GAINHP = 10;
robots.r5.A1 = "Cryo Spheres";
robots.r5.A2 = "Tail Cannon";
var currMainCharHP;
var mainCharSTR;
var mainCharSPEED;
var currMainCharTimer;
var gunType;
var bladeType;
var currEnemyHP;
var currEnemySTR;
var currEnemySPEED;
var currETimer;
var enemyNextTurn = "true";
var mainCharNextTurn = "true";
Symbol 690 Button
on (release) {
if (_root.credits >= 500) {
_root.playSound("cash");
chat.text = "Come, tell us all about your adventures!";
_root.credits = _root.credits - 500;
_root.fame = _root.fame + (1 + random(5));
} else {
chat.text = "You do not have enough credits.";
}
ok_btn._visible = false;
}
Symbol 709 Button
on (release) {
_global.clicked = false;
ok._visible = false;
no._visible = false;
_root.playSound("close");
}
Symbol 710 Button
on (release) {
_global.clicked = false;
_root.playSound("cash");
if (_global.action == "buying") {
_root.credits = _root.credits - item.cost;
if (_root.inventory.i1.name == _root.items.i0.name) {
_root.inventory.i1 = item;
_root.inv1Name = item.name;
} else if (_root.inventory.i2.name == _root.items.i0.name) {
_root.inventory.i2 = item;
_root.inv2Name = item.name;
} else if (_root.inventory.i3.name == _root.items.i0.name) {
_root.inventory.i3 = item;
_root.inv3Name = item.name;
}
ok._visible = false;
no._visible = false;
} else {
_root.credits = _root.credits + (item.cost / 2);
switch (invNo) {
case "item1" :
_root.inventory.i1 = _root.items.i0;
_parent.items.item1.itemName = "-empty-";
_parent.items.item1.itemCost = 0;
_root.inv1Name = "-empty-";
break;
case "item2" :
_root.inventory.i2 = _root.items.i0;
_parent.items.item2.itemName = "-empty-";
_parent.items.item2.itemCost = 0;
_root.inv2Name = "-empty-";
break;
case "item3" :
_root.inventory.i3 = _root.items.i0;
_parent.items.item3.itemName = "-empty-";
_parent.items.item3.itemCost = 0;
_root.inv3Name = "-empty-";
}
ok._visible = false;
no._visible = false;
}
}
Symbol 717 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 1
stop();
Symbol 746 Button
on (release) {
gotoAndStop ("default");
_root.playSound("close");
}
Symbol 749 Button
on (release) {
_root.enemy = 3;
_root.combatScene.startCombat();
_root.combatScene._visible = true;
_root.buttonblocker._visible = true;
gotoAndStop ("default");
}
Symbol 755 MovieClip Frame 1
stop();
Symbol 760 Button
on (release) {
if (_root.banking == "deposit") {
if (bankingInput.text <= 0) {
dialogBox.text = "Invalid entry!";
} else if (_root.credits < bankingInput.text) {
dialogBox.text = "You do not have that many CU!!";
} else {
_root.playSound("cash");
dialogBox.text = bankingInput.text + " CU has been safely deposited into your account.";
_root.bankCredits = _root.bankCredits + parseInt(bankingInput.text);
_root.credits = _root.credits - parseInt(bankingInput.text);
bankingInput.text = _root.credits;
}
} else if (bankingInput.text <= 0) {
dialogBox.text = "Invalid entry!";
} else if (_root.bankCredits < bankingInput.text) {
dialogBox.text = "You do not have that many CU!!";
} else {
_root.playSound("cash");
dialogBox.text = bankingInput.text + " CU has been withdrawn from your account.";
_root.bankCredits = _root.bankCredits - parseInt(bankingInput.text);
_root.credits = _root.credits + parseInt(bankingInput.text);
bankingInput.text = _root.bankCredits;
}
}
Symbol 773 Button
on (release) {
_root.enemy = 4;
_root.combatScene.startCombat();
_root.combatScene._visible = true;
_root.buttonblocker._visible = true;
gotoAndStop ("default");
}
Symbol 779 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 10
stop();
switch (random(5)) {
case 0 :
chat.text = "They say a strange MaW loiters around the Oasis...";
break;
case 1 :
chat.text = "That's a nice MAW you have.";
break;
case 2 :
chat.text = "Kryon Isle has a pub that is visited by a lot of veteran pilots.";
break;
case 3 :
chat.text = "By defeating enemies, your fame will go up.";
break;
case 4 :
chat.text = "Losing battles reduces your fame.";
}
Symbol 779 MovieClip Frame 18
chat.text = "Hi there!\nMind if you buy us a round of drinks?\n(Cost 500 CU. Chance to add up to 5 Fame)";
Symbol 779 MovieClip Frame 25
stop();
switch (_root.quest2) {
case 1 :
if (_root.inv1Name == "-empty-") {
_root.quest2 = 2;
chat.text = "You are now truly a great pilot, I present to you the most powerful weapon.";
_root.inventory.i1 = _root.items.i9;
_root.inv1Name = _root.inventory.i1.name;
} else if (_root.inv2Name == "-empty-") {
_root.quest2 = 2;
chat.text = "You are now truly a great pilot, I present to you the most powerful weapon.";
_root.inventory.i2 = _root.items.i9;
_root.inv2Name = _root.inventory.i2.name;
} else if (_root.inv3Name == "-empty-") {
_root.quest2 = 2;
chat.text = "You are now truly a great pilot, I present to you the most powerful weapon.";
_root.inventory.i3 = _root.items.i9;
_root.inv3Name = _root.inventory.i3.name;
} else {
chat.text = "You have completed my task, but your inventory is full.";
}
break;
case 2 :
chat.text = "By defeating Destro, you have proven yourself as a great pilot.";
break;
case 0 :
chat.text = "If you can defeat the pilot living in Dragon's Horn, I will reward you for it.";
break;
default :
chat.text = "If you can defeat the pilot living in Dragon's Horn, I will reward you for it.";
_root.quest2 = 0;
}
Symbol 779 MovieClip Frame 32
ok._visible = false;
no._visible = false;
Symbol 779 MovieClip Frame 43
switch (_root.quest1) {
case 1 :
if (_root.fame >= 300) {
if (_root.inv1Name == "-empty-") {
_root.quest1 = 2;
chat.text = "For all your hardwork, I present to you the best armor in the world.";
_root.inventory.i1 = _root.items.i14;
_root.inv1Name = _root.inventory.i1.name;
} else if (_root.inv2Name == "-empty-") {
_root.quest1 = 2;
chat.text = "For all your hardwork, I present to you the best armor in the world.";
_root.inventory.i2 = _root.items.i14;
_root.inv2Name = _root.inventory.i2.name;
} else if (_root.inv3Name == "-empty-") {
_root.quest1 = 2;
chat.text = "For all your hardwork, I present to you the best armor in the world.";
_root.inventory.i3 = _root.items.i14;
_root.inv3Name = _root.inventory.i3.name;
} else {
chat.text = "You have completed my task, but your inventory is full.";
}
} else {
chat.text = "Come back to me when your fame is 300 or more. There is something rare that I would like to give to a true warrior.";
}
break;
case 2 :
chat.text = "Great warrior, what brings you here today?";
break;
case 0 :
if (_root.fame >= 30) {
_root.quest1 = 1;
chat.text = "Well done! Here is 1000 credits.";
_root.credits = _root.credits + 1000;
} else {
chat.text = "Come back to me when your fame is 30 or more. I have something for you.";
}
break;
default :
_root.quest1 = 0;
}
Symbol 779 MovieClip Frame 53
stop();
switch (random(15)) {
case 0 :
chat.text = "Store your credits in your house if you do not want to lose them.";
break;
case 1 :
chat.text = "Losing a battle will result in loss of CU.";
break;
case 2 :
chat.text = "With each battle, you get stronger.";
break;
case 3 :
chat.text = "The mavericks are extremely strong, because their program allows them to work as a single entity.";
break;
case 4 :
chat.text = "I heard that an extremely skilled pilot lives in Dragon's Horn.";
break;
case 5 :
chat.text = "Maverick MAWs rule over the wastelands to the North.\nThese MAWs are controlled by rogue Artificial Intelligence.";
break;
case 6 :
chat.text = "A blade attack deals less damage than a projectile-based attack.";
break;
case 7 :
chat.text = "You recover much faster from a blade attack, allowing you to attack more often.";
break;
case 8 :
chat.text = "Selling items reduces their prices by half.";
break;
case 9 :
chat.text = "Some items cannot be found in shops.";
break;
case 10 :
chat.text = "No one has ever reached above the Ace class pilot rank...";
break;
case 11 :
chat.text = "They say midnight is a special time.";
break;
case 12 :
chat.text = "The mavericks have a special weapon that creates powerful illusions.";
break;
case 13 :
chat.text = "The most powerful blade weapon is in the hands of a maverick.";
break;
case 14 :
chat.text = "The maverick called Midnight is not as evil as the others.";
}
Symbol 779 MovieClip Frame 79
var rnd = random(100);
trace(rnd);
if (rnd < 70) {
rndCash = 1 + random(10);
condomsg = ("Found " + rndCash) + " CU!!";
_root.playSound("cash");
_root.credits = _root.credits + rndCash;
} else if (rnd < 98) {
condomsg = "Nothing of interests....";
} else {
_root.playSound("win");
condomsg = "Found secret armor!!!";
if (_root.inventory.i1.name == _root.items.i0.name) {
_root.inventory.i1 = _root.items.i11;
_root.inv1Name = _root.items.i11.name;
} else if (_root.inventory.i2.name == _root.items.i0.name) {
_root.inventory.i2 = _root.items.i11;
_root.inv2Name = _root.items.i11.name;
} else if (_root.inventory.i3.name == _root.items.i0.name) {
_root.inventory.i3 = _root.items.i11;
_root.inv3Name = _root.items.i11.name;
} else {
condomsg("Your items are full!! Could not commence search.");
}
}
if (rnd == 50) {
_root.playSound("lose");
condomsg = "The cops caught you in the act! Fined 1000 CU!!";
_root.credits = _root.credits - 1000;
if (_root.credits <= 0) {
_root.credits = 0;
}
}
Symbol 779 MovieClip Frame 89
if (_root.banking == "deposit") {
dialogBox.text = "How much do you wish to deposit?";
bankingInput.text = _root.credits;
} else {
dialogBox.text = "How much do you wish to withdraw?";
bankingInput.text = _root.bankCredits;
}
Symbol 779 MovieClip Frame 103
stop();
switch (_root.quest3) {
case 0 :
if (_root.baseHP < 100) {
chat.text = "Get lost. I will only talk to veterans.";
} else {
chat.text = "Hmm.. I can see that you have been through some battles.";
_root.quest3++;
}
break;
case 1 :
if (_root.baseHP < 1000) {
chat.text = "You are still way too weak...";
} else if (_root.inv1Name == "-empty-") {
_root.quest3++;
chat.text = "You have my utmost admiration. Take this sword and challenge us in the wastelands.";
_root.inventory.i1 = _root.items.i15;
_root.inv1Name = _root.inventory.i1.name;
} else if (_root.inv2Name == "-empty-") {
_root.quest3++;
chat.text = "You have my utmost admiration. Take this sword and challenge us in the wastelands.";
_root.inventory.i2 = _root.items.i15;
_root.inv2Name = _root.inventory.i2.name;
} else if (_root.inv3Name == "-empty-") {
_root.quest3++;
chat.text = "You have my utmost admiration. Take this sword and challenge us in the wastelands.";
_root.inventory.i3 = _root.items.i15;
_root.inv3Name = _root.inventory.i3.name;
} else {
chat.text = "Your inventory is full...";
}
break;
case 2 :
chat.text = "...";
break;
default :
_root.quest3 = 0;
if (_root.baseHP < 100) {
chat.text = "Get lost. I will only talk to veterans.";
} else {
chat.text = "Hmm.. I can see that you have been through some battles.";
_root.quest3++;
}
}
Symbol 786 Button
on (rollOver) {
gotoAndPlay (180);
}
Symbol 788 MovieClip Frame 200
gotoAndPlay (35);
Symbol 794 MovieClip Frame 9
stop();
Symbol 806 MovieClip Frame 60
gotoAndPlay (6);
Symbol 808 Button
on (release) {
_root.playSound("close");
_root.buttonblocker._visible = false;
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 195;
_root.world.char.tempz = -215;
_global.action = "walking";
}
Symbol 809 Button
on (release) {
_parent.masterDialog.gotoAndStop("leonard");
}
Symbol 810 Button
on (release) {
_parent.masterDialog.gotoAndStop("adeline");
}
Symbol 811 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 9
stop();
Symbol 822 Button
on (release) {
_root.playSound("close");
_root.buttonblocker._visible = false;
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 250;
_root.world.char.tempz = -80;
_global.action = "walking";
}
Symbol 824 Button
on (release) {
_parent.masterDialog.gotoAndStop(1);
_parent.masterDialog.gotoAndStop("patrons");
_parent.masterDialog.ok_btn._visible = true;
}
Symbol 825 Button
on (release) {
_parent.masterDialog.gotoAndStop(1);
_parent.masterDialog.gotoAndStop("waitress");
}
Symbol 826 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 9
stop();
Symbol 838 Button
on (release) {
_root.playSound("close");
_root.buttonblocker._visible = false;
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 265;
_root.world.char.tempz = -130;
_global.action = "walking";
}
Symbol 839 Button
on (release) {
_parent.masterDialog.gotoAndStop("default");
_parent.gotoAndStop("condolvl3");
}
Symbol 840 Button
on (release) {
_parent.masterDialog.gotoAndStop("default");
_parent.gotoAndStop("condolvl2");
}
Symbol 841 Button
on (release) {
_parent.masterDialog.gotoAndStop("ronnie");
}
Symbol 842 MovieClip Frame 1
stop();
Symbol 848 Button
on (release) {
_parent.masterDialog.gotoAndStop("default");
_parent.gotoAndStop("condolvl1");
}
Symbol 849 Button
on (release) {
_parent.masterDialog.gotoAndStop("condosearch");
}
Symbol 850 MovieClip Frame 1
stop();
Symbol 854 Button
on (release) {
_parent.masterDialog.gotoAndStop("melissa");
}
Symbol 855 MovieClip Frame 1
stop();
Symbol 867 Button
on (rollOver) {
if (!_global.clicked) {
_parent._parent.masterDialog.dialog = this.dialog;
}
}
on (release) {
_parent._parent.masterDialog.ok._visible = false;
_parent._parent.masterDialog.no._visible = false;
if (itemName != "-empty-") {
_global.clicked = true;
if (_global.action == "buying") {
if (((_root.inventory.i1.name == _root.items.i0.name) || (_root.inventory.i2.name == _root.items.i0.name)) || (_root.inventory.i3.name == _root.items.i0.name)) {
if (_root.credits < itemCost) {
_parent._parent.masterDialog.dialog = ("You do not have enough credits to purchase the " + this.itemName) + ".";
} else {
_parent._parent.masterDialog.dialog = ((("Do you wish to purchase the " + this.itemName) + " for ") + this.itemCost) + " credits?";
_parent._parent.masterDialog.item = new Object();
_parent._parent.masterDialog.item = this.item;
_parent._parent.masterDialog.invNo = new Object();
_parent._parent.masterDialog.invNo = this._name;
_parent._parent.masterDialog.ok._visible = true;
_parent._parent.masterDialog.no._visible = true;
}
} else {
_parent._parent.masterDialog.dialog = "You cannot carry anymore items!";
}
} else {
_parent._parent.masterDialog.dialog = ((("Do you wish to sell the " + this.itemName) + " for ") + this.itemCost) + " credits?";
_parent._parent.masterDialog.item = new Object();
_parent._parent.masterDialog.item = this.item;
_parent._parent.masterDialog.invNo = new Object();
_parent._parent.masterDialog.invNo = this._name;
_parent._parent.masterDialog.ok._visible = true;
_parent._parent.masterDialog.no._visible = true;
}
}
}
Symbol 874 MovieClip Frame 9
stop();
Symbol 876 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 1
stop();
Symbol 885 Button
on (release) {
_global.clicked = false;
_parent.items.item1.itemName = "-empty-";
_parent.items.item1.itemCost = 0;
_parent.items.item2.itemName = "-empty-";
_parent.items.item2.itemCost = 0;
_parent.items.item3.itemName = "-empty-";
_parent.items.item3.itemCost = 0;
_parent.items.item4.itemName = "-empty-";
_parent.items.item4.itemCost = 0;
_parent.items.item5.itemName = "-empty-";
_parent.items.item5.itemCost = 0;
_parent.items.item6.itemName = "-empty-";
_parent.items.item6.itemCost = 0;
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
_parent.items._visible = false;
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 280;
_root.world.char.tempz = -105;
_root.buttonblocker._visible = false;
_root.playSound("close");
_global.action = "walking";
}
Symbol 886 Button
on (release) {
_global.action = "selling";
dialog = "Which weapon do you want to sell?";
_parent.items._visible = true;
_parent.masterDialog.gotoAndStop("dealer");
_parent.items.item1.item = _root.inventory.i1;
_parent.items.item2.item = _root.inventory.i2;
_parent.items.item3.item = _root.inventory.i3;
_parent.items.item1.itemName = _root.inventory.i1.name;
_parent.items.item1.itemCost = _root.inventory.i1.cost / 2;
_parent.items.item2.itemName = _root.inventory.i2.name;
_parent.items.item2.itemCost = _root.inventory.i2.cost / 2;
_parent.items.item3.itemName = _root.inventory.i3.name;
_parent.items.item3.itemCost = _root.inventory.i3.cost / 2;
_parent.items.item4.itemName = "-empty-";
_parent.items.item4.itemCost = 0;
_parent.items.item5.itemName = "-empty-";
_parent.items.item5.itemCost = 0;
_parent.items.item6.itemName = "-empty-";
_parent.items.item6.itemCost = 0;
_parent.items.item1.dialog = "";
_parent.items.item2.dialog = "";
_parent.items.item3.dialog = "";
_parent.items.item4.dialog = "";
_parent.items.item5.dialog = "";
_parent.items.item6.dialog = "";
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
}
on (rollOver) {
_parent.masterDialog.dialog = "Something to sell?";
}
Symbol 887 Button
on (release) {
_global.action = "buying";
dialog = "Which weapon do you want to purchase?";
_parent.masterDialog.gotoAndStop("dealer");
_parent.items._visible = true;
_parent.items.item1.item = _root.items.i1;
_parent.items.item1.itemName = _parent.items.item1.item.name;
_parent.items.item1.itemCost = _parent.items.item1.item.cost;
_parent.items.item1.dialog = "Standard blade issued with new MAWs.";
_parent.items.item2.item = _root.items.i2;
_parent.items.item2.itemName = _parent.items.item2.item.name;
_parent.items.item2.itemCost = _parent.items.item2.item.cost;
_parent.items.item2.dialog = "Enough to cut away most materials...";
_parent.items.item3.item = _root.items.i5;
_parent.items.item3.itemName = _parent.items.item3.item.name;
_parent.items.item3.itemCost = _parent.items.item3.item.cost;
_parent.items.item3.dialog = "Standard issue gun.";
_parent.items.item4.item = _root.items.i6;
_parent.items.item4.itemName = _parent.items.item4.item.name;
_parent.items.item4.itemCost = _parent.items.item4.item.cost;
_parent.items.item4.dialog = "A more powerful gun than your basic gun.";
_parent.items.item5.item = _root.items.i10;
_parent.items.item5.itemName = _parent.items.item5.item.name;
_parent.items.item5.itemCost = _parent.items.item5.item.cost;
_parent.items.item5.dialog = "Standard protection for your MAW.";
_parent.items.item6.item = _root.items.i11;
_parent.items.item6.itemName = _parent.items.item6.item.name;
_parent.items.item6.itemCost = _parent.items.item6.item.cost;
_parent.items.item6.dialog = "You need this if you want to survive the hostile areas.";
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
}
on (rollOver) {
_parent.masterDialog.dialog = "Anything special you are looking for?";
}
Symbol 888 Button
on (release) {
_parent.items._visible = false;
_parent.masterDialog.gotoAndStop("dealer");
switch (random(5)) {
case 0 :
_parent.masterDialog.dialog = "Make sure that you are well equipped.";
break;
case 1 :
_parent.masterDialog.dialog = "The desert is dangerous for beginners.";
break;
case 2 :
_parent.masterDialog.dialog = "Our items are the cheapest around.";
break;
case 3 :
_parent.masterDialog.dialog = "Losing battles makes you poorer.";
break;
case 4 :
_parent.masterDialog.dialog = "Save your progress often.";
}
}
Symbol 889 MovieClip Frame 1
stop();
Symbol 898 Button
on (rollOver) {
if (!_global.clicked) {
_parent._parent.masterDialog.dialog = this.dialog;
}
}
on (release) {
_parent._parent.masterDialog.ok._visible = false;
_parent._parent.masterDialog.no._visible = false;
if (itemName != "-empty-") {
_global.clicked = true;
if (_global.action == "buying") {
if (((_root.inventory.i1.name == _root.items.i0.name) || (_root.inventory.i2.name == _root.items.i0.name)) || (_root.inventory.i3.name == _root.items.i0.name)) {
if (_root.credits < itemCost) {
_parent._parent.masterDialog.dialog = ("You do not have enough credits to purchase the " + this.itemName) + ".";
} else {
_parent._parent.masterDialog.dialog = ((("Do you wish to purchase the " + this.itemName) + " for ") + this.itemCost) + " credits?";
_parent._parent.masterDialog.item = new Object();
_parent._parent.masterDialog.item = this.item;
_parent._parent.masterDialog.invNo = new Object();
_parent._parent.masterDialog.invNo = this._name;
_parent._parent.masterDialog.ok._visible = true;
_parent._parent.masterDialog.no._visible = true;
}
} else {
_parent._parent.masterDialog.dialog = "You cannot carry anymore items!";
}
} else {
_parent._parent.masterDialog.dialog = ((("Do you wish to sell the " + this.itemName) + " for ") + this.itemCost) + " credits?";
_parent._parent.masterDialog.item = new Object();
_parent._parent.masterDialog.item = this.item;
_parent._parent.masterDialog.invNo = new Object();
_parent._parent.masterDialog.invNo = this._name;
_parent._parent.masterDialog.ok._visible = true;
_parent._parent.masterDialog.no._visible = true;
}
}
}
Symbol 905 MovieClip Frame 9
stop();
Symbol 907 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 916 Button
on (release) {
_global.clicked = false;
_parent.items.item1.itemName = "-empty-";
_parent.items.item1.itemCost = 0;
_parent.items.item2.itemName = "-empty-";
_parent.items.item2.itemCost = 0;
_parent.items.item3.itemName = "-empty-";
_parent.items.item3.itemCost = 0;
_parent.items.item4.itemName = "-empty-";
_parent.items.item4.itemCost = 0;
_parent.items.item5.itemName = "-empty-";
_parent.items.item5.itemCost = 0;
_parent.items.item6.itemName = "-empty-";
_parent.items.item6.itemCost = 0;
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
_parent.items._visible = false;
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 190;
_root.world.char.tempz = -170;
_root.buttonblocker._visible = false;
_root.playSound("close");
_global.action = "walking";
}
Symbol 917 Button
on (release) {
_global.action = "selling";
dialog = "Which weapon do you want to sell?";
_parent.masterDialog.gotoAndStop("dealer");
_parent.items._visible = true;
_parent.items.item1.item = _root.inventory.i1;
_parent.items.item2.item = _root.inventory.i2;
_parent.items.item3.item = _root.inventory.i3;
_parent.items.item1.itemName = _root.inventory.i1.name;
_parent.items.item1.itemCost = _root.inventory.i1.cost / 2;
_parent.items.item2.itemName = _root.inventory.i2.name;
_parent.items.item2.itemCost = _root.inventory.i2.cost / 2;
_parent.items.item3.itemName = _root.inventory.i3.name;
_parent.items.item3.itemCost = _root.inventory.i3.cost / 2;
_parent.items.item4.itemName = "-empty-";
_parent.items.item4.itemCost = 0;
_parent.items.item5.itemName = "-empty-";
_parent.items.item5.itemCost = 0;
_parent.items.item6.itemName = "-empty-";
_parent.items.item6.itemCost = 0;
_parent.items.item1.dialog = "";
_parent.items.item2.dialog = "";
_parent.items.item3.dialog = "";
_parent.items.item4.dialog = "";
_parent.items.item5.dialog = "";
_parent.items.item6.dialog = "";
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
}
on (rollOver) {
_parent.masterDialog.dialog = "Something to sell?";
}
Symbol 918 Button
on (release) {
_global.action = "buying";
dialog = "Which weapon do you want to purchase?";
_parent.masterDialog.gotoAndStop("dealer");
_parent.items._visible = true;
_parent.items.item1.item = _root.items.i3;
_parent.items.item1.itemName = _parent.items.item1.item.name;
_parent.items.item1.itemCost = _parent.items.item1.item.cost;
_parent.items.item1.dialog = "This mean looking blade will cut through anything...";
_parent.items.item2.item = _root.items.i4;
_parent.items.item2.itemName = _parent.items.item2.item.name;
_parent.items.item2.itemCost = _parent.items.item2.item.cost;
_parent.items.item2.dialog = "The most powerful blade you will ever find.";
_parent.items.item3.item = _root.items.i7;
_parent.items.item3.itemName = _parent.items.item3.item.name;
_parent.items.item3.itemCost = _parent.items.item3.item.cost;
_parent.items.item3.dialog = "A cannon that fires a focused energy shot.";
_parent.items.item4.item = _root.items.i8;
_parent.items.item4.itemName = _parent.items.item4.item.name;
_parent.items.item4.itemCost = _parent.items.item4.item.cost;
_parent.items.item4.dialog = "Burn your enemies away with this cannon.";
_parent.items.item5.item = _root.items.i12;
_parent.items.item5.itemName = _parent.items.item5.item.name;
_parent.items.item5.itemCost = _parent.items.item5.item.cost;
_parent.items.item5.dialog = "This armor ensures that all areas are well protected.";
_parent.items.item6.item = _root.items.i13;
_parent.items.item6.itemName = _parent.items.item6.item.name;
_parent.items.item6.itemCost = _parent.items.item6.item.cost;
_parent.items.item6.dialog = "Made from the best ore that can be found.";
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
}
on (rollOver) {
_parent.masterDialog.dialog = "Anything special you are looking for?";
}
Symbol 919 Button
on (release) {
_parent.items._visible = false;
_parent.masterDialog.gotoAndStop("dealer");
switch (random(5)) {
case 0 :
_parent.masterDialog.dialog = "Make sure that you are well equipped.";
break;
case 1 :
_parent.masterDialog.dialog = "The desert is dangerous for beginners.";
break;
case 2 :
_parent.masterDialog.dialog = "Our items are the best that you can buy.";
break;
case 3 :
_parent.masterDialog.dialog = "Losing battles makes you poorer.";
break;
case 4 :
_parent.masterDialog.dialog = "Save your progress often.";
}
}
Symbol 920 MovieClip Frame 1
stop();
Symbol 928 MovieClip Frame 9
stop();
Symbol 933 Button
on (release) {
_global.clicked = false;
_parent.item1.itemName = "-empty-";
_parent.item1.itemCost = 0;
_parent.item2.itemName = "-empty-";
_parent.item2.itemCost = 0;
_parent.item3.itemName = "-empty-";
_parent.item3.itemCost = 0;
_parent.item4.itemName = "-empty-";
_parent.item4.itemCost = 0;
_parent.item5.itemName = "-empty-";
_parent.item5.itemCost = 0;
_parent.item6.itemName = "-empty-";
_parent.item6.itemCost = 0;
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 190;
_root.world.char.tempz = -170;
_root.buttonblocker._visible = false;
_root.playSound("close");
_global.action = "walking";
}
Symbol 934 Button
on (release) {
_global.action = "selling";
dialog = "Which weapon do you want to sell?";
_parent.masterDialog.gotoAndStop("dealer");
_parent.item1.item = _root.inventory.i1;
_parent.item2.item = _root.inventory.i2;
_parent.item3.item = _root.inventory.i3;
_parent.item1.itemName = _root.inventory.i1.name;
_parent.item1.itemCost = _root.inventory.i1.cost / 2;
_parent.item2.itemName = _root.inventory.i2.name;
_parent.item2.itemCost = _root.inventory.i2.cost / 2;
_parent.item3.itemName = _root.inventory.i3.name;
_parent.item3.itemCost = _root.inventory.i3.cost / 2;
_parent.item4.itemName = "-empty-";
_parent.item4.itemCost = 0;
_parent.item5.itemName = "-empty-";
_parent.item5.itemCost = 0;
_parent.item6.itemName = "-empty-";
_parent.item6.itemCost = 0;
_parent.item1.dialog = "";
_parent.item2.dialog = "";
_parent.item3.dialog = "";
_parent.item4.dialog = "";
_parent.item5.dialog = "";
_parent.item6.dialog = "";
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
}
on (rollOver) {
_parent.masterDialog.dialog = "Something to sell?";
}
Symbol 935 Button
on (release) {
_global.action = "buying";
dialog = "Which weapon do you want to purchase?";
_parent.masterDialog.gotoAndStop("dealer");
_parent.item1.item = _root.items.i3;
_parent.item1.itemName = _parent.item1.item.name;
_parent.item1.itemCost = _parent.item1.item.cost;
_parent.item1.dialog = "This mean looking blade will cut through anything...";
_parent.item2.item = _root.items.i4;
_parent.item2.itemName = _parent.item2.item.name;
_parent.item2.itemCost = _parent.item2.item.cost;
_parent.item2.dialog = "The most powerful blade you will ever find.";
_parent.item3.item = _root.items.i7;
_parent.item3.itemName = _parent.item3.item.name;
_parent.item3.itemCost = _parent.item3.item.cost;
_parent.item3.dialog = "A cannon that fires a focused energy shot.";
_parent.item4.item = _root.items.i8;
_parent.item4.itemName = _parent.item4.item.name;
_parent.item4.itemCost = _parent.item4.item.cost;
_parent.item4.dialog = "Burn your enemies away with this cannon.";
_parent.item5.item = _root.items.i12;
_parent.item5.itemName = _parent.item5.item.name;
_parent.item5.itemCost = _parent.item5.item.cost;
_parent.item5.dialog = "This armor ensures that all areas are well protected.";
_parent.item6.item = _root.items.i13;
_parent.item6.itemName = _parent.item6.item.name;
_parent.item6.itemCost = _parent.item6.item.cost;
_parent.item6.dialog = "Made from the best ore that can be found.";
_parent.masterDialog.ok._visible = false;
_parent.masterDialog.no._visible = false;
}
on (rollOver) {
_parent.masterDialog.dialog = "Anything special you are looking for?";
}
Symbol 936 Button
on (release) {
_parent.masterDialog.gotoAndStop("dealer");
}
Symbol 937 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 9
stop();
Symbol 946 Button
on (release) {
_root.buttonblocker._visible = false;
_root.playSound("close");
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 270;
_root.world.char.tempz = -125;
_global.action = "walking";
}
Symbol 948 Button
on (release) {
_root.banking = "withdraw";
_parent.masterDialog.gotoAndStop(1);
_parent.masterDialog.gotoAndStop("myhouse");
}
Symbol 949 Button
on (release) {
_root.banking = "deposit";
_parent.masterDialog.gotoAndStop(1);
_parent.masterDialog.gotoAndStop("myhouse");
}
Symbol 950 MovieClip Frame 1
stop();
Symbol 958 MovieClip Frame 9
stop();
Symbol 962 Button
on (release) {
_root.buttonblocker._visible = false;
_root.playSound("close");
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 195;
_root.world.char.tempz = -250;
_global.action = "walking";
}
Symbol 963 Button
on (release) {
_parent.masterDialog.gotoAndStop("bane");
}
Symbol 964 MovieClip Frame 1
stop();
Symbol 969 MovieClip Frame 9
stop();
Symbol 972 Button
on (release) {
_root.buttonblocker._visible = false;
_root.playSound("close");
_parent.masterDialog.gotoAndStop("default");
_root.talkMov._visible = false;
_root.world.char.tempx = 220;
_root.world.char.tempz = -160;
_global.action = "walking";
}
Symbol 973 Button
on (release) {
_parent.masterDialog.gotoAndStop("npc1");
}
Symbol 974 MovieClip Frame 1
stop();
Symbol 978 Button
on (release) {
_parent.masterDialog.gotoAndStop("npc_Midnight");
}
Symbol 979 MovieClip Frame 1
stop();
Symbol 980 MovieClip Frame 1
stop();
Symbol 980 MovieClip Frame 2
stop();
Symbol 980 MovieClip Frame 39
stop();
items._visible = false;
Symbol 980 MovieClip Frame 46
stop();
items._visible = false;
Symbol 982 Button
on (release) {
_parent.playSound("ok");
_parent.quit();
}
Symbol 983 Button
on (release) {
_parent.playSound("close");
this._visible = false;
}
Symbol 987 Button
on (release) {
var so = SharedObject.getLocal("mobileweapon");
so.data.mawName = _parent.mawName;
so.data.pilotName = _parent.pilotName;
so.data.bankCredits = _parent.bankCredits;
so.data.credits = _parent.credits;
so.data.baseHP = _parent.baseHP;
so.data.chance = _parent.chance;
so.data.fame = _parent.fame;
so.data.i1 = _parent.inventory.i1;
so.data.i2 = _parent.inventory.i2;
so.data.i3 = _parent.inventory.i3;
so.data.blade = _parent.inventory.blade;
so.data.gun = _parent.inventory.gun;
so.data.suit = _parent.inventory.suit;
so.data.mapLocation = _parent.mapLocation;
so.data.areaLocation = _parent.areaLocation;
so.data.quest1 = _parent.quest1;
so.data.quest2 = _parent.quest2;
so.data.quest3 = _parent.quest3;
so.data.tempx = _parent.world.char.tempx;
so.data.tempz = _parent.world.char.tempz;
trace("Writing: " + so.data.credits);
trace(so.flush());
_parent.playSound("ok");
this._visible = false;
}
Symbol 988 MovieClip Frame 1
stop();
Symbol 988 MovieClip Frame 8
stop();
Symbol 989 Button
on (release, keyPress "s") {
playSound("press");
menuDialog._visible = true;
menuDialog.gotoAndStop("save");
}
Symbol 993 Button
on (release) {
playSound("press");
menuDialog._visible = true;
menuDialog.gotoAndStop("quit");
}
Symbol 999 Button
on (release) {
if (_quality == "MEDIUM") {
_quality = "HIGH";
} else {
_quality = "MEDIUM";
}
}
Symbol 1000 Button
on (release) {
_global.musicSetting = !_global.musicSetting;
if (!_global.musicSetting) {
stopAllSounds();
} else {
playingType = -1;
bgSound();
}
}
Symbol 1011 Button
on (release) {
if (_global.action == "walking") {
playSound("press");
mapWin._visible = !mapWin._visible;
mapWin.mapPosition._x = mapWin["marker" + mapLocation]._x;
mapWin.mapPosition._y = mapWin["marker" + mapLocation]._y;
}
}
Symbol 1012 Button
on (release) {
if (_global.action == "walking") {
playSound("press");
inventoryWin._visible = !inventoryWin._visible;
}
}
Symbol 1191 MovieClip Frame 1
stop();
Symbol 1197 MovieClip Frame 1
stop();
Symbol 1197 MovieClip Frame 10
stop();
Symbol 1197 MovieClip Frame 20
stop();