Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/questsystem.oxw @ 5317

Last change on this file since 5317 was 5315, checked in by dafrick, 16 years ago

Updated the questsystem levelfile and the example quest file due to some changes in the questsystem branch, or more precisely: One parameter of the QuestListener was changed form questStatus to mode.

File size: 4.1 KB
Line 
1<?lua
2  include("levels/hudtemplates.oxw")
3?>
4
5<?lua
6  include("levels/spaceshiptemplates.oxw")
7?>
8
9<NotificationQueue
10  name  = "notification"
11  position = "0.03, 0.5"
12  font = "VeraMono"
13  textSize = 0.020
14  length = 3
15  width = 50
16  />
17
18<Level
19 name         = "Questsystem"
20 description  = "Just a few tests"
21>
22    <Scene
23    ambientlight = "0.5, 0.5, 0.5"
24    skybox       = "Orxonox/Starbox"
25    >
26
27        <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
28            <QuestDescription title="The Main QUest" description="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            </hints>
34        </GlobalQuest>
35       
36        <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
37            <events>
38                <spawn>
39                    <EventTrigger delay=1>
40                        <events>
41                            <trigger>
42                                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
43                            </trigger>
44                        </events>
45                    </EventTrigger>
46                </spawn>
47            </events>
48        </ParticleSpawner>
49
50        <QuestEffectBeacon position="0,0,100" times=-1>
51            <effects>
52                <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
53            </effects>
54            <events>
55                <execute>
56                    <EventListener event=qebdt1 />
57                </execute>
58            </events>
59            <attached>
60                <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />
61                <DistanceTrigger name=qebdt1 position="0,0,0" distance=10 target="ControllableEntity" />
62            </attached>
63        </QuestEffectBeacon>
64
65        <QuestEffectBeacon position="-100,0,0" times=-1>
66            <effects>
67                <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
68            </effects>
69            <events>
70                <execute>
71                    <EventListener event=qebdt2 />
72                </execute>
73            </events>
74            <attached>
75                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
76                <DistanceTrigger name=qebdt2 position="0,0,0" distance=10 target="ControllableEntity" />
77            </attached>
78        </QuestEffectBeacon>
79
80        <QuestEffectBeacon position="100,0,0" times=-1>
81            <effects>
82                <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
83            </effects>
84            <events>
85                <execute>
86                    <EventListener event=qebdt3 />
87                </execute>
88            </events>
89            <attached>
90                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
91                <DistanceTrigger name=qebdt3 position="0,0,0" distance=10 target="ControllableEntity" />
92            </attached>
93        </QuestEffectBeacon>
94
95        <QuestEffectBeacon position="0,100,0" times=-1>
96            <effects>
97                <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
98            </effects>
99            <events>
100                <execute>
101                    <EventListener event=qebdt4 />
102                </execute>
103            </events>
104            <attached>
105                <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
106                <DistanceTrigger name=qebdt4 position="0,0,0" distance=10 target="ControllableEntity" />
107            </attached>
108        </QuestEffectBeacon>
109
110        <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
111            <events>
112                <activity>
113                    <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" mode="complete" />
114                </activity>
115            </events>
116        </ParticleEmitter>
117
118    </Scene>
119</Level>
120
Note: See TracBrowser for help on using the repository browser.