Index: code/branches/ai2/data/levels/missionOne.oxw
===================================================================
--- code/branches/ai2/data/levels/missionOne.oxw	(revision 8869)
+++ code/branches/ai2/data/levels/missionOne.oxw	(revision 8871)
@@ -47,10 +47,7 @@
     ?>
 
-    <WorldAmbientSound
-      ambientSource="Jupiter.ogg"
-      looping="true"
-      playOnLoad="true"
-    />
-<!-- AlphaCentauri.ogg-->
+  <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg-->
+
+
     <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"/>
     <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
@@ -58,4 +55,47 @@
 
 <!-- END OF INCLUDES & NECESSARITIES -->
+
+<!-- QUESTS: TODO! STORY!!
+    <LocalQuest id="orxonox-weaponsystem-check">
+        <QuestDescription title="Tutorial" description="Before we  serious missions you have to proof that " /> //The description of the quest.
+        <subquests>
+            <Quest id ="questId1" />
+            <Quest id="questIdn" />
+        </subquests>
+        <hints>
+            <QuestHint id="hintId1" /> //A list of n QuestHints, see QuestHint for the full XML representation of those.
+            ...
+            <QuestHint id="hintIdn" />
+        </hints>
+        <fail-effects>
+            <QuestEffect /> //A list of QuestEffects, invoked when the Quest is failed, see QuestEffect for the full XML representation.
+            ...
+            <QuestEffect />
+        </fail-effects>
+        <complete-effects>
+            <QuestEffect /> //A list of QuestEffects, invoked when the Quest is completed, see QuestEffect for the full XML representation.
+            ...
+            <QuestEffect />
+        </complete-effects>
+    </LocalQuest-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 <!-- TUTORIAL-TODO: -->
@@ -68,5 +108,5 @@
 <!--
 Four boxes for aiming
-TODO: Turn engine off at the beginning.
+
 TODO: display text: "Destroy those four boxes. Aim the a the box and shoot by using the left mouse button."
 "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."
@@ -74,17 +114,18 @@
 "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."
 
-TODO: send in waypoint controlled ship that moves
-
 "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."
 
-TODO: Turn engine on. Display a waypoint.
 "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 .."
-"That thing you've just collected is a drone. It will follow and protect you."
-TODO: send in a level 0.1 bot on a pirate ship.
-"Hi. We have been attacked by a pirate lately. Please protect us. The drone pickup will help you."
 
 -->
 
-
+    <DistanceTrigger name="spawndelaytrigger0" position="-200,0,0" target="Pawn" distance=10 stayActive="true" />
+    <SimpleNotification message="Welcome to the Orxonox Tutorial.">
+        <events>
+            <trigger>
+                <EventListener event="spawndelaytrigger0" />
+            </trigger>
+        </events>
+    </SimpleNotification>
 <!-------------------------------------- PART ONE: Destroy boxes --------------------------------------->
     <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=2 />
@@ -92,5 +133,5 @@
         <events>
             <trigger>
-                <EventListener event=spawndelaytrigger1 />
+                <EventListener event="spawndelaytrigger1" />
             </trigger>
         </events>
@@ -101,5 +142,5 @@
         <events>
             <trigger>
-                <EventListener event=spawndelaytrigger2 />
+                <EventListener event="spawndelaytrigger2" />
             </trigger>
         </events>
@@ -110,15 +151,11 @@
         <events>
             <trigger>
-                <EventListener event=spawndelaytrigger3 />
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-<!-- static briefing END // Interactive briefing start --> 
-
-  <SimpleNotification message="Right click on the next target." broadcast="true">
-        <events>
-            <trigger>
-                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000>
+                <EventListener event="spawndelaytrigger3" />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+<!-- @Objects: 4 boxes (uncontrolled pawns) -->
+                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
                     <attached>
                         <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
