[7032] | 1 | <?lua |
---|
| 2 | include("hudtemplates3.oxo") |
---|
| 3 | include("stats.oxo") |
---|
| 4 | include("templates/spaceship_assff.oxt") |
---|
| 5 | include("templates/spaceship_HXY_SL.oxt") |
---|
| 6 | include("templates/spaceship_pirate.oxt") |
---|
[7036] | 7 | include("templates/lodinformation.oxt") |
---|
[7032] | 8 | ?> |
---|
| 9 | |
---|
| 10 | <Template name=spaceshipassffplayer defaults=0> |
---|
| 11 | <SpaceShip template=spaceshipassff name=player> |
---|
| 12 | <attached> |
---|
| 13 | <DistanceTriggerBeacon name=Me/> |
---|
| 14 | </attached> |
---|
| 15 | </SpaceShip> |
---|
| 16 | </Template> |
---|
| 17 | |
---|
| 18 | <?lua |
---|
| 19 | dofile("includes/CuboidSpaceStation.lua") |
---|
| 20 | ?> |
---|
| 21 | |
---|
| 22 | <Level |
---|
| 23 | name="Dani's Testlevel" |
---|
| 24 | description="Erste Versuche mit den Quests" |
---|
| 25 | > |
---|
| 26 | |
---|
| 27 | <NotificationQueue |
---|
| 28 | name = "notification" |
---|
| 29 | position = "0.40, 0.05" |
---|
| 30 | font = "VeraMono" |
---|
| 31 | textsize = 0.020 |
---|
| 32 | length = 3 |
---|
| 33 | width = 50 |
---|
| 34 | /> |
---|
| 35 | |
---|
[7036] | 36 | <templates> |
---|
| 37 | <Template link=lodtemplate_default /> |
---|
| 38 | </templates> |
---|
| 39 | |
---|
[7032] | 40 | <Scene |
---|
| 41 | ambientlight = "0.3, 0.3, 0.3" |
---|
| 42 | skybox = "Orxonox/skypanoramagen1" |
---|
| 43 | > |
---|
| 44 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | <GlobalQuest id="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551"> |
---|
| 48 | <QuestDescription title="Fight for freedom" |
---|
| 49 | description="Just a few hours ago, a group of pirates attacked an killed all your squad members. Now you are very angry and you want to take revenge. Find the pirates and kill them!" |
---|
| 50 | failmessage="You are a loser, now the whole universe will be controlled by the pirates!" |
---|
| 51 | completeMessage="Yeah, you did it! You,ve eliminated the enemies. But why attacked them the Humans here? For tousands of years, there was peace in this sun system. |
---|
| 52 | You have to find out what happened exactly and why the pirates attacked..."/> |
---|
| 53 | <subquests> |
---|
| 54 | <GlobalQuest id="3159b4d4-bc86-4190-ba1d-4530668dfe31"> |
---|
| 55 | <QuestDescription title="There are more of them..." |
---|
| 56 | description="Now you can see it: There are more pirates... the pirates you killed were only a small part of the whole fleet. You recieved a message from your Headquarter: The pirates have stolen |
---|
| 57 | a very important memory stick with secret infos (military locations etc.), the holy stick. You must get it back! Otherwise the humans are in great danger..." |
---|
| 58 | failmessage="" |
---|
| 59 | completeMessage="Unbelievable, you annihilated all pirates and got the stolen memory stick. |
---|
| 60 | But wait... this isn't the memory stick you looked for, this stick is one from a pirate... anyway, it's helpful: There is a map saved on it, which leads you to a pirate - base. Perhaps you'll find more |
---|
| 61 | about their plans there..."/> |
---|
| 62 | </GlobalQuest> |
---|
| 63 | <GlobalQuest id="8d8ed3a6-74a6-4491-9172-26155cff151d"> |
---|
| 64 | <QuestDescription title="Find the Base" |
---|
| 65 | description="Now you are in possession of the map and it should be easy to find the base. Because you are a Member of an elite-fight-squad, your ship has been pimped before you started your mission. |
---|
| 66 | They installed a very modern navigation system, which leads you precisely to your desired destination. Use it to find the pirate - base." |
---|
| 67 | failmessage="" |
---|
| 68 | completeMessage="The navigation system worked very well and now you should be near a pirate -base." /> |
---|
| 69 | <hints> |
---|
| 70 | <QuestHint id="965101b3-26ce-4fcf-bc71-17cc2a87d2e9"> |
---|
| 71 | <QuestDescription title="3 Ways?" |
---|
| 72 | description="The different ways leads you to the possible positions where the base could be. The problem is that the map is encrypted and your on board system is not |
---|
| 73 | able to decrypt it exactly. Therefore you have to try 3 possible ways...Tha base is Huge, but it could be that it's invisible when ou are in longer distance (some Big Ships |
---|
| 74 | have a special shield aroud them which make them invisible at longer range)."/> |
---|
| 75 | </QuestHint> |
---|
| 76 | <QuestHint id="9930a598-98bc-4ff8-8cc0-31311a6ccaaa"> |
---|
| 77 | <QuestDescription title=":(" description="Here isn't the base you look for... try another way."/> |
---|
| 78 | </QuestHint> |
---|
| 79 | </hints> |
---|
| 80 | </GlobalQuest> |
---|
| 81 | <GlobalQuest id="8a62408b-c47b-4e02-bd3d-06bb9ec0b363"> |
---|
| 82 | <QuestDescription title="The Base" |
---|
| 83 | description="Yeah, you found the Base... now let's check if there is the important holy stick..." |
---|
| 84 | failmessage="" |
---|
| 85 | completeMessage="There it is, the Holy stick. Yes, you're right. It looks like a rocket because there are so many rockets in the universe, that it's nearly impossible to find the holy stick between them. |
---|
| 86 | Anyway, the pirates found the stick... another part which is confusing. Why did they know where the holy stick is? Perpaps they know more about the humans than you think."/> |
---|
| 87 | </GlobalQuest> |
---|
| 88 | <GlobalQuest id="85380d05-b791-45d1-82e9-01f0bc930367"> |
---|
| 89 | <QuestDescription title="Find out more about the pirates" |
---|
| 90 | description= "Now, the Holy stick is back in your possession. Your new mission is " |
---|
| 91 | failmessage="" |
---|
| 92 | completeMessage=""/> |
---|
| 93 | </GlobalQuest> |
---|
| 94 | </subquests> |
---|
| 95 | <hints> |
---|
| 96 | <QuestHint id="2b85f32c-2433-4f1a-bdd4-f24d20c9403c"> |
---|
| 97 | <QuestDescription title="Useful to know" description="Pirates like to hide themselves behind asteroids."/> |
---|
| 98 | </QuestHint> |
---|
| 99 | </hints> |
---|
| 100 | <fail-effects> |
---|
| 101 | </fail-effects> |
---|
| 102 | <complete-effects> |
---|
| 103 | </complete-effects> |
---|
| 104 | </GlobalQuest> |
---|
| 105 | |
---|
| 106 | <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0> |
---|
| 107 | <events> |
---|
| 108 | <spawn> |
---|
| 109 | <EventTrigger delay=1> |
---|
| 110 | <events> |
---|
| 111 | <trigger> |
---|
| 112 | <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer /> |
---|
| 113 | </trigger> |
---|
| 114 | </events> |
---|
| 115 | </EventTrigger> |
---|
| 116 | </spawn> |
---|
| 117 | </events> |
---|
| 118 | <attached> |
---|
| 119 | <QuestEffectBeacon position="0,0,0" times=1> |
---|
| 120 | <effects> |
---|
| 121 | <AddQuest questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" /> |
---|
| 122 | </effects> |
---|
| 123 | <events> |
---|
| 124 | <execute> |
---|
| 125 | <EventListener event=questbeacon1 /> |
---|
| 126 | </execute> |
---|
| 127 | </events> |
---|
| 128 | <attached> |
---|
| 129 | <DistanceTrigger name=questbeacon1 position="0,0,0" distance=100 target=DistanceTriggerBeacon targetname=Me/> |
---|
| 130 | </attached> |
---|
| 131 | </QuestEffectBeacon> |
---|
| 132 | </attached> |
---|
| 133 | </ParticleSpawner> |
---|
| 134 | |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | <!-- AddSubQuest1 (Questbeacon2)--> |
---|
| 138 | <QuestEffectBeacon position="<?lua print(math.random()*100-500)?>,<?lua print(math.random()*100-500)?>,<?lua print(math.random()*200-2000)?>" times=1> |
---|
| 139 | <attached> |
---|
| 140 | <Billboard position="0,0,0" scale=3 colour="1.0,1.0,0" material="Examples/Flare" /> |
---|
| 141 | <DistanceTrigger name=questbeacon2 position="0,0,0" distance=200 target="Pawn" /> |
---|
| 142 | </attached> |
---|
| 143 | <effects> |
---|
| 144 | <AddQuest questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" /> |
---|
| 145 | </effects> |
---|
| 146 | <events> |
---|
| 147 | <execute> |
---|
| 148 | <EventListener event=questbeacon2 /> |
---|
| 149 | </execute> |
---|
| 150 | </events> |
---|
| 151 | </QuestEffectBeacon> |
---|
| 152 | |
---|
| 153 | <!-- hint (Questbeacon3)--> |
---|
| 154 | <QuestEffectBeacon position="0,0,0" times=1> |
---|
| 155 | <attached> |
---|
| 156 | <DistanceTrigger name=questbeacon3 position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me delay="10" /> |
---|
| 157 | </attached> |
---|
| 158 | <effects> |
---|
| 159 | <AddQuestHint hintId="2b85f32c-2433-4f1a-bdd4-f24d20c9403c" /> |
---|
| 160 | </effects> |
---|
| 161 | <events> |
---|
| 162 | <execute> |
---|
| 163 | <EventListener event=questbeacon3 /> |
---|
| 164 | </execute> |
---|
| 165 | </events> |
---|
| 166 | </QuestEffectBeacon> |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | <!-- finish SubQuest (Questbeacon4)--> |
---|
| 170 | <QuestEffectBeacon position="600,300,-6000" times=1> |
---|
| 171 | <attached> |
---|
| 172 | <Billboard position="0,0,0" scale=3 colour="0,1.0,0" material="Examples/Flare" /> |
---|
| 173 | <DistanceTrigger name=questbeacon4 position="0,0,0" distance=200 target=DistanceTriggerBeacon targetname=Me /> |
---|
| 174 | </attached> |
---|
| 175 | |
---|
| 176 | <effects> |
---|
| 177 | <CompleteQuest questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" /> |
---|
| 178 | <AddQuest questId="8d8ed3a6-74a6-4491-9172-26155cff151d" /> |
---|
| 179 | <AddQuestHint hintId="965101b3-26ce-4fcf-bc71-17cc2a87d2e9" /> |
---|
| 180 | </effects> |
---|
| 181 | <events> |
---|
| 182 | <execute> |
---|
| 183 | <EventListener event=questbeacon4 /> |
---|
| 184 | </execute> |
---|
| 185 | </events> |
---|
| 186 | </QuestEffectBeacon> |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | <!-- Navihint 1(Questbeacon5)--> |
---|
| 190 | <QuestEffectBeacon position="7600,300,-8000" times=1> |
---|
| 191 | <attached> |
---|
| 192 | <DistanceTrigger name=questbeacon5 position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me /> |
---|
| 193 | </attached> |
---|
| 194 | <effects> |
---|
| 195 | <AddQuestHint hintId="9930a598-98bc-4ff8-8cc0-31311a6ccaaa" /> |
---|
| 196 | </effects> |
---|
| 197 | <events> |
---|
| 198 | <execute> |
---|
| 199 | <EventListener event=questbeacon5 /> |
---|
| 200 | </execute> |
---|
| 201 | </events> |
---|
| 202 | </QuestEffectBeacon> |
---|
| 203 | |
---|
| 204 | <!-- Navi2(Questbeacon6)--> |
---|
| 205 | <QuestEffectBeacon position="4600,5300,-11000" times=1> |
---|
| 206 | <attached> |
---|
| 207 | <DistanceTrigger name=questbeacon6 position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me /> |
---|
| 208 | </attached> |
---|
| 209 | <effects> |
---|
| 210 | <CompleteQuest questId="8d8ed3a6-74a6-4491-9172-26155cff151d" /> |
---|
| 211 | <AddQuest questId="8a62408b-c47b-4e02-bd3d-06bb9ec0b363" /> |
---|
| 212 | |
---|
| 213 | </effects> |
---|
| 214 | <events> |
---|
| 215 | <execute> |
---|
| 216 | <EventListener event=questbeacon6 /> |
---|
| 217 | </execute> |
---|
| 218 | </events> |
---|
| 219 | </QuestEffectBeacon> |
---|
| 220 | |
---|
| 221 | <!--Navigation System--> |
---|
| 222 | <EventDispatcher> |
---|
| 223 | <targets> |
---|
| 224 | <EventTarget target=Navi /> |
---|
| 225 | </targets> |
---|
| 226 | <events> |
---|
| 227 | <visibility> |
---|
| 228 | <QuestListener questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" mode="complete" /> |
---|
| 229 | </visibility> |
---|
| 230 | <activity> |
---|
| 231 | <QuestListener questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" mode="complete" /> |
---|
| 232 | </activity> |
---|
| 233 | </events> |
---|
| 234 | </EventDispatcher> |
---|
| 235 | |
---|
| 236 | <?lua |
---|
| 237 | for i = 0, 30 |
---|
| 238 | do |
---|
| 239 | ?> |
---|
| 240 | <Billboard position="<?lua print(i*1000/30+600) ?>,<?lua print(i*2000/30+300) ?>,<?lua print(-i*4000/30-6000) ?>" colour="1.0,0,0" scale=1 material="Examples/Flare" name=Navi visible=false/><!--endpos:1600,2300,-10000--> |
---|
| 241 | <Billboard position="<?lua print(i*7000/30+600) ?>,<?lua print(i*0/30+300) ?>,<?lua print(-i*2000/30-6000) ?>" colour="0,1.0,0" scale=1 material="Examples/Flare" name=Navi visible=false/><!--endpos:7600,300,-8000--> |
---|
| 242 | <Billboard position="<?lua print(i*4000/30+600) ?>,<?lua print(i*5000/30+300) ?>,<?lua print(-i*5000/30-6000) ?>" colour="0,0,1.0" scale=1 material="Examples/Flare" name=Navi visible=false/><!--endpos:4600,5300,-11000--> |
---|
| 243 | <?lua |
---|
| 244 | end |
---|
| 245 | ?> |
---|
| 246 | |
---|
| 247 | |
---|
| 248 | <StaticEntity scale=1 position="4650,5350,-11050" name=base visible=true active=true yaw=60> |
---|
| 249 | <attached> |
---|
| 250 | <?lua |
---|
| 251 | createSpaceStationPar(9851,2,1,2,1,2,1,100) |
---|
| 252 | ?> |
---|
| 253 | </attached> |
---|
| 254 | </StaticEntity> |
---|
| 255 | |
---|
| 256 | <ParticleSpawner position="4650,5350,-11050" source="Orxonox/explosion1" name=base visible=false active=false loop=0/> |
---|
| 257 | <Model position="4800,5785,-10725" scale=3 mesh="Rocket.mesh" visible=true active=true name=base /> |
---|
| 258 | <EventDispatcher> |
---|
| 259 | <targets> |
---|
| 260 | <EventTarget target=base /> |
---|
| 261 | </targets> |
---|
| 262 | <events> |
---|
| 263 | <visibility> |
---|
| 264 | <EventTrigger invert=true> |
---|
| 265 | <events> |
---|
| 266 | <trigger> |
---|
| 267 | <QuestListener questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" mode="start" /> |
---|
| 268 | </trigger> |
---|
| 269 | </events> |
---|
| 270 | </EventTrigger> |
---|
| 271 | </visibility> |
---|
| 272 | <activity> |
---|
| 273 | <EventTrigger invert=true> |
---|
| 274 | <events> |
---|
| 275 | <trigger> |
---|
| 276 | <QuestListener questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" mode="start" /> |
---|
| 277 | </trigger> |
---|
| 278 | </events> |
---|
| 279 | </EventTrigger> |
---|
| 280 | </activity> |
---|
| 281 | </events> |
---|
| 282 | </EventDispatcher> |
---|
| 283 | |
---|
| 284 | |
---|
| 285 | <EventDispatcher> |
---|
| 286 | <targets> |
---|
| 287 | <EventTarget target=base /> |
---|
| 288 | </targets> |
---|
| 289 | <events> |
---|
| 290 | <visibility> |
---|
| 291 | <QuestListener questId="8d8ed3a6-74a6-4491-9172-26155cff151d" mode="complete" /> |
---|
| 292 | </visibility> |
---|
| 293 | <activity> |
---|
| 294 | <QuestListener questId="8d8ed3a6-74a6-4491-9172-26155cff151d" mode="complete" /> |
---|
| 295 | </activity> |
---|
| 296 | </events> |
---|
| 297 | </EventDispatcher> |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | |
---|
| 301 | |
---|
| 302 | <!-- pirates --> |
---|
| 303 | <?lua |
---|
| 304 | for i = 1,1, 1 |
---|
| 305 | do |
---|
| 306 | ?> |
---|
| 307 | <SpaceShip position="<?lua print(math.random()*100)?>,<?lua print(math.random()*100)?>,<?lua print(math.random()*100-2000)?>"> |
---|
| 308 | <templates> |
---|
| 309 | <Template link=spaceshippirate /> |
---|
| 310 | </templates> |
---|
| 311 | <controller> |
---|
| 312 | <WaypointPatrolController alertnessradius=1000 team=0 active=true> |
---|
| 313 | <waypoints> |
---|
| 314 | <StaticEntity position="0,<?lua print(math.random()*50)?> ,<?lua print(i*50 -2000) ?>" /> |
---|
| 315 | </waypoints> |
---|
| 316 | </WaypointPatrolController> |
---|
| 317 | </controller> |
---|
| 318 | <attached> |
---|
| 319 | </attached> |
---|
| 320 | </SpaceShip> |
---|
| 321 | <?lua |
---|
| 322 | end |
---|
| 323 | ?> |
---|
| 324 | |
---|
| 325 | <?lua |
---|
| 326 | for i = 1,2, 1 |
---|
| 327 | do |
---|
| 328 | ?> |
---|
| 329 | <SpaceShip position="600,300,-6000"> |
---|
| 330 | <templates> |
---|
| 331 | <Template link=spaceshippirate /> |
---|
| 332 | </templates> |
---|
| 333 | <controller> |
---|
| 334 | <WaypointPatrolController alertnessradius=1000 team=0 active=true> |
---|
| 335 | <waypoints> |
---|
| 336 | <StaticEntity position="600,300,-6000" /> |
---|
| 337 | </waypoints> |
---|
| 338 | </WaypointPatrolController> |
---|
| 339 | </controller> |
---|
| 340 | <attached> |
---|
| 341 | </attached> |
---|
| 342 | </SpaceShip> |
---|
| 343 | <?lua |
---|
| 344 | end |
---|
| 345 | ?> |
---|
| 346 | |
---|
| 347 | |
---|
| 348 | <!-- Asteroid field--> |
---|
| 349 | <StaticEntity position="-400,2000,-7000"> |
---|
| 350 | <attached> |
---|
| 351 | <?lua |
---|
| 352 | for i = 1, 180 |
---|
| 353 | do ?> |
---|
| 354 | <MovableEntity position="<?lua print(math.random() * 10000 -5000)?>, <?lua print(math.random() * 10000-5000) ?>, <?lua print(math.random() * 10000 -7000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.abs(math.random() * 30 -10)) ?>"> |
---|
| 355 | <attached> |
---|
| 356 | <Model scale="<?lua print(math.random() * 100) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 357 | </attached> |
---|
| 358 | </MovableEntity> |
---|
| 359 | <?lua |
---|
| 360 | end |
---|
| 361 | ?> |
---|
| 362 | </attached> |
---|
| 363 | </StaticEntity> |
---|
| 364 | |
---|
| 365 | |
---|
| 366 | </Scene> |
---|
| 367 | </Level> |
---|