Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

bug with the drone fixed.

File:
1 edited

Legend:

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

    r9758 r9767  
    2424  include("templates/spaceshipSwallow.oxt")
    2525  include("templates/pickupRepresentationTemplates.oxt")
     26  include("templates/spaceshipCollateralDamage.oxt")
    2627?>
    2728<?lua
     
    6263
    6364<!-- Spawntrigger -->
    64 
    6565        <EventMultiTrigger name=spawntrigger>
    6666          <events>
    6767            <trigger>
    68               <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow>
     68              <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateraldamage >
    6969                <EventTrigger invert=true>
    7070                  <events>
     
    7979        </EventMultiTrigger>
    8080
    81     <!-- Drone pickup -->
    82    
    83     <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="20" respawnTime="30" maxSpawnedItems="2" />
     81        <!-- Drone pickup -->
     82        <PickupSpawner pickup=dronepickup position="9750, -5350, 5650" triggerDistance="20" respawnTime="30" maxSpawnedItems="2" />
    8483
    8584<!-- QUEST DESCRIPTION-->
    86 
    8785        <LocalQuest id="spacefight.flying1">
    8886                <QuestDescription
     
    118116                                Hint: look for a big asteroid."
    119117                        failMessage="You've lost all your ships!"
    120                         completeMessage="" />
     118                        completeMessage="Your ship is prepared best for the second and last guard on the way to the mainship.
     119                                Now attack the second guard!" />
    121120        </LocalQuest>
    122121
     
    277276
    278277<!-- ---------------------------------------------------------------------- -->
    279 
    280   <DistanceTrigger name="flying1" position="4000,0,0" target="SpaceShip" distance=2000 stayActive="true" delay=0 />
    281 
    282   <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
    283 
    284   <DistanceTrigger name="flying2" position="13500, 2500, 10500" target="SpaceShip" distance=7000 stayActive="true" delay=0 />
    285   <SimpleNotification message="search the drone!?"  broadcast="true">
    286       <events>
    287           <trigger>
    288               <EventListener event="flying2" />
    289           </trigger>
    290       </events>
    291   </SimpleNotification>
    292 
    293   <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0 />
    294   <SimpleNotification message="Hauptschiff in Sicht!"  broadcast="true">
    295       <events>
    296           <trigger>
    297               <EventListener event="flying3" />
    298           </trigger>
    299       </events>
    300   </SimpleNotification>
    301 
    302 <!-- Helper-Trigger for the drone(s) -->
    303   <DistanceTrigger name="drone2" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=30 >
    304     <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=0.1 />
    305   </DistanceTrigger>
    306 
    307   <SimpleNotification message="Your ship is prepared best for the second and last guard on the way to the mainship.
    308                                 Now attack the second guard!"  broadcast="true">
    309       <events>
    310           <trigger>
    311               <EventListener event="drone1" />
    312           </trigger>
    313       </events>
    314   </SimpleNotification>
    315 
    316   <SimpleNotification message="Your ship is prepared best for the final fight at the mainship."  broadcast="true">
    317       <events>
    318           <trigger>
    319               <EventListener event="drone2" />
    320           </trigger>
    321       </events>
    322   </SimpleNotification>
     278        <!-- Second Spawntrigger -->
     279        <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
     280
     281        <!--Helper-Trigger for first guard -->
     282        <DistanceTrigger name="flying1" position="4000,0,0" target="SpaceShip" distance=2000 stayActive="true" delay=0 />
     283
     284        <!-- Helper-Trigger for second guard -->
     285        <DistanceTrigger name="flying2" position="13500, 2500, 10500" target="SpaceShip" distance=7000 stayActive="true" delay=0 />
     286        <SimpleNotification message="search the drone!?"  broadcast="true">
     287                <events>
     288                        <trigger>
     289                                <EventListener event="flying2" />
     290                        </trigger>
     291                </events>
     292        </SimpleNotification>
     293       
     294        <!-- Helper-Trigger for mainship -->
     295        <DistanceTrigger name="flying3" position="11000, 3000, 21000" target="SpaceShip" distance=1000 stayActive="true" delay=0 />
     296        <SimpleNotification message="Hauptschiff in Sicht!"  broadcast="true">
     297                <events>
     298                        <trigger>
     299                                <EventListener event="flying3" />
     300                        </trigger>
     301                </events>
     302        </SimpleNotification>
     303
     304        <!-- Helper-Trigger for the drone(s) -->
     305        <DistanceTrigger name="drone1" position="9750, -5350, 5650" target="SpaceShip" distance=20 stayActive="true" delay=0 />
     306        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
     307                <events>
     308                        <trigger>
     309                                <EventListener event="drone1" />
     310                        </trigger>
     311                </events>
     312        </SimpleNotification>
     313
     314        <!-- <DistanceTrigger name="drone2" position="9750, -5350, 5650" target="SpaceShip" distance=20 stay Active="true" delay=0 /> -->
     315        <SimpleNotification message="Now your are prepared best!"  broadcast="true">
     316                <events>
     317                        <trigger>
     318                                <EventListener event="drone2" />
     319                        </trigger>
     320                </events>
     321        </SimpleNotification>
    323322
    324323<!-- ----------------------------------------------------- -->
Note: See TracChangeset for help on using the changeset viewer.