A problem with your reset_cue: you reset the top level cue, meaning it will add the quest again etc. but thats unnecessary. Cancel the cue thats triggered when the bbs quest is evaluated is enough for the cues to be
Oh and about the multiple typenames: The MD will choose ONE of the ones you provided, so if it chooses SS_FAC_F219 but there is only a destillery with the typename SS_FAC_F219_1 in the system, it wont find it. You could first search for the first typename and then with a do_if look if there was an object found. If not, the search for the station with the other typename and if that didnt work, cancel the cue.
About the director.dmp: it has been deactivated in the released 2.5 version because of performance problems.
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="BBSTemplate" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<documentation>
<author name="name" alias="username" contact="contact details" />
<content reference="DS01" name="Distillery Raid" description="Raid a Space Fuel Distillery" />
<version number="0.1" date="today" status="sample" />
</documentation>
<cues>
<cue name="DS01 Start">
<condition>
<check_all>
<check_age value="{player.age}" min="10s" />
<!--<object_changed_sector/>-->
</check_all>
</condition>
<action>
<do_all>
<add_bbs_quest name="DS01" priority="1000" max="1"/>
</do_all>
</action>
<cues>
<cue name="DS01 Find Station" instantiate="static">
<condition>
<check_all>
<bbs_quest_evaluated quest="DS01"/>
<check_value value="{player.sector.race}" exact="{lookup.race@argon}"/>
<check_any>
<match_object class="fighter"/>
<match_object class="m6"/>
<match_object class="m7"/>
</check_any>
</check_all>
</condition>
<action>
<do_all>
<find_station typename="{random.type@SS_FAC_F219|SS_FAC_F219_1}" nearest="1" name="this.Distillery" max="1" comment="Find the nearest Space Fuel Distillery"/>
<set_sector name="this.SFDSector" value="{object.sector@this.Distillery}"/>
<find_station typename="SS_DOCK_A_TRADE" max="1" nearest="1" race="argon" name="this.Paddybase" comment="Find the nearest trading station"/>
<!--<set_sector name="DS01.DockSector"/>-->
</do_all>
</action>
<cues>
<cue name="DS01 reset" comment="checks if the dock and distillery are valid and in sector">
<condition>
<check_all>
<cue_completed cue="DS01 Find Station"/>
<check_any>
<object_exists negate="1" object="parent.Distillery"/>
<object_exists negate="1" object="parent.Paddybase"/>
<check_value value="{object.race@parent.Distillery}" exact="{object.race@{player.ship}}" comment="Player owned?"/>
<check_value negate="1" value="{sector@DS01 Find Station.SFDSector}" exact="{player.sector}"/>
<!--<check_value negate="1" value="DS01.DockSector" exact="{player.sector}"/>-->
</check_any>
</check_all>
</condition>
<timing>
<time min="1s"/>
</timing>
<action>
<do_all>
<cancel_cue cue="DS01 Find Station"/>
</do_all>
</action>
</cue>
<cue name="DS01 Mission Offer" instantiate="static" comment="This will offer the BBS Mission to the player">
<condition>
<check_all>
<cue_completed cue="DS01 Find Station"/>
<cue_activated negate="1" cue="DS01 reset"/>
</check_all>
</condition>
<action>
<do_all>
<create_actor race="argon" name="Copper" character="{random.pilot.argon}"/>
<set_value name="this.DS01Reward" min="101" max="250" profile="decreasing"/>
<offer_bbs_quest quest="DS01" author="Copper" text="Raid the Space Fuel Distillery?\n\n[center][select value='yes']You bet![/select][/center]\n" />
</do_all>
</action>
<cues>
<cue name="DS01 Accept" comment="If the player accepts your quest">
<condition>
<bbs_quest_selected quest="DS01" answer="yes"/>
</condition>
<timing>
<time min="1s" max="2s"/>
</timing>
<action comment="start quest, create transport">
<do_all>
<accept_bbs_quest quest="DS01" />
<incoming_message author="Copper" text="Let's go!" />
<create_ship group="DS01Paddygroup" leader="1" class="tp" race="argon" highlight="1" typename="{random.type@SS_SH_A_TP_1|SS_SH_A_TP}" capturable="0" name="DS01Paddywagon" dockobject="DS01 Find Station.Paddybase" racelogic="0">
<equipment loadout="default">
</equipment>
<cargo>
<ware typename="SS_WARE_MPERSONNEL" min="40" max="60"/>
<ware typename="SS_WARE_HWEAPONS" min="40" max="60"/>
</cargo>
<command command="dock" commandobject="DS01 Find Station.Distillery">
<position/>
</command>
<relations>
<relation relation="friend"/>
<relation relationobject="DS01 Find Station.Distillery" relation="friend"/>
</relations>
<pilot shipname="Argon Police Transport" name="{random.pilot.argon}" race="argon" />
</create_ship>
</do_all>
</action>
<cues>
<cue name="DS01 Paddykilled" comment="Checks if the Paddywagon is dead">
<condition>
<object_destroyed object="DS01Paddywagon"/>
</condition>
<timing>
<time min="1s"/>
</timing>
<action>
<do_all>
<incoming_message author="Copper" text="Mission failed: The transport was destroyed!"/>
<cancel_cue cue="DS01 Find Station"/>
</do_all>
</action>
</cue>
<cue name="DS01 Distillerykilled" comment="Checks if the distillery has been destroyed">
<condition>
<object_destroyed object="DS01 Find Station.Distillery"/>
</condition>
<timing>
<time min="1s"/>
</timing>
<action>
<do_all>
<incoming_message author="Copper" text="Mission failed: The distillery was destroyed! Excessive force is not appreciated."/>
<cancel_cue cue="DS01 Find Station"/>
</do_all>
</action>
</cue>
<cue name="DS01 Paddydocked">
<condition>
<all_objects_are_docked dockobject="DS01 Find Station.Distillery" group="DS01Paddygroup"/>
</condition>
<timing>
<time min="2s" max="3s"/>
</timing>
<action>
<incoming_message author="Copper" text="Great job! We're boarding now, stand by."/>
</action>
<cues>
<cue name="DS01 GJ">
<condition>
<cue_completed cue="DS01 Paddydocked"/>
</condition>
<timing>
<time min="10s" max="20s"/>
</timing>
<action>
<do_all>
<incoming_message author="Copper" text="That's another gang rounded up. Here is your {value@DS01 Mission Offer.DS01Reward},000 credits. You have my thanks, that could have been pretty hairy!"/>
<reward_player>
<money exact="(DS01 Mission Offer.DS01Reward)*1000"/>
<notoriety>
<relation race="argon" exact="10"/>
</notoriety>
</reward_player>
<destroy_object object="DS01Paddywagon" explosion="0"/>
<cancel_cue cue="DS01 Find Station"/>
</do_all>
</action>
</cue>
</cues>
</cue>
</cues>
</cue>
</cues>
</cue>
</cues>
</cue>
</cues>
</cue>
</cues>
</director>