share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
author Wuzzy <Wuzzy2@mail.ru>
Fri, 21 Dec 2018 01:04:24 +0100
changeset 14506 f37910a73c19
parent 14422 6c21bd8547dd
child 14507 f8c2b995c009
permissions -rw-r--r--
Refactor ACF missions, store team names in variables
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12794
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     1
--[[
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     2
A Classic Fairytale: Epilogue
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     3
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     4
= SUMMARY =
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     5
The epilogue, a final animated sequence (with 4 possible endings),
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     6
plus a sandbox mode.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     7
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     8
= GOALS =
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
     9
You only need to finish the cut scene and quit.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    10
The cut scene can be skipped, this is OK, too.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    11
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    12
= FLOW CHART =
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    13
== Linear events ==
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    14
- Long cut scene. This is one of four possible endings.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    15
- The chosen ending depends on the enemy leader chosen in ACF8:
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    16
| ACF8 leader: Dense Cloud
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    17
    - Dense Cloud is the traitor and in prison
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    18
    - See SetupAnimDense
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    19
| ACF8 leader: Fell from Heaven
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    20
    - Fell from Heaven is the traitor
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    21
    - See SetupAnimPrincess
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    22
| ACF8 leader: Fiery Water
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    23
    - Fiery Water is the traitor and in prison
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    24
    - See SetupAnimWater
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    25
| ACF8 leader: Nancy Screw (cyborg)
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    26
    - No traitors
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    27
    - See SetupAnimCyborg
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    28
- Mission is marked as completed after cut scene, but does not exit
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    29
- Mission panel with congratulation message appears
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    30
- Sandbox mode activated
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    31
- All hogs except the traitor are now playable
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    32
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    33
Note: This mission does not exit on its own.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    34
The player has either to kill everyone or use the Esc key.
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    35
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    36
== Non-linear events ==
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    37
| All hogs except the traitor are dead
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    38
    - It's the traitor's turn now
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    39
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    40
]]
bca911f8e804 Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents: 12586
diff changeset
    41
8043
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7512
diff changeset
    42
HedgewarsScriptLoad("/Scripts/Locale.lua")
da083f8d95e6 We need custom script loading function in lua now
unc0rr
parents: 7512
diff changeset
    43
HedgewarsScriptLoad("/Scripts/Animate.lua")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    44
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    45
-----------------------------Constants---------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    46
leaksNum = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    47
denseNum = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    48
waterNum = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    49
buffaloNum = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    50
chiefNum = 5
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    51
girlNum = 6
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    52
wiseNum = 7
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    53
ramonNum = 8
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    54
spikyNum = 9
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    55
princessNum = 10
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    56
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    57
denseScene = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    58
princessScene = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    59
waterScene = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    60
cyborgScene = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    61
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    62
nativeNames = {loc("Leaks A Lot"), loc("Dense Cloud"), loc("Fiery Water"), 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    63
               loc("Raging Buffalo"), loc("Righteous Beard"), loc("Fell From Grace"),
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    64
               loc("Wise Oak"), loc("Ramon"), loc("Spiky Cheese"),
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    65
               loc("Fell From Heaven")
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    66
              }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    67
