Frame 1
ifFrameLoaded (175) {
fscommand ("showmenu", "false");
gotoAndPlay (4);
}
x = 1090;
Frame 3
gotoAndPlay (1);
Frame 10
soundbeep = new Sound(this);
soundbeep.attachSound("musicintro");
cloaksound = new Sound(this);
cloaksound.attachSound("cloak");
soundbeep.start(0, 999);
Frame 11
x = x - 1;
setProperty("introtext", _y , x);
if (x < -10) {
gotoAndPlay (16);
}
if (Key.isDown(32) or Key.isDown(13)) {
gotoAndPlay (16);
}
Frame 12
gotoAndPlay (11);
Frame 13
gotoAndPlay (11);
Frame 16
stopAllSounds();
cloaksound.start();
Frame 59
attachMovie("arrow", "arrow", 10000);
Mouse.hide();
startDrag ("arrow", true);
stopAllSounds();
Frame 60
expneg = undefined;
expat = undefined;
expeng = undefined;
exptac = undefined;
exptrade = undefined;
expbuild = undefined;
expnav = undefined;
asteroidpass = undefined;
planetpass = undefined;
weaponpass = undefined;
bajoransail = undefined;
warpcore = undefined;
playership = undefined;
weapon1 = undefined;
weapon2 = undefined;
weapon3 = undefined;
opsreserves = undefined;
opsengines = undefined;
opsweapons = undefined;
opsshields = undefined;
planetGovts = undefined;
planetPops = undefined;
planetStrengths = undefined;
mylatinum = undefined;
mydeuranium = undefined;
myantimatter = undefined;
planetGovtArray = undefined;
localprestige = undefined;
stationDataArray = undefined;
myshields = undefined;
myhull = undefined;
myfleet = undefined;
myweapons = undefined;
mytech = undefined;
mybuild = undefined;
myplanet = undefined;
race = undefined;
myname = undefined;
myshipname = undefined;
mygovtname = undefined;
Frame 86
_global.mapnamesArray = mapnames.split(",");
stationtypes = "none,Earth Starbase,Earth Research,Vulcan University,Earth Heavy Shipyard,Earth Shipyard,Trade Station,Bar,Delpin Waterpark,Ore Station,Klingon Starbase,Klingon Shipyard,Klingon Heavy Shipyard,Dyson Sphere,Maintenance Station,Habitat Station,Wormhole Generator,Defense Platform,Advanced Defense Platform,Cardassian Starbase,Subspace Comm Station,Romulan Starbase";
stationtypesArray = stationtypes.split(",");
cargobay = "error,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x,0,Nothing,x,x";
cargoArray = cargobay.split(",");
var i = 1;
while (i <= 10) {
cargoArray[((i - 1) * 4) + 3] = undefined;
i++;
}
govttype = "None,Earth Empire,Klingon Empire,Cardassian Order,Bajoran,Vulcan Command,Romulan Empire,Ferengi Alliance,Andorian,Delpin,Lysian,Tholian Syndicate,Independent,Dominion,Borg,Pirates,player,Thaeton Empire,Koonn Alliance,Deish,Odelu Empire,Ailde Empire,Ryngh Federation,Vaunn Order,Smees Empire,Eunto Space,Lerth Empire,Iryny Order,Thot Alliance,Cheurt Alliance,Meph Empire,Seaph Alliance,Utona Syndicate,Yori Empire,Naenn Command,Vir Union,Atano Union,Zeeld Union,Truin Kingdom,Zhourr Nation,Udari Empire,Aosi Empire,Schoew Order,Olyeo Sovereignty,Keis Empire";
govtArray = govttype.split(",");
ATArray = missions.split(";");
itemdescArray = itemtext.split(";");
weaponstats = weaponinfo.split(";");
orders = "none,escort your starship at Alert Green,explore on its own at Alert Yellow,gather at the planet at Alert Yellow,attack your selected target,seek out and destroy any enemy targets in the area,escort and defend your starship at Alert Red.";
orders = orders.split(",");
stationnames = "Alpha,Beta,Gamma,Omega,Delta,Zeta,Pypa,PS,T,G,X,RL,STL,FBM,SYS,POL,SB,Station,KF,CF";
stationnames = stationnames.split(",");
myhull = undefined;
myshields = undefined;
myweapons = undefined;
planetDataArray = planetData.split(":");
planetGovts = new Array();
var i = 1;
while (i <= 55) {
x = planetDataArray[i - 1].split(";");
planetGovts[i] = x[1];
planetGovts[i + 55] = x[9];
i++;
}
stationdefaults = stationdefaults.split(";");
planetgovt = "error,2,2,2,2,2,4,2,2,2,6,4,4,4,4,4,4,6,4,4,4,1,4,4,6,4,6,4,4,5,4,4,5,5,5,4,1,1,1,1,1,4,1,1,1,1,1,4,4,4,4,12";
var i = 1;
planetgovtArray = new Array();
while (i <= 55) {
planetgovtArray[i] = 7;
i++;
}
planets = mapnames.split(",");
planetsArray = mapnames.split(",");
tradegoodsArray = "Medical Supplies,Beer,Romulan Ale,Food Stuffs,Hyposprays,Tricorders,Orion Slaves,Mugs,Warp Coils,Computers,Art,Old Paintings,Xiang's Brand Vodka,Dead Cats,Pencils,Beetlesnuff,Grey Paint,PADDs,Feminine Products,Staplers,Historic Books,Magazines,Clocks,Fertilizer,Corpses,Prostitutes,Ramscoops,Warp Cores,Impulse Engines,Equipment,Metal,Dilithium,Deuranium,Raw Latinum,Rare Birds,Korean Dogs,Dinner Napkins,Isolinear Chips,Magnets,Flags,Old Photos,Pillows,15 Yr Old Scotch";
tradegoodsArray = tradegoodsArray.split(",");
myshields = 100;
stationdataArray = stationdata.split(",");
shipnamesArray = shipnames.split(";");
trdTxtArray = trdTxt.split(";");
planetStrengths = new Array();
planetPops = new Array();
rep = "error,0,0,0,0,0,0,Trader,Merchant,Pirate,Mercinary,Explorer,Pioneer";
rep = rep.split(",");
shipdefaults = "error;2,33,34,35,36,37,38,6;3,39,40,41,42,43;7,16,31,32;1,23;6,25,26,59;5,28,29,27;4,17,18,19;1,10;1,21,22,51;1,24;1,20;1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,45,46,47,50,51,52,54,55,56,57,58;1,30;1,44;8";
shipdefaults = shipdefaults.split(";");
mytech = new Array();
myfleet = new Array();
mybuild = new Array();
selectedfleet = new Array();
weapontypes = "none,2,5,8,11,14,12,14,16,20,22,20,12,18,24,2,4,6,8,10";
weapontypes = weapontypes.split(",");
combat = "none,Harmless,Good,Decent,Fair,Average,Above Average,Deadly,Infinite";
combat = combat.split(",");
expnav = 0;
exptac = 0;
expeng = 0;
expat = 0;
exptrade = 0;
expneg = 0;
expbuild = 0;
stardate1 = 2903;
stardate2 = 3;
enterwarp = new Sound(this);
enterwarp.attachSound("enterwarp");
torpedo = new Sound(this);
torpedo.attachSound("torp2");
etorpedo = new Sound(this);
etorpedo.attachSound("torp1");
beamphaser = new Sound(this);
beamphaser.attachSound("beamphaser");
ebeamphaser = new Sound(this);
ebeamphaser.attachSound("beamphaser");
disruptor = new Sound(this);
disruptor.attachSound("disruptor");
edisruptor = new Sound(this);
edisruptor.attachSound("disruptor");
beam = new Sound(this);
beam.attachSound("beam");
launch = new Sound(this);
launch.attachSound("launch");
shiplaunch = new Sound(this);
shiplaunch.attachSound("shiplaunch");
alert = new Sound(this);
alert.attachSound("alert");
comm = new Sound(this);
comm.attachSound("comm");
tractor = new Sound(this);
tractor.attachSound("tractorbeam");
wormholeopen = new Sound(this);
wormholeopen.attachSound("wormholeopen");
romtorp = new Sound(this);
romtorp.attachSound("romtorp");
romphas = new Sound(this);
romphas.attachSound("romphas");
pulse = new Sound(this);
pulse.attachSound("pulse");
pulse2 = new Sound(this);
pulse2.attachSound("pulse2");
polbeam = new Sound(this);
polbeam.attachSound("polbeam");
domphas = new Sound(this);
domphas.attachSound("domphas");
powerfail = new Sound(this);
powerfail.attachSound("powerfail");
cuttingbeam = new Sound(this);
cuttingbeam.attachSound("cuttingbeam");
energywave = new Sound(this);
energywave.attachSound("energywave");
typevii = new Sound(this);
typevii.attachSound("typevii");
comp1 = new Sound(this);
comp1.attachSound("comp1");
comp2 = new Sound(this);
comp2.attachSound("comp2");
comp3 = new Sound(this);
comp3.attachSound("comp3");
explode = new Sound(this);
explode.attachSound("explode");
quantum = new Sound(this);
quantum.attachSound("quantum");
fedpulse = new Sound(this);
fedpulse.attachSound("rompulse");
rompulse = new Sound(this);
rompulse.attachSound("rompulse");
music = new Sound(this);
music.attachSound("music2");
Frame 89
gotoAndPlay (95);
Frame 95
soundbeep = new Sound(this);
soundbeep.attachSound("menumusic");
soundbeep.start(0, 999);
Frame 106
stop();
Frame 108
desc = "Non-Aligned Humanoid\r\r Since the separation of the Vulcans from the Earth Empire, many more species have been defecting to independent planets and forming their own neutral governments. Some fear the fall of the Empire and persecution by the Klingons, and others finally feel free enough to protest the historically immoral Imperial policies.\r You begin your journey as an insignificant someone who has saved enough latinum to buy a personal runabout. Most races will leave you alone as you are a neutral party. Consider it a clean slate. But while neutrality may save your skin in the beginning, it will take some tough work to impress any major governments to purchase any serious hardware.";
race = 1;
race1._alpha = 0;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
_root.mytech[1] = undefined;
localprestige = "x,25,25,20,25,25,100,25,25,25,10,25,50,25,35,10,10,50,50,75,25,25,20,50,10,50,25,25,25,-50,25,25,-50,-50,-100,25,25,25,25,25,25,25,100,25,25,25,25,25,25,25,25,25,0";
localprestige = localprestige.split(",");
playership = 7;
myplanet = 6;
mydeuranium = 5;
myantimatter = 6;
mylatinum = 2500;
Frame 110
gotoAndStop (106);
Frame 111
gotoAndPlay (154);
Frame 130
gotoAndPlay (154);
Frame 133
function loadsaved() {
local_data = SharedObject.getLocal(gamename);
expneg = local_data.data.experience[0];
expat = local_data.data.experience[1];
expeng = local_data.data.experience[2];
exptac = local_data.data.experience[3];
exptrade = local_data.data.experience[4];
expbuild = local_data.data.experience[5];
expnav = local_data.data.experience[6];
asteroidpass = local_data.data.passes[0];
planetpass = local_data.data.passes[1];
weaponpass = local_data.data.passes[2];
bajoransail = local_data.data.passes[3];
warpcore = local_data.data.passes[4];
playership = local_data.data.playership;
weapon1 = local_data.data.weapons[0];
weapon2 = local_data.data.weapons[1];
weapon3 = local_data.data.weapons[2];
opsreserves = local_data.data.ops[0];
opsengines = local_data.data.ops[1];
opsweapons = local_data.data.ops[2];
opsshields = local_data.data.ops[3];
planetGovts = local_data.data.govts;
planetPops = local_data.data.pops;
planetStrengths = local_data.data.planetstrengths;
mylatinum = local_data.data.resources[0];
mydeuranium = local_data.data.resources[1];
myantimatter = local_data.data.resources[2];
planetGovtArray = local_data.data.govtarray;
localprestige = local_data.data.prestige;
stationDataArray = local_data.data.stationdata;
myfleet = local_data.data.myfleet;
myweapons = local_data.data.myweapons;
mytech = local_data.data.mytech;
mybuild = local_data.data.mybuild;
myplanet = local_data.data.myplanet;
race = local_data.data.race;
myname = local_data.data.names[0];
rep = local_data.data.rep;
myshipname = local_data.data.names[1];
mygovtname = local_data.data.names[2];
}
function export(i) {
var x = undefined;
var local_data = SharedObject.getLocal("gameslot" add i);
x = x + (local_data.data.experience[0] + ",");
x = x + (local_data.data.experience[1] + ",");
x = x + (local_data.data.experience[2] + ",");
x = x + (local_data.data.experience[3] + ",");
x = x + (local_data.data.experience[4] + ",");
x = x + (local_data.data.experience[5] + ":");
x = x + (local_data.data.passes[0] + ",");
x = x + (local_data.data.passes[1] + ",");
x = x + (local_data.data.passes[2] + ",");
x = x + (local_data.data.passes[3] + ",");
x = x + (local_data.data.passes[4] + ":");
x = x + (local_data.data.weapons[0] + ",");
x = x + (local_data.data.weapons[0] + ",");
x = x + (local_data.data.weapons[0] + ":");
x = x + (local_data.data.playership + ":");
x = x + (local_data.data.ops[0] + ",");
x = x + (local_data.data.ops[1] + ",");
x = x + (local_data.data.ops[2] + ",");
x = x + (local_data.data.ops[3] + ":");
x = x + (local_data.data.govts + ":");
x = x + (local_data.data.pops + ":");
x = x + (local_data.data.planetstrengths + ":");
x = x + (local_data.data.resources[0] + ",");
x = x + (local_data.data.resources[1] + ",");
x = x + (local_data.data.resources[2] + ":");
x = x + (local_data.data.govtarray + ":");
x = x + (local_data.data.prestige + ":");
x = x + (local_data.data.stationdata + ":");
x = x + (local_data.data.myfleet + ":");
x = x + (local_data.data.myweapons + ":");
x = x + (local_data.data.mytech + ":");
x = x + (local_data.data.mybuild + ":");
x = x + (local_data.data.myplanet + ":");
x = x + (local_data.data.race + ":");
x = x + local_data.data.names[0];
x = x + local_data.data.names[1];
x = x + local_data.data.names[2];
external = x;
}
var i = 1;
while (i <= 6) {
var x = SharedObject.getLocal("gameslot" add i);
if (x.data.names == undefined) {
trace("Empty");
Set("save" add i, "Empty");
} else {
trace(x.data.names);
Set("save" add i, x.data.names);
}
i++;
}
Frame 139
stop();
Frame 140
stop();
Frame 141
stop();
Frame 142
stop();
Frame 143
stop();
Frame 144
stop();
Frame 145
stop();
Frame 146
stop();
Frame 147
stop();
Frame 148
stop();
Frame 149
stop();
Frame 150
stop();
Frame 151
stop();
Frame 152
stop();
Frame 153
stop();
Frame 154
function loadplayer() {
removeMovieClip("player");
antimatteruse = Number(itemdescArray[((playership - 1) * 13) + 4]);
totcargo = Number(itemdescArray[((playership - 1) * 13) + 5]);
tothull = Number(itemdescArray[((playership - 1) * 13) + 6]);
totshields = Number(itemdescArray[((playership - 1) * 13) + 7]);
totenergy = Number(itemdescArray[((playership - 1) * 13) + 5]) * 5;
if (myshields == undefined) {
myshields = totshields;
myhull = tothull;
}
if (myshields >= totshields) {
myshields = totshields;
}
if ((myhull >= tothull) or (myhull == undefined)) {
myhull = tothull;
}
if (myenergy == undefined) {
myenergy = totenergy;
opsreserves = 50;
opsengines = 50;
opsweapons = 50;
opsshields = 50;
}
totspeed = Number(itemdescArray[((playership - 1) * 13) + 8]);
totturn = Number(itemdescArray[((playership - 1) * 13) + 9]);
attachMovie("player", "player", 300);
setProperty("player", _x , 298.6);
setProperty("player", _y , 195.5);
if (playership == 44) {
setProperty("player", _xscale , 50);
setProperty("player", _yscale , 50);
}
Set("player:mytype", playership);
Set("player:shipplayertype:cloak", 0);
attachMovie("playerpanel", "playerpanel", 9998);
setProperty("playerpanel", _x , 300);
setProperty("playerpanel", _y , 416.6);
attachMovie("targetwindow", "tacpanel", 9997);
setProperty("tacpanel", _x , 90);
setProperty("tacpanel", _y , 500);
setProperty("player", _xscale , getProperty("player", _xscale) / zoom);
setProperty("player", _yscale , getProperty("player", _yscale) / zoom);
if (weapon1 == undefined) {
weapon1 = -5;
}
if (weapon2 == undefined) {
weapon2 = -5;
}
if (weapon3 == undefined) {
weapon3 = -5;
}
if (myweapons == undefined) {
autot = 0;
myweapons = new Array();
if (Number(itemdescArray[((playership - 1) * 13) + 11]) > 0) {
myweapons[1] = Number(itemdescArray[((playership - 1) * 13) + 11]);
weapon1 = myweapons[1];
}
if (Number(itemdescArray[((playership - 1) * 13) + 12]) > 0) {
myweapons[2] = Number(itemdescArray[((playership - 1) * 13) + 12]);
weapon2 = myweapons[2];
}
if (Number(itemdescArray[((playership - 1) * 13) + 13]) > 0) {
myweapons[3] = Number(itemdescArray[((playership - 1) * 13) + 13]);
weapon3 = myweapons[3];
}
}
i = 1;
while (i <= 9) {
if (_root.myweapons[i] == 20) {
bajoransail = 1;
}
if (_root.myweapons[i] == 21) {
warpcore = 1;
}
i++;
}
myx = getProperty("player", _x);
myy = getProperty("player", _y);
targetx = getProperty("planet", _x);
targety = getProperty("planet", _y);
myRadians = Math.atan2(targety - myy, targetx - mxx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees + 90;
setProperty("player", _rotation , rotation);
updatemenu();
}
function setplanet() {
planetArray = planetDataArray[myplanet - 1].split(";");
if (planetStrengths[myplanet] == undefined) {
planetStrengths[myplanet] = planetArray[2];
}
if (planetPops[myplanet] == undefined) {
planetPops[myplanet] = planetArray[5];
}
planetgovtarray[myplanet] = 4;
if (planetgovts[myplanet] == 16) {
planetgovtarray[myplanet] = 3;
} else {
if (localprestige[myplanet] < 0) {
planetgovtarray[myplanet] = 1;
}
if (localprestige[myplanet] >= 100) {
planetgovtarray[myplanet] = 2;
}
if ((planetpops[myplanet] <= 0) and (planetstrengths[myplanet] <= 0)) {
planetgovtarray[myplanet] = 6;
}
if ((((myplanet == 32) or (myplanet == 33)) or (myplanet == 34)) or (myplanet == 29)) {
planetgovtarray[myplanet] == 5;
}
}
Set("planet:myType", planetArray[3]);
setProperty("planet", _xscale , planetArray[8]);
setProperty("planet", _yscale , planetArray[8]);
loadsystem();
}
function loadsystem() {
if (planetArray[16] == 1) {
attachMovie("nebula", "nebula", 9999);
setProperty("nebula", _x , 0);
setProperty("nebula", _y , 0);
setProperty("nebula", _alpha , 25);
} else {
removeMovieClip("nebula");
}
if ((myplanet == 47) or (myplanet == 51)) {
createwormhole();
}
loadplayer();
}
function atwarp() {
gotoAndPlay (155);
}
function updatemenu() {
setProperty("playerpanel:weapbut1", _alpha , 0);
setProperty("playerpanel:weapbut2", _alpha , 0);
setProperty("playerpanel:weapbut3", _alpha , 0);
Set("playerpanel:playerresources", ((((((((((((("Latinum: " + _root.mylatinum) + " bars") + newline) + "Deuranium: ") + _root.mydeuranium) + " units") + newline) + "Matter/Antimatter: ") + _root.myantimatter) + " units") + newline) + " ") + ((_root.myantimatter * 2) * _root.antimatteruse)) + " days of fuel.");
hudlatinum = _root.mylatinum;
hudantimatter = _root.myantimatter;
huddeuranium = _root.mydeuranium;
setProperty("playerpanel:fuelbar", _xscale , 100 - ((((_root.myantimatter * 2) * _root.antimatteruse) / Number(itemdescArray[((playership - 1) * 13) + 3] * 100)) * 100));
_root.mycargo = 0;
i = 1;
while (i <= 10) {
_root.mycargo = _root.mycargo + Number(_root.cargoArray[((i - 1) * 4) + 1]);
i++;
}
i = 1;
totalprestige = 0;
while (i <= 55) {
totalprestige = totalprestige + Number(localprestige[i]);
i++;
}
mylatinum = Math.floor(mylatinum);
totalprestige = Math.floor(totalprestige / 55);
Set("weap1:mytype", weapon1 + 105);
Set("weap2:mytype", weapon2 + 105);
Set("weap3:mytype", weapon3 + 105);
setProperty("playerpanel:cargobar", _xscale , 100 - ((_root.mycargo / _root.totcargo) * 100));
Set("playerpanel:playership", (myshipname + ", ") + itemdescArray[((playership - 1) * 13) + 1]);
Set("playerpanel:localprestige", ("Local Prestige: " + Math.floor(_root.localprestige[myplanet])) + "%");
Set("playerpanel:playername", myname);
updatebars();
}
function updatebars() {
setProperty("playerpanel:shieldsbar", _xscale , 100 - ((myshields / totshields) * 100));
setProperty("playerpanel:hullbar", _xscale , 100 - ((myhull / tothull) * 100));
setProperty("playerpanel:energybar", _xscale , 100 - ((myenergy / totenergy) * 100));
setProperty("playerpanel:cargobar", _xscale , 100 - ((_root.mycargo / _root.totcargo) * 100));
}
function repairship() {
x = Math.floor(_root.tothull - (_root.myhull / 2));
mylatinum = mylatinum - x;
_root.launch.start();
_root.expeng = _root.expeng + ((random(2) + 1) * 0.5);
Set("player:playershiptype:repair", 1);
attachMovie("repairmodule", "repairmodule", _root.level);
_root.level++;
setProperty("repairmodule", _x , player._x);
setProperty("repairmodule", _y , player._y);
updatemenu();
}
function selectobject() {
_root.comp1.start();
removeMovieClip("commpanel");
removeMovieClip("selecttool");
attachMovie("selecttool", "selecttool", _root.level);
Set(_root.myselect add ":myselect", 1);
Set("selecttool:mytarget", _root.myselect);
Set("tacpanel:mymenu", 1);
_root.level++;
}
function deselectobject() {
removeMovieClip("selecttool");
Set("tacpanel:mymenu", 0);
Set(_root.myselect add ":myselect", 0);
_root.myselect = undefined;
}
function loadcomm() {
_root.comp3.start();
removeMovieClip("commpanel");
attachMovie("commpanel", "commpanel", 9996);
_root.level++;
setProperty("commpanel", _x , 303);
setProperty("commpanel", _y , 110);
setProperty("commpanel", _xscale , 0);
setProperty("commpanel", _yscale , 0);
}
function firephaser() {
_root.exptac = _root.exptac + ((random(2) + 1) * 0.01);
var targetx = getProperty(_root.myselect, _x);
var targety = getProperty(_root.myselect, _y);
if ((Math.abs(296 - targetx) < (300 / _root.zoom)) and (Math.abs(191 - targety) < (300 / _root.zoom))) {
attachMovie("phaser", "phaser" add _root.level, _root.level);
Set(("phaser" add _root.level) add ":mytype", weapontypes[weapontype]);
Set(("phaser" add _root.level) add ":mytarget", _root.myselect);
Set(("phaser" add _root.level) add ":myorigin", "player");
Set(("phaser" add _root.level) add ":power", Number(_root.weaponstats[((weapontype - 1) * 7) + 5]) * Number(_root.itemdescArray[((playership - 1) * 13) + 3]));
_root.level++;
_root.updatebars();
Set(_root.myselect add ":mytarget", "player");
Set(_root.myselect add ":alert", 3);
}
}
function firedisruptor() {
_root.attachMovie("torpedo", "torp" add _root.level, _root.level);
Set(("torp" add _root.level) add ":mytarget", _root.myselect);
_root.exptac = _root.exptac + ((random(2) + 1) * 0.01);
if (_root.myselect == undefined) {
Set(("torp" add _root.level) add ":mytarget", "none");
}
Set(("torp" add _root.level) add ":speed", Math.abs(_root.speed));
setProperty("torp" add _root.level, _x , getProperty("player", _x));
setProperty("torp" add _root.level, _y , getProperty("player", _y));
setProperty("torp" add _root.level, _rotation , getProperty("player", _rotation));
Set(("torp" add _root.level) add ":power", Number(_root.weaponstats[((weapontype - 1) * 7) + 5]) * Number(_root.itemdescArray[((playership - 1) * 13) + 3]));
Set(("torp" add _root.level) add ":myself", "torp" add _root.level);
Set(("torp" add _root.level) add ":mytype", weapontypes[weapontype]);
_root.updatebars();
Set(_root.myselect add ":mytarget", "player");
Set(_root.myselect add ":alert", 3);
_root.level++;
}
function firetorpedo() {
_root.exptac = _root.exptac + (random(2) * 0.01);
var myx = getProperty("player", _x);
var myy = getProperty("player", _y);
var targetx = getProperty(_root.myselect, _x);
var targety = getProperty(_root.myselect, _y);
_root.updatebars();
_root.attachMovie("torpedo", "torp" add _root.level, _root.level);
Set(("torp" add _root.level) add ":mytarget", _root.myselect);
Set(("torp" add _root.level) add ":speed", Math.abs(_root.speed));
Set(("torp" add _root.level) add ":power", Number(_root.weaponstats[((weapontype - 1) * 7) + 5]) * Number(_root.itemdescArray[((playership - 1) * 13) + 3]));
setProperty("torp" add _root.level, _x , myx);
setProperty("torp" add _root.level, _y , myy);
var myRadians = Math.atan2(targety - myy, targetx - myx);
var myDegrees = Math.round((myRadians * 180) / Math.PI);
var rotation = (myDegrees + 90);
setProperty("torp" add _root.level, _rotation , rotation);
Set(("torp" add _root.level) add ":myself", "torp" add _root.level);
Set(("torp" add _root.level) add ":mytype", weapontypes[weapontype]);
Set(_root.myselect add ":mytarget", "player");
Set(_root.myselect add ":alert", 3);
_root.level++;
}
function setstations() {
x = 0;
px = getProperty("planet", _x);
py = getProperty("planet", _y);
while (x > -1) {
if (stationdataArray[x] == undefined) {
x = -99;
break;
}
if ((stationdataArray[x] == myplanet) and (stationdataArray[x + 2] != 0)) {
if (Number(stationdataArray[2 + x]) > 0) {
attachMovie("othership", "station" add s, _root.xarray0);
}
if (Number(stationdataArray[2 + x]) < 0) {
attachMovie("stationconstruct", "station" add s, _root.xarray0);
Set(("station" add s) add ":buildtime", Number(stationdataArray[2 + x]));
}
_root.level++;
duplicateMovieClip ("planetblip", "blip" add s, _root.level);
_root.level++;
Set(("blip" add s) add ":mytarget", "station" add s);
Set(("blip" add s) add ":mydist", 9);
Set(("station" add s) add ":myblip", "blip" add s);
setProperty("station" add s, _x , Number(stationdataArray[3 + x]) + px);
setProperty("station" add s, _y , Number(stationdataArray[4 + x]) + py);
Set(("station" add s) add ":mytype", stationdataArray[1 + x]);
Set(("station" add s) add ":myself", "station" add s);
otherships[_root.xarray0] = "station" add s;
shipsgovt[_root.xarray0] = planetGovts[myplanet];
Set(("station" add s) add ":myslot", _root.xarray0);
_root.xarray0++;
if (stationdataArray[2 + x] == 10) {
Set(("station" add s) add ":mystrength", 10);
} else {
Set(("station" add s) add ":mystrength", Number(itemdescArray[((stationdataArray[1 + x] - 1) * 13) + 6]) + Number(itemdescArray[((stationdataArray[1 + x] - 1) * 13) + 7]));
}
Set(("station" add s) add ":totstrength", Number(itemdescArray[((stationdataArray[1 + x] - 1) * 13) + 6]) + Number(itemdescArray[((stationdataArray[1 + x] - 1) * 13) + 7]));
Set(("station" add s) add ":myname", stationdataArray[13 + x]);
Set((("station" add s) add ":shiptype") add ":mydest", Number(stationdataArray[5 + x]));
Set((("station" add s) add ":shiptype") add ":item1", Number(stationdataArray[7 + x]));
Set((("station" add s) add ":shiptype") add ":item2", Number(stationdataArray[8 + x]));
Set((("station" add s) add ":shiptype") add ":item3", Number(stationdataArray[9 + x]));
Set((("station" add s) add ":shiptype") add ":item4", Number(stationdataArray[10 + x]));
Set((("station" add s) add ":shiptype") add ":item5", Number(stationdataArray[11 + x]));
Set((("station" add s) add ":shiptype") add ":item6", Number(stationdataArray[12 + x]));
setProperty(("station" add s) add ":shiptype", _rotation , Number(stationdataArray[6 + x]));
Set(("station" add s) add ":myselect", 0);
Set(("station" add s) add ":alert", 1);
Set(("station" add s) add ":mytarget", "planet");
setProperty("station" add s, _xscale , getProperty("station" add s, _xscale) / zoom);
setProperty("station" add s, _yscale , getProperty("station" add s, _yscale) / zoom);
s++;
}
x = x + 14;
}
numstations = _root.xarray0;
i = 0;
var x = ((planetPops[myplanet] * 2) + 1);
if (x > 20) {
x = 20;
}
while (i < x) {
if (random(2) == 1) {
mygovt = undefined;
createship();
}
i++;
}
if (((random(5) == 1) and (planetPops[myplanet] > 0)) and (planetGovts[myplanet + 55] != 0)) {
i = 0;
i2 = random(10) + 1;
while (i < i2) {
mygovt = 1;
createship();
i++;
}
}
i = 1;
while (myfleet[((i - 1) * 4) + 1] != undefined) {
if (myfleet[((i - 1) * 4) + 1] == myplanet) {
createalliedship(myfleet[((i - 1) * 4) + 2], myfleet[((i - 1) * 4) + 3]);
}
i++;
}
}
function createship() {
attachMovie("othership", "station" add s, _root.xarray0);
_root.level++;
duplicateMovieClip ("planetblip", "blip" add s, _root.level);
_root.level++;
if (mygovt == undefined) {
mygovt = 12;
newtype = random(20);
if ((newtype >= 0) and (newtype <= 3)) {
settype = random(14) + 1;
setrace = 1;
mygovt = 12;
}
if (newtype == 4) {
setenemy();
mygovt = planetGovts[myplanet + 55];
}
if (newtype >= 10) {
setallied();
mygovt = planetGovts[myplanet];
if (planetGovts[myplanet] == 16) {
mygovt = 12;
}
}
if (((newtype == 5) or (newtype == 6)) or (planetGovts[myplanet] == 16)) {
settype = random(15) + 1;
setrace = 1;
mygovt = 12;
} else if (((newtype >= 7) or (newtype <= 9)) and (planetArray[5] < 2)) {
settype = random(15) + 1;
setrace = 8;
mygovt = 15;
}
} else if (mygovt == 1) {
setenemy();
mygovt = planetGovts[myplanet + 55];
} else if (mygovt == -1) {
setallied();
mygovt = planetGovts[myplanet];
if (planetGovts[myplanet] == 16) {
mygovt = 12;
}
}
Set(("blip" add s) add ":mydist", 6);
if (mygovt == 0) {
mygovt = 12;
}
Set(("station" add s) add ":mytype", settype);
Set(("station" add s) add ":myrace", setrace);
setname = shipnamesArray[random(219) + 1];
if (setrace == 2) {
setname = "ISS " + setname;
}
if (setrace == 3) {
setname = "IKC " + setname;
}
if (setrace == 5) {
setname = "RES " + setname;
}
Set(("station" add s) add ":myname", setname);
Set(("blip" add s) add ":mytarget", "station" add s);
Set(("station" add s) add ":myblip", "blip" add s);
Set(("station" add s) add ":mystrength", Number(itemdescArray[((settype - 1) * 13) + 6]) + Number(itemdescArray[((settype - 1) * 13) + 7]));
Set(("station" add s) add ":totstrength", Number(itemdescArray[((settype - 1) * 13) + 6]) + Number(itemdescArray[((settype - 1) * 13) + 7]));
Set(("station" add s) add ":totspeed", Number(itemdescArray[((settype - 1) * 13) + 8]));
Set(("station" add s) add ":totturn", Number(itemdescArray[((settype - 1) * 13) + 9]));
setProperty("station" add s, _x , random(5000) - random(5000));
setProperty("station" add s, _y , random(5000) - random(5000));
if (mygovt == 16) {
setProperty("station" add s, _x , random(200) - random(200));
setProperty("station" add s, _y , random(200) - random(200));
}
Set(("station" add s) add ":myorders", 1);
Set(("station" add s) add ":myself", "station" add s);
Set(("station" add s) add ":myslot", _root.xarray0);
Set(("station" add s) add ":mygovt", mygovt);
otherships[_root.xarray0] = "station" add s;
shipsgovt[_root.xarray0] = mygovt;
_root.xarray0++;
Set(("station" add s) add ":myselect", 0);
Set(("station" add s) add ":alert", 1);
if ((random(2) == 1) and (numstations > 0)) {
Set(("station" add s) add ":mytarget", otherships[random(numstations)]);
} else {
Set(("station" add s) add ":mytarget", "planet");
}
setProperty("station" add s, _xscale , getProperty("station" add s, _xscale) / zoom);
setProperty("station" add s, _yscale , getProperty("station" add s, _yscale) / zoom);
s++;
mygovt = undefined;
}
function createalliedship(buyshiptype, buyshipname) {
attachMovie("othership", "station" add s, _root.xarray0);
_root.level++;
duplicateMovieClip ("planetblip", "blip" add s, _root.level);
_root.level++;
Set(("blip" add s) add ":mydist", 8);
Set(("station" add s) add ":mytype", buyshiptype);
Set(("station" add s) add ":myrace", myrace);
Set(("station" add s) add ":myname", buyshipname);
Set(("blip" add s) add ":mytarget", "station" add s);
Set(("station" add s) add ":myblip", "blip" add s);
Set(("station" add s) add ":mystrength", Number(itemdescArray[((buyshiptype - 1) * 13) + 6]) + Number(itemdescArray[((buyshiptype - 1) * 13) + 7]));
Set(("station" add s) add ":totstrength", Number(itemdescArray[((buyshiptype - 1) * 13) + 6]) + Number(itemdescArray[((buyshiptype - 1) * 13) + 7]));
Set(("station" add s) add ":totspeed", Number(itemdescArray[((buyshiptype - 1) * 13) + 8]));
Set(("station" add s) add ":totturn", Number(itemdescArray[((buyshiptype - 1) * 13) + 9]));
setProperty("station" add s, _x , (298 + random(200)) - random(200));
setProperty("station" add s, _y , (195 + random(200)) - random(200));
Set(("station" add s) add ":myorders", 1);
Set(("station" add s) add ":myself", "station" add s);
Set(("station" add s) add ":myslot", _root.xarray0);
Set(("station" add s) add ":mygovt", 16);
otherships[_root.xarray0] = "station" add s;
shipsgovt[_root.xarray0] = 16;
_root.xarray0++;
Set(("station" add s) add ":myselect", 0);
Set(("station" add s) add ":alert", 1);
Set(("station" add s) add ":mytarget", "player");
s++;
}
function mapclick() {
_root.comp2.start();
if ((((planetclick == 33) or (planetclick == 32)) or (planetclick == 34)) and (expnav < 100)) {
loadcomm();
Set("commpanel:mytype", 13);
Set("commpanel:event", "You do not have enough navigational experience to enter a nebula. 100+ experience needed.");
} else {
x = getProperty("planet", _x);
y = getProperty("planet", _y);
newdate = Math.floor(_root.dist);
if (newdate < ((myantimatter * 2) * antimatteruse)) {
advancestardate();
deselectobject();
removeMovieClip("playerpanel");
removeMovieClip("nebula");
removeMovieClip("commpanel");
removeMovieClip("tacpanel");
Set("player:warp", 3);
enterwarp.setVolume(100);
enterwarp.start();
tripuse = Math.floor((newdate / antimatteruse) / 3);
_root.myantimatter = _root.myantimatter - tripuse;
_root.expnav = _root.expnav + ((random(2) + 1) * 0.1);
_root.rep[5] = Number(_root.rep[5]) + 0.5;
i = _root.numstations + 1;
while (i <= _root.xArray0) {
if ((_root.shipsgovt[i] == 16) and (eval (otherships[i] add ".orders") == 1)) {
i2 = 1;
while (_root.myfleet[((i2 - 1) * 4) + 1] != undefined) {
if ((_root.myfleet[((i2 - 1) * 4) + 2] == eval (otherships[i] add ".mytype")) and (_root.myfleet[((i2 - 1) * 4) + 3] == eval (otherships[i] add ".myname"))) {
_root.myfleet[((i2 - 1) * 4) + 1] = planetclick;
break;
}
i2++;
}
}
i++;
}
} else {
Set("commpanel:maptext", "You have insufficient antimatter resources to travel to this system...");
}
}
}
function makeasteroid() {
attachMovie("asteroid", "asteroid" add _root.level, _root.level);
Set(("asteroid" add _root.level) add ":mytarget", "asteroid" add _root.level);
x = getProperty("player", _rotation);
s = random(75) + 26;
setProperty("asteroid" add _root.level, _xscale , s);
setProperty("asteroid" add _root.level, _yscale , s);
Set(("asteroid" add _root.level) add ":mytype", random(3) + 1);
x = random(3);
if (x == 0) {
setProperty("asteroid" add _root.level, _x , random(600));
setProperty("asteroid" add _root.level, _y , -50);
}
if (x == 1) {
setProperty("asteroid" add _root.level, _x , 620);
setProperty("asteroid" add _root.level, _y , random(450));
}
if (x == 2) {
setProperty("asteroid" add _root.level, _x , -50);
setProperty("asteroid" add _root.level, _y , random(450));
}
if (x == 3) {
setProperty("asteroid" add _root.level, _x , random(600));
setProperty("asteroid" add _root.level, _y , 480);
}
_root.level++;
}
function createwormhole() {
attachMovie("wormhole", "wormhole", _root.level);
_root.level++;
px = getProperty("planet", _x);
py = getProperty("planet", _y);
setProperty("wormhole", _x , -3000 + px);
setProperty("wormhole", _y , -3000 + py);
duplicateMovieClip ("planetblip", "wormholeblip", _root.level);
_root.level++;
Set("wormholeblip:mytarget", "wormhole");
Set("wormholeblip:mydist", 10);
}
function setallied() {
var shipdeftypes = shipdefaults[planetGovts[myplanet]].split(",");
setrace = shipdeftypes[0];
var i = 1;
while (shipdeftypes[i + 1] != undefined) {
i++;
}
settype = shipdeftypes[random(i) + 1];
if ((settype == undefined) or (settype <= 0)) {
settype = random(23) + 1;
setrace = 1;
}
}
function setenemy() {
var shipdeftypes = shipdefaults[planetGovts[myplanet + 55]].split(",");
setrace = shipdeftypes[0];
var i = 1;
while (shipdeftypes[i + 1] != undefined) {
i++;
}
settype = shipdeftypes[random(i) + 1];
if ((settype == undefined) or (settype <= 0)) {
settype = random(23) + 1;
setrace = 1;
}
}
function removeallships() {
_root.xarray2 = 0;
while (_root.xarray2 <= _root.xarray0) {
removeMovieClip(otherships[_root.xarray2]);
otherships[_root.xarray2] = undefined;
shipsgovt[_root.xarray2] = undefined;
_root.xarray2++;
}
removeMovieClip("wormhole");
removeMovieClip("nebula");
}
function dead() {
_root.removeallships();
stopAllSounds();
removeMovieClip("commpanel");
removeMovieClip("playerpanel");
removeMovieClip("tacpanel");
gotoAndPlay (157);
}
function advancestardate() {
stardate2 = stardate2 + newdate;
if (stardate2 > 99) {
stardate2 = stardate2 - 99;
stardate1 = stardate1 + 1;
}
}
function board(pilaged, w) {
if (eval (_root.myselect add ".mytype") < 70) {
loadcomm();
Set("commpanel:mytype", 13);
x = random(6);
_root.rep[3] = Number(_root.rep[3]) + 1;
if (x < 3) {
mylatinum = mylatinum + pilaged;
updatemenu();
Set("commpanel:event", (" Your away team transports to the ship and takes what latinum they can find. They narrowly return as the ship self-destructs. You happily count the " + pilaged) + " bars of latinum you have stolen from this vessel.");
Set(_root.myselect add ":hit", 1);
Set(_root.myselect add ":mystrength", -1);
} else {
w = Number(_root.itemdescArray[((w - 1) * 13) + (random(2) + 11)]);
if ((w != 0) and (random(3) < 2)) {
Set("commpanel:event", (" Your away team salvages a " + _root.weaponstats[((w - 1) * 7) + 1]) + " from this ship just before it self-destructs.");
Set(_root.myselect add ":hit", 1);
Set(_root.myselect add ":mystrength", -1);
if (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3] >= Number(_root.weaponstats[((w - 1) * 7) + 3]))) {
i = 1;
while (i <= 9) {
if (_root.myweapons[i] == undefined) {
_root.myweapons[i] = w;
_root.updatemenu();
break;
}
i++;
}
} else {
Set("commpanel:event", ("Your away team tries to salvage a " + _root.weaponstats[((w - 1) * 7) + 1]) + " from this ship but your ship is too small. The ship explodes from the attempt.");
Set(_root.myselect add ":hit", 1);
Set(_root.myselect add ":mystrength", -1);
}
} else if (((Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3]) >= Number(_root.itemdescArray[((eval (_root.myselect add ".mytype") - 1) * 13) + 3])) and (expat >= 100)) and (expeng >= 100)) {
i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
i++;
}
buyshipname = _root.shipnamesArray[random(219) + 1];
_root.myfleet[((i - 1) * 4) + 1] = _root.myplanet;
_root.myfleet[((i - 1) * 4) + 2] = eval (_root.myselect add ".mytype");
_root.myfleet[((i - 1) * 4) + 3] = eval (_root.myselect add ".myname");
_root.myfleet[((i - 1) * 4) + 4] = undefined;
_root.shipsgovt[eval (_root.myselect add ".myslot")] = 16;
Set("commpanel:event", "Your away team manages to capture the enemy vessel and has taken it to the planet for repairs.");
} else {
Set("commpanel:event", "Your away team attempts to capture this ship, but their lack of experience causes them to trigger the self-destruct. 100+ Engineering and 100+ Away Team experience required.");
Set(_root.myselect add ":hit", 1);
Set(_root.myselect add ":mystrength", -1);
if (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3]) < Number(_root.itemdescArray[((eval (_root.myselect add ".mytype") - 1) * 13) + 3])) {
Set("commpanel:event", "Your away team tries to capture this ship but its crew overpowers them and activates the self destruct. You needed a larger ship with more crew to capture a ship of this size.");
}
}
}
}
}
function openmap() {
if ((_root.myplanet <= 50) and (player.playershiptype.repair != 1)) {
loadcomm();
Set("commpanel:mytype", 7);
Set("playerpanel:mymenu", 0);
updatemap();
Set("commpanel:maptext", ("You are currently in the " + _root.planetArray[0]) + " system.");
i = 1;
while (i <= 55) {
Set("commpanel:planet" add i, mapnamesArray[i]);
i++;
}
Set("playerpanel:mymenu", 0);
Set("playerpanel:cargopanel", 1);
updatemenu();
}
}
function fireweapon() {
if (autot == 1) {
autotarget();
}
if (_root.myenergy > Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4])) {
if (((weapontype == 25) and (_root.myselect != undefined)) and (player.playershiptype.cloak != 1)) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
_root.engagetractor();
}
if (((_root.weapontype <= 5) and (_root.weapontype > 0)) and (player.playershiptype.cloak != 1)) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
_root.firephaser();
}
if (((_root.weapontype >= 6) and (_root.weapontype <= 10)) and (player.playershiptype.cloak != 1)) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
_root.firedisruptor();
}
if (((_root.weapontype >= 11) and (_root.weapontype <= 19)) and (player.playershiptype.cloak != 1)) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
_root.firetorpedo();
}
if ((_root.weapontype == 26) and (player.playershiptype.cloak != 1)) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
_root.firetorpedo();
}
if (((_root.weapontype >= 23) and (_root.weapontype != 25)) and (player.playershiptype.cloak != 1)) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
_root.firespecial();
}
}
if (_root.weapontype == 22) {
if (player.playershiptype.cloak != 1) {
_root.myenergy = _root.myenergy - Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 4]);
}
_root.cloak();
}
}
function firespecial() {
if (weapontype == 23) {
_root.energywave.start();
attachMovie("shockwave", "shockwave" add _root.level, _root.level);
setProperty("shockwave" add _root.level, _x , 298);
setProperty("shockwave" add _root.level, _y , 195);
setProperty("shockwave" add _root.level, _xscale , 1);
setProperty("shockwave" add _root.level, _yscale , 1);
_root.level++;
_root.updatebars();
}
if (weapontype == 26) {
_root.energywave.start();
attachMovie("thaleron", "thaleron" add _root.level, _root.level);
setProperty("thaleron" add _root.level, _x , 298);
setProperty("thaleron" add _root.level, _y , 195);
setProperty("thaleron" add _root.level, _xscale , 1);
setProperty("thaleron" add _root.level, _yscale , 1);
_root.level++;
_root.updatebars();
}
if (weapontype == 24) {
_root.energywave.start();
attachMovie("tachyon", "tachyon" add _root.level, _root.level);
setProperty("tachyon" add _root.level, _x , 298);
setProperty("tachyon" add _root.level, _y , 195);
setProperty("tachyon" add _root.level, _xscale , 1);
setProperty("tachyon" add _root.level, _yscale , 1);
_root.level++;
_root.updatebars();
}
}
function engagetractor() {
_root.exptac = _root.exptac + ((random(5) + 1) * 0.01);
targetx = getProperty(_root.myselect, _x);
targety = getProperty(_root.myselect, _y);
if ((Math.abs(296 - targetx) < 300) and (Math.abs(191 - targety) < 300)) {
attachMovie("phaser", "phaser" add _root.level, _root.level);
Set(("phaser" add _root.level) add ":mytype", 17);
Set(("phaser" add _root.level) add ":mytarget", _root.myselect);
Set(("phaser" add _root.level) add ":myorigin", "player");
_root.level++;
_root.updatebars();
if (random(10) == 1) {
Set(_root.myselect add ":mytarget", "player");
Set(_root.myselect add ":alert", 3);
}
}
}
function cloak() {
_root.cloaksound.start();
if (player.playershiptype.cloak != 1) {
Set("player:playershiptype:cloak", 1);
} else {
Set("player:playershiptype:cloak", 0);
}
}
function savemyfleet() {
i = 0;
i2 = 0;
while (i < _root.xArray0) {
if (shipsgovt[i] == 16) {
myfleet[i2] = otherships[i2];
i2++;
}
i++;
}
}
function transport() {
_root.comp2.start();
var x = 0;
if (planet.hitTest(player)) {
i = 1;
while (i < 10) {
if (_root.cargoArray[((i - 1) * 4) + 3] == _root.planetArray[0]) {
_root.loadcomm();
_root.exptrade = _root.exptrade + ((random(2) + 1) * 0.5);
Set("commpanel:mytype", 13);
Set("commpanel:event", (((((" You transport " + _root.cargoArray[((i - 1) * 4) + 1]) + " tons of ") + _root.cargoArray[((i - 1) * 4) + 2]) + " to the surface. ") + Number(_root.cargoArray[((i - 1) * 4) + 4])) + " bars of latinum are beamed to your ship.");
if (planetPops[myplanet] < 0) {
Set("commpanel:event", (((((" You transport " + _root.cargoArray[((i - 1) * 4) + 1]) + " tons of ") + _root.cargoArray[((i - 1) * 4) + 2]) + " to a transport container in orbit of the planet. ") + Number(_root.cargoArray[((i - 1) * 4) + 4])) + " bars of latinum are beamed to your ship.");
var x = 1;
}
_root.mylatinum = _root.mylatinum + Number(_root.cargoArray[((i - 1) * 4) + 4]);
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 4] = 0;
_root.beam.start();
i = 100;
}
i++;
}
if ((i < 100) and (planetPops[myplanet] > 0)) {
Set("playerpanel:mymenu", 0);
_root.beam.start();
_root.loadcomm();
Set("commpanel:mytype", 13);
x = _root.ATmission;
_root.ATmission = 0;
Set("commpanel:event", (((" " + _root.ATArray[x * 2]) + " Prestige adjusts ") + Number(_root.ATArray[(x * 2) - 1])) + "%.");
if (_root.ATArray[(x * 2) - 1] != 0) {
_root.expat = _root.expat + ((random(2) + 1) * 0.5);
}
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] + Number(_root.ATArray[(x * 2) - 1]);
if (localprestige[myplanet] > 100) {
var x = 0;
var i = 1;
while (i <= 50) {
if ((planetGovts[i] == planetGovts[myplanet]) and (localprestige[i] < 100)) {
x = 1;
}
i++;
}
var i = 1;
while (i <= 50) {
if (planetGovts[i] == planetGovts[myplanet + 55]) {
x = 1;
}
i++;
}
if (x == 0) {
Set("commpanel:event", ("As you beam down you are unexpectedly greeted by a mob of people. They exhault your triumphs for having destroyed the " + govtArray[planetGovts[myplanet + 55]]) + " and aided their government so. In a grand ceremony the people crown you emperor of their world. As you depart you smile as a statue of you is erected in the world capitol.");
_root.planetgovtArray[_root.myplanet] = 3;
_root.planetGovts[_root.myplanet] = 16;
_root.localprestige[_root.myplanet] = 100;
_root.rep[6] = Number(_root.rep[6]) + 20;
}
}
}
_root.updatemenu();
}
if (_root.wormhole.hitTest(_root.player)) {
Set("playerpanel:mymenu", 0);
_root.beam.start();
_root.loadcomm();
Set("commpanel:mytype", 13);
Set("commpanel:event", "You transport an away team into the wormhole. Their last communication is their screams as they emerge from the other side into open space.");
}
if (((_root.planet.hitTest(_root.player) and (_root.planetPops[myplanet] <= 0)) and (_root.planetStrengths[myplanet] <= 0)) and (x != 1)) {
_root.loadcomm();
_root.beam.start();
Set("commpanel:mytype", 13);
if (_root.planetgovtArray[_root.myplanet] == 5) {
Set("commpanel:event", "You beam your colonization team to this barren, uninhabitable world and they die seconds later due to the lack of atmosphere. Your crew thinks you have lost your mind.");
} else if (expat < 100) {
Set("commpanel:event", "You beam a colonization team to the surface of this unpopulated world and claim it. Unfortunately because of your lack of away team experience they die within days and the planet remains unpopulated.");
} else {
Set("commpanel:event", "You have just made claim to an uninhabited planet, congradulations. Be sure to leave a fleet here or build defense stations to protect it. You may now begin building a civilization here.");
_root.planetgovtArray[_root.myplanet] = 3;
_root.planetGovts[_root.myplanet] = 16;
_root.planetpops[_root.myplanet] = 3;
_root.planetStrengths[_root.myplanet] = 500;
_root.localprestige[_root.myplanet] = 100;
_root.rep[6] = Number(_root.rep[6]) + 20;
var i = 1;
while (i <= 9) {
if (((_root.mytech[i] + 105) >= 151) and ((_root.mytech[i] + 105) <= 164)) {
Set("commpanel:event", ("You have claimed this planet in the name of the " + govtArray[(_root.mytech[i] + 105) - 150]) + ".");
_root.planetgovtArray[_root.myplanet] = 4;
_root.planetpops[_root.myplanet] = 3;
_root.planetStrengths[_root.myplanet] = 500;
_root.planetGovts[_root.myplanet] = (_root.mytech[i] + 105) - 150;
_root.localprestige[_root.myplanet] = 100;
_root.rep[6] = Number(_root.rep[6]) + 20;
var i2 = (random(5) + 1);
while (i2 > 0) {
randomstation(_root.myplanet);
i2--;
}
}
i++;
}
checkforwin();
}
}
x1 = getProperty(_root.myselect, _x);
y1 = getProperty(_root.myselect, _y);
if ((Math.abs(x1 - 298) < 20) and (Math.abs(y1 - 195) < 20)) {
mymenu = 0;
_root.loadcomm();
_root.beam.start();
Set("commpanel:mytype", 13);
Set("commpanel:event", "Your team beams over to the disabled ship. Burned corpses litter the decks and they pilage what valuables they can find.");
}
Set(_root.myselect add ":board", 1);
}
function hail() {
if ((_root.myselect == undefined) and planet.hitTest(player)) {
if ((_root.localPrestige[_root.myplanet] > 0) or (_root.planetpass == 1)) {
_root.loadcomm();
_root.comm.start();
Set("commpanel:mytype", 4);
Set("commpanel:tradetons", planet.tradetons);
Set("commpanel:tradegoods", planet.tradegoods);
Set("commpanel:hazardpay", planet.hazardpay);
Set("commpanel:tradeplanet", planet.tradeplanet);
Set("commpanel:tradeplanetnum", planet.p);
Set("commpanel:tradecost", planet.tradecost);
Set("commpanel:priceadjust", _root.priceadjust);
} else {
_root.loadcomm();
Set("commpanel:mytype", 13);
var x = "This planet refuses to answer hails. A scan has revealed the following data...\r";
x = x + ((((((((((("Planet Name: " + planetArray[0]) + newline) + "Government: ") + govtArray[planetGovts[myplanet]]) + newline) + "Population: ") + planetPops[myplanet]) + " billion") + newline) + "Strength: ") + planetStrengths[myplanet]);
Set("commpanel:event", x);
Set("playerpanel:infotext", "No Response...");
}
}
if (_root.myselect != undefined) {
_root.loadcomm();
if (eval (_root.myselect add ".mytype") == 85) {
_root.dist = 0;
_root.planetclick = eval (_root.myselect add ".shiptype.mydest");
_root.mapclick();
}
if (eval (_root.myselect add ".mytype") <= 69) {
Set("commpanel:shipclass", _root.itemdescArray[((eval (_root.myselect add ".mytype") - 1) * 13) + 1]);
Set("commpanel:shiptype", eval (_root.myselect add ".mytype"));
Set("commpanel:shipname", eval (_root.myselect add ".myname"));
Set("commpanel:myrace", eval (_root.myselect add ".myrace"));
Set("commpanel:sellgoods", eval (_root.myselect add ".shiptype.sellgoods"));
Set("commpanel:sellcost", eval (_root.myselect add ".shiptype.sellcost"));
Set("commpanel:selltons", eval (_root.myselect add ".shiptype.selltons"));
Set("commpanel:buygoods", eval (_root.myselect add ".shiptype.buygoods"));
Set("commpanel:buycost", eval (_root.myselect add ".shiptype.buycost"));
Set("commpanel:buytons", eval (_root.myselect add ".shiptype.buytons"));
if (eval (_root.myselect add ".alert") == 3) {
Set((_root.myselect add ":shiptype") add ":myText", "zzzzsssshhhhhh....");
if (eval (_root.myselect add ".mytarget") == "player") {
Set("commpanel:sell", "Apologize");
Set("commpanel:buy", "");
}
}
Set("commpanel:shiptext", eval (_root.myselect add ".shiptype.myText"));
Set("commpanel:mytype", 2);
if (shipsgovt[eval (_root.myselect add ".myslot")] == 16) {
removeMovieClip("commpanel");
addselectship();
}
}
if (((eval (_root.myselect add ".mytype") >= 70) and (eval (_root.myselect add ".mytarget") != "player")) and (eval (_root.myselect add ".mytype") != 85)) {
Set("commpanel:stationname", (eval (_root.myselect add ".myname") + " - ") + _root.stationtypesArray[eval (_root.myselect add ".mytype") - 69]);
if (eval (_root.myselect add ".mytype") == 89) {
Set("commpanel:mytype", 25);
} else {
Set("commpanel:mytype", 9);
}
Set("commpanel:stationpic", eval (_root.myselect add ".mytype"));
Set("commpanel:myself", eval (_root.myselect add ".myself"));
Set("commpanel:priceadjust", _root.priceadjust);
if (eval (_root.myselect add ".shiptype.tradetons") > 0) {
Set("commpanel:tradegoods", eval (_root.myselect add ".shiptype.tradegoods"));
Set("commpanel:tradetons", eval (_root.myselect add ".shiptype.tradetons"));
Set("commpanel:tradeplanet", eval (_root.myselect add ".shiptype.tradeplanet"));
Set("commpanel:tradecost", eval (_root.myselect add ".shiptype.tradecost"));
Set("commpanel:tradeplanetnum", eval (_root.myselect add ".shiptype.p"));
Set("commpanel:cargotext", ((((((((eval (_root.myselect add ".shiptype.tradetons") + " tons of ") + eval (_root.myselect add ".shiptype.tradegoods")) + newline) + newline) + "Transport this cargo to ") + eval (_root.myselect add ".shiptype.tradeplanet")) + ". You will be paid ") + eval (_root.myselect add ".shiptype.tradecost")) + " bars of latinum per ton of cargo you can deliver.");
} else {
Set("commpanel:cargotext", "There are no trade offers here.");
}
Set("commpanel:merchanttext", eval (_root.myselect add ".shiptype.merchanttext"));
Set("commpanel:merchantData", eval (_root.myselect add ".shiptype.merchantData"));
Set("commpanel:item1", eval (_root.myselect add ".shiptype.item1"));
Set("commpanel:item2", eval (_root.myselect add ".shiptype.item2"));
Set("commpanel:item3", eval (_root.myselect add ".shiptype.item3"));
Set("commpanel:item4", eval (_root.myselect add ".shiptype.item4"));
Set("commpanel:item5", eval (_root.myselect add ".shiptype.item5"));
Set("commpanel:item6", eval (_root.myselect add ".shiptype.item6"));
}
if (eval (_root.myselect add ".alert") == 3) {
Set("playerpanel:infotext", "No Response");
}
}
}
function buyantimatter() {
if (_root.planetPops[_root.myplanet] > 0) {
while ((_root.mylatinum >= 3) and ((100 - ((((_root.myantimatter * 2) * _root.antimatteruse) / Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3] * 100)) * 100)) > 0)) {
_root.mylatinum = _root.mylatinum - 3;
_root.myantimatter = _root.myantimatter + 1;
_root.updatemenu();
}
} else {
Set("commpanel:itemdesc", "There is no Antimatter available here.");
}
if ((100 - ((((_root.myantimatter * 2) * _root.antimatteruse) / Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3] * 100)) * 100)) <= 0) {
Set("playerpanel:infotext", "Your antimatter stores are full...");
}
}
function buydeuranium() {
if (_root.planetPops[_root.myplanet] > 0) {
if (_root.mylatinum >= 1000) {
_root.mylatinum = Number(_root.mylatinum) - 1000;
_root.mydeuranium = _root.mydeuranium + 1000;
_root.updatemenu();
Set("playerpanel:infotext", "You buy 10 units of deuranium...");
} else {
Set("playerpanel:infotext", "You do not have enough latinum...");
}
} else {
Set("commpanel:itemdesc", "There is no deuranium available here.");
}
}
function autotarget() {
var xArray = 0;
var xtarget = 0;
while (xArray < _root.xArray0) {
xArray++;
var x1 = getProperty(_root.otherships[xtarget], _x);
var y1 = getProperty(_root.otherships[xtarget], _y);
var x2 = getProperty(_root.otherships[xArray], _x);
var y2 = getProperty(_root.otherships[xArray], _y);
if ((((Math.abs(x2 - 298) + Math.abs(y2 - 195)) < (Math.abs(x1 - 195) + Math.abs(y1 - 195))) and (x2 != undefined)) and (x2 != 0)) {
if (((_root.shipsgovt[xArray] != 16) and (autot == 1)) or (autot == 0)) {
var xtarget = xArray;
}
}
}
if ((_root.otherships[xtarget] != _root.myselect) and (_root.otherships[xtarget] != undefined)) {
_root.deselectobject();
_root.myselect = _root.otherships[xtarget];
_root.selectobject();
Set(_root.otherships[xtarget] add ":myselect", 1);
}
}
function scanship() {
_root.loadcomm();
Set("commpanel:mytype", 13);
events = "...Scan complete...\r";
events = events + (("Primary weapon: " + weaponstats[((itemdescArray[((eval (_root.myselect add ".mytype") - 1) * 13) + 11] - 1) * 7) + 1]) + newline);
events = events + (("Secondary weapon: " + weaponstats[((itemdescArray[((eval (_root.myselect add ".mytype") - 1) * 13) + 12] - 1) * 7) + 1]) + newline);
events = events + (("Special: " + weaponstats[((itemdescArray[((eval (_root.myselect add ".mytype") - 1) * 13) + 13] - 1) * 7) + 1]) + newline);
events = events + (((("Cargo Aboard: " + eval (_root.myselect add ".shiptype.buytons")) + " tons of ") + eval (_root.myselect add ".shiptype.buygoods")) + newline);
events = events + (("Government: " + govtArray[shipsgovt[eval (_root.myselect add ".myslot")]]) + newline);
var x = eval (_root.myselect add ".totstrength");
x = Math.floor(x / 62);
if (x > 7) {
x = 7;
}
events = events + (("Combat Rating: " + combat[x]) + newline);
if (eval (_root.myselect add ".mytype") == 85) {
events = events + ("Destination: " + _global.mapnamesarray[eval (_root.myselect add ".shiptype.mydest")]);
}
Set("commpanel:event", events);
}
function passtrain(buytype) {
if (buytype == 136) {
var i = 1;
while (i <= 55) {
if (planetGovts[i] == 1) {
localprestige[i] = 100;
}
i++;
}
}
if (buytype == 137) {
_root.expneg = _root.expneg + 50;
}
if (buytype == 138) {
asteroidpass = 1;
}
if (buytype == 139) {
var i = 1;
while (i <= 55) {
if (planetGovts[i] == 2) {
localprestige[i] = 100;
}
i++;
}
}
if (buytype == 140) {
var i = 1;
while (i <= 55) {
if (planetGovts[i] == 12) {
localprestige[i] = 100;
}
i++;
}
}
if (buytype == 142) {
planetpass = 1;
}
if (buytype == 141) {
weaponpass = 1;
}
if (buytype == 145) {
expat = expat + 10;
}
if (buytype == 146) {
expeng = expeng + 10;
}
if (buytype == 147) {
expnav = expnav + 10;
}
if (buytype == 148) {
exptac = exptac + 20;
}
}
function addselectship() {
i = 0;
i2 = 0;
while (i <= 10) {
if (selectedfleet[i] == myselect) {
i2 = 11;
}
i++;
}
while (i2 <= 10) {
if (selectedfleet[i2] == undefined) {
selectedfleet[i2] = myselect;
i2 = 11;
}
i2++;
}
Set("playerpanel:shiptype", mytype);
Set("playerpanel:mymenu", 2);
Set("playerpanel:cargopanel", 9);
_root.updatemenu();
}
function explosionwave(maxsize, x, y) {
attachMovie("explosionwave", "explosionwave" add _root.level, _root.level);
setProperty("explosionwave" add _root.level, _x , x);
setProperty("explosionwave" add _root.level, _y , y);
setProperty("explosionwave" add _root.level, _xscale , 20);
setProperty("explosionwave" add _root.level, _yscale , 20);
Set("explosionwave:maxsize", maxsize);
_root.level++;
}
function randomstation(planet) {
_root.gamedata2 = planet;
if (planet != undefined) {
var p = 1;
while (_root.stationdataArray[p] != undefined) {
p++;
}
buildtype = random(40) + 70;
_root.stationdataArray[p + 0] = planet;
_root.stationdataArray[p + 1] = buildtype;
_root.stationdataArray[p + 2] = Number(_root.itemdescArray[((buildtype - 1) * 13) + 3]) * -100;
_root.stationdataArray[p + 3] = random(1000) - random(1000);
_root.stationdataArray[p + 4] = random(1000) - random(1000);
_root.stationdataArray[p + 5] = 0;
_root.stationdataArray[p + 6] = random(360);
_root.stationdataArray[p + 7] = _root.stationdefaults[((buildtype - 70) * 7) + 2];
_root.stationdataArray[p + 8] = _root.stationdefaults[((buildtype - 70) * 7) + 3];
_root.stationdataArray[p + 9] = _root.stationdefaults[((buildtype - 70) * 7) + 4];
_root.stationdataArray[p + 10] = _root.stationdefaults[((buildtype - 70) * 7) + 5];
_root.stationdataArray[p + 11] = _root.stationdefaults[((buildtype - 70) * 7) + 6];
_root.stationdataArray[p + 12] = _root.stationdefaults[((buildtype - 70) * 7) + 7];
_root.stationdataArray[p + 13] = "S-" add random(1000);
}
}
function zoomout() {
zoom = zoom * 2;
setProperty("player", _xscale , getProperty("player", _xscale) / 2);
setProperty("player", _yscale , getProperty("player", _yscale) / 2);
setProperty("planet", _xscale , getProperty("planet", _xscale) / 2);
setProperty("planet", _yscale , getProperty("planet", _yscale) / 2);
setProperty("repairmodule", _xscale , getProperty("repair", _xscale) / 2);
setProperty("repairmodule", _yscale , getProperty("repair", _yscale) / 2);
var x = ((298 - getProperty("planet", _x)) / 2);
var y = ((195 - getProperty("planet", _y)) / 2);
setProperty("planet", _x , 298 - x);
setProperty("planet", _y , 195 - y);
var i = 1;
while (i <= _root.xArray0) {
if (otherships[i] != undefined) {
setProperty(otherships[i], _xscale , getProperty(otherships[i], _xscale) / 2);
setProperty(otherships[i], _yscale , getProperty(otherships[i], _yscale) / 2);
var x = ((298 - getProperty(otherships[i], _x)) / 2);
var y = ((195 - getProperty(otherships[i], _y)) / 2);
setProperty(otherships[i], _x , 298 - x);
setProperty(otherships[i], _y , 195 - y);
}
i++;
}
}
function zoomin() {
zoom = zoom / 2;
setProperty("player", _xscale , getProperty("player", _xscale) * 2);
setProperty("player", _yscale , getProperty("player", _yscale) * 2);
setProperty("planet", _xscale , getProperty("planet", _xscale) * 2);
setProperty("planet", _yscale , getProperty("planet", _yscale) * 2);
setProperty("repairmodule", _xscale , getProperty("repair", _xscale) * 2);
setProperty("repairmodule", _yscale , getProperty("repair", _yscale) * 2);
var x = ((298 - getProperty("planet", _x)) * 2);
var y = ((195 - getProperty("planet", _y)) * 2);
setProperty("planet", _x , 298 - x);
setProperty("planet", _y , 195 - y);
var i = 1;
while (i <= _root.xArray0) {
if (otherships[i] != undefined) {
setProperty(otherships[i], _xscale , getProperty(otherships[i], _xscale) * 2);
setProperty(otherships[i], _yscale , getProperty(otherships[i], _yscale) * 2);
var x = ((298 - getProperty(otherships[i], _x)) * 2);
var y = ((195 - getProperty(otherships[i], _y)) * 2);
setProperty(otherships[i], _x , 298 - x);
setProperty(otherships[i], _y , 195 - y);
}
i++;
}
}
function findclosest(me, govt) {
var xArray = 0;
var xtarget = 0;
while (xArray < _root.xArray0) {
xArray++;
var myx = getProperty(me, _x);
var myy = getProperty(me, _y);
var x1 = getProperty(_root.otherships[xtarget], _x);
var y1 = getProperty(_root.otherships[xtarget], _y);
var x2 = getProperty(_root.otherships[xArray], _x);
var y2 = getProperty(_root.otherships[xArray], _y);
if ((((Math.abs(x2 - myx) < Math.abs(x1 - myx)) or (Math.abs(y2 - myy) < Math.abs(y1 - myy))) and (x2 != undefined)) and (x2 != 0)) {
if (_root.shipsgovt[xArray] == govt) {
var xtarget = xArray;
}
}
}
return(xtarget);
}
function savegame() {
local_data = SharedObject.getLocal(gamename);
local_data.data.experience = [expneg, expat, expeng, exptac, exptrade, expbuild, expnav];
local_data.data.passes = [asteroidpass, planetpass, weaponpass, bajoransail, warpcore];
local_data.data.playership = playership;
local_data.data.weapons = [weapon1, weapon2, weapon3];
local_data.data.ops = [opsreserves, opsengines, opsweapons, opsshields];
local_data.data.govts = planetGovts;
local_data.data.pops = planetPops;
local_data.data.planetstrengths = planetStrengths;
local_data.data.resources = [mylatinum, mydeuranium, myantimatter];
local_data.data.govtarray = planetGovtArray;
local_data.data.prestige = localprestige;
local_data.data.stationdata = stationDataArray;
local_data.data.myfleet = myfleet;
local_data.data.myweapons = myweapons;
local_data.data.mytech = mytech;
local_data.data.race = race;
local_data.data.mybuild = mybuild;
local_data.data.myplanet = myplanet;
local_data.data.rep = rep;
local_data.data.names = [myname, myshipname, mygovtname];
local_data.flush();
}
function loadgame() {
local_data = SharedObject.getLocal(gamename);
expneg = local_data.data.experience[0];
expat = local_data.data.experience[1];
expeng = local_data.data.experience[2];
exptac = local_data.data.experience[3];
exptrade = local_data.data.experience[4];
expbuild = local_data.data.experience[5];
expnav = local_data.data.experience[6];
asteroidpass = local_data.data.passes[0];
planetpass = local_data.data.passes[1];
weaponpass = local_data.data.passes[2];
bajoransail = local_data.data.passes[3];
warpcore = local_data.data.passes[4];
playership = local_data.data.playership;
weapon1 = local_data.data.weapons[0];
weapon2 = local_data.data.weapons[1];
weapon3 = local_data.data.weapons[2];
opsreserves = local_data.data.ops[0];
opsengines = local_data.data.ops[1];
opsweapons = local_data.data.ops[2];
opsshields = local_data.data.ops[3];
planetGovts = local_data.data.govts;
planetPops = local_data.data.pops;
planetStrengths = local_data.data.planetstrengths;
mylatinum = local_data.data.resources[0];
mydeuranium = local_data.data.resources[1];
myantimatter = local_data.data.resources[2];
planetGovtArray = local_data.data.govtarray;
localprestige = local_data.data.prestige;
stationDataArray = local_data.data.stationdata;
myfleet = local_data.data.myfleet;
myweapons = local_data.data.myweapons;
mytech = local_data.data.mytech;
mybuild = local_data.data.mybuild;
myplanet = local_data.data.myplanet;
race = local_data.data.race;
rep = local_data.data.rep;
myname = local_data.data.names[0];
myshipname = local_data.data.names[1];
mygovtname = local_data.data.names[2];
}
function checkforwin() {
var syscheck = new Array();
var sys = 1;
while (sys <= 16) {
var w = 1;
while (w <= 50) {
if (planetGovts[w] == sys) {
syscheck[sys]++;
}
w++;
}
sys++;
}
var w = 0;
var newship = undefined;
if (syscheck[1] > 45) {
w = 1;
newship = 60;
events = "The Earth Empire has dominated the galaxy, thanks to your efforts. Congradulations. As reward, you have been promoted to Fleet Commander and have been given command of the new Dreadnaught Class Warship.";
}
if (syscheck[2] > 45) {
w = 1;
newship = 61;
events = "The Klingon Empire has dominated the galaxy, thanks to your efforts. Qa'Pla! As reward, you are promoted to Supreme Commander, and given command of the fleet flagship, a Fek'Lhr Class Warship.";
}
if (syscheck[3] > 45) {
w = 1;
newship = 62;
events = "The Cardassian Union has dominated the galaxy, thanks to your efforts. Well done! As reward, you are promoted to Imperial Gul, and given command of the newest Keplar Class Warship.";
}
if (syscheck[5] > 45) {
w = 1;
newship = 63;
events = "The Vulcan Command has taken control of the galaxy, spreading logic and peace throughout the land. As thanks for your valiant efforts, the Vulcans have genetically re-engineered your body into a space-dwelling lifeform.";
}
if (syscheck[6] > 45) {
w = 1;
newship = 64;
events = "The Romulan Empire has conquered the galaxy and driven out the barbarian races. You are promoted to Imperial Commander and given command of the new BLANK Warbird.";
}
if (syscheck[7] > 45) {
w = 1;
events = "The Ferengi Alliance now controls the greater part of the galaxy. Although you were mostly responsible for this effort, the Grand Nagus takes all of the credit and greedily shows you to the door. You should never have trusted the Ferengi.";
}
if (syscheck[13] > 45) {
w = 1;
newship = 65;
events = "After years of struggle the Dominion have claimed ownership of the galaxy. The humans are crushed, and all fall to the power of the Dominion. A new grand battleship is constructed, and you are assigned to command it.";
}
if (syscheck[16] > 45) {
w = 1;
newship = 66;
events = "After years of stuggle you finally seat yourself on the imperial throne of your home planet. You are emperor of the galaxy. With you vast wealth and resources you construct a warship more powerful than anything the galaxy has seen.";
}
if (w == 1) {
_root.loadcomm();
Set("commpanel:mytype", 13);
Set("commpanel:event", events);
}
if (newship != undefined) {
_root.playership = newship;
_root.myantimatter = 10;
_root.myenergy = undefined;
_root.myweapons = undefined;
_root.weapon1 = undefined;
_root.weapon2 = undefined;
_root.weapon3 = undefined;
_root.myshields = undefined;
_root.loadplayer();
_root.shiplaunch.start();
}
}
stop();
_root.govtArray[16] = mygovtname;
music.start(0, 999);
_root.level = 301;
otherships = new Array();
shipsgovt = new Array();
_root.maxwarp = 5;
_root.xarray0 = 1;
zoom = 1;
s = 1;
Set("../playerpanel:mymenu", 0);
Set("../playerpanel:cargopanel", 1);
_root.updatemenu();
mytype = 1;
setplanet();
setstations();
Instance of Symbol 1263 MovieClip in Frame 154
onClipEvent (load) {
_x = ((random(300) - random(300)) + 300);
_y = ((random(300) - random(300)) + 300);
}
Instance of Symbol 1265 MovieClip "star1" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 4));
_y = (_y + (_root.locy / 4));
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 4));
_y = (_y + (_root.locy / 4));
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star2" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 2));
_y = (_y + (_root.locy / 2));
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star2" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 2));
_y = (_y + (_root.locy / 2));
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star1" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star1" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star1" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
if ((_root.speed < -25) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= -25) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star1" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star1" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 4));
_y = (_y + (_root.locy / 4));
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 4));
_y = (_y + (_root.locy / 4));
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 4));
_y = (_y + (_root.locy / 4));
if ((_root.speed < -25) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= -25) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 2));
_y = (_y + (_root.locy / 2));
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 2));
_y = (_y + (_root.locy / 2));
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1267 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 2));
_y = (_y + (_root.locy / 2));
if ((_root.speed < (-25 / _root.zoom)) and (_yscale != 3000)) {
_yscale = 3000;
}
if ((_root.speed >= (-25 / _root.zoom)) and (_yscale != 100)) {
_yscale = 100;
}
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1265 MovieClip "star3" in Frame 154
onClipEvent (enterFrame) {
if (_root.speed != 0) {
_x = (_x + (_root.locx / 4));
_y = (_y + (_root.locy / 4));
_rotation = getProperty("../player", _rotation);
}
if (_x < 0) {
_x = 600;
_y = random(450);
}
if (_x > 600) {
_x = 0;
_y = random(450);
}
if (_y < 0) {
_x = random(600);
_y = 450;
}
if (_y > 450) {
_x = random(600);
_y = 0;
}
}
Instance of Symbol 1292 MovieClip "planet" in Frame 154
onClipEvent (load) {
tradetons = random(500) + 20;
tradegoods = _root.tradegoodsArray[random(42)];
p = random(50) + 1;
tradeplanet = _root.planetsArray[p];
tradecost = Number((random(100) + 20) * 0.2);
if (_root.localprestige[p] < 0) {
hazardpay = random(10) + 1;
} else {
hazardpay = 0;
}
_root.priceadjust = random(Math.abs(Number(_root.planetArray[6])) + 1);
if (Number(_root.planetArray[6]) > 0) {
_root.priceadjust = _root.priceadjust * 100;
}
if (Number(_root.planetArray[6]) < 0) {
_root.priceadjust = _root.priceadjust * -100;
}
_root.priceadjust = _root.priceadjust + (random(50) - random(50));
_root.ATmission = random(31) + 1;
}
on (release) {
_root.deselectobject();
_root.hail();
}
on (rollOver) {
Set("../playerpanel:infotext", "Click to hail the planet " + _root.planetArray[0]);
}
on (rollOut) {
Set("../playerpanel:infotext", "");
}
onClipEvent (enterFrame) {
if (random(1000) == 1) {
Set("../playerpanel:infotext", "Sensors indicate a ship has just entered this system...");
i = _root.numstations + 1;
while (i <= 100) {
if (_root.otherships[i] == undefined) {
_root.xArray = i;
}
i = 101;
}
_root.mygovt = undefined;
_root.createship();
}
if (Key.isDown(188) and (_root.zoom < 4)) {
_root.zoomout();
}
if (Key.isDown(190) and (_root.zoom > 1)) {
_root.zoomin();
}
if (Key.isDown(17) and (../player.playershiptype.hitkey <= 0)) {
Set("../player:playershiptype:hitkey", 20);
_root.gamedata2 = ../player.playershiptype.hitkey;
if (_root.myselect == undefined) {
var i = 1;
while (i < _root.xArray0) {
if (_root.otherships[i] != undefined) {
_root.deselectobject();
_root.myselect = _root.otherships[i];
_root.selectobject();
i = 9999;
break;
}
i++;
}
} else {
var i = 1;
while (i < _root.xArray0) {
if (_root.myselect == _root.otherships[i]) {
_root.deselectobject();
_root.myselect = _root.otherships[i + 1];
_root.selectobject();
i = 9999;
break;
}
i++;
}
}
}
}
Instance of Symbol 360 MovieClip in Frame 154
onClipEvent (load) {
myrace = _root.race;
}
Instance of Symbol 1305 MovieClip "planetblip" in Frame 154
onClipEvent (load) {
fade = 0;
}
onClipEvent (enterFrame) {
if ((mytarget == _root.myselect) and (fade == 0)) {
fade = 1;
}
if ((mytarget != _root.myselect) and (fade > 0)) {
fade = 0;
}
if (fade == 1) {
_alpha = (_alpha - 20);
if (_alpha < 10) {
fade = 0;
}
}
if (fade == 2) {
_alpha = (_alpha + 20);
if (_alpha > 90) {
fade = 1;
}
}
if ((fade == 0) and (_alpha < 100)) {
_alpha = 100;
}
if (eval (("../" add mytarget) add ".cloak") == 1) {
_alpha = 0;
}
x = 544;
y = 403;
me_x = getProperty("../" add mytarget, _x);
me_y = getProperty("../" add mytarget, _y);
if (mytarget == undefined) {
mytarget = "planet";
}
if (me_x == undefined) {
removeMovieClip("");
}
if (mydist == undefined) {
mydist = 1;
}
if (y > me_y) {
ydist = y - ((y - me_y) / 100);
}
if (y < me_y) {
ydist = y + ((me_y - y) / 100);
}
if (x > me_x) {
xdist = x - ((x - me_x) / 100);
}
if (x < me_x) {
xdist = x + ((me_x - x) / 100);
}
if (mydist < 6) {
mydist = 1;
if (xdist < 494) {
xdist = 494;
mydist = 5;
}
if (ydist < 372) {
ydist = 372;
mydist = 2;
}
if (xdist > 590) {
xdist = 590;
mydist = 3;
}
if (ydist > 440) {
ydist = 440;
mydist = 4;
}
}
_y = ydist;
_x = xdist;
}
Frame 155
stop();
removeallships();
removeMovieClip("commpanel");
_root.myplanet = _root.planetclick;
var events = (((((_root.dist + " days have passed. The current stardate is now ") + _root.stardate1) + ".") + _root.stardate2) + ".");
events = events + newline;
events = events + (("\rYour ship has consumed " + tripuse) + " tons of antimatter");
var i = 1;
var lat = 0;
while (i <= 55) {
_root.planetArray = _root.planetDataArray[i - 1].split(";");
if (((random(20) == 1) and (_root.planetGovts[i + 55] != 0)) and (_root.planetPops[i] > 0)) {
events = events + (((("\rReports coming in of an attack on " + _global.mapnamesArray[i]) + " by the ") + _root.govtArray[_root.planetGovts[i + 55]]) + ".");
var i2 = 1;
while (stationdataArray[((i2 - 1) * 14) + 0] != undefined) {
if ((Number(stationdataArray[((i2 - 1) * 14) + 0]) == i) and (random(100) == 1)) {
stationdataArray[((i2 - 1) * 14) + 0] = stationdataArray[((i2 - 1) * 14) + 0] * -1;
events = events + (((((("\rReports coming in that station " + stationdataArray[((i2 - 1) * 14) + 13]) + " in the ") + _global.mapnamesArray[i]) + " system has been destroyed by a ") + _root.govtArray[_root.planetGovts[i + 55]]) + " attack fleet.");
}
i2++;
}
}
if ((_root.planetStrengths[i] <= 0) and (_root.planetPops[i] > 0)) {
_root.planetStrengths[i] = 0;
evac = random(2) + 1;
events = events + (((("\rReports coming in that " + evac) + " billion people have evacuated the planet ") + _root.planetArray[0]) + " due to lack of protection.");
_root.planetPops[i] = Number(_root.planetPops[i]) - evac;
if (((_root.planetgovtArray[i] != 6) and (_root.planetStrengths[i] <= 0)) and (_root.planetPops[i] <= 0)) {
_root.planetPops[i] = 0;
_root.planetGovts[i] = 0;
_root.planetGovts[i + 55] = 0;
events = events + (("\rReports indicate the planet " + _global.mapnamesArray[i]) + " is now completely uninhabited.");
}
}
if ((((((_root.planetStrengths[i] <= 0) and (_root.planetStrengths[i] != undefined)) and (_root.planetPops[i] <= 0)) and (random(100) == 1)) and (_root.planetgovtArray[i] != 5)) and (_root.planetGovts[i] == 0)) {
_root.planetPops[i] = 2;
_root.planetStrengths[i] = 500;
_root.planetGovts[i] = random(28) + 17;
_root.planetGovts[i + 55] = random(44) + 1;
_root.randomstation(i);
events = events + (((("\rThe " + govtArray[_root.planetGovts[i]]) + " has risen on the planet ") + _global.mapnamesArray[i]) + ".");
events = events + (((("\rThe " + govtArray[_root.planetGovts[i + 55]]) + " has declared war on the planet ") + _global.mapnamesArray[i]) + ".");
}
if ((_root.planetGovts[i] > 16) and (random(200) == 1)) {
var x = random(3);
if (x == 0) {
events = events + (((((("\rThe " + govtArray[_root.planetGovts[i]]) + " has been destroyed by the ") + _root.planetGovts[i + 55]) + " on the planet ") + _global.mapnamesArray[i]) + ".");
}
if (x == 1) {
events = events + (((("\rThe " + govtArray[_root.planetGovts[i]]) + " has collapsed as poverty and disease decimated its population on ") + _global.mapnamesArray[i]) + ".");
}
if (x == 2) {
events = events + (((("\rThe " + govtArray[_root.planetGovts[i]]) + " leader has been assassinated on ") + _global.mapnamesArray[i]) + ", resulting the governments collapse.");
}
var i2 = 1;
while (_root.stationdataArray[i2] != undefined) {
if (_root.stationdataArray[i2 + 0] == i) {
_root.stationdataArray[i2 + 0] = 0;
}
i2++;
}
_root.planetPops[i] = 0;
_root.planetStrengths[i] = 0;
_root.planetGovts[i] = 0;
_root.planetGovts[i + 55] = 0;
}
if ((_root.planetgovtArray[i] == 3) and (_root.planetPops[i] > 0)) {
lat = lat + (((random(30) + 20) * _root.planetPops[i]) * Math.floor(_root.dist));
var x1 = 1;
while (x1 <= 11) {
var x2 = 1;
var x = 0;
var dec = 0;
while (x2 <= 55) {
if (_root.planetGovts[x2] == x1) {
dec = dec + Number(_root.localprestige[x2]);
x++;
}
x2++;
}
dec = Math.floor(dec / x);
if ((dec < 0) and (random(100) == 1)) {
_root.planetGovts[i + 55] = x1;
events = events + (((("\rThe " + govtArray[x1]) + " has declared war on your planet ") + _global.mapnamesArray[i]) + ".");
}
x1++;
}
}
i++;
}
var shipscost = 0;
var i = 1;
while (stationdataArray[((i - 1) * 14) + 0] != undefined) {
if (Number(stationdataArray[((i - 1) * 14) + 2]) < 0) {
stationdataArray[((i - 1) * 14) + 2] = Number(stationdataArray[((i - 1) * 14) + 2]) + Number(_root.dist);
if (Number(stationdataArray[((i - 1) * 14) + 2]) >= 0) {
stationdataArray[((i - 1) * 14) + 2] = 100;
events = events + (((((("\rStation " + stationdataArray[((i - 1) * 14) + 13]) + ", a ") + _root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 1]) + " in the ") + _global.mapnamesArray[Number(stationdataArray[((i - 1) * 14) + 0])]) + " system has completed construction.");
_root.planetPops[Number(stationdataArray[((i - 1) * 14) + 0])] = Number(_root.planetPops[Number(stationdataArray[((i - 1) * 14) + 0])]) + Number(_root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 4]);
events = events + (((("\rPopulation has increased on the planet " + _global.mapnamesArray[Number(stationdataArray[((i - 1) * 14) + 0])]) + " by ") + _root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 4]) + " billion.");
_root.planetStrengths[Number(stationdataArray[((i - 1) * 14) + 0])] = Number(_root.planetStrengths[Number(stationdataArray[((i - 1) * 14) + 0])]) + Number(_root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 5]);
events = events + (((("\rStrength has increased on the planet " + _global.mapnamesArray[Number(stationdataArray[((i - 1) * 14) + 0])]) + " by ") + _root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 5]) + ".");
var ore = 0;
if (stationdataArray[((i - 1) * 14) + 1] == 78) {
var p = _root.planetDataArray[stationdataArray[((i - 1) * 14) + 1] - 1].split(";");
if (p[17] == 1) {
ore = ore + random(100);
} else {
ore = ore + random(5);
}
}
if (((stationdataArray[((i - 1) * 14) + 1] == 75) or (stationdataArray[((i - 1) * 14) + 1] == 77)) or (stationdataArray[((i - 1) * 14) + 1] == 50)) {
lat = lat + random(20);
}
if (stationdataArray[((i - 1) * 14) + 1] == 83) {
stationcost = stationcost - 500;
}
}
}
if (((Number(stationdataArray[((i - 1) * 14) + 0]) < 0) and ((_root.planetStrengths[stationdataArray[((i - 1) * 14) + 0]] * -1) > 1000)) and (random(50) == 1)) {
stationdataArray[((i - 1) * 14) + 0] = stationdataArray[((i - 1) * 14) + 0] * -1;
events = events + (((("\rThe " + _global.mapnamesArray[Number(stationdataArray[((i - 1) * 14) + 0])]) + " system has rebuilt station ") + stationdataArray[((i - 1) * 14) + 13]) + ".");
_root.planetPops[Number(stationdataArray[((i - 1) * 14) + 0])] = Number(_root.planetPops[Number(stationdataArray[((i - 1) * 14) + 0])]) + Number(_root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 4]);
events = events + (((("\rPopulation has increased on the planet " + _global.mapnamesArray[Number(stationdataArray[((i - 1) * 14) + 0])]) + " by ") + _root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 4]) + " billion.");
_root.planetStrengths[Number(stationdataArray[((i - 1) * 14) + 0])] = Number(_root.planetStrengths[Number(stationdataArray[((i - 1) * 14) + 0])]) + Number(_root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 5]);
events = events + (((("\rStrength has increased on the planet " + _global.mapnamesArray[Number(stationdataArray[((i - 1) * 14) + 0])]) + " by ") + _root.itemdescArray[((stationdataArray[((i - 1) * 14) + 1] - 1) * 13) + 5]) + ".");
}
i++;
}
var i = 1;
while (myfleet[((i - 1) * 4) + 1] != undefined) {
if ((myfleet[((i - 1) * 4) + 1] != 0) and (myfleet[((i - 1) * 4) + 1] != -1)) {
if (_root.mylatinum > 20) {
shipscost = shipscost + (Number(_root.itemdescArray[((_root.myfleet[((i - 1) * 4) + 2] - 1) * 13) + 3]) * Math.floor(_root.dist));
} else {
events = events + (((("\rThe " + myfleet[((i - 1) * 4) + 3]) + " in the ") + _global.mapnamesArray[myfleet[((i - 1) * 4) + 1]]) + " system has defected due to lack of maintenance.");
_root.myfleet[((i - 1) * 4) + 1] = 0;
}
if (_root.localprestige[myfleet[((i - 1) * 4) + 1]] < 0) {
if (random(10) == 1) {
events = events + (((("\rThe " + myfleet[((i - 1) * 4) + 3]) + " in the ") + _global.mapnamesArray[myfleet[((i - 1) * 4) + 1]]) + " system was attacked and sustained minor damage.");
}
if (random(10) == 1) {
events = events + (((("\rThe " + myfleet[((i - 1) * 4) + 3]) + " in the ") + _global.mapnamesArray[myfleet[((i - 1) * 4) + 1]]) + " system engaged and destroyed an enemy vessel there.");
var i2 = 1;
var x = 0;
while (stationdataArray[((i2 - 1) * 14) + 0] != undefined) {
if (Number(stationdataArray[((i2 - 1) * 14) + 0]) == myfleet[((i - 1) * 4) + 1]) {
x++;
}
i2++;
}
if (x == 0) {
_root.planetStrengths[Number(myfleet[((i - 1) * 4) + 1])] = _root.planetStrengths[Number(myfleet[((i - 1) * 4) + 1])] - random(20);
}
}
if (random(40) == 1) {
events = events + (((("\rThe " + myfleet[((i - 1) * 4) + 3]) + " in the ") + _global.mapnamesArray[myfleet[((i - 1) * 4) + 1]]) + " system was destroyed by an enemy vessel.");
_root.myfleet[((i - 1) * 4) + 1] = 0;
}
}
if ((myfleet[((i - 1) * 4) + 4] == 1) and (random(10) == 1)) {
var x = (random(Number(_root.itemdescArray[((_root.myfleet[((i - 1) * 4) + 2] - 1) * 13) + 5])) * (random(10) + 1));
_root.mylatinum = Number(_root.mylatinum) + Number(x);
myfleet[((i - 1) * 4) + 1] = random(50) + 1;
events = events + (((((("\rThe " + myfleet[((i - 1) * 4) + 3]) + " reports profit of ") + x) + " bars of latinum from a trade mission to the ") + _global.mapnamesArray[myfleet[((i - 1) * 4) + 1]]) + " system.");
}
if ((myfleet[((i - 1) * 4) + 4] == 2) and (random(10) == 1)) {
myfleet[((i - 1) * 4) + 1] = random(50) + 1;
if (_root.planetStrengths[myfleet[((i - 1) * 4) + 1]] == undefined) {
var p = _root.planetDataArray[myfleet[((i - 1) * 4) + 1]].split(";");
_root.planetPops[myfleet[((i - 1) * 4) + 1]] = p[5];
_root.planetStrengths[myfleet[((i - 1) * 4) + 1]] = p[2];
_root.planetGovts[myfleet[((i - 1) * 4) + 1]] = p[1];
_root.planetGovts[myfleet[((i - 1) * 4) + 1] + 55] = p[9];
planetgovtarray[myfleet[((i - 1) * 4) + 1]] = 4;
if (planetgovts[myfleet[((i - 1) * 4) + 1]] == 16) {
planetgovtarray[myfleet[((i - 1) * 4) + 1]] = 3;
} else {
if (localprestige[myfleet[((i - 1) * 4) + 1]] < 0) {
planetgovtarray[myfleet[((i - 1) * 4) + 1]] = 1;
}
if (localprestige[myfleet[((i - 1) * 4) + 1]] >= 100) {
planetgovtarray[myfleet[((i - 1) * 4) + 1]] = 2;
}
if ((planetpops[myfleet[((i - 1) * 4) + 1]] <= 0) and (planetstrengths[myfleet[((i - 1) * 4) + 1]] <= 0)) {
planetgovtarray[myfleet[((i - 1) * 4) + 1]] = 6;
}
if ((((myfleet[((i - 1) * 4) + 1] == 32) or (myfleet[((i - 1) * 4) + 1] == 33)) or (myfleet[((i - 1) * 4) + 1] == 34)) or (myfleet[((i - 1) * 4) + 1] == 29)) {
planetgovtarray[myfleet[((i - 1) * 4) + 1]] == 5;
}
}
}
events = events + (((("\rThe " + myfleet[((i - 1) * 4) + 3]) + " reports it is currently exploring the ") + _global.mapnamesArray[myfleet[((i - 1) * 4) + 1]]) + " system.");
}
}
i++;
}
if (shipscost > 0) {
events = events + (("\rYour fleet has cost you " + shipscost) + " bars of latinum in maintenance.");
_root.mylatinum = Number(_root.mylatinum) - Number(shipscost);
}
if (lat > 0) {
_root.mylatinum = Number(_root.mylatinum) + Number(lat);
events = events + (("\rYour empire has generated " + lat) + " bars of latinum.");
}
if (ore > 0) {
events = events + (("\rYour ore stations have processed " + ore) + " tons of deuranium.");
_root.mydeuranium = Number(_root.mydeuranium) + Number(ore);
}
events = events + "\rNo other events have occured.";
_root.savegame();
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 5);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 5);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 5);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 5);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 5);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 5);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 20);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (locx > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 1265 MovieClip in Frame 155
onClipEvent (enterFrame) {
_x = (_x + 10);
if (_x > 600) {
_x = 0;
_y = random(450);
}
}
Instance of Symbol 36 MovieClip [FScrollBarSymbol] in Frame 155
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "events";
horizontal = false;
}
Frame 156
_root.speed = _root.totspeed * -1;
gotoAndPlay (154);
x = random(3);
if (x == 0) {
setProperty("planet", _x , -1500);
setProperty("planet", _y , -1500);
}
if (x == 1) {
setProperty("planet", _x , 1500);
setProperty("planet", _y , -1500);
}
if (x == 2) {
setProperty("planet", _x , -1500);
setProperty("planet", _y , 1500);
}
if (x == 3) {
setProperty("planet", _x , 1500);
setProperty("planet", _y , 1500);
}
Frame 182
stop();
Frame 183
gotoAndPlay (182);
Frame 197
gotoAndPlay (60);
Symbol 35 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 36 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 40 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 40 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 44 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 3
function FScrollPaneClass() {
function boolToString(str) {
if (str == "false") {
return(false);
}
if (str == "true") {
return(true);
}
return(str);
}
this.init();
this.width = this._width;
this.height = this._height;
this._xscale = (this._yscale = 100);
this.contentWidth = (this.contentHeight = 0);
if (this.hScroll == undefined) {
this.hScroll = (this.vScroll = "auto");
this.dragContent = false;
}
this.offset = new Object();
this.vScroll = boolToString(this.vScroll);
this.hScroll = boolToString(this.hScroll);
this.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:this.styleTable});
this.hScrollBar_mc.setHorizontal(true);
this.hScrollBar_mc.setSmallScroll(5);
this.hScrollBar_mc.setChangeHandler("onScroll", this);
this.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:this.styleTable});
this.vScrollBar_mc.setSmallScroll(5);
this.vScrollBar_mc.setChangeHandler("onScroll", this);
this.setSize(this.width, this.height);
if (this.scrollContent != "") {
this.setScrollContent(this.scrollContent);
}
this.setDragContent(this.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var xPos = ((this.hScrollBar_mc == undefined) ? 0 : (this.hScrollBar_mc.getScrollPosition()));
var yPos = ((this.vScrollBar_mc == undefined) ? 0 : (this.vScrollBar_mc.getScrollPosition()));
return({x:xPos, y:yPos});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
this.offset.x = 0;
this.offset.y = 0;
if (this.content_mc != undefined) {
if (target != this.content_mc) {
this.content_mc._visible = false;
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
}
}
if (typeof(target) == "string") {
this.attachMovie(target, "tmp_mc", 3);
this.content_mc = this.tmp_mc;
} else if (target == undefined) {
this.content_mc.unloadMovie();
} else {
this.content_mc = target;
}
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
var contentBounds = this.content_mc.getBounds(this);
this.offset.x = -contentBounds.xMin;
this.offset.y = -contentBounds.yMin;
this.localToGlobal(this.offset);
this.content_mc._parent.globalToLocal(this.offset);
this.content_mc._x = this.offset.x;
this.content_mc._y = this.offset.y;
this.contentWidth = this.content_mc._width;
this.contentHeight = this.content_mc._height;
this.content_mc.setMask(this.mask_mc);
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
if (((arguments.length < 2) || (isNaN(w))) || (isNaN(h))) {
return(undefined);
}
super.setSize(w, h);
this.width = Math.max(w, 60);
this.height = Math.max(h, 60);
this.boundingBox_mc._xscale = 100;
this.boundingBox_mc._yscale = 100;
this.boundingBox_mc._width = this.width;
this.boundingBox_mc._height = this.height;
this.setHandV();
this.initScrollBars();
if (this.mask_mc == undefined) {
this.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
this.mask_mc._xscale = 100;
this.mask_mc._yscale = 100;
this.mask_mc._width = this.hWidth;
this.mask_mc._height = this.vHeight;
this.mask_mc._alpha = 0;
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
x = Math.max(this.hScrollBar_mc.minPos, x);
x = Math.min(this.hScrollBar_mc.maxPos, x);
y = Math.max(this.vScrollBar_mc.minPos, y);
y = Math.min(this.vScrollBar_mc.maxPos, y);
this.hScrollBar_mc.setScrollPosition(x);
this.vScrollBar_mc.setScrollPosition(y);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
this.content_mc.removeMovieClip();
this.content_mc.unloadMovie();
this.content_mc._visible = 0;
this.loadContent.duplicateMovieClip("loadTemp", 3);
this.dupeFlag = true;
this.contentLoaded = function () {
this.loadReady = false;
this.content_mc = this.loadTemp;
this.refreshPane();
this.executeCallBack();
};
this.setChangeHandler(handler, location);
this.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
this.hScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
this.vScroll = prop;
this.setSize(this.width, this.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
if (dragFlag) {
this.boundingBox_mc.useHandCursor = true;
this.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
this.boundingBox_mc.tabEnabled = false;
this.boundingBox_mc.onRelease = (this.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete this.boundingBox_mc.onPress;
this.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
if ((((this.contentHeight - this.height) > 2) && (this.vScroll != false)) || (this.vScroll == true)) {
this.hWidth = this.width - this.vScrollBar_mc._width;
} else {
this.hWidth = this.width;
}
if ((((this.contentWidth - this.width) > 2) && (this.hScroll != false)) || (this.hScroll == true)) {
this.vHeight = this.height - this.hScrollBar_mc._height;
} else {
this.vHeight = this.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
this.tabFocused = false;
this.myOnSetFocus();
this.lastX = this._xmouse;
this.lastY = this._ymouse;
this.onMouseMove = function () {
this.scrollXMove = this.lastX - this._xmouse;
this.scrollYMove = this.lastY - this._ymouse;
this.scrollXMove = this.scrollXMove + this.hScrollBar_mc.getScrollPosition();
this.scrollYMove = this.scrollYMove + this.vScrollBar_mc.getScrollPosition();
this.setScrollPosition(this.scrollXMove, this.scrollYMove);
if ((this.scrollXMove < this.hScrollBar_mc.maxPos) && (this.scrollXMove > this.hScrollBar_mc.minPos)) {
this.lastX = this._xmouse;
}
if ((this.scrollYMove < this.vScrollBar_mc.maxPos) && (this.scrollYMove > this.vScrollBar_mc.minPos)) {
this.lastY = this._ymouse;
}
this.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
this.hScrollBar_mc._y = this.height - this.hScrollBar_mc._height;
this.hScrollBar_mc.setSize(this.hWidth);
this.hScrollBar_mc.setScrollProperties(this.hWidth, 0, this.contentWidth - this.hWidth);
this.vScrollBar_mc._visible = ((this.hWidth == this.width) ? false : true);
this.vScrollBar_mc._x = this.width - this.vScrollBar_mc._width;
this.vScrollBar_mc.setSize(this.vHeight);
this.vScrollBar_mc.setScrollProperties(this.vHeight, 0, this.contentHeight - this.vHeight);
this.hScrollBar_mc._visible = ((this.vHeight == this.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var pos = component.getScrollPosition();
var XorY = ((component._name == "hScrollBar_mc") ? "x" : "y");
if (component._name == "hScrollBar_mc") {
this.content_mc._x = (-pos) + this.offset.x;
} else {
this.content_mc._y = (-pos) + this.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var posX = this.hScrollBar_mc.getScrollPosition();
var posY = this.vScrollBar_mc.getScrollPosition();
if (this.hScrollBar_mc.maxPos > this.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
this.setScrollPosition(posX - 3, posY);
} else if (Key.isDown(39)) {
this.setScrollPosition(posX + 3, posY);
}
}
if (this.vScrollBar_mc.maxPos > this.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
this.setScrollPosition(posX, posY - 3);
} else if (Key.isDown(40)) {
this.setScrollPosition(posX, posY + 3);
} else if (Key.isDown(34)) {
this.setScrollPosition(posX, posY + this.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
this.setScrollPosition(posX, posY - this.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 36 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 44 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Instance of Symbol 41 MovieClip "loadContent" in Symbol 44 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Symbol 58 MovieClip [phaser] Frame 1
_yscale = (_yscale / _root.zoom);
gotoAndPlay(mytype);
Symbol 58 MovieClip [phaser] Frame 2
if (xshift == undefined) {
xshift = (random(20) - random(20)) / _root.zoom;
yshift = (random(20) - random(20)) / _root.zoom;
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
if (fire == undefined) {
_root.attachMovie("explosionmini", "explosion" add _root.level, _root.level);
Set(("../explosion" add _root.level) add ":mytarget", mytarget);
Set(("../explosion" add _root.level) add ":xshift", xshift);
Set(("../explosion" add _root.level) add ":yshift", yshift);
fire = 1;
_root.level++;
}
Symbol 58 MovieClip [phaser] Frame 3
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 4
if (timer == undefined) {
Set(("../" add mytarget) add ":hit", 0.1);
Set(("../" add mytarget) add ":mystrength", eval (("../" add mytarget) add ".mystrength") - power);
timer = 3;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.beamphaser.start();
}
}
timer = timer - 1;
gotoAndPlay(mytype);
if (timer < 0) {
removeMovieClip("");
}
Symbol 58 MovieClip [phaser] Frame 5
if (xshift == undefined) {
xshift = (random(20) - random(20)) / _root.zoom;
yshift = (random(20) - random(20)) / _root.zoom;
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
if (fire == undefined) {
_root.attachMovie("explosionmini", "explosion" add _root.level, _root.level);
Set(("../explosion" add _root.level) add ":mytarget", mytarget);
Set(("../explosion" add _root.level) add ":xshift", xshift);
Set(("../explosion" add _root.level) add ":yshift", yshift);
fire = 1;
_root.level++;
}
Symbol 58 MovieClip [phaser] Frame 6
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 7
if (timer == undefined) {
timer = 3;
Set(("../" add mytarget) add ":hit", 0.1);
Set(("../" add mytarget) add ":mystrength", eval (("../" add mytarget) add ".mystrength") - power);
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.domphas.start();
}
}
timer = timer - 1;
gotoAndPlay(mytype);
if (timer < 0) {
removeMovieClip("");
}
Symbol 58 MovieClip [phaser] Frame 8
if (xshift == undefined) {
xshift = (random(20) - random(20)) / _root.zoom;
yshift = (random(20) - random(20)) / _root.zoom;
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
if (fire == undefined) {
_root.attachMovie("explosionmini", "explosion" add _root.level, _root.level);
Set(("../explosion" add _root.level) add ":mytarget", mytarget);
Set(("../explosion" add _root.level) add ":xshift", xshift);
Set(("../explosion" add _root.level) add ":yshift", yshift);
fire = 1;
_root.level++;
}
Symbol 58 MovieClip [phaser] Frame 9
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 10
if (timer == undefined) {
timer = 3;
Set(("../" add mytarget) add ":hit", 0.1);
Set(("../" add mytarget) add ":mystrength", eval (("../" add mytarget) add ".mystrength") - power);
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.polbeam.start();
}
}
timer = timer - 1;
gotoAndPlay(mytype);
if (timer < 0) {
removeMovieClip("");
}
Symbol 58 MovieClip [phaser] Frame 11
if (xshift == undefined) {
xshift = (random(20) - random(20)) / _root.zoom;
yshift = (random(20) - random(20)) / _root.zoom;
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
if (fire == undefined) {
_root.attachMovie("explosionmini", "explosion" add _root.level, _root.level);
Set(("../explosion" add _root.level) add ":mytarget", mytarget);
Set(("../explosion" add _root.level) add ":xshift", xshift);
Set(("../explosion" add _root.level) add ":yshift", yshift);
fire = 1;
_root.level++;
}
Symbol 58 MovieClip [phaser] Frame 12
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 13
if (timer == undefined) {
timer = 3;
Set(("../" add mytarget) add ":hit", 0.1);
Set(("../" add mytarget) add ":mystrength", eval (("../" add mytarget) add ".mystrength") - power);
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.romphas.start();
}
}
timer = timer - 1;
gotoAndPlay(mytype);
if (timer < 0) {
removeMovieClip("");
}
Symbol 58 MovieClip [phaser] Frame 14
if (xshift == undefined) {
xshift = (random(20) - random(20)) / _root.zoom;
yshift = (random(20) - random(20)) / _root.zoom;
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
if (fire == undefined) {
_root.attachMovie("explosionmini", "explosion" add _root.level, _root.level);
Set(("../explosion" add _root.level) add ":mytarget", mytarget);
Set(("../explosion" add _root.level) add ":xshift", xshift);
Set(("../explosion" add _root.level) add ":yshift", yshift);
fire = 1;
_root.level++;
}
Symbol 58 MovieClip [phaser] Frame 15
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 16
if (timer == undefined) {
timer = 2;
Set(("../" add mytarget) add ":hit", 0.1);
Set(("../" add mytarget) add ":mystrength", eval (("../" add mytarget) add ".mystrength") - power);
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.cuttingbeam.start();
}
}
timer = timer - 1;
gotoAndPlay(mytype);
if (timer < 0) {
removeMovieClip("");
}
Symbol 58 MovieClip [phaser] Frame 17
if (xshift == undefined) {
xshift = (random(20) - random(20)) / _root.zoom;
yshift = (random(20) - random(20)) / _root.zoom;
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 18
if (timer > 0) {
Set(("../" add mytarget) add ":speed", 0);
}
if (xshift == undefined) {
xshift = random(20) - random(20);
yshift = random(20) - random(20);
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
Symbol 58 MovieClip [phaser] Frame 19
if (timer == undefined) {
timer = 30;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.tractor.start();
}
}
timer = timer - 1;
if (timer > 0) {
Set(("../" add mytarget) add ":speed", 0);
}
_root.level++;
if (xshift == undefined) {
xshift = random(20) - random(20);
yshift = random(20) - random(20);
}
targetx = getProperty("../" add mytarget, _x) + xshift;
targety = getProperty("../" add mytarget, _y) + yshift;
_x = getProperty("../" add myorigin, _x);
_y = getProperty("../" add myorigin, _y);
a = Math.abs(_x - targetx);
b = Math.abs(_y - targety);
_xscale = Math.sqrt((a * a) + (b * b));
dx = targetx - _x;
dy = targety - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
angle = (Math.PI*2) - Math.acos(dx / dist);
} else {
angle = Math.acos(dx / dist);
}
_rotation = ((angle * 180) / Math.PI);
gotoAndPlay(mytype);
if (timer < 0) {
removeMovieClip("");
}
Symbol 59 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 72 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 91 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 92 MovieClip [UpArrow] Frame 1
stop();
Symbol 92 MovieClip [UpArrow] Frame 2
stop();
Symbol 92 MovieClip [UpArrow] Frame 3
stop();
Symbol 99 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 106 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 111 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 112 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 120 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 128 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 136 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 137 MovieClip [DownArrow] Frame 1
stop();
Symbol 137 MovieClip [DownArrow] Frame 2
stop();
Symbol 137 MovieClip [DownArrow] Frame 3
stop();
Symbol 143 MovieClip Frame 1
var x = (((_root.myhull / _root.tothull) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 143 MovieClip Frame 2
var x = (((_root.myhull / _root.tothull) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 143 MovieClip Frame 3
var x = (((_root.myhull / _root.tothull) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 143 MovieClip Frame 4
var x = (((_root.myhull / _root.tothull) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 143 MovieClip Frame 5
var x = (((_root.myhull / _root.tothull) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 315 MovieClip Frame 1
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 3
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 4
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 5
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 6
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 7
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 8
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 9
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 10
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 11
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 12
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 13
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 14
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 15
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 16
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 17
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 18
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 19
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 20
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 21
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 22
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 23
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 24
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 25
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 26
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 27
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 28
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 29
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 30
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 31
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 32
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 33
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 34
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 35
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 36
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 37
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 38
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 39
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 40
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 41
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 42
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 43
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 44
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 45
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 46
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 47
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 48
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 49
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 50
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 51
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 52
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 53
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 54
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 55
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 56
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 57
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 58
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 59
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 60
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 61
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 62
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 63
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 64
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 65
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 66
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 70
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 71
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 72
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 73
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 74
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 75
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 76
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 77
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 78
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 79
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 80
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 81
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 82
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 83
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 84
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 85
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 86
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 87
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 88
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 89
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 90
gotoAndPlay(mytype);
Symbol 315 MovieClip Frame 91
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 1
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 3
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 4
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 5
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 6
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 7
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 8
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 9
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 10
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 11
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 12
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 13
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 14
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 15
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 16
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 17
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 18
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 19
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 20
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 21
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 22
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 23
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 24
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 25
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 26
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 27
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 28
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 29
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 30
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 31
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 32
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 33
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 34
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 35
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 36
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 37
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 38
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 39
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 40
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 41
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 42
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 43
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 44
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 45
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 46
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 47
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 48
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 49
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 50
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 51
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 52
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 53
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 54
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 55
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 56
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 57
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 58
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 59
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 60
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 61
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 62
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 63
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 64
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 65
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 66
gotoAndPlay(mytype);
Symbol 316 MovieClip Frame 67
gotoAndPlay(mytype);
Symbol 331 MovieClip [player] Frame 1
if (warp == undefined) {
warp = 1;
}
if (_root.myhull <= 0) {
_root.myhull = 0;
gotoAndPlay (21);
}
if (((_root.myhull / _root.tothull) < 0.4) and (random(10 - ((_root.myhull / _root.tothull) * 10)) == 1)) {
_root.attachMovie("damagemini", "damage" add _root.level, _root.level);
setProperty("../damage" add _root.level, _x , (_parent._x + random(20)) - random(20));
setProperty("../damage" add _root.level, _y , (_parent._y + random(20)) - random(20));
_root.level++;
}
Set("playershiptype:mytype", mytype);
Set("shields:mytype", mytype);
if (damagepic._width != playershiptype._width) {
damagepic._width = playershiptype._width + 10;
damagepic._height = playershiptype._height + 10;
}
Instance of Symbol 143 MovieClip "damagepic" in Symbol 331 MovieClip [player] Frame 1
/* no clip actions */
Instance of Symbol 315 MovieClip "playershiptype" in Symbol 331 MovieClip [player] Frame 1
onClipEvent (load) {
_root.weapon1timer = 0;
_root.weapon2timer = 0;
_root.weapon3timer = 0;
_parent.mystrength = 0;
_root.weapon1timer = Number(_root.weaponstats[((_root.weapon1 - 1) * 7) + 6]);
_root.totweapon1timer = _root.weapon1timer;
_root.weapon2timer = Number(_root.weaponstats[((_root.weapon2 - 1) * 7) + 6]);
_root.totweapon2timer = _root.weapon2timer;
_root.weapon3timer = Number(_root.weaponstats[((_root.weapon3 - 1) * 7) + 6]);
_root.totweapon3timer = _root.weapon3timer;
}
on (release) {
Set("../../playerpanel:shiptype", mytype);
Set("../../playerpanel:mymenu", 1);
Set("../../playerpanel:cargopanel", 1);
_root.updatemenu();
}
onClipEvent (enterFrame) {
rotation = getProperty("../", _rotation);
if (_root.speed < (-25 / _root.zoom)) {
_root.myenergy = _root.myenergy - 0.5;
_root.updatebars();
}
if (cloak == 1) {
_root.myenergy = _root.myenergy - 1;
_root.updatebars();
}
if (_root.myenergy < _root.totenergy) {
x = (_root.opsreserves * 0.01) * Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3]);
if (_root.warpcore == 1) {
x = x * 2;
}
_root.myenergy = _root.myenergy + x;
_root.updatebars();
}
if (_root.myenergy < 0) {
_root.myenergy = 0;
_root.updatebars();
_root.speed = -1 / _root.zoom;
cloak = 0;
_root.powerfail.start();
Set("../../playerpanel:infotext", "Warning: Power Failure.");
}
if (((_root.bajoransail == 1) and (random(10) == 1)) and ((100 - ((((_root.myantimatter * 2) * _root.antimatteruse) / Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3] * 100)) * 100)) > 0)) {
_root.myantimatter = _root.myantimatter + 1;
_root.updatemenu();
}
if ((_root.myshields < _root.totshields) and (_root.myshields > 0)) {
_root.myshields = _root.myshields + ((_root.opsshields / 10) * 0.01);
_root.updatebars();
}
if (((Key.isDown(38) and (((_root.speed / _root.zoom) * -1) < (_root.totspeed / _root.zoom))) and (_root.myenergy > 0)) and (repair != 1)) {
_root.speed = _root.speed - 2;
if (_root.speed < (-25 / _root.zoom)) {
_root.speed = _root.speed - (5 / _root.zoom);
}
if (_root.speed < (-100 / _root.zoom)) {
_root.speed = -100 / _root.zoom;
}
}
if (Key.isDown(40) and (repair != 1)) {
_root.speed = _root.speed + (1 / _root.zoom);
if (_root.speed < (-25 / _root.zoom)) {
_root.speed = _root.speed + (5 / _root.zoom);
}
if (_root.speed > 0) {
_root.speed = 0;
}
}
if (Key.isDown(37) and (repair != 1)) {
if (_root.speed < (-25 / _root.zoom)) {
setProperty("../", _rotation , rotation - (_root.totturn / 2));
}
if (_root.speed >= (-25 / _root.zoom)) {
setProperty("../", _rotation , rotation - _root.totturn);
}
}
if (Key.isDown(39) and (repair != 1)) {
if (_root.speed < (-25 / _root.zoom)) {
setProperty("../", _rotation , rotation + (_root.totturn / 2));
}
if (_root.speed >= (-25 / _root.zoom)) {
setProperty("../", _rotation , rotation + _root.totturn);
}
}
if ((_root.speed >= (-25 / _root.zoom)) and (repair != 1)) {
if ((Key.isDown(32) and (_root.weapon1timer <= 0)) and (_root.speed >= (-25 / _root.zoom))) {
_root.weapontype = _root.weapon1;
_root.weapon1timer = Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 6]) * (6 - Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3]));
_root.totweapon1timer = _root.weapon1timer;
_root.fireweapon();
}
if (Key.isDown(90) and (_root.weapon2timer <= 0)) {
_root.weapontype = _root.weapon2;
_root.weapon2timer = Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 6]) * (6 - Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3]));
_root.totweapon2timer = _root.weapon2timer;
_root.fireweapon();
}
if (Key.isDown(88) and (_root.weapon3timer <= 0)) {
_root.weapontype = _root.weapon3;
_root.weapon3timer = Number(_root.weaponstats[((_root.weapontype - 1) * 7) + 6]) * (6 - Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3]));
_root.totweapon3timer = _root.weapon3timer;
_root.fireweapon();
}
}
if (Key.isDown(187)) {
_root.autotarget();
}
if (Key.isDown(189)) {
_root.deselectobject();
}
if (Key.isDown(84) and (hitkey <= 0)) {
hitkey = 20;
_root.transport();
}
if (Key.isDown(77) and (hitkey <= 0)) {
hitkey = 20;
_root.openmap();
}
if (Key.isDown(119) and (hitkey <= 0)) {
hitkey = 100;
_root.loadcomm();
Set("../../commpanel:mytype", 27);
}
if (Key.isDown(72) and (hitkey <= 0)) {
hitkey = 20;
_root.hail();
}
if (Key.isDown(67) and (hitkey <= 0)) {
hitkey = 20;
Set("../../playerpanel:shiptype", mytype);
Set("../../playerpanel:mymenu", 1);
Set("../../playerpanel:cargopanel", 3);
_root.updatemenu();
}
if (Key.isDown(192) and (hitkey <= 0)) {
hitkey = 20;
if (_root.autot == 0) {
Set("../../playerpanel:infotext", "Auto Target On...");
_root.autot = 1;
} else {
Set("../../playerpanel:infotext", "Auto Target Off...");
_root.autot = 0;
}
}
if ((Key.isDown(49) or Key.isDown(97)) and (hitkey <= 0)) {
hitkey = 20;
var i = (_root.numstations + 1);
while (i <= _root.xArray0) {
Set("../../playerpanel:infotext", "Fleet ordered to follow you under green alert...");
if (_root.shipsgovt[i] == 16) {
Set(("../../" add _root.otherships[i]) add ":alert", 1);
Set(("../../" add _root.otherships[i]) add ":mytarget", "player");
Set(("../../" add _root.otherships[i]) add ":orders", 1);
}
i++;
}
}
if ((Key.isDown(50) or Key.isDown(98)) and (hitkey <= 0)) {
hitkey = 20;
var i = (_root.numstations + 1);
while (i <= _root.xArray0) {
Set("../../playerpanel:infotext", "Fleet ordered to attack your selected target...");
if (_root.shipsgovt[i] == 16) {
Set(("../../" add _root.otherships[i]) add ":orders", 4);
Set(("../../" add _root.otherships[i]) add ":alert", 3);
Set(("../../" add _root.otherships[i]) add ":mytarget", _root.myselect);
}
i++;
}
}
if ((Key.isDown(51) or Key.isDown(99)) and (hitkey <= 0)) {
hitkey = 20;
var i = (_root.numstations + 1);
while (i <= _root.xArray0) {
Set("../../playerpanel:infotext", "Fleet ordered to Seek and Destroy enemy targets...");
if (_root.shipsgovt[i] == 16) {
Set(("../../" add _root.otherships[i]) add ":orders", 4);
Set(("../../" add _root.otherships[i]) add ":alert", 3);
Set(("../../" add _root.otherships[i]) add ":mytarget", _root.myselect);
}
i++;
}
}
if ((Key.isDown(52) or Key.isDown(100)) and (hitkey <= 0)) {
hitkey = 20;
var i = (_root.numstations + 1);
while (i <= _root.xArray0) {
Set("../../playerpanel:infotext", "Fleet ordered to Seek and Destroy enemy targets...");
if (_root.shipsgovt[i] == 16) {
Set(("../../" add _root.otherships[i]) add ":alert", 1);
Set(("../../" add _root.otherships[i]) add ":orders", 2);
Set(("../../" add _root.otherships[i]) add ":mytarget", "planet");
}
i++;
}
}
if ((Key.isDown(53) or Key.isDown(101)) and (hitkey <= 0)) {
hitkey = 20;
var i = 1;
Set("../../playerpanel:infotext", "Launching all auxiliary craft...");
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (_root.myfleet[((i - 1) * 4) + 1] == -1) {
_root.myfleet[((i - 1) * 4) + 1] = _root.myplanet;
_root.createalliedship(_root.myfleet[((i - 1) * 4) + 2], _root.myfleet[((i - 1) * 4) + 3]);
}
i++;
}
}
if (((Key.isDown(54) or Key.isDown(102)) and (hitkey <= 0)) and (_root.itemdescArray[((_root.playership - 1) * 13) + 3] >= 5)) {
hitkey = 20;
var i = 1;
Set("../../playerpanel:infotext", "All nearby auxiliary craft loaded into shuttlebay...");
while (i <= _root.xArray0) {
if (_root.shipsgovt[i] == 16) {
i2 = 1;
while (_root.myfleet[((i2 - 1) * 4) + 1] != undefined) {
var xloc = getProperty("../../" add _root.otherships[i], _x);
var yloc = getProperty("../../" add _root.otherships[i], _y);
if (((_root.myfleet[((i2 - 1) * 4) + 2] == eval (("../../" add _root.otherships[i]) add ".mytype")) and (_root.myfleet[((i2 - 1) * 4) + 3] == eval (("../../" add _root.otherships[i]) add ".myname"))) and (_root.myfleet[((i2 - 1) * 4) + 1] == _root.myplanet)) {
if (((((xloc < 650) and (xloc > 0)) and (yloc < 500)) and (yloc > 0)) and (_root.itemdescArray[((_root.myfleet[((i2 - 1) * 4) + 2] - 1) * 13) + 3] <= 1)) {
_root.myfleet[((i2 - 1) * 4) + 1] = -1;
removeMovieClip("../../" add _root.otherships[i]);
_root.shipsgovt[i] = undefined;
_root.otherships[i] = undefined;
}
}
i2++;
}
}
i++;
}
}
if ((Key.isDown(55) or Key.isDown(103)) and (hitkey <= 0)) {
hitkey = 20;
var i = 1;
Set("../../playerpanel:infotext", "All ships in this system ordered to explore the galaxy...");
while (i <= _root.xArray0) {
if (_root.shipsgovt[i] == 16) {
i2 = 1;
while (_root.myfleet[((i2 - 1) * 4) + 1] != undefined) {
var xloc = getProperty("../../" add _root.otherships[i], _x);
var yloc = getProperty("../../" add _root.otherships[i], _y);
if (((_root.myfleet[((i2 - 1) * 4) + 2] == eval (("../../" add _root.otherships[i]) add ".mytype")) and (_root.myfleet[((i2 - 1) * 4) + 3] == eval (("../../" add _root.otherships[i]) add ".myname"))) and (_root.myfleet[((i2 - 1) * 4) + 1] == _root.myplanet)) {
_root.myfleet[((i2 - 1) * 4) + 4] = 2;
}
i2++;
}
}
i++;
}
}
if ((Key.isDown(56) or Key.isDown(104)) and (hitkey <= 0)) {
hitkey = 20;
var i = 1;
Set("../../playerpanel:infotext", "All ships in this system ordered to conduct trade missions...");
while (i <= _root.xArray0) {
if (_root.shipsgovt[i] == 16) {
i2 = 1;
while (_root.myfleet[((i2 - 1) * 4) + 1] != undefined) {
var xloc = getProperty("../../" add _root.otherships[i], _x);
var yloc = getProperty("../../" add _root.otherships[i], _y);
if (((_root.myfleet[((i2 - 1) * 4) + 2] == eval (("../../" add _root.otherships[i]) add ".mytype")) and (_root.myfleet[((i2 - 1) * 4) + 3] == eval (("../../" add _root.otherships[i]) add ".myname"))) and (_root.myfleet[((i2 - 1) * 4) + 1] == _root.myplanet)) {
_root.myfleet[((i2 - 1) * 4) + 4] = 1;
}
i2++;
}
}
i++;
}
}
if (hitkey > 0) {
hitkey = hitkey - 1;
}
rotation = getProperty("../../player", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (_root.speed < 0) {
r = 20 - Math.abs(_root.speed);
if (r < 3) {
r = 3;
}
if ((random(r) == 1) and (_root.planetArray[17] == 1)) {
_root.makeasteroid();
}
}
if (_root.speed != 0) {
_root.locx = (Math.sin(rotation * (Math.PI/180)) * _root.speed) / _root.zoom;
_root.locy = ((Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1) / _root.zoom;
}
if (_root.weapon1timer > 0) {
_root.weapon1timer = _root.weapon1timer - 1;
setProperty("../../playerpanel:weapon1bar", _xscale , (_root.weapon1timer / _root.totweapon1timer) * 100);
}
if (_root.weapon2timer > 0) {
_root.weapon2timer = _root.weapon2timer - 1;
setProperty("../../playerpanel:weapon2bar", _xscale , (_root.weapon2timer / _root.totweapon2timer) * 100);
}
if (_root.weapon3timer > 0) {
_root.weapon3timer = _root.weapon3timer - 1;
setProperty("../../playerpanel:weapon3bar", _xscale , (_root.weapon3timer / _root.totweapon3timer) * 100);
}
if (_root.level > 9500) {
_root.level = 500;
}
if (repair == 1) {
_root.myhull = _root.myhull + 5;
_root.myshields = _root.myshields + 5;
if (_root.myhull >= _root.tothull) {
_root.myhull = _root.tothull;
}
if (_root.myshields >= _root.totshields) {
_root.myshields = _root.totshields;
}
if ((_root.myhull >= _root.tothull) and (_root.myshields >= _root.totshields)) {
removeMovieClip("../../repairmodule");
repair = undefined;
Set("../../playerpanel:infotext", "Repairs complete...");
}
_root.updatemenu();
}
if ((cloak == 1) and (_alpha >= 50)) {
_alpha = (_alpha - 5);
}
if ((cloak == 0) and (_alpha < 100)) {
_alpha = (_alpha + 5);
}
if (_parent.hit > 0) {
_parent.mystrength = _parent.mystrength * -1;
if (_root.myshields > 0) {
_root.myshields = _root.myshields - _parent.mystrength;
Set("../shields:fade", 1);
} else if (_root.myshields == 0) {
_root.myhull = _root.myhull - _parent.mystrength;
}
if (_root.myshields < 0) {
_root.myhull = _root.myhull - (_root.myshields * -1);
_root.myshields = 0;
}
if (_root.myhull < 0) {
_root.myhull = 0;
}
_root.updatebars();
_parent.hit = 0;
_parent.mystrength = 0;
_parent.hit = 0;
}
}
Instance of Symbol 316 MovieClip "shields" in Symbol 331 MovieClip [player] Frame 1
onClipEvent (load) {
fade = 0;
}
onClipEvent (enterFrame) {
if (fade == 1) {
_alpha = 50;
fade = 2;
}
if (fade == 2) {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
fade = 0;
}
}
}
Symbol 331 MovieClip [player] Frame 2
gotoAndPlay(warp);
Symbol 331 MovieClip [player] Frame 3
if (warp == undefined) {
warp = 1;
}
Set("playershiptype:mytype", mytype);
Symbol 331 MovieClip [player] Frame 20
_root.atwarp();
warp = 1;
removeMovieClip("");
Instance of Symbol 315 MovieClip "playershiptype" in Symbol 331 MovieClip [player] Frame 21
onClipEvent (load) {
_root.weapon1timer = 0;
_root.weapon2timer = 0;
_root.weapon3timer = 0;
}
on (release) {
Set("../../playerpanel:shiptype", mytype);
Set("../../playerpanel:mymenu", 1);
_root.updatemenu();
}
onClipEvent (enterFrame) {
rotation = getProperty("../", _rotation);
if (Key.isDown(38) and ((_root.speed * -1) < _root.totspeed)) {
_root.speed = _root.speed - 2;
if (_root.speed < -25) {
_root.speed = _root.speed - 5;
}
if (_root.speed < -100) {
_root.speed = -100;
}
}
if (Key.isDown(40)) {
_root.speed = _root.speed + 1;
if (_root.speed < -25) {
_root.speed = _root.speed + 5;
}
if (_root.speed > 0) {
_root.speed = 0;
}
}
if (Key.isDown(37)) {
if (_root.speed < -25) {
setProperty("../", _rotation , rotation - (_root.totturn / 2));
}
if (_root.speed >= -25) {
setProperty("../", _rotation , rotation - _root.totturn);
}
}
if (Key.isDown(39)) {
if (_root.speed < -25) {
setProperty("../", _rotation , rotation + (_root.totturn / 2));
}
if (_root.speed >= -25) {
setProperty("../", _rotation , rotation + _root.totturn);
}
}
if (((Key.isDown(32) and (_root.weapon1timer <= 0)) and (_root.speed >= -25)) and (_root.myselect != undefined)) {
w = Number(_root.itemdescArray[((mytype - 1) * 13) + 11]);
_root.weapontype = _root.weapontypes[w];
if (w <= 5) {
_root.firephaser();
}
if (w >= 6) {
_root.firedisruptor();
}
}
if ((Key.isDown(20) and (_root.weapon2timer <= 0)) and (_root.myselect != undefined)) {
_root.firetorpedo();
}
if (hit > 0) {
if (_root.myshields > 0) {
_root.myshields = _root.myshields - hit;
} else if (_root.myshields == 0) {
_root.myhull = _root.myhull - hit;
}
if (_root.myshields < 0) {
_root.myshields = 0;
}
if (_root.myhull < 0) {
_root.myhull = 0;
_root.dead();
}
_root.updatebars();
hit = 0;
Set("../:hit", 0);
}
if (Key.isDown(13)) {
if (Key.isDown(16)) {
_root.deselectobject();
} else {
xArray = 0;
xtarget = 0;
while (_root.otherships[xArray] != undefined) {
xArray++;
x1 = getProperty("../../" add _root.otherships[xtarget], _x);
y1 = getProperty("../../" add _root.otherships[xtarget], _y);
x2 = getProperty("../../" add _root.otherships[xArray], _x);
y2 = getProperty("../../" add _root.otherships[xArray], _y);
if ((Math.abs(x2 - 298) < Math.abs(x1 - 298)) and (Math.abs(y2 - 195) < Math.abs(y1 - 195))) {
xtarget = xArray;
}
}
_root.deselectobject();
_root.gamedata2 = xtarget;
_root.myselect = _root.otherships[xtarget];
_root.selectobject();
Set(("../../" add _root.otherships[xtarget]) add ":myselect", 1);
Set("../../playerpanel:infotext", "Closest ship selected. Press Shift-Enter to deselect...");
}
}
rotation = getProperty("../../player", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (_root.speed < 0) {
r = 40 - Math.abs(_root.speed);
if (r < 3) {
r = 3;
}
if ((random(r) == 1) and (_root.planetArray[17] == 1)) {
_root.makeasteroid();
}
}
if (_root.speed != 0) {
_root.locx = Math.sin(rotation * (Math.PI/180)) * _root.speed;
_root.locy = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
}
if (_root.weapon1timer > 0) {
_root.weapon1timer = _root.weapon1timer - 1;
setProperty("../../playerpanel:weapon1bar", _xscale , (_root.weapon1timer / _root.totweapon1timer) * 100);
}
if (_root.weapon2timer > 0) {
_root.weapon2timer = _root.weapon2timer - 1;
setProperty("../../playerpanel:weapon2bar", _xscale , (_root.weapon2timer / _root.totweapon2timer) * 100);
}
if (_root.weapon3timer > 0) {
_root.weapon3timer = _root.weapon3timer - 1;
}
}
Symbol 331 MovieClip [player] Frame 27
removeMovieClip("");
_root.dead();
Symbol 343 Button
on (release) {
removeMovieClip("");
}
Symbol 360 MovieClip Frame 1
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 2
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 3
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 4
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 5
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 6
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 7
gotoAndPlay(myrace);
Symbol 360 MovieClip Frame 8
gotoAndPlay(myrace);
Symbol 361 Button
on (release) {
if (sell == "Sell Goods") {
i = 1;
while (i <= 10) {
if ((sellgoods == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
x = 0;
while (_root.cargoArray[((i - 1) * 4) + 1] > 0) {
x++;
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + (Number(sellcost) * x);
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", (("You sell " + x) + " tons of your ") + sellgoods);
removeMovieClip("");
}
}
}
i++;
}
_root.updatemenu();
} else if (eval (("../" add _root.myselect) add ".blamedeath") == 1) {
shiptext = "Apology not accepted. I'm going to enjoy destroying your ship.";
} else {
shiptext = "Apology accepted...do not let it happen again.";
Set(("../" add _root.myselect) add ":mytarget", "planet");
}
}
on (rollOver) {
if (sell == "Sell Goods") {
shiptext = ((((("I am in the market for up to " + selltons) + " tons of ") + sellgoods) + ". If you have some I'll gladly buy them for ") + sellcost) + " bars per ton.";
} else {
shiptext = "What do you want?";
}
}
on (rollOut) {
if (sell == "Sell Goods") {
shiptext = "Are we done here? I am on a busy schedule.";
}
}
Symbol 362 Button
on (release) {
if (buy == "Buy Goods") {
if ((Number(_root.mylatinum) >= buycost) and (_root.mycargo < _root.totcargo)) {
counter = 1;
while (counter <= buytons) {
i = 1;
x = 0;
while (i <= 10) {
if (buygoods == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(buycost);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = buygoods;
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(buycost);
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
counter++;
}
Set("../playerpanel:infotext", "Cargo transfer complete...");
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
}
on (rollOver) {
if (buy == "Buy Goods") {
shiptext = ((((("I have " + buytons) + " tons of ") + buygoods) + " if you're interested. Price is firm at ") + buycost) + " per ton.";
}
}
on (rollOut) {
if (buy == "Buy Goods") {
shiptext = "Are we done here? I am on a busy schedule.";
}
}
Symbol 377 Button
on (release) {
removeMovieClip("");
}
Symbol 396 MovieClip Frame 1
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 3
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 4
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 5
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 6
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 7
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 8
gotoAndPlay(mytype);
Symbol 396 MovieClip Frame 9
gotoAndPlay(mytype);
Symbol 397 Button
on (release) {
if (_root.planetPops[_root.myplanet] > 0) {
mytype = 11;
} else {
itemdesc = "There is no one to sell anything to here.";
}
}
Symbol 576 MovieClip Frame 1
if (mytype == undefined) {
mytype = 100;
}
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 3
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 4
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 5
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 6
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 7
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 8
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 9
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 10
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 11
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 12
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 13
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 14
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 15
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 16
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 17
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 18
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 19
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 20
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 21
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 22
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 23
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 24
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 25
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 26
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 27
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 28
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 29
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 30
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 31
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 32
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 33
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 34
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 35
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 36
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 37
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 38
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 39
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 40
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 41
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 42
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 43
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 44
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 45
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 46
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 47
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 48
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 49
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 50
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 51
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 52
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 53
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 54
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 55
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 56
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 57
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 58
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 59
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 60
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 61
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 62
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 63
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 64
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 65
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 66
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 67
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 68
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 69
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 70
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 71
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 72
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 73
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 74
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 75
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 76
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 77
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 78
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 79
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 80
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 81
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 82
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 83
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 84
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 85
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 86
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 87
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 88
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 89
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 90
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 91
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 92
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 93
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 94
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 95
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 96
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 97
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 98
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 99
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 100
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 101
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 102
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 103
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 104
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 105
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 106
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 107
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 108
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 109
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 110
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 111
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 112
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 113
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 114
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 115
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 116
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 117
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 118
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 119
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 120
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 121
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 122
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 123
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 124
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 125
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 126
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 127
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 128
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 129
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 130
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 131
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 132
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 133
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 134
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 135
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 136
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 137
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 138
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 139
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 140
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 141
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 142
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 143
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 144
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 145
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 146
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 147
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 148
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 149
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 150
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 151
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 152
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 153
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 154
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 155
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 156
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 157
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 158
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 159
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 160
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 161
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 162
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 163
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 164
gotoAndPlay(mytype);
Symbol 576 MovieClip Frame 165
gotoAndPlay(mytype);
Symbol 577 Button
on (release) {
i = 1;
while (i < 99) {
if (((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (tradetons != undefined)) and (_root.mycargo < _root.totcargo)) {
if ((_root.totcargo - _root.mycargo) < tradetons) {
tradetons = _root.totcargo - _root.mycargo;
}
_root.rep[1] = Number(_root.rep[1]) + 1;
_root.cargoArray[((i - 1) * 4) + 1] = tradetons;
_root.cargoArray[((i - 1) * 4) + 2] = tradegoods;
_root.cargoArray[((i - 1) * 4) + 3] = tradeplanet;
tradetons = undefined;
Set("../planet:tradetons", undefined);
itemdesc = ((_root.cargoArray[((i - 1) * 4) + 1] + " tons of this cargo has been loaded onto your ship. Payment upon arrival will be ") + Math.floor((tradecost + hazardpay) * Number(_root.cargoArray[((i - 1) * 4) + 1]))) + ".";
_root.cargoArray[((i - 1) * 4) + 4] = Math.floor((tradecost + hazardpay) * Number(_root.cargoArray[((i - 1) * 4) + 1]));
i = 100;
if (_root.planetStrengths[tradeplanetnum] == undefined) {
x = _root.planetDataArray[tradeplanetnum - 1].split(";");
_root.planetStrengths[tradeplanetnum] = x[2];
}
}
if ((i >= 10) and (i < 100)) {
i = 100;
itemdesc = "You have no more cargo pods to place this cargo into. Dump some cargo.";
}
i++;
}
if (_root.mycargo == _root.totcargo) {
itemdesc = "You have no cargo room to accept. Dump some cargo.";
}
}
on (rollOver) {
if (_root.planetArray[5] > 0) {
itemname = (tradetons + " tons of ") + tradegoods;
itemdesc = ((("Transport this cargo to " + tradeplanet) + ". You will be paid ") + tradecost) + " bars of latinum per ton of cargo you can deliver";
if (hazardpay > 0) {
itemdesc = itemdesc + ((" + " + hazardpay) + " bars per ton in hazard pay");
}
itemdesc = itemdesc + ".";
Set("../playerpanel:infotext", "Click to accept and beam cargo aboard your ship...");
} else {
itemdesc = "There is no one to trade with here.";
}
if (tradetons == undefined) {
itemname = "";
itemdesc = "No trade offers here.";
}
}
on (rollOut) {
itemname = "";
itemdesc = "";
Set("../playerpanel:infotext", "");
}
Symbol 578 Button
on (release) {
if (_root.planetPops[_root.myplanet] > 0) {
_root.repairship();
removeMovieClip("");
} else {
itemdesc = "There are no facilities to repair your ship here.";
}
}
on (rollOver) {
if (_root.myhull < _root.tothull) {
itemname = "Repair Yard";
x = Math.floor(_root.tothull - (_root.myhull / 2));
itemdesc = ("This facility will charge you " + x) + " bars of latinum for repairs.";
} else {
itemname = "Repair Yard";
itemdesc = "Your ship doesn't require any repairs.";
}
}
on (rollOut) {
itemdesc = "";
itemname = "";
}
Symbol 580 Button
on (release) {
_root.buyantimatter();
}
on (rollOver) {
itemname = "(Anti)Matter - 3 bars per unit";
itemdesc = "Required for warp travel. Fills your ship to capacity.";
}
on (rollOut) {
itemname = "";
itemdesc = "";
}
Symbol 582 Button
on (release) {
_root.buydeuranium();
}
on (rollOver) {
itemname = "Deuranium - 1 bar per unit";
itemdesc = "Required to build stations and starships. Sells in packages of 1000 units only.";
}
on (rollOut) {
itemname = "";
itemdesc = "";
}
Symbol 596 MovieClip Frame 1
gotoAndPlay(mytype);
Symbol 596 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 596 MovieClip Frame 3
gotoAndPlay(mytype);
Symbol 596 MovieClip Frame 4
gotoAndPlay(mytype);
Symbol 596 MovieClip Frame 5
gotoAndPlay(mytype);
Symbol 596 MovieClip Frame 6
gotoAndPlay(mytype);
Symbol 596 MovieClip Frame 7
gotoAndPlay(mytype);
Symbol 649 Button
on (release) {
removeMovieClip("");
}
Symbol 659 Button
on (release) {
_root.deselectobject();
removeMovieClip("");
}
Symbol 669 Button
on (release) {
i = 1;
while (i <= 10) {
Set(("item" add i) add ":mytype", 100);
i++;
}
i2 = 1;
i = _root.numstations + 1;
while (i <= _root.xArray0) {
if (_root.shipsgovt[i] == 16) {
Set(("item" add i2) add ":mytype", eval (("../" add _root.otherships[i]) add ".mytype"));
Set(("item" add i2) add ":shipslot", i);
i2++;
}
i++;
}
}
Symbol 670 Button
on (release) {
i = 1;
while (i <= 10) {
Set(("item" add i) add ":mytype", 100);
i++;
}
i = 1;
i2 = 1;
while (i <= 10) {
if ((((_root.mytech[i] != undefined) and (_root.mytech[i] != 0)) and (_root.mytech[i] >= 20)) and (_root.mytech[i] <= 30)) {
Set(("item" add i2) add ":mytype", Number(_root.mytech[i]) + 105);
i2++;
}
i++;
}
i = 1;
while (i <= 10) {
if (((_root.myweapons[i] != undefined) and (_root.myweapons[i] != 0)) and (_root.myweapons[i] >= 20)) {
Set(("item" add i2) add ":mytype", Number(_root.myweapons[i]) + 105);
i2++;
}
i++;
}
}
Symbol 671 Button
on (release) {
i = 1;
while (i <= 10) {
Set(("item" add i) add ":mytype", 100);
i++;
}
i = 1;
i2 = 1;
while (i <= 9) {
if ((((_root.myweapons[i] != undefined) and (_root.myweapons[i] != 0)) and (_root.myweapons[i] >= 1)) and (_root.myweapons[i] <= 19)) {
Set(("item" add i2) add ":mytype", Number(_root.myweapons[i]) + 105);
i2++;
}
i++;
}
}
Symbol 672 Button
on (release) {
i = 1;
while (i <= 10) {
Set(("item" add i) add ":mytype", 100);
i++;
}
Set("item1:mytype", 101);
Set("item2:mytype", 103);
}
Symbol 673 Button
on (release) {
mytype = 4;
}
Symbol 678 Button
on (release) {
removeMovieClip("");
}
Symbol 684 Button
on (release) {
buildstation();
}
Symbol 687 Button
on (release) {
loc = loc - 1;
if (loc < 1) {
loc = 55;
}
if (_global.mapnamesArray[loc] == undefined) {
loc = 1;
}
loctext = _global.mapnamesArray[loc];
}
Symbol 689 Button
on (release) {
loc = loc + 1;
if (loc > 55) {
loc = 1;
}
if (_global.mapnamesArray[loc] == undefined) {
loc = 1;
}
loctext = _global.mapnamesArray[loc];
}
Symbol 692 Button
on (release) {
if ((tradetons > 0) and (neg == undefined)) {
_root.expneg = _root.expneg + ((random(2) + 1) * 0.1);
_root.rep[2] = Number(_root.rep[2]) + 1;
neg = Math.floor(_root.expneg);
if (neg > 1) {
neg = 1;
}
if (random(10 - neg) == 1) {
tradecost = tradecost + Number(random(20) + 1);
cargotext = ((((((((("You skillfully negotiate a better price for this cargo run.\r\r" + tradetons) + " tons of ") + tradegoods) + newline) + newline) + "Transport this cargo to ") + tradeplanet) + ". You will be paid ") + tradecost) + " bars of latinum per ton of cargo you can deliver.";
} else {
cargotext = "You demand more latinum for the cargo run, but they just shake their heads and show you to the door. Your greed has lost you this opportunity.";
Set((("../" add myself) add ":shiptype") add ":tradetons", 0);
tradetons = 0;
}
}
neg = 1;
}
Symbol 693 Button
on (release) {
i = 1;
while (i < 99) {
if ((((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (tradetons != undefined)) and (_root.mycargo < _root.totcargo)) and (tradetons > 0)) {
if ((_root.totcargo - _root.mycargo) < tradetons) {
tradetons = _root.totcargo - _root.mycargo;
}
_root.cargoArray[((i - 1) * 4) + 1] = tradetons;
_root.cargoArray[((i - 1) * 4) + 2] = tradegoods;
_root.cargoArray[((i - 1) * 4) + 3] = tradeplanet;
tradetons = undefined;
Set("../planet:tradetons", undefined);
cargotext = ((_root.cargoArray[((i - 1) * 4) + 1] + " tons of this cargo has been loaded onto your ship. Payment upon arrival will be ") + Math.floor(tradecost * Number(_root.cargoArray[((i - 1) * 4) + 1]))) + ".";
_root.cargoArray[((i - 1) * 4) + 4] = Math.floor(tradecost * Number(_root.cargoArray[((i - 1) * 4) + 1]));
i = 100;
Set((("../" add myself) add ":shiptype") add ":tradetons", 0);
tradetons = 0;
if (_root.planetStrengths[tradeplanetnum] == undefined) {
x = _root.planetDataArray[tradeplanetnum - 1].split(";");
_root.planetStrengths[tradeplanetnum] = x[2];
}
}
if ((i >= 10) and (i < 100)) {
i = 100;
itemdesc = "You have no more cargo pods to place this cargo into. Dump some cargo.";
}
i++;
}
if (_root.mycargo == _root.totcargo) {
itemdesc = "You have no cargo room to accept. Dump some cargo.";
}
}
Symbol 698 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[1])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[2] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[1]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[2];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[1]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 699 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[2] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[1]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 700 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[3])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[4] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[3]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[4];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[3]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 701 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[4] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[3]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 702 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[5])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[6] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[5]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[6];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[5]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 703 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[6] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[5]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 704 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[7])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[8] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[7]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[8];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[7]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 705 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[8] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[7]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 706 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[9])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[10] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[9]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[10];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[9]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 707 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[10] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[9]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 708 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[11])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[12] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[11]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[12];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[11]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 709 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[12] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[11]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 710 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[13])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[14] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[13]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[14];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[13]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 711 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[14] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[13]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 712 Button
on (release) {
if ((Number(_root.mylatinum) >= Number(merchantArray[15])) and (_root.mycargo < _root.totcargo)) {
i = 1;
x = 0;
while (i <= 10) {
if (merchantArray[16] == _root.cargoArray[((i - 1) * 4) + 2]) {
_root.cargoArray[((i - 1) * 4) + 1] = _root.cargoArray[((i - 1) * 4) + 1] + 1;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[15]);
Set("../playerpanel:infotext", "You buy an additional 1 ton of this item.");
x = 1;
}
i++;
}
if (x == 0) {
i = 1;
while (i < 99) {
if ((Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) + 1;
_root.cargoArray[((i - 1) * 4) + 2] = merchantArray[16];
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
_root.mylatinum = Number(_root.mylatinum) - Number(merchantArray[15]);
Set("../playerpanel:infotext", "You place 1 ton of a new item in a cargo pod.");
i = 100;
}
if ((i >= 10) and (i < 100)) {
i = 100;
cargotext = "You have no more cargo pods to place this cargo into.";
}
i++;
}
}
_root.updatemenu();
} else {
Set("../playerpanel:infotext", "You do not have enough latinum.");
if (_root.mycargo >= _root.totcargo) {
Set("../playerpanel:infotext", "You do not have enough cargo space.");
}
}
}
Symbol 713 Button
on (release) {
i = 1;
while (i <= 10) {
if ((merchantArray[16] == _root.cargoArray[((i - 1) * 4) + 2]) and (_root.cargoArray[((i - 1) * 4) + 3] == undefined)) {
_root.cargoArray[((i - 1) * 4) + 1] = Number(_root.cargoArray[((i - 1) * 4) + 1]) - 1;
_root.mylatinum = Number(_root.mylatinum) + Number(merchantArray[15]);
Set("../playerpanel:infotext", "You have sold 1 ton of this item.");
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) == 0) {
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
Set("../playerpanel:infotext", "You sell your last ton of this item.");
}
}
i++;
}
_root.updatemenu();
}
Symbol 737 Button
on (release) {
if (mytype == 23) {
mytype = 9;
}
if (mytype == 21) {
mytype = 4;
}
}
Symbol 741 Button
on (release) {
if (((_root.mylatinum >= (Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust))) and (_root.planetGovts[_root.myplanet] != 16)) or ((_root.mydeuranium >= (Number(_root.itemdescArray[((_root.buyshiptype - 1) * 13) + 10]) / 4)) and (_root.planetGovts[_root.myplanet] == 16))) {
var i = 1;
var pop = 0;
while (i <= 51) {
if (_root.planetGovts[i] == 16) {
pop = pop + _root.planetPops[i];
}
i++;
}
var ships = 1;
var i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (_root.myfleet[((i - 1) * 4) + 1] > 0) {
ships++;
}
i++;
}
if (ships <= (10 + (pop * 10))) {
if (_root.planetGovts[_root.myplanet] == 16) {
_root.mydeuranium = Number(_root.mydeuranium) - (Number(_root.itemdescArray[((_root.buyshiptype - 1) * 13) + 10]) / 4);
} else {
_root.mylatinum = Number(_root.mylatinum) - (Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust));
}
i = _root.numstations + 1;
while (i <= 100) {
if (otherships[i] == undefined) {
_root.xArray = i;
i = 101;
}
i++;
}
i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
i++;
}
buyshipname = _root.shipnamesArray[random(219) + 1];
_root.myfleet[((i - 1) * 4) + 1] = _root.myplanet;
_root.myfleet[((i - 1) * 4) + 2] = buyshiptype;
_root.myfleet[((i - 1) * 4) + 3] = buyshipname;
_root.myfleet[((i - 1) * 4) + 4] = undefined;
_root.createalliedship(buyshiptype, buyshipname);
_root.updatemenu();
_root.shiplaunch.start();
removeMovieClip("");
} else {
Set("../commpanel:itemdesc", "You do not have a sufficient population in your empire to staff another ship.");
}
} else {
Set("../commpanel:itemdesc", "You do not have enough latinum to buy this ship.");
}
}
on (rollOver) {
if (_root.planetGovts[_root.myplanet] == 16) {
price = Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) / 4;
} else {
price = Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust);
}
}
Symbol 742 Button
on (release) {
if (((_root.mylatinum >= ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust)) - (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) + Number(_root.priceadjust)))) and (_root.planetGovts[_root.myplanet] != 16)) or ((_root.mydeuranium >= (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) / 4)) and (_root.planetGovts[_root.myplanet] == 16))) {
if (_root.planetGovts[_root.myplanet] != 16) {
var x = ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust)) - (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) + Number(_root.priceadjust)));
if (x <= 0) {
x = 0;
}
_root.mylatinum = Number(_root.mylatinum) - Number(x);
}
if (_root.planetGovts[_root.myplanet] == 16) {
var x = ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) / 4) - (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) / 4));
if (x <= 0) {
x = 0;
}
_root.mydeuranium = Number(_root.mydeuranium) - Number(x);
}
_root.playership = buyshiptype;
_root.myantimatter = 10;
_root.myenergy = undefined;
_root.myweapons = undefined;
_root.weapon1 = undefined;
_root.weapon2 = undefined;
_root.weapon3 = undefined;
_root.myshields = undefined;
_root.loadplayer();
_root.shiplaunch.start();
Set("../playerpanel:infotext", "You have just made a purchase...");
removeMovieClip("");
} else {
Set("../../commpanel:itemdesc", "You do not have enough latinum to buy this ship.");
}
}
on (rollOver) {
if (_root.planetGovts[_root.myplanet] == 16) {
price = ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) / 4) + newline) + "-";
price = price + ((((Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) / 4) + "(trade)") + newline) + "=");
var x = ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) / 4) - (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) / 4));
if (x < 0) {
x = 0;
}
price = price + x;
} else {
price = ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust)) + newline) + "-";
price = price + ((((Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) + Number(_root.priceadjust)) + "(trade)") + newline) + "=");
var x = ((Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 10]) + Number(_root.priceadjust)) - (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 10]) + Number(_root.priceadjust)));
if (x < 0) {
x = 0;
}
price = price + x;
}
}
on (rollOut) {
price = "";
}
Symbol 746 Button
on (release) {
if (_root.myfleet[(i * 4) + 1] != undefined) {
i = i + 1;
while (_root.myfleet[((i - 1) * 4) + 1] == 0) {
i = i + 1;
}
}
displayship();
}
Symbol 749 Button
on (release) {
if (i > 1) {
if (_root.myfleet[((i - 1) * 4) + 1] != 0) {
i = i - 1;
while (_root.myfleet[((i - 1) * 4) + 1] == 0) {
i = i - 1;
}
}
}
displayship();
}
Symbol 751 Button
on (release) {
removeMovieClip("");
}
Symbol 752 Button
on (release) {
loc = loc - 1;
if (loc < 1) {
loc = 50;
}
loctext = _global.mapnamesArray[loc];
}
Symbol 754 Button
on (release) {
loc = loc + 1;
if (loc > 50) {
loc = 1;
}
loctext = _global.mapnamesArray[loc];
}
Symbol 758 Button
on (release) {
_root.myfleet[((i - 1) * 4) + 1] = loc;
displayship();
}
on (rollOver) {
Set("../playerpanel:infotext", "Send ship to designated system...");
}
on (rollOut) {
Set("../playerpanel:infotext", "");
}
Symbol 759 Button
on (release) {
_root.myfleet[((i - 1) * 4) + 1] = 0;
displayship();
}
on (rollOver) {
Set("../playerpanel:infotext", "Decommission this ship...CANNOT BE UNDONE!");
}
on (rollOut) {
Set("../playerpanel:infotext", "");
}
Symbol 760 Button
on (release) {
_root.myfleet[((i - 1) * 4) + 4] = 1;
displayship();
}
on (rollOver) {
Set("../playerpanel:infotext", "Order to conduct trading missions...");
}
on (rollOut) {
Set("../playerpanel:infotext", "");
}
Symbol 761 Button
on (release) {
_root.myfleet[((i - 1) * 4) + 4] = 2;
displayship();
}
on (rollOver) {
Set("../playerpanel:infotext", "Order to patrol the galaxy...");
}
on (rollOut) {
Set("../playerpanel:infotext", "");
}
Symbol 763 Button
on (release) {
if (cheattext == "maxlat") {
_root.mylatinum = 999999 /* 0x0F423F */;
}
if (cheattext == "inclat") {
_root.mylatinum = _root.mylatinum + 1000;
}
if (cheattext == "maxdur") {
_root.mydeuranium = 999999 /* 0x0F423F */;
}
if (cheattext == "imgood") {
_root.localPrestige[_root.myplanet] = 100;
}
if (cheattext == "imbad") {
_root.localPrestige[_root.myplanet] = -100;
}
if (cheattext == "youhateme") {
var i = 1;
while (i <= 51) {
_root.localPrestige[i] = -100;
i++;
}
}
if (cheattext == "ilovetocheat") {
_root.localPrestige[_root.myplanet] = 100;
_root.expnav = 1000;
_root.expat = 1000;
_root.expeng = 1000;
_root.exptac = 1000;
_root.mylatinum = 999999 /* 0x0F423F */;
_root.mydeuranium = 999999 /* 0x0F423F */;
}
if (cheattext == "getinthebooth") {
var i = 1;
while (i <= 50) {
_root.planetGovts[i] = 1;
i++;
}
}
if (cheattext == "youloveme") {
var i = 1;
while (i <= 51) {
_root.localPrestige[i] = 100;
i++;
}
}
if (cheattext == "urmine") {
_root.planetGovts[_root.myplanet] = 16;
}
if (cheattext == "allknowing") {
_root.expnav = 1000;
_root.expat = 1000;
_root.expeng = 1000;
_root.exptac = 1000;
}
if (cheattext == "byebyeklingons") {
var i = 1;
while (i <= 50) {
if (_root.planetGovts[i] == 2) {
_root.planetgovtArray[i] = 6;
_root.planetGovts[i] = 0;
_root.localprestige[i] = 0;
}
i++;
}
}
if (cheattext == "everyonelovesme") {
var i = 1;
while (i <= 50) {
_root.localprestige[i] = 110;
i++;
}
}
if (cheattext == "earthownsall") {
var i = 1;
while (i <= 50) {
_root.planetgovtArray[i] = 2;
_root.planetGovts[i] = 1;
_root.localprestige[i] = 110;
i++;
}
_root.planetgovtArray[17] = 6;
_root.planetGovts[17] = 0;
}
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 1
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if ((mytype == 2) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 2
Set("shippic:mytype", shiptype);
Set("racepic:myrace", myrace);
if ((mytype == 2) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 3
gotoAndPlay(mytype);
if ((mytype == 2) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 4
function buyitem(buytype) {
if (buytype <= 69) {
if (_root.localprestige[_root.myplanet] >= (Number(_root.itemdescArray[((buytype - 1) * 13) + 3]) * 15)) {
buyshiptype = buytype;
mytype = 21;
} else {
mytype = 13;
event = "You inquire about this item, but several security guards rush in and stop the transaction. Apparently the government does not want you buying this.";
}
}
if (buytype >= 70) {
i = 1;
while (i <= 9) {
if (_root.mybuild[i] == undefined) {
_root.mybuild[i] = buytype;
_root.updatemenu();
removeMovieClip("");
return;
}
i++;
}
}
}
function rolloveritem(buytype) {
itemname = ((_root.itemdescArray[((buytype - 1) * 13) + 1] + " - ") + (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) + Number(_root.priceadjust))) + " bars";
itemdesc = _root.itemdescArray[((buytype - 1) * 13) + 2];
}
Set("surfacetype:mytype", _root.planetArray[4]);
Set("item1:mytype", _root.planetArray[10]);
Set("item2:mytype", _root.planetArray[11]);
Set("item3:mytype", _root.planetArray[12]);
Set("item4:mytype", _root.planetArray[13]);
Set("item5:mytype", _root.planetArray[14]);
Set("item6:mytype", _root.planetArray[15]);
govttype = _root.govtArray[_root.planetGovts[_root.myplanet]];
commname = _root.planetArray[0];
commtext = _root.planetArray[7];
population = ("Population: " + _root.planetPops[_root.myplanet]) + " bil";
strength = "Strength: " + _root.planetStrengths[_root.myplanet];
x = getProperty("../planet", _x);
y = getProperty("../planet", _y);
if ((((x < -50) or (x > 700)) or (y < -50)) or (y > 450)) {
removeMovieClip("");
}
if ((mytype == 4) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
if (Key.isDown(82)) {
if (_root.planetPops[_root.myplanet] > 0) {
_root.repairship();
removeMovieClip("");
} else {
itemdesc = "There are no facilities to repair your ship here.";
}
}
if (Key.isDown(65)) {
_root.buyantimatter();
}
if (Key.isDown(68)) {
_root.buydeuranium();
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Instance of Symbol 576 MovieClip "item1" in Symbol 766 MovieClip [commpanel] Frame 4
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item2" in Symbol 766 MovieClip [commpanel] Frame 4
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item4" in Symbol 766 MovieClip [commpanel] Frame 4
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item3" in Symbol 766 MovieClip [commpanel] Frame 4
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item5" in Symbol 766 MovieClip [commpanel] Frame 4
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item6" in Symbol 766 MovieClip [commpanel] Frame 4
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Symbol 766 MovieClip [commpanel] Frame 5
gotoAndPlay(mytype);
if ((mytype == 4) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 6
gotoAndPlay(mytype);
if ((mytype == 4) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 7
function systeminfo(system) {
x1 = getProperty("planet" add system, _x);
y1 = getProperty("planet" add system, _y);
x2 = getProperty("selected", _x);
y2 = getProperty("selected", _y);
if ((x1 == x2) and (y1 == y2)) {
disttext = "You are currently in this system.";
} else {
_root.dist = (Math.abs(x1 - x2) + Math.abs(y1 - y2)) / _root.maxwarp;
disttext = ("It will take you " + _root.dist) + " days to reach this destination.";
}
if (_root.planetStrengths[system] == undefined) {
disttext = disttext + " You have not visited this system, no data is on file.";
} else {
disttext = disttext + (((((" Government: " + _root.govtArray[_root.planetGovts[system]]) + ", Population: ") + _root.planetPops[system]) + " billion, Strength: ") + _root.planetStrengths[system]);
if (_root.planetgovtarray[system] == 3) {
disttext = disttext + ". You currently own this system.";
} else if (_root.localPrestige[system] >= 100) {
disttext = disttext + ". You have an Allied Treaty with this system.";
} else if (_root.localPrestige[system] <= 0) {
disttext = disttext + ". You have an Declaration of War against this system.";
} else {
disttext = disttext + ". This system considers you a neutral party.";
}
}
maptext = disttext;
}
function gotosystem(system) {
x1 = getProperty("planet" add system, _x);
y1 = getProperty("planet" add system, _y);
x2 = getProperty("selected", _x);
y2 = getProperty("selected", _y);
if ((x1 != x2) and (y1 != y2)) {
_root.planetclick = system;
_root.mapclick();
} else {
maptext = "NAVIGATIONAL ERROR: You are already in this system...";
}
}
function currentinfo() {
maptext = ("You are currently in the " + _root.planetArray[0]) + " system.";
}
function locateships() {
i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (_root.myfleet[((i - 1) * 4) + 1] > 0) {
attachMovie("shipblip", "shipblip" add _root.myfleet[((i - 1) * 4) + 1], _root.level);
setProperty("shipblip" add _root.myfleet[((i - 1) * 4) + 1], _x , getProperty("planet" add _root.myfleet[((i - 1) * 4) + 1], _x));
setProperty("shipblip" add _root.myfleet[((i - 1) * 4) + 1], _y , getProperty("planet" add _root.myfleet[((i - 1) * 4) + 1], _y));
}
i++;
_root.level++;
}
}
if ((mytype == 7) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
if ((_xscale == 100) and (x == undefined)) {
x = 1;
locateships();
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Instance of Symbol 588 MovieClip "selected" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (load) {
fade = 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 20);
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 50) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 100) {
fade = 1;
}
}
_x = getProperty("../planet" add _root.myplanet, _x);
_y = getProperty("../planet" add _root.myplanet, _y);
}
Instance of Symbol 596 MovieClip "planet37" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[37];
}
on (release) {
_parent.gotosystem(37);
}
on (rollOver) {
_parent.systeminfo(37);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet36" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[36];
}
on (release) {
_parent.gotosystem(36);
}
on (rollOver) {
_parent.systeminfo(36);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet35" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[35];
}
on (release) {
_parent.gotosystem(35);
}
on (rollOver) {
_parent.systeminfo(35);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet39" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[39];
}
on (release) {
_parent.gotosystem(39);
}
on (rollOver) {
_parent.systeminfo(39);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet38" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[38];
}
on (release) {
_parent.gotosystem(38);
}
on (rollOver) {
_parent.systeminfo(38);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet42" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[42];
}
on (release) {
_parent.gotosystem(42);
}
on (rollOver) {
_parent.systeminfo(42);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet44" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[44];
}
on (release) {
_parent.gotosystem(44);
}
on (rollOver) {
_parent.systeminfo(44);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet43" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[43];
}
on (release) {
_parent.gotosystem(43);
}
on (rollOver) {
_parent.systeminfo(43);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet45" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[45];
}
on (release) {
_parent.gotosystem(45);
}
on (rollOver) {
_parent.systeminfo(45);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet46" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[46];
}
on (release) {
_parent.gotosystem(46);
}
on (rollOver) {
_parent.systeminfo(46);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet40" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[40];
}
on (release) {
_parent.gotosystem(40);
}
on (rollOver) {
_parent.systeminfo(40);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet21" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[21];
}
on (release) {
_parent.gotosystem(21);
}
on (rollOver) {
_parent.systeminfo(21);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet47" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[47];
}
on (release) {
_parent.gotosystem(47);
}
on (rollOver) {
_parent.systeminfo(47);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet48" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[48];
}
on (release) {
_parent.gotosystem(48);
}
on (rollOver) {
_parent.systeminfo(48);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet49" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[49];
}
on (release) {
_parent.gotosystem(49);
}
on (rollOver) {
_parent.systeminfo(49);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet50" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[50];
}
on (release) {
_parent.gotosystem(50);
}
on (rollOver) {
_parent.systeminfo(50);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet41" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[41];
}
on (release) {
_parent.gotosystem(41);
}
on (rollOver) {
_parent.systeminfo(41);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet22" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[22];
}
on (release) {
_parent.gotosystem(22);
}
on (rollOver) {
_parent.systeminfo(22);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet10" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[10];
}
on (release) {
_parent.gotosystem(10);
}
on (rollOver) {
_parent.systeminfo(10);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet23" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[23];
}
on (release) {
_parent.gotosystem(23);
}
on (rollOver) {
_parent.systeminfo(23);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet11" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[11];
}
on (release) {
_parent.gotosystem(11);
}
on (rollOver) {
_parent.systeminfo(11);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet9" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[9];
}
on (release) {
_parent.gotosystem(9);
}
on (rollOver) {
_parent.systeminfo(9);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet8" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[8];
}
on (release) {
_parent.gotosystem(8);
}
on (rollOver) {
_parent.systeminfo(8);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet2" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[2];
}
on (release) {
_parent.gotosystem(2);
}
on (rollOver) {
_parent.systeminfo(2);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet7" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[7];
}
on (release) {
_parent.gotosystem(7);
}
on (rollOver) {
_parent.systeminfo(7);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet1" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[1];
}
on (release) {
_parent.gotosystem(1);
}
on (rollOver) {
_parent.systeminfo(1);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet4" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[4];
}
on (release) {
_parent.gotosystem(4);
}
on (rollOver) {
_parent.systeminfo(4);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet5" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[5];
}
on (release) {
_parent.gotosystem(5);
}
on (rollOver) {
_parent.systeminfo(5);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet3" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[3];
}
on (release) {
_parent.gotosystem(3);
}
on (rollOver) {
_parent.systeminfo(3);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet12" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[12];
}
on (release) {
_parent.gotosystem(12);
}
on (rollOver) {
_parent.systeminfo(12);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet25" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[25];
}
on (release) {
_parent.gotosystem(25);
}
on (rollOver) {
_parent.systeminfo(25);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet24" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[24];
}
on (release) {
_parent.gotosystem(24);
}
on (rollOver) {
_parent.systeminfo(24);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet26" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[26];
}
on (release) {
_parent.gotosystem(26);
}
on (rollOver) {
_parent.systeminfo(26);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet27" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[27];
}
on (release) {
_parent.gotosystem(27);
}
on (rollOver) {
_parent.systeminfo(27);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet28" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[28];
}
on (release) {
_parent.gotosystem(28);
}
on (rollOver) {
_parent.systeminfo(28);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet13" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[13];
}
on (release) {
_parent.gotosystem(13);
}
on (rollOver) {
_parent.systeminfo(13);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet30" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[30];
}
on (release) {
_parent.gotosystem(30);
}
on (rollOver) {
_parent.systeminfo(30);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet14" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[14];
}
on (release) {
_parent.gotosystem(14);
}
on (rollOver) {
_parent.systeminfo(14);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet15" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[15];
}
on (release) {
_parent.gotosystem(15);
}
on (rollOver) {
_parent.systeminfo(15);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet16" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[16];
}
on (release) {
_parent.gotosystem(16);
}
on (rollOver) {
_parent.systeminfo(16);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet31" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[31];
}
on (release) {
_parent.gotosystem(31);
}
on (rollOver) {
_parent.systeminfo(31);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet29" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[29];
}
on (release) {
_parent.gotosystem(29);
}
on (rollOver) {
_parent.systeminfo(29);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet32" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[32];
}
on (release) {
_parent.gotosystem(32);
}
on (rollOver) {
_parent.systeminfo(32);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet33" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[33];
}
on (release) {
_parent.gotosystem(33);
}
on (rollOver) {
_parent.systeminfo(33);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet34" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[34];
}
on (release) {
_parent.gotosystem(34);
}
on (rollOver) {
_parent.systeminfo(34);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet6" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[6];
}
on (release) {
_parent.gotosystem(6);
}
on (rollOver) {
_parent.systeminfo(6);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet17" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[17];
}
on (release) {
_parent.gotosystem(17);
}
on (rollOver) {
_parent.systeminfo(17);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet18" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[18];
}
on (release) {
_parent.gotosystem(18);
}
on (rollOver) {
_parent.systeminfo(18);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet19" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[19];
}
on (release) {
_parent.gotosystem(19);
}
on (rollOver) {
_parent.systeminfo(19);
}
on (rollOut) {
_parent.currentinfo();
}
Instance of Symbol 596 MovieClip "planet20" in Symbol 766 MovieClip [commpanel] Frame 7
onClipEvent (enterFrame) {
mytype = _root.planetgovtArray[20];
}
on (release) {
_parent.gotosystem(20);
}
on (rollOver) {
_parent.systeminfo(20);
}
on (rollOut) {
_parent.currentinfo();
}
Symbol 766 MovieClip [commpanel] Frame 8
gotoAndPlay(mytype);
if ((mytype == 7) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 9
function buyitem(buytype) {
if (buytype == 104) {
mytype = 17;
}
if (buytype == 105) {
mytype = 19;
}
if (buytype <= 69) {
if (_root.localprestige[_root.myplanet] >= (Number(_root.itemdescArray[((buytype - 1) * 13) + 3]) * 15)) {
buyshiptype = buytype;
mytype = 23;
} else {
mytype = 13;
event = "You inquire about this item, but several security guards rush in and stop the transaction. Apparently the government does not want you buying this.";
}
}
if ((buytype >= 70) and (buytype < 100)) {
i = 1;
while (i <= 9) {
if ((_root.mybuild[i] == undefined) and (_root.mylatinum >= (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) + Number(_root.priceadjust)))) {
_root.mybuild[i] = buytype;
_root.mylatinum = Number(_root.mylatinum) - (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) + Number(_root.priceadjust));
_root.updatemenu();
Set("../playerpanel:infotext", "You have just purchased a station plan...");
removeMovieClip("");
break;
}
i++;
}
}
if (buytype >= 106) {
if (Number(_root.itemdescArray[((_root.playership - 1) * 13) + 3] >= Number(_root.weaponstats[(((buytype - 105) - 1) * 7) + 3]))) {
if (((_root.planetGovts[_root.myplanet] != 16) and (_root.mylatinum >= (Number(_root.weaponstats[(((buytype - 105) - 1) * 7) + 7]) + Number(_root.priceadjust / 2)))) or ((_root.planetGovts[_root.myplanet] == 16) and (_root.mydeuranium >= (Number(_root.weaponstats[(((buytype - 105) - 1) * 7) + 7]) / 4)))) {
if (((buytype == 125) or (buytype == 126)) or (buytype > 135)) {
var c = -9;
while (c <= 0) {
if (_root.mytech[c + 10] == (buytype - 105)) {
var c = 99;
Set("../playerpanel:infotext", "You already have this.");
itemdesc = "You already have this.";
break;
}
c++;
}
if (buytype >= 151) {
var i2 = 1;
while (i2 <= 10) {
if (((_root.mytech[i2] + 105) >= 151) and ((_root.mytech[i2] + 105) != buytype)) {
_root.mytech[i2] = undefined;
}
i2++;
}
}
if ((buytype > 135) and (buytype < 151)) {
_root.passtrain(buytype);
_root.updatemenu();
_root.mylatinum = (Number(_root.mylatinum) - Number(_root.weaponstats[(((buytype - 105) - 1) * 7) + 7])) + Number(_root.priceadjust / 2);
removeMovieClip("");
}
if ((buytype < 145) or (buytype > 150)) {
while (c <= 9) {
if (_root.mytech[c] == undefined) {
if (_root.planetGovts[_root.myplanet] == 16) {
_root.mydeuranium = Number(_root.mydeuranium) - (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) / 4);
} else {
_root.mylatinum = (Number(_root.mylatinum) - Number(_root.weaponstats[(((buytype - 105) - 1) * 7) + 7])) + Number(_root.priceadjust / 2);
}
_root.mytech[c] = buytype - 105;
_root.updatemenu();
removeMovieClip("");
break;
}
c++;
}
}
} else {
var i = 1;
while (i <= 9) {
if (_root.myweapons[i] == undefined) {
if (_root.planetGovts[_root.myplanet] == 16) {
_root.mydeuranium = Number(_root.mydeuranium) - (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) / 4);
} else {
_root.mylatinum = (Number(_root.mylatinum) - Number(_root.weaponstats[(((buytype - 105) - 1) * 7) + 7])) + Number(_root.priceadjust / 2);
}
_root.myweapons[i] = buytype - 105;
_root.updatemenu();
removeMovieClip("");
break;
}
i++;
}
}
} else {
itemdesc = "You do not have enough latinum to buy this.";
}
} else {
itemdesc = "Your ship is too small to fit this.";
}
}
}
function rolloveritem(buytype) {
if (buytype < 100) {
if (_root.planetGovts[_root.myplanet] != 16) {
itemname = ((_root.itemdescArray[((buytype - 1) * 13) + 1] + " - ") + (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) + Number(priceadjust))) + " bars";
} else {
itemname = ((_root.itemdescArray[((buytype - 1) * 13) + 1] + " - ") + (Number(_root.itemdescArray[((buytype - 1) * 13) + 10]) / 4)) + " units of deuranium";
}
itemdesc = _root.itemdescArray[((buytype - 1) * 13) + 2];
}
if (buytype >= 106) {
if (_root.planetGovts[_root.myplanet] == 16) {
itemname = ((_root.weaponstats[((buytype - 106) * 7) + 1] + " - ") + (Number(_root.weaponstats[((buytype - 106) * 7) + 7]) / 4)) + " units of deuranium";
} else {
itemname = ((_root.weaponstats[((buytype - 106) * 7) + 1] + " - ") + (Number(_root.weaponstats[((buytype - 106) * 7) + 7]) + Number(priceadjust))) + " bars";
}
itemdesc = _root.weaponstats[((buytype - 106) * 7) + 2];
}
if (buytype == 104) {
itemname = "Trade Offer";
itemdesc = "This station has a trade post offering cargo runs.";
}
if (buytype == 105) {
itemname = "Merchant";
itemdesc = "This station has merchant shops.";
}
}
Set("item1:mytype", item1);
Set("item2:mytype", item2);
Set("item3:mytype", item3);
Set("item4:mytype", item4);
Set("item5:mytype", item5);
Set("item6:mytype", item6);
Set("item1:priceadjust", priceadjust);
Set("item2:priceadjust", priceadjust);
Set("item3:priceadjust", priceadjust);
Set("item4:priceadjust", priceadjust);
Set("item5:priceadjust", priceadjust);
Set("item6:priceadjust", priceadjust);
Set("stationpic:mytype", stationpic);
if ((mytype == 9) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Instance of Symbol 576 MovieClip "item1" in Symbol 766 MovieClip [commpanel] Frame 9
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item2" in Symbol 766 MovieClip [commpanel] Frame 9
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item3" in Symbol 766 MovieClip [commpanel] Frame 9
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item4" in Symbol 766 MovieClip [commpanel] Frame 9
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item6" in Symbol 766 MovieClip [commpanel] Frame 9
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item5" in Symbol 766 MovieClip [commpanel] Frame 9
on (release) {
_parent.buyitem(mytype);
}
on (rollOver) {
_parent.rolloveritem(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Symbol 766 MovieClip [commpanel] Frame 10
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 11
function sellitem(mytype, x, shipslot) {
if (mytype < 100) {
var type = eval (("../" add _root.otherships[shipslot]) add ".mytype");
var name = eval (("../" add _root.otherships[shipslot]) add ".myname");
var i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (((_root.myfleet[((i - 1) * 4) + 1] == _root.myplanet) and (_root.myfleet[((i - 1) * 4) + 2] == type)) and (_root.myfleet[((i - 1) * 4) + 3] == name)) {
_root.myfleet[((i - 1) * 4) + 1] = 0;
_root.mylatinum = _root.mylatinum + Number(_root.itemdescArray[((mytype - 1) * 13) + 10]);
Set(("item" add x) add ":mytype", 100);
_root.shipsgovt[shipslot] = 12;
Set(("../" add _root.otherships[shipslot]) add ".mytarget", "planet");
_root.updatemenu();
}
i++;
}
}
if (mytype == 101) {
if (_root.myantimatter > 5) {
_root.mylatinum = _root.mylatinum + 5;
_root.myantimatter = _root.myantimatter - 5;
_root.updatemenu();
Set("../playerpanel:infotext", "You sell 5 units of antimatter...");
} else {
Set("../playerpanel:infotext", "You have no antimatter to sell...");
}
}
if (mytype == 103) {
if (_root.mydeuranium >= 10) {
if (Key.isDown(16)) {
Set("../playerpanel:infotext", ("You sell " + _root.mydeuranium) + " tons of deuranium...");
_root.mylatinum = _root.mylatinum + _root.mydeuranium;
_root.mydeuranium = 0;
_root.updatemenu();
} else {
_root.mylatinum = _root.mylatinum + 1;
_root.mydeuranium = _root.mydeuranium - 1;
_root.updatemenu();
Set("../playerpanel:infotext", "You sell 1 ton of deuranium...");
}
} else {
Set("../playerpanel:infotext", "You have no deuranium to sell...");
}
}
if (mytype >= 106) {
i = -9;
while (i <= 0) {
if (_root.myweapons[i + 10] == (mytype - 105)) {
_root.mylatinum = Number(_root.mylatinum) + Number(Number(_root.weaponstats[(((mytype - 105) - 1) * 7) + 7]) - Number(_root.priceadjust / 2));
_root.myweapons[i + 10] = undefined;
if ((mytype - 105) == _root.weapon1) {
_root.weapon1 = undefined;
}
if ((mytype - 105) == _root.weapon2) {
_root.weapon2 = undefined;
}
if ((mytype - 105) == _root.weapon3) {
_root.weapon3 = undefined;
}
itemname = "You have sold this...";
i = 10;
Set(("item" add x) add ":mytype", 100);
return;
}
i++;
}
}
}
function rolloversell(mytype) {
if (mytype < 100) {
itemname = ((_root.itemdescArray[((mytype - 1) * 13) + 1] + " - ") + _root.itemdescArray[((mytype - 1) * 13) + 10]) + " bars";
}
if (mytype == 101) {
itemname = "Click to sell 5 units of antimatter...";
}
if (mytype == 103) {
itemname = "Click to sell 1 unit...Shift-Click to sell all your deuranium.";
}
if (mytype >= 106) {
itemname = ((("Your " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " sells for ") + (Number(_root.weaponstats[(((mytype - 105) - 1) * 7) + 7]) - Number(_root.priceadjust / 2))) + " bars.";
}
}
if (open == undefined) {
open = 1;
Set("item1:mytype", 100);
Set("item2:mytype", 100);
Set("item3:mytype", 100);
Set("item4:mytype", 100);
Set("item5:mytype", 100);
Set("item6:mytype", 100);
Set("item7:mytype", 100);
Set("item8:mytype", 100);
Set("item9:mytype", 100);
Set("item10:mytype", 100);
}
x = getProperty("../planet", _x);
y = getProperty("../planet", _y);
if ((((x < -50) or (x > 700)) or (y < -50)) or (y > 450)) {
removeMovieClip("");
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Instance of Symbol 576 MovieClip "item1" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 1;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item2" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 2;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item3" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 3;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item4" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 4;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item5" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 5;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item10" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 10;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item9" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 9;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item8" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 8;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item7" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 7;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Instance of Symbol 576 MovieClip "item6" in Symbol 766 MovieClip [commpanel] Frame 11
on (release) {
x = 6;
_parent.sellitem(mytype, x, shipslot);
}
on (rollOver) {
_parent.rolloversell(mytype);
}
on (rollOut) {
Set("../../commpanel:itemname", "");
Set("../../commpanel:itemdesc", "");
}
Symbol 766 MovieClip [commpanel] Frame 12
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 13
if ((mytype == 13) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 14
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 15
function buildstation() {
if (_root.planetGovts[_root.myplanet] != 0) {
if (_root.mydeuranium >= (Number(_root.itemdescArray[((buildtype - 1) * 13) + 10]) / 10)) {
i = 1;
while (_root.stationdataArray[i] != undefined) {
i++;
}
_root.mydeuranium = _root.mydeuranium - (Number(_root.itemdescArray[((buildtype - 1) * 13) + 10]) / 10);
_root.stationdataArray[i + 0] = _root.myplanet;
_root.stationdataArray[i + 1] = buildtype;
_root.stationdataArray[i + 2] = Number(_root.itemdescArray[((buildtype - 1) * 13) + 3]) * -100;
_root.stationdataArray[i + 3] = getProperty("../player", _x) - getProperty("../planet", _x);
_root.stationdataArray[i + 4] = getProperty("../player", _y) - getProperty("../planet", _y);
_root.stationdataArray[i + 5] = 0;
_root.stationdataArray[i + 6] = random(360);
_root.stationdataArray[i + 7] = _root.stationdefaults[((buildtype - 70) * 7) + 2];
_root.stationdataArray[i + 8] = _root.stationdefaults[((buildtype - 70) * 7) + 3];
_root.stationdataArray[i + 9] = _root.stationdefaults[((buildtype - 70) * 7) + 4];
_root.stationdataArray[i + 10] = _root.stationdefaults[((buildtype - 70) * 7) + 5];
_root.stationdataArray[i + 11] = _root.stationdefaults[((buildtype - 70) * 7) + 6];
_root.stationdataArray[i + 12] = _root.stationdefaults[((buildtype - 70) * 7) + 7];
_root.stationdataArray[i + 13] = name;
if (buildtype == 85) {
_root.stationdataArray[i + 5] = loc;
}
_root.attachMovie("stationconstruct", "station" add _root.s, _root.xarray0);
Set(("../station" add _root.s) add ":buildtime", _root.stationdataArray[i + 2]);
_root.otherships[_root.xarray0] = "station" add _root.s;
_root.shipsgovt[_root.xarray0] = 16;
setProperty("../station" add _root.s, _x , getProperty("../player", _x));
setProperty("../station" add _root.s, _y , getProperty("../player", _y));
_root.xarray0++;
_root.s++;
if (_root.planetGovts[_root.myplanet] == 16) {
mytype = 13;
event = "Construction of your station has begun.";
} else {
mytype = 13;
var x = (2 * Number(_root.itemdescArray[((buildtype - 1) * 13) + 3]));
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] + x;
event = ("You build a station in this system for this government and they are extremely thankful. Prestige increases by " + x) + "%.";
}
} else {
Set("../playerpanel:infotext", "You do not have sufficient deuranium to build this...");
}
} else {
mytype = 13;
event = "You cannot build a station in a system that is not claimed by a government.";
}
}
if ((mytype == 15) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
if ((name == undefined) or (name == "")) {
name = (_root.stationnames[random(20)] + "-") + random(50);
if (buildtype == 85) {
setProperty("dest", _alpha , 0);
loc = 1;
loctext = _global.mapnamesArray[loc];
} else {
setProperty("dest", _alpha , 100);
}
}
Set("stationtype:mytype", buildtype);
if (Key.isDown(81)) {
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 16
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 17
gotoAndPlay(mytype);
if (Key.isDown(81)) {
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 18
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 19
merchantArray = merchantData.split(",");
i = 1;
merchanttext = "Price/ton Item";
while (i <= 8) {
merchanttext = merchanttext + ((newline + merchantArray[((i - 1) * 2) + 1]) + " ");
merchanttext = merchanttext + merchantArray[((i - 1) * 2) + 2];
i++;
}
if (Key.isDown(81)) {
removeMovieClip("");
}
stop();
Symbol 766 MovieClip [commpanel] Frame 20
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 21
itemname = _root.itemdescArray[((buyshiptype - 1) * 13) + 1];
itemdesc = ("Hull: " + _root.itemdescArray[((buyshiptype - 1) * 13) + 6]) + newline;
itemdesc = itemdesc + (("Shields: " + _root.itemdescArray[((buyshiptype - 1) * 13) + 7]) + newline);
if (Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 8]) > 25) {
itemdesc = itemdesc + "Propulsion: Warp Drive\r";
} else {
itemdesc = itemdesc + "Propulsion: Impulse Drive\r";
}
itemdesc = itemdesc + ((("Mass: " + (Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 3]) * 1500)) + " tons") + newline);
itemdesc = itemdesc + ((("Cargo Capacity: " + _root.itemdescArray[((buyshiptype - 1) * 13) + 5]) + " tons") + newline);
Set("buyshippic:mytype", buyshiptype);
x = getProperty("../planet", _x);
y = getProperty("../planet", _y);
if ((((x < -50) or (x > 700)) or (y < -50)) or (y > 450)) {
removeMovieClip("");
}
if (Key.isDown(81)) {
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 22
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 23
itemname = _root.itemdescArray[((buyshiptype - 1) * 13) + 1];
itemdesc = ("Hull: " + _root.itemdescArray[((buyshiptype - 1) * 13) + 6]) + newline;
itemdesc = itemdesc + (("Shields: " + _root.itemdescArray[((buyshiptype - 1) * 13) + 7]) + newline);
if (Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 8]) > 25) {
itemdesc = itemdesc + "Propulsion: Warp Drive\r";
} else {
itemdesc = itemdesc + "Propulsion: Impulse Drive\r";
}
itemdesc = itemdesc + ((("Mass: " + (Number(_root.itemdescArray[((buyshiptype - 1) * 13) + 3]) * 1500)) + " tons") + newline);
itemdesc = itemdesc + ((("Cargo Capacity: " + _root.itemdescArray[((buyshiptype - 1) * 13) + 5]) + " tons") + newline);
Set("buyshippic:mytype", buyshiptype);
if (Key.isDown(81)) {
removeMovieClip("");
}
Symbol 766 MovieClip [commpanel] Frame 24
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 25
function displayship() {
if ((_root.myfleet[((i - 1) * 4) + 1] != undefined) and (_root.myfleet[((i - 1) * 4) + 1] != 0)) {
Set(buyshippic add ":mytype", _root.myfleet[((i - 1) * 4) + 2]);
itemname = _global.mapnamesArray[_root.myfleet[((i - 1) * 4) + 1]];
itemdesc = ("Name: " + _root.myfleet[((i - 1) * 4) + 3]) + newline;
itemdesc = itemdesc + (("Class: " + _root.itemdescArray[((_root.myfleet[((i - 1) * 4) + 2] - 1) * 13) + 1]) + newline);
loc = _root.myfleet[((i - 1) * 4) + 1];
loctext = _global.mapnamesArray[_root.myfleet[((i - 1) * 4) + 1]];
itemdesc = itemdesc + (("Location: " + _global.mapnamesArray[_root.myfleet[((i - 1) * 4) + 1]]) + newline);
itemdesc = itemdesc + ((("Daily Maint. Cost: " + _root.itemdescArray[((_root.myfleet[((i - 1) * 4) + 2] - 1) * 13) + 3]) + " bars") + newline);
if (_root.localPrestige[_root.myfleet[((i - 1) * 4) + 1]] >= 0) {
itemdesc = itemdesc + "Status: In Friendly Territory (Green Alert); ";
} else {
itemdesc = itemdesc + "Status: In Enemy Territory (Red Alert); ";
}
if (_root.myfleet[((i - 1) * 4) + 4] == 1) {
itemdesc = itemdesc + "This ship is conducting trade missions.\r";
} else if (_root.myfleet[((i - 1) * 4) + 4] == 2) {
itemdesc = itemdesc + "This ship is patrolling the galaxy.\r";
} else {
itemdesc = itemdesc + "This ship has no orders.\r";
}
itemdesc = itemdesc + "\rComm channel open...";
} else {
itemdesc = "No ship to display...";
}
}
if ((x = undefined)) {
i = 1;
displayship();
x = 0;
}
if ((mytype == 25) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 26
gotoAndPlay(mytype);
Symbol 766 MovieClip [commpanel] Frame 27
if ((mytype == 27) and (_xscale < 100)) {
_xscale = (_xscale + 20);
_yscale = (_yscale + 20);
}
Symbol 766 MovieClip [commpanel] Frame 28
gotoAndPlay(mytype);
Symbol 767 Button
on (rollOver) {
if (../playerpanel.mymenu == 0) {
_root.comp2.start();
Set("../playerpanel:mymenu", 1);
Set("../playerpanel:cargopanel", 1);
_root.updatemenu();
}
}
on (rollOut) {
if ((((_xmouse < -160) or (_xmouse > 160)) or (_ymouse < 5)) and (../playerpanel.mymenu != 0)) {
_root.comp1.start();
Set("../playerpanel:mymenu", 0);
Set("../playerpanel:cargopanel", 1);
_root.updatemenu();
}
}
Symbol 777 Button
on (release) {
_root.openmap();
}
on (rollOver) {
infotext = "Open interstellar map...";
}
on (rollOut) {
infotext = "";
}
Symbol 778 Button
on (release) {
_root.transport();
}
on (rollOver) {
infotext = "Transport...";
}
on (rollOut) {
infotext = "";
}
Symbol 779 Button
on (release) {
_root.updatemenu();
mymenu = 2;
setProperty("weapbut1", _alpha , 0);
setProperty("weapbut2", _alpha , 75);
setProperty("weapbut3", _alpha , 75);
i = 1;
while (i <= 9) {
Set(("item" add i) add ":mytype", Number(_root.myweapons[i]) + 105);
if ((_root.myweapons[i] == undefined) or (_root.myweapons[i] == 0)) {
Set(("item" add i) add ":mytype", 100);
}
Set(("item" add i) add ":slot", 1);
i++;
}
}
on (rollOver) {
infotext = "Load weapon into slot 1...";
}
on (rollOut) {
infotext = "";
}
Symbol 780 Button
on (release) {
_root.updatemenu();
mymenu = 2;
setProperty("weapbut1", _alpha , 75);
setProperty("weapbut2", _alpha , 0);
setProperty("weapbut3", _alpha , 75);
i = 1;
while (i <= 9) {
Set(("item" add i) add ":mytype", Number(_root.myweapons[i]) + 105);
if ((_root.myweapons[i] == undefined) or (_root.myweapons[i] == 0)) {
Set(("item" add i) add ":mytype", 100);
}
Set(("item" add i) add ":slot", 2);
i++;
}
}
on (rollOver) {
infotext = "Load weapon into slot 2...";
}
on (rollOut) {
infotext = "";
}
Symbol 781 Button
on (release) {
_root.updatemenu();
mymenu = 2;
setProperty("weapbut1", _alpha , 75);
setProperty("weapbut2", _alpha , 75);
setProperty("weapbut3", _alpha , 0);
i = 1;
while (i <= 9) {
Set(("item" add i) add ":mytype", Number(_root.myweapons[i]) + 105);
if ((_root.myweapons[i] == undefined) or (_root.myweapons[i] == 0)) {
Set(("item" add i) add ":mytype", 100);
}
Set(("item" add i) add ":slot", 3);
i++;
}
}
on (rollOver) {
infotext = "Load weapon into slot 3...";
}
on (rollOut) {
infotext = "";
}
Symbol 784 Button
on (rollOver) {
infotext = ((("Cargo hold " + Math.floor(100 - getProperty("cargobar", _xscale))) + "% full with ") + (_root.totcargo - _root.mycargo)) + " tons remaining.";
}
on (rollOut) {
infotext = "";
}
Symbol 787 Button
on (release) {
_root.updatemenu();
mymenu = 2;
i = 1;
while (i <= 9) {
Set(("item" add i) add ":mytype", _root.mybuild[i]);
if (_root.mybuild[i] == undefined) {
Set(("item" add i) add ":mytype", 100);
}
i++;
}
}
on (rollOver) {
infotext = "Build a station...";
}
on (rollOut) {
infotext = "";
}
Symbol 788 Button
on (release) {
mymenu = 1;
cargopanel = 3;
_root.comp1.start();
}
on (rollOver) {
infotext = "Cargo Hold Management Panel...";
}
on (rollOut) {
infotext = "";
}
Symbol 789 Button
on (release) {
mymenu = 2;
cargopanel = 5;
_root.updatemenu();
_root.comp1.start();
}
on (rollOver) {
infotext = "Player Statistics Window...";
}
on (rollOut) {
infotext = "";
}
Symbol 790 Button
on (release) {
mymenu = 1;
_root.comp1.start();
cargopanel = 7;
}
on (rollOver) {
infotext = "Power Distribution Control Panel...";
}
on (rollOut) {
infotext = "";
}
Symbol 792 Button
on (release) {
mymenu = 2;
cargopanel = 9;
_root.comp1.start();
}
on (rollOver) {
infotext = "Fleet Control Panel...";
}
on (rollOut) {
infotext = "";
}
Symbol 794 Button
on (release) {
if (Number(_root.cargoArray[1]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[1] = 0;
_root.cargoArray[2] = "Nothing";
_root.cargoArray[3] = undefined;
}
Symbol 795 Button
on (release) {
if (Number(_root.cargoArray[4]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[5] = 0;
_root.cargoArray[6] = "Nothing";
_root.cargoArray[7] = undefined;
}
Symbol 796 Button
on (release) {
if (Number(_root.cargoArray[7]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[9] = 0;
_root.cargoArray[10] = "Nothing";
_root.cargoArray[11] = undefined;
}
Symbol 797 Button
on (release) {
if (Number(_root.cargoArray[10]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[13] = 0;
_root.cargoArray[14] = "Nothing";
_root.cargoArray[15] = undefined;
}
Symbol 798 Button
on (release) {
if (Number(_root.cargoArray[13]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[17] = 0;
_root.cargoArray[18] = "Nothing";
_root.cargoArray[19] = undefined;
}
Symbol 799 Button
on (release) {
if (Number(_root.cargoArray[16]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[21] = 0;
_root.cargoArray[22] = "Nothing";
_root.cargoArray[23] = undefined;
}
Symbol 800 Button
on (release) {
if (Number(_root.cargoArray[19]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[25] = 0;
_root.cargoArray[26] = "Nothing";
_root.cargoArray[27] = undefined;
}
Symbol 801 Button
on (release) {
if (Number(_root.cargoArray[22]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[29] = 0;
_root.cargoArray[30] = "Nothing";
_root.cargoArray[31] = undefined;
}
Symbol 802 Button
on (release) {
if (Number(_root.cargoArray[25]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[33] = 0;
_root.cargoArray[34] = "Nothing";
_root.cargoArray[35] = undefined;
}
Symbol 803 Button
on (release) {
if (Number(_root.cargoArray[28]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[37] = 0;
_root.cargoArray[38] = "Nothing";
_root.cargoArray[39] = undefined;
}
Symbol 805 Button
on (release) {
_root.updatemenu();
cargopanel = 1;
}
Symbol 807 Button
on (release) {
i = 1;
while (i <= 10) {
if (Number(_root.cargoArray[((i - 1) * 4) + 1]) != 0) {
_root.attachMovie("cargopod", "cargopod" add _root.level, _root.level);
setProperty("../cargopod" add _root.level, _x , 298);
setProperty("../cargopod" add _root.level, _y , 195);
}
_root.cargoArray[((i - 1) * 4) + 1] = 0;
_root.cargoArray[((i - 1) * 4) + 2] = "Nothing";
_root.cargoArray[((i - 1) * 4) + 3] = undefined;
i++;
}
}
Symbol 812 Button
on (rollOver) {
if (_root.cargoArray[3] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[3]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[1] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 813 Button
on (rollOver) {
if (_root.cargoArray[7] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[7]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[5] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 814 Button
on (rollOver) {
if (_root.cargoArray[11] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[11]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[9] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 815 Button
on (rollOver) {
if (_root.cargoArray[15] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[15]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[13] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 816 Button
on (rollOver) {
if (_root.cargoArray[19] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[19]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[17] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 817 Button
on (rollOver) {
if (_root.cargoArray[23] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[23]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[21] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 818 Button
on (rollOver) {
if (_root.cargoArray[27] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[27]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[25] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 819 Button
on (rollOver) {
if (_root.cargoArray[31] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[31]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[29] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 820 Button
on (rollOver) {
if (_root.cargoArray[35] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[35]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[33] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 821 Button
on (rollOver) {
if (_root.cargoArray[39] != undefined) {
infotext = ("This cargo is destined for the planet " + _root.cargoArray[39]) + ".";
} else {
infotext = "This cargo is personal assets that you currently own.";
}
if (_root.cargoArray[37] == 0) {
infotext = "";
}
}
on (rollOut) {
infotext = "";
}
Symbol 824 Button
on (release) {
_root.updatemenu();
cargopanel = 1;
mymenu = 1;
}
Symbol 829 Button
on (release) {
_root.loadcomm();
Set("../commpanel:mytype", 13);
i = 1;
dec = new Array();
while (i <= 11) {
i2 = 1;
x = 0;
while (i2 <= 50) {
if (_root.planetGovts[i2] == i) {
dec[i] = dec[i] + Number(_root.localprestige[i2]);
x++;
}
i2++;
}
dec[i] = Math.floor(dec[i] / x);
if (dec[i] >= 75) {
dec[i] = (_root.govtArray[i] + ": Allied Treaty") + newline;
}
if ((dec[i] < 75) and (dec[i] >= 0)) {
dec[i] = undefined;
}
if (dec[i] < 0) {
dec[i] = (_root.govtArray[i] + ": War Declared") + newline;
}
i++;
}
i = 1;
events = "";
while (i <= 11) {
events = events + dec[i];
i++;
}
Set("../commpanel:event", events);
}
Symbol 833 Button
on (release) {
_root.updatemenu();
cargopanel = 1;
}
Symbol 837 Button
on (release) {
_root.opsreserves = Math.floor(100 - (((_ymouse - 46) / 58) * 100));
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) > 200) {
_root.opsengines = _root.opsengines - 1;
_root.opsweapons = _root.opsweapons - 1;
_root.opsshields = _root.opsshields - 1;
}
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) < 190) {
_root.opsengines = _root.opsengines + 1;
_root.opsweapons = _root.opsweapons + 1;
_root.opsshields = _root.opsshields + 1;
}
}
Symbol 838 Button
on (release) {
_root.opsengines = Math.floor(100 - (((_ymouse - 46) / 58) * 100));
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) > 200) {
_root.opsreserves = _root.opsreserves - 1;
_root.opsweapons = _root.opsweapons - 1;
_root.opsshields = _root.opsshields - 1;
}
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) < 190) {
_root.opsreserves = _root.opsreserves + 1;
_root.opsweapons = _root.opsweapons + 1;
_root.opsshields = _root.opsshields + 1;
}
}
Symbol 839 Button
on (release) {
_root.opsweapons = Math.floor(100 - (((_ymouse - 46) / 58) * 100));
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) > 200) {
_root.opsreserves = _root.opsreserves - 1;
_root.opsengines = _root.opsengines - 1;
_root.opsshields = _root.opsshields - 1;
}
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) < 180) {
_root.opsreserves = _root.opsreserves + 1;
_root.opsengines = _root.opsengines + 1;
_root.opsshields = _root.opsshields + 1;
}
}
Symbol 840 Button
on (release) {
_root.opsshields = Math.floor(100 - (((_ymouse - 46) / 58) * 100));
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) > 200) {
_root.opsreserves = _root.opsreserves - 1;
_root.opsengines = _root.opsengines - 1;
_root.opsweapons = _root.opsweapons - 1;
}
while ((((_root.opsreserves + _root.opsengines) + _root.opsweapons) + _root.opsshields) <= 190) {
_root.opsreserves = _root.opsreserves + 1;
_root.opsengines = _root.opsengines + 1;
_root.opsweapons = _root.opsweapons + 1;
}
}
Symbol 847 Button
on (release) {
i = 0;
while (i <= 10) {
if (_root.selectedfleet[i] != undefined) {
Set(("../" add _root.selectedfleet[i]) add ":orders", 3);
Set(("../" add _root.selectedfleet[i]) add ":alert", 1);
Set(("../" add _root.selectedfleet[i]) add ":mytarget", "planet");
}
i++;
}
infotext = "Orders confirmed...";
}
on (rollOver) {
infotext = "Seek and destroy enemy targets...";
}
on (rollOut) {
infotext = "";
}
Symbol 848 Button
on (release) {
i = 0;
while (i <= 10) {
if (_root.selectedfleet[i] != undefined) {
Set(("../" add _root.selectedfleet[i]) add ":alert", 1);
Set(("../" add _root.selectedfleet[i]) add ":orders", 2);
Set(("../" add _root.selectedfleet[i]) add ":mytarget", "planet");
}
i++;
}
infotext = "Orders confirmed...";
}
on (rollOver) {
infotext = "Order to gather at planetary body...";
}
on (rollOut) {
infotext = "";
}
Symbol 849 Button
on (release) {
i = 0;
while (i <= 10) {
if (_root.selectedfleet[i] != undefined) {
Set(("../" add _root.selectedfleet[i]) add ":alert", 1);
Set(("../" add _root.selectedfleet[i]) add ":mytarget", "player");
Set(("../" add _root.selectedfleet[i]) add ":orders", 1);
}
i++;
}
infotext = "Orders confirmed...";
}
on (rollOver) {
infotext = "Order to escort under green alert...";
}
on (rollOut) {
infotext = "";
}
Symbol 850 Button
on (release) {
i = 0;
while (i <= 10) {
if (_root.selectedfleet[i] != undefined) {
Set(("../" add _root.selectedfleet[i]) add ":orders", 4);
Set(("../" add _root.selectedfleet[i]) add ":alert", 3);
Set(("../" add _root.selectedfleet[i]) add ":mytarget", _root.myselect);
}
i++;
}
infotext = "Orders confirmed...";
}
on (rollOver) {
infotext = "Order to attack your selected target...";
}
on (rollOut) {
infotext = "";
}
Symbol 851 Button
on (release) {
if (_root.itemdescArray[((_root.playership - 1) * 13) + 3] >= 5) {
i = 0;
while (i <= 10) {
if (_root.selectedfleet[i] != undefined) {
i2 = 1;
while (_root.myfleet[((i2 - 1) * 4) + 1] != undefined) {
var xloc = getProperty("../" add _root.selectedfleet[i], _x);
var yloc = getProperty("../" add _root.selectedfleet[i], _y);
if (((_root.myfleet[((i2 - 1) * 4) + 2] == eval (("../" add _root.selectedfleet[i]) add ".mytype")) and (_root.myfleet[((i2 - 1) * 4) + 3] == eval (("../" add _root.selectedfleet[i]) add ".myname"))) and (_root.myfleet[((i2 - 1) * 4) + 1] == _root.myplanet)) {
if (((((xloc < 650) and (xloc > 0)) and (yloc < 500)) and (yloc > 0)) and (_root.itemdescArray[((_root.myfleet[((i2 - 1) * 4) + 2] - 1) * 13) + 3] <= 1)) {
_root.myfleet[((i2 - 1) * 4) + 1] = -1;
_root.shipsgovt[eval (("../" add _root.selectedfleet[i]) add ".myslot")] = undefined;
_root.otherships[eval (("../" add _root.selectedfleet[i]) add ".myslot")] = undefined;
removeMovieClip("../" add _root.selectedfleet[i]);
}
}
i2++;
}
}
i++;
}
i = 0;
while (i <= 10) {
_root.selectedfleet[i] = undefined;
i++;
infotext = "Auxiliary craft loaded and secured...";
}
} else {
infotext = "This ship is too small to carry auxiliary craft...";
}
}
on (rollOver) {
infotext = "Recall all nearby auxiliary craft to shuttlebays...";
}
on (rollOut) {
infotext = "";
}
Symbol 855 Button
on (release) {
i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (_root.myfleet[((i - 1) * 4) + 1] == -1) {
_root.myfleet[((i - 1) * 4) + 1] = _root.myplanet;
_root.createalliedship(_root.myfleet[((i - 1) * 4) + 2], _root.myfleet[((i - 1) * 4) + 3]);
}
i++;
}
infotext = "Auxiliary craft deployed...";
}
on (rollOver) {
infotext = "Launch all auxilliary craft in shuttlebays...";
}
on (rollOut) {
infotext = "";
}
Symbol 857 Button
on (release) {
i = 0;
while (i <= 10) {
_root.selectedfleet[i] = undefined;
i++;
}
i = _root.numstations + 1;
while (i <= _root.xArray0) {
x = getProperty("../" add _root.otherships[i], _x);
y = getProperty("../" add _root.otherships[i], _y);
if (((((_root.shipsgovt[i] == 16) and (x < 650)) and (x > 0)) and (y < 400)) and (y > 0)) {
i2 = 0;
while (i2 <= 10) {
if (_root.selectedfleet[i2] == undefined) {
_root.selectedfleet[i2] = _root.otherships[i];
i2 = 11;
}
i2++;
}
}
i++;
}
}
on (rollOver) {
infotext = "Select only ships in visual range...";
}
on (rollOut) {
infotext = "";
}
Symbol 858 Button
on (release) {
i = 0;
while (i <= 10) {
_root.selectedfleet[i] = undefined;
i++;
}
i = _root.numstations + 1;
while (i <= _root.xArray0) {
if (_root.shipsgovt[i] == 16) {
i2 = 0;
while (i2 <= 10) {
if (_root.selectedfleet[i2] == undefined) {
_root.selectedfleet[i2] = _root.otherships[i];
i2 = 11;
}
i2++;
}
}
i++;
}
}
on (rollOver) {
infotext = "Select all ships in this system...";
}
on (rollOut) {
infotext = "";
}
Symbol 859 Button
on (release) {
i = 0;
while (i <= 10) {
_root.selectedfleet[i] = undefined;
i++;
}
}
on (rollOver) {
infotext = "Deselect all ships...";
}
on (rollOut) {
infotext = "";
}
Symbol 860 Button
on (release) {
_root.loadcomm();
Set("../commpanel:mytype", 13);
var event = "Craft stored in shuttlebay...\r\r ";
var i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (_root.myfleet[((i - 1) * 4) + 1] == -1) {
event = event + (((_root.myfleet[((i - 1) * 4) + 3] + "(") + _root.itemdescArray[((_root.myfleet[((i - 1) * 4) + 2] - 1) * 13) + 1]) + "); ");
}
i++;
}
Set("../commpanel:event", event);
}
on (rollOver) {
infotext = "View craft in shuttlebays...";
}
on (rollOut) {
infotext = "";
}
Symbol 861 MovieClip [playerpanel] Frame 1
function loadweapon(weaptype, slot, x) {
if (Key.isDown(16) and (weaptype >= 70)) {
_root.mybuild[x] = undefined;
Set(("item" add x) add ":mytype", 100);
infotext = "Station plan deleted...";
} else {
i = 1;
count = 0;
while (i <= 9) {
if (_root.myweapons[i] == (weaptype - 105)) {
count++;
}
i++;
}
count2 = 0;
if (_root.weapon1 == _root.myweapons[x]) {
count2++;
}
if (_root.weapon2 == _root.myweapons[x]) {
count2++;
}
if (_root.weapon3 == _root.myweapons[x]) {
count2++;
}
_root.gamedata2 = (count + ", ") + count2;
if ((weaptype >= 70) and (weaptype < 100)) {
_root.loadcomm();
Set("../commpanel:mytype", 15);
Set("../commpanel:buildtype", weaptype);
Set("../commpanel:buildslot", 1);
Set("../commpanel:buildcost", ((((("Needs " + (Number(_root.itemdescArray[((weaptype - 1) * 13) + 10]) / 10)) + " units of deuranium.") + newline) + "Construction will take ") + (Number(_root.itemdescArray[((weaptype - 1) * 13) + 3]) * 100)) + " days.");
} else {
if (count <= count2) {
i = 1;
if ((_root.weapon1 == _root.myweapons[x]) and (i == 1)) {
_root.weapon1 = 100;
i = 2;
}
if ((_root.weapon2 == _root.myweapons[x]) and (i == 1)) {
_root.weapon2 = 100;
i = 2;
}
if ((_root.weapon3 == _root.myweapons[x]) and (i == 1)) {
_root.weapon3 = 100;
i = 2;
}
}
if (slot == 1) {
_root.weapon1 = _root.myweapons[x];
_root.weapon1timer = Number(_root.weaponstats[((_root.weapon1 - 1) * 7) + 6]);
_root.totweapon1timer = _root.weapon1timer;
}
if (slot == 2) {
_root.weapon2 = _root.myweapons[x];
_root.weapon2timer = Number(_root.weaponstats[((_root.weapon2 - 1) * 7) + 6]);
_root.totweapon2timer = _root.weapon2timer;
}
if (slot == 3) {
_root.weapon3 = _root.myweapons[x];
_root.weapon3timer = Number(_root.weaponstats[((_root.weapon3 - 1) * 7) + 6]);
_root.totweapon3timer = _root.weapon3timer;
}
mymenu = 1;
infotext = "Weapon loaded...";
}
}
}
Set("panelclass:mytype", shiptype);
if (mymenu == undefined) {
mymenu = 0;
cargopanel = 1;
}
if ((mymenu == 1) and (_y > 321)) {
_y = (_y - 20);
}
if ((mymenu == 2) and (_y > 282)) {
_y = (_y - 20);
}
if ((mymenu == 0) and (_y < 415)) {
_y = (_y + 20);
}
if ((_y < 321) and (mymenu == 1)) {
_y = 321;
}
if ((_y < 282) and (mymenu == 2)) {
_y = 282;
}
if ((_y > 415) and (mymenu == 0)) {
_y = 415;
}
if ((infotext != undefined) or (infotext != "")) {
timer = 40;
}
if (Key.isDown(81)) {
mymenu = 0;
cargopanel = 1;
}
if (Key.isDown(80)) {
mymenu = 1;
cargopanel = 1;
}
Instance of Symbol 360 MovieClip in Symbol 861 MovieClip [playerpanel] Frame 1
onClipEvent (load) {
myrace = _root.race;
}
Instance of Symbol 576 MovieClip "item1" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 1;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item2" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 2;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item3" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 3;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item4" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 4;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item5" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 5;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item6" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 6;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item7" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 7;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item8" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 8;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item9" in Symbol 861 MovieClip [playerpanel] Frame 1
on (release) {
x = 9;
_parent.loadweapon(mytype, slot, x);
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
if ((mytype >= 70) and (mytype < 100)) {
Set("../../playerpanel:infotext", ("Build a " + _root.itemdescArray[((mytype - 1) * 13) + 1]) + " at this location. Shift-Click to delete this plan.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Symbol 861 MovieClip [playerpanel] Frame 2
Set("panelclass:mytype", shiptype);
if (mymenu == undefined) {
mymenu = 0;
}
if ((mymenu == 1) and (_y > 321)) {
_y = (_y - 20);
}
if ((mymenu == 2) and (_y > 282)) {
_y = (_y - 20);
}
if ((mymenu == 0) and (_y < 415)) {
_y = (_y + 20);
}
if ((_y < 321) and (mymenu == 1)) {
_y = 321;
}
if ((_y < 282) and (mymenu == 2)) {
_y = 282;
}
if ((_y > 415) and (mymenu == 0)) {
_y = 415;
}
gotoAndPlay(cargopanel);
Symbol 861 MovieClip [playerpanel] Frame 3
if (Number(_root.cargoArray[1]) == 0) {
cargo1 = newline;
} else {
cargo1 = ((Number(_root.cargoArray[1]) + " tons of ") + _root.cargoArray[2]) + newline;
}
if (Number(_root.cargoArray[5]) == 0) {
cargo1 = cargo1 + newline;
} else {
cargo1 = cargo1 + (((Number(_root.cargoArray[5]) + " tons of ") + _root.cargoArray[6]) + newline);
}
if (Number(_root.cargoArray[9]) == 0) {
cargo1 = cargo1 + newline;
} else {
cargo1 = cargo1 + (((Number(_root.cargoArray[9]) + " tons of ") + _root.cargoArray[10]) + newline);
}
if (Number(_root.cargoArray[13]) == 0) {
cargo1 = cargo1 + newline;
} else {
cargo1 = cargo1 + (((Number(_root.cargoArray[13]) + " tons of ") + _root.cargoArray[14]) + newline);
}
if (Number(_root.cargoArray[17]) == 0) {
cargo1 = cargo1 + newline;
} else {
cargo1 = cargo1 + (((Number(_root.cargoArray[17]) + " tons of ") + _root.cargoArray[18]) + newline);
}
if (Number(_root.cargoArray[21]) == 0) {
cargo2 = newline;
} else {
cargo2 = ((Number(_root.cargoArray[21]) + " tons of ") + _root.cargoArray[22]) + newline;
}
if (Number(_root.cargoArray[25]) == 0) {
cargo2 = cargo2 + newline;
} else {
cargo2 = cargo2 + (((Number(_root.cargoArray[25]) + " tons of ") + _root.cargoArray[26]) + newline);
}
if (Number(_root.cargoArray[29]) == 0) {
cargo2 = cargo2 + newline;
} else {
cargo2 = cargo2 + (((Number(_root.cargoArray[29]) + " tons of ") + _root.cargoArray[30]) + newline);
}
if (Number(_root.cargoArray[33]) == 0) {
cargo2 = cargo2 + newline;
} else {
cargo2 = cargo2 + (((Number(_root.cargoArray[33]) + " tons of ") + _root.cargoArray[34]) + newline);
}
if (Number(_root.cargoArray[37]) == 0) {
cargo2 = cargo2 + newline;
} else {
cargo2 = cargo2 + (((Number(_root.cargoArray[37]) + " tons of ") + _root.cargoArray[38]) + newline);
}
cargotext = ((("Cargo hold " + Math.floor(100 - getProperty("cargobar", _xscale))) + "% full with ") + (_root.totcargo - _root.mycargo)) + " tons remaining.";
if (mymenu == 2) {
_y = (_y - 20);
cargopanel = 1;
}
if ((mymenu == 1) and (_y > 321)) {
_y = (_y - 20);
}
if (mymenu == 0) {
_y = (_y + 20);
cargopanel = 1;
}
if (Key.isDown(81)) {
mymenu = 0;
cargopanel = 1;
}
Symbol 861 MovieClip [playerpanel] Frame 4
gotoAndPlay(cargopanel);
_root.updatebars();
Symbol 861 MovieClip [playerpanel] Frame 5
if ((mymenu == 2) and (_y > 282)) {
_y = (_y - 20);
}
if (mymenu == 0) {
_y = (_y + 20);
cargopanel = 1;
}
if (Key.isDown(81)) {
mymenu = 0;
cargopanel = 1;
}
exp1 = (((((((((((Math.floor(_root.expnav) + newline) + Math.floor(_root.exptac)) + newline) + Math.floor(_root.expeng)) + newline) + Math.floor(_root.expat)) + newline) + Math.floor(_root.exptrade)) + newline) + Math.floor(_root.expneg)) + newline) + Math.floor(_root.expbuild);
exp2 = (_root.totalprestige + "%") + newline;
if ((((((_root.rep[1] > 10) or (_root.rep[2] > 10)) or (_root.rep[3] > 10)) or (_root.rep[4] > 10)) or (_root.rep[5] > 10)) or (_root.rep[6] > 10)) {
var i = 1;
var x = 1;
while (i <= 6) {
if (_root.rep[i] > _root.rep[x]) {
x = i;
}
i++;
}
var exp = _root.rep[x + 6];
} else {
var exp = "Insignificant";
}
var i = 1;
var pop = 0;
while (i <= 51) {
if (_root.planetGovts[i] == 16) {
pop = pop + _root.planetPops[i];
}
i++;
}
if (_root.totalprestige > 100) {
var exp = "Galactic Hero";
}
if (_root.totalprestige < 0) {
var exp = "Galactic Criminal";
}
if ((pop > 5) and (pop < 15)) {
var exp = "Colonist";
}
if ((pop >= 15) and (pop < 25)) {
var exp = "Leader";
}
if ((pop >= 25) and (pop < 35)) {
var exp = "Governor";
}
if ((pop >= 35) and (pop < 45)) {
var exp = "Head of State";
}
if ((pop >= 45) and (pop < 55)) {
var exp = "Emperor";
}
if (pop >= 55) {
var exp = "Galactic Emperor";
}
exp2 = exp2 + (exp + newline);
var i = 1;
var x = 0;
while (i <= 51) {
if (_root.planetGovts[i] == 16) {
x++;
}
i++;
}
exp2 = exp2 + (x + newline);
var i = 1;
var x = 0;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if (_root.myfleet[((i - 1) * 4) + 1] != 0) {
x++;
}
i++;
}
exp2 = exp2 + (x + newline);
exp2 = exp2 + ((pop + " billion") + newline);
var x = 0;
var i = 1;
while (i <= 9) {
if ((_root.mytech[i] == undefined) or (_root.mytech[i] == 0)) {
Set(("item" add i) add ":mytype", 100);
} else {
Set(("item" add i) add ":mytype", Number(_root.mytech[i]) + 105);
}
i++;
}
Instance of Symbol 576 MovieClip "item1" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[1] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item2" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[2] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item3" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[3] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item4" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[4] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item5" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[5] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item6" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[6] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item7" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[7] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item8" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[8] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item9" in Symbol 861 MovieClip [playerpanel] Frame 5
on (release) {
if (mytype >= 151) {
_root.mytech[9] = undefined;
mytype = 100;
}
}
on (rollOver) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...");
if (mytype >= 151) {
Set("../../playerpanel:infotext", _root.weaponstats[(((mytype - 105) - 1) * 7) + 1] + "...click to drop it.");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Symbol 861 MovieClip [playerpanel] Frame 6
gotoAndPlay(cargopanel);
Symbol 861 MovieClip [playerpanel] Frame 7
if (mymenu == 2) {
_y = (_y - 20);
cargopanel = 1;
}
if (mymenu == 0) {
_y = (_y + 20);
cargopanel = 1;
}
if (Key.isDown(81)) {
mymenu = 0;
cargopanel = 1;
}
setProperty("opsreservesbar", _yscale , 100 - _root.opsreserves);
setProperty("opsenginesbar", _yscale , 100 - _root.opsengines);
setProperty("opsweaponsbar", _yscale , 100 - _root.opsweapons);
setProperty("opsshieldsbar", _yscale , 100 - _root.opsshields);
if (_root.opsreserves > 100) {
_root.opsreserves = 100;
}
if (_root.opsengines > 100) {
_root.opsengines = 100;
}
if (_root.opsshields > 100) {
_root.opsshields = 100;
}
if (_root.opsweapons > 100) {
_root.opsweapons = 100;
}
if (_root.opsreserves < 0) {
_root.opsreserves = 0;
}
if (_root.opsengines < 0) {
_root.opsengines = 0;
}
if (_root.opsshields < 0) {
_root.opsshields = 0;
}
if (_root.opsweapons < 0) {
_root.opsweapons = 0;
}
Symbol 861 MovieClip [playerpanel] Frame 8
gotoAndPlay(cargopanel);
Symbol 861 MovieClip [playerpanel] Frame 9
function showstats(slot) {
Set("../playerpanel:selectedname", eval (("../" + _root.selectedfleet[slot]) + ".myname"));
Set("../playerpanel:selected:mytype", eval (("../" + _root.selectedfleet[slot]) + ".mytype"));
x = eval (("../" + _root.selectedfleet[slot]) + ".orders");
Set("../playerpanel:selecteddesc", "This ship has orders to " add _root.orders[x]);
setProperty("../playerpanel:healthbar", _xscale , 100 - ((eval (("../" + _root.myselect) + ".mystrength") / eval (("../" + _root.myselect) + ".totstrength")) * 100));
}
function selectship(slot) {
_root.deselectobject();
_root.myselect = _root.selectedfleet[slot];
_root.selectobject();
i = 0;
while (i <= 10) {
if (i != slot) {
_root.selectedfleet[i] = undefined;
}
i++;
}
}
function updateselecteddesc() {
i = _root.numstations + 1;
x = 0;
while (i <= _root.xArray0) {
if (_root.shipsgovt[i] == 16) {
x++;
}
i++;
}
selecteddesc = "Local Fleet: " + x;
}
Set("panelclass:mytype", shiptype);
if (Key.isDown(81)) {
mymenu = 0;
cargopanel = 1;
}
if (mymenu == undefined) {
mymenu = 0;
cargopanel = 1;
}
if ((mymenu == 1) and (_y > 321)) {
_y = (_y - 20);
}
if ((mymenu == 2) and (_y > 282)) {
_y = (_y - 20);
}
if ((mymenu == 0) and (_y < 415)) {
_y = (_y + 20);
}
if ((_y < 321) and (mymenu == 1)) {
_y = 321;
}
if ((_y < 282) and (mymenu == 2)) {
_y = 282;
}
if ((_y > 415) and (mymenu == 0)) {
_y = 415;
}
if ((infotext != undefined) or (infotext != "")) {
timer = 40;
}
i = 0;
while (i <= 10) {
Set(("item" add (i + 1)) add ":mytype", eval (("../" + _root.selectedfleet[i]) + ".mytype"));
if (_root.selectedfleet[i] == undefined) {
Set(("item" add (i + 1)) add ":mytype", 100);
}
i++;
}
Instance of Symbol 576 MovieClip "item1" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
slot = 0;
_parent.selectship(slot);
}
on (rollOver) {
slot = 0;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item2" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
slot = 1;
_parent.selectship(slot);
}
on (rollOver) {
slot = 1;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item3" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 2;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item4" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 3;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item5" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 4;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item6" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 5;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item7" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 6;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item8" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 7;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "item9" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
}
on (rollOver) {
slot = 8;
_parent.showstats(slot);
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Instance of Symbol 576 MovieClip "selected" in Symbol 861 MovieClip [playerpanel] Frame 9
on (release) {
if (slot == 1) {
_root.weapon1 = _root.myweapons[1];
}
if (slot == 2) {
_root.weapon2 = _root.myweapons[1];
}
if (slot == 3) {
_root.weapon3 = _root.myweapons[1];
}
Set("../../playerpanel:mymenu", 1);
Set("../../playerpanel:infotext", "Weapon loaded...");
}
on (rollOver) {
Set("../../playerpanel:infotext", ((("Load " + _root.weaponstats[(((mytype - 105) - 1) * 7) + 1]) + " into firing slot ") + slot) + "...");
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
Symbol 861 MovieClip [playerpanel] Frame 10
Set("panelclass:mytype", shiptype);
if (mymenu == undefined) {
mymenu = 0;
}
if ((mymenu == 1) and (_y > 321)) {
_y = (_y - 20);
}
if ((mymenu == 2) and (_y > 282)) {
_y = (_y - 20);
}
if ((mymenu == 0) and (_y < 415)) {
_y = (_y + 20);
}
if ((_y < 321) and (mymenu == 1)) {
_y = 321;
}
if ((_y < 282) and (mymenu == 2)) {
_y = 282;
}
if ((_y > 415) and (mymenu == 0)) {
_y = 415;
}
gotoAndPlay(cargopanel);
Symbol 867 MovieClip Frame 1
var x = (((_parent.mystrength / _parent.totstrength) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 867 MovieClip Frame 2
var x = (((_parent.mystrength / _parent.totstrength) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 867 MovieClip Frame 3
var x = (((_parent.mystrength / _parent.totstrength) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 867 MovieClip Frame 4
var x = (((_parent.mystrength / _parent.totstrength) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 867 MovieClip Frame 5
var x = (((_parent.mystrength / _parent.totstrength) * 100) / 20);
x = Math.floor(6 - x);
gotoAndPlay(x);
Symbol 868 MovieClip [othership] Frame 1
Set("shields:mytype", mytype);
Set("shiptype:mytype", mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (speed == undefined) {
var speed = 0;
var enginefail = 0;
}
if (((random(5000) == 1) and (mytype <= 69)) and (_root.shipsgovt[myslot] != 16)) {
if ((((myx > -50) and (myy > -50)) and (myy < 550)) and (myx < 700)) {
_root.enterwarp.start();
}
gotoAndPlay (14);
}
var myx = getProperty("../" add myself, _x);
var myy = getProperty("../" add myself, _y);
if (xArray2 == undefined) {
var xArray2 = 0;
}
if (xArray2 > _root.xArray0) {
var xArray2 = 0;
var ex = getProperty("../player", _x);
var ey = getProperty("../player", _y);
if (((Math.abs(ex - myx) < (500 / _root.zoom)) and (Math.abs(ey - myy) < (500 / _root.zoom))) and (hailplayer == 1)) {
Set("../playerpanel:infotext", ("The " + myname) + " is hailing you...");
_root.comm.start();
var hailplayer = 2;
}
if ((_root.shipsgovt[myslot] == 15) and (_root.player.playershiptype.cloak != 1)) {
mytarget = "player";
Set(("../" add myblip) add ":mydist", 7);
alert = 3;
}
if ((((((Math.abs(ex - myx) < (1000 / _root.zoom)) and (Math.abs(ey - myy) < (1000 / _root.zoom))) and (_root.localprestige[_root.myplanet] < 0)) and (mytarget != "player")) and (_root.shipsgovt[myslot] == _root.planetArray[1])) and (_root.player.playershiptype.cloak != 1)) {
mytarget = "player";
Set(("../" add myblip) add ":mydist", 7);
alert = 3;
}
}
var ex = getProperty(_root.otherships[xArray2], _x);
var ey = getProperty(_root.otherships[xArray2], _y);
if (myself != _root.otherships[xArray2]) {
if (((((_root.shipsgovt[xArray2] == _root.planetGovts[_root.myplanet + 55]) and (_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet])) or ((_root.shipsgovt[xArray2] == _root.planetGovts[_root.myplanet]) and (_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet + 55]))) or (((eval (("../" add _root.otherships[xArray2]) add ".mytarget") == "player") and (_root.shipsgovt[xArray2] != 16)) and (_root.shipsgovt[myslot] == 16))) or ((_root.shipsgovt[xArray2] == 15) and (_root.shipsgovt[myslot] != 15))) {
if ((Math.abs(ex - myx) < 800) and (Math.abs(ey - myy) < 800)) {
Set("../playerpanel:infotext", "Sensors detect weapons fire in this system...");
mytarget = _root.otherships[xArray2];
Set(("../" add _root.otherships[xArray2]) add ":mytarget", myself);
alert = 3;
Set(("../" add _root.otherships[xArray2]) add ":alert", 3);
}
}
}
xArray2++;
if (random(50) == 1) {
x = (random(500) - random(500)) / _root.zoom;
y = (random(500) - random(500)) / _root.zoom;
}
if (mytarget != undefined) {
var targetx = (getProperty("../" add mytarget, _x) + x);
var targety = (getProperty("../" add mytarget, _y) + y);
}
if ((mytype <= 69) and (enginefail < 1)) {
var myRadians = Math.atan2(targety - _y, targetx - _x);
var myDegrees = Math.round((myRadians * 180) / Math.PI);
var rotation = myDegrees;
var r1 = 0;
var r2 = (Math.abs(rotation - _rotation) + 90);
if (r2 > 360) {
r2 = r2 - 360;
}
if ((r2 > 180) and ((Math.abs(r2 - 180) > 10) and ((r2 > 10) and (r2 < 350)))) {
_rotation = (_rotation - totturn);
} else if ((r2 < 180) and ((Math.abs(r2 - 180) > 10) and ((r2 > 10) and (r2 < 350)))) {
_rotation = (_rotation + totturn);
}
if ((r2 > 120) and (r2 < 200)) {
setspeed = 5 / _root.zoom;
}
if ((Math.abs(myx - targetx) < (1000 / _root.zoom)) and (Math.abs(myy - targety) < (1000 / _root.zoom))) {
setspeed = Math.abs(myx - targetx) / 40;
}
if ((Math.abs(myx - targetx) > (500 / _root.zoom)) and (Math.abs(myy - targety) > (500 / _root.zoom))) {
setspeed = totspeed / _root.zoom;
}
if ((speed < 0) or (setspeed < 0)) {
setspeed = 0;
speed = 0;
}
if (speed < setspeed) {
speed = speed + (3 / _root.zoom);
}
if (speed > setspeed) {
speed = speed - (3 / _root.zoom);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * (speed / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * (speed / _root.zoom)) * -1));
}
if (Number(_root.itemdescArray[((mytype - 1) * 13) + 13]) == 22) {
if (random(100) == 1) {
cloak = 1;
}
if (random(5000) == 1) {
cloak = 0;
}
}
if ((cloak == 1) and (((_alpha >= 5) and (_root.shipsgovt[myslot] != 16)) or ((_alpha > 25) and (_root.shipsgovt[myslot] == 16)))) {
_alpha = (_alpha - 5);
setProperty("../" add myblip, _alpha , _alpha);
}
if ((cloak == 0) and (_alpha < 100)) {
_alpha = (_alpha + 5);
setProperty("../" add myblip, _alpha , _alpha);
}
if (enginefail > 0) {
enginefail = enginefail - 1;
}
Instance of Symbol 867 MovieClip "damagepic" in Symbol 868 MovieClip [othership] Frame 1
/* no clip actions */
Instance of Symbol 315 MovieClip "shiptype" in Symbol 868 MovieClip [othership] Frame 1
onClipEvent (load) {
myText = _root.trdTxtArray[random(73)];
myName = _root.shipnamesArray[0];
if (mytype <= 69) {
sellgoods = _root.tradegoodsArray[random(42)];
selltons = random(50) + 2;
sellcost = Number(random(20) + 1);
buygoods = _root.tradegoodsArray[random(42)];
buytons = random(50) + 2;
buycost = Number(random(3) + 1);
}
if (mytype >= 70) {
tradetons = random(100) + 20;
tradegoods = _root.tradegoodsArray[random(42)];
p = random(50) + 1;
tradeplanet = _root.planetsArray[p];
tradecost = Number((random(200) + 20) * 0.2);
merchantArray = new Array();
i = 1;
merchantData = "x";
while (i <= 8) {
merchantArray[((i - 1) * 2) + 1] = random(10) + 1;
merchantArray[((i - 1) * 2) + 2] = _root.tradegoodsArray[random(42)];
merchantData = merchantData + ((("," + merchantArray[((i - 1) * 2) + 1]) + ",") + merchantArray[((i - 1) * 2) + 2]);
i++;
}
i = 1;
merchanttext = "Price/ton Item";
while (i <= 8) {
merchanttext = merchanttext + ((newline + merchantArray[((i - 1) * 2) + 1]) + " ");
merchanttext = merchanttext + merchantArray[((i - 1) * 2) + 2];
i++;
}
}
if (mytype <= 69) {
i = 1;
while (i <= 10) {
if (sellgoods == _root.cargoArray[((i - 1) * 4) + 2]) {
Set(("../../" add _parent.myself) add ":hailplayer", 1);
myText = ("My scans indicate you have some " + sellgoods) + " in your cargo hold. Would you like to sell some?";
}
i++;
}
}
}
on (rollOver) {
if (_parent.cloak != 1) {
Set("../../playerpanel:infotext", ("Click to select the " + _parent.myname) + "...double-click to hail.");
if (_parent.myselect == 1) {
Set("../../playerpanel:infotext", ("Shift and Click to deselect the " + _parent.myname) + ".");
}
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
on (release) {
if (_parent.cloak != 1) {
if (_parent.myselect == 0) {
if (eval (("../../" add _parent.mytarget) add ".cloak") != 1) {
_root.deselectobject();
_root.myselect = _parent.myself;
_root.selectobject();
Set("../:myselect", 1);
}
} else if (_parent.myselect == 1) {
if (Key.isDown(16)) {
_root.deselectobject();
Set("../:myselect", 0);
} else {
_root.comm.start();
_root.hail();
}
}
}
}
onClipEvent (enterFrame) {
if (_parent.myselect == 1) {
Set("../../tacpanel:pic:mytype", mytype);
}
}
Instance of Symbol 316 MovieClip "shields" in Symbol 868 MovieClip [othership] Frame 1
onClipEvent (load) {
fade = 0;
}
onClipEvent (enterFrame) {
if (fade == 1) {
_alpha = 50;
fade = 2;
}
if (fade == 2) {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
fade = 0;
}
}
}
Symbol 868 MovieClip [othership] Frame 2
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if ((size == undefined) and (mytype != undefined)) {
size = 1;
damagepic._width = shiptype._width + 15;
damagepic._height = shiptype._height + 15;
}
gotoAndPlay(alert);
Symbol 868 MovieClip [othership] Frame 3
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if ((((mystrength / totstrength) * 100) < 30) and (random(10) == 1)) {
_root.attachMovie("damagemini", "damage" add _root.level, _root.level);
setProperty("../damage" add _root.level, _x , (_x + random(20)) - random(20));
setProperty("../damage" add _root.level, _y , (_y + random(20)) - random(20));
_root.level++;
}
if (_alpha < 100) {
cloak = 0;
_alpha = (_alpha + 5);
setProperty("../" add myblip, _alpha , _alpha);
}
var myx = getProperty("../" add myself, _x);
var myy = getProperty("../" add myself, _y);
if (xArray2 > _root.xArray0) {
var xArray2 = 0;
var ex = getProperty("../player", _x);
var ey = getProperty("../player", _y);
if ((((((Math.abs(ex - myx) < (1000 / _root.zoom)) and (Math.abs(ey - myy) < (1000 / _root.zoom))) and (_root.localprestige[_root.myplanet] < 0)) and (mytarget != "player")) and (_root.shipsgovt[myslot] == _root.planetArray[1])) and (_root.player.playershiptype.cloak != 1)) {
mytarget = "player";
Set(("../" add myblip) add ":mydist", 7);
alert = 3;
}
}
var ex = getProperty(_root.otherships[xArray2], _x);
var ey = getProperty(_root.otherships[xArray2], _y);
if (myself != _root.otherships[xArray2]) {
if (((((_root.shipsgovt[xArray2] == _root.planetGovts[_root.myplanet + 55]) and (_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet])) or ((_root.shipsgovt[xArray2] == _root.planetGovts[_root.myplanet]) and (_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet + 55]))) or (((eval (("../" add _root.otherships[xArray2]) add ".mytarget") == "player") and (_root.shipsgovt[xArray2] != 16)) and (_root.shipsgovt[myslot] == 16))) or ((_root.shipsgovt[xArray2] == 15) and (_root.shipsgovt[myslot] != 15))) {
if ((Math.abs(ex - myx) < (800 / _root.zoom)) and (Math.abs(ey - myy) < (800 / _root.zoom))) {
mytarget = _root.otherships[xArray2];
Set(("../" add _root.otherships[xArray2]) add ":mytarget", myself);
Set(("../" add _root.otherships[xArray2]) add ":alert", 3);
}
}
}
xArray2++;
if (_root.shipsgovt[myslot] == 16) {
if (((orders == 4) and (random(10) == 1)) and (_root.shipsgovt[eval (("../" add _root.myselect) add ".myslot")] != 16)) {
mytarget = _root.myselect;
_root.gamedata2 = _root.shipsgovt[eval (("../" add _root.myselect) add ".myslot")];
}
if ((orders == 3) and (((mytarget == undefined) or (mytarget == "player")) or (mytarget == "planet"))) {
var i = 1;
while (i < _root.xArray0) {
if (((_root.shipsgovt[i] == _root.planetGovts[_root.myplanet]) and (_root.localprestige[_root.myplanet] < 0)) and (_root.otherships[i] != undefined)) {
mytarget = _root.otherships[i];
}
if (((_root.shipsgovt[i] == _root.planetGovts[_root.myplanet + 55]) and (_root.localprestige[_root.myplanet] > 50)) and (_root.otherships[i] != undefined)) {
mytarget = _root.otherships[i];
}
if ((_root.shipsgovt[i] == 15) and (_root.otherships[i] != undefined)) {
mytarget = _root.otherships[i];
}
i++;
}
}
if (mytarget == undefined) {
mytarget = "planet";
alert = 1;
}
}
if (mytarget == "player") {
if (_root.player.playershiptype.cloak == 1) {
mytarget = "planet";
alert = 1;
}
if (_root.shipsgovt[myslot] == 16) {
Set("../playerpanel:infotext", "Captain, what are you doing?!?!?");
alert = 1;
} else {
Set(("../" add myblip) add ":mydist", 7);
}
}
if ((_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet]) or (_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet + 55])) {
if (xArray3 == undefined) {
var xArray3 = 0;
}
var ex = getProperty("../" add _root.otherships[xArray3], _x);
var ey = getProperty("../" add _root.otherships[xArray3], _y);
if (myself != _root.otherships[xArray3]) {
if (((((_root.shipsgovt[xArray3] == _root.shipsgovt[myslot]) and (ex > 0)) and (ey > 0)) and (ex < 600)) and (ey < 450)) {
Set(("../" add _root.otherships[xArray3]) add ":mytarget", mytarget);
Set(("../" add _root.otherships[xArray3]) add ":alert", 3);
}
}
xArray3++;
if (xArray3 > _root.xArray0) {
var xArray3 = 0;
}
}
if ((((mystrength / totstrength) * 100) >= 5) and (enginefail < 1)) {
if (random(50) == 1) {
x = (random(800) - random(800)) / _root.zoom;
y = (random(800) - random(800)) / _root.zoom;
}
if (random(100) == 1) {
x = 0;
y = 0;
}
if (weapon1timer > 0) {
weapon1timer = weapon1timer - 1;
}
if (weapon2timer > 0) {
weapon2timer = weapon2timer - 1;
}
if (speed == undefined) {
var speed = 0;
}
var myx = getProperty("../" add myself, _x);
var myy = getProperty("../" add myself, _y);
var targetx = getProperty("../" add mytarget, _x);
var targety = getProperty("../" add mytarget, _y);
if ((targetx == undefined) or (mytarget == "planet")) {
if (random(2) == 1) {
mytarget = _root.otherships[random(_root.numstations)];
} else {
mytarget = "planet";
}
mytarget = "planet";
alert = 1;
}
if (random(10) == 1) {
Set(("../" add mytarget) add ":mytarget", myself);
Set(("../" add mytarget) add ":alert", 3);
}
if ((random(20) == 1) and (_root.shipsgovt[myslot] == 16)) {
Set(("../" add mytarget) add ":mytarget", myself);
Set(("../" add mytarget) add ":alert", 3);
}
if (mytarget != undefined) {
var targetx2 = (getProperty("../" add mytarget, _x) + x);
var targety2 = (getProperty("../" add mytarget, _y) + y);
}
if ((weapon1timer <= 0) or (weapon1timer == undefined)) {
if ((Math.abs(myx - targetx) < (300 / _root.zoom)) and (Math.abs(myy - targety) < (300 / _root.zoom))) {
var w = Number(_root.itemdescArray[((mytype - 1) * 13) + 11]);
if ((((random(200) == 1) and (mytype <= 69)) and (_root.shipsgovt[myslot] != 16)) and (w == 0)) {
if ((((myx > -50) and (myy > -50)) and (myy < 550)) and (myx < 700)) {
_root.enterwarp.start();
}
gotoAndPlay (14);
}
if (((w == 0) and (mytype >= 70)) and (wx == undefined)) {
var wx = 1;
var w = (random(13) + 1);
}
weapontype = _root.weapontypes[w];
var x = Number(_root.itemdescArray[((mytype - 1) * 13) + 3]);
if (x >= 6) {
var x = 1;
}
weapon1timer = Number(_root.weaponstats[((w - 1) * 7) + 6]) * (6 - x);
if ((w <= 5) and (w != 0)) {
_root.attachMovie("phaser", "phaser" add _root.level, _root.level);
Set(("../phaser" add _root.level) add ":mytarget", mytarget);
Set(("../phaser" add _root.level) add ":power", Number(_root.weaponstats[((w - 1) * 7) + 5]) * Number(_root.itemdescArray[((mytype - 1) * 13) + 3]));
Set(("../phaser" add _root.level) add ":myorigin", myself);
Set(("../phaser" add _root.level) add ":mytype", weapontype);
_root.level++;
}
if (w >= 6) {
var x = 0;
var y = 0;
var straffe = 1;
_root.attachMovie("torpedo", "torp" add _root.level, _root.level);
Set(("../torp" add _root.level) add ":mytarget", mytarget);
Set(("../torp" add _root.level) add ":speed", speed);
setProperty("../torp" add _root.level, _x , myx);
Set(("../torp" add _root.level) add ":power", Number(_root.weaponstats[((w - 1) * 7) + 5]) * Number(_root.itemdescArray[((mytype - 1) * 13) + 3]));
setProperty("../torp" add _root.level, _y , myy);
setProperty("../torp" add _root.level, _rotation , (_rotation + random(20)) - random(20));
if (mytype >= 70) {
var myRadians = Math.atan2(targety - _y, targetx - _x);
var myDegrees = Math.round((myRadians * 180) / Math.PI);
var trotation = (myDegrees + 90);
setProperty("../torp" add _root.level, _rotation , trotation);
}
Set(("../torp" add _root.level) add ":myself", "torp" add _root.level);
Set(("../torp" add _root.level) add ":mytype", weapontype);
_root.level++;
}
}
}
if ((weapon2timer <= 0) or (weapon2timer == undefined)) {
var w = Number(_root.itemdescArray[((mytype - 1) * 13) + 12]);
var weapontype = _root.weapontypes[w];
var x = Number(_root.itemdescArray[((mytype - 1) * 13) + 3]);
if (x >= 6) {
x = 1;
}
var weapon2timer = (Number(_root.weaponstats[((w - 1) * 7) + 6]) * (6 - x));
if (((Math.abs(myx - targetx) < (2000 / _root.zoom)) and (Math.abs(myy - targety) < (2000 / _root.zoom))) and (w != 0)) {
_root.attachMovie("torpedo", "torp" add _root.level, _root.level);
Set(("../torp" add _root.level) add ":mytarget", mytarget);
Set(("../torp" add _root.level) add ":speed", speed);
Set(("../torp" add _root.level) add ":power", Number(_root.weaponstats[((w - 1) * 7) + 5]) * Number(_root.itemdescArray[((mytype - 1) * 13) + 3]));
setProperty("../torp" add _root.level, _x , myx);
setProperty("../torp" add _root.level, _y , myy);
myRadians = Math.atan2(targety - _y, targetx - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
trotation = myDegrees + 90;
setProperty("../torp" add _root.level, _rotation , trotation);
Set(("../torp" add _root.level) add ":myself", "torp" add _root.level);
Set(("../torp" add _root.level) add ":mytype", weapontype);
_root.level++;
}
}
if (mytype <= 69) {
var myRadians = Math.atan2(targety2 - _y, targetx2 - _x);
var myDegrees = Math.round((myRadians * 180) / Math.PI);
var rotation = myDegrees;
var r1 = 0;
var r2 = (Math.abs(rotation - _rotation) + 90);
if (r2 > 360) {
r2 = r2 - 360;
}
if ((r2 > 180) and ((Math.abs(r2 - 180) > 10) and ((r2 > 10) and (r2 < 350)))) {
_rotation = (_rotation - totturn);
} else if ((r2 < 180) and ((Math.abs(r2 - 180) > 10) and ((r2 > 10) and (r2 < 350)))) {
_rotation = (_rotation + totturn);
}
if ((r2 > 120) and (r2 < 200)) {
var setspeed = (5 / _root.zoom);
}
if ((Math.abs(myx - targetx) > (3000 / _root.zoom)) and (Math.abs(myy - targety) > (3000 / _root.zoom))) {
_rotation = (((rotation + 90) + random(10)) - random(10));
}
if ((Math.abs(myx - targetx) < (400 / _root.zoom)) and (Math.abs(myy - targety) < (400 / _root.zoom))) {
var setspeed = (Math.abs(myx - targetx) / 25);
}
if ((Math.abs(myx - targetx) > (400 / _root.zoom)) and (Math.abs(myy - targety) > (400 / _root.zoom))) {
var setspeed = (totspeed / _root.zoom);
}
if ((Math.abs(myx - targetx) < (200 / _root.zoom)) and (Math.abs(myy - targety) < (200 / _root.zoom))) {
var setspeed = (1 / _root.zoom);
}
if ((straffe == 1) and (setspeed < (20 / _root.zoom))) {
var setspeed = (20 / _root.zoom);
}
if (speed < setspeed) {
speed = speed + (5 / _root.zoom);
}
if (speed > setspeed) {
speed = speed - (2 / _root.zoom);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * (speed / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * (speed / _root.zoom)) * -1));
}
} else {
_rotation = (_rotation + 1);
}
if (hit > 0) {
if ((random(5) == 1) and (mytarget == "player")) {
blamedeath = 1;
}
if (mystrength <= 0) {
gotoAndPlay (7);
}
if (((mystrength / totstrength) * 100) > 50) {
Set("shields:fade", 1);
}
var hit = 0;
}
if (board > 0) {
var board = 0;
if ((this.hitTest("../player") and (((mystrength / totstrength) * 100) < 5)) and (mytype <= 69)) {
if ((_root.shipsgovt[myslot] == 12) or (_root.shipsgovt[myslot] == _root.planetArray[1])) {
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] - random(5);
}
if (_root.shipsgovt[myslot] == _root.planetArray[9]) {
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] + random(5);
}
var pilaged = (random(500) + Number(_root.itemdescArray[((mytype - 1) * 13) + 3] * 20));
_root.board(pilaged, mytype);
}
}
if (enginefail > 0) {
enginefail = enginefail - 1;
}
Symbol 868 MovieClip [othership] Frame 4
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if ((alert == 3) and (_root.shipsgovt[myslot] == 16)) {
}
gotoAndPlay(alert);
Symbol 868 MovieClip [othership] Frame 7
_root.explode.start();
if ((mytarget == "player") or ((blamedeath == 1) and (_root.planetGovts[_root.myplanet] != 16))) {
if ((_root.shipsgovt[myslot] == 12) or (_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet])) {
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] - Number(_root.itemdescArray[((mytype - 1) * 13) + 3] * random(5));
}
if ((_root.shipsgovt[myslot] == _root.planetGovts[_root.myplanet + 55]) or (_root.shipsgovt[myslot] == 15)) {
_root.rep[4] = Number(_root.rep[4]) + 1;
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] + Number(_root.itemdescArray[((mytype - 1) * 13) + 3] * random(5));
}
var i = 1;
while (i <= 55) {
if (((_root.shipsgovt[myslot] == _root.planetGovts[i]) and (_root.shipsgovt[myslot] != 16)) and (_root.shipsgovt[myslot] != 12)) {
_root.localprestige[i] = _root.localprestige[i] - 1;
}
i++;
}
}
if (_root.shipsgovt[myslot] == 16) {
i = 1;
while (_root.myfleet[((i - 1) * 4) + 1] != undefined) {
if ((_root.myfleet[((i - 1) * 4) + 2] == mytype) and (_root.myfleet[((i - 1) * 4) + 3] == myname)) {
_root.myfleet[((i - 1) * 4) + 1] = 0;
break;
}
i++;
}
}
if (mytype >= 70) {
i = 1;
while (_root.stationdataArray[((i - 1) * 14) + 0] != undefined) {
if (_root.stationdataArray[((i - 1) * 14) + 13] == myname) {
_root.stationdataArray[((i - 1) * 14) + 0] = _root.stationdataArray[((i - 1) * 14) + 0] * -1;
}
i++;
}
if (((blamedeath == 1) and (_root.localprestige[_root.myplanet] >= 0)) and (_root.planetGovts[_root.myplanet] != 16)) {
_root.localprestige[_root.myplanet] = -1;
}
}
i = 1;
while (_root.stationdataArray[((i - 1) * 14) + 0] != undefined) {
if (_root.stationdataArray[((i - 1) * 14) + 0] == _root.myplanet) {
var empty = 1;
}
i++;
}
if ((empty != 1) and (_root.planetGovts[_root.myplanet] != 16)) {
_root.planetStrengths[_root.myplanet] = _root.planetStrengths[_root.myplanet] - Number(_root.itemdescArray[((mytype - 1) * 13) + 3] * 10);
if (mytype >= 70) {
_root.loadcomm();
Set("../commpanel:mytype", 13);
Set("../commpanel:event", "Sensors detect a large fleet entering this system...");
i = 1;
while (i <= 10) {
_root.mygovt = -1;
_root.createship();
i++;
}
}
}
if ((_root.shipsgovt[myslot] == _root.planetArray[1]) and (_root.planetStrengths[_root.myplanet] > 0)) {
_root.mygovt = -1;
_root.createship();
}
var maxsize = ((shiptype._width + shiptype._height) / 2);
_root.explosionwave(maxsize, _x, _y);
Symbol 868 MovieClip [othership] Frame 13
Set("../playerpanel:infotext", "Sensors have detected a large explosion in this system...");
_root.shipsgovt[myslot] = undefined;
_root.otherships[myslot] = undefined;
removeMovieClip("");
Symbol 868 MovieClip [othership] Frame 14
Set("shiptype:mytype", mytype);
Symbol 868 MovieClip [othership] Frame 19
Set("shiptype:mytype", mytype);
Symbol 868 MovieClip [othership] Frame 30
Set("../playerpanel:infotext", "Sensors indicate a ship has left this system...");
_root.shipsgovt[myslot] = undefined;
_root.otherships[myslot] = undefined;
removeMovieClip("");
Symbol 870 MovieClip [selecttool] Frame 1
setProperty("../selecttool", _x , getProperty("../" add mytarget, _x));
setProperty("../selecttool", _y , getProperty("../" add mytarget, _y));
if (size == undefined) {
size = (getProperty("../" add mytarget, _width) + getProperty("../" add mytarget, _height)) / 2;
_width = size;
_height = size;
}
if (fade == undefined) {
fade = 1;
}
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 10) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 90) {
fade = 1;
}
}
Symbol 870 MovieClip [selecttool] Frame 2
setProperty("../selecttool", _x , getProperty("../" add mytarget, _x));
setProperty("../selecttool", _y , getProperty("../" add mytarget, _y));
if (getProperty("../" add mytarget, _x) == undefined) {
_root.deselectobject;
removeMovieClip("");
}
if (fade == undefined) {
fade = 1;
}
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 10) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 90) {
fade = 1;
}
}
Symbol 880 MovieClip Frame 1
gotoAndPlay(mytype);
Symbol 880 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 880 MovieClip Frame 3
gotoAndPlay(mytype);
Symbol 880 MovieClip Frame 4
gotoAndPlay(mytype);
Symbol 883 MovieClip [asteroid] Frame 1
Set("asteroid:mytype", mytype);
if (r == undefined) {
r = random(5) + 1;
}
_rotation = (_rotation + r);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if ((((_x > 800) or (_x < -200)) or (_y > 650)) or (_y < -200)) {
removeMovieClip("");
}
Instance of Symbol 880 MovieClip "asteroid" in Symbol 883 MovieClip [asteroid] Frame 1
onClipEvent (load) {
x = 0;
}
on (release) {
if (getProperty("../", _xscale) > 75) {
Set("../../playerpanel:infotext", "Unable to transport such a large mass...");
} else if (x == 0) {
x = 1;
gain = Math.floor(getProperty("../", _xscale) / 10);
if ((_root.mycargo + gain) > _root.totcargo) {
gain = _root.totcargo - _root.mycargo;
}
if (gain == 0) {
Set("../../playerpanel:infotext", "Cargo hold is full...unable to transport.");
} else {
_root.beam.start();
_root.mydeuranium = _root.mydeuranium + gain;
if ((((_root.planetStrengths[_root.myplanet] > 0) or (_root.planetPops[_root.myplanet] > 0)) and (_root.planetGovts[_root.myplanet] != 16)) and (_root.asteroidpass != 1)) {
_root.localprestige[_root.myplanet] = _root.localprestige[_root.myplanet] - 1;
}
Set("../../playerpanel:infotext", ("You transport " + gain) + " tons of deuranium aboard.");
_root.updatemenu();
_parent.gotoAndPlay(3);
}
}
}
Symbol 883 MovieClip [asteroid] Frame 2
if (r == undefined) {
r = random(5) + 1;
}
_rotation = (_rotation + r);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
gotoAndPlay (1);
Symbol 883 MovieClip [asteroid] Frame 16
removeMovieClip("../" add mytarget);
Symbol 884 MovieClip [explosion] Frame 7
removeMovieClip("");
Symbol 891 MovieClip [damagemini] Frame 1
_x = (_x + _root.locx);
_y = (_y + _root.locy);
Symbol 891 MovieClip [damagemini] Frame 2
_x = (_x + _root.locx);
_y = (_y + _root.locy);
Symbol 891 MovieClip [damagemini] Frame 3
_x = (_x + _root.locx);
_y = (_y + _root.locy);
Symbol 891 MovieClip [damagemini] Frame 4
_x = (_x + _root.locx);
_y = (_y + _root.locy);
Symbol 891 MovieClip [damagemini] Frame 5
_x = (_x + _root.locx);
_y = (_y + _root.locy);
Symbol 891 MovieClip [damagemini] Frame 6
_x = (_x + _root.locx);
_y = (_y + _root.locy);
Symbol 891 MovieClip [damagemini] Frame 7
removeMovieClip("");
Symbol 895 MovieClip [explosionmini] Frame 1
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
Symbol 895 MovieClip [explosionmini] Frame 2
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
Symbol 895 MovieClip [explosionmini] Frame 3
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
Symbol 895 MovieClip [explosionmini] Frame 4
removeMovieClip("");
Symbol 904 MovieClip [explosionshield] Frame 1
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
Symbol 904 MovieClip [explosionshield] Frame 2
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 3
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 4
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 5
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 6
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 7
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 8
_x = (getProperty("../" add mytarget, _x) + xshift);
_y = (getProperty("../" add mytarget, _y) + yshift);
_alpha = (_alpha - 10);
Symbol 904 MovieClip [explosionshield] Frame 9
removeMovieClip("");
Symbol 930 MovieClip [torpedo] Frame 1
_xscale = (_xscale / _root.zoom);
_yscale = (_yscale / _root.zoom);
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 2
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.etorpedo.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 0) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
myx = getProperty("../" add myself, _x);
myy = getProperty("../" add myself, _y);
targetx = getProperty("../" add mytarget, _x);
targety = getProperty("../" add mytarget, _y);
myRadians = Math.atan2(targety - myy, targetx - myx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees;
r1 = 0;
r2 = Math.abs(rotation - _rotation) + 90;
if (r2 > 360) {
r2 = r2 - 360;
}
if (r2 > 180) {
_rotation = (_rotation - 3);
}
if (r2 < 180) {
_rotation = (_rotation + 3);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 3
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 4
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.quantum.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 0) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
myx = getProperty("../" add myself, _x);
myy = getProperty("../" add myself, _y);
targetx = getProperty("../" add mytarget, _x);
targety = getProperty("../" add mytarget, _y);
myRadians = Math.atan2(targety - myy, targetx - myx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees;
r1 = 0;
r2 = Math.abs(rotation - _rotation) + 90;
if (r2 > 360) {
r2 = r2 - 360;
}
if (r2 > 180) {
_rotation = (_rotation - 3);
}
if (r2 < 180) {
_rotation = (_rotation + 3);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 5
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 6
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.romtorp.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 0) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
myx = getProperty("../" add myself, _x);
myy = getProperty("../" add myself, _y);
targetx = getProperty("../" add mytarget, _x);
targety = getProperty("../" add mytarget, _y);
myRadians = Math.atan2(targety - myy, targetx - myx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees;
r1 = 0;
r2 = Math.abs(rotation - _rotation) + 90;
if (r2 > 360) {
r2 = r2 - 360;
}
if (r2 > 180) {
_rotation = (_rotation - 3);
}
if (r2 < 180) {
_rotation = (_rotation + 3);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 7
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 8
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.etorpedo.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 0) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
myx = getProperty("../" add myself, _x);
myy = getProperty("../" add myself, _y);
targetx = getProperty("../" add mytarget, _x);
targety = getProperty("../" add mytarget, _y);
myRadians = Math.atan2(targety - myy, targetx - myx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees;
r1 = 0;
r2 = Math.abs(rotation - _rotation) + 90;
if (r2 > 360) {
r2 = r2 - 360;
}
if (r2 > 180) {
_rotation = (_rotation - 3);
}
if (r2 < 180) {
_rotation = (_rotation + 3);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 9
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 10
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.etorpedo.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 0) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
myx = getProperty("../" add myself, _x);
myy = getProperty("../" add myself, _y);
targetx = getProperty("../" add mytarget, _x);
targety = getProperty("../" add mytarget, _y);
myRadians = Math.atan2(targety - myy, targetx - myx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees;
r1 = 0;
r2 = Math.abs(rotation - _rotation) + 90;
if (r2 > 360) {
r2 = r2 - 360;
}
if (r2 > 180) {
_rotation = (_rotation - 3);
}
if (r2 < 180) {
_rotation = (_rotation + 3);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 11
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 12
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.rompulse.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 25) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 13
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 14
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.disruptor.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 20) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 15
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 16
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.pulse2.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 20) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 17
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 18
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.etorpedo.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 0) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
myx = getProperty("../" add myself, _x);
myy = getProperty("../" add myself, _y);
targetx = getProperty("../" add mytarget, _x);
targety = getProperty("../" add mytarget, _y);
myRadians = Math.atan2(targety - myy, targetx - myx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rotation = myDegrees;
r1 = 0;
r2 = Math.abs(rotation - _rotation) + 90;
if (r2 > 360) {
r2 = r2 - 360;
}
if (r2 > 180) {
_rotation = (_rotation - 10);
}
if (r2 < 180) {
_rotation = (_rotation + 10);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((5 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((5 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 19
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 20
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.pulse.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 20) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 21
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 22
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.fedpulse.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 20) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((30 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 23
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 24
if (timer == undefined) {
timer = 100;
if ((((_x > -50) and (_y > -50)) and (_y < 550)) and (_x < 700)) {
_root.typevii.start();
}
}
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
timer = timer - 1;
if (timer < 20) {
removeMovieClip("");
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * ((50 + speed) / _root.zoom)));
_y = (_y + ((Math.cos(_rotation * (Math.PI/180)) * ((50 + speed) / _root.zoom)) * -1));
Symbol 930 MovieClip [torpedo] Frame 25
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
if (this.hitTest("../" add mytarget)) {
gotoAndPlay (29);
}
gotoAndPlay(mytype);
Symbol 930 MovieClip [torpedo] Frame 30
Set(("../" add mytarget) add ":hit", 1);
Set(("../" add mytarget) add ":mystrength", eval (("../" add mytarget) add ".mystrength") - power);
Symbol 930 MovieClip [torpedo] Frame 31
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 930 MovieClip [torpedo] Frame 32
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 930 MovieClip [torpedo] Frame 33
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 930 MovieClip [torpedo] Frame 34
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 930 MovieClip [torpedo] Frame 35
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 930 MovieClip [torpedo] Frame 36
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 930 MovieClip [torpedo] Frame 37
removeMovieClip("");
Symbol 936 MovieClip [wormhole] Frame 1
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Instance of Symbol 933 MovieClip in Symbol 936 MovieClip [wormhole] Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
}
Instance of Symbol 933 MovieClip in Symbol 936 MovieClip [wormhole] Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Instance of Symbol 935 MovieClip in Symbol 936 MovieClip [wormhole] Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 8);
if ((_parent.hitTest("../player") == true) and (getProperty("../", _xscale) < 100)) {
if (getProperty("../", _xscale) == 20) {
_root.wormholeopen.start();
}
setProperty("../", _xscale , getProperty("../", _xscale) + 10);
setProperty("../", _yscale , getProperty("../", _yscale) + 10);
} else if ((_parent.hitTest("../player") == false) and (getProperty("../", _xscale) > 20)) {
setProperty("../", _xscale , getProperty("../", _xscale) - 10);
setProperty("../", _yscale , getProperty("../", _yscale) - 10);
}
}
on (release) {
if (_root.expnav < 200) {
_root.loadcomm();
Set("../../commpanel:mytype", 13);
Set("../../commpanel:event", "You do not have enough navigational experience to survive the trip through this wormhole. 200+ experience needed.");
} else if (_parent._xscale > 50) {
_root.dist = 0;
if (_root.myplanet == 47) {
_root.planetclick = 51;
}
if (_root.myplanet == 51) {
_root.planetclick = 47;
}
_root.mapclick();
}
}
on (rollOver) {
if (_parent._xscale > 50) {
Set("../../playerpanel:infotext", "Click to enter this wormhole...");
} else {
Set("../../playerpanel:infotext", "This wormhole is closed...");
}
}
on (rollOut) {
Set("../../playerpanel:infotext", "");
}
on (release) {
if (_parent._xscale > 50) {
}
}
Symbol 936 MovieClip [wormhole] Frame 2
gotoAndPlay (1);
Symbol 942 Button
on (release) {
_root.scanship();
}
Symbol 946 MovieClip [targetwindow] Frame 1
if (mymenu == undefined) {
mymenu = 0;
}
if ((mymenu == 1) and (_y > 410)) {
_y = (_y - 20);
}
if ((mymenu == 0) and (_y < 500)) {
_y = (_y + 20);
}
if ((_y < 410) and (mymenu == 1)) {
_y = 410;
}
if ((_y > 500) and (mymenu == 0)) {
_y = 500;
}
setProperty("strengthbar", _xscale , 100 - ((eval (("../" + _root.myselect) + ".mystrength") / eval (("../" + _root.myselect) + ".totstrength")) * 100));
if (((eval (("../" + _root.myselect) + ".mystrength") / eval (("../" + _root.myselect) + ".totstrength")) * 100) < 5) {
disabled = "DISABLED";
} else {
disabled = "";
}
originx = getProperty("../player", _x);
originy = getProperty("../player", _y);
targetx = getProperty("../" add _root.myselect, _x);
targety = getProperty("../" add _root.myselect, _y);
myRadians = Math.atan2(targety - originy, targetx - originx);
myDegrees = Math.round((myRadians * 180) / Math.PI);
setProperty("arrowtarget", _rotation , myDegrees + 90);
if (targetx == undefined) {
_root.deselect();
mymenu = 0;
}
Symbol 946 MovieClip [targetwindow] Frame 2
if (mymenu == undefined) {
mymenu = 0;
}
if ((mymenu == 1) and (_y > 410)) {
_y = (_y - 20);
}
if ((mymenu == 0) and (_y < 500)) {
_y = (_y + 20);
}
if ((_y < 410) and (mymenu == 1)) {
_y = 410;
}
if ((_y > 500) and (mymenu == 0)) {
_y = 500;
}
Symbol 949 MovieClip [cargopod] Frame 1
if (x == undefined) {
x = random(2) - random(2);
y = random(2) - random(2);
}
_rotation = (_rotation + 10);
_alpha = (_alpha - 1);
if (_alpha <= 0) {
removeMovieClip("");
}
_x = ((_x + _root.locx) + y);
_y = ((_y + _root.locy) + y);
Symbol 949 MovieClip [cargopod] Frame 2
_rotation = (_rotation + 10);
_alpha = (_alpha - 1);
if (_alpha <= 0) {
removeMovieClip("");
}
_x = ((_x + _root.locx) + y);
_y = ((_y + _root.locy) + y);
Symbol 953 Button
on (release) {
Set("../player:playershiptype:repair", 0);
removeMovieClip("");
}
Symbol 954 MovieClip [repairmodule] Frame 1
size = (getProperty("../player", _width) + getProperty("../player", _height)) / 2;
_width = size;
_height = size;
_root.gamedata2 = (_width + " ") + _height;
_rotation = getProperty("../player", _rotation);
Symbol 954 MovieClip [repairmodule] Frame 27
stop();
Symbol 968 Button
on (release) {
_root.loadcomm();
Set("../commpanel:mytype", 13);
events = "...Scan complete...\r\r";
events = events + ("This incomplete station is a " + _root.itemdescArray[((mytype - 1) * 13) + 1]);
events = events + (("...construction will be complete in " + (buildtime * -1)) + " days.");
Set("../commpanel:event", events);
}
Symbol 969 MovieClip [stationconstruct] Frame 1
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 969 MovieClip [stationconstruct] Frame 2
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
gotoAndPlay (1);
Symbol 981 MovieClip [cloud] Frame 1
_xscale = (_xscale + 0.5);
_yscale = (_yscale + 0.5);
_alpha = (_alpha - 0.5);
if (_alpha <= 5) {
removeMovieClip("");
}
Instance of Symbol 977 MovieClip in Symbol 981 MovieClip [cloud] Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
}
Instance of Symbol 980 MovieClip in Symbol 981 MovieClip [cloud] Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 982 MovieClip [thaleron] Frame 1
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
_xscale = (_xscale + 0.5);
_yscale = (_yscale + 0.5);
if (_xscale > 150) {
_alpha = (_alpha - 20);
}
if (_alpha < 1) {
removeMovieClip("");
}
if (((x == undefined) or (x > _root.xArray0)) and (_xscale > 20)) {
x = 1;
}
i = 1;
while (i < 10) {
if (this.hitTest("../" add _root.otherships[x])) {
Set(("../" add _root.otherships[x]) add ":hit", 100);
_root.localPrestige[_root.myplanet] = _root.localPrestige[_root.myplanet] - 1;
}
if (this.hitTest("../player")) {
Set("../player:hit", 10);
}
x++;
i++;
}
Symbol 982 MovieClip [thaleron] Frame 2
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
gotoAndPlay (1);
Symbol 985 MovieClip [tachyon] Frame 1
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
if (_xscale > 100) {
_alpha = (_alpha - 5);
}
if (_alpha < 1) {
removeMovieClip("");
}
if ((x == undefined) or (x > _root.xArray0)) {
x = 1;
}
if (this.hitTest("../" add _root.otherships[x])) {
Set(("../" add _root.otherships[x]) add ":cloak", 0);
}
x++;
Symbol 985 MovieClip [tachyon] Frame 2
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
gotoAndPlay (1);
Symbol 988 MovieClip [explosionwave] Frame 1
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
if (_xscale > maxsize) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
removeMovieClip("");
}
Symbol 988 MovieClip [explosionwave] Frame 2
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
gotoAndPlay (1);
Symbol 991 MovieClip [shockwave] Frame 1
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
_xscale = (_xscale + 2);
_yscale = (_yscale + 2);
if (_xscale > 100) {
_alpha = (_alpha - 3);
}
if (_alpha < 10) {
removeMovieClip("");
}
if ((x == undefined) or (x > _root.xArray0)) {
x = _root.numstations + 1;
}
if (this.hitTest("../" add _root.otherships[x])) {
Set(("../" add _root.otherships[x]) add ":enginefail", 200);
}
x++;
Symbol 991 MovieClip [shockwave] Frame 2
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
gotoAndPlay (1);
Symbol 993 MovieClip [shipblip] Frame 1
if ((_x == 0) or (_x == undefined)) {
_x = -10000;
}
if (fade == undefined) {
fade = 1;
}
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 10) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 90) {
fade = 1;
}
}
Symbol 993 MovieClip [shipblip] Frame 2
if (fade == undefined) {
fade = 1;
}
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 10) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 90) {
fade = 1;
}
}
Symbol 1016 Button
on (release) {
gotoAndPlay (16);
}
Symbol 1047 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1054 Button
on (release) {
gotoAndStop (108);
comp1.start();
}
Symbol 1059 Button
on (release) {
gotoAndStop (107);
comp1.start();
}
Symbol 1064 Button
on (release) {
gotoAndStop (139);
comp1.start();
}
Symbol 1069 Button
on (release) {
gotoAndStop (133);
comp1.start();
}
Symbol 1076 Button
on (release) {
stopAllSounds();
gotoAndPlay (60);
comm1.start();
}
Symbol 1078 Button
on (release) {
gotoAndStop (131);
}
Symbol 1084 Button
on (release) {
if (backgroundbutton == "X") {
backgroundbutton = "";
_global.background = 0;
} else {
backgroundbutton = "X";
_global.background = 1;
}
}
Symbol 1086 Button
on (release) {
if (cursorbutton == "") {
cursorbutton = "X";
removeMovieClip("arrow");
Mouse.show();
} else {
attachMovie("arrow", "arrow", 10000);
Mouse.hide();
startDrag ("arrow", true);
cursorbutton = "";
_global.background = 1;
}
}
Symbol 1088 Button
on (release) {
Set("plugresult:loadedplugs", "LOADING PLEASE WAIT...");
loadVariablesNum (plugin add "trdtxt.fbm", 0);
loadVariablesNum (plugin add "shipnames.fbm", 0);
loadVariablesNum (plugin add "itemtext.fbm", 0);
loadVariablesNum (plugin add "stations.fbm", 0);
loadVariablesNum (plugin add "planetnames.fbm", 0);
loadVariablesNum (plugin add "missions.fbm", 0);
loadVariablesNum (plugin add "weapons.fbm", 0);
loadVariablesNum (plugin add "planets.fbm", 0);
loadVariablesNum (plugin add "defaults.fbm", 0);
}
Symbol 1090 MovieClip Frame 1
Set("plugresult:loadedplugs", "LOADING PLEASE WAIT...");
if (_root.plugtrdtxt != undefined) {
_root.trdtxt = _root.plugtrdtxt;
_root.plugtrdtxt = undefined;
loadedplugs = loadedplugs + "\rComm Plug Loaded";
}
if (_root.plugshipnames != undefined) {
_root.shipnames = _root.plugshipnames;
_root.plugshipnames = undefined;
loadedplugs = loadedplugs + "\rNames Plug Loaded";
}
if (_root.plugitemtext != undefined) {
_root.itemtext = _root.plugitemtext;
_root.plugitemtext = undefined;
loadedplugs = loadedplugs + "\rObject Data Plug Loaded";
}
if (_root.plugstationdata != undefined) {
_root.stationdata = _root.plugstationdata;
_root.plugstationdata = undefined;
loadedplugs = loadedplugs + "\rStation Plug Loaded";
}
if (_root.plugmapnames != undefined) {
_root.mapnames = _root.plugmapnames;
_root.plugmapnames = undefined;
loadedplugs = loadedplugs + "\rMap Plug Loaded";
}
if (_root.plugmissions != undefined) {
_root.missions = _root.plugmissions;
_root.plugmissions = undefined;
loadedplugs = loadedplugs + "\rMission Plug Loaded";
}
if (_root.plugweaponinfo != undefined) {
_root.weaponinfo = _root.plugweaponinfo;
_root.plugweaponinfo = undefined;
loadedplugs = loadedplugs + "\rWeapon Plug Loaded";
}
if (_root.plugmapnames != undefined) {
_root.mapnames = _root.plugmapnames;
_root.plugmapnames = undefined;
loadedplugs = loadedplugs + "\rMap Plug Loaded";
}
if (_root.plugplanetData != undefined) {
_root.planetData = _root.plugplanetData;
_root.plugplanetData = undefined;
loadedplugs = loadedplugs + "\rPlanet Plug Loaded";
}
if (_root.plugdefaults != undefined) {
_root.defaults = _root.plugdefaults;
_root.plugdefaults = undefined;
loadedplugs = loadedplugs + "\rConstruction Plug Loaded";
}
Symbol 1092 Button
on (release) {
if (qualitybutton == "X") {
qualitybutton = "";
_quality = "High";
} else {
qualitybutton = "X";
_quality = "Medium";
}
}
Symbol 1098 Button
on (release) {
i = 1;
while (i <= 51) {
localprestige[i] = Number(localprestige[i]);
i++;
}
gotoAndStop (109);
itemname = "" + _root.itemdescArray[((playership - 1) * 13) + 1];
itemdesc = ("Hull: " + _root.itemdescArray[((playership - 1) * 13) + 6]) + newline;
itemdesc = itemdesc + (("Shields: " + _root.itemdescArray[((playership - 1) * 13) + 7]) + newline);
if (Number(_root.itemdescArray[((playership - 1) * 13) + 8]) > 25) {
itemdesc = itemdesc + "Propulsion: Warp Drive\r";
} else {
itemdesc = itemdesc + "Propulsion: Impulse Drive\r";
}
itemdesc = itemdesc + ((("Mass: " + (Number(_root.itemdescArray[((playership - 1) * 13) + 3]) * 1500)) + " tons") + newline);
itemdesc = itemdesc + ((("Cargo Capacity: " + _root.itemdescArray[((playership - 1) * 13) + 5]) + " tons") + newline);
Set("shiptype:mytype", playership);
resources = ((((((((("Latinum: " + mylatinum) + newline) + "Deuranium: ") + mydeuranium) + newline) + "Antimatter: ") + myantimatter) + newline) + "Dilithium: ") + mydilithium;
comp3.start();
}
Symbol 1102 Button
on (release) {
gotoAndStop (106);
comp1.start();
}
Symbol 1103 Button
on (release) {
desc = "Non-Aligned Humanoid\r\r Since the separation of the Vulcans from the Earth Empire, many more species have been defecting to independent planets and forming their own neutral governments. Some fear the fall of the Empire and persecution by the Klingons, and others finally feel free enough to protest the historically immoral Imperial policies.\r You begin your journey as an insignificant someone who has saved enough latinum to buy a personal runabout. Most races will leave you alone as you are a neutral party. Consider it a clean slate. But while neutrality may save your skin in the beginning, it will take some tough work to impress any major governments to purchase any serious hardware.\r\r";
race = 1;
race1._alpha = 0;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
_root.mytech[i] = undefined;
localprestige = "x,25,25,20,25,25,100,25,25,25,10,25,50,25,35,10,10,50,50,75,25,25,20,50,10,50,25,25,25,-50,25,25,-50,-50,-100,25,25,25,25,25,25,25,100,25,25,25,25,25,25,25,25,25,0";
localprestige = localprestige.split(",");
playership = 7;
myplanet = 6;
mydeuranium = 0;
myantimatter = 6;
mylatinum = 2500;
comp2.start();
}
Symbol 1104 Button
on (release) {
desc = "Earth Officer\r\r The humans have long been a tyrannical force in the galaxy. Their unyeilding thirst for planetary domination led them to conquer half the quadrant and enslave the population. That was, of course, before the end of the 22nd Century. New reforms in public policy and a government overthrow in 2252 weakened the Empire considerably. To make matters worse their strongest member, the Vulcans, were also in the midst of a social rebellion. Countless internal conflicts arose and the Vulcans were cast out from the Empire in 2307.\r The human civilization soon came under attack by other governments determined to reseat themselves as the number one galactic power. With 8 years of war now behind them, half their territory now lost to the Klingon Empire, the humans are utterly desperate to survive. No longer is it a matter of sustaining their imperial reign, but it is now a struggle to escape total enslavement of their race.\r A lowly officer in a small Sabre Class, your duty is to protect the Empire and establish human dominance.";
race = 2;
race1._alpha = 50;
race2._alpha = 0;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
playership = 6;
mytech[1] = 46;
localprestige = "x,100,75,75,75,75,25,75,75,75,0,25,10,25,25,-50,25,50,50,45,-50,-50,10,15,0,50,25,25,50,-100,25,25,-50,-50,-100,-50,-50,-50,-100,-50,-45,25,100,-50,-50,-50,-100,75,50,50,50,25,0";
localprestige = localprestige.split(",");
myplanet = 1;
mydeuranium = 0;
myantimatter = 5;
mylatinum = 1500;
comp2.start();
}
Symbol 1105 Button
on (release) {
desc = "Klingon Warrior\r\r For centuries the Klingons were slaves to the Earth Empire. As a Warrior Class, the Klingons were primarily a soldier force for Earth's military. Well into the 22nd century the honor-bound race was using all of its resources to support the Empire. In 2252 however, upon the overthrow of the Earth government and a systematic destabilization of their beauracracy, the Klingons seized the opportunity to begin secretly building an armed force for a massive rebellion. In 2357 they launched the first attack, the first of several successful battles.\r The Klingons are a dangerous group, furious from their human oppression and determined to eliminate every last one of them from the galaxy. You are an unknown but determined captain ready to bring glory to the Klingon name. In a small B'Rel Bird of Prey you set out into the galaxy to begin your adventure.";
race = 3;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 0;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
_root.mytech[1] = 47;
localprestige = "x,-100,-50,-50,-50,-50,-50,-50,-50,0,-25,25,25,75,50,75,50,75,25,0,75,25,50,0,75,25,25,75,-25,0,0,-50,-50,-100,75,75,75,75,75,75,0,100,100,75,75,75,10,75,75,75,25,0";
localprestige = localprestige.split(",");
playership = 39;
myplanet = 43;
mydeuranium = 0;
myantimatter = 10;
mylatinum = 1600;
comp2.start();
}
Symbol 1106 Button
on (release) {
desc = "Ferengi Merchant\r\r For centuries the Ferengi have held one thing above all. Profit. Having been successful traders, the Ferengi managed to maintain a distant relationship with the Earth Empire by providing to them goods that no one else could. This allowed them to be free of threat of enslavement and thusly when the Empire began to fall at the sudden emergence of the Klingon military, they only saw a decline in business opportunity as a result.\r Although comparatively a poor Ferengi, you are captain of your own small shuttlecraft. You have a good amount of savings and a knack for sniffing out a good bargain. Your ship is weak and unarmed, but has a considerable cargo hold and durable warp drive for those long trade runs.";
race = 4;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 0;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
_root.mytech[1] = 52;
playership = 18;
localprestige = "x,25,25,25,25,25,50,25,25,25,0,25,50,25,100,50,25,50,-50,25,25,25,25,50,0,-25,25,25,25,-25,25,25,-50,-50,-100,25,25,25,25,25,25,25,100,25,25,25,25,25,50,0,50,25,0";
localprestige = localprestige.split(",");
myplanet = 14;
mydeuranium = 0;
myantimatter = 2;
mylatinum = 2800;
comp2.start();
}
Symbol 1107 Button
on (release) {
desc = "Romulan Soldier\r\r The Romulans have been notoriously xenophobic since the dawn of time. They have kept out of the political and military problems in the galaxy. Generally they were left alone by the humans, and have no interest in how the war ends. They have very little in the way of ships or power and are considered inconsequential by most. Rumors persist of Ferengi traders who have seen massive, powerful ships in Romulan space...but of course no one pays serious attention to rumors.\r As a Romulan you are weary of other races. But you also feel that the isolationism that your fellow people have kept for so long has grown old and tiresome. You long to explore the galaxy and see what you can make of yourself. So with a small Scout you set off into the unknown, ready to make a name for your people.";
race = 5;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 0;
race6._alpha = 50;
race7._alpha = 50;
playership = 29;
_root.mytech[1] = 51;
localprestige = "x,25,25,25,25,25,25,25,25,25,0,20,50,25,75,75,10,50,75,50,0,10,25,25,0,75,25,25,25,-50,75,100,-50,-50,-100,25,25,25,25,25,25,50,25,100,25,25,25,25,50,25,25,25,25,0";
localprestige = localprestige.split(",");
myplanet = 31;
mydeuranium = 0;
myantimatter = 2;
mylatinum = 1800;
comp2.start();
}
Symbol 1108 Button
on (release) {
desc = "Vulcan Explorer\r\r The Vulcans have long been the close allies of the humans. In 2125 they helped found the Earth Empire, choosing in their logic to remain equals in power but subordinates in military might. However all of Vulcan changed considerably when a new faction emerged, one that emphasized peace and passivity. This new philosophy spread quickly, and a new age was declared. This infuriated the humans, who although had just gone through a serious change in government still wanted power and control above all else. For this reason the Vulcans were exiled from Earth Empire's territory. The Vulcans chose to disarm completely and isolate themselves on their homeworld. Though they are heavily involved in galactic diplomacy and education, they do not equip their ships or their stations with weapons of any kind. Even so, there are many neighboring species who consider the Vulcans as allies and will protect them if the need arose.\r While not well armed, the large Vulcan starship you command is fast and sleek. You are somewhat poor, since Vulcans have little interest in money, but you do have substantial resources.";
race = 6;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 0;
race7._alpha = 50;
playership = 25;
_root.mytech[1] = 50;
localprestige = "x,10,15,15,15,15,75,15,15,15,0,15,100,50,75,100,25,50,75,50,25,25,25,75,25,100,25,25,0,-20,-25,-25,-50,-50,-100,20,25,25,25,25,25,25,100,25,25,25,25,100,25,25,20,25,0";
localprestige = localprestige.split(",");
myplanet = 12;
mydeuranium = 0;
myantimatter = 10;
mylatinum = 1500;
comp2.start();
}
Symbol 1109 Button
on (release) {
desc = "Cardassian Minion\r\r The Cardassians were involved in a massive arms race with the Klingons to overthrow the Earth Empire. For some unknown reason however the Cardassians stopped their campaign and allowed the Klingons to attack the humans on their own. Since then the Cardassians have kept to themselves with little interest in the war, a very suspicious position considering their hatred for the humans. You are a pathetic minion of the Cardassian Order, but you have earned enough latinum to buy yourself a promotion to Hideki Gul, the lowest of ship captains.";
race = 7;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 0;
_root.mytech[1] = 48;
localprestige = "x,25,25,20,25,25,50,25,25,25,10,25,50,25,35,10,10,50,50,75,25,25,20,50,10,50,25,25,25,-50,25,25,-50,-50,-100,25,25,25,25,25,25,25,25,25,25,25,25,-50,100,100,100,25";
localprestige = localprestige.split(",");
playership = 16;
myplanet = 50;
mydeuranium = 0;
myantimatter = 10;
mylatinum = 2100;
comp2.start();
}
Symbol 1110 Button
on (release) {
if (Key.isDown(16)) {
desc = "Cardassian Gul\r\r The Cardassians were involved in a massive arms race with the Klingons to overthrow the Earth Empire. For some unknown reason however the Cardassians stopped their campaign and allowed the Klingons to attack the humans on their own. Since then the Cardassians have kept to themselves with little interest in the war, a very suspicious position considering their hatred for the humans. You are a Gul, in command of a powerful Galor Class warship.";
race = 1;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
localprestige = "x,25,25,20,25,25,50,25,25,25,10,25,50,25,35,10,10,50,50,75,25,25,20,50,10,50,25,25,25,-50,25,25,-50,-50,-100,25,25,25,25,25,25,25,25,25,25,25,25,-50,100,100,100,25";
localprestige = localprestige.split(",");
playership = 31;
myplanet = 50;
mydeuranium = 500;
myantimatter = 15;
mylatinum = 10000;
}
}
Symbol 1111 Button
on (release) {
if (Key.isDown(16)) {
desc = "Dominion Soldier\r\r Years ago the Dominion attempted to take over the Alpha Quadrant, sending its fleet through the Bajoran Wormhole from the Gamma Quadrant. However their plan failed as they were no match for the superior arms of the Earth Empire. The Dominion fleet was driven to a small uninhabited system called 'Blender', where a few survivors remain attempting to regain their strength. You are in command of a small Jem'Haddar fighter, the only ship type remaining after the devistation from the humans. The entire galaxy loathes you. Good luck.";
race = 1;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
localprestige = "x,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,100,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,100,100,100,-50";
localprestige = localprestige.split(",");
playership = 30;
myplanet = 29;
mydeuranium = 500;
myantimatter = 15;
mylatinum = 10000;
}
}
Symbol 1112 Button
on (release) {
if (Key.isDown(16)) {
desc = "...\r\r Resistance is Futile.";
race = 8;
race1._alpha = 50;
race2._alpha = 50;
race3._alpha = 50;
race4._alpha = 50;
race5._alpha = 50;
race6._alpha = 50;
race7._alpha = 50;
localprestige = "x,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-50,-100,-100,100,-50";
localprestige = localprestige.split(",");
playership = 44;
myplanet = 34;
mydeuranium = 999999 /* 0x0F423F */;
myantimatter = 50;
mylatinum = 999999 /* 0x0F423F */;
}
}
Symbol 1115 Button
on (release) {
stopAllSounds();
_root.govtArray[16] = mygovtname;
var i = 1;
while (i <= 6) {
var x = SharedObject.getLocal("gameslot" add i);
if (x.data.names == undefined) {
_root.gamename = "gameslot" add i;
i = 10;
}
i++;
}
if (i >= 10) {
gotoAndPlay (111);
comp2.start();
} else {
itemdesc = "Error: No Open Game Slots. Go to 'Play Saved' menu and erase a saved game slot, then you can begin a new game.";
}
}
Symbol 1117 Button
on (release) {
gotoAndStop (108);
comp2.start();
}
Symbol 1131 Button
on (release) {
gotoAndStop (107);
}
Symbol 1156 Button
on (release) {
if (save1 != "Empty") {
var x = SharedObject.getLocal("gameslot1");
_root.gamename = "gameslot1";
loaded = x.data.names;
}
}
on (rollOver) {
infotext = "Click to load this game...then click 'Play Saved' to play it.";
}
on (rollOut) {
infotext = "";
}
Symbol 1158 Button
on (release) {
stopAllSounds();
loadsaved();
gotoAndPlay (111);
comp2.start();
}
Symbol 1159 Button
on (release) {
gotoAndStop (106);
}
Symbol 1161 Button
on (release) {
if ((save1 != "Empty") and Key.isDown(16)) {
var x = SharedObject.getLocal("gameslot1");
x.data.names = undefined;
x.flush();
var x = SharedObject.getLocal("gameslot1");
if (x.data.names == undefined) {
save1 = "Empty";
}
}
}
on (rollOver) {
infotext = "Hold Shift and Click to delete this game...";
}
on (rollOut) {
infotext = "";
}
Symbol 1166 Button
on (release) {
if (save2 != "Empty") {
var x = SharedObject.getLocal("gameslot2");
_root.gamename = "gameslot2";
loaded = x.data.names;
}
}
on (rollOver) {
infotext = "Click to load this game...then click 'Play Saved' to play it.";
}
on (rollOut) {
infotext = "";
}
Symbol 1167 Button
on (release) {
if ((save2 != "Empty") and Key.isDown(16)) {
var x = SharedObject.getLocal("gameslot2");
x.data.names = undefined;
x.flush();
var x = SharedObject.getLocal("gameslot2");
if (x.data.names == undefined) {
save2 = "Empty";
}
}
}
on (rollOver) {
infotext = "Hold Shift and Click to delete this game...";
}
on (rollOut) {
infotext = "";
}
Symbol 1168 Button
on (release) {
if ((save3 != "Empty") and Key.isDown(16)) {
var x = SharedObject.getLocal("gameslot3");
x.data.names = undefined;
x.flush();
var x = SharedObject.getLocal("gameslot3");
if (x.data.names == undefined) {
save3 = "Empty";
}
}
}
on (rollOver) {
infotext = "Hold Shift and Click to delete this game...";
}
on (rollOut) {
infotext = "";
}
Symbol 1169 Button
on (release) {
if ((save4 != "Empty") and Key.isDown(16)) {
var x = SharedObject.getLocal("gameslot4");
x.data.names = undefined;
x.flush();
var x = SharedObject.getLocal("gameslot4");
if (x.data.names == undefined) {
save4 = "Empty";
}
}
}
on (rollOver) {
infotext = "Hold Shift and Click to delete this game...";
}
on (rollOut) {
infotext = "";
}
Symbol 1170 Button
on (release) {
if ((save5 != "Empty") and Key.isDown(16)) {
var x = SharedObject.getLocal("gameslot5");
x.data.names = undefined;
x.flush();
var x = SharedObject.getLocal("gameslot5");
if (x.data.names == undefined) {
save5 = "Empty";
}
}
}
on (rollOver) {
infotext = "Hold Shift and Click to delete this game...";
}
on (rollOut) {
infotext = "";
}
Symbol 1171 Button
on (release) {
if ((save6 != "Empty") and Key.isDown(16)) {
var x = SharedObject.getLocal("gameslot6");
x.data.names = undefined;
x.flush();
var x = SharedObject.getLocal("gameslot6");
if (x.data.names == undefined) {
save6 = "Empty";
}
}
}
on (rollOver) {
infotext = "Hold Shift and Click to delete this game...";
}
on (rollOut) {
infotext = "";
}
Symbol 1172 Button
on (release) {
if (save3 != "Empty") {
var x = SharedObject.getLocal("gameslot3");
_root.gamename = "gameslot3";
loaded = x.data.names;
}
}
on (rollOver) {
infotext = "Click to load this game...then click 'Play Saved' to play it.";
}
on (rollOut) {
infotext = "";
}
Symbol 1173 Button
on (release) {
if (save4 != "Empty") {
var x = SharedObject.getLocal("gameslot4");
_root.gamename = "gameslot4";
loaded = x.data.names;
}
}
on (rollOver) {
infotext = "Click to load this game...then click 'Play Saved' to play it.";
}
on (rollOut) {
infotext = "";
}
Symbol 1174 Button
on (release) {
if (save5 != "Empty") {
var x = SharedObject.getLocal("gameslot5");
_root.gamename = "gameslot5";
loaded = x.data.names;
}
}
on (rollOver) {
infotext = "Click to load this game...then click 'Play Saved' to play it.";
}
on (rollOut) {
infotext = "";
}
Symbol 1175 Button
on (release) {
if (save6 != "Empty") {
var x = SharedObject.getLocal("gameslot6");
_root.gamename = "gameslot6";
loaded = x.data.names;
}
}
on (rollOver) {
infotext = "Click to load this game...then click 'Play Saved' to play it.";
}
on (rollOut) {
infotext = "";
}
Symbol 1178 Button
on (release) {
nextFrame();
}
Symbol 1179 Button
on (release) {
gotoAndStop (106);
comp1.start();
}
Symbol 1184 Button
on (release) {
prevFrame();
}
Symbol 1185 Button
on (release) {
nextFrame();
}
Symbol 1260 MovieClip Frame 1
if (mytype == undefined) {
mytype = 2;
if (_root.myplanet < 20) {
mytype = 2;
}
if ((_root.myplanet >= 20) and (_root.myplanet < 40)) {
mytype = 3;
}
if ((_root.myplanet >= 40) and (_root.myplanet < 50)) {
mytype = 4;
}
if (_root.myplanet >= 50) {
mytype = 5;
}
}
if (_global.background == 0) {
mytype = 1;
gotoAndStop(mytype);
}
gotoAndStop(mytype);
Symbol 1260 MovieClip Frame 2
gotoAndStop(mytype);
Symbol 1260 MovieClip Frame 3
gotoAndStop(mytype);
Symbol 1260 MovieClip Frame 4
gotoAndStop(mytype);
Symbol 1260 MovieClip Frame 5
gotoAndStop(mytype);
Symbol 1263 MovieClip Frame 1
if (_root.speed != 0) {
_x = (_x + (_root.locx / 20));
_y = (_y + (_root.locy / 20));
}
if (mytype == undefined) {
mytype = 1;
}
if (_global.background == 0) {
mytype = 2;
gotoAndStop(mytype);
}
gotoAndPlay(mytype);
Symbol 1263 MovieClip Frame 2
gotoAndPlay(mytype);
Symbol 1292 MovieClip Frame 1
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 2
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 3
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 4
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 5
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 6
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 7
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 8
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 9
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 10
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 11
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1292 MovieClip Frame 12
if (mytype == undefined) {
mytype = 1;
}
gotoAndPlay(mytype);
if (_root.speed != 0) {
_x = (_x + _root.locx);
_y = (_y + _root.locy);
}
Symbol 1305 MovieClip Frame 1
gotoAndPlay(mydist);
Symbol 1305 MovieClip Frame 2
gotoAndPlay(mydist);
Symbol 1305 MovieClip Frame 3
gotoAndPlay(mydist);
Symbol 1305 MovieClip Frame 4
gotoAndPlay(mydist);
Symbol 1305 MovieClip Frame 5
gotoAndPlay(mydist);
Symbol 1305 MovieClip Frame 6
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1305 MovieClip Frame 7
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1305 MovieClip Frame 8
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1305 MovieClip Frame 9
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1305 MovieClip Frame 10
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1305 MovieClip Frame 11
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1305 MovieClip Frame 13
if ((((xdist < 494) or (ydist < 372)) or (xdist > 590)) or (ydist > 440)) {
gotoAndPlay (12);
} else {
gotoAndPlay(mydist);
}
Symbol 1314 Button
on (release) {
gotoAndPlay (156);
}
Symbol 1321 Button
on (release) {
gotoAndPlay (184);
}
on (rollOver) {
reincarnate._alpha = 0;
}
on (rollOut) {
reincarnate._alpha = 50;
}