author | belphegorr <szabibibi@gmail.com> |
Mon, 25 Jun 2012 11:16:24 +0300 | |
changeset 7203 | 37661b2a7b64 |
child 7211 | a1e9335f1d50 |
permissions | -rw-r--r-- |
7203
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
1 |
loadfile(GetDataPath() .. "Scripts/Animate.lua")() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
2 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
3 |
-----------------------------Constants--------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
4 |
startStage = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
5 |
spyStage = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
6 |
wave1Stage = 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
7 |
wave2Stage = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
8 |
cyborgStage = 4 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
9 |
ramonStage = 5 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
10 |
aloneStage = 6 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
11 |
duoStage = 7 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
12 |
interSpyStage = 8 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
13 |
interWeakStage = 9 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
14 |
acceptedReturnStage = 10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
15 |
refusedReturnStage = 11 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
16 |
attackedReturnStage = 12 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
17 |
loseStage = 13 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
18 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
19 |
ourTeam = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
20 |
weakTeam = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
21 |
strongTeam = 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
22 |
cyborgTeam = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
23 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
24 |
leaksNr = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
25 |
denseNr = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
26 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
27 |
choiceAccept = 1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
28 |
choiceRefuse = 2 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
29 |
choiceAttack = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
30 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
31 |
HogNames = {"Brainiac", "Corpsemonger", "Femur Lover", "Glark", "Bonely", "Rot Molester", "Bloodrocutor", "Muscle Dissolver", "Bloodsucker"} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
32 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
33 |
---POSITIONS--- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
34 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
35 |
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
|
36 |
{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
|
37 |
{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
|
38 |
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
|
39 |
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
|
40 |
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
|
41 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
42 |
---Animations |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
43 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
44 |
startDialogue = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
45 |
weaklingsAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
46 |
stronglingsAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
47 |
acceptedAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
48 |
acceptedSurvivedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
49 |
acceptedDiedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
50 |
refusedAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
51 |
refusedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
52 |
attackedAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
53 |
attackedFinalAnim = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
54 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
55 |
-----------------------------Variables--------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
56 |
lastHogTeam = ourTeam |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
57 |
lastOurHog = leaksNr |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
58 |
lastEnemyHog = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
59 |
stage = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
60 |
choice = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
61 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
62 |
brainiacDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
63 |
cyborgHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
64 |
leaksHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
65 |
denseHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
66 |
cyborgAttacked = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
67 |
retryReturn = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
68 |
shotgunTaken = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
69 |
grenadeTaken = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
70 |
spikyDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
71 |
ramonDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
72 |
denseDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
73 |
leaksDead = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
74 |
ramonHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
75 |
spikyHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
76 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
77 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
78 |
hogNr = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
79 |
cannibalDead = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
80 |
isHidden = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
81 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
82 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
83 |
--------------------------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
|
84 |
function AfterRefusedAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
85 |
SpawnUtilityCrate(2045, 1575, amSwitch) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
86 |
SpawnUtilityCrate(2365, 1495, amShotgun) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
87 |
SpawnUtilityCrate(2495, 1519, amGrenade) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
88 |
SpawnUtilityCrate(2620, 1524, amRope) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
89 |
ShowMission("The Shadow Falls", "The Showdown", "Save Leaks A Lot!|Hint: The Switch utility might be of help to you.", 1, 6000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
90 |
RemoveEventFunc(CheckDenseDead) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
91 |
AddEvent(CheckStronglingsDead, {}, DoStronglingsDeadRefused, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
92 |
AddAmmo(cannibals[6], amGrenade, 5) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
93 |
stage = ramonStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
94 |
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
|
95 |
FollowGear(ramon) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
96 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
97 |
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
|
98 |
HideHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
99 |
cyborgHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
100 |
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
|
101 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
102 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
103 |
function SkipRefusedAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
104 |
RefusedStart() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
105 |
SetGearPosition(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
|
106 |
SetGearPosition(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
|
107 |
SetGearPosition(spiky, 2400, 1675) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
108 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
109 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
110 |
function AfterStartDialogue() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
111 |
stage = spyStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
112 |
ShowMission("The Shadow Falls", "Play with me!", "Defend yourself!|Hint: You can get tips on using weapons by moving your mouse over them in the weapon selection menu", 1, 6000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
113 |
TurnTimeLeft = TurnTime |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
114 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
115 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
116 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
117 |
function StartSkipFunc() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
118 |
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
|
119 |
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
|
120 |
AnimSwitchHog(leaks) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
121 |
SetInputMask(0xFFFFFFFF) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
122 |
end |
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 |
function AfterWeaklingsAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
125 |
AddAmmo(cannibals[2], amShotgun, 4) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
126 |
AddAmmo(cannibals[2], amGrenade, 3) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
127 |
AddAmmo(leaks, amSkip, 4) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
128 |
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
|
129 |
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
|
130 |
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
|
131 |
stage = wave1Stage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
132 |
SwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
133 |
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
|
134 |
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
|
135 |
TurnTimeLeft = TurnTime |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
136 |
ShowMission("The Shadow Falls", "Why do you not like me?", "Obliterate them!|Hint: You might want to take cover...", 1, 6000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
137 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
138 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
139 |
function SkipWeaklingsAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
140 |
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
|
141 |
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
|
142 |
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
|
143 |
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
|
144 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
145 |
SetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
146 |
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
|
147 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
148 |
SetInputMask(0xFFFFFFFF) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
149 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
150 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
151 |
function AfterStronglingsAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
152 |
stage = cyborgStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
153 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
154 |
ShowMission("The Shadow Falls", "The Dilemma", "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) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
155 |
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
|
156 |
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
|
157 |
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
|
158 |
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
|
159 |
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
|
160 |
AddAmmo(dense, amSkip, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
161 |
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
|
162 |
SetHealth(SpawnHealthCrate(3599, 1009), 50) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
163 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
164 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
165 |
function SkipStronglingsAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
166 |
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
|
167 |
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
|
168 |
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
|
169 |
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
|
170 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
171 |
SetGearPosition(cannibals[i], unpack(cannibalPos[i])) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
172 |
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
|
173 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
174 |
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
|
175 |
RestoreHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
176 |
cyborgHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
177 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
178 |
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
|
179 |
SetState(dense, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
180 |
SetGearPosition(dense, 1350, 1310) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
181 |
FollowGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
182 |
HogTurnLeft(dense, true) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
183 |
SetGearPosition(cyborg, 1250, 1310) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
184 |
SwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
185 |
SetInputMask(0xFFFFFFFF) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
186 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
187 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
188 |
function RestartReturnAccepted() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
189 |
retryReturn = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
190 |
SetGearPosition(dense, 1350, 1310) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
191 |
AddAmmo(dense, amGirder, 2) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
192 |
AddAmmo(dense, amParachute, 2) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
193 |
ShowMission("The Shadow Falls", "The walk of Fame", "Return to Leaks A Lot! If you get stuck, press [Precise] to try again!", 1, 6000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
194 |
RemoveEventFunc(CheckNeedGirder) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
195 |
RemoveEventFunc(CheckNeedWeapons) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
196 |
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
|
197 |
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
|
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 AfterAcceptedAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
202 |
stage = acceptedReturnStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
203 |
SpawnAmmoCrate(1300, 810, amGirder) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
204 |
SpawnAmmoCrate(1300, 810 - 60, amParachute) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
205 |
ShowMission("The Shadow Falls", "The walk of Fame", "Return to Leaks A Lot! If you get stuck, press [Precise] to try again!", 1, 6000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
206 |
HideHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
207 |
AddEvent(CheckTookWeapons, {}, DoTookWeapons, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
208 |
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
|
209 |
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
|
210 |
AddEvent(CheckRestartReturnAccepted, {}, RestartReturnAccepted, {}, 1) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
211 |
RemoveEventFunc(CheckDenseDead) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
212 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
213 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
214 |
function SkipAcceptedAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
215 |
SetGearPosition(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
|
216 |
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
|
217 |
AnimSwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
218 |
SetInputMask(0xFFFFFFFF) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
219 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
220 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
221 |
function AfterAttackedAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
222 |
stage = aloneStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
223 |
HideHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
224 |
ShowMission("The Shadow Falls", "The Individualist", "Defeat the cannibals!|Grenade hint: set the timer with [1-5], aim with [Up]/[Down] and hold [Space] to set power", 1, 8000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
225 |
SpawnAmmoCrate(2551, 994, amGrenade) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
226 |
SpawnAmmoCrate(3551, 994, amGrenade) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
227 |
SpawnAmmoCrate(3392, 1101, amShotgun) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
228 |
SpawnAmmoCrate(3192, 1101, amShotgun) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
229 |
AddAmmo(cannibals[6], amGrenade, 5) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
230 |
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
|
231 |
TurnTimeLeft = TurnTime |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
232 |
AddEvent(CheckStronglingsDead, {}, DoStronglingsDeadAttacked, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
233 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
234 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
235 |
function SkipAttackedAnim() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
236 |
if denseDead == false then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
237 |
SetHealth(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
238 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
239 |
SetGearPosition(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
|
240 |
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
|
241 |
AnimSwitchHog(leaks) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
242 |
SetInputMask(0xFFFFFFFF) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
243 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
244 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
245 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
246 |
-----------------------------Animations-------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
247 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
248 |
function EmitDenseClouds(anim, dir) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
249 |
local dif |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
250 |
if dir == "left" then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
251 |
dif = 10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
252 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
253 |
dif = -10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
254 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
255 |
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
|
256 |
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
|
257 |
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
|
258 |
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
|
259 |
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
|
260 |
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
|
261 |
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
|
262 |
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
|
263 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
264 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
265 |
function BlowDenseCloud() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
266 |
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
|
267 |
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
|
268 |
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
|
269 |
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
|
270 |
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
|
271 |
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
|
272 |
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
|
273 |
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
|
274 |
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
|
275 |
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
|
276 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
277 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
278 |
function AnimationSetup() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
279 |
table.insert(startDialogue, {func = AnimWait, args = {dense, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
280 |
table.insert(startDialogue, {func = AnimCaption, args = {leaks, "After the shock caused by the enemy spy, Leaks A Lot and Dense Cloud went hunting to relax.", 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
281 |
table.insert(startDialogue, {func = AnimCaption, args = {leaks, "Little did they know that this hunt will mark them forever...", 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
282 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, "I have no idea where that mole disappeared...Can you see it?", SAY_SAY, 9000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
283 |
table.insert(startDialogue, {func = AnimSay, args = {dense, "Nope. It was one fast mole, that's for sure.", SAY_SAY, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
284 |
table.insert(startDialogue, {func = AnimCustomFunction, args = {dense, EmitDenseClouds, {startDialogue, "right"}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
285 |
table.insert(startDialogue, {func = AnimWait, args = {dense, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
286 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, "Please, stop releasing your \"smoke signals\"!", SAY_SAY, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
287 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, "You're terrorizing the forest...We won't catch anything like this!", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
288 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, "...", SAY_THINK, 1000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
289 |
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
|
290 |
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
|
291 |
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
|
292 |
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
|
293 |
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
|
294 |
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
|
295 |
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
|
296 |
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
|
297 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], "I can't believe it worked!", SAY_THINK, 3500}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
298 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], "That shaman sure knows what he/she's doing!", SAY_THINK, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
299 |
table.insert(startDialogue, {func = AnimSay, args = {leaks, "It wants our brains!", SAY_SHOUT, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
300 |
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
|
301 |
table.insert(startDialogue, {func = AnimSay, args = {cannibals[1], "Not you again! My head still hurts from last time!", SAY_SHOUT, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
302 |
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
|
303 |
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
|
304 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
305 |
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
|
306 |
table.insert(weaklingsAnim, {func = AnimCustomFunction, args = {leaks, UnHideWeaklings, {}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
307 |
table.insert(weaklingsAnim, {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
|
308 |
table.insert(weaklingsAnim, {func = AnimSay, args = {leaks, "Did you see him coming?", SAY_SAY, 3500}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
309 |
table.insert(weaklingsAnim, {func = AnimSay, args = {dense, "No. Where did he come from?", SAY_SAY, 3500}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
310 |
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
|
311 |
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
|
312 |
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
|
313 |
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
|
314 |
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
|
315 |
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
|
316 |
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
|
317 |
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
|
318 |
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
|
319 |
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
|
320 |
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
|
321 |
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
|
322 |
table.insert(weaklingsAnim, {func = AnimSay, args = {cannibals[3], "Are we there yet?", SAY_SAY, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
323 |
table.insert(weaklingsAnim, {func = AnimSay, args = {dense, "This must be some kind of sorcery!", SAY_SHOUT, 3500}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
324 |
table.insert(weaklingsAnim, {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
|
325 |
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
|
326 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
327 |
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
|
328 |
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
|
329 |
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
|
330 |
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
|
331 |
table.insert(stronglingsAnim, {func = AnimGiveState, args = {dense, 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
332 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, "I thought their shaman died when he tried our medicine!", SAY_SAY, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
333 |
table.insert(stronglingsAnim, {func = AnimSay, args = {dense, "I saw it with my own eyes!", SAY_SAY, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
334 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, "Then how do they keep appearing?", SAY_SAY, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
335 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, "It's impossible to communicate with the spirits without a shaman.", SAY_SAY, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
336 |
table.insert(stronglingsAnim, {func = AnimSay, args = {dense, "We need to warn the village.", SAY_SAY, 3500}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
337 |
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
|
338 |
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
|
339 |
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
|
340 |
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
|
341 |
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
|
342 |
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
|
343 |
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
|
344 |
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
|
345 |
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
|
346 |
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
|
347 |
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
|
348 |
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
|
349 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cannibals[7], "What a ride!", SAY_SHOUT, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
350 |
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
|
351 |
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
|
352 |
table.insert(stronglingsAnim, {func = AnimTurn, args = {leaks, "Left"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
353 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, "We can't defeat them!", SAY_THINK, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
354 |
table.insert(stronglingsAnim, {func = AnimSay, args = {leaks, "I'll hold them up while you return to the village!", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
355 |
table.insert(stronglingsAnim, {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
|
356 |
table.insert(stronglingsAnim, {func = AnimWait, args = {cyborg, 1000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
357 |
table.insert(stronglingsAnim, {func = AnimSetGearPosition, args = {dense, 1420, 1315}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
358 |
table.insert(stronglingsAnim, {func = AnimMove, args = {dense, "left", 1400, 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
359 |
table.insert(stronglingsAnim, {func = AnimCustomFunction, args = {dense, EmitDenseClouds, {stronglingsAnim, "left"}}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
360 |
table.insert(stronglingsAnim, {func = AnimMove, args = {dense, "left", 1350, 0}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
361 |
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
|
362 |
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
|
363 |
table.insert(stronglingsAnim, {func = AnimGearWait, args = {cyborg, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
364 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "Greetings, cloudy one!", SAY_SAY, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
365 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "I have come to make you an offering...", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
366 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "You are given the chance to turn your life around...", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
367 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "If you agree to provide the information we need, you will be spared!", SAY_SAY, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
368 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "Have no illusions, your tribe is dead, indifferent of your choice.", SAY_SAY, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
369 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "If you decide to help us, though, we will no longer need to find a new governor for the island.", SAY_SAY, 8000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
370 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "If you know what I mean...", SAY_SAY, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
371 |
table.insert(stronglingsAnim, {func = AnimSay, args = {cyborg, "So? What will it be?", SAY_SAY, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
372 |
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
|
373 |
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
|
374 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
375 |
table.insert(acceptedAnim, {func = AnimSay, args = {cyborg, "Great choice, Steve! Mind if I call you that?", SAY_SAY, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
376 |
table.insert(acceptedAnim, {func = AnimSay, args = {dense, "Whatever floats your boat...", SAY_SAY, 4500}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
377 |
table.insert(acceptedAnim, {func = AnimSay, args = {cyborg, "Great! You will be contacted soon for assistance.", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
378 |
table.insert(acceptedAnim, {func = AnimSay, args = {cyborg, "In the meantime, take these and return to your \"friend\"!", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
379 |
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
|
380 |
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
|
381 |
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
|
382 |
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
|
383 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
384 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimCustomFunction, args = {dense, 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
|
385 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, "Pfew! That was close!", SAY_SAY, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
386 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {leaks, "Where did you get the exploding apples and the magic bow that shoots many arrows?", SAY_SAY, 9000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
387 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {dense, "Uhm...I met one of them and took his weapons.", SAY_SAY, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
388 |
table.insert(acceptedSurvivedFinalAnim, {func = AnimSay, args = {dense, "We should head back to the village now.", SAY_SAY, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
389 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
390 |
table.insert(acceptedDiedFinalAnim, {func = AnimSay, args = {leaks, "Pfew! That was close!", SAY_THINK, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
391 |
table.insert(acceptedDiedFinalAnim, {func = AnimSay, args = {leaks, "Your death will not be in vain, Dense Cloud!", SAY_THINK, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
392 |
table.insert(acceptedDiedFinalAnim, {func = AnimSay, args = {dense, "You will be avenged!", SAY_SAY, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
393 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
394 |
table.insert(refusedAnim, {func = AnimSay, args = {cyborg, "I see...", SAY_SAY, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
395 |
table.insert(refusedAnim, {func = AnimSay, args = {cyborg, "Remember this, pathetic animal: when the day comes, you will regret your blind loyalty!", SAY_SAY, 8000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
396 |
table.insert(refusedAnim, {func = AnimSay, args = {cyborg, "You just committed suicide...", SAY_SAY, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
397 |
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
|
398 |
table.insert(refusedAnim, {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
|
399 |
table.insert(refusedAnim, {func = AnimSay, args = {dense, "If you say so...", SAY_THINK, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
400 |
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
|
401 |
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
|
402 |
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
|
403 |
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
|
404 |
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
|
405 |
table.insert(refusedAnim, {func = AnimOutOfNowhere, args = {spiky, 2400, 1675}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
406 |
table.insert(refusedAnim, {func = AnimTurn, args = {spiky, "left"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
407 |
table.insert(refusedAnim, {func = AnimWait, args = {cyborg, 1700}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
408 |
table.insert(refusedAnim, {func = AnimTurn, args = {spiky, "right"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
409 |
table.insert(refusedAnim, {func = AnimWait, args = {cyborg, 1700}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
410 |
table.insert(refusedAnim, {func = AnimTurn, args = {spiky, "left"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
411 |
table.insert(refusedAnim, {func = AnimSay, args = {spiky, "Dude, we really need a new shaman...", SAY_SAY, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
412 |
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
|
413 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
414 |
table.insert(refusedFinalAnim, {func = AnimSay, args = {leaks, "It's over...", SAY_SAY, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
415 |
table.insert(refusedFinalAnim, {func = AnimSay, args = {leaks, "Let's head back to the village!", SAY_SAY, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
416 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
417 |
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
|
418 |
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
|
419 |
table.insert(attackedAnim, {func = AnimWait, args = {cyborg, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
420 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, "Really?! You thought you could harm me with your little toys?", SAY_SAY, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
421 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, "You're pathetic! You are not worthy of my attention...", SAY_SAY, 6000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
422 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, "Actually, you aren't worthy of life! Take this...", SAY_SAY, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
423 |
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
|
424 |
table.insert(attackedAnim, {func = AnimWait, args = {cyborg, 2000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
425 |
table.insert(attackedAnim, {func = AnimSay, args = {cyborg, "Incredible...", SAY_SAY, 3000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
426 |
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
|
427 |
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
|
428 |
table.insert(attackedAnim, {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
|
429 |
table.insert(attackedAnim, {func = AnimSay, args = {leaks, "I wonder where Dense Cloud is...", SAY_THINK, 4000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
430 |
table.insert(attackedAnim, {func = AnimSay, args = {leaks, "I can't wait any more, I have to save myself!", SAY_THINK, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
431 |
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
|
432 |
|
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(attackedFinalAnim, {func = AnimSay, args = {leaks, "I have to get back to the village!", SAY_THINK, 5000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
434 |
table.insert(attackedFinalAnim, {func = AnimSay, args = {leaks, "Dense Cloud must have already told them everything...", SAY_THINK, 7000}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
435 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
436 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
437 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
438 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
439 |
-----------------------------Misc-------------------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
440 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
441 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
442 |
function RefusedStart() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
443 |
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
|
444 |
RestoreHog(ramon) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
445 |
ramonHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
446 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
447 |
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
|
448 |
RestoreHog(spiky) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
449 |
spikyHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
450 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
451 |
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
|
452 |
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
|
453 |
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
|
454 |
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
|
455 |
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
|
456 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
457 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
458 |
function AddHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
459 |
AddTeam("Natives", 1117585, "Bone", "Island", "HillBilly", "cm_birdy") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
460 |
ramon = AddHog("Ramon", 0, 100, "rasta") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
461 |
leaks = AddHog("Leaks A Lot", 0, 100, "Rambo") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
462 |
dense = AddHog("Dense Cloud", 0, 100, "RobinHood") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
463 |
spiky = AddHog("Spiky Cheese", 0, 100, "hair_yellow") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
464 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
465 |
AddTeam("Weaklings", 14483456, "Skull", "Island", "Pirate","cm_vampire") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
466 |
cannibals = {} |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
467 |
cannibals[1] = AddHog("Brainiac", 5, 20, "Zombi") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
468 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
469 |
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
|
470 |
cannibals[i] = AddHog(HogNames[i], 1, 20, "Zombi") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
471 |
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
|
472 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
473 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
474 |
AddTeam("Stronglings", 14483456, "Skull", "Island", "Pirate","cm_vampire") |
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 |
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
|
477 |
cannibals[i] = AddHog(HogNames[i], 2, 30, "vampirichog") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
478 |
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
|
479 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
480 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
481 |
AddTeam("011101001", 14483456, "ring", "UFO", "Robot", "cm_star") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
482 |
cyborg = AddHog("Y3K1337", 0, 200, "cyborg1") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
483 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
484 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
485 |
function PlaceHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
486 |
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
|
487 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
488 |
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
|
489 |
SetGearPosition(cannibals[i], unpack(cyborgPos)) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
490 |
AnimTurn(cannibals[i], "left") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
491 |
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
|
492 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
493 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
494 |
SetGearPosition(cannibals[1], cannibalPos[1][1], cannibalPos[1][2]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
495 |
AnimTurn(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
|
496 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
497 |
SetGearPosition(cyborg, cyborgPos[1], cyborgPos[2]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
498 |
SetGearPosition(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
|
499 |
SetGearPosition(skiky, 2400, 1675) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
500 |
SetGearPosition(dense, densePos[1], densePos[2]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
501 |
SetGearPosition(leaks, leaksPos[1], leaksPos[2]) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
502 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
503 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
504 |
function VisiblizeHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
505 |
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
|
506 |
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
|
507 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
508 |
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
|
509 |
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
|
510 |
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
|
511 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
512 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
513 |
function CondNeedToTurn(hog1, hog2) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
514 |
xl, xd = GetX(hog1), GetX(hog2) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
515 |
if xl > xd then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
516 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Left"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
517 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Right"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
518 |
elseif xl < xd then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
519 |
AnimInsertStepNext({func = AnimTurn, args = {hog2, "Left"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
520 |
AnimInsertStepNext({func = AnimTurn, args = {hog1, "Right"}}) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
521 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
522 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
523 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
524 |
function HideHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
525 |
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
|
526 |
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
|
527 |
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
|
528 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
529 |
HideHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
530 |
cyborgHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
531 |
HideHog(ramon) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
532 |
HideHog(spiky) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
533 |
ramonHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
534 |
spikyHidden = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
535 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
536 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
537 |
function HideStronglings() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
538 |
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
|
539 |
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
|
540 |
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
|
541 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
542 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
543 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
544 |
function UnHideWeaklings() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
545 |
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
|
546 |
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
|
547 |
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
|
548 |
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
|
549 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
550 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
551 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
552 |
function UnHideStronglings() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
553 |
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
|
554 |
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
|
555 |
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
|
556 |
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
|
557 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
558 |
RestoreHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
559 |
cyborgHidden = false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
560 |
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
|
561 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
562 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
563 |
function ChoiceTaken() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
564 |
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
|
565 |
AddAnim(acceptedAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
566 |
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
|
567 |
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
|
568 |
AddAnim(refusedAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
569 |
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
|
570 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
571 |
AddAnim(attackedAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
572 |
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
|
573 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
574 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
575 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
576 |
function KillCyborg() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
577 |
RestoreHog(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
578 |
DeleteGear(cyborg) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
579 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
580 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
581 |
-----------------------------Events------------------------------------ |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
582 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
583 |
function CheckBrainiacDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
584 |
return brainiacDead |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
585 |
end |
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 |
function DoBrainiacDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
588 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
589 |
AddAnim(weaklingsAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
590 |
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
|
591 |
stage = interSpyStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
592 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
593 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
594 |
function CheckWeaklingsKilled() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
595 |
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
|
596 |
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
|
597 |
return false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
598 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
599 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
600 |
return true |
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 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
603 |
function DoWeaklingsKilled() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
604 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
605 |
AddAnim(stronglingsAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
606 |
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
|
607 |
stage = interWeakStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
608 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
609 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
610 |
function CheckRefuse() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
611 |
return GetX(dense) > 1400 and StoppedGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
612 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
613 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
614 |
function DoRefuse() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
615 |
choice = choiceRefuse |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
616 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
617 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
618 |
function CheckAccept() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
619 |
return GetX(dense) < 1300 and StoppedGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
620 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
621 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
622 |
function DoAccept() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
623 |
choice = choiceAccept |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
624 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
625 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
626 |
function CheckConfront() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
627 |
return cyborgAttacked and StoppedGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
628 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
629 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
630 |
function DoConfront() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
631 |
choice = choiceAttack |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
632 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
633 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
634 |
function CheckChoice() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
635 |
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
|
636 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
637 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
638 |
function DoChoice() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
639 |
RemoveEventFunc(CheckConfront) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
640 |
RemoveEventFunc(CheckAccept) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
641 |
RemoveEventFunc(CheckRefuse) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
642 |
ChoiceTaken() |
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 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
645 |
function CheckNeedGirder() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
646 |
return GetX(dense) > 1640 and StoppedGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
647 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
648 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
649 |
function DoNeedGirder() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
650 |
ShowMission("The Shadow Falls", "Under Construction", "To place a girder, select it, use [Left] and [Right] to select angle and length, place with [Left Click]", 1, 6000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
651 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
652 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
653 |
function CheckNeedWeapons() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
654 |
return GetX(dense) > 2522 and StoppedGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
655 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
656 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
657 |
function DoNeedWeapons() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
658 |
grenadeCrate = SpawnAmmoCrate(2550, 600, amGrenade) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
659 |
shotgunCrate = SpawnAmmoCrate(2550, 550, amShotgun) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
660 |
AddCaption("A little gift from the cyborgs") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
661 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
662 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
663 |
function CheckTookWeapons() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
664 |
return shotgunTaken and grenadeTaken |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
665 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
666 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
667 |
function DoTookWeapons() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
668 |
ShowMission("The Shadow Falls", "The guardian", "Protect yourselves!|Grenade hint: set the timer with [1-5], aim with [Up]/[Down] and hold [Space] to set power", 1, 8000) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
669 |
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
|
670 |
AddAmmo(dense, amSwitch, 100) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
671 |
stage = duoStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
672 |
RemoveEventFunc(CheckNeedGirder) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
673 |
RemoveEventFunc(CheckNeedWeapons) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
674 |
RemoveEventFunc(CheckRestartReturnAccepted) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
675 |
AddEvent(CheckStronglingsDead, {}, DoStronglingsDead, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
676 |
AddAmmo(cannibals[6], amGrenade, 7) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
677 |
AddAmmo(cannibals[6], amShotgun, 7) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
678 |
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
|
679 |
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
|
680 |
TurnTimeLeft = TurnTime |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
681 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
682 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
683 |
function DoStronglingsDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
684 |
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
|
685 |
AddAnim(acceptedDiedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
686 |
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
|
687 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
688 |
AddAnim(acceptedSurvivedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
689 |
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
|
690 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
691 |
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
|
692 |
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
|
693 |
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
|
694 |
SaveCampaignVar("Progress", "2") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
695 |
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
|
696 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
697 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
698 |
function DoStronglingsDeadRefused() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
699 |
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
|
700 |
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
|
701 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
702 |
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
|
703 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
704 |
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
|
705 |
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
|
706 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
707 |
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
|
708 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
709 |
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
|
710 |
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
|
711 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
712 |
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
|
713 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
714 |
AddAnim(refusedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
715 |
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
|
716 |
SaveCampaignVar("Progress", "2") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
717 |
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
|
718 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
719 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
720 |
function DoStronglingsDeadAttacked() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
721 |
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
|
722 |
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
|
723 |
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
|
724 |
AddAnim(attackedFinalAnim) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
725 |
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
|
726 |
SaveCampaignVar("Progress", "2") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
727 |
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
|
728 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
729 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
730 |
function CheckStronglingsDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
731 |
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
|
732 |
return false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
733 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
734 |
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
|
735 |
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
|
736 |
return false |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
737 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
738 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
739 |
return true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
740 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
741 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
742 |
function CheckLeaksDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
743 |
return leaksDead |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
744 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
745 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
746 |
function DoDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
747 |
AddCaption("...and so the cyborgs took over the world...") |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
748 |
stage = loseStage |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
749 |
if ramonHidden then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
750 |
RestoreHog(ramon) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
751 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
752 |
if spikyHidden then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
753 |
RestoreHog(spiky) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
754 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
755 |
SetHealth(dense, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
756 |
SetHealth(leaks, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
757 |
SetHealth(ramon, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
758 |
SetHealth(spiky, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
759 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
760 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
761 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
762 |
function CheckDenseDead() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
763 |
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
|
764 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
765 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
766 |
function CheckRestartReturnAccepted() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
767 |
return retryReturn |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
768 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
769 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
770 |
-----------------------------Main Functions---------------------------- |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
771 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
772 |
function onGameInit() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
773 |
Seed = 334 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
774 |
TemplateFilter = 3 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
775 |
GameFlags = gfSolidLand + gfDisableWind |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
776 |
TurnTime = 50000 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
777 |
CaseFreq = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
778 |
MinesNum = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
779 |
MinesTime = 3000 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
780 |
Explosives = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
781 |
Delay = 10 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
782 |
MapGen = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
783 |
Theme = "Nature" |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
784 |
SuddenDeathTurns = 3000 |
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 |
AddHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
787 |
PlaceHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
788 |
VisiblizeHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
789 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
790 |
AnimInit() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
791 |
AnimationSetup() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
792 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
793 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
794 |
function onGameStart() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
795 |
HideHogs() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
796 |
AddAmmo(leaks, amSwitch, 100) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
797 |
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
|
798 |
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
|
799 |
AddAnim(startDialogue) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
800 |
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
|
801 |
AddEvent(CheckBrainiacDead, {}, DoBrainiacDead, {}, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
802 |
ShowMission("The Shadow Falls", "The First Encounter", "Survive!|Hint: Cinematics can be skipped with the [Precise] key.", 1, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
803 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
804 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
805 |
function onGameTick() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
806 |
AnimUnWait() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
807 |
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
|
808 |
return |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
809 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
810 |
ExecuteAfterAnimations() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
811 |
CheckEvents() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
812 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
813 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
814 |
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
|
815 |
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
|
816 |
brainiacDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
817 |
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
|
818 |
grenadeTaken = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
819 |
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
|
820 |
shotgunTaken = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
821 |
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
|
822 |
denseDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
823 |
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
|
824 |
leaksDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
825 |
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
|
826 |
ramonDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
827 |
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
|
828 |
spikyDead = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
829 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
830 |
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
|
831 |
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
|
832 |
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
|
833 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
834 |
end |
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 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
837 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
838 |
function onGearAdd(gear) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
839 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
840 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
841 |
function onAmmoStoreInit() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
842 |
SetAmmo(amDEagle, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
843 |
SetAmmo(amSniperRifle, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
844 |
SetAmmo(amFirePunch, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
845 |
SetAmmo(amWhip, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
846 |
SetAmmo(amBaseballBat, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
847 |
SetAmmo(amHammer, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
848 |
SetAmmo(amLandGun, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
849 |
SetAmmo(amSnowball, 9, 0, 0, 0) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
850 |
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
|
851 |
SetAmmo(amParachute, 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
|
852 |
SetAmmo(amGrenade, 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
|
853 |
SetAmmo(amShotgun, 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
|
854 |
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
|
855 |
SetAmmo(amRope, 0, 0, 0, 6) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
856 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
857 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
858 |
function onNewTurn() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
859 |
if AnimInProgress() then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
860 |
TurnTimeLeft = -1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
861 |
-- elseif stage == interSpyStage and GetHogTeamName(CurrentHedgehog) ~= "Natives" then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
862 |
-- TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
863 |
-- SetState(CurrentHedgehog, gstInvisible) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
864 |
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
|
865 |
if CurrentHedgehog ~= dense then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
866 |
TurnTimeLeft = 0 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
867 |
else |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
868 |
TurnTimeLeft = -1 |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
869 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
870 |
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
|
871 |
SwitchHog(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
872 |
FollowGear(dense) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
873 |
TurnTimeLeft = -1 |
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 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
876 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
877 |
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
|
878 |
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
|
879 |
cyborgAttacked = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
880 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
881 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
882 |
|
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
883 |
function onPrecise() |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
884 |
if GameTime > 2500 then |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
885 |
SetAnimSkip(true) |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
886 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
887 |
if 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
|
888 |
retryReturn = true |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
889 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
890 |
end |
37661b2a7b64
Copied the first two campaign missions and the helper script into share/hedgewars/Data/
belphegorr <szabibibi@gmail.com>
parents:
diff
changeset
|
891 |