share/hedgewars/Data/Scripts/Multiplayer/The_Specialists.lua
changeset 14520 c96079ee4687
parent 14519 213a636f57fe
child 14521 8a11548cb1d2
equal deleted inserted replaced
14519:213a636f57fe 14520:c96079ee4687
   217 
   217 
   218 function onGameInit()
   218 function onGameInit()
   219 	ClearGameFlags()
   219 	ClearGameFlags()
   220 	EnableGameFlags(gfResetWeps, gfInfAttack, gfPlaceHog, gfPerHogAmmo, gfSwitchHog)
   220 	EnableGameFlags(gfResetWeps, gfInfAttack, gfPlaceHog, gfPerHogAmmo, gfSwitchHog)
   221 	HealthCaseProb = 100
   221 	HealthCaseProb = 100
       
   222 	Goals = loc("The Specialists: Each hedgehog starts with its own weapon set")
   222 end
   223 end
   223 
   224 
   224 function onGameStart()
   225 function onGameStart()
   225 
   226 
   226 	CreateTeam()
   227 	CreateTeam()
   227 
       
   228 	ShowMission(
       
   229 		loc("THE SPECIALISTS"),
       
   230 		loc("a Hedgewars mini-game"),
       
   231 		loc("Eliminate the enemy specialists.") .. "|" ..
       
   232 		" " .. "|" ..
       
   233 		loc("Game Modifiers: ") .. "|" ..
       
   234 		loc("Per-Hog Ammo") .. "|" ..
       
   235 		loc("Weapons Reset") .. "|" ..
       
   236 		loc("Unlimited Attacks") .. "|" ..
       
   237 		"", 4, 4000
       
   238 	)
       
   239 
       
   240 	trackTeams()
   228 	trackTeams()
   241 
   229 
   242 end
   230 end
   243 
   231 
   244 
   232 
   245 function onNewTurn()
   233 function onNewTurn()
   246 
   234 
   247 	started = true
   235 	started = true
   248 	AddCaption(loc("Prepare yourself") .. ", " .. GetHogName(CurrentHedgehog).. "!")
   236 	AddCaption(string.format(loc("Prepare yourself, %s!"), GetHogName(CurrentHedgehog)))
   249 
   237 
   250 end
   238 end
   251 
   239 
   252 function onGearAdd(gear)
   240 function onGearAdd(gear)
   253 
   241