Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/princessAeryn.oxw @ 8772

Last change on this file since 8772 was 8706, checked in by dafrick, 13 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

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