Last active
January 18, 2019 16:26
-
-
Save UniTrader/c60569e082cce821f04361f07a0fbaa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<mdscript name="CMR_supply" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://utnas/~unitrader/XRebirthxsds/md.xsd"> | |
<cues> | |
<cue name="Init"> | |
<actions> | |
<find_ship groupname="$PlayerCarrier" space="player.galaxy" multiple="true" shiptype="shiptype.carrier" owner="faction.player"> | |
<match_loadout wares="[ware.software_tpwar_carrierresupply]" /> | |
</find_ship> | |
</actions> | |
<cues> | |
<cue name="Update_Carrier_Group" instantiate="true"> | |
<conditions> | |
<check_any> | |
<event_player_build_finished/> | |
<event_object_changed_owner owner="faction.player"/> | |
</check_any> | |
</conditions> | |
<actions> | |
<do_if value="$PlayerCarrier.indexof.{event.param3.buildobject}"> | |
<!-- check if the event.param3.buildobject still has the carrier software and if not remove it from the group --> | |
</do_if> | |
<do_else> | |
<!-- check if the event.param3.buildobject is suitable to be added to the carrier group--> | |
</do_else> | |
</actions> | |
</cue> | |
<cue name="Check_Ship" instantiate="true"> | |
<conditions> | |
<event_object_docked_at group="$PlayerCarrier"/> | |
</conditions> | |
<actions> | |
<!-- check equipment of event.param (ship which just docked) and re-equip it from event.object (carrier) --> | |
</actions> | |
</cue> | |
<cue name="Convert_Ammo"> | |
<!-- put together with Check_Ship ?? --> | |
</cue> | |
</cues> | |
</cue> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment