share/hedgewars/Data/Missions/Challenge/User_Mission_-_RCPlane_Challenge.lua
changeset 13501 cbda0f842364
parent 13066 ad75ed9a1e15
child 13583 141cdfe0f3ca
equal deleted inserted replaced
13499:b5f8864a38d3 13501:cbda0f842364
     1 HedgewarsScriptLoad("/Scripts/Locale.lua")
     1 HedgewarsScriptLoad("/Scripts/Locale.lua")
       
     2 HedgewarsScriptLoad("/Scripts/Achievements.lua")
     2 
     3 
     3 local player = nil
     4 local player = nil
     4 local RCGear = nil
     5 local RCGear = nil
     5 local planesUsed = 0
     6 local planesUsed = 0
     6 local planeTimer = 0
     7 local planeTimer = 0
   422 			if(planesUsed == 2) then
   423 			if(planesUsed == 2) then
   423 				SendStat(siCustomAchievement, loc("This was an awesome performance! But this challenge can be finished with even just one RC plane. Can you figure out how?"))
   424 				SendStat(siCustomAchievement, loc("This was an awesome performance! But this challenge can be finished with even just one RC plane. Can you figure out how?"))
   424 			end
   425 			end
   425 			if(planesUsed == 1) then
   426 			if(planesUsed == 1) then
   426 				SendStat(siCustomAchievement, loc("Congratulations! You have truly mastered this challenge! Don't forget to save the demo."))
   427 				SendStat(siCustomAchievement, loc("Congratulations! You have truly mastered this challenge! Don't forget to save the demo."))
   427 				SendStat(siCustomAchievement, string.format(loc("Achievement gotten: %s"), loc("Prestigious Pilot")))
   428 				awardAchievement(loc("Prestigious Pilot"), nil, false)
   428 			end
   429 			end
   429 
   430 
   430 			ShowMission     (
   431 			ShowMission     (
   431                                 loc("CHALLENGE COMPLETE"),
   432                                 loc("CHALLENGE COMPLETE"),
   432                                 loc("Congratulations!"),
   433                                 loc("Congratulations!"),