Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 29, 2011, 4:30:28 PM (13 years ago)
Author:
jo
Message:

Tutorial in first 'playable' version. There are some serious bugs though. The triggers for the four boxes and for the two pirates at the beginning are somehow not always triggered in the right way. I've got no explanation for this behaviour. /n Secondly the 'invisible' portals appear on the radar.

File:
1 edited

Legend:

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

    r8869 r8871  
    4747    ?>
    4848
    49     <WorldAmbientSound
    50       ambientSource="Jupiter.ogg"
    51       looping="true"
    52       playOnLoad="true"
    53     />
    54 <!-- AlphaCentauri.ogg-->
     49  <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg-->
     50
     51
    5552    <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"/>
    5653    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     
    5855
    5956<!-- END OF INCLUDES & NECESSARITIES -->
     57
     58<!-- QUESTS: TODO! STORY!!
     59    <LocalQuest id="orxonox-weaponsystem-check">
     60        <QuestDescription title="Tutorial" description="Before we  serious missions you have to proof that " /> //The description of the quest.
     61        <subquests>
     62            <Quest id ="questId1" />
     63            <Quest id="questIdn" />
     64        </subquests>
     65        <hints>
     66            <QuestHint id="hintId1" /> //A list of n QuestHints, see QuestHint for the full XML representation of those.
     67            ...
     68            <QuestHint id="hintIdn" />
     69        </hints>
     70        <fail-effects>
     71            <QuestEffect /> //A list of QuestEffects, invoked when the Quest is failed, see QuestEffect for the full XML representation.
     72            ...
     73            <QuestEffect />
     74        </fail-effects>
     75        <complete-effects>
     76            <QuestEffect /> //A list of QuestEffects, invoked when the Quest is completed, see QuestEffect for the full XML representation.
     77            ...
     78            <QuestEffect />
     79        </complete-effects>
     80    </LocalQuest-->
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
    60100
    61101<!-- TUTORIAL-TODO: -->
     
    68108<!--
    69109Four boxes for aiming
    70 TODO: Turn engine off at the beginning.
     110
    71111TODO: display text: "Destroy those four boxes. Aim the a the box and shoot by using the left mouse button."
    72112"The laser is a standard weapon. It is fast and precise but does not deal much damage. Now do the same with the next target, but right click instead."
     
    74114"The target seeking rockets follow their target on their own and the explosive load shouldn't be underestimated. Now its time to hit the last target with the hand guided rocket. You can release one by pressing T once. Note: If you miss the target, you can get out of the rocket by clicking or pressing T once more."
    75115
    76 TODO: send in waypoint controlled ship that moves
    77 
    78116"Task complete. Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. Now lets move to a slightly more difficult target. Take a look at your radar. The red dot is an enemy's ship. Try to turn your ship towards it, such that the red dot is in the radar's centre. You should be able to see it then directly. Your task is to destroy it."
    79117
    80 TODO: Turn engine on. Display a waypoint.
    81118"Lets start flying. Use W to accelerate and S to brake. The goal is to reach the spacestation which is displayed on the radar. If you want to be faster you can temporarily boost by hitting additionally the space button. If you use too much boost your engine heats up and you won't be able to use boost for a while. By the way boost could be useful during combat .."
    82 "That thing you've just collected is a drone. It will follow and protect you."
    83 TODO: send in a level 0.1 bot on a pirate ship.
    84 "Hi. We have been attacked by a pirate lately. Please protect us. The drone pickup will help you."
    85119
    86120-->
    87121
    88 
     122    <DistanceTrigger name="spawndelaytrigger0" position="-200,0,0" target="Pawn" distance=10 stayActive="true" />
     123    <SimpleNotification message="Welcome to the Orxonox Tutorial.">
     124        <events>
     125            <trigger>
     126                <EventListener event="spawndelaytrigger0" />
     127            </trigger>
     128        </events>
     129    </SimpleNotification>
    89130<!-------------------------------------- PART ONE: Destroy boxes --------------------------------------->
    90131    <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 />
     
    92133        <events>
    93134            <trigger>
    94                 <EventListener event=spawndelaytrigger1 />
     135                <EventListener event="spawndelaytrigger1" />
    95136            </trigger>
    96137        </events>
     
    101142        <events>
    102143            <trigger>
    103                 <EventListener event=spawndelaytrigger2 />
     144                <EventListener event="spawndelaytrigger2" />
    104145            </trigger>
    105146        </events>
     
    110151        <events>
    111152            <trigger>
    112                 <EventListener event=spawndelaytrigger3 />
    113             </trigger>
    114         </events>
    115     </SimpleNotification>
    116 
    117 <!-- static briefing END // Interactive briefing start -->
    118 
    119   <SimpleNotification message="Right click on the next target." broadcast="true">
    120         <events>
    121             <trigger>
    122                 <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000>
     153                <EventListener event="spawndelaytrigger3" />
     154            </trigger>
     155        </events>
     156    </SimpleNotification>
     157
     158<!-- @Objects: 4 boxes (uncontrolled pawns) -->
     159                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    123160                    <attached>
    124161                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     
    128165                    </collisionShapes>
    129166                </Pawn>
    130             </trigger>
    131         </events>
    132     </SimpleNotification>
    133 
    134   <SimpleNotification message="Middle click on the next target." broadcast="true">
    135         <events>
    136             <trigger>
    137                 <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000>
     167
     168                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    138169                    <!--events>
    139170                        <visibility>
     
    149180                    </collisionShapes>
    150181                </Pawn>
    151             </trigger>
    152         </events>
    153     </SimpleNotification>
    154 
    155 
    156   <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true">
    157         <events>
    158             <trigger>
    159                 <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000>
     182                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    160183                    <attached>
    161184                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     
    165188                    </collisionShapes>
    166189                </Pawn>
    167             </trigger>
    168         </events>
    169     </SimpleNotification>
    170 
    171   <SimpleNotification message="Fly towards the pirates. Press 'W'." broadcast="true">
    172         <events>
    173             <trigger>
    174                 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000>
     190                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    175191                    <attached>
    176192                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     
    180196                    </collisionShapes>
    181197                </Pawn>
     198
     199<!-- @Triggers: boxtrigger1 <-> one   box   destroyed
     200                boxtrigger2 <-> two   boxes destroyed
     201                boxtrigger3 <-> three boxes destroyed
     202                boxtrigger4 <-> four  boxes destroyed  -->
     203    <EventTrigger name="boxtrigger4" activations="1" stayactive="true">
     204      <events>
     205        <trigger>
     206          <EventListener event="box" />
     207        </trigger>
     208      </events>
     209      <EventTrigger name="boxtrigger3" activations="1" stayactive="true">
     210        <events>
     211          <trigger>
     212            <EventListener event="box" />
     213          </trigger>
     214        </events>
     215        <EventTrigger name="boxtrigger2" activations="1" stayactive="true">
     216          <events>
     217            <trigger>
     218              <EventListener event="box" />
     219            </trigger>
     220          </events>
     221          <EventTrigger name="boxtrigger1" activations="1" stayactive="true">
     222            <events>
     223              <trigger>
     224                <EventListener event="box" />
     225              </trigger>
     226            </events>
     227          </EventTrigger>
     228        </EventTrigger>
     229      </EventTrigger>
     230    </EventTrigger>
     231
     232
     233  <SimpleNotification message="Right click on the next target." broadcast="true">
     234        <events>
     235            <trigger>
     236                <EventListener event="boxtrigger1" />
     237            </trigger>
     238        </events>
     239    </SimpleNotification>
     240
     241  <SimpleNotification message="Middle click on the next target." broadcast="true">
     242        <events>
     243            <trigger>
     244                <EventListener event="boxtrigger2" />
     245            </trigger>
     246        </events>
     247    </SimpleNotification>
     248
     249
     250  <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true">
     251        <events>
     252            <trigger>
     253                <EventListener event="boxtrigger3" />
     254            </trigger>
     255        </events>
     256    </SimpleNotification>
     257
     258  <SimpleNotification message="Fly towards the pirates. Press 'W'." broadcast="true">
     259        <events>
     260            <trigger>
     261                <EventListener event="boxtrigger4" />
    182262            </trigger>
    183263        </events>
     
    196276    </SimpleNotification>
    197277
    198 
    199 
    200   <SimpleNotification message="Now get the other one." broadcast="true">
    201         <events>
    202             <trigger>
    203                 <SpaceShip position="0,2000,200" lookat="0,0,0">
     278<!-- @Objects: 2 pirates moving in squares, nolethal -->
     279                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget">
    204280                    <templates>
    205281                      <Template link=spaceshippirate />
     
    216292                  </controller>
    217293                </SpaceShip>
    218             </trigger>
    219         </events>
    220     </SimpleNotification>
    221 
    222   <SimpleNotification message="Fly towards the space station (grey dot)." broadcast="true">
    223         <events>
    224             <trigger>
    225                 <SpaceShip position="0,2000,400" lookat="0,0,0">
     294
     295                <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget">
    226296                  <templates>
    227297                    <Template link=spaceshippirate />
     
    231301                      <waypoints>
    232302                        <Model mesh="cube.mesh" scale=8 position="  0,2400,1000" />
    233                         <Model mesh="cube.mesh" scale=8 position="  0,2400,500" />
    234                         <Model mesh="cube.mesh" scale=8 position="500,2400,500" />
    235                         <Model mesh="cube.mesh" scale=8 position="500,2400, 1000" />
     303                        <Model mesh="cube.mesh" scale=8 position="  0,2400, 500" />
     304                        <Model mesh="cube.mesh" scale=8 position="500,2400, 500" />
     305                        <Model mesh="cube.mesh" scale=8 position="500,2400,1000" />
    236306                      </waypoints>
    237307                    </WaypointController>
    238308                  </controller>
    239309                </SpaceShip>
    240             </trigger>
    241         </events>
    242     </SimpleNotification>
    243 
    244 <!--------------------------------------PART THREE: to the space station --------------------------------------->
     310
     311<!-- @Triggers: movingpirates1 <-> one  pirate  dead
     312                movingpirates2 <-> both pirates dead  -->
     313    <EventTrigger name="movingpirates2" activations="1" stayactive="true">
     314      <events>
     315        <trigger>
     316          <EventListener event="movingtarget" />
     317        </trigger>
     318      </events>
     319      <EventTrigger name="movingpirates1" activations="1" stayactive="true">
     320        <events>
     321          <trigger>
     322            <EventListener event="movingtarget" />
     323          </trigger>
     324        </events>
     325      </EventTrigger>
     326    </EventTrigger>
     327
     328
     329    <SimpleNotification message="Now get the other one."  broadcast="true">
     330        <events>
     331            <trigger>
     332                <EventListener event="movingpirates1" />
     333            </trigger>
     334        </events>
     335    </SimpleNotification>
     336
     337    <SimpleNotification message="Fly towards the space station (grey dot)."  broadcast="true">
     338        <events>
     339            <trigger>
     340                <EventListener event="movingpirates2" />
     341            </trigger>
     342        </events>
     343    </SimpleNotification>
     344
     345
     346
     347<!--------------------------------------PART THREE: the space station --------------------------------------->
    245348    <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=2 />
    246349    <SimpleNotification message="Welcome to the Duball Space Station!">
     
    279382    </SimpleNotification>
    280383
    281 <StaticEntity position="-1000,-300,700" collisionType=static>
     384
     385<!-- @Objects: DuBall Space Station, (no pawn!) -->
     386    <StaticEntity position="-1000,-300,700" collisionType=static>
    282387      <attached>
    283388        <Model scale=13 mesh="DuBall1.mesh" position = "-100,0,0"/>
     
    291396        <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
    292397      </collisionShapes>
    293 </StaticEntity>
    294 
    295 
    296 
    297 <!-- PORTALS -->
     398    </StaticEntity>
     399
     400
     401<!-- @Objects: PORTAL: from DuBall to HydroHarvester  -->
    298402    <Template name=PortalDefault>
    299403        <PortalEndPoint>
     
    317421<!-- PORTALS END-->
    318422
    319     <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=700 stayActive="true" delay=0 />
     423    <!--DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=700 stayActive="true" delay=0 /-->
    320424    <SimpleNotification message="Find the Hydrogen Farmer.">
    321425        <events>
     
    325429        </events>
    326430    </SimpleNotification>
     431
    327432<!-------------------------------------- PART FOUR : Get Help --------------------------------------->   
    328433    <DistanceTrigger name="famer1" position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
     
    344449    </SimpleNotification>
    345450
    346 <!-- TODO: c) enemy -->
    347 
    348     <!-- HYDROGEN FARMER & DOCKING?? -->
     451
     452<!-- @Objects: HYDROGEN FARMER & DOCKING -->
    349453    <SpaceShip position="-48900,100,0" roll=90 yaw=0 pitch=20 mass=10000 health=100000 >
    350454      <attached>
     
    416520      </attached>
    417521    </SpaceShip>
    418 
    419 
    420 <!-- Pickup - find better place !! -->
    421     <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
    422     <SimpleNotification message="This pickup protects your spaceship.">
    423         <events>
    424             <trigger>
    425                 <EventListener event=pickup />
    426             </trigger>
    427         </events>
    428     </SimpleNotification>
    429 
     522<!-- hydrogen farmer & docking END -->
     523
     524
     525<!-- @Objects: Pickup - find better place !! -->
    430526    <PickupSpawner position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1">
    431527      <pickup>
     
    433529      </pickup>
    434530    </PickupSpawner>
     531
     532
     533    <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
     534    <SimpleNotification message="This pickup protects your spaceship.">
     535        <events>
     536            <trigger>
     537                <EventListener event=pickup />
     538            </trigger>
     539        </events>
     540    </SimpleNotification>
    435541<!-- Pickup-->
    436542
    437     <DistanceTrigger name="attack" position="-48650,700,100" target="Pawn" distance=100 stayActive="true" delay=4 />
    438     <SimpleNotification message="Return before it is too late. Boost with 'Space'.">
    439         <events>
    440             <trigger>
    441                 <EventListener event=attack />
    442             </trigger>
    443         </events>
    444     </SimpleNotification>
    445 
    446 
     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>
     551
     552<!-- @Objects: planet && spaceboundaries  -->
    447553    <Planet
    448554      position="-44000,0,0"
     
    462568      enablecollisiondamage = true
    463569    >
     570      <attached>
     571        <Model mesh="sphere.mesh" mass=10 position="0,0,0" scale=2500 />
     572      </attached>
    464573      <!--attached>
    465574        <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" />
     
    469578      </collisionShapes>
    470579    </Planet>
    471 
     580    <SpaceBoundaries reactionMode=2 warnDistance="1" maxDistance="2750" showDistance="2800" healthDecrease="0.1" position="-44000,0,0"/>
    472581
    473582
     
    481590     - bots do friendly fire (is drone function reusable?)
    482591-->
     592
     593<!-- @Triggers: toHydroFamer <-> first  portal usage
     594                ondock       <-> successfull docking
     595                attack       <-> second portal usage -->
     596
     597    <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" >
     598        <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
     599          <events>
     600            <trigger>
     601              <EventListener event="dockMe" />
     602            </trigger>
     603          </events>
     604            <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
     605        </EventTrigger>
     606    </DistanceTrigger>
     607
     608    <SimpleNotification message="WHY IS THIS MESSAGE NOT DISPLAYED ??"> <!-- ondock-message should be: "Return before it's too late. Boost with 'Space'." -->
     609        <events>
     610            <trigger>
     611                <EventListener event=ondock />
     612            </trigger>
     613        </events>
     614    </SimpleNotification>
     615
     616    <SimpleNotification message="Several serious enemies are approaching!">
     617        <events>
     618            <trigger>
     619                <EventListener event=attack />
     620            </trigger>
     621        </events>
     622    </SimpleNotification>
     623
     624
     625
     626<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
    483627<!-- 1 -->
    484     <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900">
     628    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker">
    485629        <templates>
    486630            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    501645    </SpaceShip>
    502646<!-- 2 -->
    503     <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900">
     647    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker">
    504648        <templates>
    505649            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    520664    </SpaceShip>
    521665<!-- 3 -->
    522     <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900">
     666    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker">
    523667        <templates>
    524668            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    539683    </SpaceShip>
    540684<!-- 4 -->
    541     <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900">
     685    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker">
    542686        <templates>
    543687            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    558702    </SpaceShip>
    559703<!-- 5 -->
    560     <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900">
     704    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker">
    561705        <templates>
    562706            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    577721    </SpaceShip>
    578722<!-- 6 -->
    579     <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900">
     723    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker">
    580724        <templates>
    581725            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     
    596740    </SpaceShip>
    597741
    598 
    599 <!--- TODO: Catch event when all enemies are dead; display an end message --->
     742<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
     743    <EventTrigger name="attacktrigger6" activations="1" stayactive="true">
     744      <events>
     745        <trigger>
     746          <EventListener event="attacker" />
     747        </trigger>
     748      </events>
     749      <EventTrigger name="attacktrigger5" activations="1" stayactive="true">
     750        <events>
     751          <trigger>
     752            <EventListener event="attacker" />
     753          </trigger>
     754        </events>
     755        <EventTrigger name="attacktrigger4" activations="1" stayactive="true">
     756          <events>
     757            <trigger>
     758              <EventListener event="attacker" />
     759            </trigger>
     760          </events>
     761          <EventTrigger name="attacktrigger3" activations="1" stayactive="true">
     762            <events>
     763              <trigger>
     764                <EventListener event="attacker" />
     765              </trigger>
     766            </events>
     767            <EventTrigger name="attacktrigger2" activations="1" stayactive="true">
     768              <events>
     769                <trigger>
     770                  <EventListener event="attacker" />
     771                </trigger>
     772              </events>
     773              <EventTrigger name="attacktrigger1" activations="1" stayactive="true">
     774                <events>
     775                  <trigger>
     776                    <EventListener event="attacker" />
     777                  </trigger>
     778                </events>
     779              </EventTrigger>
     780            </EventTrigger>
     781          </EventTrigger>
     782        </EventTrigger>
     783      </EventTrigger>
     784    </EventTrigger>
     785
     786
     787    <SimpleNotification message="5 enemies left!" broadcast="true">
     788      <events>
     789        <trigger>
     790          <EventListener event="attacktrigger1" />
     791        </trigger>
     792      </events>
     793    </SimpleNotification>
     794
     795    <SimpleNotification message="4 enemies left!" broadcast="true">
     796      <events>
     797        <trigger>
     798          <EventListener event="attacktrigger2" />
     799        </trigger>
     800      </events>
     801    </SimpleNotification>
     802
     803    <SimpleNotification message="3 enemies left!" broadcast="true">
     804      <events>
     805        <trigger>
     806          <EventListener event="attacktrigger3" />
     807        </trigger>
     808      </events>
     809    </SimpleNotification>
     810
     811    <SimpleNotification message="2 enemies left!" broadcast="true">
     812      <events>
     813        <trigger>
     814          <EventListener event="attacktrigger4" />
     815        </trigger>
     816      </events>
     817    </SimpleNotification>
     818    <SimpleNotification message="One enemy left!" broadcast="true">
     819      <events>
     820        <trigger>
     821          <EventListener event="attacktrigger5" />
     822        </trigger>
     823      </events>
     824    </SimpleNotification>
     825    <SimpleNotification message="Well done. You finished this tutorial." broadcast="true">
     826      <events>
     827        <trigger>
     828          <EventListener event="attacktrigger6" />
     829        </trigger>
     830      </events>
     831    </SimpleNotification>
     832
     833<!-- @Triggers: postAttack <-> delayed attacktrigger6 -->
     834    <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=3>
     835      <events>
     836        <trigger>
     837          <EventListener event="attacktrigger6" />
     838        </trigger>
     839      </events>
     840    </EventTrigger>
     841
     842    <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=6>
     843      <events>
     844        <trigger>
     845          <EventListener event="attacktrigger6" />
     846        </trigger>
     847      </events>
     848    </EventTrigger>
     849
     850    <SimpleNotification message="Either quit by pressing 'Esc' or ..." broadcast="true">
     851      <events>
     852        <trigger>
     853          <EventListener event="postAttack1" />
     854        </trigger>
     855      </events>
     856    </SimpleNotification>
     857
     858    <SimpleNotification message="... continue by using the new portal." broadcast="true">
     859      <events>
     860        <trigger>
     861          <EventListener event="postAttack2" />
     862        </trigger>
     863      </events>
     864    </SimpleNotification>
     865
     866
    600867<!--- Message: Mission accomplished. Well done. Either you return to the main menu by pressing 'Esc' & then the button 'return to main menu'
    601868      or you might want to discover some further tricks. Then use the new portal. --->
    602869
    603870<!-------------------------------------- |Bonus Part| --------------------------------------->
    604 <!-- PortalEndPoint is not invisible (and triggered yet); billboard has to be removed later.
    605     <Billboard position="-48900,0,0" material="Examples/Flare" colour="7010,10010,-5010" scale=5/>
    606     <Template name=PortalDefault>
    607         <PortalEndPoint>
    608             <attached>
    609                 <Billboard material="Portals/Default" />
    610             </attached>
    611         </PortalEndPoint>
    612     </Template>
    613 
    614     <PortalEndPoint position="800,-700,500" id="3" distance="50" target="MobileEntity" design="PortalDefault">
     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>
    615874        <events>
    616875            <visibility>
    617                 <EventListener event=bonus />
     876                <EventListener event="postAttack2" />
    618877            </visibility>
    619878        </events>
    620879    </PortalEndPoint>
    621880
    622     <PortalEndPoint position="7000,10000,-5000" id="4" distance="70" target="MobileEntity" design="PortalDefault">
     881    <PortalEndPoint position="7000,10000,-5000" id="4" distance="70" target="MobileEntity" design="PortalDefault" visible=true>
    623882        <events>
    624883            <visibility>
    625                 <EventListener event=bonus />
     884                <EventListener event="postAttack2" />
    626885            </visibility>
    627886        </events>
     
    631890    <PortalLink fromID="4" toID="3" />
    632891
    633     <DistanceTrigger name="bonus1" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=4 />
     892    <DistanceTrigger name="bonus1" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=2 />
    634893    <SimpleNotification message="Rotate your ship. Press 'Q' or 'E'. ">
    635894        <events>
     
    640899    </SimpleNotification>
    641900
    642     <DistanceTrigger name="bonus2" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=8 />
     901    <DistanceTrigger name="bonus2" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=7 />
    643902    <SimpleNotification message="Switch the camera's position. Press 'C'. ">
    644903        <events>
     
    658917    </SimpleNotification>
    659918
    660     <DistanceTrigger name="bonus4" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=16 />
     919    <DistanceTrigger name="bonus4" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=17 />
    661920    <SimpleNotification message="Have a look at the main menu's settings.">
    662921        <events>
     
    667926    </SimpleNotification>
    668927
    669     <DistanceTrigger name="bonus5" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=20 />
    670     <SimpleNotification message="E.g: Settings->Miscellaneous->Nr. of bots">
     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">
    671930        <events>
    672931            <trigger>
     
    676935    </SimpleNotification>
    677936
    678     <DistanceTrigger name="bonus6" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=24 />
    679     <SimpleNotification message="That's it.">
     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.">
    680939        <events>
    681940            <trigger>
     
    684943        </events>
    685944    </SimpleNotification>
    686 -->
    687 <!-- ATTENTION: DOESN'T WORK YET
    688     < Script code="artificialcontroller setbotlevel 0.1">
     945
     946    <Script code="addBots 3" onLoad="false">
    689947        <events>
    690948            <trigger>
     
    694952    </Script>
    695953
    696     < Script code="addbots 3">
     954    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
    697955        <events>
    698956            <trigger>
     
    701959        </events>
    702960    </Script>
    703 -->
    704 
    705 <!--------------------------------------DUMP YARD --------------------------------------->
    706 
    707 
    708 <!-- Idea: Pawndeath should trigger several , delayed events. -->
    709     <!--EventTrigger name="PawnDied4" >
    710         <events>
    711             <trigger>
    712                 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000>
    713                     <attached>
    714                         <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    715                     </attached>
    716                     <collisionShapes>
    717                         <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
    718                     </collisionShapes>
    719                 </Pawn>
    720             </trigger>
    721         </events>
    722     </EventTrigger-->
    723 
    724     <!--SimpleNotification message="Manual rockets are difficult to use.">
    725         <events>
    726             <trigger>
    727                 <EventListener event=PawnDied4 />
    728             </trigger>
    729         </events>
    730     </SimpleNotification>
    731 
    732     <Trigger name=boxend1 mode=and >
    733         <EventTrigger name=trigger6>
    734             <events>
    735                 <trigger>
    736                     <EventListener event=PawnDied4/>
    737                 </trigger>
    738             </events>
    739         </EventTrigger>
    740         <DistanceTrigger name="boxend2" position="-200,0,0" target="Pawn" distance=100 stayActive="true" delay=2 />
    741     </Trigger>
    742 
    743     <SimpleNotification message="Let's move on to the pirate ships.">
    744         <events>
    745             <trigger>
    746                 <EventListener event=boxend1 />
    747             </trigger>
    748         </events>
    749     </SimpleNotification-->
    750 
    751961
    752962  </Scene>
    753963</Level>
    754 
     964<!-- TODO:
     965! Quest Interface
     966! Problem with triggers (bug! e.g. at boxes, fast destroy)
     967- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken)
     968- Clear Message Output: ""
     969 -->
Note: See TracChangeset for help on using the changeset viewer.