Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4671 for data


Ignore:
Timestamp:
Jan 30, 2007, 8:39:21 PM (18 years ago)
Author:
snellen
Message:

Added quests to spacestation hangar

Location:
data/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/sp_level_spacestation1.oxw

    r4667 r4671  
    5454      <md2texture>models/creatures/doom_male/male_albat.pcx</md2texture>
    5555      <abs-coor>1177.693, -12, 203.514</abs-coor>
     56      <abs-dir>3.14, 0, 1, 0</abs-dir>
     57    </GenericNPC>
     58
     59
     60    <GenericNPC>
     61      <name>panicGuy</name>
     62      <model>models/creatures/doom_male/male.md2, 10</model>
     63      <md2texture>models/creatures/doom_male/male_blues.pcx</md2texture>
     64      <abs-coor>397.930054, 21.617195, 357.360992 </abs-coor>
    5665      <abs-dir>3.14, 0, 1, 0</abs-dir>
    5766    </GenericNPC>
     
    522531      <quest-name>First Quest</quest-name>
    523532      <quest-description>
    524         Hello Player.W\nelcome to the world of Orxonox! First of all: go to the Gloriabar and talk the to your contact person!
     533        Hello Player.Welcome to the world of Orxonox! First of all: Go to the Gloriabar and talk the to your contact person!
    525534       </quest-description>
    526535      <quest-picture>/textures/orx_REMOVE_ME.png</quest-picture>
    527536      <quest-difficulty>D\ifficulty:   Easy P </quest-difficulty>
    528537      <quest-persons>\nlayers needed:  1</quest-persons>
    529       <reward-picture>/textures/goldsack.png</reward-picture>
     538      <reward-picture>/textures/orx_REMOVE_ME.png</reward-picture>
    530539      <reward-description>A\n bag full of gold!!!</reward-description>
    531540    </QuestGUI>
     
    536545      <quest-name>Second_Quest</quest-name>
    537546      <quest-description>
    538       Congratulations!You've just found the m\naybe most important place on this Space-station!Go, get yourself a drink...
     547      Congratulations! You've just found the maybe most important place on this Spacestation! \n Go get yourself a drink...
    539548       </quest-description>
    540549      <quest-picture>/textures/orx_REMOVE_ME.png</quest-picture>
     
    543552      <reward-picture>/textures/martini.png</reward-picture>
    544553      <reward-description>A\n tasty Drink</reward-description>
     554    </QuestGUI>
     555
     556    <QuestGUI>
     557      <name>Third_Quest</name>
     558      <quest-name>Third_Quest</quest-name>
     559      <quest-description>
     560      Aaaahh! We're being attacked! Quick get to the hangar and reinforce our troops! Move out!
     561       </quest-description>
     562      <quest-picture>/textures/orx_REMOVE_ME.png</quest-picture>
     563      <quest-difficulty>Difficulty:   Medium </quest-difficulty>
     564      <quest-persons>Persons needed:  1</quest-persons>
     565      <reward-picture>/textures/martini.png</reward-picture>
     566      <reward-description>Reward: Die in honour for your world!</reward-description>
    545567    </QuestGUI>
    546568
  • data/trunk/levels/sp_level_spacestation1B.oxw

    r4658 r4671  
    537537    </BspEntity>
    538538
     539    <QuestGUI>
     540      <name>First_Quest</name>
     541      <quest-name>First Quest</quest-name>
     542      <quest-description>
     543       Welcome to the hangar! Now go to the shop and get a ship! ASAP!
     544       </quest-description>
     545      <quest-picture>/textures/orx_REMOVE_ME.png</quest-picture>
     546      <quest-difficulty>Difficulty: Easy \n</quest-difficulty>
     547      <quest-persons>Players needed:  1</quest-persons>
     548      <reward-picture>/textures/goldsack.png</reward-picture>
     549      <reward-description>A bag full of gold!!!</reward-description>
     550    </QuestGUI>
     551
     552    <QuestGUI>
     553      <name>Second_Quest</name>
     554      <quest-name>Second Quest</quest-name>
     555      <quest-description>
     556       Hey you are going on a very important misson! You will need more than this rusty can!
     557       </quest-description>
     558      <quest-picture>/textures/orx_REMOVE_ME.png</quest-picture>
     559      <quest-difficulty>Difficulty: Easy \n</quest-difficulty>
     560      <quest-persons>Players needed:  1</quest-persons>
     561      <reward-picture>/textures/goldsack.png</reward-picture>
     562      <reward-description>You ain't winning a reward with this piece of ... </reward-description>
     563    </QuestGUI>
     564
     565
     566   <QuestGUI>
     567      <name>Third_Quest</name>
     568      <quest-name>Third Quest</quest-name>
     569      <quest-description>
     570       There you are. This ship will bring you a lot of pleasure! Sould I wrap it up ?
     571       </quest-description>
     572      <quest-picture>/textures/orx_REMOVE_ME.png</quest-picture>
     573      <quest-difficulty>Difficulty: Easy \n</quest-difficulty>
     574      <quest-persons>Players needed:  1</quest-persons>
     575      <reward-picture>/textures/goldsack.png</reward-picture>
     576      <reward-description> Here we go! </reward-description>
     577    </QuestGUI>
     578
    539579  </WorldEntities>
    540580
     
    552592    </Scripts>
    553593  </ScriptManager>
     594
     595
     596   
    554597
    555598  <Music>sounds/ambient/hangar02.ogg</Music>
  • data/trunk/scripts/cutscene/cutscene.lua

    r4659 r4671  
    194194cameraManager:setCam("CameraOne")
    195195cameraManager:jumpCurrCam(125,0,-245)
    196 cameraManager:atachCurrCameraToWorldEntity("NPC", "transporterOne")
    197 --cameraManager:changeCurrTarget("Building", "zhara")
     196--cameraManager:atachCurrCameraToWorldEntity("NPC", "transporterOne")
     197cameraManager:changeCurrTarget("Building", "zhara")
    198198cameraSwitched = true
    199199end
  • data/trunk/scripts/spacestation/spaceship_hangar.lua

    r4653 r4671  
    11 -- Create the trigger
    2 --trigger = ScriptTrigger()
    3 --trigger:setName("maintrigger")
    4 --trigger:setScript("spaceship_hangar.lua")
    5 --trigger:setFunction("tick")
    6 --trigger:setActiveOnCreation(true)
     2trigger = ScriptTrigger()
     3trigger:setName("maintrigger")
     4trigger:setScript("spaceship_hangar.lua")
     5trigger:setFunction("tick")
     6trigger:setActiveOnCreation(true)
    77 
    8 
    9 -- Cameraswitchzero
    108triggerZero = ScriptTrigger()
    119triggerZero:setScript("spaceship_hangar.lua")
    12 triggerZero:setFunction("switchToVertical")
    13 triggerZero:setAbsCoor(5214.267090, 21.617924, -4482.451660)
     10triggerZero:setFunction("startQuestThree")
     11triggerZero:setAbsCoor(3211.242188, 62.026615, -4471.773926)
    1412triggerZero:setTarget("Player")
    15 triggerZero:setRadius(50)
     13triggerZero:setRadius(140)
    1614--triggerZero:setDebugDraw(true)
    1715
    18 thisscript:addObjectAsName("GameWorld", "Space Station 1B", "gameWorld")
    1916
    2017
    21 function switchToVertical(timestep)
     18triggerOne = ScriptTrigger()
     19triggerOne:setScript("spaceship_hangar.lua")
     20triggerOne:setFunction("startQuestTwo")
     21triggerOne:setAbsCoor(3454.067383, 58.026615, -4117.536133)
     22triggerOne:setTarget("Player")
     23triggerOne:setRadius(140)
     24
     25
     26thisscript:addObjectAsName("GameWorld", "Space Station 1B", "gameWorld")
     27thisscript:addObject("QuestGUI", "First_Quest")
     28thisscript:addObject("QuestGUI", "Second_Quest")
     29thisscript:addObject("QuestGUI", "Third_Quest")
     30
     31firstQuestShowed = false
     32
     33function switchToVertical()
    2234if gameWorld:setNextStoryName( "Mission 1" ) then
    2335gameWorld:stop()
    2436end
     37
     38end
     39
     40function startQuestTwo(timestep)
     41Second_Quest:startGUI()
    2542return true
    2643end
    2744
     45function startQuestThree(timestep)
     46Third_Quest:startGUI()
     47return true
     48end
     49
     50
     51
     52function tick(timestep)
     53
     54if not firstQuestShowed then
     55First_Quest:startGUI()
     56firstQuestShowed = true
     57end
     58
     59if Third_Quest:isActive() then
     60switchToVertical()
     61end
     62
     63return false
     64end
  • data/trunk/scripts/spacestation/spaceship_tower.lua

    r4659 r4671  
    1414--triggerOne:setDebugDraw(true)
    1515
     16triggerTwo = ScriptTrigger()
     17triggerTwo:setScript("spaceship_tower.lua")
     18triggerTwo:setFunction("startThirdQuest")
     19triggerTwo:setTarget("Player")
     20triggerTwo:setTriggerParent("panicGuy")
     21triggerTwo:setRadius(70)
     22--triggerTwo:setDebugDraw(true)
    1623
    1724-- Get objects from orxonox
     
    1926thisscript:addObject("GenericNPC", "pedestrianOne")
    2027thisscript:addObject("GenericNPC", "hangarguyOne")
     28thisscript:addObject("GenericNPC", "panicGuy")
    2129thisscript:addObject("QuestGUI", "First_Quest")
    2230thisscript:addObject("QuestGUI", "Second_Quest")
     31thisscript:addObject("QuestGUI", "Third_Quest")
    2332
    2433
     
    2736-- Globals
    2837questOneStarted = false
    29 
     38barReached = false
     39runProg = true
    3040
    3141-- pedestrian
     
    166176
    167177
     178-- pedestrian
     179panic = { }
     180--{
     181 function panic:tick(timestep)
     182
     183  if runProg and Player:getAbsCoorX() < 700 then
     184  panicGuy:setVisibility(true)
     185  panicGuy:runTo( 532.556641, 21.618149, 121.871323 )
     186  panicGuy:runTo( 544.452026, 21.618143, 50.025143 )
     187 
     188  runProg = false
     189end
     190
     191 end
     192
     193--}
     194
     195
     196
    168197function startSecondQuest(timestep)
    169 
    170198if First_Quest:isActive() then
    171199Second_Quest:startGUI()
    172 end
    173 
    174200return true
     201end
     202
     203return false
     204end
     205
     206
     207function startThirdQuest(timestep)
     208
     209if barReached then
     210Third_Quest:startGUI()
     211return true
     212end
     213
     214return false
    175215end
    176216
     
    182222
    183223if not questOneStarted then
     224panicGuy:setVisibility(false)
    184225First_Quest:startGUI()
    185226questOneStarted = true
    186227end
    187228
     229if Player:getAbsCoorX() > 800 then
     230barReached = true
     231end
     232
     233if barReached then
     234panic:tick(timestep)
     235end
    188236
    189237pedestrian:tick(timestep)
    190238hangarguy:tick(timestep)
    191239
     240
    192241return false
    193242end
Note: See TracChangeset for help on using the changeset viewer.