Code: Select all
<actions>
<find_zone name="$ship_zone" space="player.galaxy" multiple="false" required="true">
<match_any>
<match macro="macro.tzoneCluster_112_Sector002SHCon5_GateZone_macro" />
</match_any>
</find_zone>
<find_sector name="$Sector_SavageSpur_2" macro="macro.Cluster_112_Sector002_macro"/>
<find_station_by_true_owner name="$DefenceStations" faction="faction.xenon" planneddefencestation="true" plannedshipyard="false" plannedwharf="false" plannedequipmentdock="false" plannedtradestation="false" space="$Sector_SavageSpur_2" checkoperational="false" multiple="true"/>
<do_all exact="$DefenceStations.count" counter="$i" reverse="true">
<create_ship name="$ship" macro="ship_xen_xl_destroyer_01_a_macro" zone="$ship_zone" commandeerable="true">
<owner exact="faction.xenon" overridenpc="true"/>
<loadout ref="scenario_combat_xen_destroyer"/>
<pilot>
<select faction="faction.xenon" tags="tag.commander"/>
</pilot>
<people>
<fillpercent exact="100"/>
</people>
<safepos object="$DefenceStations.{$i}" max="10km"/>
</create_ship>
<create_order id="'ProtectStation'" object="$ship" immediate="true">
<param name="station" value="$DefenceStations.{$i}"/>
</create_order>
<create_ship name="$ship" macro="ship_xen_xl_destroyer_01_a_macro" zone="$ship_zone" commandeerable="true">
<owner exact="faction.xenon" overridenpc="true"/>
<loadout ref="scenario_combat_xen_destroyer"/>
<pilot>
<select faction="faction.xenon" tags="tag.commander"/>
</pilot>
<people>
<fillpercent exact="100"/>
</people>
<safepos object="$DefenceStations.{$i}" max="10km"/>
</create_ship>
<create_order id="'ProtectStation'" object="$ship" immediate="true">
<param name="station" value="$DefenceStations.{$i}"/>
</create_order>
<create_ship name="$ship" macro="ship_xen_xl_destroyer_01_a_macro" zone="$ship_zone" commandeerable="true">
<owner exact="faction.xenon" overridenpc="true"/>
<loadout ref="scenario_combat_xen_destroyer"/>
<pilot>
<select faction="faction.xenon" tags="tag.commander"/>
</pilot>
<people>
<fillpercent exact="100"/>
</people>
<safepos object="$DefenceStations.{$i}" max="10km"/>
</create_ship>
<create_order id="'ProtectStation'" object="$ship" immediate="true">
<param name="station" value="$DefenceStations.{$i}"/>
</create_order>
<create_ship name="$ship" macro="ship_xen_xl_destroyer_01_a_macro" zone="$ship_zone" commandeerable="true">
<owner exact="faction.xenon" overridenpc="true"/>
<loadout ref="scenario_combat_xen_destroyer"/>
<pilot>
<select faction="faction.xenon" tags="tag.commander"/>
</pilot>
<people>
<fillpercent exact="100"/>
</people>
<safepos object="$DefenceStations.{$i}" max="10km"/>
</create_ship>
<create_order id="'ProtectStation'" object="$ship" immediate="true">
<param name="station" value="$DefenceStations.{$i}"/>
</create_order>
<create_object name="$TargetSatellite" macro="[macro.eq_arg_satellite_02_macro].random" owner="faction.player" sector="$Sector_SavageSpur_2">
<safepos max="25km" object="$DefenceStations.{$i}"/>
</create_object>
</do_all>
<remove_value name="$TargetSatellite" />
<remove_value name="$DefenceStations" />
<remove_value name="$ship" />
<remove_value name="$ship_zone" />
<remove_value name="$Sector_SavageSpur_2" />
</actions>
There's a Terran task force shooting at one of the stations, but it is completely ignored even by the destroyers spawning right next to the Terrans. The K's even get hit and don't seem to be interested in it at all.
I'm certainly missing something - why are the destroyers not fullfilling the ProtectStation order and are even not shooting back at their enemies at all? Is there anything else I need to add to make them aggressive?
Edit: Seems like ships don't inherit the faction relations. Setting some relations helps to bring out the guns, i.e.:
Code: Select all
<create_ship name="$ship" macro="ship_xen_xl_destroyer_01_a_macro" zone="$ship_zone" commandeerable="true">
<owner exact="faction.xenon" overridenpc="true"/>
<loadout ref="scenario_combat_xen_destroyer"/>
<pilot>
<select faction="faction.xenon" tags="tag.commander"/>
</pilot>
<people>
<fillpercent exact="100"/>
</people>
<safepos object="$DefenceStations.{$i}" max="10km"/>
</create_ship>
<create_order id="'ProtectStation'" object="$ship" immediate="true">
<param name="station" value="$DefenceStations.{$i}"/>
</create_order>
<set_relation_boost object="$ship" faction="faction.terran" silent="true" decay="0.00000001" value="-0.7"/>
<set_relation_boost object="$ship" faction="faction.argon" silent="true" decay="0.00000001" value="-0.7"/>
<set_relation_boost object="$ship" faction="faction.antigone" silent="true" decay="0.00000001" value="-0.7"/>
<set_relation_boost object="$ship" faction="faction.pioneers" silent="true" decay="0.00000001" value="-0.7"/>