share/hedgewars/Data/Maps/Control/map.lua
changeset 14986 d09208b34713
parent 14985 851f1687439d
child 14987 932f1375a5c7
equal deleted inserted replaced
14985:851f1687439d 14986:d09208b34713
     4 
     4 
     5 -- Goal: Stand on pillars to score points over time.
     5 -- Goal: Stand on pillars to score points over time.
     6 -- First clan to hit the score limit wins!
     6 -- First clan to hit the score limit wins!
     7 
     7 
     8 -- Rules:
     8 -- Rules:
     9 -- * You generate points while standing on a pillar during your turn.
     9 -- * Each pillar you control generates 1 point every 2 seconds.
    10 -- * Hogs get revived.
       
    11 -- * Control more pillars for more points
       
    12 -- * If multiple clans compete for a pillar, no one generates points for this pillar.
    10 -- * If multiple clans compete for a pillar, no one generates points for this pillar.
    13 -- * If you skip turn, you win the same points as if you would have just waited out the turn
    11 -- * If you skip turn, you win the same points as if you would have just waited out the turn
       
    12 -- * Hogs get revived.
    14 
    13 
    15 -----------------
    14 -----------------
    16 -- script begins
    15 -- script begins
    17 -----------------
    16 -----------------
    18 
    17 
   256 
   255 
   257 ------------------------
   256 ------------------------
   258 -- game methods
   257 -- game methods
   259 ------------------------
   258 ------------------------
   260 
   259 
   261 function onAttack()
   260 function onSkipTurn()
   262 
   261 
   263 	if CurrentHedgehog ~= nil then
   262 	if CurrentHedgehog ~= nil then
   264 		if GetCurAmmoType() == amSkip then
   263 		z = (TurnTimeLeft / 2000) - (TurnTimeLeft / 2000)%2
   265 			z = (TurnTimeLeft / 2000) - (TurnTimeLeft / 2000)%2
   264 		for i = 0, z do
   266 			for i = 0, z do
   265 			AwardPoints()
   267 				AwardPoints()
       
   268 			end
       
   269 		end
   266 		end
   270 	end
   267 	end
   271 
   268 
   272 end
   269 end
   273 
   270