Members | Sign In
All Forums > Mission Scripting
avatar

Shakedown Cruise

posted Apr 25, 2011 18:50:13 by Mike_Substelny
EDIT: The Shakedown Cruise mission script is available for download from my new Google Site. Click a link below to visit the homepage or the blurbs for Shakedown and the other missions I have in the pipeline.

Mike's Artemis Mission Scripts homepage.

Writeup blurbs for Mike's mission scripts under development.

EDIT: THE FULL MISSION SCRIPT APPEARS BELOW IN TWO PARTS

My friend Dylan and I are working on our first mission script: a Shakedown cruise. Its purpose is to let new crews become familiar with Artemis's performance, i.e. the energy used to travel at Warp 1 vs Warp 4, the damage done by beams with 1 point of power vs 8 points of power, etc. It will also help you to become familiar with the enemy ships.

We reached a stumbling point in the OGG audio files recorded using Audacity. Audacity plays all of them normally but Artemis does not. Artemis plays some back at normal speed while it plays others at half speed. Once we get this ironed out we will release this mission script for your enjoyment. We expect to have it done by Friday, April 29th.
[Last edited Jun 20, 2011 01:27:30]
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
page   1 2 next last
27 replies
avatar
MrSquid said Apr 25, 2011 22:57:18
Make sure the sample rate is 44100Hz, I think I also set the Sample Format to 16-Bit PCM, but I'm not sure if that matters.
avatar
Mike_Substelny said Apr 26, 2011 03:03:46
Thanks, MrSquid, but it turns out that the defective files were recorded in stereo. Artemis wants the incoming communications messages in mono. Audacity's default view makes the second track invisible, but as soon as I expanded it the problem was easy to see and solve.

Now onward to completing the mission script!
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Mike_Substelny said May 13, 2011 16:47:48
The Shakedown Cruise script is finished and ready to test tonight. It is about 30,000 characters long. Once it is working correctly I will paste the script into this discussion.

The mission will have numerous oog files. When I have a solution for hosting entire mission folders (with audio) I will post a link.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Eric said May 14, 2011 02:23:32
Really looking forward to this. Sounds like you've put a ton of work into it to (complementing well Thom's genius and work in creating the game in the first place).
avatar
Captain_Edge said May 26, 2011 07:57:33
This sounds like it'd be a lot of fun. Looking forward to seeing a link and trying this out!
Captain Edge
Skipper of the Brookway

"This is the captain. We have a little problem with our entry sequence, so we may experience some slight turbulence and then - explode."
avatar
Mike_Substelny said Jun 05, 2011 19:58:03
Sorry I haven't posted it yet but playtesting revealed some playability problems and a couple of bugs. We have solved the problems, eliminated the bugs, and updated the Shakedown Cruise to run in Artemis 1.46. The text-only version will be posted today.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Mike_Substelny said Jun 05, 2011 23:34:35
Below I will post the first published version of SHAKEDOWN. It lets your crew do a series of combat exercises. You can do them all in order or just pick the ones that you want. The exercises get progressively harder, though the Skaraans (as usual) can be a bit random.

This mission has been playtested by several crews on difficulty level 5. It has been tweaked for maximum challenge and enjoyability for your entire crew - - - and I highly recommend a complete crew of six. My collaborator Dylan and I would appreciate feedback on how it plays. Below is the text-only version. The audio-enhanced version is not yet finished.

Enjoy!
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Mike_Substelny said Jun 05, 2011 23:36:23
Apparently this forum has a size limit for posts, so I will break the mission into two posts. Just paste them together in your text editor and save them as MISS_Shakedown.XML in the folder called MISS_Shakedown.

Here is Part One.

<mission_data version="1.31">
<!-- ******************************************************************************************** -->
<start>
<!-- Create five space stations, four in a square and one in the center -->
<!-- The sector is 100000 x 100000 so the station at x=50000 z=50000 is in the center -->
<create type ="station" x="50000" y="0" z="50000" name="DS1"/>
<create type ="station" x="70000" y="0" z="30000" name="DS2"/>
<create type ="station" x="30000" y="0" z="30000" name="DS3"/>
<create type ="station" x="30000" y="0" z="70000" name="DS4"/>
<create type ="station" x="70000" y="0" z="70000" name="DS5"/>
<create type ="station" x="50000" y="0" z="60000" name="Dock Here to End"/>

<set_object_property name="DS1" property="canBuild" value="0"/>
<set_object_property name="DS2" property="canBuild" value="0"/>
<set_object_property name="DS3" property="canBuild" value="0"/>
<set_object_property name="DS4" property="canBuild" value="0"/>
<set_object_property name="DS5" property="canBuild" value="0"/>
<set_object_property name="Dock Here to End" property="canBuild" value="0"/>
<set_object_property name="DS4" property="missilestoresnuke" value="0"/>
<set_object_property name="DS4" property="missilestoresmine" value="0"/>
<set_object_property name="DS5" property="missilestoresnuke" value="0"/>
<set_object_property name="DS5" property="missilestoresmine" value="0"/>
<set_object_property name="DS1" property="missilestoresnuke" value="0"/>
<set_object_property name="DS1" property="missilestoresmine" value="0"/>
<set_object_property name="DS2" property="missilestoresnuke" value="0"/>
<set_object_property name="DS2" property="missilestoresmine" value="0"/>
<set_object_property name="DS3" property="missilestoresnuke" value="0"/>
<set_object_property name="DS3" property="missilestoresmine" value="0"/>
<!-- Create the Artemis just southeast of the center station -->
<create type ="player" x="50900" y="0" z="50900" angle="45" name="Artemis"/>
<set_object_property name="Artemis" property="countNuke" value="0"/>
<set_object_property name="Artemis" property="countMine" value="0"/>
<set_skybox_index index="0"/>
<!-- Display opening title -->
<big_message title="SHAKEDOWN" subtitle1="Training Mission for Artemis 1.46" subtitle2="written by Mike Substelny and Dylan Lathrum"/>
<incoming_comms_text from="CAL 9000">
Hello, Artemis. I am the Crew Assessment and Learning^
unit, C.A.L. 9000. You can call me CAL. For an exercise in basic ^
navigation and power allocation have Helm move toward space^
station DS1.^
For more advanced exercises proceed directly to another space station.^
-
</incoming_comms_text>
<log text="Starting\n\n"/>
<set_timer name="starring_timer" seconds="10"/>
<set_variable name="lesson" value="0"/>
</start>

