author | Wuzzy <Wuzzy2@mail.ru> |
Fri, 21 Dec 2018 01:04:24 +0100 | |
changeset 14490 | f37910a73c19 |
parent 14406 | 6c21bd8547dd |
child 14491 | f8c2b995c009 |
permissions | -rw-r--r-- |
12799
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
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:
12591
diff
changeset
|
41 |
|
8043 | 42 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
43 |
HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
7481 | 44 |
|
45 |
-----------------------------Constants--------------------------------- |
|
46 |
leaksNum = 1 |
|
47 |
denseNum = 2 |
|
48 |
waterNum = 3 |
|
49 |
buffaloNum = 4 |
|
50 |
chiefNum = 5 |
|
51 |
girlNum = 6 |
|
52 |
wiseNum = 7 |
|
53 |
ramonNum = 8 |
|
54 |
spikyNum = 9 |
|
55 |
princessNum = 10 |
|
56 |
||
57 |
denseScene = 1 |
|
58 |
princessScene = 2 |
|
59 |
waterScene = 3 |
|
60 |
cyborgScene = 4 |
|
61 |
||
62 |
nativeNames = {loc("Leaks A Lot"), loc("Dense Cloud"), loc("Fiery Water"), |
|
63 |
loc("Raging Buffalo"), loc("Righteous Beard"), loc("Fell From Grace"), |
|
64 |
loc("Wise Oak"), loc("Ramon"), loc("Spiky Cheese"), |
|
65 |
loc("Fell From Heaven") |
|
66 |
} |
|
67 |
nativeHats = {"Rambo", "RobinHood", "pirate_jack", "zoo_Bunny", "IndianChief", |
|
68 |
"tiara", "AkuAku", "rasta", "hair_yellow", "tiara"} |
|
69 |
||
70 |
nativePosCyborg = {{1900, 508}, {480, 1321}, {2927, 873}, |
|
71 |
{1325, 905}, {3190, 1424}, {1442, 857}, |
|
72 |
{1134, 1278}, {2881, 853}, {2974, 897}, |
|
73 |
{2033, 511}} |
|
74 |
nativeDirCyborg = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"} |
|
75 |
||
76 |
nativePosPrincess = {{1930, 508}, {480, 1321}, {2927, 873}, |
|
77 |
{1325, 905}, {3190, 1424}, {2033, 511}, |
|
78 |
{1134, 1278}, {2881, 853}, {2974, 897}, |
|
79 |
{1900, 508}} |
|
80 |
nativeDirPrincess = {"Right", "Right", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Right"} |
|
81 |
||
82 |
nativePosDense = {{1930, 508}, {2285, 772}, {2927, 873}, |
|
83 |
{1325, 905}, {3190, 1424}, {1442, 857}, |
|
84 |
{1134, 1278}, {480, 1321}, {2974, 897}, |
|
85 |
{2033, 511}} |
|
86 |
nativeDirDense = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"} |
|
87 |
||
88 |
nativePosWater = {{1900, 508}, {2033, 511}, {2285, 772}, |
|
89 |
{1325, 905}, {3190, 1424}, {1442, 857}, |
|
90 |
{1134, 1278}, {480, 1321}, {2974, 897}, |
|
91 |
{1980, 511}} |
|
92 |
nativeDirWater = {"Right", "Left", "Left", "Right", "Right", "Left", "Right", "Right", "Left", "Left"} |
|
93 |
||
94 |
prisonPos = {2285, 772} |
|
95 |
||
96 |
brainNum = 1 |
|
97 |
corpseNum = 2 |
|
98 |
brutalNum = 3 |
|
99 |
earNum = 4 |
|
100 |
hanniNum = 5 |
|
101 |
||
102 |
cannibalNames = {loc("Brainiac"), loc("Corpse Thrower"), loc("Brutal Lily"), loc("Ear Sniffer"), loc("Hannibal")} |
|
103 |
cannibalHats = {"Zombi", "AkuAku", "Zombi", "Zombi", "IndianChief"} |
|
104 |
cannibalPos = {{533, 1304}, {1184, 1282}, {1386, 883}, {2854, 834}, {3243, 1415}} |
|
105 |
cannibalDir = {"Left", "Left", "Left", "Right", "Left"} |
|
106 |
-----------------------------Variables--------------------------------- |
|
107 |
natives = {} |
|
108 |
cannibals = {} |
|
109 |
traitor = nil |
|
110 |
crate = nil |
|
111 |
||
112 |
startAnim = {} |
|
113 |
||
114 |
gearDead = {} |
|
12370
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
115 |
hogDead = {} |
7481 | 116 |
--------------------------Anim skip functions-------------------------- |
117 |
function SkipStartAnim() |
|
118 |
SetGearMessage(CurrentHedgehog, 0) |
|
119 |
AnimSwitchHog(natives[1]) |
|
120 |
end |
|
121 |
||
122 |
function AfterStartAnim() |
|
123 |
crate = SpawnHealthCrate(0, 0) |
|
124 |
SetGearMessage(CurrentHedgehog, 0) |
|
125 |
AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1) |
|
12369
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12269
diff
changeset
|
126 |
EndTurn(true) |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
130 |
loc("You can practice moving around and using utilities in this mission.|However, it will never end!"), 1, 0) |
11960
d72a177dbaea
Update campaign drop-down list after campaign victory
Wuzzy <almikes@aol.com>
parents:
11959
diff
changeset
|
131 |
SaveCampaignVar("Progress", "10") |
11959
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 | 133 |
end |
134 |
||
135 |
---------------------------Events------------------------------------- |
|
136 |
function CheckCrateTaken() |
|
137 |
return gearDead[crate] |
|
138 |
end |
|
139 |
||
140 |
function DoCrateTaken() |
|
141 |
crate = SpawnHealthCrate(0, 0) |
|
142 |
end |
|
143 |
-----------------------------Animations-------------------------------- |
|
144 |
function AnimationSetup() |
|
145 |
if m8Scene == cyborgScene then |
|
146 |
SetupAnimCyborg() |
|
147 |
elseif m8Scene == princessScene then |
|
148 |
SetupAnimPrincess() |
|
149 |
elseif m8Scene == waterScene then |
|
150 |
SetupAnimWater() |
|
151 |
else |
|
152 |
SetupAnimDense() |
|
153 |
end |
|
154 |
AddSkipFunction(startAnim, SkipStartAnim, {}) |
|
155 |
end |
|
156 |
||
157 |
function SetupAnimWater() |
|
158 |
startAnim = { |
|
159 |
{func = AnimWait, args = {natives[1], 3000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
169 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 170 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
171 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
172 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
173 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
174 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
175 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
diff
changeset
|
177 |
{func = AnimSay, args = {natives[waterNum], loc("Aye! Fellow! Let me exit this chamber of doom!"), SAY_SAY, 7000}}, |
7481 | 178 |
{func = AnimTurn, args = {natives[princessNum], "Right"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
diff
changeset
|
179 |
{func = AnimSay, args = {natives[princessNum], loc("It's your fault you're there!"), SAY_SAY, 5000}}, |
7481 | 180 |
{func = AnimTurn, args = {natives[princessNum], "Left"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
185 |
{func = AnimSay, args = {natives[princessNum], loc("… and I think they are up to something. Something bad!"), SAY_SAY, 8000}}, |
7481 | 186 |
{func = AnimMove, args = {natives[leaksNum], "Right", nativePosWater[princessNum][1] - 30, nativePosWater[princessNum][2]}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
diff
changeset
|
189 |
{func = AnimSay, args = {natives[princessNum], loc("I love Dense Cloud now!"), SAY_SAY, 4000}}, |
7481 | 190 |
{func = AnimTurn, args = {natives[princessNum], "Right"}}, |
191 |
{func = AnimMove, args = {natives[denseNum], "Left", nativePosWater[princessNum][1] + 20, nativePosWater[princessNum][2]}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
diff
changeset
|
192 |
{func = AnimSay, args = {natives[denseNum], loc("Problems, dude? Chillax!"), SAY_SAY, 4000}}, |
7481 | 193 |
{func = AnimTurn, args = {natives[leaksNum], "Left"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
diff
changeset
|
194 |
{func = AnimSay, args = {natives[leaksNum], loc("Sigh."), SAY_SAY, 6000}}, |
7481 | 195 |
{func = AnimSwitchHog, args = {natives[leaksNum]}}, |
196 |
} |
|
197 |
end |
|
198 |
||
199 |
function SetupAnimDense() |
|
200 |
startAnim = { |
|
201 |
{func = AnimWait, args = {natives[1], 3000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
211 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 212 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
213 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
214 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
215 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
216 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
217 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
221 |
{func = AnimSay, args = {natives[denseNum], loc("I already said I'm sorry!"), SAY_SAY, 4000}}, |
7481 | 222 |
{func = AnimTurn, args = {natives[princessNum], "Right"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
diff
changeset
|
223 |
{func = AnimSay, args = {natives[princessNum], loc("Traitors don't get to shout around here!"), SAY_SAY, 7000}}, |
7481 | 224 |
{func = AnimTurn, args = {natives[princessNum], "Left"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
diff
changeset
|
226 |
{func = AnimSay, args = {natives[princessNum], loc("I don't know who I can trust anymore."), SAY_SAY, 6000}}, |
7481 | 227 |
{func = AnimMove, args = {natives[leaksNum], "Right", nativePosDense[princessNum][1] - 30, nativePosDense[princessNum][2]}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
diff
changeset
|
230 |
{func = AnimSay, args = {natives[princessNum], loc("I love you."), SAY_SAY, 2000}}, |
7481 | 231 |
{func = AnimSwitchHog, args = {natives[leaksNum]}}, |
232 |
} |
|
233 |
end |
|
234 |
||
235 |
function SetupAnimCyborg() |
|
236 |
startAnim = { |
|
237 |
{func = AnimWait, args = {natives[1], 3000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
247 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 248 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
249 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
250 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
251 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
252 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
253 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
diff
changeset
|
255 |
{func = AnimSay, args = {natives[leaksNum], loc("I'm glad this is over!"), SAY_SAY, 4000}}, |
7481 | 256 |
{func = AnimMove, args = {natives[princessNum], "Right", nativePosCyborg[princessNum][1] + 30, nativePosCyborg[princessNum][2]}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
diff
changeset
|
257 |
{func = AnimSay, args = {natives[princessNum], loc("I was so scared."), SAY_SAY, 2500}}, |
7481 | 258 |
{func = AnimMove, args = {natives[leaksNum], "Right", nativePosCyborg[princessNum][1], nativePosCyborg[princessNum][2]}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
diff
changeset
|
260 |
{func = AnimSay, args = {natives[leaksNum], loc("I'll protect you!"), SAY_SAY, 3000}}, |
7481 | 261 |
{func = AnimTurn, args = {natives[princessNum], "Left"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
diff
changeset
|
264 |
{func = AnimSay, args = {natives[leaksNum], loc("I … like being with you, too."), SAY_SAY, 4500}}, |
7481 | 265 |
} |
266 |
end |
|
267 |
||
268 |
function SetupAnimPrincess() |
|
269 |
startAnim = { |
|
270 |
{func = AnimWait, args = {natives[1], 3000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
280 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 281 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
282 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
283 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
284 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
285 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
286 |
{func = AnimWait, args = {natives[1], 1000}}, |
|
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
diff
changeset
|
287 |
{func = AnimSay, args = {natives[buffaloNum], loc("So I shook my fist in the air!"), SAY_SAY, 5000}}, |
12905
a9e4e8fa852c
Fix various typos in translatable strings
Wuzzy <Wuzzy2@mail.ru>
parents:
12799
diff
changeset
|
288 |
{func = AnimSay, args = {cannibals[brutalNum], loc("Well, that was an unnecessary act of violence."), SAY_SAY, 7000}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
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:
12229
diff
changeset
|
298 |
{func = AnimSay, args = {natives[girlNum], loc("Sure!"), SAY_SAY, 2000}}, |
7481 | 299 |
{func = AnimTurn, args = {natives[leaksNum], "Left"}}, |
12269
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12229
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:
12229
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 | 302 |
{func = AnimTurn, args = {natives[princessNum], "Left"}}, |
303 |
{func = AnimMove, args = {natives[princessNum], "Left", nativePosPrincess[princessNum][1] - 10, nativePosPrincess[princessNum][2]}}, |
|
304 |
{func = AnimSwitchHog, args = {natives[leaksNum]}} |
|
305 |
} |
|
306 |
end |
|
307 |
-----------------------------Misc-------------------------------------- |
|
308 |
function GetVariables() |
|
13150
5083fb0a2992
A Classic Fairytale: Harden all missions against missing campaign variables in team file and assume default values
Wuzzy <Wuzzy2@mail.ru>
parents:
12905
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:
12905
diff
changeset
|
310 |
-- princessScene is for fallback if campaign var was not found |
7481 | 311 |
end |
312 |
||
313 |
function AddHogs() |
|
14490
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14406
diff
changeset
|
314 |
AddTeam(loc("Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy") |
7481 | 315 |
for i = 1, 5 do |
316 |
natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i]) |
|
317 |
end |
|
318 |
||
13588
141cdfe0f3ca
Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents:
13150
diff
changeset
|
319 |
AddTeam(loc("More Natives"), -2, "Bone", "Island", "HillBilly", "cm_birdy") |
7481 | 320 |
for i = 6, 10 do |
321 |
natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i]) |
|
322 |
end |
|
323 |
||
13588
141cdfe0f3ca
Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents:
13150
diff
changeset
|
324 |
AddTeam(loc("Cannibals"), -2, "skull", "Island", "HillBilly", "cm_birdy") |
7481 | 325 |
for i = 1, 5 do |
326 |
cannibals[i] = AddHog(cannibalNames[i], 0, 100, cannibalHats[i]) |
|
327 |
end |
|
328 |
||
329 |
if m8Scene == denseScene or m8Scene == waterScene then |
|
13588
141cdfe0f3ca
Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents:
13150
diff
changeset
|
330 |
AddTeam(loc("Traitors"), -2, "Bone", "Island", "HillBilly", "cm_bloodyblade") |
7481 | 331 |
if m8Scene == denseScene then |
332 |
DeleteGear(natives[2]) |
|
333 |
natives[2] = AddHog(nativeNames[2], 0, 100, nativeHats[2]) |
|
334 |
else |
|
335 |
DeleteGear(natives[3]) |
|
336 |
natives[3] = AddHog(nativeNames[3], 0, 100, nativeHats[3]) |
|
337 |
end |
|
338 |
end |
|
339 |
||
340 |
SetGearPositions() |
|
341 |
end |
|
342 |
||
343 |
function SetGearPositions() |
|
344 |
if m8Scene == cyborgScene then |
|
345 |
for i = 1, 10 do |
|
346 |
AnimSetGearPosition(natives[i], unpack(nativePosCyborg[i])) |
|
347 |
AnimTurn(natives[i], nativeDirCyborg[i]) |
|
348 |
end |
|
349 |
elseif m8Scene == waterScene then |
|
350 |
for i = 1, 10 do |
|
351 |
AnimSetGearPosition(natives[i], unpack(nativePosWater[i])) |
|
352 |
AnimTurn(natives[i], nativeDirWater[i]) |
|
353 |
end |
|
354 |
elseif m8Scene == denseScene then |
|
355 |
for i = 1, 10 do |
|
356 |
AnimSetGearPosition(natives[i], unpack(nativePosDense[i])) |
|
357 |
AnimTurn(natives[i], nativeDirDense[i]) |
|
358 |
end |
|
359 |
else |
|
360 |
for i = 1, 10 do |
|
361 |
AnimSetGearPosition(natives[i], unpack(nativePosPrincess[i])) |
|
362 |
AnimTurn(natives[i], nativeDirPrincess[i]) |
|
363 |
end |
|
364 |
end |
|
365 |
||
366 |
for i = 1, 5 do |
|
367 |
AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
|
368 |
AnimTurn(cannibals[i], cannibalDir[i]) |
|
369 |
end |
|
370 |
end |
|
371 |
||
372 |
function SetupPlace() |
|
373 |
if m8Scene == denseScene or m8Scene == waterScene then |
|
374 |
PlaceGirder(2296, 798, 4) |
|
375 |
PlaceGirder(2296, 700, 4) |
|
376 |
PlaceGirder(2225, 750, 2) |
|
377 |
PlaceGirder(2245, 750, 2) |
|
378 |
PlaceGirder(2265, 750, 2) |
|
379 |
PlaceGirder(2305, 750, 2) |
|
380 |
PlaceGirder(2345, 750, 2) |
|
381 |
PlaceGirder(2365, 750, 2) |
|
382 |
end |
|
383 |
if m8Scene == denseScene then |
|
384 |
traitor = natives[denseNum] |
|
385 |
elseif m8Scene == waterScene then |
|
386 |
traitor = natives[waterNum] |
|
387 |
end |
|
388 |
end |
|
389 |
-----------------------------Main Functions---------------------------- |
|
390 |
function onGameInit() |
|
391 |
Seed = 1 |
|
392 |
GameFlags = gfOneClanMode |
|
393 |
TurnTime = 60000 |
|
394 |
CaseFreq = 0 |
|
395 |
MinesNum = 0 |
|
396 |
MinesTime = 3000 |
|
397 |
Explosives = 0 |
|
398 |
Map = "Hogville" |
|
399 |
Theme = "Nature" |
|
12229
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12054
diff
changeset
|
400 |
-- Disable Sudden Death |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12054
diff
changeset
|
401 |
HealthDecrease = 0 |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12054
diff
changeset
|
402 |
WaterRise = 0 |
7481 | 403 |
|
404 |
GetVariables() |
|
405 |
AddHogs() |
|
406 |
AnimInit() |
|
407 |
end |
|
408 |
||
409 |
function onGameStart() |
|
410 |
SetupPlace() |
|
411 |
AnimationSetup() |
|
412 |
AddAnim(startAnim) |
|
413 |
AddFunction({func = AfterStartAnim, args = {}}) |
|
414 |
end |
|
415 |
||
416 |
function onGameTick() |
|
417 |
AnimUnWait() |
|
418 |
if ShowAnimation() == false then |
|
419 |
return |
|
420 |
end |
|
421 |
ExecuteAfterAnimations() |
|
422 |
CheckEvents() |
|
423 |
end |
|
424 |
||
12370
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
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:
12369
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:
12369
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:
12369
diff
changeset
|
428 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
429 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
430 |
|
7481 | 431 |
function onGearDelete(gear) |
432 |
gearDead[gear] = true |
|
12370
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
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:
12369
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:
12369
diff
changeset
|
435 |
end |
7481 | 436 |
end |
437 |
||
438 |
function onAmmoStoreInit() |
|
11038 | 439 |
SetAmmo(amAirAttack, 9, 0, 0, 0) |
7481 | 440 |
SetAmmo(amBaseballBat, 9, 0, 0, 0) |
441 |
SetAmmo(amBazooka, 9, 0, 0, 0) |
|
442 |
SetAmmo(amBlowTorch, 9, 0, 0, 0) |
|
443 |
SetAmmo(amClusterBomb,9, 0, 0, 0) |
|
444 |
SetAmmo(amDEagle, 9, 0, 0, 0) |
|
445 |
SetAmmo(amDrill, 9, 0, 0, 4) |
|
446 |
SetAmmo(amDynamite, 9, 0, 0, 3) |
|
447 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
|
448 |
SetAmmo(amFlamethrower, 9, 0, 0, 3) |
|
449 |
SetAmmo(amGirder, 9, 0, 0, 0) |
|
450 |
SetAmmo(amGrenade, 9, 0, 0, 0) |
|
451 |
SetAmmo(amHammer, 9, 0, 0, 0) |
|
452 |
SetAmmo(amJetpack, 9, 0, 0, 0) |
|
453 |
SetAmmo(amLandGun, 9, 0, 0, 0) |
|
454 |
SetAmmo(amLowGravity, 9, 0, 0, 2) |
|
455 |
SetAmmo(amMine, 9, 0, 0, 2) |
|
456 |
SetAmmo(amMolotov, 9, 0, 0, 3) |
|
457 |
SetAmmo(amMortar, 9, 0, 0, 4) |
|
458 |
SetAmmo(amNapalm, 9, 0, 0, 4) |
|
459 |
SetAmmo(amParachute, 9, 0, 0, 0) |
|
460 |
SetAmmo(amPickHammer, 9, 0, 0, 0) |
|
461 |
SetAmmo(amPortalGun, 9, 0, 0, 0) |
|
462 |
SetAmmo(amRope, 9, 0, 0, 0) |
|
463 |
SetAmmo(amRCPlane, 9, 0, 0, 0) |
|
464 |
SetAmmo(amSkip, 9, 0, 0, 0) |
|
465 |
SetAmmo(amShotgun, 9, 0, 0, 0) |
|
466 |
SetAmmo(amSMine, 9, 0, 0, 2) |
|
467 |
SetAmmo(amSniperRifle, 9, 0, 0, 0) |
|
468 |
SetAmmo(amSnowball, 9, 0, 0, 0) |
|
469 |
SetAmmo(amSwitch, 9, 0, 0, 0) |
|
470 |
SetAmmo(amTeleport, 9, 0, 0, 0) |
|
471 |
SetAmmo(amWatermelon, 9, 0, 0, 0) |
|
472 |
SetAmmo(amWhip, 9, 0, 0, 0) |
|
473 |
end |
|
474 |
||
12370
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
475 |
function IsEveryoneExceptTraitorDead() |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
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:
12369
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:
12369
diff
changeset
|
478 |
return false |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
479 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
480 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
481 |
return true |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
482 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
diff
changeset
|
483 |
|
7481 | 484 |
function onNewTurn() |
485 |
if AnimInProgress() then |
|
13755
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13745
diff
changeset
|
486 |
SetTurnTimeLeft(MAX_TURN_TIME) |
7481 | 487 |
return |
488 |
end |
|
12370
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12369
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:
12369
diff
changeset
|
490 |
if CurrentHedgehog == traitor and not IsEveryoneExceptTraitorDead() then |
12369
5857936921ec
Get rid of some incorrect timeout messages in ACF, by using EndTurn(true)
Wuzzy <almikes@aol.com>
parents:
12269
diff
changeset
|
491 |
EndTurn(true) |
7481 | 492 |
else |
13755
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13745
diff
changeset
|
493 |
SetTurnTimeLeft(MAX_TURN_TIME) |
7481 | 494 |
end |
495 |
end |
|
496 |
||
497 |
function onPrecise() |
|
498 |
if GameTime > 2500 then |
|
499 |
SetAnimSkip(true) |
|
500 |
end |
|
501 |
end |