@@ -128,12 +165,6 @@
                     </collisionShapes>
                 </Pawn>
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-  <SimpleNotification message="Middle click on the next target." broadcast="true">
-        <events>
-            <trigger>
-                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000>
+
+                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
                     <!--events>
                         <visibility>
@@ -149,13 +180,5 @@
                     </collisionShapes>
                 </Pawn>
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-
-  <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true">
-        <events>
-            <trigger>
-                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000>
+                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
                     <attached>
                         <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
@@ -165,12 +188,5 @@
                     </collisionShapes>
                 </Pawn>
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-  <SimpleNotification message="Fly towards the pirates. Press 'W'." broadcast="true">
-        <events>
-            <trigger>
-                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000>
+                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
                     <attached>
                         <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
@@ -180,4 +196,68 @@
                     </collisionShapes>
                 </Pawn>
+
+<!-- @Triggers: boxtrigger1 <-> one   box   destroyed
+                boxtrigger2 <-> two   boxes destroyed
+                boxtrigger3 <-> three boxes destroyed
+                boxtrigger4 <-> four  boxes destroyed  -->
+    <EventTrigger name="boxtrigger4" activations="1" stayactive="true">
+      <events>
+        <trigger>
+          <EventListener event="box" />
+        </trigger>
+      </events>
+      <EventTrigger name="boxtrigger3" activations="1" stayactive="true">
+        <events>
+          <trigger>
+            <EventListener event="box" />
+          </trigger>
+        </events>
+        <EventTrigger name="boxtrigger2" activations="1" stayactive="true">
+          <events>
+            <trigger>
+              <EventListener event="box" />
+            </trigger>
+          </events>
+          <EventTrigger name="boxtrigger1" activations="1" stayactive="true">
+            <events>
+              <trigger>
+                <EventListener event="box" />
+              </trigger>
+            </events>
+          </EventTrigger>
+        </EventTrigger>
+      </EventTrigger>
+    </EventTrigger>
+
+
+  <SimpleNotification message="Right click on the next target." broadcast="true">
+        <events>
+            <trigger>
+                <EventListener event="boxtrigger1" />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+  <SimpleNotification message="Middle click on the next target." broadcast="true">
+        <events>
+            <trigger>
+                <EventListener event="boxtrigger2" />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+
+  <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true">
+        <events>
+            <trigger>
+                <EventListener event="boxtrigger3" />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+  <SimpleNotification message="Fly towards the pirates. Press 'W'." broadcast="true">
+        <events>
+            <trigger>
+                <EventListener event="boxtrigger4" />
             </trigger>
         </events>
@@ -196,10 +276,6 @@
     </SimpleNotification>
 
-
-
-  <SimpleNotification message="Now get the other one." broadcast="true">
-        <events>
-            <trigger>
-                <SpaceShip position="0,2000,200" lookat="0,0,0">
+<!-- @Objects: 2 pirates moving in squares, nolethal -->
+                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget">
                     <templates>
                       <Template link=spaceshippirate />
@@ -216,12 +292,6 @@
                   </controller>
                 </SpaceShip>
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-  <SimpleNotification message="Fly towards the space station (grey dot)." broadcast="true">
-        <events>
-            <trigger>
-                <SpaceShip position="0,2000,400" lookat="0,0,0">
+
+                <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget">
                   <templates>
                     <Template link=spaceshippirate />
@@ -231,16 +301,49 @@
                       <waypoints>
                         <Model mesh="cube.mesh" scale=8 position="  0,2400,1000" />
