Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/chat2/data/levels/questsystem2.oxw @ 6941

Last change on this file since 6941 was 6417, checked in by rgrieder, 15 years ago

Merged presentation2 branch back to trunk.
Major new features:

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