Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/princessaeryn.oxw @ 7403

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

Merged notifications branch back to trunk.

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