-                        <Model mesh="cube.mesh" scale=8 position="  0,2400,500" />
-                        <Model mesh="cube.mesh" scale=8 position="500,2400,500" />
-                        <Model mesh="cube.mesh" scale=8 position="500,2400, 1000" />
+                        <Model mesh="cube.mesh" scale=8 position="  0,2400, 500" />
+                        <Model mesh="cube.mesh" scale=8 position="500,2400, 500" />
+                        <Model mesh="cube.mesh" scale=8 position="500,2400,1000" />
                       </waypoints>
                     </WaypointController>
                   </controller>
                 </SpaceShip>
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-<!--------------------------------------PART THREE: to the space station --------------------------------------->
+
+<!-- @Triggers: movingpirates1 <-> one  pirate  dead
+                movingpirates2 <-> both pirates dead  -->
+    <EventTrigger name="movingpirates2" activations="1" stayactive="true">
+      <events>
+        <trigger>
+          <EventListener event="movingtarget" />
+        </trigger>
+      </events>
+      <EventTrigger name="movingpirates1" activations="1" stayactive="true">
+        <events>
+          <trigger>
+            <EventListener event="movingtarget" />
+          </trigger>
+        </events>
+      </EventTrigger>
+    </EventTrigger>
+
+
+    <SimpleNotification message="Now get the other one."  broadcast="true">
+        <events>
+            <trigger>
+                <EventListener event="movingpirates1" />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+    <SimpleNotification message="Fly towards the space station (grey dot)."  broadcast="true">
+        <events>
+            <trigger>
+                <EventListener event="movingpirates2" />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+
+
+<!--------------------------------------PART THREE: the space station --------------------------------------->
     <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=2 />
     <SimpleNotification message="Welcome to the Duball Space Station!">
@@ -279,5 +382,7 @@
     </SimpleNotification>
 
-<StaticEntity position="-1000,-300,700" collisionType=static>
+
+<!-- @Objects: DuBall Space Station, (no pawn!) -->
+    <StaticEntity position="-1000,-300,700" collisionType=static>
       <attached>
         <Model scale=13 mesh="DuBall1.mesh" position = "-100,0,0"/>
@@ -291,9 +396,8 @@
         <BoxCollisionShape    halfExtents="90,25,45" position = "-155,0,40" />
       </collisionShapes>
-</StaticEntity>
-
-
-
-<!-- PORTALS -->
+    </StaticEntity>
+
+
+<!-- @Objects: PORTAL: from DuBall to HydroHarvester  -->
     <Template name=PortalDefault>
         <PortalEndPoint>
@@ -317,5 +421,5 @@
 <!-- PORTALS END-->
 
-    <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=700 stayActive="true" delay=0 />
+    <!--DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=700 stayActive="true" delay=0 /-->
     <SimpleNotification message="Find the Hydrogen Farmer.">
         <events>
@@ -325,4 +429,5 @@
         </events>
     </SimpleNotification>
+
 <!-------------------------------------- PART FOUR : Get Help --------------------------------------->   
     <DistanceTrigger name="famer1" position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
@@ -344,7 +449,6 @@
     </SimpleNotification>
 
-<!-- TODO: c) enemy -->
-
-    <!-- HYDROGEN FARMER & DOCKING?? -->
+
+<!-- @Objects: HYDROGEN FARMER & DOCKING -->
     <SpaceShip position="-48900,100,0" roll=90 yaw=0 pitch=20 mass=10000 health=100000 >
       <attached>
@@ -416,16 +520,8 @@
       </attached>
     </SpaceShip>
-
-
-<!-- Pickup - find better place !! -->
-    <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
-    <SimpleNotification message="This pickup protects your spaceship.">
-        <events>
-            <trigger>
-                <EventListener event=pickup />
-            </trigger>
-        </events>
-    </SimpleNotification>
-
+<!-- hydrogen farmer & docking END -->
+
+
+<!-- @Objects: Pickup - find better place !! -->
     <PickupSpawner position="-48650,700,100" triggerDistance="70" respawnTime="30" maxSpawnedItems="1">
       <pickup>
@@ -433,16 +529,26 @@
       </pickup>
     </PickupSpawner>
