Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation2011/data/levels/missionOne.oxw @ 8981

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

Fixed level preview screenshots & levelinfo tags

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