share/hedgewars/Data/Missions/Scenario/Big_Armory.lua
author Wuzzy <Wuzzy2@mail.ru>
Wed, 16 Jan 2019 06:24:50 +0100
changeset 14609 ce315bb8b59d
parent 14488 310b167141cc
child 14654 e7b2542c4d28
permissions -rw-r--r--
ASA cosmos: Minor cinematic tweaks for meteorite cut scene
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13061
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     1
HedgewarsScriptLoad("/Scripts/SimpleMission.lua")
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     2
HedgewarsScriptLoad("/Scripts/Locale.lua")
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     3
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     4
local heroAmmo = {}
13856
f01798038c2e Rename amDuck and related symbols to amCreeper, gtCreeper, etc.
Wuzzy <Wuzzy2@mail.ru>
parents: 13854
diff changeset
     5
for a=0, amCreeper do
13061
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     6
	if a == amExtraTime then
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     7
		heroAmmo[a] = 2
13856
f01798038c2e Rename amDuck and related symbols to amCreeper, gtCreeper, etc.
Wuzzy <Wuzzy2@mail.ru>
parents: 13854
diff changeset
     8
	elseif a ~= amNothing and a ~= amCreeper then
13061
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     9
		heroAmmo[a] = 100
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    10
	end
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    11
end
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    12
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    13
SimpleMission({
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    14
	missionTitle = loc("Big Armory"),
13062
8b44518d1002 Convert Newton and the Hammock to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 13061
diff changeset
    15
	missionIcon = -amBazooka,
13061
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    16
	wind = 15,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    17
	initVars = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    18
		TurnTime = 45000,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    19
		GameFlags = gfDisableWind + gfDisableLandObjects,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    20
		Theme = "EarthRise",
13605
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    21
		Map = "BigArmory", -- from sidecar HWP
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    22
		--[[ Map has been generated in Hedgewars 0.9.24 and
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    23
                     then exported as PNG with these settings:
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    24
		* Seed = "{7e34a56b-ee7b-4fe1-8f30-352a998f3f6a}"
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    25
		* MapGen = mgRandom
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    26
		* MapFeatureSize = 12
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    27
		* Theme = "EarthRise"
75c322ac6670 Fix broken Big Armory mission map
Wuzzy <Wuzzy2@mail.ru>
parents: 13062
diff changeset
    28
		* relevant GameFlag: gfDisableLandObjects ]]
13061
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    29
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    30
	teams = {
14488
310b167141cc Use player's team identity for SimpleMission-based mission
Wuzzy <Wuzzy2@mail.ru>
parents: 13856
diff changeset
    31
		{ isMissionTeam = true,
13061
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    32
		clanID = 0,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    33
		hogs = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    34
			{
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    35
			health = 100,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    36
			x = 543, y = 1167,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    37
			ammo = heroAmmo,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    38
			}
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    39
		}, },
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    40
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    41
		{ name = loc("Galaxy Guardians"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    42
		clanID = 8,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    43
		flag = "cm_galaxy",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    44
		grave = "Earth",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    45
		hogs = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
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: 12236
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: 12236
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: 12236
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: 12236
diff changeset
    50
			{name=loc("Sunflame"), x=3424, y=1536},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    51
			{name=loc("Eclipse"), x=3417, y=1081},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    52
			{name=loc("Jetpack"), x=2256, y=1246},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
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: 12236
diff changeset
    54
		}, },
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    55
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    56
	customNonGoals = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
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: 12236
diff changeset
    58
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    59
	customGoalCheck = "turnEnd",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
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: 12236
diff changeset
    61
})