<!-- End game when you dock -->
<event>
<if_variable name="terminate" comparator="LESS" value="1"/>
<if_docked name="Dock Here to End"/>
<set_variable name="terminate" value="1"/>
<end_mission/>
</event>

<!-- Approaching DS1 learn about docking -->
<event>
<if_variable name="lesson" comparator="LESS" value="1"/>
<if_inside_sphere name="Artemis" centerX="50000" centerY="0" centerZ="50000" radius ="200"/>
<if_variable name="dock1" comparator="!=" value="1"/>
<if_docked name="DS1"/>
<incoming_comms_text from="CAL 9000">
Docking with a station replenishes energy to 1000^
and loads weapons from the station into your onboard storage.^
To leave the base helm must apply speed to either warp or impulse drive.^
-^
This exercise is about power. Captain, order Engineering to cut power to^
all systems. Next put one power point into Tactical, Maneuvering, and Warp.^
Finally, order Weapons to show Long Range Scan, depart from DS1, and proceed^
to DS2 at Warp factor 1.^
-
</incoming_comms_text>
<set_variable name="dock1" value="1"/>
<set_variable name="lesson" value="1"/>
<set_skybox_index index="1"/>
<big_message title="Exercise 1" subtitle1="Ship's Power"/>
</event>

<!-- First Approach of DS1 produces a comms message -->
<event>
<if_inside_sphere name="Artemis" centerX="50000" centerY="0" centerZ="50000" radius ="1200"/>
<if_variable name="lesson" comparator="=" value="0"/>
<if_variable name="brief0" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
To dock move within 600 meters of the space station^
then click Request Dock.^
-
</incoming_comms_text>
<set_variable name="brief0" value="1"/>
</event>



<!-- If they didn’t dock at DS1 then approaching DS2 produces a comms message -->
<event>
<if_inside_sphere name="Artemis" centerX="70000" centerY="0" centerZ="30000" radius ="1200"/>
<if_variable name="lesson" comparator="=" value="1"/>
<if_variable name="brief0" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
To dock move within 600 meters of a space station^
then click Request Dock.^
-
</incoming_comms_text>
<set_variable name="brief0" value="1"/>
</event>

<!-- First Docking at DS2 produces a comms message -->
<event>
<if_docked name="DS2"/>
<if_inside_sphere name="Artemis" centerX="70000" centerY="0" centerZ="30000" radius ="200"/>
<if_variable name="lesson" comparator="=" value="1"/>
<if_variable name="dock2" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
The distance between DS1 and DS2 is 28,284 meters, about a quarter^
of the sector. Note the power used in your journey.^
-^
Order your Engineer to increase power to warp drive then make the^
return trip at warp 1.^
-
</incoming_comms_text>
<set_variable name="dock2" value="1"/>
</event>

<event>
<if_docked name="DS1"/>
<if_inside_sphere name="Artemis" centerX="50000" centerY="0" centerZ="50000" radius ="200"/>
<if_variable name="lesson" comparator="=" value="1"/>
<if_variable name="dock1" comparator="=" value="1"/>
<if_variable name="dock2" comparator="=" value="1"/>
<if_variable name="brief0" comparator="=" value="1"/>
<if_variable name="dock3" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Try the journey from DS1 to DS2 and back using^
different power levels and warp factors as often as you^
like. If Helm has a joystick, try the buttons for^
different warp factors.^
If you dock at DS2 you will fight the Kraliens.^
Dock at DS3 to fight the Argonians.^
Dock at DS4 to fight the Torgoths.^
Ans dock at DS5 to fight the Skaraans.^
The higher the station number the more challenging^
the exercises.^
-
</incoming_comms_text>
<set_variable name="dock3" value="1"/>
</event>

<!-- Lesson 2 starts if Artemis has run back and forth twice-->
<event>
<if_docked name="DS2"/>
<if_inside_sphere name="Artemis" centerX="70000" centerY="0" centerZ="30000" radius ="200"/>
<if_variable name="lesson" comparator="=" value="1"/>
<if_variable name="l2start" comparator="!=" value="1"/>
<if_variable name="dock3" comparator="=" value="1"/>
<set_variable name="lesson" value="2"/>
<set_variable name="l2start" value="2"/>
</event>

<event>
<if_docked name="DS2"/>
<if_inside_sphere name="Artemis" centerX="70000" centerY="0" centerZ="30000" radius ="200"/>
<if_variable name="lesson" comparator="!=" value="1"/>
<if_variable name="lesson" comparator="!=" value="2"/>
<if_variable name="l2start" comparator="!=" value="1"/>
<set_variable name="lesson" value="2"/>
<set_variable name="l2start" value="2"/>
</event>


<!-- Lesson 2 -->
<event>
<if_docked name="DS2"/>
<if_inside_sphere name="Artemis" centerX="70000" centerY="0" centerZ="30000" radius ="200"/>
<if_variable name="lesson" comparator="=" value="2"/>
<if_variable name="dock11" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Welcome to basic combat exercises.^
A KRALIEN CRUISER WILL ATTACK IN TWENTY SECONDS.^
Fight it using beam weapons only.^
Captain, order your Engineer to put full power to beams.^
Put one power point into tactical, shields, and maneuvering.^
Weapons should activate beams. To lock beams for^
automatic firing click on the target.^
Science should scan the target's shields to find its weakest^
beam frequency.^
Communications should sound red alert and monitor the^
enemy ship for damage reports.^
-
</incoming_comms_text>
<set_variable name="dock11" value="1"/>
<set_variable name="lesson" value="2"/>
<set_timer name="attack_timer_01" seconds="20"/>
<set_skybox_index index="2"/>
<big_message title="Exercise 2" subtitle1="The Kraleans"/>
</event>

<!-- First Kralien Cruiser attacks at DS2 -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_timer_finished name="attack_timer_01"/>
<if_variable name="attack01" comparator="!=" value="1"/>
<create type ="enemy" hulltype="10" x="70000" y="0" z="31000" angle="0" name="Ksim01" fleetnumber="1"/>
<set_variable name="attack01" value="1"/>
</event>


