Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5295 was 5283, checked in by dafrick, 16 years ago

Extended questsystem.oxw

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