90 |
90 |
91 function onGameStart() |
91 function onGameStart() |
92 AnimWait(hero.gear, 3000) |
92 AnimWait(hero.gear, 3000) |
93 FollowGear(hero.gear) |
93 FollowGear(hero.gear) |
94 |
94 |
|
95 ShowMission(unpack(goals[dialog01])) |
|
96 HideMission() |
|
97 |
95 AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0) |
98 AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0) |
96 AddEvent(onHeroSafe, {hero.gear}, heroSafe, {hero.gear}, 0) |
99 AddEvent(onHeroSafe, {hero.gear}, heroSafe, {hero.gear}, 0) |
97 |
100 |
98 SpawnHealthCrate(healthX, health1Y) |
101 SpawnHealthCrate(healthX, health1Y) |
99 SpawnHealthCrate(healthX, health2Y) |
102 SpawnHealthCrate(healthX, health2Y) |
177 -------------- ANIMATIONS ------------------ |
186 -------------- ANIMATIONS ------------------ |
178 |
187 |
179 function Skipanim(anim) |
188 function Skipanim(anim) |
180 if goals[anim] ~= nil then |
189 if goals[anim] ~= nil then |
181 ShowMission(unpack(goals[anim])) |
190 ShowMission(unpack(goals[anim])) |
182 end |
191 end |
183 challengeStart() |
192 challengeStart() |
184 end |
193 end |
185 |
194 |
186 function AnimationSetup() |
195 function AnimationSetup() |
187 -- DIALOG 01 - Start |
196 -- DIALOG 01 - Start |
189 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
198 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
190 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Many meters below the surface ..."), 5000}}) |
199 table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Many meters below the surface ..."), 5000}}) |
191 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("The tunnel is about to get flooded!"), SAY_THINK, 4000}}) |
200 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("The tunnel is about to get flooded!"), SAY_THINK, 4000}}) |
192 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I have to reach the surface as quickly as I can."), SAY_THINK, 4000}}) |
201 table.insert(dialog01, {func = AnimSay, args = {hero.gear, loc("I have to reach the surface as quickly as I can."), SAY_THINK, 4000}}) |
193 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
202 table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
|
203 table.insert(dialog01, {func = ShowMission, args = goals[dialog01]}) |
194 table.insert(dialog01, {func = challengeStart, args = {hero.gear}}) |
204 table.insert(dialog01, {func = challengeStart, args = {hero.gear}}) |
195 end |
205 end |
196 |
206 |
197 ------------------ Other Functions ------------------- |
207 ------------------ Other Functions ------------------- |
198 |
208 |