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