author | Wuzzy <Wuzzy2@mail.ru> |
Thu, 20 Dec 2018 18:23:13 +0100 | |
changeset 14504 | 310b167141cc |
parent 13872 | f01798038c2e |
child 14670 | e7b2542c4d28 |
permissions | -rw-r--r-- |
13056
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
1 |
HedgewarsScriptLoad("/Scripts/SimpleMission.lua") |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
2 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
3 |
|
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
4 |
local heroAmmo = {} |
13872
f01798038c2e
Rename amDuck and related symbols to amCreeper, gtCreeper, etc.
Wuzzy <Wuzzy2@mail.ru>
parents:
13870
diff
changeset
|
5 |
for a=0, amCreeper do |
13056
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
6 |
if a == amExtraTime then |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
7 |
heroAmmo[a] = 2 |
13872
f01798038c2e
Rename amDuck and related symbols to amCreeper, gtCreeper, etc.
Wuzzy <Wuzzy2@mail.ru>
parents:
13870
diff
changeset
|
8 |
elseif a ~= amNothing and a ~= amCreeper then |
13056
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
9 |
heroAmmo[a] = 100 |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
10 |
end |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
11 |
end |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
12 |
|
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
13 |
SimpleMission({ |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
14 |
missionTitle = loc("Big Armory"), |
13057
8b44518d1002
Convert Newton and the Hammock to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
13056
diff
changeset
|
15 |
missionIcon = -amBazooka, |
13056
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
16 |
wind = 15, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
17 |
initVars = { |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
18 |
TurnTime = 45000, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
19 |
GameFlags = gfDisableWind + gfDisableLandObjects, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
20 |
Theme = "EarthRise", |
13600 | 21 |
Map = "BigArmory", -- from sidecar HWP |
22 |
--[[ Map has been generated in Hedgewars 0.9.24 and |
|
23 |
then exported as PNG with these settings: |
|
24 |
* Seed = "{7e34a56b-ee7b-4fe1-8f30-352a998f3f6a}" |
|
25 |
* MapGen = mgRandom |
|
26 |
* MapFeatureSize = 12 |
|
27 |
* Theme = "EarthRise" |
|
28 |
* relevant GameFlag: gfDisableLandObjects ]] |
|
13056
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
29 |
}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
30 |
teams = { |
14504
310b167141cc
Use player's team identity for SimpleMission-based mission
Wuzzy <Wuzzy2@mail.ru>
parents:
13872
diff
changeset
|
31 |
{ isMissionTeam = true, |
13056
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
32 |
clanID = 0, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
33 |
hogs = { |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
34 |
{ |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
35 |
health = 100, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
36 |
x = 543, y = 1167, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
37 |
ammo = heroAmmo, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
38 |
} |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
39 |
}, }, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
40 |
|
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
41 |
{ name = loc("Galaxy Guardians"), |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
42 |
clanID = 8, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
43 |
flag = "cm_galaxy", |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
44 |
grave = "Earth", |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
45 |
hogs = { |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
46 |
{name=loc("Rocket"), x=796, y=1184, faceLeft=true}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
47 |
{name=loc("Star"), x=733, y=1525, faceLeft=true}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
48 |
{name=loc("Asteroid"), x=738, y=1855, faceLeft=true}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
49 |
{name=loc("Comet"), x=937, y=1318, faceLeft=true}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
50 |
{name=loc("Sunflame"), x=3424, y=1536}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
51 |
{name=loc("Eclipse"), x=3417, y=1081}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
52 |
{name=loc("Jetpack"), x=2256, y=1246}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
53 |
{name=loc("Void"), x=1587, y=1231, faceLeft=true}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
54 |
}, }, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
55 |
}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
56 |
customNonGoals = { |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
57 |
{ type = "turns", turns = 1, failText = loc("You failed to kill all enemies in a single turn.") } |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
58 |
}, |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
59 |
customGoalCheck = "turnEnd", |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
60 |
goalText = loc("Kill all enemy hedgehogs in a single turn."), |
b1a230d21a48
Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents:
12231
diff
changeset
|
61 |
}) |