610 function DoTargetsKilled() |
610 function DoTargetsKilled() |
611 targetsDestroyed = 0 |
611 targetsDestroyed = 0 |
612 targsWave = targsWave + 1 |
612 targsWave = targsWave + 1 |
613 if targsWave > 3 then |
613 if targsWave > 3 then |
614 RemoveEventFunc(CheckTargetsKilled) |
614 RemoveEventFunc(CheckTargetsKilled) |
615 SetState(cannibal, gstVisible) |
615 RestoreHog(cannibal) |
616 cannibalVisible = true |
616 cannibalVisible = true |
617 SetGearMessage(CurrentHedgehog, 0) |
617 SetGearMessage(CurrentHedgehog, 0) |
618 AddAnim(beforeKillAnim) |
618 AddAnim(beforeKillAnim) |
619 AddEvent(CheckCloseToCannibal, {}, DoCloseToCannibal, {}, 0) |
619 AddEvent(CheckCloseToCannibal, {}, DoCloseToCannibal, {}, 0) |
620 AddEvent(CheckCannibalKilled, {}, DoCannibalKilled, {}, 0) |
620 AddEvent(CheckCannibalKilled, {}, DoCannibalKilled, {}, 0) |
752 function onGameStart() |
752 function onGameStart() |
753 progress = tonumber(GetCampaignVar("Progress")) |
753 progress = tonumber(GetCampaignVar("Progress")) |
754 TurnTimeLeft = -1 |
754 TurnTimeLeft = -1 |
755 FollowGear(youngh) |
755 FollowGear(youngh) |
756 ShowMission(loc("A Classic Fairytale"), loc("First Blood"), loc("Finish your training|Hint: Animations can be skipped with the [Precise] key."), -amSkip, 0) |
756 ShowMission(loc("A Classic Fairytale"), loc("First Blood"), loc("Finish your training|Hint: Animations can be skipped with the [Precise] key."), -amSkip, 0) |
757 SetState(cannibal, gstInvisible) |
757 HideHog(cannibal) |
758 |
758 |
759 AddAnim(startDialogue) |
759 AddAnim(startDialogue) |
760 princessFace = "Right" |
760 princessFace = "Right" |
761 AddEvent(CheckNeedToTurn, {princess}, DoNeedToTurn, {princess}, 1) |
761 AddEvent(CheckNeedToTurn, {princess}, DoNeedToTurn, {princess}, 1) |
762 AddEvent(CheckNeedToTurn, {elderh}, DoNeedToTurn, {elderh}, 1) |
762 AddEvent(CheckNeedToTurn, {elderh}, DoNeedToTurn, {elderh}, 1) |