Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8880 for code/branches/ai2


Ignore:
Timestamp:
Oct 10, 2011, 9:03:50 PM (13 years ago)
Author:
jo
Message:

Some level improvements. e.g. flying tutorial

File:
1 edited

Legend:

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

    r8878 r8880  
    157157        </events>
    158158    </SimpleNotification>
     159
     160<BlinkingBillboard position="-900,640,600" frequency=0.4 amplitude=2 material="Flares/lensflare" colour="1,1,0">
     161          <events>
     162            <visibility>
     163              <EventTrigger invert=true>
     164                <events>
     165                  <trigger>
     166                    <EventListener event=flying4 />
     167                  </trigger>
     168                </events>
     169              </EventTrigger>
     170            </visibility>
     171          </events>
     172</BlinkingBillboard>
     173<Billboard position="-900,640,600" amplitude=1 material="Flares/lensflare" colour="0,0.8,0.1">
     174          <events>
     175            <visibility>
     176              <EventTrigger>
     177                <events>
     178                  <trigger>
     179                    <EventListener event=flying4 />
     180                  </trigger>
     181                </events>
     182              </EventTrigger>
     183            </visibility>
     184          </events>
     185</Billboard>
    159186<!-------------------------------------- PART ZERO: How to fly --------------------------------------->
    160 
    161 
    162 
    163 
    164 
    165 
    166 
    167 
     187    <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=4/>
     188    <SimpleNotification message="Let's fly to the blinking light.">
     189        <events>
     190            <trigger>
     191                <EventListener event="flying1" />
     192            </trigger>
     193        </events>
     194    </SimpleNotification>
     195
     196    <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=8/>
     197    <SimpleNotification message="Use 'W' to accelerate and the mouse to steer.">
     198        <events>
     199            <trigger>
     200                <EventListener event="flying2" />
     201            </trigger>
     202        </events>
     203    </SimpleNotification>
     204
     205    <!--DistanceTrigger name="flying3" position="800,700,600" target="Pawn" distance=20 stayActive="true" delay=12/>
     206    <SimpleNotification message="Point with the mouse to the blinking light.">
     207        <events>
     208            <trigger>
     209                <EventListener event="flying3" />
     210            </trigger>
     211        </events>
     212    </SimpleNotification-->
     213
     214    <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/>
     215    <SimpleNotification message="Three red arrows just appeared.">
     216        <events>
     217            <trigger>
     218                <EventListener event="flying4" />
     219            </trigger>
     220        </events>
     221    </SimpleNotification>
     222
     223    <DistanceTrigger name="flying5" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=5/>
     224    <SimpleNotification message="Follow those red arrows.">
     225        <events>
     226            <trigger>
     227                <EventListener event="flying5" />
     228            </trigger>
     229        </events>
     230    </SimpleNotification>
    168231
    169232
    170233
    171234<!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->
    172     <DistanceTrigger name="spawndelaytrigger1" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=4 />
    173     <SimpleNotification message="Destroy those four boxes.">
     235    <DistanceTrigger name="spawndelaytrigger1" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=9 />
     236    <SimpleNotification message="Destroy the four boxes.">
    174237        <events>
    175238            <trigger>
     
    179242    </SimpleNotification>
    180243
    181     <DistanceTrigger name="spawndelaytrigger2" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=8.1 />
    182     <SimpleNotification message=" 1. Aim the a the red cycle.">
     244    <DistanceTrigger name="spawndelaytrigger2" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=13 />
     245    <SimpleNotification message=" 1. Aim the a red cycle.">
    183246        <events>
    184247            <trigger>
     
    188251    </SimpleNotification>
    189252
    190     <DistanceTrigger name="spawndelaytrigger3" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=12.2 />
     253    <DistanceTrigger name="spawndelaytrigger3" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=17 />
    191254    <SimpleNotification message="2. Click! (hold the left mouse button)">
    192255        <events>
     
    196259        </events>
    197260    </SimpleNotification>
    198                 <BlinkingBillboard position="-200,0,0" frequency=0.2 amplitude=1 material="Flares/lensflare" colour="0,0,1"/>
     261
    199262<!-- @Objects: 4 boxes (uncontrolled pawns) -->
    200263                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     264                    <events>
     265                      <visibility>
     266                        <EventListener event="flying4" />
     267                      </visibility>
     268                    </events>
    201269                    <attached>
    202                         <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    203270                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    204271                    </attached>
     
    209276
    210277                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true">
     278                    <events>
     279                      <visibility>
     280                        <EventListener event="flying4" />
     281                      </visibility>
     282                    </events>
    211283                    <attached>
    212                         <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    213284                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    214285                    </attached>
     
    218289                </Pawn>
    219290                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     291                    <events>
     292                      <visibility>
     293                        <EventListener event="flying4" />
     294                      </visibility>
     295                    </events>
    220296                    <attached>
    221                         <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    222297                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    223298                    </attached>
     
    227302                </Pawn>
    228303                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     304                    <events>
     305                      <visibility>
     306                        <EventListener event="flying4" />
     307                      </visibility>
     308                    </events>
    229309                    <attached>
    230310                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    231                         <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    232311                    </attached>
    233312                    <collisionShapes>
     
    295374    </SimpleNotification>
    296375
    297   <SimpleNotification message="Fly towards the pirates. Press 'W'." broadcast="true">
     376  <SimpleNotification message="Try to hit the pirates while you are flying." broadcast="true">
    298377        <events>
    299378            <trigger>
     
    305384
    306385<!--------------------------------------PART TWO: Moving targets --------------------------------------->
    307     <DistanceTrigger name="movingtargets" position="0,500,0" target="Pawn" distance=180 stayActive="true" delay=2 />
    308     <Billboard position="0,500,0" material="Examples/Flare" colour="0.5,0,0" scale=3/><!-- TODO: hide. -->
    309     <SimpleNotification message="Try to hit the pirates while you are flying.">
    310         <events>
    311             <trigger>
    312                 <EventListener event=movingtargets />
    313             </trigger>
    314         </events>
    315     </SimpleNotification>
    316 
    317 <!-- @Objects: 2 pirates moving in squares, nolethal -->
     386
     387<!-- @Objects: 2 pirates moving in squares, nonlethal -->
    318388                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" >
    319                     <attached>
    320                         <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1">
    321389                            <events>
    322390                                <visibility>
     
    324392                                </visibility>
    325393                            </events>
    326                         </BlinkingBillboard>
    327                     </attached>
    328394                    <templates>
    329395                      <Template link=spaceshippirate />
     
    342408
    343409                <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget">
    344                     <attached>
    345                         <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1">
    346410                            <events>
    347411                                <visibility>
     
    349413                                </visibility>
    350414                            </events>
    351                         </BlinkingBillboard>
    352                     </attached>
    353415                  <templates>
    354416                    <Template link=spaceshippirate />
     
    403465
    404466<!--------------------------------------PART THREE: the space station --------------------------------------->
    405     <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 />
     467    <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 >
     468      <events>
     469        <activity>
     470          <EventListener event="movingpirates2" />
     471        </activity>
     472      </events>
     473    </DistanceTrigger>
     474
     475    <EventTrigger name="duball2" activations="1" stayactive="true" delay=4 >
     476      <events>
     477        <trigger>
     478          <EventListener event="duball1" />
     479        </trigger>
     480      </events>
     481    </EventTrigger>
     482
     483    <EventTrigger name="duball3" activations="1" stayactive="true" delay=4 >
     484      <events>
     485        <trigger>
     486          <EventListener event="duball2" />
     487        </trigger>
     488      </events>
     489    </EventTrigger>
     490
    406491    <SimpleNotification message="Welcome to the Duball Space Station!">
    407492        <events>
     
    412497    </SimpleNotification>
    413498
    414     <DistanceTrigger name="duball2" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=5 />
    415     <SimpleNotification message="Warning: Something big is coming.">
     499    <SimpleNotification message="Warning: Something big is coming." broadcast="true">
    416500        <events>
    417501            <trigger>
     
    421505    </SimpleNotification>
    422506
    423     <!--DistanceTrigger name="duball3" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=9 />
    424     <SimpleNotification message="Get some help,  before it is too late.">
     507    <SimpleNotification message="Use the portals to get help. (grey dot)" broadcast="true">
    425508        <events>
    426509            <trigger>
    427510                <EventListener event=duball3 />
    428             </trigger>
    429         </events>
    430     </SimpleNotification-->
    431 
    432     <DistanceTrigger name="duball4" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=10 />
    433     <SimpleNotification message="Use the portals to get help. (grey dot)">
    434         <events>
    435             <trigger>
    436                 <EventListener event=duball4 />
    437511            </trigger>
    438512        </events>
     
    682756    </SpaceShip>
    683757
    684 
    685           <Trigger name="cruiserFriendlyFire" mode="and" activations="2">
    686             <EventTrigger>
     758<!-- TESTBOX-->
     759
     760<!-- TESTBOX-->
     761
     762          <Trigger name="cruiserKilled" mode="and" stayActive="true">
     763            <EventTrigger  stayActive="true">
    687764              <events>
    688765                <trigger>
    689                   <EventListener event="cruiser" />
     766                  <EventListener event="cruiser"/>
    690767                </trigger>
    691768              </events>
     
    701778
    702779
     780            <EventTrigger delay=4 name="earlyEnd">
     781              <events>
     782                <trigger>
     783                  <EventListener event="cruiserKilled" />
     784                </trigger>
     785              </events>
     786              <events>
     787                <activity>
     788                  <EventListener event="movingpirates2" />
     789                </activity>
     790              </events>
     791            </EventTrigger>
     792
     793            <EventTrigger delay=4 name="earlyEnd">
     794              <events>
     795                <trigger>
     796                  <EventListener event="HydroFarmer" />
     797                </trigger>
     798              </events>
     799              <events>
     800                <activity>
     801                  <EventListener event="movingpirates2" />
     802                </activity>
     803              </events>
     804            </EventTrigger>
     805
     806
     807
    703808    <SimpleNotification message="Oh no! You killed the Hydrogen Farmer!" broadcast="true">
    704809        <events>
     
    712817        <events>
    713818            <trigger>
    714                 <EventListener event="cruiserFriendlyFire" /><!--cruiserFriendlyFire-->
    715             </trigger>
    716         </events>
    717     </SimpleNotification>
    718 
     819                <EventListener event="cruiserKilled" />
     820            </trigger>
     821        </events>
     822    </SimpleNotification>
     823
     824    <SimpleNotification message="Press 'Esc' and restart the mission." broadcast="true">
     825        <events>
     826            <trigger>
     827                <EventListener event="earlyEnd" />
     828            </trigger>
     829        </events>
     830    </SimpleNotification>
    719831
    720832
     
    12101322! Quest Interface
    12111323- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken)
    1212 - Radar visibility & Hud Markers
    1213 - End Tutorial, if either the Hydrogen Farmer or the SpaceCruiser gets destroyed.
     1324- Radar visibility & Hud Markers (done)
     1325- End Tutorial, if either the Hydrogen Farmer or the SpaceCruiser gets destroyed. (~done)
    12141326
    12151327 -->
Note: See TracChangeset for help on using the changeset viewer.