Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4653 for data


Ignore:
Timestamp:
Jan 30, 2007, 11:21:47 AM (18 years ago)
Author:
snellen
Message:

the questguis are now started by script

Location:
data/trunk
Files:
3 edited

Legend:

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

    r4646 r4653  
    534534   <QuestGUI>
    535535      <name>Second_Quest</name>
    536       <quest-name>Second Quest</quest-name>
     536      <quest-name>Second_Quest</quest-name>
    537537      <quest-description>
    538538      Congratulations!You've just found the m\naybe most important place on this Space-station!Go, get yourself a drink...
     
    557557      <Script>
    558558        <file>spacestation/switchtohangar.lua</file>
    559       </Script>
    560 
    561       <Script>
    562         <file>spacestation/quest.lua</file>
    563559      </Script>
    564560
  • data/trunk/scripts/spacestation/spaceship_hangar.lua

    r4603 r4653  
    2020
    2121function switchToVertical(timestep)
    22 if gameWorld:setNextStoryName( "In Space" ) then
     22if gameWorld:setNextStoryName( "Mission 1" ) then
    2323gameWorld:stop()
    2424end
  • data/trunk/scripts/spacestation/spaceship_tower.lua

    r4468 r4653  
    66trigger:setActiveOnCreation(true)
    77
     8triggerOne = ScriptTrigger()
     9triggerOne:setScript("spaceship_tower.lua")
     10triggerOne:setFunction("startSecondQuest")
     11triggerOne:setTarget("Player")
     12triggerOne:setAbsCoor(1177.693, -12.796, 203.514)
     13triggerOne:setRadius(50)
     14triggerOne:setDebugDraw(true)
     15
     16
    817-- Get objects from orxonox
    918thisscript:addObject("FPSPlayer", "Player")
    1019thisscript:addObject("GenericNPC", "pedestrianOne")
    1120thisscript:addObject("GenericNPC", "hangarguyOne")
     21thisscript:addObject("QuestGUI", "First_Quest")
     22thisscript:addObject("QuestGUI", "Second_Quest")
     23
     24
     25
     26
     27-- Globals
     28questOneStarted = false
    1229
    1330
     
    149166
    150167
     168function startSecondQuest(timestep)
     169
     170--if First_Quest:isActive() then
     171Second_Quest:startGUI()
     172return true
     173--end
     174
     175--return false
     176end
     177
    151178
    152179-- THE tick function
     
    155182--io.write("Towerscript called \n")
    156183
     184if not questOneStarted then
     185First_Quest:startGUI()
     186questOneStarted = true
     187end
     188
     189
    157190pedestrian:tick(timestep)
    158191hangarguy:tick(timestep)
Note: See TracChangeset for help on using the changeset viewer.