share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua
changeset 13574 9c83afd65e8c
parent 12933 e65aa3c3d4e6
child 13583 141cdfe0f3ca
equal deleted inserted replaced
13573:e896ff1b1d96 13574:9c83afd65e8c
    11 
    11 
    12 ----------------- VARIABLES --------------------
    12 ----------------- VARIABLES --------------------
    13 -- globals
    13 -- globals
    14 local missionName = loc("The big bang")
    14 local missionName = loc("The big bang")
    15 local challengeObjectives = loc("Find a way to detonate all the explosives and stay alive!").."|"..
    15 local challengeObjectives = loc("Find a way to detonate all the explosives and stay alive!").."|"..
    16 							loc("Red areas are indestructible.").."|"..
    16 							loc("Areas with a security outline are indestructible.").."|"..
    17 							loc("Green areas are portal-proof.").."|"..
    17 							loc("Areas with a green dashed outline are portal-proof.").."|"..
    18 							loc("Mines time: 0 seconds")
    18 							loc("Mines time: 0 seconds")
    19 
    19 
    20 local dialog01 = {}
    20 local dialog01 = {}
    21 local explosives = {}
    21 local explosives = {}
    22 local currentHealth = 1
    22 local currentHealth = 1
    61 end
    61 end
    62 
    62 
    63 function onGameStart()
    63 function onGameStart()
    64 	AnimWait(hero.gear, 3000)
    64 	AnimWait(hero.gear, 3000)
    65 	FollowGear(hero.gear)
    65 	FollowGear(hero.gear)
    66 	ShowMission(missionName, loc("Challenge objectives"), challengeObjectives, -amSkip, 0)
    66 	ShowMission(missionName, loc("Challenge objectives"), challengeObjectives, -amSkip, 7500)
    67 
    67 
    68 	-- explosives
    68 	-- explosives
    69 	x = 400
    69 	x = 400
    70 	while x < 815 do
    70 	while x < 815 do
    71 		local gear = AddGear(x, 500, gtExplosives, 0, 0, 0, 0)
    71 		local gear = AddGear(x, 500, gtExplosives, 0, 0, 0, 0)
   151 -------------- ACTIONS ------------------
   151 -------------- ACTIONS ------------------
   152 
   152 
   153 function heroDeath(gear)
   153 function heroDeath(gear)
   154 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   154 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   155 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
   155 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
   156 	SendStat(siCustomAchievement, loc("Red areas are indestructible."))
   156 	SendStat(siCustomAchievement, loc("Areas surrounded by a security border are indestructible."))
   157 	SendStat(siCustomAchievement, loc("Green areas are portal-proof and repel portals."))
   157 	SendStat(siCustomAchievement, loc("Areas surrounded by a green dashed outline are portal-proof and repel portals."))
   158 	sendSimpleTeamRankings({teamA.name})
   158 	sendSimpleTeamRankings({teamA.name})
   159 	EndGame()
   159 	EndGame()
   160 end
   160 end
   161 
   161 
   162 function heroBoomReaction(gear)
   162 function heroBoomReaction(gear)