Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial2/data/levels/quests.oxw @ 10169

Last change on this file since 10169 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

  • Property svn:eol-style set to native
File size: 18.7 KB
Line 
1<LevelInfo
2 name = "Quests showcase"
3 description = "Level to test and showcase quests."
4 tags = "test, showcase"
5 screenshot = "questsshowcase.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level>
16    <templates>
17        <Template link=lodtemplate_default />
18    </templates>
19    <?lua include("includes/notifications.oxi") ?>
20
21    <Scene
22        ambientlight = "0.5, 0.5, 0.5"
23        skybox       = "Orxonox/Starbox"
24    >
25
26        <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
27
28        <GlobalQuest id="quest0">
29            <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.
30
31            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" />
32        </GlobalQuest>
33        <GlobalQuest id="quest1">
34            <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" />
35            <hints>
36                <QuestHint id="quest1hint1">
37                    <QuestDescription title="The super Hint." description="Be proud of yourself." />
38                </QuestHint>
39                <QuestHint id="quest1hint2">
40                    <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." />
41                </QuestHint>
42                <QuestHint id="quest1hint3">
43                    <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." />
44                </QuestHint>
45            </hints>
46            <subquests>
47                <GlobalQuest id="quest1.1">
48                    <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" />
49                </GlobalQuest>
50                <GlobalQuest id="quest1.2">
51                    <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" />
52                </GlobalQuest>
53                <GlobalQuest id="quest1.3">
54                    <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" />
55                </GlobalQuest>
56                <GlobalQuest id="quest1.4">
57                    <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" />
58                </GlobalQuest>
59                <GlobalQuest id="quest1.5">
60                    <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" />
61                </GlobalQuest>
62            </subquests>
63        </GlobalQuest>
64        <GlobalQuest id="quest2">
65            <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" />
66        </GlobalQuest>
67        <GlobalQuest id="quest3">
68            <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" />
69        </GlobalQuest>
70        <GlobalQuest id="quest4">
71            <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.
72
73            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" />
74        </GlobalQuest>
75        <GlobalQuest id="quest5">
76            <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" />
77        </GlobalQuest>
78        <GlobalQuest id="quest6">
79            <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" />
80        </GlobalQuest>
81
82        <EventMultiTrigger name=spawntrigger>
83            <events>
84                <trigger>
85                    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
86                </trigger>
87            </events>
88        </EventMultiTrigger>
89
90        <QuestEffectBeacon times=1>
91            <effects>
92                <AddQuest questId="quest0" />
93                <AddQuest questId="quest1" />
94                <AddQuest questId="quest1.1" />
95                <AddQuest questId="quest1.2" />
96                <AddQuest questId="quest1.3" />
97                <AddQuest questId="quest1.4" />
98                <AddQuest questId="quest1.5" />
99                <AddQuest questId="quest2" />
100                <AddQuest questId="quest3" />
101                <AddQuest questId="quest4" />
102                <AddQuest questId="quest5" />
103                <AddQuest questId="quest6" />
104                <AddQuestHint hintId ="quest1hint1" />
105                <AddQuestHint hintId ="quest1hint2" />
106                <AddQuestHint hintId ="quest1hint3" />
107            </effects>
108            <events>
109                <execute>
110                    <EventListener event=spawntrigger />
111                </execute>
112            </events>
113        </QuestEffectBeacon>
114
115        <QuestEffectBeacon position="-100,0,0" times=1>
116            <effects>
117                <FailQuest questId="quest1.1" />
118                <FailQuest questId="quest1.2" />
119                <FailQuest questId="quest1.3" />
120                <FailQuest questId="quest1.4" />
121                <FailQuest questId="quest1.5" />
122            </effects>
123            <events>
124                <execute>
125                    <EventListener event=dtrigger1 />
126                </execute>
127            </events>
128            <attached>
129                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
130                <DistanceTrigger name=dtrigger1 position="0,0,0" distance=10 target="Pawn" />
131            </attached>
132        </QuestEffectBeacon>
133
134        <QuestEffectBeacon position="100,0,0" times=-1>
135            <effects>
136                <CompleteQuest questId="quest0" />
137                <CompleteQuest questId="quest1" />
138                <CompleteQuest questId="quest1.1" />
139                <CompleteQuest questId="quest1.2" />
140                <CompleteQuest questId="quest1.3" />
141                <CompleteQuest questId="quest1.4" />
142                <CompleteQuest questId="quest1.5" />
143                <CompleteQuest questId="quest2" />
144                <CompleteQuest questId="quest3" />
145                <CompleteQuest questId="quest4" />
146                <CompleteQuest questId="quest5" />
147                <CompleteQuest questId="quest6" />
148            </effects>
149            <events>
150                <execute>
151                    <EventListener event=dtrigger2 />
152                </execute>
153            </events>
154            <attached>
155                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
156                <DistanceTrigger name=dtrigger2 position="0,0,0" distance=10 target="Pawn" />
157            </attached>
158        </QuestEffectBeacon>
159
160        <!--QuestEffectBeacon position="0,0,100" times=-1>
161            <effects>
162                <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
163            </effects>
164            <events>
165                <execute>
166                    <EventListener event=qebdt1 />
167                </execute>
168            </events>
169            <attached>
170                <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />
171                <DistanceTrigger name=qebdt1 position="0,0,0" distance=10 target="ControllableEntity" />
172            </attached>
173        </QuestEffectBeacon>
174
175        <QuestEffectBeacon position="-100,0,0" times=-1>
176            <effects>
177                <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
178            </effects>
179            <events>
180                <execute>
181                    <EventListener event=qebdt2 />
182                </execute>
183            </events>
184            <attached>
185                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
186                <DistanceTrigger name=qebdt2 position="0,0,0" distance=10 target="ControllableEntity" />
187            </attached>
188        </QuestEffectBeacon>
189
190        <QuestEffectBeacon position="100,0,0" times=-1>
191            <effects>
192                <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
193            </effects>
194            <events>
195                <execute>
196                    <EventListener event=qebdt3 />
197                </execute>
198            </events>
199            <attached>
200                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
201                <DistanceTrigger name=qebdt3 position="0,0,0" distance=10 target="ControllableEntity" />
202            </attached>
203        </QuestEffectBeacon>
204
205        <QuestEffectBeacon position="0,100,0" times=-1>
206            <effects>
207                <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
208            </effects>
209            <events>
210                <execute>
211                    <EventListener event=qebdt4 />
212                </execute>
213            </events>
214            <attached>
215                <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
216                <DistanceTrigger name=qebdt4 position="0,0,0" distance=10 target="ControllableEntity" />
217            </attached>
218        </QuestEffectBeacon>
219
220        <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
221            <events>
222                <activity>
223                    <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" mode="complete" />
224                </activity>
225            </events>
226        </ParticleEmitter-->
227
228    </Scene>
229</Level>
230
Note: See TracBrowser for help on using the repository browser.