Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/old/questsystem.oxw @ 7668

Last change on this file since 7668 was 7463, checked in by dafrick, 14 years ago

Fixing "bug", that caused crash in dedicated mode.
Script object can now specify whether the code that is executed by it needs graphics to work.

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