Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9806


Ignore:
Timestamp:
Nov 25, 2013, 1:42:53 PM (11 years ago)
Author:
schlaem
Message:

in progress..

File:
1 edited

Legend:

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

    r9791 r9806  
    33<!--
    44To Do:
    5 
     5- Different Colors of the light!
     6- visibility of light only for a little time
     7- If possible, do the spion with DistanceTriggerBeacon
    68-->
    79<LevelInfo
     
    4446    targets="simpleNotification"
    4547    size=3
    46     displayTime=3.9
     48    displayTime=5.0
    4749    position="0.2, 0, 0.1, 0"
    4850    fontSize="23"
     
    6365
    6466<!-- Spawntrigger -->   
    65         <SpawnPoint team=0 position="0, 0, 0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> <!-- pawndesign=spaceshipcollateraldamage -->
    66        
    67         <EventMultiTrigger name=spawntrigger>
    68           <events>
    69             <trigger>
    70               <SpawnPoint team=0 position="0, 0, 0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
    71                 <EventTrigger invert=true>
    72                   <events>
    73                     <trigger>
    74                       <EventListener event="spacefight.flying2" />
    75                     </trigger>
    76                   </events>
    77                 </EventTrigger>
    78               </SpawnPoint>
    79             </trigger>
    80           </events>
    81         </EventMultiTrigger>   
    82 
    83         <!-- Second Spawntrigger -->
     67        <SpawnPoint team=0 position="0, 0, 0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow > <!-- pawndesign=spaceshipcollateraldamage -->
     68          <EventTrigger invert="true" >
     69            <events>
     70              <trigger>
     71                <EventListener event="flying1" />
     72              </trigger>
     73            </events>
     74          </EventTrigger>
     75        </SpawnPoint>
     76
     77
     78        <SpawnPoint team=0 position="13500, 2500, 11000" lookat="18000,5000,21000" spawnclass=SpaceShip pawndesign=spaceshipswallow delay=0.1><!-- pawndesign=spaceshipcollateraldamage -->
     79          <EventTrigger>
     80            <events>
     81              <trigger>
     82                <EventListener event="flying1" />
     83              </trigger>
     84            </events>
     85          </EventTrigger>
     86        </SpawnPoint>
     87
     88        <!-- Distance-Spawn-Trigger -->
    8489        <DistanceTrigger name=spawntrigger2 position="0, 0, 0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
    8590
     
    99104                        completeMessage="Well done!" />
    100105                <complete-effects>
    101                         <AddQuest questId="spacefight.flying2" />
     106                        <AddQuest questId="spacefight.guard2" />
    102107                </complete-effects>
    103108        </LocalQuest>
     
    114119        </LocalQuest>
    115120
    116         <LocalQuest id="spacefight.flying2">
    117                 <QuestDescription
    118                         title="To the second guard!"
    119                         description="There is another sentry on the way to the big mainship.
    120                                 unfortunately, we also have to destroy this one.
    121 
    122                                 The blinking light shows you the way to the sentry"
    123                         failMessage="You've lost all your ships!"
    124                         completeMessage="" />
    125                 <complete-effects>
    126                         <AddQuest questId="spacefight.guard2" />
    127                 </complete-effects>
    128         </LocalQuest>
    129 
    130121        <LocalQuest id="spacefight.guard2">
    131122                <QuestDescription
    132123                        title="The second guard!"
    133                         description="Destroy also this guard!"
     124                        description="There is also a second guard. The blinking light shows you the direction.
     125                                Destroy also this guard!"
    134126                        failMessage="You've lost all your ships!"
    135127                        completeMessage="" />
     
    215207
    216208<!-- QuestEffectBeacon's -->
    217 
    218209        <!-- START -->
    219210        <QuestEffectBeacon times=0>
     
    239230        </QuestEffectBeacon>
    240231
    241 
    242         <BlinkingBillboard position="13500, 2500, 10500" color="1.0,1.0,1.0" frequency=0.6 amplitude=10 material="Examples/Flare" >
     232        <SimpleNotification message="The blinking light shows you the way!"  broadcast="true">
     233                <events>
     234                        <trigger>
     235                                <EventListener event="flying1" />
     236                        </trigger>
     237                </events>
     238        </SimpleNotification>
     239
     240
     241        <BlinkingBillboard position="13500, 2500, 10500" color="1.0, 1.0, 0.05" frequency=0.6 amplitude=10 material="Examples/Flare" >
    243242          <events>
    244243            <visibility>
    245244              <EventTrigger>
     245                <EventTrigger invert=true>
     246                  <events>
     247                    <trigger>
     248                      <EventListener event="flying2" />
     249                    </trigger>
     250                  </events>
     251                </EventTrigger>
    246252                <events>
    247253                  <trigger>
     
    278284       
    279285        <!-- Guard 2 -->
    280 
    281         <!-- zum testen!
    282286        <QuestEffectBeacon times=0>
    283287                <effects>
    284                         <AddQuest questId="spacefight.flying2" />
    285                 </effects>
    286                 <events>
    287                         <execute>
    288                                 <EventListener event=spawntrigger2 />
    289                         </execute>
    290                 </events>
    291         </QuestEffectBeacon>
    292         -->
    293 
    294         <QuestEffectBeacon times=0>
    295                 <effects>
    296                         <CompleteQuest questId="spacefight.flying2" />
     288                        <CompleteQuest questId="spacefight.guard2" />
    297289                </effects>
    298290                <events>
     
    303295        </QuestEffectBeacon>
    304296
    305         <QuestEffectBeacon times=0>
    306                 <effects>
    307                         <CompleteQuest questId="spacefight.guard2" />
    308                         <CompleteQuest questId="spacefight.upgrade1" />
    309                 </effects>
    310                 <events>
    311                         <execute>
    312                                 <EventListener event="guard2" /> <!-- eigentlich "guard2trigger4", aber funkt. nicht! -->
    313                         </execute>             
    314                 </events>
    315         </QuestEffectBeacon>
     297        <SimpleNotification message="Well done! Catch the spion!"  broadcast="true">
     298                <events>
     299                        <trigger>
     300                                <EventListener event="flying2" />
     301                        </trigger>
     302                </events>
     303        </SimpleNotification>
    316304
    317305        <!-- ESCAPE -->
     
    330318                <events>
    331319                        <execute>
    332                                 <EventListener event="secondPatrol" />
     320                                <EventListener event="escape" />
    333321                        </execute>
    334322                </events>
     
    413401<!-- ---------------------------------------------------------------------- -->
    414402        <!-- Helper-Trigger for first guard -->
    415         <DistanceTrigger name="flying1" position="9000, 0, 0" target="SpaceShip" distance=7000 stayActive="true" delay=0.1 >
     403        <DistanceTrigger name="flying1" position="9000, 0, 0" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
    416404                <EventTrigger>
    417405                        <events>
     
    424412
    425413        <!-- Trigger to activate the upgrade1-Quest -->
    426         <DistanceTrigger name="droneTrigger" position="13500, 2500, 10500" target="SpaceShip" distance=7000 stayActive="true" delay=0 />
    427         <SimpleNotification message="search the drone!?"  broadcast="true">
     414        <DistanceTrigger name="droneTrigger" position="13500, 2500, 10500" target="SpaceShip" distance=2000 stayActive="true" delay=0 />
     415        <SimpleNotification message="Search the drone!?"  broadcast="true">
    428416                <events>
    429417                        <trigger>
     
    431419                        </trigger>
    432420                </events>
     421        </SimpleNotification>   
     422
     423        <!-- Helper-Trigger for the drone(s) -->
     424        <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=0 />
     425        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
     426                <events>
     427                        <trigger>
     428                                <EventListener event="drone1" />
     429                        </trigger>
     430                </events>
    433431        </SimpleNotification>
    434432
    435433        <!-- Helper-Trigger for second guard -->
    436         <DistanceTrigger name="guard2" position="18000,5000,21000" target="SpaceShip" distance=7000 stayActive="true" delay=0.1 >
     434        <DistanceTrigger name="flying2" position="18000,5000,21000" target="SpaceShip" distance=10000 stayActive="true" delay=0.1 >
    437435                <EventTrigger>
    438436                        <events>
     
    444442        </DistanceTrigger>
    445443       
    446 
    447 
    448         <!-- Helper-Trigger for the drone(s) -->
    449         <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=0 />
    450         <SimpleNotification message="Now your are prepared best!"  broadcast="true">
    451                 <events>
    452                         <trigger>
    453                                 <EventListener event="drone1" />
    454                         </trigger>
    455                 </events>
    456         </SimpleNotification>
     444        <!-- Helper-Trigger for the Escape-Quest -->
     445        <DistanceTrigger name="escape" position="18000,5000,21000" target="SpaceShip" distance=10000 stayActive="true" delay=0 >
     446                <EventTrigger>
     447                        <events>
     448                                <trigger>
     449                                        <EventListener event="guard2trigger1" />
     450                                </trigger>
     451                        </events>
     452                </EventTrigger>
     453        </DistanceTrigger>
     454
     455
     456
    457457
    458458        <!-- Helper-Trigger for mainship -->
    459459        <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0 />
    460         <SimpleNotification message="Hauptschiff in Sicht!"  broadcast="true">
     460        <SimpleNotification message="Mainship sighted!"  broadcast="true">
    461461                <events>
    462462                        <trigger>
     
    476476
    477477        <!-- DistanceTrigger for spion -->
    478         <DistanceTrigger name="spionTrigger" position="0,-10000,42000" target="DistanceTriggerBeacon" targetname="spionBeacon" distance=100 stayActive="true" delay=0 beaconMode="identify" />
    479 
     478        <DistanceTrigger name="spionTrigger" position="0,-10000,42000" target="SpaceShip" distance=50 stayActive="true" delay=0 />
    480479        <SimpleNotification message="spion is arrived!"  broadcast="true">
    481480                <events>
     
    486485        </SimpleNotification>
    487486
    488         <DistanceTrigger name="destroyed" position="0,-10000,42000" target="DistanceTriggerBeacon" targetname="spionBeacon" distance=1000 stayActive="true" delay=0 beaconMode="exclude"/>
    489         <SimpleNotification message="spion destroyed!"  broadcast="true">
    490                 <events>
    491                         <trigger>
    492                                 <EventListener event="spion" />
    493                         </trigger>
    494                 </events>
    495         </SimpleNotification>
    496         <SimpleNotification message="quest should be completed"  broadcast="true">
     487        <DistanceTrigger name="destroyed" position="8500,-3000,32000" target="SpaceShip" distance=100000 stayActive="true" delay=0 >
     488                <EventTrigger>
     489                        <events>
     490                                <trigger>
     491                                        <EventListener event="spion" />
     492                                </trigger>
     493                        </events>
     494                </EventTrigger>
     495        </DistanceTrigger>
     496        <SimpleNotification message="Spion destroyed!"  broadcast="true">
    497497                <events>
    498498                        <trigger>
     
    543543    </EventTrigger>
    544544
    545     <SimpleNotification message="Fly to the blinking light!"  broadcast="true">
    546         <events>
    547             <trigger>
    548                 <EventListener event="guard1trigger4" />
    549             </trigger>
    550         </events>
    551     </SimpleNotification>
    552 
    553 
    554545<!-- For Guard 2 -->
    555546<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,4] -->
     
    583574    </EventTrigger>
    584575
    585     <SimpleNotification message="Catch the spion"  broadcast="true">
    586         <events>
    587             <trigger>
    588                 <EventListener event="guard1trigger4" />
    589             </trigger>
    590         </events>
    591     </SimpleNotification>
     576        <SimpleNotification message="first"  broadcast="true">
     577                <events>
     578                        <trigger>
     579                                <EventListener event="guard2trigger1" />
     580                        </trigger>
     581                </events>
     582        </SimpleNotification>
    592583
    593584<!-- For Escape -->
    594        
     585        <EventTrigger name="spion5" activations="1" stayactive="true" delay=0.1 >
     586          <events>
     587            <trigger>
     588              <EventListener event="spion" />
     589            </trigger>
     590          </events>
     591        </EventTrigger>
    595592
    596593<!-- For last fight -->
     
    735732  <events>
    736733    <visibility>
    737       <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     734      <EventListener event="guard1trigger4" />
    738735    </visibility>
    739736  </events>
     
    755752      <events>
    756753        <activity>
    757           <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     754          <EventListener event="guard1trigger4" />
    758755        </activity>
    759756      </events>
     
    765762  <events>
    766763    <visibility>
    767       <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     764      <EventListener event="guard1trigger4" />
    768765    </visibility>
    769766  </events>
     
    785782      <events>
    786783        <activity>
    787           <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     784          <EventListener event="guard1trigger4" />
    788785        </activity>
    789786      </events>
     
    795792  <events>
    796793    <visibility>
    797       <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     794      <EventListener event="guard1trigger4" />
    798795    </visibility>
    799796  </events>
     
    815812      <events>
    816813        <activity>
    817           <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     814          <EventListener event="guard1trigger4" />
    818815        </activity>
    819816      </events>
     
    825822  <events>
    826823    <visibility>
    827       <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     824      <EventListener event="guard1trigger4" />
    828825    </visibility>
    829826  </events>
     
    845842      <events>
    846843        <activity>
    847           <EventListener event="flying2" /> <!-- "guard1trigger4" -->
     844          <EventListener event="guard1trigger4" />
    848845        </activity>
    849846      </events>
     
    865862    <WaypointController team=1>
    866863      <waypoints>
    867         <Model mesh="cube.mesh" scale=100 position="0,-10000,42000" /> <!-- "-7000,-10000,42000" -->
    868         <Model mesh="cube.mesh" scale=100 position="-12000, -22000, 25000" />
     864        <Model mesh="cube.mesh" scale=0 position="0,-10000,42000" /> <!-- "-7000,-10000,42000" -->
     865        <Model mesh="cube.mesh" scale=0 position="-12000, -22000, 25000" />
    869866      </waypoints>
    870867      <events>
     
    875872    </WaypointController>
    876873  </controller>
     874<!--
    877875  <attached>
    878876    <DistanceTriggerBeacon name="spionBeacon" />
    879877  </attached>
     878-->
    880879</SpaceShip>
    881880
     
    885884  <events>
    886885    <visibility>
    887       <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     886      <EventListener event="guard2trigger4" />
    888887    </visibility>
    889888  </events>
     
    905904      <events>
    906905        <activity>
    907           <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     906          <EventListener event="guard2trigger4" />
    908907        </activity>
    909908      </events>
     
    915914  <events>
    916915    <visibility>
    917       <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     916      <EventListener event="guard2trigger4" />
    918917    </visibility>
    919918  </events>
     
    935934      <events>
    936935        <activity>
    937           <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     936          <EventListener event="guard2trigger4" />
    938937        </activity>
    939938      </events>
     
    945944  <events>
    946945    <visibility>
    947       <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     946      <EventListener event="guard2trigger4" />
    948947    </visibility>
    949948  </events>
     
    965964      <events>
    966965        <activity>
    967           <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     966          <EventListener event="guard2trigger4" />
    968967        </activity>
    969968      </events>
     
    975974  <events>
    976975    <visibility>
    977       <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     976      <EventListener event="guard2trigger4" />
    978977    </visibility>
    979978  </events>
     
    995994      <events>
    996995        <activity>
    997           <EventListener event=spawntrigger2 /> <!-- "guard2trigger4" -->
     996          <EventListener event="guard2trigger4" />
    998997        </activity>
    999998      </events>
     
    10061005  <events>
    10071006    <visibility>
    1008       <EventListener event=spawntrigger2 /> <!-- "escaped" -->
     1007      <EventListener event="escaped" />
    10091008    </visibility>
    10101009  </events>
     
    10261025      <events>
    10271026        <activity>
    1028           <EventListener event=spawntrigger2 /> <!-- "escaped" -->
     1027          <EventListener event="escaped" />
    10291028        </activity>
    10301029      </events>
     
    10361035  <events>
    10371036    <visibility>
    1038       <EventListener event=spawntrigger2 /> <!-- "escaped" -->
     1037      <EventListener event="escaped" />
    10391038    </visibility>
    10401039  </events>
     
    10561055      <events>
    10571056        <activity>
    1058           <EventListener event=spawntrigger2 /> <!-- "escaped" -->
     1057          <EventListener event="escaped" />
    10591058        </activity>
    10601059      </events>
Note: See TracChangeset for help on using the changeset viewer.