Frame 1 (233 B)
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
setProperty("percentloadedbox", _xscale , _root.percentLoaded);
Frame 2 (85 B)
if (_root.percentLoaded == 100) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Frame 3 (233 B)
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
setProperty("percentloadedbox", _xscale , _root.percentLoaded);
Frame 4 (85 B)
if (_root.percentLoaded == 100) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Frame 5 (499 B)
stopAllSounds();
stop();
soundbeep = new Sound(this);
soundbeep.attachSound("romwarstheme");
soundbeep.start(0, 5);
myLSO = SharedObject.getLocal("romwars");
newgamebutton._alpha = 50;
playsavedbutton._alpha = 50;
instructionsbutton._alpha = 50;
futbutton._alpha = 50;
futbutton._x = -100;
if (myLSO.data.playername == undefined) {
title = "Welcome, New Player";
} else {
title = ((("Welcome back, Captain " + myLSO.data.playername) + " of the ") + myLSO.data.playership) + ".";
}
Instance of Symbol 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (154 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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 147 MovieClip in Frame 5 (156 B)
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;
}
Frame 7 (17 B)
stopAllSounds();
Frame 8 (28 B)
shipdesctype = 18;
stop();
Instance of Symbol 242 MovieClip in Frame 8 (59 B)
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Frame 10 (26.17 KiB) ● ● ●
function loadgame() {
Set("starbase:d1", 0);
Set("starbase:d2", 0);
playership = myLSO.data.playership;
playername = myLSO.data.playername;
step = myLSO.data.era;
if (step == 15) {
step = 14;
}
def = myLSO.data.ship;
photonictorpedoes = myLSO.data.photonictorpedoes;
plasmatorpedoes = myLSO.data.plasmatorpedoes;
transphasictorpedoes = myLSO.data.transphasictorpedoes;
quantumtorpedoes = myLSO.data.quantumtorpedoes;
photontorpedoes = myLSO.data.photontorpedoes;
itemslot[1] = myLSO.data.item1;
itemslot[2] = myLSO.data.item2;
itemslot[3] = myLSO.data.item3;
itemslot[4] = myLSO.data.item4;
itemslot[5] = myLSO.data.item5;
itemslot[6] = myLSO.data.item6;
d1 = myLSO.data.d1;
d2 = myLSO.data.d2;
if (itemslot[1] != undefined) {
Set("item1:item", itemslot[1]);
}
if (itemslot[2] != undefined) {
Set("item2:item", itemslot[2]);
}
if (itemslot[3] != undefined) {
Set("item3:item", itemslot[3]);
}
if (itemslot[4] != undefined) {
Set("item4:item", itemslot[4]);
}
if (itemslot[5] != undefined) {
Set("item5:item", itemslot[5]);
}
if (itemslot[6] != undefined) {
Set("item6:item", itemslot[6]);
}
Set("starbase:d1", d1);
Set("starbase:d2", d2);
loadship();
loadera();
}
function savegame() {
myLSO.data.ship = def;
myLSO.data.era = step;
myLSO.data.item1 = itemslot[1];
myLSO.data.item2 = itemslot[2];
myLSO.data.item3 = itemslot[3];
myLSO.data.item4 = itemslot[4];
myLSO.data.item5 = itemslot[5];
myLSO.data.item6 = itemslot[6];
myLSO.data.photonictorpedoes = photonictorpedoes;
myLSO.data.plasmatorpedoes = plasmatorpedoes;
myLSO.data.quantumtorpedoes = quantumtorpedoes;
myLSO.data.photontorpedoes = photontorpedoes;
myLSO.data.transphasictorpedoes = transphasictorpedoes;
myLSO.data.d1 = d1;
myLSO.data.d2 = d2;
myLSO.data.flush();
}
function loadera() {
if ((step >= 0) and (step < 3)) {
infotext = ("2149 - MESSAGE TO " + playership) + newline;
infotext = (infotext + " STARFLEET HAS JUST MADE DISASTEROUS FIRST CONTACT WITH A RACE CALLING THEMSELVES THE ROMULANS. THE ROMULAN EMPIRE HAS DECLARED WAR ON EARTH, CLAIMING AN INCURSION INTO THEIR SACRED TERRITORY.") + newline;
infotext = (infotext + " THE ROMULANS HAVE CONSTRUCTED A LARGE STARBASE 2 LIGHT YEARS FROM STARFLEET OUTPOST 5 ON THE BORDER OF ROMULAN AND EARTH TERRITORY. IT IS CLEAR THAT THIS SPECIES IS TECHNOLOGY SUPERIOR.") + newline;
infotext = (infotext + " THE ROMULAN EMPIRE WANTS NOTHING MORE THAN TO SEE THE ENTIRE FLEET DESTROYED. AS FLEET COMMANDER, YOU MUST DEFEND EARTH AGAINST THIS NEW THREAT.") + newline;
infotext = infotext + " THE ROMULAN WARS HAVE BEGUN...";
x = 5000;
y = 5000;
e = 500;
e2 = 500;
Set("starbase:stationpic:type", 1);
torpsound = "tostorp";
phassound = "tosphaser";
gotoAndStop (12);
}
if ((step >= 3) and (step < 6)) {
infotext = ("2212.10 - MESSAGE TO " + playership) + newline;
infotext = (infotext + " THE WAR WITH THE ROMULAN EMPIRE WAS LONG AND COSTLY. BUT IN THE END A PEACE AGREEMENT WAS FORGED, RESULTING IN THE FORMATION OF THE NEUTRAL ZONE. AT LAST EARTH SAW PEACE.") + newline;
infotext = (infotext + " WITH THE END OF THE WAR, SEVERAL ADVANCED SPECIES IN THE ALPHA QUADRANT SAW NEED FOR A NEW GOVERNMENT, A GOVERNMENT OF PLANETS TO PROTECT ITS CITIZENS. THUS THE UNITED FEDERATION OF PLANETS WAS CREATED.") + newline;
infotext = (infotext + " BUT THE ROMULANS ARE NOT OUTDONE. THEY HAVE BUILT A NEW STARBASE IN FEDERATION TERRITORY TO RECLAIM SPACE THEY LOST DURING THE WAR. ONCE AGAIN THE BATTLE HAS ENSUED. DESTROY THE BASE, SAVE THE FEDERATION.") + newline;
x = 6000;
y = 4000;
e = 800;
e2 = 800;
Set("starbase:stationpic:type", 2);
torpsound = "tostorp";
phassound = "tosphaser";
gotoAndStop (12);
}
if ((step >= 6) and (step < 9)) {
infotext = ("2270 - MESSAGE TO " + playership) + newline;
infotext = (infotext + " THE UNITED FEDERATION OF PLANETS, WITH ITS NEW CONSTITUTION CLASS STARSHIPS, DROVE THE ROMULANS BACK INTO THEIR OWN TERRITORY. A NEW TREATY HAS BEEN SIGNED.") + newline;
infotext = (infotext + " IT BRINGS PEACE TO THE GALAXY, BUT AT A COST. THE FEDERATION WAS FORCED TO ABANDON ITS CLOAK RESEARCH. NOW THE ROMULANS HAVE GONE INTO HIDING. THEY HAVE NOT BEEN SEEN SINCE THE LAST BATTLE.") + newline;
infotext = (infotext + " BUT A NEW THREAT HAS EMERGED. RELATIONS WITH THE KLINGON EMPIRE HAVE CRUMBLED. THE KLINGONS HAVE BUILD A MILITARY OUTPOST NEAR YOUR LOCATION AS A STAGING POINT FOR A WAR. IT MUST BE DESTROYED.") + newline;
x = -5000;
y = -5000;
e = 1000;
e2 = 1000;
Set("starbase:stationpic:type", 3);
torpsound = "def-torp";
phassound = "def-phas";
gotoAndStop (12);
}
if ((step >= 9) and (step < 12)) {
infotext = ("2360 - MESSAGE TO " + playership) + newline;
infotext = (infotext + " THE WAR BETWEEN THE KLINGONS AND THE FEDERATION HAS ENDED. THE TWO RACES ARE NOW ALLIES.") + newline;
infotext = (infotext + " WITH THIS NEW POWER SHIFT IN THE QUADRANT, THE ROMULANS HAVE ONCE AGAIN EMERGED FROM ISOLATION. IT HAS BEEN DISCOVERED THAT THEIR TECHNOLOGICAL ADVANCEMENT HAS BEEN EXTENSIVE SINCE THEY WERE LAST SEEN AT THE END OF THE LAST WAR.") + newline;
infotext = (infotext + " THE ROMULANS HAVE HUGE POWERFUL D'ERIDEX CLASS WARSHIPS, CAPABLE OF OUTMATCHING THE NEW EXCELSIOR CLASS STARSHIPS. ONCE AGAIN THEY ARE MASSING A FLEET NEAR THE NEUTRAL ZONE. THEIR CONSTRUCTION YARD MUST BE DESTROYED. NOT EVEN THE KLINGONS CAN HELP YOU NOW.") + newline;
x = 6000;
y = -3000;
e = 2000;
e2 = 2000;
Set("starbase:stationpic:type", 4);
torpsound = "def-torp";
phassound = "def-phas";
gotoAndStop (12);
}
if ((step >= 12) and (step < 14)) {
infotext = ("2383 - MESSAGE TO " + playership) + newline;
infotext = (infotext + " THE FEDERATION'S WORST FEAR IS REALIZED. AFTER THE DOMINION WAR THE KLINGONS AND ROMULANS HAVE FORMED AN ALLIANCE. TOGETHER THEY INTEND TO BECOME THE MOST POWERFUL GROUP IN THE QUADRANT.") + newline;
infotext = (infotext + " THEY, ALONG WITH MANY OTHER SPECIES, DO NOT FEEL THE FEDERATION HAS DONE ITS DUTY TO PROTECT THE ALPHA QUADRANT. MANY SUFFERED FROM THE DOMINION WAR, AND THE ROMULANS AND KLINGONS HAVE AGREED THAT A NEW GOVERNMENT IS NEEDED.") + newline;
infotext = (infotext + " YOU MUST PRESERVE THE FEDERATION. DESTROY THE KLINGON AND ROMULAN FORCES AT THEIR NEW STARBASE. THE FEDERATION MUST NOT FALL.") + newline;
x = 5000;
y = 5000;
e = 5000;
e2 = 5000;
Set("starbase:stationpic:type", 5);
torpsound = "def-torp";
phassound = "def-phas";
gotoAndStop (12);
}
if (step == 14) {
infotext = ("2400 - MESSAGE TO " + playership) + newline;
infotext = (infotext + " AN ALLIANCE HAS FINALLY BEEN FORMED BETWEEN THE FEDERATION, THE KLINGONS, AND THE ROMULANS. PEACE SPREADS THROUGHOUT THE ALPHA QUADRANT. A NEW ERA OF BLISS AND HAPPINESS BLOOMS. YOU ARE HAILED AS A HERO.") + newline;
infotext = (infotext + " YOUR CELEBRATION DOESN'T LAST LONG. AFTER THE USS VOYAGER RETURNED FROM THE DELTA QUADRANT, THE BORG HAVE BEEN ON THEIR WAY, INTENT ON REVENGE. THEY WILL STOP AT NOTHING TO ASSIMILATE EARTH, NOW.") + newline;
infotext = (infotext + " YOU ARE RECALLED TO EARTH TO DEFEND IT AS SENSORS PICK UP A BORG UNIPLEX APPEARING FROM TRANSWARP. BORG SPHERES AND CUBES FILL THE SECTOR. THE END IS HERE...") + newline;
y = 2000;
x = -5000;
e = 6000;
e2 = 10000;
Set("starbase:stationpic:type", 6);
torpsound = "def-torp";
phassound = "def-phas";
gotoAndStop (12);
}
if (step == 15) {
removeallships();
gotoAndStop (14);
_root.comm = "ALL THREATS DESTROYED!!!";
}
setProperty("estarbase", _x , x);
setProperty("estarbase", _y , y);
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 = 3000;
tot_hull = 100;
tot_shields = -1;
tot_phaser = 0;
tot_torp = 5;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 37) {
tot_energy = 3500;
tot_hull = 100;
tot_shields = 100;
tot_phaser = 75;
tot_torp = 5;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 73) {
tot_energy = 4000;
tot_hull = 125;
tot_shields = 125;
tot_phaser = 100;
tot_torp = 6;
tot_speed = -7;
tot_nettorps = 0;
}
if (def == 109) {
tot_energy = 4000;
tot_hull = 125;
tot_shields = 125;
tot_phaser = 125;
tot_torp = 6;
tot_speed = -6;
tot_nettorps = 0;
}
if (def == 145) {
tot_energy = 4500;
tot_hull = 150;
tot_shields = 150;
tot_phaser = 150;
tot_torp = 6;
tot_speed = -7;
tot_nettorps = 0;
}
if (def == 181) {
tot_energy = 5000;
tot_hull = 185;
tot_shields = 185;
tot_phaser = 200;
tot_torp = 6;
tot_speed = -8;
tot_nettorps = 0;
}
if (def == 380) {
tot_energy = 5000;
tot_hull = 220;
tot_shields = 230;
tot_phaser = 300;
tot_torp = 9;
tot_speed = -9;
tot_nettorps = 0;
}
if (def == 217) {
tot_energy = 9000;
tot_hull = 225;
tot_shields = 225;
tot_phaser = 300;
tot_torp = 7;
tot_speed = -8;
tot_nettorps = 0;
}
if (def == 253) {
tot_energy = 8000;
tot_hull = 300;
tot_shields = 300;
tot_phaser = 400;
tot_torp = 8;
tot_speed = -9;
tot_nettorps = 0;
}
if (def == 411) {
tot_energy = 8000;
tot_hull = 300;
tot_shields = 300;
tot_phaser = 400;
tot_torp = 8;
tot_speed = -8;
tot_nettorps = 0;
}
if ((def == 289) or (def == 325)) {
tot_energy = 15000;
tot_hull = 500;
tot_shields = -1;
tot_phaser = 500;
tot_torp = 9;
tot_speed = -8;
tot_nettorps = 0;
}
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 (def == 1) {
swap = 2;
}
if (def == 37) {
swap = 11;
}
if (def == 73) {
swap = 20;
}
if (def == 145) {
swap = 29;
}
if (def == 181) {
swap = 38;
}
if (def == 217) {
swap = 56;
}
if (def == 380) {
swap = 47;
}
if (def == 253) {
swap = 65;
}
if (def == 411) {
swap = 83;
}
if (def == 109) {
swap = 74;
}
}
function updatebars() {
shields = 0;
bar = (shields / tot_shields) * 100;
setProperty("shieldsbar", _xscale , bar);
speedmenu = (Math.abs(_root.speed) / Math.abs(_root.tot_speed)) * 100;
setProperty("speedbar", _xscale , speedmenu);
Set("speedbar:mycolor", 1);
torpbar = (torpedoes / _root.tot_nettorps) * 100;
setProperty("torpedoesbar", _xscale , torpbar);
bar = (hull / tot_hull) * 100;
setProperty("hullbar", _xscale , bar);
}
function hit() {
if (shields > 0) {
shieldstrength = shieldstrength - hitstrength;
shields = shieldstrength;
bar = (shields / tot_shields) * 100;
setProperty("shieldsbar", _xscale , bar);
if (shields < 1) {
shields = 0;
bar = (shields / tot_shields) * 100;
setProperty("shieldsbar", _xscale , 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 < 75) and (hull < 200)) {
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 = "PHASERS ARE OFFLINE!";
phaser = 2;
}
if ((random(5) == 1) and (sensors == 1)) {
comm = "LONG RANGE SCANNERS ARE OFFLINE!";
scale = 0;
sensors = 2;
}
}
setProperty("hullbar", _xscale , bar);
if (hull <= 0) {
setProperty("damage", _x , -100);
}
}
function dead() {
removeallships();
gotoAndPlay (13);
}
function createnewenemy() {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
if (step < 3) {
type = 3;
}
enemyenergy = 100;
if ((step >= 3) and (step < 6)) {
e = random(2) + 1;
if (e == 1) {
type = 12;
enemyenergy = 200;
}
if (e == 2) {
type = 21;
enemyenergy = 250;
}
}
if ((step >= 6) and (step < 8)) {
e = random(2) + 1;
if (e == 1) {
type = 21;
enemyenergy = 250;
}
if (e == 2) {
type = 30;
enemyenergy = 100;
}
}
if (step == 8) {
e = random(3) + 1;
if (e == 1) {
type = 21;
enemyenergy = 250;
}
if (e == 2) {
type = 30;
enemyenergy = 350;
}
if (e == 3) {
type = 40;
enemyenergy = 500;
}
}
if ((step > 8) and (step < 12)) {
e = random(2) + 1;
if (e == 1) {
type = 58;
enemyenergy = 75;
}
if (e == 2) {
type = 49;
enemyenergy = 800;
}
}
if ((step >= 12) and (step < 14)) {
e = random(5) + 1;
if (e == 1) {
type = 58;
enemyenergy = 75;
}
if (e == 2) {
type = 49;
enemyenergy = 800;
}
if (e == 3) {
type = 40;
enemyenergy = 350;
}
if (e == 4) {
type = 30;
enemyenergy = 200;
}
if (e == 5) {
type = 67;
enemyenergy = 900;
}
}
if (step >= 14) {
e = random(2) + 1;
if (e == 1) {
type = 76;
enemyenergy = 1500;
}
if (e == 2) {
type = 85;
enemyenergy = 800;
}
}
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 < 10) {
if (shipslot[i] == "") {
shipslot[i] = "eship" add _root.shotname;
break;
}
i++;
}
shipx = getProperty("estarbase", _x);
shipy = getProperty("estarbase", _y);
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;
if (_root.shotname >= 1001) {
_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;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("friendly", "fship" add _root.shotname, _root.shotname);
i = 0;
while (i < 10) {
if (fshipslot[i] == "") {
fshipslot[i] = "fship" add _root.shotname;
break;
}
i++;
}
shipx = getProperty("starbase", _x);
shipy = getProperty("starbase", _y);
setProperty("fship" add _root.shotname, _rotation , rotation);
setProperty("fship" add _root.shotname, _x , shipx);
setProperty("fship" add _root.shotname, _y , shipy);
createname();
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);
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;
if (Number(_root.shotname) >= 1001) {
_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 < 1001) {
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 < 11) {
shipslot[i] = "";
i++;
}
i = 0;
while (i < 11) {
fshipslot[i] = "";
i++;
}
Set("planetblip:target", "");
setProperty("planetblip", _x , -10);
Set("stellarobject:type", "");
}
function makeasteroid() {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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(15) + 1);
}
function createname() {
x = random(32);
if (x == 0) {
shipname = "USS SARATOGA";
}
if (x == 1) {
shipname = "USS PHOENIX";
}
if (x == 2) {
shipname = "USS MANTICORE";
}
if (x == 3) {
shipname = "USS STARGAZER";
}
if (x == 4) {
shipname = "USS ANTARES";
}
if (x == 5) {
shipname = "USS ARIES";
}
if (x == 6) {
shipname = "USS BOZEMAN";
}
if (x == 7) {
shipname = "USS BRITTAIN";
}
if (x == 8) {
shipname = "USS CAROLINA";
}
if (x == 9) {
shipname = "USS ARIZONA";
}
if (x == 10) {
shipname = "USS CAIRO";
}
if (x == 11) {
shipname = "USS CRAZY HORSE";
}
if (x == 12) {
shipname = "USS CONSTELLATION";
}
if (x == 13) {
shipname = "USS CONSTITUTION";
}
if (x == 14) {
shipname = "USS ENTERPRISE";
}
if (x == 15) {
shipname = "USS EXCALIBUR";
}
if (x == 16) {
shipname = "USS EXCELSIOR";
}
if (x == 17) {
shipname = "USS DEFIANT";
}
if (x == 18) {
shipname = "USS EAGLE";
}
if (x == 19) {
shipname = "USS HOOD";
}
if (x == 20) {
shipname = "USS LAKOTA";
}
if (x == 21) {
shipname = "USS ENDEAVOUR";
}
if (x == 22) {
shipname = "USS ESSEX";
}
if (x == 23) {
shipname = "USS GRISSOM";
}
if (x == 24) {
shipname = "USS INTREPID";
}
if (x == 25) {
shipname = "USS HORIZON";
}
if (x == 26) {
shipname = "USS MONITOR";
}
if (x == 27) {
shipname = "USS AQUINAS";
}
if (x == 28) {
shipname = "USS RELIANT";
}
if (x == 29) {
shipname = "USS YAMATO";
}
if (x == 30) {
shipname = "USS YORKTOWN";
}
if (x == 31) {
shipname = "USS CHANDLER";
}
}
function loaditem() {
if (itemslot[itemselect] == 2) {
torptype = 6;
torpedoes = photontorpedoes;
tot_nettorps = 20;
comm = ("PHOTON TORPEDOES LOADED...YOU HAVE " + photontorpedoes) + " REMAINING...";
bar = (photontorpedoes / 20) * 100;
setProperty("torpedoesbar", _xscale , bar);
}
if (itemslot[itemselect] == 3) {
torptype = 11;
torpedoes = quantumtorpedoes;
tot_nettorps = 20;
comm = ("QUANTUM TORPEDOES LOADED...YOU HAVE " + quantumtorpedoes) + " REMAINING...";
bar = (quantumtorpedoes / 20) * 100;
setProperty("torpedoesbar", _xscale , bar);
}
if (itemslot[itemselect] == 4) {
torptype = 1;
torpedoes = photonictorpedoes;
tot_nettorps = 20;
comm = ("PHOTONIC TORPEDOES LOADED...YOU HAVE " + photonictorpedoes) + " REMAINING...";
bar = (photonictorpedoes / 20) * 100;
setProperty("torpedoesbar", _xscale , bar);
}
if (itemslot[itemselect] == 5) {
torptype = 16;
torpedoes = plasmatorpedoes;
tot_nettorps = 10;
comm = ("PLASMA TORPEDOES LOADED...YOU HAVE " + plasmatorpedoes) + " REMAINING...";
bar = (plasmatorpedoes / 10) * 100;
setProperty("torpedoesbar", _xscale , bar);
}
if (itemslot[itemselect] == 6) {
torptype = 21;
tot_nettorps = 5;
torpedoes = transphasictorpedoes;
comm = ("TRANSPHASIC TORPEDOES LOADED...YOU HAVE " + transphasictorpedoes) + " REMAINING...";
bar = (transphasictorpedoes / 5) * 100;
setProperty("torpedoesbar", _xscale , bar);
}
if (itemslot[itemselect] == 8) {
comm = "THIS IS A FORWARD TORPEDO LAUNCHER...";
}
if (itemslot[itemselect] == 17) {
comm = "THIS IS A CLOAKING DEVICE...";
}
if (itemslot[itemselect] == 13) {
comm = "THIS IS AN IMPULSE ENGINE ENHANCEMENT CHIP...";
}
if (itemslot[itemselect] == 14) {
comm = "THIS IS A PHASER OUTPUT ENHANCEMENT CHIP...";
}
if (itemslot[itemselect] == 15) {
comm = "THIS IS A DAMAGE REPAIR IMPROVEMENT CHIP...";
}
if (itemslot[itemselect] == 7) {
comm = "LANCE PHASER EMITTER CHARGED AND READY...";
}
if (itemslot[itemselect] == 16) {
comm = "PULSE PHASERS CHARGED AND READY...";
torptype = 26;
}
if (itemslot[itemselect] == 9) {
comm = "THIS IS AN AFT TORPEDO LAUNCHER...";
}
if (itemslot[itemselect] == 19) {
comm = "THIS IS A BOTTLE OF ROMULAN ALE!";
}
}
function firetorps() {
defx = getProperty("defiant", _x);
defy = getProperty("defiant", _y);
b = 0;
c = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 8) {
b = 1;
}
if (_root.itemslot[i] == 9) {
c = 1;
}
i++;
}
if (itemslot[itemselect] == 16) {
b = 1;
c = 0;
torpsound = "ephas";
tot_nettorps = 1000;
torptype = 26;
}
if ((b == 0) and (c == 0)) {
_root.comm = "WE DO NOT HAVE A LAUNCHER TO FIRE...";
}
if (((c == 1) or (b == 1)) and (torpsaway == 0)) {
soundbeep = new Sound(this);
soundbeep.attachSound(torpsound);
soundbeep.start(0, 0);
}
if (((((_root.speed >= -10) and ((torpedoes > 0) or (itemslot[itemselect] == 16))) and (energy > 100)) and (torpsaway == 0)) and ((b == 1) or (c == 1))) {
if (b == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("torp", "shot" add _root.shotname, _root.shotname);
rotation = getProperty("defiant", _rotation);
phasx = Math.sin(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + 10);
phasy = (Math.cos(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + 10)) * -1;
torpsaway = 20 - _root.tot_torp;
if (itemslot[itemselect] == 16) {
torpsaway = 2;
}
if (torptype == 1) {
photonictorpedoes = photonictorpedoes - 1;
}
if (torptype == 6) {
photontorpedoes = photontorpedoes - 1;
}
if (torptype == 11) {
quantumtorpedoes = quantumtorpedoes - 1;
}
if (torptype == 16) {
plasmatorpedoes = plasmatorpedoes - 1;
}
if (torptype == 21) {
transphasictorpedoes = transphasictorpedoes - 1;
}
torpedoes = torpedoes - 1;
if (((((torptype == 1) or (torptype == 6)) or (torptype == 11)) or (torptype == 16)) or (torptype == 21)) {
if (torpedoes <= 0) {
itemslot[itemselect] = undefined;
Set(("item" add itemselect) add ":item", 1);
}
}
energy = energy - 50;
torpbar = (torpedoes / tot_nettorps) * 100;
setProperty("torpedoesbar", _xscale , torpbar);
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 (c == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_root.shotname = 1;
}
duplicateMovieClip ("torp", "shot" add _root.shotname, _root.shotname);
rotation = getProperty("defiant", _rotation) + 180;
phasx = Math.sin(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + 10);
phasy = (Math.cos(rotation * (Math.PI/180)) * (Math.abs(_root.speed) + 10)) * -1;
torpsaway = 20 - _root.tot_torp;
if (torptype == 1) {
photonictorpedoes = photonictorpedoes - 1;
}
if (torptype == 6) {
photontorpedoes = photontorpedoes - 1;
}
if (torptype == 11) {
quantumtorpedoes = quantumtorpedoes - 1;
}
if (torptype == 16) {
plasmatorpedoes = plasmatorpedoes - 1;
}
if (torptype == 21) {
transphasictorpedoes = transphasictorpedoes - 1;
}
torpedoes = torpedoes - 1;
if (((((torptype == 1) or (torptype == 6)) or (torptype == 11)) or (torptype == 16)) or (torptype == 21)) {
if (torpedoes <= 0) {
itemslot[itemselect] = undefined;
Set(("item" add itemselect) add ":item", 1);
}
}
energy = energy - 50;
torpbar = (torpedoes / tot_nettorps) * 100;
setProperty("torpedoesbar", _xscale , torpbar);
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...";
}
if ((torpedoes == 0) and (itemslot[itemselect] != 16)) {
comm = "WE DON'T HAVE ANY TORPEDOES...";
}
}
fshipslot = new Array();
shipslot = new Array();
itemslot = new Array();
loadgame();
i = 0;
while (i < 10) {
shipslot[i] = "";
i++;
}
i = 0;
while (i < 10) {
fshipslot[i] = "";
i++;
}
if ((def == 1) or (def == 37)) {
shieldsbutton = "";
} else {
shieldsbutton = "SHIELDS";
}
if (def == 289) {
centerbutton = "ARMOR";
} else {
centerbutton = "";
}
myDate = new Date();
mytime = myDate.getSeconds();
cheatbox = "";
menu = 1;
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;
speed = 0;
phaseraway = 0;
ephaseraway = 0;
shotname = 1;
scale = 50;
cloak = 0;
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 273 MovieClip "etorp" in Frame 10 (340 B)
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 147 MovieClip in Frame 10 (584 B)
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 147 MovieClip in Frame 10 (584 B)
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 147 MovieClip in Frame 10 (584 B)
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 147 MovieClip in Frame 10 (596 B)
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 147 MovieClip in Frame 10 (596 B)
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 147 MovieClip in Frame 10 (596 B)
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 147 MovieClip in Frame 10 (596 B)
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 147 MovieClip in Frame 10 (596 B)
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 147 MovieClip in Frame 10 (596 B)
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 147 MovieClip in Frame 10 (596 B)
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 282 MovieClip "torp" in Frame 10 (340 B)
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 302 MovieClip "stellarobject" in Frame 10 (371 B)
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 336 MovieClip "starbase" in Frame 10 (3.24 KiB) ●
onClipEvent (load) {
setProperty("constructbar", _xscale , 0);
damage = 0;
construction = 0;
menu = 0;
}
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(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)) {
d1 = d1 + _root.dilithium;
d2 = d2 + _root.deuranium;
_root.dilithium = 0;
_root.deuranium = 0;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.comm = "RESOURCES RECEIVED...";
_root.resources = ((("DILITHIUM: " + _root.dilithium) + newline) + "DEURANIUM: ") + _root.deuranium;
}
}
}
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);
if (x < 0) {
setProperty("constructbar", _xscale , 0);
construction = 0;
_root.comm = "SABOTAGE! A ROMULAN SPY HAS SABOTAGED YOUR STATION'S CONSTRUCTION EFFORTS...";
}
if (myDate.getSeconds() == constructiontarget) {
construction = 0;
setProperty("constructbar", _xscale , 0);
if (_root.buildtype > 0) {
_root.createfriendly();
} else {
_root.step = _root.step + 1;
if (_root.step == 2) {
_root.comm = "SHIELD RESEARCH COMPLETED...";
_root.tot_shields = 100;
_root.shieldstrength = _root.tot_shields;
_root.shields = 0;
}
if (_root.step == 3) {
_root.comm = "STARBASE UPGRADED";
Set("stationpic:type", 2);
soundbeep = new Sound(this);
soundbeep.attachSound("cheers");
soundbeep.start(0, 0);
_root.loadera();
}
if (_root.step == 5) {
_root.comm = "CLOAK RESEARCH COMPLETED...";
_root.itemslot[6] = 17;
Set("../item6:item", 17);
}
if (_root.step == 6) {
_root.comm = "STARBASE UPGRADED";
Set("stationpic:type", 3);
soundbeep = new Sound(this);
soundbeep.attachSound("cheers");
soundbeep.start(0, 0);
_root.loadera();
}
if (_root.step == 9) {
_root.comm = "STARBASE UPGRADED";
Set("stationpic:type", 4);
soundbeep = new Sound(this);
soundbeep.attachSound("cheers");
soundbeep.start(0, 0);
_root.loadera();
}
if (_root.step == 12) {
_root.comm = "STARBASE UPGRADED";
Set("stationpic:type", 5);
soundbeep = new Sound(this);
soundbeep.attachSound("cheers");
soundbeep.start(0, 0);
_root.loadera();
}
if (_root.step == 14) {
_root.comm = "APPROACHING EARTH...";
Set("stationpic:type", 6);
soundbeep = new Sound(this);
soundbeep.attachSound("cheers");
soundbeep.start(0, 0);
_root.loadera();
}
}
}
}
}
Instance of Symbol 357 MovieClip "estarbase" in Frame 10 (389 B)
onClipEvent (enterFrame) {
defrotation = getProperty("../defiant", _rotation);
if (myenergy > -200) {
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 369 MovieClip "friendly" in Frame 10 (1.96 KiB) ●
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(36)) {
_root.comm = "FLEET REPORTS IT IS ON ITS WAY...";
soundbeep = new Sound(this);
soundbeep.attachSound("commopen");
soundbeep.start(0, 0);
my_target = "defiant";
my_tx = random(500);
my_ty = random(450);
}
}
on (release) {
if (my_target != "defiant") {
_root.comm = ("THE " + my_name) + " HAS BEEN ASSIGNED AS YOUR ESCORT...";
my_target = "defiant";
my_tx = random(500);
my_ty = random(450);
} else if (my_target == "defiant") {
my_target = "starbase";
_root.comm = ("YOU HAVE RELIEVED THE " + my_name) + " FROM ESCORT DUTY...";
}
}
on (rollOver) {
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 FEDERATION STARBASE...";
}
if (((my_target == "starbase") and (Math.abs(_x - sx) > 500)) and (Math.abs(_y - sy) > 500)) {
assign = "IS ON STANDARD PATROL...";
}
if (my_target == "estarbase") {
assign = "HAS ORDERS TO DESTROY THE ENEMY STARBASE...";
}
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;
bar = ((100 - Math.abs(damage)) / 100) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
on (rollOut) {
if (_root.comm == my_name) {
_root.comm = "";
}
}
Instance of Symbol 371 MovieClip "fblip" in Frame 10 (710 B)
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 125 MovieClip [defiant] "defiant" in Frame 10 (11.67 KiB) ● ●
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(10);
}
if (_root.energy > _root.tot_energy) {
_root.energy = _root.tot_energy;
}
if (_root.cloak == 1) {
_root.energy = _root.energy - random(15);
}
if (Math.abs(_root.speed) > 10) {
_root.energy = _root.energy - random(10);
}
if ((_root.shields > 0) and (random(5) == 1)) {
_root.energy = _root.energy - 1;
}
bar = (_root.energy / _root.tot_energy) * 100;
setProperty("../energybar", _xscale , bar);
if (_root.torpsaway > 0) {
_root.torpsaway = _root.torpsaway - 1;
}
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 , bar);
}
}
_root.defangle = _root.def;
cargo = (_root.dilithium + _root.deuranium) / 1000;
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 + cargo)) {
_root.speed = _root.tot_speed + cargo;
}
speedmenu = (Math.abs(_root.speed) / Math.abs(_root.tot_speed)) * 100;
setProperty("../speedbar", _xscale , speedmenu);
Set("../speedbar:mycolor", 1);
}
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 , speedmenu);
Set("../speedbar:mycolor", 1);
_root.speedmenu = Math.abs(_root.speed);
}
}
if (Key.isDown(37)) {
if (_root.energy > 50) {
if (_root.speed < 0) {
_root.defangle = _root.def + 1;
}
angle = getProperty("../defiant", _rotation);
changeangle = 10 - (Math.abs(_root.speed) / 2);
if (changeangle < 1) {
changeangle = 1;
}
angle = angle - Math.abs(changeangle - cargo);
setProperty("../defiant", _rotation , angle);
if (_root.shields > 0) {
setProperty("../shieldup", _rotation , angle);
}
}
}
if (Key.isDown(39)) {
if (_root.energy > 50) {
if (_root.speed < 0) {
_root.defangle = _root.def + 2;
}
angle = getProperty("../defiant", _rotation);
changeangle = 10 - (Math.abs(_root.speed) / 2);
if (changeangle < 1) {
changeangle = 1;
}
angle = angle + Math.abs(changeangle - cargo);
setProperty("../defiant", _rotation , angle);
if (_root.shields > 0) {
setProperty("../shieldup", _rotation , angle);
}
}
}
if (_root.ale == 1) {
if (random(200) == 1) {
drunk = random(3);
}
if (drunk == 0) {
_root.comm = "I'M SO DRUNK!";
}
if (drunk == 1) {
_root.comm = "THAT GIRL'S GETTING PRETTIER BY THE MINUTE!";
}
if (drunk == 2) {
_root.comm = "I THINK I'M GOING TO PUKE...";
}
if ((_root.energy > 50) and (_root.speed < 0)) {
angle = getProperty("../defiant", _rotation);
changeangle = 10 - (Math.abs(_root.speed) / 2);
if (changeangle < 1) {
changeangle = 1;
}
angle = angle + (changeangle + random(10));
angle = angle - (changeangle + random(10));
setProperty("../defiant", _rotation , angle);
if (_root.shields > 0) {
setProperty("../shieldup", _rotation , angle);
}
}
}
if (Key.isDown(32)) {
_root.comm = "";
if (((((_root.energy > 350) and (_root.phaseraway == 0)) and (_root.speed >= -10)) and (_root.phaser == 1)) and (_root.cloak == 0)) {
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if ((Math.abs(x - _x) < 150) and (Math.abs(y - _y) < 150)) {
slot = "estarbase";
}
i = 0;
while (i < 10) {
if ((_root.shipslot[i] != "") or ((Math.abs(x - _x) < 150) and (Math.abs(y - _y) < 150))) {
slot = _root.shipslot[i];
if ((Math.abs(x - _x) < 150) and (Math.abs(y - _y) < 150)) {
slot = "estarbase";
}
slot = "../" add slot;
x = getProperty(slot, _x);
y = getProperty(slot, _y);
defx = getProperty("../defiant", _x);
defy = getProperty("../defiant", _y);
if ((((Math.abs(defx - x) < (150 + _root.tot_phaser)) and (Math.abs(defy - y) < (150 + _root.tot_phaser))) and (x > 1)) and (_root.phaseraway == 0)) {
_root.phaseraway = 12;
energydraw = 10 + (_root.tot_phaser / 10);
Set(slot add ":energydraw", energydraw);
Set(slot add ":my_target", "defiant");
_root.energy = _root.energy - _root.tot_phaser;
Set("../line:target", slot);
Set("../line:x", x);
Set("../line:y", y);
soundbeep = new Sound(this);
soundbeep.attachSound(_root.phassound);
soundbeep.start(0, 0);
}
}
i++;
}
}
if (_root.energy < 350) {
_root.comm = "INSUFFICIENT ENERGY TO FIRE PHASERS...";
}
if (_root.speed < -10) {
_root.comm = "CANNOT FIRE PHASERS AT WARP SPEED...";
}
if (_root.cloak == 1) {
_root.comm = "CANNOT FIRE PHASERS WHILE CLOAKED...";
}
}
if (Key.isDown(33)) {
if (_root.speed != -30) {
if (_root.speed < -5) {
_root.speed = -30;
_root.comm = "";
Set("../speedbar:mycolor", 0);
soundbeep = new Sound(this);
soundbeep.attachSound("warp");
soundbeep.start(0, 0);
Set("_root.hitpointsclip:hitpoints", "");
Set("../scanbox:target", 1);
_root.speedmenu = "WARP";
setProperty("../defiant", _yscale , 250);
setProperty("../shieldup", _x , -500);
setProperty("../shieldup", _y , 100);
_root.shields = 0;
bar = (_root.shields / _root.tot_shields) * 100;
setProperty("../shieldsbar", _xscale , bar);
}
}
}
if (Key.isDown(34)) {
if (_root.speed == -30) {
_root.comm = "";
Set("../speedbar:mycolor", 1);
_root.speed = _root.tot_speed;
soundbeep = new Sound(this);
soundbeep.attachSound("dropwarp");
soundbeep.start(0, 0);
_root.speedmenu = Math.abs(_root.speed);
setProperty("../defiant", _yscale , 100);
}
}
if (Key.isDown(16)) {
_root.itemselect++;
net_torps = 0;
setProperty("../torpedoesbar", _xscale , 0);
if (_root.itemselect > 6) {
_root.itemselect = 0;
}
if (_root.itemselect == 0) {
_root.comm = "INVENTORY ITEMS DESELECTED...";
}
if ((_root.itemselect > 0) and (_root.itemslot[_root.itemselect] == undefined)) {
_root.comm = "NO EQUIPMENT SELECTED...";
}
if ((_root.itemselect > 0) and (_root.itemslot[_root.itemselect] != undefined)) {
_root.loaditem();
}
}
if (Key.isDown(46)) {
if (_root.itemselect == 0) {
_root.comm = "NO ITEM EXISTS THERE...SELECT ITEM TO DISMANTLE IT...";
}
if ((_root.itemselect > 0) and (_root.itemslot[_root.itemselect] == undefined)) {
_root.comm = "THERE IS NO ITEM TO DISMANTLE THERE...";
}
if ((_root.itemselect > 0) and (_root.itemslot[_root.itemselect] != undefined)) {
_root.comm = "ITEM DISMANTLED...";
if (_root.itemslot[_root.itemselect] == 19) {
_root.ale = 0;
}
if (_root.itemslot[_root.itemselect] == 13) {
_root.tot_speed = _root.tot_speed + 1;
}
if (_root.itemslot[_root.itemselect] == 14) {
_root.tot_phaser = _root.tot_phaser - 100;
}
if (_root.itemslot[_root.itemselect] == 15) {
_root.repairspeed = 0;
}
_root.itemslot[_root.itemselect] = undefined;
Set(("../item" add _root.itemselect) add ":item", 1);
}
}
if (Key.isDown(13)) {
if ((_root.def != 289) and (_root.def != 325)) {
if (_root.step <= 1) {
_root.comm = "THIS SHIP IS NOT EQUIPED WITH SHIELDS...";
}
if ((((_root.shields == 0) and (_root.shieldstrength > 0)) and (_root.speed >= -10)) 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 , 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 , bar);
}
}
if ((_root.def == 289) and (_root.energy > 1000)) {
_root.def = 361;
_root.tot_hull = _root.tot_hull + 1000;
_root.hull = _root.hull + 1000;
_root.energy = _root.energy - 1000;
} else if (_root.def == 325) {
_root.def = 289;
_root.tot_hull = _root.tot_hull - 1000;
_root.hull = _root.hull - 1000;
if (_root.hull < 100) {
_root.hull = 100;
}
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
}
if ((_root.def == 289) and (_root.energy < 1000)) {
_root.comm = "INSUFFICIENT ENERGY TO GENERATE ARMOR PLATING...";
}
}
if (_root.energy < 40) {
_root.comm = "WARNING: POWER FAILURE...ALL SYSTEMS OFFLINE!";
setProperty("../shieldup", _x , -50);
setProperty("../shieldup", _y , 100);
if (_root.speed < -10) {
setProperty("../defiant", _yscale , 100);
}
_root.speed = 0;
_root.cloak = 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)) {
c = _root.itemslot[_root.itemselect];
if ((((((((c == 2) or (c == 3)) or (c == 4)) or (c == 5)) or (c == 6)) or (c == 16)) and (_root.cloak == 0)) and (_root.torplaunchers == 1)) {
_root.firetorps();
}
if (c == 17) {
if (_root.cloak == 0) {
_root.cloak = 1;
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
} else if (_root.cloak == 1) {
_root.cloak = 0;
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
}
if (c == 7) {
lx = getProperty("../lancephaser", _x);
if ((lx < 0) and (_root.cloak == 0)) {
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("lance");
soundbeep.start(0, 0);
_root.energy = _root.energy - 300;
setProperty("../lancephaser", _yscale , 0);
setProperty("../lancephaser", _x , dx);
setProperty("../lancephaser", _y , dy);
}
}
}
}
Instance of Symbol 439 MovieClip "item1" in Frame 10 (63 B)
onClipEvent (load) {
if (item == undefined) {
item = 1;
}
}
Instance of Symbol 439 MovieClip "item2" in Frame 10 (63 B)
onClipEvent (load) {
if (item == undefined) {
item = 1;
}
}
Instance of Symbol 439 MovieClip "item3" in Frame 10 (63 B)
onClipEvent (load) {
if (item == undefined) {
item = 1;
}
}
Instance of Symbol 439 MovieClip "item4" in Frame 10 (63 B)
onClipEvent (load) {
if (item == undefined) {
item = 1;
}
}
Instance of Symbol 439 MovieClip "item5" in Frame 10 (63 B)
onClipEvent (load) {
if (item == undefined) {
item = 1;
}
}
Instance of Symbol 439 MovieClip "item6" in Frame 10 (63 B)
onClipEvent (load) {
if (item == undefined) {
item = 1;
}
}
Instance of Symbol 451 MovieClip "ship1" in Frame 10 (340 B)
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 459 MovieClip "damagetorps" in Frame 10 (3.01 KiB) ●
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 463 MovieClip "damageengines" in Frame 10 (436 B)
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 467 MovieClip "damageshields" in Frame 10 (463 B)
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 471 MovieClip "damagephasers" in Frame 10 (432 B)
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 475 MovieClip "damagesensors" in Frame 10 (446 B)
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 488 MovieClip in Frame 10 (129 B)
onClipEvent (load) {
item = 1;
}
onClipEvent (enterFrame) {
if (_root.itemselect == 1) {
item = 3;
} else {
item = 1;
}
}
Instance of Symbol 488 MovieClip in Frame 10 (129 B)
onClipEvent (load) {
item = 1;
}
onClipEvent (enterFrame) {
if (_root.itemselect == 2) {
item = 3;
} else {
item = 1;
}
}
Instance of Symbol 488 MovieClip in Frame 10 (129 B)
onClipEvent (load) {
item = 1;
}
onClipEvent (enterFrame) {
if (_root.itemselect == 3) {
item = 3;
} else {
item = 1;
}
}
Instance of Symbol 488 MovieClip in Frame 10 (129 B)
onClipEvent (load) {
item = 1;
}
onClipEvent (enterFrame) {
if (_root.itemselect == 4) {
item = 3;
} else {
item = 1;
}
}
Instance of Symbol 488 MovieClip in Frame 10 (129 B)
onClipEvent (load) {
item = 1;
}
onClipEvent (enterFrame) {
if (_root.itemselect == 5) {
item = 3;
} else {
item = 1;
}
}
Instance of Symbol 488 MovieClip in Frame 10 (129 B)
onClipEvent (load) {
item = 1;
}
onClipEvent (enterFrame) {
if (_root.itemselect == 6) {
item = 3;
} else {
item = 1;
}
}
Instance of Symbol 491 MovieClip "enemybar" in Frame 10 (187 B)
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 493 MovieClip in Frame 10 (106 B)
onClipEvent (enterFrame) {
_x = getProperty("../enemybar", _x);
_y = getProperty("../enemybar", _y);
}
Instance of Symbol 20 MovieClip [eblip] "eblip" in Frame 10 (669 B)
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 498 MovieClip "planetblip" in Frame 10 (502 B)
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 500 MovieClip in Frame 10 (500 B)
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 11 (30 B)
stop();
_root.updatebars();
Frame 12 (8 B)
stop();
Frame 13 (8 B)
stop();
Frame 14 (8 B)
stop();
Symbol 125 MovieClip [defiant] Frame 1 (89 B)
if (_root.hull >= 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 125 MovieClip [defiant] Frame 2 (89 B)
if (_root.hull >= 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 125 MovieClip [defiant] Frame 3 (88 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 125 MovieClip [defiant] Frame 4 (88 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (5);
}
Symbol 125 MovieClip [defiant] Frame 36 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 37 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 125 MovieClip [defiant] Frame 38 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 125 MovieClip [defiant] Frame 39 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 125 MovieClip [defiant] Frame 40 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (41);
}
Symbol 125 MovieClip [defiant] Frame 72 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 73 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 125 MovieClip [defiant] Frame 74 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 125 MovieClip [defiant] Frame 75 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 125 MovieClip [defiant] Frame 76 (89 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (77);
}
Symbol 125 MovieClip [defiant] Frame 108 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 109 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 125 MovieClip [defiant] Frame 110 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 125 MovieClip [defiant] Frame 111 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 125 MovieClip [defiant] Frame 112 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (114);
}
Symbol 125 MovieClip [defiant] Frame 144 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 145 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 125 MovieClip [defiant] Frame 146 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 125 MovieClip [defiant] Frame 147 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 125 MovieClip [defiant] Frame 148 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (149);
}
Symbol 125 MovieClip [defiant] Frame 180 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 181 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 125 MovieClip [defiant] Frame 182 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 125 MovieClip [defiant] Frame 183 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 125 MovieClip [defiant] Frame 184 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (185);
}
Symbol 125 MovieClip [defiant] Frame 216 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 217 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 125 MovieClip [defiant] Frame 218 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 125 MovieClip [defiant] Frame 219 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 125 MovieClip [defiant] Frame 220 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (221);
}
Symbol 125 MovieClip [defiant] Frame 252 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 253 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 125 MovieClip [defiant] Frame 254 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 125 MovieClip [defiant] Frame 255 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 125 MovieClip [defiant] Frame 256 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (257);
}
Symbol 125 MovieClip [defiant] Frame 288 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 289 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 125 MovieClip [defiant] Frame 290 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 125 MovieClip [defiant] Frame 291 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 125 MovieClip [defiant] Frame 292 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (293);
}
Symbol 125 MovieClip [defiant] Frame 324 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 325 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 125 MovieClip [defiant] Frame 326 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 125 MovieClip [defiant] Frame 327 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 125 MovieClip [defiant] Frame 328 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (329);
}
Symbol 125 MovieClip [defiant] Frame 360 (14 B)
_root.dead();
Symbol 125 MovieClip [defiant] Frame 361 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 363 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 365 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 367 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 369 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 371 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 373 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 375 (86 B)
soundbeep = new Sound(this);
soundbeep.attachSound("armor");
soundbeep.start(0, 0);
Symbol 125 MovieClip [defiant] Frame 379 (60 B)
_root.def = 325;
_root.defangle = 325;
gotoAndPlay (325);
Symbol 125 MovieClip [defiant] Frame 380 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 125 MovieClip [defiant] Frame 381 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 125 MovieClip [defiant] Frame 382 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 125 MovieClip [defiant] Frame 383 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (384);
}
Symbol 125 MovieClip [defiant] Frame 411 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 125 MovieClip [defiant] Frame 412 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 125 MovieClip [defiant] Frame 413 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 125 MovieClip [defiant] Frame 414 (90 B)
if (_root.hull > 0) {
gotoAndPlay(_root.defangle);
} else {
gotoAndPlay (414);
}
Symbol 128 Button (35 B)
on (release) {
gotoAndPlay (10);
}
Symbol 152 Button (370 B)
on (rollOver) {
newgamebutton._alpha = 100;
}
on (rollOut) {
newgamebutton._alpha = 50;
}
on (release) {
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("gamemusic");
soundbeep.start(0, 99);
tot_energy = 3000;
tot_hull = 200;
tot_shields = -1;
tot_phaser = 0;
tot_torp = 5;
tot_speed = -8;
tot_nettorps = 0;
def = 1;
gotoAndStop (6);
}
Symbol 153 Button (398 B)
on (release) {
stopAllSounds();
soundbeep = new Sound(this);
soundbeep.attachSound("gamemusic");
soundbeep.start(0, 99);
myLSO = SharedObject.getLocal("romwars");
if (myLSO.data.playership == undefined) {
gotoAndStop (6);
} else {
playership = myLSO.data.playership;
gotoAndPlay (10);
}
}
on (rollOver) {
playsavedbutton._alpha = 100;
}
on (rollOut) {
playsavedbutton._alpha = 50;
}
Symbol 154 Button (134 B)
on (rollOver) {
editprofilebutton._alpha = 100;
}
on (rollOut) {
editprofilebutton._alpha = 50;
}
on (release) {
gotoAndStop (7);
}
Symbol 163 Button (572 B)
on (release) {
myLSO.data.playership = playership;
myLSO.data.playername = playername;
myLSO.data.era = 0;
myLSO.data.ship = 1;
myLSO.data.item1 = undefined;
myLSO.data.item2 = undefined;
myLSO.data.item3 = undefined;
myLSO.data.item4 = undefined;
myLSO.data.item5 = undefined;
myLSO.data.item6 = undefined;
myLSO.data.photonictorpedoes = 0;
myLSO.data.plasmatorpedoes = 0;
myLSO.data.quantumtorpedoes = 0;
myLSO.data.photontorpedoes = 0;
myLSO.data.transphasictorpedoes = 0;
myLSO.data.d1 = 0;
myLSO.data.d2 = 0;
myLSO.data.flush();
gotoAndPlay (10);
}
Symbol 172 Button (34 B)
on (release) {
gotoAndStop (5);
}
Symbol 181 Button (279 B)
on (release) {
instructions = " PAGE UP: THIS BUTTON WILL ENGAGE YOUR WARP SPEED. YOU MUST BE AT FULL IMPULSE IN ORDER TO ACTIVATE THE WARP DRIVE. WARP SPEED IS COMMONLY USED FOR TRAVELLING FAR DISTANCES QUICKLY AND CAN BE A VALUABLE RESOURCE FOR ESCAPING A HEAVY BATTLE...";
}
Symbol 182 Button (336 B)
on (release) {
instructions = " HOME: HAILS THE FLEET. WHEN YOU HAVE BUILT ADDITIONAL STARSHIPS HAILING THE FLEET WILL CALL ALL OF THEM TO YOUR POSITION AND THEY WILL FOLLOW YOUR MOVEMENTS. IF A SHIP IS ENGAGED IN BATTLE IT MAY NOT RESPOND TO YOUR HAIL, OR IF IT ENCOUNTERS AN ENEMY WHILE IN FORMATION IT MAY BREAK AWAY TO ATTACK.";
}
Symbol 183 Button (417 B)
on (release) {
instructions = " INSERT: TOGGLES REPAIR TEAMS. YOUR SYSTEM STATUS INDICATORS ARE USUALLY GREEN, INDICATING THEY ARE OPERATING. WHEN YOU TAKE DAMAGE THEY MAY BECOME RED, AND WILL GO OFFLINE. YOU CAN ASSIGN A REPAIR TEAM TO ANY ONE SYSTEM AT A TIME TO SPEED UP REPAIR TIME. AN INDICATOR IN YELLOW SHOWS THAT A REPAIR TEAM HAS BEEN SENT THERE. YOU CAN ONLY SEND REPAIR TEAMS TO ONE SYSTEM AT A TIME.";
}
Symbol 184 Button (161 B)
on (release) {
instructions = " ENTER: THE ENTER KEY WILL RAISE OR LOWER YOUR SHIELDS, IF YOUR SHIP IS EQUIPED WITH THEM AND THEY ARE SUFFICIENTLY CHARGED.";
}
Symbol 185 Button (332 B)
on (release) {
instructions = " END: ACTIVATES YOUR TRANSPORTER SYSTEM FOR GATHERING AND DELIVERING RESOURCES. PUT YOUR SHIP UNDER A RESOURCE ASTEROID OR EQUIPMENT BOX AND IT WILL BE BEAMED ABOARD. AT THE STARBASE YOU CAN BEAM YOUR RESOURCES TO THEM TO BUILD SHIPS OR UPGRADE YOUR OWN. YOU MUST BE TOUCHING THE OBJECT TO BEAM.";
}
Symbol 186 Button (110 B)
on (release) {
instructions = " PAGE DOWN: DEACTIVATES YOUR WARP DRIVE AND RETURNS YOU TO IMPULSE SPEED.";
}
Symbol 187 Button (95 B)
on (release) {
instructions = " ARROW KEYS: USE THE ARROW KEYS TO NAVIGATE YOUR STARSHIP.";
}
Symbol 188 Button (210 B)
on (release) {
instructions = " SHIFT: THIS KEY WILL SELECT THE ITEMS IN YOUR SPECIAL EQUIPMENT INVENTORY. IF YOU ARE SELECTING A WEAPON OR DEVICE, YOU CAN THEN USE THE CONTROL KEY TO FIRE OR ACTIVATE IT.";
}
Symbol 189 Button (221 B)
on (release) {
instructions = " CONTROL: FIRES OR ACTIVATES A SELECTED ITEM IN THE SPECIAL EQUIPMENT INVENTORY. ONLY USED FOR WEAPONS OR DEVICES. THIS KEY WILL DO NOTHING IF ANOTHER ITEM TYPE OR NO ITEM IS SELECTED.";
}
Symbol 190 Button (67 B)
on (release) {
instructions = " SPACEBAR: FIRES YOUR PHASERS.";
}
Symbol 191 Button (343 B)
on (release) {
instructions = " DELETE: THIS KEY WILL REMOVE ANY ITEM CURRENTLY SELECTED IN YOUR SPECIAL EQUIPMENT INVENTORY AND BEAM IT OFF THE SHIP. YOU CAN ONLY HAVE 6 ITEMS ABOARD AT ANY TIME, SO THIS IS USEFUL FOR DISPOSING OF UNNEEDED ITEMS IN FAVOR OF NEW ONES. IF YOU EJECT AN ITEM BY ACCIDENT YOU CAN ALWAYS BEAM IT BACK ABOARD.";
}
Symbol 207 Button (104 B)
on (release) {
instructions = " DEURANIUM ASTEROID CONTAINING VARIOUS TONS OF DEURANIUM RESOURCES.";
}
Symbol 208 Button (93 B)
on (release) {
instructions = " DILITHIUM ASTEROID CONTAINING VARIOUS TONS OF DILITHIUM";
}
Symbol 209 Button (68 B)
on (release) {
instructions = " A CASE OF 20 PHOTON TORPEDOES.";
}
Symbol 210 Button (68 B)
on (release) {
instructions = " A CASE OF 10 QUANTUM TORPEDOES";
}
Symbol 211 Button (69 B)
on (release) {
instructions = " A CASE OF 20 PHOTONIC TORPEDOES";
}
Symbol 212 Button (67 B)
on (release) {
instructions = " A CASE OF 10 PLASMA TORPEDOES";
}
Symbol 213 Button (72 B)
on (release) {
instructions = " A CASE OF 5 TRANSPHASIC TORPEDOES.";
}
Symbol 214 Button (59 B)
on (release) {
instructions = " LANCE PHASER EMITTER.";
}
Symbol 215 Button (73 B)
on (release) {
instructions = " TORPEDO LAUNCHERS - SINGLE FORWARD.";
}
Symbol 216 Button (68 B)
on (release) {
instructions = " TORPEDO LAUNCHER - SINGLE AFT.";
}
Symbol 217 Button (99 B)
on (release) {
instructions = " COMPUTER ENHANCEMENT CHIP - IMPROVED DAMAGE CONTROL RESPONSE.";
}
Symbol 218 Button (89 B)
on (release) {
instructions = " COMPUTER ENHANCEMENT CHIP - PHASER OUTPUT INCREASE.";
}
Symbol 219 Button (89 B)
on (release) {
instructions = " COMPUTER ENHANCEMENT CHIP - IMPULSE SPEED INCREASE.";
}
Symbol 222 Button (60 B)
on (release) {
instructions = " PULSE PHASER EMITTERS.";
}
Symbol 223 Button (34 B)
on (release) {
gotoAndStop (8);
}
Symbol 225 Button (77 B)
on (release) {
instructions = " CLOAKING DEVICE - CLOAKS YOUR STARSHIP.";
}
Symbol 242 MovieClip Frame 1 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 2 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 3 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 4 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 5 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 6 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 7 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 8 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 9 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 10 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 11 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 12 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 13 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 14 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 15 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 16 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 17 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 242 MovieClip Frame 18 (33 B)
gotoAndPlay(_root.shipdesctype);
Symbol 247 Button (428 B)
on (release) {
shipdesctext = "The D'eridex is the largest vessel produced in the Alpha Quadrant, although much of its interior space is hollow. Originally classified as the B-Type warbird by Starfleet, this vessel proved a superior foe against the new Galaxy Class starships.";
shipdesc = "D'ERIDEX CLASS WARBIRD\r\rLength: 1805 m\rCrew: 870\rShields: Type X\rWeapons: Plasma Torpedoes, Plasma Phasers";
shipdesctype = 16;
}
Symbol 249 Button (354 B)
on (release) {
shipdesctext = "The Neg'Var Class Warship is the Klingon Empire's newest fleet flagship. With heavy shielding and a massive weapons platform, the Neg'Var is certainly a force to be reckoned with.";
shipdesc = "NEG'VAR CLASS WARSHIP\r\rLength: 1042 m\rCrew: 900\rShields: Type X\rWeapons: Photon Torpedoes, Phasers";
shipdesctype = 11;
}
Symbol 250 Button (319 B)
on (release) {
shipdesctext = "The Klingon Vorcha Class is a long-running warship. Once a fleet flagship, it has been reduced to battlecruiser status with the development of the Neg'Var.";
shipdesc = "VORCHA CLASS WARSHIP\r\rLength: 807 m\rCrew: 540\rShields: Type Y\rWeapons: Plasma Torpedoes";
shipdesctype = 15;
}
Symbol 251 Button (375 B)
on (release) {
shipdesctext = "Although small, the Klingon Bird of Prey packs a heavy punch with its torpedoes and twin disruptor cannons. These ships have been produced in various sizes, but the large K'Vort is the most common.";
shipdesc = "KLINGON BIRD OF PREY\r\rLength: 75 m\rCrew: 30\rShields: Type Y\rWeapons: Photon Torpedoes, Twin Disruptors";
shipdesctype = 9;
}
Symbol 252 Button (342 B)
on (release) {
shipdesctext = "This scoutship is small and fast. Though alone they are no match for the large Federation starships, they can be dangerous in large numbers. They are often escorts for warbird battlegroups.";
shipdesc = "ROMULAN SCOUT\r\rLength: 50 m\rCrew: 22\rShields: Type 2\rWeapons: Plasma Phasers";
shipdesctype = 14;
}
Symbol 253 Button (345 B)
on (release) {
shipdesctext = "The D-7, and its later upgrade the K'Tinga, has been used by both the Romulan and Klingon Empires. Its lack of phasers is made up for by its rapid-fire forward torpedo launcher.";
shipdesc = "D-7 CLASS BATTLECRUISER\r\rLength: 480 m\rCrew: 84\rShields: Class 56\rWeapons: Photon Torpedoes";
shipdesctype = 10;
}
Symbol 254 Button (339 B)
on (release) {
shipdesctext = "The Romulan Bird of Prey is the most common vessel in the Romulan fleet following the Romulan Wars. Its plasma torpedoes inflict heavy damage on any opponent.";
shipdesc = "ROMULAN BIRD OF PREY\r\rLength: 370 m\rCrew: 201\rShields: Class 2\rWeapons: Plasma Torpedoes, Plasma Phasers";
shipdesctype = 13;
}
Symbol 255 Button (446 B)
on (release) {
shipdesctext = "The Romulan Battleship was a dangerous foe during the Romulan Wars. Far outpowering the intial NX Class, they did not fear Starfleet until the development of the Daedalus Class, when the tide of the war was turned. These ships were eventually abandoned after the war.";
shipdesc = "ROMULAN BATTLESHIP\r\rLength: 240 m\rCrew: 140\rShields: Class 1\rWeapons: Plasma Torpedoes, Plasma Phasers";
shipdesctype = 12;
}
Symbol 256 Button (501 B)
on (release) {
shipdesctext = "Produced during the Romulan War, the Daedalus Class was the first starship to be developed by the newly formed United Federation of Planets. It was built to match the superior Romulan Battlecruisers that were decimating the aging NX Class. They later became the workhorse of Starfleet until the production of the Constitution.";
shipdesc = "DAEDALUS CLASS STARSHIP\r\rLength: 121 m\rCrew: 299\rShields: Type N\rWeapons: Phasers, Photon Torpedoes";
shipdesctype = 8;
}
Symbol 257 Button (609 B)
on (release) {
shipdesctext = "The NX Class was the first Warp-5 vessel built by the human race. It supported a massive scientific and exploration platform, although soon after its deployment the use of the NX Class as a battleship became clear. It served the fleet for many years until, with the start of the Romulan War, it became clear that the NX class was no match for the Romulan Birds of Prey. It was replaced with the Daedalus Class heavy cruiser during the war.";
shipdesc = "NX CLASS STARSHIP\r\rLength: 350 m\rCrew: 80\rShields: Type A\rWeapons: Photonic Torpedoes, Phasers";
shipdesctype = 1;
}
Symbol 258 Button (684 B)
on (release) {
shipdesctext = "The Constitution Class was the first starship to be produced by the United Federation of Planets on a massive scale, utilizing not only the basic design but structural components as well to construct other various class designs. Its superior saucer hull, compared to the outdated spherical hull of the Daedalus, provided greater warp speeds with the warp field capabilities of the time. These starships were built so well that many have found their way to the civilian market and are still in use today.";
shipdesc = "CONSTITUTION CLASS STARSHIP\r\rLength: 229 m\rCrew: 433\rShields: Type M\rWeapons: Photonic Torpedoes, Phasers";
shipdesctype = 2;
}
Symbol 259 Button (579 B)
on (release) {
shipdesctext = "With the sheer number of Constitution Class starships produced, it was decided to refit these vessels rather than scrap them. All of the systems on the Constitution were enhanced, and other projects were given greater attention such as the Miranda and Oberth Class designs. The refitted Constitutions saw little use, however, as the new Excelsior class quickly replaced it as the workhorse of Starfleet.";
shipdesc = "CONSTITUTION CLASS REFIT\r\rLength: 305 m\rCrew: 390\rShields: Type G\rWeapons: Photon Torpedoes, Phasers";
shipdesctype = 3;
}
Symbol 260 Button (572 B)
on (release) {
shipdesctext = "The Galaxy Class starship was built as a multi-mission, multi-task workhorse for the Federation, for exploration, diplomacy, and defense. The Galaxy design soon became the basis for several other projects, including the Nebula and New Orleans classes. The Galaxy Class surpassed all expectations, but were difficult to mass produce because of its sheer size. These ships are still in service today.";
shipdesc = "GALAXY CLASS STARSHIP\r\rLength: 641 m\rCrew: 1024\rShields: Type X\rWeapons: Photon Torpedoes, Phasers";
shipdesctype = 4;
}
Symbol 261 Button (492 B)
on (release) {
shipdesctext = "Once called the Great Experiment, the Excelsior Class failed its use as a Transwarp vessel. However the existing plans were modified to utilize a standard warp engine and the Excelsior quickly became Starfleet's largest and longest production run. Many variants have been produced on this class to extend their use.";
shipdesc = "EXCELSIOR CLASS STARSHIP\r\rLength: 467 m\rCrew: 650\rShields: Type J\rWeapons: Photon Torpedoes, Phasers";
shipdesctype = 17;
}
Symbol 262 Button (445 B)
on (release) {
shipdesctext = "The development of the Akira Class was in response to the growing threats from the Borg and Dominion. Designed as a warship, the Akira is the torpedo platform of the fleet with 15 independent launchers. It is a fast and powerful ship, though not as well shielded as the Sovereign.";
shipdesc = "AKIRA CLASS STARSHIP\r\rLength: 460 m\rCrew: 450\rShields: Type X\rWeapons: Torpedoes, Phasers";
shipdesctype = 7;
}
Symbol 263 Button (529 B)
on (release) {
shipdesctext = "The Nebula Class starship was developed based on the Galaxy Class hull. Although originally planned to utilize the Galaxy Class saucer intact, modifications were later made to incorporate the design but required new saucer variants to be constructed. The Nebula Class is in quick production but its size limits its rate. It serves mostly as a ship of exploration.";
shipdesc = "NEBULA CLASS STARSHIP\r\rLength: 442 m\rCrew: 800\rShields: Type X\rWeapons: Torpedoes, Phasers";
shipdesctype = 6;
}
Symbol 264 Button (573 B)
on (release) {
shipdesctext = "The Sovereign Class project was intended to add a new, powerful battleship to the Starfleet ranks. Although it did not reach production until the Dominion War had ended, this delay allowed several design and technology aspects of the now mass-produced Defiant class to be incorporated into the Sovereign. Very few of these ships are in service because there is limited need for battleships at this time.";
shipdesc = "SOVEREIGN CLASS STARSHIP\r\rLength: 680 m\rCrew: 700\rShields: Type ZX\rWeapons: Torpedoes, Phasers";
shipdesctype = 5;
}
Symbol 265 Button (34 B)
on (release) {
gotoAndStop (9);
}
Symbol 273 MovieClip Frame 1 (1.41 KiB) ●
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 {
if (this.hitTest("../defiant")) {
if (_root.step <= 6) {
_root.hitstrength = 7;
}
if (_root.step > 6) {
_root.hitstrength = 15;
}
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (3);
}
i = 0;
while (i < 10) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
if (_root.step <= 6) {
Set(("../" add _root.fshipslot[i]) add ":hit", 30);
}
if (_root.step > 6) {
Set(("../" add _root.fshipslot[i]) add ":hit", 50);
}
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
if (_root.step <= 6) {
Set("../starbase:hit", 30);
}
if (_root.step > 6) {
Set("../starbase:hit", 50);
}
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 273 MovieClip Frame 2 (23 B)
gotoAndPlay(torptype);
Symbol 273 MovieClip Frame 5 (21 B)
removeMovieClip("");
Symbol 273 MovieClip Frame 6 (1.07 KiB) ●
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 {
if (this.hitTest("../defiant")) {
_root.hitstrength = 7;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (8);
}
i = 0;
while (i < 10) {
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")) {
Set("../starbase:hit", 50);
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 273 MovieClip Frame 7 (23 B)
gotoAndPlay(torptype);
Symbol 273 MovieClip Frame 10 (21 B)
removeMovieClip("");
Symbol 273 MovieClip Frame 11 (1.07 KiB) ●
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 {
if (this.hitTest("../defiant")) {
_root.hitstrength = 7;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (13);
}
i = 0;
while (i < 10) {
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")) {
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 273 MovieClip Frame 12 (23 B)
gotoAndPlay(torptype);
Symbol 273 MovieClip Frame 15 (21 B)
removeMovieClip("");
Symbol 273 MovieClip Frame 16 (1.07 KiB) ●
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 {
if (this.hitTest("../defiant")) {
_root.hitstrength = 12;
_root.hit();
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
gotoAndPlay (18);
}
i = 0;
while (i < 10) {
if (_root.fshipslot[i] != "") {
if (this.hitTest("../" add _root.fshipslot[i])) {
Set(("../" add _root.fshipslot[i]) add ":hit", 40);
gotoAndPlay (3);
break;
}
}
i++;
}
if (this.hitTest("../starbase")) {
Set("../starbase:hit", 35);
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 273 MovieClip Frame 17 (23 B)
gotoAndPlay(torptype);
Symbol 273 MovieClip Frame 20 (21 B)
removeMovieClip("");
Symbol 282 MovieClip Frame 1 (912 B)
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));
remove = 0;
i = 0;
while (i < 10) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 15);
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", 15);
remove = 1;
}
}
if (remove == 1) {
gotoAndPlay (3);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 282 MovieClip Frame 2 (23 B)
gotoAndPlay(torptype);
Symbol 282 MovieClip Frame 5 (21 B)
removeMovieClip("");
Symbol 282 MovieClip Frame 6 (727 B)
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));
remove = 0;
i = 0;
while (i < 10) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 30);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
Set("../estarbase:energydraw", 30);
remove = 1;
}
if (remove == 1) {
gotoAndPlay (8);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 282 MovieClip Frame 7 (23 B)
gotoAndPlay(torptype);
Symbol 282 MovieClip Frame 10 (21 B)
removeMovieClip("");
Symbol 282 MovieClip Frame 11 (728 B)
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));
remove = 0;
i = 0;
while (i < 10) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 50);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
Set("../estarbase:energydraw", 50);
remove = 1;
}
if (remove == 1) {
gotoAndPlay (13);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 282 MovieClip Frame 12 (23 B)
gotoAndPlay(torptype);
Symbol 282 MovieClip Frame 15 (21 B)
removeMovieClip("");
Symbol 282 MovieClip Frame 16 (728 B)
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));
remove = 0;
i = 0;
while (i < 10) {
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 (18);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 282 MovieClip Frame 17 (23 B)
gotoAndPlay(torptype);
Symbol 282 MovieClip Frame 20 (21 B)
removeMovieClip("");
Symbol 282 MovieClip Frame 21 (730 B)
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));
remove = 0;
i = 0;
while (i < 10) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 150);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
Set("../estarbase:energydraw", 500);
remove = 1;
}
if (remove == 1) {
gotoAndPlay (23);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 282 MovieClip Frame 22 (23 B)
gotoAndPlay(torptype);
Symbol 282 MovieClip Frame 25 (21 B)
removeMovieClip("");
Symbol 282 MovieClip Frame 26 (728 B)
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));
remove = 0;
i = 0;
while (i < 10) {
slot = "../" add _root.shipslot[i];
if (this.hitTest(slot) and (_root.shipslot[i] != "")) {
Set(slot add ":energydraw", 10);
remove = 1;
}
i++;
}
if (this.hitTest("../estarbase")) {
Set("../estarbase:energydraw", 15);
remove = 1;
}
if (remove == 1) {
gotoAndPlay (28);
soundbeep = new Sound(this);
soundbeep.attachSound("hit");
soundbeep.start(0, 0);
}
}
Symbol 282 MovieClip Frame 27 (23 B)
gotoAndPlay(torptype);
Symbol 282 MovieClip Frame 30 (21 B)
removeMovieClip("");
Symbol 302 MovieClip Frame 1 (1.62 KiB) ●
if (type > 0) {
if ((_root.step < 3) and (type > 8)) {
type = random(8) + 1;
}
if (((_root.step <= 9) and (_root.step >= 3)) and (type > 12)) {
type = random(12) + 1;
}
if (((_root.step <= 11) and (_root.step > 9)) and (type > 17)) {
type = random(17) + 1;
}
if (_root.step >= 13) {
type = random(20) + 1;
}
if (((_root.step == 14) and ((_root.def != 289) or (_root.def != 325))) and (random(200) == 1)) {
type = 18;
}
if ((type != 1) and (random(3) == 1)) {
type = 1;
} else if ((type != 2) and (random(3) == 1)) {
type = 2;
}
if ((_root.step > 6) and (type == 4)) {
type = 2;
}
if (random(200) == 1) {
type = 19;
}
if ((_root.step < 14) and (type == 18)) {
type = 2;
}
if (type == 1) {
gotoAndPlay (3);
}
if (type == 2) {
gotoAndPlay (5);
}
if (type == 3) {
gotoAndPlay (5);
}
if (type == 4) {
gotoAndPlay (3);
}
if (type == 5) {
gotoAndPlay (11);
}
if (type == 6) {
gotoAndPlay (19);
}
if (type == 7) {
gotoAndPlay (21);
}
if (type == 8) {
gotoAndPlay (29);
}
if (type == 9) {
gotoAndPlay (7);
}
if (type == 10) {
gotoAndPlay (31);
}
if (type == 11) {
gotoAndPlay (33);
}
if (type == 12) {
gotoAndPlay (13);
}
if (type == 13) {
gotoAndPlay (9);
}
if (type == 14) {
gotoAndPlay (9);
}
if (type == 15) {
gotoAndPlay (15);
}
if (type == 16) {
gotoAndPlay (35);
}
if (type == 17) {
gotoAndPlay (23);
}
if (type == 18) {
gotoAndPlay (37);
}
if (type == 19) {
gotoAndPlay (25);
}
if (type == 20) {
gotoAndPlay (17);
}
}
Symbol 302 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 302 MovieClip Frame 4 (905 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and ((_root.dilithium + _root.deuranium) < 5000)) {
x = random(200);
_root.dilithium = _root.dilithium + x;
_root.comm = ("YOU BEAM ABOARD " + x) + " TONS OF DILITHIUM...";
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.resources = ((("DILITHIUM: " + _root.dilithium) + newline) + "DEURANIUM: ") + _root.deuranium;
if ((_root.dilithium + _root.deuranium) > 2000) {
_root.comm = _root.comm + "...THE HEAVY CARGO IS AFFECTING PERFORMANCE!";
}
removeMovieClip("");
}
if ((_root.dilithium + _root.deuranium) >= 5000) {
_root.comm = "CAPTAIN, THE CARGO BAYS ARE FULL, WE DON'T HAVE ANY MORE REDSHIRTS TO EJECT.";
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (3);
Symbol 302 MovieClip Frame 6 (905 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and ((_root.dilithium + _root.deuranium) < 5000)) {
x = random(200);
_root.deuranium = _root.deuranium + x;
_root.comm = ("YOU BEAM ABOARD " + x) + " TONS OF DEURANIUM...";
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.resources = ((("DILITHIUM: " + _root.dilithium) + newline) + "DEURANIUM: ") + _root.deuranium;
if ((_root.dilithium + _root.deuranium) > 2000) {
_root.comm = _root.comm + "...THE HEAVY CARGO IS AFFECTING PERFORMANCE!";
}
removeMovieClip("");
}
if ((_root.dilithium + _root.deuranium) >= 5000) {
_root.comm = "CAPTAIN, THE CARGO BAYS ARE FULL, WE DON'T HAVE ANY MORE REDSHIRTS TO EJECT.";
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (5);
Symbol 302 MovieClip Frame 8 (818 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 2) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 2;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.photontorpedoes = 20;
Set(("../item" add i) add ":item", 2);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (7);
Symbol 302 MovieClip Frame 10 (819 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 3) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 3;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.quantumtorpedoes = 20;
Set(("../item" add i) add ":item", 3);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (9);
Symbol 302 MovieClip Frame 12 (821 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 4) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 4;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.photonictorpedoes = 20;
Set(("../item" add i) add ":item", 4);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (11);
Symbol 302 MovieClip Frame 14 (819 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 5) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 5;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.plasmatorpedoes = 10;
Set(("../item" add i) add ":item", 5);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (13);
Symbol 302 MovieClip Frame 16 (823 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 6) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 6;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.transphasictorpedoes = 5;
Set(("../item" add i) add ":item", 6);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (15);
Symbol 302 MovieClip Frame 18 (786 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 7) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 7;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 7);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (17);
Symbol 302 MovieClip Frame 20 (786 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 8) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 8;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 8);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (19);
Symbol 302 MovieClip Frame 22 (786 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 9) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 9;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 9);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (21);
Symbol 302 MovieClip Frame 24 (789 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 17) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 17;
Set(("../item" add i) add ":item", 17);
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (23);
Symbol 302 MovieClip Frame 26 (809 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 19) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 19;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 19);
b = 1;
_root.ale = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (25);
Symbol 302 MovieClip Frame 30 (815 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 13) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 13;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 13);
b = 1;
_root.tot_speed - 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (29);
Symbol 302 MovieClip Frame 32 (837 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 14) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 14;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 14);
b = 1;
_root.tot_phaser = _root.tot_phaser + 100;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (31);
Symbol 302 MovieClip Frame 34 (818 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 15) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 15;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 15);
b = 1;
_root.repairspeed = 50;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (33);
Symbol 302 MovieClip Frame 36 (789 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
b = 0;
i = 1;
while (i < 7) {
if (_root.itemslot[i] == 16) {
_root.comm = "YOU ALREADY HAVE THIS ITEM ABOARD...";
b = 1;
}
i++;
}
i = 1;
while (i < 7) {
if ((_root.itemslot[i] == undefined) and (b == 0)) {
_root.itemslot[i] = 16;
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
Set(("../item" add i) add ":item", 16);
b = 1;
removeMovieClip("");
}
i++;
}
if (b == 0) {
_root.comm = "THERE IS NO ROOM IN YOUR INVENTORY FOR THIS ITEM...";
}
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (35);
Symbol 302 MovieClip Frame 38 (374 B)
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
_root.def = 289;
_root.loadship();
_root.comm = "YOU HAVE JUST TRANSFERRED TO THIS DERILICT NEBULA CLASS EXPERIMENTAL STARSHIP...";
removeMovieClip("");
}
}
if ((((_x < -200) or (_x > 700)) or (_y < -200)) or ((_y > 600) and (type > 0))) {
removeMovieClip("");
}
gotoAndPlay (37);
Symbol 314 MovieClip Frame 1 (19 B)
gotoAndPlay(type);
Symbol 314 MovieClip Frame 2 (19 B)
gotoAndPlay(type);
Symbol 314 MovieClip Frame 3 (19 B)
gotoAndPlay(type);
Symbol 314 MovieClip Frame 4 (19 B)
gotoAndPlay(type);
Symbol 314 MovieClip Frame 5 (19 B)
gotoAndPlay(type);
Symbol 314 MovieClip Frame 6 (19 B)
gotoAndPlay(type);
Symbol 319 Button (135 B)
on (release) {
if (menu == 0) {
menu = 1;
} else {
menu = 0;
}
}
on (rollOver) {
_root.comm = "CLICK BUTTON TO OPEN MENU...";
}
Symbol 321 Button (1.69 KiB) ●
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 150 DILITHIUM, 100 DEURANIUM";
}
on (release) {
if (construction == 0) {
time = 0;
i = 0;
b = 0;
while (i < 10) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if ((((_root.step == 0) or (_root.step == 1)) or (_root.step == 2)) and (construction == 0)) {
time = 10;
_root.buildtype = 2;
}
if ((((_root.step == 3) or (_root.step == 4)) or (_root.step == 5)) and (construction == 0)) {
time = 15;
_root.buildtype = 11;
}
if ((((_root.step == 6) or (_root.step == 7)) or (_root.step == 8)) and (construction == 0)) {
time = 20;
_root.buildtype = 20;
}
if ((((_root.step == 9) or (_root.step == 10)) or (_root.step == 11)) and (construction == 0)) {
time = 30;
_root.buildtype = 38;
}
if ((((_root.step == 12) or (_root.step == 13)) or (_root.step == 14)) and (construction == 0)) {
time = 35;
_root.buildtype = 47;
}
if ((((((d1 > 150) and (d2 > 100)) and (construction == 0)) and (_root.buildtype > 0)) and (b == 1)) and (time > 0)) {
d1 = d1 - 150;
d2 = d2 - 100;
_root.comm = "RESOURCES RECEIVED...STARSHIP CONSTRUCTION COMMENCING...";
construction = 1;
myDate = new Date();
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
constructiontarget = constructiontarget - 60;
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS STARSHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
if (b == 0) {
_root.comm = "SUBSPACE NETWORKS ARE UNABLE TO SUPPORT ANY MORE SHIPS IN THE FLEET...";
}
}
Symbol 322 Button (1.73 KiB) ●
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 200 DILITHIUM, 200 DEURANIUM";
}
on (release) {
if (construction == 0) {
time = 0;
if (build2 != "") {
i = 0;
b = 0;
while (i < 10) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if ((((_root.step == 1) or (_root.step == 2)) and (construction == 0)) and (b == 1)) {
time = 25;
_root.buildtype = 11;
}
if ((((_root.step == 4) or (_root.step == 5)) and (construction == 0)) and (b == 1)) {
time = 25;
_root.buildtype = 20;
}
if ((((_root.step == 7) or (_root.step == 8)) and (construction == 0)) and (b == 1)) {
time = 25;
_root.buildtype = 29;
}
if ((((_root.step == 10) or (_root.step == 11)) and (construction == 0)) and (b == 1)) {
time = 35;
_root.buildtype = 47;
}
if ((((_root.step == 12) or (_root.step == 13)) and (construction == 0)) and (b == 1)) {
time = 40;
_root.buildtype = 56;
}
if (((((d1 > 200) and (d2 > 200)) and (construction == 0)) and (_root.buildtype > 0)) and (time > 0)) {
d1 = d1 - 200;
d2 = d2 - 200;
_root.comm = "RESOURCES RECEIVED...STARSHIP CONSTRUCTION COMMENCING...";
construction = 1;
myDate = new Date();
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
constructiontarget = constructiontarget - 60;
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS STARSHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "A STARSHIP IS ALREADY UNDER CONSTRUCTION...STANDBY...";
}
}
if (b == 0) {
_root.comm = "SUBSPACE NETWORKS ARE UNABLE TO SUPPORT ANY MORE SHIPS IN THE FLEET...";
}
}
}
Symbol 323 Button (1.43 KiB) ●
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 250 DILITHIUM, 250 DEURANIUM";
}
on (release) {
if (construction == 0) {
time = 0;
if (build3 != "") {
i = 0;
b = 0;
while (i < 10) {
if (_root.fshipslot[i] == "") {
b = 1;
}
i++;
}
}
if (((_root.step == 8) and (construction == 0)) and (b == 1)) {
time = 30;
_root.buildtype = 38;
}
if (((_root.step == 11) and (construction == 0)) and (b == 1)) {
time = 40;
_root.buildtype = 56;
}
if ((((_root.step == 13) or (_root.step == 14)) and (construction == 0)) and (b == 1)) {
time = 45;
_root.buildtype = 65;
}
if (((((d1 > 250) and (d2 > 250)) and (construction == 0)) and (_root.buildtype > 0)) and (time > 0)) {
d1 = d1 - 250;
d2 = d2 - 250;
_root.comm = "RESOURCES RECEIVED...STARSHIP CONSTRUCTION COMMENCING...";
construction = 1;
myDate = new Date();
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
constructiontarget = constructiontarget - 60;
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONSTRUCT THIS STARSHIP - MORE RESOURCES ARE NEEDED...";
if (construction == 1) {
_root.comm = "A STARSHIP IS ALREADY UNDER CONSTRUCTION...STANDBY...";
}
}
if (b == 0) {
_root.comm = "SUBSPACE NETWORKS ARE UNABLE TO SUPPORT ANY MORE SHIPS IN THE FLEET...";
}
}
}
Symbol 324 Button (1.05 KiB) ●
on (rollOver) {
_root.comm = "THIS CONSTRUCTION COSTS 1,000 DILITHIUM, 1,000 DEURANIUM";
}
on (release) {
time = 0;
if ((((construction == 0) and (build4 != "")) and (build4 != "UPGRADE STARBASE")) and (build4 != "DECLARE PEACE")) {
_root.buildtype = 0;
time = 50;
}
x = getProperty("../estarbase", _x);
if ((((((_root.step == 2) or (_root.step == 5)) or (_root.step == 8)) or (_root.step == 11)) or (_root.step == 13)) and (x == -99999)) {
time = 50;
_root.buildtype = 0;
}
if ((((d1 > 1000) and (d2 > 1000)) and (construction == 0)) and (time > 0)) {
d1 = d1 - 1000;
d2 = d2 - 1000;
_root.comm = "RESEARCH COMMENCING...";
construction = 1;
myDate = new Date();
constructiontarget = myDate.getSeconds() + time;
if (constructiontarget > 60) {
constructiontarget = constructiontarget - 60;
}
soundbeep = new Sound(this);
soundbeep.attachSound("build");
soundbeep.start(0, 0);
} else {
_root.comm = "UNABLE TO CONDUCT RESEARCH...";
if (construction == 1) {
_root.comm = "UNABLE TO PROCESS...STANDBY...";
}
}
}
Symbol 333 Button (121 B)
on (release) {
_root.comm = "CONSTRUCTION CANCELLED...";
construction = 0;
setProperty("constructbar", _xscale , 0);
}
Symbol 336 MovieClip Frame 1 (2.44 KiB) ●
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;
if (Number(_root.shotname) >= 1000) {
_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(500) == 1) {
i = 0;
b = 0;
while (i < 10) {
if (_root.fshipslot[i] != "") {
b++;
}
i++;
}
d1 = d1 + (b * random(2));
d2 = d2 + (b * random(2));
}
}
}
i = 0;
while (i < 10) {
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 314 MovieClip "stationpic" in Symbol 336 MovieClip Frame 1 (335 B)
on (release) {
if (menu == 0) {
menu = 1;
} else {
menu = 0;
}
}
on (rollOver) {
_root.comm = "FEDERATION STARBASE: ";
bar = ((500 - Math.abs(damage)) / 500) * 100;
_root.comm = ((_root.comm + "THE STATION'S SHIELDS ARE AT ") + bar) + "%.";
}
on (rollOut) {
if (_root.comm == "FEDERATION STARBASE") {
_root.comm = "";
}
}
Symbol 336 MovieClip Frame 2 (598 B)
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 STARBASE 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)) {
gotoAndPlay (5);
}
Symbol 336 MovieClip Frame 3 (1.95 KiB) ●
if (_root.step == 0) {
build1 = "BUILD NX";
build2 = "";
build3 = "";
build4 = "RESEARCH DAEDALUS";
}
if (_root.step == 1) {
build1 = "BUILD NX";
build2 = "BUILD DAEDALUS";
build3 = "";
build4 = "RESEARCH SHIELDS";
}
if (_root.step == 2) {
build1 = "BUILD NX";
build2 = "BUILD DAEDALUS";
build3 = "";
build4 = "UPGRADE STARBASE";
}
if (_root.step == 3) {
build1 = "BUILD DAEDALUS";
build2 = "";
build3 = "";
build4 = "RESEARCH CONSTITUTION";
}
if (_root.step == 4) {
build1 = "BUILD DAEDALUS";
build2 = "BUILD CONSTITUTION";
build3 = "";
build4 = "RESEARCH CLOAK";
}
if (_root.step == 5) {
build1 = "BUILD DAEDALUS";
build2 = "BUILD CONSTITUTION";
build3 = "";
build4 = "UPGRADE STARBASE";
}
if (_root.step == 6) {
build1 = "BUILD CONSTITUTION";
build2 = "";
build3 = "";
build4 = "RESEARCH REFIT";
}
if (_root.step == 7) {
build1 = "BUILD CONSTITUTION";
build2 = "BUILD REFIT CONST";
build3 = "";
build4 = "RESEARCH EXCELSIOR";
}
if (_root.step == 8) {
build1 = "BUILD CONSTITUTION";
build2 = "BUILD REFIT CONST";
build3 = "BUILD EXCELSIOR";
build4 = "UPGRADE STARBASE";
}
if (_root.step == 9) {
build1 = "BUILD EXCELSIOR";
build2 = "";
build3 = "";
build4 = "RESEARCH AKIRA";
}
if (_root.step == 10) {
build1 = "BUILD EXCELSIOR";
build2 = "BUILD AKIRA";
build3 = "";
build4 = "RESEARCH GALAXY";
}
if (_root.step == 11) {
build1 = "BUILD EXCELSIOR";
build2 = "BUILD AKIRA";
build3 = "BUILD GALAXY";
build4 = "UPGRADE STARBASE";
}
if (_root.step == 12) {
build1 = "BUILD AKIRA";
build2 = "BUILD GALAXY";
build3 = "";
build4 = "RESEARCH SOVEREIGN";
}
if (_root.step == 13) {
build1 = "BUILD AKIRA";
build2 = "BUILD GALAXY";
build3 = "BUILD SOVEREIGN";
build4 = "DECLARE PEACE";
}
if (_root.step == 14) {
build1 = "";
build2 = "";
build3 = "";
build4 = "";
}
if (_root.step == 15) {
build1 = "";
build2 = "";
build3 = "";
build4 = "";
}
Symbol 336 MovieClip Frame 4 (68 B)
if (menu == 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 336 MovieClip Frame 36 (41 B)
if (damage == 0) {
gotoAndPlay (1);
}
Symbol 336 MovieClip Frame 37 (18 B)
gotoAndPlay (36);
Symbol 338 MovieClip Frame 1 (379 B)
if (_x > 0) {
rotation = getProperty("../defiant", _rotation);
_rotation = rotation;
_yscale = (_yscale + 20);
if (_yscale > 100) {
_yscale = 0;
_x = -30;
}
}
i = 0;
while (i < 10) {
slot = "../" add _root.shipslot[i];
if ((this.hitTest(slot) and (_root.shipslot[i] != "")) and (_x > 0)) {
Set(slot add ":energydraw", 10);
}
i++;
}
Symbol 338 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 356 MovieClip Frame 1 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 356 MovieClip Frame 2 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 356 MovieClip Frame 3 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 356 MovieClip Frame 4 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 356 MovieClip Frame 5 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 356 MovieClip Frame 6 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 356 MovieClip Frame 10 (401 B)
if (_root.step < 3) {
gotoAndPlay (1);
}
if ((_root.step >= 3) and (_root.step < 6)) {
gotoAndPlay (2);
}
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
if ((_root.step >= 9) and (_root.step <= 11)) {
gotoAndPlay (4);
}
if ((_root.step >= 12) and (_root.step <= 13)) {
gotoAndPlay (5);
}
if (_root.step > 13) {
gotoAndPlay (6);
}
Symbol 357 MovieClip Frame 1 (3.81 KiB) ●
if (myenergy > 0) {
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);
_root.comm = myenergy;
energydraw = 0;
}
if (random(50) == 1) {
i = 0;
b = 0;
while (i < 11) {
if (_root.fshipslot[i] != "") {
b = b + 1;
}
i++;
}
i = 0;
c = 0;
while (i < 11) {
if (_root.shipslot[i] != "") {
c = c + 1;
}
i++;
}
if ((b + 2) > c) {
_root.createnewenemy();
}
}
if (random(800) == 1) {
i = 0;
b = 0;
while (i < 10) {
if (_root.shipslot[i] == "") {
b = 1;
}
i++;
}
if (b == 1) {
_root.createnewenemy();
}
if (b == 0) {
i = 0;
while (i < 10) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
if (random(3) != 0) {
Set(slot add ":my_target", "starbase");
}
Set(slot add ":cloak", 1);
}
i++;
}
}
}
if (random(2000) == 1) {
i = 0;
while (i < 10) {
if (_root.shipslot[i] != "") {
slot = "../" add _root.shipslot[i];
if (random(3) != 0) {
Set(slot add ":my_target", "starbase");
}
Set(slot add ":cloak", 1);
}
i++;
}
}
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) < 300) and (Math.abs(_y - defy) < 200)) and ((defx < 0) or (defx > 0))) {
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);
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 != "estarbase")) and (random(5) == 1)) {
Set(("../" add my_target) add ":hit", 30);
}
if (_root.step < 6) {
mytorp = 1;
}
if ((_root.step >= 6) and (_root.step < 9)) {
mytorp = 16;
}
if (_root.step >= 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);
}
}
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";
}
i = 0;
while (i < 10) {
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 356 MovieClip in Symbol 357 MovieClip Frame 1 (33 B)
onClipEvent (load) {
type = 1;
}
Symbol 357 MovieClip Frame 2 (74 B)
if (myenergy < 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 357 MovieClip Frame 30 (110 B)
_x = -99999;
myenergy = -300;
if (_root.step == 14) {
_root.step = _root.step + 1;
_root.loadera();
}
Symbol 369 MovieClip Frame 1 (226 B)
if (target > 0) {
my_target = "";
_root.comm = ("THE " + my_name) + " HAS BEEN LAUNCHED...";
damage = 0;
shielding = 0;
if (_root.step > 1) {
shielding = 100;
}
gotoAndPlay(type);
} else {
stop();
}
Symbol 369 MovieClip Frame 2 (4.42 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 1) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 1;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -80)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 3 (532 B)
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 = (((100 + shielding) - Math.abs(damage)) / (100 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-100 - shielding)) {
gotoAndPlay (4);
}
Symbol 369 MovieClip Frame 10 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 11 (4.48 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 37) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 37;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "estarbase";
}
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -180)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 12 (533 B)
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 = (((200 + shielding) - Math.abs(damage)) / (200 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-200 - shielding)) {
gotoAndPlay (13);
}
Symbol 369 MovieClip Frame 19 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 20 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 73) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 73;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -180)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 21 (533 B)
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 = (((200 + shielding) - Math.abs(damage)) / (200 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-200 - shielding)) {
gotoAndPlay (22);
}
Symbol 369 MovieClip Frame 28 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 29 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 145) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 145;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 6);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -180)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 30 (533 B)
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 = (((200 + shielding) - Math.abs(damage)) / (200 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-200 - shielding)) {
gotoAndPlay (31);
}
Symbol 369 MovieClip Frame 37 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 38 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 181) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 181;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 6);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -220)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 39 (533 B)
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 = (((250 + shielding) - Math.abs(damage)) / (250 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-250 - shielding)) {
gotoAndPlay (40);
}
Symbol 369 MovieClip Frame 46 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 47 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 380) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 380;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 11);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -280)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 48 (533 B)
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 + shielding) - Math.abs(damage)) / (300 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-300 - shielding)) {
gotoAndPlay (49);
}
Symbol 369 MovieClip Frame 55 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 56 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 217) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 217;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 6);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -370)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 57 (533 B)
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 = (((400 + shielding) - Math.abs(damage)) / (400 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-400 - shielding)) {
gotoAndPlay (58);
}
Symbol 369 MovieClip Frame 64 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 65 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 253) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 253;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 11);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -480)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 66 (533 B)
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 (67);
}
Symbol 369 MovieClip Frame 73 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 74 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 109) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 109;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 11);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -180)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 75 (533 B)
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 = (((200 + shielding) - Math.abs(damage)) / (200 + shielding)) * 100;
if (bar < 0) {
bar = 0;
}
setProperty("../enemybar", _xscale , bar);
setProperty("../enemybar", _x , _x - 30);
setProperty("../enemybar", _y , _y + 50);
}
if (damage < (-200 - shielding)) {
gotoAndPlay (67);
}
Symbol 369 MovieClip Frame 82 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 369 MovieClip Frame 83 (4.43 KiB) ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant")) {
if (damage > -10) {
if (_root.def == 411) {
_root.comm = "CAPTAIN, WE'RE ALREADY ON THAT CLASS OF SHIP...WHY WOULD WE TRANSFER?";
} else {
_root.translateswap();
_root.def = 411;
_root.loadship();
type = _root.swap;
}
}
if (damage < -10) {
_root.comm = ("YOU BEAM A REPAIR TEAM ABOARD THE " + my_name) + " TO ASSIST IN REPAIRS...";
damage = -10;
}
}
}
if (my_target == "") {
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 = tx + random(1000);
tx = tx - random(1000);
ty = ty + random(1000);
ty = ty - random(1000);
}
if (defx == undefined) {
my_target = "";
}
if (((my_target == "starbase") and this.hitTest("../starbase")) and (random(500) == 1)) {
my_target = "";
}
if (((my_target == "defiant") and (my_tx == 200)) and (random(200) == 1)) {
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)) {
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 != "defiant")) and (my_target != "starbase")) {
shootx = _x;
shooty = _y;
if (random(15) == 1) {
_root.shotname = Number(_root.shotname) + 1;
if (Number(_root.shotname) >= 1000) {
_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", 11);
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);
}
}
}
i = 0;
while (i < 10) {
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++;
}
x = getProperty("../estarbase", _x);
y = getProperty("../estarbase", _y);
if (x == -99999) {
my_target = "starbase";
}
if (((Math.abs(x - _x) < 400) and (Math.abs(y - _y) < 400)) and (damage > -480)) {
my_target = "estarbase";
}
Symbol 369 MovieClip Frame 84 (533 B)
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 (67);
}
Symbol 369 MovieClip Frame 91 (254 B)
i = 0;
while (i < 11) {
if (_root.fshipslot[i] == ("fship" add target)) {
_root.fshipslot[i] = "";
}
i++;
}
_root.comm = ("THE " + my_name) + " HAS BEEN DESTROYED...";
removeMovieClip("../friendlyblip" add my_blip);
removeMovieClip("");
Symbol 406 MovieClip Frame 3 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 39 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 75 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 111 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 147 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 183 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 219 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 255 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 291 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 327 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 382 (24 B)
gotoAndPlay(_root.def);
Symbol 406 MovieClip Frame 413 (24 B)
gotoAndPlay(_root.def);
Symbol 411 MovieClip Frame 1 (398 B)
if ((_root.step >= 6) and (_root.step < 9)) {
gotoAndPlay (3);
}
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 411 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 411 MovieClip Frame 3 (397 B)
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 411 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 413 Button (1.94 KiB) ●
on (release) {
if (_root.cheatbox == "makenx") {
_root.def = 1;
}
if (_root.cheatbox == "makedaed") {
_root.def = 37;
}
if (_root.cheatbox == "makeconst") {
_root.def = 73;
}
if (_root.cheatbox == "makeconstre") {
_root.def = 145;
}
if (_root.cheatbox == "makeexc") {
_root.def = 181;
}
if (_root.cheatbox == "makegal") {
_root.def = 217;
}
if (_root.cheatbox == "makesov") {
_root.def = 253;
}
if (_root.cheatbox == "makeneb") {
_root.def = 289;
}
if (_root.cheatbox == "makerom") {
_root.def = 109;
}
if (_root.cheatbox == "makeakir") {
_root.def = 380;
}
if (_root.cheatbox == "makewarbird") {
_root.def = 411;
}
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 == "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 = 2000;
_root.deuranium = 2000;
}
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 == "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 418 MovieClip Frame 1 (444 B)
if (_root.step > 5) {
gotoAndPlay (3);
}
if (_root.phaseraway > 0) {
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 418 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 418 MovieClip Frame 3 (445 B)
if (_root.step <= 5) {
gotoAndPlay (1);
}
if (_root.phaseraway > 0) {
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 418 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 439 MovieClip Frame 1 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 2 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 3 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 4 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 5 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 6 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 7 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 8 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 9 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 10 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 11 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 12 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 13 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 14 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 15 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 16 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 17 (19 B)
gotoAndPlay(item);
Symbol 439 MovieClip Frame 18 (19 B)
gotoAndPlay(item);
Symbol 451 MovieClip Frame 1 (355 B)
if (myenergy > 0) {
my_target = "";
if (random(6) == 1) {
my_target = "defiant";
}
if (random(6) == 1) {
my_target = "starbase";
}
if (random(3) == 1) {
my_target = "estarbase";
}
cloak = 0;
tot_myenergy = myenergy;
if (myenergy > 0) {
gotoAndPlay(shiptype);
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 451 MovieClip Frame 3 (6.61 KiB) ● ●
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 ((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 (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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 4 (74 B)
if (myenergy < 1) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Symbol 451 MovieClip Frame 11 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 12 (6.83 KiB) ● ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 10)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
b = random(3);
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 (b == 2) {
_root.comm = "A ROMULAN SABOTEUR SNEAKS ABOARD AND DESTROYS YOUR SHIP...SO YOU JUST TAKE THEIRS...";
_root.def = 109;
_root.itemslot[6] = 17;
Set("../item6:item", 17);
loadship();
}
}
}
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 <= 10) 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 (myenergy > 10) {
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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 13 (76 B)
if (myenergy < 1) {
gotoAndPlay (14);
} else {
gotoAndPlay (12);
}
Symbol 451 MovieClip Frame 20 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 21 (6.61 KiB) ● ●
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 ((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 (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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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", 6);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 22 (76 B)
if (myenergy < 1) {
gotoAndPlay (23);
} else {
gotoAndPlay (21);
}
Symbol 451 MovieClip Frame 29 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 30 (5.94 KiB) ● ●
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 ((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 (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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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", 11);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
cloak = 0;
}
rotation = _rotation + 90;
rotation = rotation + random(10);
rotation = rotation - random(10);
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) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 31 (76 B)
if (myenergy < 1) {
gotoAndPlay (32);
} else {
gotoAndPlay (30);
}
Symbol 451 MovieClip Frame 38 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 40 (6.61 KiB) ● ●
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 ((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 (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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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", 16);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 41 (76 B)
if (myenergy < 1) {
gotoAndPlay (42);
} else {
gotoAndPlay (40);
}
Symbol 451 MovieClip Frame 48 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 49 (6.83 KiB) ● ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 20)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
b = random(3);
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 (b == 2) {
_root.comm = "A ROMULAN SABOTEUR SNEAKS ABOARD AND DESTROYS YOUR SHIP...SO YOU JUST TAKE THEIRS...";
_root.def = 411;
_root.itemslot[6] = 17;
Set("../item6:item", 17);
loadship();
}
}
}
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 + 80);
if ((myenergy <= 20) 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 (myenergy > 20) {
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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 50 (76 B)
if (myenergy < 1) {
gotoAndPlay (51);
} else {
gotoAndPlay (49);
}
Symbol 451 MovieClip Frame 57 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 58 (6.61 KiB) ● ●
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 ((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 (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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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", 11);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
cloak = 0;
}
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)) 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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 59 (76 B)
if (myenergy < 1) {
gotoAndPlay (60);
} else {
gotoAndPlay (58);
}
Symbol 451 MovieClip Frame 66 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 67 (6.61 KiB) ● ●
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 + 80);
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 (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 (random(100) == 1) {
cloak = 1;
}
}
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
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)) {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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", 16);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
dx = getProperty("../starbase", _x);
dy = getProperty("../starbase", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "starbase";
}
i = 0;
while (i < 10) {
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++;
}
}
ex = getProperty("../estarbase", _x);
if (ex == -99999) {
my_target = "starbase";
}
Symbol 451 MovieClip Frame 68 (76 B)
if (myenergy < 1) {
gotoAndPlay (69);
} else {
gotoAndPlay (67);
}
Symbol 451 MovieClip Frame 75 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 76 (5.19 KiB) ● ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 10)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.comm = "YOUR BOARDING PARTY HAS BEEN ASSIMILATED...";
}
}
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 + 90);
if ((myenergy <= 5) and (myenergy > 0)) {
_root.comm = "TARGET DISABLED...";
if (cloak == 1) {
cloak = 0;
}
}
energydraw = 0;
}
if (myenergy > 5) {
if (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
my_target = _root.fshipslot[ticker];
}
}
if (my_target == "estarbase") {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
i = 0;
while (i < 10) {
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++;
}
}
Symbol 451 MovieClip Frame 77 (76 B)
if (myenergy < 1) {
gotoAndPlay (78);
} else {
gotoAndPlay (76);
}
Symbol 451 MovieClip Frame 84 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 451 MovieClip Frame 85 (5.19 KiB) ● ●
if (Key.isDown(35)) {
if (this.hitTest("../defiant") and (myenergy <= 10)) {
soundbeep = new Sound(this);
soundbeep.attachSound("beam");
soundbeep.start(0, 0);
_root.comm = "YOUR BOARDING PARTY HAS BEEN ASSIMILATED...";
}
}
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 (my_target == "") {
ticker = random(6);
if (_root.fshipslot[ticker] != "") {
my_target = _root.fshipslot[ticker];
}
}
if (my_target == "estarbase") {
my_target = "defiant";
}
if ((my_target == "defiant") and (_root.cloak == 1)) {
my_target = "";
}
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")) {
if (myenergy > 5) {
shootx = _x;
shooty = _y;
if (random(20) == 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);
if (cloak == 1) {
if (my_target == "defiant") {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
}
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 != "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);
}
if (((random(40) == 1) and (_root.ephaseraway == 0)) and (my_target == "defiant")) {
if ((Math.abs(defx - _x) < 150) and (Math.abs(defy - _y) < 150)) {
if (cloak == 1) {
soundbeep = new Sound(this);
soundbeep.attachSound("def-cloak");
soundbeep.start(0, 0);
cloak = 0;
}
_root.ephaseraway = 8;
_root.hitstrength = 4;
_root.hit();
Set("../eline:target", this);
Set("../eline:myx", defx);
Set("../eline:myy", defy);
Set("../eline:x", _x);
Set("../eline:y", _y);
soundbeep = new Sound(this);
soundbeep.attachSound("def-phas");
soundbeep.start(0, 0);
}
}
}
}
dx = getProperty("../defiant", _x);
dy = getProperty("../defiant", _y);
if (((Math.abs(dx - _x) < 200) and (Math.abs(dy - _y) < 200)) and (_root.cloak == 0)) {
my_target = "defiant";
}
i = 0;
while (i < 10) {
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++;
}
}
Symbol 451 MovieClip Frame 86 (76 B)
if (myenergy < 1) {
gotoAndPlay (87);
} else {
gotoAndPlay (85);
}
Symbol 451 MovieClip Frame 93 (218 B)
i = 0;
while (i < 10) {
if (_root.shipslot[i] == ("eship" add target)) {
_root.shipslot[i] = "";
}
i++;
}
target = target + 1;
removeMovieClip("../enemyblip" add target);
removeMovieClip("");
stop();
Symbol 454 Button (308 B)
on (release) {
if (keyinfo == undefined) {
keyinfo = "ARROWS: NAVIGATE\rSHIFT: SELECT SPECIAL\rCTRL: FIRE/USE SPECIAL\rINSERT: TOGGLE REPAIRS\rDELETE: REMOVE SELECTED SPECIAL\rHOME: HAIL ALL VESSELS\rEND: USE TRANSPORTER\rPG UP/DN: WARP SPEED\rENTER: TOGGLE SHIELDS";
} else {
keyinfo = undefined;
}
}
Symbol 459 MovieClip Frame 1 (164 B)
if (_root.torplaunchers == 2) {
gotoAndPlay (3);
}
if (_root.torplaunchers == 1) {
gotoAndPlay (1);
}
if (_root.torplaunchers == 3) {
gotoAndPlay (5);
}
Symbol 459 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 459 MovieClip Frame 3 (287 B)
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 459 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 459 MovieClip Frame 5 (330 B)
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 459 MovieClip Frame 6 (17 B)
gotoAndPlay (5);
Symbol 463 MovieClip Frame 1 (146 B)
if (_root.engines == 2) {
gotoAndPlay (3);
}
if (_root.engines == 1) {
gotoAndPlay (1);
}
if (_root.engines == 3) {
gotoAndPlay (5);
}
Symbol 463 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 463 MovieClip Frame 3 (253 B)
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 463 MovieClip Frame 4 (77 B)
if (_root.engines == 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 463 MovieClip Frame 5 (296 B)
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 463 MovieClip Frame 6 (17 B)
gotoAndPlay (5);
Symbol 467 MovieClip Frame 1 (203 B)
bar = getProperty("../hullbar", _xscale);
if (bar < 95) {
_root.hullrepair = 2;
gotoAndPlay (3);
}
if (bar >= 95) {
gotoAndPlay (1);
}
if (_root.hullrepair == 1) {
gotoAndPlay (5);
}
Symbol 467 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 467 MovieClip Frame 3 (179 B)
bar = getProperty("../hullbar", _xscale);
if (bar < 95) {
gotoAndPlay (3);
}
if (bar >= 95) {
gotoAndPlay (1);
}
if (_root.hullrepair == 1) {
gotoAndPlay (5);
}
Symbol 467 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 467 MovieClip Frame 5 (608 B)
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 , 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 467 MovieClip Frame 6 (17 B)
gotoAndPlay (5);
Symbol 471 MovieClip Frame 1 (143 B)
if (_root.phaser == 2) {
gotoAndPlay (3);
}
if (_root.phaser == 1) {
gotoAndPlay (1);
}
if (_root.phaser == 3) {
gotoAndPlay (5);
}
Symbol 471 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 471 MovieClip Frame 3 (248 B)
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 471 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 471 MovieClip Frame 5 (292 B)
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 471 MovieClip Frame 6 (17 B)
gotoAndPlay (5);
Symbol 475 MovieClip Frame 1 (146 B)
if (_root.sensors == 2) {
gotoAndPlay (3);
}
if (_root.sensors == 1) {
gotoAndPlay (1);
}
if (_root.sensors == 3) {
gotoAndPlay (5);
}
Symbol 475 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 475 MovieClip Frame 3 (285 B)
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 475 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 475 MovieClip Frame 5 (328 B)
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 475 MovieClip Frame 6 (17 B)
gotoAndPlay (5);
Symbol 479 MovieClip Frame 1 (71 B)
if (mycolor == 1) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 479 MovieClip Frame 2 (71 B)
if (mycolor == 1) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
Symbol 488 MovieClip Frame 1 (19 B)
gotoAndPlay(item);
Symbol 488 MovieClip Frame 2 (19 B)
gotoAndPlay(item);
Symbol 488 MovieClip Frame 3 (19 B)
gotoAndPlay(item);
Symbol 488 MovieClip Frame 4 (19 B)
gotoAndPlay(item);
Symbol 494 Button (126 B)
on (release) {
if (menu == 1) {
menu = 0;
gotoAndStop (11);
} else if (menu == 0) {
menu = 1;
gotoAndStop (12);
}
}
Symbol 505 Button (59 B)
on (release) {
_root.removeallships();
gotoAndPlay (3);
}