Changeset 9778 for code/branches/levelMichael/data/levels
- Timestamp:
- Nov 11, 2013, 4:07:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/levelMichael/data/levels/Spacefight.oxw
r9769 r9778 60 60 <Script code="showGUI NotificationLayer false true" needsGraphics="true" /> 61 61 62 <!-- QUESTS & SPAWNTRIGGER --> 63 64 <!-- Spawntrigger --> 62 <!-- SPAWNTRIGGER --> 63 64 <!-- Spawntrigger --> 65 <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> 66 65 67 <EventMultiTrigger name=spawntrigger> 66 68 <events> 67 69 <trigger> 68 <SpawnPoint team=0 position="0,0,0" lookat="1 ,0,0" spawnclass=SpaceShip pawndesign=spaceshipcollateralDamage>70 <SpawnPoint team=0 position="0,0,0" lookat="100,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow > 69 71 <EventTrigger invert=true> 70 72 <events> … … 77 79 </trigger> 78 80 </events> 79 </EventMultiTrigger> 81 </EventMultiTrigger> 82 83 <!-- Second Spawntrigger --> 84 <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 /> 80 85 81 86 <!-- Drone pickup --> … … 152 157 Prepare to fight against a strong enmey!" 153 158 completeMessage="Well done! Now the element of surprise will be ours!" /> 154 <complete-effects>155 <AddQuest questId="spacefight.flying3" />156 </complete-effects>157 159 </LocalQuest> 158 160 159 <LocalQuest id="spacefight.flying3" > 160 <QuestDescription 161 title="Prepared for the big fight?" 162 description="" 163 failMessage="You've lost all your ships!" 164 completeMessage="" /> 165 </LocalQuest> 166 167 <LocalQuest id="spacefight.mainfight" > 161 <!-- 2 different possibilitys --> 162 <!-- Spion is destroyed --> 163 <LocalQuest id="spacefight.mainfight(min)" > 168 164 <QuestDescription 169 165 title="The big fight!" … … 178 174 </LocalQuest> 179 175 176 <!-- Spion isn't destroyed --> 177 <LocalQuest id="spacefight.mainfight(max)" > 178 <QuestDescription 179 title="The big fight!" 180 description="Now the time is come! 181 You've done all you can to prepare you for this spacebattle. 182 Unfortunately the spion has alert the mainship. So the soldiers will also be prepared for you. 183 But you can manage it. 184 Good luck!" 185 failMessage="You've lost all your ships!" 186 completeMessage="YEEEHAAA! 187 You managed it! For that you will get the golden medal of the united space armies." /> 188 </LocalQuest> 189 <!-- --> 190 180 191 <LocalQuest id="spacefight.rescue" > 181 192 <QuestDescription … … 232 243 <CompleteQuest questId="spacefight.guard1" /> 233 244 </effects> 234 <attached>235 <BlinkingBillboard position="13500, 2500, 10500" color="1,1,0" frequency=0.6 amplitude=10 material="Examples/Flare" />236 </attached>237 245 </QuestEffectBeacon> 238 246 247 <BlinkingBillboard position="13500, 2500, 10500" color="1,1,1" frequency=0.6 amplitude=10 material="Examples/Flare" > 248 <events> 249 <visibility> 250 <EventTrigger> 251 <events> 252 <trigger> 253 <EventListener event=spawntrigger2 /> <!-- "guard1trigger4" --> 254 </trigger> 255 </events> 256 </EventTrigger> 257 </visibility> 258 </events> 259 </BlinkingBillboard> 260 239 261 <!-- Drone (optional) --> 240 262 <QuestEffectBeacon times=0> … … 250 272 251 273 <!-- Guard 2 --> 274 275 <!-- zum testen! --> 276 <QuestEffectBeacon times=0> 277 <effects> 278 <AddQuest questId="spacefight.flying2" /> 279 </effects> 280 <events> 281 <execute> 282 <EventListener event=spawntrigger2 /> 283 </execute> 284 </events> 285 </QuestEffectBeacon> 286 <!-- --> 287 252 288 <QuestEffectBeacon times=0> 253 289 <effects> … … 268 304 <events> 269 305 <execute> 270 <EventListener event=" flying3" /> <!-- eigentlich "guard2trigger4", aber funkt. nicht! -->306 <EventListener event="guard2" /> <!-- eigentlich "guard2trigger4", aber funkt. nicht! --> 271 307 </execute> 272 308 </events> … … 274 310 275 311 <!-- Escape --> 312 <SimpleNotification message="A spion is startet to the mainship!" broadcast="true"> 313 <events> 314 <trigger> 315 <EventListener event="guard2trigger1" /> 316 </trigger> 317 </events> 318 </SimpleNotification> 319 320 <QuestEffectBeacon times=0> 321 <effects> 322 <AddQuest questId="spacefight.escape" /> 323 </effects> 324 <events> 325 <execute> 326 <EventListener event="guard2trigger1" /> 327 </execute> 328 </events> 329 </QuestEffectBeacon> 330 331 <QuestEffectBeacon times=0> 332 <effects> 333 <CompleteQuest questId="spacefight.escape" /> 334 <CompleteQuest questId="spacefight.mainfight(max)" /> 335 </effects> 336 <events> 337 <execute> 338 <EventListener event="escaped" /> 339 </execute> 340 </events> 341 </QuestEffectBeacon> 342 343 <QuestEffectBeacon> 344 <effects> 345 <CompleteQuest questId="spacefight.escape" /> 346 <AddQuest questId="spacefight.mainfight(min)" /> 347 </effects> 348 <events> 349 <execute> 350 <EventListener event="notEscaped" /> 351 </execute> 352 </events> 353 </QuestEffectBeacon> 276 354 277 355 <!-- ---------------------------------------------------------------------- --> 278 <!-- Second Spawntrigger -->279 <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />280 281 356 <!--Helper-Trigger for first guard --> 282 357 <DistanceTrigger name="flying1" position="4000,0,0" target="SpaceShip" distance=2000 stayActive="true" delay=0 /> … … 319 394 </trigger> 320 395 </events> 321 </SimpleNotification> 396 </SimpleNotification> 322 397 323 398 <!-- ----------------------------------------------------- --> … … 388 463 </EventTrigger> 389 464 465 390 466 <!-- for guard 2 --> 391 392 467 <SimpleNotification message="first" broadcast="true"> 393 468 <events> … … 414 489 </SimpleNotification> 415 490 416 <SimpleNotification message="all shot! Fly to the blinking light" broadcast="true">491 <SimpleNotification message="all shot! Catch the spion!" broadcast="true"> 417 492 <events> 418 493 <trigger> 419 <EventListener event="guard2 trigger4" />494 <EventListener event="guard2" /> 420 495 </trigger> 421 496 </events> … … 452 527 </EventTrigger> 453 528 529 <EventTrigger name="guard2" stayactive="true" delay=0.1 > 530 <events> 531 <trigger> 532 <EventListener event="guard2trigger4" /> 533 </trigger> 534 </events> 535 </EventTrigger> 536 537 <!-- For Escape --> 538 <!-- If the spion is escaped --> 539 <Trigger name="escaped" mode="xor" stayActive="true" > 540 <DistanceTrigger position="-7000,-10000,42000" target="SpaceShip" distance=100 stayActive="true" delay=0 /> 541 <EventTrigger activations="1" > 542 <events> 543 <trigger> 544 <EventListener event="spion" /> 545 </trigger> 546 </events> 547 </EventTrigger> 548 </Trigger> 549 550 <!-- If the spion is destroyed --> 551 <Trigger name="notEscaped" mode="xor" stayActive="true" > 552 <DistanceTrigger position="-7000,-10000,42000" target="SpaceShip" distance=100 stayActive="true" delay=0 /> 553 554 <!-- If the spion is escaped --> 555 <Trigger name="escaped" mode="xor" stayActive="true" > 556 <DistanceTrigger position="-7000,-10000,42000" target="SpaceShip" distance=100 stayActive="true" delay=0 /> 557 <EventTrigger activations="1" > 558 <events> 559 <trigger> 560 <EventListener event="spion" /> 561 </trigger> 562 </events> 563 </EventTrigger> 564 </Trigger> 565 </Trigger> 566 454 567 <!-- ----------------------------------------------------- --> 455 568 … … 549 662 <events> 550 663 <visibility> 551 <EventListener event=" guard1trigger4" />664 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 552 665 </visibility> 553 666 </events> … … 569 682 <events> 570 683 <activity> 571 <EventListener event=" guard1trigger4" />684 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 572 685 </activity> 573 686 </events> … … 579 692 <events> 580 693 <visibility> 581 <EventListener event=" guard1trigger4" />694 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 582 695 </visibility> 583 696 </events> … … 599 712 <events> 600 713 <activity> 601 <EventListener event=" guard1trigger4" />714 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 602 715 </activity> 603 716 </events> … … 609 722 <events> 610 723 <visibility> 611 <EventListener event=" guard1trigger4" />724 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 612 725 </visibility> 613 726 </events> … … 629 742 <events> 630 743 <activity> 631 <EventListener event=" guard1trigger4" />744 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 632 745 </activity> 633 746 </events> … … 639 752 <events> 640 753 <visibility> 641 <EventListener event=" guard1trigger4" />754 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 642 755 </visibility> 643 756 </events> … … 659 772 <events> 660 773 <activity> 661 <EventListener event=" guard1trigger4" />774 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 662 775 </activity> 663 776 </events> … … 666 779 </SpaceShip> 667 780 781 <!-- Escape-Ship --> 782 <SpaceShip position="17000,4000,22000" lookat="-12000, -22000, 25000" name="spion" visible="true" radarname="Spion" > 783 <events> 784 <visibility> 785 <EventListener event="flying2" /> <!-- "guard1trigger4" --> 786 </visibility> 787 </events> 788 <templates> 789 <Template link=spaceshippirate /> 790 </templates> 791 <controller> 792 <WaypointController team=1> 793 <waypoints> 794 <Model mesh="cube.mesh" scale=1000 position="-7000,-10000,42000" /> 795 <Model mesh="cube.mesh" scale=1000 position="-12000, -22000, 25000" /> 796 </waypoints> 797 <events> 798 <activity> 799 <EventListener event="guard2trigger1" /> 800 </activity> 801 </events> 802 </WaypointController> 803 </controller> 804 </SpaceShip> 805 668 806 669 807 <!-- ----------------------------------------------------- --> … … 671 809 <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"/> 672 810 673 <SpawnPoint team=0 position="0,0,0" lookat="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> 674 811 675 812 <!-- ASTEROIDS & ASTEROID-FIELDS --> 676 813 677 <!-- Asteroids -->678 679 680 681 <!-- triple large belt around the planet -->814 <!-- Asteroids --> 815 816 <Model position="9800, -5000, 5700" yaw="90" pitch="-90" roll="0" scale="300" mesh="asteroid_ice.mesh" /> 817 818 <!-- triple large belt around the planet --> 682 819 <?lua 683 820 dofile("includes/asteroidField.lua") … … 695 832 ?> 696 833 697 <!-- other asteroid fileds -->698 699 <!-- left before guard 1 -->700 <?lua701 dofile("includes/asteroidField.lua")702 asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0)703 ?>704 705 <!-- left behind guard 1 -->706 <?lua707 dofile("includes/asteroidField.lua")708 asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0)709 ?>710 711 <!-- between guard 2 & mainship -->712 <!-- Core -->713 <?lua714 dofile("includes/asteroidField.lua")715 asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0)716 ?>834 <!-- other asteroid fileds --> 835 836 <!-- left before guard 1 --> 837 <?lua 838 dofile("includes/asteroidField.lua") 839 asteroidField(-5000, -5000, -20000, 20, 50, 10000, 200, 0) 840 ?> 841 842 <!-- left behind guard 1 --> 843 <?lua 844 dofile("includes/asteroidField.lua") 845 asteroidField(20000, -10000, -12000, 30, 100, 10000, 200, 0) 846 ?> 847 848 <!-- between guard 2 & mainship --> 849 <!-- Core --> 850 <?lua 851 dofile("includes/asteroidField.lua") 852 asteroidField(-5000, -10000, 30000, 10, 700, 8000, 80, 0) 853 ?> 717 854 718 <!-- Peripherie -->719 <?lua720 dofile("includes/asteroidField.lua")721 asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0)722 ?>723 724 <?lua725 dofile("includes/asteroidField.lua")726 asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0)727 ?>855 <!-- Peripherie --> 856 <?lua 857 dofile("includes/asteroidField.lua") 858 asteroidField(-5000, -10000, 30000, 10, 50, 10000, 100, 0) 859 ?> 860 861 <?lua 862 dofile("includes/asteroidField.lua") 863 asteroidBelt(-10000, -12500, 0, 0, 0, 30, 30, 500, 0, 7850, 150, 0) 864 ?> 728 865 729 866 <!-- PLANETS --> 730 867 731 <Planet position="2000,-250,9000" 732 scale=5000 733 pitch=1 734 mesh="iceplanet.mesh" 735 atmosphere="atmosphere1" 736 rotationaxis="1,1,0" 737 rotationrate="0.5" 738 atmospheresize=224.0f 739 imagesize=1024.0f /> 868 <Planet position="2000,-250,9000" 869 scale=5000 870 pitch=1 871 mesh="iceplanet.mesh" 872 atmosphere="atmosphere1" 873 rotationaxis="1,1,0" 874 rotationrate="0.5" 875 atmospheresize=224.0f 876 imagesize=1024.0f /> 877 878 <BlinkingBillboard position="-7000,-10000,42000" color="1,1,1" frequency=0.6 amplitude=100 material="Examples/Flare" > 879 <events> 880 <visibility> 881 <EventTrigger> 882 <events> 883 <trigger> 884 <EventListener event="spion" /> 885 </trigger> 886 </events> 887 </EventTrigger> 888 </visibility> 889 </events> 890 </BlinkingBillboard> 740 891 741 892 742 893 <!-- ----------------Rotating SpaceStation--------------- --> 743 894 744 <StaticEntity position="9000,0,0" yaw=112 pitch=67> 745 <attached> 746 <?lua 747 createSpaceStationPar(0,2,1,2,1,4,1,50) 748 ?> 749 </attached> 750 </StaticEntity> 751 752 <StaticEntity position="18000,5000,21000" yaw=12 pitch=75> 753 <attached> 754 <?lua 755 createSpaceStationPar(0,2,1,2,1,4,1,50) 756 ?> 757 </attached> 758 </StaticEntity> 895 <!-- first guard --> 896 <StaticEntity position="9000,0,0" yaw=112 pitch=67> 897 <attached> 898 <?lua 899 createSpaceStationPar(0,2,1,2,1,4,1,50) 900 ?> 901 </attached> 902 </StaticEntity> 903 904 <!-- second guard --> 905 <StaticEntity position="18000,5000,21000" yaw=12 pitch=75> 906 <attached> 907 <?lua 908 createSpaceStationPar(0,2,1,2,1,4,1,50) 909 ?> 910 </attached> 911 </StaticEntity> 759 912 760 913 <!-- ------------------------- Mainship ------------------ --> 761 914 762 <StaticEntity position="-12000, -22000, 25000" yaw=112 pitch=67>763 <attached>764 <?lua765 createSpaceStationPar(0,2,1,2,1,4,1,50)766 ?>767 </attached>768 </StaticEntity>915 <StaticEntity position="-12000, -22000, 25000" yaw=112 pitch=67> 916 <attached> 917 <?lua 918 createSpaceStationPar(0,2,1,2,1,4,1,50) 919 ?> 920 </attached> 921 </StaticEntity> 769 922 770 923
Note: See TracChangeset
for help on using the changeset viewer.