<!-- Destroying first Kralien Cruiser produces a comms message -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_fleet_count fleetnumber="1" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack01" comparator="=" value="1"/>
<if_variable name="debrief21" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Congratulations. You have destroyed a Kralien^
cruiser, the weakest ship fielded by our enemies.^
Captain, while you dock at DS2 for energy, take a^
moment to discuss maneuverability and beam effectiveness^
at those power levels.^
-
</incoming_comms_text>
<set_variable name="debrief21" value="1"/>
</event>

<!-- Docking at DS2 after first victory produced a comms message -->
<event>
<if_docked name="DS2"/>
<if_inside_sphere name="Artemis" centerX="70000" centerY="0" centerZ="30000" radius ="200"/>
<if_variable name="lesson" comparator="=" value="2"/>
<if_variable name="dock21" comparator="!=" value="1"/>
<if_variable name="debrief21" comparator="=" value="1"/>
<incoming_comms_text from="CAL 9000">
ANOTHER KRALIEN CRUISER WILL ATTACK^
IN 20 SECONDS.^
Decrease power to beam weapons while^
increasing maneuvering and shields.^
This time have Communications try to get^
the Kraliens to surrender.^
-
</incoming_comms_text>
<set_variable name="dock21" value="1"/>
<set_timer name="attack_timer_02" seconds="20"/>
</event>

<!-- Second Kralien Cruiser attacks at DS2 -->
<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_variable name="dock21" comparator="=" value="1"/>
<if_variable name="dock22" comparator="!=" value="1"/>
<if_timer_finished name="attack_timer_02"/>
<if_variable name="attack02" comparator="!=" value="1"/>
<create type ="enemy" hulltype="10" x="70000" y="0" z="29700" angle="180" name="Ksim02" fleetnumber="2"/>
<set_variable name="attack02" value="1"/>
<set_variable name="dock22" value="1"/>
</event>

<!-- Defeating second Kralien Cruiser produces a comms message -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_fleet_count fleetnumber="2" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack02" comparator="=" value="1"/>
<if_variable name="dock22" comparator="=" value="1"/>
<if_variable name="debrief22" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You make it look easy. Your next opponent^
will be a Kralien battleship.^
Fight it using both torpedoes and beams.^
The Kralien battleship will attack in 20 seconds.^
-
</incoming_comms_text>
<set_variable name="debrief22" value="1"/>
<set_timer name="attack_timer_03" seconds="20"/>
</event>


<!-- Kralien Battleship attacks at DS2 -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_timer_finished name="attack_timer_03"/>
<if_variable name="attack03" comparator="!=" value="1"/>
<create type ="enemy" hulltype="11" x="70600" y="0" z="29800" angle="105" name="Ksim03" fleetnumber="3"/>
<set_variable name="attack03" value="1"/>
</event>

<!-- Defeating Kralien Battleship produces a comms message -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_fleet_count fleetnumber="3" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack03" comparator="=" value="1"/>
<if_variable name="dock22" comparator="=" value="1"/>
<if_variable name="debrief23" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You need a harder challenge. Your next opponent^
will be THREE Kralien dreadnoughts, the strongest ships^
in the Kralien Empire.^
Fight them using both torpedoes and beams.^
Learn their maneuverability, speed, and firing arcs.^
They will attack in sixty seconds.^
-
</incoming_comms_text>
<set_variable name="debrief23" value="1"/>
<set_timer name="attack_timer_04" seconds="60"/>
</event>


<!-- Kralien Dreadnoughts attack at DS2 -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_timer_finished name="attack_timer_04"/>
<if_variable name="attack04" comparator="!=" value="1"/>
<create type ="enemy" hulltype="12" x="70600" y="0" z="30800" angle="45" name="Ksim04" fleetnumber="4"/>
<create type ="enemy" hulltype="12" x="70600" y="0" z="30700" angle="45" name="Ksim05" fleetnumber="4"/>
<create type ="enemy" hulltype="12" x="70500" y="0" z="30800" angle="45" name="Ksim06" fleetnumber="4"/>
<set_variable name="attack04" value="1"/>
</event>

<!-- Defeating Kralien Dreadnoughts produces a comms message -->

<event>
<if_variable name="lesson" comparator="=" value="2"/>
<if_fleet_count fleetnumber="4" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack04" comparator="=" value="1"/>
<if_variable name="debrief24" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Congratulations, Aretmis. You have practiced defeating the
Kraliens.^
The Argonians are tougher and more maneuverable than the^
Kraliens. To fight them dock with DS3.^
The Torgoths are even tougher and faster than Argonians.
To fight them dock with DS4.^
The Skaraans are mysterious and deadly, with extraordinary^
abilities. To fight them dock with DS5.^
-
</incoming_comms_text>
<set_variable name="debrief24" value="1"/>
</event>

<!-- Lesson 3 -->
<event>
<if_docked name="DS3"/>
<if_inside_sphere name="Artemis" centerX="30000" centerY="0" centerZ="30000" radius ="200"/>
<if_variable name="dock31" comparator="!=" value="1"/>
<set_object_property name="DS3" property="missilestoresnuke" value="0"/>
<set_object_property name="DS3" property="missilestoresmine" value="12"/>
<incoming_comms_text from="CAL 9000">
You have begun intermediate combat exercises.^
FOUR ARGONIAN CRUISERS WILL ATTACK IN TWENTY SECONDS.^
Get them to chase you and drop mines in their path.^
-
</incoming_comms_text>
<set_variable name="dock31" value="1"/>
<set_variable name="lesson" value="3"/>
<set_timer name="attack_timer_31" seconds="20"/><set_skybox_index index="1"/>
<big_message title="Exercise 3" subtitle1="The Argonians"/>
<set_skybox_index index="3"/>
</event>

<!-- Four Argonian Cruisers attack at DS3 -->

<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_timer_finished name="attack_timer_31"/>
<if_variable name="attack31" comparator="!=" value="1"/>

