share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
branchspacecampaign
changeset 9322 18cbaf1436c7
parent 9320 1845b420cb5d
child 9324 98368198a75d
equal deleted inserted replaced
9320:1845b420cb5d 9322:18cbaf1436c7
    41 local weaponsY = 100
    41 local weaponsY = 100
    42 local bazookaX = 70
    42 local bazookaX = 70
    43 local parachuteX = 110
    43 local parachuteX = 110
    44 local grenadeX = 160
    44 local grenadeX = 160
    45 local deserteagleX = 200
    45 local deserteagleX = 200
    46 local torchblowX = 3270
       
    47 -- hogs
    46 -- hogs
    48 local hero = {}
    47 local hero = {}
    49 local paoth1 = {}
    48 local paoth1 = {}
    50 local paoth2 = {}
    49 local paoth2 = {}
    51 local paoth3 = {}
    50 local paoth3 = {}
   169 	FollowGear(hero.gear)
   168 	FollowGear(hero.gear)
   170 	
   169 	
   171 	ShowMission(campaignName, missionName, loc("Hog Solo has to refuel his saucer.")..
   170 	ShowMission(campaignName, missionName, loc("Hog Solo has to refuel his saucer.")..
   172 	"|"..loc("Rescue the imprisoned PAoTH team and get your fuels!"), -amSkip, 0)
   171 	"|"..loc("Rescue the imprisoned PAoTH team and get your fuels!"), -amSkip, 0)
   173 	
   172 	
   174 	AddAmmo(minion1.gear, amDEagle, 2)
   173 	AddAmmo(minion1.gear, amDEagle, 10)
   175 	AddAmmo(minion2.gear, amDEagle, 2)
   174 	AddAmmo(minion2.gear, amDEagle, 10)
   176 	AddAmmo(minion3.gear, amDEagle, 2)
   175 	AddAmmo(minion3.gear, amDEagle, 10)
   177 	AddAmmo(minion1.gear, amBazooka, 2)
   176 	AddAmmo(minion1.gear, amBazooka, 2)
   178 	AddAmmo(minion2.gear, amBazooka, 2)
   177 	AddAmmo(minion2.gear, amBazooka, 2)
   179 	AddAmmo(minion3.gear, amBazooka, 2)
   178 	AddAmmo(minion3.gear, amBazooka, 2)
   180 	AddAmmo(minion1.gear, amGrenade, 2)
   179 	AddAmmo(minion1.gear, amGrenade, 2)
   181 	AddAmmo(minion2.gear, amGrenade, 2)
   180 	AddAmmo(minion2.gear, amGrenade, 2)
   298 		return true
   297 		return true
   299 	end
   298 	end
   300 	return false
   299 	return false
   301 end
   300 end
   302 
   301 
       
   302 function onMinionsDeath(gear)
       
   303 	if GetHealth(mimion1.gear) or GetHealth(mimion2.gear) or GetHealth(mimion3.gear) then
       
   304 		return true
       
   305 	end
       
   306 	return false
       
   307 end
       
   308 
   303 -------------- OUTCOMES ------------------
   309 -------------- OUTCOMES ------------------
   304 
   310 
   305 function weaponsPlatform(gear)	
   311 function weaponsPlatform(gear)	
   306 	SaveCampaignVar("Moon01CheckPoint", "2")
   312 	SaveCampaignVar("Moon01CheckPoint", "2")
   307 	TurnTimeLeft = 0
   313 	TurnTimeLeft = 0
   332 	end
   338 	end
   333 end
   339 end
   334 
   340 
   335 function professorDeath(gear)
   341 function professorDeath(gear)
   336 	-- do stats stuff here
   342 	-- do stats stuff here
       
   343 	EndGame()
       
   344 end
       
   345 
       
   346 function minionsDeath(gear)
       
   347 	-- do staffs here
   337 	EndGame()
   348 	EndGame()
   338 end
   349 end
   339 
   350 
   340 -------------- ANIMATIONS ------------------
   351 -------------- ANIMATIONS ------------------
   341 
   352