Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel3/data/levels/quests.oxw @ 8703

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

Making NotificationQueue XML-loadable. Adding notifications to all levels.

File size: 18.7 KB
RevLine 
[7830]1<LevelInfo
2 name = "Quests showcase"
3 description = "Level to test and showcase quests."
4 tags = "test, showcase"
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/lodInformation.oxt")
12?>
13
14<Level
15 name         = "Questsystem"
16 description  = "Just a few tests"
17>
18    <templates>
19        <Template link=lodtemplate_default />
20    </templates>
[8636]21    <?lua include("includes/notifications.oxi") ?>
[7830]22
23    <Scene
24        ambientlight = "0.5, 0.5, 0.5"
25        skybox       = "Orxonox/Starbox"
26    >
27
28        <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
29
30        <GlobalQuest id="quest0">
31            <QuestDescription title="Quest 0" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. Integer a nisl odio, in iaculis tortor. Nam erat erat, commodo quis tincidunt et, congue at quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
32
33            Ut consequat leo ut quam congue semper et eget nibh. Nunc sit amet velit eu lorem pretium adipiscing eu ut ante. Nulla facilisi. Pellentesque interdum, neque nec consectetur vulputate, mauris risus feugiat nunc, ac sollicitudin neque quam ut tellus. Morbi elit velit, tincidunt et hendrerit eget, rutrum at erat. Duis eros nulla, faucibus vitae blandit vitae, pharetra sollicitudin justo." failMessage="Fail message 0" completeMessage="Complete message 0" />
34        </GlobalQuest>
35        <GlobalQuest id="quest1">
36            <QuestDescription title="Quest 1" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor." failMessage="Fail message 1" completeMessage="Complete message 1" />
37            <hints>
38                <QuestHint id="quest1hint1">
39                    <QuestDescription title="The super Hint." description="Be proud of yourself." />
40                </QuestHint>
41                <QuestHint id="quest1hint2">
42                    <QuestDescription title="The super Hint2." description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor." />
43                </QuestHint>
44                <QuestHint id="quest1hint3">
45                    <QuestDescription title="The super Hint3." description="Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus." />
46                </QuestHint>
47            </hints>
48            <subquests>
49                <GlobalQuest id="quest1.1">
50                    <QuestDescription title="Quest 1: Subquest 1" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. Integer a nisl odio, in iaculis tortor. Nam erat erat, commodo quis tincidunt et, congue at quam." failMessage="Fail message 2" completeMessage="Complete message 2" />
51                </GlobalQuest>
52                <GlobalQuest id="quest1.2">
53                    <QuestDescription title="Quest 1: Subquest 2" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor." failMessage="Fail message 2" completeMessage="Complete message 2" />
54                </GlobalQuest>
55                <GlobalQuest id="quest1.3">
56                    <QuestDescription title="Quest 1: Subquest 3" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas." failMessage="Fail message 2" completeMessage="Complete message 2" />
57                </GlobalQuest>
58                <GlobalQuest id="quest1.4">
59                    <QuestDescription title="Quest 1: Subquest 4" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. Integer a nisl odio, in iaculis tortor. Nam erat erat, commodo quis tincidunt et, congue at quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit." failMessage="Fail message 2" completeMessage="Complete message 2" />
60                </GlobalQuest>
61                <GlobalQuest id="quest1.5">
62                    <QuestDescription title="Quest 1: Subquest 5" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. Integer a nisl odio, in iaculis tortor. Nam erat erat, commodo quis tincidunt et, congue at quam." failMessage="Fail message 2" completeMessage="Complete message 2" />
63                </GlobalQuest>
64            </subquests>
65        </GlobalQuest>
66        <GlobalQuest id="quest2">
67            <QuestDescription title="Quest 2" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac." failMessage="Fail message 2" completeMessage="Complete message 2" />
68        </GlobalQuest>
69        <GlobalQuest id="quest3">
70            <QuestDescription title="Quest 3" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. Integer a nisl odio, in iaculis tortor. Nam erat erat, commodo quis tincidunt et, congue at quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit." failMessage="Fail message 1" completeMessage="Complete message 1" />
71        </GlobalQuest>
72        <GlobalQuest id="quest4">
73            <QuestDescription title="Quest 4" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. Integer a nisl odio, in iaculis tortor. Nam erat erat, commodo quis tincidunt et, congue at quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
74
75            Ut consequat leo ut quam congue semper et eget nibh. Nunc sit amet velit eu lorem pretium adipiscing eu ut ante. Nulla facilisi. Pellentesque interdum, neque nec consectetur vulputate, mauris risus feugiat nunc, ac sollicitudin neque quam ut tellus. Morbi elit velit, tincidunt et hendrerit eget, rutrum at erat. Duis eros nulla, faucibus vitae blandit vitae, pharetra sollicitudin justo. Donec luctus est a tortor auctor feugiat." failMessage="Fail message 1" completeMessage="Complete message 1" />
76        </GlobalQuest>
77        <GlobalQuest id="quest5">
78            <QuestDescription title="Quest 5" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa." failMessage="Fail message 1" completeMessage="Complete message 1" />
79        </GlobalQuest>
80        <GlobalQuest id="quest6">
81            <QuestDescription title="Quest 6" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at dolor quis dui gravida faucibus quis ut augue. Nulla sed accumsan nulla. Sed eleifend arcu ante, vel congue neque. Praesent vel felis sit amet lacus elementum laoreet at et massa. Pellentesque imperdiet orci sit amet sem gravida a ornare odio tempor. Donec posuere scelerisque purus, et porttitor ipsum dictum ac. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non turpis non eros porttitor dignissim. Phasellus at elit vel diam gravida malesuada ut a lorem. Etiam vel lacus massa. In arcu neque, ultrices at placerat in, facilisis a metus. Curabitur erat nunc, molestie sed pretium ac, ullamcorper eget tellus. Vivamus tortor magna, mollis ut vulputate vel, lacinia nec neque. " failMessage="Fail message 1" completeMessage="Complete message 1" />
82        </GlobalQuest>
83
84        <EventMultiTrigger name=spawntrigger>
85            <events>
86                <trigger>
87                    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
88                </trigger>
89            </events>
90        </EventMultiTrigger>
91
92        <QuestEffectBeacon times=1>
93            <effects>
94                <AddQuest questId="quest0" />
95                <AddQuest questId="quest1" />
96                <AddQuest questId="quest1.1" />
97                <AddQuest questId="quest1.2" />
98                <AddQuest questId="quest1.3" />
99                <AddQuest questId="quest1.4" />
100                <AddQuest questId="quest1.5" />
101                <AddQuest questId="quest2" />
102                <AddQuest questId="quest3" />
103                <AddQuest questId="quest4" />
104                <AddQuest questId="quest5" />
105                <AddQuest questId="quest6" />
106                <AddQuestHint hintId ="quest1hint1" />
107                <AddQuestHint hintId ="quest1hint2" />
108                <AddQuestHint hintId ="quest1hint3" />
109            </effects>
110            <events>
111                <execute>
112                    <EventListener event=spawntrigger />
113                </execute>
114            </events>
115        </QuestEffectBeacon>
116
117        <QuestEffectBeacon position="-100,0,0" times=1>
118            <effects>
119                <FailQuest questId="quest1.1" />
120                <FailQuest questId="quest1.2" />
121                <FailQuest questId="quest1.3" />
122                <FailQuest questId="quest1.4" />
123                <FailQuest questId="quest1.5" />
124            </effects>
125            <events>
126                <execute>
127                    <EventListener event=dtrigger1 />
128                </execute>
129            </events>
130            <attached>
131                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
132                <DistanceTrigger name=dtrigger1 position="0,0,0" distance=10 target="Pawn" />
133            </attached>
134        </QuestEffectBeacon>
135
136        <QuestEffectBeacon position="100,0,0" times=-1>
137            <effects>
138                <CompleteQuest questId="quest0" />
139                <CompleteQuest questId="quest1" />
140                <CompleteQuest questId="quest1.1" />
141                <CompleteQuest questId="quest1.2" />
142                <CompleteQuest questId="quest1.3" />
143                <CompleteQuest questId="quest1.4" />
144                <CompleteQuest questId="quest1.5" />
145                <CompleteQuest questId="quest2" />
146                <CompleteQuest questId="quest3" />
147                <CompleteQuest questId="quest4" />
148                <CompleteQuest questId="quest5" />
149                <CompleteQuest questId="quest6" />
150            </effects>
151            <events>
152                <execute>
153                    <EventListener event=dtrigger2 />
154                </execute>
155            </events>
156            <attached>
157                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
158                <DistanceTrigger name=dtrigger2 position="0,0,0" distance=10 target="Pawn" />
159            </attached>
160        </QuestEffectBeacon>
161
162        <!--QuestEffectBeacon position="0,0,100" times=-1>
163            <effects>
164                <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
165            </effects>
166            <events>
167                <execute>
168                    <EventListener event=qebdt1 />
169                </execute>
170            </events>
171            <attached>
172                <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />
173                <DistanceTrigger name=qebdt1 position="0,0,0" distance=10 target="ControllableEntity" />
174            </attached>
175        </QuestEffectBeacon>
176
177        <QuestEffectBeacon position="-100,0,0" times=-1>
178            <effects>
179                <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
180            </effects>
181            <events>
182                <execute>
183                    <EventListener event=qebdt2 />
184                </execute>
185            </events>
186            <attached>
187                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
188                <DistanceTrigger name=qebdt2 position="0,0,0" distance=10 target="ControllableEntity" />
189            </attached>
190        </QuestEffectBeacon>
191
192        <QuestEffectBeacon position="100,0,0" times=-1>
193            <effects>
194                <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
195            </effects>
196            <events>
197                <execute>
198                    <EventListener event=qebdt3 />
199                </execute>
200            </events>
201            <attached>
202                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
203                <DistanceTrigger name=qebdt3 position="0,0,0" distance=10 target="ControllableEntity" />
204            </attached>
205        </QuestEffectBeacon>
206
207        <QuestEffectBeacon position="0,100,0" times=-1>
208            <effects>
209                <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
210            </effects>
211            <events>
212                <execute>
213                    <EventListener event=qebdt4 />
214                </execute>
215            </events>
216            <attached>
217                <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
218                <DistanceTrigger name=qebdt4 position="0,0,0" distance=10 target="ControllableEntity" />
219            </attached>
220        </QuestEffectBeacon>
221
222        <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
223            <events>
224                <activity>
225                    <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" mode="complete" />
226                </activity>
227            </events>
228        </ParticleEmitter-->
229
230    </Scene>
231</Level>
232
Note: See TracBrowser for help on using the repository browser.