Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/princessaeryn.oxw @ 5381

Last change on this file since 5381 was 5381, checked in by landauf, 15 years ago

added scoreboard to levels
initialize scoreboard with visible=false
changed skybox in all levels to the new one and added corresponding directional light

  • Property svn:eol-style set to native
File size: 13.5 KB
Line 
1<?lua
2  include("levels/hudtemplates.oxw")
3?>
4
5<?lua
6  include("levels/spaceshiptemplates.oxw")
7?>
8
9<?lua
10        dofile("../../media/levels/CuboidSpaceStation.lua")
11?>
12
13<NotificationQueue
14  name  = "notification"
15  position = "0.55, 0.05"
16  font = "VeraMono"
17  textSize = 0.020
18  length = 3
19  width = 50
20  />
21
22<Level
23 name         = "The Tale of Princess Aeryn"
24 description  = "The Tale of Princess Aeryn"
25>
26    <Scene
27        ambientlight = "0.8, 0.8, 0.8"
28        skybox       = "Orxonox/skypanoramagen1"
29    >
30      <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" />
31
32        <!-- Quest: -->
33        <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
34            <QuestDescription title="The Tale of Princess Aeryn" description="Princess Aeryn has been kidnapped by evil Mr. M and you were just a little too late to save her.\nYou have to find and save her from her captors." failMessage="You cannot fail, how did you?" completeMessage="You did it John. You're a hero. Princess Aeryn however will still not marry you." />
35            <subquests>
36                <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b">
37                    <QuestDescription title="Find Aeryn's S.H.O.E.S." description="Oh, the kidnappers must have been in a hurry because they overlooked princess Aeryns S.H.O.E.S. (Super Heavily Organized Escape Ship) hidden in the asteroid field over there.\nFind it and look there for clues to Princess Aeryns whereabouts." completeMessage="You did it, Looking through her stuff you find an odd looking device - Could this be the receiver of Princess Aeryns locator beacon? - But it must be broken, the screen remains blank." />
38                    <complete-effects>
39                        <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
40                    </complete-effects>
41                </GlobalQuest>
42                <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e">
43                    <QuestDescription title="Repair the receiver." description="There is a space station called 'Serenity Station' near here. An engineer called Nathan Stark who shoud be able to help you lives there." completeMessage="'Yeah Nathan lives here, he'll shurely help you.'\nAnd he does, apparenty the device was just low on batteries so you're now able to locate your beloved Princess Aeryn." />
44                    <hints>
45                        <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6">
46                            <QuestDescription title="The Katratzi Station" description="'We ain't buying!'\n'What do you want?'\n'No there lives no Nathan here.'\n'Fuck off.''" />
47                        </QuestHint>
48                        <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c">
49                            <QuestDescription title="The Pegasus Station" description="'Hello friend.'\n'How can we help you?'\n'A Mr. Stark you say? Sorry no man with such a name lives here.'" />
50                        </QuestHint>
51                    </hints>
52                    <complete-effects>
53                        <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
54                    </complete-effects>
55                </GlobalQuest>
56                <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4">
57                    <QuestDescription title="Follow the dots" description="Just follow the dots, they'll lead you right to her." completeMessage="You found Princess Aeryn. Her captors give up at the shere sight ou you." />
58                    <complete-effects>
59                        <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
60                    </complete-effects>
61                </GlobalQuest>
62            </subquests>
63        </GlobalQuest>
64   
65        <!-- Create spaceship spawner: -->
66        <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
67          <events>
68            <spawn>
69              <EventTrigger delay=1>
70                <events>
71                  <trigger>
72                    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
73                  </trigger>
74                </events>
75              </EventTrigger>
76            </spawn>
77          </events>
78          <attached>
79            <QuestEffectBeacon position="0,0,0" times=1>
80                <effects>
81                    <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
82                    <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
83                </effects>
84                <events>
85                    <execute>
86                        <EventListener event=questbeacon1 />
87                    </execute>
88                </events>
89                <attached>
90                    <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="ControllableEntity" />
91                </attached>
92            </QuestEffectBeacon>
93          </attached>
94        </ParticleSpawner>
95
96        <!-- Create world -->
97
98            <!-- Kidnapper flying away -->
99            <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45>
100                <attached>
101                    <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" />
102                    <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 />
103                    <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
104                        <effects>
105                            <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
106                        </effects>
107                        <events>
108                            <execute>
109                                <EventListener event=questbeacon7 />
110                            </execute>
111                        </events>
112                        <attached>
113                            <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="ControllableEntity" />
114                        </attached>
115                    </QuestEffectBeacon>
116                </attached>
117            </MovableEntity>
118
119            <!-- Asteroid field -->
120            <PositionableEntity position="-500,0,-3000">
121                <attached>
122                    <?lua
123                        for i = 1, 200
124                        do ?>
125                        <MovableEntity position="<?lua print(math.random() * 2000 - 1000)?>, <?lua print(math.random() * 2000 - 1000) ?>, <?lua print(math.random() * 2000 - 1000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>">
126                            <attached>
127                                <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
128                            </attached>
129                        </MovableEntity>
130                    <?lua
131                        end
132                    ?>
133                    <!-- S.H.O.E.S -->
134                    <PositionableEntity position="-300,0,0">
135                        <attached>
136                            <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" />
137                            <QuestEffectBeacon position="0,0,0" times=-1>
138                                <effects>
139                                    <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
140                                </effects>
141                                <events>
142                                    <execute>
143                                        <EventListener event=questbeacon2 />
144                                    </execute>
145                                </events>
146                                <attached>
147                                    <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="ControllableEntity" />
148                                </attached>
149                            </QuestEffectBeacon>
150                        </attached>
151                    </PositionableEntity>
152                </attached>
153            </PositionableEntity>
154     
155     
156     
157            <!-- Spacestations -->
158     
159            <!-- Serenity Station -->
160            <PositionableEntity scale=1 position="0,0,5000" yaw=30>
161                <attached>
162                    <?lua
163                        createSpaceStationPar(65461,2,1,2,1,2,1,100)
164                    ?>
165                    <QuestEffectBeacon position="0,450,0" times=1>
166                        <effects>
167                            <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
168                        </effects>
169                        <events>
170                            <execute>
171                                <EventListener event=questbeacon3 />
172                            </execute>
173                        </events>
174                        <attached>
175                            <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
176                            <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="ControllableEntity" />
177                        </attached>
178                    </QuestEffectBeacon>
179                </attached>
180            </PositionableEntity>
181
182            <!-- Katratzi Station -->
183            <PositionableEntity scale=1 position="0,5000,300" yaw=60>
184                <attached>
185                    <?lua
186                        createSpaceStationPar(9851,2,1,2,1,2,1,100)
187                    ?>
188                    <QuestEffectBeacon position="0,450,0" times=1>
189                        <effects>
190                            <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" />
191                        </effects>
192                        <events>
193                            <execute>
194                                <EventListener event=questbeacon4 />
195                            </execute>
196                        </events>
197                        <attached>
198                            <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
199                            <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="ControllableEntity" />
200                        </attached>
201                    </QuestEffectBeacon>
202                </attached>
203            </PositionableEntity>
204
205            <!-- Pegasus Station -->
206            <PositionableEntity scale=1 position="-5000,100,1000" roll=30>
207                <attached>
208                    <?lua
209                        createSpaceStationPar(3574,2,1,2,1,2,1,100)
210                    ?>
211                    <QuestEffectBeacon position="200,450,0" times=1>
212                        <effects>
213                            <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" />
214                        </effects>
215                        <events>
216                            <execute>
217                                <EventListener event=questbeacon5 />
218                            </execute>
219                        </events>
220                        <attached>
221                            <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
222                            <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="ControllableEntity" />
223                        </attached>
224                    </QuestEffectBeacon>
225                </attached>
226            </PositionableEntity>
227             
228            <!-- Trail -->
229            <EventDispatcher>
230                <targets>
231                    <EventTarget name=trail />
232                </targets>
233                <events>
234                    <visibility>
235                        <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
236                    </visibility>
237                    <activity>
238                        <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
239                    </activity>
240                </events>
241            </EventDispatcher>
242       
243            <?lua
244                for i = 1, 25
245                do
246            ?>
247                <Billboard position="<?lua print(i*5000/25) ?>,<?lua print(450+i*(5000-450)/25) ?>,5000" colour="1.0,0,0" material="Examples/Flare" name=trail visible=false/>
248            <?lua
249                end
250            ?>
251       
252            <!-- Hideout -->
253            <PositionableEntity position="5000,5000,5000" >
254                <attached>
255                    <Model scale="100" mesh="ast2.mesh" shadow=false />
256                </attached>
257            </PositionableEntity>
258
259            <PositionableEntity position="5400,5400,5000" visible=false name=trail >
260                <attached>
261                    <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail />
262                    <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
263                        <effects>
264                            <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
265                        </effects>
266                        <events>
267                            <execute>
268                                <EventListener event=questbeacon6 />
269                            </execute>
270                        </events>
271                        <attached>
272                            <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="ControllableEntity" />
273                        </attached>
274                    </QuestEffectBeacon>
275                </attached>
276            </PositionableEntity>
277
278    </Scene>
279</Level>
280
Note: See TracBrowser for help on using the repository browser.