Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9785


Ignore:
Timestamp:
Nov 14, 2013, 3:02:15 PM (11 years ago)
Author:
schlaem
Message:

pirates bi the mainship and the logic for the spion

File:
1 edited

Legend:

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

    r9784 r9785  
    172172                        completeMessage="YEEEHAAA!
    173173                                You managed it! For that you will get the golden medal of the united space armies." />
     174                <complete-effects>
     175                        <AddQuest questId="spacefight.rescue" />
     176                        <!--
     177                        <BlinkingBillboard position="-12100, -22000, 25000" color="1.0,1.0,1.0" frequency=0.6 amplitude=2 material="Examples/Flare" visibility="true" />
     178                        -->
     179                </complete-effects>
    174180        </LocalQuest>
    175181
     
    186192                        completeMessage="YEEEHAAA!
    187193                                You managed it! For that you will get the golden medal of the united space armies." />
     194                <complete-effects>
     195                        <AddQuest questId="spacefight.rescue" />
     196                        <!--
     197                        <BlinkingBillboard position="-12100, -22000, 25000" color="1.0,1.0,1.0" frequency=0.6 amplitude=2 material="Examples/Flare" visibility="true" />
     198                        -->
     199                </complete-effects>
    188200        </LocalQuest>
    189201<!-- -->
     
    192204                <QuestDescription
    193205                        title="Rescue and place the bomb"
    194                         description="Now you have to free the commander and place the bomb."
     206                        description="Now you have to free the commander and place a bomb in the pirates' mainship."
    195207                        failMessage="You've lost all your ships!"
    196208                        completeMessage="" />
     209                <complete-effects>
     210                        <AddQuest questId="spacefight.moveAway" />
     211                </complete-effects>
    197212        </LocalQuest>
    198213
     
    205220        </LocalQuest>
    206221
     222        <!-- GRAND EXPLOSION IF POSSIBLE -->
     223        <!-- Next Part -->
     224
    207225       
    208226<!-- ---------------------------------------------------------------------- -->
     
    245263        </QuestEffectBeacon>
    246264
    247         <BlinkingBillboard position="13500, 2500, 10500" color="1,1,1" frequency=0.6 amplitude=10 material="Examples/Flare" >
     265        <BlinkingBillboard position="13500, 2500, 10500" color="1.0,1.0,1.0" frequency=0.6 amplitude=10 material="Examples/Flare" >
    248266          <events>
    249267            <visibility>
     
    353371        </QuestEffectBeacon>
    354372
     373        <!-- LAST FIGHT -->
     374        <!-- Spion destroyed -->
     375        <QuestEffectBeacon>
     376                <effects>
     377                        <CompleteQuest questId="spacefight.mainfight(min)" />
     378                </effects>
     379                <events>
     380                        <execute>
     381                                <EventListener event="guard3trigger4" />
     382                        </execute>
     383                </events>
     384        </QuestEffectBeacon>
     385
     386        <!-- Spion escaped -->
     387        <QuestEffectBeacon>
     388                <effects>
     389                        <CompleteQuest questId="spacefight.mainfight(max)" />
     390                </effects>
     391                <events>
     392                        <execute>
     393                                <EventListener event="guard3trigger6" />
     394                        </execute>
     395                </events>
     396        </QuestEffectBeacon>
     397
     398        <!-- COMMANDER RESCUE -->
     399        <QuestEffectBeacon>
     400                <effects>
     401                        <CompleteQuest questId="spacefight.rescue" />
     402                </effects>
     403                <events>
     404                        <execute>
     405                                <EventListener event="dock" />
     406                        </execute>
     407                </events>
     408        </QuestEffectBeacon>
     409
     410        <!-- FLY AWAY -->
     411        <QuestEffectBeacon>
     412                <effects>
     413                        <CompleteQuest questId="spacefight.moveAway" />
     414                </effects>
     415                <events>
     416                        <execute>
     417                                <EventListener event="" />
     418                        </execute>
     419                </events>
     420        </QuestEffectBeacon>
     421
    355422<!-- ---------------------------------------------------------------------- -->
    356423        <!--Helper-Trigger for first guard -->
     
    394461                        </trigger>
    395462                </events>
    396         </SimpleNotification>   
     463        </SimpleNotification>
     464
     465        <DistanceTrigger name="dock" position="-12100, -22000, 25000" target="SpaceShip" distance=100 stayActive="true" delay=0 />
    397466
    398467<!-- ----------------------------------------------------- -->
     
    536605
    537606<!-- For Escape -->
    538         <!-- If the spion is escaped -->
    539         <Trigger name="escaped" mode="xor" stayActive="true" >
    540                 <DistanceTrigger position="-7000,-10000,42000" target="SpaceShip" distance=100 stayActive="true" delay=0 />
    541                 <EventTrigger activations="1" >
    542                         <events>
    543                                 <trigger>
    544                                         <EventListener event="spion" />
    545                                 </trigger>
    546                         </events>
    547                 </EventTrigger>
    548         </Trigger>
    549 
    550607        <!-- If the spion is destroyed -->
    551608        <Trigger name="notEscaped" mode="xor" stayActive="true" >
     
    563620                        </EventTrigger>
    564621                </Trigger>
    565         </Trigger>             
     622        </Trigger>
     623
     624<!-- For last fight -->
     625    <EventTrigger name="guard3trigger5" activations="1" stayactive="true" delay=0.1 >
     626      <events>
     627        <trigger>
     628          <EventListener event="lastGuard" />
     629        </trigger>
     630      </events>
     631      <EventTrigger name="guard3trigger5" activations="1" stayactive="true" delay=0.1 >
     632        <events>
     633          <trigger>
     634            <EventListener event="lastGuard" />
     635          </trigger>
     636        </events>
     637        <EventTrigger name="guard3trigger4" activations="1" stayactive="true" delay=0.1 >
     638          <events>
     639            <trigger>
     640              <EventListener event="lastGuard" />
     641            </trigger>
     642          </events>
     643          <EventTrigger name="guard3trigger3" activations="1" stayactive="true" delay=0.1 >
     644            <events>
     645              <trigger>
     646                <EventListener event="lastGuard" />
     647              </trigger>
     648            </events>
     649            <EventTrigger name="guard3trigger2" activations="1" stayactive="true" delay=0.1 >
     650              <events>
     651                <trigger>
     652                  <EventListener event="lastGuard" />
     653                </trigger>
     654              </events>
     655              <EventTrigger name="guard3trigger1" activations="1" stayactive="true" delay=0.1 >
     656                <events>
     657                  <trigger>
     658                    <EventListener event="lastGuard" />
     659                  </trigger>
     660                </events>
     661              </EventTrigger>
     662            </EventTrigger>
     663          </EventTrigger>
     664        </EventTrigger>
     665      </EventTrigger>
     666    </EventTrigger>                     
    566667       
    567668<!-- ----------------------------------------------------- -->
     
    783884  <events>
    784885    <visibility>
    785       <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     886      <EventListener event="guard1trigger4" />
    786887    </visibility>
    787888  </events>
     
    793894      <waypoints>
    794895        <Model mesh="cube.mesh" scale=1000 position="-7000,-10000,42000" />
    795         <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" />
     896        <Model mesh="cube.mesh" scale=1 position="-12000, -22000, 25000" />
    796897      </waypoints>
    797898      <events>
     
    806907<!-- Mainship - Pirates -->
    807908
    808 <SpaceShip position="-12000, -22000, 26000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    809   <events>
    810     <visibility>
    811       <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" -->
     909<SpaceShip position="-12000, -22000, 26000" lookat="-12000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" >
     910  <events>
     911    <visibility>
     912      <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    812913    </visibility>
    813914  </events>
     
    829930      <events>
    830931        <activity>
    831           <EventListener event="guard2trigger1" />
     932          <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    832933        </activity>
    833934      </events>
     
    836937</SpaceShip>
    837938
    838 <SpaceShip position="-12000, -21000, 25000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    839   <events>
    840     <visibility>
    841       <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" -->
     939<SpaceShip position="-12000, -21000, 25000" lookat="-12000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" >
     940  <events>
     941    <visibility>
     942      <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    842943    </visibility>
    843944  </events>
     
    859960      <events>
    860961        <activity>
    861           <EventListener event="guard2trigger1" />
     962          <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    862963        </activity>
    863964      </events>
     
    866967</SpaceShip>
    867968
    868 <SpaceShip position="-12000, -22000, 24000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    869   <events>
    870     <visibility>
    871       <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" -->
     969<SpaceShip position="-12000, -22000, 24000" lookat="-12000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" >
     970  <events>
     971    <visibility>
     972      <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    872973    </visibility>
    873974  </events>
     
    889990      <events>
    890991        <activity>
    891           <EventListener event="guard2trigger1" />
     992          <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    892993        </activity>
    893994      </events>
     
    896997</SpaceShip>
    897998
    898 <SpaceShip position="-12000, -23000, 25000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    899   <events>
    900     <visibility>
    901       <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" -->
     999<SpaceShip position="-12000, -23000, 25000" lookat="-12000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" >
     1000  <events>
     1001    <visibility>
     1002      <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    9021003    </visibility>
    9031004  </events>
     
    9191020      <events>
    9201021        <activity>
    921           <EventListener event="guard2trigger1" />
     1022          <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
    9221023        </activity>
    9231024      </events>
     
    9271028
    9281029<!-- Additional pirates if the spion has warned the mainship -->
    929 <SpaceShip position="-11700, -21700, 25000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    930   <events>
    931     <visibility>
    932       <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" -->
     1030<SpaceShip position="-11700, -21700, 25000" lookat="-12000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" >
     1031  <events>
     1032    <visibility>
     1033      <EventListener event=spawntrigger2 /> <!-- "escaped" -->
    9331034    </visibility>
    9341035  </events>
     
    9501051      <events>
    9511052        <activity>
    952           <EventListener event="guard2trigger1" />
     1053          <EventListener event=spawntrigger2 /> <!-- "escaped" -->
    9531054        </activity>
    9541055      </events>
     
    9571058</SpaceShip>
    9581059
    959 <SpaceShip position="-12700, -22700, 25000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" >
    960   <events>
    961     <visibility>
    962       <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" -->
     1060<SpaceShip position="-12700, -22700, 25000" lookat="-12000, -22000, 25000" name="lastGuard" visible="true" radarname="Pirate" >
     1061  <events>
     1062    <visibility>
     1063      <EventListener event=spawntrigger2 /> <!-- "escaped" -->
    9631064    </visibility>
    9641065  </events>
     
    9801081      <events>
    9811082        <activity>
    982           <EventListener event="guard2trigger1" />
     1083          <EventListener event=spawntrigger2 /> <!-- "escaped" -->
    9831084        </activity>
    9841085      </events>
Note: See TracChangeset for help on using the changeset viewer.