equal
deleted
inserted
replaced
615 return deployedDead |
615 return deployedDead |
616 end |
616 end |
617 |
617 |
618 function DoDeployedDead() |
618 function DoDeployedDead() |
619 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have failed to save the tribe!"), 0, 6000) |
619 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have failed to save the tribe!"), 0, 6000) |
620 ParseCommand("teamgone " .. loc("Natives")) |
620 DismissTeam(loc("Natives")) |
621 ParseCommand("teamgone " .. loc("Tribe")) |
621 DismissTeam(loc("Tribe")) |
622 ParseCommand("teamgone " .. loc("011101001")) |
622 DismissTeam(loc("011101001")) |
623 TurnTimeLeft = 0 |
623 TurnTimeLeft = 0 |
624 end |
624 end |
625 |
625 |
626 function CheckChoice() |
626 function CheckChoice() |
627 return choice ~= 0 and tmpVar == 0 |
627 return choice ~= 0 and tmpVar == 0 |
660 (nativesNum < startNativesNum - 1 and choice == choiceEliminate) |
660 (nativesNum < startNativesNum - 1 and choice == choiceEliminate) |
661 end |
661 end |
662 |
662 |
663 function DoKilledOther() |
663 function DoKilledOther() |
664 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have killed an innocent hedgehog!"), 0, 6000) |
664 ShowMission(loc("Backstab"), loc("Brutus"), loc("You have killed an innocent hedgehog!"), 0, 6000) |
665 ParseCommand("teamgone " .. loc("Natives")) |
665 DismissTeam(loc("Natives")) |
666 ParseCommand("teamgone " .. loc("Tribe")) |
666 DismissTeam(loc("Tribe")) |
667 TurnTimeLeft = 0 |
667 TurnTimeLeft = 0 |
668 end |
668 end |
669 |
669 |
670 function CheckWaveDead(index) |
670 function CheckWaveDead(index) |
671 for i = (index - 1) * 3 + 1, index * 3 do |
671 for i = (index - 1) * 3 + 1, index * 3 do |
768 if natives[i] == deployedHog then |
768 if natives[i] == deployedHog then |
769 SaveCampaignVar("M5DeployedNum", "" .. i) |
769 SaveCampaignVar("M5DeployedNum", "" .. i) |
770 end |
770 end |
771 end |
771 end |
772 |
772 |
773 ParseCommand("teamgone " .. loc("Tribe")) |
773 DismissTeam(loc("Tribe")) |
774 ParseCommand("teamgone " .. loc("Assault Team")) |
774 DismissTeam(loc("Assault Team")) |
775 ParseCommand("teamgone " .. loc("Reinforcements")) |
775 DismissTeam(loc("Reinforcements")) |
776 ParseCommand("teamgone " .. loc("011101001")) |
776 DismissTeam(loc("011101001")) |
777 TurnTimeLeft = 0 |
777 TurnTimeLeft = 0 |
778 end |
778 end |
779 |
779 |
780 -----------------------------Misc-------------------------------------- |
780 -----------------------------Misc-------------------------------------- |
781 |
781 |