share/hedgewars/Data/Missions/Scenario/User_Mission_-_Diver.lua
changeset 12359 5e4ac10a03ce
parent 12231 3ec0261e01f0
child 12395 c051ac2544f2
equal deleted inserted replaced
12358:ebff18a44c1e 12359:5e4ac10a03ce
    45 	SpawnAmmoCrate(950,851,amBlowTorch)
    45 	SpawnAmmoCrate(950,851,amBlowTorch)
    46 	SpawnAmmoCrate(1032,853,amParachute)
    46 	SpawnAmmoCrate(1032,853,amParachute)
    47 
    47 
    48 	AddGear(579, 296, gtMine, 0, 0, 0, 0)
    48 	AddGear(579, 296, gtMine, 0, 0, 0, 0)
    49 
    49 
    50 	ShowMission(loc("Operation Diver"), loc("Scenario"), loc("Eliminate the enemy before the time runs out.") .. "|" .. loc("Mines time: 1 second"), -amFirePunch, 0);
    50 	ShowMission(loc("Diver"), loc("Scenario"),
       
    51 		loc("Eliminate the enemy before the time runs out.") .. "|" .. 
       
    52 		loc("Unlimited Attacks: Attacks don't end your turn") .. "|" ..
       
    53 		loc("Mines time: 1 second"), -amFirePunch, 0);
    51 	--SetTag(AddGear(0, 0, gtATSmoothWindCh, 0, 0, 0, 1), -70)
    54 	--SetTag(AddGear(0, 0, gtATSmoothWindCh, 0, 0, 0, 1), -70)
    52 
    55 
    53 	SetWind(-100)
    56 	SetWind(-100)
    54 
    57 
    55 end
    58 end
    89 end
    92 end
    90 
    93 
    91 function onGearDelete(gear)
    94 function onGearDelete(gear)
    92 
    95 
    93 	if (gear == enemy) and (GameOver == false) then
    96 	if (gear == enemy) and (GameOver == false) then
    94 		ShowMission(loc("Operation Diver"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
    97 		ShowMission(loc("Diver"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
    95 	elseif gear == player then
    98 	elseif gear == player then
    96 		ShowMission(loc("Operation Diver"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)		
    99 		ShowMission(loc("Diver"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)		
    97 		GameOver = true
   100 		GameOver = true
    98 	end
   101 	end
    99 
   102 
   100 end
   103 end