Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2013, 11:36:21 AM (11 years ago)
Author:
schlaem
Message:

new Problem: it isn't possible to complete a running quest with a EventTrigger from a destroyed object. (once in EventTrigger/guard1 and once in EventTrigger/guard2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelMichael/data/levels/Spacefight.oxw

    r9752 r9757  
    199199<!-- QuestEffectBeacon's -->
    200200
     201        <!-- START -->
    201202        <QuestEffectBeacon times=0>
    202203                <effects>
     
    208209                        </execute>
    209210                </events>
    210                 <!--<attached>
    211                         <BlinkingBillboard position="8000,0,0" colour="1,0,0" frequency=0.5 amplitude=5 material="Examples/Flare" />
    212                 </attached> -->
    213211        </QuestEffectBeacon>
    214212
    215         <QuestEffectBeacon times=1>
     213        <!-- guard 1 -->
     214        <QuestEffectBeacon times=0>
    216215                <effects>
    217216                        <CompleteQuest questId="spacefight.flying1" />
     
    224223        </QuestEffectBeacon>
    225224
    226         <QuestEffectBeacon times=1>
    227                 <effects>
    228                         <CompleteQuest questId="spacefight.guard1" />
    229                 </effects>
    230                 <events>
    231                         <execute>
    232                                 <EventListener event="guard1trigger1" />
    233                         </execute>
    234                 </events>
    235         </QuestEffectBeacon>
    236 
    237225        <QuestEffectBeacon times=0>
    238226                <events>
    239227                        <execute>
    240                                 <EventListener event=spawntrigger2 />
     228                                <EventListener event="flying2" /> <!-- eigentlich "guard1trigger4", aber funkt. nicht! -->
    241229                        </execute>
    242230                </events>
    243                 <!-- <attached>
    244                         <BlinkingBillboard position="18000, 5000, 21000" color="1,0,0" frequency=0.6 amplitude=10 material="Examples/Flare" />
    245                 </attached> -->
     231                <effects>
     232                        <CompleteQuest questId="spacefight.guard1" />
     233                </effects>
     234                <attached>
     235                        <BlinkingBillboard position="13500, 2500, 10500" color="1,1,0" frequency=0.6 amplitude=10 material="Examples/Flare" />
     236                </attached>
    246237        </QuestEffectBeacon>
     238       
     239        <!-- guard 2 -->
     240        <QuestEffectBeacon times=0>
     241                <effects>
     242                        <CompleteQuest questId="spacefight.flying2" />
     243                </effects>
     244                <events>
     245                        <execute>
     246                                <EventListener event="flying2" />
     247                        </execute>             
     248                </events>
     249        </QuestEffectBeacon>
     250
     251        <QuestEffectBeacon times=0>
     252                <effects>
     253                        <CompleteQuest questId="spacefight.guard2" />
     254                </effects>
     255                <events>
     256                        <execute>
     257                                <EventListener event="flying3" /> <!-- eigentlich "guard2trigger4", aber funkt. nicht! -->
     258                        </execute>             
     259                </events>
     260        </QuestEffectBeacon>
     261
     262        <!-- Escape -->
    247263
    248264<!-- ---------------------------------------------------------------------- -->
     
    252268  <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
    253269
     270  <DistanceTrigger name="flying2" position="13500, 2500, 10500" target="SpaceShip" distance=7000 stayActive="true" delay=0 />
     271  <SimpleNotification message="guard 2 in Sicht!"  broadcast="true">
     272      <events>
     273          <trigger>
     274              <EventListener event="flying2" />
     275          </trigger>
     276      </events>
     277  </SimpleNotification>
     278
     279  <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0 />
     280  <SimpleNotification message="Hauptschiff in Sicht!"  broadcast="true">
     281      <events>
     282          <trigger>
     283              <EventListener event="flying3" />
     284          </trigger>
     285      </events>
     286  </SimpleNotification>
     287
    254288<!-- ----------------------------------------------------- -->
    255289
    256290<!-- EVENTTRIGGER -->
    257 
    258 <!--
    259  <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
     291   
     292    <!-- for guard 1 -->
     293    <SimpleNotification message="first"  broadcast="true">
     294        <events>
     295            <trigger>
     296                <EventListener event="guard1trigger1" />
     297            </trigger>
     298        </events>
     299    </SimpleNotification>
     300
     301    <SimpleNotification message="second"  broadcast="true">
     302        <events>
     303            <trigger>
     304                <EventListener event="guard1trigger2" />
     305            </trigger>
     306        </events>
     307    </SimpleNotification>
     308
     309    <SimpleNotification message="thirth"  broadcast="true">
     310        <events>
     311            <trigger>
     312                <EventListener event="guard1trigger3" />
     313            </trigger>
     314        </events>
     315    </SimpleNotification>
     316
     317    <SimpleNotification message="all shot! Fly to the blinking light"  broadcast="true">
     318        <events>
     319            <trigger>
     320                <EventListener event="guard1trigger4" />
     321            </trigger>
     322        </events>
     323    </SimpleNotification>
     324
     325<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
     326    <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
    260327      <events>
    261328        <trigger>
     
    285352      </EventTrigger>
    286353    </EventTrigger>
    287 -->
    288 
     354
     355<!-- for guard 2 -->
    289356
    290357    <SimpleNotification message="first"  broadcast="true">
    291358        <events>
    292359            <trigger>
    293                 <EventListener event="guard1trigger1" />
     360                <EventListener event="guard2trigger1" />
    294361            </trigger>
    295362        </events>
    296363    </SimpleNotification>
    297364
    298     <SimpleNotification message="shot"  broadcast="true">
    299         <events>
    300             <trigger>
    301                 <EventListener event="Patrol" />
     365    <SimpleNotification message="second"  broadcast="true">
     366        <events>
     367            <trigger>
     368                <EventListener event="guard2trigger2" />
    302369            </trigger>
    303370        </events>
    304371    </SimpleNotification>
    305372
    306     <SimpleNotification message="shot"  broadcast="true">
    307         <events>
    308             <trigger>
    309                 <EventListener event="firstPatrol" />
     373    <SimpleNotification message="thirth"  broadcast="true">
     374        <events>
     375            <trigger>
     376                <EventListener event="guard2trigger3" />
    310377            </trigger>
    311378        </events>
    312379    </SimpleNotification>
    313380
    314 
    315 
    316 
    317     <SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" visible="true" radarname="Patrol">
    318         <events>
    319             <visibility>
    320                 <EventListener event=spawntrigger2 />
    321             </visibility>
    322         </events>
    323         <templates>
    324             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
    325         </templates>
    326         <controller>
    327             <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    328                 <waypoints>
    329                     <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
    330                     <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
    331                 </waypoints>
    332                 <events>
    333                     <activity>
    334                         <EventListener event=spawntrigger2 /> <!-- activates enemies-->
    335                      </activity>
    336                 </events>
    337             </WaypointPatrolController>
    338         </controller>
    339     </SpaceShip>
    340 
    341 
    342 <!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
    343     <EventTrigger name="guard1trigger4" activations="1" stayactive="true">
     381    <SimpleNotification message="all shot! Fly to the blinking light"  broadcast="true">
     382        <events>
     383            <trigger>
     384                <EventListener event="guard2trigger4" />
     385            </trigger>
     386        </events>
     387    </SimpleNotification>
     388
     389<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
     390    <EventTrigger name="guard2trigger4" activations="1" stayactive="true" delay=0.1>
    344391      <events>
    345392        <trigger>
    346           <EventListener event="firstPatrol" />
     393          <EventListener event="secondPatrol" />
    347394        </trigger>
    348395      </events>
    349       <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1>
     396      <EventTrigger name="guard2trigger3" activations="1" stayactive="true" delay=0.1>
    350397        <events>
    351398          <trigger>
    352             <EventListener event="firstPatrol" />
     399            <EventListener event="secondPatrol" />
    353400          </trigger>
    354401        </events>
    355         <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1>
     402        <EventTrigger name="guard2trigger2" activations="1" stayactive="true" delay=0.1>
    356403          <events>
    357404            <trigger>
    358               <EventListener event="firstPatrol" />
     405              <EventListener event="secondPatrol" />
    359406            </trigger>
    360407          </events>
    361           <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1>
     408          <EventTrigger name="guard2trigger1" activations="1" stayactive="true" delay=0.1>
    362409            <events>
    363410              <trigger>
    364                 <EventListener event="firstPatrol" />
     411                <EventListener event="secondPatrol" />
    365412              </trigger>
    366413            </events>
     
    373420
    374421<!-- Passive Piraten: Guard 1 -->
    375 <!--
    376 <SpaceShip position="8000,1000,0" lookat="-1,0,0" name=firstPatrol radarname="Patrol">
     422
     423<SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
    377424  <events>
    378425    <visibility>
     
    393440</SpaceShip>
    394441
    395 <SpaceShip position="8000,0,0" lookat="-1,0,0" name=firstPatrol radarname="Patrol">
     442<SpaceShip position="8000,0,0" lookat="-1,0,0" name="firstPatrol" radarname="Patrol">
    396443  <events>
    397444    <visibility>
     
    411458  </controller>
    412459</SpaceShip>
    413 -->
     460
    414461
    415462<!-- Angreiffende Piraten: Guard 1 -->
    416 <!--
    417 <SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name=firstPatrol visible="true" radarname="Patrol" >
     463
     464<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name="firstPatrol" visible="true" radarname="Patrol" >
    418465  <events>
    419466    <visibility>
     
    439486</SpaceShip>
    440487
    441 <SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name=firstPatrol visible="true" radarname="Patrol">
     488<SpaceShip position="8000,-500,-500" lookat="8000,1000,1000" name="firstPatrol" visible="true" radarname="Patrol">
    442489  <events>
    443490    <visibility>
     
    462509  </controller>
    463510</SpaceShip>
    464 -->
     511
    465512<!-- Angreiffende Piraten: Guard 2 -->
    466 <SpaceShip position="8000,1000,0" lookat="19000,4900,21000" name=secondPatrol visible="true" radarname="Patrol">
     513<SpaceShip position="19000,5000,21000" lookat="19000,4900,21000" name="secondPatrol" visible="true" radarname="Patrol">
    467514  <events>
    468515    <visibility>
    469       <EventListener event=guard1trigger1 />
     516      <EventListener event="guard1trigger4" />
    470517    </visibility>
    471518  </events>
     
    487534      <events>
    488535        <activity>
    489           <EventListener event=guard1trigger1 />
     536          <EventListener event="guard1trigger4" />
    490537        </activity>
    491538      </events>
     
    494541</SpaceShip>
    495542
    496 <SpaceShip position="17000,5000,21000" lookat="17000,5100,21000" name=secondPatrol visible="true" radarname="Patrol">
     543<SpaceShip position="17000,5000,21000" lookat="17000,5100,21000" name="secondPatrol" visible="true" radarname="Patrol">
    497544  <events>
    498545    <visibility>
    499       <EventListener event=guard1trigger4 />
     546      <EventListener event="guard1trigger4" />
    500547    </visibility>
    501548  </events>
     
    517564      <events>
    518565        <activity>
    519           <EventListener event=guard1trigger4 />
     566          <EventListener event="guard1trigger4" />
    520567        </activity>
    521568      </events>
     
    524571</SpaceShip>
    525572
    526 <SpaceShip position="18000,4000,21000" lookat="17000,4000,21000" name=secondPatrol visible="true" radarname="Patrol">
     573<SpaceShip position="18000,4000,21000" lookat="17000,4000,21000" name="secondPatrol" visible="true" radarname="Patrol">
    527574  <events>
    528575    <visibility>
    529       <EventListener event=guard1trigger4 />
     576      <EventListener event="guard1trigger4" />
    530577    </visibility>
    531578  </events>
     
    547594      <events>
    548595        <activity>
    549           <EventListener event=guard1trigger4 />
     596          <EventListener event="guard1trigger4" />
    550597        </activity>
    551598      </events>
     
    554601</SpaceShip>
    555602
    556 <SpaceShip position="18000,6000,21000" lookat="19000,6000,21000" name=secondPatrol visible="true" radarname="Patrol">
     603<SpaceShip position="18000,6000,21000" lookat="19000,6000,21000" name="secondPatrol" visible="true" radarname="Patrol">
    557604  <events>
    558605    <visibility>
    559       <EventListener event=guard1trigger4 />
     606      <EventListener event="guard1trigger4" />
    560607    </visibility>
    561608  </events>
     
    577624      <events>
    578625        <activity>
    579           <EventListener event=guard1trigger4 />
     626          <EventListener event="guard1trigger4" />
    580627        </activity>
    581628      </events>
Note: See TracChangeset for help on using the changeset viewer.