+
+
+    <DistanceTrigger name="pickup" position="-48650,700,100" target="Pawn" distance=60 stayActive="true" delay=0 />
+    <SimpleNotification message="This pickup protects your spaceship.">
+        <events>
+            <trigger>
+                <EventListener event=pickup />
+            </trigger>
+        </events>
+    </SimpleNotification>
 <!-- Pickup-->
 
-    <DistanceTrigger name="attack" position="-48650,700,100" target="Pawn" distance=100 stayActive="true" delay=4 />
-    <SimpleNotification message="Return before it is too late. Boost with 'Space'.">
-        <events>
-            <trigger>
-                <EventListener event=attack />
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-
+    <DistanceTrigger name="warning" position="-48650,700,100" target="Pawn" distance=100 stayActive="true" delay=4 />
+    <SimpleNotification message="Return before it's too late. Boost with 'Space'.">
+        <events>
+            <trigger>
+                <EventListener event=warning />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+<!-- @Objects: planet && spaceboundaries  -->
     <Planet
       position="-44000,0,0"
@@ -462,4 +568,7 @@
       enablecollisiondamage = true
     >
+      <attached>
+        <Model mesh="sphere.mesh" mass=10 position="0,0,0" scale=2500 />
+      </attached>
       <!--attached>
         <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 
@@ -469,5 +578,5 @@
       </collisionShapes>
     </Planet>
-
+    <SpaceBoundaries reactionMode=2 warnDistance="1" maxDistance="2750" showDistance="2800" healthDecrease="0.1" position="-44000,0,0"/>
 
 
@@ -481,6 +590,41 @@
      - bots do friendly fire (is drone function reusable?) 
 -->
+
+<!-- @Triggers: toHydroFamer <-> first  portal usage
+                ondock       <-> successfull docking
+                attack       <-> second portal usage -->
+
+    <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" >
+        <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
+          <events>
+            <trigger>
+              <EventListener event="dockMe" />
+            </trigger>
+          </events>
+            <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
+        </EventTrigger>
+    </DistanceTrigger>
+
+    <SimpleNotification message="WHY IS THIS MESSAGE NOT DISPLAYED ??"> <!-- ondock-message should be: "Return before it's too late. Boost with 'Space'." -->
+        <events>
+            <trigger>
+                <EventListener event=ondock />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+    <SimpleNotification message="Several serious enemies are approaching!">
+        <events>
+            <trigger>
+                <EventListener event=attack />
+            </trigger>
+        </events>
+    </SimpleNotification>
+
+
+
+<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
 <!-- 1 -->
-    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900">
+    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker">
         <templates>
             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
@@ -501,5 +645,5 @@
     </SpaceShip>
 <!-- 2 -->
-    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900">
+    <SpaceShip position="3000,-4000,-4000" lookat="-1300,-600,900" name="attacker">
         <templates>
             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
@@ -520,5 +664,5 @@
     </SpaceShip>
 <!-- 3 -->
-    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900">
+    <SpaceShip position="-4000,-3000,4000" lookat="-1300,-600,900" name="attacker">
         <templates>
             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
@@ -539,5 +683,5 @@
     </SpaceShip>
 <!-- 4 -->
-    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900">
+    <SpaceShip position="-3000,-3000,-5000" lookat="-1300,-600,900" name="attacker">
         <templates>
             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
@@ -558,5 +702,5 @@
     </SpaceShip>
 <!-- 5 -->
-    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900">
+    <SpaceShip position="4000,4000,3000" lookat="-1300,-600,900" name="attacker">
         <templates>
             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
@@ -577,5 +721,5 @@
     </SpaceShip>
 <!-- 6 -->
-    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900">
+    <SpaceShip position="2000,-4000,5000" lookat="-1300,-600,900" name="attacker">
         <templates>
             <Template link=spaceshippirate /> <!--spaceshipTransporter -->
@@ -596,32 +740,147 @@
     </SpaceShip>
 