<create type ="enemy" hulltype="13" x="30100" y="0" z="29000" angle="180" name="Asim01" fleetnumber="4"/>
<create type ="enemy" hulltype="13" x="29900" y="0" z="29000" angle="180" name="Asim02" fleetnumber="4"/>
<create type ="enemy" hulltype="13" x="29700" y="0" z="29000" angle="180" name="Asim03" fleetnumber="4"/>
<create type ="enemy" hulltype="13" x="29500" y="0" z="29000" angle="180" name="Asim04" fleetnumber="4"/>
<set_variable name="attack31" value="1"/>
</event>

<!-- If DS3 exists reset the timer -->

<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_exists name="DS3"/>
<set_timer name="DS3_timer" seconds="30"/>
</event>

<!-- If DS3 timer runs out create a new DS3 -->

<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_timer_finished name="DS3_timer"/>
<create type ="station" x="30000" y="0" z="30000" name="DS3"/>
<set_object_property name="DS3" property="canBuild" value="1"/>
<incoming_comms_text from="CAL 9000">
I am disappointed, Artemis. You let DS3 be destroyed.^
I shall create another one so you can finish your^
exercises. Please be more careful with this one.^
Stations don't grow on asteroids, you know.^
-
</incoming_comms_text>
</event>

<!-- Destroying four Argonian Cruisers produces a comms message -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_fleet_count fleetnumber="4" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack31" comparator="=" value="1"/>
<if_variable name="debrief31" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Congratulations. You are now authorized to use nuclear^
weapons. Dock at DS3 to pick up a nuke. A nuke^
fires straight ahead, then homes on a target close to^
its path. Try not to blow up DS3.^
FOUR ARGONIAN BATTLESHIPS WILL ATTACK IN SIXTY SECONDS.^
-
</incoming_comms_text>
<set_object_property name="DS3" property="missilestoresnuke" value="1"/>
<set_variable name="debrief31" value="1"/>
<set_object_property name="DS3" property="canBuild" value="1"/>
<set_timer name="attack_timer_32" seconds="60"/>
</event>

<!-- Argonian battleships attack at DS3 -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_variable name="debrief31" comparator="=" value="1"/>
<if_timer_finished name="attack_timer_32"/>
<if_variable name="attack32" comparator="!=" value="1"/>
<create type ="enemy" hulltype="14" x="30050" y="0" z="31500" angle="0" name="Asim05" fleetnumber="5"/>
<create type ="enemy" hulltype="14" x="29950" y="0" z="31500" angle="0" name="Asim06" fleetnumber="5"/>
<create type ="enemy" hulltype="14" x="30100" y="0" z="31550" angle="0" name="Asim07" fleetnumber="5"/>
<create type ="enemy" hulltype="14" x="29900" y="0" z="31550" angle="0" name="Asim08" fleetnumber="5"/>
<set_variable name="attack32" value="1"/>
</event>

<!-- Defeating Argonian battleships produces a comms message -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_fleet_count fleetnumber="5" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack32" comparator="=" value="1"/>
<if_variable name="debrief32" comparator="!=" value="1"/>
<set_object_property name="DS3" property="missilestoresnuke" value="2"/>
<set_object_property name="DS3" property="missilestoresmine" value="4"/>
<incoming_comms_text from="CAL 9000">
IN SIXTY SECONDS FOUR ARGONIAN DREADNOUGHTS WILL ATTACK.^
I am providing two nukes and four mines at DS3.^
The station can build more if Communications requests it.^
Argonian dreadnoughts are tough and maneuverable, with long^
ranged weapons. Good luck!^
-
</incoming_comms_text>
<set_variable name="debrief32" value="1"/>
<set_timer name="attack_timer_33" seconds="60"/>
</event>

<!-- Argonian dreadnoughts attack at DS3 -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_variable name="debrief32" comparator="=" value="1"/>
<if_timer_finished name="attack_timer_33"/>
<if_variable name="attack33" comparator="!=" value="1"/>
<create type ="enemy" hulltype="15" x="29700" y="0" z="31500" angle="350" name="Asim09" fleetnumber="6"/>
<create type ="enemy" hulltype="15" x="29900" y="0" z="31600" angle="0" name="Asim10" fleetnumber="6"/>
<create type ="enemy" hulltype="15" x="30100" y="0" z="31600" angle="0" name="Asim11" fleetnumber="6"/>
<create type ="enemy" hulltype="15" x="30300" y="0" z="31500" angle="10" name="Asim12" fleetnumber="6"/>
<set_variable name="attack33" value="1"/>
</event>

<!-- Defeating Argonian Dreadnoughts produces a comms message -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_fleet_count fleetnumber="6" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack33" comparator="=" value="1"/>
<if_variable name="debrief33" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You are doing an excellent job, Artemis.^
For a bonus exercise, have your Science officer^
locate the nearest anomaly, then have Helm^
steer the ship directly into the anomaly.^
See what happens to your energy level.^
Otherwise proceed to DS4 for the next exercise.^
-
</incoming_comms_text>
<set_variable name="debrief33" value="1"/>
<create type ="nebulas" count="40" startX="20000" startY="0" startZ="20000" radius ="2000" startAngle="0" endAngle="359" randomRange="4000" randomSeed="2"/>
<create type="anomaly" x="20000" y="0" z="20000" name="Anomaly01"/>
</event>


<!-- If Artemis gets close to anomaly -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_inside_sphere name="Artemis" centerX="20000" centerY="0" centerZ="20000" radius ="3000"/>
<if_variable name="attackA34" comparator="!=" value="1"/>
<create type ="enemy" hulltype="15" x="18000" y="0" z="18000" angle="225" name="Asim13" fleetnumber="7"/>
<set_variable name="attackA34" value="1"/>
<incoming_comms_text from="CAL 9000">
Long Range scan cannot see into a nebula, but^
your Science officer should now be detecting one^
Argonian dreadnought ahead.^
-
</incoming_comms_text>
<set_variable name="attackA34" value="1"/>
</event>

<!-- If Artemis gets even closer to anomaly -->

