XRWS           _7   ’  ^¥ext_01.cat ext_01.dat aiscripts/missionary.run.xml 20407 1512807699 5bb5fd5c56bc730e3d4bb7437bdef977
md/missionary.xml 3822 1474914641 dcaa06ae556a230b000ade6efa680560
<?xml version="1.0" encoding="utf-8"?>
<aiscript name="missionary.run" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="aiscripts.xsd">
<params>
</params>
<interrupts>
	<handler ref="TargetInvalidHandler"/>
	<handler ref="AttackHandler"/>
	<handler ref="ScannedHandler"/>

	<handler>
		<conditions>
        <check_any>
          <event_object_signalled object="this.ship" param="'dock at'" />
          <event_object_signalled object="this.ship" param="'take me to'" />
          <event_object_signalled object="this.ship" param="'refuel'" />
          <event_object_signalled object="this.ship" param="'start mining'" />
          <event_object_signalled object="this.ship" param="'attack object'" />
          <event_object_signalled object="this.ship" param="'attack enemies'" />
          <event_object_signalled object="this.ship" param="'hold position'" />
          <event_object_signalled object="this.ship" param="'withdraw battle'" />
        </check_any>
		</conditions>
		<actions>
			<abort_called_scripts resume="start"/>
		</actions>
	</handler>

	<handler>
		<conditions>
			<event_object_signalled object="this.ship" param="'fly to pos'"/>
		</conditions>
		<actions>
			<set_value name="this.$missionary_home" exact="event.param2"/>
			<abort_called_scripts resume="start"/>
		</actions>
	</handler>

	<handler>
		<conditions>
			<event_object_signalled object="this.ship" param="'fly to me'"/>
		</conditions>
		<actions>
			<set_value name="this.$missionary_home" exact="player.primaryship.zone"/>
			<abort_called_scripts resume="start"/>
		</actions>
	</handler>
</interrupts>
<init>
	<set_value name="this.$missionary_time" exact="player.age"/>
