[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 | > |
---|
| 22 | <Scene |
---|
| 23 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 24 | skybox = "Orxonox/Starbox" |
---|
| 25 | > |
---|
| 26 | <!--SpawnPoint position="0, 0, 100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 27 | <SpawnPoint position="0, 0, -700" yaw =180 spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 28 | <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /--> |
---|
| 29 | |
---|
[5283] | 30 | <GlobalQuest id="b80c2c60-e62c-4637-80f8-5aa18dc93b34"> |
---|
[5308] | 31 | <QuestDescription title="The Main QUest" description="This is the main quest hooray. Solve it!" failMessage="You fail. Looser." completeMessage="You Win." /> |
---|
[5283] | 32 | <hints> |
---|
| 33 | <QuestHint id="022a859d-08dd-4eac-a085-c28c29c06d48"> |
---|
[5308] | 34 | <QuestDescription title="The super Hint." description="Be proud of yourself." /> |
---|
[5283] | 35 | </QuestHint> |
---|
| 36 | </hints> |
---|
| 37 | </GlobalQuest> |
---|
[5271] | 38 | |
---|
| 39 | <QuestEffectBeacon position="0,0,100" times=-1> |
---|
[5283] | 40 | <effects> |
---|
| 41 | <AddQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> |
---|
| 42 | </effects> |
---|
[5271] | 43 | <events> |
---|
| 44 | <execute> |
---|
[5283] | 45 | <EventListener event=qebdt1 /> |
---|
[5271] | 46 | </execute> |
---|
| 47 | </events> |
---|
| 48 | <attached> |
---|
[5283] | 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" /> |
---|
[5271] | 51 | </attached> |
---|
| 52 | </QuestEffectBeacon> |
---|
| 53 | |
---|
[5283] | 54 | <QuestEffectBeacon position="-100,0,0" times=-1> |
---|
| 55 | <effects> |
---|
| 56 | <FailQuest questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" /> |
---|
| 57 | </effects> |
---|
[5271] | 58 | <events> |
---|
| 59 | <execute> |
---|
[5283] | 60 | <EventListener event=qebdt2 /> |
---|
[5271] | 61 | </execute> |
---|
| 62 | </events> |
---|
| 63 | <attached> |
---|
[5283] | 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" /> |
---|
[5271] | 66 | </attached> |
---|
| 67 | </QuestEffectBeacon> |
---|
| 68 | |
---|
[5283] | 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 | |
---|
[5271] | 99 | <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
| 100 | <events> |
---|
| 101 | <spawn> |
---|
| 102 | <EventTrigger delay=1> |
---|
| 103 | <events> |
---|
| 104 | <trigger> |
---|
| 105 | <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
| 106 | </trigger> |
---|
| 107 | </events> |
---|
| 108 | </EventTrigger> |
---|
| 109 | </spawn> |
---|
| 110 | </events> |
---|
| 111 | </ParticleSpawner> |
---|
[5301] | 112 | |
---|
| 113 | <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false> |
---|
| 114 | <events> |
---|
| 115 | <activity> |
---|
[5308] | 116 | <QuestListener questId="b80c2c60-e62c-4637-80f8-5aa18dc93b34" questStatus="complete" /> |
---|
[5301] | 117 | </activity> |
---|
| 118 | </events> |
---|
| 119 | </ParticleEmitter> |
---|
[5271] | 120 | |
---|
| 121 | </Scene> |
---|
| 122 | </Level> |
---|
| 123 | |
---|