-
-<!--- TODO: Catch event when all enemies are dead; display an end message --->
+<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
+    <EventTrigger name="attacktrigger6" activations="1" stayactive="true">
+      <events>
+        <trigger>
+          <EventListener event="attacker" />
+        </trigger>
+      </events>
+      <EventTrigger name="attacktrigger5" activations="1" stayactive="true">
+        <events>
+          <trigger>
+            <EventListener event="attacker" />
+          </trigger>
+        </events>
+        <EventTrigger name="attacktrigger4" activations="1" stayactive="true">
+          <events>
+            <trigger>
+              <EventListener event="attacker" />
+            </trigger>
+          </events>
+          <EventTrigger name="attacktrigger3" activations="1" stayactive="true">
+            <events>
+              <trigger>
+                <EventListener event="attacker" />
+              </trigger>
+            </events>
+            <EventTrigger name="attacktrigger2" activations="1" stayactive="true">
+              <events>
+                <trigger>
+                  <EventListener event="attacker" />
+                </trigger>
+              </events>
+              <EventTrigger name="attacktrigger1" activations="1" stayactive="true">
+                <events>
+                  <trigger>
+                    <EventListener event="attacker" />
+                  </trigger>
+                </events>
+              </EventTrigger>
+            </EventTrigger>
+          </EventTrigger>
+        </EventTrigger>
+      </EventTrigger>
+    </EventTrigger>
+
+
+    <SimpleNotification message="5 enemies left!" broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger1" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+
+    <SimpleNotification message="4 enemies left!" broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger2" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+
+    <SimpleNotification message="3 enemies left!" broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger3" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+
+    <SimpleNotification message="2 enemies left!" broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger4" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+    <SimpleNotification message="One enemy left!" broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger5" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+    <SimpleNotification message="Well done. You finished this tutorial." broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger6" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+
+<!-- @Triggers: postAttack <-> delayed attacktrigger6 -->
+    <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=3>
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger6" />
+        </trigger>
+      </events>
+    </EventTrigger>
+
+    <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=6>
+      <events>
+        <trigger>
+          <EventListener event="attacktrigger6" />
+        </trigger>
+      </events>
+    </EventTrigger>
+
+    <SimpleNotification message="Either quit by pressing 'Esc' or ..." broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="postAttack1" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+
+    <SimpleNotification message="... continue by using the new portal." broadcast="true">
+      <events>
+        <trigger>
+          <EventListener event="postAttack2" />
+        </trigger>
+      </events>
+    </SimpleNotification>
+
+
 <!--- Message: Mission accomplished. Well done. Either you return to the main menu by pressing 'Esc' & then the button 'return to main menu'
       or you might want to discover some further tricks. Then use the new portal. --->
 
 <!-------------------------------------- |Bonus Part| --------------------------------------->
-<!-- PortalEndPoint is not invisible (and triggered yet); billboard has to be removed later.
-    <Billboard position="-48900,0,0" material="Examples/Flare" colour="7010,10010,-5010" scale=5/>
-    <Template name=PortalDefault>
-        <PortalEndPoint>
-            <attached>
-                <Billboard material="Portals/Default" />
-            </attached>
-        </PortalEndPoint>
-    </Template>
-
-    <PortalEndPoint position="800,-700,500" id="3" distance="50" target="MobileEntity" design="PortalDefault">
+
+<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
+    <PortalEndPoint position="700,-600,500" id="3" distance="50" target="MobileEntity" design="PortalDefault" visible=true>
         <events>
             <visibility>
-                <EventListener event=bonus />
+                <EventListener event="postAttack2" />
             </visibility>
         </events>
     </PortalEndPoint>
 
-    <PortalEndPoint position="7000,10000,-5000" id="4" distance="70" target="MobileEntity" design="PortalDefault">
+    <PortalEndPoint position="7000,10000,-5000" id="4" distance="70" target="MobileEntity" design="PortalDefault" visible=true>
         <events>
             <visibility>
