Frame 1
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
setProperty("percentloadedbox", _xscale , 100 - _root.percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Frame 3
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
setProperty("percentloadedbox", _xscale , _root.percentLoaded);
Frame 4
if (_root.percentLoaded == 100) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Frame 5
stopAllSounds();
stop();
soundbeep = new Sound(this);
soundbeep.attachSound("breath");
soundbeep.start(0, 99);
myLSO = SharedObject.getLocal("flashwars");
newgamebutton._alpha = 50;
playsavedbutton._alpha = 50;
instructionsbutton._alpha = 50;
futbutton._alpha = 50;
futbutton._x = -100;
if (myLSO.data.playername == undefined) {
title = "Welcome, New Player";
erase._alpha = 0;
} else {
title = ((("Welcome back, Captain " + myLSO.data.playername) + " of the ") + myLSO.data.playership) + ".";
erase._alpha = 50;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 5;
x = x - 5;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 15;
x = x - 15;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Instance of Symbol 138 MovieClip in Frame 5
onClipEvent (enterFrame) {
x = _x;
y = _y;
y = y + 2;
x = x - 2;
if (_x < 0) {
x = 500;
}
if (_y > 450) {
y = 0;
}
_x = x;
_y = y;
}
Frame 8
shipdesctype = 18;
stop();
Frame 10
stop();
if (leveleas >= 1) {
setProperty("eas1", _alpha , 100);
}
if (leveleas >= 2) {
setProperty("eas2", _alpha , 100);
}
if (leveleas >= 3) {
setProperty("eas3", _alpha , 100);
}
if (leveleas >= 4) {
setProperty("eas4", _alpha , 100);
}
if (leveleas >= 5) {
setProperty("eas5", _alpha , 100);
}
if (leveleas >= 6) {
setProperty("eas6", _alpha , 100);
}
if (leveleas >= 7) {
setProperty("eas7", _alpha , 100);
}
if (leveleas >= 8) {
setProperty("eas8", _alpha , 100);
}
if (leveleas >= 9) {
setProperty("eas9", _alpha , 100);
}
Frame 12
stop();
if (select_ship != 15) {
select_ship = 1;
}
select_base = 1;
select_enemy = 1;
enemylevel = 1;
Instance of Symbol 278 MovieClip in Frame 12
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 16
if (custombodytype == undefined) {
custombodytype = 1;
}
if (customwingtype == undefined) {
customwingtype = 1;
}
if (customnosetype == undefined) {
customnosetype = 1;
}
if (customspecial == undefined) {
customspecial = 1;
}
if (customweapon1 == undefined) {
customweapon1 = 1;
}
if (customweapon2 == undefined) {
customweapon2 = 1;
}
if (custom_mass == undefined) {
custom_mass = 100;
}
if (custom_hull == undefined) {
custom_hull = 100;
}
if (custom_shields == undefined) {
custom_shields = 100;
}
if (custom_speed == undefined) {
custom_speed = 5;
}
if (custom_cargo == undefined) {
custom_cargo = 500;
}
if (custom_rate1 == undefined) {
custom_rate1 = 5;
}
if (custom_rate2 == undefined) {
custom_rate2 = 5;
}
setProperty("custom_ship", _xscale , custom_mass);
setProperty("custom_ship", _yscale , custom_mass);
Instance of Symbol 117 MovieClip "custom_ship" in Frame 16
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Frame 20
function loadgame() {
Set("starbase:d1", 0);
Set("starbase:d2", 0);
playership = myLSO.data.playership;
playername = myLSO.data.playername;
customname = myLSO.data.customname;
step = myLSO.data.era;
def = myLSO.data.ship;
d1 = myLSO.data.d1;
d2 = myLSO.data.d2;
Set("starbase:d1", d1);
Set("starbase:d2", d2);
_global.abuilt = 0;
_global.xbuilt = 0;
_global.ybuilt = 0;
_global.vbuilt = 0;
_global.fbuilt = 0;
_global.mbuilt = 0;
_global.cbuilt = 0;
_global.x2built = 0;
_global.alost = 0;
_global.xlost = 0;
_global.ylost = 0;
_global.vlost = 0;
_global.mlost = 0;
_global.flost = 0;
_global.clost = 0;
_global.x2lost = 0;
_global.gcollect = 0;
_global.mcollect = 0;
_global.gaicollect = 0;
_global.maicollect = 0;
_global.tfbuilt = 0;
_global.tibuilt = 0;
_global.tbbuilt = 0;
_global.lsbuilt = 0;
_global.sdbuilt = 0;
_global.ssdbuilt = 0;
_global.tflost = 0;
_global.tilost = 0;
_global.tblost = 0;
_global.lslost = 0;
_global.sdlost = 0;
_global.ssdlost = 0;
if (myLSO.data.fship0 != undefined) {
fshiptype[0] = myLSO.data.fship0;
}
if (myLSO.data.fship1 != undefined) {
fshiptype[1] = myLSO.data.fship1;
}
if (myLSO.data.fship2 != undefined) {
fshiptype[2] = myLSO.data.fship2;
}
if (myLSO.data.fship3 != undefined) {
fshiptype[3] = myLSO.data.fship3;
}
if (myLSO.data.fship4 != undefined) {
fshiptype[4] = myLSO.data.fship4;
}
if (myLSO.data.fship5 != undefined) {
fshiptype[5] = myLSO.data.fship5;
}
if (myLSO.data.fship6 != undefined) {
fshiptype[6] = myLSO.data.fship6;
}
if (myLSO.data.fship7 != undefined) {
fshiptype[7] = myLSO.data.fship7;
}
if (myLSO.data.fship8 != undefined) {
fshiptype[8] = myLSO.data.fship8;
}
if (myLSO.data.fship9 != undefined) {
fshiptype[9] = myLSO.data.fship9;
}
if (myLSO.data.fship10 != undefined) {
fshiptype[10] = myLSO.data.fship10;
}
if (myLSO.data.fship11 != undefined) {
fshiptype[11] = myLSO.data.fship11;
}
if (myLSO.data.fship12 != undefined) {
fshiptype[12] = myLSO.data.fship12;
}
if (myLSO.data.fship13 != undefined) {
fshiptype[13] = myLSO.data.fship13;
}
if (myLSO.data.fship14 != undefined) {
fshiptype[14] = myLSO.data.fship14;
}
if (myLSO.data.fship15 != undefined) {
fshiptype[15] = myLSO.data.fship15;
}
if (myLSO.data.fship16 != undefined) {
fshiptype[16] = myLSO.data.fship16;
}
if (myLSO.data.fship17 != undefined) {
fshiptype[17] = myLSO.data.fship17;
}
if (myLSO.data.fship18 != undefined) {
fshiptype[18] = myLSO.data.fship18;
}
if (myLSO.data.fship19 != undefined) {
fshiptype[19] = myLSO.data.fship19;
}
if (myLSO.data.fship20 != undefined) {
fshiptype[20] = myLSO.data.fship20;
}
i = 0;
while (i < 20) {
if (fshiptype[i] != undefined) {
buildtype = fshiptype[i];
createfriendly();
}
i++;
}
setProperty("estarbase", _x , myLSO.data.estarbasex);
setProperty("estarbase", _y , myLSO.data.estarbasey);
ebuild_locx = getProperty("estarbase", _x);
ebuild_locy = getProperty("estarbase", _y);
if (_global.make_ssd == 1) {
myLSO.data.make_ssd = 1;
}
if (myLSO.data.make_ssd == 1) {
_global.make_ssd = 1;
}
level = myLSO.data.level;
leveleas = myLSO.data.leveleas;
tot_enemies = 0;
i = 0;
if (myLSO.data.totenemies != undefined) {
while (i < myLSO.data.totenemies) {
createnewenemy();
i++;
}
}
loadship();
loadlevel();
savegame();
alert = 3;
_root.comm = "GAME LOADED...";
}
function savegame() {
myLSO.data.ship = def;
myLSO.data.era = step;
myLSO.data.d1 = d1;
myLSO.data.d2 = d2;
myLSO.data.fship0 = undefined;
myLSO.data.fship1 = undefined;
myLSO.data.fship2 = undefined;
myLSO.data.fship3 = undefined;
myLSO.data.fship4 = undefined;
myLSO.data.fship5 = undefined;
myLSO.data.fship6 = undefined;
myLSO.data.fship7 = undefined;
myLSO.data.fship8 = undefined;
myLSO.data.fship9 = undefined;
myLSO.data.fship10 = undefined;
myLSO.data.fship11 = undefined;
myLSO.data.fship12 = undefined;
myLSO.data.fship13 = undefined;
myLSO.data.fship14 = undefined;
myLSO.data.fship15 = undefined;
myLSO.data.fship16 = undefined;
myLSO.data.fship17 = undefined;
myLSO.data.fship18 = undefined;
myLSO.data.fship19 = undefined;
myLSO.data.fship20 = undefined;
if (fshipslot[0] != "") {
myLSO.data.fship0 = fshiptype[0];
}
if (fshipslot[1] != "") {
myLSO.data.fship1 = fshiptype[1];
}
if (fshipslot[2] != "") {
myLSO.data.fship2 = fshiptype[2];
}
if (fshipslot[3] != "") {
myLSO.data.fship3 = fshiptype[3];
}
if (fshipslot[4] != "") {
myLSO.data.fship4 = fshiptype[4];
}
if (fshipslot[5] != "") {
myLSO.data.fship5 = fshiptype[5];
}
if (fshipslot[6] != "") {
myLSO.data.fship6 = fshiptype[6];
}
if (fshipslot[7] != "") {
myLSO.data.fship7 = fshiptype[7];
}
if (fshipslot[8] != "") {
myLSO.data.fship8 = fshiptype[8];
}
if (fshipslot[9] != "") {
myLSO.data.fship9 = fshiptype[9];
}
if (fshipslot[10] != "") {
myLSO.data.fship10 = fshiptype[10];
}
if (fshipslot[11] != "") {
myLSO.data.fship11 = fshiptype[11];
}
if (fshipslot[12] != "") {
myLSO.data.fship12 = fshiptype[12];
}
if (fshipslot[13] != "") {
myLSO.data.fship13 = fshiptype[13];
}
if (fshipslot[14] != "") {
myLSO.data.fship14 = fshiptype[14];
}
if (fshipslot[15] != "") {
myLSO.data.fship15 = fshiptype[15];
}
if (fshipslot[16] != "") {
myLSO.data.fship16 = fshiptype[16];
}
if (fshipslot[17] != "") {
myLSO.data.fship17 = fshiptype[17];
}
if (fshipslot[18] != "") {
myLSO.data.fship18 = fshiptype[18];
}
if (fshipslot[19] != "") {
myLSO.data.fship19 = fshiptype[19];
}
if (fshipslot[20] != "") {
myLSO.data.fship20 = fshiptype[20];
}
myLSO.data.totenemies = tot_enemies;
myLSO.data.estarbasex = getProperty("estarbase", _x);
myLSO.data.estarbasey = getProperty("estarbase", _y);
myLSO.data.level = level;
myLSO.data.leveleas = leveleas;
myLSO.data.flush();
}
function loadlevel() {
e = 1000;
e2 = 5000;
Set("starbase:stationpic:type", 1);
Set("estarbase:stationpic:type", level);
if (level == 1) {
infotext = "CHAPTER 1: PRACTICE\r";
infotext = infotext + " USE THIS LEVEL TO PRACTICE YOUR SKILLS IN COMBAT AND STRATEGIC BUILDING. TO COMPLETE THE LEVEL, DESTROY THE SMALL FLEET OF TIE FIGHTERS AND THEIR SMALL WEAK BASE. YOU CAN BUILD ANYTHING UP TO A Y-WING IN THE PRACTICE LEVEL.";
e = 2000;
gotoAndStop (22);
}
if (level == 2) {
infotext = "CHAPTER 2: THE FIGHT FOR FREEDOM\r";
infotext = infotext + " THE REBELLION HAS PROVED ITSELF A WORTHY OPPONENT TO THE EMPIRE. YOUR FIRST MISSION IS TO CRIPPLE THE SUPPLY LINES ALONG A MAJOR TRADE ROUTE. YOU MUST DESTROY A SMALL TRADE STATION BUILT INSIDE AN ASTEROID. WATCH OUT FOR THEIR DEFENSE FLEET.";
e = 5000;
gotoAndStop (22);
}
if (level == 3) {
infotext = "CHAPTER 3: HOW THE MIGHTY HAVE FALLEN\r";
infotext = infotext + " THE REBELLION HAS DONE WELL IN GETTING THE ATTENTION OF THE EMPIRE. REBEL COMM STATIONS HAS PICKED UP A DISTRESS CALL FROM A DISABLED IMPERIAL STAR DESTROYER. WE MUST USE THIS OPPORTUNITY TO DESTROY IT. BUT BE CAREFUL, STAR DESTROYERS CARRY A HEAVY TIE FLEET.";
e = 3000;
gotoAndStop (22);
}
if (level == 4) {
infotext = "CHAPTER 4: THE MILLENIUM FALCON\r";
infotext = infotext + " THE FLEET NOW HAS THE ABILITY TO BUILD FALCON CLASS BATTLESHIPS. REBEL COMMAND WANTS TO TEST THESE NEW SHIPS IN COMBAT. BUILD THE FALCON CLASS AND DESTROY SMALL IMPERIAL TIE FIGHTER CARRIER.";
e = 8000;
gotoAndStop (22);
}
if (level == 5) {
infotext = "CHAPTER 5: THE ART OF WAR\r";
infotext = infotext + " WITH THE ADDITION OF THE FALCON CLASS TO THE FLEET, THE REBELS BELIEVE WE ARE READY TO BEGIN ASSAULTS ON IMPERIAL STAR DESTROYERS. THE EMPIRE HAS A HEAVILY GUARDED SHIPYARD THAT MUST BE DESTROYED. GOOD LUCK.";
e = 10000;
gotoAndStop (22);
}
if (level == 6) {
infotext = "CHAPTER 6: THE EMPIRE'S NEW WEAPON\r";
infotext = infotext + " A SHADOW HAS FALLEN OVER THE GALAXY. THE EMPIRE HAS JUST REVEALED A SECRET WEAPON THEY HAVE BEEN BUILDING, AN ENORMOUS BATTLESTATION CAPABLE OF DESTROYING ENTIRE PLANETS. BUT WE HAVE LEARNED THAT IT IS NOT YET COMPLETE. IF YOU CAN DESTROY THE BASE, IT WOULD DEVISTATE THE EMPIRE'S HOLD ON THE GALAXY. WE ARE ALL COUNTING ON YOU, MAY THE FORCE BE WITH YOU.";
e = 12000;
gotoAndStop (22);
}
if (level == 7) {
infotext = "CHAPTER 7: THE EMPEROR'S FLAGSHIP\r";
infotext = infotext + " AFTER THE DESTRUCTION OF THE DEATHSTAR BATTLESTATION, THE EMPEROR HAS TURNED ALL HIS ATTENTION AND RESOURCES INTO CRUSHING THE POWERFUL REBEL ALLIANCE. THE IMPERIAL FLEET HAS GATHERED AT DELPI 5, A PLANET DEEP INSIDE ENEMY TERRITORY. IT IS RUMORED THAT SUPER STAR DESTROYERS ARE ALSO GATHERED THERE.";
e = 1000000 /* 0x0F4240 */;
gotoAndStop (22);
}
if (level == 8) {
infotext = "CHAPTER 8: CHANGING THE TIDES OF WAR\r";
infotext = infotext + " WITH THE EMPIRE CRUMBLING AND ITS FLEET DEVISTATED BY THE REBELS, THE EMPIRE HAS FALLEN DEAFLY QUIET. RUMORS SPREAD OF PLANS FOR A FINAL GREAT OFFENSIVE. FOR NOW, YOU HAVE ORDERS TO DESTROY A LARGE COMMUNICATIONS ARRAY, WHICH WOULD ELIMINATE THE IMEPRIAL FLEET'S COMMS. BE CAREFUL, AS IT IS HEAVILY GUARDED.";
e = 1500;
gotoAndStop (22);
}
if (level == 9) {
infotext = "CHAPTER 9: THE EMPIRE'S LAST STAND\r";
infotext = infotext + " YOU ARE ABOUT TO CELEBRATE THE FALL OF THE EMPIRE WHEN A MESSAGE IS RECEIVED. THE EMPIRE HAS BEEN SECRETLY CONSTRUCTING A SECOND DEATH STAR...IT IS THREE TIMES THE SIZE OF THE ONE THE REBELS DESTROYED, WITH A FULL FLEET INCLUDING A SUPER STAR DESTROYER SUPPORTING IT. AND, THE STATION IS FULLY OPERATIONAL. WITH THIS POWER, THE EMPIRE COULD REGAIN ITS HOLD ON THE GALAXY.";
e = 50000;
gotoAndStop (22);
}
Set("estarbase:myenergy", e);
Set("estarbase:totenergy", e);
Set("starbase:myenergy", e2);
Set("starbase:damage", 0);
setProperty("starbase", _x , 100);
setProperty("starbase", _y , 100);
savegame();
}
function loadship() {
if (def == 1) {
tot_energy = 2000;
tot_hull = 100;
tot_shields = 50;
tot_phaser = 0;
tot_cargo = 400;
tot_turn = 11;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 37) {
tot_energy = 3500;
tot_hull = 300;
tot_shields = 300;
tot_phaser = 75;
tot_cargo = 200;
tot_turn = 13;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 289) {
tot_energy = 3500;
tot_hull = 300;
tot_shields = 300;
tot_phaser = 75;
tot_cargo = 200;
tot_turn = 9;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 73) {
tot_energy = 4000;
tot_hull = 700;
tot_shields = 700;
tot_phaser = 100;
tot_cargo = 1000;
tot_turn = 10;
tot_speed = -9;
tot_nettorps = 0;
}
if (def == 109) {
tot_energy = 4000;
tot_hull = 300;
tot_shields = 300;
tot_phaser = 125;
tot_cargo = 50;
tot_turn = 12;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 145) {
tot_energy = 4500;
tot_hull = 1500;
tot_shields = 1500;
tot_phaser = 150;
tot_cargo = 5000;
tot_speed = -7;
tot_turn = 2;
tot_nettorps = 0;
}
if (def == 181) {
tot_energy = 5000;
tot_hull = 400;
tot_shields = 400;
tot_phaser = 200;
tot_cargo = 400;
tot_turn = 9;
tot_speed = -8;
tot_nettorps = 0;
}
if (def == 217) {
tot_energy = 9000;
tot_hull = 600;
tot_shields = 600;
tot_phaser = 300;
tot_cargo = 800;
tot_turn = 5;
tot_speed = -8;
tot_nettorps = 0;
}
if (def == 253) {
tot_energy = 8000;
tot_hull = 400;
tot_shields = 400;
tot_phaser = 400;
tot_cargo = 300;
tot_turn = 15;
tot_speed = -8;
tot_nettorps = 0;
}
if (def == 411) {
tot_energy = 8000;
tot_hull = 2000;
tot_shields = 2000;
tot_phaser = 400;
tot_cargo = 10000;
tot_turn = 2;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 380) {
tot_energy = 10000;
tot_hull = 5000;
tot_shields = 5000;
tot_phaser = 400;
tot_cargo = 1000;
tot_turn = 10;
tot_speed = -10;
tot_nettorps = 0;
}
if (def == 475) {
tot_energy = 5000;
tot_hull = 300;
tot_shields = 300;
tot_phaser = 400;
tot_cargo = 0;
tot_turn = 13;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 443) {
tot_energy = 9000;
tot_hull = 600;
tot_shields = 600;
tot_phaser = 400;
tot_cargo = 0;
tot_turn = 9;
tot_speed = -5;
tot_nettorps = 0;
}
if (def == 507) {
tot_energy = 7000;
tot_hull = 700;
tot_shields = 700;
tot_phaser = 400;
tot_cargo = 0;
tot_turn = 9;
tot_speed = -10;
tot_nettorps = 0;
}
if (def == 325) {
tot_energy = 10000;
tot_hull = 3000;
tot_shields = 3000;
tot_phaser = 400;
tot_cargo = 0;
tot_turn = 1;
tot_speed = -3;
tot_nettorps = 0;
}
if (def == 539) {
customwingtype = myLSO.data.customwingtype;
customnosetype = myLSO.data.customnosetype;
custombodytype = myLSO.data.custombodytype;
custom_rate1 = myLSO.data.custom_rate1;
custom_rate2 = myLSO.data.custom_rate2;
tot_energy = 10000;
tot_hull = myLSO.data.custom_hull;
tot_shields = myLSO.data.custom_shields;
tot_phaser = 400;
tot_cargo = myLSO.data.custom_cargo;
tot_turn = 5;
tot_speed = myLSO.data.custom_speed * -1;
tot_nettorps = 0;
setProperty("defiant", _xscale , myLSO.data.custom_mass);
setProperty("defiant", _yscale , myLSO.data.custom_mass);
}
torpedoes = tot_nettorps;
energy = tot_energy;
shields = 0;
speed = 0;
shieldstrength = tot_shields;
hull = tot_hull;
sensors = 1;
engines = 1;
torplaunchers = 1;
phasers = 1;
repair = 0;
scale = 50;
}
function translateswap() {
if (swap == 2) {
defchange = 1;
}
if (swap == 11) {
defchange = 37;
}
if (swap == 65) {
defchange = 73;
}
if (swap == 56) {
defchange = 145;
}
if (swap == 29) {
defchange = 181;
}
if (swap == 47) {
defchange = 217;
}
if (swap == 38) {
defchange = 253;
}
if (swap == 83) {
defchange = 411;
}
if (swap == 74) {
defchange = 109;
}
if (swap == 20) {
defchange = 289;
}
if (swap == 94) {
defchange = 475;
}
if (swap == 103) {
defchange = 443;
}
if (swap == 112) {
defchange = 507;
}
if (swap == 121) {
defchange = 325;
}
if (def == 1) {
swap = 2;
}
if (def == 37) {
swap = 11;
}
if (def == 73) {
swap = 65;
}
if (def == 145) {
swap = 56;
}
if (def == 181) {
swap = 29;
}
if (def == 217) {
swap = 47;
}
if (def == 380) {
swap = 1;
}
if (def == 253) {
swap = 38;
}
if (def == 411) {
swap = 83;
}
if (def == 109) {
swap = 74;
}
if (def == 325) {
swap = 121;
}
if (def == 475) {
swap = 94;
}
if (def == 507) {
swap = 112;
}
if (def == 443) {
swap = 103;
}
if (def == 289) {
swap = 20;
}
def = defchange;
loadship();
}
function updatebars() {
shields = 0;
bar = (shields / tot_shields) * 100;
setProperty("shieldsbar", _xscale , 100 - bar);
speedmenu = (Math.abs(_root.speed) / Math.abs(_root.tot_speed)) * 100;
setProperty("speedbar", _xscale , speedmenu);
Set("speedbar:mycolor", 1);
bar = (hull / tot_hull) * 100;
if (bar > 0) {
setProperty("hullbar", _xscale , 100 - bar);
}
if (bar < 0) {
setProperty("hullbar", _xscale , 100);
}
if ((_root.def == 1) or (_root.def == 37)) {
setProperty("damagetorps", _alpha , 0);
} else {
setProperty("damagetorps", _alpha , 100);
}
}
function hit() {
if (shields > 0) {
shieldstrength = shieldstrength - hitstrength;
shields = shieldstrength;
bar = (shields / tot_shields) * 100;
setProperty("shieldsbar", _xscale , 100 - bar);
if (shields < 1) {
shields = 0;
bar = (shields / tot_shields) * 100;
setProperty("shieldsbar", _xscale , 100 - bar);
setProperty("shieldup", _x , -300);
setProperty("shieldup", _y , 100);
comm = "SHIELDS HAVE FAILED!";
}
}
if (shields <= 0) {
hull = hull - hitstrength;
}
bar = (hull / tot_hull) * 100;
if ((bar < 20) and (hull < 50)) {
if ((random(5) == 1) and (engines == 1)) {
comm = "ENGINES HAVE FAILED!";
engines = 2;
setProperty("defiant", _yscale , 100);
speed = 0;
}
if ((random(5) == 1) and (torplaunchers == 1)) {
comm = "TORPEDOES ARE OFFLINE!";
torplaunchers = 2;
}
if ((random(5) == 1) and (phasers == 1)) {
comm = "BLASTERS ARE OFFLINE!";
phaser = 2;
}
if ((random(5) == 1) and (sensors == 1)) {
comm = "LONG RANGE SCANNERS ARE OFFLINE!";
scale = 0;
sensors = 2;
}
}
if (bar > 0) {
setProperty("hullbar", _xscale , 100 - bar);
}
if (bar < 0) {
setProperty("hullbar", _xscale , 100);
}
if (hull <= 0) {
setProperty("damage", _x , -100);
}
}
function dead() {
removeallships();
victory = "DEFEAT";
gotoAndStop (24);
}
function checkenemies() {
v = 0;
x = getProperty("estarbase", _x);
if (x != -99999) {
v = 1;
}
if (level == 7) {
v = 0;
}
i = 0;
while (i < 20) {
if (shipslot[i] != "") {
v = 1;
}
i++;
}
if (v == 0) {
gotoAndStop (24);
victory = "VICTORY";
}
}
function createnewenemy() {
_root.shotname = Number(_root.shotname) + 1;
tot_enemies = tot_enemies + 1;
e = random(6);
if ((e != 1) and (random(2) == 1)) {
e = 0;
}
if ((e > 3) and (random(2) == 1)) {
e = random(4);
}
if ((level < 2) and (e > 0)) {
e = 0;
}
if ((level < 3) and (e > 1)) {
e = random(2);
}
if ((level < 4) and (e > 2)) {
e = random(3);
}
if ((level < 6) and (e > 3)) {
e = random(4);
}
if ((level < 6) and (e > 4)) {
e = random(5);
}
if ((level < 10) and (e > 4)) {
e = random(5);
}
if (level == 4) {
e = 0;
}
if (_global.make_ssd == 1) {
e = 5;
_global.make_ssd = 0;
}
if (e == 0) {
type = 3;
_global.tfbuilt = _global.tfbuilt + 1;
enemyenergy = 300;
}
if (e == 1) {
type = 12;
_global.tibuilt = _global.tibuilt + 1;
enemyenergy = 700;
}
if (e == 2) {
type = 21;
_global.lsbuilt = _global.lsbuilt + 1;
enemyenergy = 800;
}
if (e == 3) {
type = 49;
_global.tbbuilt = _global.tbbuilt + 1;
enemyenergy = 900;
}
if (e == 4) {
type = 30;
_global.sdbuilt = _global.sdbuilt + 1;
enemyenergy = 4000;
}
if (e == 5) {
type = 40;
_global.ssdbuilt = _global.ssdbuilt + 1;
enemyenergy = 10000;
}
duplicateMovieClip ("ship1", "eship" add _root.shotname, _root.shotname);
Set(("eship" add _root.shotname) add ":shiptype", type);
Set(("eship" add _root.shotname) add ":myenergy", enemyenergy);
Set(("eship" add _root.shotname) add ":target", _root.shotname);
i = 0;
while (i < 21) {
if (shipslot[i] == "") {
shipslot[i] = "eship" add _root.shotname;
break;
}
i++;
}
shipx = ebuild_locx;
shipy = ebuild_locy;
if (random(2) == 1) {
shipx = shipx + random(50);
} else {
shipx = shipx - random(50);
}
if (random(2) == 1) {
shipy = shipy + random(50);
} else {
shipy = shipy - random(50);
}
setProperty("eship" add _root.shotname, _rotation , rotation);
setProperty("eship" add _root.shotname, _x , shipx);
setProperty("eship" add _root.shotname, _y , shipy);
_root.shotname = _root.shotname + 1;
duplicateMovieClip ("eblip", "enemyblip" add _root.shotname, _root.shotname);
target = _root.shotname - 1;
Set(("enemyblip" add _root.shotname) add ":target", target);
}
function createfriendly() {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("friendly", "fship" add _root.shotname, _root.shotname);
i = 0;
while (i < 21) {
if (fshipslot[i] == "") {
fshipslot[i] = "fship" add _root.shotname;
fshiptype[i] = buildtype;
Set(("fship" add _root.shotname) add ":my_slot", i);
break;
}
i++;
}
setProperty("fship" add _root.shotname, _rotation , rotation);
setProperty("fship" add _root.shotname, _x , build_locx);
setProperty("fship" add _root.shotname, _y , build_locy);
createname();
if (go_home > 0) {
Set(("fship" add _root.shotname) add ":go_home", 500);
go_home = 0;
}
Set(("fship" add _root.shotname) add ":my_id", "fship" add _root.shotname);
Set(("fship" add _root.shotname) add ":my_name", shipname);
Set(("fship" add _root.shotname) add ":target", _root.shotname);
Set(("fship" add _root.shotname) add ":type", buildtype);
if (buildtype == 2) {
_global.abuilt = _global.abuilt + 1;
}
if (buildtype == 11) {
_global.xbuilt = _global.xbuilt + 1;
}
if (buildtype == 20) {
_global.ybuilt = _global.ybuilt + 1;
}
if (buildtype == 29) {
_global.vbuilt = _global.vbuilt + 1;
}
if (buildtype == 38) {
_global.x2built = _global.x2built + 1;
}
if (buildtype == 47) {
_global.mbuilt = _global.mbuilt + 1;
}
if (buildtype == 56) {
_global.cbuilt = _global.cbuilt + 1;
}
if (buildtype == 65) {
_global.fbuilt = _global.fbuilt + 1;
}
Set(("fship" add _root.shotname) add ":my_destination", 0);
my_blip = _root.shotname + 1;
Set(("fship" add _root.shotname) add ":my_blip", my_blip);
buildtype = 0;
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("fblip", "friendlyblip" add _root.shotname, _root.shotname);
Set(("friendlyblip" add _root.shotname) add ":my_name", shipname);
target = _root.shotname - 1;
Set(("friendlyblip" add _root.shotname) add ":target", target);
}
function removeallships() {
i = 0;
while (i < 10000) {
removeMovieClip("shot" add i);
removeMovieClip("eship" add i);
removeMovieClip("friendlyblip" add i);
removeMovieClip("enemyblip" add i);
removeMovieClip("fship" add i);
removeMovieClip("object" add i);
i++;
}
i = 0;
while (i < 31) {
shipslot[i] = "";
i++;
}
i = 0;
while (i < 31) {
fshipslot[i] = "";
i++;
}
Set("planetblip:target", "");
setProperty("planetblip", _x , -10);
Set("stellarobject:type", "");
}
function makeasteroid() {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("stellarobject", "object" add _root.shotname, _root.shotname);
xy = random(3);
if (xy == 0) {
x = -20;
y = random(420);
}
if (xy == 1) {
x = 570;
y = random(420);
}
if (xy == 2) {
x = random(570);
y = -20;
}
if (xy == 3) {
x = random(570);
y = 420;
}
setProperty("object" add _root.shotname, _x , x);
setProperty("object" add _root.shotname, _y , y);
Set(("object" add _root.shotname) add ":type", random(2) + 1);
}
function createname() {
x = random(32);
if (x == 0) {
shipname = "SARCOPHAGUS";
}
if (x == 1) {
shipname = "VENETIAN";
}
if (x == 2) {
shipname = "VEGAS";
}
if (x == 3) {
shipname = "EPSON";
}
if (x == 4) {
shipname = "STYLUS";
}
if (x == 5) {
shipname = "SUSAN";
}
if (x == 6) {
shipname = "RIVER";
}
if (x == 7) {
shipname = "KARDON";
}
if (x == 8) {
shipname = "HARMAN";
}
if (x == 9) {
shipname = "FALCON";
}
if (x == 10) {
shipname = "CORVETTE";
}
if (x == 11) {
shipname = "SEDONA";
}
if (x == 12) {
shipname = "DAWKINS";
}
if (x == 13) {
shipname = "DARWIN";
}
if (x == 14) {
shipname = "ROTHER";
}
if (x == 15) {
shipname = "ADOBE";
}
if (x == 16) {
shipname = "MOCHA";
}
if (x == 17) {
shipname = "HAYNES";
}
if (x == 18) {
shipname = "KEEDY";
}
if (x == 19) {
shipname = "FARGO";
}
if (x == 20) {
shipname = "MANTICORE";
}
if (x == 21) {
shipname = "EXCALIBUR";
}
if (x == 22) {
shipname = "ESSEX";
}
if (x == 23) {
shipname = "MONITOR";
}
if (x == 24) {
shipname = "AQUINAS";
}
if (x == 25) {
shipname = "GALTUCH";
}
if (x == 26) {
shipname = "FREEDOM";
}
if (x == 27) {
shipname = "IRAQ";
}
if (x == 28) {
shipname = "BUSH";
}
if (x == 29) {
shipname = "KERRY";
}
if (x == 30) {
shipname = "HOUSTONIAN";
}
if (x == 31) {
shipname = "WELLS";
}
}
function firetorps() {
if (_root.step > 2) {
defx = getProperty("defiant", _x);
defy = getProperty("defiant", _y);
torpsound = "torpedo";
if ((torptype == 58) or (torptype == 53)) {
torpsound = "armor";
}
if ((energy > 100) and (torpsaway2 == 0)) {
soundbeep = new Sound(this);
soundbeep.attachSound(torpsound);
soundbeep.start(0, 0);
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("torp", "shot" add _root.shotname, _root.shotname);
rotation = getProperty("defiant", _rotation);
if (step < 6) {
rotation = (rotation = rotation + random(10));
rotation = (rotation = rotation - random(10));
}
if (torptype == 100) {
rotation = rotation + 180;
torptype = 23;
}
if (torptype == 53) {
mines = mines + 1;
}
torpspeed = 20;
if (torptype == 58) {
torpspeed = 5;
}
phasx = Math.sin(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + torpspeed);
phasy = (Math.cos(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + torpspeed)) * -1;
torpsaway2 = 20;
if (def == 217) {
torpsaway2 = 10;
}
if (((def == 181) or (def == 411)) or (def == 145)) {
torpsaway2 = 15;
}
if (def == 289) {
torpsaway2 = 17;
}
if (def == 539) {
torpsaway2 = 11 - custom_rate2;
}
energy = energy - 300;
if (torptype == 53) {
Set(("shot" add _root.shotname) add ":timer", 5000);
}
Set(("shot" add _root.shotname) add ":torptype", torptype);
Set(("shot" add _root.shotname) add ":ymov", phasy);
Set(("shot" add _root.shotname) add ":xmov", phasx);
setProperty("shot" add _root.shotname, _rotation , rotation);
setProperty("shot" add _root.shotname, _x , defx);
setProperty("shot" add _root.shotname, _y , defy);
}
if (energy < 50) {
comm = "INSUFFICIENT ENERGY TO FIRE...";
}
} else {
comm = "WE HAVE NOT YET RESEARCHED TORPEDOES...";
}
}
function firelasers() {
defx = getProperty("defiant", _x);
defy = getProperty("defiant", _y);
if ((((((def != 145) and (def != 380)) and (def != 325)) and (def != 411)) and (torptype != 98)) and (torptype != 99)) {
torpsound = "phas";
if ((energy > 100) and (torpsaway == 0)) {
soundbeep = new Sound(this);
soundbeep.attachSound(torpsound);
soundbeep.start(0, 0);
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("torp", "shot" add _root.shotname, _root.shotname);
rotation = getProperty("defiant", _rotation);
if (step < 6) {
rotation = (rotation = rotation + random(10));
rotation = (rotation = rotation - random(10));
}
if (torptype == 100) {
torptype = 33;
rotation = rotation + 180;
}
phasx = Math.sin(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + 20);
phasy = (Math.cos(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + 20)) * -1;
torpsaway = 3;
if (def == 1) {
torpsaway = 6;
}
if (def == 289) {
torpsaway = 5;
}
if (def == 73) {
torpsaway = 2;
}
if (def == 539) {
torpsaway = 11 - custom_rate1;
}
energy = energy - 50;
Set(("shot" add _root.shotname) add ":torptype", torptype);
Set(("shot" add _root.shotname) add ":ymov", phasy);
Set(("shot" add _root.shotname) add ":xmov", phasx);
setProperty("shot" add _root.shotname, _rotation , rotation);
setProperty("shot" add _root.shotname, _x , defx);
setProperty("shot" add _root.shotname, _y , defy);
}
if (energy < 50) {
comm = "INSUFFICIENT ENERGY TO FIRE...";
}
} else if (((def != 380) and (energy > 100)) and (torpsaway == 0)) {
x = getProperty("estarbase", _x);
y = getProperty("estarbase", _y);
if ((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 300)) {
turrent_target = "estarbase";
}
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
x = getProperty(_root.shipslot[i], _x);
y = getProperty(_root.shipslot[i], _y);
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 300)) and ((y > 0) or (y < 0))) {
turrent_target = _root.shipslot[i];
}
}
i++;
}
if (torptype == 99) {
torptype = 23;
}
if (torptype == 98) {
torptype = 33;
}
energy = energy - 50;
torpsaway = 4;
if ((torptype == 48) or (torptype == 23)) {
torpsaway = 5;
}
if (torptype == 38) {
torpsaway = 7;
}
defx = getProperty(turrent_target, _x);
defy = getProperty(turrent_target, _y);
x = getProperty("defiant", _x);
y = getProperty("defiant", _y);
rotation = getProperty("defiant", _rotation);
z = defx - x;
r = defy - y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > y) {
rotation = 90 - rotation;
} else if (defy < y) {
rotation = 180 - (rotation - 90);
}
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("torp", "shot" add _root.shotname, _root.shotname);
rotation = rotation + 90;
if (torptype == 28) {
torpsound = "phas";
}
if ((torptype == 23) or (torptype == 38)) {
torpsound = "torpedo";
}
soundbeep = new Sound(this);
soundbeep.attachSound(torpsound);
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * 10;
phasy = Math.cos(rotation * (Math.PI/180)) * -10;
Set(("shot" add _root.shotname) add ":torptype", torptype);
Set(("shot" add _root.shotname) add ":ymov", phasy);
Set(("shot" add _root.shotname) add ":xmov", phasx);
setProperty("shot" add _root.shotname, _rotation , rotation);
setProperty("shot" add _root.shotname, _x , x);
setProperty("shot" add _root.shotname, _y , y);
}
if (def == 380) {
i = 0;
defx = getProperty("defiant", _x);
defy = getProperty("defiant", _y);
while (i < 20) {
if ((_root.shipslot[i] != "") or ((Math.abs(x - defx) < 150) and (Math.abs(y - defy) < 150))) {
slot = _root.shipslot[i];
x = getProperty("estarbase", _x);
y = getProperty("estarbase", _y);
if ((Math.abs(x - defx) < 150) and (Math.abs(y - defy) < 150)) {
slot = "estarbase";
}
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((((Math.abs(defx - x) < 200) and (Math.abs(defy - y) < 200)) and (x > 1)) and (_root.phaseraway == 0)) {
_root.phaseraway = 5;
energydraw = 1000;
Set(slot add ":energydraw", energydraw);
Set(slot add ":my_target", "defiant");
_root.energy = _root.energy - 5;
slot = "../" add slot;
Set("line:myx", undefined);
Set("line:target", slot);
soundbeep = new Sound(this);
soundbeep.attachSound("akirphas");
soundbeep.start(0, 0);
}
}
i++;
}
}
}
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("music");
soundbeep.start(0, 99);
shotname = 1;
fshipslot = new Array();
shipslot = new Array();
itemslot = new Array();
fshiptype = new Array();
i = 0;
while (i < 20) {
shipslot[i] = "";
i++;
}
i = 0;
while (i < 20) {
fshipslot[i] = "";
i++;
}
loadgame();
if ((def == 1) or (def == 37)) {
shieldsbutton = "";
} else {
shieldsbutton = "SHIELDS";
}
if (def == 289) {
centerbutton = "ARMOR";
} else {
centerbutton = "";
}
myDate = new Date();
mytime = myDate.getSeconds();
cheatbox = "";
build_locx = random(700);
build_locy = random(700);
shipslot2 = 1001;
mines = 0;
attack = 0;
torpside = 1;
menu = 1;
cloak = 0;
repairspeed = 0;
itemselect = 0;
ship1type = 0;
ale = 0;
buildtype = 1;
torpedoes = tot_nettorps;
energy = tot_energy;
shields = 0;
shieldstrength = tot_shields;
hull = tot_hull;
torpsaway = 0;
torpsaway2 = 0;
speed = 0;
phaseraway = 0;
ephaseraway = 0;
scale = 50;
dilithium = 0;
deuranium = 0;
sensors = 1;
engines = 1;
torplaunchers = 1;
phaser = 1;
repair = 0;
Set("speedbar:mycolor", 1);
setProperty("speedbar", _xscale , 0);
setProperty("torpedoesbar", _xscale , 0);
setProperty("starbase", _x , 100);
setProperty("starbase", _y , 100);
setProperty("star", _x , 9999);
setProperty("torp", _x , 9999);
setProperty("etorp", _x , 9999);
setProperty("ephas", _x , 9999);
setProperty("ship1", _x , 9999);
setProperty("friendly", _x , 9999);
createnewenemy();
Instance of Symbol 405 MovieClip "etorp" in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 2);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 2)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 2);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 2)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 2);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 2)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 2);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 2)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 4);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 4)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 4);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 4)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 138 MovieClip in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * (_root.speed / 4);
y = (Math.cos(rotation * (Math.PI/180)) * (_root.speed / 4)) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (locx < 0) {
_x = 550;
_y = random(400);
}
if (locx > 550) {
_x = 0;
_y = random(400);
}
if (locy < 0) {
_x = random(550);
_y = 400;
}
if (locy > 400) {
_x = random(550);
_y = 0;
}
}
}
Instance of Symbol 427 MovieClip "torp" in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
if (torptype == 1) {
if (_root.torpstep == 1) {
torptype = 2;
_root.torpstep = 2;
} else {
torptype = 7;
_root.torpstep = 1;
}
}
if (torptype == 12) {
if (_root.torpstep == 1) {
torptype = 13;
_root.torpstep = 2;
} else {
torptype = 18;
_root.torpstep = 1;
}
}
}
}
Instance of Symbol 430 MovieClip "stellarobject" in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
}
_rotation = (_rotation + 1);
}
Instance of Symbol 438 MovieClip "starbase" in Frame 20
onClipEvent (load) {
setProperty("constructbar", _xscale , 0);
damage = 0;
construction = 0;
menu = 0;
}
on (release) {
_root.menu_open = 1;
Set("../submenu:my_type", 2);
Set("../submenu:d1", d1);
Set("../submenu:d2", d2);
Set("../submenu:construction", construction);
Set("../submenu:target", "starbase");
Set((("../" add _root.selected_ship) add ":selected") add ":open_select", 1);
_root.selected_ship = "starbase";
Set("selected:open_select", 2);
Set("selected:timer", 200);
Set("../submenu:timer", 200);
bar = ((100 - Math.abs(damage)) / 100) * 100;
if (bar < 0) {
bar = 0;
}
Set("../submenu:healthbar", bar);
}
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
}
if (_root.dd1 > 0) {
d1 = d1 + _root.dd1;
_root.dd1 = 0;
}
if (_root.dd2 > 0) {
d2 = d2 + _root.dd2;
_root.dd2 = 0;
}
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
_root.d1 = d1;
_root.d2 = d2;
_root.savegame();
_root.comm = "SHIP STATUS SAVED...";
if ((_root.dilithium > 0) or (_root.deuranium > 0)) {
d2 = d2 + _root.dilithium;
d1 = d1 + _root.deuranium;
_root.dilithium = 0;
_root.deuranium = 0;
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
_root.comm = "RESOURCES RECEIVED...";
_root.resources2 = _root.dilithium;
_root.resources1 = _root.deuranium;
Set("../submenu:d1", d1);
Set("../submenu:d2", d2);
}
}
}
if (construction > 0) {
myDate = new Date();
if (myDate.getSeconds() < constructiontarget) {
x = constructiontarget - myDate.getSeconds();
x = time - x;
x = (x / time) * 100;
}
if (myDate.getSeconds() > constructiontarget) {
x = 59 - myDate.getSeconds();
x = x + constructiontarget;
x = time - x;
x = (x / time) * 100;
}
setProperty("constructbar", _xscale , x);
Set("../submenu:constructbar", x);
if (x < 0) {
setProperty("constructbar", _xscale , 0);
construction = 0;
_root.comm = "SABOTAGE! A SPY HAS SABOTAGED YOUR STATION'S CONSTRUCTION EFFORTS...";
}
if (myDate.getSeconds() == constructiontarget) {
construction = 0;
setProperty("constructbar", _xscale , 0);
Set("../submenu:constructbar", undefined);
if (_root.buildtype > 0) {
_root.build_locx = _x;
_root.build_locy = _y;
if (random(2) == 1) {
_root.build_locx = _root.build_locx + random(50);
} else {
_root.build_locx = _root.build_locx - random(50);
}
if (random(2) == 1) {
_root.build_locy = _root.build_locy + random(50);
} else {
_root.build_locy = _root.build_locy - random(50);
}
_root.createfriendly();
} else {
_root.step = _root.step + 1;
if (_root.step == 1) {
_root.comm = "X-WING DESIGNS COMPLETED...";
}
if (_root.step == 2) {
_root.comm = "SHIELD RESEARCH COMPLETED...";
}
if (_root.step == 3) {
_root.comm = "TORPEDO RESEARCH COMPLETED...";
}
if (_root.step == 4) {
_root.comm = "Y-WING DESIGNS COMPLETED...";
}
if (_root.step == 5) {
_root.comm = "V-WING DESIGNS COMPLETED...";
}
if (_root.step == 6) {
_root.comm = "DROID UPGRADES COMPLETED...";
}
if (_root.step == 7) {
_root.comm = "X-WING TYPE B DESIGNS COMPLETED...";
}
if (_root.step == 8) {
_root.comm = "M-WING DESIGNS COMPLETED...";
}
if (_root.step == 9) {
_root.comm = "TURBO-LASER RESEARCH COMPLETED...";
}
if (_root.step == 10) {
_root.comm = "FALCON CLASS DESIGNS COMPLETED...";
}
if (_root.step == 11) {
_root.comm = "ADVANCED DESIGNS RESEARCH COMPLETED...";
}
if (_root.step == 12) {
_root.comm = "LASER TURRENT RESEARCH COMPLETED...";
}
if (_root.step == 13) {
_root.comm = "CORVETTE DESIGNS COMPLETED...";
}
}
}
}
}
Instance of Symbol 451 MovieClip "estarbase" in Frame 20
onClipEvent (load) {
_root.firedeathstar = 1;
}
onClipEvent (enterFrame) {
defrotation = getProperty("../defiant", _rotation);
if (myenergy > -5000) {
x = Math.sin(defrotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(defrotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
}
}
}
Instance of Symbol 470 MovieClip "friendly" in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
}
if (Key.isDown(46)) {
_root.comm = "FLEET REPORTS IT IS ON ITS WAY...";
my_target = "defiant";
my_tx = random(500);
my_ty = random(450);
}
if (Key.isDown(36)) {
_root.comm = "FLEET IS RETURNING TO THE BASE...";
my_target = "starbase";
my_tx = random(500);
my_ty = random(450);
}
}
on (release) {
if (type != 92) {
_root.menu_open = 1;
Set("selected:timer", 200);
Set("../submenu:target", my_id);
Set("../submenu:my_slot", my_slot);
Set("../submenu:my_type", 1);
Set("../submenu:type", type);
Set((("../" add _root.selected_ship) add ":selected") add ":open_select", 1);
_root.selected_ship = my_id;
Set("selected:open_select", 2);
Set("../submenu:ship_name", my_name);
Set("../submenu:timer", 200);
bar = ((100 - Math.abs(damage)) / 100) * 100;
if (bar < 0) {
bar = 0;
}
Set("../submenu:healthbar", bar);
}
}
on (rollOver) {
Set("friendlymenu:my_menu", 3);
assign = "";
sx = getProperty("../starbase", _x);
sy = getProperty("../starbase", _y);
if (((my_target == "starbase") and (Math.abs(_x - sx) < 500)) and (Math.abs(_y - sy) < 500)) {
assign = "IS GUARDING THE REBEL BASE...";
}
if (((my_target == "starbase") and (Math.abs(_x - sx) > 500)) and (Math.abs(_y - sy) > 500)) {
assign = "IS ON PATROL...";
}
if (my_target == "estarbase") {
assign = "HAS ORDERS TO DESTROY THE ENEMY BASE...";
}
if (my_target == "defiant") {
assign = "IS CURRENTLY SERVING AS YOUR ESCORT...";
}
if (my_target == "") {
assign = "DOES NOT HAVE ANY ORDERS AT THIS TIME...";
}
if (assign == "") {
assign = "HAS ORDERS TO ENGAGE THE ENEMY...";
}
_root.comm = (((my_name + ": THE ") + my_name) + " ") + assign;
if (type == 92) {
_root.comm = "THIS IS DEBRIS FROM A SHIP...";
}
}
on (rollOut) {
if (_root.comm == my_name) {
_root.comm = "";
}
}
Instance of Symbol 472 MovieClip "fblip" in Frame 20
onClipEvent (enterFrame) {
if ((scale != 0) and (target > 0)) {
x = getProperty("../defiant", _x);
y = getProperty("../defiant", _y);
me_x = getProperty("../fship" add target, _x);
me_y = getProperty("../fship" add target, _y);
Set(("../fship" add target) add ":target", target);
if (y > me_y) {
ydist = y - ((y - me_y) / _root.scale);
_y = ydist;
}
if (y < me_y) {
ydist = y + ((me_y - y) / _root.scale);
_y = ydist;
}
if (x > me_x) {
xdist = x - ((x - me_x) / _root.scale);
_x = xdist;
}
if (x < me_x) {
xdist = x + ((me_x - x) / _root.scale);
_x = xdist;
}
}
if (scale == 0) {
_x = -10;
}
}
on (rollOver) {
_root.comm = my_name;
}
Instance of Symbol 118 MovieClip [defiant] "defiant" in Frame 20
onClipEvent (enterFrame) {
myDate = new Date();
curtime = myDate.getSeconds();
if (curtime == _root.mytime) {
_root.stardate = _root.stardate + 0.3;
_root.stardatetext = "STARDATE: " + _root.stardate;
_root.mytime = _root.mytime - 1;
if (_root.mytime < 1) {
_root.mytime = 59;
}
}
if (_root.energy < _root.tot_energy) {
_root.energy = _root.energy + random(20);
}
if (_root.energy > _root.tot_energy) {
_root.energy = _root.tot_energy;
}
if (Math.abs(_root.speed) > 20) {
_root.energy = _root.energy - 15;
}
if ((_root.shields > 0) and (random(5) == 1)) {
_root.energy = _root.energy - 1;
}
bar = (_root.energy / _root.tot_energy) * 100;
setProperty("../energybar", _xscale , 100 - bar);
if (_root.torpsaway2 > 0) {
_root.torpsaway2 = _root.torpsaway2 - 1;
}
if (_root.torpsaway > 0) {
_root.torpsaway = _root.torpsaway - 1;
}
if ((_root.cloak == 0) and (this._alpha <= 100)) {
this._alpha = this._alpha + 5;
}
if ((_root.cloak == 1) and (this._alpha >= 25)) {
this._alpha = this._alpha - 5;
}
if (_root.shields < 0) {
_root.shields = 0;
}
if (_root.shieldstrength < _root.tot_shields) {
if (random(15) == 1) {
_root.shieldstrength = _root.shieldstrength + 1;
}
if (_root.shields != 0) {
_root.shields = _root.shieldstrength;
bar = (_root.shields / _root.tot_shields) * 100;
setProperty("../shieldsbar", _xscale , 100 - bar);
}
}
_root.defangle = _root.def;
if (_root.speed < 0) {
_root.defangle = _root.def + 1;
}
if (_root.speed < -15) {
_root.defangle = _root.def + 2;
}
if (_root.speed >= _root.tot_speed) {
if (Key.isDown(38) and (_root.engines == 1)) {
if (_root.speed > _root.tot_speed) {
_root.speed = _root.speed - 1;
}
if (_root.speed < _root.tot_speed) {
_root.speed = _root.tot_speed;
}
speedmenu = (Math.abs(_root.speed) / Math.abs(_root.tot_speed)) * 100;
setProperty("../speedbar", _xscale , 100 - speedmenu);
}
if (Key.isDown(40)) {
_root.speed = _root.speed + 1;
if (_root.speed > 0) {
_root.speed = 0;
}
speedmenu = (Math.abs(_root.speed) / Math.abs(_root.tot_speed)) * 100;
setProperty("../speedbar", _xscale , 100 - speedmenu);
_root.speedmenu = Math.abs(_root.speed);
}
}
if (Key.isDown(37)) {
if (_root.energy > 50) {
angle = getProperty("../defiant", _rotation);
changeangle = _root.tot_turn;
if ((_root.tot_turn > 5) and (Math.abs(_root.speed) > 13)) {
changeangle = 5;
}
angle = angle - Math.abs(changeangle);
setProperty("../defiant", _rotation , angle);
if (_root.shields > 0) {
setProperty("../shieldup", _rotation , angle);
}
}
}
if (Key.isDown(39)) {
if (_root.energy > 50) {
angle = getProperty("../defiant", _rotation);
changeangle = _root.tot_turn;
if ((_root.tot_turn > 5) and (Math.abs(_root.speed) > 13)) {
changeangle = 5;
}
angle = angle + Math.abs(changeangle);
setProperty("../defiant", _rotation , angle);
if (_root.shields > 0) {
setProperty("../shieldup", _rotation , angle);
}
}
}
if (Key.isDown(32) and (_root.cloak != 1)) {
_root.comm = "";
if (_root.energy > 350) {
if (random(2) == 1) {
_root.energy = _root.energy - 1;
}
if ((((_root.def == 37) or (_root.def == 109)) or (_root.def == 253)) or (_root.def == 181)) {
_root.torptype = 12;
}
if (_root.def == 217) {
_root.torptype = 43;
}
if (_root.def == 73) {
_root.torptype = 1;
}
if ((_root.def == 289) or (_root.def == 1)) {
_root.torptype = 33;
}
if (((_root.def == 145) or (_root.def == 411)) or (_root.def == 325)) {
_root.torptype = 28;
}
if (_root.def == 539) {
if (_root.customweapon1 == 1) {
_root.torptype = 33;
}
if (_root.customweapon1 == 2) {
_root.torptype = 2;
}
if (_root.customweapon1 == 3) {
_root.torptype = 43;
}
if (_root.customweapon1 == 4) {
_root.torptype = 28;
}
if (_root.customweapon1 == 5) {
_root.torptype = 98;
}
}
_root.firelasers();
}
}
if (Key.isDown(33)) {
if (_root.speed > -30) {
_root.speed = -30;
if (_root.def == 380) {
_root.speed = -50;
}
_root.comm = "";
soundbeep = new Sound(this);
soundbeep.attachSound("warp");
soundbeep.start(0, 0);
Set("_root.hitpointsclip:hitpoints", "");
Set("../scanbox:target", 1);
_root.speedmenu = "WARP";
setProperty("../shieldup", _x , -500);
setProperty("../shieldup", _y , 100);
_root.shields = 0;
bar = (_root.shields / _root.tot_shields) * 100;
setProperty("../shieldsbar", _xscale , 100 - bar);
}
}
if (Key.isDown(34)) {
if (_root.speed <= -30) {
_root.comm = "";
_root.speed = _root.tot_speed;
soundbeep = new Sound(this);
soundbeep.attachSound("dropwarp");
soundbeep.start(0, 0);
_root.speedmenu = Math.abs(_root.speed);
}
}
if (Key.isDown(13)) {
if (_root.step <= 1) {
_root.comm = "WE HAVE NOT YET RESEARCHED SHIELD TECHNOLOGY...";
}
if (((_root.shields == 0) and (_root.shieldstrength > 0)) and (_root.step > 1)) {
if (_root.energy > 50) {
_root.comm = "RAISING SHIELDS!";
_root.shields = _root.shieldstrength;
bar = (_root.shields / _root.tot_shields) * 100;
setProperty("../shieldsbar", _xscale , 100 - bar);
sx = getProperty("../defiant", _x);
sy = getProperty("../defiant", _y);
angle = getProperty("../defiant", _rotation);
setProperty("../shieldup", _rotation , angle);
setProperty("../shieldup", _x , sx);
setProperty("../shieldup", _y , sy);
} else {
_root.comm = "THE SHIELDS ARE INOPERATIVE";
}
} else if (_root.shields > 0) {
_root.comm = "LOWERING SHIELDS!";
setProperty("../shieldup", _x , -500);
setProperty("../shieldup", _y , 100);
_root.shields = 0;
bar = (_root.shields / _root.tot_shields) * 100;
setProperty("../shieldsbar", _xscale , 100 - bar);
}
}
if (_root.energy < 40) {
_root.comm = "WARNING: POWER FAILURE...ALL SYSTEMS OFFLINE!";
setProperty("../shieldup", _x , -50);
setProperty("../shieldup", _y , 100);
_root.speed = 0;
_root.speedmenu = Math.abs(_root.speed);
_root.shields = 0;
}
if ((_root.speed < 0) and (random(300 / Math.abs(_root.speed)) == 1)) {
x = getProperty("../starbase", _x);
y = getProperty("../starbase", _y);
if ((((x > 600) or (x < 0)) or (y < 0)) or (y > 600)) {
_root.makeasteroid();
}
}
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
locx = getProperty("../station", _x);
locy = getProperty("../station", _y);
locx = locx + x;
locy = locy + y;
setProperty("../station", _x , locx);
setProperty("../station", _y , locy);
locx = getProperty("../spacedock", _x);
locy = getProperty("../spacedock", _y);
locx = locx + x;
locy = locy + y;
setProperty("../spacedock", _x , locx);
setProperty("../spacedock", _y , locy);
if ((_root.cloak == 0) and (this._alpha <= 100)) {
this._alpha = this._alpha + 5;
}
if ((_root.cloak == 1) and (this._alpha >= 25)) {
this._alpha = this._alpha - 5;
}
if (Key.isDown(17) and (_root.cloak != 1)) {
if ((_root.def != 1) and (_root.def != 37)) {
_root.torptype = 23;
if ((_root.def == 217) or (_root.def == 181)) {
_root.torptype = 48;
}
if (_root.def == 380) {
_root.torptype = 38;
}
if (((_root.def != 145) and (_root.def != 411)) and (_root.def != 325)) {
_root.firetorps();
}
if (_root.def == 325) {
_root.torptype = 48;
_root.firelasers();
}
if (_root.def == 411) {
_root.torptype = 23;
_root.firelasers();
}
if (_root.def == 145) {
_root.torptype = 23;
_root.firelasers();
}
if (_root.def == 539) {
if (_root.customweapon2 == 1) {
_root.torptype = 23;
_root.firetorps();
}
if (_root.customweapon2 == 2) {
_root.torptype = 48;
_root.firelasers();
}
if (_root.customweapon2 == 3) {
_root.torptype = 99;
_root.firelasers();
}
}
} else {
_root.comm = "THIS SHIP IS NOT EQUIPED WITH A TORPEDO LAUNCHER...";
}
}
if (Key.isDown(16)) {
if (_root.def == 253) {
if (_root.mines < 10) {
_root.torptype = 53;
_root.firetorps();
} else {
_root.comm = "YOU HAVE LAUNCHED TOO MANY MINES...";
}
}
if (_root.def == 73) {
_root.torptype = 58;
_root.firetorps();
}
if (_root.def == 217) {
soundbeep = new Sound(this);
soundbeep.attachSound("cloak");
soundbeep.start(0, 0);
if (_root.cloak == 1) {
_root.cloak = 0;
} else {
_root.cloak = 1;
}
}
if (_root.def == 289) {
_root.torptype = 63;
_root.firetorps();
}
if (_root.def == 380) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.buildtype = 130;
_root.createfriendly();
}
if (_root.def == 181) {
_root.torptype = 100;
_root.firetorps();
}
if (_root.def == 37) {
_root.torptype = 100;
_root.firelasers();
}
if (_root.def == 325) {
_root.torptype = 38;
_root.firelasers();
}
if ((_root.def == 411) or (_root.def == 145)) {
_root.torptype = 23;
_root.firelasers();
}
if (_root.def == 539) {
if (_root.customspecial == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("cloak");
soundbeep.start(0, 0);
if (_root.cloak == 1) {
_root.cloak = 0;
} else {
_root.cloak = 1;
}
}
if (_root.customspecial == 2) {
if (_root.mines < 10) {
_root.torptype = 53;
_root.firetorps();
} else {
_root.comm = "YOU HAVE LAUNCHED TOO MANY MINES...";
}
}
if (_root.customspecial == 3) {
_root.torptype = 100;
_root.firelasers();
}
if (_root.customspecial == 4) {
_root.torptype = 58;
_root.firetorps();
}
if (_root.customspecial == 5) {
_root.torptype = 63;
_root.firetorps();
}
if (_root.customspecial == 6) {
_root.torptype = 100;
_root.firetorps();
}
if (_root.customspecial == 7) {
_root.torptype = 38;
_root.firelasers();
}
}
}
}
on (rollOver) {
if (_root.comm != _root.playership) {
_root.comm = "THIS SHIP IS THE " + _root.playership;
}
if (_root.customname != undefined) {
_root.comm = "THIS SHIP IS THE " + _root.customname;
}
}
on (rollOut) {
if ((_root.comm == _root.playership) or (_root.comm == customname)) {
_root.comm = "";
}
}
Instance of Symbol 535 MovieClip "ship1" in Frame 20
onClipEvent (enterFrame) {
rotation = getProperty("../defiant", _rotation);
x = Math.sin(rotation * (Math.PI/180)) * _root.speed;
y = (Math.cos(rotation * (Math.PI/180)) * _root.speed) * -1;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
}
}
Instance of Symbol 592 MovieClip "submenu" in Frame 20
onClipEvent (load) {
_root.menu_open = 0;
my_type = 1;
}
onClipEvent (enterFrame) {
if ((_root.menu_open == 0) and (_y > -50)) {
_y = (_y - 20);
}
if ((_root.menu_open == 1) and (_y < 80)) {
_y = (_y + 20);
}
}
Instance of Symbol 599 MovieClip "damagetorps" in Frame 20
on (release) {
if (_root.torplaunchers == 1) {
_root.comm = "TORPEDO LAUNCHERS NOT IN NEED OF REPAIR...";
}
if (_root.torplaunchers == 2) {
_root.comm = "REPAIR TEAMS SENT TO TORPEDO LAUNCHERS...";
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 0;
}
if (_root.phasers == 3) {
_root.phasers = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
_root.torplaunchers = 3;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(45)) {
_root.repair++;
if (_root.repair > 5) {
_root.repair = 0;
}
if (_root.repair == 1) {
if ((_root.torplaunchers == 1) or (_root.torplaunchers == 3)) {
_root.repair++;
} else if (_root.torplaunchers == 2) {
_root.torplaunchers = 3;
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 2;
}
if (_root.phaser == 3) {
_root.phaser = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
}
}
if (_root.repair == 2) {
if ((_root.phaser == 1) or (_root.phaser == 3)) {
_root.repair++;
} else if (_root.phaser == 2) {
_root.phaser = 3;
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 2;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
}
}
if (_root.repair == 3) {
if ((_root.engines == 1) or (engines == 3)) {
_root.repair++;
} else if (_root.engines == 2) {
_root.engines = 3;
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 2;
}
if (_root.phaser == 3) {
_root.phaser = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
}
}
if (_root.repair == 4) {
if ((_root.sensors == 1) or (_root.sensors == 3)) {
_root.repair++;
} else if (_root.sensors == 2) {
_root.sensors = 3;
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 2;
}
if (_root.phaser == 3) {
_root.phaser = 2;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
}
}
if (_root.repair == 5) {
if (_root.hullrepair == 0) {
_root.repair++;
} else if (_root.hullrepair == 2) {
_root.hullrepair = 1;
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.phaser == 3) {
_root.phaser = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
}
}
if (_root.repair == 0) {
_root.comm = "REPAIR TEAMS ARE ON A BREAK...";
if (_root.sensors == 3) {
_root.sensors = 2;
}
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 2;
}
if (_root.phaser == 3) {
_root.phaser = 2;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
}
}
}
Instance of Symbol 603 MovieClip "damageengines" in Frame 20
on (release) {
if (_root.engines == 1) {
_root.comm = "ENGINES NOT IN NEED OF REPAIR...";
}
if (_root.engines == 2) {
_root.comm = "REPAIR TEAMS SENT TO ENGINEERING...";
if (_root.phasers == 3) {
_root.phasers = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 0;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
_root.engines = 3;
}
}
Instance of Symbol 607 MovieClip "damageshields" in Frame 20
on (release) {
bar = getProperty("../hullbar", _xscale);
if (bar >= 95) {
_root.comm = "HULL IS NOT IN NEED OF REPAIR...";
}
if (bar < 95) {
_root.comm = "REPAIR TEAMS SENT TO REPAIR HULL...";
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.phasers == 3) {
_root.phasers = 2;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
_root.hullrepair = 1;
}
}
Instance of Symbol 611 MovieClip "damagephasers" in Frame 20
on (release) {
if (_root.phasers == 1) {
_root.comm = "PHASERS NOT IN NEED OF REPAIR...";
}
if (_root.phasers == 2) {
_root.comm = "REPAIR TEAMS SENT TO PHASERS...";
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 0;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.sensors == 3) {
_root.sensors = 2;
}
_root.phasers = 3;
}
}
Instance of Symbol 615 MovieClip "damagesensors" in Frame 20
on (release) {
if (_root.sensors == 1) {
_root.comm = "DEFLECTOR DISH NOT IN NEED OF REPAIR...";
}
if (_root.sensors == 2) {
_root.comm = "REPAIR TEAMS SENT TO DEFLECTOR DISH...";
if (_root.engines == 3) {
_root.engines = 2;
}
if (_root.hullrepair == 1) {
_root.hullrepair = 0;
}
if (_root.torplaunchers == 3) {
_root.torplaunchers = 2;
}
if (_root.phasers == 3) {
_root.phasers = 2;
}
_root.sensors = 3;
}
}
Instance of Symbol 622 MovieClip "enemybar" in Frame 20
onClipEvent (enterFrame) {
if (_x > 0) {
if (this._alpha > 10) {
this._alpha = this._alpha - 10;
}
if (this._alpha < 10) {
this._alpha = 100;
_x = -100;
}
}
}
Instance of Symbol 624 MovieClip in Frame 20
onClipEvent (enterFrame) {
_x = getProperty("../enemybar", _x);
_y = getProperty("../enemybar", _y);
}
Instance of Symbol 628 MovieClip "alertred" in Frame 20
on (release) {
_root.alert = 1;
_alpha = 0;
setProperty("../alertyellow", _alpha , 75);
setProperty("../alertgreen", _alpha , 75);
}
Instance of Symbol 628 MovieClip "alertyellow" in Frame 20
on (release) {
_root.alert = 2;
_alpha = 0;
setProperty("../alertred", _alpha , 75);
setProperty("../alertgreen", _alpha , 75);
}
Instance of Symbol 628 MovieClip "alertgreen" in Frame 20
on (release) {
_root.alert = 3;
_alpha = 0;
setProperty("../alertyellow", _alpha , 75);
setProperty("../alertred", _alpha , 75);
}
Instance of Symbol 18 MovieClip [eblip] "eblip" in Frame 20
onClipEvent (enterFrame) {
if ((scale != 0) and (target > 0)) {
x = getProperty("../defiant", _x);
y = getProperty("../defiant", _y);
me_x = getProperty("../eship" add target, _x);
me_y = getProperty("../eship" add target, _y);
Set(("../fship" add target) add ":target", target);
if (y > me_y) {
ydist = y - ((y - me_y) / _root.scale);
_y = ydist;
}
if (y < me_y) {
ydist = y + ((me_y - y) / _root.scale);
_y = ydist;
}
if (x > me_x) {
xdist = x - ((x - me_x) / _root.scale);
_x = xdist;
}
if (x < me_x) {
xdist = x + ((me_x - x) / _root.scale);
_x = xdist;
}
}
if (scale == 0) {
_x = -10;
}
}
Instance of Symbol 630 MovieClip "planetblip" in Frame 20
onClipEvent (enterFrame) {
x = getProperty("../defiant", _x);
y = getProperty("../defiant", _y);
me_x = getProperty("../estarbase", _x);
me_y = getProperty("../estarbase", _y);
if (y > me_y) {
ydist = y - ((y - me_y) / _root.scale);
_y = ydist;
}
if (y < me_y) {
ydist = y + ((me_y - y) / _root.scale);
_y = ydist;
}
if (x > me_x) {
xdist = x - ((x - me_x) / _root.scale);
_x = xdist;
}
if (x < me_x) {
xdist = x + ((me_x - x) / _root.scale);
_x = xdist;
}
}
Instance of Symbol 632 MovieClip in Frame 20
onClipEvent (enterFrame) {
x = getProperty("../defiant", _x);
y = getProperty("../defiant", _y);
me_x = getProperty("../starbase", _x);
me_y = getProperty("../starbase", _y);
if (y > me_y) {
ydist = y - ((y - me_y) / _root.scale);
_y = ydist;
}
if (y < me_y) {
ydist = y + ((me_y - y) / _root.scale);
_y = ydist;
}
if (x > me_x) {
xdist = x - ((x - me_x) / _root.scale);
_x = xdist;
}
if (x < me_x) {
xdist = x + ((me_x - x) / _root.scale);
_x = xdist;
}
}
Frame 21
stop();
_root.updatebars();
Frame 22
stop();
Frame 23
gotoAndPlay (21);
Frame 25
gotoAndStop (24);
Frame 26
scoretotal = 0;
scoretotal = scoretotal + (_global.abuilt * 1);
scoretotal = scoretotal + (_global.xbuilt * 2);
scoretotal = scoretotal + (_global.ybuilt * 3);
scoretotal = scoretotal + (_global.vbuilt * 4);
scoretotal = scoretotal + (_global.mbuilt * 5);
scoretotal = scoretotal + (_global.fbuilt * 6);
scoretotal = scoretotal + (_global.cbuilt * 7);
scoretotal = scoretotal - (_global.alost * 1);
scoretotal = scoretotal - (_global.xlost * 2);
scoretotal = scoretotal - (_global.ylost * 3);
scoretotal = scoretotal - (_global.vlost * 4);
scoretotal = scoretotal - (_global.mlost * 5);
scoretotal = scoretotal - (_global.flost * 6);
scoretotal = scoretotal - (_global.clost * 7);
scoretotal = scoretotal + _global.gcollect;
scoretotal = scoretotal + _global.mcollect;
scoretotal = scoretotal + _global.gaicollect;
scoretotal = scoretotal + _global.maicollect;
scoretotal = scoretotal + (_global.tflost * 2);
scoretotal = scoretotal + (_global.tilost * 3);
scoretotal = scoretotal + (_global.tblost * 4);
scoretotal = scoretotal + (_global.sdlost * 10);
scoretotal = scoretotal + (_global.ssdlost * 15);
scoretotal = scoretotal + _global.victorybonus;
victoryscore = _global.victorybonus;
if (myLSO.data.score == undefined) {
myLSO.data.score = 0;
}
myLSO.data.score = myLSO.data.score + scoretotal;
overallscore = myLSO.data.score;
stop();
Frame 27
gotoAndPlay (26);
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 5;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 5;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 5;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 5;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 1;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Instance of Symbol 138 MovieClip in Frame 28
onClipEvent (enterFrame) {
x = _x;
x = x - 2;
if (_x < 0) {
x = 500;
}
_x = x;
}
Frame 503
gotoAndStop (26);
Symbol 71 MovieClip Frame 1
gotoAndPlay(_root.thrusteron);
Symbol 71 MovieClip Frame 2
gotoAndPlay(_root.thrusteron);
Symbol 71 MovieClip Frame 3
gotoAndPlay(_root.thrusteron);
Symbol 84 MovieClip Frame 1
gotoAndPlay(_root.custombodytype);
Symbol 84 MovieClip Frame 2
gotoAndPlay(_root.custombodytype);
Symbol 84 MovieClip Frame 3
gotoAndPlay(_root.custombodytype);
Symbol 84 MovieClip Frame 4
gotoAndPlay(_root.custombodytype);
Symbol 84 MovieClip Frame 5
gotoAndPlay(_root.custombodytype);
Symbol 84 MovieClip Frame 6
gotoAndPlay(_root.custombodytype);
Symbol 84 MovieClip Frame 7
gotoAndPlay(_root.custombodytype);
Symbol 95 MovieClip Frame 1
gotoAndPlay(_root.customnosetype);
Symbol 95 MovieClip Frame 2
gotoAndPlay(_root.customnosetype);
Symbol 95 MovieClip Frame 3
gotoAndPlay(_root.customnosetype);
Symbol 95 MovieClip Frame 4
gotoAndPlay(_root.customnosetype);
Symbol 95 MovieClip Frame 5
gotoAndPlay(_root.customnosetype);
Symbol 95 MovieClip Frame 6
gotoAndPlay(_root.customnosetype);
Symbol 95 MovieClip Frame 7
gotoAndPlay(_root.customnosetype);
Symbol 116 MovieClip Frame 1
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 2
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 3
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 4
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 5
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 6
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 7
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 8
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 9
gotoAndPlay(_root.customwingtype);
Symbol 116 MovieClip Frame 10
gotoAndPlay(_root.customwingtype);
Symbol 118 MovieClip [defiant] Frame 1
if (_root.hull >= 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 118 MovieClip [defiant] Frame 2
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 118 MovieClip [defiant] Frame 3
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 118 MovieClip [defiant] Frame 4
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 118 MovieClip [defiant] Frame 36
_root.dead();
Symbol 118 MovieClip [defiant] Frame 37
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 118 MovieClip [defiant] Frame 38
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 118 MovieClip [defiant] Frame 39
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 118 MovieClip [defiant] Frame 40
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 118 MovieClip [defiant] Frame 72
_root.dead();
Symbol 118 MovieClip [defiant] Frame 73
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 118 MovieClip [defiant] Frame 74
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 118 MovieClip [defiant] Frame 75
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 118 MovieClip [defiant] Frame 76
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 118 MovieClip [defiant] Frame 108
_root.dead();
Symbol 118 MovieClip [defiant] Frame 109
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 118 MovieClip [defiant] Frame 110
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 118 MovieClip [defiant] Frame 111
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 118 MovieClip [defiant] Frame 112
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 118 MovieClip [defiant] Frame 144
_root.dead();
Symbol 118 MovieClip [defiant] Frame 145
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 118 MovieClip [defiant] Frame 146
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 118 MovieClip [defiant] Frame 147
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 118 MovieClip [defiant] Frame 148
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 118 MovieClip [defiant] Frame 180
_root.dead();
Symbol 118 MovieClip [defiant] Frame 181
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 118 MovieClip [defiant] Frame 182
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 118 MovieClip [defiant] Frame 183
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 118 MovieClip [defiant] Frame 184
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 118 MovieClip [defiant] Frame 216
_root.dead();
Symbol 118 MovieClip [defiant] Frame 217
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 118 MovieClip [defiant] Frame 218
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 118 MovieClip [defiant] Frame 219
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 118 MovieClip [defiant] Frame 220
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 118 MovieClip [defiant] Frame 252
_root.dead();
Symbol 118 MovieClip [defiant] Frame 253
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 118 MovieClip [defiant] Frame 254
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 118 MovieClip [defiant] Frame 255
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 118 MovieClip [defiant] Frame 256
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 118 MovieClip [defiant] Frame 288
_root.dead();
Symbol 118 MovieClip [defiant] Frame 289
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 118 MovieClip [defiant] Frame 290
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 118 MovieClip [defiant] Frame 291
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 118 MovieClip [defiant] Frame 292
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 118 MovieClip [defiant] Frame 324
_root.dead();
Symbol 118 MovieClip [defiant] Frame 325
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 118 MovieClip [defiant] Frame 326
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 118 MovieClip [defiant] Frame 327
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 118 MovieClip [defiant] Frame 328
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 118 MovieClip [defiant] Frame 360
_root.dead();
Symbol 118 MovieClip [defiant] Frame 361
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 363
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 365
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 367
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 369
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 371
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 373
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 375
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 118 MovieClip [defiant] Frame 379
_root.def = 325;
_root.defangle = 325;
gotoAndPlay (325);
Symbol 118 MovieClip [defiant] Frame 380
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 118 MovieClip [defiant] Frame 381
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 118 MovieClip [defiant] Frame 382
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 118 MovieClip [defiant] Frame 383
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 118 MovieClip [defiant] Frame 410
_root.dead();
Symbol 118 MovieClip [defiant] Frame 411
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 118 MovieClip [defiant] Frame 412
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 118 MovieClip [defiant] Frame 413
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 118 MovieClip [defiant] Frame 414
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 118 MovieClip [defiant] Frame 442
_root.dead();
Symbol 118 MovieClip [defiant] Frame 443
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (447);
}
Symbol 118 MovieClip [defiant] Frame 444
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (447);
}
Symbol 118 MovieClip [defiant] Frame 445
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (447);
}
Symbol 118 MovieClip [defiant] Frame 446
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (447);
}
Symbol 118 MovieClip [defiant] Frame 474
_root.dead();
Symbol 118 MovieClip [defiant] Frame 475
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (479);
}
Symbol 118 MovieClip [defiant] Frame 476
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (479);
}
Symbol 118 MovieClip [defiant] Frame 477
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (479);
}
Symbol 118 MovieClip [defiant] Frame 478
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (479);
}
Symbol 118 MovieClip [defiant] Frame 506
_root.dead();
Symbol 118 MovieClip [defiant] Frame 507
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (511);
}
Symbol 118 MovieClip [defiant] Frame 508
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (511);
}
Symbol 118 MovieClip [defiant] Frame 509
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (511);
}
Symbol 118 MovieClip [defiant] Frame 510
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (511);
}
Symbol 118 MovieClip [defiant] Frame 538
_root.dead();
Symbol 118 MovieClip [defiant] Frame 539
if (_root.hull > 0) {
_root.thrusteron = 1;
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (543);
}
Symbol 118 MovieClip [defiant] Frame 540
if (_root.hull > 0) {
_root.thrusteron = 2;
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (543);
}
Symbol 118 MovieClip [defiant] Frame 541
if (_root.hull > 0) {
_root.thrusteron = 3;
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (543);
}
Symbol 118 MovieClip [defiant] Frame 542
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (543);
}
Symbol 118 MovieClip [defiant] Frame 570
_root.dead();
Symbol 121 Button
on (release) {
gotoAndPlay (5);
}
Symbol 141 Button
on (rollOver) {
newgamebutton._alpha = 100;
}
on (rollOut) {
newgamebutton._alpha = 50;
}
on (release) {
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("menumusic");
soundbeep.start(0, 99);
myLSO.data.ship = 1;
myLSO.data.totenemies = 0;
myLSO.data.fship0 = 2;
myLSO.data.fship1 = 2;
myLSO.data.fship2 = undefined;
myLSO.data.fship3 = undefined;
myLSO.data.fship4 = undefined;
myLSO.data.fship5 = undefined;
myLSO.data.fship6 = undefined;
myLSO.data.fship7 = undefined;
myLSO.data.fship8 = undefined;
myLSO.data.fship9 = undefined;
myLSO.data.fship10 = undefined;
myLSO.data.fship11 = undefined;
myLSO.data.fship12 = undefined;
myLSO.data.fship13 = undefined;
myLSO.data.fship14 = undefined;
myLSO.data.fship15 = undefined;
myLSO.data.fship16 = undefined;
myLSO.data.fship17 = undefined;
myLSO.data.fship18 = undefined;
myLSO.data.fship19 = undefined;
myLSO.data.fship20 = undefined;
myLSO.data.d1 = 0;
myLSO.data.d2 = 0;
myLSO.data.level = 1;
myLSO.data.customname = undefined;
leveleas = myLSO.data.leveleas;
if (myLSO.data.playername == undefined) {
gotoAndStop (6);
} else {
gotoAndStop (10);
}
}
Symbol 142 Button
on (release) {
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("fail");
soundbeep.start(0, 0);
myLSO = SharedObject.getLocal("flashwars");
if (myLSO.data.playername == undefined) {
gotoAndStop (6);
} else {
playership = myLSO.data.playership;
gotoAndPlay (20);
}
}
on (rollOver) {
playsavedbutton._alpha = 100;
}
on (rollOut) {
playsavedbutton._alpha = 50;
}
Symbol 143 Button
on (rollOver) {
editprofilebutton._alpha = 100;
}
on (rollOut) {
editprofilebutton._alpha = 50;
}
on (release) {
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("complete");
soundbeep.start(0, 0);
gotoAndStop (7);
}
Symbol 150 Button
on (rollOver) {
if (myLSO.data.playername == undefined) {
erase._alpha = 100;
}
}
on (rollOut) {
if (myLSO.data.playername == undefined) {
erase._alpha = 50;
}
}
on (release) {
tot_energy = 3000;
tot_hull = 200;
tot_shields = -1;
tot_phaser = 0;
tot_torp = 5;
tot_speed = -8;
tot_nettorps = 0;
def = 1;
myLSO.data.score = 0;
myLSO.data.leveleas = 1;
myLSO.data.playername = undefined;
title = "Welcome, New Player";
}
Symbol 157 Button
on (release) {
if ((playername == undefined) or (playername == "")) {
playername = "Mr Nameless";
}
myLSO.data.playership = playership;
myLSO.data.playername = playername;
myLSO.data.era = 0;
myLSO.data.ship = 1;
myLSO.data.fship0 = 2;
myLSO.data.fship1 = 2;
myLSO.data.fship2 = undefined;
myLSO.data.fship3 = undefined;
myLSO.data.fship4 = undefined;
myLSO.data.fship5 = undefined;
myLSO.data.fship6 = undefined;
myLSO.data.fship7 = undefined;
myLSO.data.fship8 = undefined;
myLSO.data.fship9 = undefined;
myLSO.data.fship10 = undefined;
myLSO.data.fship11 = undefined;
myLSO.data.fship12 = undefined;
myLSO.data.fship13 = undefined;
myLSO.data.fship14 = undefined;
myLSO.data.fship15 = undefined;
myLSO.data.fship16 = undefined;
myLSO.data.fship17 = undefined;
myLSO.data.fship18 = undefined;
myLSO.data.fship19 = undefined;
myLSO.data.fship20 = undefined;
myLSO.data.d1 = 0;
myLSO.data.d2 = 0;
myLSO.data.level = 1;
myLSO.data.leveleas = 1;
leveleas = 1;
level = 1;
myLSO.data.flush();
gotoAndPlay (10);
}
Symbol 162 Button
on (release) {
stopAllSounds();
gotoAndPlay (5);
}
Symbol 168 Button
on (release) {
gotoAndStop (5);
}
Symbol 173 Button
on (release) {
gotoAndStop (8);
}
Symbol 195 Button
on (release) {
gotoAndStop (9);
}
Symbol 198 Button
on (release) {
shipdesctext = "THE SMALL BUT MANUVERABLE A-WING STARSHIP IS PRIMARILY USED BY THE REBELS AS A LONG RANGE SCOUT SHIP. DESIGNED AT THE ALTESA FLEET YARDS, THE A-WING IS A FORMIDABLE CRAFT IN SQUADS OF 4 OR MORE. ALONE HOWEVER THESE SHIPS ARE VERY VULNERABLE EVEN AGAINST THE WEAK TIE FIGHTER. CHEAP TO PRODUCE AND QUICK TO BUILD, THESE CRAFT MAKE EXCELLENT CANNON-FODDER TO DRAW THE ATTENTION OF ENEMY SHIPS, MAKING THEM IDEAL FLEET ESCORTS. WHEN ASSIGNED TO GUARD A STATION OR BASE, THE A-WINGS WILL ALSO GATHER RESOURCES AND MATERIALS FOR YOU.";
shipdesctext = shipdesctext + "\rSTRENGTH: 100\rENERGY: 3000\rSPEED: 6\rCARGO CAPACITY: 400 TONS\rSPECIAL WEAPON: NONE";
}
Symbol 199 Button
on (release) {
shipdesctext = "THE X-WING WAS INITIALLY DEVELOPED TO MATCH THE NEW FIGHTER DESIGNED BEING PRODUCED BY THE EMPIRE. THOUGH NOT WELL BUILT AND FREQUENT TO BREAK-DOWNS, THE X-WING FIGHTERS PROVED TO BE A VALUABLE ASSET TO THE REBEL FLEET WITH THEIR FOUR HIGH-POWERED LASER CANNONS. DESPITE THE RECENT UPGRADED TYPE B X-WING FIGHTER, MANY OF THESE STANDARD X-WINGS ARE STILL BUILT BECAUSE OF THEIR LOW COST AND QUICK PRODUCTION RATE.";
shipdesctext = shipdesctext + "\rSTRENGTH: 200\rENERGY: 5000\rSPEED: 6\rCARGO CAPACITY: 200 TONS\rSPECIAL WEAPON: AFT FIRING BLASTER";
}
Symbol 200 Button
on (release) {
shipdesctext = "THE Y-WING BOMBER WAS QUICKLY DEVELOPED AFTER THE REBELS HAD SUFFICIENT TECHNOLOGY TO BEGIN PRODUCING TORPEDOES ON A MASSIVE SCALE. THE Y-WING WAS INITIALLY HAILED AS A GODSEND TO THE FLEET, SINCE THE AGING X- AND A-WINGS COULD NOT BE EQUIPPED WITH TORPEDO LAUNCHERS. HOWEVER IT WAS QUICKLY REALIZED THAT IN HEAVY COMBAT THE SLOW TORPEDO RELOAD RATE AND WEAK SINGLE LASER CANNON MADE IT AN EASY TARGET WHEN FLYING ALONE. THEY ARE TYPICALLY ASSIGNED AS ESCORT BOMBERS.";
shipdesctext = shipdesctext + "\rSTRENGTH: 250\rENERGY: 7000\rSPEED: 5\rCARGO CAPACITY: 300 TONS\rSPECIAL WEAPON: ENGINE NEUTRALIZING PULSE";
}
Symbol 201 Button
on (release) {
shipdesctext = "THE FAST AND SLEEK V-WING WAS DESIGNED SHORTLY AFTER THE LAUNCH OF THE Y-WING. UTILIZING THE NEW TORPEDO LAUNCHERS, THIS NEW SHIP SURPASSED THE Y-WING'S DESIGN BY ADDING TWO LASER CANNONS ON THE TIPS OF THE WINGS. THE RESULTING FIREPOWER INCREASE ALLOWED THE V-WINGS TO WITHSTAND DIRECT ASSAULTS THAT WOULD TYPICALLY OVERWHELM THE Y-WING. ALTHOUGH THEIR TORPEDO RELOAD RATE IS SLOWER THAN THE Y-WING, THEIR ENHANCED CLOSE-RANGE LASER FIREPOWER ALLOWS THEM TO CONDUCT SOLO BOMBING MISSIONS SAFELY.";
shipdesctext = shipdesctext + "\rSTRENGTH: 300\rENERGY: 7000\rSPEED: 6\rCARGO CAPACITY: 400 TONS\rSPECIAL WEAPON: AFT TORPEDO LAUNCHER";
}
Symbol 202 Button
on (release) {
shipdesctext = "AS THE X-WINGS BEGAN TO SHOW THEIR AGE AND NEW TECHNOLOGIES BECAME AVAILABLE, REBEL ENGINEERS DECIDED TO UPGRADE THE RELIABLE AND STURDY X-WING SPACEFRAME. THE RESULT WAS THE X-WING TYPE B, A FAST AND POWERFUL SHIP THAT HAS AN ADDITIONAL TORPEDO LAUNCHER MOUNTED ONTO ITS UNDERCARRIAGE. THESE SHIPS ARE SUPERIOR TO THE ORIGINAL X-WING IN EVERY WAY, BUT ARE FAR MORE EXPENSIVE TO PRODUCE.";
shipdesctext = shipdesctext + "\rSTRENGTH: 300\rENERGY: 8000\rSPEED: 6\rCARGO CAPACITY: 300 TONS\rSPECIAL WEAPON: SPACE MINES";
}
Symbol 203 Button
on (release) {
shipdesctext = "THE FALCON CLASS STARSHIP IS THE FASTEST VESSEL IN THE FLEET. ORIGINALLY DESIGNED BY A PRIVATE CORPORATION AS A CARGO FREIGHTER, THE REBELS QUICKLY REALIZED THE COMBAT CAPABILITIES OF THIS VERSATILE CRAFT. ITS TORPEDOES RELOAD FASTER THAN ANY SHIP BEFORE IT, AND ITS TWIN FORWARD LASER CANNONS PACK A HEAVY PUNCH. WHEN ASSIGNED TO GUARD YOUR BASE, THE FALCONS WILL ALSO GATHER RESOURCES - THOUGH IN SIGNIFICANTLY LARGER QUANTITIES THAN THE A-WINGS.";
shipdesctext = shipdesctext + "\rSTRENGTH: 500\rENERGY: 8000\rSPEED: 10\rCARGO CAPACITY: 1000 TONS\rSPECIAL WEAPON: DROID TROOPS";
}
Symbol 204 Button
on (release) {
shipdesctext = "WITH THE DISMAL FAILURE OF THE Y-WING AND THE AGING OF THE V-WING, THE REBEL ALLIANCE BEGAN PRODUCTION OF THE M-WING BOMBER. WITH TWIN LASER CANNONS ON ITS WINGTIPS AND A RAPID-FIRE TORPEDO LAUNCHER, THE M-WING PROVED FAR SUPERIOR TO ANY BOMBER IN THE REBEL FLEET. REGARDLESS OF THE EXPENSE, THE REBELS PREFER TO KEEP ONE OR TWO OF THESE SHIPS IN THEIR FLEET AT ALL TIMES TO PROVIDE HEAVY FIREPOWER AGAINST THE LARGE IMPERIAL WARSHIPS.";
shipdesctext = shipdesctext + "\rSTRENGTH: 350\rENERGY: 7000\rSPEED: 7\rCARGO CAPACITY: 800 TONS\rSPECIAL WEAPON: CLOAKING DEVICE";
}
Symbol 205 Button
on (release) {
shipdesctext = "THE TRX CORVETTE IS AN ADAPTATION OF A HEAVY CARGO FREIGHTER. ITS CARGO HOLDS WERE REMOVED AND REFITTED WITH HEAVY TURBO-LASER CANNON TURRENTS AND A RAPID-FIRE TORPEDO LAUNCHER. THE SHIPS WERE PRODUCED TO WITHSTAND AN ASSAULT FROM THE MIGHTY SUPER STAR DESTROYERS. ALTHOUGH NO MATCH FOR IMPERIAL WARSHIPS ALONE, A SMALL FLEET OF CORVETTES WITH A GOOD FIGHTER ESCORT CAN TAKE DOWN EVEN THE LARGEST OF IMPERIAL SHIPS. HOWEVER THESE HUGE STARSHIPS ARE PROHIBITIVELY EXPENSIVE.";
shipdesctext = shipdesctext + "\rSTRENGTH: 1000\rENERGY: 10000\rSPEED: 4\rCARGO CAPACITY: 5000 TONS\rSPECIAL WEAPON: TORPEDO TURRENT";
}
Symbol 206 Button
on (release) {
shipdesctext = "THE TINY TIE-FIGHTER IS THE PRIMARY FIGHTER OF THE EMPIRE'S FLEET. THOUGH SMALL AND WEAK IT IS FAST AND MANUVERABLE. ALONE THEY ARE NO THREAT EVEN TO THE OLD X-WING FIGHTERS, BUT IN LARGE GROUPS THEY ARE QUITE DEADLY. THE EMPIRE OFTEN PRODUCES MANY OF THESE IN LARGE NUMBERS AND SENDS THEM IN THE FIRST WAVE OF AN ATTACK TO SOFTEN THE ENEMY BEFORE SENDING IN THE IMPERIAL WARSHIPS TO FINISH THE JOB.";
shipdesctext = shipdesctext + "\rSTRENGTH: 75\rENERGY: 3000\rSPEED: 5\rCARGO CAPACITY: 0 TONS\rSPECIAL WEAPON: NONE";
}
Symbol 207 Button
on (release) {
shipdesctext = " TIE-INTERCEPTOR IS THE UPGRADED VERSON OF THE TIE-FIGHTER. FASTER, STRONGER, AND MORE POWERFUL, THE TIE-INTERCEPTOR IS RESERVED FOR SPECIAL-FORCES PILOTS AND THOSE WITH EXCEPTIONAL SKILL.";
shipdesctext = shipdesctext + "\rSTRENGTH: 200\rENERGY: 5000\rSPEED: 7\rCARGO CAPACITY: 50 TONS\rSPECIAL WEAPON: MINES";
}
Symbol 208 Button
on (release) {
shipdesctext = " THE LAMBDA CLASS SHUTTLE IS GENERALLY USED FOR CARGO TRANSPORT. MANY OF THEM HOWEVER HAVE BEEN CONVERTED INTO TROOP AND WEAPONS TRANSPORTS. THEIR SLEEK DESIGN AND EXTENSIVE WEAPONRY ALSO ALLOW THEM TO SERVE AS COMBAT VESSELS ON SOLO MISSIONS.";
shipdesctext = shipdesctext + "\rSTRENGTH: 400\rENERGY: 8000\rSPEED: 8\rCARGO CAPACITY: 800 TONS\rSPECIAL WEAPON: CLOAKING DEVICE";
}
Symbol 209 Button
on (release) {
shipdesctext = " THE IMPERIAL STAR DESTROYER IS AN IMMENSE HIGH-POWERED VESSEL CAPABLE OF TAKING OUT FIGHTER FLEETS WITH RELATIVE EASE. THOUGH NOT QUITE AS STRONG AS THE REBEL TRX CORVETTES, THE EMPIRE MAKES UP FOR STRENGTH WITH SHEER NUMBERS. THERE ARE THOUSANDS OF STAR DESTROYERS IN THE IMPERIAL FLEET.";
shipdesctext = shipdesctext + "\rSTRENGTH: 900\rENERGY: 10000\rSPEED: 5\rCARGO CAPACITY: 10000 TONS\rSPECIAL WEAPON: TORPEDO TURRENT";
}
Symbol 210 Button
on (release) {
shipdesctext = " THE SUPER STAR DESTROYER IS THE EMPEROR'S FLAGSHIP. SEVERAL DOZEN OF THESE ARE IN SERVICE IN THE IMPERIAL FLEET. THEY ARE HEAVILY ARMED, EQUIPPED WITH EXTENSIVE WEAPONRY, AND CAN EASILY DESTROY A FLEET OF REBEL CORVETTES. THEY ALSO CARRY A HEAVY FLEET ABOARD THAT CAN BE LAUNCHED DURING AN ATTACK. TO THIS DATE, NO REBEL ATTACK HAS MANAGED TO TAKE DOWN A SUPER STAR DESTROYER.";
shipdesctext = shipdesctext + "\rSTRENGTH: 2000\rENERGY: 50000\rSPEED: 3\rCARGO CAPACITY: 100000 TONS\rSPECIAL WEAPON: MEGA-TORPEDOES";
}
Symbol 211 Button
on (release) {
shipdesctext = " THE TIE BOMBER IS THE TORPEDO PLATFORM OF THE IMPERIAL FLEET. THOUGH SOMEWHAT SLOW, ITS HEAVY TORPEDOES CAN INFLICT MASSIVE DAMAGE ONTO ITS TARGET. THESE SHIPS USUALLY FLY WITH TIE-FIGHTER ESCORTS TO PROVIDE PROTECTIVE COVER.";
shipdesctext = shipdesctext + "\rSTRENGTH: 300\rENERGY: 5000\rSPEED: 5\rCARGO CAPACITY: 100 TONS\rSPECIAL WEAPON: ENGINE NEUTRALIZING PULSE";
}
Symbol 214 Button
on (release) {
gotoAndStop (11);
}
Symbol 217 Button
on (release) {
if (myLSO.data.leveleas >= 1) {
myLSO.data.level = 1;
myLSO.data.estarbasex = 5000;
myLSO.data.estarbasey = 5000;
gotoAndPlay (20);
}
}
Symbol 221 Button
on (release) {
if (myLSO.data.leveleas >= 2) {
myLSO.data.level = 2;
myLSO.data.estarbasex = -5000;
myLSO.data.estarbasey = 5000;
gotoAndPlay (20);
}
}
Symbol 223 Button
on (release) {
if (myLSO.data.leveleas >= 3) {
myLSO.data.level = 3;
myLSO.data.estarbasex = 200;
myLSO.data.estarbasey = -5000;
gotoAndPlay (20);
}
}
Symbol 225 Button
on (release) {
if (myLSO.data.leveleas >= 4) {
myLSO.data.level = 4;
myLSO.data.estarbasex = -5500;
myLSO.data.estarbasey = -500;
gotoAndPlay (20);
}
}
Symbol 227 Button
on (release) {
if (myLSO.data.leveleas >= 5) {
myLSO.data.level = 5;
myLSO.data.estarbasex = 5000;
myLSO.data.estarbasey = -5000;
gotoAndPlay (20);
}
}
Symbol 229 Button
on (release) {
if (myLSO.data.leveleas >= 6) {
myLSO.data.level = 6;
myLSO.data.estarbasex = -4600;
myLSO.data.estarbasey = 2000;
gotoAndPlay (20);
}
}
Symbol 231 Button
on (release) {
if (myLSO.data.leveleas >= 7) {
myLSO.data.level = 7;
myLSO.data.totenemies = 10;
myLSO.data.estarbasex = -5000;
myLSO.data.estarbasey = 5000;
_global.make_ssd = 1;
gotoAndPlay (20);
}
}
Symbol 233 Button
on (release) {
if (myLSO.data.leveleas >= 8) {
myLSO.data.level = 8;
myLSO.data.estarbasex = 5000;
myLSO.data.estarbasey = -5000;
gotoAndPlay (20);
}
}
Symbol 235 Button
on (release) {
if (myLSO.data.leveleas >= 9) {
myLSO.data.level = 9;
myLSO.data.totenemies = 15;
myLSO.data.estarbasex = -5000;
myLSO.data.estarbasey = 5000;
_global.make_ssd = 1;
gotoAndPlay (20);
}
}
Symbol 237 Button
on (release) {
gotoAndPlay (12);
}
Symbol 240 Button
on (release) {
if (_root.cheatbox == "openall") {
myLSO.data.leveleas = 10;
}
_root.cheatbox = "";
}
Symbol 244 Button
on (release) {
gotoAndStop (13);
}
Symbol 262 Button
on (release) {
select_ship++;
if (select_ship > 14) {
select_ship = 1;
}
}
Symbol 263 Button
on (release) {
select_ship--;
if (select_ship < 1) {
select_ship = 14;
}
}
Symbol 278 MovieClip Frame 1
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 2
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 3
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 4
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 5
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 6
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 7
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 8
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 9
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 10
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 11
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 12
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 13
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 14
gotoAndPlay(_root.select_ship);
Symbol 278 MovieClip Frame 15
gotoAndPlay(_root.select_ship);
Symbol 281 Button
on (release) {
select_base++;
if (select_base > 9) {
select_base = 1;
}
}
Symbol 282 Button
on (release) {
select_base--;
if (select_base < 1) {
select_base = 9;
}
}
Symbol 283 Button
on (release) {
myLSO.data.level = 7;
myLSO.data.totenemies = Number(start_enemies);
myLSO.data.estarbasex = -5000;
myLSO.data.estarbasey = 5000;
_global.make_ssd = 0;
if (enemylevel == 6) {
_global.make_ssd = 1;
}
x = getProperty("empire_base", _x) - getProperty("rebel_base", _x);
y = getProperty("empire_base", _y) - getProperty("rebel_base", _y);
x = x * 200;
y = y * 150;
myLSO.data.estarbasex = x;
myLSO.data.estarbasey = y;
if (techlevel == "PRIMITIVE") {
myLSO.data.era = 0;
}
if (techlevel == "MODERATE") {
myLSO.data.era = 8;
}
if (techlevel == "ADVANCED") {
myLSO.data.era = 13;
}
if (select_ship == 1) {
myLSO.data.ship = 1;
}
if (select_ship == 2) {
myLSO.data.ship = 37;
}
if (select_ship == 3) {
myLSO.data.ship = 289;
}
if (select_ship == 4) {
myLSO.data.ship = 181;
}
if (select_ship == 5) {
myLSO.data.ship = 253;
}
if (select_ship == 6) {
myLSO.data.ship = 217;
}
if (select_ship == 7) {
myLSO.data.ship = 73;
}
if (select_ship == 8) {
myLSO.data.ship = 145;
}
if (select_ship == 9) {
myLSO.data.ship = 109;
}
if (select_ship == 10) {
myLSO.data.ship = 411;
}
if (select_ship == 11) {
myLSO.data.ship = 325;
}
if (select_ship == 12) {
myLSO.data.ship = 507;
}
if (select_ship == 13) {
myLSO.data.ship = 475;
}
if (select_ship == 14) {
myLSO.data.ship = 443;
}
if (select_ship == 15) {
myLSO.data.ship = 539;
}
myLSO.data.fship0 = 2;
myLSO.data.fship1 = 2;
myLSO.data.fship2 = undefined;
myLSO.data.fship3 = undefined;
myLSO.data.fship4 = undefined;
myLSO.data.fship5 = undefined;
myLSO.data.fship6 = undefined;
myLSO.data.fship7 = undefined;
myLSO.data.fship8 = undefined;
myLSO.data.fship9 = undefined;
myLSO.data.fship10 = undefined;
myLSO.data.fship11 = undefined;
myLSO.data.fship12 = undefined;
myLSO.data.fship13 = undefined;
myLSO.data.fship14 = undefined;
myLSO.data.fship15 = undefined;
myLSO.data.fship16 = undefined;
myLSO.data.fship17 = undefined;
myLSO.data.fship18 = undefined;
myLSO.data.fship19 = undefined;
myLSO.data.fship20 = undefined;
myLSO.data.d1 = 0;
myLSO.data.d2 = 0;
myLSO.data.d1 = Number(custom_gold);
myLSO.data.d2 = Number(custom_metal);
customtype = new Array();
i = 0;
while (i < 21) {
customtype[i] = undefined;
i++;
}
i = 0;
if (((custom_a > 0) and (custom_a != undefined)) and (custom_a != "")) {
while (custom_a > 0) {
customtype[i] = 2;
i++;
custom_a--;
}
}
if (((custom_x > 0) and (custom_x != undefined)) and (custom_x != "")) {
while (custom_x > 0) {
customtype[i] = 11;
i++;
custom_x--;
}
}
if (((custom_y > 0) and (custom_y != undefined)) and (custom_y != "")) {
while (custom_y > 0) {
customtype[i] = 20;
i++;
custom_y--;
}
}
if (((custom_v > 0) and (custom_v != undefined)) and (custom_v != "")) {
while (custom_v > 0) {
customtype[i] = 29;
i++;
custom_v--;
}
}
if (((custom_x2 > 0) and (custom_x2 != undefined)) and (custom_x2 != "")) {
while (custom_x2 > 0) {
customtype[i] = 38;
i++;
custom_x2--;
}
}
if (((custom_m > 0) and (custom_m != undefined)) and (custom_m != "")) {
while (custom_m > 0) {
customtype[i] = 47;
i++;
custom_m--;
}
}
if (((custom_c > 0) and (custom_c != undefined)) and (custom_c != "")) {
while (custom_c > 0) {
customtype[i] = 56;
i++;
custom_c--;
}
}
if (((custom_f > 0) and (custom_f != undefined)) and (custom_f != "")) {
while (custom_f > 0) {
customtype[i] = 65;
i++;
custom_f--;
}
}
myLSO.data.fship0 = customtype[0];
myLSO.data.fship1 = customtype[1];
myLSO.data.fship2 = customtype[2];
myLSO.data.fship3 = customtype[3];
myLSO.data.fship4 = customtype[4];
myLSO.data.fship5 = customtype[5];
myLSO.data.fship6 = customtype[6];
myLSO.data.fship7 = customtype[7];
myLSO.data.fship8 = customtype[8];
myLSO.data.fship9 = customtype[9];
myLSO.data.fship10 = customtype[10];
myLSO.data.fship11 = customtype[11];
myLSO.data.fship12 = customtype[12];
myLSO.data.fship13 = customtype[13];
myLSO.data.fship14 = customtype[14];
myLSO.data.fship15 = customtype[15];
myLSO.data.fship16 = customtype[16];
myLSO.data.fship17 = customtype[17];
myLSO.data.fship18 = customtype[18];
myLSO.data.fship19 = customtype[19];
myLSO.data.fship20 = customtype[20];
myLSO.data.level = select_base;
level = myLSO.data.level;
gotoAndPlay (20);
}
Symbol 291 Button
on (release) {
if (difficulty == "HARD") {
difficulty = "EASY";
} else if (difficulty == "MODERATE") {
difficulty = "HARD";
} else if (difficulty == "EASY") {
difficulty = "MODERATE";
}
}
Symbol 292 Button
on (release) {
if (difficulty == "HARD") {
difficulty = "MODERATE";
} else if (difficulty == "MODERATE") {
difficulty = "EASY";
} else if (difficulty == "EASY") {
difficulty = "HARD";
}
}
Symbol 312 MovieClip Frame 1
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 2
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 3
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 4
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 5
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 6
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 7
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 8
gotoAndPlay(_root.select_base);
Symbol 312 MovieClip Frame 9
gotoAndPlay(_root.select_base);
Symbol 317 Button
on (release) {
if (myLSO.data.leveleas >= 10) {
select_ship = 15;
gotoAndStop (16);
}
if (myLSO.data.leveleas < 10) {
select_ship = 15;
gotoAndStop (17);
}
}
Symbol 321 Button
on (release) {
if (techlevel == "ADVANCED") {
techlevel = "PRIMITIVE";
} else if (techlevel == "MODERATE") {
techlevel = "ADVANCED";
} else if (techlevel == "PRIMITIVE") {
techlevel = "MODERATE";
}
}
Symbol 322 Button
on (release) {
if (techlevel == "ADVANCED") {
techlevel = "MODERATE";
} else if (techlevel == "MODERATE") {
techlevel = "PRIMITIVE";
} else if (techlevel == "PRIMITIVE") {
techlevel = "ADVANCED";
}
}
Symbol 323 Button
on (release) {
x = random(108);
y = random(94);
x = x + 260;
y = y + 126;
setProperty("rebel_base", _x , x);
setProperty("rebel_base", _y , y);
x = random(108);
y = random(94);
x = x + 260;
y = y + 126;
setProperty("empire_base", _x , x);
setProperty("empire_base", _y , y);
}
Symbol 325 Button
on (release) {
gotoAndStop (14);
}
Symbol 331 Button
on (release) {
_root.customwingtype = _root.customwingtype + 1;
if (_root.customwingtype > 10) {
_root.customwingtype = 1;
}
}
Symbol 332 Button
on (release) {
_root.customwingtype = _root.customwingtype - 1;
if (_root.customwingtype < 1) {
_root.customwingtype = 10;
}
}
Symbol 334 Button
on (release) {
_root.customnosetype = _root.customnosetype + 1;
if (_root.customnosetype > 6) {
_root.customnosetype = 1;
}
}
Symbol 335 Button
on (release) {
_root.customnosetype = _root.customnosetype - 1;
if (_root.customnosetype < 1) {
_root.customnosetype = 6;
}
}
Symbol 337 Button
on (release) {
_root.custombodytype = _root.custombodytype + 1;
if (_root.custombodytype > 7) {
_root.custombodytype = 1;
}
}
Symbol 338 Button
on (release) {
_root.custombodytype = _root.custombodytype - 1;
if (_root.custombodytype < 1) {
_root.custombodytype = 7;
}
}
Symbol 341 Button
on (release) {
if (Number(custom_hull) <= 5000) {
Number((custom_hull = custom_hull + 100));
}
}
Symbol 342 Button
on (release) {
if (Number(custom_hull) >= 100) {
Number((custom_hull = custom_hull - 100));
}
}
Symbol 344 Button
on (release) {
if (Number(custom_shields) <= 5000) {
Number((custom_shields = custom_shields + 100));
}
}
Symbol 345 Button
on (release) {
if (Number(custom_shields) >= 100) {
Number((custom_shields = custom_shields - 100));
}
}
Symbol 350 Button
on (release) {
_root.customweapon2++;
if (_root.customweapon2 > 3) {
_root.customweapon2 = 1;
}
if (_root.customweapon2 == 1) {
_root.customweapon2text = "SINGLE";
}
if (_root.customweapon2 == 2) {
_root.customweapon2text = "DOUBLE";
}
if (_root.customweapon2 == 3) {
_root.customweapon2text = "TURRENT";
}
}
Symbol 351 Button
on (release) {
_root.customweapon2--;
if (_root.customweapon2 < 1) {
_root.customweapon2 = 3;
}
if (_root.customweapon2 == 1) {
_root.customweapon2text = "SINGLE";
}
if (_root.customweapon2 == 2) {
_root.customweapon2text = "DOUBLE";
}
if (_root.customweapon2 == 3) {
_root.customweapon2text = "TURRENT";
}
}
Symbol 353 Button
on (release) {
_root.customweapon1++;
if (_root.customweapon1 > 5) {
_root.customweapon1 = 1;
}
if (_root.customweapon1 == 1) {
_root.customweapon1text = "SINGLE";
}
if (_root.customweapon1 == 2) {
_root.customweapon1text = "ALTERNATING";
}
if (_root.customweapon1 == 3) {
_root.customweapon1text = "DOUBLE";
}
if (_root.customweapon1 == 4) {
_root.customweapon1text = "TURBOLASER";
}
if (_root.customweapon1 == 5) {
_root.customweapon1text = "TURRENT";
}
}
Symbol 354 Button
on (release) {
_root.customweapon1 = _root.customweapon1 - 1;
if (_root.customweapon1 < 1) {
_root.customweapon1 = 5;
}
if (_root.customweapon1 == 1) {
_root.customweapon1text = "SINGLE";
}
if (_root.customweapon1 == 2) {
_root.customweapon1text = "ALTERNATING";
}
if (_root.customweapon1 == 3) {
_root.customweapon1text = "DOUBLE";
}
if (_root.customweapon1 == 4) {
_root.customweapon1text = "TURBOLASER";
}
if (_root.customweapon1 == 5) {
_root.customweapon1text = "TURRENT";
}
}
Symbol 356 Button
on (release) {
_root.customspecial++;
if (_root.customspecial > 7) {
_root.customspecial = 1;
}
if (_root.customspecial == 1) {
_root.customspecialtext = "CLOAK";
}
if (_root.customspecial == 2) {
_root.customspecialtext = "MINES";
}
if (_root.customspecial == 3) {
_root.customspecialtext = "AFT BLASTER";
}
if (_root.customspecial == 4) {
_root.customspecialtext = "DROID TROOPS";
}
if (_root.customspecial == 5) {
_root.customspecialtext = "ENGINE PULSE";
}
if (_root.customspecial == 6) {
_root.customspecialtext = "AFT TORPEDO";
}
if (_root.customspecial == 7) {
_root.customspecialtext = "MEGA TORPEDO";
}
}
Symbol 357 Button
on (release) {
_root.customspecial--;
if (_root.customspecial < 1) {
_root.customspecial = 7;
}
if (_root.customspecial == 1) {
_root.customspecialtext = "CLOAK";
}
if (_root.customspecial == 2) {
_root.customspecialtext = "MINES";
}
if (_root.customspecial == 3) {
_root.customspecialtext = "AFT BLASTER";
}
if (_root.customspecial == 4) {
_root.customspecialtext = "DROID TROOPS";
}
if (_root.customspecial == 5) {
_root.customspecialtext = "ENGINE PULSE";
}
if (_root.customspecial == 6) {
_root.customspecialtext = "AFT TORPEDO";
}
if (_root.customspecial == 7) {
_root.customspecialtext = "MEGA TORPEDO";
}
}
Symbol 359 Button
on (release) {
if (Number(custom_speed) <= 14) {
Number((custom_speed = custom_speed + 1));
}
}
Symbol 360 Button
on (release) {
if (Number(custom_speed) >= 2) {
Number((custom_speed = custom_speed - 1));
}
}
Symbol 364 Button
on (release) {
myLSO.data.customwingtype = customwingtype;
myLSO.data.customnosetype = customnosetype;
myLSO.data.custombodytype = custombodytype;
myLSO.data.custom_mass = custom_mass;
myLSO.data.custom_hull = custom_hull;
myLSO.data.custom_shields = custom_shields;
myLSO.data.custom_speed = custom_speed;
myLSO.data.custom_cargo = custom_cargo;
myLSO.data.customspecial = customspecial;
myLSO.data.customweapon1 = customweapon1;
myLSO.data.customweapon2 = customweapon2;
myLSO.data.custom_rate1 = custom_rate1;
myLSO.data.custom_rate2 = custom_rate2;
myLSO.data.customname = classname;
gotoAndStop (12);
}
Symbol 366 Button
on (release) {
x = getProperty("custom_ship", _xscale);
if (x < 100) {
x = x + 1;
}
setProperty("custom_ship", _xscale , x);
setProperty("custom_ship", _yscale , x);
custom_mass = x;
}
Symbol 367 Button
on (release) {
x = getProperty("custom_ship", _xscale);
if (x > 20) {
x = x - 1;
}
setProperty("custom_ship", _xscale , x);
setProperty("custom_ship", _yscale , x);
custom_mass = x;
}
Symbol 368 Button
on (release) {
if (Number(custom_cargo) <= 5000) {
Number((custom_cargo = custom_cargo + 100));
}
}
Symbol 369 Button
on (release) {
if (Number(custom_cargo) >= 300) {
Number((custom_cargo = custom_cargo - 100));
}
}
Symbol 373 Button
on (release) {
my_ship_code = ((((((((((((((((((((((((((((((customwingtype * 3) + ",") + (customnosetype * 5)) + ",") + (custombodytype * 2)) + ",") + (custom_mass * 8)) + ",") + (custom_hull * 4)) + ",") + (custom_shields * 3)) + ",") + (custom_speed * 2)) + ",") + (custom_cargo * 2)) + ",") + (customweapon1 * 4)) + ",") + (customweapon2 * 8)) + ",") + (customspecial * 7)) + ",") + (cost1 * 9.5)) + ",") + (cost2 * 5.3)) + ",") + classname) + ",") + (custom_rate1 * 3)) + ",") + (custom_rate2 * 4);
gotoAndStop (17);
}
Symbol 378 Button
on (release) {
if (Number(custom_rate1) <= 9) {
Number((custom_rate1 = custom_rate1 + 1));
}
}
Symbol 379 Button
on (release) {
if (Number(custom_rate1) >= 2) {
Number((custom_rate1 = custom_rate1 - 1));
}
}
Symbol 381 Button
on (release) {
if (Number(custom_rate2) <= 9) {
Number((custom_rate2 = custom_rate2 + 1));
}
}
Symbol 382 Button
on (release) {
if (Number(custom_rate2) >= 2) {
Number((custom_rate2 = custom_rate2 - 1));
}
}
Symbol 387 Button
on (release) {
myArray = my_ship_code.split(",");
customwingtype = myArray[0] / 3;
customnosetype = myArray[1] / 5;
custombodytype = myArray[2] / 2;
custom_mass = myArray[3] / 8;
custom_hull = myArray[4] / 4;
custom_shields = myArray[5] / 3;
custom_speed = myArray[6] / 2;
custom_cargo = myArray[7] / 2;
customweapon1 = myArray[8] / 4;
customweapon2 = myArray[9] / 8;
customspecial = myArray[10] / 7;
cost1 = myArray[11] / 9.5;
cost2 = myArray[12] / 5.3;
classname = myArray[13];
custom_rate1 = myArray[14] / 3;
custom_rate2 = myArray[15] / 4;
if ((custom_mass > 0) and (custom_mass <= 100)) {
if (myLSO.data.leveleas >= 10) {
gotoAndStop (16);
}
if (myLSO.data.leveleas < 10) {
select_ship = 15;
myLSO.data.customwingtype = customwingtype;
myLSO.data.customnosetype = customnosetype;
myLSO.data.custombodytype = custombodytype;
myLSO.data.custom_mass = custom_mass;
myLSO.data.custom_hull = custom_hull;
myLSO.data.custom_shields = custom_shields;
myLSO.data.custom_speed = custom_speed;
myLSO.data.custom_cargo = custom_cargo;
myLSO.data.customspecial = customspecial;
myLSO.data.customweapon1 = customweapon1;
myLSO.data.customweapon2 = customweapon2;
myLSO.data.custom_rate1 = custom_rate1;
myLSO.data.custom_rate2 = custom_rate2;
myLSO.data.customname = classname;
gotoAndStop (12);
}
}
}
Symbol 389 Button
on (release) {
if (myLSO.data.leveleas >= 10) {
select_ship = 15;
gotoAndStop (16);
}
if (myLSO.data.leveleas < 10) {
select_ship = 1;
gotoAndStop (12);
}
}
Symbol 405 MovieClip Frame 1
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.hitstrength = 10;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 10);
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 10);
}
if (_root.step > 6) {
Set("../starbase:hit", 10);
}
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 2
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 5
removeMovieClip("");
Symbol 405 MovieClip Frame 6
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.hitstrength = 20;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 20);
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 20);
}
if (_root.step > 6) {
Set("../starbase:hit", 20);
}
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 7
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 10
removeMovieClip("");
Symbol 405 MovieClip Frame 11
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.hitstrength = 30;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 30);
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 30);
}
if (_root.step > 6) {
Set("../starbase:hit", 30);
}
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 12
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 15
removeMovieClip("");
Symbol 405 MovieClip Frame 16
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.hitstrength = 60;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 60);
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 60);
}
if (_root.step > 6) {
Set("../starbase:hit", 60);
}
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 17
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 20
removeMovieClip("");
Symbol 405 MovieClip Frame 21
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.hitstrength = 75;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 75);
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 75);
}
if (_root.step > 6) {
Set("../starbase:hit", 75);
}
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 22
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 25
removeMovieClip("");
Symbol 405 MovieClip Frame 26
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.engines = 2;
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 27
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 30
removeMovieClip("");
Symbol 405 MovieClip Frame 31
removeMovieClip("");
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(1000)) or (Number(my_y) < Number(-300))) or (Number(my_x) > Number(1000))) or (Number(my_x) < Number(-300))) {
removeMovieClip("");
} else if (random(3) == 1) {
if (this.hitTest("../defiant")) {
_root.hitstrength = 150;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (33);
}
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 150);
gotoAndPlay (33);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 150);
}
if (_root.step > 6) {
Set("../starbase:hit", 150);
}
gotoAndPlay (3);
}
}
rotation = getProperty("../defiant", _rotation);
x = (Math.sin(rotation * (Math.PI/180)) * 20) * -1;
y = Math.cos(rotation * (Math.PI/180)) * 20;
if (!_root.move.hitTest(_x + x, _y + y, true)) {
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
locx = Number(my_x) + Number(xmov);
locy = Number(my_y) + Number(ymov);
_x = locx;
_y = locy;
}
Symbol 405 MovieClip Frame 32
gotoAndPlay(torptype);
Symbol 405 MovieClip Frame 35
removeMovieClip("");
Symbol 424 Button
on (release) {
gotoAndPlay(torptype + 2);
}
Symbol 427 MovieClip Frame 1
if (torptype == undefined) {
gotoAndPlay (1);
} else {
gotoAndPlay(torptype);
}
Symbol 427 MovieClip Frame 2
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 20);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
Set("../estarbase:energydraw", 20);
remove = 1;
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 3
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 6
removeMovieClip("");
Symbol 427 MovieClip Frame 7
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 20);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
Set("../estarbase:energydraw", 20);
remove = 1;
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 8
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 11
removeMovieClip("");
Symbol 427 MovieClip Frame 12
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 13
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 20);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 20);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 14
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 17
removeMovieClip("");
Symbol 427 MovieClip Frame 18
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 20);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 20);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 19
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 22
removeMovieClip("");
Symbol 427 MovieClip Frame 23
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 60);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 60);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 24
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 26
removeMovieClip("");
Symbol 427 MovieClip Frame 28
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 100);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 100);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 29
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 32
removeMovieClip("");
Symbol 427 MovieClip Frame 33
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 20);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 20);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 34
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 37
removeMovieClip("");
Symbol 427 MovieClip Frame 38
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 300);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 300);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 39
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 42
removeMovieClip("");
Symbol 427 MovieClip Frame 43
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 40);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 40);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 44
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 47
removeMovieClip("");
Symbol 427 MovieClip Frame 48
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 120);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 120);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 49
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 52
removeMovieClip("");
Symbol 427 MovieClip Frame 53
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
timer = timer - 1;
if (timer <= 0) {
gotoAndPlay(torptype + 2);
} else if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 200);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((((x > 0) and (x < 550)) and (y > 0)) and (y < 400)) {
Set("../estarbase:energydraw", 200);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 427 MovieClip Frame 54
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 57
if (timer != undefined) {
_root.mines = _root.mines - 1;
}
removeMovieClip("");
Symbol 427 MovieClip Frame 58
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
_rotation = (_rotation + 5);
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":takeover", 1);
remove = 1;
}
i++;
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 59
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 62
removeMovieClip("");
Symbol 427 MovieClip Frame 63
gotoAndPlay(torptype);
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(400)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(550))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
_rotation = (_rotation + 20);
if (random(3) == 1) {
remove = 0;
i = 0;
while (i < 20) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":my_engine", 1);
remove = 1;
}
i++;
}
if (remove == 1) {
gotoAndPlay(torptype + 2);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
}
Symbol 427 MovieClip Frame 64
gotoAndPlay(torptype);
Symbol 427 MovieClip Frame 67
removeMovieClip("");
Symbol 430 MovieClip Frame 1
if (type > 0) {
if (type == 1) {
gotoAndPlay (3);
}
if (type == 2) {
gotoAndPlay (5);
}
}
Symbol 430 MovieClip Frame 2
gotoAndPlay (1);
Symbol 430 MovieClip Frame 4
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and ((_root.dilithium + _root.deuranium) < _root.tot_cargo)) {
x = random(200);
_global.gcollect = _global.gcollect + x;
_root.dilithium = _root.dilithium + x;
_root.comm = ("YOU LOAD " + x) + " TONS OF GOLD...";
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
_root.resources2 = _root.dilithium;
_root.resources1 = _root.deuranium;
removeMovieClip("");
}
if ((_root.dilithium + _root.deuranium) >= _root.tot_cargo) {
_root.comm = "CARGO CAPACITY HAS BEEN REACHED...";
x = _root.tot_cargo - (_root.dilithium + _root.deuranium);
if (_root.dilithium >= x) {
_root.dilithium = _root.dilithium - x;
} else if (_root.deuranium >= x) {
_root.deuranium = _root.deuranium - x;
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (3);
Symbol 430 MovieClip Frame 6
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and ((_root.dilithium + _root.deuranium) < _root.tot_cargo)) {
x = random(200);
_global.mcollect = _global.mcollect + x;
_root.deuranium = _root.deuranium + x;
_root.comm = ("YOU LOAD " + x) + " TONS OF METAL...";
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
_root.resources2 = _root.dilithium;
_root.resources1 = _root.deuranium;
removeMovieClip("");
}
if ((_root.dilithium + _root.deuranium) >= _root.tot_cargo) {
_root.comm = "CARGO CAPACITY HAS BEEN REACHED...";
x = _root.tot_cargo - (_root.dilithium + _root.deuranium);
if (_root.dilithium >= x) {
_root.dilithium = _root.dilithium - x;
} else if (_root.deuranium >= x) {
_root.deuranium = _root.deuranium - x;
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (5);
Symbol 435 MovieClip Frame 1
gotoAndPlay(open_select);
Symbol 435 MovieClip Frame 2
gotoAndPlay(open_select);
_rotation = (_rotation + 10);
Symbol 438 MovieClip Frame 1
if (menu == 1) {
gotoAndPlay (3);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
rotation = rotation + 90;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if ((((Math.abs(_x - defx) < 200) and (Math.abs(_y - defy) < 200)) and ((defx > 0) or (defx < 0))) and (construction == 0)) {
shootx = _x;
shooty = _y;
if (random(10) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 12);
}
if (_root.step < 6) {
mytorp = 1;
}
if ((_root.step >= 6) and (_root.step < 12)) {
mytorp = 6;
}
if (_root.step >= 12) {
mytorp = 11;
}
Set(("../shot" add _root.shotname) add ":torptype", mytorp);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
if (random(5) == 1) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 200) and (Math.abs(y - _y) < 200)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
Instance of Symbol 433 MovieClip "stationpic" in Symbol 438 MovieClip Frame 1
on (release) {
if (menu == 0) {
menu = 1;
} else {
menu = 0;
}
}
on (rollOver) {
_root.comm = "REBEL BASE: ";
bar = ((500 - Math.abs(damage)) / 500) * 100;
_root.comm = ((_root.comm + "THE STATION'S SHIELDS ARE AT ") + bar) + "%.";
}
on (rollOut) {
if (_root.comm == "REBEL BASE") {
_root.comm = "";
}
}
Instance of Symbol 435 MovieClip "selected" in Symbol 438 MovieClip Frame 1
onClipEvent (load) {
open_select = 1;
fade = 1;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer = timer - 1;
if (timer == 0) {
open_select = 1;
_root.menu_open = 0;
}
}
if (open_select == 2) {
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 50) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 100) {
fade = 1;
}
}
}
}
Symbol 438 MovieClip Frame 2
if (menu == 0) {
gotoAndPlay (1);
}
if (menu == 1) {
gotoAndPlay (3);
}
if ((damage < 0) and (random(10) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
Set("stationpic:damage", damage);
if (random(5) == 1) {
_root.comm = "THE REBEL BASE IS UNDER ATTACK...";
}
bar = ((myenergy - Math.abs(damage)) / myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 22);
setProperty("../enemybar", _y , _y + 37);
}
if (damage < (myenergy * -1)) {
deadtime = 100;
gotoAndPlay (5);
}
Symbol 438 MovieClip Frame 36
if (damage == 0) {
gotoAndPlay (1);
}
deadtime = deadtime - 1;
if (deadtime < 0) {
_root.dead();
}
Symbol 438 MovieClip Frame 37
gotoAndPlay (36);
Symbol 448 MovieClip Frame 1
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 2
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 3
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 4
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 5
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 6
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 7
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 8
gotoAndPlay(_root.level);
Symbol 448 MovieClip Frame 9
gotoAndPlay(_root.level);
Symbol 451 MovieClip Frame 1
if ((myenergy >= 0) and (_root.level != 7)) {
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / totenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
energydraw = 0;
}
if ((random(1000) == 1) and (_root.level != 7)) {
i = 0;
b = 0;
while (i < 10) {
if (_root.shipslot[i] == "") {
b = 1;
}
i++;
}
if (b == 1) {
_root.ebuild_locx = _x;
_root.ebuild_locy = _y;
_root.createnewenemy();
}
if ((b == 0) and (_root.attack == 1)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
if (random(3) != 0) {
Set(slot add ":my_target", "starbase");
}
}
i++;
}
}
}
if (random(2000) == 1) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
}
i++;
}
}
if (_root.level != 7) {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
rotation = rotation + 90;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if (((Math.abs(_x - defx) < 600) and (Math.abs(_y - defy) < 400)) and ((defx < 0) or (defx > 0))) {
shootx = _x;
shooty = _y;
if (random(4) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
rotation = rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":hit", 30);
if (_root.level > 7) {
Set(("../" add my_target) add ":hit", 60);
}
}
if (_root.level < 6) {
mytorp = 1;
}
if (_root.level >= 6) {
mytorp = 21;
}
if (_root.level >= 9) {
mytorp = 1;
}
Set(("../shot" add _root.shotname) add ":torptype", mytorp);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
if ((_root.level == 9) and (random(20) == 1)) {
_root.firedeathstar = 1;
}
}
}
if (_root.firedeathstar == 2) {
_root.firedeathstar = 0;
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 425)) {
if (my_target == "defiant") {
_root.hitstrength = 500;
_root.hit();
} else {
Set(("../" add my_target) add ":hit", 500);
}
_root.ephaseraway = 8;
soundbeep = new Sound(this);
soundbeep.attachSound("lance");
soundbeep.start(0, 0);
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
}
}
defx = getProperty("../defiant", _x);
defy = getProperty("../defiant", _y);
if (((Math.abs(defx - _x) < 300) and (Math.abs(defy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 200) and (Math.abs(y - _y) < 200)) {
my_target = _root.fshipslot[i];
}
}
i++;
}
}
}
}
Instance of Symbol 448 MovieClip "stationpic" in Symbol 451 MovieClip Frame 1
onClipEvent (load) {
type = 1;
}
Instance of Symbol 450 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
_root.firedeathstar = 0;
}
onClipEvent (enterFrame) {
if (_root.firedeathstar == 1) {
_alpha = (_alpha + 2);
if (_alpha >= 100) {
_alpha = 0;
_root.firedeathstar = 2;
}
}
}
Symbol 451 MovieClip Frame 2
if (myenergy < 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 451 MovieClip Frame 30
if (myenergy > 0) {
gotoAndPlay (1);
} else {
myenergy = -5000;
_x = -99999;
}
_root.checkenemies();
Symbol 470 MovieClip Frame 1
if (target > 0) {
my_target = "";
_root.comm = ("THE " + my_name) + " HAS BEEN LAUNCHED...";
damage = 0;
shielding = 0;
Set("friendlymenu:my_menu", 1);
if (_root.step > 1) {
shielding = 100;
}
gotoAndPlay(type);
} else {
stop();
}
Symbol 470 MovieClip Frame 2
if ((random(250) == 1) and (my_target == "starbase")) {
_root.dd1 = random(20);
_global.gaicollect = _global.gaicollect + _root.dd1;
_root.dd2 = random(20);
_global.maicollect = _global.maicollect + _root.dd2;
}
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = random(450);
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(100) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 6;
} else {
my_speed = 5;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 50);
}
Set(("../shot" add _root.shotname) add ":torptype", 33);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Instance of Symbol 435 MovieClip "selected" in Symbol 470 MovieClip Frame 2
onClipEvent (load) {
open_select = 1;
fade = 1;
}
onClipEvent (enterFrame) {
if ((open_select == 1) and (timer > 0)) {
timer = 0;
}
if (timer > 0) {
timer = timer - 1;
if (timer == 0) {
open_select = 1;
_root.menu_open = 0;
}
}
if (open_select == 2) {
if (fade == 1) {
_alpha = (_alpha - 10);
if (_alpha < 50) {
fade = 0;
}
}
if (fade == 0) {
_alpha = (_alpha + 10);
if (_alpha > 100) {
fade = 1;
}
}
}
}
Symbol 470 MovieClip Frame 3
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((150 - Math.abs(damage)) / 150) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -150) {
gotoAndPlay (4);
}
Symbol 470 MovieClip Frame 10
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.alost = _global.alost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 11
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 6;
} else {
my_speed = 5;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 70);
}
Set(("../shot" add _root.shotname) add ":torptype", 2);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 12
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((300 - Math.abs(damage)) / 300) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -300) {
gotoAndPlay (13);
}
Symbol 470 MovieClip Frame 19
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.xlost = _global.xlost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 20
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 6;
} else {
my_speed = 5;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 100);
}
Set(("../shot" add _root.shotname) add ":torptype", 33);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 23);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 21
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((600 - Math.abs(damage)) / 600) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -300) {
gotoAndPlay (22);
}
Symbol 470 MovieClip Frame 28
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 29
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 120);
}
Set(("../shot" add _root.shotname) add ":torptype", 43);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 48);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 30
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((800 - Math.abs(damage)) / 800) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -800) {
gotoAndPlay (31);
}
Symbol 470 MovieClip Frame 37
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.vlost = _global.vlost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 38
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(12) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 150);
}
Set(("../shot" add _root.shotname) add ":torptype", 43);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 23);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 39
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((800 - Math.abs(damage)) / 800) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -800) {
gotoAndPlay (40);
}
Symbol 470 MovieClip Frame 46
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.xlost = _global.xlost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 47
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if (random(200) == 1) {
cloak = 1;
}
if ((cloak == 0) and (this._alpha <= 100)) {
this._alpha = this._alpha + 10;
b = this._alpha;
c = target + 1;
setProperty("../fblip" add c, _alpha , b);
}
if ((cloak == 1) and (this._alpha >= 60)) {
this._alpha = this._alpha - 10;
b = this._alpha;
c = target + 1;
setProperty("../fblip" add c, _alpha , b);
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(13) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
cloak = 0;
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 200);
}
Set(("../shot" add _root.shotname) add ":torptype", 43);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 48);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
if (random(2) == 1) {
cloak = 1;
}
}
my_target = _root.shipslot[i];
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 48
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if ((hit > 0) and (cloak == 0)) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((1200 - Math.abs(damage)) / 1200) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -1200) {
gotoAndPlay (49);
}
Symbol 470 MovieClip Frame 55
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.mlost = _global.mlost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 56
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if (defx > _x) {
if ((rotation - _rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((rotation - _rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if (defx < _x) {
if ((_rotation - rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((_rotation - rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if ((defx > 0) or (defx < 0)) {
my_speed = 7;
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
if ((Math.abs(_x - defx) > 400) and (Math.abs(_y - defy) > 400)) {
_rotation = rotation;
}
if (Math.abs(_rotation - rotation) < 20) {
_rotation = rotation;
}
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(7) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 400);
}
Set(("../shot" add _root.shotname) add ":torptype", 28);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 48);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 57
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((3000 - Math.abs(damage)) / 3000) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -5000) {
gotoAndPlay (58);
}
Symbol 470 MovieClip Frame 64
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.clost = _global.clost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 65
if ((random(250) == 1) and (my_target == "starbase")) {
_root.dd1 = random(200);
_global.gaicollect = _global.gaicollect + _root.dd1;
_root.dd2 = random(200);
_global.maicollect = _global.maicollect + _root.dd2;
}
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 9;
} else {
my_speed = 8;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(10) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
if (random(5) == 1) {
Set(("../" add my_target) add ":takeover", 1);
}
Set(("../" add my_target) add ":energydraw", 250);
}
Set(("../shot" add _root.shotname) add ":torptype", 2);
if (random(4) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 23);
}
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 58);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 66
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((1800 - Math.abs(damage)) / 1800) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -1800) {
gotoAndPlay (67);
}
Symbol 470 MovieClip Frame 73
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
_global.flost = _global.flost + 1;
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 74
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 6;
} else {
my_speed = 5;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 10);
}
Set(("../shot" add _root.shotname) add ":torptype", 2);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 75
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((800 - Math.abs(damage)) / 800) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -800) {
gotoAndPlay (76);
}
Symbol 470 MovieClip Frame 82
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 83
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if (defx > _x) {
if ((rotation - _rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((rotation - _rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if (defx < _x) {
if ((_rotation - rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((_rotation - rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if ((defx > 0) or (defx < 0)) {
my_speed = 6;
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
if ((Math.abs(_x - defx) > 400) and (Math.abs(_y - defy) > 400)) {
_rotation = rotation;
}
if (Math.abs(_rotation - rotation) < 20) {
_rotation = rotation;
}
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(10) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 300);
}
Set(("../shot" add _root.shotname) add ":torptype", 28);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 23);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 84
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((3400 - Math.abs(damage)) / 3400) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -3400) {
gotoAndPlay (85);
}
Symbol 470 MovieClip Frame 91
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 93
removeMovieClip("");
Symbol 470 MovieClip Frame 94
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 6;
} else {
my_speed = 5;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 10);
}
Set(("../shot" add _root.shotname) add ":torptype", 33);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 95
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((600 - Math.abs(damage)) / 600) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -600) {
gotoAndPlay (96);
}
Symbol 470 MovieClip Frame 102
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 103
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 15);
}
Set(("../shot" add _root.shotname) add ":torptype", 33);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 23);
}
if (random(10) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 63);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 104
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((1200 - Math.abs(damage)) / 1200) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -1200) {
gotoAndPlay (105);
}
Symbol 470 MovieClip Frame 111
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 112
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if (random(200) == 1) {
cloak = 1;
}
if ((cloak == 0) and (this._alpha <= 100)) {
this._alpha = this._alpha + 10;
b = this._alpha;
c = target + 1;
setProperty("../fblip" add c, _alpha , b);
}
if ((cloak == 1) and (this._alpha >= 60)) {
this._alpha = this._alpha - 10;
b = this._alpha;
c = target + 1;
setProperty("../fblip" add c, _alpha , b);
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(12) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
cloak = 0;
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 200);
}
Set(("../shot" add _root.shotname) add ":torptype", 2);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 48);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
if (random(2) == 1) {
cloak = 1;
}
}
my_target = _root.shipslot[i];
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 113
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if ((hit > 0) and (cloak == 0)) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((1400 - Math.abs(damage)) / 1400) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -1400) {
gotoAndPlay (114);
}
Symbol 470 MovieClip Frame 120
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 121
if (go_home > 0) {
go_home = go_home - 1;
my_target = "starbase";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "starbase";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "starbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "starbase") and (random(200) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (my_target != "starbase") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if (defx > _x) {
if ((rotation - _rotation) > 0) {
_rotation = (_rotation + 1);
}
if ((rotation - _rotation) < 0) {
_rotation = (_rotation - 1);
}
}
if (defx < _x) {
if ((_rotation - rotation) > 0) {
_rotation = (_rotation + 1);
}
if ((_rotation - rotation) < 0) {
_rotation = (_rotation - 1);
}
}
if ((defx > 0) or (defx < 0)) {
my_speed = 3;
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
if ((Math.abs(_x - defx) > 400) and (Math.abs(_y - defy) > 400)) {
_rotation = rotation;
}
if (Math.abs(_rotation - rotation) < 20) {
_rotation = rotation;
}
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(7) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 500);
}
Set(("../shot" add _root.shotname) add ":torptype", 28);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 48);
}
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 38);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 122
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = ((5000 - Math.abs(damage)) / 5000) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < -5000) {
gotoAndPlay (123);
}
Symbol 470 MovieClip Frame 129
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 470 MovieClip Frame 130
if (go_home > 0) {
go_home = go_home - 1;
my_target = "defiant";
}
if ((my_target == "") and (_root.alert == 1)) {
ticker = random(6);
if ((_root.shipslot[ticker] != "") and (random(50) == 1)) {
my_target = _root.shipslot[ticker];
}
}
if (my_target == "") {
if (random(5) == 1) {
my_target = "defiant";
}
if (random(5) == 1) {
my_target = "defiant";
}
my_tx = 200;
my_ty = random(450);
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "defiant") {
tx = defx;
ty = defy;
}
if ((my_target == "defiant") and (random(200) == 1)) {
tx = tx + random(500);
tx = tx - random(500);
ty = ty + random(500);
ty = ty - random(500);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
my_target = "";
}
if (my_target != "defiant") {
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
}
if (my_target == "defiant") {
defx = my_tx;
defy = my_ty;
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
if (_xscale == 250) {
_xscale = 100;
}
my_speed = 6;
} else {
my_speed = 5;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
if (_xscale != 250) {
_xscale = 250;
}
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if ((rotation - _rotation) > 0) {
_rotation = (_rotation + 15);
}
if ((rotation - _rotation) < 0) {
_rotation = (_rotation - 15);
}
if ((((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../torp", "shot" add _root.shotname, _root.shotname);
rotation = _rotation + 90;
rotation = rotation + random(30);
rotation = rotation - random(30);
soundbeep = new Sound(this);
soundbeep.attachSound("def-torp");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if (((my_target != "defiant") and (my_target != "starbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":energydraw", 12);
}
Set(("../shot" add _root.shotname) add ":torptype", 1);
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
}
if ((random(20) == 1) and (_root.alert != 3)) {
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if (((Math.abs(x - _x) < 1000) and (Math.abs(y - _y) < 1000)) and (_root.alert != 3)) {
my_target = _root.shipslot[i];
}
}
i++;
}
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "defiant";
}
if ((((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) and (damage > -80)) and (_root.alert != 3)) {
my_target = "estarbase";
}
Symbol 470 MovieClip Frame 131
gotoAndPlay(type);
if ((damage < 0) and (random(40) == 1)) {
damage++;
}
if (hit > 0) {
damage = damage - hit;
hit = 0;
if (random(5) == 1) {
_root.comm = ("THE " + my_name) + " IS UNDER ATTACK...";
}
bar = (((500 + shielding) - Math.abs(damage)) / (500 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-500 - shielding)) {
gotoAndPlay (132);
}
Symbol 470 MovieClip Frame 138
i = 0;
while (i < 20) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
my_debris = 1000;
gotoAndPlay (92);
Symbol 474 Button
on (release) {
if (_root.cheatbox == "getshotname") {
_root.comm = _root.shotname;
}
if (_root.cheatbox == "makecustom") {
_root.def = 539;
}
if (_root.cheatbox == "makea") {
_root.def = 1;
}
if (_root.cheatbox == "makex") {
_root.def = 37;
}
if (_root.cheatbox == "makef") {
_root.def = 73;
}
if (_root.cheatbox == "makec") {
_root.def = 145;
}
if (_root.cheatbox == "makev") {
_root.def = 181;
}
if (_root.cheatbox == "makem") {
_root.def = 217;
}
if (_root.cheatbox == "makex2") {
_root.def = 253;
}
if (_root.cheatbox == "makey") {
_root.def = 289;
}
if (_root.cheatbox == "maketi") {
_root.def = 109;
}
if (_root.cheatbox == "maketrek") {
_root.def = 380;
}
if (_root.cheatbox == "makesd") {
_root.def = 411;
}
if (_root.cheatbox == "makessd") {
_root.def = 325;
}
if (_root.cheatbox == "maketb") {
_root.def = 443;
}
if (_root.cheatbox == "makels") {
_root.def = 507;
}
if (_root.cheatbox == "maketf") {
_root.def = 475;
}
if (_root.cheatbox == "mines") {
_root.comm = _root.mines;
}
if (_root.cheatbox == "level") {
_root.comm = _root.level;
}
if (_root.cheatbox == "activatecloak") {
_root.centerbutton = "CLOAK";
}
if (_root.cheatbox == "activatearmor") {
_root.def = 289;
_root.centerbutton = "ARMOR";
}
if (_root.cheatbox == "supershields") {
_root.shieldstrength = 5000;
_root.tot_shields = 5000;
_root.shields = 0;
}
if (_root.cheatbox == "varattack") {
_root.comm = _root.attack;
}
if (_root.cheatbox == "noattack") {
_root.attack = 0;
}
if (_root.cheatbox == "level") {
_root.comm = level;
}
if (_root.cheatbox == "destroybase") {
Set("estarbase:myenergy", -10);
}
if (_root.cheatbox == "getdrunk") {
_root.ale = 1;
}
if (_root.cheatbox == "soberup") {
_root.ale = 0;
}
if (_root.cheatbox == "stepit") {
_root.step = _root.step + 1;
_root.comm = _root.step;
}
if (_root.cheatbox == "stepback") {
_root.step = _root.step - 1;
_root.comm = _root.step;
}
if (_root.cheatbox == "rich") {
_root.dilithium = 20000;
_root.deuranium = 20000;
}
if (_root.cheatbox == "buildenemy") {
_root.createnewenemy();
}
if (_root.cheatbox == "buildfriendly") {
_root.createfriendly();
}
if (_root.cheatbox == "loadera") {
_root.loadera();
}
if (_root.cheatbox == "buildasteroid") {
_root.makeasteroid();
}
if (_root.cheatbox == "iwannawin") {
gotoAndPlay (25);
victory = "VICTORY";
}
if (_root.cheatbox == "suicide") {
_root.hull = 0;
}
if (_root.cheatbox == "energetic") {
_root.energy = 10000;
}
if (_root.cheatbox == "megaphasers") {
_root.tot_phaser = 500;
}
if (_root.cheatbox == "activatelance") {
_root.centerbutton = "LANCE";
}
_root.cheatbox = "";
}
Symbol 520 MovieClip Frame 3
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 39
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 75
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 111
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 147
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 183
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 219
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 255
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 291
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 327
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 382
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 413
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 445
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 477
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 509
gotoAndPlay(_root.def);
Symbol 520 MovieClip Frame 541
gotoAndPlay(_root.def);
Symbol 523 MovieClip Frame 1
if (_root.phaseraway > 0) {
if (myx == undefined) {
myx = getProperty("../defiant", _x);
myy = getProperty("../defiant", _y);
}
_x = myx;
_y = myy;
x = getProperty(target, _x);
y = getProperty(target, _y);
_xscale = ((x - 260) + random(5));
_yscale = ((y - 195) + random(5));
_root.phaseraway = _root.phaseraway - 1;
if (_root.phaseraway < 1) {
_x = -999;
_root.phaseraway = 0;
}
}
Symbol 523 MovieClip Frame 2
gotoAndPlay (1);
Symbol 530 MovieClip Frame 1
if (_root.ephaseraway > 0) {
_x = (myx + random(5));
_y = (myy + random(5));
x = getProperty(target, _x);
y = getProperty(target, _y);
_xscale = (x - 260);
_yscale = (y - 195);
_root.ephaseraway = _root.ephaseraway - 1;
if (_root.ephaseraway < 1) {
_x = -999;
_root.firedeathstar = 0;
_root.ephaseraway = 0;
}
}
Symbol 530 MovieClip Frame 2
gotoAndPlay (1);
Symbol 530 MovieClip Frame 3
if ((_root.step < 6) and (_root.step > 9)) {
gotoAndPlay (1);
}
if (_root.ephaseraway > 0) {
_x = (myx + random(5));
_y = (myy + random(5));
x = getProperty(target, _x);
y = getProperty(target, _y);
_xscale = (x - 260);
_yscale = (y - 195);
_root.ephaseraway = _root.ephaseraway - 1;
if (_root.ephaseraway < 1) {
_x = -999;
_root.ephaseraway = 0;
}
}
Symbol 530 MovieClip Frame 4
gotoAndPlay (3);
Symbol 535 MovieClip Frame 1
if (myenergy > 0) {
my_target = "";
my_target = "estarbase";
if ((random(6) == 1) and (_root.attack == 1)) {
my_target = "defiant";
}
if ((random(6) == 1) and (_root.attack == 1)) {
my_target = "starbase";
}
cloak = 0;
tot_myenergy = myenergy;
if (myenergy > 0) {
gotoAndPlay(shiptype);
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 535 MovieClip Frame 3
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
Set("../enemybar2:menu_open", 1);
Set("../enemybar2:timer", 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 200) and (random(1) == 0)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 94;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(8) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 1);
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 10);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 4
if (myenergy < 1) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Symbol 535 MovieClip Frame 11
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tflost = _global.tflost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 12
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 300) and (random(2) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 74;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 6);
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 20);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 13
if (myenergy < 1) {
gotoAndPlay (14);
} else {
gotoAndPlay (12);
}
Symbol 535 MovieClip Frame 20
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tilost = _global.tilost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 21
if ((energydraw > 0) and (cloak == 0)) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if ((cloak == 0) and (this._alpha <= 100)) {
this._alpha = this._alpha + 10;
b = this._alpha;
c = target + 1;
setProperty("../enemyblip" add c, _alpha , b);
}
if ((cloak == 1) and (this._alpha >= 0)) {
this._alpha = this._alpha - 10;
b = this._alpha;
c = target + 1;
setProperty("../enemyblip" add c, _alpha , b);
}
if (takeover == 1) {
if ((myenergy < 400) and (random(3) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 112;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 6);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 16);
}
if (cloak == 1) {
cloak = 0;
}
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 30);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (random(5) == 1) {
cloak = 1;
}
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
if (random(5) == 1) {
cloak = 1;
}
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
if (random(5) == 1) {
cloak = 1;
}
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 22
if (myenergy < 1) {
gotoAndPlay (23);
} else {
gotoAndPlay (21);
}
Symbol 535 MovieClip Frame 29
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.lslost = _global.lslost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 30
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 300) and (random(10) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 83;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if (defx > _x) {
if ((rotation - _rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((rotation - _rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if (defx < _x) {
if ((_rotation - rotation) > 0) {
_rotation = (_rotation + 5);
}
if ((_rotation - rotation) < 0) {
_rotation = (_rotation - 5);
}
}
if ((defx > 0) or (defx < 0)) {
my_speed = 6;
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 30;
}
if ((Math.abs(_x - defx) > 400) and (Math.abs(_y - defy) > 400)) {
_rotation = rotation;
}
if (Math.abs(_rotation - rotation) < 20) {
_rotation = rotation;
}
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 21);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 16);
}
rotation = rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 40);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 31
if (myenergy < 1) {
gotoAndPlay (32);
} else {
gotoAndPlay (30);
}
Symbol 535 MovieClip Frame 38
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.sdlost = _global.sdlost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 40
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 500) and (random(20) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 121;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
if (defx > _x) {
if ((rotation - _rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((rotation - _rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if (defx < _x) {
if ((_rotation - rotation) > 0) {
_rotation = (_rotation + 2);
}
if ((_rotation - rotation) < 0) {
_rotation = (_rotation - 2);
}
}
if ((defx > 0) or (defx < 0)) {
my_speed = 3;
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 500) and (Math.abs(_y - defy) > 500)) {
my_speed = 30;
}
if ((Math.abs(_x - defx) > 500) and (Math.abs(_y - defy) > 500)) {
_rotation = rotation;
}
if (Math.abs(_rotation - rotation) < 20) {
_rotation = rotation;
}
if (((Math.abs(_x - defx) < 500) and (Math.abs(_y - defy) < 500)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 21);
if (random(10) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 16);
}
if (random(15) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 31);
}
rotation = rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 50);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
if (random(100) == 1) {
i = 0;
b = 0;
while (i < 10) {
if (_root.shipslot[i] == "") {
b = 1;
}
i++;
}
if (b == 1) {
_root.ebuild_locx = _x;
_root.ebuild_locy = _y;
_root.createnewenemy();
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 41
if (myenergy < 1) {
gotoAndPlay (42);
} else {
gotoAndPlay (40);
}
Symbol 535 MovieClip Frame 48
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.myLSO.data.make_ssd = 0;
_global.make_ssd = 0;
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.ssdlost = _global.ssdlost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 49
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 200) and (random(5) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 103;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = 0;
ty = 0;
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
rotation = g;
if (defy > _y) {
rotation = 90 - rotation;
} else if (defy < _y) {
rotation = 180 - (rotation - 90);
}
_rotation = rotation;
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 6);
if (random(5) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 11);
}
if (random(10) == 1) {
Set(("../shot" add _root.shotname) add ":torptype", 26);
}
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 2);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 50
if (myenergy < 1) {
gotoAndPlay (51);
} else {
gotoAndPlay (49);
}
Symbol 535 MovieClip Frame 57
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tblost = _global.tblost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 58
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 50) and (random(3) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 94;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
_rotation = g;
if (defy > _y) {
_rotation = (90 - _rotation);
} else if (defy < _y) {
_rotation = (180 - (_rotation - 90));
}
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 1);
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 2);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 59
if (myenergy < 1) {
gotoAndPlay (60);
} else {
gotoAndPlay (58);
}
Symbol 535 MovieClip Frame 66
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
_root.tot_enemies = _root.tot_enemies - 1;
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tflost = _global.tflost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 67
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 10)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
b = random(2);
if (b == 0) {
_root.comm = "THE VESSEL SELF-DESTRUCTS BEFORE YOU CAN BEAM ABOARD...";
}
myenergy = -10;
if (b == 1) {
_root.comm = "AS YOUR BOARDING PARTY BEAMS ABOARD, THE VESSEL SELF-DESTRUCTS - KILLING YOUR TEAM...";
myenergy = -10;
}
}
}
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 50) and (random(3) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 94;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
_rotation = g;
if (defy > _y) {
_rotation = (90 - _rotation);
} else if (defy < _y) {
_rotation = (180 - (_rotation - 90));
}
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 1);
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 2);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 68
if (myenergy < 1) {
gotoAndPlay (69);
} else {
gotoAndPlay (67);
}
Symbol 535 MovieClip Frame 75
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tflost = _global.tflost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 76
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 10)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
b = random(2);
if (b == 0) {
_root.comm = "THE VESSEL SELF-DESTRUCTS BEFORE YOU CAN BEAM ABOARD...";
}
myenergy = -10;
if (b == 1) {
_root.comm = "AS YOUR BOARDING PARTY BEAMS ABOARD, THE VESSEL SELF-DESTRUCTS - KILLING YOUR TEAM...";
myenergy = -10;
}
}
}
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (takeover == 1) {
if ((myenergy < 50) and (random(3) == 1)) {
_root.build_locx = _x;
_root.build_locy = _y;
_root.go_home = 1000;
_root.buildtype = 94;
_root.createfriendly();
gotoAndPlay (11);
} else {
takeover = 0;
}
}
if (myenergy <= 5) {
_rotation = (_rotation + 1);
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
}
rotation = _rotation + 90;
if (my_engine == 1) {
my_speed = 0;
if (random(200) == 1) {
my_engine = 0;
}
}
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
_rotation = g;
if (defy > _y) {
_rotation = (90 - _rotation);
} else if (defy < _y) {
_rotation = (180 - (_rotation - 90));
}
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 1);
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 2);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if ((((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(20) == 1)) and (_root.cloak == 0)) {
my_target = "defiant";
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(50) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
if (_root.attack == 0) {
_root.comm = "THE EMPIRE HAS DISCOVERED OUR POSITION!";
}
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 77
if (myenergy < 1) {
gotoAndPlay (78);
} else {
gotoAndPlay (76);
}
Symbol 535 MovieClip Frame 84
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tflost = _global.tflost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 85
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 10)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
b = random(2);
if (b == 0) {
_root.comm = "THE VESSEL SELF-DESTRUCTS BEFORE YOU CAN BEAM ABOARD...";
}
myenergy = -10;
if (b == 1) {
_root.comm = "AS YOUR BOARDING PARTY BEAMS ABOARD, THE VESSEL SELF-DESTRUCTS - KILLING YOUR TEAM...";
myenergy = -10;
}
}
}
if (energydraw > 0) {
myenergy = myenergy - energydraw;
bar = (myenergy / tot_myenergy) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (myenergy > 5) {
if ((cloak == 0) and (random(500) == 1)) {
sx = getProperty("../estarbase", _x);
sy = getProperty("../estarbase", _y);
if ((Math.abs(_x - sx) > 1000) and (Math.abs(_y - sy) > 1000)) {
cloak = 1;
}
}
if ((cloak == 1) and (random(500) == 1)) {
cloak = 0;
}
if (((myenergy < 25) and (my_target == "defiant")) and (my_target != "estarbase")) {
my_target = "estarbase";
}
if ((my_target == "") and (_root.attack == 1)) {
ticker = random(6);
if ((_root.fshipslot[ticker] != "") and (_root.attack == 1)) {
my_target = _root.fshipslot[ticker];
}
}
if ((my_target == "") and (random(50) == 1)) {
my_target = "estarbase";
}
if ((((my_target == "estarbase") and this.hitTest("../estarbase")) and (random(1000) == 1)) and (_root.attack == 1)) {
my_target = "defiant";
}
defx = getProperty("../" add my_target, _x);
defy = getProperty("../" add my_target, _y);
if (my_target == "estarbase") {
defx = defx + tx;
defy = defy + ty;
}
if ((my_target == "estarbase") and (random(300) == 1)) {
tx = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if ((defx > 0) or (defx < 0)) {
if ((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 250)) {
if (_xscale == 250) {
_xscale = 100;
}
my_speed = 8;
} else {
my_speed = 7;
}
if ((Math.abs(_x - defx) < 100) and (Math.abs(_y - defy) < 100)) {
my_speed = 0;
}
if ((Math.abs(_x - defx) > 300) and (Math.abs(_y - defy) > 300)) {
my_speed = 25;
if (_xscale != 250) {
_xscale = 250;
}
}
rotation = _rotation + 90;
x = Math.sin(rotation * (Math.PI/180)) * my_speed;
y = (Math.cos(rotation * (Math.PI/180)) * my_speed) * -1;
locx = _x;
locy = _y;
locx = locx + x;
locy = locy + y;
_x = locx;
_y = locy;
z = defx - _x;
r = defy - _y;
_root.a = z;
_root.b = r;
e = z / r;
k = Math.atan(e);
g = (k * 180) / Math.PI;
_rotation = g;
if (defy > _y) {
_rotation = (90 - _rotation);
} else if (defy < _y) {
_rotation = (180 - (_rotation - 90));
}
if (((Math.abs(_x - defx) < 275) and (Math.abs(_y - defy) < 200)) and (my_target != "estarbase")) {
shootx = _x;
shooty = _y;
if (random(5) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("../etorp", "shot" add _root.shotname, _root.shotname);
Set(("../shot" add _root.shotname) add ":torptype", 1);
rotation = _rotation + 90;
rotation = rotation + random(40);
rotation = rotation - random(40);
soundbeep = new Sound(this);
soundbeep.attachSound("ephas");
if ((((_x < 0) or (_y < 0)) or (_x > 550)) or (_x > 400)) {
soundbeep.setVolume(25);
} else {
soundbeep.setVolume(100);
}
soundbeep.start(0, 0);
phasx = Math.sin(rotation * (Math.PI/180)) * (10 + (_root.speed * -1));
phasy = (Math.cos(rotation * (Math.PI/180)) * (10 + (_root.speed * -1))) * -1;
if ((((my_target != "defiant") and (my_target != "estarbase")) and (random(5) == 1)) and ((((_x > 600) or (_y > 600)) or (_y < 0)) or (_x < 0))) {
Set(("../" add my_target) add ":hit", 2);
}
Set(("../shot" add _root.shotname) add ":ymov", phasy);
Set(("../shot" add _root.shotname) add ":xmov", phasx);
setProperty("../shot" add _root.shotname, _rotation , rotation);
setProperty("../shot" add _root.shotname, _x , shootx);
setProperty("../shot" add _root.shotname, _y , shooty);
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(100) == 1)) {
my_target = "defiant";
_root.attack = 1;
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 500) and (Math.abs(dy - _y) < 500)) and (random(100) == 1)) {
my_target = "starbase";
}
if (random(20) == 1) {
i = 0;
while (i < 20) {
if (_root.fshipslot[i] != "") {
slot = "../" add _root.fshipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
if ((Math.abs(x - _x) < 500) and (Math.abs(y - _y) < 500)) {
my_target = _root.fshipslot[i];
_root.keyinfo = ((((((((((("set!" + Math.abs(x - _x)) + ",") + Math.abs(y - _y)) + newline) + x) + ",") + y) + newline) + "ME: ") + _x) + ",") + _y;
_root.attack = 1;
}
}
i++;
}
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
}
Symbol 535 MovieClip Frame 86
if (myenergy < 1) {
gotoAndPlay (87);
} else {
gotoAndPlay (85);
}
Symbol 535 MovieClip Frame 93
i = 0;
while (i < 20) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
_root.checkenemies();
target = target + 1;
removeMovieClip("../enemyblip" add target);
_global.tflost = _global.tflost + 1;
my_debris = 1000;
gotoAndPlay (94);
Symbol 535 MovieClip Frame 95
removeMovieClip("");
Symbol 539 Button
on (release) {
_root.menu_open = 0;
Set((("../" add target) add ":selected") add ":open_select", 1);
}
Symbol 547 Button
on (release) {
Set(("../" add target) add ":type", type + 2);
_root.comm = (target + ", ") + type;
_root.menu_open = 0;
Set((("../" add target) add ":selected") add ":open_select", 1);
}
Symbol 548 Button
on (release) {
Set(("../" add target) add ":my_target", "defiant");
Set(("../" add target) add ":my_tx", random(500));
Set(("../" add target) add ":my_ty", random(450));
_root.menu_open = 0;
Set((("../" add target) add ":selected") add ":open_select", 1);
_root.comm = ("YOU HAVE ASSIGNED THE " + ship_name) + " AS YOUR ESCORT.";
}
Symbol 549 Button
on (release) {
if (_root.alert != 3) {
_root.menu_open = 0;
Set((("../" add target) add ":selected") add ":open_select", 1);
i = 0;
while (i < 20) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
x = getProperty(slot, _x);
y = getProperty(slot, _y);
Set(("../" add target) add ":my_target", _root.shipslot[i]);
}
i++;
}
} else {
_root.comm = "UNABLE TO GIVE THIS ORDER AT GREEN ALERT.";
}
}
Symbol 550 Button
on (release) {
Set(("../" add target) add ":my_target", "starbase");
_root.comm = ("YOU HAVE ASSIGNED THE " + ship_name) + " TO GUARD THE BASE.";
_root.menu_open = 0;
Set((("../" add target) add ":selected") add ":open_select", 1);
}
Symbol 551 Button
on (release) {
if (_root.def != 539) {
_root.swap = type;
_root.translateswap();
_root.menu_open = 0;
Set((("../" add target) add ":selected") add ":open_select", 1);
Set(("../" add target) add ":type", _root.swap);
_root.fshiptype[my_slot] = _root.swap;
} else {
_root.comm = "UNABLE TO TRANSFER WITH A CUSTOM SHIP...";
}
}
Symbol 566 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 50 GOLD, 50 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build1 != "")) and (build1 != undefined)) {
time = 10;
_root.buildtype = 2;
}
if ((((((d1 > 50) and (d2 > 50)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
_root.construct_type = 1;
Set("../starbase:d1", d1 - 50);
Set("../starbase:d2", d2 - 50);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 567 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 150 GOLD, 150 METAL";
}
on (release) {
time = 0;
if (construction == 0) {
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build2 != "")) and (build2 != undefined)) {
time = 25;
_root.buildtype = 11;
}
if ((((((d1 > 150) and (d2 > 150)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 150);
_root.construct_type = 2;
Set("../starbase:d2", d2 - 150);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 568 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 200 GOLD, 200 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build3 != "")) and (build3 != undefined)) {
time = 25;
_root.buildtype = 20;
}
if ((((((d1 > 200) and (d2 > 200)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 200);
_root.construct_type = 3;
Set("../starbase:d2", d2 - 200);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 569 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 225 GOLD, 200 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build4 != "")) and (build4 != undefined)) {
time = 30;
_root.buildtype = 29;
}
if ((((((d1 > 225) and (d2 > 200)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 225);
_root.construct_type = 4;
Set("../starbase:d2", d2 - 200);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 570 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 1,000 GOLD, 1,000 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build8 != "")) and (build8 != undefined)) {
time = 59;
_root.buildtype = 56;
}
if ((((((d1 > 1000) and (d2 > 1000)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 1000);
_root.construct_type = 8;
Set("../starbase:d2", d2 - 1000);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 571 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 2,000 GOLD, 2,000 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build9 != "")) and (build9 != undefined)) {
time = 50;
_root.buildtype = 0;
}
if ((((((d1 > 2000) and (d2 > 2000)) and (construction == 0)) and (_root.buildtype == 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 2000);
_root.construct_type = 9;
Set("../starbase:d2", d2 - 2000);
Set("../starbase:time", time);
_root.comm = "RESEARCH COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONDUCT RESEARCH - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 572 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 500 GOLD, 500 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build7 != "")) and (build7 != undefined)) {
time = 50;
_root.buildtype = 65;
}
if ((((((d1 > 500) and (d2 > 500)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 500);
_root.construct_type = 7;
Set("../starbase:d2", d2 - 500);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 573 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 300 GOLD, 300 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build6 != "")) and (build6 != undefined)) {
time = 40;
_root.buildtype = 47;
}
if ((((((d1 > 300) and (d2 > 300)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 300);
_root.construct_type = 6;
Set("../starbase:d2", d2 - 300);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 574 Button
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 275 GOLD, 250 METAL";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 20) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((((_root.step == 0) or (_root.step >= 0)) and (construction == 0)) and (build5 != "")) and (build5 != undefined)) {
time = 35;
_root.buildtype = 38;
}
if (((((true and (d2 > 250)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
Set("../starbase:d1", d1 - 275);
_root.construct_type = 5;
Set("../starbase:d2", d2 - 250);
Set("../starbase:time", time);
_root.comm = "CONSTRUCTION COMMENCING...";
Set("../starbase:construction", 1);
construction = 1;
Set("../starbase:myDate", new Date());
myDate = new Date();
Set("../starbase:constructiontarget", myDate.getSeconds() + time);
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
Set("../starbase:constructiontarget", constructiontarget - 60);
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS SHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "DROIDS UNABLE TO SUPPORT ANY MORE SHIPS...";
}
}
Symbol 576 Button
on (release) {
_root.def = 380;
_root.tot_energy = 10000;
_root.tot_hull = 1000;
_root.hull = 1000;
_root.tot_shields = 1000;
_root.tot_cargo = 1000;
_root.tot_turn = 11;
_root.tot_speed = -9;
_root.tot_nettorps = 0;
_root.updatebars();
}
Symbol 588 MovieClip Frame 1
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 2
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 3
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 4
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 5
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 6
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 7
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 8
gotoAndPlay(_root.construct_type);
Symbol 588 MovieClip Frame 9
gotoAndPlay(_root.construct_type);
Symbol 592 MovieClip Frame 1
gotoAndPlay(my_type);
setProperty("healthbar", _yscale , 100 - healthbar);
Symbol 592 MovieClip Frame 2
gotoAndPlay(my_type);
setProperty("healthbar", _yscale , 100 - healthbar);
if ((constructbar != undefined) and (my_type == 2)) {
my_type = 3;
}
if (_root.step >= 0) {
build1 = "BUILD A-WING";
build9 = "DESIGN X-WING";
}
if (_root.step >= 1) {
build2 = "BUILD X-WING";
build9 = "RESEARCH SHIELDS";
}
if (_root.step >= 2) {
build9 = "RESEARCH TORPEDOES";
}
if (_root.step >= 3) {
build9 = "DESIGN Y-WING";
}
if (_root.step >= 4) {
build3 = "BUILD Y-WING";
if (_root.level >= 2) {
build9 = "DESIGN V-WING";
} else {
build9 = "";
}
}
if (_root.step >= 5) {
build4 = "BUILD V-WING";
if (_root.level >= 3) {
build9 = "RESEARCH DROID UPGRADES";
} else {
build9 = "";
}
}
if (_root.step >= 6) {
build9 = "DESIGN X-WING TYPE B";
}
if (_root.step >= 7) {
build5 = "BUILD X-WING B";
build9 = "DESIGN M-WING";
}
if (_root.step >= 8) {
build6 = "BUILD M-WING";
if (_root.level >= 4) {
build9 = "RESEARCH TURBO-LASERS";
} else {
build9 = "";
}
}
if (_root.step >= 9) {
build9 = "DESIGN FALCON CLASS";
}
if (_root.step >= 10) {
build7 = "BUILD FALCON CLASS";
if (_root.level >= 6) {
build9 = "RESEARCH ADVANCED DESIGNS";
} else {
build9 = "";
}
}
if (_root.step >= 11) {
build9 = "RESEARCH LASER TURRENTS";
}
if (_root.step >= 12) {
build9 = "DESIGN CORVETTE";
}
if (_root.step == 13) {
build8 = "BUILD CORVETTE";
build9 = "";
}
Symbol 592 MovieClip Frame 3
gotoAndPlay(my_type);
if ((constructbar != undefined) and (my_type == 2)) {
my_type = 3;
}
setProperty("constructbar2", _xscale , 100 - constructbar);
setProperty("healthbar", _yscale , 100 - healthbar);
if ((constructbar == undefined) and (my_type == 3)) {
my_type = 2;
}
Instance of Symbol 588 MovieClip "constructing_ship" in Symbol 592 MovieClip Frame 3
onClipEvent (load) {
fade = 1;
}
onClipEvent (enterFrame) {
if (fade == 1) {
this._alpha = this._alpha - 10;
if (this._alpha < 50) {
fade = 0;
}
}
if (fade == 0) {
this._alpha = this._alpha + 10;
if (this._alpha > 100) {
fade = 1;
}
}
}
Symbol 599 MovieClip Frame 1
if (_root.torplaunchers == 2) {
gotoAndPlay (3);
}
if (_root.torplaunchers == 1) {
gotoAndPlay (1);
}
if (_root.torplaunchers == 3) {
gotoAndPlay (5);
}
Symbol 599 MovieClip Frame 2
gotoAndPlay (1);
Symbol 599 MovieClip Frame 3
if (_root.torplaunchers == 2) {
gotoAndPlay (3);
}
if (_root.torplaunchers == 1) {
gotoAndPlay (1);
}
if (_root.torplaunchers == 3) {
gotoAndPlay (5);
}
if (random(500 - _root.repairspeed) == 1) {
_root.comm = "TORPEDO LAUNCHERS REPAIRED...";
_root.torplaunchers = 1;
}
Symbol 599 MovieClip Frame 4
gotoAndPlay (3);
Symbol 599 MovieClip Frame 5
if (_root.torplaunchers == 2) {
gotoAndPlay (3);
}
if (_root.torplaunchers == 1) {
gotoAndPlay (1);
}
if (_root.torplaunchers == 3) {
gotoAndPlay (5);
}
if (random(100 - _root.repairspeed) == 1) {
_root.comm = "TORPEDO LAUNCHERS REPAIRED...";
_root.torplaunchers = 1;
}
_root.energy = _root.energy - random(10);
Symbol 599 MovieClip Frame 6
gotoAndPlay (5);
Symbol 603 MovieClip Frame 1
if (_root.engines == 2) {
gotoAndPlay (3);
}
if (_root.engines == 1) {
gotoAndPlay (1);
}
if (_root.engines == 3) {
gotoAndPlay (5);
}
Symbol 603 MovieClip Frame 2
gotoAndPlay (1);
Symbol 603 MovieClip Frame 3
if (_root.engines == 2) {
gotoAndPlay (3);
}
if (_root.engines == 1) {
gotoAndPlay (1);
}
if (_root.engines == 3) {
gotoAndPlay (5);
}
if (random(500 - _root.repairspeed) == 1) {
_root.comm = "ENGINES REPAIRED...";
_root.engines = 1;
}
Symbol 603 MovieClip Frame 4
if (_root.engines == 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 603 MovieClip Frame 5
if (_root.engines == 2) {
gotoAndPlay (3);
}
if (_root.engines == 1) {
gotoAndPlay (1);
}
if (_root.engines == 3) {
gotoAndPlay (5);
}
if (random(100 - _root.repairspeed) == 1) {
_root.comm = "ENGINES REPAIRED...";
_root.engines = 1;
}
_root.energy = _root.energy - random(10);
Symbol 603 MovieClip Frame 6
gotoAndPlay (5);
Symbol 607 MovieClip Frame 1
bar = getProperty("../hullbar", _xscale);
if (bar > 95) {
_root.hullrepair = 2;
gotoAndPlay (3);
}
if (bar <= 95) {
gotoAndPlay (1);
}
if (_root.hullrepair == 1) {
gotoAndPlay (5);
}
Symbol 607 MovieClip Frame 2
gotoAndPlay (1);
Symbol 607 MovieClip Frame 3
bar = getProperty("../hullbar", _xscale);
if (bar > 95) {
gotoAndPlay (3);
}
if (bar <= 95) {
gotoAndPlay (1);
}
if (_root.hullrepair == 1) {
gotoAndPlay (5);
}
Symbol 607 MovieClip Frame 4
gotoAndPlay (3);
Symbol 607 MovieClip Frame 5
if (_root.hullrepair == 2) {
gotoAndPlay (3);
}
if (_root.hullrepair == 1) {
gotoAndPlay (5);
}
if (_root.hullrepair == 0) {
gotoAndPlay (1);
}
if (random(5) == 1) {
if (_root.repairspeed > 0) {
x = 3;
}
}
if (_root.repairspeed == 0) {
x = 0;
}
if (random(2) == 1) {
_root.hull = _root.hull + (1 + x);
}
bar = (_root.hull / _root.tot_hull) * 100;
setProperty("../hullbar", _xscale , 100 - bar);
if (bar <= 95) {
_root.comm = "HULL REPAIRS COMPLETED...";
_root.hullrepair = 0;
}
if (_root.hullrepair == 0) {
gotoAndPlay (1);
}
_root.energy = _root.energy - random(5);
Symbol 607 MovieClip Frame 6
gotoAndPlay (5);
Symbol 611 MovieClip Frame 1
if (_root.phaser == 2) {
gotoAndPlay (3);
}
if (_root.phaser == 1) {
gotoAndPlay (1);
}
if (_root.phaser == 3) {
gotoAndPlay (5);
}
Symbol 611 MovieClip Frame 2
gotoAndPlay (1);
Symbol 611 MovieClip Frame 3
if (_root.phase == 2) {
gotoAndPlay (3);
}
if (_root.phaser == 1) {
gotoAndPlay (1);
}
if (_root.phaser == 3) {
gotoAndPlay (5);
}
if (random(500 - _root.repairspeed) == 1) {
_root.comm = "PHASERS REPAIRED...";
_root.phaser = 1;
}
Symbol 611 MovieClip Frame 4
gotoAndPlay (3);
Symbol 611 MovieClip Frame 5
if (_root.phaser == 2) {
gotoAndPlay (3);
}
if (_root.phaser == 1) {
gotoAndPlay (1);
}
if (_root.phaser == 3) {
gotoAndPlay (5);
}
if (random(100 - _root.repairspeed) == 1) {
_root.comm = "PHASERS REPAIRED...";
_root.phaser = 1;
}
_root.energy = _root.energy - random(10);
Symbol 611 MovieClip Frame 6
gotoAndPlay (5);
Symbol 615 MovieClip Frame 1
if (_root.sensors == 2) {
gotoAndPlay (3);
}
if (_root.sensors == 1) {
gotoAndPlay (1);
}
if (_root.sensors == 3) {
gotoAndPlay (5);
}
Symbol 615 MovieClip Frame 2
gotoAndPlay (1);
Symbol 615 MovieClip Frame 3
if (_root.sensors == 2) {
gotoAndPlay (3);
}
if (_root.sensors == 1) {
gotoAndPlay (1);
}
if (_root.sensors == 3) {
gotoAndPlay (5);
}
if (random(500 - _root.repairspeed) == 1) {
_root.comm = "LONG RANGE SCANNERS REPAIRED...";
_root.scale = 20;
_root.sensors = 1;
}
Symbol 615 MovieClip Frame 4
gotoAndPlay (3);
Symbol 615 MovieClip Frame 5
if (_root.sensors == 2) {
gotoAndPlay (3);
}
if (_root.sensors == 1) {
gotoAndPlay (1);
}
if (_root.sensors == 3) {
gotoAndPlay (5);
}
if (random(100 - _root.repairspeed) == 1) {
_root.comm = "LONG RANGE SCANNERS REPAIRED...";
_root.scale = 50;
_root.sensors = 1;
}
_root.energy = _root.energy - random(10);
Symbol 615 MovieClip Frame 6
gotoAndPlay (5);
Symbol 616 MovieClip Frame 1
if (mycolor == 1) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 616 MovieClip Frame 2
if (mycolor == 1) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 626 Button
on (release) {
if (menu == 1) {
menu = 0;
gotoAndStop (21);
} else if (menu == 0) {
menu = 1;
gotoAndStop (22);
}
}
Symbol 637 Button
on (release) {
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("menumusic");
soundbeep.start(0, 99);
if (victory == "VICTORY") {
_global.victorybonus = 1000 * _root.level;
} else {
_global.victorybonus = 0;
}
if (((_root.leveleas >= 1) and (_root.leveleas <= 9)) and (victory == "VICTORY")) {
if (_root.level == _root.leveleas) {
_root.leveleas = _root.leveleas + 1;
}
_root.tot_enemies = 0;
savegame();
}
if ((_root.level == 9) and (victory == "VICTORY")) {
gotoAndPlay (28);
} else {
gotoAndStop (26);
}
}
Symbol 640 Button
on (release) {
_root.removeallships();
gotoAndPlay (10);
}