share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
branchspacecampaign
changeset 9578 16139270448f
parent 9574 da3d39667881
child 9582 bf314b2258b3
equal deleted inserted replaced
9576:8d8bad7d78de 9578:16139270448f
     9 -- TEST TEST AND MORE TEST
     9 -- TEST TEST AND MORE TEST
    10 -- fix the stats
    10 -- fix the stats
    11 
    11 
    12 HedgewarsScriptLoad("/Scripts/Locale.lua")
    12 HedgewarsScriptLoad("/Scripts/Locale.lua")
    13 HedgewarsScriptLoad("/Scripts/Animate.lua")
    13 HedgewarsScriptLoad("/Scripts/Animate.lua")
       
    14 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
    14 
    15 
    15 ----------------- VARIABLES --------------------
    16 ----------------- VARIABLES --------------------
    16 -- globals
    17 -- globals
    17 local missionName = loc("A frozen adventure")
    18 local missionName = loc("A frozen adventure")
    18 local heroAtAntiFlyArea = false
    19 local heroAtAntiFlyArea = false
   498 end
   499 end
   499 
   500 
   500 -------------- Other Functions -------------------
   501 -------------- Other Functions -------------------
   501 
   502 
   502 function actionsOnWin()
   503 function actionsOnWin()
   503 	SaveCampaignVar("IcePlanetPartAcquired", "true")	
   504 	saveCompletedStatus(4)	
   504 	SendStat('siGameResult', loc("Congratulations, you got the part!")) --1
   505 	SendStat('siGameResult', loc("Congratulations, you got the part!")) --1
   505 	SendStat('siCustomAchievement', loc("At the end of the game your health was ")..GetHealth(hero.gear)) --11
   506 	SendStat('siCustomAchievement', loc("At the end of the game your health was ")..GetHealth(hero.gear)) --11
   506 	-- maybe add number of tries for each part?
   507 	-- maybe add number of tries for each part?
   507 	SendStat('siPlayerKills','1',teamC.name)
   508 	SendStat('siPlayerKills','1',teamC.name)
   508 	SendStat('siPlayerKills','0',teamB.name)
   509 	SendStat('siPlayerKills','0',teamB.name)