<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_inside_sphere name="Artemis" centerX="20000" centerY="0" centerZ="20000" radius ="1000"/>
<if_variable name="attack34" comparator="!=" value="1"/>
<create type ="enemy" hulltype="15" x="18600" y="0" z="18600" angle="225" name="Asim14" fleetnumber="7"/>
<create type ="enemy" hulltype="15" x="19200" y="0" z="19200" angle="225" name="Asim15" fleetnumber="7"/>
<create type ="enemy" hulltype="14" x="18500" y="0" z="17500" angle="225" name="Asim16" fleetnumber="7"/>
<create type ="enemy" hulltype="14" x="19100" y="0" z="18100" angle="225" name="Asim17" fleetnumber="7"/>
<create type ="enemy" hulltype="14" x="19700" y="0" z="18600" angle="225" name="Asim18" fleetnumber="7"/>
<create type ="enemy" hulltype="14" x="17500" y="0" z="18500" angle="225" name="Asim19" fleetnumber="7"/>
<create type ="enemy" hulltype="14" x="18100" y="0" z="19100" angle="225" name="Asim20" fleetnumber="7"/>
<create type ="enemy" hulltype="14" x="18700" y="0" z="19700" angle="225" name="Asim21" fleetnumber="7"/>
<set_object_property name="DS3" property="missilestoresnuke" value="10"/>
<incoming_comms_text from="CAL 9000">
You enjoy fighting the Argonians so much that I am sending a^
whole Argonian battle fleet. I am also providing more nukes
at DS3. Have fun, Artemis.^
-
</incoming_comms_text>
<set_variable name="attack34" value="1"/>
</event>


<!-- Defeating Argonian battlefleet produces a comms message -->
<event>
<if_variable name="lesson" comparator="=" value="3"/>
<if_fleet_count fleetnumber="7" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack34" comparator="=" value="1"/>
<if_variable name="debrief34" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Congratulations, Aretmis. You have learned all about the^
Argonians.^
The Torgoths are even tougher and faster than Argonians.
To fight them dock at DS4.^
The Skaraans are mysterious and deadly, with extraordinary^
abilities. To fight them dock at DS5.^
-
</incoming_comms_text>
<set_variable name="debrief34" value="1"/>
</event>
[Last edited Jun 13, 2011 16:03:33]
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Mike_Substelny said Jun 05, 2011 23:40:20
And here is Part Two. Paste it in the same document as Part One and save them together as MISS_Shakedown.xml in a folder of exactly the same name.


<!-- Lesson 4 -->
<event>
<if_docked name="DS4"/>
<if_inside_sphere name="Artemis" centerX="30000" centerY="0" centerZ="70000" radius ="200"/>
<if_variable name="lesson" comparator="!=" value="4"/>
<if_variable name="dock41" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You have begun advanced combat exercises.^
FOUR TORGOTH CRUISERS WILL ATTACK IN SIXTY SECONDS.^
Deal with them as you see fit.^
-
</incoming_comms_text>
<set_object_property name="DS4" property="missilestoresnuke" value="12"/>
<set_object_property name="DS4" property="missilestoresmine" value="25"/>
<set_object_property name="DS4" property="missileStoresHoming" value="30"/>
<set_object_property name="DS4" property="canBuild" value="1"/>
<set_variable name="dock41" value="1"/>
<set_variable name="lesson" value="4"/>
<set_timer name="attack_timer_41" seconds="60"/>
<big_message title="Exercise 4" subtitle1="The Torgoths"/>
<set_skybox_index index="4"/>
</event>

<!-- Four Torgoth Cruisers attack at DS4 -->
<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_timer_finished name="attack_timer_41"/>
<if_variable name="attack41" comparator="!=" value="1"/>
<create type="anomaly" x="30000" y="0" z="58000" name="Anomaly02"/>
<create type="anomaly" x="35000" y="0" z="78000" name="Anomaly03"/>
<create type="anomaly" x="25000" y="0" z="78000" name="Anomaly04"/>
<create type ="enemy" hulltype="16" x="30000" y="0" z="69000" angle="180" name="Tsim22" fleetnumber="8"/>
<create type ="enemy" hulltype="16" x="31000" y="0" z="70000" angle="90" name="Tsim23" fleetnumber="8"/>
<create type ="enemy" hulltype="16" x="30000" y="0" z="71000" angle="0" name="Tsim24" fleetnumber="8"/>
<create type ="enemy" hulltype="16" x="29000" y="0" z="70000" angle="270" name="Tsim25" fleetnumber="8"/>
<set_variable name="attack41" value="1"/>
</event>

<!-- Destroying four Torgoth Cruisers produces a comms message -->
<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_fleet_count fleetnumber="8" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack41" comparator="=" value="1"/>
<if_variable name="debrief41" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Congratulations on defeating that Torgoth cruiser^
squadron. In sixty seconds you will face a squadron^
of Torgoth battleships.^
-
</incoming_comms_text>
<set_variable name="debrief41" value="1"/>
<set_timer name="attack_timer_42" seconds="60"/>
</event>


<!-- Torgoth battleships attack at DS4 -->
<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_timer_finished name="attack_timer_42"/>
<if_variable name="debrief41" comparator="=" value="1"/>
<if_variable name="attack42" comparator="!=" value="1"/>
<create type ="enemy" hulltype="17" x="30050" y="0" z="71000" angle="0" name="Tsim26" fleetnumber="9"/>
<create type ="enemy" hulltype="17" x="29950" y="0" z="71000" angle="0" name="Tsim27" fleetnumber="9"/>
<create type ="enemy" hulltype="17" x="30100" y="0" z="71050" angle="0" name="Tsim28" fleetnumber="9"/>
<create type ="enemy" hulltype="17" x="29900" y="0" z="71050" angle="0" name="Tsim29" fleetnumber="9"/>
<set_variable name="attack42" value="1"/>
</event>

<!-- Defeating Torgoth battleships produces a comms message and a convoy -->
<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_fleet_count fleetnumber="9" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack42" comparator="=" value="1"/>
<if_variable name="debrief42" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
A convoy is approaching DS4. In sixty seconds it will be^
ambushed by four full Torgoth battle squadrons.^
Defeat all Torgoths and get the transports safely to DS4.^
The convoy will accept orders from your Communications^
Officer.^
-
</incoming_comms_text>
<create type ="neutral" hulltype="5" x="35500" y="0" z="64500" name="Transport1" angle="135"/>
<create type ="neutral" hulltype="5" x="36000" y="0" z="64000" name="Transport2" angle="135"/>
<create type ="neutral" hulltype="5" x="36500" y="0" z="63500" name="Transport3" angle="135"/>
<create type ="neutral" hulltype="5" x="37000" y="0" z="63000" name="Transport4" angle="135"/>
<create type ="neutral" hulltype="6" x="37500" y="0" z="62500" name="Destroyer" angle="135"/>

