share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
branchspacecampaign
changeset 9578 16139270448f
parent 9574 da3d39667881
child 9582 bf314b2258b3
equal deleted inserted replaced
9576:8d8bad7d78de 9578:16139270448f
    15 -- check points
    15 -- check points
    16 -- add a dialog at the end and second event if all minions are dead
    16 -- add a dialog at the end and second event if all minions are dead
    17 
    17 
    18 HedgewarsScriptLoad("/Scripts/Locale.lua")
    18 HedgewarsScriptLoad("/Scripts/Locale.lua")
    19 HedgewarsScriptLoad("/Scripts/Animate.lua")
    19 HedgewarsScriptLoad("/Scripts/Animate.lua")
       
    20 HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
    20 
    21 
    21 ----------------- VARIABLES --------------------
    22 ----------------- VARIABLES --------------------
    22 -- globals
    23 -- globals
    23 local campaignName = loc("A Space Adventure")
    24 local campaignName = loc("A Space Adventure")
    24 local missionName = loc("The first stop")
    25 local missionName = loc("The first stop")
   362 	end
   363 	end
   363 	ParseCommand("teamgone " .. teamB.name)
   364 	ParseCommand("teamgone " .. teamB.name)
   364 	AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000)
   365 	AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000)
   365 	AnimWait(hero.gear,5000)	
   366 	AnimWait(hero.gear,5000)	
   366 	
   367 	
       
   368 	saveCompletedStatus(1)
   367 	SendStat('siGameResult', loc("Hog Solo win, conrgatulations!")) --1
   369 	SendStat('siGameResult', loc("Hog Solo win, conrgatulations!")) --1
   368 	SendStat('siCustomAchievement', loc("Eliminated the professor Hogevil")) --11
   370 	SendStat('siCustomAchievement', loc("Eliminated the professor Hogevil")) --11
   369 	SendStat('siCustomAchievement', loc("Drove the minions away")) --11
   371 	SendStat('siCustomAchievement', loc("Drove the minions away")) --11
   370 	SendStat('siPlayerKills','1',teamD.name)
   372 	SendStat('siPlayerKills','1',teamD.name)
   371 	SendStat('siPlayerKills','0',teamC.name)
   373 	SendStat('siPlayerKills','0',teamC.name)
   378 	AnimSay(professor.gear, loc("I may lost that battle, but I haven't lost the war yet!"), SAY_SHOUT, 6000)
   380 	AnimSay(professor.gear, loc("I may lost that battle, but I haven't lost the war yet!"), SAY_SHOUT, 6000)
   379 	ParseCommand("teamgone " .. teamC.name)
   381 	ParseCommand("teamgone " .. teamC.name)
   380 	AnimCaption(hero.gear, loc("Congrats! You won!"), 6000)
   382 	AnimCaption(hero.gear, loc("Congrats! You won!"), 6000)
   381 	AnimWait(hero.gear,5000)	
   383 	AnimWait(hero.gear,5000)	
   382 	
   384 	
       
   385 	saveCompletedStatus(1)
   383 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   386 	SendStat('siGameResult', loc("Congratulations, you won!")) --1
   384 	SendStat('siCustomAchievement', loc("Eliminated the evil minions")) --11
   387 	SendStat('siCustomAchievement', loc("Eliminated the evil minions")) --11
   385 	SendStat('siCustomAchievement', loc("Drove the professor away")) --11
   388 	SendStat('siCustomAchievement', loc("Drove the professor away")) --11
   386 	SendStat('siPlayerKills','1',teamD.name)
   389 	SendStat('siPlayerKills','1',teamD.name)
   387 	SendStat('siPlayerKills','0',teamC.name)
   390 	SendStat('siPlayerKills','0',teamC.name)