share/hedgewars/Data/Missions/Training/User_Mission_-_RCPlane_Challenge.lua
changeset 9088 553355472675
parent 8043 da083f8d95e6
child 10290 42efccba0711
equal deleted inserted replaced
9087:52a8ee2e8324 9088:553355472675
    18 	CaseFreq = 0
    18 	CaseFreq = 0
    19 	MinesNum = 0
    19 	MinesNum = 0
    20 	Explosives = 0
    20 	Explosives = 0
    21 
    21 
    22 	AddTeam(loc("Wannabe Flyboys"), 14483456, "Simple", "Island", "Default", "Hedgewars")
    22 	AddTeam(loc("Wannabe Flyboys"), 14483456, "Simple", "Island", "Default", "Hedgewars")
    23 	player = AddHog(loc("Ace"), 0, 80, "Gasmask") --NoHat
    23 	player = AddHog(loc("Ace"), 0, 80, "Gasmask")
    24 	SetGearPosition(player, 1380, 1500)
    24 	SetGearPosition(player, 1380, 1500)
    25 
    25 
    26 end
    26 end
    27 
    27 
    28 
    28 
   312 		AddCaption(loc("Crates Left:") .. " " .. cratesLeft)
   312 		AddCaption(loc("Crates Left:") .. " " .. cratesLeft)
   313 		cratesLeft = cratesLeft - 1
   313 		cratesLeft = cratesLeft - 1
   314 
   314 
   315 		if cratesLeft == 0 then
   315 		if cratesLeft == 0 then
   316 
   316 
       
   317 			if planesUsed == 1 then
       
   318 				AddCaption(loc("Achievement Unlocked") .. ": " .. loc("Prestigious Pilot"),0xffba00ff,capgrpMessage2)
       
   319 			end
       
   320 
   317 			ShowMission     (
   321 			ShowMission     (
   318                                 loc("CHALLENGE COMPLETE"),
   322                                 loc("CHALLENGE COMPLETE"),
   319                                 loc("Congratulations!"),
   323                                 loc("Congratulations!"),
   320                                 loc("Planes Used") .. ": " .. planesUsed .. "|" ..
   324                                 loc("Planes Used") .. ": " .. planesUsed .. "|" ..
   321                                 "", 0, 0
   325                                 "", 0, 0