<set_variable name="debrief42" value="1"/>
<set_timer name="attack_timer_43" seconds="60"/>
</event>

<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_timer_finished name="attack_timer_43"/>
<if_variable name="debrief42" comparator="=" value="1"/>
<if_variable name="attack43" comparator="!=" value="1"/>
<create type ="enemy" hulltype="18" x="33800" y="0" z="62500" angle="225" name="Tsim31" fleetnumber="10"/>
<create type ="enemy" hulltype="17" x="33800" y="0" z="62800" angle="225" name="Tsim33" fleetnumber="10"/>
<create type ="enemy" hulltype="17" x="34100" y="0" z="62500" angle="225" name="Tsim35" fleetnumber="10"/>
<create type ="enemy" hulltype="16" x="33800" y="0" z="63100" angle="225" name="Tsim37" fleetnumber="10"/>
<create type ="enemy" hulltype="16" x="34400" y="0" z="62500" angle="225" name="Tsim39" fleetnumber="10"/>

<create type ="enemy" hulltype="18" x="39300" y="0" z="63800" angle="45" name="Tsim41" fleetnumber="11"/>
<create type ="enemy" hulltype="17" x="39000" y="0" z="63800" angle="45" name="Tsim43" fleetnumber="11"/>
<create type ="enemy" hulltype="17" x="39300" y="0" z="63500" angle="45" name="Tsim45" fleetnumber="11"/>
<create type ="enemy" hulltype="16" x="38700" y="0" z="63800" angle="45" name="Tsim47" fleetnumber="11"/>
<create type ="enemy" hulltype="16" x="39300" y="0" z="63200" angle="45" name="Tsim49" fleetnumber="11"/>
<set_variable name="attack43" value="1"/>

<create type ="enemy" hulltype="18" x="35800" y="0" z="60500" angle="225" name="Tsim30" fleetnumber="20"/>
<create type ="enemy" hulltype="17" x="35600" y="0" z="60300" angle="225" name="Tsim32" fleetnumber="20"/>
<create type ="enemy" hulltype="17" x="35800" y="0" z="60800" angle="225" name="Tsim34" fleetnumber="20"/>
<!-- create type ="enemy" hulltype="17" x="36100" y="0" z="60500" angle="225" name="Tsim36" fleetnumber="20"/-->
<create type ="enemy" hulltype="16" x="35800" y="0" z="61100" angle="225" name="Tsim38" fleetnumber="20"/>
<create type ="enemy" hulltype="16" x="36400" y="0" z="60500" angle="225" name="Tsim40" fleetnumber="20"/>

<create type ="enemy" hulltype="18" x="38000" y="0" z="66000" angle="45" name="Tsim42" fleetnumber="21"/>
<create type ="enemy" hulltype="17" x="38000" y="0" z="65700" angle="45" name="Tsim44" targetName="Transport3" fleetnumber="21"/>
<create type ="enemy" hulltype="17" x="37700" y="0" z="66000" angle="45" name="Tsim46" targetName="Destroyer" fleetnumber="21"/>
<create type ="enemy" hulltype="16" x="38000" y="0" z="65400" angle="45" name="Tsim48" targetName="Destroyer" fleetnumber="21"/>
<create type ="enemy" hulltype="16" x="37400" y="0" z="66000" angle="45" name="Tsim50" targetName="Destroyer" fleetnumber="21"/>
</event>

<event>
<if_timer_finished name="starring_timer"/>
<if_variable name="starring" comparator="!=" value="1"/>
<big_message title="Recommended difficulty: three or higher" subtitle1="(five is good)"/>
<set_variable name="starring" value="1"/>
</event>

<!-- Defeating Torgoth battle squadrons produces a comms message -->
<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_fleet_count fleetnumber="10" comparator="LESS_EQUAL" value="0"/>
<if_fleet_count fleetnumber="11" comparator="LESS_EQUAL" value="0"/>
<if_fleet_count fleetnumber="20" comparator="LESS_EQUAL" value="0"/>
<if_fleet_count fleetnumber="21" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack43" comparator="=" value="1"/>
<if_variable name="debrief43" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Impressive. You defeated four Torgoth battle squadrons.^
You are ready to learn about the dreaded Skaraans.^
Begin elite combat exercises at DS5.^
-
</incoming_comms_text>
<set_variable name="debrief43" value="1"/>
</event>

<!-- If DS3 exists reset the timer -->

<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_exists name="DS4"/>
<set_timer name="DS4_timer" seconds="30"/>
</event>

<!-- If DS4 timer runs out create a new DS4 -->

<event>
<if_variable name="lesson" comparator="=" value="4"/>
<if_timer_finished name="DS4_timer"/>
<create type ="station" x="30000" y="0" z="70000" canBuild="1" name="DS4"/>
<set_object_property name="DS4" property="missilestoresnuke" value="12"/>
<set_object_property name="DS4" property="missilestoresmine" value="25"/>
<set_object_property name="DS4" property="missileStoresHoming" value="30"/>
<set_object_property name="DS4" property="canBuild" value="1"/>
<incoming_comms_text from="CAL 9000">
I am disappointed, Artemis. You let DS4 be destroyed.^
I shall give you another DS4, but you must learn^
to take better care of your space stations.^
-
</incoming_comms_text>
</event>


<!-- Lesson 5 -->
<event>
<if_docked name="DS5"/>
<if_variable name="dock51" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You have begun elite combat exersises.^
A SKARAAN DEFILER WILL ATTACK IN TWENTY SECONDS.^
That ship has jump drive and stealth. Good luck.^
-
</incoming_comms_text>
<set_variable name="dock51" value="1"/>
<set_variable name="lesson" value="5"/>
<set_object_property name="DS5" property="missilestoresnuke" value="6"/>
<set_object_property name="DS5" property="missilestoresmine" value="20"/>
<set_timer name="attack_timer_51" seconds="20"/>
<big_message title="Exercise 5" subtitle1="The Skaraans"/>
<set_skybox_index index="5"/>
<set_object_property name="DS4" property="canBuild" value="1"/>
</event>


