share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
branchspacecampaign
changeset 9574 da3d39667881
parent 9463 653af9cec589
child 9576 8d8bad7d78de
equal deleted inserted replaced
9572:278cff2a965f 9574:da3d39667881
     6 HedgewarsScriptLoad("/Scripts/Locale.lua")
     6 HedgewarsScriptLoad("/Scripts/Locale.lua")
     7 HedgewarsScriptLoad("/Scripts/Animate.lua")
     7 HedgewarsScriptLoad("/Scripts/Animate.lua")
     8 
     8 
     9 ----------------- VARIABLES --------------------
     9 ----------------- VARIABLES --------------------
    10 -- globals
    10 -- globals
    11 local campaignName = loc("A Space Adventure")
    11 local missionName = loc("Hard flying")
    12 local missionName = loc("Ice planet, A Saucer Race!")
       
    13 local challengeStarted = false
    12 local challengeStarted = false
    14 local currentWaypoint = 1
    13 local currentWaypoint = 1
    15 local radius = 75
    14 local radius = 75
    16 local totalTime = 15000
    15 local totalTime = 15000
    17 local totalSaucers = 3
    16 local totalSaucers = 3
    27 local ally = {}
    26 local ally = {}
    28 -- teams
    27 -- teams
    29 local teamA = {}
    28 local teamA = {}
    30 local teamB = {}
    29 local teamB = {}
    31 -- hedgehogs values
    30 -- hedgehogs values
    32 hero.name = "Hog Solo"
    31 hero.name = loc("Hog Solo")
    33 hero.x = 750
    32 hero.x = 750
    34 hero.y = 130
    33 hero.y = 130
    35 hero.dead = false
    34 hero.dead = false
    36 ally.name = "Paul McHoggy"
    35 ally.name = loc("Paul McHoggy")
    37 ally.x = 860
    36 ally.x = 860
    38 ally.y = 130
    37 ally.y = 130
    39 teamA.name = loc("Hog Solo")
    38 teamA.name = loc("Hog Solo")
    40 teamA.color = tonumber("38D61C",16) -- green
    39 teamA.color = tonumber("38D61C",16) -- green
    41 teamB.name = loc("Allies")
    40 teamB.name = loc("Allies")
   240 	SendStat('siGameResult', loc("Oh man! Learn how to fly!")) --1
   239 	SendStat('siGameResult', loc("Oh man! Learn how to fly!")) --1
   241 	SendStat('siCustomAchievement', loc("To win the game you have to pass into the rings in time")) --11
   240 	SendStat('siCustomAchievement', loc("To win the game you have to pass into the rings in time")) --11
   242 	SendStat('siCustomAchievement', loc("You'll get extra time in case you need it when you pass a ring")) --11
   241 	SendStat('siCustomAchievement', loc("You'll get extra time in case you need it when you pass a ring")) --11
   243 	SendStat('siCustomAchievement', loc("Every 2 rings you'll get extra flying saucers")) --11
   242 	SendStat('siCustomAchievement', loc("Every 2 rings you'll get extra flying saucers")) --11
   244 	SendStat('siCustomAchievement', loc("Use space button twice to change flying saucer while being on air")) --11
   243 	SendStat('siCustomAchievement', loc("Use space button twice to change flying saucer while being on air")) --11
   245 	SendStat('siCustomAchievement', loc("Pause the game to have a look where is the next ring")) --11
       
   246 	SendStat('siPlayerKills','0',teamA.name)
   244 	SendStat('siPlayerKills','0',teamA.name)
   247 	EndGame()
   245 	EndGame()
   248 end
   246 end