Changeset 4765
- Timestamp:
- Apr 6, 2007, 7:14:55 PM (18 years ago)
- Location:
- data/trunk/scripts
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/scripts/cutscene/cutscene.lua
r4760 r4765 1 1 -- Main trigger 2 trigger = ScriptTrigger() -- Create the trigger2 trigger = TickTrigger() -- Create the trigger 3 3 trigger:setScript("cutscene.lua") -- Tell the trigger which script to call 4 4 trigger:setFunction("tick") -- Tell the trigger which scriptfunction to call 5 trigger:setActiveOnCreation(true)5 6 6 7 7 8 8 -- Cameraswitchzero 9 triggerZero = S criptTrigger()9 triggerZero = SpaceTrigger() 10 10 triggerZero:setScript("cutscene.lua") 11 11 triggerZero:setFunction("switchCamToBomber") … … 17 17 18 18 -- Cameraswitchone 19 triggerOne = S criptTrigger()19 triggerOne = SpaceTrigger() 20 20 triggerOne:setScript("cutscene.lua") 21 21 triggerOne:setFunction("switchCamTargetToEarth") … … 27 27 28 28 -- Cameraswitchtwo 29 triggerTwo = S criptTrigger()29 triggerTwo = SpaceTrigger() 30 30 triggerTwo:setScript("cutscene.lua") 31 31 triggerTwo:setFunction("switchCamToSpaceship") … … 36 36 37 37 -- Cameraswitchthree 38 triggerThree = S criptTrigger()38 triggerThree = SpaceTrigger() 39 39 triggerThree:setScript("cutscene.lua") 40 40 triggerThree:setFunction("switchCamToStation") … … 46 46 47 47 -- startScenery 48 triggerFour = S criptTrigger()48 triggerFour = SpaceTrigger() 49 49 triggerFour:setScript("cutscene.lua") 50 50 triggerFour:setFunction("startSceneryOne") … … 53 53 triggerFour:setRadius(5) 54 54 --triggerFour:setDebugDraw(true) 55 56 -- Scroller 57 triggerScr = TimeTrigger() 58 triggerScr:setScript("cutscene.lua") 59 triggerScr:setFunction("startScrolling") 60 triggerScr:setDelay(10) 55 61 56 62 … … 104 110 end 105 111 106 107 112 -- Start 108 113 function startSceneryOne(timestep) … … 158 163 fighterThree:pause(true) 159 164 bomberThree:pause(true) 160 bomberFour:pause(false) 161 162 return true 163 164 end 165 165 bomberFour:pause(true) 166 167 return true 168 169 end 170 171 -- Start the scrolling screen 172 function startScrolling(timestep) 173 scrollingScreen:start() 174 return true 175 end 166 176 167 177 -- THE tick function … … 169 179 function tick(timestep) 170 180 time = time + timestep 181 triggerScr:start() 171 182 172 183 if not sceneryOneStopped then … … 204 215 end 205 216 206 if time > 10 then207 scrollingScreen:start()208 end209 210 211 217 if time > 6 and stationReached then 212 218 gameWorld:setNextStoryName( "Space Station 1" ) -
data/trunk/scripts/spacestation/spaceship_hangar.lua
r4671 r4765 1 1 -- Create the trigger 2 trigger = ScriptTrigger()2 trigger = TickTrigger() 3 3 trigger:setName("maintrigger") 4 4 trigger:setScript("spaceship_hangar.lua") 5 5 trigger:setFunction("tick") 6 trigger:setActiveOnCreation(true) 6 7 7 8 triggerZero = S criptTrigger()8 triggerZero = SpaceTrigger() 9 9 triggerZero:setScript("spaceship_hangar.lua") 10 10 triggerZero:setFunction("startQuestThree") … … 16 16 17 17 18 triggerOne = S criptTrigger()18 triggerOne = SpaceTrigger() 19 19 triggerOne:setScript("spaceship_hangar.lua") 20 20 triggerOne:setFunction("startQuestTwo") -
data/trunk/scripts/spacestation/spaceship_tower.lua
r4671 r4765 1 1 -- Create the trigger 2 trigger = ScriptTrigger()2 trigger = TickTrigger() 3 3 trigger:setName("maintrigger") 4 4 trigger:setScript("spaceship_tower.lua") 5 5 trigger:setFunction("tick") 6 trigger:setActiveOnCreation(true) 7 8 triggerOne = ScriptTrigger() 6 7 triggerOne = SpaceTrigger() 9 8 triggerOne:setScript("spaceship_tower.lua") 10 9 triggerOne:setFunction("startSecondQuest") … … 14 13 --triggerOne:setDebugDraw(true) 15 14 16 triggerTwo = S criptTrigger()15 triggerTwo = SpaceTrigger() 17 16 triggerTwo:setScript("spaceship_tower.lua") 18 17 triggerTwo:setFunction("startThirdQuest") -
data/trunk/scripts/spacestation/switchtohangar.lua
r4614 r4765 1 1 -- Create the trigger 2 trigger = S criptTrigger()2 trigger = SpaceTrigger() 3 3 trigger:setScript("switchtohangar.lua") 4 4 trigger:setFunction("tick") -
data/trunk/scripts/spacestation/switchtotower.lua
r4614 r4765 1 1 -- Create the trigger 2 trigger = S criptTrigger()2 trigger = SpaceTrigger() 3 3 trigger:setScript("switchtotower.lua") 4 4 trigger:setFunction("tick") -
data/trunk/scripts/vertical_scroller/vs1.lua
r4760 r4765 42 42 -- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld") 43 43 44 triggerInit = ScriptTrigger()44 triggerInit = TickTrigger() 45 45 triggerInit:setScript("vs1.lua") 46 46 triggerInit:setFunction("init") 47 triggerInit:setActiveOnCreation(true)48 47 49 48 -- Create the cutscene trigger 50 triggerCutscene = S criptTrigger()49 triggerCutscene = SpaceTrigger() 51 50 triggerCutscene:setScript("vs1.lua") 52 51 triggerCutscene:setFunction("startSequence") … … 55 54 triggerCutscene:setAbsCoor(2300 , 0 , 0) 56 55 triggerCutscene:setDebugDraw(false) 57 triggerCutscene:setActiveOnCreation(false)58 56 59 57 -- Create another cutscene trigger 60 triggerCutscene02 = ScriptTrigger()58 triggerCutscene02 = TickTrigger() 61 59 triggerCutscene02:setScript("vs1.lua") 62 60 triggerCutscene02:setFunction("switchToOtherPirate") 63 triggerCutscene02:setActiveOnCreation(true)64 61 65 62 -- Create another cutscene trigger 66 triggerCutscene03 = ScriptTrigger()63 triggerCutscene03 = TickTrigger() 67 64 triggerCutscene03:setScript("vs1.lua") 68 65 triggerCutscene03:setFunction("surviver") 69 triggerCutscene03:setActiveOnCreation(true)70 66 71 67 -- Create another cutscene trigger 72 triggerCutscene04 = ScriptTrigger()68 triggerCutscene04 = TickTrigger() 73 69 triggerCutscene04:setScript("vs1.lua") 74 70 triggerCutscene04:setFunction("onNoxons") 75 triggerCutscene04:setActiveOnCreation(true)76 71 77 72 -- Create another cutscene trigger 78 triggerCutscene05 = ScriptTrigger()73 triggerCutscene05 = TickTrigger() 79 74 triggerCutscene05:setScript("vs1.lua") 80 75 triggerCutscene05:setFunction("changeFromNoxon") 81 triggerCutscene05:setActiveOnCreation(true) 76 82 77 83 78 -- Create another trigger 84 triggerStop = S criptTrigger()79 triggerStop = SpaceTrigger() 85 80 triggerStop:setScript("vs1.lua") 86 81 triggerStop:setFunction("stopPlayer") … … 89 84 triggerStop:setAbsCoor(8000 , 0 , -2000) 90 85 triggerStop:setDebugDraw(false) 91 triggerStop:setActiveOnCreation(false)92 86 93 87 -- Create the cool Ragnar trigger 94 triggerRagnar = S criptTrigger()88 triggerRagnar = SpaceTrigger() 95 89 triggerRagnar:setScript("vs1.lua") 96 90 triggerRagnar:setFunction("startRagnar") … … 99 93 triggerRagnar:setAbsCoor(3600 , 0 , -15) 100 94 triggerRagnar:setDebugDraw(false) 101 triggerRagnar:setActiveOnCreation(false)102 95 103 96 -- Create a great AI activater 104 --triggerAI01 = S criptTrigger()97 --triggerAI01 = SpaceTrigger() 105 98 --triggerAI01:setScript("vs1.lua") 106 99 --triggerAI01:setFunction("activateGroup1") … … 112 105 113 106 -- Create another great AI activater 114 --triggerAI02 = S criptTrigger()107 --triggerAI02 = SpaceTrigger() 115 108 --triggerAI02:setScript("vs1.lua") 116 109 --triggerAI02:setFunction("activateGroup2") … … 119 112 --triggerAI02:setAbsCoor(4900, 0, -45) 120 113 --triggerAI02:setDebugDraw(false) 121 --triggerAI02:setActiveOnCreation(false)122 114 123 115 -- Create another great AI activater 124 --triggerAI03 = S criptTrigger()116 --triggerAI03 = SpaceTrigger() 125 117 --triggerAI03:setScript("vs1.lua") 126 118 --triggerAI03:setFunction("activateGroup3") … … 129 121 --triggerAI03:setAbsCoor(5850, 0, -170) 130 122 --triggerAI03:setDebugDraw(false) 131 --triggerAI03:setActiveOnCreation(false)132 123 133 124 -- Create another great AI activater 134 --triggerAI04 = S criptTrigger()125 --triggerAI04 = SpaceTrigger() 135 126 --triggerAI04:setScript("vs1.lua") 136 127 --triggerAI04:setFunction("startRagnar2") … … 139 130 --triggerAI04:setAbsCoor(6500, 0, -350) 140 131 --triggerAI04:setDebugDraw(false) 141 --triggerAI04:setActiveOnCreation(false) 132 142 133 143 134
Note: See TracChangeset
for help on using the changeset viewer.