share/hedgewars/Data/Maps/TrophyRace/map.lua
changeset 12077 ce3860c82c8b
parent 11201 9301550d2566
child 12079 8f222872d432
equal deleted inserted replaced
12076:543bc82e1e28 12077:ce3860c82c8b
    55     SuddenDeathTurns = 99999 -- "disable" sudden death
    55     SuddenDeathTurns = 99999 -- "disable" sudden death
    56     Theme = 'Olympics'
    56     Theme = 'Olympics'
    57 end
    57 end
    58 
    58 
    59 function onGameStart()
    59 function onGameStart()
    60     ShowMission(loc("TrophyRace"), "", loc("Use your rope to get from start to finish as fast as you can!"), -amRope, 0)
    60     ShowMission(loc("TrophyRace"), loc("Race"), loc("Use your rope to get from start to finish as fast as you can!"), -amRope, 0)
    61     started = true
    61     started = true
    62     p=1820
    62     p=1820
    63     for i = 0, numhhs - 1 do
    63     for i = 0, numhhs - 1 do
    64     p = p + 50    
    64     p = p + 50    
    65     SetGearPosition(hhs[i], p, 0)
    65     SetGearPosition(hhs[i], p, 0)
   172                     tt = "--"
   172                     tt = "--"
   173                 end
   173                 end
   174                 hscore = hscore .. "|" .. string.format(loc("Team %d: "), i+1) .. tt
   174                 hscore = hscore .. "|" .. string.format(loc("Team %d: "), i+1) .. tt
   175             end
   175             end
   176             
   176             
   177             ShowMission(loc("TrophyRace"), "", loc("You've reached the goal!| |Time: ") .. (ttime / 1000) .. " s" .. hscore, 0, 0)
   177             ShowMission(loc("TrophyRace"), loc("Race"), loc("You've reached the goal!| |Time: ") .. (ttime / 1000) .. " s" .. hscore, 0, 0)
   178             TurnTimeLeft = 0
   178             TurnTimeLeft = 0
   179         end
   179         end
   180     end
   180     end
   181 end
   181 end
   182 
   182