Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2011, 11:21:17 PM (13 years ago)
Author:
jo
Message:

Finetuning the triggers such that the HydrogenFarmer is practically indestructible and killing the SpaceCruiser makes the level unplayable.

File:
1 edited

Legend:

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

    r8923 r8932  
    248248        <QuestDescription title="Navigation" description="The next goal is to find and move towards the test targets for your weaponsystem. The three arrows that just appeared down in the right corner of your screen indicate in which direction you have to turn your spacefighter to find your next targets.
    249249
    250 Alternative navigation: There's a the green circle in the left corner - the radar. The red dots on the radar represent your targets. If you manage to move your spaceship in a way such that a dot is at the center of the radar, you will be able to see the concerning object straight ahead." failmessage="" completeMessage="" />
     250Alternative navigation: There's a green circle in the left corner - the radar. The red dots on the radar represent your targets. If you manage to move your spaceship in a way such that a dot is at the center of the radar, you will be able to see the concerning object straight ahead." failmessage="" completeMessage="" />
    251251        <complete-effects>
    252252            <AddQuest questId="missionOne.weaponsystemI" />
     
    381381        </events>
    382382    </SimpleNotification>
     383
    383384<!-- QUEST-Trigger && Message Trigger: navigationend is activated after flying4 was triggered -->
    384385    <DistanceTrigger name="navigationend" position="0,0,0" distance=950 target="SpaceShip" stayActive="false" delay=1.1>
     
    405406
    406407<!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->
    407     <DistanceTrigger name="spawndelaytrigger1" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=9 />
    408     <SimpleNotification message="Destroy the four boxes.">
     408<!-- @ triggers: spawndelaytriggerX: textoutput only if no box was destroyed -->
     409    <Trigger name="spawndelaytrigger1" mode="and" stayActive="true">
     410        <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=9 />
     411        <EventTrigger activations="1" invert="true">
     412          <events>
     413            <trigger>
     414              <EventListener event="boxtrigger1" />
     415            </trigger>
     416          </events>
     417        </EventTrigger>
     418    </Trigger>
     419
     420    <Trigger name="spawndelaytrigger2" mode="and" stayActive="true">
     421        <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=13 />
     422        <EventTrigger activations="1" invert="true">
     423          <events>
     424            <trigger>
     425              <EventListener event="boxtrigger1" />
     426            </trigger>
     427          </events>
     428        </EventTrigger>
     429    </Trigger>
     430
     431    <Trigger name="spawndelaytrigger3" mode="and" stayActive="true">
     432        <DistanceTrigger position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=17 />
     433        <EventTrigger activations="1" invert="true">
     434          <events>
     435            <trigger>
     436              <EventListener event="boxtrigger1" />
     437            </trigger>
     438          </events>
     439        </EventTrigger>
     440    </Trigger>
     441
     442<!-- @Text: How to shoot-->
     443    <SimpleNotification message="Destroy the four boxes." broadcast="true">
    409444        <events>
    410445            <trigger>
     
    414449    </SimpleNotification>
    415450
    416     <DistanceTrigger name="spawndelaytrigger2" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=13 />
    417     <SimpleNotification message=" 1. Aim the a red cycle.">
     451    <SimpleNotification message=" 1. Aim the a red cycle." broadcast="true">
    418452        <events>
    419453            <trigger>
     
    423457    </SimpleNotification>
    424458
    425     <DistanceTrigger name="spawndelaytrigger3" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=17 />
    426     <SimpleNotification message="2. Click! (hold the left mouse button)">
     459    <SimpleNotification message="2. Click! (hold the left mouse button)" broadcast="true">
    427460        <events>
    428461            <trigger>
     
    644677    </DistanceTrigger>
    645678
    646     <EventTrigger name="duball2" activations="1" stayactive="true" delay=4 >
    647       <events>
    648         <trigger>
    649           <EventListener event="duball1" />
    650         </trigger>
    651       </events>
    652     </EventTrigger>
    653 
    654     <EventTrigger name="duball3" activations="1" stayactive="true" delay=4 >
    655       <events>
    656         <trigger>
    657           <EventListener event="duball2" />
    658         </trigger>
    659       </events>
    660     </EventTrigger>
     679    <Trigger name="duball2" mode="and" stayActive="true">
     680        <EventTrigger activations="1" stayactive="true" delay=4 >
     681           <events>
     682              <trigger>
     683                 <EventListener event="duball1" />
     684              </trigger>
     685           </events>
     686        </EventTrigger>
     687        <EventTrigger activations="1" invert="true">
     688          <events>
     689            <trigger>
     690              <EventListener event="toHydroFarmer" />
     691            </trigger>
     692          </events>
     693        </EventTrigger>
     694    </Trigger>
     695
     696    <Trigger name="duball3" mode="and" stayActive="true">
     697        <EventTrigger activations="1" stayactive="true" delay=4 >
     698           <events>
     699              <trigger>
     700                 <EventListener event="duball2" />
     701              </trigger>
     702           </events>
     703        </EventTrigger>
     704        <EventTrigger activations="1" invert="true">
     705          <events>
     706            <trigger>
     707              <EventListener event="toHydroFarmer" />
     708            </trigger>
     709          </events>
     710        </EventTrigger>
     711    </Trigger>
     712
    661713
    662714    <SimpleNotification message="Welcome to the Duball Space Station!">
     
    837889
    838890<!-------------------------------------- PART FOUR : Get Help --------------------------------------->
    839     <DistanceTrigger name="famer1" position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
     891<!-- TODO: cruiserKilled -->
     892    <Trigger name="famer1" mode="and" stayActive="true">
     893        <DistanceTrigger position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=0 />
     894        <EventTrigger name="notGameEnd" activations="1" invert="true">
     895          <events>
     896            <trigger>
     897              <EventListener event="gameEnd" />
     898            </trigger>
     899          </events>
     900        </EventTrigger>
     901    </Trigger>
     902
     903    <Trigger name="famer2" mode="and" stayActive="true">
     904        <DistanceTrigger position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=4 />
     905        <EventTrigger activations="1" invert="true">
     906          <events>
     907            <trigger>
     908              <EventListener event="gameEnd" />
     909            </trigger>
     910          </events>
     911        </EventTrigger>
     912    </Trigger>
     913
    840914    <SimpleNotification message="We just received a message from DuBall.">
    841915        <events>
     
    846920    </SimpleNotification>
    847921
    848     <DistanceTrigger name="famer2" position="-48200,100,0" target="Pawn" distance=650 stayActive="true" delay=4 />
     922
    849923    <SimpleNotification message="We will lend you our strongest ship.">
    850924        <events>
     
    857931
    858932<!-- @Objects: HYDROGEN FARMER & DOCKING -->
    859     <SpaceShip position="-48900,100,0" roll=90 yaw=0 pitch=20 mass=10000 health=100000 name="HydroFarmer">
     933    <SpaceShip
     934        position="-48900,100,0"
     935        roll=90 yaw=0 pitch=20
     936        mass=10000
     937        health=100000 initialhealth=100000 maxhealth="100000"
     938        name="HydroFarmer">
    860939      <attached>
    861940        <!-- Docking -->
     
    912991                <EventListener event="dockMe" />
    913992            </execute>
     993            <activity>
     994                <EventListener event=notGameEnd />
     995            </activity>
    914996        </events>
    915997        <attached>
     
    9181000            />
    9191001        </attached>
     1002
    9201003    </Dock>
    9211004
    9221005<!--@Objects: SpaceCruiser as docking target -->
    923     <SpaceShip template="spaceshipspacecruiser" position="-48900,800,0" orientation="-0.14, 0.68, 0.68, 0.223" health="300" maxhealth="400" initialhealth="300" name="cruiser" >
     1006    <SpaceShip
     1007        template            = "spaceshipspacecruiser"
     1008        position            = "-48900,800,0"
     1009        orientation         = "-0.14, 0.68, 0.68, 0.223"
     1010        health              = "400"
     1011        initialhealth       = "400"
     1012        maxhealth           = "500"
     1013        shieldhealth        = "80"
     1014        initialshieldhealth = "80"
     1015        maxshieldhealth     = "120"
     1016        shieldabsorption    = "0.8"
     1017        reloadrate          = "1"
     1018        reloadwaittime      = "1"
     1019        name                = "cruiser" >
    9241020      <attached>
    9251021        <DockingTarget name="spaceShip" />
     
    9281024
    9291025
     1026<!-- cruiserKilled: if cuiser is killed & player hasn't taken control of spacecrusier -->
    9301027          <Trigger name="cruiserKilled" mode="and" stayActive="true">
    9311028            <EventTrigger  stayActive="true">
     
    9461043
    9471044
     1045<!-- triggers when either hydrofarmer or cruiser is killed -->
     1046            <Trigger mode=or name="gameEnd">
     1047                <EventTrigger activations="1">
     1048                  <events>
     1049                    <trigger>
     1050                      <EventListener event="HydroFarmer" />
     1051                    </trigger>
     1052                  </events>
     1053                </EventTrigger>
     1054                <EventTrigger activations="1">
     1055                  <events>
     1056                    <trigger>
     1057                      <EventListener event="cruiserKilled" />
     1058                    </trigger>
     1059                  </events>
     1060                </EventTrigger>
     1061            </Trigger>
     1062
     1063<!-- triggers delayed when either hydrofarmer or cruiser is killed -->
    9481064            <EventTrigger delay=4 name="earlyEnd">
    9491065              <events>
    9501066                <trigger>
    951                   <EventListener event="cruiserKilled" />
     1067                  <EventListener event="gameEnd" />
    9521068                </trigger>
    9531069              </events>
     
    9581074              </events>
    9591075            </EventTrigger>
    960 
    961             <EventTrigger delay=4 name="earlyEnd">
    962               <events>
    963                 <trigger>
    964                   <EventListener event="HydroFarmer" />
    965                 </trigger>
    966               </events>
    967               <events>
    968                 <activity>
    969                   <EventListener event="movingpirates2" />
    970                 </activity>
    971               </events>
    972             </EventTrigger>
    973 
    9741076
    9751077
     
    10581160                attack       <-> second portal usage -->
    10591161
    1060     <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" >
     1162    <DistanceTrigger name="attack" position="-1400,-500,800" target="Pawn" distance=100 stayActive="true" mode="and">
    10611163        <EventTrigger name="ondock" activations="1" stayactive="true" delay=6>
    10621164          <events>
     
    10651167            </trigger>
    10661168          </events>
    1067             <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
     1169            <Trigger mode=and>
     1170              <DistanceTrigger name="toHydroFarmer" position="-47000,-1000,1300" target="Pawn" distance=100 stayActive="true" />
     1171              <EventTrigger activations="1" invert="true">
     1172                <events>
     1173                  <trigger>
     1174                    <EventListener event="gameEnd" />
     1175                  </trigger>
     1176                </events>
     1177              </EventTrigger>
     1178            </Trigger>
     1179        </EventTrigger>
     1180        <EventTrigger activations="1" invert="true">
     1181          <events>
     1182            <trigger>
     1183              <EventListener event="earlyEnd" />
     1184            </trigger>
     1185          </events>
    10681186        </EventTrigger>
    10691187    </DistanceTrigger>
     
    10861204
    10871205
    1088 
    10891206<!-- @Objects: 6 pirates, heading towards DuBall, attacking  -->
     1207<!-- TODO: re-hide pirates on early end-->
    10901208<!-- 1 -->
    10911209    <SpaceShip position="3000,-4000,4000" lookat="-1300,-600,900" name="attacker"visible="true">
     
    12321350        </controller>
    12331351    </SpaceShip>
     1352
    12341353
    12351354<!-- @Triggers: attacktriggerX <-> X enemies destroyed , X is an element of [1,6] -->
     
    13091428      </events>
    13101429    </SimpleNotification>
     1430
    13111431    <SimpleNotification message="One enemy left!" broadcast="true">
    13121432      <events>
     
    13161436      </events>
    13171437    </SimpleNotification>
     1438
    13181439    <SimpleNotification message="Well done. You finished this tutorial." broadcast="true">
    13191440      <events>
     
    13251446
    13261447<!-- @Triggers: postAttack <-> delayed attacktrigger6 -->
    1327     <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=3>
     1448    <EventTrigger name="postAttack1" activations="1" stayactive="true" delay=4.1>
    13281449      <events>
    13291450        <trigger>
     
    13331454    </EventTrigger>
    13341455
    1335     <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=6>
     1456    <EventTrigger name="postAttack2" activations="1" stayactive="true" delay=8.2>
    13361457      <events>
    13371458        <trigger>
     
    13591480<!-------------------------------------- |Bonus Part| --------------------------------------->
    13601481<!-- @Triggers: "bonusX" <->  delayed "attacktrigger6" -->
    1361     <EventTrigger name="bonus1" activations="1" stayactive="true" delay=10>
     1482    <EventTrigger name="bonus1" activations="1" stayactive="true" delay=12.3>
    13621483      <events>
    13631484        <trigger>
     
    13661487      </events>
    13671488    </EventTrigger>
    1368     <EventTrigger name="bonus2" activations="1" stayactive="true" delay=16>
     1489    <EventTrigger name="bonus2" activations="1" stayactive="true" delay=16.4>
    13691490      <events>
    13701491        <trigger>
     
    13801501      </events>
    13811502    </EventTrigger>
    1382     <EventTrigger name="bonus4" activations="1" stayactive="true" delay=28>
     1503    <EventTrigger name="bonus4" activations="1" stayactive="true" delay=28.1>
    13831504      <events>
    13841505        <trigger>
     
    13871508      </events>
    13881509    </EventTrigger>
    1389     <EventTrigger name="bonus5" activations="1" stayactive="true" delay=32.1>
     1510    <EventTrigger name="bonus5" activations="1" stayactive="true" delay=32.3>
    13901511      <events>
    13911512        <trigger>
     
    13941515      </events>
    13951516    </EventTrigger>
    1396     <EventTrigger name="bonus6" activations="1" stayactive="true" delay=36.2>
     1517    <EventTrigger name="bonus6" activations="1" stayactive="true" delay=36.5>
    13971518      <events>
    13981519        <trigger>
     
    14011522      </events>
    14021523    </EventTrigger>
    1403     <EventTrigger name="bonus7" activations="1" stayactive="true" delay=4>
     1524    <EventTrigger name="bonus7" activations="1" stayactive="true" delay=4.1>
    14041525      <events>
    14051526        <trigger>
     
    14871608</Level>
    14881609<!-- TODO:
    1489 - Story & more precise Questmessages; more quest hints;
     1610- Story & more precise Questmessages; more quest hints; fail-quest;
    14901611- Colouring: Show who is friend or foe via the colour
    14911612- Waypoints: show the player the way
    1492 - Foolproof text messages (e.g. verspätete Nachrichten unterdrücken)
     1613- Foolproof text messages (e.g. verspätete Nachrichten unterdrücken ~done )
    14931614- End Tutorial, if either the Hydrogen Farmer or the SpaceCruiser gets destroyed. (~done)
    14941615 -->
Note: See TracChangeset for help on using the changeset viewer.