Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9743 for code


Ignore:
Timestamp:
Nov 4, 2013, 3:48:00 PM (11 years ago)
Author:
schlaem
Message:

The eventtrigger for the pirate doesn't work. When you shot the pirate, the quest spacefight.guard1 should be completed. but there is no reaction.
I've tried to copy the code new from mission one but it wasn't succesfull.

Location:
code/branches/levelMichael/data/levels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/levelMichael/data/levels/Spacefight.oxw

    r9741 r9743  
    227227                <events>
    228228                        <execute>
    229                                 <EventListener event="guard1trigger4" />
     229                                <EventListener event="guard1trigger1" />
    230230                        </execute>
    231231                </events>
     
    245245<!-- ---------------------------------------------------------------------- -->
    246246
    247   <DistanceTrigger name="flying1" position="6000,0,0" target="SpaceShip" distance=2000 stayActive="true" delay=0 />
     247  <DistanceTrigger name="flying1" position="4000,0,0" target="SpaceShip" distance=2000 stayActive="true" delay=0 />
    248248
    249249  <DistanceTrigger name=spawntrigger2 position="0,0,0" target="SpaceShip" distance=10 stayActive="true" delay=0 />
     
    253253<!-- EVENTTRIGGER -->
    254254
     255<!--
    255256 <EventTrigger name="guard1trigger4" activations="1" stayactive="true" delay=0.1>
    256257      <events>
     
    281282      </EventTrigger>
    282283    </EventTrigger>
     284-->
     285
    283286
    284287    <SimpleNotification message="first" >
     
    290293    </SimpleNotification>
    291294
    292     <SimpleNotification message="second" >
     295    <SimpleNotification message="shot" >
    293296        <events>
    294297            <trigger>
    295                 <EventListener event="guard1trigger2" />
    296             </trigger>
    297         </events>
    298     </SimpleNotification>
    299 
    300     <SimpleNotification message="third" >
    301         <events>
    302             <trigger>
    303                 <EventListener event="guard1trigger3" />
    304             </trigger>
    305         </events>
    306     </SimpleNotification>
    307 
    308     <SimpleNotification message="fourth" >
    309         <events>
    310             <trigger>
    311                 <EventListener event="guard1trigger4" />
     298                <EventListener event="Patrol" />
    312299            </trigger>
    313300        </events>
     
    322309    </SimpleNotification>
    323310
     311
     312    <SpaceShip position="8000,1000,0" lookat="-1,0,0" name="firstPatrol" visible="true" radarname="Patrol">
     313        <events>
     314            <visibility>
     315                <EventListener event=spawntrigger2 />
     316            </visibility>
     317        </events>
     318        <templates>
     319            <Template link=spaceshippirate /> <!--spaceshipTransporter -->
     320        </templates>
     321        <controller>
     322            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
     323                <waypoints>
     324                    <Model mesh="cube.mesh" scale=0 position="8000,1000,0" />
     325                    <Model mesh="cube.mesh" scale=0 position="8000,-1000,0" />
     326                </waypoints>
     327                <events>
     328                    <activity>
     329                        <EventListener event=spawntrigger2 /> <!-- activates enemies-->
     330                     </activity>
     331                </events>
     332            </WaypointPatrolController>
     333        </controller>
     334    </SpaceShip>
     335
     336
     337<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
     338    <EventTrigger name="guard1trigger4" activations="1" stayactive="true">
     339      <events>
     340        <trigger>
     341          <EventListener event="firstPatrol" />
     342        </trigger>
     343      </events>
     344      <EventTrigger name="guard1trigger3" activations="1" stayactive="true" delay=0.1>
     345        <events>
     346          <trigger>
     347            <EventListener event="firstPatrol" />
     348          </trigger>
     349        </events>
     350        <EventTrigger name="guard1trigger2" activations="1" stayactive="true" delay=0.1>
     351          <events>
     352            <trigger>
     353              <EventListener event="firstPatrol" />
     354            </trigger>
     355          </events>
     356          <EventTrigger name="guard1trigger1" activations="1" stayactive="true" delay=0.1>
     357            <events>
     358              <trigger>
     359                <EventListener event="firstPatrol" />
     360              </trigger>
     361            </events>
     362          </EventTrigger>
     363        </EventTrigger>
     364      </EventTrigger>
     365    </EventTrigger>
     366
    324367<!-- ----------------------------------------------------- -->
    325368
    326369<!-- Passive Piraten: Guard 1 -->
    327 
     370<!--
    328371<SpaceShip position="8000,1000,0" lookat="-1,0,0" name=firstPatrol radarname="Patrol">
    329372  <events>
     
    363406  </controller>
    364407</SpaceShip>
    365 
     408-->
    366409
    367410<!-- Angreiffende Piraten: Guard 1 -->
    368 
     411<!--
    369412<SpaceShip position="8000,-1000,1000" lookat="8000,1000,-1000" name=firstPatrol visible="true" radarname="Patrol" >
    370413  <events>
     
    414457  </controller>
    415458</SpaceShip>
    416 
     459-->
    417460<!-- Angreiffende Piraten: Guard 2 -->
    418461<SpaceShip position="19000,5000,21000" lookat="19000,4900,21000" name=secondPatrol visible="true" radarname="Patrol">
     
    590633
    591634
    592   <Planet position="2000,-250,9000" scale=5000 pitch=1 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="3" atmospheresize=224.0f imagesize=1024.0f />
    593  
     635  <Planet position="2000,-250,9000" scale=5000 pitch=1 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="0.5" atmospheresize=224.0f imagesize=1024.0f />
     636
     637<!--
     638<Model position="1000,  0,40" yaw="90" pitch="-90" roll="5" scale="50" mesh="ast1.mesh" />
     639--> 
    594640
    595641<!-- ----------------Rotating SpaceStation--------------- -->
  • code/branches/levelMichael/data/levels/missionOne.oxw

    r9348 r9743  
     1<!---->
    12<LevelInfo
    23 name = "Mission One"
Note: See TracChangeset for help on using the changeset viewer.