[Orxonox-commit 4153] r8824 - code/branches/ai2/data/levels
jo at orxonox.net
jo at orxonox.net
Thu Aug 4 23:54:03 CEST 2011
Author: jo
Date: 2011-08-04 23:54:03 +0200 (Thu, 04 Aug 2011)
New Revision: 8824
Modified:
code/branches/ai2/data/levels/missionOne.oxw
Log:
Some updates to the level.
Modified: code/branches/ai2/data/levels/missionOne.oxw
===================================================================
--- code/branches/ai2/data/levels/missionOne.oxw 2011-08-04 10:51:24 UTC (rev 8823)
+++ code/branches/ai2/data/levels/missionOne.oxw 2011-08-04 21:54:03 UTC (rev 8824)
@@ -1,7 +1,7 @@
<LevelInfo
- name = "Tutorial"
+ name = "Mission One"
description = "First guided steps in the orxonoxian universe."
- tags = ""
+ tags = "singleplayer"
/>
<?lua
@@ -104,21 +104,42 @@
</events>
</SimpleNotification>
- <SimpleNotification message="Right click on the next target." broadcast="true">
+<!-- BRIEFING END // Interactive briefing start -->
+
+ <SimpleNotification message="Right click on the next target." broadcast="true">
<events>
<trigger>
- <EventListener event=PawnDied1 />
+ <Pawn health=30 position="0,0,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>
</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>
+ <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>
+ </SimpleNotification>
-<!-- BRIEFING END-->
-<!-- TODO: does NOT work. Intended effect: pawn death causes message to appear (and probably the next box) -->
- <SimpleNotification message="Right click on the next target." broadcast="true">
+ <SimpleNotification message="Aim at the last target and press 'T'." broadcast="true">
<events>
<trigger>
- <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000>
+ <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000>
<attached>
<Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
</attached>
@@ -130,33 +151,22 @@
</events>
</SimpleNotification>
- <Pawn health=30 position="0,100,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>
+ <SimpleNotification message="Well done. Now press 'W'." broadcast="true">
+ <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>
+ </SimpleNotification>
- <Pawn health=30 position="0,200,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>
- <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>
-
<!--------------------------------------PART TWO: Moving targets --------------------------------------->
<SpaceShip position="0,1500,200" lookat="0,0,0">
@@ -260,6 +270,51 @@
<!--------------------------------------PART FOUR --------------------------------------->
+<!--------------------------------------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>
More information about the Orxonox-commit
mailing list