author | Wuzzy <Wuzzy2@mail.ru> |
Thu, 23 May 2019 08:50:18 +0200 | |
changeset 15054 | 1bce780e55ac |
parent 15051 | 2e89487540d8 |
child 15055 | 981f16edea02 |
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:
12775
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:
12775
diff
changeset
|
2 |
A Classic Fairytale: The Shadow Falls |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
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:
12775
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:
12775
diff
changeset
|
5 |
Dense Cloud and Leaks a Lot fight against waves of cannibals. Then a |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
6 |
cyborg shows up and offers one of the natives goodies in exchange for |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
7 |
betraying his tribe. |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
8 |
|
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
9 |
The decision affects the rest of the story. The survival of Dense |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
10 |
Cloud is important for the gameplay of the next mission. |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
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:
12775
diff
changeset
|
12 |
= 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:
12775
diff
changeset
|
13 |
Kill Weaklings and Stronglings. |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
14 |
|
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
15 |
= 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:
12775
diff
changeset
|
16 |
== 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:
12775
diff
changeset
|
17 |
|
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
18 |
- Initial hog spawns: Dense Cloud, Leaks a Lot and Brainiac (Weaklings) |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
19 |
- Cut scene: startDialogue |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
20 |
- TBS |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
21 |
- Brainiac 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:
12775
diff
changeset
|
22 |
- Cut scene: weaklingsAnim |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
23 |
- The remaining Weaklings spawn |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
24 |
- TBS |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
25 |
- All Weaklings 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:
12775
diff
changeset
|
26 |
- Cut scene: stronglingsAnim: Stronglings spawn, hero walks to forest, meets cyborg, cyborg makes offer |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
27 |
- The cyborg offer is an IMPORTANT decision, it completely changes the next mission, and the rest of the story |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
28 |
| Accept: Player walks to 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:
12775
diff
changeset
|
29 |
- Cut scene: acceptAnim |
12796
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
30 |
- Hero needs to walk all the way back (infinite turn time) |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
31 |
- Hero reached tree |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
32 |
- Turn time starts |
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:
12775
diff
changeset
|
33 |
- TBS |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
34 |
- Stronglings defeated |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
35 |
| Stronglings defeated with both hogs survived |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
36 |
- Cut scene: acceptedSurvivedFinalAnim |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
37 |
| Stronglings deafeated with Dense Cloud 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:
12775
diff
changeset
|
38 |
- Cut scene: acceptedDiedFinalAnim |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
39 |
> Victory |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
40 |
| Reject: Player walks away |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
41 |
- Cut scene: refusedAnim |
12796
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
42 |
- Leaks a Lot teleports back to tree at the start (automatically) |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
43 |
- Spiky Cheese and Ramon appear together with crates |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
44 |
- Spiky Cheese gains control |
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:
12775
diff
changeset
|
45 |
- TBS |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
46 |
- Stronglings defeated |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
47 |
- Cut scene: refusedFinalAnim |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
48 |
> Victory |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
49 |
| Attack: Player attacks 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:
12775
diff
changeset
|
50 |
- Cut scene: attackAnim |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
51 |
- Cyborg kills hero |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
52 |
- Other native's turn to defeat Stronglings |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
53 |
- TBS |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
54 |
- Stronglings defeated |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
55 |
- Cut scene: attackedFinalAnim |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
56 |
> Victory |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
57 |
|
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
58 |
== Non-linear events == |
12796
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
59 |
| Dense Cloud or Leaks A Lot dead (exceptions: killed by cyborg; or Leaks A Lot died in the battle against the Stronglings): |
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:
12775
diff
changeset
|
60 |
> Game over |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
61 |
|
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
62 |
]] |
bca911f8e804
Add comments for all A Classic Fairytale missions to summarize the story in a flow chart-like fashion
Wuzzy <Wuzzy2@mail.ru>
parents:
12775
diff
changeset
|
63 |
|
8043 | 64 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
65 |
HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
66 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
67 |
-----------------------------Constants--------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
68 |
startStage = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
69 |
spyStage = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
70 |
wave1Stage = 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
71 |
wave2Stage = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
72 |
cyborgStage = 4 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
73 |
ramonStage = 5 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
74 |
aloneStage = 6 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
75 |
duoStage = 7 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
76 |
interSpyStage = 8 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
77 |
interWeakStage = 9 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
78 |
acceptedReturnStage = 10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
79 |
refusedReturnStage = 11 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
80 |
attackedReturnStage = 12 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
81 |
loseStage = 13 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
82 |
|
14681
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
83 |
wave1EnemyTurn = false |
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
84 |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
85 |
ourTeam = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
86 |
weakTeam = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
87 |
strongTeam = 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
88 |
cyborgTeam = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
89 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
90 |
leaksNr = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
91 |
denseNr = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
92 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
93 |
choiceAccept = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
94 |
choiceRefuse = 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
95 |
choiceAttack = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
96 |
|
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
97 |
HogNames = {loc("Brainiac"), loc("Corpsemonger"), loc("Femur Lover"), loc("Glark"), loc("Bonely"), loc("Rot Molester"), loc("Bloodrocutor"), loc("Muscle Dissolver"), loc("Bloodsucker")} |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
98 |
|
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
99 |
nativesTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
100 |
weaklingsTeamName = nil |
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
101 |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
102 |
---POSITIONS--- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
103 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
104 |
cannibalPos = {{3108, 1127}, |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
105 |
{2559, 1080}, {3598, 1270}, {3293, 1177}, {2623, 1336}, |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
106 |
{3418, 1336}, {3447, 1335}, {3481, 1340}, {3507, 1324}} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
107 |
densePos = {2776, 1177} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
108 |
leaksPos = {2941, 1172} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
109 |
cyborgPos = {1113, 1818} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
110 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
111 |
---Animations |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
112 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
113 |
startDialogue = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
114 |
weaklingsAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
115 |
stronglingsAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
116 |
acceptedAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
117 |
acceptedSurvivedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
118 |
acceptedDiedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
119 |
refusedAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
120 |
refusedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
121 |
attackedAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
122 |
attackedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
123 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
124 |
-----------------------------Variables--------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
125 |
lastHogTeam = ourTeam |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
126 |
lastOurHog = leaksNr |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
127 |
lastEnemyHog = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
128 |
stage = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
129 |
choice = 0 |
14898
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
130 |
checkAcceptTimer = 0 |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
131 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
132 |
brainiacDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
133 |
cyborgHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
134 |
leaksHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
135 |
denseHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
136 |
cyborgAttacked = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
137 |
shotgunTaken = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
138 |
grenadeTaken = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
139 |
spikyDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
140 |
ramonDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
141 |
denseDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
142 |
leaksDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
143 |
ramonHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
144 |
spikyHidden = false |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
145 |
grenadeUsed = false |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
146 |
shotgunUsed = false |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
147 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
148 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
149 |
hogNr = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
150 |
cannibalDead = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
151 |
isHidden = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
152 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
153 |
--------------------------Anim skip functions-------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
154 |
function AfterRefusedAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
155 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
156 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
157 |
end |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
158 |
SpawnSupplyCrate(2045, 1575, amSwitch) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
159 |
SpawnSupplyCrate(2365, 1495, amShotgun) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
160 |
SpawnSupplyCrate(2495, 1519, amGrenade) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
161 |
SpawnSupplyCrate(2620, 1524, amRope) |
12263
2c8e7e73ef58
Use format strings everywhere in A Classic Fairytale (for translators)
Wuzzy <almikes@aol.com>
parents:
12224
diff
changeset
|
162 |
ShowMission(loc("The Shadow Falls"), loc("The Showdown"), loc("Save Leaks A Lot!|Hint: The switch hedgehog utility might be of help to you."), 1, 6000) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
163 |
RemoveEventFunc(CheckDenseDead) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
164 |
AddEvent(CheckStronglingsDead, {}, DoStronglingsDeadRefused, {}, 0) |
7530 | 165 |
AddAmmo(cannibals[6], amGrenade, 1) |
166 |
AddAmmo(cannibals[7], amGrenade, 1) |
|
167 |
AddAmmo(cannibals[8], amGrenade, 1) |
|
168 |
AddAmmo(cannibals[9], amGrenade, 1) |
|
12796
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
169 |
AddAmmo(dense, amSkip, 100) |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
170 |
AddAmmo(leaks, amSkip, 100) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
171 |
stage = ramonStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
172 |
SwitchHog(cannibals[9]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
173 |
FollowGear(ramon) |
12551 | 174 |
EndTurn(true) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
175 |
SetGearMessage(ramon, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
176 |
SetGearMessage(leaks, 0) |
7502
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
177 |
AnimWait(ramon, 1) |
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
178 |
AddFunction({func = HideHog, args = {cyborg}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
179 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
180 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
181 |
function SkipRefusedAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
182 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
183 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
184 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
185 |
RefusedStart() |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
186 |
AnimSetGearPosition(dense, 2645, 1146) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
187 |
AnimSetGearPosition(ramon, 2218, 1675) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
188 |
AnimSetGearPosition(spiky, 2400, 1675) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
189 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
190 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
191 |
function AfterStartDialogue() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
192 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
193 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
194 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
195 |
stage = spyStage |
12775
2c426663d971
ACF2: Mention that both hogs must survive
Wuzzy <Wuzzy2@mail.ru>
parents:
12774
diff
changeset
|
196 |
ShowMission(loc("The Shadow Falls"), loc("Play with me!"), loc("Kill the cannibal!").."|"..loc("Both your hedgehogs must survive."), 1, 6000) |
13742
2bb7141496a9
Use SetTurnTimeLeft and SetReadyTimeLeft in all scripts
Wuzzy <Wuzzy2@mail.ru>
parents:
13583
diff
changeset
|
197 |
SetTurnTimeLeft(TurnTime) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
198 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
199 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
200 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
201 |
function StartSkipFunc() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
202 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
203 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
204 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
205 |
SetState(cannibals[1], 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
206 |
AnimTurn(leaks, "Right") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
207 |
AnimSwitchHog(leaks) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
208 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
209 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
210 |
function AfterWeaklingsAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
211 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
212 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
213 |
end |
7530 | 214 |
AddAmmo(cannibals[2], amShotgun, 1) |
215 |
AddAmmo(cannibals[2], amGrenade, 1) |
|
216 |
AddAmmo(cannibals[3], amShotgun, 1) |
|
217 |
AddAmmo(cannibals[3], amGrenade, 1) |
|
218 |
AddAmmo(cannibals[4], amShotgun, 1) |
|
219 |
AddAmmo(cannibals[4], amGrenade, 1) |
|
220 |
AddAmmo(cannibals[5], amShotgun, 1) |
|
221 |
AddAmmo(cannibals[5], amGrenade, 1) |
|
12547 | 222 |
AddAmmo(leaks, amSkip, 100) |
223 |
AddAmmo(dense, amSkip, 100) |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
224 |
AddEvent(CheckWeaklingsKilled, {}, DoWeaklingsKilled, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
225 |
SetHealth(SpawnHealthCrate(2757, 1030), 50) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
226 |
SetHealth(SpawnHealthCrate(2899, 1009), 50) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
227 |
stage = wave1Stage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
228 |
SetGearMessage(dense, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
229 |
SetGearMessage(leaks, 0) |
14681
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
230 |
EndTurn(true) |
12775
2c426663d971
ACF2: Mention that both hogs must survive
Wuzzy <Wuzzy2@mail.ru>
parents:
12774
diff
changeset
|
231 |
ShowMission(loc("The Shadow Falls"), loc("Why do you not like me?"), loc("Obliterate them!|Hint: You might want to take cover...").."|"..loc("Both your hedgehogs must survive."), 1, 6000) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
232 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
233 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
234 |
function SkipWeaklingsAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
235 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
236 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
237 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
238 |
for i = 2, 5 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
239 |
if isHidden[cannibals[i]] == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
240 |
RestoreHog(cannibals[i]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
241 |
isHidden[cannibals[i]] = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
242 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
243 |
AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
244 |
SetState(cannibals[i], 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
245 |
end |
15044
9a8c678df7d9
ACF2: Fix breakage when leaks kills Brainiac with 3 Deagle shots (for real)
Wuzzy <Wuzzy2@mail.ru>
parents:
15042
diff
changeset
|
246 |
AnimSwitchHog(cannibals[2]) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
247 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
248 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
249 |
function AfterStronglingsAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
250 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
251 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
252 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
253 |
stage = cyborgStage |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
254 |
ShowMission(loc("The Shadow Falls"), loc("The Dilemma"), loc("Choose your side! If you want to join the strange man, walk up to him.|Otherwise, walk away from him. If you decide to att...nevermind..."), 1, 8000) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
255 |
AddEvent(CheckChoice, {}, DoChoice, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
256 |
AddEvent(CheckRefuse, {}, DoRefuse, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
257 |
AddEvent(CheckAccept, {}, DoAccept, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
258 |
AddEvent(CheckConfront, {}, DoConfront, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
259 |
AddAmmo(dense, amSwitch, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
260 |
AddAmmo(dense, amSkip, 0) |
7530 | 261 |
AddAmmo(leaks, amSwitch, 0) |
262 |
AddAmmo(leaks, amSkip, 0) |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
263 |
SetHealth(SpawnHealthCrate(2557, 1030), 50) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
264 |
SetHealth(SpawnHealthCrate(3599, 1009), 50) |
12551 | 265 |
EndTurn(true) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
266 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
267 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
268 |
function SkipStronglingsAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
269 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
270 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
271 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
272 |
for i = 6, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
273 |
if isHidden[cannibals[i]] == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
274 |
RestoreHog(cannibals[i]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
275 |
isHidden[cannibals[i]] = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
276 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
277 |
AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
278 |
SetState(cannibals[i], 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
279 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
280 |
if cyborgHidden == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
281 |
RestoreHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
282 |
cyborgHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
283 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
284 |
SetState(cyborg, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
285 |
SetState(dense, 0) |
7530 | 286 |
AnimSetGearPosition(dense, 1350, 1315) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
287 |
FollowGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
288 |
HogTurnLeft(dense, true) |
7530 | 289 |
AnimSetGearPosition(cyborg, 1250, 1315) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
290 |
SwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
291 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
292 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
293 |
function AfterAcceptedAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
294 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
295 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
296 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
297 |
stage = acceptedReturnStage |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
298 |
SpawnSupplyCrate(1370, 810, amGirder) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
299 |
SpawnSupplyCrate(1300, 810, amParachute) |
12550
0fa07df29499
ACF2: Remove restart option when cooperating with cyborg
Wuzzy <almikes@aol.com>
parents:
12547
diff
changeset
|
300 |
ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot!"), 1, 6000) |
12553
a401aec4df64
Fix ACF2 mission sometimes being unwinnable after returning to Leaks A Lot
Wuzzy <almikes@aol.com>
parents:
12551
diff
changeset
|
301 |
AddEvent(CheckReadyForStronglings, {}, DoReadyForStronglings, {}, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
302 |
AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
303 |
AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
304 |
RemoveEventFunc(CheckDenseDead) |
7502
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
305 |
SwitchHog(dense) |
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
306 |
AnimWait(dense, 1) |
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
307 |
AddFunction({func = HideHog, args = {cyborg}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
308 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
309 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
310 |
function SkipAcceptedAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
311 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
312 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
313 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
314 |
AnimSetGearPosition(cyborg, unpack(cyborgPos)) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
315 |
SetState(cyborg, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
316 |
AnimSwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
317 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
318 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
319 |
function AfterAttackedAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
320 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
321 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
322 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
323 |
stage = aloneStage |
14521 | 324 |
ShowMission(loc("The Shadow Falls"), loc("The Individualist"), loc("Defeat the cannibals!"), 1, 12000) |
7530 | 325 |
AddAmmo(cannibals[6], amGrenade, 1) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
326 |
AddAmmo(cannibals[6], amFirePunch, 0) |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
327 |
AddAmmo(cannibals[6], amBaseballBat, 0) |
7530 | 328 |
AddAmmo(cannibals[7], amGrenade, 1) |
329 |
AddAmmo(cannibals[7], amFirePunch, 0) |
|
330 |
AddAmmo(cannibals[7], amBaseballBat, 0) |
|
331 |
AddAmmo(cannibals[8], amGrenade, 1) |
|
332 |
AddAmmo(cannibals[8], amFirePunch, 0) |
|
333 |
AddAmmo(cannibals[8], amBaseballBat, 0) |
|
334 |
AddAmmo(cannibals[9], amGrenade, 1) |
|
335 |
AddAmmo(cannibals[9], amFirePunch, 0) |
|
336 |
AddAmmo(cannibals[9], amBaseballBat, 0) |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
337 |
SetGearMessage(leaks, 0) |
13742
2bb7141496a9
Use SetTurnTimeLeft and SetReadyTimeLeft in all scripts
Wuzzy <Wuzzy2@mail.ru>
parents:
13583
diff
changeset
|
338 |
SetTurnTimeLeft(TurnTime) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
339 |
AddEvent(CheckStronglingsDead, {}, DoStronglingsDeadAttacked, {}, 0) |
7502
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
340 |
SwitchHog(leaks) |
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
341 |
AnimWait(dense, 1) |
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
342 |
AddFunction({func = HideHog, args = {cyborg}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
343 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
344 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
345 |
function SkipAttackedAnim() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
346 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
347 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
348 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
349 |
if denseDead == false then |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
350 |
DeleteGear(dense) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
351 |
end |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
352 |
SpawnSupplyCrate(2551, 994, amGrenade) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
353 |
SpawnSupplyCrate(3551, 994, amGrenade) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
354 |
SpawnSupplyCrate(3392, 1101, amShotgun) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
355 |
SpawnSupplyCrate(3192, 1101, amShotgun) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
356 |
AnimSetGearPosition(cyborg, unpack(cyborgPos)) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
357 |
SetState(cyborg, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
358 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
359 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
360 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
361 |
-----------------------------Animations-------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
362 |
|
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
363 |
function SpawnCrates() |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
364 |
SpawnSupplyCrate(2551, 994, amGrenade) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
365 |
SpawnSupplyCrate(3551, 994, amGrenade) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
366 |
SpawnSupplyCrate(3392, 1101, amShotgun) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
367 |
SpawnSupplyCrate(3192, 1101, amShotgun) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
368 |
return true |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
369 |
end |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
370 |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
371 |
function EmitDenseClouds(anim, dir) |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
372 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
373 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
374 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
375 |
local dif |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
376 |
if dir == "Left" then |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
377 |
dif = 10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
378 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
379 |
dif = -10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
380 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
381 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
382 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
383 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
384 |
AnimInsertStepNext({func = AnimWait, args = {dense, 800}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
385 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
386 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
387 |
AnimInsertStepNext({func = AnimWait, args = {dense, 800}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
388 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + dif, GetY(dense) + dif, vgtSteam, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
389 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
390 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
391 |
function BlowDenseCloud() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
392 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
393 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
394 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
395 |
AnimInsertStepNext({func = DeleteGear, args = {dense}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
396 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense), GetY(dense), vgtBigExplosion, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
397 |
AnimInsertStepNext({func = AnimWait, args = {dense, 1200}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
398 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + 20, GetY(dense), vgtExplosion, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
399 |
AnimInsertStepNext({func = AnimWait, args = {dense, 100}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
400 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) + 10, GetY(dense), vgtExplosion, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
401 |
AnimInsertStepNext({func = AnimWait, args = {dense, 100}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
402 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) - 10, GetY(dense), vgtExplosion, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
403 |
AnimInsertStepNext({func = AnimWait, args = {dense, 100}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
404 |
AnimInsertStepNext({func = AnimVisualGear, args = {dense, GetX(dense) - 20, GetY(dense), vgtExplosion, 0, true}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
405 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
406 |
|
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
407 |
function SetupAcceptedSurvivedFinalAnim() |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
408 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimCustomFunction, args = {dense, CondNeedToTurn, {leaks, dense}}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
409 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, loc("Pfew! That was close!"), SAY_SAY, 3000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
410 |
if grenadeUsed and shotgunUsed then |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
411 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, loc("Where did you get the exploding apples and the magic bow that shoots many arrows?"), SAY_SAY, 9000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
412 |
elseif grenadeUsed then |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
413 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, loc("Where did you get the exploding apples?"), SAY_SAY, 6000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
414 |
elseif shotgunUsed then |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
415 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, loc("Where did you get the magic bow that shoots many arrows?"), SAY_SAY, 8000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
416 |
else |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
417 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, loc("Did you warn the village?"), SAY_SAY, 4000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
418 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {dense, loc("No, I came back to help you out..."), SAY_SAY, 5000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
419 |
end |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
420 |
if grenadeUsed or shotgunUsed then |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
421 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {dense, loc("Uhm...I met one of them and took his weapons."), SAY_SAY, 5000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
422 |
end |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
423 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {dense, loc("We should head back to the village now."), SAY_SAY, 5000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
424 |
end |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
425 |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
426 |
function AnimationSetup() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
427 |
table.insert(startDialogue, {func = AnimWait, args = {dense, 4000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
428 |
table.insert(startDialogue, {func = AnimCaption, args = {leaks, loc("After the shock caused by the enemy spy, Leaks A Lot and Dense Cloud went hunting to relax."), 6000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
429 |
table.insert(startDialogue, {func = AnimCaption, args = {leaks, loc("Little did they know that this hunt will mark them forever..."), 4000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
430 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, loc("I have no idea where that mole disappeared...Can you see it?"), SAY_SAY, 9000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
431 |
table.insert(startDialogue, {func = AnimSay, args = {dense, loc("Nope. It was one fast mole, that's for sure."), SAY_SAY, 5000}}) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
432 |
table.insert(startDialogue, {func = AnimCustomFunction, args = {dense, EmitDenseClouds, {startDialogue, "Right"}}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
433 |
table.insert(startDialogue, {func = AnimWait, args = {dense, 2000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
434 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, loc("Please, stop releasing your \"smoke signals\"!"), SAY_SAY, 5000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
435 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, loc("You're terrorizing the forest...We won't catch anything like this!"), SAY_SAY, 6000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
436 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, loc("..."), SAY_THINK, 1000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
437 |
table.insert(startDialogue, {func = AnimGiveState, args = {cannibals[1], 0}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
438 |
table.insert(startDialogue, {func = AnimOutOfNowhere, args = {cannibals[1], unpack(cannibalPos[1])}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
439 |
table.insert(startDialogue, {func = AnimTurn, args = {leaks, "Right"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
440 |
table.insert(startDialogue, {func = AnimTurn, args = {cannibals[1], "Right"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
441 |
table.insert(startDialogue, {func = AnimWait, args = {cannibals[1], 1000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
442 |
table.insert(startDialogue, {func = AnimTurn, args = {cannibals[1], "Left"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
443 |
table.insert(startDialogue, {func = AnimWait, args = {cannibals[1], 1000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
444 |
table.insert(startDialogue, {func = AnimTurn, args = {cannibals[1], "Right"}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
445 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], loc("I can't believe it worked!"), SAY_THINK, 3500}}) |
7516
d167af4ab5a0
Changed a line in Mission 2 dialogue...
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
446 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], loc("That shaman sure knows what he's doing!"), SAY_THINK, 6000}}) |
d167af4ab5a0
Changed a line in Mission 2 dialogue...
belphegorr <szabibibi@gmail.com>
parents:
7512
diff
changeset
|
447 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], loc("Yeah...I think it's a 'he', lol."), SAY_THINK, 5000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
448 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, loc("It wants our brains!"), SAY_SHOUT, 3000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
449 |
table.insert(startDialogue, {func = AnimTurn, args = {cannibals[1], "Left"}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
450 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], loc("Not you again! My head still hurts from last time!"), SAY_SHOUT, 6000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
451 |
table.insert(startDialogue, {func = AnimSwitchHog, args = {leaks}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
452 |
AddSkipFunction(startDialogue, StartSkipFunc, {}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
453 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
454 |
table.insert(weaklingsAnim, {func = AnimGearWait, args = {leaks, 1000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
455 |
table.insert(weaklingsAnim, {func = AnimCustomFunction, args = {leaks, CondNeedToTurn, {leaks, dense}}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
456 |
table.insert(weaklingsAnim, {func = AnimSay, args = {leaks, loc("Did you see him coming?"), SAY_SAY, 3500}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
457 |
table.insert(weaklingsAnim, {func = AnimSay, args = {dense, loc("No. Where did he come from?"), SAY_SAY, 3500}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
458 |
table.insert(weaklingsAnim, {func = AnimCustomFunction, args = {leaks, UnHideWeaklings, {}}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
459 |
table.insert(weaklingsAnim, {func = AnimOutOfNowhere, args = {cannibals[2], unpack(cannibalPos[2])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
460 |
table.insert(weaklingsAnim, {func = AnimGiveState, args = {cannibals[2], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
461 |
table.insert(weaklingsAnim, {func = AnimWait, args = {leaks, 400}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
462 |
table.insert(weaklingsAnim, {func = AnimGiveState, args = {cannibals[3], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
463 |
table.insert(weaklingsAnim, {func = AnimOutOfNowhere, args = {cannibals[3], unpack(cannibalPos[3])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
464 |
table.insert(weaklingsAnim, {func = AnimWait, args = {leaks, 400}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
465 |
table.insert(weaklingsAnim, {func = AnimGiveState, args = {cannibals[4], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
466 |
table.insert(weaklingsAnim, {func = AnimOutOfNowhere, args = {cannibals[4], unpack(cannibalPos[4])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
467 |
table.insert(weaklingsAnim, {func = AnimWait, args = {leaks, 400}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
468 |
table.insert(weaklingsAnim, {func = AnimGiveState, args = {cannibals[5], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
469 |
table.insert(weaklingsAnim, {func = AnimOutOfNowhere, args = {cannibals[5], unpack(cannibalPos[5])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
470 |
table.insert(weaklingsAnim, {func = AnimWait, args = {leaks, 400}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
471 |
table.insert(weaklingsAnim, {func = AnimSay, args = {cannibals[3], loc("Are we there yet?"), SAY_SAY, 4000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
472 |
table.insert(weaklingsAnim, {func = AnimSay, args = {dense, loc("This must be some kind of sorcery!"), SAY_SHOUT, 3500}}) |
15044
9a8c678df7d9
ACF2: Fix breakage when leaks kills Brainiac with 3 Deagle shots (for real)
Wuzzy <Wuzzy2@mail.ru>
parents:
15042
diff
changeset
|
473 |
table.insert(weaklingsAnim, {func = AnimSwitchHog, args = {cannibals[2]}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
474 |
AddSkipFunction(weaklingsAnim, SkipWeaklingsAnim, {}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
475 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
476 |
table.insert(stronglingsAnim, {func = AnimGearWait, args = {leaks, 1000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
477 |
table.insert(stronglingsAnim, {func = AnimCustomFunction, args = {leaks, UnHideStronglings, {}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
478 |
table.insert(stronglingsAnim, {func = AnimCustomFunction, args = {leaks, CondNeedToTurn, {leaks, dense}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
479 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {leaks, 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
480 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {dense, 0}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
481 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, loc("I thought their shaman died when he tried our medicine!"), SAY_SAY, 7000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
482 |
table.insert(stronglingsAnim, {func = AnimSay, args = {dense, loc("I saw it with my own eyes!"), SAY_SAY, 4000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
483 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, loc("Then how do they keep appearing?"), SAY_SAY, 4000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
484 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, loc("It's impossible to communicate with the spirits without a shaman."), SAY_SAY, 7000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
485 |
table.insert(stronglingsAnim, {func = AnimSay, args = {dense, loc("We need to warn the village."), SAY_SAY, 3500}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
486 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {cannibals[6], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
487 |
table.insert(stronglingsAnim, {func = AnimOutOfNowhere, args = {cannibals[6], unpack(cannibalPos[6])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
488 |
table.insert(stronglingsAnim, {func = AnimWait, args = {leaks, 400}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
489 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {cannibals[7], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
490 |
table.insert(stronglingsAnim, {func = AnimOutOfNowhere, args = {cannibals[7], unpack(cannibalPos[7])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
491 |
table.insert(stronglingsAnim, {func = AnimWait, args = {leaks, 400}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
492 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {cannibals[8], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
493 |
table.insert(stronglingsAnim, {func = AnimOutOfNowhere, args = {cannibals[8], unpack(cannibalPos[8])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
494 |
table.insert(stronglingsAnim, {func = AnimWait, args = {leaks, 400}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
495 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {cannibals[9], 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
496 |
table.insert(stronglingsAnim, {func = AnimOutOfNowhere, args = {cannibals[9], unpack(cannibalPos[9])}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
497 |
table.insert(stronglingsAnim, {func = AnimWait, args = {leaks, 400}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
498 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cannibals[7], loc("What a ride!"), SAY_SHOUT, 2000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
499 |
table.insert(stronglingsAnim, {func = AnimTurn, args = {leaks, "Right"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
500 |
table.insert(stronglingsAnim, {func = AnimWait, args = {leaks, 700}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
501 |
table.insert(stronglingsAnim, {func = AnimTurn, args = {leaks, "Left"}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
502 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, loc("We can't defeat them!"), SAY_THINK, 3000}}) |
7675
58620e9e5ed5
Fixed grammar/vocabulary and improved balance
belphegorr <szabibibi@gmail.com>
parents:
7530
diff
changeset
|
503 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, loc("I'll hold them off while you return to the village!"), SAY_SAY, 6000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
504 |
table.insert(stronglingsAnim, {func = AnimFollowGear, args = {cyborg}, swh = false}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
505 |
table.insert(stronglingsAnim, {func = AnimCaption, args = {cyborg, loc("30 minutes later...")}, swh = false}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
506 |
table.insert(stronglingsAnim, {func = AnimWait, args = {cyborg, 2000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
507 |
table.insert(stronglingsAnim, {func = AnimSetGearPosition, args = {dense, 1420, 1315}}) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
508 |
table.insert(stronglingsAnim, {func = AnimMove, args = {dense, "Left", 1400, 0}}) |
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
509 |
table.insert(stronglingsAnim, {func = AnimCustomFunction, args = {dense, EmitDenseClouds, {stronglingsAnim, "Left"}}}) |
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
510 |
table.insert(stronglingsAnim, {func = AnimMove, args = {dense, "Left", 1350, 0}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
511 |
table.insert(stronglingsAnim, {func = AnimOutOfNowhere, args = {cyborg, 1250, 1320}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
512 |
table.insert(stronglingsAnim, {func = AnimRemoveState, args = {cyborg, gstInvisible}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
513 |
table.insert(stronglingsAnim, {func = AnimGearWait, args = {cyborg, 2000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
514 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("Greetings, cloudy one!"), SAY_SAY, 3000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
515 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("I have come to make you an offering..."), SAY_SAY, 6000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
516 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("You are given the chance to turn your life around..."), SAY_SAY, 6000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
517 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("If you agree to provide the information we need, you will be spared!"), SAY_SAY, 7000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
518 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("Have no illusions, your tribe is dead, indifferent of your choice."), SAY_SAY, 7000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
519 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("If you decide to help us, though, we will no longer need to find a new governor for the island."), SAY_SAY, 8000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
520 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("If you know what I mean..."), SAY_SAY, 3000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
521 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, loc("So? What will it be?"), SAY_SAY, 3000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
522 |
table.insert(stronglingsAnim, {func = AnimSwitchHog, args = {dense}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
523 |
AddSkipFunction(stronglingsAnim, SkipStronglingsAnim, {}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
524 |
|
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
525 |
table.insert(acceptedAnim, {func = AnimSay, args = {cyborg, loc("Great choice, Steve! Mind if I call you that?"), SAY_SAY, 7000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
526 |
table.insert(acceptedAnim, {func = AnimSay, args = {dense, loc("Whatever floats your boat..."), SAY_SAY, 4500}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
527 |
table.insert(acceptedAnim, {func = AnimSay, args = {cyborg, loc("Great! You will be contacted soon for assistance."), SAY_SAY, 6000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
528 |
table.insert(acceptedAnim, {func = AnimSay, args = {cyborg, loc("In the meantime, take these and return to your \"friend\"!"), SAY_SAY, 6000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
529 |
table.insert(acceptedAnim, {func = AnimGiveState, args = {cyborg, gstInvisible}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
530 |
table.insert(acceptedAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
531 |
table.insert(acceptedAnim, {func = AnimSwitchHog, args = {dense}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
532 |
AddSkipFunction(acceptedAnim, SkipAcceptedAnim, {}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
533 |
|
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
534 |
table.insert(acceptedDiedFinalAnim, {func = AnimSay, args = {leaks, loc("Pfew! That was close!"), SAY_THINK, 3000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
535 |
table.insert(acceptedDiedFinalAnim, {func = AnimSay, args = {leaks, loc("Your death will not be in vain, Dense Cloud!"), SAY_THINK, 5000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
536 |
table.insert(acceptedDiedFinalAnim, {func = AnimSay, args = {dense, loc("You will be avenged!"), SAY_SAY, 3000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
537 |
|
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
538 |
table.insert(refusedAnim, {func = AnimSay, args = {cyborg, loc("I see..."), SAY_SAY, 2000}}) |
12901
bdf8e80a97b8
Fix some minor formatting and grammar flaws in script strings
Wuzzy <Wuzzy2@mail.ru>
parents:
12796
diff
changeset
|
539 |
table.insert(refusedAnim, {func = AnimSay, args = {cyborg, loc("Remember this, pathetic animal: When the day comes, you will regret your blind loyalty!"), SAY_SAY, 8000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
540 |
table.insert(refusedAnim, {func = AnimSay, args = {cyborg, loc("You just committed suicide..."), SAY_SAY, 5000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
541 |
table.insert(refusedAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
542 |
table.insert(refusedAnim, {func = AnimGiveState, args = {cyborg, gstInvisible}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
543 |
table.insert(refusedAnim, {func = AnimSay, args = {dense, loc("If you say so..."), SAY_THINK, 3000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
544 |
table.insert(refusedAnim, {func = AnimFollowGear, args = {cyborg}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
545 |
table.insert(refusedAnim, {func = AnimWait, args = {cyborg, 700}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
546 |
table.insert(refusedAnim, {func = AnimCustomFunction, args = {dense, RefusedStart, {}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
547 |
table.insert(refusedAnim, {func = AnimOutOfNowhere, args = {dense, 2645, 1146}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
548 |
table.insert(refusedAnim, {func = AnimOutOfNowhere, args = {ramon, 2218, 1675}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
549 |
table.insert(refusedAnim, {func = AnimOutOfNowhere, args = {spiky, 2400, 1675}}) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
550 |
table.insert(refusedAnim, {func = AnimTurn, args = {spiky, "Left"}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
551 |
table.insert(refusedAnim, {func = AnimWait, args = {cyborg, 1700}}) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
552 |
table.insert(refusedAnim, {func = AnimTurn, args = {spiky, "Right"}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
553 |
table.insert(refusedAnim, {func = AnimWait, args = {cyborg, 1700}}) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
554 |
table.insert(refusedAnim, {func = AnimTurn, args = {spiky, "Left"}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
555 |
table.insert(refusedAnim, {func = AnimSay, args = {spiky, loc("Dude, we really need a new shaman..."), SAY_SAY, 4000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
556 |
AddSkipFunction(refusedAnim, SkipRefusedAnim, {}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
557 |
|
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
558 |
table.insert(refusedFinalAnim, {func = AnimSay, args = {leaks, loc("It's over..."), SAY_SAY, 2000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
559 |
table.insert(refusedFinalAnim, {func = AnimSay, args = {leaks, loc("Let's head back to the village!"), SAY_SAY, 4000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
560 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
561 |
table.insert(attackedAnim, {func = AnimCustomFunction, args = {dense, CondNeedToTurn, {cyborg, dense}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
562 |
table.insert(attackedAnim, {func = AnimCustomFunction, args = {cyborg, SetHealth, {cyborg, 200}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
563 |
table.insert(attackedAnim, {func = AnimWait, args = {cyborg, 2000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
564 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, loc("Really?! You thought you could harm me with your little toys?"), SAY_SAY, 7000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
565 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, loc("You're pathetic! You are not worthy of my attention..."), SAY_SAY, 6000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
566 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, loc("Actually, you aren't worthy of life! Take this..."), SAY_SAY, 5000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
567 |
table.insert(attackedAnim, {func = AnimCustomFunction, args = {dense, BlowDenseCloud, {}}, swh = false}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
568 |
table.insert(attackedAnim, {func = AnimWait, args = {cyborg, 2000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
569 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, loc("Incredible..."), SAY_SAY, 3000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
570 |
table.insert(attackedAnim, {func = AnimDisappear, args = {cyborg, unpack(cyborgPos)}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
571 |
table.insert(attackedAnim, {func = AnimGiveState, args = {cyborg, gstInvisible}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
572 |
table.insert(attackedAnim, {func = AnimSwitchHog, args = {leaks}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
573 |
table.insert(attackedAnim, {func = AnimSay, args = {leaks, loc("I wonder where Dense Cloud is..."), SAY_THINK, 4000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
574 |
table.insert(attackedAnim, {func = AnimSay, args = {leaks, loc("I can't wait any more, I have to save myself!"), SAY_THINK, 5000}}) |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
575 |
table.insert(attackedAnim, {func = AnimCustomFunction, args = {leaks, SpawnCrates, {}}}) |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
576 |
table.insert(attackedAnim, {func = AnimWait, args = {leaks, 1500}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
577 |
table.insert(attackedAnim, {func = AnimSay, args = {leaks, loc("Where are all these crates coming from?!"), SAY_THINK, 5500}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
578 |
AddSkipFunction(attackedAnim, SkipAttackedAnim, {}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
579 |
|
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
580 |
table.insert(attackedFinalAnim, {func = AnimWait, args = {leaks, 2000}}) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
581 |
table.insert(attackedFinalAnim, {func = AnimSay, args = {leaks, loc("I have to get back to the village!"), SAY_THINK, 5000}}) |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
582 |
table.insert(attackedFinalAnim, {func = AnimSay, args = {leaks, loc("Dense Cloud must have already told them everything..."), SAY_THINK, 7000}}) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
583 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
584 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
585 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
586 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
587 |
-----------------------------Misc-------------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
588 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
589 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
590 |
function RefusedStart() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
591 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
592 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
593 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
594 |
if ramonHidden == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
595 |
RestoreHog(ramon) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
596 |
ramonHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
597 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
598 |
if spikyHidden == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
599 |
RestoreHog(spiky) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
600 |
spikyHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
601 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
602 |
SetState(ramon, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
603 |
SetState(spiky, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
604 |
SetGearMessage(dense, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
605 |
SetGearMessage(ramon, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
606 |
SetGearMessage(spiky, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
607 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
608 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
609 |
function AddHogs() |
14507
f8c2b995c009
Use player team name in ACF campaign
Wuzzy <Wuzzy2@mail.ru>
parents:
14506
diff
changeset
|
610 |
nativesTeamName = AddMissionTeam(-2) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
611 |
ramon = AddHog(loc("Ramon"), 0, 100, "rasta") |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
612 |
leaks = AddHog(loc("Leaks A Lot"), 0, 100, "Rambo") |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
613 |
dense = AddHog(loc("Dense Cloud"), 0, 100, "RobinHood") |
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
614 |
spiky = AddHog(loc("Spiky Cheese"), 0, 100, "hair_yellow") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
615 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
616 |
weaklingsTeamName = AddTeam(loc("Weaklings"), -1, "skull", "Island", "Pirate_qau", "cm_vampire") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
617 |
cannibals = {} |
13120
be5d9fd2c56a
ACF2: Make all Weaklings on worst CPU level
Wuzzy <Wuzzy2@mail.ru>
parents:
13118
diff
changeset
|
618 |
cannibals[1] = AddHog(loc("Brainiac"), 5, 20, "Zombi") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
619 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
620 |
for i = 2, 5 do |
13118
1ddb8aac5e30
ACF: Reduce computer hog levels in missions 2 and 6.
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
621 |
cannibals[i] = AddHog(HogNames[i], 5, 20, "Zombi") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
622 |
hogNr[cannibals[i]] = i - 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
623 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
624 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
625 |
AddTeam(loc("Stronglings"), -1, "skull", "Island", "Pirate_qau", "cm_vampire") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
626 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
627 |
for i = 6, 9 do |
13118
1ddb8aac5e30
ACF: Reduce computer hog levels in missions 2 and 6.
Wuzzy <Wuzzy2@mail.ru>
parents:
12933
diff
changeset
|
628 |
cannibals[i] = AddHog(HogNames[i], 4, 30, "vampirichog") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
629 |
hogNr[cannibals[i]] = i - 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
630 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
631 |
|
14953
ff4003a90ff8
Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents:
14919
diff
changeset
|
632 |
AddTeam(loc("011101001"), -1, "ring", "UFO", "Robot_qau", "cm_binary") |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
633 |
cyborg = AddHog(loc("Y3K1337"), 0, 200, "cyborg1") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
634 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
635 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
636 |
function PlaceHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
637 |
HogTurnLeft(leaks, true) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
638 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
639 |
for i = 2, 9 do |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
640 |
AnimSetGearPosition(cannibals[i], unpack(cyborgPos)) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
641 |
AnimTurn(cannibals[i], "Left") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
642 |
cannibalDead[i] = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
643 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
644 |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
645 |
AnimSetGearPosition(cannibals[1], cannibalPos[1][1], cannibalPos[1][2]) |
7243
9ae9178c525e
Modified Animate.lua function AnimMove to take highercase direction (e.g. "Left")
belphegorr <szabibibi@gmail.com>
parents:
7232
diff
changeset
|
646 |
AnimTurn(cannibals[1], "Left") |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
647 |
|
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
648 |
AnimSetGearPosition(cyborg, cyborgPos[1], cyborgPos[2]) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
649 |
AnimSetGearPosition(ramon, 2218, 1675) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
650 |
AnimSetGearPosition(skiky, 2400, 1675) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
651 |
AnimSetGearPosition(dense, densePos[1], densePos[2]) |
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
652 |
AnimSetGearPosition(leaks, leaksPos[1], leaksPos[2]) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
653 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
654 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
655 |
function VisiblizeHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
656 |
for i = 1, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
657 |
SetState(cannibals[i], gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
658 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
659 |
SetState(cyborg, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
660 |
SetState(ramon, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
661 |
SetState(spiky, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
662 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
663 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
664 |
function CondNeedToTurn(hog1, hog2) |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
665 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
666 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
667 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
668 |
xl, xd = GetX(hog1), GetX(hog2) |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
669 |
if xl and xd then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
670 |
if xl > xd then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
671 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Left"}}) |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
672 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Right"}}) |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
673 |
elseif xl < xd then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
674 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Left"}}) |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
675 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Right"}}) |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
676 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
677 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
678 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
679 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
680 |
function HideHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
681 |
for i = 2, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
682 |
HideHog(cannibals[i]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
683 |
isHidden[cannibals[i]] = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
684 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
685 |
HideHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
686 |
cyborgHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
687 |
HideHog(ramon) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
688 |
HideHog(spiky) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
689 |
ramonHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
690 |
spikyHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
691 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
692 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
693 |
function HideStronglings() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
694 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
695 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
696 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
697 |
for i = 6, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
698 |
HideHog(cannibals[i]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
699 |
isHidden[cannibals[i]] = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
700 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
701 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
702 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
703 |
function UnHideWeaklings() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
704 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
705 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
706 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
707 |
for i = 2, 5 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
708 |
RestoreHog(cannibals[i]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
709 |
isHidden[cannibals[i]] = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
710 |
SetState(cannibals[i], gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
711 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
712 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
713 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
714 |
function UnHideStronglings() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
715 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
716 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
717 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
718 |
for i = 6, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
719 |
RestoreHog(cannibals[i]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
720 |
isHidden[cannibals[i]] = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
721 |
SetState(cannibals[i], gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
722 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
723 |
RestoreHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
724 |
cyborgHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
725 |
SetState(cyborg, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
726 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
727 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
728 |
function ChoiceTaken() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
729 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
730 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
731 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
732 |
SetGearMessage(CurrentHedgehog, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
733 |
if choice == choiceAccept then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
734 |
AddAnim(acceptedAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
735 |
AddFunction({func = AfterAcceptedAnim, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
736 |
elseif choice == choiceRefuse then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
737 |
AddAnim(refusedAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
738 |
AddFunction({func = AfterRefusedAnim, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
739 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
740 |
AddAnim(attackedAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
741 |
AddFunction({func = AfterAttackedAnim, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
742 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
743 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
744 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
745 |
function KillCyborg() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
746 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
747 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
748 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
749 |
RestoreHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
750 |
DeleteGear(cyborg) |
12551 | 751 |
EndTurn(true) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
752 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
753 |
-----------------------------Events------------------------------------ |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
754 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
755 |
function CheckBrainiacDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
756 |
return brainiacDead |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
757 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
758 |
|
15051
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
759 |
function isHogAlive(hog) |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
760 |
if GetHealth(hog) == nil or GetHealth(hog) <= 0 then |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
761 |
return false |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
762 |
else |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
763 |
local _,_,_,_,_,_,_,_,_,_,_,damage = GetGearValues(hog) |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
764 |
if damage > GetHealth(hog) then |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
765 |
return false |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
766 |
end |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
767 |
end |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
768 |
return true |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
769 |
end |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
770 |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
771 |
function DoBrainiacDead() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
772 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
773 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
774 |
end |
15051
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
775 |
if (not isHogAlive(dense)) or (not isHogAlive(leaks)) then |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
776 |
return |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
777 |
end |
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
778 |
|
12551 | 779 |
EndTurn(true) |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
780 |
SetGearMessage(CurrentHedgehog, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
781 |
AddAnim(weaklingsAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
782 |
AddFunction({func = AfterWeaklingsAnim, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
783 |
stage = interSpyStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
784 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
785 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
786 |
function CheckWeaklingsKilled() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
787 |
for i = 2, 5 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
788 |
if cannibalDead[i] == false then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
789 |
return false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
790 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
791 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
792 |
return true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
793 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
794 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
795 |
function DoWeaklingsKilled() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
796 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
797 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
798 |
end |
15051
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
799 |
if (not isHogAlive(dense)) or (not isHogAlive(leaks)) then |
12796
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
800 |
return |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
801 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
802 |
SetGearMessage(CurrentHedgehog, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
803 |
AddAnim(stronglingsAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
804 |
AddFunction({func = AfterStronglingsAnim, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
805 |
stage = interWeakStage |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
806 |
DismissTeam(weaklingsTeamName) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
807 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
808 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
809 |
function CheckRefuse() |
15054 | 810 |
return isHogAlive(dense) and GetX(dense) > 1400 and StoppedGear(dense) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
811 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
812 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
813 |
function DoRefuse() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
814 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
815 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
816 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
817 |
choice = choiceRefuse |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
818 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
819 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
820 |
function CheckAccept() |
15054 | 821 |
if not isHogAlive(dense) then |
15041
fa597f6e301d
ACF2: Fix Lua error when hog dies during cyborg choice phase
Wuzzy <Wuzzy2@mail.ru>
parents:
15023
diff
changeset
|
822 |
return false |
fa597f6e301d
ACF2: Fix Lua error when hog dies during cyborg choice phase
Wuzzy <Wuzzy2@mail.ru>
parents:
15023
diff
changeset
|
823 |
end |
14898
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
824 |
if GetX(dense) < 1300 then |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
825 |
-- When close to cyborg, wait for a short time before accepting, |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
826 |
-- to allow player to attack with melee weapons. |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
827 |
checkAcceptTimer = checkAcceptTimer + 1 |
15050
09c63d4bcf53
ACF: Add some checks before calling StoppedGear
Wuzzy <Wuzzy2@mail.ru>
parents:
15044
diff
changeset
|
828 |
if checkAcceptTimer > 2000 and denseDead == false and StoppedGear(dense) then |
14898
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
829 |
return true |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
830 |
end |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
831 |
else |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
832 |
checkAcceptTimer = 0 |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
833 |
end |
421eed52a8e1
ACF2: Cyborg decision: Wait for 2 seconds when close to cyborg, to allow close attack
Wuzzy <Wuzzy2@mail.ru>
parents:
14681
diff
changeset
|
834 |
return false |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
835 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
836 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
837 |
function DoAccept() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
838 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
839 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
840 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
841 |
choice = choiceAccept |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
842 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
843 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
844 |
function CheckConfront() |
15054 | 845 |
return cyborgAttacked and isHogAlive(dense) and StoppedGear(dense) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
846 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
847 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
848 |
function DoConfront() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
849 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
850 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
851 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
852 |
choice = choiceAttack |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
853 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
854 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
855 |
function CheckChoice() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
856 |
return choice ~= 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
857 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
858 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
859 |
function DoChoice() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
860 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
861 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
862 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
863 |
RemoveEventFunc(CheckConfront) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
864 |
RemoveEventFunc(CheckAccept) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
865 |
RemoveEventFunc(CheckRefuse) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
866 |
ChoiceTaken() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
867 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
868 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
869 |
function CheckNeedGirder() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
870 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
871 |
return false |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
872 |
end |
15050
09c63d4bcf53
ACF: Add some checks before calling StoppedGear
Wuzzy <Wuzzy2@mail.ru>
parents:
15044
diff
changeset
|
873 |
return denseDead == false and GetX(dense) > 1640 and StoppedGear(dense) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
874 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
875 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
876 |
function DoNeedGirder() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
877 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
878 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
879 |
end |
14404
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
880 |
local ctrl = loc("Hint: To place a girder, select it,|then use [Left] and [Right] to select angle and length,|then choose a location for the girder.") |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
881 |
if INTERFACE == "touch" then |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
882 |
ctrl = ctrl .. "|" .. loc("Choose location: Tap the [Target] button, then tap on the spot you want to choose") |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
883 |
else |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
884 |
ctrl = ctrl .. "|" .. loc("Choose location: Left click") |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
885 |
end |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
886 |
ShowMission(loc("The Shadow Falls"), loc("Under Construction"), loc("Return to Leaks A Lot!") .. "|" .. ctrl, 1, 6000) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
887 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
888 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
889 |
function CheckNeedWeapons() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
890 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
891 |
return false |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
892 |
end |
15050
09c63d4bcf53
ACF: Add some checks before calling StoppedGear
Wuzzy <Wuzzy2@mail.ru>
parents:
15044
diff
changeset
|
893 |
return denseDead == false and GetX(dense) > 2522 and StoppedGear(dense) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
894 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
895 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
896 |
function DoNeedWeapons() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
897 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
898 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
899 |
end |
12933
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
900 |
grenadeCrate = SpawnSupplyCrate(2550, 800, amGrenade) |
e65aa3c3d4e6
Refactor scripts to use SpawnSupplyCrate (where it makes sense)
Wuzzy <Wuzzy2@mail.ru>
parents:
12901
diff
changeset
|
901 |
shotgunCrate = SpawnSupplyCrate(2610, 850, amShotgun) |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
902 |
AddCaption(loc("A little gift from the cyborgs")) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
903 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
904 |
|
12553
a401aec4df64
Fix ACF2 mission sometimes being unwinnable after returning to Leaks A Lot
Wuzzy <almikes@aol.com>
parents:
12551
diff
changeset
|
905 |
function CheckReadyForStronglings() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
906 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
907 |
return false |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
908 |
end |
15054 | 909 |
if not isHogAlive(dense) then |
910 |
return false |
|
911 |
end |
|
12553
a401aec4df64
Fix ACF2 mission sometimes being unwinnable after returning to Leaks A Lot
Wuzzy <almikes@aol.com>
parents:
12551
diff
changeset
|
912 |
return (shotgunTaken and grenadeTaken) or GetX(dense) > 2700 |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
913 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
914 |
|
12553
a401aec4df64
Fix ACF2 mission sometimes being unwinnable after returning to Leaks A Lot
Wuzzy <almikes@aol.com>
parents:
12551
diff
changeset
|
915 |
function DoReadyForStronglings() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
916 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
917 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
918 |
end |
14404
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
919 |
|
14521 | 920 |
ShowMission(loc("The Shadow Falls"), loc("The guardian"), loc("Defeat the cannibals!") .."|".. loc("Leaks A Lot must survive!"), 1, 12000) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
921 |
AddAmmo(dense, amSkip, 100) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
922 |
AddAmmo(dense, amSwitch, 100) |
7530 | 923 |
AddAmmo(leaks, amSkip, 100) |
924 |
AddAmmo(leaks, amSwitch, 100) |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
925 |
stage = duoStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
926 |
RemoveEventFunc(CheckNeedGirder) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
927 |
RemoveEventFunc(CheckNeedWeapons) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
928 |
AddEvent(CheckStronglingsDead, {}, DoStronglingsDead, {}, 0) |
7530 | 929 |
AddAmmo(cannibals[6], amGrenade, 2) |
930 |
AddAmmo(cannibals[6], amShotgun, 2) |
|
931 |
AddAmmo(cannibals[7], amGrenade, 2) |
|
932 |
AddAmmo(cannibals[7], amShotgun, 2) |
|
933 |
AddAmmo(cannibals[8], amGrenade, 2) |
|
934 |
AddAmmo(cannibals[8], amShotgun, 2) |
|
935 |
AddAmmo(cannibals[9], amGrenade, 2) |
|
936 |
AddAmmo(cannibals[9], amShotgun, 2) |
|
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
937 |
SetGearMessage(leaks, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
938 |
SetGearMessage(dense, 0) |
13742
2bb7141496a9
Use SetTurnTimeLeft and SetReadyTimeLeft in all scripts
Wuzzy <Wuzzy2@mail.ru>
parents:
13583
diff
changeset
|
939 |
SetTurnTimeLeft(TurnTime) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
940 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
941 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
942 |
function DoStronglingsDead() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
943 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
944 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
945 |
end |
15051
2e89487540d8
ACF2: Prevent cut scene from playing when own hogs are dead or about to die
Wuzzy <Wuzzy2@mail.ru>
parents:
15050
diff
changeset
|
946 |
if not isHogAlive(leaks) then |
12796
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
947 |
return |
d97fa936778e
ACF2: Fix Lua error spam when Leaks A Lot died in same turn as weaklings, also do other minor tweaks
Wuzzy <Wuzzy2@mail.ru>
parents:
12794
diff
changeset
|
948 |
end |
7448
d0521a3a4358
Solved "floating repositionings" in every mission
belphegorr <szabibibi@gmail.com>
parents:
7425
diff
changeset
|
949 |
SetGearMessage(CurrentHedgehog, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
950 |
if denseDead == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
951 |
AddAnim(acceptedDiedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
952 |
SaveCampaignVar("M2DenseDead", "1") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
953 |
else |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
954 |
SetupAcceptedSurvivedFinalAnim() |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
955 |
AddAnim(acceptedSurvivedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
956 |
SaveCampaignVar("M2DenseDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
957 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
958 |
SaveCampaignVar("M2RamonDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
959 |
SaveCampaignVar("M2SpikyDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
960 |
AddFunction({func = KillCyborg, args = {}}) |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
961 |
if progress and progress<2 then |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
962 |
SaveCampaignVar("Progress", "2") |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
963 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
964 |
SaveCampaignVar("M2Choice", "" .. choice) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
965 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
966 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
967 |
function DoStronglingsDeadRefused() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
968 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
969 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
970 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
971 |
if denseDead == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
972 |
SaveCampaignVar("M2DenseDead", "1") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
973 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
974 |
SaveCampaignVar("M2DenseDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
975 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
976 |
if ramonDead == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
977 |
SaveCampaignVar("M2RamonDead", "1") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
978 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
979 |
SaveCampaignVar("M2RamonDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
980 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
981 |
if spikyDead == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
982 |
SaveCampaignVar("M2SpikyDead", "1") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
983 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
984 |
SaveCampaignVar("M2SpikyDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
985 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
986 |
AddAnim(refusedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
987 |
AddFunction({func = KillCyborg, args = {}}) |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
988 |
if progress and progress<2 then |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
989 |
SaveCampaignVar("Progress", "2") |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
990 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
991 |
SaveCampaignVar("M2Choice", "" .. choice) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
992 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
993 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
994 |
function DoStronglingsDeadAttacked() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
995 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
996 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
997 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
998 |
SaveCampaignVar("M2DenseDead", "1") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
999 |
SaveCampaignVar("M2RamonDead", "0") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1000 |
SaveCampaignVar("M2SpikyDead", "0") |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
1001 |
if progress and progress<2 then |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
1002 |
SaveCampaignVar("Progress", "2") |
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
1003 |
end |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
1004 |
SaveCampaignVar("M2Choice", "" .. choice) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1005 |
AddAnim(attackedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1006 |
AddFunction({func = KillCyborg, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1007 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1008 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1009 |
function CheckStronglingsDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1010 |
if leaksDead == true then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1011 |
return false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1012 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1013 |
for i = 6, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1014 |
if cannibalDead[i] == false then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1015 |
return false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1016 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1017 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1018 |
return true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1019 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1020 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1021 |
function CheckLeaksDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1022 |
return leaksDead |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1023 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1024 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1025 |
function DoDead() |
12774
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
1026 |
if stage == loseStage then |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
1027 |
return |
eed03e531823
ACF, mission 2: Fix various mission breakages when heroes died together with enemies
Wuzzy <Wuzzy2@mail.ru>
parents:
12554
diff
changeset
|
1028 |
end |
7225
e3f2280d9000
Added localization and changed primary team color.
belphegorr <szabibibi@gmail.com>
parents:
7213
diff
changeset
|
1029 |
AddCaption(loc("...and so the cyborgs took over the world...")) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1030 |
stage = loseStage |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
1031 |
DismissTeam(nativesTeamName) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1032 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1033 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1034 |
function CheckDenseDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1035 |
return denseDead and choice ~= choiceAttack |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1036 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1037 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1038 |
-----------------------------Main Functions---------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1039 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1040 |
function onGameInit() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1041 |
Seed = 334 |
7425 | 1042 |
GameFlags = gfSolidLand + gfDisableWind + gfPerHogAmmo |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1043 |
TurnTime = 50000 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1044 |
CaseFreq = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1045 |
MinesNum = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1046 |
MinesTime = 3000 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1047 |
Explosives = 0 |
8979
860836494821
Package the 3 dynamic maps broken by recent uFloat changes as static maps. first_blood actually didn't seem to need it, but, just in case.
nemo
parents:
8944
diff
changeset
|
1048 |
Map = "A_Classic_Fairytale_shadow" |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1049 |
Theme = "Nature" |
12224
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
1050 |
-- Disable Sudden Death |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
1051 |
HealthDecrease = 0 |
d62d6f8ebef1
Disable Sudden Death consistently in all missions which don't require it
Wuzzy <almikes@aol.com>
parents:
12049
diff
changeset
|
1052 |
WaterRise = 0 |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1053 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1054 |
AddHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1055 |
PlaceHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1056 |
VisiblizeHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1057 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1058 |
AnimInit() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1059 |
AnimationSetup() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1060 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1061 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1062 |
function onGameStart() |
8944
ed2509832311
fix bug that locked unlocked campaign missions, see issue 452
Periklis Ntanasis <pntanasis@gmail.com>
parents:
8043
diff
changeset
|
1063 |
progress = tonumber(GetCampaignVar("Progress")) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1064 |
HideHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1065 |
AddAmmo(leaks, amSwitch, 100) |
7530 | 1066 |
AddAmmo(dense, amSwitch, 100) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1067 |
AddEvent(CheckLeaksDead, {}, DoDead, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1068 |
AddEvent(CheckDenseDead, {}, DoDead, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1069 |
AddAnim(startDialogue) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1070 |
AddFunction({func = AfterStartDialogue, args = {}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1071 |
AddEvent(CheckBrainiacDead, {}, DoBrainiacDead, {}, 0) |
14404
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1072 |
local hint |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1073 |
if INTERFACE == "touch" then |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1074 |
-- FIXME: No precise key available in Touch yet. |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1075 |
hint = "" |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1076 |
else |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1077 |
hint = "|" .. loc("Hint: Cinematics can be skipped with the [Precise] key.") |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1078 |
end |
cea19d3342c8
Modify texts in first 2 ACF missions to be compatible with Touch
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
1079 |
ShowMission(loc("The Shadow Falls"), loc("The First Encounter"), loc("Survive!") .. hint, 1, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1080 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1081 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1082 |
function onGameTick() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1083 |
AnimUnWait() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1084 |
if ShowAnimation() == false then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1085 |
return |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1086 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1087 |
ExecuteAfterAnimations() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1088 |
CheckEvents() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1089 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1090 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1091 |
function onGearDelete(gear) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1092 |
if gear == cannibals[1] then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1093 |
brainiacDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1094 |
elseif gear == grenadeCrate then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1095 |
grenadeTaken = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1096 |
elseif gear == shotgunCrate then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1097 |
shotgunTaken = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1098 |
elseif gear == dense then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1099 |
denseDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1100 |
elseif gear == leaks then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1101 |
leaksDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1102 |
elseif gear == ramon then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1103 |
ramonDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1104 |
elseif gear == spiky then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1105 |
spikyDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1106 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1107 |
for i = 2, 9 do |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1108 |
if gear == cannibals[i] then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1109 |
cannibalDead[i] = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1110 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1111 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1112 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1113 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1114 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1115 |
function onGearAdd(gear) |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
1116 |
if GetGearType(gear) == gtGrenade and GetHogTeamName(CurrentHedgehog) == nativesTeamName then |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
1117 |
grenadeUsed = true |
14506
f37910a73c19
Refactor ACF missions, store team names in variables
Wuzzy <Wuzzy2@mail.ru>
parents:
14422
diff
changeset
|
1118 |
elseif GetGearType(gear) == gtShotgunShot and GetHogTeamName(CurrentHedgehog) == nativesTeamName then |
7213
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
1119 |
shotgunUsed = true |
fce7de71742f
Fixed some bugs with Mission 2 and Animate.lua.
belphegorr <szabibibi@gmail.com>
parents:
7211
diff
changeset
|
1120 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1121 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1122 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1123 |
function onAmmoStoreInit() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1124 |
SetAmmo(amDEagle, 9, 0, 0, 0) |
7232
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1125 |
SetAmmo(amSniperRifle, 6, 0, 0, 0) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1126 |
SetAmmo(amFirePunch, 3, 0, 0, 0) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1127 |
SetAmmo(amWhip, 4, 0, 0, 0) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1128 |
SetAmmo(amBaseballBat, 4, 0, 0, 0) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1129 |
SetAmmo(amHammer, 2, 0, 0, 0) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1130 |
SetAmmo(amLandGun, 1, 0, 0, 0) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1131 |
SetAmmo(amSnowball, 7, 0, 0, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1132 |
SetAmmo(amGirder, 0, 0, 0, 2) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1133 |
SetAmmo(amParachute, 0, 0, 0, 2) |
7232
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1134 |
SetAmmo(amGrenade, 0, 0, 0, 3) |
277cbfbed93c
Reduced ammo count on Mission 2
belphegorr <szabibibi@gmail.com>
parents:
7228
diff
changeset
|
1135 |
SetAmmo(amShotgun, 0, 0, 0, 3) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1136 |
SetAmmo(amSwitch, 0, 0, 0, 8) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1137 |
SetAmmo(amRope, 0, 0, 0, 6) |
12547 | 1138 |
SetAmmo(amSkip, 9, 0, 0, 0) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1139 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1140 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1141 |
function onNewTurn() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1142 |
if AnimInProgress() then |
13752
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13742
diff
changeset
|
1143 |
SetTurnTimeLeft(MAX_TURN_TIME) |
14681
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
1144 |
elseif stage == wave1Stage then |
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
1145 |
if GetHogClan(CurrentHedgehog) == GetTeamClan(weaklingsTeamName) and (not wave1EnemyTurn) then |
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
1146 |
EndTurn(true) |
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
1147 |
wave1EnemyTurn = true |
aa4f99b96c6d
ACF2: Fix clock entering "retreat mode" after cut scene after killing first enemy
Wuzzy <Wuzzy2@mail.ru>
parents:
14521
diff
changeset
|
1148 |
end |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1149 |
elseif stage == cyborgStage then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1150 |
if CurrentHedgehog ~= dense then |
12551 | 1151 |
EndTurn(true) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1152 |
else |
13752
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13742
diff
changeset
|
1153 |
SetTurnTimeLeft(MAX_TURN_TIME) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1154 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1155 |
elseif stage == acceptedReturnStage then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1156 |
SwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1157 |
FollowGear(dense) |
13752
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13742
diff
changeset
|
1158 |
SetTurnTimeLeft(MAX_TURN_TIME) |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1159 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1160 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1161 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1162 |
function onGearDamage(gear, damage) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1163 |
if gear == cyborg and stage == cyborgStage then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1164 |
cyborgAttacked = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1165 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1166 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1167 |
|
15023
3ed1cbd31754
Backed out changeset 4596357d002d (onPreciseLocal causes desyncs)
Wuzzy <Wuzzy2@mail.ru>
parents:
14953
diff
changeset
|
1168 |
function onPrecise() |
7502
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
1169 |
if GameTime > 2500 and AnimInProgress() then |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1170 |
SetAnimSkip(true) |
7502
16c36f62247b
Solved issues with HideHog in mission 2 and 3
belphegorr <szabibibi@gmail.com>
parents:
7448
diff
changeset
|
1171 |
return |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1172 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1173 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1174 |