Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/notifications/data/levels/old/questsystem.oxw @ 7408

Last change on this file since 7408 was 7354, checked in by dafrick, 14 years ago

Started work on edit mode. ConsoleCommand is not yet working.
Some additional cleanup. All the NotificationQueues generated by the NotificationManager now are destroyed upon destruction of the NotificationManager.
Removed NotificationQueue from level files.

  • Property svn:eol-style set to native
File size: 4.0 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5?>
6
7<Level
8 name         = "Questsystem"
9 description  = "Just a few tests"
10>
11    <Scene
12    ambientlight = "0.5, 0.5, 0.5"
13    skybox       = "Orxonox/Starbox"
14    >
15
16        <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34">
17            <QuestDescription title="The Main QUest" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." />
18            <hints>
19                <QuestHint id="022a859d-08dd-4eac-a085-c28c29c06d48">
20                    <QuestDescription title="The super Hint." description="Be proud of yourself." />
21                </QuestHint>
22            </hints>
23        </GlobalQuest>
24
25        <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
26            <events>
27                <spawn>
28                    <EventTrigger delay=1>
29                        <events>
30                            <trigger>
31                                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
32                            </trigger>
33                        </events>
34                    </EventTrigger>
35                </spawn>
36            </events>
37        </ParticleSpawner>
38
39        <QuestEffectBeacon position="0,0,100" times=-1>
40            <effects>
41                <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
42            </effects>
43            <events>
44                <execute>
45                    <EventListener event=qebdt1 />
46                </execute>
47            </events>
48            <attached>
49                <Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />
50                <DistanceTrigger name=qebdt1 position="0,0,0" distance=10 target="ControllableEntity" />
51            </attached>
52        </QuestEffectBeacon>
53
54        <QuestEffectBeacon position="-100,0,0" times=-1>
55            <effects>
56                <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
57            </effects>
58            <events>
59                <execute>
60                    <EventListener event=qebdt2 />
61                </execute>
62            </events>
63            <attached>
64                <Billboard position="0,0,0" colour="1.0,0,0" material="Examples/Flare" />
65                <DistanceTrigger name=qebdt2 position="0,0,0" distance=10 target="ControllableEntity" />
66            </attached>
67        </QuestEffectBeacon>
68
69        <QuestEffectBeacon position="100,0,0" times=-1>
70            <effects>
71                <CompleteQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" />
72            </effects>
73            <events>
74                <execute>
75                    <EventListener event=qebdt3 />
76                </execute>
77            </events>
78            <attached>
79                <Billboard position="0,0,0" colour="0,1.0,0" material="Examples/Flare" />
80                <DistanceTrigger name=qebdt3 position="0,0,0" distance=10 target="ControllableEntity" />
81            </attached>
82        </QuestEffectBeacon>
83
84        <QuestEffectBeacon position="0,100,0" times=-1>
85            <effects>
86                <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
87            </effects>
88            <events>
89                <execute>
90                    <EventListener event=qebdt4 />
91                </execute>
92            </events>
93            <attached>
94                <Billboard position="0,0,0" colour="0,0,1.0" material="Examples/Flare" />
95                <DistanceTrigger name=qebdt4 position="0,0,0" distance=10 target="ControllableEntity" />
96            </attached>
97        </QuestEffectBeacon>
98
99        <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
100            <events>
101                <activity>
102                    <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" mode="complete" />
103                </activity>
104            </events>
105        </ParticleEmitter>
106
107    </Scene>
108</Level>
109
Note: See TracBrowser for help on using the repository browser.