share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua
branchspacecampaign
changeset 9614 7fa70d381c75
parent 9613 142ba1d08205
child 9615 86b82816b222
equal deleted inserted replaced
9613:142ba1d08205 9614:7fa70d381c75
     1 ------------------- ABOUT ----------------------
     1 ------------------- ABOUT ----------------------
     2 --
     2 --
     3 -- Hog Solo has to catch the other hog in order
     3 -- Hog Solo has to catch the other hog in order
     4 -- to get infoormations about the origin of Pr. Hogevil
     4 -- to get informations about the origin of Pr. Hogevil
     5 
     5 
     6 HedgewarsScriptLoad("/Scripts/Locale.lua")
     6 HedgewarsScriptLoad("/Scripts/Locale.lua")
     7 HedgewarsScriptLoad("/Scripts/Animate.lua")
     7 HedgewarsScriptLoad("/Scripts/Animate.lua")
     8 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
     8 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
     9 
     9 
   136 end
   136 end
   137 
   137 
   138 -------------- ACTIONS ------------------
   138 -------------- ACTIONS ------------------
   139 
   139 
   140 function heroDeath(gear)
   140 function heroDeath(gear)
   141 	-- game over
   141 	lose()
   142 	EndGame()
       
   143 end
   142 end
   144 
   143 
   145 -------------- ANIMATIONS ------------------
   144 -------------- ANIMATIONS ------------------
   146 
   145 
   147 function Skipanim(anim)
   146 function Skipanim(anim)
   215 		TurnTimeLeft = 0
   214 		TurnTimeLeft = 0
   216 	end
   215 	end
   217 end
   216 end
   218 
   217 
   219 function lose()
   218 function lose()
       
   219 	SendStat('siGameResult', loc("Too slow! Try again...")) --1
       
   220 	SendStat('siCustomAchievement', loc("You have to caught the other hog 3 times")) --11
       
   221 	SendStat('siCustomAchievement', loc("The time that you'll have left when you reach the hog will be added to the next turn")) --11
       
   222 	SendStat('siCustomAchievement', loc("Each turn you'll have only one rope to use")) --11
       
   223 	SendStat('siCustomAchievement', loc("You'll lose if you die or if your time is up")) --11
       
   224 	SendStat('siPlayerKills','0',teamA.name)
   220 	EndGame()
   225 	EndGame()
   221 end
   226 end
   222 
   227 
   223 function win()
   228 function win()
       
   229 	SendStat('siGameResult', loc("Congratulations, you are the fastest!")) --1
       
   230 	SendStat('siCustomAchievement', loc("You have managed to caught the other hog in time")) --11
       
   231 	SendStat('siPlayerKills','1',teamA.name)
   224 	EndGame()
   232 	EndGame()
   225 end
   233 end