share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua
branchspacecampaign
changeset 9574 da3d39667881
parent 9490 b93448b75fa4
child 9582 bf314b2258b3
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("Running for survival")
    12 local missionName = loc("Desert planet, Journey down below!")
       
    13 local startChallenge = false
    12 local startChallenge = false
    14 -- dialogs
    13 -- dialogs
    15 local dialog01 = {}
    14 local dialog01 = {}
    16 -- mission objectives
    15 -- mission objectives
    17 local goals = {
    16 local goals = {
    24 -- hogs
    23 -- hogs
    25 local hero = {}
    24 local hero = {}
    26 -- teams
    25 -- teams
    27 local teamA = {}
    26 local teamA = {}
    28 -- hedgehogs values
    27 -- hedgehogs values
    29 hero.name = "Hog Solo"
    28 hero.name = loc("Hog Solo")
    30 hero.x = 1600
    29 hero.x = 1600
    31 hero.y = 1950
    30 hero.y = 1950
    32 hero.dead = false
    31 hero.dead = false
    33 teamA.name = loc("Hog Solo")
    32 teamA.name = loc("Hog Solo")
    34 teamA.color = tonumber("38D61C",16) -- green
    33 teamA.color = tonumber("38D61C",16) -- green
   144 	SendStat('siPlayerKills','0',teamA.name)
   143 	SendStat('siPlayerKills','0',teamA.name)
   145 	EndGame()
   144 	EndGame()
   146 end
   145 end
   147 
   146 
   148 function heroSafe(gear)
   147 function heroSafe(gear)
   149 	SendStat('siGameResult', loc("Congratulations, you escaped!")) --1
   148 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   150 	SendStat('siCustomAchievement', loc("You have escaped successfully")) --11
   149 	SendStat('siCustomAchievement', loc("You have escaped successfully")) --11
   151 	SendStat('siCustomAchievement', loc("Your escape took you "..TotalRounds.." turns")) --11
   150 	SendStat('siCustomAchievement', loc("Your escape took you "..TotalRounds.." turns")) --11
   152 	SendStat('siPlayerKills','1',teamA.name)
   151 	SendStat('siPlayerKills','1',teamA.name)
   153 	EndGame()
   152 	EndGame()
   154 end
   153 end