Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5302 was 5301, checked in by dafrick, 16 years ago

Updated questsystem levelfile.

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