share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua
changeset 12424 b9cc405541c1
parent 12344 877f55c77a3f
child 12771 957e4e2e2802
equal deleted inserted replaced
12423:e9d2efe5763b 12424:b9cc405541c1
    28 local GetTime = 0
    28 local GetTime = 0
    29 
    29 
    30 TargetPos[ 1 ] = { X = 1100, Y = 1100, Message = loc("Now find the next target! |Tip: Normally you lose health by falling down, so be careful!") }
    30 TargetPos[ 1 ] = { X = 1100, Y = 1100, Message = loc("Now find the next target! |Tip: Normally you lose health by falling down, so be careful!") }
    31 TargetPos[ 2 ] = { X = 1500, Y = 1490, Message = loc("You're getting pretty good! |Tip: When you shorten you rope, you move faster!|And when you lengthen it, you move slower.") }
    31 TargetPos[ 2 ] = { X = 1500, Y = 1490, Message = loc("You're getting pretty good! |Tip: When you shorten you rope, you move faster!|And when you lengthen it, you move slower.") }
    32 TargetPos[ 3 ] = { X = 2200, Y = 800, Message = loc("The next one is pretty hard! |Tip: You have to do multiple swings!") }
    32 TargetPos[ 3 ] = { X = 2200, Y = 800, Message = loc("The next one is pretty hard! |Tip: You have to do multiple swings!") }
    33 TargetPos[ 4 ] = { X = 2870, Y = 400, Message = loc("I don't know how you did that .. But good work! |The next one should be easy as cake for you!") }
    33 TargetPos[ 4 ] = { X = 2870, Y = 400, Message = loc("I don't know how you did that. But good work!|The next one should be easy as cake for you!") }
    34 TargetPos[ 5 ] = { X = 4000, Y = 1750, Message = "" }
    34 TargetPos[ 5 ] = { X = 4000, Y = 1750, Message = "" }
    35 TargetPos[ 6 ] = { Modifier = true, Func = function() -- Last target is ALWAYS the "winning" target!
    35 TargetPos[ 6 ] = { Modifier = true, Func = function() -- Last target is ALWAYS the "winning" target!
    36 	Info( loc("Congratulations"), loc("Congratulations! You've completed the Basic Rope Training!"), 0 ) -- Congrats
    36 	Info( loc("Congratulations"), loc("Congratulations! You've completed the Basic Rope Training!"), 0 ) -- Congrats
    37 	PlaySound( sndVictory, Player )
    37 	PlaySound( sndVictory, Player )
    38 
    38 
    39 	AddCaption( loc( "Victory!" ))
    39 	AddCaption( loc( "Victory!" ))
    40 	if TurnTimeLeft >= 250000 then -- If you very fast, unlock the ahievement "Rope Master!"
    40 	if TurnTimeLeft >= 250000 then -- If you very fast, unlock the ahievement "Rope Master!"
    41 		RopeMaster = true
    41 		RopeMaster = true
    42 		AddCaption( string.format(loc( "Achievement gotten: %s"), loc("Rope Master") ),0xffba00ff,capgrpAmmoinfo )
    42 		AddCaption( string.format(loc("Achievement gotten: %s"), loc("Rope Master") ),0xffba00ff,capgrpAmmoinfo )
    43 		PlaySound( sndHomerun )
    43 		PlaySound( sndHomerun )
    44 	end
    44 	end
    45 	Objective = true
    45 	Objective = true
    46 end }
    46 end }
    47 
    47