Changeset 6939
- Timestamp:
- May 20, 2010, 4:39:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/data/levels/quest_test.oxw
r6801 r6939 5 5 include("templates/spaceship_HXY_SL.oxt") 6 6 include("templates/spaceship_pirate.oxt") 7 ?> 8 9 <Template name=spaceshipassffplayer defaults=0> 10 <SpaceShip template=spaceshipassff name=player> 11 <attached> 12 <DistanceTriggerBeacon name=Me/> 13 </attached> 14 </SpaceShip> 15 </Template> 16 17 <?lua 18 dofile("includes/CuboidSpaceStation.lua") 7 19 ?> 8 20 … … 32 44 <GlobalQuest id="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551"> 33 45 <QuestDescription title="Fight for freedom" 34 description="Just a few hours ago, a group of pirates attacked an killed all your friends. Now you are very angry and you want to take revenge. Find the pirates and kill them!"46 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!" 35 47 failmessage="You are a loser, now the whole universe will be controlled by the pirates!" 36 completeMessage="Yeah, you did it! Now there will be peace in the whole universe. You are a hero!"/> 48 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. 49 You have to find out what happened exactly and why the pirates attacked..."/> 37 50 <subquests> 38 51 <GlobalQuest id="3159b4d4-bc86-4190-ba1d-4530668dfe31"> 39 <QuestDescription title=" A few problems occured!"40 description=" This pirates are only a small part of the whole fleet. It isn't as easy as you think... Another problem is, that they've stolen41 a very important memory stick with secret infos , the holy stick. You must get it back!"52 <QuestDescription title="There are more of them..." 53 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 54 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..." 42 55 failmessage="" 43 56 completeMessage="Unbelievable, you annihilated all pirates and got the stolen memory stick. 44 But wait... this is the memory stick you looked for... anyway, it's helpful: There is a map saved on it, which leads you to a pirate - base. Perhaps you'll find more there..."/> 57 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 58 about their plans there..."/> 45 59 </GlobalQuest> 46 60 <GlobalQuest id="8d8ed3a6-74a6-4491-9172-26155cff151d"> 47 61 <QuestDescription title="Find the Base" 48 description="Now you are in possession of the map and it should be easy to find the base. Because you are the best fight pilot of mankind, your ship has been pimped before you started your mission.49 They installed a very modern navigation system, which leads you precisely to your desired destination. .."62 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. 63 They installed a very modern navigation system, which leads you precisely to your desired destination. Use it to find the pirate - base." 50 64 failmessage="" 51 65 completeMessage="The navigation system worked very well and now you should be near a pirate -base." /> 66 <hints> 67 <QuestHint id="965101b3-26ce-4fcf-bc71-17cc2a87d2e9"> 68 <QuestDescription title="3 Ways?" 69 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 70 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 71 have a special shield aroud them which make them invisible at longer range)."/> 72 </QuestHint> 73 <QuestHint id="9930a598-98bc-4ff8-8cc0-31311a6ccaaa"> 74 <QuestDescription title=":(" description="Here isn't the base you look for... try another way."/> 75 </QuestHint> 76 </hints> 52 77 </GlobalQuest> 53 78 <GlobalQuest id="8a62408b-c47b-4e02-bd3d-06bb9ec0b363"> 79 <QuestDescription title="The Base" 80 description="Yeah, you found the Base... now let's check if there is the important holy stick..." 81 failmessage="" 82 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. 83 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."/> 84 </GlobalQuest> 85 <GlobalQuest id="85380d05-b791-45d1-82e9-01f0bc930367"> 86 <QuestDescription title="Find out more about the pirates" 87 description= "Now, the Holy stick is back in your possession. Your new mission is " 88 failmessage="" 89 completeMessage=""/> 90 </GlobalQuest> 54 91 </subquests> 55 92 <hints> … … 70 107 <events> 71 108 <trigger> 72 <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />109 <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer /> 73 110 </trigger> 74 111 </events> … … 87 124 </events> 88 125 <attached> 89 <Distance MultiTrigger name=questbeacon1 position="0,0,0" distance=100 target="Pawn"/>126 <DistanceTrigger name=questbeacon1 position="0,0,0" distance=100 target=DistanceTriggerBeacon targetname=Me/> 90 127 </attached> 91 128 </QuestEffectBeacon> … … 96 133 97 134 <!-- AddSubQuest1 (Questbeacon2)--> 98 <QuestEffectBeacon position="<?lua print(math.random()*100 0-500)?>,<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*200-2000)?>" times=1>99 <attached> 100 <Billboard position="0,0,0" scale= 1colour="1.0,1.0,0" material="Examples/Flare" />101 <Distance MultiTrigger name=questbeacon2 position="0,0,0" distance=200 target="Pawn" />135 <QuestEffectBeacon position="<?lua print(math.random()*100-500)?>,<?lua print(math.random()*100-500)?>,<?lua print(math.random()*200-2000)?>" times=1> 136 <attached> 137 <Billboard position="0,0,0" scale=3 colour="1.0,1.0,0" material="Examples/Flare" /> 138 <DistanceTrigger name=questbeacon2 position="0,0,0" distance=200 target="Pawn" /> 102 139 </attached> 103 140 <effects> … … 112 149 113 150 <!-- hint (Questbeacon3)--> 114 <QuestEffectBeacon position="<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*1000-500)?>,<?lua print(math.random()*200-500)?>" times=1> 115 <attached> 116 <Billboard position="0,0,0" scale=1 colour="0,1.0,0" material="Examples/Flare" /> 117 <DistanceMultiTrigger name=questbeacon3 position="0,0,0" distance=300 target="Pawn" /> 151 <QuestEffectBeacon position="0,0,0" times=1> 152 <attached> 153 <DistanceTrigger name=questbeacon3 position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me delay="10" /> 118 154 </attached> 119 155 <effects> … … 127 163 </QuestEffectBeacon> 128 164 129 <!-- finish Quest (Questbeacon4)--> 130 <QuestEffectBeacon position="<?lua print(math.random()*1000)?>,<?lua print(math.random()*1000)?>,<?lua print(math.random()*200-6000)?>" times=1> 131 <attached> 132 <Billboard position="0,0,0" scale=1 colour="0,1.0,0" material="Examples/Flare" /> 133 <DistanceMultiTrigger name=questbeacon4 position="0,0,0" distance=200 target="Pawn" /> 134 </attached> 135 136 <effects> 137 <CompleteQuest questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" /> 165 166 <!-- finish SubQuest (Questbeacon4)--> 167 <QuestEffectBeacon position="600,300,-6000" times=1> 168 <attached> 169 <Billboard position="0,0,0" scale=3 colour="0,1.0,0" material="Examples/Flare" /> 170 <DistanceTrigger name=questbeacon4 position="0,0,0" distance=200 target=DistanceTriggerBeacon targetname=Me /> 171 </attached> 172 173 <effects> 174 <CompleteQuest questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" /> 175 <AddQuest questId="8d8ed3a6-74a6-4491-9172-26155cff151d" /> 176 <AddQuestHint hintId="965101b3-26ce-4fcf-bc71-17cc2a87d2e9" /> 138 177 </effects> 139 178 <events> … … 143 182 </events> 144 183 </QuestEffectBeacon> 145 184 185 186 <!-- Navihint 1(Questbeacon5)--> 187 <QuestEffectBeacon position="7600,300,-8000" times=1> 188 <attached> 189 <DistanceTrigger name=questbeacon5 position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me /> 190 </attached> 191 <effects> 192 <AddQuestHint hintId="9930a598-98bc-4ff8-8cc0-31311a6ccaaa" /> 193 </effects> 194 <events> 195 <execute> 196 <EventListener event=questbeacon5 /> 197 </execute> 198 </events> 199 </QuestEffectBeacon> 200 201 <!-- Navi2(Questbeacon6)--> 202 <QuestEffectBeacon position="4600,5300,-11000" times=1> 203 <attached> 204 <DistanceTrigger name=questbeacon6 position="0,0,0" distance=300 target=DistanceTriggerBeacon targetname=Me /> 205 </attached> 206 <effects> 207 <CompleteQuest questId="8d8ed3a6-74a6-4491-9172-26155cff151d" /> 208 <AddQuest questId="8a62408b-c47b-4e02-bd3d-06bb9ec0b363" /> 209 210 </effects> 211 <events> 212 <execute> 213 <EventListener event=questbeacon6 /> 214 </execute> 215 </events> 216 </QuestEffectBeacon> 217 218 <!--Navigation System--> 219 <EventDispatcher> 220 <targets> 221 <EventTarget target=Navi /> 222 </targets> 223 <events> 224 <visibility> 225 <QuestListener questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" mode="complete" /> 226 </visibility> 227 <activity> 228 <QuestListener questId="3159b4d4-bc86-4190-ba1d-4530668dfe31" mode="complete" /> 229 </activity> 230 </events> 231 </EventDispatcher> 232 233 <?lua 234 for i = 0, 30 235 do 236 ?> 237 <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--> 238 <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--> 239 <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--> 240 <?lua 241 end 242 ?> 243 244 245 <StaticEntity scale=1 position="4650,5350,-11050" name=base visible=true active=true yaw=60> 246 <attached> 247 <?lua 248 createSpaceStationPar(9851,2,1,2,1,2,1,100) 249 ?> 250 </attached> 251 </StaticEntity> 252 253 <ParticleSpawner position="4650,5350,-11050" source="Orxonox/explosion1" name=base visible=false active=false loop=0/> 254 <Model position="4800,5785,-10725" scale=3 mesh="Rocket.mesh" visible=true active=true name=base /> 255 <EventDispatcher> 256 <targets> 257 <EventTarget target=base /> 258 </targets> 259 <events> 260 <visibility> 261 <EventTrigger invert=true> 262 <events> 263 <trigger> 264 <QuestListener questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" mode="recieve" /> 265 </trigger> 266 </events> 267 </EventTrigger> 268 </visibility> 269 <activity> 270 <EventTrigger invert=true> 271 <events> 272 <trigger> 273 <QuestListener questId="dbd02b4c-ab7c-46fd-bdaf-fd4c19ac1551" mode="recieve" /> 274 </trigger> 275 </events> 276 </EventTrigger> 277 </activity> 278 </events> 279 </EventDispatcher> 280 281 282 <EventDispatcher> 283 <targets> 284 <EventTarget target=base /> 285 </targets> 286 <events> 287 <visibility> 288 <QuestListener questId="8d8ed3a6-74a6-4491-9172-26155cff151d" mode="complete" /> 289 </visibility> 290 <activity> 291 <QuestListener questId="8d8ed3a6-74a6-4491-9172-26155cff151d" mode="complete" /> 292 </activity> 293 </events> 294 </EventDispatcher> 295 296 297 298 146 299 <!-- pirates --> 147 300 <?lua 148 for i = 1, 2, 1301 for i = 1,1, 1 149 302 do 150 303 ?> 151 304 <SpaceShip position="<?lua print(math.random()*100)?>,<?lua print(math.random()*100)?>,<?lua print(math.random()*100-2000)?>"> 152 305 <templates> 153 <Template link=spaceship HXYSL/>306 <Template link=spaceshippirate /> 154 307 </templates> 155 308 <controller> … … 166 319 end 167 320 ?> 168 169 321 170 322 <?lua 171 for i = 1, 5, 1323 for i = 1,2, 1 172 324 do 173 325 ?> 174 <SpaceShip position=" <?lua print(math.random()*100)?>,<?lua print(math.random()*100)?>,<?lua print(math.random()*100-6000)?>">326 <SpaceShip position="600,300,-6000"> 175 327 <templates> 176 <Template link=spaceship HXYSL/>328 <Template link=spaceshippirate /> 177 329 </templates> 178 330 <controller> 179 331 <WaypointPatrolController alertnessradius=1000 team=0 active=true> 180 332 <waypoints> 181 <StaticEntity position=" 0,<?lua print(math.random()*50)?> ,<?lua print(i*50 -6000) ?>" />333 <StaticEntity position="600,300,-6000" /> 182 334 </waypoints> 183 335 </WaypointPatrolController> … … 195 347 <attached> 196 348 <?lua 197 for i = 1, 220349 for i = 1, 180 198 350 do ?> 199 351 <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)) ?>"> 200 352 <attached> 201 <Model scale="<?lua print(math.random() * 80) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />353 <Model scale="<?lua print(math.random() * 100) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 202 354 </attached> 203 355 </MovableEntity> … … 208 360 </StaticEntity> 209 361 362 210 363 </Scene> 211 364 </Level>
Note: See TracChangeset
for help on using the changeset viewer.