Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_HS18/data/levels/old/princessAeryn.oxw @ 12177

Last change on this file since 12177 was 12177, checked in by siramesh, 5 years ago

Super Orxo Bros Final (Sidharth Ramesh, Nisa Balta, Jeff Ren)

File size: 14.7 KB
Line 
1<?lua
2  include("HUDTemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceshipAssff.oxt")
5?>
6
7<?lua
8    dofile("includes/CuboidSpaceStation.lua")
9?>
10
11<Level
12 name         = "The Tale of Princess Aeryn"
13 description  = "The Tale of Princess Aeryn"
14>
15    <Scene
16        ambientlight = "0.3, 0.3, 0.3"
17        skybox       = "Orxonox/skyBoxBasic"
18    >
19
20        <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
21
22      <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" />
23
24        <Template name=turboitem baseclass=Turbo>
25          <Turbo
26            playerclass=SpaceShip
27            duration=15
28          />
29        </Template>
30
31        <ParticleSpawner position="200,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
32          <events>
33            <spawn>
34              <PickupSpawner position="200,0,-500" distance=50 respawntimer=25 item=turboitem>
35                <attached>
36                  <Model mesh="sphere.mesh" scale=3 />
37                  <Billboard material="Examples/Flare" colour="0.5, 1.0, 0.3" scale=0.5 />
38                </attached>
39              </PickupSpawner>
40            </spawn>
41          </events>
42        </ParticleSpawner>
43
44        <Template name=turboequipment baseclass=Turbo>
45          <Turbo
46            playerclass=SpaceShip
47            duration=0
48          />
49        </Template>
50
51        <ParticleSpawner position="400,0,-1000" source="Orxonox/BigExplosion1part1" lifetime=2.0 loop=0 autostart=0>
52          <events>
53            <spawn>
54              <PickupSpawner position="400,0,-1000" distance=50 respawntimer=25 item=turboequipment>
55                <attached>
56                  <Model mesh="sphere.mesh" scale=3 />
57                  <Billboard material="Examples/Flare" colour="1.0, 0.5, 0.3" scale=0.5 />
58                </attached>
59              </PickupSpawner>
60            </spawn>
61          </events>
62        </ParticleSpawner>
63
64        <!-- Quest: -->
65        <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
66            <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." />
67            <subquests>
68                <GlobalQuest id="43766602-7e2f-4d24-976a-3f9de1474d5b">
69                    <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." />
70                    <complete-effects>
71                        <AddQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
72                    </complete-effects>
73                </GlobalQuest>
74                <GlobalQuest id="50845552-c8af-4091-947c-76bd850b224e">
75                    <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." />
76                    <hints>
77                        <QuestHint id="b9b10841-b045-4797-b1d3-cfce760e1de6">
78                            <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.''" />
79                        </QuestHint>
80                        <QuestHint id="1ee785f8-b71d-4b51-b080-42cec5be8e3c">
81                            <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.'" />
82                        </QuestHint>
83                    </hints>
84                    <complete-effects>
85                        <AddQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
86                    </complete-effects>
87                </GlobalQuest>
88                <GlobalQuest id="97628524-b243-492c-b7b6-498f325b21d4">
89                    <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." />
90                    <complete-effects>
91                        <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
92                    </complete-effects>
93                </GlobalQuest>
94            </subquests>
95        </GlobalQuest>
96
97        <!-- Create spaceship spawner: -->
98        <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
99          <events>
100            <spawn>
101              <EventTrigger delay=1>
102                <events>
103                  <trigger>
104                    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
105                  </trigger>
106                </events>
107              </EventTrigger>
108            </spawn>
109          </events>
110          <attached>
111            <QuestEffectBeacon position="0,0,0" times=1>
112                <effects>
113                    <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
114                    <AddQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
115                </effects>
116                <events>
117                    <execute>
118                        <EventListener event=questbeacon1 />
119                    </execute>
120                </events>
121                <attached>
122                    <DistanceTrigger name=questbeacon1 position="0,0,0" distance=10 target="ControllableEntity" />
123                </attached>
124            </QuestEffectBeacon>
125          </attached>
126        </ParticleSpawner>
127
128        <!-- Create world -->
129
130            <!-- Kidnapper flying away -->
131            <MovableEntity position="200,0,0" velocity="-140,0,-140" yaw=45>
132                <attached>
133                    <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" />
134                    <ParticleSpawner position="0,0,10" source="Orxonox/fire3" lifetime=2.0 loop=0 autostart=1 />
135                    <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
136                        <effects>
137                            <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
138                        </effects>
139                        <events>
140                            <execute>
141                                <EventListener event=questbeacon7 />
142                            </execute>
143                        </events>
144                        <attached>
145                            <DistanceTrigger name=questbeacon7 position="0,0,0" distance=10 target="ControllableEntity" />
146                        </attached>
147                    </QuestEffectBeacon>
148                </attached>
149            </MovableEntity>
150
151            <!-- Asteroid field -->
152            <StaticEntity position="-500,0,-3000">
153                <attached>
154                    <?lua
155                        for i = 1, 200
156                        do ?>
157                        <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)) ?>">
158                            <attached>
159                                <Model scale="<?lua print(math.random() * 50) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
160                            </attached>
161                        </MovableEntity>
162                    <?lua
163                        end
164                    ?>
165                    <!-- S.H.O.E.S -->
166                    <StaticEntity position="-300,0,0">
167                        <attached>
168                            <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="assff.mesh" />
169                            <QuestEffectBeacon position="0,0,0" times=-1>
170                                <effects>
171                                    <CompleteQuest questId="43766602-7e2f-4d24-976a-3f9de1474d5b" />
172                                </effects>
173                                <events>
174                                    <execute>
175                                        <EventListener event=questbeacon2 />
176                                    </execute>
177                                </events>
178                                <attached>
179                                    <DistanceTrigger name=questbeacon2 position="0,0,0" distance=50 target="ControllableEntity" />
180                                </attached>
181                            </QuestEffectBeacon>
182                        </attached>
183                    </StaticEntity>
184                </attached>
185            </StaticEntity>
186
187
188
189            <!-- Spacestations -->
190
191            <!-- Serenity Station -->
192            <StaticEntity scale=1 position="0,0,5000" yaw=30>
193                <attached>
194                    <?lua
195                        createSpaceStationPar(65461,2,1,2,1,2,1,100)
196                    ?>
197                    <QuestEffectBeacon position="0,450,0" times=1>
198                        <effects>
199                            <CompleteQuest questId="50845552-c8af-4091-947c-76bd850b224e" />
200                        </effects>
201                        <events>
202                            <execute>
203                                <EventListener event=questbeacon3 />
204                            </execute>
205                        </events>
206                        <attached>
207                            <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
208                            <DistanceTrigger name=questbeacon3 position="0,0,0" distance=100 target="ControllableEntity" />
209                        </attached>
210                    </QuestEffectBeacon>
211                </attached>
212            </StaticEntity>
213
214            <!-- Katratzi Station -->
215            <StaticEntity scale=1 position="0,5000,300" yaw=60>
216                <attached>
217                    <?lua
218                        createSpaceStationPar(9851,2,1,2,1,2,1,100)
219                    ?>
220                    <QuestEffectBeacon position="0,450,0" times=1>
221                        <effects>
222                            <AddQuestHint hintId="b9b10841-b045-4797-b1d3-cfce760e1de6" />
223                        </effects>
224                        <events>
225                            <execute>
226                                <EventListener event=questbeacon4 />
227                            </execute>
228                        </events>
229                        <attached>
230                            <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
231                            <DistanceTrigger name=questbeacon4 position="0,0,0" distance=100 target="ControllableEntity" />
232                        </attached>
233                    </QuestEffectBeacon>
234                </attached>
235            </StaticEntity>
236
237            <!-- Pegasus Station -->
238            <StaticEntity scale=1 position="-5000,100,1000" roll=30>
239                <attached>
240                    <?lua
241                        createSpaceStationPar(3574,2,1,2,1,2,1,100)
242                    ?>
243                    <QuestEffectBeacon position="200,450,0" times=1>
244                        <effects>
245                            <AddQuestHint hintId="1ee785f8-b71d-4b51-b080-42cec5be8e3c" />
246                        </effects>
247                        <events>
248                            <execute>
249                                <EventListener event=questbeacon5 />
250                            </execute>
251                        </events>
252                        <attached>
253                            <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
254                            <DistanceTrigger name=questbeacon5 position="0,0,0" distance=100 target="ControllableEntity" />
255                        </attached>
256                    </QuestEffectBeacon>
257                </attached>
258            </StaticEntity>
259
260            <!-- Trail -->
261            <EventDispatcher>
262                <targets>
263                    <EventTarget target=trail />
264                </targets>
265                <events>
266                    <visibility>
267                        <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
268                    </visibility>
269                    <activity>
270                        <QuestListener questId="50845552-c8af-4091-947c-76bd850b224e" mode="complete" />
271                    </activity>
272                </events>
273            </EventDispatcher>
274
275            <?lua
276                for i = 1, 25
277                do
278            ?>
279                <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/>
280            <?lua
281                end
282            ?>
283
284            <!-- Hideout -->
285            <StaticEntity position="5000,5000,5000" >
286                <attached>
287                    <Model scale="100" mesh="ast2.mesh" shadow=false />
288                </attached>
289            </StaticEntity>
290
291            <StaticEntity position="5400,5400,5000" visible=false name=trail >
292                <attached>
293                    <Model position="0,0,0" scale=4 yaw=180 pitch=-90 roll=-90 mesh="pirate.mesh" visible=false name=trail />
294                    <QuestEffectBeacon position="0,0,0" times=1 active=false name=trail >
295                        <effects>
296                            <CompleteQuest questId="97628524-b243-492c-b7b6-498f325b21d4" />
297                        </effects>
298                        <events>
299                            <execute>
300                                <EventListener event=questbeacon6 />
301                            </execute>
302                        </events>
303                        <attached>
304                            <DistanceTrigger name=questbeacon6 position="0,0,0" distance=100 target="ControllableEntity" />
305                        </attached>
306                    </QuestEffectBeacon>
307                </attached>
308            </StaticEntity>
309
310    </Scene>
311</Level>
312
Note: See TracBrowser for help on using the repository browser.