<!-- Skaraan Defiler attacks at DS5 -->

<event>
<if_variable name="lesson" comparator="=" value="5"/>
<if_timer_finished name="attack_timer_51"/>
<if_variable name="attack51" comparator="!=" value="1"/>

<create type ="enemy" hulltype="30" x="70000" y="0" z="69000" angle="180" name="Ssim50" fleetnumber="12"/>
<set_object_property name="Ssim50" property="eliteAIType" value="2"/>
<set_object_property name="Ssim50" property="eliteAbilityBits" value="68"/>
<set_variable name="attack51" value="1"/>
</event>


<!-- Destroying Skaraan Defiler produces a comms message -->

<event>
<if_variable name="lesson" comparator="=" value="5"/>
<if_fleet_count fleetnumber="12" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack51" comparator="=" value="1"/>
<if_variable name="debrief51" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You have defeated the Skaraan Defiler.^
Skaraans prefer to operate independently.^
Skaraan captains like to modify their ships top have^
different combat abilities.^
In twenty seconds you will face a Skaraan Enforcer^
with High Energy Turning and Warp Drive.^
-
</incoming_comms_text>
<set_variable name="debrief51" value="1"/>
<set_timer name="attack_timer_52" seconds="20"/>
</event>


<!-- Skaraan Enforcer attacks at DS5 -->

<event>
<if_variable name="lesson" comparator="=" value="5"/>
<if_timer_finished name="attack_timer_52"/>
<if_variable name="attack52" comparator="!=" value="1"/>
<create type ="enemy" hulltype="31" x="70000" y="0" z="72000" angle="0" name="Ssim51" fleetnumber="13"/>
<set_object_property name="Ssim51" property="eliteAIType" value="0"/>
<set_object_property name="Ssim51" property="eliteAbilityBits" value="48"/>
<set_variable name="attack52" value="1"/>
</event>

<!-- Destroying Skaraan Enforcer produces a comms message -->

<event>
<if_variable name="lesson" comparator="=" value="5"/>
<if_fleet_count fleetnumber="13" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack52" comparator="=" value="1"/>
<if_variable name="debrief52" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
You have defeated the Skaraan Enforcer. Good work.^
Skaraans sometimes accompany another enemy’s fleet.^
In sixty seconds you will face THREE of the most powerful ship^
class we know, the Skaraan Executor, along with a Kralien^
battle squadron. One has a cloaking device and warp drive,^
the others have abilities unknown to you.^
-
</incoming_comms_text>
<set_variable name="debrief52" value="1"/>
<set_timer name="attack_timer_53" seconds="20"/>
<create type ="nebulas" count="30" startX="90000" startY="00" startZ="60000" endX ="75000" endY="00" endZ="80000" randomRange="7000" randomSeed="3"/>
<create type="anomaly" x="75000" y="0" z="78000" name="Anomaly05"/>
<create type="anomaly" x="76000" y="0" z="62000" name="Anomaly06"/>
<create type="anomaly" x="79000" y="0" z="72000" name="Anomaly07"/>
<create type ="mines" count="20" startX="75000" startY="0" startZ="75600" endX="72000" endY="0" endZ="90000"/>
<create type ="mines" count="20" startX="75000" startY="0" startZ="65400" endX="72000" endY="0" endZ="50000"/>

</event>

<!-- Skaraan Executor and Kralien fleet approach DS5 while other Skaraans lurk nearby -->

<event>
<if_variable name="lesson" comparator="=" value="5"/>
<if_timer_finished name="attack_timer_53"/>
<if_variable name="attack53" comparator="!=" value="1"/>

<create type ="enemy" hulltype="32" x="90000" y="0" z="70000" angle="90" name="Ssim52" fleetnumber="14"/>
<create type ="enemy" hulltype="32" x="63000" y="0" z="72000" angle="275" name="Ssim59" fleetnumber="16"/>
<create type ="enemy" hulltype="32" x="62000" y="0" z="69000" angle="265" name="Ssim60" fleetnumber="17"/>
<set_object_property name="Ssim52" property="eliteAIType" value="1"/>
<set_object_property name="Ssim52" property="eliteAbilityBits" value="40"/>
<set_object_property name="Ssim59" property="eliteAIType" value="2"/>
<set_object_property name="Ssim59" property="eliteAbilityBits" value="125"/>
<set_object_property name="Ssim60" property="eliteAIType" value="2"/>
<set_object_property name="Ssim60" property="eliteAbilityBits" value="113"/>
<create type ="enemy" hulltype="12" x="88000" y="0" z="69500" angle="90" name="Ksim53" fleetnumber="15"/>
<create type ="enemy" hulltype="12" x="88000" y="0" z="70500" angle="90" name="Ksim54" fleetnumber="15"/>
<create type ="enemy" hulltype="11" x="87500" y="0" z="69000" angle="90" name="Ksim55" fleetnumber="15"/>
<create type ="enemy" hulltype="11" x="87500" y="0" z="71000" angle="90" name="Ksim56" fleetnumber="15"/>
<create type ="enemy" hulltype="10" x="87000" y="0" z="68500" angle="90" name="Ksim57" fleetnumber="15"/>
<create type ="enemy" hulltype="10" x="87000" y="0" z="71500" angle="90" name="Ksim58" fleetnumber="15"/>
<set_variable name="attack53" value="1"/>
</event>

<!-- Destroying Skaraan Executors and Kraleans produces a comms message -->


<event>
<if_variable name="lesson" comparator="=" value="5"/>
<if_fleet_count fleetnumber="14" comparator="LESS_EQUAL" value="0"/>
<if_fleet_count fleetnumber="15" comparator="LESS_EQUAL" value="0"/>
<if_fleet_count fleetnumber="16" comparator="LESS_EQUAL" value="0"/>
<if_variable name="attack53" comparator="=" value="1"/>
<if_variable name="debrief53" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Congratulations, you have completed elite combat training.^
You are ready to defend the human race against its most^
dangerous enemies. I predict long and successful careers^
for all of you. Good luck.^
-^
Class dismissed. I suggest that you throw yourselves what^
humans call a graduation party.^
-
</incoming_comms_text>
<set_variable name="debrief53" value="1"/>
</event>

