Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 18, 2011, 6:52:21 PM (13 years ago)
Author:
jo
Message:

Pawn&SpaceShip Colouring via XML works. Quick&Dirty implementation though. A clean version is going to follow.

File:
1 edited

Legend:

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

    r8932 r8942  
    5757        <events>
    5858            <trigger>
    59                 <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     59                <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff>
     60                  <EventTrigger invert=true>
     61                    <events>
     62                      <trigger>
     63                        <EventListener event="attack" />
     64                      </trigger>
     65                    </events>
     66                  </EventTrigger>
     67                </TeamSpawnPoint>
    6068            </trigger>
    6169        </events>
     
    163171        </QuestEffectBeacon>
    164172
     173        <QuestEffectBeacon times=1> <!--  alternative quest end  -->
     174            <effects>
     175                <CompleteQuest questId="missionOne.DuballStation" />
     176            </effects>
     177            <events>
     178                <execute>
     179                    <EventListener event=toHydroFarmer />
     180                </execute>
     181            </events>
     182        </QuestEffectBeacon>
     183
    165184<!--helper trigger to end the getHelp quest -->
    166185    <DistanceTrigger name="getHelpEnd" position="-47000,-1000,1300" distance=1400 target="SpaceShip" stayActive="false" delay=0.1>
     
    228247            </events>
    229248        </QuestEffectBeacon>
     249
     250<!-- End the quest after own destruction of spacecruiser -->
     251        <QuestEffectBeacon position="-100,0,0" times=1>
     252            <effects>
     253                <FailQuest questId="missionOne.getHelp" />
     254            </effects>
     255            <events>
     256                <execute>
     257                    <EventListener event="failQuest" />
     258                </execute>
     259            </events>
     260            <attached>
     261                <DistanceTrigger name="failQuest" position="-47000,-1000,1300" distance=2300 target="SpaceShip">
     262                  <EventTrigger>
     263                    <events>
     264                      <trigger>
     265                        <EventListener event="gameEnd" />
     266                      </trigger>
     267                    </events>
     268                  </EventTrigger>
     269                </DistanceTrigger>
     270            </attached>
     271        </QuestEffectBeacon>
     272
     273
    230274
    231275
     
    335379
    336380<!-- Blinking Billboard should be replaced with WAYPOINT -->
    337 <BlinkingBillboard position="-900,640,600" frequency=0.4 amplitude=2 material="Flares/lensflare" colour="1,1,0">
     381<BlinkingBillboard position="-900,640,600" frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,0.05">
    338382          <events>
    339383            <visibility>
     
    466510
    467511<!-- @Objects: 4 boxes (uncontrolled pawns) -->
    468                 <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     512                <Pawn team=1 health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    469513                    <events>
    470514                      <visibility>
     
    480524                </Pawn>
    481525
    482                 <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true">
     526                <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true">
    483527                    <events>
    484528                      <visibility>
     
    493537                    </collisionShapes>
    494538                </Pawn>
    495                 <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     539                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1>
    496540                    <events>
    497541                      <visibility>
     
    506550                    </collisionShapes>
    507551                </Pawn>
    508                 <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
     552                <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box team=1>
    509553                    <events>
    510554                      <visibility>
     
    889933
    890934<!-------------------------------------- PART FOUR : Get Help --------------------------------------->
    891 <!-- TODO: cruiserKilled -->
     935
    892936    <Trigger name="famer1" mode="and" stayActive="true">
    893937        <DistanceTrigger position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
     
    932976<!-- @Objects: HYDROGEN FARMER & DOCKING -->
    933977    <SpaceShip
     978        team=0
    934979        position="-48900,100,0"
    935980        roll=90 yaw=0 pitch=20
     
    10061051    <SpaceShip
    10071052        template            = "spaceshipspacecruiser"
     1053        team                = "0"
    10081054        position            = "-48900,800,0"
    10091055        orientation         = "-0.14, 0.68, 0.68, 0.223"
     
    11501196
    11511197<!-------------------------------------- The attack --------------------------------------->
    1152 
    11531198<!-- TODO:
    11541199     - update spaceshipTransporter
    11551200     - bots do friendly fire (is drone function reusable?)
    11561201-->
     1202
     1203<!-- Fallback Spawnpoint: on cruiserdeath caused by pirates. Unfortunately unstable behaviour concerning activity. -->
     1204    <TeamSpawnPoint team=0 position="2000,1500,-1500" direction="-1,-1,1" spawnclass=SpaceShip pawndesign=spaceshipspacecruiser>
     1205        <events>
     1206            <activity>
     1207                <EventListener event="attack" />
     1208            </activity>
     1209        </events>
     1210    </TeamSpawnPoint>
    11571211
    11581212<!-- @Triggers: toHydroFamer <-> first  portal usage
     
    16071661  </Scene>
    16081662</Level>
     1663
    16091664<!-- TODO:
    16101665- Story & more precise Questmessages; more quest hints; fail-quest;
Note: See TracChangeset for help on using the changeset viewer.