Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9788 for code/branches


Ignore:
Timestamp:
Nov 18, 2013, 3:18:13 PM (11 years ago)
Author:
schlaem
Message:

new Problem: Quest can't be completed with a DistanceTrigger witch DistanceTriggerBeacon. Problems in level: The spion quest can't be completed because the DistanceTriggerBeacon-Problem. Also a Problem is, that if the DistanceTrigger works, how can I prevent that both triggers (spion destroyd and spion excaped) would be raised?

Location:
code/branches/levelMichael/data/levels
Files:
2 edited

Legend:

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

    r9786 r9788  
    6363
    6464<!-- Spawntrigger -->   
    65         <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
     65        <SpawnPoint team=0 position="13500, 2500, 11500" lookat="0,0,20000" spawnclass=SpaceShip pawndesign=spaceshipswallow /> <!-- pawndesign=spaceshipcollateraldamage -->
    6666       
    6767        <EventMultiTrigger name=spawntrigger>
    6868          <events>
    6969            <trigger>
    70               <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow >
     70              <SpawnPoint team=0 position="13500, 2500, 11500" lookat="0,0,20000" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
    7171                <EventTrigger invert=true>
    7272                  <events>
     
    8282
    8383        <!-- Second Spawntrigger -->
    84         <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
     84        <DistanceTrigger name=spawntrigger2 position="13500, 2500, 11500" target="SpaceShip" distance=10 stayActive="true" delay=0 />
    8585
    8686        <!-- Drone pickup -->
     
    134134                <complete-effects>
    135135                        <AddQuest questId="spacefight.guard2" />
     136                        <AddQuest questId="spacefight.escape" />
    136137                </complete-effects>
    137138        </LocalQuest>
     
    143144                        failMessage="You've lost all your ships!"
    144145                        completeMessage="" />
    145                 <complete-effects>
    146                         <AddQuest questId="spacefight.escape" />
    147                 </complete-effects>
    148146        </LocalQuest>
    149147
     
    263261        </QuestEffectBeacon>
    264262
     263
    265264        <BlinkingBillboard position="13500, 2500, 10500" color="1.0,1.0,1.0" frequency=0.6 amplitude=10 material="Examples/Flare" >
    266265          <events>
     
    327326        </QuestEffectBeacon>
    328327
    329         <!-- Escape -->
     328        <!-- ESCAPE -->
    330329        <SimpleNotification message="A spion is startet to the mainship!"  broadcast="true">
    331330                <events>
     
    342341                <events>
    343342                        <execute>
    344                                 <EventListener event="guard2trigger1" />
     343                                <EventListener event="secondPatrol" />
    345344                        </execute>
    346345                </events>
    347346        </QuestEffectBeacon>
    348 
     347       
     348        <!-- ESCAPE ENDING -->
     349        <!-- Spion escaped -->
    349350        <QuestEffectBeacon times=0>
    350351                <effects>
    351352                        <CompleteQuest questId="spacefight.escape" />
    352                         <CompleteQuest questId="spacefight.mainfight(max)" />
    353                 </effects>
    354                 <events>
    355                         <execute>
    356                                 <EventListener event="escaped" />
     353                        <AddQuest questId="spacefight.mainfight(max)" />
     354                </effects>
     355                <events>
     356                        <execute>
     357                                <EventListener event="spionTrigger" />
    357358                        </execute>
    358359                </events>
    359360        </QuestEffectBeacon>
    360361
     362        <!-- Spion destroyed -->
    361363        <QuestEffectBeacon>
    362364                <effects>
     
    366368                <events>
    367369                        <execute>
    368                                 <EventListener event="notEscaped" />
     370                                <EventListener event="destroyed" />
    369371                        </execute>
    370372                </events>
     
    463465        </SimpleNotification>
    464466
    465         <!-- Timer for the Escape-sequence
    466         <Timer interval=120 bLoop="false" bKillAfterCall="true" executor="" >
    467         -->
     467        <!-- DistanceTrigger for spion -->
     468        <DistanceTrigger name="spionTrigger" position="0,-10000,42000" target="DistanceTriggerBeacon" targetname="spionBeacon" distance=100 stayActive="true" delay=0 beaconMode="identify" />
     469
     470        <SimpleNotification message="spion is arrived!"  broadcast="true">
     471                <events>
     472                        <trigger>
     473                                <EventListener event="spionTrigger" />
     474                        </trigger>
     475                </events>
     476        </SimpleNotification>
     477
     478        <!--   
     479        <Trigger name="destroyed" mode="and" stayActive="true"> -->
     480                <DistanceTrigger name="destroyed" position="0,-10000,42000" target="DistanceTriggerBeacon" targetname="spionBeacon" distance=1000 stayActive="true" delay=0 beaconMode="exclude"/>
     481                <!-- <EventTrigger>
     482                        <events>
     483                                <trigger>
     484                                        <EventListener event="spionEvent" />
     485                                </trigger>
     486                        </events>
     487                </EventTrigger>
     488        </Trigger> -->
     489
     490        <SimpleNotification message="spion destroyed!"  broadcast="true">
     491                <events>
     492                        <trigger>
     493                                <EventListener event="spion" />
     494                        </trigger>
     495                </events>
     496        </SimpleNotification>
     497        <SimpleNotification message="quest should be completed"  broadcast="true">
     498                <events>
     499                        <trigger>
     500                                <EventListener event="destroyed" />
     501                        </trigger>
     502                </events>
     503        </SimpleNotification>
     504
     505        <BlinkingBillboard position="0,-10000,42000" frequency=0.5 color="1.0,1.0,1.0" amplitude=10 material="Examples/Flare" />
     506       
    468507
    469508        <!-- Rescue the commander -->
     
    610649
    611650<!-- For Escape -->
    612         <!-- If the spion is destroyed -->
    613         <Trigger name="notEscaped" mode="xor" stayActive="true" >
    614                 <DistanceTrigger position="-7000,-10000,42000" target="SpaceShip" distance=100 stayActive="true" delay=0 />
    615                
    616                 <!-- If the spion is escaped -->
    617                 <Trigger name="escaped" mode="xor" stayActive="true" >
    618                         <DistanceTrigger position="-7000,-10000,42000" target="SpaceShip" distance=100 stayActive="true" delay=0 />
    619                         <EventTrigger activations="1" >
    620                                 <events>
    621                                         <trigger>
    622                                                 <EventListener event="spion" />
    623                                         </trigger>
    624                                 </events>
    625                         </EventTrigger>
    626                 </Trigger>
    627         </Trigger>
     651        <EventTrigger name="spionEvent" activations="1" stayactive="true" delay=0>
     652                <events>
     653                        <trigger>
     654                                <EventListener event="spion" />
     655                        </trigger>
     656                </events>
     657        </EventTrigger>
     658       
    628659
    629660<!-- For last fight -->
     
    885916</SpaceShip>
    886917
    887 <!-- Escape-Ship -->
     918<!-- Escape-Ship (Spion) -->
    888919<SpaceShip position="17000,4000,22000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    889920  <events>
    890921    <visibility>
    891       <EventListener event="guard1trigger4" />
     922      <EventListener event="guard2trigger1" />
    892923    </visibility>
    893924  </events>
     
    898929    <WaypointController team=1>
    899930      <waypoints>
    900         <Model mesh="cube.mesh" scale=1000 position="-7000,-10000,42000" />
    901         <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" />
     931        <Model mesh="cube.mesh" scale=100 position="0,-10000,42000" /> <!-- "-7000,-10000,42000" -->
     932        <Model mesh="cube.mesh" scale=100 position="-12000, -22000, 25000" />
    902933      </waypoints>
    903934      <events>
     
    908939    </WaypointController>
    909940  </controller>
     941  <attached>
     942    <DistanceTriggerBeacon name="spionBeacon" />
     943  </attached>
    910944</SpaceShip>
    911945
  • code/branches/levelMichael/data/levels/templates/spaceshipHXYSL.oxt

    r8858 r9788  
    2525    <attached>
    2626      <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.mesh" />
     27      <DistanceTriggerBeacon name="player" />
    2728    </attached>
    2829    <collisionShapes>
Note: See TracChangeset for help on using the changeset viewer.