Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8878 for code/branches


Ignore:
Timestamp:
Oct 2, 2011, 10:05:11 AM (13 years ago)
Author:
jo
Message:

Trying to add quests.

Location:
code/branches/ai2
Files:
2 edited

Legend:

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

    r8875 r8878  
    4747    ?>
    4848
    49   <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg-->
     49    <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg-->
    5050
    5151    <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"/>
    52     <SpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
     52    <TeamSpawnPoint team=0 position="800,700,600" direction="-1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    5353
    5454
     
    5757    <LocalQuest id="missionOne.basicFlying">
    5858        <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." />
    59         <!--subquests>
    60             <Quest id ="questId1" />
    61             <Quest id="questIdn" />
     59        <complete-effects>
     60            <AddQuest questId="missionOne.weaponsystem" />
     61        </complete-effects>
     62    </LocalQuest>
     63
     64    <LocalQuest id="missionOne.weaponsystem">
     65        <QuestDescription title="Weaponsystem" description="INSERT STORY HERE." failmessage="" completeMessage="All right." />
     66        <subquests>
     67            <LocalQuest id ="missionOne.weaponsystemI">
     68                <QuestDescription title="Destroy Boxes" description="Test your four different weapons on the four boxes. The four weapons are laser (left click), plasma (right click), self targeting rockets (middle click) and manual rockets (press 'T'). Attention if you use manual rockets: Press 'T' only once to start the rocket. If you miss your target you can get out of the rocket, by clicking or pressing 'T' once more." failmessage="" completeMessage="" />
     69                <complete-effects>
     70                    <AddQuest questId="missionOne.weaponsystemII" />
     71                </complete-effects>
     72            </LocalQuest>
     73            <LocalQuest id="missionOne.weaponsystemII">
     74                <QuestDescription title="" description="" failmessage="" completeMessage="" />
     75                <complete-effects>
     76                    <AddQuest questId="missionOne.DuballStation" />
     77                </complete-effects>
     78            </LocalQuest>
    6279        </subquests>
    6380        <hints>
    64             <QuestHint id="hintId1" /> //A list of n QuestHints, see QuestHint for the full XML representation of those.
    65             ...
    66             <QuestHint id="hintIdn" />
     81            <QuestHint id="missionOne.weaponsystem.laser">
     82              <QuestDescription title="Laser" description="The laser is a standard weapon. It is fast and precise but does not deal much damage." />
     83            </QuestHint>
     84            <QuestHint id="missionOne.weaponsystem.lightningGun">
     85              <QuestDescription title="Lightninggun" description="That was the lightning gun. Its plasma munition is quite slow, but a normal spaceship can't take more than three hits of such a strong weapon. That could be your favourite weapon for close range combat or if you want to hit a really slow enemy." />
     86            </QuestHint>
     87            <QuestHint id="missionOne.weaponsystem.targetSeekingRocket">
     88              <QuestDescription title="Target Seeking Rocket" description="The target seeking rockets follow slow targets on their own." />
     89            </QuestHint>
     90            <QuestHint id="missionOne.weaponsystem.manualrocket">
     91              <QuestDescription title="Manual Rocket" description="Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. The total amount of both manual and target seeking rockets is limited to 10." />
     92            </QuestHint>
    6793        </hints>
    68         <fail-effects>
    69             <QuestEffect /> //A list of QuestEffects, invoked when the Quest is failed, see QuestEffect for the full XML representation.
    70             ...
    71             <QuestEffect />
    72         </fail-effects>
    7394        <complete-effects>
    74             <QuestEffect /> //A list of QuestEffects, invoked when the Quest is completed, see QuestEffect for the full XML representation.
    75             ...
    76             <QuestEffect />
    77         </complete-effects-->
     95        </complete-effects>
    7896    </LocalQuest>
    7997
    80     <LocalQuest id="missionOne.weaponsystemI">
    81         <QuestDescription title="Weaponsystem I" description="INSERT STORY HERE. Test your four different weapons on the four boxes. The four weapons are laser (left click), plasma (right click), self targeting rockets (middle click) and manual rockets (press 'T'). Attention if you use manual rockets: Press 'T' only once to start the rocket. If you miss your target you can get out of the rocket, by clicking or pressing 'T' once more." failmessage="" completeMessage="All right." />
    82         <!--subquests>
    83             <Quest id ="questId1" />
    84             <Quest id="questIdn" />
    85         </subquests>
    86         <hints>
    87             <QuestHint id="hintId1" />
    88            
    89 "The laser is a standard weapon. It is fast and precise but does not deal much damage."
    90 "That was the lightning gun. Its plasma munition is quite slow, but a normal spaceship can't take more than three hits of such a strong weapon. That could be your favourite weapon for close range combat or if you want to hit a really slow enemy."
    91 "The target seeking rockets follow slow targets on their own."
    92 "Task complete. Manual rockets are your most powerful weapon. But since you have to steer it to your target yourself, you will leave your spaceship unprotected for a while. The total amount of both manual and target seeking rockets is limited to 10."
    93 
    94 
    95             <QuestHint id="hintIdn" />
    96         </hints>
    97         <fail-effects>
    98             <QuestEffect />
    99             ...
    100             <QuestEffect />
    101         </fail-effects>
     98    <LocalQuest id="missionOne.DuballStation">
     99        <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." />
    102100        <complete-effects>
    103             <QuestEffect />
    104             ...
    105             <QuestEffect />
    106         </complete-effects-->
     101            <AddQuest questId="missionOne.getHelp" />
     102        </complete-effects>
    107103    </LocalQuest>
    108104
    109 
    110 
     105    <LocalQuest id="missionOne.getHelp">
     106        <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." />
     107        <complete-effects>
     108            <AddQuest questId="missionOne.getHome" />
     109        </complete-effects>
     110    </LocalQuest>
     111
     112    <LocalQuest id="missionOne.getHome">
     113        <QuestDescription title="Return ASAP" description="" failmessage="" completeMessage="Well done." />
     114        <complete-effects>
     115            <AddQuest questId="missionOne.defence" />
     116        </complete-effects>
     117    </LocalQuest>
     118
     119    <LocalQuest id="missionOne.defence">
     120        <QuestDescription title="Defence" description="" failmessage="" completeMessage="Well done." />
     121    </LocalQuest>
    111122
    112123
     
    134145<!--
    135146
    136 
    137 
    138147"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 .."
    139148
     
    187196        </events>
    188197    </SimpleNotification>
    189 
     198                <BlinkingBillboard position="-200,0,0" frequency=0.2 amplitude=1 material="Flares/lensflare" colour="0,0,1"/>
    190199<!-- @Objects: 4 boxes (uncontrolled pawns) -->
    191200                <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    192201                    <attached>
     202                        <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    193203                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    194204                    </attached>
     
    199209
    200210                <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box visible="true">
    201                     <!--events>
    202                         <visibility>
    203                             <EventListener event=spawndelaytrigger3 />
    204                         </visibility>
    205                    </events-->
    206 
    207211                    <attached>
     212                        <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    208213                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    209214                    </attached>
     
    214219                <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box >
    215220                    <attached>
     221                        <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    216222                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
    217223                    </attached>
     
    223229                    <attached>
    224230                        <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     231                        <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1"/>
    225232                    </attached>
    226233                    <collisionShapes>
     
    310317<!-- @Objects: 2 pirates moving in squares, nolethal -->
    311318                <SpaceShip position="0,2000,200" lookat="0,0,0" name="movingtarget" >
     319                    <attached>
     320                        <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1">
     321                            <events>
     322                                <visibility>
     323                                    <EventListener event="boxtrigger4" />
     324                                </visibility>
     325                            </events>
     326                        </BlinkingBillboard>
     327                    </attached>
    312328                    <templates>
    313329                      <Template link=spaceshippirate />
     
    326342
    327343                <SpaceShip position="0,2000,400" lookat="0,0,0" name="movingtarget">
     344                    <attached>
     345                        <BlinkingBillboard frequency=0.2 amplitude=1.2 material="Flares/lensflare" colour="0,0,1">
     346                            <events>
     347                                <visibility>
     348                                    <EventListener event="boxtrigger4" />
     349                                </visibility>
     350                            </events>
     351                        </BlinkingBillboard>
     352                    </attached>
    328353                  <templates>
    329354                    <Template link=spaceshippirate />
     
    676701
    677702
    678     <SimpleNotification message="You killed the Hydrogen Farmer!" broadcast="true">
     703    <SimpleNotification message="Oh no! You killed the Hydrogen Farmer!" broadcast="true">
    679704        <events>
    680705            <trigger>
     
    684709    </SimpleNotification>
    685710
    686     <SimpleNotification message="You killed the SpaceCruiser!" broadcast="true">
     711    <SimpleNotification message="Oh no! You killed the SpaceCruiser!" broadcast="true">
    687712        <events>
    688713            <trigger>
     
    795820        </templates>
    796821        <controller>
    797             <WaypointPatrolController alertnessradius=3129 team=0 active=false>
     822            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    798823                <waypoints>
    799824                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
     
    819844        </templates>
    820845        <controller>
    821             <WaypointPatrolController alertnessradius=3129 team=0 active=false>
     846            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    822847                <waypoints>
    823848                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
     
    843868        </templates>
    844869        <controller>
    845             <WaypointPatrolController alertnessradius=3129 team=0 active=false>
     870            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    846871                <waypoints>
    847872                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
     
    867892        </templates>
    868893        <controller>
    869             <WaypointPatrolController alertnessradius=3129 team=0 active=false>
     894            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    870895                <waypoints>
    871896                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
     
    891916        </templates>
    892917        <controller>
    893             <WaypointPatrolController alertnessradius=3129 team=0 active=false>
     918            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    894919                <waypoints>
    895920                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
     
    915940        </templates>
    916941        <controller>
    917             <WaypointPatrolController alertnessradius=3129 team=0 active=false>
     942            <WaypointPatrolController alertnessradius=3129 team=1 active=false>
    918943                <waypoints>
    919944                    <Model mesh="cube.mesh" scale=0 position="-1300,-600,900" />
  • code/branches/ai2/src/orxonox/interfaces/RadarViewable.h

    r8875 r8878  
    3838#include "core/OrxonoxClass.h"
    3939#include "core/SmartPtr.h"
    40 //TODO: if a RadarViewable changes visibility or activity, the event is not correctly working
     40
    4141namespace orxonox
    4242{
Note: See TracChangeset for help on using the changeset viewer.