share/hedgewars/Data/Missions/Training/User_Mission_-_Dangerous_Ducklings.lua
changeset 10290 42efccba0711
parent 9088 553355472675
equal deleted inserted replaced
10289:c3a77ff02a23 10290:42efccba0711
   111 		endTimer = endTimer + 1
   111 		endTimer = endTimer + 1
   112 		if (CurrentHedgehog ~= nil) and (CurrentHedgehog == instructor) then
   112 		if (CurrentHedgehog ~= nil) and (CurrentHedgehog == instructor) then
   113 			if endTimer >= 3000 then
   113 			if endTimer >= 3000 then
   114 				--SetHealth(instructor,0)
   114 				--SetHealth(instructor,0)
   115 				TurnTimeLeft = 1
   115 				TurnTimeLeft = 1
   116 				ParseCommand("teamgone " .. loc("Bloody Rookies"))
   116 				DismissTeam(loc("Bloody Rookies"))
   117 			end
   117 			end
   118 			ShowMission(loc("MISSION FAILED"), loc(":("), loc("You've failed. Try again."), -amRope, 5000);
   118 			ShowMission(loc("MISSION FAILED"), loc(":("), loc("You've failed. Try again."), -amRope, 5000);
   119 		end
   119 		end
   120 	end
   120 	end
   121 
   121 
   134 			gameLost = true
   134 			gameLost = true
   135 		elseif (gear == instructor) and (GetY(gear) > WaterLine) then
   135 		elseif (gear == instructor) and (GetY(gear) > WaterLine) then
   136 			HogSay(player, loc("See ya!"), SAY_THINK)
   136 			HogSay(player, loc("See ya!"), SAY_THINK)
   137 			TurnTimeLeft = 3000
   137 			TurnTimeLeft = 3000
   138 			AddCaption(loc("Achievement Unlocked") .. ": " .. loc("Naughty Ninja"),0xffba00ff,capgrpMessage2)
   138 			AddCaption(loc("Achievement Unlocked") .. ": " .. loc("Naughty Ninja"),0xffba00ff,capgrpMessage2)
   139 			ParseCommand("teamgone " .. loc("Blue Team"))
   139 			DismissTeam(loc("Blue Team"))
   140 			gameWon = true
   140 			gameWon = true
   141 		elseif gear == enemy then
   141 		elseif gear == enemy then
   142 			HogSay(player, loc("Enjoy the swim..."), SAY_THINK)
   142 			HogSay(player, loc("Enjoy the swim..."), SAY_THINK)
   143 			gameWon = true
   143 			gameWon = true
   144 			TurnTimeLeft = 3000
   144 			TurnTimeLeft = 3000