share/hedgewars/Data/Missions/Scenario/Big_Armory.lua
author Wuzzy <Wuzzy2@mail.ru>
Fri, 20 Jul 2018 02:43:38 +0200
changeset 13521 d44ca1f04bbe
parent 13062 8b44518d1002
child 13605 75c322ac6670
permissions -rw-r--r--
Fix SDLInteraction strings not being translated
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 = {}
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     5
for a=0, amDuck do
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
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
     8
	elseif a ~= amNothing then
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
		Seed = "{7e34a56b-ee7b-4fe1-8f30-352a998f3f6a}",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    20
		GameFlags = gfDisableWind + gfDisableLandObjects,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    21
		Theme = "EarthRise",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    22
		MapGen = mgRandom,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    23
		MapFeatureSize = 12,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    24
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    25
	teams = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    26
		{ name = loc("Pro Killers"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    27
		clanID = 0,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    28
		flag = "cm_scout",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    29
		grave = "Bone",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    30
		hogs = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    31
			{
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    32
			name = loc("Ultrasoldier"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    33
			health = 100,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    34
			x = 543, y = 1167,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    35
			hat = "Terminator_Glasses",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    36
			ammo = heroAmmo,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    37
			}
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
		{ name = loc("Galaxy Guardians"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    41
		clanID = 8,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    42
		flag = "cm_galaxy",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    43
		grave = "Earth",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    44
		hogs = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    45
			{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
    46
			{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
    47
			{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
    48
			{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
    49
			{name=loc("Sunflame"), x=3424, y=1536},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    50
			{name=loc("Eclipse"), x=3417, y=1081},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    51
			{name=loc("Jetpack"), x=2256, y=1246},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    52
			{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
    53
		}, },
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
	customNonGoals = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    56
		{ 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
    57
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    58
	customGoalCheck = "turnEnd",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12236
diff changeset
    59
	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
    60
})