Untitled diff

Created Diff never expires
19 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
395 lines
31 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
408 lines
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<documentation>
<documentation>
<author name="Owen Lake" alias="Xenon_Slayer" contact="E-Mail: Owen@egosoft.com Skype: Owen Lake" />
<author name="Owen Lake" alias="Xenon_Slayer" contact="E-Mail: Owen@egosoft.com Skype: Owen Lake" />
<content reference="L2M119" name="Level 2 Trade Convoy Mission" description="Protect or Destroy a convoy"/>
<content reference="L2M119" name="Level 2 Trade Convoy Mission" description="Protect or Destroy a convoy"/>
<version number="0.3" date="28/05/2008" status="release"/>
<version number="0.3" date="28/05/2008" status="release"/>
</documentation>
</documentation>
<cues>
<cues>
<cue name="L2M119" library="1" check="cancel">
<cue name="L2M119" library="1" check="cancel">
<documentation>
<documentation>
<content reference="L2M119" name="Trade Convoy Mission" type="L2"/>
<content reference="L2M119" name="Trade Convoy Mission" type="L2"/>
<version date="28/05/2008" number="0.3" status="release"/>
<version date="28/05/2008" number="0.3" status="release"/>
<params>
<params>
<param name="WarMission" type="boolean" description="Is this a war mission?"/>
<param name="WarMission" type="boolean" description="Is this a war mission?"/>
<param name="WarRace" type="number" description="Race ID of the War Faction you are working for"/>
<param name="WarRace" type="number" description="Race ID of the War Faction you are working for"/>
</params>
</params>
<history>
<history>
<change date="29/01/2013" author="Owen Lake" description="Added cue to remove captured Escort ships from their group"/>
<change date="29/01/2013" author="Owen Lake" description="Added cue to remove captured Escort ships from their group"/>
<change date="09/10/2012" author="Dillpickle" description="Added clean up for escort ships."/>
<change date="09/10/2012" author="Dillpickle" description="Added clean up for escort ships."/>
<change date="29/11/2012" author="Dillpickle" description="Added fix for mission being offered by enemy race."/>
<change date="29/11/2012" author="Dillpickle" description="Added fix for mission being offered by enemy race."/>
<change date="12/05/2008" author="Owen Lake" description="Fixed Escorts, removed initial Pirates"/>
<change date="12/05/2008" author="Owen Lake" description="Fixed Escorts, removed initial Pirates"/>
<change date="06/02/2008" author="Owen Lake" description="Initial Version"/>
<change date="06/02/2008" author="Owen Lake" description="Initial Version"/>
</history>
</history>
</documentation>
</documentation>
<condition>
<condition>
<check_all>
<check_all>
<check_any>
<check_any>
<check_all>
<check_all>
<check_value value="{param.exists@WarMission}" exact="1"/>
<check_value value="{param.exists@WarMission}" exact="1"/>
<check_value value="{param@WarMission}" exact="1"/>
<check_value value="{param@WarMission}" exact="1"/>
</check_all>
</check_all>
<check_value value="{player.sector.warobjectid}" exact="0"/>
<check_value value="{player.sector.warobjectid}" exact="0"/>
</check_any>
</check_any>
<match_sector race="default|pirategroup|terran" sector="{player.sector}"/>
<match_sector race="default|pirategroup|terran" sector="{player.sector}"/>
<count_stations min="1" race="default|terran|goner">
<count_stations min="1" race="default|terran|goner">
<jumps exact="1"/>
<jumps exact="1"/>
</count_stations>
</count_stations>
</check_all>
</check_all>
</condition>
</condition>
<cues>
<cues>
<cue name="L2M119 Cleanup" delay="1s">
<cue name="L2M119 Cleanup" delay="1s">
<condition>
<condition>
<check_value value="{value@L2M119.Cleanup}" exact="1"/>
<check_value value="{value@L2M119.Cleanup}" exact="1"/>
</condition>
</condition>
<cues>
<cues>
<cue name="L2M119 Remove Escort Ships" delay="1s">
<cue name="L2M119 Remove Escort Ships" delay="1s">
<condition>
<condition>
<any_object_sector group="L2M119.Escorts" min="1">
<any_object_sector group="L2M119.Escorts" min="1">
<sector sector="{player.sector}"/>
<sector sector="{player.sector}"/>
</any_object_sector>
</any_object_sector>
</condition>
</condition>
<action>
<action>
<destroy_group group="L2M119.Escorts" warp="1"/>
<destroy_group group="L2M119.Escorts" warp="1"/>
</action>
</action>
</cue>
</cue>
<cue name="L2M119 Remove Ships" delay="1s">
<condition>
<any_object_sector group="L2M119.Ships" min="1">
<sector sector="{player.sector}"/>
</any_object_sector>
</condition>
<action>
<destroy_group group="L2M119.Ships" warp="1"/>
</action>
</cue>
<cue name="L2M119 Remove COM Ships" delay="1s">
<condition>
<any_object_sector group="L2M119.COM01Ships" min="1">
<sector sector="{player.sector}"/>
</any_object_sector>
</condition>
<action>
<destroy_group group="L2M119.COM01Ships" warp="1"/>
</action>
</cue>
<cue name="L2M119 Remove Cleanup Ships" delay="1s">
<condition>
<any_object_sector group="L2M119.CleanupShips" min="1">
<sector sector="{player.sector}"/>
</any_object_sector>
</condition>
<action>
<destroy_group group="L2M119.CleanupShips" warp="1"/>
</action>
</cue>
<cue name="L2M119 Wait For Ship Cleanup" delay="12s">
<cue name="L2M119 Wait For Ship Cleanup" delay="12s">
<condition>
<condition>
<check_value value="{group.object.count@L2M119.COM01Ships}+{group.object.count@L2M119.CleanupShips}+{group.object.count@L2M119.Escorts}" exact="0"/>
<check_value value="{group.object.count@L2M119.Ships}+{group.object.count@L2M119.COM01Ships}+{group.object.count@L2M119.CleanupShips}+{group.object.count@L2M119.Escorts}" exact="0"/>
</condition>
</condition>
<action>
<action>
<cancel_cue cue="L2M119"/>
<cancel_cue cue="L2M119"/>
</action>
</action>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M119 Setup">
<cue name="L2M119 Setup">
<condition>
<condition>
<cue_completed cue="L2M119"/>
<cue_completed cue="L2M119"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<do_choose>
<do_choose>
<do_when value="{value@SB Stopped War}" exact="1">
<do_when value="{value@SB Stopped War}" exact="1">
<set_value name="L2M119.WarRivalChance" exact="0" comment="The chance of Argon being the enemies in a Terran mission and vice-versa"/>
<set_value name="L2M119.WarRivalChance" exact="0" comment="The chance of Argon being the enemies in a Terran mission and vice-versa"/>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<set_value name="L2M119.WarRivalChance" exact="10" comment="The chance of Argon being the enemies in a Terran mission and vice-versa"/>
<set_value name="L2M119.WarRivalChance" exact="10" comment="The chance of Argon being the enemies in a Terran mission and vice-versa"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
<do_if value="{param.exists@WarMission}" exact="1">
<do_if value="{param.exists@WarMission}" exact="1">
<do_if value="{param@WarMission}" exact="1">
<do_if value="{param@WarMission}" exact="1">
<set_value name="L2M119.WarMission" exact="1"/>
<set_value name="L2M119.WarMission" exact="1"/>
<set_value name="L2M119.WarRace" exact="{param@WarRace}"/>
<set_value name="L2M119.WarRace" exact="{param@WarRace}"/>
<set_value name="L2M119.WarRivalChance" exact="40"/>
<set_value name="L2M119.WarRivalChance" exact="40"/>
</do_if>
</do_if>
</do_if>
</do_if>