</init>
<attention min="unknown">
<actions>
	<!-- START ******************************************************************************** -->
	<label name="start"/>
	<set_value name="this.$missionary_time" exact="player.age"/>
	<set_value name="this.$missionary_active" exact="1"/>

	<do_if value="not this.$missionary_experience?">
		<set_value name="this.$missionary_experience" exact="1"/>
	</do_if>

	<do_if value="not this.$missionary_level?">
		<set_value name="this.$missionary_level" exact="1"/>
	</do_if>

	<do_if value="not this.$missionary_home?">
		<set_value name="this.$missionary_home" exact="this.ship.zone"/>
	</do_if>

	<!-- SEARCH ******************************************************************************* -->
	<label name="search"/>
	<set_value name="this.$missionary_time" exact="player.age"/>
	<set_value name="this.$missionary_target" exact="null"/>
	<set_value name="this.$missionary_target_pilot" exact="null"/>
	<set_value name="this.$missionary_target_distance" exact="-1"/>
	<set_value name="this.$missionary_counter" exact="1"/>

	<do_if value="this.$missionary_home? and this.$missionary_home != this.ship.zone">
		<resume label="home"/>			
	</do_if>

	<do_if value="not this.$missionary_commander?">
		<set_value name="this.$missionary_commander" exact="this.ship"/>
	</do_if>

	<do_if value="not this.$missionary_commanderentity?">
		<set_value name="this.$missionary_commanderentity" exact="this"/>
	</do_if>

	<set_command command="command.patrol"/>
	<set_command_action commandaction="commandaction.calculating"/>

	<!-- SEARCH_LOOP ************************************************************************** -->
	<label name="search_loop"/>
	<set_value name="this.$missionary_time" exact="player.age"/>

	<wait min="5s" max="10s"/>

	<do_if value="not this.$missionary_active?">
		<resume label="stop"/>
	</do_if>

	<set_value name="$target" exact="null"/>
	<set_value name="$distance" exact="-1"/>

	<create_list name="$ships"/>
	<find_ship name="$ships" class="class.ship_m" space="this.ship.zone" multiple="true">
		<match_relation faction="faction.player" comparison="not" relation="enemy"/>
		<match owner="faction.player" negate="true"/>
		<match owner="null" negate="true"/>
	</find_ship>
	<do_all exact="$ships.count" counter="$si">
		<set_value name="$ship" exact="$ships.{$si}"/>
		<do_if value="(not $ship.iswreck) and ($ship.isoperational) and (not $ship.docklink) and (not $ship.dockslot) and ($ship.pilot.exists) and ($ship != this.ship)">
			<do_if value="$ship.pilot.$missionary_skip?">
				<do_if value="player.age gt $ship.pilot.$missionary_skip">
					<remove_value name="$ship.pilot.$missionary_skip"/>
				</do_if>
			</do_if>
			<do_else>
				<set_value name="$dist" exact="this.ship.distanceto.{$ship}"/>			
				<do_if value="($distance lt 0) or ($dist lt $distance)">
					<set_value name="$target" exact="$ship"/>
					<set_value name="$distance" exact="$dist"/>
				</do_if>
			</do_else>
		</do_if>
	</do_all>

	<do_if value="$distance ge 0">
		<set_value name="this.$missionary_target" exact="$target"/>
		<set_value name="this.$missionary_target_pilot" exact="$target.pilot"/>
		<set_value name="this.$missionary_target_distance" exact="$distance"/>
		<set_value name="this.$missionary_time" exact="player.age"/>
		<set_command_action commandaction="commandaction.flying"/>
		<resume label="approach_loop"/>
	</do_if>

	<set_value name="$target" exact="null"/>
	<set_value name="$distance" exact="-1"/>

	<find_ship name="$ships" class="class.ship_s" space="this.ship.zone" multiple="true">
		<match_relation faction="faction.player" comparison="not" relation="enemy"/>
		<match owner="faction.player" negate="true"/>
		<match owner="null" negate="true"/>
	</find_ship>
	<do_all exact="$ships.count" counter="$si">
		<set_value name="$ship" exact="$ships.{$si}"/>
		<do_if value="(not $ship.iswreck) and ($ship.isoperational) and (not $ship.docklink) and (not $ship.dockslot) and ($ship.pilot.exists) and ($ship != this.ship)">
			<do_if value="$ship.pilot.$missionary_skip?">
				<do_if value="player.age gt $ship.pilot.$missionary_skip">
					<remove_value name="$ship.pilot.$missionary_skip"/>
				</do_if>
			</do_if>
			<do_else>
				<set_value name="$dist" exact="this.ship.distanceto.{$ship}"/>			
				<do_if value="($distance lt 0) or ($dist lt $distance)">
					<set_value name="$target" exact="$ship"/>
					<set_value name="$distance" exact="$dist"/>
				</do_if>
			</do_else>
		</do_if>
	</do_all>

	<do_if value="$distance ge 0">
		<set_value name="this.$missionary_target" exact="$target"/>
		<set_value name="this.$missionary_target_pilot" exact="$target.pilot"/>
		<set_value name="this.$missionary_target_distance" exact="$distance"/>
		<set_value name="this.$missionary_time" exact="player.age"/>
		<set_command_action commandaction="commandaction.flying"/>
		<resume label="approach_loop"/>
	</do_if>

	<resume label="search_loop"/>

	<!-- APPROACH_LOOP ************************************************************************ -->
	<label name="approach_loop"/>

	<do_if value="not this.$missionary_active?">
		<resume label="stop"/>
	</do_if>

	<set_value name="$target" exact="this.$missionary_target"/>

	<do_if value="(not $target.exists) or ($target.docklink) or ($target.dockslot) or ($target.zone.isclass.highway) or ($target.zone != this.ship.zone)"> 
		<resume label="search"/> 
	</do_if>

	<set_value name="$distance" exact="this.ship.distanceto.{$target}"/>

	<do_if value="player.age gt (this.$missionary_time + 120)">
		<do_if value="$distance gt (this.$missionary_target_distance / 2)">
			<set_value name="$target.pilot.$missionary_skip" exact="player.age + 3600"/>
			<resume label="search"/>
		</do_if>
		<do_else>
			<set_value name="this.$missionary_target_distance" exact="$distance"/>
			<set_value name="this.$missionary_time" exact="player.age"/>	
		</do_else>
	</do_if>

	<set_value name="$limit" exact="this.ship.size + $target.size"/>

	<do_if value="this.$missionary_counter gt 1">
		<set_value name="$limit" exact="$limit + 500"/>	
	</do_if>

	<do_if value="$distance gt $limit">
		<set_command command="command.patrol"/>
		<set_command_action commandaction="commandaction.flyingto" param="$target"/>

		<get_safe_pos object="$target" zone="$target.zone" radius="this.ship.size/2" allowyaxis="true" result="$pos" ignored="this.ship"/>
		<set_value name="$destination" exact="$pos"/>
		<move_to object="this.ship" destination="$target.zone" usehighways="false" forceposition="false" finishonapproach="true" commandaction="false">
			<position value="$destination" max="this.ship.size + $target.size"/>
			<interrupt_after_time time="15s"/>
		</move_to>

		<resume label="approach_loop"/>
	</do_if>

	<stop_moving object="this.ship"/>

	<set_command command="command.patrol"/>
	<set_command_action commandaction="commandaction.flying"/>

	<set_value name="this.$missionary_time" exact="player.age"/>	
	<set_value name="this.$missionary_target_distance" exact="$distance"/>

	<wait min="4s" max="5s"/>

	<set_value name="this.$missionary_counter" exact="this.$missionary_counter + 1"/>

	<set_value name="$random" min="1" max="10"/>

	<do_if value="this.$missionary_experience gt 1000">
		<do_if value="this.$missionary_level != 6">
			<set_value name="this.$missionary_level" exact="6"/>
			<write_to_logbook category="general" text="'Missionary %1 is level 6 now.'.[this.name]"/>
		</do_if>
	</do_if>
	<do_elseif value="this.$missionary_experience gt 500">
		<do_if value="this.$missionary_level != 5">
			<set_value name="this.$missionary_level" exact="5"/>
			<write_to_logbook category="general" text="'Missionary %1 is level 5 now.'.[this.name]"/>
		</do_if>
	</do_elseif>
	<do_elseif value="this.$missionary_experience gt 250">
		<do_if value="this.$missionary_level != 4">
			<set_value name="this.$missionary_level" exact="4"/>
			<write_to_logbook category="general" text="'Missionary %1 is level 4 now.'.[this.name]"/>
		</do_if>
	</do_elseif>
	<do_elseif value="this.$missionary_experience gt 100">
		<do_if value="this.$missionary_level != 3">
			<set_value name="this.$missionary_level" exact="3"/>
			<write_to_logbook category="general" text="'Missionary %1 is level 3 now.'.[this.name]"/>
		</do_if>
	</do_elseif>
	<do_elseif value="this.$missionary_experience gt 30">
		<do_if value="this.$missionary_level != 2">
			<set_value name="this.$missionary_level" exact="2"/>
			<write_to_logbook category="general" text="'Missionary %1 is level 2 now.'.[this.name]"/>
		</do_if>
	</do_elseif>
	<do_else>
		<do_if value="this.$missionary_level != 1">
			<set_value name="this.$missionary_level" exact="1"/>
			<write_to_logbook category="general" text="'Missionary %1 is level 1 now.'.[this.name]"/>
		</do_if>
	</do_else>

	<set_value name="$scale" exact="(6 - this.$missionary_level) + 3"/>
	<set_value name="$relation" exact="$target.pilot.relationto.{faction.player}"/>

	<do_if value="(this.$missionary_counter ge $scale * 5)">
		<do_if value="($random lt 3) and (this.$missionary_level gt 3) and ($relation ge 0.1)">
			<!-- 1..2 convert pilot with ship  -->
			
			<do_if value="this.$missionary_commander?">
				<write_to_logbook category="general" text="'Missionary %1 has convinced %2 to join your faction.'.[this.name, $target.pilot.name]"/>
				<write_to_logbook category="general" text="'%1 will be working for %2.'.[$target.pilot.name, this.$missionary_commanderentity.name]"/>

				<set_value name="$subordinate" exact="$target"/>
				<set_owner object="$subordinate" faction="faction.player"/>
				<set_owner object="$subordinate.pilot" faction="faction.player"/>
				<set_value name="$Object" exact="this.$missionary_commander" />
				<set_value name="$Manager" exact="this.$missionary_commanderentity" />
				<set_object_commander object="$subordinate" commander="$Object" type="$Manager.type" />
				<share_actor_account actor="$subordinate.pilot" otherobject="$Manager" transferto="$Manager" />
				<include_actions ref="md.AssignToCommander.Start_Default_Script"/>

				<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 10"/>

				<set_value name="$subordinates" exact="$target.subordinates"/>
				<do_all exact="$subordinates.count" counter="$i">
					<set_value name="$subordinate" exact="$subordinates.{$i}"/>
					<set_owner object="$subordinate" faction="faction.player"/>
					<set_owner object="$subordinate.pilot" faction="faction.player"/>
					<set_value name="$Object" exact="this.$missionary_commander" />
					<set_value name="$Manager" exact="this.$missionary_commanderentity" />
					<set_object_commander object="$subordinate" commander="$Object" type="$Manager.type" />
					<share_actor_account actor="$subordinate.pilot" otherobject="$Manager" transferto="$Manager" />
					<include_actions ref="md.AssignToCommander.Start_Default_Script"/>

					<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 5"/>
				</do_all>
			</do_if>
		</do_if>
		<do_elseif value="($random lt 5) and ($relation lt 0.99)">
		<!-- 1..4 gain loot -->
			<do_any>
				<set_value name="$reward" exact="ware.inv_chippeddiamonds" weight="9" />
				<set_value name="$reward" exact="ware.inv_goldnuggets" weight="9" />
				<set_value name="$reward" exact="ware.inv_lifesupportsystems" weight="9" />
				<set_value name="$reward" exact="ware.inv_rarejumpdrivecomponents" weight="9" />
				<set_value name="$reward" exact="ware.inv_rareterranhightechgoods" weight="9" />
				<set_value name="$reward" exact="ware.inv_roughgemstones" weight="9" />
				<set_value name="$reward" exact="ware.inv_stasischambers" weight="9" />
				<set_value name="$reward" exact="ware.inv_terranhightechgoods" weight="9" />
				<set_value name="$reward" exact="ware.inv_unidentifiedartifacts" weight="8" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_1" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_2" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_3" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_4" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_5" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_6" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_7" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_8" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_9" weight="2" />
				<set_value name="$reward" exact="ware.inv_rareenginecomponents_10" weight="2" />
			</do_any>
			<write_to_logbook category="general" text="'Missionary %1 has received a gift (%2) from %3'.[this.name, $reward, $target.pilot.name]"/>
			<add_inventory entity="player.entity" ware="$reward" exact="1"/>
			<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 3"/>
			<add_faction_relation faction="faction.player" otherfaction="$target.owner" value="0.01" />
			<set_value name="$target.pilot.$missionary_skip" exact="player.age + 1000"/>
		</do_elseif>
		<do_elseif value="($random lt 8) and ($relation lt 0.95)">
		<!-- 5..7 gain major reputation  -->
			<write_to_logbook category="general" text="'Missionary %1 has gained major reputation with %2'.[this.name, $target.pilot.owner]"/>
			<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 5"/>
			<add_faction_relation faction="faction.player" otherfaction="$target.owner" value="0.05" />
			<set_value name="$target.pilot.$missionary_skip" exact="player.age + 800"/>
		</do_elseif>
		<do_elseif value="($random lt 10) and ($relation gt 0.02)">
		<!-- 8..9 minor reputation loss -->
			<write_to_logbook category="general" text="'Missionary %1 has lost minor reputation with %2'.[this.name, $target.pilot.owner]"/>
			<add_faction_relation faction="faction.player" otherfaction="$target.owner" value="-0.01" />
			<set_value name="$target.pilot.$missionary_skip" exact="player.age + 400"/>
		</do_elseif>
		<do_elseif value="($random eq 10) and ($relation gt 0.06)">
		<!-- 10 major reputation loss -->
			<write_to_logbook category="general" text="'Missionary %1 has lost major reputation with %2'.[this.name, $target.pilot.owner]"/>
			<add_faction_relation faction="faction.player" otherfaction="$target.owner" value="-0.05" />
			<set_value name="$target.pilot.$missionary_skip" exact="player.age + 2000"/>
		</do_elseif>
		<do_else>
		<!-- fallback case -->
			<set_value name="$credits" min="20000Cr" max="50000Cr * ($relation + 1)"/>
			<reward_player money="$credits"/>
			<write_to_logbook category="general" text="'Missionary %1 has received a generous %2 credits donation from %3'.[this.name, $credits/1Cr, $target.pilot.name]"/>
			<set_value name="$target.pilot.$missionary_skip" exact="player.age + 1600"/>
			<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 2"/>
		</do_else>

		<resume label="search"/>
	</do_if>

	<do_elseif value="this.$missionary_counter == $scale * 4 and $random lt 8">
		<set_value name="$credits" min="10000Cr" max="30000Cr * ($relation + 1)"/>
		<reward_player money="$credits"/>
		<write_to_logbook category="general" text="'Missionary %1 has received a generous %2 credits donation from %3'.[this.name, $credits/1Cr, $target.pilot.name]"/>
		<set_value name="$target.pilot.$missionary_skip" exact="player.age + 1600"/>
		<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 2"/>
		<resume label="search"/>
	</do_elseif>

	<do_elseif value="this.$missionary_counter == $scale * 3 and $random lt 6">
		<set_value name="$credits" min="5000Cr" max="15000Cr * ($relation + 1)"/>
		<reward_player money="$credits"/>
		<write_to_logbook category="general" text="'Missionary %1 has received a moderate %2 credits donation from %3'.[this.name, $credits/1Cr, $target.pilot.name]"/>
		<set_value name="$target.pilot.$missionary_skip" exact="player.age + 800"/>
		<set_value name="this.$missionary_experience" exact="this.$missionary_experience + 1"/>
		<resume label="search"/>
	</do_elseif>
	
	<do_elseif value="this.$missionary_counter == $scale * 2 and $random lt 4">
		<set_value name="$credits" min="1000Cr" max="5000Cr * ($relation + 1)"/>
		<reward_player money="$credits"/>
		<write_to_logbook category="general" text="'Missionary %1 has received a %2 credits donation from %3'.[this.name, $credits/1Cr, $target.pilot.name]"/>
		<set_value name="$target.pilot.$missionary_skip" exact="player.age + 400"/>
		<resume label="search"/>
	</do_elseif>

	<resume label="approach_loop"/>

	<!-- HOME ********************************************************************************* -->
	<label name="home" />

	<set_command command="command.movetozone" param="this.$missionary_home"/>
	<set_command_action commandaction="commandaction.flying"/>

	<write_to_logbook category="general" text="'Missionary %1 is flying to %2'.[this.name, this.$missionary_home.knownname]"/>

	<get_safe_pos result="$pos" zone="this.$missionary_home" radius="this.ship.size" min="1km" max="35km"/>
	<set_value name="$destination" exact="$pos"/>
	<move_to object="this.ship" destination="this.$missionary_home" usehighways="true" forceposition="false" finishonapproach="true" commandaction="false">
		<position value="$destination" min="5km"/>
	</move_to>

	<write_to_logbook category="general" text="'Missionary %1 has arrived to %2'.[this.name, this.$missionary_home.knownname]"/>
	<wait min="4s" max="5s"/>

	<resume label="start"/>

	<!-- STOP ********************************************************************************* -->
	<label name="stop" />
	<set_command command="command.wait"/>
	<set_command_action commandaction="commandaction.standingby"/>
	<remove_value name="this.$missionary_active"/>
	<remove_value name="this.$missionary_target"/>
	<remove_value name="this.$missionary_target_pilot"/>
	<remove_value name="this.$missionary_target_distance"/>
	<remove_value name="this.$missionary_counter"/>
	<remove_value name="this.$missionary_time"/>
	<remove_value name="this.$missionary_home"/>
	<write_to_logbook category="general" text="'Missionary %1 has stopped its duties'.[this.name]"/>
