|
1 ------------------- ABOUT ---------------------- |
|
2 -- |
|
3 -- In this adventure hero visits the fruit planet |
|
4 -- to search for the missing part. However, a war |
|
5 -- has broke out and hero has to take part or leave. |
|
6 |
|
7 HedgewarsScriptLoad("/Scripts/Locale.lua") |
|
8 HedgewarsScriptLoad("/Scripts/Animate.lua") |
|
9 |
|
10 ----------------- VARIABLES -------------------- |
|
11 -- globals |
|
12 local campaignName = loc("A Space Adventure") |
|
13 local missionName = loc("Fruit planet, The War!") |
|
14 -- dialogs |
|
15 local dialog01 = {} |
|
16 -- mission objectives |
|
17 local goals = { |
|
18 [dialog01] = {missionName, loc("Getting ready"), loc("Use the rope and get asap to the surface!"), 1, 4500}, |
|
19 } |
|
20 -- hogs |
|
21 local hero = {} |
|
22 local yellow1 = {} |
|
23 local yellow2 = {} |
|
24 local yellow3 = {} |
|
25 local green1 = {} |
|
26 -- teams |
|
27 local teamA = {} |
|
28 local teamB = {} |
|
29 local teamC = {} |
|
30 -- hedgehogs values |
|
31 hero.name = "Hog Solo" |
|
32 hero.x = 3650 |
|
33 hero.y = 95 |
|
34 hero.dead = false |
|
35 green1.name = "Captain Limes" |
|
36 green1.x = 3600 |
|
37 green1.y = 95 |
|
38 yellow1.name = "General Lemon" |
|
39 yellow1.x = 1300 |
|
40 yellow1.y = 1500 |
|
41 teamA.name = loc("Hog Solo") |
|
42 teamA.color = tonumber("38D61C",16) -- green |
|
43 teamB.name = loc("Green Bananas") |
|
44 teamB.color = tonumber("38D61C",16) -- green |
|
45 teamC.name = loc("Yellow Watermellons") |
|
46 teamC.color = tonumber("DDFF00",16) -- yellow |
|
47 |
|
48 function onGameInit() |
|
49 Seed = 1 |
|
50 TurnTime = 20000 |
|
51 CaseFreq = 0 |
|
52 MinesNum = 0 |
|
53 MinesTime = 1 |
|
54 Explosives = 0 |
|
55 Delay = 3 |
|
56 HealthCaseAmount = 30 |
|
57 Map = "fruit01_map" |
|
58 Theme = "Fruit" |
|
59 |
|
60 -- Hog Solo |
|
61 AddTeam(teamA.name, teamA.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
62 hero.gear = AddHog(hero.name, 0, 100, "war_desertgrenadier1") |
|
63 AnimSetGearPosition(hero.gear, hero.x, hero.y) |
|
64 HogTurnLeft(hero.gear, true) |
|
65 -- Green Bananas |
|
66 AddTeam(teamB.name, teamB.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
67 green1.gear = AddHog(green1.name, 0, 100, "war_desertgrenadier1") |
|
68 AnimSetGearPosition(green1.gear, green1.x, green1.y) |
|
69 -- Yellow Watermellons |
|
70 AddTeam(teamC.name, teamC.color, "Bone", "Island", "HillBilly", "cm_birdy") |
|
71 hero.gear = AddHog(yellow1.name, 0, 100, "war_desertgrenadier1") |
|
72 AnimSetGearPosition(yellow1.gear, yellow1.x, yellow1.y) |
|
73 |
|
74 AnimInit() |
|
75 --AnimationSetup() |
|
76 end |
|
77 |
|
78 function onGameStart() |
|
79 AnimWait(hero.gear, 3000) |
|
80 FollowGear(hero.gear) |
|
81 |
|
82 SendHealthStatsOff() |
|
83 end |