Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/rocket2/data/levels/questsystem2.oxw @ 6952

Last change on this file since 6952 was 6946, checked in by dafrick, 15 years ago

Small thing that I forgot (and probably should mention as well). NotificationQueues need (from now on) to be in the <Level></Level> brackets. The reason is that thed need to be destroyed when the Level is destroyed for the NotificationListeners and the Notifications to be properly unregistered and destroyed.

  • Property svn:eol-style set to native
File size: 12.6 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5?>
6
7<Level
8 name         = "QuestSystem2"
9 description  = "Test level for Questsystem-Features"
10
11>
12
13  <NotificationQueue
14     name     = "notification"
15     position = "0.55, 0.05"
16     font     = "VeraMono"
17     textsize = 0.020
18     length   = 3
19     width    = 50
20    />
21
22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
24   skybox       = "Orxonox/skypanoramagen1"
25  >
26    <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" />
27
28        <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
29            <QuestDescription title="The Main QUest" description="This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! This is the main quest hooray. Solve it! " failMessage="You fail. Looser." completeMessage="You Win." />
30            <hints>
31                <QuestHint id="022a859d-08dd-4eac-a085-c28c29c06d48">
32                    <QuestDescription title="The super Hint." description="Be proud of yourself." />
33                </QuestHint>
34                <QuestHint id="aa19e785-f110-4f3a-abc4-b5e76556e71">
35                    <QuestDescription title="The super Hint.2" description="Be proud of yourself.2" />
36                </QuestHint>
37                <QuestHint id="93d0bdcb-9ce1-4f96-bc69-8d04e659fb31">
38                    <QuestDescription title="The super Hint.3" description="Be proud of yourself.3" />
39                </QuestHint>
40            </hints>
41            <subquests>
42                <GlobalQuest id="e17f5245-f95b-44a8-b6cf-402274435ed4">
43                    <QuestDescription title="The Main QUest2" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
44                    <subquests>
45                        <GlobalQuest id="cff6c1ae-fae7-4e55-8af0-56c939911679">
46                            <QuestDescription title="The Main QUest2.1" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
47                        </GlobalQuest>
48                        <GlobalQuest id="c04016a3-1e43-4797-885f-75ababa22e07">
49                            <QuestDescription title="The Main QUest2.2" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
50                        </GlobalQuest>
51                    </subquests>
52                </GlobalQuest>
53                <GlobalQuest id="71becf91-1456-4763-a2c9-5d575fbcf087">
54                    <QuestDescription title="The Main QUest3" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
55                </GlobalQuest>
56                <GlobalQuest id="ca3198a2-ea9d-48d0-b07a-e30f9aa8e241">
57                    <QuestDescription title="The Main QUest4" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
58                </GlobalQuest>
59            </subquests>
60        </GlobalQuest>
61        <GlobalQuest id="d7b9526e-b369-43ca-a377-163007cd0577">
62            <QuestDescription title="Mup" description="" />
63        </GlobalQuest>
64        <GlobalQuest id="41f729ed-892d-499a-a977-fd3ade3232c2">
65            <QuestDescription title="Mup" description="" />
66        </GlobalQuest>
67        <GlobalQuest id="efc6af59-2a49-4220-8486-dce649350d85">
68            <QuestDescription title="Mup" description="" />
69        </GlobalQuest>
70        <GlobalQuest id="c0bb8864-78a4-4984-b33e-19ca703cf022">
71            <QuestDescription title="Mup" description="" />
72        </GlobalQuest>
73        <GlobalQuest id="7b1d7fce-b5f2-45e8-9e42-7fda78410892">
74            <QuestDescription title="Mup" description="" />
75        </GlobalQuest>
76        <GlobalQuest id="ae4287e4-7a65-4fc2-912b-aebd033fcfb7">
77            <QuestDescription title="Mup" description="" />
78        </GlobalQuest>
79        <GlobalQuest id="9312ee34-650b-494b-bf12-12394f94d248">
80            <QuestDescription title="Mup" description="" />
81        </GlobalQuest>
82        <GlobalQuest id="d0b610db-aa09-4590-a7a8-1fad9be72bd9">
83            <QuestDescription title="Mup" description="" />
84        </GlobalQuest>
85        <GlobalQuest id="3106c2d5-3f90-42fb-a164-bde993b13e20">
86            <QuestDescription title="Mup" description="" />
87        </GlobalQuest>
88        <GlobalQuest id="a7a82d75-ebc5-487a-8f20-33fa79bc911d">
89            <QuestDescription title="Mup" description="" />
90        </GlobalQuest>
91        <GlobalQuest id="32b2da07-882f-4e8b-8c32-ea548c11d91d">
92            <QuestDescription title="Mup" description="" />
93        </GlobalQuest>
94        <GlobalQuest id="8945258e-56ea-45d3-b873-e237e2709866">
95            <QuestDescription title="Mup" description="" />
96        </GlobalQuest>
97        <GlobalQuest id="9108702d-f3cd-400f-9c13-b2743886dddb">
98            <QuestDescription title="Mup" description="" />
99        </GlobalQuest>
100        <GlobalQuest id="03a4bf9f-57ba-4676-97c8-6197086eff16">
101            <QuestDescription title="Mup" description="" />
102        </GlobalQuest>
103        <GlobalQuest id="89311e30-2938-4bcb-ba93-23ca3037cdda">
104            <QuestDescription title="Mup" description="" />
105        </GlobalQuest>
106        <GlobalQuest id="5ca628bb-cb62-4c54-9e0e-18139a8c5f02">
107            <QuestDescription title="Mup" description="" />
108        </GlobalQuest>
109        <GlobalQuest id="e73aed96-02ca-452a-bdd0-61a3a549cf61">
110            <QuestDescription title="Mup" description="" />
111        </GlobalQuest>
112        <GlobalQuest id="694cf67f-3579-41cf-ba52-11d4b311327c">
113            <QuestDescription title="Mup" description="" />
114        </GlobalQuest>
115        <GlobalQuest id="540ab003-ea02-4556-b95a-053ce191ea7f">
116            <QuestDescription title="Mup" description="" />
117        </GlobalQuest>
118
119<SpawnPoint position="0,0,100" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
120
121        <QuestEffectBeacon position="0,0,100" times=-1>
122            <effects>
123                <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
124                <AddQuest questId="e17f5245-f95b-44a8-b6cf-402274435ed4" />
125                <AddQuest questId="cff6c1ae-fae7-4e55-8af0-56c939911679" />
126                <AddQuest questId="c04016a3-1e43-4797-885f-75ababa22e07" />
127                <AddQuest questId="71becf91-1456-4763-a2c9-5d575fbcf087" />
128                <AddQuest questId="ca3198a2-ea9d-48d0-b07a-e30f9aa8e241" />
129                <AddQuest questId="d7b9526e-b369-43ca-a377-163007cd0577" />
130                <AddQuest questId="41f729ed-892d-499a-a977-fd3ade3232c2" />
131                <AddQuest questId="efc6af59-2a49-4220-8486-dce649350d85" />
132                <AddQuest questId="c0bb8864-78a4-4984-b33e-19ca703cf022" />
133                <AddQuest questId="7b1d7fce-b5f2-45e8-9e42-7fda78410892" />
134                <AddQuest questId="ae4287e4-7a65-4fc2-912b-aebd033fcfb7" />
135                <AddQuest questId="9312ee34-650b-494b-bf12-12394f94d248" />
136                <AddQuest questId="d0b610db-aa09-4590-a7a8-1fad9be72bd9" />
137                <AddQuest questId="3106c2d5-3f90-42fb-a164-bde993b13e20" />
138                <AddQuest questId="a7a82d75-ebc5-487a-8f20-33fa79bc911d" />
139                <AddQuest questId="32b2da07-882f-4e8b-8c32-ea548c11d91d" />
140                <AddQuest questId="8945258e-56ea-45d3-b873-e237e2709866" />
141                <AddQuest questId="9108702d-f3cd-400f-9c13-b2743886dddb" />
142                <AddQuest questId="03a4bf9f-57ba-4676-97c8-6197086eff16" />
143                <AddQuest questId="89311e30-2938-4bcb-ba93-23ca3037cdda" />
144                <AddQuest questId="5ca628bb-cb62-4c54-9e0e-18139a8c5f02" />
145                <AddQuest questId="e73aed96-02ca-452a-bdd0-61a3a549cf61" />
146                <AddQuest questId="694cf67f-3579-41cf-ba52-11d4b311327c" />
147                <AddQuest questId="540ab003-ea02-4556-b95a-053ce191ea7f" />
148            </effects>
149            <events>
150                <execute>
151                    <EventListener event=qebdt1 />
152                </execute>
153            </events>
154            <attached>
155                <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />
156                <DistanceTrigger name=qebdt1 position="0,0,0" distance=10 target="ControllableEntity" />
157            </attached>
158        </QuestEffectBeacon>
159
160        <QuestEffectBeacon position="-100,0,0" times=-1>
161            <effects>
162                <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
163            </effects>
164            <events>
165                <execute>
166                    <EventListener event=qebdt2 />
167                </execute>
168            </events>
169            <attached>
170                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
171                <DistanceTrigger name=qebdt2 position="0,0,0" distance=10 target="ControllableEntity" />
172            </attached>
173        </QuestEffectBeacon>
174
175        <QuestEffectBeacon position="100,0,0" times=-1>
176            <effects>
177                <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
178            </effects>
179            <events>
180                <execute>
181                    <EventListener event=qebdt3 />
182                </execute>
183            </events>
184            <attached>
185                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
186                <DistanceTrigger name=qebdt3 position="0,0,0" distance=10 target="ControllableEntity" />
187            </attached>
188        </QuestEffectBeacon>
189
190        <QuestEffectBeacon position="0,100,0" times=-1>
191            <effects>
192                <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
193                <AddQuestHint hintId="aa19e785-f110-4f3a-abc4-b5e76556e71" />
194                <AddQuestHint hintId="93d0bdcb-9ce1-4f96-bc69-8d04e659fb31" />
195            </effects>
196            <events>
197                <execute>
198                    <EventListener event=qebdt4 />
199                </execute>
200            </events>
201            <attached>
202                <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
203                <DistanceTrigger name=qebdt4 position="0,0,0" distance=10 target="ControllableEntity" />
204            </attached>
205        </QuestEffectBeacon>
206
207        <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
208            <events>
209                <activity>
210                    <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" mode="complete" />
211                </activity>
212            </events>
213        </ParticleEmitter>
214
215<?lua
216max = 20
217for i = 1, max, 1
218do
219    x = math.sin(i/max*6)*40000
220    y = math.cos(i/max*6)*40000
221    z = i*100
222    ?>
223<?lua
224for k = 1, 25, 1
225do
226j = math.random()
227?>
228
229    <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
230      <attached>
231        <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
232      </attached>
233      <?lua if i == 5 then ?><collisionShapes>
234        <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
235      </collisionShapes> <?lua end ?>
236    </MovableEntity>
237<?lua
238end
239?>
240<?lua end ?>
241    <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
242
243  </Scene>
244</Level>
Note: See TracBrowser for help on using the repository browser.