Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/princessaeryn.oxw @ 7007

Last change on this file since 7007 was 7007, checked in by dafrick, 14 years ago

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

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