share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
branchspacecampaign
changeset 9601 6af4ca27421a
parent 9600 7daf157d8b52
child 9630 df942cfac4e6
equal deleted inserted replaced
9600:7daf157d8b52 9601:6af4ca27421a
    32 	name = loc("Hog Solo"),
    32 	name = loc("Hog Solo"),
    33 	x = 1100,
    33 	x = 1100,
    34 	y = 560
    34 	y = 560
    35 }
    35 }
    36 local enemiesOdd = {
    36 local enemiesOdd = {
    37 	{name = "Hog 1", x = 2000 , y = 175},
    37 	{name = loc("Hog 1"), x = 2000 , y = 175},
    38 	{name = "Hog III", x = 1950 , y = 1110},
    38 	{name = loc("Hog III"), x = 1950 , y = 1110},
    39 	{name = "Hog 100", x = 1270 , y = 1480},
    39 	{name = loc("Hog 100"), x = 1270 , y = 1480},
    40 	{name = "Hog Saturn", x = 240 , y = 790},
    40 	{name = loc("Hog Saturn"), x = 240 , y = 790},
    41 	{name = "Hog nueve", x = 620 , y = 1950},
    41 	{name = loc("Hog nueve"), x = 620 , y = 1950},
    42 	{name = "Hog onze", x = 720 , y = 1950},
    42 	{name = loc("Hog onze"), x = 720 , y = 1950},
    43 	{name = "Hog dertien", x = 1620 , y = 1950},
    43 	{name = loc("Hog dertien"), x = 1620 , y = 1950},
    44 	{name = "Hog 3x5", x = 1720 , y = 1950},
    44 	{name = loc("Hog 3x5"), x = 1720 , y = 1950},
    45 }
    45 }
    46 local enemiesEven = {
    46 local enemiesEven = {
    47 	{name = "Hog two", x = 660, y = 140},
    47 	{name = loc("Hog two"), x = 660, y = 140},
    48 	{name = "Hog D", x = 1120, y = 1250},
    48 	{name = loc("Hog D"), x = 1120, y = 1250},
    49 	{name = "Hog exi", x = 1290, y = 1250},
    49 	{name = loc("Hog exi"), x = 1290, y = 1250},
    50 	{name = "Hog octo", x = 820, y = 1950},
    50 	{name = loc("Hog octo"), x = 820, y = 1950},
    51 	{name = "Hog decar", x = 920, y = 1950},
    51 	{name = loc("Hog decar"), x = 920, y = 1950},
    52 	{name = "Hog Hephaestus", x = 1820, y = 1950},
    52 	{name = loc("Hog Hephaestus"), x = 1820, y = 1950},
    53 	{name = "Hog 7+7", x = 1920, y = 1950},
    53 	{name = loc("Hog 7+7"), x = 1920, y = 1950},
    54 	{name = "Hog EOF", x = 1200, y = 560},
    54 	{name = loc("Hog EOF"), x = 1200, y = 560},
    55 }
    55 }
    56 -- teams
    56 -- teams
    57 local teamA = {
    57 local teamA = {
    58 	name = loc("Hog Solo"),
    58 	name = loc("Hog Solo"),
    59 	color = tonumber("38D61C",16) -- green
    59 	color = tonumber("38D61C",16) -- green
   199 	return allDead
   199 	return allDead
   200 end
   200 end
   201 
   201 
   202 -------------- ACTIONS ------------------
   202 -------------- ACTIONS ------------------
   203 
   203 
   204 -- game ends anyway but I want to sent custom stats probably...
       
   205 function heroDeath(gear)
   204 function heroDeath(gear)
   206 	SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1
   205 	SendStat('siGameResult', loc("Hog Solo lost, try again!")) --1
   207 	SendStat('siCustomAchievement', loc("You have to eliminate all the enemies")) --11			
   206 	SendStat('siCustomAchievement', loc("You have to eliminate all the enemies")) --11			
   208 	SendStat('siCustomAchievement', loc("Read the Challenge Objectives from within the mission for more details")) --11		
   207 	SendStat('siCustomAchievement', loc("Read the Challenge Objectives from within the mission for more details")) --11		
   209 	SendStat('siPlayerKills','1',teamB.name)
   208 	SendStat('siPlayerKills','1',teamB.name)