<do_choose>
<do_choose>
<do_when value="{value@L2M119.WarRace}" exact="0" negate="1">
<do_when value="{value@L2M119.WarRace}" exact="0" negate="1">
<find_station name="L2M119.Destination Station" race="{value@L2M119.WarRace}">
<find_station name="L2M119.Destination Station" race="{value@L2M119.WarRace}">
<jumps exact="1"/>
<jumps exact="1"/>
</find_station>
</find_station>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<find_station name="L2M119.Destination Station" race="default|terran|goner" findobject="{player.ship}" neutral="1" silent="1">
<find_station name="L2M119.Destination Station" race="default|terran|goner" findobject="{player.ship}" neutral="1" silent="1">
<jumps exact="1"/>
<jumps exact="1"/>
</find_station>
</find_station>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
<set_sector name="L2M119.DestSector" value="{object.sector@L2M119.Destination Station}"/>
<set_sector name="L2M119.DestSector" value="{object.sector@L2M119.Destination Station}"/>


<set_sector name="L2M119.Start Sector" value="{player.sector}"/>
<set_sector name="L2M119.Start Sector" value="{player.sector}"/>
<do_if value="{object.exists@L2M119.Destination Station}" exact="0">
<do_if value="{object.exists@L2M119.Destination Station}" exact="0">
<cancel_cue cue="L2M119"/>
<cancel_cue cue="L2M119"/>
</do_if>
</do_if>
<set_value name="L2M119.Convoy Race" exact="{object.race@L2M119.Destination Station}"/>
<set_value name="L2M119.Convoy Race" exact="{object.race@L2M119.Destination Station}"/>
<do_if value="{value@L2M119.Convoy Race}" exact="{lookup.race@goner}">
<do_if value="{value@L2M119.Convoy Race}" exact="{lookup.race@goner}">
<set_value name="L2M119.Convoy Race" exact="{lookup.race@argon}"/>
<set_value name="L2M119.Convoy Race" exact="{lookup.race@argon}"/>
</do_if>
</do_if>
<set_value name="L2M119.Variation" exact="1"/>
<set_value name="L2M119.Variation" exact="1"/>
<set_value name="L2M119.PageID" exact="3319"/>
<set_value name="L2M119.PageID" exact="3319"/>
<do_choose>
<do_choose>
<do_when value="{lookup.race.mask.terrangroup@{value@L2M119.Convoy Race}}" exact="1">
<do_when value="{lookup.race.mask.terrangroup@{value@L2M119.Convoy Race}}" exact="1">
<do_any>
<do_any>
<set_value name="L2M119.EnemyRace" exact="{random.race@default}" chance="{value@L2M119.WarRivalChance}"/>
<set_value name="L2M119.EnemyRace" exact="{random.race@default}" chance="{value@L2M119.WarRivalChance}"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@pirate}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@pirate}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@xenon}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@xenon}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@yaki}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@yaki}" chance="10"/>
</do_any>
</do_any>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<do_any>
<do_any>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@terran}" chance="{value@L2M119.WarRivalChance}"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@terran}" chance="{value@L2M119.WarRivalChance}"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@pirate}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@pirate}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@xenon}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@xenon}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@yaki}" chance="10"/>
<set_value name="L2M119.EnemyRace" exact="{lookup.race@yaki}" chance="10"/>
</do_any>
</do_any>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
<set_value name="L2M119.EnemyMaker" exact="{value@L2M119.EnemyRace}"/>
<set_value name="L2M119.EnemyMaker" exact="{value@L2M119.EnemyRace}"/>


