share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua
changeset 15068 6f51c75994a4
parent 14964 bcecb3349948
child 15151 9d0dc3be6307
equal deleted inserted replaced
15067:d59da429d22c 15068:6f51c75994a4
   260 	end
   260 	end
   261 end
   261 end
   262 
   262 
   263 local function victory()
   263 local function victory()
   264 	SaveMissionVar("Won", "true")
   264 	SaveMissionVar("Won", "true")
   265 	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!"), 4, 0)
   266 	SendStat(siGameResult, loc("You have completed the Basic Movement Training!"))
   266 	SendStat(siGameResult, loc("You have completed the Basic Movement Training!"))
   267 	SendStat(siCustomAchievement, loc("Congratulations!"))
   267 	SendStat(siCustomAchievement, loc("Congratulations!"))
   268 	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."))
   269 	PlaySound(sndVictory, CurrentHedgehog)
   269 	PlaySound(sndVictory, CurrentHedgehog)
   270 	-- Disable controls, end game
   270 	-- Disable controls, end game
   536 function onGameStart()
   536 function onGameStart()
   537 	-- Disable input to force player to confirm first message
   537 	-- Disable input to force player to confirm first message
   538 	SetInputMask(0)
   538 	SetInputMask(0)
   539 	SetSoundMask(sndYesSir, true)
   539 	SetSoundMask(sndYesSir, true)
   540 	LoadGearData()
   540 	LoadGearData()
   541 	ShowMission(loc("Basic Movement Training"), loc("Basic Training"), loc("Complete the obstacle course."), 1, 0)
   541 	ShowMission(loc("Basic Movement Training"), loc("Basic Training"), loc("Complete the obstacle course."), 10, 0)
   542 	FollowGear(hog_greenhorn)
   542 	FollowGear(hog_greenhorn)
   543 end
   543 end
   544 
   544