share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
branchspacecampaign
changeset 9453 c9c25089ab22
parent 9449 435ba2dd5508
child 9474 c255f6c46e33
equal deleted inserted replaced
9451:c3799f0f17cb 9453:c9c25089ab22
     5 -- crates. It is told that one crate contains the
     5 -- crates. It is told that one crate contains the
     6 -- lost part.
     6 -- lost part.
     7 
     7 
     8 -- TODO
     8 -- TODO
     9 -- maybe use same name in missionName and frontend mission name..
     9 -- maybe use same name in missionName and frontend mission name..
    10 -- in this map I have to track the weapons the player has in checkpoints
       
    11 -- GENERAL NOTE: change hats :D
    10 -- GENERAL NOTE: change hats :D
    12 -- Idea: game will be successfully end when the 2 lower crates are collected
    11 -- Idea: game will be successfully end when the 2 lower crates are collected
    13 -- it would be more defficult (and sadistic) if one should collect *all* the crates
    12 -- it would be more defficult (and sadistic) if one should collect *all* the crates
    14 
    13 
    15 HedgewarsScriptLoad("/Scripts/Locale.lua")
    14 HedgewarsScriptLoad("/Scripts/Locale.lua")
   196 	while x < 2900 do
   195 	while x < 2900 do
   197 		AddGear(x, 470, gtMine, 0, 0, 0, 0)
   196 		AddGear(x, 470, gtMine, 0, 0, 0, 0)
   198 		x = x + math.random(8,20)
   197 		x = x + math.random(8,20)
   199 	end
   198 	end
   200 	
   199 	
   201 	AddAmmo(hero.gear, amTeleport, 4)
       
   202 	if checkPointReached == 1 then	
   200 	if checkPointReached == 1 then	
   203 		AddEvent(onHeroAtCheckpoint2, {hero.gear}, heroAtCheckpoint2, {hero.gear}, 0)
   201 		AddEvent(onHeroAtCheckpoint2, {hero.gear}, heroAtCheckpoint2, {hero.gear}, 0)
   204 		AddEvent(onHeroAtCheckpoint3, {hero.gear}, heroAtCheckpoint3, {hero.gear}, 0)
   202 		AddEvent(onHeroAtCheckpoint3, {hero.gear}, heroAtCheckpoint3, {hero.gear}, 0)
   205 		-- crates
   203 		-- crates
   206 		SpawnAmmoCrate(btorch1X, btorch1Y, amBlowTorch)
   204 		SpawnAmmoCrate(btorch1X, btorch1Y, amBlowTorch)