</actions>
</attention>
</aiscript>
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="Missionary" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
<cues>
<cue name="MissionaryLoop" instantiate="true" checkinterval="10s" namespace="this">
	<actions>
		<set_value name="$licensePrice" exact="150000Cr"/>
		<create_list name="$ships"/>
		<find_ship name="$ships" class="[class.ship_s, class.ship_m]" owner="faction.player" multiple="true"/>
		<do_all exact="$ships.count" counter="$si">
			<set_value name="$ship" exact="$ships.{$si}"/>

			<do_if value="$ship != player.primaryship"> 
				<substitute_text text="$check" source="$ship.name">
					<replace string="'[M]'" with="''"/>
				</substitute_text>

				<!-- does the ship name contain the [M] tag? -->
				<do_if value="$check != $ship.name"> 
					<!-- does the ship pilot have a running script? -->
					<do_if value="not $ship.pilot.$missionary_active?">
						<!-- missionary starts without escorts and it must run without commander supervisor -->
						<do_if value="$ship.subordinates.count == 0 and not $ship.commander">
							<!-- does the pilot have any missionary license? we can tell this by checking for experience here -->
							<do_if value="not $ship.pilot.$missionary_experience?">
								<do_if value="player.money gt $licensePrice">
									<reward_player money="-$licensePrice"/>
									<write_to_logbook category="general" text="'Missionary %1 received training and license for %2.'.[$ship.pilot.name, $licensePrice/1Cr]"/>
									<start_script object="$ship.pilot" name="'missionary.run'"/>
								</do_if>
							</do_if>
							<do_else>
								<!-- it's a missionary pilot with a stopped script, let's just start script - experience is not reset by it -->
								<write_to_logbook category="general" text="'Missionary %1 is resuming job'.[$ship.pilot.name]"/>
								<start_script object="$ship.pilot" name="'missionary.run'"/>
							</do_else>
						</do_if>
					</do_if>
					<!-- the script has been activated. has it kick its wdog? -->
					<do_elseif value="player.age gt ($ship.pilot.$missionary_time + 300)">
						<!-- the pilot script has failed to kick its watchdog alive. trigger the restart above. -->
						<remove_value name="$ship.pilot.$missionary_active"/>
					<write_to_logbook category="general" text="'Missionary %1 got confused, but it will try to resume its job.'.[$ship.pilot.name]"/>
					</do_elseif>
					<!-- the script has been activated and wdog hasn't expired. has it been assigned to a commander? -->
					<do_elseif value="$ship.commander">
						<set_value name="$ship.pilot.$missionary_commander" exact="$ship.commander"/>
						<set_value name="$ship.pilot.$missionary_commanderentity" exact="$ship.commanderentity"/>

						<write_to_logbook category="general" text="'Missionary %1 will work for %2 %3 %4.'.[$ship.pilot.name, $ship.pilot.$missionary_commander.name, $ship.pilot.$missionary_commanderentity.name, $ship.pilot.$missionary_commanderentity.type]"/>

						<add_to_player_squad object="$ship"/>
						<remove_from_player_squad object="$ship" />
						<start_script object="$ship.pilot" name="'missionary.run'"/>
					</do_elseif>
				</do_if>
				<do_elseif value="$ship.pilot.$missionary_active?">
					<!-- ship is not marked as missionary, so clear the active flag. in case missionary script is still alive it will detect this and stop -->
					<write_to_logbook category="general" text="'Missionary %1 aborted as it lost its [M] ship tag.'.[$ship.pilot.name]"/>
					<remove_value name="$ship.pilot.$missionary_active"/>
					<add_to_player_squad object="$ship"/>
					<remove_from_player_squad object="$ship" />
				</do_elseif>
			</do_if>
		</do_all>
	</actions>
</cue>
</cues>
</mdscript>

<?xml version="1.0" encoding="iso-8859-1"?>
<content name="" description="" author="Assailer" version="105" save="false" date="2017-12-09" id="" lastupdate="">
  <text language="44" name="Missionary" description="Missionary" author="Assailer" version="1.05"/>
</content>
