Untitled diff
381 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="Scan Asteroids" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<director name="Scan Asteroids" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<documentation>
<documentation>
<author name="Chris" alias="XGamer" contact="EMail, Skype, ForumPM" />
<author name="Chris" alias="XGamer" contact="EMail, Skype, ForumPM" />
<content reference="Station Offered Mission" name="Scan Asteroids" description="N/A" />
<content reference="Station Offered Mission" name="Scan Asteroids" description="N/A" />
<version number="1.0" date="16/09/2008" status="development" />
<version number="1.0" date="16/09/2008" status="development" />
</documentation>
</documentation>
<cues>
<cues>
<cue name="L2M145" library="1" check="cancel" comment="Root Cue for this Mission / Holds all variables" >
<cue name="L2M145" library="1" check="cancel" comment="Root Cue for this Mission / Holds all variables" >
<documentation>
<documentation>
<content name="Scan Asteroids" reference="L2M145" type="L2"/>
<content name="Scan Asteroids" reference="L2M145" type="L2"/>
<version number="1.0" date="16/09/2008" status="release"/>
<version number="1.0" date="16/09/2008" status="release"/>
<history>
<history>
<change date="23/02/2010" author="Owen Lake" description="Fixed timeout issue. Moved mission completed statistic."/>
<change date="23/02/2010" author="Owen Lake" description="Fixed timeout issue. Moved mission completed statistic."/>
<change date="16/09/2008" author="Owen Lake" description="Started work for 1.2 release"/>
<change date="16/09/2008" author="Owen Lake" description="Started work for 1.2 release"/>
<change date="23/05/2008" author="XGamer" description="Fixed Reward Bug"/>
<change date="23/05/2008" author="XGamer" description="Fixed Reward Bug"/>
<change date="21/05/2008" author="XGamer" description="More Bugfixes"/>
<change date="21/05/2008" author="XGamer" description="More Bugfixes"/>
<change date="20/05/2008" author="XGamer" description="Added some Improvements"/>
<change date="20/05/2008" author="XGamer" description="Added some Improvements"/>
<change date="16/05/2008" author="XGamer" description="Fixed various Bugs"/>
<change date="16/05/2008" author="XGamer" description="Fixed various Bugs"/>
<change date="15/05/2008" author="XGamer" description="Initial Beta Version"/>
<change date="15/05/2008" author="XGamer" description="Initial Beta Version"/>
</history>
</history>
</documentation>
</documentation>
<condition>
<condition>
<check_all>
<check_all>
<check_value value="{player.sector.warobjectid}" exact="0"/>
<check_value value="{player.sector.warobjectid}" exact="0"/>
<count_stations class="station" dockingallowed="1" race="default" min="1">
<count_stations class="station" dockingallowed="1" race="default" min="1">
<sector sector="{player.sector}"/>
<sector sector="{player.sector}"/>
</count_stations>
</count_stations>
<count_asteroids min="2">
<count_asteroids min="2">
<sector sector="{player.sector}"/>
<sector sector="{player.sector}"/>
</count_asteroids>
</count_asteroids>
</check_all>
</check_all>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<find_station class="station" dockingallowed="1" race="default" name="this.OfferStation">
<find_station class="station" dockingallowed="1" race="default" name="this.OfferStation">
<sector sector="{player.sector}"/>
<sector sector="{player.sector}"/>
</find_station>
</find_station>
<do_choose>
<do_choose>
<do_when value="{object.exists@this.OfferStation}" exact="1">
<do_when value="{object.exists@this.OfferStation}" exact="1">
<find_asteroid group="this.Unfiltered Roids" multiple="1" max="10">
<find_asteroid group="this.Unfiltered Roids" multiple="1" max="10">
<position x="0" y="0" z="0"/>
<position x="0" y="0" z="0"/>
<sector sector="{object.sector@this.OfferStation}" comment="Set Start Sector so it may not jump around too much (dunno if it ever did but well cant hurt)"/>
<sector sector="{object.sector@this.OfferStation}" comment="Set Start Sector so it may not jump around too much (dunno if it ever did but well cant hurt)"/>
<jumps min="0" max="3"/>
<jumps min="0" max="3"/>
<distance max="80km"/>
<distance max="80km"/>
</find_asteroid>
</find_asteroid>
<do_choose>
<do_choose>
<do_when value="{group.object.count@this.Unfiltered Roids}" min="2">
<do_when value="{group.object.count@this.Unfiltered Roids}" min="2">
<do_all exact="{group.object.count@this.Unfiltered Roids}" counter="count" comment="HACK scanned=0">
<do_all exact="{group.object.count@this.Unfiltered Roids}" counter="count" comment="HACK scanned=0">
<do_if value="{group.object.{counter@count}.scanned@this.Unfiltered Roids}" exact="0">
<do_if value="{group.object.{counter@count}.scanned@this.Unfiltered Roids}" exact="0">
<set_object group="this.Roids" name="this.Roids {group.object.{counter@count}@this.Unfiltered Roids}" value="{group.object.{counter@count}@this.Unfiltered Roids}"/>
<set_object group="this.Roids" name="this.Roids {group.object.{counter@count}@this.Unfiltered Roids}" value="{group.object.{counter@count}@this.Unfiltered Roids}"/>
</do_if>
</do_if>
</do_all>
</do_all>
<remove_group group="this.Unfiltered Roids"/>
<remove_group group="this.Unfiltered Roids"/>
<do_choose>
<do_choose>
<do_when value="{group.object.count@this.Roids}" min="5">
<do_when value="{group.object.count@this.Roids}" min="5">
<do_all exact="{group.object.count@this.Roids}" counter="count" comment="Count how many Different Sectors we have and how many Roids in each">
<do_all exact="{group.object.count@this.Roids}" counter="count" comment="Count how many Different Sectors we have and how many Roids in each">
<set_value name="this.Sectorcount {group.object.{counter@count}.sector@this.Roids}" operation="add"/>
<set_value name="this.Sectorcount {group.object.{counter@count}.sector@this.Roids}" operation="add"/>
<do_if value="{value@this.Sectorcount {group.object.{counter@count}.sector@this.Roids}}" max="1">
<do_if value="{value@this.Sectorcount {group.object.{counter@count}.sector@this.Roids}}" max="1">
<set_value name="this.SectorDiff" operation="add"/>
<set_value name="this.SectorDiff" operation="add"/>
</do_if>
</do_if>
</do_all>
</do_all>
<!-- Set Some Variables -->
<!-- Set Some Variables -->
<do_choose>
<do_choose>
<do_when value="{value@this.SectorDiff}" max="2">
<do_when value="{value@this.SectorDiff}" max="2">
<set_value name="this.Difficulty" exact="{lookup.level@veryeasy}"/>
<set_value name="this.Difficulty" exact="{lookup.level@veryeasy}"/>
</do_when>
</do_when>
<do_when value="{value@this.SectorDiff}" exact="3">
<do_when value="{value@this.SectorDiff}" exact="3">
<set_value name="this.Difficulty" exact="{lookup.level@easy}"/>
<set_value name="this.Difficulty" exact="{lookup.level@easy}"/>
</do_when>
</do_when>
<do_when value="{value@this.SectorDiff}" exact="4">
<do_when value="{value@this.SectorDiff}" exact="4">
<set_value name="this.Difficulty" exact="{lookup.level@average}"/>
<set_value name="this.Difficulty" exact="{lookup.level@average}"/>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<set_value name="this.Difficulty" exact="{lookup.level@average}"/>
<set_value name="this.Difficulty" exact="{lookup.level@average}"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
<set_value name="this.Step" exact="1"/>
<set_value name="this.Step" exact="1"/>
<!-- Create Actor -->
<!-- Create Actor -->
<do_any>
<do_any>
<set_value name="this.OfferRace" exact="{object.race@this.OfferStation}" chance="2"/>
<set_value name="this.OfferRace" exact="{object.race@this.OfferStation}" chance="2"/>
<set_value name="this.OfferRace" exact="{random.race@default}" chance="8"/>
<set_value name="this.OfferRace" exact="{random.race@default}" chance="8"/>
</do_any>
</do_any>
<set_value name="this.RaceCheck" exact="{lookup.race.mask@default}+{lookup.race.mask@terran}+{lookup.race.mask@pirategroup}"/>
<set_value name="this.RaceCheck" exact="{lookup.race.mask@default}+{lookup.race.mask@terran}+{lookup.race.mask@pirategroup}"/>
<do_if value="{lookup.race.mask.{value@this.RaceCheck}@{value@this.OfferRace}}" exact="0">
<do_if value="{lookup.race.mask.{value@this.RaceCheck}@{value@this.OfferRace}}" exact="0">
<set_value name="this.OfferRace" exact="{random.race@default}"/>
<set_value name="this.OfferRace" exact="{random.race@default}"/>
</do_if>
</do_if>
<create_actor race="{value@this.OfferRace}" object="this.OfferStation" voiceflags="32" name="this.Offerguy" location="crew"/>
<create_actor race="{value@this.OfferRace}" object="this.OfferStation" voiceflags="32" name="this.Offerguy" location="crew"/>
<create_offer actor="this.Offerguy" conversation="L2GenericOffer" cue="L2M145" discipline="XXXT"/>
<create_offer actor="this.Offerguy" conversation="L2GenericOffer" cue="L2M145" discipline="XXXT"/>
<set_value name="L2M145.Variation" list="1"/>
<set_value name="L2M145.Variation" list="1"/>
<do_if value="{param@Debug}" exact="1">
<do_if value="{param@Debug}" exact="1">
<incoming_message text="The Mission Is Offered on the station {object.name@this.OfferStation} by {actor.name@this.Offerguy}"/>
<incoming_message text="The Mission Is Offered on the station {object.name@this.OfferStation} by {actor.name@this.Offerguy}"/>
</do_if>
</do_if>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<remove_group group="this.Roids"/>
<cancel_cue cue="L2M145"/>
<cancel_cue cue="L2M145"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<remove_group group="this.Unfiltered Roids"/>
<cancel_cue cue="L2M145"/>
<cancel_cue cue="L2M145"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<cancel_cue cue="L2M145"/>
<cancel_cue cue="L2M145"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<cue name="L2M145 Cleanup" delay="1s">
<cue name="L2M145 Cleanup" delay="1s">
<condition>
<condition>
<check_value value="{value@L2M145.Cleanup}" exact="1"/>
<check_value value="{value@L2M145.Cleanup}" exact="1"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<remove_offer actor="L2M145.Offerguy" conversation="L2GenericOffer" discipline="XXXT"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2GenericOffer" discipline="XXXT"/>
<destroy_actor actor="L2M145.Offerguy"/>
<destroy_actor actor="L2M145.Offerguy"/>
<remove_group group="L2M145.Roids"/>
<remove_group group="L2M145.Roids"/>
<cancel_cue cue="L2M145"/>
<cancel_cue cue="L2M145"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<!-- ALL MISSION CUES HERE -->
<!-- ALL MISSION CUES HERE -->
<cue name="L2M145 Remove Mission">
<cue name="L2M145 Remove Mission">
<timing>
<timing>
<time min="700s" max="800s"/>
<time min="700s" max="800s"/>
</timing>
</timing>
<cues>
<cues>
<cue name="L2M145 Ref Cleanup">
<cue name="L2M145 Ref Cleanup">
<condition>
<condition>
<cue_completed cue="L2M145 Remove Mission"/>
<cue_completed cue="L2M145 Remove Mission"/>
</condition>
</condition>
<action>
<action>
<set_value name="L2M145.Cleanup" exact="1"/>
<set_value name="L2M145.Cleanup" exact="1"/>
</action>
</action>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M145 Offer">
<cue name="L2M145 Offer">
<condition>
<condition>
<cue_completed cue="L2M145"/>
<cue_completed cue="L2M145"/>
</condition>
</condition>
<action>
<action>
<set_value name="L2M145.TotalRoids" exact="{group.object.count@L2M145.Roids}"/>
<set_value name="L2M145.TotalRoids" exact="{group.object.count@L2M145.Roids}"/>
</action>
</action>
<cues>
<cues>
<cue name="L2M145 Briefing">
<cue name="L2M145 Briefing">
<condition>
<condition>
<conversation_completed actor="L2M145.Offerguy" conversation="L2GenericOffer" answer="briefing"/>
<conversation_completed actor="L2M145.Offerguy" conversation="L2GenericOffer" answer="briefing"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<set_value name="L2M145.Step" exact="1"/>
<set_value name="L2M145.Step" exact="1"/>
<set_value name="L2M145.RewardCr" min="{reward.money.{value@L2M145.OfferRace}@{value@L2M145.Difficulty}.XXXT}/2" max="{reward.money.{value@L2M145.OfferRace}@{value@L2M145.Difficulty}.XXXT}/3"/>
<set_value name="L2M145.RewardCr" min="{reward.money.{value@L2M145.OfferRace}@{value@L2M145.Difficulty}.XXXT}/2" max="{reward.money.{value@L2M145.OfferRace}@{value@L2M145.Difficulty}.XXXT}/3"/>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<cue ref="L0M45 B">
<cue ref="L0M45 B">
<params>
<params>
<param name="Cue" value="L2M145" comment="Where the briefing is set"/>
<param name="Cue" value="L2M145" comment="Where the briefing is set"/>
<param name="Step" value="L2M145.Step" comment="The Start Step"/>
<param name="Step" value="L2M145.Step" comment="The Start Step"/>
<param name="PageID" value="3345" comment="The PageID of the text"/>
<param name="PageID" value="3345" comment="The PageID of the text"/>
<param name="TextID Title" value="1001" comment="The briefing title ID"/>
<param name="TextID Title" value="1001" comment="The briefing title ID"/>
<param name="TextID Text Single Object" value="1004" comment="The briefing text ID for a single object"/>
<param name="TextID Text Single Object" value="1004" comment="The briefing text ID for a single object"/>
<param name="TextID Text Multi Sectors" value="1002" comment="The briefing text ID for multi objects in multi sectors"/>
<param name="TextID Text Multi Sectors" value="1002" comment="The briefing text ID for multi objects in multi sectors"/>
<param name="TextID Text Multi Objects" value="1003" comment="The briefing text ID for multi objects in a single sector"/>
<param name="TextID Text Multi Objects" value="1003" comment="The briefing text ID for multi objects in a single sector"/>
<param name="Scan Multi B Text" value="1005" comment="The multiple object objective text ID for the briefing"/>
<param name="Scan Multi B Text" value="1005" comment="The multiple object objective text ID for the briefing"/>
<param name="Scan Single B Text" value="1006" comment="The single object objective text ID for the briefing"/>
<param name="Scan Single B Text" value="1006" comment="The single object objective text ID for the briefing"/>
<param name="OfferRace" value="{value@L2M145.OfferRace}" comment="Offer Race ID"/>
<param name="OfferRace" value="{value@L2M145.OfferRace}" comment="Offer Race ID"/>
<param name="Difficulty" value="{value@L2M145.Difficulty}" comment="The value address for the difficulty"/>
<param name="Difficulty" value="{value@L2M145.Difficulty}" comment="The value address for the difficulty"/>
<param name="Preview" value="1" comment="Is the briefing a preview"/>
<param name="Preview" value="1" comment="Is the briefing a preview"/>
<param name="Complete Briefing" value="1" comment="Run the briefing completion library"/>
<param name="Complete Briefing" value="1" comment="Run the briefing completion library"/>
<param name="Duration" value="L2M145.Duration" comment="Mission Time"/>
<param name="Duration" value="L2M145.Duration" comment="Mission Time"/>
<!--Mission Params-->
<!--Mission Params-->
<param name="GroupName" value="L2M145.Roids" comment="Asteroid Group"/>
<param name="GroupName" value="L2M145.Roids" comment="Asteroid Group"/>
<param name="ScannedCounter" value="L2M145.ScannedCounter" comment="Address to save the scanned count too"/>
<param name="ScannedCounter" value="L2M145.ScannedCounter" comment="Address to save the scanned count too"/>
<!--reward parameters (in priority order)-->
<!--reward parameters (in priority order)-->
<param name="RoundReward" value="1" comment="Round the reward to a reasonable value? Factor to round by - 1, 2, 4 or 5 are sensible."/>
<param name="RoundReward" value="1" comment="Round the reward to a reasonable value? Factor to round by - 1, 2, 4 or 5 are sensible."/>
<param name="RewardFree" value="{35,2169} {17,3721}"/>
<param name="RewardFree" value="{35,2169} {17,3721}"/>
<param name="RewardCr" value="L2M145.RewardCr" comment="Reward - credits"/>
<param name="RewardCr" value="L2M145.RewardCr" comment="Reward - credits"/>
</params>
</params>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
<cue name="L2M145 Accept" version="2">
<cue name="L2M145 Accept" version="2">
<condition>
<condition>
<conversation_completed actor="L2M145.Offerguy" conversation="L2GenericOffer" answer="accept"/>
<conversation_completed actor="L2M145.Offerguy" conversation="L2GenericOffer" answer="accept"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<cancel_cue cue="L2M145 Remove Mission"/>
<cancel_cue cue="L2M145 Remove Mission"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2GenericOffer" discipline="XXXT"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2GenericOffer" discipline="XXXT"/>
<set_value name="L2M145.StartTime" exact="{player.age}"/>
<set_value name="L2M145.StartTime" exact="{player.age}"/>
<set_value name="L2M145.EndTime" exact="{value@L2M145.Duration}+{player.age}"/>
<set_value name="L2M145.EndTime" exact="{value@L2M145.Duration}+{player.age}"/>
<increment_statistic statistic="5160"/>
<increment_statistic statistic="5160"/>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<!-- This Checks for the Objectives Completed -->
<!-- This Checks for the Objectives Completed -->
<cue ref="L0M45" comment="This checks for the objects been scanned.">
<cue ref="L0M45" comment="This checks for the objects been scanned.">
<params>
<params>
<param name="Cue" value="L2M145" comment="Where the briefing is set"/>
<param name="Cue" value="L2M145" comment="Where the briefing is set"/>
<param name="Step" value="L2M145.Step" comment="The Start Step"/>
<param name="Step" value="L2M145.Step" comment="The Start Step"/>
<!-- Params passed for the Finish Briefing -->
<!-- Params passed for the Finish Briefing -->
<param name="PageID" value="3345" comment="The PageID of the text"/>
<param name="PageID" value="3345" comment="The PageID of the text"/>
<param name="TextID Title" value="1007" comment="The briefing title ID"/>
<param name="TextID Title" value="1007" comment="The briefing title ID"/>
<param name="TextID Text Single Object" value="1010" comment="The briefing text ID for a single object"/>
<param name="TextID Text Single Object" value="1010" comment="The briefing text ID for a single object"/>
<param name="TextID Text Multi Sectors" value="1008" comment="The briefing text ID for multi objects in multi sectors"/>
<param name="TextID Text Multi Sectors" value="1008" comment="The briefing text ID for multi objects in multi sectors"/>
<param name="TextID Text Multi Objects" value="1009" comment="The briefing text ID for multi objects in a single sector"/>
<param name="TextID Text Multi Objects" value="1009" comment="The briefing text ID for multi objects in a single sector"/>
<param name="Scan Multi B Text" value="1011" comment="The multiple object objective text ID for the briefing"/>
<param name="Scan Multi B Text" value="1011" comment="The multiple object objective text ID for the briefing"/>
<param name="Scan Single B Text" value="1012" comment="The single object objective text ID for the briefing"/>
<param name="Scan Single B Text" value="1012" comment="The single object objective text ID for the briefing"/>
<param name="Scan Multi Text" value="1013" comment="The multiple object objective text ID"/>
<param name="Scan Multi Text" value="1013" comment="The multiple object objective text ID"/>
<param name="Scan Single Text" value="1014" comment="The single object objective text ID"/>
<param name="Scan Single Text" value="1014" comment="The single object objective text ID"/>
<param name="OfferRace" value="{value@L2M145.OfferRace}" comment="Offer Race ID"/>
<param name="OfferRace" value="{value@L2M145.OfferRace}" comment="Offer Race ID"/>
<param name="Difficulty" value="{value@L2M145.Difficulty}" comment="The value address for the difficulty"/>
<param name="Difficulty" value="{value@L2M145.Difficulty}" comment="The value address for the difficulty"/>
<param name="Complete Briefing" value="1" comment="Run the briefing completion library"/>
<param name="Complete Briefing" value="1" comment="Run the briefing completion library"/>
<param name="EndTime" value="L2M145.EndTime" comment="Mission Time"/>
<param name="EndTime" value="L2M145.EndTime" comment="Mission Time"/>
<!--Mission Params-->
<!--Mission Params-->
<param name="GroupName" value="L2M145.Roids" comment="Asteroid Group"/>
<param name="GroupName" value="L2M145.Roids" comment="Asteroid Group"/>
<param name="ScannedCounter" value="L2M145.ScannedCount"/>
<param name="ScannedCounter" value="L2M145.ScannedCount"/>
<param name="ScannedGroup" value="L2M145.ScannedGroup"/>
<param name="ScannedGroup" value="L2M145.ScannedGroup"/>
<param name="CurrentScanned" value="L2M145.CurrentScanned"/>
<param name="CurrentScanned" value="L2M145.CurrentScanned"/>
<param name="FeedbackName" value="L2M145.L0M45FeedbackValue"/>
<param name="FeedbackName" value="L2M145.L0M45FeedbackValue"/>
<!--reward parameters (in priority order)-->
<!--reward parameters (in priority order)-->
<param name="RoundReward" value="1" comment="Round the reward to a reasonable value? Factor to round by - 1, 2, 4 or 5 are sensible."/>
<param name="RoundReward" value="1" comment="Round the reward to a reasonable value? Factor to round by - 1, 2, 4 or 5 are sensible."/>
<param name="RewardCr" value="L2M145.RewardCr" comment="Reward - credits"/>
<param name="RewardCr" value="L2M145.RewardCr" comment="Reward - credits"/>
<param name="RewardFree" value="{35,2169} {17,3721}"/>
<param name="RewardFree" value="{35,2169} {17,3721}"/>
</params>
</params>
</cue>
</cue>
<cue name="L2M145 Record Asteroid Data" delay="1s">
<cue name="L2M145 Record Asteroid Data" delay="1s">
<condition>
<condition>
<object_exists object="L2M145.CurrentScanned"/>
<object_exists object="L2M145.CurrentScanned"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<do_if value="{object.isclass.asteroid@L2M145.CurrentScanned}" exact="1">
<do_if value="{object.isclass.asteroid@L2M145.CurrentScanned}" exact="1">
<set_value name="L2M145.Resource Count {object.resource@L2M145.CurrentScanned}" operation="add"/>
<set_value name="L2M145.Resource Count {object.resource@L2M145.CurrentScanned}" operation="add"/>
<set_value name="L2M145.Resource Yield {object.resource@L2M145.CurrentScanned}" operation="add" exact="{object.yield@L2M145.CurrentScanned}"/>
<set_value name="L2M145.Resource Yield {object.resource@L2M145.CurrentScanned}" operation="add" exact="{object.yield@L2M145.CurrentScanned}"/>
<do_if value="{object.yield@L2M145.CurrentScanned}" min="50">
<do_if value="{object.yield@L2M145.CurrentScanned}" min="50">
<set_value name="L2M145.HighYield" exact="1"/>
<set_value name="L2M145.HighYield" exact="1"/>
</do_if>
</do_if>
<do_if value="{object.resource@L2M145.CurrentScanned}" exact="{lookup.type@SS_WARE_NIVIDIUM2}">
<do_if value="{object.resource@L2M145.CurrentScanned}" exact="{lookup.type@SS_WARE_NIVIDIUM2}">
<set_value name="L2M145.NividiumFound" exact="1"/>
<set_value name="L2M145.NividiumFound" exact="1"/>
</do_if>
</do_if>
<do_if value="{value@L2M145.Resource Count {object.resource@L2M145.CurrentScanned}}" exact="1">
<do_if value="{value@L2M145.Resource Count {object.resource@L2M145.CurrentScanned}}" exact="1">
<set_value name="L2M145.Resource Count" operation="add"/>
<set_value name="L2M145.Resource Count" operation="add"/>
<set_value name="L2M145.Resource {value@L2M145.Resource Count}" exact="{object.resource@L2M145.CurrentScanned}"/>
<set_value name="L2M145.Resource {value@L2M145.Resource Count}" exact="{object.resource@L2M145.CurrentScanned}"/>
</do_if>
</do_if>
<remove_object object="L2M145.CurrentScanned"/>
<remove_object object="L2M145.CurrentScanned"/>
</do_if>
</do_if>
<reset_cue cue="L2M145 Record Asteroid Data"/>
<reset_cue cue="L2M145 Record Asteroid Data"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M145 Offerer Killed" delay="500" version="2">
<cue name="L2M145 Offerer Killed" delay="500" version="2">
<condition>
<condition>
<check_value value="{actor.exists@L2M145.Offerguy}" exact="0"/>
<check_value value="{actor.exists@L2M145.Offerguy}" exact="0"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<remove_objective cue="L2M145" status="aborted"/>
<remove_objective cue="L2M145" status="aborted"/>
<remove_briefing cue="L2M145"/>
<remove_briefing cue="L2M145"/>
<incoming_message author="{3300,10}" text="{3300,56}"/>
<incoming_message author="{3300,10}" text="{3300,56}"/>
<set_value name="L2M145.Cleanup" exact="1"/>
<set_value name="L2M145.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M145 All Scanned" delay="1s" version="3">
<cue name="L2M145 All Scanned" delay="1s" version="3">
<condition>
<condition>
<check_value value="{value@L2M145.L0M45FeedbackValue}" exact="0" negate="1"/>
<check_value value="{value@L2M145.L0M45FeedbackValue}" exact="0" negate="1"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<do_choose>
<do_choose>
<do_when value="{value@L2M145.L0M45FeedbackValue}" list="1|2">
<do_when value="{value@L2M145.L0M45FeedbackValue}" list="1|2">
<set_value name="L2M145.Step" operation="add"/>
<set_value name="L2M145.Step" operation="add"/>
<set_value name="L2M145.ReturnDuration" exact="{player.age}+1200"/>
<set_value name="L2M145.ReturnDuration" exact="{player.age}+1200"/>
<create_briefing cue="L2M145" title="{3345,1007}" text="{3345,1100}">
<create_briefing cue="L2M145" title="{3345,1007}" text="{3345,1100}">
<timer end="{value@L2M145.ReturnDuration}"/>
<timer end="{value@L2M145.ReturnDuration}"/>
<objectives>
<objectives>
<objective step="{value@L2M145.Step}-1">
<objective step="{value@L2M145.Step}-1">
<custom action="{35,2026}" text="{35,2139}"/>
<custom action="{35,2026}" text="{35,2139}"/>
</objective>
</objective>
<objective step="{value@L2M145.Step}">
<objective step="{value@L2M145.Step}">
<talkto actor="L2M145.Offerguy"/>
<talkto actor="L2M145.Offerguy"/>
</objective>
</objective>
</objectives>
</objectives>
</create_briefing>
</create_briefing>
<set_objective cue="L2M145">
<set_objective cue="L2M145">
<briefing cue="L2M145" step="{value@L2M145.Step}"/>
<briefing cue="L2M145" step="{value@L2M145.Step}"/>
<timer end="{value@L2M145.ReturnDuration}"/>
<timer end="{value@L2M145.ReturnDuration}"/>
<talkto actor="L2M145.Offerguy"/>
<talkto actor="L2M145.Offerguy"/>
</set_objective>
</set_objective>
<create_offer actor="L2M145.Offerguy" conversation="L2M145 Completed" cue="L2M145 Mission Reward" discipline="XXXT"/>
<create_offer actor="L2M145.Offerguy" conversation="L2M145 Completed" cue="L2M145 Mission Reward" discipline="XXXT"/>
</do_when>
</do_when>
<do_when value="{value@L2M145.L0M45FeedbackValue}" exact="99">
<do_when value="{value@L2M145.L0M45FeedbackValue}" exact="99">
<remove_objective cue="L2M145" status="aborted"/>
<remove_objective cue="L2M145" status="aborted"/>
<remove_briefing cue="L2M145"/>
<remove_briefing cue="L2M145"/>
<set_value name="L2M145.Cleanup" exact="1"/>
<set_value name="L2M145.Cleanup" exact="1"/>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<remove_objective cue="L2M145" status="failed"/>
<remove_objective cue="L2M145" status="failed"/>
<remove_briefing cue="L2M145"/>
<remove_briefing cue="L2M145"/>
<set_value name="L2M145.Cleanup" exact="1"/>
<set_value name="L2M145.Cleanup" exact="1"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
</do_all>
</do_all>
</action>
</action>
<cues>
<cues>
<cue name="L2M145 Return Time Expired" delay="1s" version="2">
<cue name="L2M145 Return Time Expired" delay="1s" version="2">
<condition>
<condition>
<check_age min="{value@L2M145.ReturnDuration}"/>
<check_age min="{value@L2M145.ReturnDuration}"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<incoming_message author="{actor.name@L2M145.Offerguy}" text="{3345,{value@L2M145.Variation}05}"/>
<incoming_message author="{actor.name@L2M145.Offerguy}" text="{3345,{value@L2M145.Variation}05}"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2M145 Completed" discipline="XXXT"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2M145 Completed" discipline="XXXT"/>
<remove_objective cue="L2M145" status="failed"/>
<remove_objective cue="L2M145" status="failed"/>
<remove_briefing cue="L2M145"/>
<remove_briefing cue="L2M145"/>
<set_value name="L2M145.Cleanup" exact="1"/>
<set_value name="L2M145.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
<cue name="L2M145 End Mission" version="4">
<cue name="L2M145 End Mission" version="4">
<condition>
<condition>
<conversation_completed actor="L2M145.Offerguy" conversation="L2M145 Completed" answer="finish"/>
<conversation_completed actor="L2M145.Offerguy" conversation="L2M145 Completed" answer="finish"/>
</condition>
</condition>
<action>
<action>
<do_all>
<do_all>
<set_value name="L2M145.Bonus" exact="({value@L2M145.RewardCr}*3)/2"/>
<set_value name="L2M145.Bonus" exact="({value@L2M145.RewardCr}*3)/2"/>
<set_value name="L2M145.RewardCr" operation="multiply" exact="{value@L2M145.TotalRoids}"/>
<set_value name="L2M145.RewardCr" operation="multiply" exact="{value@L2M145.TotalRoids}"/>
<do_choose>
<do_choose>
<do_when value="{value@L2M145.ScannedCount}" min="1">
<do_when value="{value@L2M145.ScannedCount}" min="1">
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}04"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}04"/>
<do_if value="{value@L2M145.TotalRoids}" exact="{value@L2M145.ScannedCount}">
<do_if value="{value@L2M145.TotalRoids}" exact="{value@L2M145.ScannedCount}">
<set_value name="L2M145.RewardCr" operation="add" exact="{value@L2M145.Bonus}"/>
<set_value name="L2M145.RewardCr" operation="add" exact="{value@L2M145.Bonus}"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}01"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}01"/>
</do_if>
</do_if>
<do_if value="{value@L2M145.HighYield}" exact="1">
<do_if value="{value@L2M145.HighYield}" exact="1">
<set_value name="L2M145.RewardCr" operation="add" exact="{value@L2M145.Bonus}"/>
<set_value name="L2M145.RewardCr" operation="add" exact="{value@L2M145.Bonus}"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}02"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}02"/>
</do_if>
</do_if>
<do_if value="{value@L2M145.NividiumFound}" exact="1">
<do_if value="{value@L2M145.NividiumFound}" exact="1">
<set_value name="L2M145.RewardCr" operation="add" exact="{value@L2M145.Bonus}"/>
<set_value name="L2M145.RewardCr" operation="add" exact="{value@L2M145.Bonus}"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}03"/>
<set_value name="L2M145.Message TextID" exact="{value@L2M145.Variation}03"/>
</do_if>
</do_if>
<incoming_message author="{actor.name@L2M145.Offerguy}" text="{3345,{value@L2M145.Message TextID}}"/>
<incoming_message author="{actor.name@L2M145.Offerguy}" text="{3345,{value@L2M145.Message TextID}}"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2M145 Completed" discipline="XXXT"/>
<remove_offer actor="L2M145.Offerguy" conversation="L2M145 Completed" discipline="XXXT"/>
<reward_player>
<reward_player>
<money exact="{value@L2M145.RewardCr}"/>
<money exact="{value@L2M145.RewardCr}"/>
<notoriety>
<notoriety>
<relation race="{actor.race@L2M145.Offerguy}" exact="{reward.notoriety.{actor.race@L2M145.Offerguy}@{value@L2M145.Difficulty}}"/>
<relation race="{actor.race@L2M145.Offerguy}" exact="{reward.notoriety.{actor.race@L2M145.Offerguy}@{value@L2M145.Difficulty}}"/>
</notoriety>
</notoriety>
</reward_player>
</reward_player>
<increment_statistic statistic="5170"/>
<increment_statistic statistic="5170"/>
<remove_objective cue="L2M145" status="complete"/>
<remove_objective cue="L2M145" status="complete"/>
</do_when>
</do_when>
<do_otherwise>
<do_otherwise>
<remove_objective cue="L2M145" status="failed"/>
<remove_objective cue="L2M145" status="failed"/>
<incoming_message author="{actor.name@L2M145.Offerguy}" text="{3345,{value@L2M145.Variation}06}"/>
<incoming_message author="{actor.name@L2M145.Offerguy}" text="{3345,{value@L2M145.Variation}06}"/>
</do_otherwise>
</do_otherwise>
</do_choose>
</do_choose>
<remove_briefing cue="L2M145"/>
<remove_briefing cue="L2M145"/>
<set_value name="L2M145.Cleanup" exact="1"/>
<set_value name="L2M145.Cleanup" exact="1"/>
</do_all>
</do_all>
</action>
</action>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
</cues>
</cues>
</cue>
</cue>
</cues>
</cues>
<signature>+g4HX5Uk8rt4x/LrHPkHqa83WSKBSeRmUHdCsQIeA9AZ+fQJtPctgHw5+7DVIqZERNJnN5YoY6BdyyUati6/hRFvjrW+5/o2s/zb4JSmJfiCnU9ret3nT18E7yrqrRX9LYRLmJKxef8Qebj3kIJZxRUefiLcyWE9CT+HMv2U8t5AfVprb9i/EMKbImmg2/zkmcvSpffHFQjSZ2yvCLYA6HTkD1rJdZvRYMfXwneMdxKAONyTB06fFtI8s29r3TNRnJeKd17HaB8jdXp1Mkwgj5OqU2q+I/TPTwRssmdy62AC3I+zPrvzDTbEOK9lAQVa8jm2ueVZiPOPyTz3AaYYWw==</signature>
<signature>+g4HX5Uk8rt4x/LrHPkHqa83WSKBSeRmUHdCsQIeA9AZ+fQJtPctgHw5+7DVIqZERNJnN5YoY6BdyyUati6/hRFvjrW+5/o2s/zb4JSmJfiCnU9ret3nT18E7yrqrRX9LYRLmJKxef8Qebj3kIJZxRUefiLcyWE9CT+HMv2U8t5AfVprb9i/EMKbImmg2/zkmcvSpffHFQjSZ2yvCLYA6HTkD1rJdZvRYMfXwneMdxKAONyTB06fFtI8s29r3TNRnJeKd17HaB8jdXp1Mkwgj5OqU2q+I/TPTwRssmdy62AC3I+zPrvzDTbEOK9lAQVa8jm2ueVZiPOPyTz3AaYYWw==</signature>
</director>
</director>