Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 28, 2011, 6:09:10 PM (13 years ago)
Author:
jo
Message:

On the way to add quests. Combined distance trigger does not act as expected.

Location:
code/branches/gamecontent
Files:
2 edited

Legend:

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

    r8904 r8909  
    4848    ?>
    4949
    50     <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg-->
     50    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg, Mars.ogg-->
    5151
    5252    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    53     <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    54 
    55 
    5653<!-- END OF INCLUDES & NECESSARITIES -->
    5754
     55<!-- SPAWNPOINT & START OF QUESTS via spawntrigger -->
     56    <EventMultiTrigger name=spawntrigger>
     57        <events>
     58            <trigger>
     59                <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     60            </trigger>
     61        </events>
     62    </EventMultiTrigger>
     63
     64        <QuestEffectBeacon times=1>
     65            <effects>
     66                <AddQuest questId="missionOne.basicFlying" />
     67                <!--AddQuestHint hintId ="quest1hint3" /-->
     68            </effects>
     69            <events>
     70                <execute>
     71                    <EventListener event=spawntrigger />
     72                </execute>
     73            </events>
     74        </QuestEffectBeacon>
     75
     76        <QuestEffectBeacon times=1>
     77            <effects>
     78                <CompleteQuest questId="missionOne.basicFlying" />
     79            </effects>
     80            <events>
     81                <execute>
     82                    <EventListener event=flying4 />
     83                </execute>
     84            </events>
     85        </QuestEffectBeacon>
     86
     87<!-- //TODO: end navigation quest -->
     88
     89
     90        <QuestEffectBeacon times=1>
     91            <effects>
     92                <CompleteQuest questId="missionOne.navigation" />
     93            </effects>
     94            <events>
     95                <execute>
     96                    <EventListener event="navigationend" />
     97                </execute>
     98            </events>
     99        </QuestEffectBeacon>
     100
     101        <QuestEffectBeacon times=1>
     102            <effects>
     103                <CompleteQuest questId="missionOne.weaponsystemI" />
     104            </effects>
     105            <events>
     106                <execute>
     107                    <EventListener event=boxtrigger4 />
     108                </execute>
     109            </events>
     110        </QuestEffectBeacon>
     111
     112        <QuestEffectBeacon times=1>
     113            <effects>
     114                <CompleteQuest questId="missionOne.weaponsystemII" />
     115                <CompleteQuest questId="missionOne.weaponsystem" />
     116            </effects>
     117            <events>
     118                <execute>
     119                    <EventListener event=movingpirates2 />
     120                </execute>
     121            </events>
     122        </QuestEffectBeacon>
     123
     124        <QuestEffectBeacon times=1>
     125            <effects>
     126                <CompleteQuest questId="missionOne.DuballStation" />
     127            </effects>
     128            <events>
     129                <execute>
     130                    <EventListener event=duball3 />
     131                </execute>
     132            </events>
     133        </QuestEffectBeacon>
     134
     135        <QuestEffectBeacon times=1>
     136            <effects>
     137                <CompleteQuest questId="missionOne.getHelp" />
     138            </effects>
     139            <events>
     140                <execute>
     141                    <EventListener event=ondock />
     142                </execute>
     143            </events>
     144        </QuestEffectBeacon>
     145
     146        <QuestEffectBeacon times=1>
     147            <effects>
     148                <CompleteQuest questId="missionOne.getHome" />
     149            </effects>
     150            <events>
     151                <execute>
     152                    <EventListener event=attack />
     153                </execute>
     154            </events>
     155        </QuestEffectBeacon>
     156
     157        <QuestEffectBeacon times=1>
     158            <effects>
     159                <CompleteQuest questId="missionOne.defence" />
     160            </effects>
     161            <events>
     162                <execute>
     163                    <EventListener event=attacktrigger6 />
     164                </execute>
     165            </events>
     166        </QuestEffectBeacon>
     167
     168
    58169    <LocalQuest id="missionOne.basicFlying">
    59         <QuestDescription title="Flying" description="INSERT STORY HERE. The first thing you have to learn is flying. Use 'W' to accelerate and steer with your mouse. In order to know where to fly there are two detection systems. The navigation markers highlite important objects directly in the level. If you can't directly see those objects, there are arrows which indicate how you have to steer. The second device is the radar. There you get an overview of all objects near you. In order to find an object that you spotted on radar, you have to steer in a way that the corresponding dot is in the center of the radar. Now you can find the corresponding object straight ahead. Your goal is to fly to the first waypoint. It's that orange dot on the radar." failmessage="" completeMessage="Well done." />
     170        <QuestDescription title="Flying" description="Can you see the blinking light straight ahead? Your goal is to fly through it.
     171Use 'W' to accelerate and steer with your mouse.
     172
     173Further flying moves:
     174S          : break
     175Q and E : roll
     176Space    : boost
     177
     178P.S: Whenever a new quest is added you can view it by pressing F3." failmessage="" completeMessage="" />
     179        <complete-effects>
     180            <AddQuest questId="missionOne.navigation" />
     181        </complete-effects>
     182    </LocalQuest>
     183
     184    <LocalQuest id="missionOne.navigation">
     185        <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.
     186
     187Alternative 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="" />
    60188        <complete-effects>
    61189            <AddQuest questId="missionOne.weaponsystem" />
     190            <AddQuest questId="missionOne.weaponsystemI" />
    62191        </complete-effects>
    63192    </LocalQuest>
     
    98227
    99228    <LocalQuest id="missionOne.DuballStation">
    100         <QuestDescription title="Duball Space Station" description="Fly towards the Duball Space Station. The grey radar marker will lead you to its position." failmessage="" completeMessage="Well done." />
     229        <QuestDescription title="Duball Space Station" description="Fly towards the Duball Space Station. The grey radar marker will lead you to its position." failmessage="" completeMessage="" />
    101230        <complete-effects>
    102231            <AddQuest questId="missionOne.getHelp" />
     
    105234
    106235    <LocalQuest id="missionOne.getHelp">
    107         <QuestDescription title="Get Help" description="There are enemies approaching. You can't handle it on your own. Fortunately there's a shortcut to the next friendly unit. Use the portal (grey dot) to get near the Hydrogen Farmer. There you might get help - as far as we know there should be a stronger spaceship docked to the Hydrogen Farmer. In order to be able to use that stronger spaceship you have to dock to the Hydrogen Farmer. Simply fly to the center of the Hydrogen Farmer, which is between its three legs." failmessage="" completeMessage="Well done." />
     236        <QuestDescription title="Get Help" description="There are enemies approaching. You can't handle it on your own. Fortunately there's a shortcut to the next friendly unit. Use the portal (grey dot) to get near the Hydrogen Farmer. There you might get help - as far as we know there should be a stronger spaceship docked to the Hydrogen Farmer. In order to be able to use that stronger spaceship you have to dock to the Hydrogen Farmer. Simply fly to the center of the Hydrogen Farmer, which is between its three legs." failmessage="" completeMessage="" />
    108237        <complete-effects>
    109238            <AddQuest questId="missionOne.getHome" />
     
    119248
    120249    <LocalQuest id="missionOne.defence">
    121         <QuestDescription title="Defence" description="" failmessage="" completeMessage="Well done." />
     250        <QuestDescription title="Defence" description="" failmessage="" completeMessage="Yeah! You did it." />
    122251    </LocalQuest>
    123252
    124253
    125         <QuestEffectBeacon position="800,700,600" times="1">
     254        <!--QuestEffectBeacon position="800,700,600" times="1">
    126255            <effects>
    127256                <AddQuest questId="missionOne.basicFlying" />
     
    135264                <DistanceTrigger name="questStart" position="0,0,0" distance="50" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" delay="2" />
    136265            </attached>
    137         </QuestEffectBeacon>
     266        </QuestEffectBeacon-->
    138267
    139268
     
    144273<!-- 4. Extras (other things to discover) --> <!-- "Q","E","A","D","C", "CTRL", "", ... -->
    145274
    146 <!--
    147 
    148 "Lets start flying. Use W to accelerate and S to brake. The goal is to reach the spacestation which is displayed on the radar. If you want to be faster you can temporarily boost by hitting additionally the space button. If you use too much boost your engine heats up and you won't be able to use boost for a while. By the way boost could be useful during combat .."
    149 
    150 -->
    151 
    152     <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true"/>
    153     <SimpleNotification message="Welcome to the Orxonox Tutorial.">
     275    <DistanceTrigger name="spawndelaytrigger0" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=2/>
     276    <SimpleNotification message="Press 'F3' to see your mission briefing.">
    154277        <events>
    155278            <trigger>
     
    185308          </events>
    186309</Billboard>
     310
    187311<!-------------------------------------- PART ZERO: How to fly --------------------------------------->
    188     <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=4/>
     312
     313    <DistanceTrigger name="flying1" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=6/>
    189314    <SimpleNotification message="Let's fly to the blinking light.">
    190315        <events>
     
    195320    </SimpleNotification>
    196321
    197     <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=8/>
     322    <DistanceTrigger name="flying2" position="800,700,600" target="Pawn" distance=10 stayActive="true" delay=10/>
    198323    <SimpleNotification message="Use 'W' to accelerate and the mouse to steer.">
    199324        <events>
     
    203328        </events>
    204329    </SimpleNotification>
    205 
    206     <!--DistanceTrigger name="flying3" position="800,700,600" target="Pawn" distance=20 stayActive="true" delay=12/>
    207     <SimpleNotification message="Point with the mouse to the blinking light.">
    208         <events>
    209             <trigger>
    210                 <EventListener event="flying3" />
    211             </trigger>
    212         </events>
    213     </SimpleNotification-->
    214 
    215     <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/>
     330<!-- QUEST-Trigger && Message Trigger -->
     331    <DistanceTrigger name="navigationend" position="0,0,0" distance=800 target="ControllableEntity" stayActive="false" delay=1.1>
     332        <DistanceTrigger name="flying4" position="-900,640,600" target="Pawn" distance=60 stayActive="true" delay=1/>
     333    </DistanceTrigger>
     334
    216335    <SimpleNotification message="Three red arrows just appeared.">
    217336        <events>
     
    231350    </SimpleNotification>
    232351
    233 
     352    <SimpleNotification message="navigationend triggered! But why already yet?" broadcast="true">
     353        <events>
     354            <trigger>
     355                <EventListener event="navigationend" />
     356            </trigger>
     357        </events>
     358    </SimpleNotification>
    234359
    235360<!-------------------------------------- PART ONE : Destroy boxes --------------------------------------->
  • code/branches/gamecontent/src/orxonox/controllers/ArtificialController.cc

    r8892 r8909  
    11101110        {
    11111111            Pawn* pawn = orxonox_cast<Pawn*>(this->getControllableEntity());
    1112             if(pawn)
     1112            if(pawn && pawn->isA(Class(SpaceShip))) //fix for First Person Mode: check for SpaceShip
    11131113            {
    11141114                this->weaponModes_.clear(); // reset previous weapon information
Note: See TracChangeset for help on using the changeset viewer.