Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8872 for code


Ignore:
Timestamp:
Sep 1, 2011, 11:45:55 AM (13 years ago)
Author:
jo
Message:

Some level polishing. E.g. better message display.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/data/levels/missionOne.oxw

    r8871 r8872  
    3131    name="narrative"
    3232    targets="simpleNotification"
    33     size=1
    34     displayTime=30
     33    size=3
     34    displayTime=3.9
    3535    position="0.2, 0, 0.1, 0"
    36     fontSize="24"
     36    fontSize="23"
    3737    fontColor="0.3, 1, 0.2, 0.8"
    3838    alignment="HorzCentred"
     
    5858<!-- QUESTS: TODO! STORY!!
    5959    <LocalQuest id="orxonox-weaponsystem-check">
    60         <QuestDescription title="Tutorial" description="Before we  serious missions you have to proof that " /> //The description of the quest.
     60        <QuestDescription title="Tutorial" description=" " /> //The description of the quest.
    6161        <subquests>
    6262            <Quest id ="questId1" />
     
    128128        </events>
    129129    </SimpleNotification>
    130 <!-------------------------------------- PART ONE: Destroy boxes --------------------------------------->
    131     <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 />
     130<!-------------------------------------- PART ZERO: How to fly --------------------------------------->
     131
     132<!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->
     133    <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=4 />
    132134    <SimpleNotification message="Destroy those four boxes.">
    133135        <events>
     
    138140    </SimpleNotification>
    139141
    140     <DistanceTrigger name="spawndelaytrigger2" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=5 />
     142    <DistanceTrigger name="spawndelaytrigger2" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=8.1 />
    141143    <SimpleNotification message=" 1. Aim the a the red cycle.">
    142144        <events>
     
    147149    </SimpleNotification>
    148150
    149     <DistanceTrigger name="spawndelaytrigger3" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=8 />
     151    <DistanceTrigger name="spawndelaytrigger3" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=12.2 />
    150152    <SimpleNotification message="2. Click! (hold the left mouse button)">
    151153        <events>
     
    166168                </Pawn>
    167169
    168                 <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     170                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true">
    169171                    <!--events>
    170172                        <visibility>
     
    201203                boxtrigger3 <-> three boxes destroyed
    202204                boxtrigger4 <-> four  boxes destroyed  -->
    203     <EventTrigger name="boxtrigger4" activations="1" stayactive="true">
     205    <EventTrigger name="boxtrigger4" activations="1" stayactive="true" delay=0.1>
    204206      <events>
    205207        <trigger>
     
    207209        </trigger>
    208210      </events>
    209       <EventTrigger name="boxtrigger3" activations="1" stayactive="true">
     211      <EventTrigger name="boxtrigger3" activations="1" stayactive="true" delay=0.1>
    210212        <events>
    211213          <trigger>
     
    213215          </trigger>
    214216        </events>
    215         <EventTrigger name="boxtrigger2" activations="1" stayactive="true">
     217        <EventTrigger name="boxtrigger2" activations="1" stayactive="true" delay=0.1>
    216218          <events>
    217219            <trigger>
     
    219221            </trigger>
    220222          </events>
    221           <EventTrigger name="boxtrigger1" activations="1" stayactive="true">
     223          <EventTrigger name="boxtrigger1" activations="1" stayactive="true" delay=0.1>
    222224            <events>
    223225              <trigger>
     
    277279
    278280<!-- @Objects: 2 pirates moving in squares, nolethal -->
    279                 <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget">
     281                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" >
    280282                    <templates>
    281283                      <Template link=spaceshippirate />
     
    311313<!-- @Triggers: movingpirates1 <-> one  pirate  dead
    312314                movingpirates2 <-> both pirates dead  -->
    313     <EventTrigger name="movingpirates2" activations="1" stayactive="true">
     315    <EventTrigger name="movingpirates2" activations="1" stayactive="true" delay=0.1>
    314316      <events>
    315317        <trigger>
     
    317319        </trigger>
    318320      </events>
    319       <EventTrigger name="movingpirates1" activations="1" stayactive="true">
     321      <EventTrigger name="movingpirates1" activations="1" stayactive="true" delay=0.1>
    320322        <events>
    321323          <trigger>
     
    346348
    347349<!--------------------------------------PART THREE: the space station --------------------------------------->
    348     <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=2 />
     350    <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 />
    349351    <SimpleNotification message="Welcome to the Duball Space Station!">
    350352        <events>
     
    541543<!-- Pickup-->
    542544
    543     <DistanceTrigger name="warning" position="-48650,700,100" target="Pawn" distance=100 stayActive="true" delay=4 />
    544     <SimpleNotification message="Return before it's too late. Boost with 'Space'.">
    545         <events>
    546             <trigger>
    547                 <EventListener event=warning />
    548             </trigger>
    549         </events>
    550     </SimpleNotification>
    551545
    552546<!-- @Objects: planet && spaceboundaries  -->
     
    565559      atmospheresize="80.0f"
    566560      imagesize="1024.0f"
    567       collisiondamage = 2
    568       enablecollisiondamage = true
     561      collisiondamage = "2"
     562      enablecollisiondamage = "false"
    569563    >
    570       <attached>
    571         <Model mesh="sphere.mesh" mass=10 position="0,0,0" scale=2500 />
    572       </attached>
    573564      <!--attached>
    574565        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
    575566      </attached-->  <!-- Forcefield kills HYDROGEN FARMER-->
    576567      <collisionShapes>
    577         <SphereCollisionShape radius="2400" position="0,0,0" /> <!-- Nasty: Collisionradius =! planet scale -->
     568        <SphereCollisionShape radius="2500" position="0,0,0" />
    578569      </collisionShapes>
    579570    </Planet>
    580     <SpaceBoundaries reactionMode=2 warnDistance="1" maxDistance="2750" showDistance="2800" healthDecrease="0.1" position="-44000,0,0"/>
    581571
    582572
     
    606596    </DistanceTrigger>
    607597
    608     <SimpleNotification message="WHY IS THIS MESSAGE NOT DISPLAYED ??"> <!-- ondock-message should be: "Return before it's too late. Boost with 'Space'." -->
     598    <SimpleNotification message="Return before it's too late. Boost with 'Space'." broadcast="true">
    609599        <events>
    610600            <trigger>
     
    626616<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
    627617<!-- 1 -->
    628     <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker">
     618    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker"visible="true">
     619        <events>
     620            <visibility>
     621                <EventListener event="ondock" />
     622            </visibility>
     623        </events>
    629624        <templates>
    630625            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    645640    </SpaceShip>
    646641<!-- 2 -->
    647     <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker">
     642    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker" visible="true">
     643        <events>
     644            <visibility>
     645                <EventListener event="ondock" />
     646            </visibility>
     647        </events>
    648648        <templates>
    649649            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    664664    </SpaceShip>
    665665<!-- 3 -->
    666     <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker">
     666    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker" visible="true">
     667        <events>
     668            <visibility>
     669                <EventListener event="ondock" />
     670            </visibility>
     671        </events>
    667672        <templates>
    668673            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    683688    </SpaceShip>
    684689<!-- 4 -->
    685     <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker">
     690    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker" visible="true">
     691        <events>
     692            <visibility>
     693                <EventListener event="ondock" />
     694            </visibility>
     695        </events>
    686696        <templates>
    687697            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    702712    </SpaceShip>
    703713<!-- 5 -->
    704     <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker">
     714    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker"visible="true">
     715        <events>
     716            <visibility>
     717                <EventListener event="ondock" />
     718            </visibility>
     719        </events>
    705720        <templates>
    706721            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    721736    </SpaceShip>
    722737<!-- 6 -->
    723     <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker">
     738    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker" visible="true">
     739        <events>
     740            <visibility>
     741                <EventListener event="ondock" />
     742            </visibility>
     743        </events>
    724744        <templates>
    725745            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    747767        </trigger>
    748768      </events>
    749       <EventTrigger name="attacktrigger5" activations="1" stayactive="true">
     769      <EventTrigger name="attacktrigger5" activations="1" stayactive="true" delay=0.1>
    750770        <events>
    751771          <trigger>
     
    753773          </trigger>
    754774        </events>
    755         <EventTrigger name="attacktrigger4" activations="1" stayactive="true">
     775        <EventTrigger name="attacktrigger4" activations="1" stayactive="true" delay=0.1>
    756776          <events>
    757777            <trigger>
     
    759779            </trigger>
    760780          </events>
    761           <EventTrigger name="attacktrigger3" activations="1" stayactive="true">
     781          <EventTrigger name="attacktrigger3" activations="1" stayactive="true" delay=0.1>
    762782            <events>
    763783              <trigger>
     
    765785              </trigger>
    766786            </events>
    767             <EventTrigger name="attacktrigger2" activations="1" stayactive="true">
     787            <EventTrigger name="attacktrigger2" activations="1" stayactive="true" delay=0.1>
    768788              <events>
    769789                <trigger>
     
    771791                </trigger>
    772792              </events>
    773               <EventTrigger name="attacktrigger1" activations="1" stayactive="true">
     793              <EventTrigger name="attacktrigger1" activations="1" stayactive="true" delay=0.1>
    774794                <events>
    775795                  <trigger>
     
    856876    </SimpleNotification>
    857877
    858     <SimpleNotification message="... continue by using the new portal." broadcast="true">
     878    <SimpleNotification message="... stay here to learn some tricks." broadcast="true">
    859879      <events>
    860880        <trigger>
     
    864884    </SimpleNotification>
    865885
    866 
    867 <!--- Message: Mission accomplished. Well done. Either you return to the main menu by pressing 'Esc' & then the button 'return to main menu'
    868       or you might want to discover some further tricks. Then use the new portal. --->
    869 
    870886<!-------------------------------------- |Bonus Part| --------------------------------------->
    871 
    872 <!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
    873     <PortalEndPoint position="700,-600,500" id="3" distance="50" target="MobileEntity" design="PortalDefault" visible=true>
    874         <events>
    875             <visibility>
    876                 <EventListener event="postAttack2" />
    877             </visibility>
    878         </events>
    879     </PortalEndPoint>
    880 
    881     <PortalEndPoint position="7000,10000,-5000" id="4" distance="70" target="MobileEntity" design="PortalDefault" visible=true>
    882         <events>
    883             <visibility>
    884                 <EventListener event="postAttack2" />
    885             </visibility>
    886         </events>
    887     </PortalEndPoint>
    888 
    889     <PortalLink fromID="3" toID="4" />
    890     <PortalLink fromID="4" toID="3" />
    891 
    892     <DistanceTrigger name="bonus1" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=2 />
    893     <SimpleNotification message="Rotate your ship. Press 'Q' or 'E'. ">
     887<!-- @Triggers: "bonusX" <->  delayed "attacktrigger6" -->
     888    <EventTrigger name="bonus1" activations="1" stayactive="true" delay=10>
     889      <events>
     890        <trigger>
     891          <EventListener event="attacktrigger6" />
     892        </trigger>
     893      </events>
     894    </EventTrigger>
     895    <EventTrigger name="bonus2" activations="1" stayactive="true" delay=16>
     896      <events>
     897        <trigger>
     898          <EventListener event="attacktrigger6" />
     899        </trigger>
     900      </events>
     901    </EventTrigger>
     902    <EventTrigger name="bonus3" activations="1" stayactive="true" delay=22>
     903      <events>
     904        <trigger>
     905          <EventListener event="attacktrigger6" />
     906        </trigger>
     907      </events>
     908    </EventTrigger>
     909    <EventTrigger name="bonus4" activations="1" stayactive="true" delay=28>
     910      <events>
     911        <trigger>
     912          <EventListener event="attacktrigger6" />
     913        </trigger>
     914      </events>
     915    </EventTrigger>
     916    <EventTrigger name="bonus5" activations="1" stayactive="true" delay=32.1>
     917      <events>
     918        <trigger>
     919          <EventListener event="attacktrigger6" />
     920        </trigger>
     921      </events>
     922    </EventTrigger>
     923    <EventTrigger name="bonus6" activations="1" stayactive="true" delay=36.2>
     924      <events>
     925        <trigger>
     926          <EventListener event="attacktrigger6" />
     927        </trigger>
     928      </events>
     929    </EventTrigger>
     930    <EventTrigger name="bonus7" activations="1" stayactive="true" delay=4>
     931      <events>
     932        <trigger>
     933          <EventListener event="bonus6" />
     934        </trigger>
     935      </events>
     936    </EventTrigger>
     937
     938
     939
     940    <SimpleNotification message="Rotate your ship. Press 'Q' or 'E'. "  broadcast="true">
    894941        <events>
    895942            <trigger>
     
    899946    </SimpleNotification>
    900947
    901     <DistanceTrigger name="bonus2" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=7 />
    902     <SimpleNotification message="Switch the camera's position. Press 'C'. ">
     948    <SimpleNotification message="Switch the camera's position. Press 'C'. "  broadcast="true">
    903949        <events>
    904950            <trigger>
     
    908954    </SimpleNotification>
    909955
    910     <DistanceTrigger name="bonus3" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=12 />
    911     <SimpleNotification message="360° view: press 'Ctrl' + use the mouse ">
     956    <SimpleNotification message="360° view: press 'Ctrl' + use the mouse "  broadcast="true">
    912957        <events>
    913958            <trigger>
     
    917962    </SimpleNotification>
    918963
    919     <DistanceTrigger name="bonus4" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=17 />
    920     <SimpleNotification message="Have a look at the main menu's settings.">
     964    <SimpleNotification message="Have a look at the main menu's settings."  broadcast="true">
    921965        <events>
    922966            <trigger>
     
    926970    </SimpleNotification>
    927971
    928     <DistanceTrigger name="bonus5" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=22 />
    929     <SimpleNotification message="E.g: Settings > Miscellaneous > Nr. of bots">
     972    <SimpleNotification message="E.g: Settings > Miscellaneous > Nr. of bots"  broadcast="true">
    930973        <events>
    931974            <trigger>
     
    935978    </SimpleNotification>
    936979
    937     <DistanceTrigger name="bonus6" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=27 />
    938     <SimpleNotification message="That's it. Have fun with some bots.">
     980    <SimpleNotification message="You successfully finished Mission One!"  broadcast="true">
    939981        <events>
    940982            <trigger>
     
    944986    </SimpleNotification>
    945987
    946     <Script code="addBots 3" onLoad="false">
     988    <SimpleNotification message="Press 'Esc' and return to the main menu."  broadcast="true">
     989        <events>
     990            <trigger>
     991                <EventListener event=bonus7 />
     992            </trigger>
     993        </events>
     994    </SimpleNotification>
     995
     996
     997    <!--Script code="addBots 3" onLoad="false">
    947998        <events>
    948999            <trigger>
     
    9581009            </trigger>
    9591010        </events>
    960     </Script>
     1011    </Script-->
    9611012
    9621013  </Scene>
     
    9641015<!-- TODO:
    9651016! Quest Interface
    966 ! Problem with triggers (bug! e.g. at boxes, fast destroy)
    9671017- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken)
    968 - Clear Message Output: ""
     1018- Radar visibility & Hud Markers
    9691019 -->
Note: See TracChangeset for help on using the changeset viewer.