share/hedgewars/Data/Missions/Scenario/User_Mission_-_Nobody_Laugh.lua
author Wuzzy <Wuzzy2@mail.ru>
Mon, 20 May 2019 14:59:26 +0200
changeset 15035 f877fbeaee6c
parent 14953 ff4003a90ff8
child 15089 6f51c75994a4
permissions -rw-r--r--
Speed Shoppa: Set hog dy=0 on victory
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13059
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
     1
HedgewarsScriptLoad("/Scripts/SimpleMission.lua")
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 9088
diff changeset
     2
HedgewarsScriptLoad("/Scripts/Locale.lua")
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 9088
diff changeset
     3
13059
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
     4
local enemyAmmo = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
     5
	[amDEagle] = 100, [amShotgun] = 100, [amGrenade] = 100, [amBazooka] = 100, [amDrill] = 100
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
     6
}
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 9088
diff changeset
     7
13059
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
     8
SimpleMission({
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
     9
	missionTitle = loc("Nobody Laugh"),
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    10
	missionIcon = 0,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    11
	goalText = 
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    12
		loc("Eliminate the enemy.") .. "|" ..
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    13
		loc("Unlimited Attacks: Attacks don't end your turn") .. "|"..
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    14
		loc("Per-hog Ammo: Weapons are not shared between hogs"),
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    15
	wind = 100,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    16
	initVars = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    17
		TurnTime = 180000,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    18
		Map = "Bath",
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    19
		Theme = "Nature",
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    20
		Seed = 0,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    21
		GameFlags = gfInfAttack + gfPerHogAmmo + gfDisableWind,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    22
	},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    23
	ammoConfig = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    24
		[amSwitch] = { count = 9 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    25
	},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    26
	teams = {
14504
310b167141cc Use player's team identity for SimpleMission-based mission
Wuzzy <Wuzzy2@mail.ru>
parents: 13059
diff changeset
    27
		{ isMissionTeam = true,
13059
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    28
		clanID = 0,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    29
		hogs = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    30
			{
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    31
			health = 1,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    32
			x = 1267, y = 451,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    33
			ammo = { [amParachute] = 1, [amHammer] = 1 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    34
			},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    35
			{
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    36
			health = 31,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    37
			x = 1332, y = 451,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    38
			ammo = { [amWhip] = 1 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    39
			},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    40
		}},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    41
		{ name = loc("Clowns"),
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    42
		flag = "cm_face",
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    43
		grave = "Duck2",
14953
ff4003a90ff8 Enable automatic voicepack language selection for all missions
Wuzzy <Wuzzy2@mail.ru>
parents: 14504
diff changeset
    44
		voice = "Mobster_qau",
13059
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    45
		clanID = 5,
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    46
		hogs = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    47
			{ name = loc("Poison"), health = 100, x = 1133, y = 446, hat = "WhySoSerious", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    48
			{ name = loc("Bobo"), health = 100, x = 1215, y = 553, hat = "clown", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    49
			{ name = loc("Copper"), health = 10, x = 414, y = 376, hat = "clown-copper", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    50
			{ name = loc("Derp"), health = 100, x = 1590, y = 886, hat = "clown-crossed", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    51
			{ name = loc("Eckles"), health = 100, x = 772, y = 754, hat = "clown-copper", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    52
			{ name = loc("Frank"), health = 50, x = 1688, y = 714, hat = "clown-copper", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    53
			{ name = loc("Harry"), health = 50, x = 1932, y = 837, hat = "clown-copper", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    54
			{ name = loc("Igmund"), health = 50, x = 1601, y = 733, hat = "WhySoSerious", botLevel = 1, ammo = enemyAmmo },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    55
		}},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    56
	},
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    57
	girders = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    58
		{ x = 1212, y = 710, frameIdx = 7 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    59
		{ x = 1215, y = 570, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    60
		{ x = 1288, y = 520, frameIdx = 2 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    61
		{ x = 1184, y = 468, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    62
		{ x = 1344, y = 468, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    63
		{ x = 1247, y = 346, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    64
		{ x = 667, y = 438, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    65
		{ x = 507, y = 438, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    66
		{ x = 434, y = 487, frameIdx = 2 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    67
		{ x = 505, y = 537, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    68
		{ x = 665, y = 537, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    69
		{ x = 737, y = 487, frameIdx = 2 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    70
		{ x = 416, y = 465, frameIdx = 6 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    71
		{ x = 1415, y = 378, frameIdx = 6 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    72
		{ x = 1300, y = 625, frameIdx = 3 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    73
		{ x = 1359, y = 566, frameIdx = 3 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    74
		{ x = 1436, y = 538, frameIdx = 0 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    75
		{ x = 1505, y = 468, frameIdx = 4 },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    76
	},
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 9088
diff changeset
    77
13059
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    78
	gears = {
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    79
		{ type = gtCase, crateType = "supply", x = 1242, y = 315, ammoType = amBaseballBat },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    80
		{ type = gtCase, crateType = "supply", x = 1309, y = 315, ammoType = amAirAttack },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    81
		{ type = gtCase, crateType = "supply", x = 144, y = 895, ammoType = amAirAttack },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    82
		{ type = gtCase, crateType = "supply", x = 664, y = 699, ammoType = amIceGun },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    83
		{ type = gtCase, crateType = "supply", x = 1572, y = 444, ammoType = amFirePunch },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    84
		{ type = gtCase, crateType = "supply", x = 1574, y = 382, ammoType = amDynamite },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    85
		{ type = gtCase, crateType = "supply", x = 654, y = 513, ammoType = amParachute },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    86
		{ type = gtCase, crateType = "supply", x = 1569, y = 413, ammoType = amParachute },
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    87
	}
2f21d92eae27 Convert Nobody Laugh to SimpleMission format
Wuzzy <Wuzzy2@mail.ru>
parents: 12933
diff changeset
    88
})