Code: Select all
<cues>
<cue name="JL01enterSector">
<condition>
<check_all comment="IFF player enters a Xenon sector.">
<object_changed_sector comment="Player has entered a new sector."/>
<check_value value="{player.sector.race}" exact="{lookup.race@xenon}"/>
</check_all>
</condition>
<action>
<find_ship race="Xenon" group="JL01.victims">
<sector sector="{player.sector.race}"/>
</find_ship>
</action>
<cues>
<cue name="JL01deadXenon">
<condition>
<check_all comment="All initial Xenon have died and player is still in Xenon sector.">
<any_object_destroyed group="JL01.victims"/>
<check_value value="{player.sector.race}" exact="{lookup.race@xenon}"/>
<check_value value="{group.object.count@victims}" exact="0"/>
</check_all>
</condition>
<action>
<!-- first test: direct retaliation -->
<do_all count="({player.fightrank.rank}/3)">
<create_ship class="m6" race="Xenon" group="JL01.avengers">
<position object="{player.ship}" max="15km"/>
<sector sector="{player.sector}"/>
<equipment loadout="maximum"/>
<command command="killenemies"/>
</create_ship>
</do_all>
</action>
</cue>
</cues>
</cue>
</cues>