Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2015, 2:04:55 PM (9 years ago)
Author:
paulsc
Message:

Did some work on narrative and events, labelled TODO and FIXME, removed fog lua tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/Campaign1.oxw

    r10735 r10740  
    7070            <AddQuest questId="quest2.1" />
    7171            <AddQuest questId="quest2.2" />
    72             <AddQuest questId="quest2.3" />
    7372        </complete-effects>
    7473    </GlobalQuest>
     
    8382            </GlobalQuest>
    8483            <GlobalQuest id="quest2.2">
    85                 <QuestDescription title="Get some Pickups" description="" failMessage="" completeMessage="" />
    86             </GlobalQuest>
    87             <GlobalQuest id="quest2.3">
    8884                <QuestDescription title="Meet your Unit" description="" failMessage="" completeMessage="" />
    8985            </GlobalQuest>
     
    162158        _spawntrigger
    163159        _reachedA
     160        _dock<A|B|C>
     161        _docked<A>      WIP; see below
     162        -joinedUnit
    164163        _wave<k>
    165164        _killedEnemy<k>.<i>
     
    175174    </EventMultiTrigger>
    176175
    177     <DistanceTrigger name="reachedA" position="5000,-3000,0" distance=1500 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
    178 
    179     <EventMultiTrigger name="wave1" activations="1" stayactive="true" >
     176    <DistanceTrigger name="reachedA" position="5000,-3000,0" distance=1000 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
     177
     178    <!-- TODO: find out how to link an event to the COMPLETION of a dock. How is this not possible?? -->
     179    <EventMultiTrigger name="dockedA" activations="1" stayactive="true" delay=2>
    180180        <events>
    181181            <trigger>
    182182                <EventListener event="dockA" />
     183            </trigger>
     184        </events>
     185    </EventMultiTrigger>
     186
     187    <!-- TODO: fictive unit; to be added later -->
     188    <DistanceTrigger name="joinedUnit" position="3500,-1500,0" distance=10 target="SpaceShip" beaconMode="exclude" targetname="NPC" stayactive=true />
     189    <Billboard position="3500,-1500,0" amplitude=1 material="Flares/lensflare" colour="1,0,0.05" />     <!-- For debugging puropses -->
     190
     191    <EventMultiTrigger name="wave1" activations="1" stayactive="true" delay=4>
     192        <events>
     193            <trigger>
     194                <EventListener event="joinedUnit" />
    183195            </trigger>
    184196        </events>
     
    218230    <?lua end ?>
    219231
    220     <!-- This trigger needs fixing, as endMission can only be called by a Pawn Distance Trigger. Herpaderp -->
    221     <EventMultiTrigger name="missionFailed" target="Pawn" stayActive="true" delay=1.5>
    222         <events>
    223             <trigger>
    224                 <EventListener event="transporter" />
    225             </trigger>
    226         </events>
    227     </EventMultiTrigger>
    228 
    229     <Script code="Mission endMission fail" onLoad="false" times="1">
     232    <!-- FIXME: This trigger needs fixing, as endMission can only be called by a Pawn Distance Trigger. Herpaderp.
     233        Also, the fix proposed in MissionOne does not work anymore... -->
     234   <EventMultiTrigger name="missionFailed" target="Pawn" stayActive="true" delay=1.5>
     235       <events>
     236           <trigger>
     237               <EventListener event="transporter" />
     238           </trigger>
     239       </events>
     240   </EventMultiTrigger>
     241
     242    <Script code="Mission endMission fail" onLoad="false">
    230243        <events>
    231244            <trigger>
     
    265278        <events>
    266279            <execute>
    267                 <EventListener event="dockA" />
     280                <EventListener event="dockedA" />
    268281            </execute>
    269282        </events>
     
    283296    <!--NOTIFICATIONS -->
    284297
    285     <SimpleNotification broadcast="true" message="Welcome, Commander. Please report at Station A">
    286         <events>
    287             <trigger>
    288                 <EventListener event="spawntrigger" />
     298    <SimpleNotification broadcast="true" message="Welcome, Commander. Please report at Station A.">
     299        <events>
     300            <trigger>
     301                <EventTrigger stayactive="true" delay=4 >
     302                   <events>
     303                      <trigger>
     304                         <EventListener event="spawntrigger" />
     305                      </trigger>
     306                   </events>
     307                </EventTrigger>
     308            </trigger>
     309        </events>
     310    </SimpleNotification>
     311
     312    <SimpleNotification broadcast="true" message="Our enemy is set to attack us very soon.">
     313        <events>
     314            <trigger>
     315                <EventTrigger stayactive="true" delay=8 >
     316                   <events>
     317                      <trigger>
     318                         <EventListener event="spawntrigger" />
     319                      </trigger>
     320                   </events>
     321                </EventTrigger>
     322            </trigger>
     323        </events>
     324    </SimpleNotification>
     325
     326    <SimpleNotification broadcast="true" message="Please study your mission briefing!">
     327        <events>
     328            <trigger>
     329                <EventTrigger stayactive="true" delay=12 >
     330                   <events>
     331                      <trigger>
     332                         <EventListener event="spawntrigger" />
     333                      </trigger>
     334                   </events>
     335                </EventTrigger>
     336            </trigger>
     337        </events>
     338    </SimpleNotification>
     339
     340    <SimpleNotification broadcast="true" message="Welcome to Station A, Commander.">
     341        <events>
     342            <trigger>
     343                <EventListener event="reachedA" />
     344            </trigger>
     345        </events>
     346    </SimpleNotification>
     347
     348    <SimpleNotification broadcast="true" message="We've prepared a reinforced Ship for you.">
     349        <events>
     350            <trigger>
     351                <EventTrigger stayactive="true" delay=4 >
     352                   <events>
     353                      <trigger>
     354                         <EventListener event="reachedA" />
     355                      </trigger>
     356                   </events>
     357                </EventTrigger>
     358            </trigger>
     359        </events>
     360    </SimpleNotification>
     361
     362    <SimpleNotification broadcast="true" message="Now join our defense Team.">
     363        <events>
     364            <trigger>
     365                <EventListener event="dockedA" />
    289366            </trigger>
    290367        </events>
     
    444521        template            = "spaceshipassff2"
    445522        team                = "0"
    446         position            = "7500,-5500,0"
     523        position            = "4100,-2100,0"
    447524        orientation         = "-0.14, 0.68, 0.68, 0.223"
    448525        health              = "400"
     
    455532        reloadrate          = "1"
    456533        reloadwaittime      = "1"
    457         name                = "cruiser"
    458         radarname           = "Spacecruiser" >
     534        name                = "newSpaceShip"
     535        radarname           = "Defender" >
    459536      <attached>
    460537        <DockingTarget name="newSpaceShip" />
     538        <DistanceTriggerBeacon name="newSpaceShip" />
    461539      </attached>
    462540    </SpaceShip>
    463541
    464542    <!-- FPS Player as destination of dock C-->
    465     <FpsPlayer template = "fps" radarname = "First Person Player" position = "0,-2300,1201">
     543    <FpsPlayer team=0 template = "fps" radarname = "First Person Player" position = "0,-2300,1201">
    466544        <attached>
    467545            <DockingTarget name="fpsMode" />
     
    486564        dofile("includes/asteroidField.lua")
    487565        asteroidBelt(0,-2000, 0, 30, 0, 5, 20, 40, 500, 3300, 75, 0)
    488     ?>
    489 
    490     <?lua
    491     --[[
    492         dofile("includes/fog.lua")
    493        fogField(0,0,500,150,20)
    494        ]]--
    495566    ?>
    496567
     
    536607    <?lua end ?>
    537608    <?lua end ?>
     609
     610    <Formation>
     611
     612    </Formation>
    538613
    539614    <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 -->
Note: See TracChangeset for help on using the changeset viewer.