changeset 15172 | 9d4a6ab60dec |
parent 15143 | a344e20edfa1 |
15171:d2e477eee433 | 15172:9d4a6ab60dec |
---|---|
119 targetPosY = {{1342, 1347, 1326}, {1112, 1121, 1061}, {1152, 1111, 1111}} |
119 targetPosY = {{1342, 1347, 1326}, {1112, 1121, 1061}, {1152, 1111, 1111}} |
120 crateNum = {6, 8} |
120 crateNum = {6, 8} |
121 rope2GirderX = 3245 |
121 rope2GirderX = 3245 |
122 rope2GirderY = 1190 |
122 rope2GirderY = 1190 |
123 |
123 |
124 nativesTeamName = nil |
|
124 inCrateChallenge = false |
125 inCrateChallenge = false |
125 cratesCollected = 0 |
126 cratesCollected = 0 |
126 chalTries = 0 |
127 chalTries = 0 |
127 targetsDestroyed = 0 |
128 targetsDestroyed = 0 |
128 targsWave = 1 |
129 targsWave = 1 |
754 Theme = "Nature" |
755 Theme = "Nature" |
755 WaterRise = 0 |
756 WaterRise = 0 |
756 HealthDecrease = 0 |
757 HealthDecrease = 0 |
757 |
758 |
758 |
759 |
759 AddMissionTeam(-2) |
760 nativesTeamName = AddMissionTeam(-2) |
760 youngh = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo") |
761 youngh = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo") |
761 elderh = AddHog(loc("Righteous Beard"), 0, 99, "IndianChief") |
762 elderh = AddHog(loc("Righteous Beard"), 0, 99, "IndianChief") |
762 princess = AddHog(loc("Fell From Heaven"), 0, 300, "tiara") |
763 princess = AddHog(loc("Fell From Heaven"), 0, 300, "tiara") |
763 AnimSetGearPosition(princess, 1911, 1361) |
764 AnimSetGearPosition(princess, 1911, 1361) |
764 HogTurnLeft(princess, true) |
765 HogTurnLeft(princess, true) |
933 function onAttack() |
934 function onAttack() |
934 if difficultyChoice == true then |
935 if difficultyChoice == true then |
935 DoChoice() |
936 DoChoice() |
936 end |
937 end |
937 end |
938 end |
939 |
|
940 function onGameResult(winner) |
|
941 if winner == GetTeamClan(nativesTeamName) then |
|
942 SendStat(siGameResult, loc("Mission succeeded!")) |
|
943 else |
|
944 SendStat(siGameResult, loc("Mission failed!")) |
|
945 end |
|
946 end |