Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamecontent/data/levels/missionOne.oxw @ 8924

Last change on this file since 8924 was 8923, checked in by jo, 13 years ago

Tutorial level enhancements (quest work, better texts are still needed), reverted old rocket hack, reworked configurable botlevel for the ai.

File size: 55.1 KB
Line 
1<LevelInfo
2 name = "Mission One"
3 description = "First guided steps in the orxonoxian universe."
4 tags = "singleplayer"
5/>
6
7<?lua
8  include("stats.oxo")
9  include("HUDTemplates3.oxo")
10  include("templates/lodInformation.oxt")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/spaceshipPirate.oxt")
13  include("templates/spaceshipSpacecruiser.oxt")
14  include("templates/spaceshipTransporter.oxt")
15?>
16
17<?lua
18include("templates/pickupRepresentationTemplates.oxt")
19?>
20
21<Level
22 name         = "Mission One"
23 description  = "How to steer a spaceship."
24 gametype     = "Mission"
25>
26  <templates>
27    <Template link=lodtemplate_default />
28  </templates>
29  <?lua include("includes/notifications.oxi") ?>
30
31  <NotificationQueueCEGUI
32    name="narrative"
33    targets="simpleNotification"
34    size=3
35    displayTime=3.9
36    position="0.2, 0, 0.1, 0"
37    fontSize="23"
38    fontColor="0.3, 1, 0.2, 0.8"
39    alignment="HorzCentred"
40    displaySize="0.6, 0, 0, 0"
41    />
42  <Scene
43    ambientlight = "0.8, 0.8, 0.8"
44    skybox       = "Orxonox/Starbox"
45  >
46    <?lua
47      include("includes/pickups.oxi")
48    ?>
49
50    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg, Mars.ogg-->
51
52    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
53<!-- END OF INCLUDES & NECESSARITIES -->
54
55<!-- SPAWNPOINT & START OF QUESTS via spawntrigger -->
56    <EventMultiTrigger name=spawntrigger>
57        <events>
58            <trigger>
59                <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
60            </trigger>
61        </events>
62    </EventMultiTrigger>
63
64        <QuestEffectBeacon times=1>
65            <effects>
66                <AddQuest questId="missionOne.basicFlying" />
67                <!--AddQuestHint hintId ="quest1hint3" /-->
68            </effects>
69            <events>
70                <execute>
71                    <EventListener event=spawntrigger />
72                </execute>
73            </events>
74        </QuestEffectBeacon>
75
76        <QuestEffectBeacon times=1>
77            <effects>
78                <CompleteQuest questId="missionOne.basicFlying" />
79            </effects>
80            <events>
81                <execute>
82                    <EventListener event="flying4" />
83                </execute>
84            </events>
85        </QuestEffectBeacon>
86
87        <QuestEffectBeacon times=1>
88            <effects>
89                <CompleteQuest questId="missionOne.navigation" />
90            </effects>
91            <events>
92                <execute>
93                    <EventListener event="navigationend" />
94                </execute>
95            </events>
96        </QuestEffectBeacon>
97
98<!--helper trigger to end the weaponsystemI quest -->
99    <DistanceTrigger name="boxend" position="0,0,0" distance=950 target="SpaceShip" stayActive="false" delay=0.1>
100              <EventTrigger>
101                <events>
102                  <trigger>
103                    <EventListener event="boxtrigger4" />
104                  </trigger>
105                </events>
106              </EventTrigger>
107    </DistanceTrigger>
108
109        <QuestEffectBeacon times=1>
110            <effects>
111                <CompleteQuest questId="missionOne.weaponsystemI" />
112            </effects>
113            <events>
114                <execute>
115                    <EventListener event="boxend" />
116                </execute>
117            </events>
118        </QuestEffectBeacon>
119
120<!--helper trigger to end the weaponsystemII quest -->
121    <DistanceTrigger name="piratesend" position="0,0,0" distance=2000 target="SpaceShip" stayActive="false" delay=0.1>
122              <EventTrigger>
123                <events>
124                  <trigger>
125                    <EventListener event="movingpirates2" />
126                  </trigger>
127                </events>
128              </EventTrigger>
129    </DistanceTrigger>
130
131        <QuestEffectBeacon times=1>
132            <effects>
133                <CompleteQuest questId="missionOne.weaponsystemII" />
134            </effects>
135            <events>
136                <execute>
137                    <EventListener event=piratesend />
138                </execute>
139            </events>
140        </QuestEffectBeacon>
141
142<!--helper trigger to end the DuBallStation quest -->
143    <DistanceTrigger name="duballend" position="-1000,-300,700" distance=2000 target="SpaceShip" stayActive="false" delay=0.1>
144              <EventTrigger>
145                <events>
146                  <trigger>
147                    <EventListener event="duball3" />
148                  </trigger>
149                </events>
150              </EventTrigger>
151    </DistanceTrigger>
152
153
154        <QuestEffectBeacon times=1>
155            <effects>
156                <CompleteQuest questId="missionOne.DuballStation" />
157            </effects>
158            <events>
159                <execute>
160                    <EventListener event=duballend />
161                </execute>
162            </events>
163        </QuestEffectBeacon>
164
165<!--helper trigger to end the getHelp quest -->
166    <DistanceTrigger name="getHelpEnd" position="-47000,-1000,1300" distance=1400 target="SpaceShip" stayActive="false" delay=0.1>
167              <EventTrigger>
168                <events>
169                  <trigger>
170                    <EventListener event="ondock" />
171                  </trigger>
172                </events>
173              </EventTrigger>
174    </DistanceTrigger>
175
176        <QuestEffectBeacon times=1>
177            <effects>
178                <CompleteQuest questId="missionOne.getHelp" />
179            </effects>
180            <events>
181                <execute>
182                    <EventListener event=getHelpEnd />
183                </execute>
184            </events>
185        </QuestEffectBeacon>
186
187<!--helper trigger to end the getHome quest -->
188    <DistanceTrigger name="getHomeEnd" position="0,0,0" distance=4000 target="SpaceShip" stayActive="false" delay=0.1>
189              <EventTrigger>
190                <events>
191                  <trigger>
192                    <EventListener event="attack" />
193                  </trigger>
194                </events>
195              </EventTrigger>
196    </DistanceTrigger>
197
198        <QuestEffectBeacon times=1>
199            <effects>
200                <CompleteQuest questId="missionOne.getHome" />
201            </effects>
202            <events>
203                <execute>
204                    <EventListener event=getHomeEnd />
205                </execute>
206            </events>
207        </QuestEffectBeacon>
208
209<!--helper trigger to end the defence quest -->
210    <DistanceTrigger name="defenceEnd" position="0,0,0" distance=4000 target="SpaceShip" stayActive="false" delay=0.1>
211              <EventTrigger>
212                <events>
213                  <trigger>
214                    <EventListener event="attacktrigger6" />
215                  </trigger>
216                </events>
217              </EventTrigger>
218    </DistanceTrigger>
219
220        <QuestEffectBeacon times=1>
221            <effects>
222                <CompleteQuest questId="missionOne.defence" />
223            </effects>
224            <events>
225                <execute>
226                    <EventListener event=defenceEnd />
227                </execute>
228            </events>
229        </QuestEffectBeacon>
230
231
232    <LocalQuest id="missionOne.basicFlying">
233        <QuestDescription title="Flying" description="Can you see the blinking light straight ahead? Your goal is to fly through it.
234Use (W) to accelerate and steer with your mouse.
235
236Further flying moves:
237break (S)
238roll     (Q) and (E)
239boost (Space)
240
241Whenever a new quest is added you can view it by pressing (F3). Quit this menu via (Esc)." failmessage="" completeMessage="" />
242        <complete-effects>
243            <AddQuest questId="missionOne.navigation" />
244        </complete-effects>
245    </LocalQuest>
246
247    <LocalQuest id="missionOne.navigation">
248        <QuestDescription title="Navigation" description="The next goal is to find and move towards the test targets for your weaponsystem. The three arrows that just appeared down in the right corner of your screen indicate in which direction you have to turn your spacefighter to find your next targets.
249
250Alternative navigation: There's a the green circle in the left corner - the radar. The red dots on the radar represent your targets. If you manage to move your spaceship in a way such that a dot is at the center of the radar, you will be able to see the concerning object straight ahead." failmessage="" completeMessage="" />
251        <complete-effects>
252            <AddQuest questId="missionOne.weaponsystemI" />
253        </complete-effects>
254    </LocalQuest>
255
256            <LocalQuest id ="missionOne.weaponsystemI">
257                <QuestDescription title="Destroy the Boxes" description="Test your four different weapons on the four boxes:
2581. laser (left click)
2592. plasma (right click)
2603. target seeking rockets (middle click)
2614. manual rockets (T)
262
263Attention if you use manual rockets: Press (T) only once to start the rocket. If you miss your target you can get out of the rocket, by clicking or pressing (T) once more." failmessage="" completeMessage="" />
264                    <hints>
265                        <QuestHint id="missionOne.weaponsystem.laser">
266                            <QuestDescription title="Laser" description="The laser is a standard weapon. It is fast and precise but does not deal much damage." />
267                        </QuestHint>
268                        <QuestHint id="missionOne.weaponsystem.lightningGun">
269                            <QuestDescription title="Lightninggun" description="That was the lightning gun. Its plasma munition is quite slow, but a normal spaceship can't take more than three hits of such a strong weapon. That could be your favourite weapon for close range combat or if you want to hit a really slow enemy." />
270                        </QuestHint>
271                        <QuestHint id="missionOne.weaponsystem.targetSeekingRocket">
272                            <QuestDescription title="Target Seeking Rocket" description="The target seeking rockets follow slow targets on their own." />
273                        </QuestHint>
274                        <QuestHint id="missionOne.weaponsystem.manualrocket">
275                            <QuestDescription title="Manual Rocket" description="Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. The total amount of both manual and target seeking rockets is limited to 10." />
276                        </QuestHint>
277                    </hints>
278                <complete-effects>
279                    <AddQuest questId="missionOne.weaponsystemII" />
280                </complete-effects>
281            </LocalQuest>
282
283            <LocalQuest id="missionOne.weaponsystemII">
284                <QuestDescription title="Kill the pirates" description="Get rid of the patrolling pirates.
285Find out which weapon is best to tackle moving targets. Get close enough." failmessage="" completeMessage="" />
286                <complete-effects>
287                    <AddQuest questId="missionOne.DuballStation" />
288                </complete-effects>
289            </LocalQuest>
290
291    <LocalQuest id="missionOne.DuballStation">
292        <QuestDescription title="Duball Space Station" description="Fly towards the Duball Space Station. The grey radar marker will lead you to its position." failmessage="" completeMessage="" />
293        <complete-effects>
294            <AddQuest questId="missionOne.getHelp" />
295        </complete-effects>
296    </LocalQuest>
297
298    <LocalQuest id="missionOne.getHelp">
299        <QuestDescription title="Get Help" description="There are several enemies approaching. You can't handle it on your own. Fortunately there's a shortcut to the next friendly unit. Use the portal (grey dot) to get near the Hydrogen Farmer.
300The Hydrogen Farmer is a large spaceship with three legs.
301There you might get help - as far as we know there should be a strong spaceruiser docked to the Hydrogen Farmer. In order to be able to use that stronger spaceship, you have to dock to the Hydrogen Farmer.
302Simply fly to the center of the Hydrogen Farmer, which is between its three legs.
303
304How to dock: Accept the dialogue, take your hands off the keyboard and watch." failmessage="" completeMessage="" />
305        <complete-effects>
306            <AddQuest questId="missionOne.getHome" />
307        </complete-effects>
308    </LocalQuest>
309
310    <LocalQuest id="missionOne.getHome">
311        <QuestDescription title="Return ASAP" description="So you managed to get the spacecruiser. Use the portal to return to the DuBall Space Station.
312Hurry! Your help is desperately needed." failmessage="" completeMessage="" />
313        <complete-effects>
314            <AddQuest questId="missionOne.defence" />
315        </complete-effects>
316    </LocalQuest>
317
318    <LocalQuest id="missionOne.defence">
319        <QuestDescription title="Defence" description="Seven enemies were detected that seem to launch a coordinated attack.
320Do not hesitate to fight or you will be the target.
321
322Always take care of the enemy that is the closest to you." failmessage="" completeMessage="Yeah! You did it." />
323    </LocalQuest>
324<!-- --------------------- END OF QUESTS -------------------------- -->
325
326
327    <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=2/>
328    <SimpleNotification message="Press (F3) to see your mission briefing.">
329        <events>
330            <trigger>
331                <EventListener event="spawndelaytrigger0" />
332            </trigger>
333        </events>
334    </SimpleNotification>
335
336<!-- Blinking Billboard should be replaced with WAYPOINT -->
337<BlinkingBillboard position="-900,640,600" frequency=0.4 amplitude=2 material="Flares/lensflare" colour="1,1,0">
338          <events>
339            <visibility>
340              <EventTrigger invert=true>
341                <events>
342                  <trigger>
343                    <EventListener event=flying4 />
344                  </trigger>
345                </events>
346              </EventTrigger>
347            </visibility>
348          </events>
349</BlinkingBillboard>
350<Billboard position="-900,640,600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
351          <events>
352            <visibility>
353              <EventTrigger>
354                <events>
355                  <trigger>
356                    <EventListener event=flying4 />
357                  </trigger>
358                </events>
359              </EventTrigger>
360            </visibility>
361          </events>
362</Billboard>
363
364<!-------------------------------------- PART ZERO: How to fly --------------------------------------->
365
366    <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/>
367    <SimpleNotification message="Let's fly to the blinking light.">
368        <events>
369            <trigger>
370                <EventListener event="flying1" />
371            </trigger>
372        </events>
373    </SimpleNotification>
374
375    <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=10/>
376    <SimpleNotification message="Use (W) to accelerate and the mouse to steer.">
377        <events>
378            <trigger>
379                <EventListener event="flying2" />
380            </trigger>
381        </events>
382    </SimpleNotification>
383<!-- QUEST-Trigger && Message Trigger: navigationend is activated after flying4 was triggered -->
384    <DistanceTrigger name="navigationend" position="0,0,0" distance=950 target="SpaceShip" stayActive="false" delay=1.1>
385        <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/>
386    </DistanceTrigger>
387
388
389    <SimpleNotification message="Three red arrows just appeared.">
390        <events>
391            <trigger>
392                <EventListener event="flying4" />
393            </trigger>
394        </events>
395    </SimpleNotification>
396
397    <DistanceTrigger name="flying5" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=5/>
398    <SimpleNotification message="Follow those red arrows.">
399        <events>
400            <trigger>
401                <EventListener event="flying5" />
402            </trigger>
403        </events>
404    </SimpleNotification>
405
406<!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->
407    <DistanceTrigger name="spawndelaytrigger1" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=9 />
408    <SimpleNotification message="Destroy the four boxes.">
409        <events>
410            <trigger>
411                <EventListener event="spawndelaytrigger1" />
412            </trigger>
413        </events>
414    </SimpleNotification>
415
416    <DistanceTrigger name="spawndelaytrigger2" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=13 />
417    <SimpleNotification message=" 1. Aim the a red cycle.">
418        <events>
419            <trigger>
420                <EventListener event="spawndelaytrigger2" />
421            </trigger>
422        </events>
423    </SimpleNotification>
424
425    <DistanceTrigger name="spawndelaytrigger3" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=17 />
426    <SimpleNotification message="2. Click! (hold the left mouse button)">
427        <events>
428            <trigger>
429                <EventListener event="spawndelaytrigger3" />
430            </trigger>
431        </events>
432    </SimpleNotification>
433
434<!-- @Objects: 4 boxes (uncontrolled pawns) -->
435                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
436                    <events>
437                      <visibility>
438                        <EventListener event="flying4" />
439                      </visibility>
440                    </events>
441                    <attached>
442                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
443                    </attached>
444                    <collisionShapes>
445                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
446                    </collisionShapes>
447                </Pawn>
448
449                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true">
450                    <events>
451                      <visibility>
452                        <EventListener event="flying4" />
453                      </visibility>
454                    </events>
455                    <attached>
456                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
457                    </attached>
458                    <collisionShapes>
459                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
460                    </collisionShapes>
461                </Pawn>
462                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
463                    <events>
464                      <visibility>
465                        <EventListener event="flying4" />
466                      </visibility>
467                    </events>
468                    <attached>
469                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
470                    </attached>
471                    <collisionShapes>
472                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
473                    </collisionShapes>
474                </Pawn>
475                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
476                    <events>
477                      <visibility>
478                        <EventListener event="flying4" />
479                      </visibility>
480                    </events>
481                    <attached>
482                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
483                    </attached>
484                    <collisionShapes>
485                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
486                    </collisionShapes>
487                </Pawn>
488
489<!-- @Triggers: boxtrigger1 <-> one   box   destroyed
490                boxtrigger2 <-> two   boxes destroyed
491                boxtrigger3 <-> three boxes destroyed
492                boxtrigger4 <-> four  boxes destroyed  -->
493    <EventTrigger name="boxtrigger4" activations="1" stayactive="true" delay=0.1>
494      <events>
495        <trigger>
496          <EventListener event="box" />
497        </trigger>
498      </events>
499      <EventTrigger name="boxtrigger3" activations="1" stayactive="true" delay=0.1>
500        <events>
501          <trigger>
502            <EventListener event="box" />
503          </trigger>
504        </events>
505        <EventTrigger name="boxtrigger2" activations="1" stayactive="true" delay=0.1>
506          <events>
507            <trigger>
508              <EventListener event="box" />
509            </trigger>
510          </events>
511          <EventTrigger name="boxtrigger1" activations="1" stayactive="true" delay=0.1>
512            <events>
513              <trigger>
514                <EventListener event="box" />
515              </trigger>
516            </events>
517          </EventTrigger>
518        </EventTrigger>
519      </EventTrigger>
520    </EventTrigger>
521
522
523  <SimpleNotification message="Right click on the next target." broadcast="true">
524        <events>
525            <trigger>
526                <EventListener event="boxtrigger1" />
527            </trigger>
528        </events>
529    </SimpleNotification>
530
531  <SimpleNotification message="Middle click on the next target." broadcast="true">
532        <events>
533            <trigger>
534                <EventListener event="boxtrigger2" />
535            </trigger>
536        </events>
537    </SimpleNotification>
538
539  <SimpleNotification message="Aim at the last target and press (T)." broadcast="true">
540        <events>
541            <trigger>
542                <EventListener event="boxtrigger3" />
543            </trigger>
544        </events>
545    </SimpleNotification>
546
547  <SimpleNotification message="Try to hit the pirates while you are flying." broadcast="true">
548        <events>
549            <trigger>
550                <EventListener event="boxtrigger4" />
551            </trigger>
552        </events>
553    </SimpleNotification>
554
555
556<!--------------------------------------PART TWO: Moving targets --------------------------------------->
557
558<!-- @Objects: 2 pirates moving in squares, nonlethal -->
559                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" >
560                            <events>
561                                <visibility>
562                                    <EventListener event="boxtrigger4" />
563                                </visibility>
564                            </events>
565                    <templates>
566                      <Template link=spaceshippirate />
567                    </templates>
568                    <controller>
569                      <WaypointController team=1>
570                         <waypoints>
571                          <Model mesh="cube.mesh" scale=8 position="  0,1700,-200" />
572                          <Model mesh="cube.mesh" scale=8 position="  0,1700,-700" />
573                          <Model mesh="cube.mesh" scale=8 position="500,1700,-700" />
574                          <Model mesh="cube.mesh" scale=8 position="500,1700,-200" />
575                       </waypoints>
576                    </WaypointController>
577                  </controller>
578                </SpaceShip>
579
580                <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget">
581                            <events>
582                                <visibility>
583                                    <EventListener event="boxtrigger4" />
584                                </visibility>
585                            </events>
586                  <templates>
587                    <Template link=spaceshippirate />
588                  </templates>
589                  <controller>
590                    <WaypointController team=1>
591                      <waypoints>
592                        <Model mesh="cube.mesh" scale=8 position="  0,2400,1000" />
593                        <Model mesh="cube.mesh" scale=8 position="  0,2400, 500" />
594                        <Model mesh="cube.mesh" scale=8 position="500,2400, 500" />
595                        <Model mesh="cube.mesh" scale=8 position="500,2400,1000" />
596                      </waypoints>
597                    </WaypointController>
598                  </controller>
599                </SpaceShip>
600
601<!-- @Triggers: movingpirates1 <-> one  pirate  dead
602                movingpirates2 <-> both pirates dead  -->
603    <EventTrigger name="movingpirates2" activations="1" stayactive="true" delay=0.1>
604      <events>
605        <trigger>
606          <EventListener event="movingtarget" />
607        </trigger>
608      </events>
609      <EventTrigger name="movingpirates1" activations="1" stayactive="true" delay=0.1>
610        <events>
611          <trigger>
612            <EventListener event="movingtarget" />
613          </trigger>
614        </events>
615      </EventTrigger>
616    </EventTrigger>
617
618
619    <SimpleNotification message="Now get the other one."  broadcast="true">
620        <events>
621            <trigger>
622                <EventListener event="movingpirates1" />
623            </trigger>
624        </events>
625    </SimpleNotification>
626
627    <SimpleNotification message="Fly towards the space station (grey dot)."  broadcast="true">
628        <events>
629            <trigger>
630                <EventListener event="movingpirates2" />
631            </trigger>
632        </events>
633    </SimpleNotification>
634
635
636
637<!--------------------------------------PART THREE: the space station --------------------------------------->
638    <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 >
639      <events>
640        <activity>
641          <EventListener event="movingpirates2" />
642        </activity>
643      </events>
644    </DistanceTrigger>
645
646    <EventTrigger name="duball2" activations="1" stayactive="true" delay=4 >
647      <events>
648        <trigger>
649          <EventListener event="duball1" />
650        </trigger>
651      </events>
652    </EventTrigger>
653
654    <EventTrigger name="duball3" activations="1" stayactive="true" delay=4 >
655      <events>
656        <trigger>
657          <EventListener event="duball2" />
658        </trigger>
659      </events>
660    </EventTrigger>
661
662    <SimpleNotification message="Welcome to the Duball Space Station!">
663        <events>
664            <trigger>
665                <EventListener event=duball1 />
666            </trigger>
667        </events>
668    </SimpleNotification>
669
670    <SimpleNotification message="Warning: Something big is coming." broadcast="true">
671        <events>
672            <trigger>
673                <EventListener event=duball2 />
674            </trigger>
675        </events>
676    </SimpleNotification>
677
678    <SimpleNotification message="Use the portals to get help. (grey dot)" broadcast="true">
679        <events>
680            <trigger>
681                <EventListener event=duball3 />
682            </trigger>
683        </events>
684    </SimpleNotification>
685
686
687<!-- @Objects: DuBall Space Station, (no pawn!) -->
688    <StaticEntity position="-1000,-300,700" collisionType=static>
689      <attached>
690        <Model scale=13 mesh="DuBall1.mesh" position = "-100,0,0"/>
691        <Model scale=13 mesh="DuBall2.mesh" position = "100,0,0"/>
692        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>
693        <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>
694      </attached>
695      <collisionShapes>
696        <SphereCollisionShape radius="80"            position = "-100,0,0" />
697        <SphereCollisionShape radius="120"           position = "100,0,0" />
698        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
699      </collisionShapes>
700    </StaticEntity>
701
702
703<!-- @Objects: PORTAL: from DuBall to HydroHarvester  -->
704    <Template name=PortalDefault>
705        <PortalEndPoint>
706            <attached>
707                <Billboard material="Portals/Default" />
708            </attached>
709        </PortalEndPoint>
710    </Template>
711
712    <PortalEndPoint position="-1400,-500,800" id="1" distance="50" target="MobileEntity" design="PortalDefault">
713          <events>
714            <activity>
715              <Trigger mode="or" activations="2">
716                <Trigger mode="and" activations="1">
717                  <EventTrigger>
718                    <events>
719                      <trigger>
720                        <EventListener event="movingpirates2" />
721                      </trigger>
722                    </events>
723                  </EventTrigger>
724                  <EventTrigger invert=true>
725                    <events>
726                      <trigger>
727                        <EventListener event="toHydroFarmer" />
728                      </trigger>
729                    </events>
730                  </EventTrigger>
731                </Trigger>
732                <Trigger mode="and" activations="1">
733                  <EventTrigger>
734                    <events>
735                      <trigger>
736                        <EventListener event="ondock" />
737                      </trigger>
738                    </events>
739                  </EventTrigger>
740                  <EventTrigger invert=true>
741                    <events>
742                      <trigger>
743                        <EventListener event="attack" />
744                      </trigger>
745                    </events>
746                  </EventTrigger>
747                </Trigger>
748                <EventTrigger>
749                  <events>
750                    <trigger>
751                      <EventListener event="HydroFarmer" />
752                    </trigger>
753                  </events>
754                </EventTrigger>
755              </Trigger>
756            </activity>
757          </events>
758    </PortalEndPoint>
759
760    <PortalEndPoint position="-47000,-1000,1300" id="2" distance="70" target="MobileEntity" design="PortalDefault">
761          <events>
762            <activity>
763              <Trigger mode="or" activations="3">
764                <Trigger mode="and" activations="1">
765                  <EventTrigger>
766                    <events>
767                      <trigger>
768                        <EventListener event="movingpirates2" />
769                      </trigger>
770                    </events>
771                  </EventTrigger>
772                  <EventTrigger invert=true>
773                    <events>
774                      <trigger>
775                        <EventListener event="toHydroFarmer" />
776                      </trigger>
777                    </events>
778                  </EventTrigger>
779                </Trigger>
780                <Trigger mode="and" activations="1">
781                  <EventTrigger>
782                    <events>
783                      <trigger>
784                        <EventListener event="ondock" />
785                      </trigger>
786                    </events>
787                  </EventTrigger>
788                  <EventTrigger invert=true>
789                    <events>
790                      <trigger>
791                        <EventListener event="attack" />
792                      </trigger>
793                    </events>
794                  </EventTrigger>
795                </Trigger>
796                <EventTrigger>
797                  <events>
798                    <trigger>
799                      <EventListener event="HydroFarmer" />
800                    </trigger>
801                  </events>
802                </EventTrigger>
803              </Trigger>
804            </activity>
805          </events>
806    </PortalEndPoint>
807    <PortalLink fromID="1" toID="2" />
808    <PortalLink fromID="2" toID="1" />
809<!-- ????????????????????????????????????????????????????? why does this NOT work ??
810                <Trigger mode="and" activations="1">
811                  <EventTrigger>
812                    <events>
813                      <trigger>
814                        <EventListener event="HydroFarmer" />
815                      </trigger>
816                    </events>
817                  </EventTrigger>
818                  <EventTrigger invert=true>
819                    <events>
820                      <trigger>
821                        <EventListener event="attack" />
822                      </trigger>
823                    </events>
824                  </EventTrigger>
825                </Trigger>
826-->
827<!-- PORTALS END-->
828
829
830    <SimpleNotification message="Dock to the Hydrogen Farmer.">
831        <events>
832            <trigger>
833                <EventListener event=toHydroFarmer />
834            </trigger>
835        </events>
836    </SimpleNotification>
837
838<!-------------------------------------- PART FOUR : Get Help --------------------------------------->
839    <DistanceTrigger name="famer1" position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
840    <SimpleNotification message="We just received a message from DuBall.">
841        <events>
842            <trigger>
843                <EventListener event=famer1 />
844            </trigger>
845        </events>
846    </SimpleNotification>
847
848    <DistanceTrigger name="famer2" position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=4 />
849    <SimpleNotification message="We will lend you our strongest ship.">
850        <events>
851            <trigger>
852                <EventListener event=famer2 />
853            </trigger>
854        </events>
855    </SimpleNotification>
856
857
858<!-- @Objects: HYDROGEN FARMER & DOCKING -->
859    <SpaceShip position="-48900,100,0" roll=90 yaw=0 pitch=20 mass=10000 health=100000 name="HydroFarmer">
860      <attached>
861        <!-- Docking -->
862        <DistanceTriggerBeacon name="bcnDestroyer" />
863        <DockingTarget name="destroyer" />
864
865        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
866   <!-- <Model mesh="cube.mesh" mass=10 position="-560,0,0" scale3D="115,100,245"  />
867        <Model mesh="cube.mesh" mass=10 position="290,0,-480" scale3D="115,100,245" yaw=-120 />
868        <Model mesh="cube.mesh" mass=10 position="290,0,480" scale3D="115,100,245" yaw=-240 />
869        <Model mesh="cube.mesh" mass=10 position="-280,0,0" scale3D="163,50,50" />
870        <Model mesh="cube.mesh" mass=10 position="140,0,-240" scale3D="163,50,50"  yaw=-120/>
871        <Model mesh="cube.mesh" mass=10 position="140,0,240" scale3D="163,50,50" yaw=-240/>
872        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" />
873        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-120/>
874        <Model mesh="cube.mesh" mass=10 position="0,530,0" scale3D="172,52,298" yaw=-240/>
875        <Model mesh="cube.mesh" mass=10 position="0,400,0" scale3D="43,110,26" yaw=-30 />
876        <Model mesh="cube.mesh" mass=10 position="-200,100,0" scale3D="26,50,43" />
877        <Model mesh="cube.mesh" mass=10 position="100,100,-173" scale3D="43,50,26" yaw=-30/>
878        <Model mesh="cube.mesh" mass=10 position="100,100,173" scale3D="43,50,26" yaw=30/>
879        <Model mesh="cube.mesh" mass=10 position="-100,264,0" scale3D="26,105,43" roll=-49/>
880        <Model mesh="cube.mesh" mass=10 position="50,264,-87" scale3D="26,105,43" roll=-49 yaw=-120/>
881        <Model mesh="cube.mesh" mass=10 position="50,264,87" scale3D="26,105,43" roll=-49 yaw=-240/>     -->
882      </attached>
883      <collisionShapes>
884        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" /><!-- Three lower boxes -->
885        <BoxCollisionShape  position="290,0,-480" halfExtents="115,100,245" yaw=-120 />
886        <BoxCollisionShape  position="290,0,480" halfExtents="115,100,245" yaw=-240 />
887        <BoxCollisionShape  position="-280,0,0" halfExtents="163,50,50" /><!-- Three lower connections -->
888        <BoxCollisionShape  position="140,0,-240" halfExtents="163,50,50" yaw=-120 />
889        <BoxCollisionShape  position="140,0,240" halfExtents="163,50,50" yaw=-240 />
890        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" /><!-- Upper Tower -->
891        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-120 />
892        <BoxCollisionShape  position="0,530,0" halfExtents="172,52,298" yaw=-240 />
893        <BoxCollisionShape  position="0,400,0" halfExtents="43,110,26" yaw=-30 /><!-- Middle one-->
894        <BoxCollisionShape  position="-200,100,0" halfExtents="26,50,43" /><!--Three lower legs -->
895        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=-30 />
896        <BoxCollisionShape  position="100,100,-173" halfExtents="43,50,26" yaw=30 />
897        <BoxCollisionShape  position="-100,264,0" halfExtents="26,105,43" roll=-49 /><!--Three upper legs -->
898        <BoxCollisionShape  position="50,264,-87" halfExtents="26,105,43" roll=-49 yaw=-120 />
899        <BoxCollisionShape  position="50,264,87" halfExtents="26,105,43" roll=-49 yaw=-240 />
900      </collisionShapes>
901    </SpaceShip>
902
903    <Dock position="-48900,0,0" roll=90 yaw=180 >
904        <animations>
905            <MoveToDockingTarget target="destroyer" />
906        </animations>
907        <effects>
908            <DockToShip target="spaceShip" />
909        </effects>
910        <events>
911            <execute>
912                <EventListener event="dockMe" />
913            </execute>
914        </events>
915        <attached>
916            <DistanceTrigger position="10,-202, -42" distance="800" target="Pawn"
917                beaconMode="exclude" targetname="bcnDestroyer" name="dockMe"
918            />
919        </attached>
920    </Dock>
921
922<!--@Objects: SpaceCruiser as docking target -->
923    <SpaceShip template="spaceshipspacecruiser" position="-48900,800,0" orientation="-0.14, 0.68, 0.68, 0.223" health="300" maxhealth="400" initialhealth="300" name="cruiser" >
924      <attached>
925        <DockingTarget name="spaceShip" />
926      </attached>
927    </SpaceShip>
928
929
930          <Trigger name="cruiserKilled" mode="and" stayActive="true">
931            <EventTrigger  stayActive="true">
932              <events>
933                <trigger>
934                  <EventListener event="cruiser"/>
935                </trigger>
936              </events>
937            </EventTrigger>
938            <EventTrigger invert=true>
939              <events>
940                <trigger>
941                  <EventListener event="ondock" />
942                </trigger>
943              </events>
944            </EventTrigger>
945          </Trigger>
946
947
948            <EventTrigger delay=4 name="earlyEnd">
949              <events>
950                <trigger>
951                  <EventListener event="cruiserKilled" />
952                </trigger>
953              </events>
954              <events>
955                <activity>
956                  <EventListener event="movingpirates2" />
957                </activity>
958              </events>
959            </EventTrigger>
960
961            <EventTrigger delay=4 name="earlyEnd">
962              <events>
963                <trigger>
964                  <EventListener event="HydroFarmer" />
965                </trigger>
966              </events>
967              <events>
968                <activity>
969                  <EventListener event="movingpirates2" />
970                </activity>
971              </events>
972            </EventTrigger>
973
974
975
976    <SimpleNotification message="Oh no! You killed the Hydrogen Farmer!" broadcast="true">
977        <events>
978            <trigger>
979                <EventListener event="HydroFarmer" />
980            </trigger>
981        </events>
982    </SimpleNotification>
983
984    <SimpleNotification message="Oh no! You killed the SpaceCruiser!" broadcast="true">
985        <events>
986            <trigger>
987                <EventListener event="cruiserKilled" />
988            </trigger>
989        </events>
990    </SimpleNotification>
991
992    <SimpleNotification message="Press (Esc) and restart the mission." broadcast="true">
993        <events>
994            <trigger>
995                <EventListener event="earlyEnd" />
996            </trigger>
997        </events>
998    </SimpleNotification>
999
1000<!-- hydrogen farmer & docking END -->
1001
1002
1003<!-- @Objects: Pickup - find better place !! -->
1004    <PickupSpawner position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1">
1005      <pickup>
1006        <ShieldPickup template=hugeshieldpickup />
1007      </pickup>
1008    </PickupSpawner>
1009
1010
1011    <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
1012    <SimpleNotification message="This pickup protects your spaceship.">
1013        <events>
1014            <trigger>
1015                <EventListener event=pickup />
1016            </trigger>
1017        </events>
1018    </SimpleNotification>
1019<!-- Pickup-->
1020
1021
1022<!-- @Objects: planet && spaceboundaries  -->
1023    <Planet
1024      position="-44000,0,0"
1025      scale="2500"
1026      collisionType="dynamic"
1027      linearDamping="0.8"
1028      angularDamping="0"
1029      mass="10000000"
1030      pitch="0"
1031      mesh="planets/muunilinst.mesh"
1032      atmosphere="atmosphere1"
1033      rotationaxis="1,0,0"
1034      rotationrate="1.0"
1035      atmospheresize="80.0f"
1036      imagesize="1024.0f"
1037      collisiondamage = "2"
1038      enablecollisiondamage = "false"
1039    >
1040      <!--attached>
1041        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
1042      </attached-->  <!-- Forcefield kills HYDROGEN FARMER-->
1043      <collisionShapes>
1044        <SphereCollisionShape radius="2500" position="0,0,0" />
1045      </collisionShapes>
1046    </Planet>
1047
1048
1049<!-------------------------------------- The attack --------------------------------------->
1050
1051<!-- TODO:
1052     - update spaceshipTransporter
1053     - bots do friendly fire (is drone function reusable?)
1054-->
1055
1056<!-- @Triggers: toHydroFamer <-> first  portal usage
1057                ondock       <-> successfull docking
1058                attack       <-> second portal usage -->
1059
1060    <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" >
1061        <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
1062          <events>
1063            <trigger>
1064              <EventListener event="dockMe" />
1065            </trigger>
1066          </events>
1067            <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
1068        </EventTrigger>
1069    </DistanceTrigger>
1070
1071    <SimpleNotification message="Return before it's too late. Boost with (Space)." broadcast="true">
1072        <events>
1073            <trigger>
1074                <EventListener event=ondock />
1075            </trigger>
1076        </events>
1077    </SimpleNotification>
1078
1079    <SimpleNotification message="Several serious enemies are approaching!">
1080        <events>
1081            <trigger>
1082                <EventListener event=attack />
1083            </trigger>
1084        </events>
1085    </SimpleNotification>
1086
1087
1088
1089<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
1090<!-- 1 -->
1091    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker"visible="true">
1092        <events>
1093            <visibility>
1094                <EventListener event="ondock" />
1095            </visibility>
1096        </events>
1097        <templates>
1098            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1099        </templates>
1100        <controller>
1101            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1102                <waypoints>
1103                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1104                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1105                </waypoints>
1106                <events>
1107                    <activity>
1108                        <EventListener event="attack" /> <!-- activates enemies-->
1109                     </activity>
1110                </events>
1111            </WaypointPatrolController>
1112        </controller>
1113    </SpaceShip>
1114<!-- 2 -->
1115    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker" visible="true">
1116        <events>
1117            <visibility>
1118                <EventListener event="ondock" />
1119            </visibility>
1120        </events>
1121        <templates>
1122            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1123        </templates>
1124        <controller>
1125            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1126                <waypoints>
1127                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1128                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1129                </waypoints>
1130                <events>
1131                    <activity>
1132                        <EventListener event="attack" /> <!-- activates enemies-->
1133                     </activity>
1134                </events>
1135            </WaypointPatrolController>
1136        </controller>
1137    </SpaceShip>
1138<!-- 3 -->
1139    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker" visible="true">
1140        <events>
1141            <visibility>
1142                <EventListener event="ondock" />
1143            </visibility>
1144        </events>
1145        <templates>
1146            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1147        </templates>
1148        <controller>
1149            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1150                <waypoints>
1151                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1152                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1153                </waypoints>
1154                <events>
1155                    <activity>
1156                        <EventListener event="attack" /> <!-- activates enemies-->
1157                     </activity>
1158                </events>
1159            </WaypointPatrolController>
1160        </controller>
1161    </SpaceShip>
1162<!-- 4 -->
1163    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker" visible="true">
1164        <events>
1165            <visibility>
1166                <EventListener event="ondock" />
1167            </visibility>
1168        </events>
1169        <templates>
1170            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1171        </templates>
1172        <controller>
1173            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1174                <waypoints>
1175                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1176                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1177                </waypoints>
1178                <events>
1179                    <activity>
1180                        <EventListener event="attack" /> <!-- activates enemies-->
1181                     </activity>
1182                </events>
1183            </WaypointPatrolController>
1184        </controller>
1185    </SpaceShip>
1186<!-- 5 -->
1187    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker"visible="true">
1188        <events>
1189            <visibility>
1190                <EventListener event="ondock" />
1191            </visibility>
1192        </events>
1193        <templates>
1194            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1195        </templates>
1196        <controller>
1197            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1198                <waypoints>
1199                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1200                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1201                </waypoints>
1202                <events>
1203                    <activity>
1204                        <EventListener event="attack" /> <!-- activates enemies-->
1205                     </activity>
1206                </events>
1207            </WaypointPatrolController>
1208        </controller>
1209    </SpaceShip>
1210<!-- 6 -->
1211    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker" visible="true">
1212        <events>
1213            <visibility>
1214                <EventListener event="ondock" />
1215            </visibility>
1216        </events>
1217        <templates>
1218            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1219        </templates>
1220        <controller>
1221            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1222                <waypoints>
1223                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1224                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1225                </waypoints>
1226                <events>
1227                    <activity>
1228                        <EventListener event="attack" /> <!-- activates enemies-->
1229                     </activity>
1230                </events>
1231            </WaypointPatrolController>
1232        </controller>
1233    </SpaceShip>
1234
1235<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
1236    <EventTrigger name="attacktrigger6" activations="1" stayactive="true">
1237      <events>
1238        <trigger>
1239          <EventListener event="attacker" />
1240        </trigger>
1241      </events>
1242      <EventTrigger name="attacktrigger5" activations="1" stayactive="true" delay=0.1>
1243        <events>
1244          <trigger>
1245            <EventListener event="attacker" />
1246          </trigger>
1247        </events>
1248        <EventTrigger name="attacktrigger4" activations="1" stayactive="true" delay=0.1>
1249          <events>
1250            <trigger>
1251              <EventListener event="attacker" />
1252            </trigger>
1253          </events>
1254          <EventTrigger name="attacktrigger3" activations="1" stayactive="true" delay=0.1>
1255            <events>
1256              <trigger>
1257                <EventListener event="attacker" />
1258              </trigger>
1259            </events>
1260            <EventTrigger name="attacktrigger2" activations="1" stayactive="true" delay=0.1>
1261              <events>
1262                <trigger>
1263                  <EventListener event="attacker" />
1264                </trigger>
1265              </events>
1266              <EventTrigger name="attacktrigger1" activations="1" stayactive="true" delay=0.1>
1267                <events>
1268                  <trigger>
1269                    <EventListener event="attacker" />
1270                  </trigger>
1271                </events>
1272              </EventTrigger>
1273            </EventTrigger>
1274          </EventTrigger>
1275        </EventTrigger>
1276      </EventTrigger>
1277    </EventTrigger>
1278
1279
1280    <SimpleNotification message="5 enemies left!" broadcast="true">
1281      <events>
1282        <trigger>
1283          <EventListener event="attacktrigger1" />
1284        </trigger>
1285      </events>
1286    </SimpleNotification>
1287
1288    <SimpleNotification message="4 enemies left!" broadcast="true">
1289      <events>
1290        <trigger>
1291          <EventListener event="attacktrigger2" />
1292        </trigger>
1293      </events>
1294    </SimpleNotification>
1295
1296    <SimpleNotification message="3 enemies left!" broadcast="true">
1297      <events>
1298        <trigger>
1299          <EventListener event="attacktrigger3" />
1300        </trigger>
1301      </events>
1302    </SimpleNotification>
1303
1304    <SimpleNotification message="2 enemies left!" broadcast="true">
1305      <events>
1306        <trigger>
1307          <EventListener event="attacktrigger4" />
1308        </trigger>
1309      </events>
1310    </SimpleNotification>
1311    <SimpleNotification message="One enemy left!" broadcast="true">
1312      <events>
1313        <trigger>
1314          <EventListener event="attacktrigger5" />
1315        </trigger>
1316      </events>
1317    </SimpleNotification>
1318    <SimpleNotification message="Well done. You finished this tutorial." broadcast="true">
1319      <events>
1320        <trigger>
1321          <EventListener event="attacktrigger6" />
1322        </trigger>
1323      </events>
1324    </SimpleNotification>
1325
1326<!-- @Triggers: postAttack <-> delayed attacktrigger6 -->
1327    <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=3>
1328      <events>
1329        <trigger>
1330          <EventListener event="attacktrigger6" />
1331        </trigger>
1332      </events>
1333    </EventTrigger>
1334
1335    <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=6>
1336      <events>
1337        <trigger>
1338          <EventListener event="attacktrigger6" />
1339        </trigger>
1340      </events>
1341    </EventTrigger>
1342
1343    <SimpleNotification message="Either quit by pressing (Esc) or ..." broadcast="true">
1344      <events>
1345        <trigger>
1346          <EventListener event="postAttack1" />
1347        </trigger>
1348      </events>
1349    </SimpleNotification>
1350
1351    <SimpleNotification message="... stay here to learn some tricks." broadcast="true">
1352      <events>
1353        <trigger>
1354          <EventListener event="postAttack2" />
1355        </trigger>
1356      </events>
1357    </SimpleNotification>
1358
1359<!-------------------------------------- |Bonus Part| --------------------------------------->
1360<!-- @Triggers: "bonusX" <->  delayed "attacktrigger6" -->
1361    <EventTrigger name="bonus1" activations="1" stayactive="true" delay=10>
1362      <events>
1363        <trigger>
1364          <EventListener event="attacktrigger6" />
1365        </trigger>
1366      </events>
1367    </EventTrigger>
1368    <EventTrigger name="bonus2" activations="1" stayactive="true" delay=16>
1369      <events>
1370        <trigger>
1371          <EventListener event="attacktrigger6" />
1372        </trigger>
1373      </events>
1374    </EventTrigger>
1375    <EventTrigger name="bonus3" activations="1" stayactive="true" delay=22>
1376      <events>
1377        <trigger>
1378          <EventListener event="attacktrigger6" />
1379        </trigger>
1380      </events>
1381    </EventTrigger>
1382    <EventTrigger name="bonus4" activations="1" stayactive="true" delay=28>
1383      <events>
1384        <trigger>
1385          <EventListener event="attacktrigger6" />
1386        </trigger>
1387      </events>
1388    </EventTrigger>
1389    <EventTrigger name="bonus5" activations="1" stayactive="true" delay=32.1>
1390      <events>
1391        <trigger>
1392          <EventListener event="attacktrigger6" />
1393        </trigger>
1394      </events>
1395    </EventTrigger>
1396    <EventTrigger name="bonus6" activations="1" stayactive="true" delay=36.2>
1397      <events>
1398        <trigger>
1399          <EventListener event="attacktrigger6" />
1400        </trigger>
1401      </events>
1402    </EventTrigger>
1403    <EventTrigger name="bonus7" activations="1" stayactive="true" delay=4>
1404      <events>
1405        <trigger>
1406          <EventListener event="bonus6" />
1407        </trigger>
1408      </events>
1409    </EventTrigger>
1410
1411
1412
1413    <SimpleNotification message="Rotate your ship. Press (Q) or (E). "  broadcast="true">
1414        <events>
1415            <trigger>
1416                <EventListener event=bonus1 />
1417            </trigger>
1418        </events>
1419    </SimpleNotification>
1420
1421    <SimpleNotification message="Switch the camera's position. Press (C). "  broadcast="true">
1422        <events>
1423            <trigger>
1424                <EventListener event=bonus2 />
1425            </trigger>
1426        </events>
1427    </SimpleNotification>
1428
1429    <SimpleNotification message="360° view: press (Ctrl) + use the mouse "  broadcast="true">
1430        <events>
1431            <trigger>
1432                <EventListener event=bonus3 />
1433            </trigger>
1434        </events>
1435    </SimpleNotification>
1436
1437    <SimpleNotification message="Have a look at the main menu's settings."  broadcast="true">
1438        <events>
1439            <trigger>
1440                <EventListener event=bonus4 />
1441            </trigger>
1442        </events>
1443    </SimpleNotification>
1444
1445    <SimpleNotification message="E.g: Settings > Miscellaneous > Nr. of bots"  broadcast="true">
1446        <events>
1447            <trigger>
1448                <EventListener event=bonus5 />
1449            </trigger>
1450        </events>
1451    </SimpleNotification>
1452
1453    <SimpleNotification message="You successfully finished Mission One!"  broadcast="true">
1454        <events>
1455            <trigger>
1456                <EventListener event=bonus6 />
1457            </trigger>
1458        </events>
1459    </SimpleNotification>
1460
1461    <SimpleNotification message="Press (Esc) and return to the main menu."  broadcast="true">
1462        <events>
1463            <trigger>
1464                <EventListener event=bonus7 />
1465            </trigger>
1466        </events>
1467    </SimpleNotification>
1468
1469
1470    <!--Script code="addBots 3" onLoad="false">
1471        <events>
1472            <trigger>
1473                <EventListener event=bonus6 />
1474            </trigger>
1475        </events>
1476    </Script>
1477
1478    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
1479        <events>
1480            <trigger>
1481                <EventListener event=bonus6 />
1482            </trigger>
1483        </events>
1484    </Script-->
1485    <!-- Script code="artificialcontroller setbotlevel 0.1" /-->
1486  </Scene>
1487</Level>
1488<!-- TODO:
1489- Story & more precise Questmessages; more quest hints;
1490- Colouring: Show who is friend or foe via the colour
1491- Waypoints: show the player the way
1492- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken)
1493- End Tutorial, if either the Hydrogen Farmer or the SpaceCruiser gets destroyed. (~done)
1494 -->
Note: See TracBrowser for help on using the repository browser.