235 if GetHogClan(hhs[i]) == alt then |
235 if GetHogClan(hhs[i]) == alt then |
236 SetEffect(hhs[i], heResurrectable, 0) |
236 SetEffect(hhs[i], heResurrectable, 0) |
237 SetHealth(hhs[i],0) |
237 SetHealth(hhs[i],0) |
238 end |
238 end |
239 end |
239 end |
240 ShowMission(loc("GAME OVER!"), loc("Victory for the ") .. GetHogTeamName(CurrentHedgehog), loc("Hooray!"), 0, 0) |
240 local victoryMsg = string.format(loc("Victory for %s!"), GetHogTeamName(CurrentHedgehog)) |
|
241 AddCaption(victoryMsg, capcolDefault, capgrpGameState) |
241 end |
242 end |
242 |
243 |
243 end |
244 end |
244 |
245 |
245 function HandleRespawns() |
246 function HandleRespawns() |
530 |
531 |
531 |
532 |
532 function onGameStart() |
533 function onGameStart() |
533 |
534 |
534 ShowMission(loc("CTF_Blizzard"), loc("Capture The Flag"), |
535 ShowMission(loc("CTF_Blizzard"), loc("Capture The Flag"), |
535 loc("- Place your clan flag at the end of your first turn") .. "|" .. |
|
536 loc("- Return the enemy flag to your base to score") .."|".. |
536 loc("- Return the enemy flag to your base to score") .."|".. |
537 string.format(loc("- First clan to score %d captures wins"), 3) .. "|".. |
537 string.format(loc("- First clan to score %d captures wins"), 3) .. "|".. |
538 loc("- You may only score when your flag is in your base") .."|".. |
538 loc("- You may only score when your flag is in your base") .."|".. |
539 loc("- Hogs will drop the flag when killed") .."|".. |
539 loc("- Hogs will drop the flag when killed") .."|".. |
540 loc("- Dropped flags may be returned or recaptured").."|".. |
540 loc("- Dropped flags may be returned or recaptured").."|".. |
541 loc("- Hogs will be revived") .."|".. |
541 loc("- Hogs will be revived") .."|".. |
542 loc("- Enter the sparkling forcefield to teleport"), 0, 0) |
542 loc("- Touch the sparkles near your base to teleport"), 0, 0) |
543 |
543 |
544 -- initialize teleporters |
544 -- initialize teleporters |
545 leftTel = CreateZone(342,1316,42,449) -- left teleporter (clan 0) |
545 leftTel = CreateZone(342,1316,42,449) -- left teleporter (clan 0) |
546 rightTel = CreateZone(3719,1330,45,449) -- right teleporter (clan 1) |
546 rightTel = CreateZone(3719,1330,45,449) -- right teleporter (clan 1) |
547 |
547 |