Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5383 was 5326, checked in by landauf, 16 years ago

no codechanges, just set eol-style of all levels to native

  • Property svn:eol-style set to native
File size: 4.1 KB
RevLine 
[5271]1<?lua
2  include("levels/hudtemplates.oxw")
3?>
4
5<?lua
6  include("levels/spaceshiptemplates.oxw")
7?>
8
[5301]9<NotificationQueue
10  name  = "notification"
11  position = "0.03, 0.5"
12  font = "VeraMono"
[5308]13  textSize = 0.020
[5301]14  length = 3
[5308]15  width = 50
[5301]16  />
17
[5271]18<Level
[5283]19 name         = "Questsystem"
[5271]20 description  = "Just a few tests"
21>
[5315]22    <Scene
23    ambientlight = "0.5, 0.5, 0.5"
24    skybox       = "Orxonox/Starbox"
25    >
[5271]26
[5315]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>
[5271]49
[5315]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>
[5271]64
[5315]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>
[5271]79
[5315]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>
[5283]94
[5315]95        <QuestEffectBeacon position="0,100,0" times=-1>
96            <effects>
97                <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" />
98            </effects>
[5271]99            <events>
[5315]100                <execute>
101                    <EventListener event=qebdt4 />
102                </execute>
[5271]103            </events>
[5315]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>
[5271]109
[5326]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>
[5315]116        </ParticleEmitter>
117
118    </Scene>
[5271]119</Level>
120
Note: See TracBrowser for help on using the repository browser.