Changeset 9710
- Timestamp:
- Oct 21, 2013, 3:58:15 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spacestationentry/data/levels/EntryTest.oxw
r9708 r9710 56 56 <events> 57 57 <trigger> 58 <TeamSpawnPoint team=0 position=" 800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff>58 <TeamSpawnPoint team=0 position="-47000,-1000,1300" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff> 59 59 <EventTrigger invert=true> 60 60 <events> … … 365 365 Always take care of the enemy that is the closest to you." failmessage="" completeMessage="Yeah! You did it." /> 366 366 </LocalQuest> 367 <!-- --------------------- END OF QUESTS -------------------------- -->368 369 370 <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=2/>371 <SimpleNotification message="Press (F3) to see your mission briefing.">372 <events>373 <trigger>374 <EventListener event="spawndelaytrigger0" />375 </trigger>376 </events>377 </SimpleNotification>378 379 <!-- Blinking Billboard should be replaced with WAYPOINT -->380 <BlinkingBillboard position="-900,640,600" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">381 <events>382 <visibility>383 <EventTrigger invert=true>384 <events>385 <trigger>386 <EventListener event=flying4 />387 </trigger>388 </events>389 </EventTrigger>390 </visibility>391 </events>392 </BlinkingBillboard>393 <Billboard position="-900,640,600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">394 <events>395 <visibility>396 <EventTrigger>397 <events>398 <trigger>399 <EventListener event=flying4 />400 </trigger>401 </events>402 </EventTrigger>403 </visibility>404 </events>405 </Billboard>406 407 <!-------------------------------------- PART ZERO: How to fly --------------------------------------->408 409 <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/>410 <SimpleNotification message="Let's fly to the blinking light.">411 <events>412 <trigger>413 <EventListener event="flying1" />414 </trigger>415 </events>416 </SimpleNotification>417 418 <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=10/>419 <SimpleNotification message="Use (W) to accelerate and the mouse to steer.">420 <events>421 <trigger>422 <EventListener event="flying2" />423 </trigger>424 </events>425 </SimpleNotification>426 427 <!-- QUEST-Trigger && Message Trigger: navigationend is activated after flying4 was triggered -->428 <DistanceTrigger name="navigationend" position="0,0,0" distance=950 target="SpaceShip" stayActive="false" delay=1.1>429 <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/>430 </DistanceTrigger>431 432 433 <SimpleNotification message="Three arrows just appeared.">434 <events>435 <trigger>436 <EventListener event="flying4" />437 </trigger>438 </events>439 </SimpleNotification>440 441 <DistanceTrigger name="flying5" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=5/>442 <SimpleNotification message="Follow those arrows.">443 <events>444 <trigger>445 <EventListener event="flying5" />446 </trigger>447 </events>448 </SimpleNotification>449 450 <!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->451 <!-- @ triggers: spawndelaytriggerX: textoutput only if no box was destroyed -->452 <Trigger name="spawndelaytrigger1" mode="and" stayActive="true">453 <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=9 />454 <EventTrigger activations="1" invert="true">455 <events>456 <trigger>457 <EventListener event="boxtrigger1" />458 </trigger>459 </events>460 </EventTrigger>461 </Trigger>462 463 <Trigger name="spawndelaytrigger2" mode="and" stayActive="true">464 <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=13 />465 <EventTrigger activations="1" invert="true">466 <events>467 <trigger>468 <EventListener event="boxtrigger1" />469 </trigger>470 </events>471 </EventTrigger>472 </Trigger>473 474 <Trigger name="spawndelaytrigger3" mode="and" stayActive="true">475 <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=17 />476 <EventTrigger activations="1" invert="true">477 <events>478 <trigger>479 <EventListener event="boxtrigger1" />480 </trigger>481 </events>482 </EventTrigger>483 </Trigger>484 485 <!-- @Text: How to shoot-->486 <SimpleNotification message="Destroy the four boxes." broadcast="true">487 <events>488 <trigger>489 <EventListener event="spawndelaytrigger1" />490 </trigger>491 </events>492 </SimpleNotification>493 494 <SimpleNotification message=" 1. Aim the a red cycle." broadcast="true">495 <events>496 <trigger>497 <EventListener event="spawndelaytrigger2" />498 </trigger>499 </events>500 </SimpleNotification>501 502 <SimpleNotification message="2. Click! (hold the left mouse button)" broadcast="true">503 <events>504 <trigger>505 <EventListener event="spawndelaytrigger3" />506 </trigger>507 </events>508 </SimpleNotification>509 510 <!-- @Objects: 4 boxes (uncontrolled pawns) -->511 <Pawn team=1 health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 4" >512 <events>513 <visibility>514 <EventListener event="flying4" />515 </visibility>516 </events>517 <attached>518 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />519 </attached>520 <collisionShapes>521 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />522 </collisionShapes>523 </Pawn>524 525 <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 3">526 <events>527 <visibility>528 <EventListener event="flying4" />529 </visibility>530 </events>531 <attached>532 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />533 </attached>534 <collisionShapes>535 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />536 </collisionShapes>537 </Pawn>538 539 <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 radarname = "Box 2">540 <events>541 <visibility>542 <EventListener event="flying4" />543 </visibility>544 </events>545 <attached>546 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />547 </attached>548 <collisionShapes>549 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />550 </collisionShapes>551 </Pawn>552 553 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1 radarname = "Box 1">554 <events>555 <visibility>556 <EventListener event="flying4" />557 </visibility>558 </events>559 <attached>560 <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />561 </attached>562 <collisionShapes>563 <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />564 </collisionShapes>565 </Pawn>566 567 <!-- @Triggers: boxtrigger1 <-> one box destroyed568 boxtrigger2 <-> two boxes destroyed569 boxtrigger3 <-> three boxes destroyed570 boxtrigger4 <-> four boxes destroyed -->571 <EventTrigger name="boxtrigger4" activations="1" stayactive="true" delay=0.1>572 <events>573 <trigger>574 <EventListener event="box" />575 </trigger>576 </events>577 <EventTrigger name="boxtrigger3" activations="1" stayactive="true" delay=0.1>578 <events>579 <trigger>580 <EventListener event="box" />581 </trigger>582 </events>583 <EventTrigger name="boxtrigger2" activations="1" stayactive="true" delay=0.1>584 <events>585 <trigger>586 <EventListener event="box" />587 </trigger>588 </events>589 <EventTrigger name="boxtrigger1" activations="1" stayactive="true" delay=0.1>590 <events>591 <trigger>592 <EventListener event="box" />593 </trigger>594 </events>595 </EventTrigger>596 </EventTrigger>597 </EventTrigger>598 </EventTrigger>599 600 601 <SimpleNotification message="Right click on the next target." broadcast="true">602 <events>603 <trigger>604 <EventListener event="boxtrigger1" />605 </trigger>606 </events>607 </SimpleNotification>608 609 <SimpleNotification message="Middle click on the next target." broadcast="true">610 <events>611 <trigger>612 <EventListener event="boxtrigger2" />613 </trigger>614 </events>615 </SimpleNotification>616 617 <SimpleNotification message="Aim at the last target and press (T)." broadcast="true">618 <events>619 <trigger>620 <EventListener event="boxtrigger3" />621 </trigger>622 </events>623 </SimpleNotification>624 625 <SimpleNotification message="Try to hit the pirates while you are flying." broadcast="true">626 <events>627 <trigger>628 <EventListener event="boxtrigger4" />629 </trigger>630 </events>631 </SimpleNotification>632 633 634 <!--------------------------------------PART TWO: Moving targets --------------------------------------->635 636 <!-- @Objects: 2 pirates moving in squares, nonlethal -->637 <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" radarname="Pirate">638 <events>639 <visibility>640 <EventListener event="boxtrigger4" />641 </visibility>642 </events>643 <templates>644 <Template link=spaceshippirate />645 </templates>646 <controller>647 <WaypointController team=1>648 <waypoints>649 <Model mesh="cube.mesh" scale=8 position=" 0,1700,-200" />650 <Model mesh="cube.mesh" scale=8 position=" 0,1700,-700" />651 <Model mesh="cube.mesh" scale=8 position="500,1700,-700" />652 <Model mesh="cube.mesh" scale=8 position="500,1700,-200" />653 </waypoints>654 </WaypointController>655 </controller>656 </SpaceShip>657 658 <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget" radarname="Pirate">659 <events>660 <visibility>661 <EventListener event="boxtrigger4" />662 </visibility>663 </events>664 <templates>665 <Template link=spaceshippirate />666 </templates>667 <controller>668 <WaypointController team=1>669 <waypoints>670 <Model mesh="cube.mesh" scale=8 position=" 0,2400,1000" />671 <Model mesh="cube.mesh" scale=8 position=" 0,2400, 500" />672 <Model mesh="cube.mesh" scale=8 position="500,2400, 500" />673 <Model mesh="cube.mesh" scale=8 position="500,2400,1000" />674 </waypoints>675 </WaypointController>676 </controller>677 </SpaceShip>678 679 <!-- @Triggers: movingpirates1 <-> one pirate dead680 movingpirates2 <-> both pirates dead -->681 <EventTrigger name="movingpirates2" activations="1" stayactive="true" delay=0.1>682 <events>683 <trigger>684 <EventListener event="movingtarget" />685 </trigger>686 </events>687 <EventTrigger name="movingpirates1" activations="1" stayactive="true" delay=0.1>688 <events>689 <trigger>690 <EventListener event="movingtarget" />691 </trigger>692 </events>693 </EventTrigger>694 </EventTrigger>695 696 697 <SimpleNotification message="Now get the other one." broadcast="true">698 <events>699 <trigger>700 <EventListener event="movingpirates1" />701 </trigger>702 </events>703 </SimpleNotification>704 705 <SimpleNotification message="Fly towards the space station (grey dot)." broadcast="true">706 <events>707 <trigger>708 <EventListener event="movingpirates2" />709 </trigger>710 </events>711 </SimpleNotification>712 713 714 715 <!--------------------------------------PART THREE: the space station --------------------------------------->716 <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 >717 <events>718 <activity>719 <EventListener event="movingpirates2" />720 </activity>721 </events>722 </DistanceTrigger>723 724 <Trigger name="duball2" mode="and" stayActive="true">725 <EventTrigger activations="1" stayactive="true" delay=4 >726 <events>727 <trigger>728 <EventListener event="duball1" />729 </trigger>730 </events>731 </EventTrigger>732 <EventTrigger activations="1" invert="true">733 <events>734 <trigger>735 <EventListener event="toHydroFarmer" />736 </trigger>737 </events>738 </EventTrigger>739 </Trigger>740 741 <Trigger name="duball3" mode="and" stayActive="true">742 <EventTrigger activations="1" stayactive="true" delay=4 >743 <events>744 <trigger>745 <EventListener event="duball2" />746 </trigger>747 </events>748 </EventTrigger>749 <EventTrigger activations="1" invert="true">750 <events>751 <trigger>752 <EventListener event="toHydroFarmer" />753 </trigger>754 </events>755 </EventTrigger>756 </Trigger>757 758 759 <SimpleNotification message="Welcome to the Duball Space Station!">760 <events>761 <trigger>762 <EventListener event=duball1 />763 </trigger>764 </events>765 </SimpleNotification>766 767 <SimpleNotification message="Warning: Something big is coming." broadcast="true">768 <events>769 <trigger>770 <EventListener event=duball2 />771 </trigger>772 </events>773 </SimpleNotification>774 775 <SimpleNotification message="Use the portals to get help. (grey dot)" broadcast="true">776 <events>777 <trigger>778 <EventListener event=duball3 />779 </trigger>780 </events>781 </SimpleNotification>782 783 784 <!-- @Objects: DuBall Space Station, (no pawn!) -->785 <StaticEntity position="-1000,-300,700" collisionType=static>786 <attached>787 <Model scale=13 mesh="DuBall1.mesh" position = "-100,0,0"/>788 <Model scale=13 mesh="DuBall2.mesh" position = "100,0,0"/>789 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/>790 <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/>791 </attached>792 <collisionShapes>793 <SphereCollisionShape radius="80" position = "-100,0,0" />794 <SphereCollisionShape radius="120" position = "100,0,0" />795 <BoxCollisionShape halfExtents="90,25,45" position = "-155,0,40" />796 </collisionShapes>797 </StaticEntity>798 799 800 <!-- @Objects: PORTAL: from DuBall to HydroHarvester -->801 <Template name=PortalDefault>802 <PortalEndPoint>803 <attached>804 <Billboard material="Portals/Default" />805 </attached>806 </PortalEndPoint>807 </Template>808 809 <PortalEndPoint position="-1400,-500,800" id="1" distance="50" target="MobileEntity" design="PortalDefault">810 <events>811 <activity>812 <Trigger mode="or" activations="2">813 <Trigger mode="and" activations="1">814 <EventTrigger>815 <events>816 <trigger>817 <EventListener event="movingpirates2" />818 </trigger>819 </events>820 </EventTrigger>821 <EventTrigger invert=true>822 <events>823 <trigger>824 <EventListener event="toHydroFarmer" />825 </trigger>826 </events>827 </EventTrigger>828 </Trigger>829 <Trigger mode="and" activations="1">830 <EventTrigger>831 <events>832 <trigger>833 <EventListener event="ondock" />834 </trigger>835 </events>836 </EventTrigger>837 <EventTrigger invert=true>838 <events>839 <trigger>840 <EventListener event="attack" />841 </trigger>842 </events>843 </EventTrigger>844 </Trigger>845 <EventTrigger>846 <events>847 <trigger>848 <EventListener event="HydroFarmer" />849 </trigger>850 </events>851 </EventTrigger>852 </Trigger>853 </activity>854 </events>855 </PortalEndPoint>856 857 <PortalEndPoint position="-47000,-1000,1300" id="2" distance="70" target="MobileEntity" design="PortalDefault">858 <events>859 <activity>860 <Trigger mode="or" activations="3">861 <Trigger mode="and" activations="1">862 <EventTrigger>863 <events>864 <trigger>865 <EventListener event="movingpirates2" />866 </trigger>867 </events>868 </EventTrigger>869 <EventTrigger invert=true>870 <events>871 <trigger>872 <EventListener event="toHydroFarmer" />873 </trigger>874 </events>875 </EventTrigger>876 </Trigger>877 <Trigger mode="and" activations="1">878 <EventTrigger>879 <events>880 <trigger>881 <EventListener event="ondock" />882 </trigger>883 </events>884 </EventTrigger>885 <EventTrigger invert=true>886 <events>887 <trigger>888 <EventListener event="attack" />889 </trigger>890 </events>891 </EventTrigger>892 </Trigger>893 <EventTrigger>894 <events>895 <trigger>896 <EventListener event="HydroFarmer" />897 </trigger>898 </events>899 </EventTrigger>900 </Trigger>901 </activity>902 </events>903 </PortalEndPoint>904 <PortalLink fromID="1" toID="2" />905 <PortalLink fromID="2" toID="1" />906 <!-- ????????????????????????????????????????????????????? why does this NOT work ??907 <Trigger mode="and" activations="1">908 <EventTrigger>909 <events>910 <trigger>911 <EventListener event="HydroFarmer" />912 </trigger>913 </events>914 </EventTrigger>915 <EventTrigger invert=true>916 <events>917 <trigger>918 <EventListener event="attack" />919 </trigger>920 </events>921 </EventTrigger>922 </Trigger>923 -->924 <!-- PORTALS END-->925 926 367 927 368 <SimpleNotification message="Dock to the Hydrogen Farmer." broadcast="true">
Note: See TracChangeset
for help on using the changeset viewer.