-                <EventListener event=bonus />
+                <EventListener event="postAttack2" />
             </visibility>
         </events>
@@ -631,5 +890,5 @@
     <PortalLink fromID="4" toID="3" />
 
-    <DistanceTrigger name="bonus1" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=4 />
+    <DistanceTrigger name="bonus1" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=2 />
     <SimpleNotification message="Rotate your ship. Press 'Q' or 'E'. ">
         <events>
@@ -640,5 +899,5 @@
     </SimpleNotification>
 
-    <DistanceTrigger name="bonus2" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=8 />
+    <DistanceTrigger name="bonus2" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=7 />
     <SimpleNotification message="Switch the camera's position. Press 'C'. ">
         <events>
@@ -658,5 +917,5 @@
     </SimpleNotification>
 
-    <DistanceTrigger name="bonus4" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=16 />
+    <DistanceTrigger name="bonus4" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=17 />
     <SimpleNotification message="Have a look at the main menu's settings.">
         <events>
@@ -667,6 +926,6 @@
     </SimpleNotification>
 
-    <DistanceTrigger name="bonus5" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=20 />
-    <SimpleNotification message="E.g: Settings->Miscellaneous->Nr. of bots">
+    <DistanceTrigger name="bonus5" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=22 />
+    <SimpleNotification message="E.g: Settings > Miscellaneous > Nr. of bots">
         <events>
             <trigger>
@@ -676,6 +935,6 @@
     </SimpleNotification>
 
-    <DistanceTrigger name="bonus6" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=24 />
-    <SimpleNotification message="That's it.">
+    <DistanceTrigger name="bonus6" position="7000,10000,-5000" target="Pawn" distance=100 stayActive="true" delay=27 />
+    <SimpleNotification message="That's it. Have fun with some bots.">
         <events>
             <trigger>
@@ -684,7 +943,6 @@
         </events>
     </SimpleNotification>
--->
-<!-- ATTENTION: DOESN'T WORK YET
-    < Script code="artificialcontroller setbotlevel 0.1">
+
+    <Script code="addBots 3" onLoad="false">
         <events>
             <trigger>
@@ -694,5 +952,5 @@
     </Script>
 
-    < Script code="addbots 3">
+    <Script code="artificialcontroller setbotlevel 0.1" onLoad="false">
         <events>
             <trigger>
@@ -701,54 +959,11 @@
         </events>
     </Script>
--->
-
-<!--------------------------------------DUMP YARD --------------------------------------->
-
-
-<!-- Idea: Pawndeath should trigger several , delayed events. -->
-    <!--EventTrigger name="PawnDied4" >
-        <events>
-            <trigger>
-                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000>
-                    <attached>
-                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
-                    </attached>
-                    <collisionShapes>
-                        <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
-                    </collisionShapes>
-                </Pawn>
-            </trigger>
-        </events>
-    </EventTrigger-->
-
-    <!--SimpleNotification message="Manual rockets are difficult to use.">
-        <events>
-            <trigger>
-                <EventListener event=PawnDied4 />
-            </trigger>
-        </events>
-    </SimpleNotification>
-
-    <Trigger name=boxend1 mode=and >
-        <EventTrigger name=trigger6>
-            <events>
-                <trigger>
-                    <EventListener event=PawnDied4/>
-                </trigger>
-            </events>
-        </EventTrigger>
-        <DistanceTrigger name="boxend2" position="-200,0,0" target="Pawn" distance=100 stayActive="true" delay=2 />
-    </Trigger>
-
-    <SimpleNotification message="Let's move on to the pirate ships.">
-        <events>
-            <trigger>
-                <EventListener event=boxend1 />
-            </trigger>
-        </events>
-    </SimpleNotification-->
-
 
   </Scene>
 </Level>
-
+<!-- TODO: 
+! Quest Interface
+! Problem with triggers (bug! e.g. at boxes, fast destroy)
+- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken)
+- Clear Message Output: ""
+ -->