nativeHats = {"Rambo", "RobinHood", "pirate_jack", "zoo_Bunny", "IndianChief",
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    68
              "tiara", "AkuAku", "rasta", "hair_yellow", "tiara"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    69
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    70
nativePosCyborg = {{1900, 508}, {480, 1321}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    71
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    72
             {1134, 1278}, {2881, 853}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    73
             {2033, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    74
nativeDirCyborg = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    75
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    76
nativePosPrincess = {{1930, 508}, {480, 1321}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    77
             {1325, 905}, {3190, 1424}, {2033, 511},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    78
             {1134, 1278}, {2881, 853}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    79
             {1900, 508}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    80
nativeDirPrincess = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Right"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    81
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    82
nativePosDense = {{1930, 508}, {2285, 772}, {2927, 873},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    83
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    84
             {1134, 1278}, {480, 1321}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    85
             {2033, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    86
nativeDirDense = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    87
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    88
nativePosWater = {{1900, 508}, {2033, 511}, {2285, 772},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    89
             {1325, 905}, {3190, 1424}, {1442, 857},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    90
             {1134, 1278}, {480, 1321}, {2974, 897},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    91
             {1980, 511}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    92
nativeDirWater = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    93
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    94
prisonPos = {2285, 772}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    95
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    96
brainNum = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    97
corpseNum = 2
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    98
brutalNum = 3
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
    99
earNum = 4
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   100
hanniNum = 5
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   101
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   102
cannibalNames = {loc("Brainiac"), loc("Corpse Thrower"), loc("Brutal Lily"), loc("Ear Sniffer"), loc("Hannibal")}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   103
cannibalHats = {"Zombi", "AkuAku", "Zombi", "Zombi", "IndianChief"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   104
cannibalPos = {{533, 1304}, {1184, 1282}, {1386, 883}, {2854, 834}, {3243, 1415}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   105
cannibalDir = {"Left", "Left", "Left", "Right", "Left"}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   106
-----------------------------Variables---------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   107
natives = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   108
cannibals = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   109
traitor = nil
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   110
crate = nil
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   111
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   112
startAnim = {}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   113
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   114
gearDead = {}
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   115
hogDead = {}
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   116
--------------------------Anim skip functions--------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   117
function SkipStartAnim()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   118
  SetGearMessage(CurrentHedgehog, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   119
  AnimSwitchHog(natives[1])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   120
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   121
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   122
function AfterStartAnim()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   123
  crate = SpawnHealthCrate(0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   124
  SetGearMessage(CurrentHedgehog, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   125
  AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1)
12364
5857936921ec Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents: 12264
diff changeset
   126
  EndTurn(true)
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   127
  ShowMission(loc("Epilogue"), loc("That's all, folks!"),
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   128
    loc("You have successfully finished the campaign!").."|"..
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   129
    loc("If you wish to replay, there are other possible endings, too!").."|"..
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   130
    loc("You can practice moving around and using utilities in this mission.|However, it will never end!"), 1, 0)
11955
d72a177dbaea Update campaign drop-down list after campaign victory
Wuzzy <almikes@aol.com>
parents: 11954
diff changeset
   131
  SaveCampaignVar("Progress", "10")
11954
62be63822a96 Fix final mission of Progress-based campaigns (like ACF) not being recognized as finished
Wuzzy <almikes@aol.com>
parents: 11038
diff changeset
   132
  SaveCampaignVar("Won", "true")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   133
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   134
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   135
---------------------------Events-------------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   136
function CheckCrateTaken()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   137
  return gearDead[crate]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   138
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   139
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   140
function DoCrateTaken()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   141
  crate = SpawnHealthCrate(0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   142
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   143
-----------------------------Animations--------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   144
function AnimationSetup()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   145
  if m8Scene == cyborgScene then 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   146
    SetupAnimCyborg()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   147
  elseif m8Scene == princessScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   148
    SetupAnimPrincess()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   149
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   150
    SetupAnimWater()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   151
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   152
    SetupAnimDense()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   153
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   154
  AddSkipFunction(startAnim, SkipStartAnim, {})
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   155
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   156
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   157
function SetupAnimWater()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   158
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   159
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   160
    {func = AnimCaption, args = {natives[ramonNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   161
    {func = AnimSay, args = {natives[ramonNum], loc("You got a killer mask there, amigo!"), SAY_SAY, 5500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   162
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, man! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   163
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   164
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   165
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   166
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   167
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   168
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   169
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   170
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   171
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   172
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   173
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   174
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   175
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   176
    {func = AnimSay, args = {natives[leaksNum], loc("It's amazing how quickly our lives can change."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   177
    {func = AnimSay, args = {natives[waterNum], loc("Aye! Fellow! Let me exit this chamber of doom!"), SAY_SAY, 7000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   178
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   179
    {func = AnimSay, args = {natives[princessNum], loc("It's your fault you're there!"), SAY_SAY, 5000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   180
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   181
    {func = AnimSay, args = {natives[leaksNum], loc("I always suspected him!"), SAY_SAY, 3000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   182
    {func = AnimSay, args = {natives[leaksNum], loc("Nobody takes walks every day!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   183
    {func = AnimSay, args = {natives[princessNum], loc("I don't know who I can trust anymore."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   184
    {func = AnimSay, args = {natives[princessNum], loc("Everywhere I look, I see hogs walking around …"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   185
    {func = AnimSay, args = {natives[princessNum], loc("… and I think they are up to something. Something bad!"), SAY_SAY, 8000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   186
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosWater[princessNum][1] - 30, nativePosWater[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   187
    {func = AnimSay, args = {natives[leaksNum], loc("You can always trust me! I love you!"), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   188
    {func = AnimSay, args = {natives[princessNum], loc("I know and I'm terribly sorry!"), SAY_SAY, 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   189
    {func = AnimSay, args = {natives[princessNum], loc("I love Dense Cloud now!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   190
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   191
    {func = AnimMove, args = {natives[denseNum], "Left", nativePosWater[princessNum][1] + 20, nativePosWater[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   192
    {func = AnimSay, args = {natives[denseNum], loc("Problems, dude? Chillax!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   193
    {func = AnimTurn, args = {natives[leaksNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   194
    {func = AnimSay, args = {natives[leaksNum], loc("Sigh."), SAY_SAY, 6000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   195
    {func = AnimSwitchHog, args = {natives[leaksNum]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   196
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   197
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   198
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   199
function SetupAnimDense()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   200
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   201
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   202
    {func = AnimCaption, args = {natives[ramonNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   203
    {func = AnimSay, args = {natives[ramonNum], loc("You got a killer mask there, amigo!"), SAY_SAY, 5500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   204
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, man! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   205
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   206
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   207
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   208
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   209
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   210
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   211
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   212
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   213
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   214
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   215
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   216
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   217
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   218
    {func = AnimSay, args = {natives[waterNum], loc("… and then I took a stroll …"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   219
    {func = AnimSay, args = {natives[leaksNum], loc("It's amazing how quickly our lives can change."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   220
    {func = AnimSay, args = {natives[denseNum], loc("Dude, let me out!"), SAY_SAY, 3000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   221
    {func = AnimSay, args = {natives[denseNum], loc("I already said I'm sorry!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   222
    {func = AnimTurn, args = {natives[princessNum], "Right"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   223
    {func = AnimSay, args = {natives[princessNum], loc("Traitors don't get to shout around here!"), SAY_SAY, 7000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   224
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   225
    {func = AnimSay, args = {natives[leaksNum], loc("I still can't believe he sold us out like that."), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   226
    {func = AnimSay, args = {natives[princessNum], loc("I don't know who I can trust anymore."), SAY_SAY, 6000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   227
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosDense[princessNum][1] - 30, nativePosDense[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   228
    {func = AnimSay, args = {natives[leaksNum], loc("You can always trust me!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   229
    {func = AnimSay, args = {natives[princessNum], loc("I know, my hero!"), SAY_SAY, 3000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   230
    {func = AnimSay, args = {natives[princessNum], loc("I love you."), SAY_SAY, 2000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   231
    {func = AnimSwitchHog, args = {natives[leaksNum]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   232
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   233
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   234
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   235
function SetupAnimCyborg()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   236
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   237
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   238
    {func = AnimCaption, args = {natives[denseNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   239
    {func = AnimSay, args = {natives[denseNum], loc("Dude, that outfit is so cool!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   240
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, dude! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   241
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   242
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   243
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   244
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   245
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   246
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   247
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   248
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   249
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   250
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   251
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   252
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   253
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   254
    {func = AnimSay, args = {natives[waterNum], loc("… and then I took a stroll …"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   255
    {func = AnimSay, args = {natives[leaksNum], loc("I'm glad this is over!"), SAY_SAY, 4000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   256
    {func = AnimMove, args = {natives[princessNum], "Right", nativePosCyborg[princessNum][1] + 30, nativePosCyborg[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   257
    {func = AnimSay, args = {natives[princessNum], loc("I was so scared."), SAY_SAY, 2500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   258
    {func = AnimMove, args = {natives[leaksNum], "Right", nativePosCyborg[princessNum][1], nativePosCyborg[princessNum][2]}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   259
    {func = AnimSay, args = {natives[leaksNum], loc("You have nothing to be afraid of now."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   260
    {func = AnimSay, args = {natives[leaksNum], loc("I'll protect you!"), SAY_SAY, 3000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   261
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   262
    {func = AnimSay, args = {natives[princessNum], loc("You're so brave! I feel safe with you."), SAY_SAY, 6500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   263
    {func = AnimSay, args = {natives[princessNum], loc("I think I love you!"), SAY_SAY, 3500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   264
    {func = AnimSay, args = {natives[leaksNum], loc("I … like being with you, too."), SAY_SAY, 4500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   265
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   266
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   267
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   268
function SetupAnimPrincess()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   269
  startAnim = {
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   270
    {func = AnimWait, args = {natives[1], 3000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   271
    {func = AnimCaption, args = {natives[denseNum], loc("Back in the village, the two tribes finally started to live in harmony."), 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   272
    {func = AnimSay, args = {natives[denseNum], loc("Dude, that outfit is so cool!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   273
    {func = AnimSay, args = {cannibals[brainNum], loc("Thanks, dude! It really means a lot to me."), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   274
    {func = AnimSay, args = {natives[wiseNum], loc("So, uhmm, how did you manage to teleport them so far?"), SAY_SAY, 8000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   275
    {func = AnimSay, args = {cannibals[corpseNum], loc("It's all about the right carrots, you know."), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   276
    {func = AnimSay, args = {natives[wiseNum], loc("Of course! It's all obvious now!"), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   277
    {func = AnimSay, args = {natives[chiefNum], loc("I can't believe how blind we were."), SAY_SAY, 4500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   278
    {func = AnimSay, args = {natives[chiefNum], loc("Fighting instead of cultivating a beautiful friendship."), SAY_SAY, 8500}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   279
    {func = AnimSay, args = {cannibals[hanniNum], loc("One shall not judge one by one's appearance!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   280
    {func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   281
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   282
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   283
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   284
    {func = AnimWait, args = {natives[1], 1000}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   285
    {func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   286
    {func = AnimWait, args = {natives[1], 1000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   287
    {func = AnimSay, args = {natives[buffaloNum], loc("So I shook my fist in the air!"), SAY_SAY, 5000}},
12900
a9e4e8fa852c Fix various typos in translatable strings
Wuzzy <Wuzzy2@mail.ru>
parents: 12794
diff changeset
   288
    {func = AnimSay, args = {cannibals[brutalNum], loc("Well, that was an unnecessary act of violence."), SAY_SAY, 7000}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   289
    {func = AnimSay, args = {natives[waterNum], loc("… and then I took a stroll …"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   290
    {func = AnimSay, args = {natives[leaksNum], loc("I'm glad this is over!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   291
    {func = AnimSay, args = {natives[girlNum], loc("I still can't believe you forgave her!"), SAY_SAY, 6000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   292
    {func = AnimSay, args = {natives[girlNum], loc("She endangered the whole tribe!"), SAY_SAY, 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   293
    {func = AnimSay, args = {natives[leaksNum], loc("It wasn't her fault!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   294
    {func = AnimSay, args = {natives[leaksNum], loc("We oppressed her, the only woman in the tribe!"), SAY_SAY, 7000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   295
    {func = AnimSay, args = {natives[girlNum], loc("The only woman, huh?"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   296
    {func = AnimSay, args = {natives[girlNum], loc("Then what am I?"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   297
    {func = AnimSay, args = {natives[leaksNum], loc("Of course, but you're … special."), SAY_SAY, 5000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   298
    {func = AnimSay, args = {natives[girlNum], loc("Sure!"), SAY_SAY, 2000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   299
    {func = AnimTurn, args = {natives[leaksNum], "Left"}},
12264
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   300
    {func = AnimSay, args = {natives[leaksNum], loc("We're terribly sorry!"), SAY_SAY, 4000}},
41542ed28fe4 Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents: 12224
diff changeset
   301
    {func = AnimSay, args = {natives[princessNum], loc("I don't know if I can forget what you've done!"), SAY_SAY, 7000}},
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   302
    {func = AnimTurn, args = {natives[princessNum], "Left"}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   303
    {func = AnimMove, args = {natives[princessNum], "Left", nativePosPrincess[princessNum][1] - 10, nativePosPrincess[princessNum][2]}},
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   304
    {func = AnimSwitchHog, args = {natives[leaksNum]}}
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   305
  }
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   306
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   307
-----------------------------Misc--------------------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   308
function GetVariables()
13145
5083fb0a2992 A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents: 12900
diff changeset
   309
  m8Scene = tonumber(GetCampaignVar("M8Scene")) or princessScene
5083fb0a2992 A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents: 12900
diff changeset
   310
  -- princessScene is for fallback if campaign var was not found
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   311
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   312
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   313
function AddHogs()
14506
f37910a73c19 Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents: 14422
diff changeset
   314
  AddTeam(loc("Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   315
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   316
    natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   317
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   318
13583
141cdfe0f3ca Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents: 13145
diff changeset
   319
	AddTeam(loc("More Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   320
  for i = 6, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   321
    natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   322
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   323
13583
141cdfe0f3ca Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents: 13145
diff changeset
   324
	AddTeam(loc("Cannibals"), -2, "skull", "Island", "HillBilly", "cm_birdy")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   325
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   326
    cannibals[i] = AddHog(cannibalNames[i], 0, 100, cannibalHats[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   327
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   328
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   329
  if m8Scene == denseScene or m8Scene == waterScene then
13583
141cdfe0f3ca Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents: 13145
diff changeset
   330
    AddTeam(loc("Traitors"), -2, "Bone", "Island", "HillBilly", "cm_bloodyblade")
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   331
    if m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   332
      DeleteGear(natives[2])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   333
      natives[2] = AddHog(nativeNames[2], 0, 100, nativeHats[2])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   334
    else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   335
      DeleteGear(natives[3])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   336
      natives[3] = AddHog(nativeNames[3], 0, 100, nativeHats[3])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   337
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   338
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   339
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   340
  SetGearPositions()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   341
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   342
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   343
function SetGearPositions()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   344
  if m8Scene == cyborgScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   345
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   346
      AnimSetGearPosition(natives[i], unpack(nativePosCyborg[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   347
      AnimTurn(natives[i], nativeDirCyborg[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   348
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   349
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   350
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   351
      AnimSetGearPosition(natives[i], unpack(nativePosWater[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   352
      AnimTurn(natives[i], nativeDirWater[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   353
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   354
  elseif m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   355
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   356
      AnimSetGearPosition(natives[i], unpack(nativePosDense[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   357
      AnimTurn(natives[i], nativeDirDense[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   358
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   359
  else
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   360
    for i = 1, 10 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   361
      AnimSetGearPosition(natives[i], unpack(nativePosPrincess[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   362
      AnimTurn(natives[i], nativeDirPrincess[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   363
    end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   364
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   365
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   366
  for i = 1, 5 do
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   367
    AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   368
    AnimTurn(cannibals[i], cannibalDir[i])
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   369
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   370
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   371
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   372
function SetupPlace()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   373
  if m8Scene == denseScene or m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   374
    PlaceGirder(2296, 798, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   375
    PlaceGirder(2296, 700, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   376
    PlaceGirder(2225, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   377
    PlaceGirder(2245, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   378
    PlaceGirder(2265, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   379
    PlaceGirder(2305, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   380
    PlaceGirder(2345, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   381
    PlaceGirder(2365, 750, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   382
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   383
  if m8Scene == denseScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   384
    traitor = natives[denseNum]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   385
  elseif m8Scene == waterScene then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   386
    traitor = natives[waterNum]
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   387
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   388
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   389
-----------------------------Main Functions----------------------------
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   390
function onGameInit()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   391
	Seed = 1
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   392
	GameFlags = gfOneClanMode
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   393
	TurnTime = 60000 
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   394
	CaseFreq = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   395
	MinesNum = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   396
	MinesTime = 3000
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   397
	Explosives = 0
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   398
  Map = "Hogville"
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   399
	Theme = "Nature"
12224
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   400
  -- Disable Sudden Death
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   401
  HealthDecrease = 0
d62d6f8ebef1 Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents: 12049
diff changeset
   402
  WaterRise = 0
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   403
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   404
  GetVariables()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   405
  AddHogs()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   406
  AnimInit()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   407
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   408
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   409
function onGameStart()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   410
  SetupPlace()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   411
  AnimationSetup()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   412
  AddAnim(startAnim)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   413
  AddFunction({func = AfterStartAnim, args = {}})
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   414
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   415
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   416
function onGameTick()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   417
  AnimUnWait()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   418
  if ShowAnimation() == false then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   419
    return
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   420
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   421
  ExecuteAfterAnimations()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   422
  CheckEvents()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   423
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   424
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   425
function onGearAdd(gear)
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   426
  if GetGearType(gear) == gtHedgehog then
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   427
    hogDead[gear] = false
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   428
  end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   429
end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   430
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   431
function onGearDelete(gear)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   432
  gearDead[gear] = true
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   433
  if GetGearType(gear) == gtHedgehog then
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   434
    hogDead[gear] = true
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   435
  end
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   436
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   437
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   438
function onAmmoStoreInit()
11038
5a9dde74127e Fix weapon name - bug #967
nemo
parents: 9306
diff changeset
   439
  SetAmmo(amAirAttack, 9, 0, 0, 0)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   440
  SetAmmo(amBaseballBat, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   441
  SetAmmo(amBazooka, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   442
  SetAmmo(amBlowTorch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   443
	SetAmmo(amClusterBomb,9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   444
  SetAmmo(amDEagle, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   445
  SetAmmo(amDrill, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   446
  SetAmmo(amDynamite, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   447
  SetAmmo(amFirePunch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   448
  SetAmmo(amFlamethrower, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   449
  SetAmmo(amGirder, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   450
  SetAmmo(amGrenade, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   451
  SetAmmo(amHammer, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   452
  SetAmmo(amJetpack, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   453
  SetAmmo(amLandGun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   454
  SetAmmo(amLowGravity, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   455
  SetAmmo(amMine, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   456
  SetAmmo(amMolotov, 9, 0, 0, 3)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   457
  SetAmmo(amMortar, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   458
  SetAmmo(amNapalm, 9, 0, 0, 4)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   459
  SetAmmo(amParachute, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   460
  SetAmmo(amPickHammer, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   461
  SetAmmo(amPortalGun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   462
  SetAmmo(amRope, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   463
  SetAmmo(amRCPlane, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   464
  SetAmmo(amSkip, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   465
  SetAmmo(amShotgun, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   466
  SetAmmo(amSMine, 9, 0, 0, 2)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   467
  SetAmmo(amSniperRifle, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   468
  SetAmmo(amSnowball, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   469
  SetAmmo(amSwitch, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   470
  SetAmmo(amTeleport, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   471
	SetAmmo(amWatermelon, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   472
  SetAmmo(amWhip, 9, 0, 0, 0)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   473
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   474
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   475
function IsEveryoneExceptTraitorDead()
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   476
  for id, isDead in pairs(hogDead) do
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   477
    if id ~= traitor and not isDead then
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   478
      return false
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   479
    end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   480
  end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   481
  return true
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   482
end
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   483
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   484
function onNewTurn()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   485
  if AnimInProgress() then
13752
110d6c1e817f Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents: 13742
diff changeset
   486
    SetTurnTimeLeft(MAX_TURN_TIME)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   487
    return
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   488
  end
12365
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   489
  -- Don't allow player to play with traitor, except when it is the final hog left
92b4bab79c26 Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents: 12364
diff changeset
   490
  if CurrentHedgehog == traitor and not IsEveryoneExceptTraitorDead() then
12364
5857936921ec Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents: 12264
diff changeset
   491
    EndTurn(true)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   492
  else
13752
110d6c1e817f Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents: 13742
diff changeset
   493
    SetTurnTimeLeft(MAX_TURN_TIME)
7481
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   494
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   495
end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   496
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   497
function onPrecise()
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   498
  if GameTime > 2500 then
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   499
    SetAnimSkip(true)
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   500
  end
50e09add9ffc Forgot to add mission 10
belphegorr <szabibibi@gmail.com>
parents:
diff changeset
   501
end