share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua
changeset 14951 c173fae0a223
parent 14928 4c5fb1ee75b7
child 14964 bcecb3349948
equal deleted inserted replaced
14950:ef3352839616 14951:c173fae0a223
   152 			end
   152 			end
   153 		end
   153 		end
   154 	end
   154 	end
   155 	
   155 	
   156 	SendHealthStatsOff()
   156 	SendHealthStatsOff()
       
   157 	SendRankingStatsOff()
   157 end
   158 end
   158 
   159 
   159 local function LoadGearData()
   160 local function LoadGearData()
   160 
   161 
   161 	--BEGIN CORE DATA--
   162 	--BEGIN CORE DATA--
   263 	SaveMissionVar("Won", "true")
   264 	SaveMissionVar("Won", "true")
   264 	ShowMission(loc("Basic Movement Training"), loc("Training complete!"),loc("Congratulations! You have completed the obstacle course!"), 0, 0)
   265 	ShowMission(loc("Basic Movement Training"), loc("Training complete!"),loc("Congratulations! You have completed the obstacle course!"), 0, 0)
   265 	SendStat(siGameResult, loc("You have completed the Basic Movement Training!"))
   266 	SendStat(siGameResult, loc("You have completed the Basic Movement Training!"))
   266 	SendStat(siCustomAchievement, loc("Congratulations!"))
   267 	SendStat(siCustomAchievement, loc("Congratulations!"))
   267 	SendStat(siCustomAchievement, loc("Return to the training menu by pressing the “Go back” button."))
   268 	SendStat(siCustomAchievement, loc("Return to the training menu by pressing the “Go back” button."))
   268 	SendStat(siPlayerKills, "0", GetHogTeamName(hog_greenhorn))
       
   269 	PlaySound(sndVictory, CurrentHedgehog)
   269 	PlaySound(sndVictory, CurrentHedgehog)
   270 	-- Disable controls, end game
   270 	-- Disable controls, end game
   271 	SetInputMask(0)
   271 	SetInputMask(0)
   272 	SetWeapon(amNothing)
   272 	SetWeapon(amNothing)
   273 	SetGearMessage(CurrentHedgehog, band(GetGearMessage(CurrentHedgehog), bnot(gmAllStoppable)))
   273 	SetGearMessage(CurrentHedgehog, band(GetGearMessage(CurrentHedgehog), bnot(gmAllStoppable)))