238 crates[5] = SpawnHealthCrate(1486, 1694) -- Walking on Ice |
238 crates[5] = SpawnHealthCrate(1486, 1694) -- Walking on Ice |
239 crates[6] = SpawnHealthCrate(2033, 1470) -- Walking on Ice completed |
239 crates[6] = SpawnHealthCrate(2033, 1470) -- Walking on Ice completed |
240 crates[7] = SpawnHealthCrate(1297, 1683) -- Back Jumping 2 |
240 crates[7] = SpawnHealthCrate(1297, 1683) -- Back Jumping 2 |
241 crates[8] = SpawnSupplyCrate(1851, 1402, amSwitch, 100) -- Switch Hedgehog |
241 crates[8] = SpawnSupplyCrate(1851, 1402, amSwitch, 100) -- Switch Hedgehog |
242 crates[9] = SpawnHealthCrate(564, 1772) -- Mission Panel |
242 crates[9] = SpawnHealthCrate(564, 1772) -- Mission Panel |
|
243 crates[10] = SpawnHealthCrate(2290, 1622) -- Turning Around |
243 end |
244 end |
244 |
245 |
245 local function victory() |
246 local function victory() |
246 ShowMission(loc("Basic Movement Training"), loc("Training complete!"),loc("Congratulations! You have completed the obstacle course!"), 0, 0) |
247 ShowMission(loc("Basic Movement Training"), loc("Training complete!"),loc("Congratulations! You have completed the obstacle course!"), 0, 0) |
247 SendStat(siGameResult, loc("You have completed the Basic Movement Training!")) |
248 SendStat(siGameResult, loc("You have completed the Basic Movement Training!")) |
291 loc("Long Jump: [Enter]"), 2, 5000) |
292 loc("Long Jump: [Enter]"), 2, 5000) |
292 elseif gear == crates[2] then |
293 elseif gear == crates[2] then |
293 victory() |
294 victory() |
294 elseif gear == crates[4] then |
295 elseif gear == crates[4] then |
295 ShowMission(loc("Basic Movement Training"), loc("Back Jumping (1/2)"), |
296 ShowMission(loc("Basic Movement Training"), loc("Back Jumping (1/2)"), |
296 loc("Now just proceed to the next crates.").."|".. |
297 loc("For the next crate, you have to do back jumps.") .. "|" .. |
297 loc("To get over the next obstacles, you have to do back jumps.") .. "|" .. |
|
298 loc("High Jump: [Backspace]").."|"..loc("Back Jump: [Backspace] ×2"), 2, 5000) |
298 loc("High Jump: [Backspace]").."|"..loc("Back Jump: [Backspace] ×2"), 2, 5000) |
299 elseif gear == crates[7] then |
299 elseif gear == crates[7] then |
300 ShowMission(loc("Basic Movement Training"), loc("Back Jumping (2/2)"), |
300 ShowMission(loc("Basic Movement Training"), loc("Back Jumping (2/2)"), |
301 loc("To get over the next obstacle, you need to perform your back jump precisely.").."|".. |
301 loc("To get over the next obstacle, you need to perform your back jump precisely.").."|".. |
302 loc("Hint: Hit “High Jump” again when you're close to the highest point of a high jump.").."|".. |
302 loc("Hint: Hit “High Jump” again when you're close to the highest point of a high jump.").."|".. |
309 loc("If you don't want to slip away, you have to keep moving!").."|".. |
309 loc("If you don't want to slip away, you have to keep moving!").."|".. |
310 loc("You can also hold down the key for “Precise Aim” to prevent slipping.").."|".. |
310 loc("You can also hold down the key for “Precise Aim” to prevent slipping.").."|".. |
311 loc("Precise Aim: [Left Shift]"), 2, 9000) |
311 loc("Precise Aim: [Left Shift]"), 2, 9000) |
312 elseif gear == crates[6] then |
312 elseif gear == crates[6] then |
313 ShowMission(loc("Basic Movement Training"), loc("A mysterious Box"), |
313 ShowMission(loc("Basic Movement Training"), loc("A mysterious Box"), |
314 loc("The next crate is an utility crate.").."|".. loc("What's in the box, you ask? Let's find out!").."|".. |
314 loc("The next crate is an utility crate.").."|"..loc("What's in the box, you ask? Let's find out!").."|".. |
315 loc("Remember: Hold down Left Shift to prevent slipping"), 2, 6000) |
315 loc("Remember: Hold down [Left Shift] to prevent slipping"), 2, 6000) |
316 elseif gear == crates[8] then |
316 elseif gear == crates[8] then |
317 ShowMission(loc("Basic Movement Training"), loc("Switch Hedgehog (1/3)"), |
317 ShowMission(loc("Basic Movement Training"), loc("Switch Hedgehog (1/3)"), |
318 loc("You have collected the “Switch Hedgehog” utility!").."|".. |
318 loc("You have collected the “Switch Hedgehog” utility!").."|".. |
319 loc("This allows to select any hedgehog in your team!").."|".. |
319 loc("This allows to select any hedgehog in your team!").."|".. |
320 loc("Select “Switch Hedgehog” from the ammo menu and|hit the “Attack” key.").."|".. |
320 loc("Select “Switch Hedgehog” from the ammo menu and|hit the “Attack” key.").."|".. |
321 loc("Open ammo menu: [Right click]").."|".. |
321 loc("Open ammo menu: [Right click]").."|".. |
322 loc("Attack: [Space]"), 2, 30000) |
322 loc("Attack: [Space]"), 2, 30000) |
323 elseif gear == crates[3] then |
323 elseif gear == crates[3] then |
324 ShowMission(loc("Basic Movement Training"), loc("Rubber"), loc("As you probably noticed, these rubber bands|are VERY elastic. Hedgehogs and many other|things will bounce off without taking any damage.").."|".. |
324 ShowMission(loc("Basic Movement Training"), loc("Rubber"), loc("As you probably noticed, these rubber bands|are VERY elastic. Hedgehogs and many other|things will bounce off without taking any damage.").."|".. |
325 loc("Now try to get out of this bounce house|and collect the final crate to the right."), 2, 8000) |
325 loc("Now try to get out of this bounce house|and take the next crate."), 2, 8000) |
326 elseif gear == crates[9] then |
326 elseif gear == crates[9] then |
327 ShowMission(loc("Basic Movement Training"), loc("Health and Mission Panel"), loc("You just got yourself some extra health.|The more health your hedgehogs have, the better!").."|".. |
327 ShowMission(loc("Basic Movement Training"), loc("Health and Mission Panel"), loc("You just got yourself some extra health.|The more health your hedgehogs have, the better!").."|".. |
328 loc("Now go to the next crate.").."|".. |
328 loc("Now go to the next crate.").."|".. |
329 -- This part is CRITICALLY important for all future missions |
329 -- This part is CRITICALLY important for all future missions |
330 loc("Hint: If this mission panel disappears, you can|see it again by hitting the Pause or Quit key.").."|".. |
330 loc("Hint: If this mission panel disappears, you can|see it again by hitting the Pause or Quit key.").."|".. |
331 loc("Quit: [Esc]").."|".. |
331 loc("Quit: [Esc]").."|".. |
332 loc("Pause: [P]") |
332 loc("Pause: [P]") |
333 , 2, 900000) |
333 , 2, 900000) |
|
334 elseif gear == crates[10] then |
|
335 ShowMission(loc("Basic Movement Training"), loc("Turning Around"), |
|
336 loc("By the way, you can turn around without walking|by holding down Precise when you hit a walk control.").."|".. |
|
337 loc("Get the final crate to the right to complete the training.").."|".. |
|
338 loc("Turn around: [Left Shift] + [Left]/[Right]") |
|
339 , 2, 8000) |
334 end |
340 end |
335 end |
341 end |
336 |
342 |
337 function onGearDamage(gear) |
343 function onGearDamage(gear) |
338 if GetGearType(gear) == gtHedgehog and tookDamage == false then |
344 if GetGearType(gear) == gtHedgehog and tookDamage == false then |