Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/levelKaan/data/levels/missionOne.oxw @ 10101

Last change on this file since 10101 was 9807, checked in by skaan, 11 years ago

Update meteorids, endofgame

  • Property svn:eol-style set to native
File size: 60.2 KB
Line 
1<!---->
2
3<LevelInfo
4 name = "Mission One"
5 description = "First Guided Steps in the Orxonoxian Universe."
6 screenshot = "missionOne.png"
7 tags = "mission"
8/>
9
10<?lua
11  include("stats.oxo")
12  include("HUDTemplates3.oxo")
13  include("templates/lodInformation.oxt")
14  include("templates/spaceshipAssff.oxt")
15  include("templates/spaceshipPirate.oxt")
16  include("templates/spaceshipSpacecruiser.oxt")
17  include("templates/spaceshipTransporter.oxt")
18?>
19
20<?lua
21include("templates/pickupRepresentationTemplates.oxt")
22?>
23
24<Level
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 radarname = "Box 4" >
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 radarname = "Box 3">
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 radarname = "Box 2">
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 radarname = "Box 1">
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" radarname="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" radarname="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        radarname = "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        radarname           = "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 pickup=hugeshieldpickup position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1" />
1158
1159
1160    <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
1161    <SimpleNotification message="This pickup protects your spaceship.">
1162        <events>
1163            <trigger>
1164                <EventListener event=pickup />
1165            </trigger>
1166        </events>
1167    </SimpleNotification>
1168<!-- Pickup-->
1169
1170
1171<!-- @Objects: planet && spaceboundaries  -->
1172    <Planet
1173      position="-44000,0,0"
1174      scale="2500"
1175      collisionType="dynamic"
1176      linearDamping="0.8"
1177      angularDamping="0"
1178      mass="10000000"
1179      pitch="0"
1180      mesh="planets/muunilinst.mesh"
1181      atmosphere="atmosphere1"
1182      rotationaxis="1,0,0"
1183      rotationrate="1.0"
1184      atmospheresize="80.0f"
1185      imagesize="1024.0f"
1186      collisiondamage = "2"
1187      enablecollisiondamage = "false"
1188    >
1189      <!--attached>
1190        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
1191      </attached-->  <!-- Forcefield kills HYDROGEN FARMER-->
1192      <collisionShapes>
1193        <SphereCollisionShape radius="2500" position="0,0,0" />
1194      </collisionShapes>
1195    </Planet>
1196
1197
1198<!-------------------------------------- The attack --------------------------------------->
1199<!-- TODO:
1200     - update spaceshipTransporter
1201     - bots do friendly fire (is drone function reusable?)
1202-->
1203
1204<!-- Fallback Spawnpoint: on cruiserdeath caused by pirates. Unfortunately unstable behaviour concerning activity. -->
1205    <TeamSpawnPoint team=0 position="2000,1500,-1500" direction="-1,-1,1" spawnclass=SpaceShip pawndesign=spaceshipspacecruiser>
1206        <events>
1207            <activity>
1208                <EventListener event="attack" />
1209            </activity>
1210        </events>
1211    </TeamSpawnPoint>
1212
1213<!-- @Triggers: toHydroFamer <-> first  portal usage
1214                ondock       <-> successfull docking
1215                attack       <-> second portal usage -->
1216
1217    <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" mode="and">
1218        <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
1219          <events>
1220            <trigger>
1221              <EventListener event="dockMe" />
1222            </trigger>
1223          </events>
1224            <Trigger mode=and>
1225              <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
1226              <EventTrigger activations="1" invert="true">
1227                <events>
1228                  <trigger>
1229                    <EventListener event="gameEnd" />
1230                  </trigger>
1231                </events>
1232              </EventTrigger>
1233            </Trigger>
1234        </EventTrigger>
1235        <EventTrigger activations="1" invert="true">
1236          <events>
1237            <trigger>
1238              <EventListener event="earlyEnd" />
1239            </trigger>
1240          </events>
1241        </EventTrigger>
1242    </DistanceTrigger>
1243
1244    <SimpleNotification message="Return before it's too late. Boost with (Space)." broadcast="true">
1245        <events>
1246            <trigger>
1247                <EventListener event=ondock />
1248            </trigger>
1249        </events>
1250    </SimpleNotification>
1251
1252    <SimpleNotification message="Several serious enemies are approaching!">
1253        <events>
1254            <trigger>
1255                <EventListener event=attack />
1256            </trigger>
1257        </events>
1258    </SimpleNotification>
1259
1260
1261<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
1262<!-- TODO: re-hide pirates on early end-->
1263<!-- 1 -->
1264    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker"visible="true">
1265        <events>
1266            <visibility>
1267                <EventListener event="ondock" />
1268            </visibility>
1269        </events>
1270        <templates>
1271            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1272        </templates>
1273        <controller>
1274            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1275                <waypoints>
1276                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1277                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1278                </waypoints>
1279                <events>
1280                    <activity>
1281                        <EventListener event="attack" /> <!-- activates enemies-->
1282                     </activity>
1283                </events>
1284            </WaypointPatrolController>
1285        </controller>
1286    </SpaceShip>
1287<!-- 2 -->
1288    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker" visible="true">
1289        <events>
1290            <visibility>
1291                <EventListener event="ondock" />
1292            </visibility>
1293        </events>
1294        <templates>
1295            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1296        </templates>
1297        <controller>
1298            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1299                <waypoints>
1300                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1301                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1302                </waypoints>
1303                <events>
1304                    <activity>
1305                        <EventListener event="attack" /> <!-- activates enemies-->
1306                     </activity>
1307                </events>
1308            </WaypointPatrolController>
1309        </controller>
1310    </SpaceShip>
1311<!-- 3 -->
1312    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker" visible="true">
1313        <events>
1314            <visibility>
1315                <EventListener event="ondock" />
1316            </visibility>
1317        </events>
1318        <templates>
1319            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1320        </templates>
1321        <controller>
1322            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1323                <waypoints>
1324                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1325                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1326                </waypoints>
1327                <events>
1328                    <activity>
1329                        <EventListener event="attack" /> <!-- activates enemies-->
1330                     </activity>
1331                </events>
1332            </WaypointPatrolController>
1333        </controller>
1334    </SpaceShip>
1335<!-- 4 -->
1336    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker" visible="true">
1337        <events>
1338            <visibility>
1339                <EventListener event="ondock" />
1340            </visibility>
1341        </events>
1342        <templates>
1343            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1344        </templates>
1345        <controller>
1346            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1347                <waypoints>
1348                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1349                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1350                </waypoints>
1351                <events>
1352                    <activity>
1353                        <EventListener event="attack" /> <!-- activates enemies-->
1354                     </activity>
1355                </events>
1356            </WaypointPatrolController>
1357        </controller>
1358    </SpaceShip>
1359<!-- 5 -->
1360    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker"visible="true">
1361        <events>
1362            <visibility>
1363                <EventListener event="ondock" />
1364            </visibility>
1365        </events>
1366        <templates>
1367            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1368        </templates>
1369        <controller>
1370            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1371                <waypoints>
1372                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1373                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1374                </waypoints>
1375                <events>
1376                    <activity>
1377                        <EventListener event="attack" /> <!-- activates enemies-->
1378                     </activity>
1379                </events>
1380            </WaypointPatrolController>
1381        </controller>
1382    </SpaceShip>
1383<!-- 6 -->
1384    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker" visible="true">
1385        <events>
1386            <visibility>
1387                <EventListener event="ondock" />
1388            </visibility>
1389        </events>
1390        <templates>
1391            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
1392        </templates>
1393        <controller>
1394            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
1395                <waypoints>
1396                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
1397                    <Model mesh="cube.mesh" scale=0 position="0,0,0" />
1398                </waypoints>
1399                <events>
1400                    <activity>
1401                        <EventListener event="attack" /> <!-- activates enemies-->
1402                     </activity>
1403                </events>
1404            </WaypointPatrolController>
1405        </controller>
1406    </SpaceShip>
1407
1408
1409<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
1410    <EventTrigger name="attacktrigger6" activations="1" stayactive="true">
1411      <events>
1412        <trigger>
1413          <EventListener event="attacker" />
1414        </trigger>
1415      </events>
1416      <EventTrigger name="attacktrigger5" activations="1" stayactive="true" delay=0.1>
1417        <events>
1418          <trigger>
1419            <EventListener event="attacker" />
1420          </trigger>
1421        </events>
1422        <EventTrigger name="attacktrigger4" activations="1" stayactive="true" delay=0.1>
1423          <events>
1424            <trigger>
1425              <EventListener event="attacker" />
1426            </trigger>
1427          </events>
1428          <EventTrigger name="attacktrigger3" activations="1" stayactive="true" delay=0.1>
1429            <events>
1430              <trigger>
1431                <EventListener event="attacker" />
1432              </trigger>
1433            </events>
1434            <EventTrigger name="attacktrigger2" activations="1" stayactive="true" delay=0.1>
1435              <events>
1436                <trigger>
1437                  <EventListener event="attacker" />
1438                </trigger>
1439              </events>
1440              <EventTrigger name="attacktrigger1" activations="1" stayactive="true" delay=0.1>
1441                <events>
1442                  <trigger>
1443                    <EventListener event="attacker" />
1444                  </trigger>
1445                </events>
1446              </EventTrigger>
1447            </EventTrigger>
1448          </EventTrigger>
1449        </EventTrigger>
1450      </EventTrigger>
1451    </EventTrigger>
1452
1453
1454    <SimpleNotification message="5 enemies left!" broadcast="true">
1455      <events>
1456        <trigger>
1457          <EventListener event="attacktrigger1" />
1458        </trigger>
1459      </events>
1460    </SimpleNotification>
1461
1462    <SimpleNotification message="4 enemies left!" broadcast="true">
1463      <events>
1464        <trigger>
1465          <EventListener event="attacktrigger2" />
1466        </trigger>
1467      </events>
1468    </SimpleNotification>
1469
1470    <SimpleNotification message="3 enemies left!" broadcast="true">
1471      <events>
1472        <trigger>
1473          <EventListener event="attacktrigger3" />
1474        </trigger>
1475      </events>
1476    </SimpleNotification>
1477
1478    <SimpleNotification message="2 enemies left!" broadcast="true">
1479      <events>
1480        <trigger>
1481          <EventListener event="attacktrigger4" />
1482        </trigger>
1483      </events>
1484    </SimpleNotification>
1485
1486    <SimpleNotification message="One enemy left!" broadcast="true">
1487      <events>
1488        <trigger>
1489          <EventListener event="attacktrigger5" />
1490        </trigger>
1491      </events>
1492    </SimpleNotification>
1493
1494    <SimpleNotification message="Well done. You finished this tutorial." broadcast="true">
1495      <events>
1496        <trigger>
1497          <EventListener event="attacktrigger6" />
1498        </trigger>
1499      </events>
1500    </SimpleNotification>
1501
1502<!-- @Triggers: postAttack <-> delayed attacktrigger6 -->
1503    <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=4.1>
1504      <events>
1505        <trigger>
1506          <EventListener event="attacktrigger6" />
1507        </trigger>
1508      </events>
1509    </EventTrigger>
1510
1511    <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=8.2>
1512      <events>
1513        <trigger>
1514          <EventListener event="attacktrigger6" />
1515        </trigger>
1516      </events>
1517    </EventTrigger>
1518
1519    <SimpleNotification message="Either quit by pressing (Esc) or ..." broadcast="true">
1520      <events>
1521        <trigger>
1522          <EventListener event="postAttack1" />
1523        </trigger>
1524      </events>
1525    </SimpleNotification>
1526
1527    <SimpleNotification message="... stay here to learn some tricks." broadcast="true">
1528      <events>
1529        <trigger>
1530          <EventListener event="postAttack2" />
1531        </trigger>
1532      </events>
1533    </SimpleNotification>
1534
1535<!-------------------------------------- |Bonus Part| --------------------------------------->
1536<!-- @Triggers: "bonusX" <->  delayed "attacktrigger6" -->
1537    <EventTrigger name="bonus1" activations="1" stayactive="true" delay=12.3>
1538      <events>
1539        <trigger>
1540          <EventListener event="attacktrigger6" />
1541        </trigger>
1542      </events>
1543    </EventTrigger>
1544    <EventTrigger name="bonus2" activations="1" stayactive="true" delay=16.4>
1545      <events>
1546        <trigger>
1547          <EventListener event="attacktrigger6" />
1548        </trigger>
1549      </events>
1550    </EventTrigger>
1551    <EventTrigger name="bonus3" activations="1" stayactive="true" delay=22>
1552      <events>
1553        <trigger>
1554          <EventListener event="attacktrigger6" />
1555        </trigger>
1556      </events>
1557    </EventTrigger>
1558    <EventTrigger name="bonus4" activations="1" stayactive="true" delay=28.1>
1559      <events>
1560        <trigger>
1561          <EventListener event="attacktrigger6" />
1562        </trigger>
1563      </events>
1564    </EventTrigger>
1565    <EventTrigger name="bonus5" activations="1" stayactive="true" delay=32.3>
1566      <events>
1567        <trigger>
1568          <EventListener event="attacktrigger6" />
1569        </trigger>
1570      </events>
1571    </EventTrigger>
1572    <EventTrigger name="bonus6" activations="1" stayactive="true" delay=36.5>
1573      <events>
1574        <trigger>
1575          <EventListener event="attacktrigger6" />
1576        </trigger>
1577      </events>
1578    </EventTrigger>
1579    <EventTrigger name="bonus7" activations="1" stayactive="true" delay=4.1>
1580      <events>
1581        <trigger>
1582          <EventListener event="bonus6" />
1583        </trigger>
1584      </events>
1585    </EventTrigger>
1586
1587
1588
1589    <SimpleNotification message="Rotate your ship. Press (Q) or (E). "  broadcast="true">
1590        <events>
1591            <trigger>
1592                <EventListener event=bonus1 />
1593            </trigger>
1594        </events>
1595    </SimpleNotification>
1596
1597    <SimpleNotification message="Switch the camera's position. Press (C). "  broadcast="true">
1598        <events>
1599            <trigger>
1600                <EventListener event=bonus2 />
1601            </trigger>
1602        </events>
1603    </SimpleNotification>
1604
1605    <SimpleNotification message="360° view: press (Ctrl) + use the mouse "  broadcast="true">
1606        <events>
1607            <trigger>
1608                <EventListener event=bonus3 />
1609            </trigger>
1610        </events>
1611    </SimpleNotification>
1612
1613    <SimpleNotification message="Have a look at the main menu's settings."  broadcast="true">
1614        <events>
1615            <trigger>
1616                <EventListener event=bonus4 />
1617            </trigger>
1618        </events>
1619    </SimpleNotification>
1620
1621    <SimpleNotification message="E.g: Settings > Miscellaneous > Nr. of bots"  broadcast="true">
1622        <events>
1623            <trigger>
1624                <EventListener event=bonus5 />
1625            </trigger>
1626        </events>
1627    </SimpleNotification>
1628
1629    <SimpleNotification message="You successfully finished Mission One!"  broadcast="true">
1630        <events>
1631            <trigger>
1632                <EventListener event=bonus6 />
1633            </trigger>
1634        </events>
1635    </SimpleNotification>
1636
1637    <SimpleNotification message="Press (Esc) and return to the main menu."  broadcast="true">
1638        <events>
1639            <trigger>
1640                <EventListener event=bonus7 />
1641            </trigger>
1642        </events>
1643    </SimpleNotification>
1644
1645
1646    <!--Script code="addBots 3" onLoad="false">
1647        <events>
1648            <trigger>
1649                <EventListener event=bonus6 />
1650            </trigger>
1651        </events>
1652    </Script>
1653
1654    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
1655        <events>
1656            <trigger>
1657                <EventListener event=bonus6 />
1658            </trigger>
1659        </events>
1660    </Script-->
1661    <!-- Script code="artificialcontroller setbotlevel 0.1" /-->
1662  </Scene>
1663</Level>
1664
1665<!-- TODO:
1666- Story & more precise Questmessages; more quest hints; fail-quest;
1667- Colouring: Show who is friend or foe via the colour
1668- Waypoints: show the player the way
1669- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken ~done )
1670- End Tutorial, if either the Hydrogen Farmer or the SpaceCruiser gets destroyed. (~done)
1671 -->
Note: See TracBrowser for help on using the repository browser.