share/hedgewars/Data/Missions/Scenario/Big_Armory.lua
author Wuzzy <Wuzzy2@mail.ru>
Thu, 22 Feb 2018 01:39:30 +0100
changeset 13056 b1a230d21a48
parent 12231 b4878d6cd96e
child 13057 8b44518d1002
permissions -rw-r--r--
Convert Big Armory mission to SimpleMission format
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 = {}
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
     5
for a=0, amDuck do
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
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
     8
	elseif a ~= amNothing then
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"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    15
	wind = 15,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    16
	initVars = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    17
		TurnTime = 45000,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    18
		Seed = "{7e34a56b-ee7b-4fe1-8f30-352a998f3f6a}",
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",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    21
		MapGen = mgRandom,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    22
		MapFeatureSize = 12,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    23
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    24
	teams = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    25
		{ name = loc("Pro Killers"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    26
		clanID = 0,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    27
		flag = "cm_scout",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    28
		grave = "Bone",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    29
		hogs = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    30
			{
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    31
			name = loc("Ultrasoldier"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    32
			health = 100,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    33
			x = 543, y = 1167,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    34
			hat = "Terminator_Glasses",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    35
			ammo = heroAmmo,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    36
			}
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    37
		}, },
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
		{ name = loc("Galaxy Guardians"),
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    40
		clanID = 8,
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    41
		flag = "cm_galaxy",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    42
		grave = "Earth",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    43
		hogs = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    44
			{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
    45
			{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
    46
			{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
    47
			{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
    48
			{name=loc("Sunflame"), x=3424, y=1536},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    49
			{name=loc("Eclipse"), x=3417, y=1081},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    50
			{name=loc("Jetpack"), x=2256, y=1246},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    51
			{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
    52
		}, },
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    53
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    54
	customNonGoals = {
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    55
		{ 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
    56
	},
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    57
	customGoalCheck = "turnEnd",
b1a230d21a48 Convert Big Armory mission to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12231
diff changeset
    58
	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
    59
})