745 SendStat(siCustomAchievement, loc("Planets with completed main missions will be marked with a flower.")) |
745 SendStat(siCustomAchievement, loc("Planets with completed main missions will be marked with a flower.")) |
746 SendStat(siCustomAchievement, loc("Planets with all missions completed will be marked with two flowers.")) |
746 SendStat(siCustomAchievement, loc("Planets with all missions completed will be marked with two flowers.")) |
747 if GetCampaignVar("Won") == "true" and GetCampaignVar("Mission1Won") ~= "true" then |
747 if GetCampaignVar("Won") == "true" and GetCampaignVar("Mission1Won") ~= "true" then |
748 SendStat(siCustomAchievement, loc("Complete all main and side missions to complete the spacetrip mission.")) |
748 SendStat(siCustomAchievement, loc("Complete all main and side missions to complete the spacetrip mission.")) |
749 end |
749 end |
750 sendSimpleTeamRankings({teamC.name}) |
|
751 EndGame() |
750 EndGame() |
752 end |
751 end |
753 |
752 |
754 function sendStatsOnRetry() |
753 function sendStatsOnRetry() |
755 SendStat(siGameResult, loc("You have to travel again")) |
754 SendStat(siGameResult, loc("You have to travel again")) |
756 if checkPointReached < 4 then |
755 if checkPointReached < 4 then |
757 SendStat(siCustomAchievement, loc("Your first destination is the moon in order to get more fuel.")) |
756 SendStat(siCustomAchievement, loc("Your first destination is the moon in order to get more fuel.")) |
758 end |
757 end |
759 SendStat(siCustomAchievement, loc("You have to be careful and must not die!")) |
758 SendStat(siCustomAchievement, loc("You have to be careful and must not die!")) |
760 sendSimpleTeamRankings({teamC.name}) |
|
761 EndGame() |
759 EndGame() |
762 end |
760 end |
763 |
761 |
764 function sendStatsOnStuckOnMoon() |
762 function sendStatsOnStuckOnMoon() |
765 SendStat(siGameResult, loc("You have to go back to the moon!")) |
763 SendStat(siGameResult, loc("You have to go back to the moon!")) |
766 SendStat(siCustomAchievement, loc("You have to complete the main mission on moon in order to travel to other planets.")) |
764 SendStat(siCustomAchievement, loc("You have to complete the main mission on moon in order to travel to other planets.")) |
767 sendSimpleTeamRankings({teamC.name}) |
|
768 EndGame() |
765 EndGame() |
769 end |
766 end |
770 |
767 |
771 function sendStatsOnRopedToMoon() |
768 function sendStatsOnRopedToMoon() |
772 if ropedToMoon ~= 2 then |
769 if ropedToMoon ~= 2 then |
773 ropedToMoon = 2 |
770 ropedToMoon = 2 |
774 SendStat(siGameResult, loc("You have violated PAotH regulations!")) |
771 SendStat(siGameResult, loc("You have violated PAotH regulations!")) |
775 SendStat(siCustomAchievement, loc("You have triggered the secret Do-Not-Rope-to-the-Moon Defense System.")) |
772 SendStat(siCustomAchievement, loc("You have triggered the secret Do-Not-Rope-to-the-Moon Defense System.")) |
776 SendStat(siCustomAchievement, loc("Use the flying saucer from the crate to fly to the moon.")) |
773 SendStat(siCustomAchievement, loc("Use the flying saucer from the crate to fly to the moon.")) |
777 sendSimpleTeamRankings({teamC.name}) |
|
778 EndGame() |
774 EndGame() |
779 end |
775 end |
780 end |
776 end |