3 -- In this adventure hero gets the lost part with |
3 -- In this adventure hero gets the lost part with |
4 -- the help of the green bananas hogs. |
4 -- the help of the green bananas hogs. |
5 |
5 |
6 HedgewarsScriptLoad("/Scripts/Locale.lua") |
6 HedgewarsScriptLoad("/Scripts/Locale.lua") |
7 HedgewarsScriptLoad("/Scripts/Animate.lua") |
7 HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
8 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua") |
8 |
9 |
9 ----------------- VARIABLES -------------------- |
10 ----------------- VARIABLES -------------------- |
10 -- globals |
11 -- globals |
11 local missionName = loc("Getting to the device") |
12 local missionName = loc("Getting to the device") |
12 local inBattle = false |
13 local inBattle = false |
418 inBattle = true |
419 inBattle = true |
419 end |
420 end |
420 |
421 |
421 function captainLimeDeath(gear) |
422 function captainLimeDeath(gear) |
422 -- hero win in scenario of escape in 1st part |
423 -- hero win in scenario of escape in 1st part |
|
424 saveCompletedStatus(3) |
423 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
425 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
424 SendStat('siCustomAchievement', loc("You retrieved the lost part")) --11 |
426 SendStat('siCustomAchievement', loc("You retrieved the lost part")) --11 |
425 SendStat('siCustomAchievement', loc("You defended yourself against Captain Lime")) --11 |
427 SendStat('siCustomAchievement', loc("You defended yourself against Captain Lime")) --11 |
426 SendStat('siPlayerKills','1',teamA.name) |
428 SendStat('siPlayerKills','1',teamA.name) |
427 SendStat('siPlayerKills','0',teamB.name) |
429 SendStat('siPlayerKills','0',teamB.name) |
428 EndGame() |
430 EndGame() |
429 end |
431 end |
430 |
432 |
431 function redTeamDeath(gear) |
433 function redTeamDeath(gear) |
432 -- hero win in battle scenario |
434 -- hero win in battle scenario |
|
435 saveCompletedStatus(3) |
433 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
436 SendStat('siGameResult', loc("Congratulations, you won!")) --1 |
434 SendStat('siCustomAchievement', loc("You retrieved the lost part")) --11 |
437 SendStat('siCustomAchievement', loc("You retrieved the lost part")) --11 |
435 SendStat('siCustomAchievement', loc("You defended yourself against Strawberry Assasins")) --11 |
438 SendStat('siCustomAchievement', loc("You defended yourself against Strawberry Assasins")) --11 |
436 SendStat('siPlayerKills','1',teamA.name) |
439 SendStat('siPlayerKills','1',teamA.name) |
437 SendStat('siPlayerKills','0',teamC.name) |
440 SendStat('siPlayerKills','0',teamC.name) |