author | Periklis Ntanasis <pntanasis@gmail.com> |
Fri, 16 Aug 2013 04:56:06 +0300 | |
branch | spacecampaign |
changeset 9534 | 662edfec06be |
parent 9532 | 4fa58a49ace1 |
child 9536 | 7456b28a3421 |
permissions | -rw-r--r-- |
9527 | 1 |
------------------- ABOUT ---------------------- |
2 |
-- |
|
3 |
-- In this adventure hero gets the lost part with |
|
4 |
-- the help of the green bananas hogs. |
|
5 |
||
6 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
|
7 |
HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
8 |
||
9 |
----------------- VARIABLES -------------------- |
|
10 |
-- globals |
|
11 |
local campaignName = loc("A Space Adventure") |
|
9529 | 12 |
local missionName = loc("Fruit planet, Searching the Device!") |
9527 | 13 |
local inBattle = false |
9529 | 14 |
local tookPartInBattle = false |
9527 | 15 |
-- dialogs |
16 |
local dialog01 = {} |
|
17 |
local dialog02 = {} |
|
18 |
local dialog03 = {} |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
19 |
local dialog04 = {} |
9527 | 20 |
-- mission objectives |
21 |
local goals = { |
|
9529 | 22 |
[dialog01] = {missionName, loc("Getting the Device"), loc("With the help of the other hogs search for the device").."|"..loc("Hog Solo has to reach the last crates"), 1, 4000}, |
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
23 |
[dialog02] = {missionName, loc("Getting the Device"), loc("Explore the tunnel with the other hogs and search for the device").."|"..loc("Hog Solo has to reach the last crates"), 1, 4000}, |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
24 |
[dialog03] = {missionName, loc("Return to the Surface"), loc("Go to the surface!").."|"..loc("Attack Captain Lime before he attacks back"), 1, 4000}, |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
25 |
[dialog04] = {missionName, loc("Return to the Surface"), loc("Go to the surface!").."|"..loc("Attack the assasins before they attack back"), 1, 4000}, |
9527 | 26 |
} |
27 |
-- crates types=[0:ammo,1:utility,2:health] |
|
28 |
local crates = { |
|
29 |
{type = 0, name = amDEagle, x = 1680, y = 1650}, |
|
30 |
{type = 0, name = amGirder, x = 1680, y = 1160}, |
|
31 |
{type = 0, name = amRope, x = 1400, y = 1870}, |
|
32 |
} |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
33 |
local weaponCrate = { x = 1360, y = 1870} |
9527 | 34 |
-- hogs |
35 |
local hero = {} |
|
36 |
local green1 = {} |
|
37 |
local green2 = {} |
|
38 |
local green3 = {} |
|
39 |
-- teams |
|
40 |
local teamA = {} |
|
41 |
local teamB = {} |
|
42 |
local teamC = {} |
|
43 |
local teamD = {} |
|
44 |
-- hedgehogs values |
|
45 |
hero.name = "Hog Solo" |
|
46 |
hero.x = 1200 |
|
47 |
hero.y = 820 |
|
48 |
hero.dead = false |
|
49 |
green1.name = "Captain Lime" |
|
50 |
green1.x = 1050 |
|
51 |
green1.y = 820 |
|
52 |
green2.name = "Mister Pear" |
|
53 |
green2.x = 1350 |
|
54 |
green2.y = 820 |
|
55 |
green3.name = "Lady Mango" |
|
56 |
green3.x = 1450 |
|
57 |
green3.y = 820 |
|
58 |
local redHedgehogs = { |
|
59 |
{ name = "Poisonous Apple" }, |
|
60 |
{ name = "Dark Strawberry" }, |
|
61 |
{ name = "Watermelon Heart" }, |
|
62 |
{ name = "Deadly Grape" } |
|
63 |
} |
|
64 |
teamA.name = loc("Hog Solo and GB") |
|
65 |
teamA.color = tonumber("38D61C",16) -- green |
|
66 |
teamB.name = loc("Captain Lime") |
|
67 |
teamB.color = tonumber("38D61C",16) -- green |
|
68 |
teamC.name = loc("Fruit Assasins") |
|
69 |
teamC.color = tonumber("FF0000",16) -- red |
|
70 |
||
71 |
function onGameInit() |
|
72 |
Seed = 1 |
|
73 |
TurnTime = 20000 |
|
74 |
CaseFreq = 0 |
|
75 |
MinesNum = 0 |
|
76 |
MinesTime = 1 |
|
77 |
Explosives = 0 |
|
78 |
Delay = 3 |
|
79 |
SuddenDeathTurns = 100 |
|
80 |
HealthCaseAmount = 50 |
|
81 |
Map = "fruit02_map" |
|
82 |
Theme = "Fruit" |
|
83 |
||
84 |
-- Hog Solo and Green Bananas |
|
85 |
AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
86 |
hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1") |
|
87 |
AnimSetGearPosition(hero.gear, hero.x, hero.y) |
|
88 |
HogTurnLeft(hero.gear, true) |
|
89 |
green2.gear = AddHog(green2.name, 0, 100, "war_desertgrenadier1") |
|
90 |
AnimSetGearPosition(green2.gear, green2.x, green2.y) |
|
91 |
HogTurnLeft(green2.gear, true) |
|
92 |
green3.gear = AddHog(green3.name, 0, 100, "war_desertgrenadier1") |
|
93 |
AnimSetGearPosition(green3.gear, green3.x, green3.y) |
|
94 |
HogTurnLeft(green3.gear, true) |
|
95 |
-- Captain Lime |
|
96 |
AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
97 |
green1.gear = AddHog(green1.name, 0, 100, "war_desertgrenadier1") |
|
98 |
AnimSetGearPosition(green1.gear, green1.x, green1.y) |
|
99 |
-- Fruit Assasins |
|
100 |
AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
101 |
for i=1,table.getn(redHedgehogs) do |
|
102 |
redHedgehogs[i].gear = AddHog(redHedgehogs[i].name, 0, 100, "war_desertgrenadier1") |
|
103 |
AnimSetGearPosition(redHedgehogs[i].gear, 2010 + 50*i, 630) |
|
104 |
end |
|
105 |
||
106 |
AnimInit() |
|
9529 | 107 |
AnimationSetup() |
9527 | 108 |
end |
109 |
||
110 |
function onGameStart() |
|
111 |
AnimWait(hero.gear, 3000) |
|
112 |
FollowGear(hero.gear) |
|
113 |
||
9529 | 114 |
if GetCampaignVar(Fruit01JoinedBattle) and GetCampaignVar(Fruit01JoinedBattle) == "true" then |
115 |
tookPartInBattle = true |
|
116 |
end |
|
117 |
||
9527 | 118 |
AddEvent(onHeroDeath, {hero.gear}, heroDeath, {hero.gear}, 0) |
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
119 |
AddEvent(onDeviceCrates, {hero.gear}, deviceCrates, {hero.gear}, 0) |
9527 | 120 |
|
121 |
-- Hog Solo and GB weapons |
|
122 |
AddAmmo(hero.gear, amFirePunch, 3) |
|
123 |
AddAmmo(hero.gear, amSwitch, 100) |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
124 |
AddAmmo(hero.gear, amTeleport, 100) |
9527 | 125 |
-- Assasins weapons |
126 |
AddAmmo(redHedgehogs[1].gear, amBazooka, 6) |
|
127 |
AddAmmo(redHedgehogs[1].gear, amGrenade, 6) |
|
128 |
for i=1,table.getn(redHedgehogs) do |
|
129 |
HideHog(redHedgehogs[i].gear) |
|
130 |
end |
|
131 |
||
132 |
-- place crates |
|
133 |
for i=1,table.getn(crates) do |
|
134 |
SpawnAmmoCrate(crates[i].x, crates[i].y, crates[i].name) |
|
135 |
end |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
136 |
if tookPartInBattle then |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
137 |
SpawnAmmoCrate(weaponCrate.x, weaponCrate.y, amWatermelon) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
138 |
else |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
139 |
SpawnAmmoCrate(weaponCrate.x, weaponCrate.y, amSniperRifle) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
140 |
end |
9527 | 141 |
|
142 |
-- explosives |
|
143 |
-- I wanted to use FindPlace but doesn't accept height values... |
|
144 |
local x1 = 950 |
|
145 |
local x2 = 1305 |
|
146 |
local y1 = 1210 |
|
147 |
local y2 = 1620 |
|
148 |
while true do |
|
149 |
if y2<y1 then |
|
150 |
break |
|
151 |
end |
|
152 |
if x2<x1 then |
|
153 |
x2 = 1305 |
|
154 |
y2 = y2 -60 |
|
155 |
end |
|
156 |
if not TestRectForObstacle(x2+25, y2+25, x2-25, y2-25, true) then |
|
157 |
AddGear(x2, y2, gtExplosives, 0, 0, 0, 0) |
|
158 |
end |
|
159 |
x2 = x2 - 30 |
|
160 |
end |
|
161 |
AddGear(3128, 1680, gtExplosives, 0, 0, 0, 0) |
|
162 |
--mines |
|
163 |
AddGear(3135, 1680, gtMine, 0, 0, 0, 0) |
|
164 |
AddGear(3145, 1680, gtMine, 0, 0, 0, 0) |
|
165 |
AddGear(3155, 1680, gtMine, 0, 0, 0, 0) |
|
166 |
AddGear(3165, 1680, gtMine, 0, 0, 0, 0) |
|
167 |
AddGear(3175, 1680, gtMine, 0, 0, 0, 0) |
|
168 |
AddGear(3115, 1680, gtMine, 0, 0, 0, 0) |
|
169 |
AddGear(3105, 1680, gtMine, 0, 0, 0, 0) |
|
170 |
AddGear(3095, 1680, gtMine, 0, 0, 0, 0) |
|
171 |
AddGear(3085, 1680, gtMine, 0, 0, 0, 0) |
|
172 |
AddGear(3075, 1680, gtMine, 0, 0, 0, 0) |
|
173 |
||
9529 | 174 |
if tookPartInBattle then |
175 |
AddAnim(dialog01) |
|
176 |
else |
|
177 |
AddAnim(dialog02) |
|
178 |
end |
|
179 |
||
9527 | 180 |
SendHealthStatsOff() |
181 |
end |
|
182 |
||
183 |
function onNewTurn() |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
184 |
WriteLnToConsole("TURNS "..TotalRounds.." and hog: "..CurrentHedgehog) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
185 |
if not inBattle and CurrentHedgehog == green1.gear then |
9527 | 186 |
TurnTimeLeft = 0 |
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
187 |
elseif CurrentHedgehog == green2.gear or CurrentHedgehog == green3.gear then |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
188 |
if inBattle then |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
189 |
SwitchHog(hero.gear) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
190 |
TurnTimeLeft = 20000 |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
191 |
else |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
192 |
TurnTimeLeft = 0 |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
193 |
end |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
194 |
elseif inBattle then |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
195 |
WriteLnToConsole("IN BATTLE") |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
196 |
TurnTimeLeft = 20000 |
9527 | 197 |
elseif not inBattle then |
198 |
TurnTimeLeft = -1 |
|
199 |
end |
|
200 |
end |
|
201 |
||
202 |
function onGameTick() |
|
203 |
AnimUnWait() |
|
204 |
if ShowAnimation() == false then |
|
205 |
return |
|
206 |
end |
|
207 |
ExecuteAfterAnimations() |
|
208 |
CheckEvents() |
|
209 |
end |
|
210 |
||
211 |
function onGearDelete(gear) |
|
212 |
if gear == hero.gear then |
|
213 |
hero.dead = true |
|
214 |
end |
|
215 |
end |
|
216 |
||
217 |
function onAmmoStoreInit() |
|
218 |
SetAmmo(amDEagle, 0, 0, 0, 6) |
|
219 |
SetAmmo(amGirder, 0, 0, 0, 3) |
|
220 |
SetAmmo(amRope, 0, 0, 0, 1) |
|
221 |
SetAmmo(amWatermelon, 0, 0, 0, 1) |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
222 |
SetAmmo(amSniperRifle, 0, 0, 0, 1) |
9527 | 223 |
end |
224 |
||
225 |
function onPrecise() |
|
226 |
if GameTime > 3000 then |
|
227 |
SetAnimSkip(true) |
|
228 |
end |
|
229 |
end |
|
230 |
||
231 |
-------------- EVENTS ------------------ |
|
232 |
||
233 |
function onHeroDeath(gear) |
|
234 |
if hero.dead then |
|
235 |
return true |
|
236 |
end |
|
237 |
return false |
|
238 |
end |
|
239 |
||
9532 | 240 |
function onDeviceCrates(gear) |
241 |
if not hero.dead and GetY(hero.gear)>1850 and GetX(hero.gear)>1340 then |
|
242 |
return true |
|
243 |
end |
|
244 |
return false |
|
245 |
end |
|
246 |
||
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
247 |
function onSurface(gear) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
248 |
if not hero.dead and GetY(hero.gear)<850 and StoppedGear(hero.gear) then |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
249 |
return true |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
250 |
end |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
251 |
return false |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
252 |
end |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
253 |
|
9527 | 254 |
-------------- ACTIONS ------------------ |
255 |
||
256 |
function heroDeath(gear) |
|
257 |
EndGame() |
|
258 |
end |
|
259 |
||
9532 | 260 |
function deviceCrates(gear) |
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
261 |
TurnTimeLeft = 0 |
9532 | 262 |
if not tookPartInBattle then |
263 |
AddAnim(dialog03) |
|
264 |
else |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
265 |
for i=1,table.getn(redHedgehogs) do |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
266 |
RestoreHog(redHedgehogs[i].gear) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
267 |
end |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
268 |
AddAnim(dialog04) |
9532 | 269 |
end |
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
270 |
AddAmmo(hero.gear, amSwitch, 0) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
271 |
AddEvent(onSurface, {hero.gear}, surface, {hero.gear}, 0) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
272 |
end |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
273 |
|
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
274 |
function surface(gear) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
275 |
-- TODO: after going to the surface first round must be played by the player |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
276 |
AnimSwitchHog(hero.gear) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
277 |
TurnTimeLeft = 20000 |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
278 |
inBattle = true |
9532 | 279 |
end |
280 |
||
9527 | 281 |
-------------- ANIMATIONS ------------------ |
282 |
||
283 |
function Skipanim(anim) |
|
284 |
if goals[anim] ~= nil then |
|
285 |
ShowMission(unpack(goals[anim])) |
|
286 |
end |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
287 |
TurnTimeLeft = 0 |
9527 | 288 |
end |
289 |
||
290 |
function AnimationSetup() |
|
9529 | 291 |
-- DIALOG 01 - Start, Captain Lime helps Hog Solo because he took part in the battle |
9527 | 292 |
AddSkipFunction(dialog01, Skipanim, {dialog01}) |
293 |
table.insert(dialog01, {func = AnimWait, args = {hero.gear, 3000}}) |
|
9529 | 294 |
table.insert(dialog01, {func = AnimCaption, args = {hero.gear, loc("Somewhere else in the planet of fruits Captain Lime helps Hog Solo..."), 5000}}) |
295 |
table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("You fought bravely and you helped us win this battle!"), SAY_SAY, 5000}}) |
|
296 |
table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("So, as promised I have brought you where I think that the device you are looking is hidden."), SAY_SAY, 7000}}) |
|
297 |
table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("I know that your resources are low due to the battle but I'll send with you two of my best hogs to assist you."), SAY_SAY, 7000}}) |
|
298 |
table.insert(dialog01, {func = AnimSay, args = {green1.gear, loc("Good luck!"), SAY_SAY, 2000}}) |
|
9527 | 299 |
table.insert(dialog01, {func = AnimWait, args = {hero.gear, 500}}) |
300 |
table.insert(dialog01, {func = AnimSwitchHog, args = {hero.gear}}) |
|
9529 | 301 |
-- DIALOG02 - Start, Hog Solo escaped from the previous battle |
302 |
AddSkipFunction(dialog02, Skipanim, {dialog02}) |
|
303 |
table.insert(dialog02, {func = AnimWait, args = {hero.gear, 3000}}) |
|
304 |
table.insert(dialog02, {func = AnimCaption, args = {hero.gear, loc("Somewhere else in the planet of fruits Hog Solo gets closer to the device..."), 5000}}) |
|
305 |
table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("You are the one who fled! So, you are alive..."), SAY_SAY, 4000}}) |
|
306 |
table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("I'm still low on hogs. If you are not afraid I could use a set of extra hands"), SAY_SAY, 4000}}) |
|
307 |
table.insert(dialog02, {func = AnimWait, args = {hero.gear, 8000}}) |
|
308 |
table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("I am sorry but I was looking for a device that may be hidden somewhere around here"), SAY_SAY, 4500}}) |
|
309 |
table.insert(dialog02, {func = AnimWait, args = {green1.gear, 12500}}) |
|
310 |
table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("Many long forgotten things can be found in the same tunnels that we are about to search!"), SAY_SAY, 7000}}) |
|
311 |
table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("If you help us you can keep the device if you find it but we'll keep everything else"), SAY_SAY, 7000}}) |
|
312 |
table.insert(dialog02, {func = AnimSay, args = {green1.gear, loc("What do you say? Are you in?"), SAY_SAY, 3000}}) |
|
313 |
table.insert(dialog02, {func = AnimWait, args = {hero.gear, 1800}}) |
|
314 |
table.insert(dialog02, {func = AnimSay, args = {hero.gear, loc("Ok then!"), SAY_SAY, 2000}}) |
|
315 |
table.insert(dialog02, {func = AnimSwitchHog, args = {hero.gear}}) |
|
9532 | 316 |
-- DIALOG03 - At crates, hero learns that Captain Lime is bad |
317 |
AddSkipFunction(dialog03, Skipanim, {dialog03}) |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
318 |
table.insert(dialog03, {func = AnimWait, args = {hero.gear, 4000}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
319 |
table.insert(dialog03, {func = FollowGear, args = {hero.gear}}) |
9532 | 320 |
table.insert(dialog03, {func = AnimSay, args = {hero.gear, loc("Hoo Ray! I've found it, now I have to get back to Captain Lime!"), SAY_SAY, 4000}}) |
321 |
table.insert(dialog03, {func = AnimWait, args = {green1.gear, 4000}}) |
|
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
322 |
table.insert(dialog03, {func = AnimSay, args = {green1.gear, loc("This Hog Solo is so naive! I am gonna shoot him when he returns and keep his device for me!"), SAY_THINK, 4000}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
323 |
table.insert(dialog03, {func = goToThesurface, args = {hero.gear}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
324 |
-- DIALOG04 - At crates, hero learns about the assasins ambush |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
325 |
AddSkipFunction(dialog04, Skipanim, {dialog04}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
326 |
table.insert(dialog04, {func = AnimWait, args = {hero.gear, 4000}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
327 |
table.insert(dialog04, {func = FollowGear, args = {hero.gear}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
328 |
table.insert(dialog04, {func = AnimSay, args = {hero.gear, loc("Hoo Ray! I've found it, now I have to get back to Captain Lime!"), SAY_SAY, 4000}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
329 |
table.insert(dialog04, {func = AnimWait, args = {redHedgehogs[1].gear, 4000}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
330 |
table.insert(dialog04, {func = AnimSay, args = {redHedgehogs[1].gear, loc("We have spotted the enemy! We'll attack when the enemies start gathering!"), SAY_THINK, 4000}}) |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
331 |
table.insert(dialog04, {func = goToThesurface, args = {hero.gear}}) |
9527 | 332 |
end |
333 |
||
334 |
------------- OTHER FUNCTIONS --------------- |
|
335 |
||
9534
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
336 |
function goToThesurface() |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
337 |
TurnTimeLeft = 0 |
662edfec06be
many dialogs and events
Periklis Ntanasis <pntanasis@gmail.com>
parents:
9532
diff
changeset
|
338 |
end |