<set_value name="L2M119.Convoy Size" exact="1"/>
<set_value name="L2M119.Convoy Size" exact="1"/>
<set_value name="L2M119.CreateEscorts" min="0" max="4"/>
<set_value name="L2M119.CreateEscorts" min="0" max="4"/>
<set_value name="L2M119.TimeOut" min="{player.age}+700" max="{player.age}+800"/>
<set_value name="L2M119.TimeOut" min="{player.age}+700" max="{player.age}+800"/>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<cue name="L2M119 Delay">
<cue name="L2M119 Delay">
<condition>
<condition>
<cue_completed cue="L2M119 Setup"/>
<cue_completed cue="L2M119 Setup"/>
</condition>
</condition>
<cues>
<cues>
<cue name="L2M119 Create Objects">
<cue name="L2M119 Create Objects">
<action>
<action>
<do_all>
<do_all>
<find_station name="this.Station" race="{value@L2M119.Convoy Race}">
<find_station name="this.Station" race="{value@L2M119.Convoy Race}">
<sector sector="L2M119.Start Sector"/>
<sector sector="L2M119.Start Sector"/>
</find_station>
</find_station>
<do_if value="{object.exists@this.Station}" exact="0">
<do_if value="{object.exists@this.Station}" exact="0">
<find_station name="this.Station" race="default|terran|goner">
<find_station name="this.Station" race="default|terran|goner">
<sector sector="L2M119.Start Sector"/>
<sector sector="L2M119.Start Sector"/>
</find_station>
</find_station>
</do_if>
</do_if>
<do_choose>
<do_choose>
<do_when value="{object.exists@this.Station}" exact="1">
<do_when value="{object.exists@this.Station}" exact="1">
<set_value name="L2M119.ConvoyX" exact="{object.position.x.m@this.Station}"/>
<set_value name="L2M119.ConvoyX" exact="{object.position.x.m@this.Station}"/>
<set_value name="L2M119.ConvoyY" exact="{object.position.y.m@this.Station}"/>
<set_value name="L2M119.ConvoyY" exact="{object.position.y.m@this.Station}"/>
<set_value name="L2M119.ConvoyZ" exact="{object.position.z.m@this.Station}"/>
<set_value name="L2M119.ConvoyZ" exact="{object.position.z.m@this.Station}"/>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<set_value name="L2M119.ConvoyX" min="-20000" max="20000"/>
<set_value name="L2M119.ConvoyX" min="-20000" max="20000"/>
<set_value name="L2M119.ConvoyY" min="-5000" max="5000"/>
<set_value name="L2M119.ConvoyY" min="-5000" max="5000"/>
<set_value name="L2M119.ConvoyZ" min="-20000" max="20000"/>
<set_value name="L2M119.ConvoyZ" min="-20000" max="20000"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<cue name="L2M119 Create Convoy">
<cue name="L2M119 Create Convoy">
<condition>
<condition>
<cue_completed cue="L2M119 Create Objects"/>
<cue_completed cue="L2M119 Create Objects"/>
</condition>
</condition>
<cues>
<cues>
<cue ref="LUM03 Create Ships">
<cue ref="LUM03 Create Ships">
<params>
<params>
<param name="Cue" value="L2M119" comment="Where the created convoy will be localised."/>
<param name="Cue" value="L2M119" comment="Where the created convoy will be localised."/>
<param name="Cancel Cue" value="L2M119 Create Convoy" comment="The cue which is canceled at the end"/>
<param name="Cancel Cue" value="L2M119 Create Convoy" comment="The cue which is canceled at the end"/>
<param name="Group Name" value="Ships" comment="The name assigned to the created convoy."/>
<param name="Group Name" value="Ships" comment="The name assigned to the created convoy."/>
<param name="Ship Amount" value="{value@L2M119.Convoy Size}"/>
<param name="Ship Amount" value="{value@L2M119.Convoy Size}"/>
<param name="Ship Class" value="{lookup.class@ts}" comment="The class of ships created"/>
<param name="Ship Class" value="{lookup.class@ts}" comment="The class of ships created"/>
<param name="Maker Race" value="{value@L2M119.Convoy Race}" comment="The race of the ship maker"/>
<param name="Maker Race" value="{value@L2M119.Convoy Race}" comment="The race of the ship maker"/>
<param name="Race" value="{value@L2M119.Convoy Race}"/>
<param name="Race" value="{value@L2M119.Convoy Race}"/>
<param name="Ship Race Logic" value="0" comment="0/1 Turn racelogic on or off"/>
<param name="Ship Race Logic" value="0" comment="0/1 Turn racelogic on or off"/>
<param name="Ship Scanned" value="default" comment="0/1 Cargo is revealed."/>
<param name="Ship Scanned" value="default" comment="0/1 Cargo is revealed."/>
<param name="Ship Capturable" value="default" comment="0/1 The ships are capturable"/>
<param name="Ship Capturable" value="default" comment="0/1 The ships are capturable"/>
<param name="Ship Communicates" value="default" comment="0/1 The ships communicate"/>
<param name="Ship Communicates" value="default" comment="0/1 The ships communicate"/>
<param name="Ship Covered" value="default" comment="0/1 Pirate Ships are Covered"/>
<param name="Ship Covered" value="default" comment="0/1 Pirate Ships are Covered"/>
<param name="Ship Highlight" value="default" comment="0/1 The ships are Highlighted"/>
<param name="Ship Highlight" value="default" comment="0/1 The ships are Highlighted"/>
<param name="Ship JobText ID" value="10019"/>
<param name="Ship JobText ID" value="10019"/>
<param name="Override_Name" value="1" comment="0/1 Read the other Override_Name parameters"/>
<param name="Override_Name" value="1" comment="0/1 Read the other Override_Name parameters"/>
<param name="Override_Name_Race" value="1" comment="0/1 Display the race name"/>
<param name="Override_Name_Race" value="1" comment="0/1 Display the race name"/>
<param name="Override_Name_Job" value="1" comment="0/1 Display the job name"/>
<param name="Override_Name_Job" value="1" comment="0/1 Display the job name"/>
<param name="Override_Name_Type" value="0" comment="0/1 Display the shiptype name"/>
<param name="Override_Name_Type" value="0" comment="0/1 Display the shiptype name"/>
<param name="Override_Name_Variation" value="0" comment="0/1 Display the ship variation name"/>
<param name="Override_Name_Variation" value="0" comment="0/1 Display the ship variation name"/>
<param name="Override_Name_Corp" value="0" comment="(unused in game)0/1 Display the corp name"/>
<param name="Override_Name_Corp" value="0" comment="(unused in game)0/1 Display the corp name"/>
<param name="Distance" value="500m"/>
<param name="Distance" value="500m"/>
<param name="Sector" value="{player.sector}"/>
<param name="Sector" value="{player.sector}"/>
<param name="Ship X" value="{value@L2M119.ConvoyX}m"/>
<param name="Ship X" value="{value@L2M119.ConvoyX}m"/>
<param name="Ship Y" value="{value@L2M119.ConvoyY}m"/>
<param name="Ship Y" value="{value@L2M119.ConvoyY}m"/>
<param name="Ship Z" value="{value@L2M119.ConvoyZ}m"/>
<param name="Ship Z" value="{value@L2M119.ConvoyZ}m"/>
</params>
</params>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M119 Create Escorts">
<cue name="L2M119 Create Escorts">
<condition>
<condition>
<cue_cancelled cue="L2M119 Create Convoy"/>
<cue_cancelled cue="L2M119 Create Convoy"/>
</condition>
</condition>
<action>
<action>
<do_if value="{value@L2M119.CreateEscorts}" exact="0">
<do_if value="{value@L2M119.CreateEscorts}" exact="0">
<cancel_cue cue="L2M119 Create Escorts"/>
<cancel_cue cue="L2M119 Create Escorts"/>
</do_if>
</do_if>
</action>
</action>
<cues>
<cues>
<cue ref="LUM03 Create Ships">
<cue ref="LUM03 Create Ships">
<params>
<params>
<param name="Cue" value="L2M119" comment="Where the created convoy will be localised."/>
<param name="Cue" value="L2M119" comment="Where the created convoy will be localised."/>
<param name="Cancel Cue" value="L2M119 Create Escorts" comment="The cue which is canceled at the end"/>
<param name="Cancel Cue" value="L2M119 Create Escorts" comment="The cue which is canceled at the end"/>
<param name="Group Name" value="Escorts" comment="The name assigned to the created escorts."/>
<param name="Group Name" value="Escorts" comment="The name assigned to the created escorts."/>
<param name="Ship Amount" value="{value@L2M119.CreateEscorts}"/>
<param name="Ship Amount" value="{value@L2M119.CreateEscorts}"/>
<param name="Ship Class" value="{lookup.class@m4}" comment="The class of ships created"/>
<param name="Ship Class" value="{lookup.class@m4}" comment="The class of ships created"/>
<param name="Maker Race" value="default" comment="The race of the ship maker"/>
<param name="Maker Race" value="default" comment="The race of the ship maker"/>
<param name="Race" value="{value@L2M119.Convoy Race}"/>
<param name="Race" value="{value@L2M119.Convoy Race}"/>
<param name="Ship Race Logic" value="0" comment="0/1 Turn racelogic on or off"/>
<param name="Ship Race Logic" value="0" comment="0/1 Turn racelogic on or off"/>
<param name="Ship Scanned" value="default" comment="0/1 Cargo is revealed."/>
<param name="Ship Scanned" value="default" comment="0/1 Cargo is revealed."/>
<param name="Ship Capturable" value="default" comment="0/1 The ships are capturable"/>
<param name="Ship Capturable" value="default" comment="0/1 The ships are capturable"/>
<param name="Ship Communicates" value="default" comment="0/1 The ships communicate"/>
<param name="Ship Communicates" value="default" comment="0/1 The ships communicate"/>
<param name="Ship Covered" value="default" comment="0/1 Pirate Ships are Covered"/>
<param name="Ship Covered" value="default" comment="0/1 Pirate Ships are Covered"/>
<param name="Ship Highlight" value="default" comment="0/1 The ships are Highlighted"/>
<param name="Ship Highlight" value="default" comment="0/1 The ships are Highlighted"/>
<param name="Ship JobText ID" value="40004"/>
<param name="Ship JobText ID" value="40004"/>
<param name="Override_Name" value="1" comment="0/1 Read the other Override_Name parameters"/>
<param name="Override_Name" value="1" comment="0/1 Read the other Override_Name parameters"/>
<param name="Override_Name_Race" value="1" comment="0/1 Display the race name"/>
<param name="Override_Name_Race" value="1" comment="0/1 Display the race name"/>
<param name="Override_Name_Job" value="1" comment="0/1 Display the job name"/>
<param name="Override_Name_Job" value="1" comment="0/1 Display the job name"/>
<param name="Override_Name_Type" value="1" comment="0/1 Display the shiptype name"/>
<param name="Override_Name_Type" value="1" comment="0/1 Display the shiptype name"/>
<param name="Override_Name_Variation" value="1" comment="0/1 Display the ship variation name"/>
<param name="Override_Name_Variation" value="1" comment="0/1 Display the ship variation name"/>
<param name="Override_Name_Corp" value="0" comment="(unused in game)0/1 Display the corp name"/>
<param name="Override_Name_Corp" value="0" comment="(unused in game)0/1 Display the corp name"/>
<param name="Position Object" value="{group.object.random@L2M119.Ships}"/>
<param name="Position Object" value="{group.object.random@L2M119.Ships}"/>
<param name="Distance" value="500m"/>
<param name="Distance" value="500m"/>
<param name="Sector" value="{player.sector}"/>
<param name="Sector" value="{player.sector}"/>
</params>
</params>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M119 Start Ships">
<cue name="L2M119 Start Ships">
<condition>
<condition>
<cue_cancelled cue="L2M119 Create Escorts"/>
<cue_cancelled cue="L2M119 Create Escorts"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<remove_object object="L2M119 Create Objects.Station"/>
<remove_object object="L2M119 Create Objects.Station"/>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<cue name="L2M119 Ship Captured" instantiate="static">
<cue name="L2M119 Ship Captured" instantiate="static">
<condition>
<condition>
<any_object_captured group="L2M119.Ships"/>
<any_object_captured group="L2M119.Ships"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<do_if value="{value@L2M119.Accepted}" exact="0">
<do_if value="{value@L2M119.Accepted}" exact="0">
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
</do_if>
</do_if>
<remove_object object="L2M119.Ships {event.object}"/>
<remove_object object="L2M119.Ships {event.object}"/>
<set_value name="L2M119.Cleanup" exact="1"/>
<set_value name="L2M119.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M119 Escort Captured" instantiate="static">
<cue name="L2M119 Escort Captured" instantiate="static">
<condition>
<condition>
<any_object_captured group="L2M119.Escorts"/>
<any_object_captured group="L2M119.Escorts"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<do_if value="{value@L2M119.Accepted}" exact="0">
<do_if value="{value@L2M119.Accepted}" exact="0">
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
</do_if>
</do_if>
<remove_object object="L2M119.Escorts {event.object}"/>
<remove_object object="L2M119.Escorts {event.object}"/>
<set_value name="L2M119.Cleanup" exact="1"/>
<set_value name="L2M119.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M119 Remove Offer" version="2">
<cue name="L2M119 Remove Offer" version="2">
<condition>
<condition>
<check_any>
<check_any>
<any_object_attacked group="L2M119.Ships"/>
<any_object_attacked group="L2M119.Ships"/>
<any_object_attacked_by_player group="L2M119.Ships"/>
<any_object_attacked_by_player group="L2M119.Ships"/>
<any_object_changed_sector group="L2M119.Ships"/>
<any_object_changed_sector group="L2M119.Ships"/>
<any_object_attacked group="L2M119.Escorts"/>
<any_object_attacked group="L2M119.Escorts"/>
<any_object_attacked_by_player group="L2M119.Escorts"/>
<any_object_attacked_by_player group="L2M119.Escorts"/>
</check_any>
</check_any>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<set_value name="L2M119.Cleanup" exact="1"/>
<set_value name="L2M119.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M119 Player Enemy" delay="1s">
<cue name="L2M119 Player Enemy" delay="1s">
<condition>
<condition>
<check_any exact="{group.object.count@L2M119.Ships}" counter="count">
<check_any exact="{group.object.count@L2M119.Ships}" counter="count">
<object_relation object="{group.object.{counter@count}@L2M119.Ships}">
<object_relation object="{group.object.{counter@count}@L2M119.Ships}">
<relation relation="enemy"/>
<relation relation="enemy"/>
</object_relation>
</object_relation>
</check_any>
</check_any>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<cancel_cue cue="L2M119 Escort Ships Accepted"/>
<set_value name="L2M119.Cleanup" exact="1"/>
<set_value name="L2M119.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M119 Check Offer">
<cue name="L2M119 Check Offer">
<cues>
<cues>
<cue name="L2M119 Time Out" delay="30s">
<cue name="L2M119 Time Out" delay="30s">
<condition>
<condition>
<check_age min="{value@L2M119.TimeOut}"/>
<check_age min="{value@L2M119.TimeOut}"/>
</condition>
</condition>
<cues>
<cues>
<cue name="L2M119 Check Comms" delay="1s">
<cue name="L2M119 Check Comms" delay="1s">
<condition>
<condition>
<check_value value="{player.menu.dialog}" exact="0"/>
<check_value value="{player.menu.dialog}" exact="0"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<set_value name="L2M119.Cleanup" exact="1"/>
<set_value name="L2M119.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M119 Sector Out" instantiate="static">
<cue name="L2M119 Sector Out" instantiate="static">
<condition>
<condition>
<object_changed_sector/>
<object_changed_sector/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<set_value name="L2M119.SectorChanges" operation="add"/>
<set_value name="L2M119.SectorChanges" operation="add"/>
<do_if value="{value@L2M119.SectorChanges}" min="2">
<do_if value="{value@L2M119.SectorChanges}" min="2">
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<remove_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" discipline="XFXX"/>
<set_value name="L2M119.Cleanup" exact="1"/>
<set_value name="L2M119.Cleanup" exact="1"/>
</do_if>
</do_if>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M119 Convoy Offers" version="3">
<cue name="L2M119 Convoy Offers" version="3">
<action>
<action>
<do_all>
<do_all>
<do_all exact="{group.object.count@L2M119.Ships}" counter="ObjectCount">
<do_all exact="{group.object.count@L2M119.Ships}" counter="ObjectCount">
<set_object name="L2M119.COM01Ships {group.object.{counter@ObjectCount}@L2M119.Ships}" value="{group.object.{counter@ObjectCount}@L2M119.Ships}" group="L2M119.COM01Ships"/>
<set_object name="L2M119.COM01Ships {group.object.{counter@ObjectCount}@L2M119.Ships}" value="{group.object.{counter@ObjectCount}@L2M119.Ships}" group="L2M119.COM01Ships"/>
</do_all>
</do_all>
<set_group_leader group="L2M119.Ships" object="L2M119.Ships {group.slowest@L2M119.Ships}"/>
<set_group_leader group="L2M119.Ships" object="L2M119.Ships {group.slowest@L2M119.Ships}"/>
<set_group_leader group="L2M119.COM01Ships" object="L2M119.COM01Ships {group.leader@L2M119.Ships}"/>
<set_group_leader group="L2M119.COM01Ships" object="L2M119.COM01Ships {group.leader@L2M119.Ships}"/>
<set_group_command group="L2M119.Escorts" command="protect" commandobject="{group.leader@L2M119.Ships}"/>
<set_group_command group="L2M119.Escorts" command="protect" commandobject="{group.leader@L2M119.Ships}"/>
<set_group_command group="L2M119.Ships" command="follow" commandobject="{group.leader@L2M119.Ships}"/>
<set_group_command group="L2M119.Ships" command="follow" commandobject="{group.leader@L2M119.Ships}"/>
<set_command object="{group.leader@L2M119.Ships}" command="idle"/>
<set_command object="{group.leader@L2M119.Ships}" command="idle"/>
<do_all counter="Ship Count" exact="{group.object.count@L2M119.Ships}">
<do_all counter="Ship Count" exact="{group.object.count@L2M119.Ships}">
<do_choose>
<do_choose>
<do_when value="{group.object.{counter@Ship Count}@L2M119.Ships}" exact="{group.leader@L2M119.Ships}">
<do_when value="{group.object.{counter@Ship Count}@L2M119.Ships}" exact="{group.leader@L2M119.Ships}">
<create_actor name="L2M119.Actor {group.object.{counter@Ship Count}@L2M119.Ships}" object="{group.object.{counter@Ship Count}@L2M119.Ships}" race="{value@L2M119.Convoy Race}" voiceflags="32"/>
<create_actor name="L2M119.Actor {group.object.{counter@Ship Count}@L2M119.Ships}" object="{group.object.{counter@Ship Count}@L2M119.Ships}" race="{value@L2M119.Convoy Race}" voiceflags="32"/>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<create_actor name="L2M119.Actor {group.object.{counter@Ship Count}@L2M119.Ships}" object="{group.object.{counter@Ship Count}@L2M119.Ships}" race="{value@L2M119.Convoy Race}"/>
<create_actor name="L2M119.Actor {group.object.{counter@Ship Count}@L2M119.Ships}" object="{group.object.{counter@Ship Count}@L2M119.Ships}" race="{value@L2M119.Convoy Race}"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
<set_object name="L2M119.ActorObj {counter@Ship Count}" value="{actor@L2M119.Actor {group.object.{counter@Ship Count}@L2M119.Ships}}" group="L2M119.ActorObjects"/>
<set_object name="L2M119.ActorObj {counter@Ship Count}" value="{actor@L2M119.Actor {group.object.{counter@Ship Count}@L2M119.Ships}}" group="L2M119.ActorObjects"/>
</do_all>
</do_all>
<set_actor name="L2M119.OfferActor" value="{actor@L2M119.Actor {group.leader@L2M119.Ships}}"/>
<set_actor name="L2M119.OfferActor" value="{actor@L2M119.Actor {group.leader@L2M119.Ships}}"/>
<create_offer actor="L2M119.OfferActor" conversation="L2OfferEscort" cue="L2M119 Convoy Offers" discipline="XFXX"/>
<set_value name="L2M119.OfferRace" exact="{actor.race@L2M119.OfferActor}"/>
<set_value name="L2M119 Convoy Offers.Difficulty" min="{lookup.level@veryeasy}" max="{lookup.level@veryhard}"/>
</do_all>
</action>
<cues>
<cue name="L2M119 Escort Ships Briefing" version="2">
<condition>
<conversation_completed answer="briefing" actor="L2M119.OfferActor" conversation="L2OfferEscort"/>
</condition>
<action>
<set_value name="L2M119 Convoy Offers.Temp Step" exact="1"/>
</action>
<cues>
<cue ref="L0M19 B">
<params>
<param name="Cue" value="L2M119 Convoy Offers" comment="The cue where the briefing will be localised"/>