author | Wuzzy <Wuzzy2@mail.ru> |
Tue, 11 Feb 2020 01:33:31 +0100 | |
changeset 15568 | 6b9655be1e7f |
parent 15189 | e1dbe2c9026f |
permissions | -rw-r--r-- |
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 | 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 = {} |
|
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 = {} |
14633
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
116 |
|
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
117 |
local traitorTeamName = loc("Traitors") |
7481 | 118 |
--------------------------Anim skip functions-------------------------- |
119 |
function SkipStartAnim() |
|
120 |
SetGearMessage(CurrentHedgehog, 0) |
|
121 |
AnimSwitchHog(natives[1]) |
|
122 |
end |
|
123 |
||
124 |
function AfterStartAnim() |
|
125 |
crate = SpawnHealthCrate(0, 0) |
|
126 |
SetGearMessage(CurrentHedgehog, 0) |
|
127 |
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
|
128 |
EndTurn(true) |
12264
41542ed28fe4
Allow the diaogues in ACF missions 8 and 10 to be translated
Wuzzy <almikes@aol.com>
parents:
12224
diff
changeset
|
129 |
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
|
130 |
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
|
131 |
loc("If you wish to replay, there are other possible endings, too!").."|".. |
15089
6f51c75994a4
Semi-standardize usage of icons in many mission panels
Wuzzy <Wuzzy2@mail.ru>
parents:
15023
diff
changeset
|
132 |
loc("You can practice moving around and using utilities in this mission.|However, it will never end!"), 4, 0) |
11955
d72a177dbaea
Update campaign drop-down list after campaign victory
Wuzzy <almikes@aol.com>
parents:
11954
diff
changeset
|
133 |
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
|
134 |
SaveCampaignVar("Won", "true") |
7481 | 135 |
end |
136 |
||
137 |
---------------------------Events------------------------------------- |
|
138 |
function CheckCrateTaken() |
|
139 |
return gearDead[crate] |
|
140 |
end |
|
141 |
||
142 |
function DoCrateTaken() |
|
143 |
crate = SpawnHealthCrate(0, 0) |
|
144 |
end |
|
145 |
-----------------------------Animations-------------------------------- |
|
146 |
function AnimationSetup() |
|
147 |
if m8Scene == cyborgScene then |
|
148 |
SetupAnimCyborg() |
|
149 |
elseif m8Scene == princessScene then |
|
150 |
SetupAnimPrincess() |
|
151 |
elseif m8Scene == waterScene then |
|
152 |
SetupAnimWater() |
|
153 |
else |
|
154 |
SetupAnimDense() |
|
155 |
end |
|
156 |
AddSkipFunction(startAnim, SkipStartAnim, {}) |
|
157 |
end |
|
158 |
||
159 |
function SetupAnimWater() |
|
160 |
startAnim = { |
|
161 |
{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
|
162 |
{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
|
163 |
{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
|
164 |
{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
|
165 |
{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
|
166 |
{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
|
167 |
{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
|
168 |
{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
|
169 |
{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
|
170 |
{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
|
171 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 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}}, |
|
176 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
177 |
{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
|
178 |
{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
|
179 |
{func = AnimSay, args = {natives[waterNum], loc("Aye! Fellow! Let me exit this chamber of doom!"), SAY_SAY, 7000}}, |
7481 | 180 |
{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
|
181 |
{func = AnimSay, args = {natives[princessNum], loc("It's your fault you're there!"), SAY_SAY, 5000}}, |
7481 | 182 |
{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
|
183 |
{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
|
184 |
{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
|
185 |
{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
|
186 |
{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
|
187 |
{func = AnimSay, args = {natives[princessNum], loc("… and I think they are up to something. Something bad!"), SAY_SAY, 8000}}, |
7481 | 188 |
{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
|
189 |
{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
|
190 |
{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
|
191 |
{func = AnimSay, args = {natives[princessNum], loc("I love Dense Cloud now!"), SAY_SAY, 4000}}, |
7481 | 192 |
{func = AnimTurn, args = {natives[princessNum], "Right"}}, |
193 |
{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
|
194 |
{func = AnimSay, args = {natives[denseNum], loc("Problems, dude? Chillax!"), SAY_SAY, 4000}}, |
7481 | 195 |
{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
|
196 |
{func = AnimSay, args = {natives[leaksNum], loc("Sigh."), SAY_SAY, 6000}}, |
7481 | 197 |
{func = AnimSwitchHog, args = {natives[leaksNum]}}, |
198 |
} |
|
199 |
end |
|
200 |
||
201 |
function SetupAnimDense() |
|
202 |
startAnim = { |
|
203 |
{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
|
204 |
{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
|
205 |
{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
|
206 |
{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
|
207 |
{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
|
208 |
{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
|
209 |
{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
|
210 |
{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
|
211 |
{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
|
212 |
{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
|
213 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 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}}, |
|
218 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
219 |
{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
|
220 |
{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
|
221 |
{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
|
222 |
{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
|
223 |
{func = AnimSay, args = {natives[denseNum], loc("I already said I'm sorry!"), SAY_SAY, 4000}}, |
7481 | 224 |
{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
|
225 |
{func = AnimSay, args = {natives[princessNum], loc("Traitors don't get to shout around here!"), SAY_SAY, 7000}}, |
7481 | 226 |
{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
|
227 |
{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
|
228 |
{func = AnimSay, args = {natives[princessNum], loc("I don't know who I can trust anymore."), SAY_SAY, 6000}}, |
7481 | 229 |
{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
|
230 |
{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
|
231 |
{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
|
232 |
{func = AnimSay, args = {natives[princessNum], loc("I love you."), SAY_SAY, 2000}}, |
7481 | 233 |
{func = AnimSwitchHog, args = {natives[leaksNum]}}, |
234 |
} |
|
235 |
end |
|
236 |
||
237 |
function SetupAnimCyborg() |
|
238 |
startAnim = { |
|
239 |
{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
|
240 |
{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
|
241 |
{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
|
242 |
{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
|
243 |
{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
|
244 |
{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
|
245 |
{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
|
246 |
{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
|
247 |
{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
|
248 |
{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
|
249 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 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}}, |
|
254 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
255 |
{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
|
256 |
{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
|
257 |
{func = AnimSay, args = {natives[leaksNum], loc("I'm glad this is over!"), SAY_SAY, 4000}}, |
7481 | 258 |
{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
|
259 |
{func = AnimSay, args = {natives[princessNum], loc("I was so scared."), SAY_SAY, 2500}}, |
7481 | 260 |
{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
|
261 |
{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
|
262 |
{func = AnimSay, args = {natives[leaksNum], loc("I'll protect you!"), SAY_SAY, 3000}}, |
7481 | 263 |
{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
|
264 |
{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
|
265 |
{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
|
266 |
{func = AnimSay, args = {natives[leaksNum], loc("I … like being with you, too."), SAY_SAY, 4500}}, |
7481 | 267 |
} |
268 |
end |
|
269 |
||
270 |
function SetupAnimPrincess() |
|
271 |
startAnim = { |
|
272 |
{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
|
273 |
{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
|
274 |
{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
|
275 |
{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
|
276 |
{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
|
277 |
{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
|
278 |
{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
|
279 |
{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
|
280 |
{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
|
281 |
{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
|
282 |
{func = AnimSay, args = {natives[chiefNum], loc("You speak great truth, Hannibal. Here, take a sip!"), SAY_SAY, 7500}}, |
7481 | 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}}, |
|
287 |
{func = AnimVisualGear, args = {cannibals[hanniNum], cannibalPos[hanniNum][1], cannibalPos[hanniNum][2], vgtSmoke, 0, true}}, |
|
288 |
{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
|
289 |
{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
|
290 |
{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
|
291 |
{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
|
292 |
{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
|
293 |
{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
|
294 |
{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
|
295 |
{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
|
296 |
{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
|
297 |
{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
|
298 |
{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
|
299 |
{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
|
300 |
{func = AnimSay, args = {natives[girlNum], loc("Sure!"), SAY_SAY, 2000}}, |
7481 | 301 |
{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
|
302 |
{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
|
303 |
{func = AnimSay, args = {natives[princessNum], loc("I don't know if I can forget what you've done!"), SAY_SAY, 7000}}, |
7481 | 304 |
{func = AnimTurn, args = {natives[princessNum], "Left"}}, |
305 |
{func = AnimMove, args = {natives[princessNum], "Left", nativePosPrincess[princessNum][1] - 10, nativePosPrincess[princessNum][2]}}, |
|
306 |
{func = AnimSwitchHog, args = {natives[leaksNum]}} |
|
307 |
} |
|
308 |
end |
|
309 |
-----------------------------Misc-------------------------------------- |
|
310 |
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
|
311 |
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
|
312 |
-- princessScene is for fallback if campaign var was not found |
7481 | 313 |
end |
314 |
||
315 |
function AddHogs() |
|
14507
f8c2b995c009
Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents:
14506
diff
changeset
|
316 |
local nativesTeamName = AddMissionTeam(-2) |
7481 | 317 |
for i = 1, 5 do |
318 |
natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i]) |
|
319 |
end |
|
320 |
||
14507
f8c2b995c009
Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents:
14506
diff
changeset
|
321 |
local grave, voice, flag = GetHogGrave(natives[1]), GetHogVoicepack(natives[1]), GetHogFlag(natives[1]) |
f8c2b995c009
Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents:
14506
diff
changeset
|
322 |
AddTeam(string.format(loc("%s (contd.)"), nativesTeamName), -2, grave, "Island", voice, flag) |
7481 | 323 |
for i = 6, 10 do |
324 |
natives[i] = AddHog(nativeNames[i], 0, 100, nativeHats[i]) |
|
325 |
end |
|
326 |
||
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
327 |
AddTeam(loc("Cannibals"), -2, "skull", "Island", "Pirate_qau", "cm_vampire") |
7481 | 328 |
for i = 1, 5 do |
329 |
cannibals[i] = AddHog(cannibalNames[i], 0, 100, cannibalHats[i]) |
|
330 |
end |
|
331 |
||
332 |
if m8Scene == denseScene or m8Scene == waterScene then |
|
14633
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
333 |
traitorTeamName = AddTeam(traitorTeamName, -2, grave, "Island", voice, "cm_bloodyblade") |
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
334 |
SetTeamPassive(traitorTeamName, true) |
7481 | 335 |
if m8Scene == denseScene then |
336 |
DeleteGear(natives[2]) |
|
337 |
natives[2] = AddHog(nativeNames[2], 0, 100, nativeHats[2]) |
|
338 |
else |
|
339 |
DeleteGear(natives[3]) |
|
340 |
natives[3] = AddHog(nativeNames[3], 0, 100, nativeHats[3]) |
|
341 |
end |
|
342 |
end |
|
343 |
||
344 |
SetGearPositions() |
|
345 |
end |
|
346 |
||
347 |
function SetGearPositions() |
|
348 |
if m8Scene == cyborgScene then |
|
349 |
for i = 1, 10 do |
|
350 |
AnimSetGearPosition(natives[i], unpack(nativePosCyborg[i])) |
|
351 |
AnimTurn(natives[i], nativeDirCyborg[i]) |
|
352 |
end |
|
353 |
elseif m8Scene == waterScene then |
|
354 |
for i = 1, 10 do |
|
355 |
AnimSetGearPosition(natives[i], unpack(nativePosWater[i])) |
|
356 |
AnimTurn(natives[i], nativeDirWater[i]) |
|
357 |
end |
|
358 |
elseif m8Scene == denseScene then |
|
359 |
for i = 1, 10 do |
|
360 |
AnimSetGearPosition(natives[i], unpack(nativePosDense[i])) |
|
361 |
AnimTurn(natives[i], nativeDirDense[i]) |
|
362 |
end |
|
363 |
else |
|
364 |
for i = 1, 10 do |
|
365 |
AnimSetGearPosition(natives[i], unpack(nativePosPrincess[i])) |
|
366 |
AnimTurn(natives[i], nativeDirPrincess[i]) |
|
367 |
end |
|
368 |
end |
|
369 |
||
370 |
for i = 1, 5 do |
|
371 |
AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
|
372 |
AnimTurn(cannibals[i], cannibalDir[i]) |
|
373 |
end |
|
374 |
end |
|
375 |
||
376 |
function SetupPlace() |
|
377 |
if m8Scene == denseScene or m8Scene == waterScene then |
|
378 |
PlaceGirder(2296, 798, 4) |
|
379 |
PlaceGirder(2296, 700, 4) |
|
380 |
PlaceGirder(2225, 750, 2) |
|
381 |
PlaceGirder(2245, 750, 2) |
|
382 |
PlaceGirder(2265, 750, 2) |
|
383 |
PlaceGirder(2305, 750, 2) |
|
384 |
PlaceGirder(2345, 750, 2) |
|
385 |
PlaceGirder(2365, 750, 2) |
|
386 |
end |
|
387 |
if m8Scene == denseScene then |
|
388 |
traitor = natives[denseNum] |
|
389 |
elseif m8Scene == waterScene then |
|
390 |
traitor = natives[waterNum] |
|
391 |
end |
|
392 |
end |
|
393 |
-----------------------------Main Functions---------------------------- |
|
394 |
function onGameInit() |
|
395 |
Seed = 1 |
|
396 |
GameFlags = gfOneClanMode |
|
397 |
TurnTime = 60000 |
|
398 |
CaseFreq = 0 |
|
399 |
MinesNum = 0 |
|
400 |
MinesTime = 3000 |
|
401 |
Explosives = 0 |
|
402 |
Map = "Hogville" |
|
403 |
Theme = "Nature" |
|
12224
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
404 |
-- Disable Sudden Death |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
405 |
HealthDecrease = 0 |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
406 |
WaterRise = 0 |
7481 | 407 |
|
408 |
GetVariables() |
|
409 |
AddHogs() |
|
410 |
AnimInit() |
|
411 |
end |
|
412 |
||
413 |
function onGameStart() |
|
414 |
SetupPlace() |
|
415 |
AnimationSetup() |
|
416 |
AddAnim(startAnim) |
|
417 |
AddFunction({func = AfterStartAnim, args = {}}) |
|
418 |
end |
|
419 |
||
420 |
function onGameTick() |
|
421 |
AnimUnWait() |
|
422 |
if ShowAnimation() == false then |
|
423 |
return |
|
424 |
end |
|
425 |
ExecuteAfterAnimations() |
|
426 |
CheckEvents() |
|
427 |
end |
|
428 |
||
12365
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
429 |
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
|
430 |
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
|
431 |
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
|
432 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
433 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
434 |
|
7481 | 435 |
function onGearDelete(gear) |
436 |
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
|
437 |
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
|
438 |
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
|
439 |
end |
14633
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
440 |
if IsEveryoneExceptTraitorDead() then |
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
441 |
SetTeamPassive(traitorTeamName, false) |
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
442 |
end |
7481 | 443 |
end |
444 |
||
445 |
function onAmmoStoreInit() |
|
11038 | 446 |
SetAmmo(amAirAttack, 9, 0, 0, 0) |
7481 | 447 |
SetAmmo(amBaseballBat, 9, 0, 0, 0) |
448 |
SetAmmo(amBazooka, 9, 0, 0, 0) |
|
449 |
SetAmmo(amBlowTorch, 9, 0, 0, 0) |
|
450 |
SetAmmo(amClusterBomb,9, 0, 0, 0) |
|
451 |
SetAmmo(amDEagle, 9, 0, 0, 0) |
|
452 |
SetAmmo(amDrill, 9, 0, 0, 4) |
|
453 |
SetAmmo(amDynamite, 9, 0, 0, 3) |
|
454 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
|
455 |
SetAmmo(amFlamethrower, 9, 0, 0, 3) |
|
456 |
SetAmmo(amGirder, 9, 0, 0, 0) |
|
457 |
SetAmmo(amGrenade, 9, 0, 0, 0) |
|
458 |
SetAmmo(amHammer, 9, 0, 0, 0) |
|
459 |
SetAmmo(amJetpack, 9, 0, 0, 0) |
|
460 |
SetAmmo(amLandGun, 9, 0, 0, 0) |
|
461 |
SetAmmo(amLowGravity, 9, 0, 0, 2) |
|
462 |
SetAmmo(amMine, 9, 0, 0, 2) |
|
463 |
SetAmmo(amMolotov, 9, 0, 0, 3) |
|
464 |
SetAmmo(amMortar, 9, 0, 0, 4) |
|
465 |
SetAmmo(amNapalm, 9, 0, 0, 4) |
|
466 |
SetAmmo(amParachute, 9, 0, 0, 0) |
|
467 |
SetAmmo(amPickHammer, 9, 0, 0, 0) |
|
468 |
SetAmmo(amPortalGun, 9, 0, 0, 0) |
|
469 |
SetAmmo(amRope, 9, 0, 0, 0) |
|
470 |
SetAmmo(amRCPlane, 9, 0, 0, 0) |
|
471 |
SetAmmo(amSkip, 9, 0, 0, 0) |
|
472 |
SetAmmo(amShotgun, 9, 0, 0, 0) |
|
473 |
SetAmmo(amSMine, 9, 0, 0, 2) |
|
474 |
SetAmmo(amSniperRifle, 9, 0, 0, 0) |
|
475 |
SetAmmo(amSnowball, 9, 0, 0, 0) |
|
476 |
SetAmmo(amSwitch, 9, 0, 0, 0) |
|
477 |
SetAmmo(amTeleport, 9, 0, 0, 0) |
|
478 |
SetAmmo(amWatermelon, 9, 0, 0, 0) |
|
479 |
SetAmmo(amWhip, 9, 0, 0, 0) |
|
480 |
end |
|
481 |
||
12365
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
482 |
function IsEveryoneExceptTraitorDead() |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
483 |
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
|
484 |
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
|
485 |
return false |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
486 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
487 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
488 |
return true |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
489 |
end |
92b4bab79c26
Fix ACF Eplilogue becoming unplayble when all hogs except the traitor have died
Wuzzy <almikes@aol.com>
parents:
12364
diff
changeset
|
490 |
|
7481 | 491 |
function onNewTurn() |
14633
bd15c8551318
Make use of passive teams in various campaign missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14508
diff
changeset
|
492 |
SetTurnTimeLeft(MAX_TURN_TIME) |
7481 | 493 |
end |
494 |
||
15023
3ed1cbd31754
Backed out changeset 4596357d002d (onPreciseLocal causes desyncs)
Wuzzy <Wuzzy2@mail.ru>
parents:
14953
diff
changeset
|
495 |
function onPrecise() |
7481 | 496 |
if GameTime > 2500 then |
497 |
SetAnimSkip(true) |
|
498 |
end |
|
499 |
end |
|
15189
e1dbe2c9026f
ACF10: Show proper messages when everyone dies
Wuzzy <Wuzzy2@mail.ru>
parents:
15089
diff
changeset
|
500 |
|
e1dbe2c9026f
ACF10: Show proper messages when everyone dies
Wuzzy <Wuzzy2@mail.ru>
parents:
15089
diff
changeset
|
501 |
function onGameResult(winner) |
e1dbe2c9026f
ACF10: Show proper messages when everyone dies
Wuzzy <Wuzzy2@mail.ru>
parents:
15089
diff
changeset
|
502 |
AddCaption(loc("Game over!"), capcolDefault, capgrpGameState) |
e1dbe2c9026f
ACF10: Show proper messages when everyone dies
Wuzzy <Wuzzy2@mail.ru>
parents:
15089
diff
changeset
|
503 |
SendStat(siGameResult, loc("You have successfully finished the campaign!")) |
e1dbe2c9026f
ACF10: Show proper messages when everyone dies
Wuzzy <Wuzzy2@mail.ru>
parents:
15089
diff
changeset
|
504 |
end |