This is just a very simple variant of "The Waning Dark" designed to let the crew fight each of the enemy ships, one after the other. This was my first attempt at programming a mission.
<!-- mission_data is the big wrapper for all the parts of a mission -->
<mission_data version="1.31">
<!-- all the things that exist at the start of the mission -->
<start>
<create type ="station" x="70000" y="0" z="50000" name="DS187"/>
<create type ="station" x="30000" y="0" z="53000" name="DS38"/>
<create type ="player" x="10000" y="0" z="10000" name="Artemis"/>
<big_message title="Test" subtitle1="written by David Grounds"/>
<incoming_comms_text from="Admiral Grankov">
Hello, Captain. Your mission is to^
proceed to DS38 and deliver your supplies.^^
You should be aware of a possibility of Alien Vessels in the sector.^ Good luck, Artemis!
</incoming_comms_text>
<set_timer name="enemy_timer" seconds="20"/>
<set_timer name="game_timer" seconds="60"/>
</start>
<!-- add enemies to attack DS187 when you dock with DS38 -->
<event>
<if_docked station="DS38"/>
<if_variable name="attack1" comparator="!=" value="1"/>
<set_variable name="attack1" value="1"/>
<create type ="enemy" hulltype="10" x="70000" y="0" z="45000" angle="180" name="KR01" fleetnumber="1"/>
<incoming_comms_text from="DS187">
Artemis, we've got incoming ships. They don't respond to our hails. ^ ^
Help us, Artemis!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS38 when you destroy fleet 1 -->
<event>
<if_fleet_count fleetnumber="1" comparator="<=" value="0"/>
<if_variable name="attack1" comparator="=" value="1"/>
<if_variable name="attack2" comparator="!=" value="1"/>
<set_variable name="attack2" value="1"/>
<create type ="enemy" hulltype="11" x="30000" y="0" z="45000" angle="180" name="KR11" fleetnumber="2"/>
<incoming_comms_text from="DS38">
Artemis, we've got incoming Kralien ships, too. Please assist!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS187 when you destroy fleet 2 -->
<event>
<if_fleet_count fleetnumber="2" comparator="<=" value="0"/>
<if_variable name="attack2" comparator="=" value="1"/>
<if_variable name="attack3" comparator="!=" value="1"/>
<set_variable name="attack3" value="1"/>
<create type ="enemy" hulltype="12" x="70000" y="0" z="45000" angle="180" name="KR03" fleetnumber="3"/>
<incoming_comms_text from="DS187">
Artemis, we've got incoming ships. They don't respond to our hails. ^ ^
Help us, Artemis!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS38 when you destroy fleet 3 -->
<event>
<if_fleet_count fleetnumber="3" comparator="<=" value="0"/>
<if_variable name="attack3" comparator="=" value="1"/>
<if_variable name="attack4" comparator="!=" value="1"/>
<set_variable name="attack4" value="1"/>
<create type ="enemy" hulltype="13" x="30000" y="0" z="45000" angle="180" name="AR01" fleetnumber="4"/>
<incoming_comms_text from="DS38">
Artemis, we've got incoming Argonian ships, too. Please assist!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS187 when you destroy fleet 4 -->
<event>
<if_fleet_count fleetnumber="4" comparator="<=" value="0"/>
<if_variable name="attack4" comparator="=" value="1"/>
<if_variable name="attack5" comparator="!=" value="1"/>
<set_variable name="attack5" value="1"/>
<create type ="enemy" hulltype="14" x="70000" y="0" z="45000" angle="180" name="AR_BB" fleetnumber="5"/>
<incoming_comms_text from="DS187">
Artemis, we've got incoming ships. They don't respond to our hails. ^ ^
Help us, Artemis!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS38 when you destroy fleet 5 -->
<event>
<if_fleet_count fleetnumber="5" comparator="<=" value="0"/>
<if_variable name="attack5" comparator="=" value="1"/>
<if_variable name="attack6" comparator="!=" value="1"/>
<set_variable name="attack6" value="1"/>
<create type ="enemy" hulltype="15" x="30000" y="0" z="45000" angle="180" name="AR_DD" fleetnumber="6"/>
<incoming_comms_text from="DS38">
Artemis, we've got incoming Argonian ships, too. Please assist!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS187 when you destroy fleet 6 -->
<event>
<if_fleet_count fleetnumber="6" comparator="<=" value="0"/>
<if_variable name="attack6" comparator="=" value="1"/>
<if_variable name="attack7" comparator="!=" value="1"/>
<set_variable name="attack7" value="1"/>
<create type ="enemy" hulltype="16" x="70000" y="0" z="45000" angle="180" name="TO_CA" fleetnumber="7"/>
<incoming_comms_text from="DS187">
Artemis, we've got incoming ships. They don't respond to our hails. ^ ^
Help us, Artemis!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS38 when you destroy fleet 7 -->
<event>
<if_fleet_count fleetnumber="7" comparator="<=" value="0"/>
<if_variable name="attack7" comparator="=" value="1"/>
<if_variable name="attack8" comparator="!=" value="1"/>
<set_variable name="attack8" value="1"/>
<create type ="enemy" hulltype="17" x="30000" y="0" z="45000" angle="180" name="TO_BB" fleetnumber="8"/>
<incoming_comms_text from="DS38">
Artemis, we've got incoming Torgoth ships, too. Please assist!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS187 when you destroy fleet 8 -->
<event>
<if_fleet_count fleetnumber="8" comparator="<=" value="0"/>
<if_variable name="attack8" comparator="=" value="1"/>
<if_variable name="attack9" comparator="!=" value="1"/>
<set_variable name="attack9" value="1"/>
<create type ="enemy" hulltype="18" x="70000" y="0" z="45000" angle="180" name="TO_DD" fleetnumber="9"/>
<incoming_comms_text from="DS187">
Artemis, we've got incoming ships. They don't respond to our hails. ^ ^
Help us, Artemis!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS38 when you destroy fleet 9 -->
<event>
<if_fleet_count fleetnumber="9" comparator="<=" value="0"/>
<if_variable name="attack9" comparator="=" value="1"/>
<if_variable name="attack10" comparator="!=" value="1"/>
<set_variable name="attack10" value="1"/>
<create type ="enemy" hulltype="30" x="30000" y="0" z="45000" angle="180" name="SK_Defiler" fleetnumber="10"/>
<incoming_comms_text from="DS38">
Artemis, we've got incoming Skaraan ships, too. Please assist!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS187 when you destroy fleet 10 -->
<event>
<if_fleet_count fleetnumber="10" comparator="<=" value="0"/>
<if_variable name="attack10" comparator="=" value="1"/>
<if_variable name="attack11" comparator="!=" value="1"/>
<set_variable name="attack11" value="1"/>
<create type ="enemy" hulltype="31" x="70000" y="0" z="45000" angle="180" name="Enforcer" fleetnumber=11"/>
<incoming_comms_text from="DS187">
Artemis, we've got incoming ships. They don't respond to our hails. ^ ^
Help us, Artemis!
</incoming_comms_text>
</event>
<!-- add enemies to attack DS38 when you destroy fleet 11 -->
<event>
<if_fleet_count fleetnumber="11" comparator="<=" value="0"/>
<if_variable name="attack11" comparator="=" value="1"/>
<if_variable name="attack12" comparator="!=" value="1"/>
<set_variable name="attack12" value="1"/>
<create type ="enemy" hulltype="32" x="30000" y="0" z="45000" angle="180" name="Executor" fleetnumber="12"/>
<incoming_comms_text from="DS38">
Artemis, we've got incoming Skaraan ships, too. Please assist!
</incoming_comms_text>
</event>
<!-- end game when you destroy fleet 12 -->
<event>
<if_variable name="attack12" comparator="=" value="1"/>
<if_fleet_count fleetnumber="12" comparator="<=" value="0"/>
<if_variable name="endame" comparator="!=" value="1"/>
<set_variable name="endgame" value="1"/>
<end_mission/>
</event>
</mission_data>
[Last edited May 15, 2011 10:47:48]