Add clarifying objective to Monster Tank Madness
This commit is contained in:
@@ -120,6 +120,10 @@ SendAlliedUnits = function()
|
|||||||
if unit.Type == "e6" then
|
if unit.Type == "e6" then
|
||||||
Engineer = unit
|
Engineer = unit
|
||||||
Trigger.OnKilled(unit, LandingPossible)
|
Trigger.OnKilled(unit, LandingPossible)
|
||||||
|
elseif unit.Type == "thf" then
|
||||||
|
Trigger.OnKilled(unit, function()
|
||||||
|
player.MarkFailedObjective(StealMoney)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
@@ -296,6 +300,7 @@ InitObjectives = function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
EliminateSuperTanks = player.AddPrimaryObjective("Eliminate these super tanks.")
|
EliminateSuperTanks = player.AddPrimaryObjective("Eliminate these super tanks.")
|
||||||
|
StealMoney = player.AddPrimaryObjective("Steal money from the nearby outpost with the Thief.")
|
||||||
CrossRiver = player.AddPrimaryObjective("Secure transport to the mainland.")
|
CrossRiver = player.AddPrimaryObjective("Secure transport to the mainland.")
|
||||||
FindOutpost = player.AddPrimaryObjective("Find our outpost and start repairs on it.")
|
FindOutpost = player.AddPrimaryObjective("Find our outpost and start repairs on it.")
|
||||||
RescueCivilians = player.AddSecondaryObjective("Evacuate all civilians from the hospital.")
|
RescueCivilians = player.AddSecondaryObjective("Evacuate all civilians from the hospital.")
|
||||||
@@ -376,6 +381,17 @@ InitTriggers = function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Trigger.OnInfiltrated(USSROutpostSilo, function()
|
||||||
|
MoneyStolen = true
|
||||||
|
player.MarkCompletedObjective(StealMoney)
|
||||||
|
end)
|
||||||
|
|
||||||
|
Trigger.OnKilledOrCaptured(USSROutpostSilo, function()
|
||||||
|
if not MoneyStolen then
|
||||||
|
player.MarkFailedObjective(StealMoney)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
beachReached = false
|
beachReached = false
|
||||||
Trigger.OnEnteredFootprint(BeachTrigger, function(a, id)
|
Trigger.OnEnteredFootprint(BeachTrigger, function(a, id)
|
||||||
if not beachReached and a.Owner == player then
|
if not beachReached and a.Owner == player then
|
||||||
|
|||||||
Reference in New Issue
Block a user