[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 | |
---|
[5315] | 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> |
---|
[5528] | 24 | |
---|
[6417] | 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> |
---|
[5271] | 38 | |
---|
[5315] | 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> |
---|
[5271] | 53 | |
---|
[5315] | 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> |
---|
[5271] | 68 | |
---|
[5315] | 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> |
---|
[5283] | 83 | |
---|
[5315] | 84 | <QuestEffectBeacon position="0,100,0" times=-1> |
---|
| 85 | <effects> |
---|
| 86 | <AddQuestHint hintId="022a859d-08dd-4eac-a085-c28c29c06d48" /> |
---|
| 87 | </effects> |
---|
[5271] | 88 | <events> |
---|
[5315] | 89 | <execute> |
---|
| 90 | <EventListener event=qebdt4 /> |
---|
| 91 | </execute> |
---|
[5271] | 92 | </events> |
---|
[5315] | 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> |
---|
[5271] | 98 | |
---|
[5326] | 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> |
---|
[5315] | 105 | </ParticleEmitter> |
---|
| 106 | |
---|
| 107 | </Scene> |
---|
[5271] | 108 | </Level> |
---|
| 109 | |
---|