Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/quest_test.oxw @ 6939

Last change on this file since 6939 was 6939, checked in by cdaniel, 14 years ago

Quest level updated

File size: 14.1 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5  include("templates/spaceship_HXY_SL.oxt")
6  include("templates/spaceship_pirate.oxt")
7?>
8
9<Template name=spaceshipassffplayer defaults=0>
10  <SpaceShip template=spaceshipassff name=player>
11    <attached>
12    <DistanceTriggerBeacon name=Me/>
13    </attached>
14  </SpaceShip>
15</Template>
16
17<?lua
18    dofile("includes/CuboidSpaceStation.lua")
19?>
20
21<NotificationQueue
22         name     = "notification"
23         position = "0.40, 0.05"
24         font     = "VeraMono"
25         textsize = 0.020
26         length   = 3
27         width    = 50
28/>
29       
30       
31       
32<Level
33name="Dani's Testlevel"
34description="Erste Versuche mit den Quests"
35>
36
37    <Scene
38        ambientlight = "0.3, 0.3, 0.3"
39        skybox       = "Orxonox/skypanoramagen1"
40    >
41              <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" />
42             
43             
44              <GlobalQuest id="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551">
45                <QuestDescription title="Fight for freedom"
46                                        description="Just a few hours ago, a group of pirates attacked an killed all your  squad members. Now you are very angry and you want to take revenge. Find the pirates and kill them!"
47                                        failmessage="You are a loser, now the whole universe will be controlled by the pirates!"
48                                        completeMessage="Yeah, you did it! You,ve eliminated the enemies. But why attacked them the Humans here? For tousands of years, there was peace in this sun system.
49                                                                You have to find out what happened exactly and why the pirates attacked..."/>
50                        <subquests>
51                                <GlobalQuest id="3159b4d4-bc86-4190-ba1d-4530668dfe31">
52                                        <QuestDescription title="There are more of them..."
53                                        description="Now you can see it: There are more pirates... the pirates you killed were only a small part of the whole fleet. You recieved a message from your Headquarter: The pirates have stolen
54                                                        a very important memory stick with secret infos (military locations etc.), the holy stick. You must get it back! Otherwise the humans are in great danger..."
55                                        failmessage=""
56                                        completeMessage="Unbelievable, you annihilated all pirates and got the stolen memory stick.
57                                                                But wait... this isn't the memory stick you looked for, this stick is one from a pirate... anyway, it's helpful: There is a map saved on it, which leads you to a pirate - base. Perhaps you'll find more
58                                                                about their plans there..."/>
59                                </GlobalQuest>
60                                <GlobalQuest id="8d8ed3a6-74a6-4491-9172-26155cff151d">
61                                        <QuestDescription title="Find the Base"
62                                        description="Now you are in possession of the map and it should be easy to find the base. Because you are a Member of an elite-fight-squad, your ship has been pimped before you started your mission.
63                                                They installed a very modern navigation system, which leads you precisely to your desired destination. Use it to find the pirate - base."
64                                        failmessage=""
65                                        completeMessage="The navigation system worked very well and now you should be near a pirate -base." />
66                                        <hints>
67                                                <QuestHint id="965101b3-26ce-4fcf-bc71-17cc2a87d2e9">
68                                                <QuestDescription title="3 Ways?"
69                                                description="The different ways leads you to the possible positions where the base could be. The problem is that the map is encrypted and your on board system is not
70                                                                able to decrypt it exactly. Therefore you have to try 3 possible ways...Tha base is Huge, but it could be that it's invisible when ou are in longer distance (some Big Ships
71                                                                have a special shield aroud them which make them invisible at longer range)."/>
72                                                </QuestHint>
73                                                <QuestHint id="9930a598-98bc-4ff8-8cc0-31311a6ccaaa">
74                                                <QuestDescription title=":(" description="Here isn't the base you look for... try another way."/>
75                                                </QuestHint>
76                                        </hints>
77                                </GlobalQuest>
78                                <GlobalQuest id="8a62408b-c47b-4e02-bd3d-06bb9ec0b363">
79                                        <QuestDescription title="The Base"
80                                        description="Yeah, you found the Base... now let's check if there is the important holy stick..."
81                                        failmessage=""
82                                        completeMessage="There it is, the Holy stick. Yes, you're right. It looks like a rocket because there are so many rockets in the universe, that it's nearly impossible to find the holy stick between them.
83                                                                Anyway, the pirates found the stick... another part which is confusing. Why did they know where the holy stick is? Perpaps they know more about the humans than you think."/>
84                                </GlobalQuest>
85                                <GlobalQuest id="85380d05-b791-45d1-82e9-01f0bc930367">
86                                        <QuestDescription title="Find out more about the pirates"
87                                        description= "Now, the Holy stick is back in your possession. Your new mission is "
88                                        failmessage=""
89                                        completeMessage=""/>
90                                </GlobalQuest>
91                        </subquests>
92                        <hints>
93                                <QuestHint id="2b85f32c-2433-4f1a-bdd4-f24d20c9403c">
94                                        <QuestDescription title="Useful to know" description="Pirates like to hide themselves behind asteroids."/>
95                                </QuestHint>
96                        </hints>
97                        <fail-effects>
98                        </fail-effects>
99                        <complete-effects>
100                        </complete-effects>
101                </GlobalQuest>
102               
103              <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
104                  <events>
105                    <spawn>
106                      <EventTrigger delay=1>
107                        <events>
108                          <trigger>
109                            <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer />
110                          </trigger>
111                        </events>
112                      </EventTrigger>
113                    </spawn>
114                  </events>
115                  <attached>
116                    <QuestEffectBeacon position="0,0,0" times=1>
117                        <effects>
118                            <AddQuest questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" />
119                        </effects>
120                        <events>
121                            <execute>
122                                <EventListener event=questbeacon1 />
123                            </execute>
124                        </events>
125                        <attached>
126                            <DistanceTrigger name=questbeacon1 position="0,0,0" distance=100 target=DistanceTriggerBeacon targetname=Me/>
127                        </attached>
128                    </QuestEffectBeacon>
129                  </attached>
130                </ParticleSpawner>
131               
132               
133               
134                <!-- AddSubQuest1 (Questbeacon2)-->
135                <QuestEffectBeacon position="<?lua print(math.random()*100-500)?>,<?lua print(math.random()*100-500)?>,<?lua print(math.random()*200-2000)?>" times=1>
136                                        <attached>
137                                                <Billboard position="0,0,0" scale=3 colour="1.0,1.0,0" material="Examples/Flare" />
138                                                <DistanceTrigger name=questbeacon2  position="0,0,0" distance=200 target="Pawn" />
139                                        </attached>
140                                        <effects>
141                                                <AddQuest questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" />
142                                        </effects>
143                                        <events>
144                                                <execute>
145                                                        <EventListener event=questbeacon2 />
146                                                </execute>
147                                        </events>
148                            </QuestEffectBeacon>
149                           
150                <!-- hint (Questbeacon3)-->
151                <QuestEffectBeacon position="0,0,0" times=1>
152                                        <attached>
153                                                <DistanceTrigger name=questbeacon3  position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me delay="10" />
154                                        </attached>
155                                        <effects>
156                                                <AddQuestHint hintId="2b85f32c-2433-4f1a-bdd4-f24d20c9403c" />
157                                        </effects>
158                                        <events>
159                                                <execute>
160                                                        <EventListener event=questbeacon3 />
161                                                </execute>
162                                        </events>
163                            </QuestEffectBeacon>       
164                           
165                           
166                <!-- finish SubQuest (Questbeacon4)-->
167                <QuestEffectBeacon position="600,300,-6000" times=1>
168                                        <attached>
169                                                <Billboard position="0,0,0" scale=3 colour="0,1.0,0" material="Examples/Flare" />
170                                                <DistanceTrigger name=questbeacon4  position="0,0,0" distance=200 target=DistanceTriggerBeacon targetname=Me />
171                                        </attached>
172               
173                                        <effects>
174                                                <CompleteQuest questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" />
175                                                <AddQuest questId="8d8ed3a6-74a6-4491-9172-26155cff151d" />
176                                                <AddQuestHint hintId="965101b3-26ce-4fcf-bc71-17cc2a87d2e9" />
177                                        </effects>
178                                        <events>
179                                                <execute>
180                                                        <EventListener event=questbeacon4 />
181                                                </execute>
182                                        </events>
183                            </QuestEffectBeacon>
184                           
185                           
186                <!-- Navihint 1(Questbeacon5)-->
187                <QuestEffectBeacon position="7600,300,-8000" times=1>
188                                        <attached>
189                                                <DistanceTrigger name=questbeacon5  position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me />
190                                        </attached>
191                                        <effects>
192                                                <AddQuestHint hintId="9930a598-98bc-4ff8-8cc0-31311a6ccaaa" />
193                                        </effects>
194                                        <events>
195                                                <execute>
196                                                        <EventListener event=questbeacon5 />
197                                                </execute>
198                                        </events>
199                            </QuestEffectBeacon>       
200                           
201                <!-- Navi2(Questbeacon6)-->
202                <QuestEffectBeacon position="4600,5300,-11000" times=1>
203                                        <attached>
204                                                <DistanceTrigger name=questbeacon6  position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me />
205                                        </attached>
206                                        <effects>
207                                                <CompleteQuest questId="8d8ed3a6-74a6-4491-9172-26155cff151d" />
208                                                <AddQuest questId="8a62408b-c47b-4e02-bd3d-06bb9ec0b363" />
209                                               
210                                        </effects>
211                                        <events>
212                                                <execute>
213                                                        <EventListener event=questbeacon6 />
214                                                </execute>
215                                        </events>
216                            </QuestEffectBeacon>
217                           
218                <!--Navigation System-->                           
219        <EventDispatcher>
220                <targets>
221                    <EventTarget target=Navi />
222                </targets>
223                <events>
224                    <visibility>
225                        <QuestListener questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" mode="complete" />
226                    </visibility>
227                    <activity>
228                        <QuestListener questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" mode="complete" />
229                    </activity>
230                </events>
231            </EventDispatcher>
232
233            <?lua
234                for i = 0, 30
235                do
236            ?>
237                <Billboard position="<?lua print(i*1000/30+600) ?>,<?lua print(i*2000/30+300) ?>,<?lua print(-i*4000/30-6000) ?>" colour="1.0,0,0" scale=1 material="Examples/Flare" name=Navi visible=false/><!--endpos:1600,2300,-10000-->
238                <Billboard position="<?lua print(i*7000/30+600) ?>,<?lua print(i*0/30+300) ?>,<?lua print(-i*2000/30-6000) ?>" colour="0,1.0,0" scale=1 material="Examples/Flare" name=Navi visible=false/><!--endpos:7600,300,-8000-->
239                <Billboard position="<?lua print(i*4000/30+600) ?>,<?lua print(i*5000/30+300) ?>,<?lua print(-i*5000/30-6000) ?>" colour="0,0,1.0" scale=1 material="Examples/Flare" name=Navi visible=false/><!--endpos:4600,5300,-11000-->
240            <?lua
241                end
242            ?>
243               
244               
245        <StaticEntity scale=1 position="4650,5350,-11050" name=base visible=true active=true yaw=60>
246                <attached>
247                    <?lua
248                        createSpaceStationPar(9851,2,1,2,1,2,1,100)
249                    ?>
250                </attached>
251            </StaticEntity>
252           
253        <ParticleSpawner position="4650,5350,-11050" source="Orxonox/explosion1" name=base visible=false active=false loop=0/>
254        <Model position="4800,5785,-10725" scale=3 mesh="Rocket.mesh" visible=true active=true name=base />
255        <EventDispatcher>
256                <targets>
257                    <EventTarget target=base />
258                </targets>
259                <events>
260                    <visibility>
261                  <EventTrigger invert=true>
262                    <events>
263                      <trigger>
264                        <QuestListener questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" mode="recieve" />
265                      </trigger>
266                    </events>
267                  </EventTrigger>
268                    </visibility>
269                    <activity>
270                    <EventTrigger invert=true>
271                    <events>
272                      <trigger>
273                             <QuestListener questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" mode="recieve" />
274                      </trigger>
275                    </events>
276                  </EventTrigger>
277                    </activity>
278                </events>
279            </EventDispatcher>
280
281       
282        <EventDispatcher>
283                <targets>
284                    <EventTarget target=base />
285                </targets>
286                <events>
287                    <visibility>
288                        <QuestListener questId="8d8ed3a6-74a6-4491-9172-26155cff151d" mode="complete" />
289                    </visibility>
290                    <activity>
291                        <QuestListener questId="8d8ed3a6-74a6-4491-9172-26155cff151d" mode="complete" />
292                    </activity>
293                </events>
294            </EventDispatcher>
295
296       
297       
298       
299                <!-- pirates -->
300                <?lua
301                for i = 1,1, 1
302                do
303                ?>
304                    <SpaceShip position="<?lua print(math.random()*100)?>,<?lua print(math.random()*100)?>,<?lua print(math.random()*100-2000)?>">
305                      <templates>
306                        <Template link=spaceshippirate />
307                      </templates>
308                      <controller>
309                        <WaypointPatrolController alertnessradius=1000 team=0 active=true>
310                          <waypoints>
311                            <StaticEntity position="0,<?lua print(math.random()*50)?> ,<?lua print(i*50 -2000) ?>" />
312                          </waypoints>
313                        </WaypointPatrolController>
314                      </controller>
315                      <attached>
316                      </attached>
317                    </SpaceShip>
318                <?lua
319                end
320                ?>
321               
322                <?lua
323                for i = 1,2, 1
324                do
325                ?>
326                    <SpaceShip position="600,300,-6000">
327                      <templates>
328                        <Template link=spaceshippirate />
329                      </templates>
330                      <controller>
331                        <WaypointPatrolController alertnessradius=1000 team=0 active=true>
332                          <waypoints>
333                            <StaticEntity position="600,300,-6000" />
334                          </waypoints>
335                        </WaypointPatrolController>
336                      </controller>
337                      <attached>
338                      </attached>
339                    </SpaceShip>
340                <?lua
341                end
342                ?>
343               
344               
345        <!-- Asteroid field-->
346            <StaticEntity position="-400,2000,-7000">
347                <attached>
348                    <?lua
349                        for i = 1, 180
350                        do ?>
351                        <MovableEntity position="<?lua print(math.random() * 10000 -5000)?>, <?lua print(math.random() * 10000-5000) ?>, <?lua print(math.random() * 10000 -7000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>">
352                            <attached>
353                                <Model scale="<?lua print(math.random() * 100) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
354                            </attached>
355                        </MovableEntity>
356                    <?lua
357                        end
358                    ?>
359                    </attached>
360                </StaticEntity>
361               
362               
363        </Scene>
364</Level>
Note: See TracBrowser for help on using the repository browser.