share/hedgewars/Data/Maps/Knockball/map.lua
changeset 12082 ce3860c82c8b
parent 11202 cc308446f90d
child 12084 8f222872d432
equal deleted inserted replaced
12081:543bc82e1e28 12082:ce3860c82c8b
    17 	Delay = 500
    17 	Delay = 500
    18 	SuddenDeathTurns = 99999 -- "disable" sudden death
    18 	SuddenDeathTurns = 99999 -- "disable" sudden death
    19 end
    19 end
    20 
    20 
    21 function onGameStart()
    21 function onGameStart()
    22 	ShowMission(loc("Hedgewars-Knockball"), loc("Not So Friendly Match"), loc("Bat balls at your enemies and|push them into the sea!"), -amBaseballBat, 0)
    22 	ShowMission(loc("Knockball"), loc("Not So Friendly Match"), loc("Bat balls at your enemies and|push them into the sea!"), -amBaseballBat, 0)
    23 	started = true
    23 	started = true
    24 end
    24 end
    25 
    25 
    26 function onGameTick()
    26 function onGameTick()
    27 	if ball ~= nil and GetFollowGear() ~= nil then FollowGear(ball) end
    27 	if ball ~= nil and GetFollowGear() ~= nil then FollowGear(ball) end
    62 				score[clan] = score[clan] - 1
    62 				score[clan] = score[clan] - 1
    63 				s = string.format(loc("%s is out and Team %d|scored a penalty!| |Score:"), GetHogName(gear), clan + 1)
    63 				s = string.format(loc("%s is out and Team %d|scored a penalty!| |Score:"), GetHogName(gear), clan + 1)
    64 			end
    64 			end
    65 			s = s .. " " .. score[0]
    65 			s = s .. " " .. score[0]
    66 			for i = 1, ClansCount - 1 do s = s .. " - " .. score[i] end
    66 			for i = 1, ClansCount - 1 do s = s .. " - " .. score[i] end
    67 			ShowMission(loc("Hedgewars-Knockball"), loc("Not So Friendly Match"), s, -amBaseballBat, 0)
    67 			ShowMission(loc("Knockball"), loc("Not So Friendly Match"), s, -amBaseballBat, 0)
    68 		end
    68 		end
    69 	end
    69 	end
    70 end
    70 end
    71 
    71 
    72 function onNewTurn()
    72 function onNewTurn()