<!-- Transports docking -->

<event>
<if_exists name="Transport1"/>
<if_distance name1="Transport1" name2="DS4" comparator="LESS_EQUAL" value="500"/>
<if_variable name="lesson" comparator="=" value="4"/>
<incoming_comms_text from="Transport1">
We made it safely to DS4.^
Thanks for your protection, Artemis.^
-
</incoming_comms_text>
<destroy name="Transport1"/>
</event>


<event>
<if_exists name="Transport2"/>
<if_distance name1="Transport2" name2="DS4" comparator="LESS_EQUAL" value="500"/>
<if_variable name="lesson" comparator="=" value="4"/>
<incoming_comms_text from="Transport2">
Thank you, Artemis. We have docked at DS4.^
We wish you luck!^
-
</incoming_comms_text>
<destroy name="Transport2"/>
</event>


<event>
<if_exists name="Transport3"/>
<if_distance name1="Transport3" name2="DS4" comparator="LESS_EQUAL" value="500"/>
<if_variable name="lesson" comparator="=" value="4"/>
<incoming_comms_text from="Transport3">
It was a rough voyage, but you got us through, Artemis!^
We have arrived safe and sound at space station DS4.^
Thanks for everything.^
-
</incoming_comms_text>
<destroy name="Transport3"/>
</event>

<event>
<if_exists name="Transport4"/>
<if_distance name1="Transport4" name2="DS4" comparator="LESS_EQUAL" value="500"/>
<if_variable name="lesson" comparator="=" value="4"/>
<incoming_comms_text from="Transport4">
It got dicey there, Artemis, but you pulled us through!^
Now docking at space station DS4.^
Thanks for your protection.^
-
</incoming_comms_text>
<destroy name="Transport4"/>
</event>
<!-- If Destroyer is taking fire send a mayday -->

<event>
<if_exists name="Destroyer"/>
<if_object_property name="Destroyer" property="shieldStateFront" comparator="LESS_EQUAL" value="50"/>
<if_variable name="Mayday4" comparator="!=" value="1"/>
<incoming_comms_text from="Destroyer">
Shields collapsing! Please help us, Artemis!^
-
</incoming_comms_text>
<set_variable name="Mayday4" value="1"/>
</event>

<event>
<if_exists name="Destroyer"/>
<if_object_property name="Destroyer" property="shieldStateBack" comparator="LESS_EQUAL" value="50"/>
<if_variable name="Mayday4" comparator="!=" value="1"/>
<incoming_comms_text from="Destroyer">
Our shields are failing. We could use some help, Artemis!^
-
</incoming_comms_text>
<set_variable name="Mayday4" value="1"/>
</event>

<!-- First time Artemis shields reach zero send a lesson message -->

<event>
<if_object_property name="Artemis" property="hullDamageFront" comparator="&gt;" value="0"/>
<if_variable name="Hull_Damage" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Enemy fire that penetrates your shields can compromise your^
ship's hull. If your forward plus rear hull combined reaches^
less than 100 your ship will be destroyed.^
-^
Other systems damaged by shield penetration can be repaired^
by the Engineer's Damage Control Parties. Hull damage cannot^
be repaired.^
-
</incoming_comms_text>
<set_variable name="Hull_Damage" value="1"/>
</event>

<event>
<if_object_property name="Artemis" property="hullDamageRear" comparator="&gt;" value="0"/>
<if_variable name="Hull_Damage" comparator="!=" value="1"/>
<incoming_comms_text from="CAL 9000">
Enemy fire that penetrates your shields can damage your^
ship's hull. If your forward plus rear hull combined reaches^
less than 100 your ship will be destroyed.^
-^
Other systems damaged by shield penetration can be repaired^
by the Engineer's Damage Control Parties. Hull damage cannot^
be repaired.^
-
</incoming_comms_text>
<set_variable name="Hull_Damage" value="1"/>
</event>
<!-- ******************************************************************************************** -->
</mission_data>
[Last edited Jun 06, 2011 14:46:49]
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Mike_Substelny said Jun 08, 2011 00:15:50
bump
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Vorus said Jun 08, 2011 23:08:59
Haven't played it yet, but it sure looks cool. You've obviously put a lot of time into it, and it looks like it would be fun to play.

One question: the end segments about hull damage, what does "comparator="&gt;"" mean? (I'm assuming it's equivalent to ">") Is that just a mistake, or is that a legal statement? Furthermore, are hullDamageFront and hullDamageRear cumulative instead of reductive? I assumed that it would count downward from 100 to 0 for hull percentage, but your code makes me assume that it counts up from 0 to 100 for damage dealt, am I understanding it right?
[Last edited Jun 08, 2011 23:08:58]
-----------
Khomerex nal Khesterex

The unofficial Artemis Wiki, your best source for Artemis Information
avatar
Mike_Substelny said Jun 09, 2011 13:37:47
Vorus, I'm using XMLPad Pro to code the XML and it does some limited error detection. Artemis actually accepts comparators that XML Pad Pro calls errors. Frankly I recommend settling on one set of comparators and sticking with them.

The variables hullDamageRear and hullDamageFront seem to be working as I intended in this script. I suggest that you play the mission script and observe when Comms receives that message.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Vorus said Jun 09, 2011 23:19:00
Frankly I recommend settling on one set of comparators and sticking with them.

Yeah, definitely. I'm used to C, PERL, and a little PHP, so I pretty much always use the <,>,=,!= characters.

Oh I'm sure you're right about the hull thing, I was just surprised that it worked that way. I'm definitely planning on running through it this weekend, it looks really cool.
-----------
Khomerex nal Khesterex

The unofficial Artemis Wiki, your best source for Artemis Information
avatar
Mike_Substelny said Jun 13, 2011 14:22:01
So Vorus, did you get to play the Shakedown over the weekend? Do you have any comments?
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Vorus said Jun 13, 2011 23:01:14
No . . . Finishing up our mod took longer than I expected, and I only had a limited amount of time to spend on the computer. My plan now is to do it on Wednesday.
-----------
Khomerex nal Khesterex

The unofficial Artemis Wiki, your best source for Artemis Information
Login below to reply: