adds punctuation to all mission objectives
This commit is contained in:
@@ -43,7 +43,7 @@ WorldLoaded = function()
|
|||||||
dinosaur = Player.GetPlayer("Dinosaur")
|
dinosaur = Player.GetPlayer("Dinosaur")
|
||||||
civilian = Player.GetPlayer("Civilian")
|
civilian = Player.GetPlayer("Civilian")
|
||||||
|
|
||||||
InvestigateObj = nod.AddPrimaryObjective("Investigate the nearby village for reports of \nstrange activity")
|
InvestigateObj = nod.AddPrimaryObjective("Investigate the nearby village for reports of \nstrange activity.")
|
||||||
|
|
||||||
Trigger.OnObjectiveAdded(nod, function(p, id)
|
Trigger.OnObjectiveAdded(nod, function(p, id)
|
||||||
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
|
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
|
||||||
|
|||||||
@@ -87,8 +87,8 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(player, "Lose")
|
Media.PlaySpeechNotification(player, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
secureAreaObjective = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
secureAreaObjective = player.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
beachheadObjective = player.AddSecondaryObjective("Establish a beachhead")
|
beachheadObjective = player.AddSecondaryObjective("Establish a beachhead.")
|
||||||
|
|
||||||
ReinforceWithLandingCraft(MCVReinforcements, lstStart.Location + CVec.New(2, 0), lstEnd.Location + CVec.New(2, 0), mcvTarget.Location)
|
ReinforceWithLandingCraft(MCVReinforcements, lstStart.Location + CVec.New(2, 0), lstEnd.Location + CVec.New(2, 0), mcvTarget.Location)
|
||||||
Reinforce(InfantryReinforcements)
|
Reinforce(InfantryReinforcements)
|
||||||
|
|||||||
@@ -78,9 +78,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(player, "Lose")
|
Media.PlaySpeechNotification(player, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
|
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops.")
|
||||||
gdiObjective1 = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiObjective1 = player.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
gdiObjective2 = player.AddSecondaryObjective("Capture the Tiberium Refinery")
|
gdiObjective2 = player.AddSecondaryObjective("Capture the Tiberium Refinery.")
|
||||||
|
|
||||||
Trigger.OnCapture(NodRefinery, function() player.MarkCompletedObjective(gdiObjective2) end)
|
Trigger.OnCapture(NodRefinery, function() player.MarkCompletedObjective(gdiObjective2) end)
|
||||||
Trigger.OnKilled(NodRefinery, function() player.MarkFailedObjective(gdiObjective2) end)
|
Trigger.OnKilled(NodRefinery, function() player.MarkFailedObjective(gdiObjective2) end)
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ WorldLoaded = function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
|
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
|
||||||
gdiMainObjective = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiMainObjective = player.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
gdiAirSupportObjective = player.AddSecondaryObjective("Destroy the SAM sites to receive air support")
|
gdiAirSupportObjective = player.AddSecondaryObjective("Destroy the SAM sites to receive air support.")
|
||||||
|
|
||||||
Trigger.OnPlayerLost(player, function()
|
Trigger.OnPlayerLost(player, function()
|
||||||
Media.PlaySpeechNotification(player, "Lose")
|
Media.PlaySpeechNotification(player, "Lose")
|
||||||
|
|||||||
@@ -87,9 +87,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(player, "Lose")
|
Media.PlaySpeechNotification(player, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops")
|
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops.")
|
||||||
gdiObjective1 = player.AddPrimaryObjective("Defend the town of Bialystok")
|
gdiObjective1 = player.AddPrimaryObjective("Defend the town of Bialystok.")
|
||||||
gdiObjective2 = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiObjective2 = player.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
|
|
||||||
townAttackTrigger = false
|
townAttackTrigger = false
|
||||||
Trigger.OnExitedFootprint(TownAttackTrigger, function(a, id)
|
Trigger.OnExitedFootprint(TownAttackTrigger, function(a, id)
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ DiscoverGdiBase = function(actor, discoverer)
|
|||||||
|
|
||||||
baseDiscovered = true
|
baseDiscovered = true
|
||||||
|
|
||||||
gdiObjective3 = gdi.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiObjective3 = gdi.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
gdi.MarkCompletedObjective(gdiObjective1)
|
gdi.MarkCompletedObjective(gdiObjective1)
|
||||||
|
|
||||||
Attack()
|
Attack()
|
||||||
@@ -205,9 +205,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(player, "Win")
|
Media.PlaySpeechNotification(player, "Win")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops")
|
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops.")
|
||||||
gdiObjective1 = gdi.AddPrimaryObjective("Find the GDI base")
|
gdiObjective1 = gdi.AddPrimaryObjective("Find the GDI base.")
|
||||||
gdiObjective2 = gdi.AddSecondaryObjective("Destroy all SAM sites to receive air support")
|
gdiObjective2 = gdi.AddSecondaryObjective("Destroy all SAM sites to receive air support.")
|
||||||
|
|
||||||
SetupWorld()
|
SetupWorld()
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ DiscoverGdiBase = function(actor, discoverer)
|
|||||||
|
|
||||||
baseDiscovered = true
|
baseDiscovered = true
|
||||||
|
|
||||||
gdiObjective3 = gdi.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiObjective3 = gdi.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
gdi.MarkCompletedObjective(gdiObjective1)
|
gdi.MarkCompletedObjective(gdiObjective1)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -150,9 +150,9 @@ WorldLoaded = function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
gdiObjective1 = gdi.AddPrimaryObjective("Find the GDI base")
|
gdiObjective1 = gdi.AddPrimaryObjective("Find the GDI base.")
|
||||||
gdiObjective2 = gdi.AddSecondaryObjective("Destroy all SAM sites to receive air support")
|
gdiObjective2 = gdi.AddSecondaryObjective("Destroy all SAM sites to receive air support.")
|
||||||
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops")
|
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops.")
|
||||||
|
|
||||||
Trigger.AfterDelay(Atk1Delay, Atk1TriggerFunction)
|
Trigger.AfterDelay(Atk1Delay, Atk1TriggerFunction)
|
||||||
Trigger.AfterDelay(Atk2Delay, Atk2TriggerFunction)
|
Trigger.AfterDelay(Atk2Delay, Atk2TriggerFunction)
|
||||||
|
|||||||
@@ -54,10 +54,10 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(nod, "Lose")
|
Media.PlaySpeechNotification(nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
NodObjective1 = nod.AddPrimaryObjective("Kill Nikoomba")
|
NodObjective1 = nod.AddPrimaryObjective("Kill Nikoomba.")
|
||||||
NodObjective2 = nod.AddPrimaryObjective("Destroy the village")
|
NodObjective2 = nod.AddPrimaryObjective("Destroy the village.")
|
||||||
NodObjective3 = nod.AddSecondaryObjective("Destroy all GDI troops in the area")
|
NodObjective3 = nod.AddSecondaryObjective("Destroy all GDI troops in the area.")
|
||||||
GDIObjective1 = gdi.AddPrimaryObjective("Eliminate all Nod forces")
|
GDIObjective1 = gdi.AddPrimaryObjective("Eliminate all Nod forces.")
|
||||||
|
|
||||||
Trigger.OnKilled(Nikoomba, function()
|
Trigger.OnKilled(Nikoomba, function()
|
||||||
nod.MarkCompletedObjective(NodObjective1)
|
nod.MarkCompletedObjective(NodObjective1)
|
||||||
|
|||||||
@@ -182,9 +182,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Build a base")
|
NodObjective1 = Nod.AddPrimaryObjective("Build a base.")
|
||||||
NodObjective2 = Nod.AddPrimaryObjective("Destroy the GDI base")
|
NodObjective2 = Nod.AddPrimaryObjective("Destroy the GDI base.")
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies!")
|
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies.")
|
||||||
|
|
||||||
OnAnyDamaged(Atk3ActorTriggerActivator, Atk3TriggerFunction)
|
OnAnyDamaged(Atk3ActorTriggerActivator, Atk3TriggerFunction)
|
||||||
Trigger.OnAllRemovedFromWorld(DfndActorTriggerActivator, DfndTriggerFunction)
|
Trigger.OnAllRemovedFromWorld(DfndActorTriggerActivator, DfndTriggerFunction)
|
||||||
|
|||||||
@@ -120,9 +120,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies!")
|
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies.")
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Build a base!")
|
NodObjective1 = Nod.AddPrimaryObjective("Build a base.")
|
||||||
NodObjective2 = Nod.AddPrimaryObjective("Destroy all GDI units!")
|
NodObjective2 = Nod.AddPrimaryObjective("Destroy all GDI units.")
|
||||||
|
|
||||||
OnAnyDamaged(Grd2ActorTriggerActivator, Grd2TriggerFunction)
|
OnAnyDamaged(Grd2ActorTriggerActivator, Grd2TriggerFunction)
|
||||||
Trigger.AfterDelay(Atk8TriggerFunctionTime, Atk8TriggerFunction)
|
Trigger.AfterDelay(Atk8TriggerFunctionTime, Atk8TriggerFunction)
|
||||||
|
|||||||
@@ -37,9 +37,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(player, "Lose")
|
Media.PlaySpeechNotification(player, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
nodObjective1 = player.AddPrimaryObjective("Capture the prison.")
|
||||||
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces.")
|
||||||
|
|
||||||
Trigger.OnCapture(TechCenter, function()
|
Trigger.OnCapture(TechCenter, function()
|
||||||
Trigger.AfterDelay(DateTime.Seconds(2), function()
|
Trigger.AfterDelay(DateTime.Seconds(2), function()
|
||||||
|
|||||||
@@ -53,9 +53,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(player, "Lose")
|
Media.PlaySpeechNotification(player, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||||
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
nodObjective1 = player.AddPrimaryObjective("Capture the prison.")
|
||||||
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces.")
|
||||||
|
|
||||||
Trigger.OnKilled(TechCenter, function() player.MarkFailedObjective(nodObjective1) end)
|
Trigger.OnKilled(TechCenter, function() player.MarkFailedObjective(nodObjective1) end)
|
||||||
Trigger.OnCapture(TechCenter, function()
|
Trigger.OnCapture(TechCenter, function()
|
||||||
|
|||||||
@@ -137,8 +137,8 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies!")
|
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies.")
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Destroy the village and kill all civilians!")
|
NodObjective1 = Nod.AddPrimaryObjective("Destroy the village and kill all civilians.")
|
||||||
NodObjective2 = Nod.AddSecondaryObjective("Kill all GDI units in the area.")
|
NodObjective2 = Nod.AddSecondaryObjective("Kill all GDI units in the area.")
|
||||||
|
|
||||||
InsertNodUnits()
|
InsertNodUnits()
|
||||||
|
|||||||
@@ -188,9 +188,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Build 3 SAMs")
|
NodObjective1 = Nod.AddPrimaryObjective("Build 3 SAMs.")
|
||||||
NodObjective2 = Nod.AddPrimaryObjective("Destroy the GDI base")
|
NodObjective2 = Nod.AddPrimaryObjective("Destroy the GDI base.")
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies!")
|
GDIObjective = GDI.AddPrimaryObjective("Kill all enemies.")
|
||||||
|
|
||||||
Trigger.AfterDelay(AirstrikeDelay, SendGDIAirstrike)
|
Trigger.AfterDelay(AirstrikeDelay, SendGDIAirstrike)
|
||||||
Trigger.AfterDelay(YyyyTriggerFunctionTime, YyyyTriggerFunction)
|
Trigger.AfterDelay(YyyyTriggerFunctionTime, YyyyTriggerFunction)
|
||||||
|
|||||||
@@ -141,10 +141,10 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI nuclear detonator")
|
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI nuclear detonator.")
|
||||||
NodObjective2 = Nod.AddSecondaryObjective("Destroy the houses of the GDI supporter \nin the village")
|
NodObjective2 = Nod.AddSecondaryObjective("Destroy the houses of the GDI supporter \nin the village.")
|
||||||
|
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator")
|
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator.")
|
||||||
|
|
||||||
InsertNodUnits()
|
InsertNodUnits()
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ WorldLoaded = function()
|
|||||||
|
|
||||||
Trigger.OnEnteredFootprint(Win1CellTriggerActivator, function(a, id)
|
Trigger.OnEnteredFootprint(Win1CellTriggerActivator, function(a, id)
|
||||||
if a.Owner == Nod then
|
if a.Owner == Nod then
|
||||||
NodObjective3 = Nod.AddPrimaryObjective("Move to the evacuation point")
|
NodObjective3 = Nod.AddPrimaryObjective("Move to the evacuation point.")
|
||||||
Nod.MarkCompletedObjective(NodObjective1)
|
Nod.MarkCompletedObjective(NodObjective1)
|
||||||
Trigger.RemoveFootprintTrigger(id)
|
Trigger.RemoveFootprintTrigger(id)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ HuntTriggerFunction = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
Win1TriggerFunction = function()
|
Win1TriggerFunction = function()
|
||||||
NodObjective2 = Nod.AddPrimaryObjective("Move to the evacuation point")
|
NodObjective2 = Nod.AddPrimaryObjective("Move to the evacuation point.")
|
||||||
Nod.MarkCompletedObjective(NodObjective1)
|
Nod.MarkCompletedObjective(NodObjective1)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -119,8 +119,8 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI nuclear detonator")
|
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI nuclear detonator.")
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator")
|
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator.")
|
||||||
|
|
||||||
InsertNodUnits()
|
InsertNodUnits()
|
||||||
|
|
||||||
|
|||||||
@@ -105,9 +105,9 @@ WorldLoaded = function()
|
|||||||
Media.PlaySpeechNotification(Nod, "Lose")
|
Media.PlaySpeechNotification(Nod, "Lose")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI Nuclear detonator")
|
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI nuclear detonator.")
|
||||||
NodObjective3 = Nod.AddSecondaryObjective("Infiltrate the barracks, weapon factory and \nthe construction yard")
|
NodObjective3 = Nod.AddSecondaryObjective("Infiltrate the barracks, weapon factory and \nthe construction yard.")
|
||||||
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator")
|
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator.")
|
||||||
|
|
||||||
InsertNodUnits()
|
InsertNodUnits()
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ WorldLoaded = function()
|
|||||||
|
|
||||||
Trigger.OnEnteredFootprint(Win1CellTriggerActivator, function(a, id)
|
Trigger.OnEnteredFootprint(Win1CellTriggerActivator, function(a, id)
|
||||||
if a.Owner == Nod then
|
if a.Owner == Nod then
|
||||||
NodObjective2 = Nod.AddPrimaryObjective("Move to the evacuation point")
|
NodObjective2 = Nod.AddPrimaryObjective("Move to the evacuation point.")
|
||||||
Nod.MarkCompletedObjective(NodObjective1)
|
Nod.MarkCompletedObjective(NodObjective1)
|
||||||
Trigger.RemoveFootprintTrigger(id)
|
Trigger.RemoveFootprintTrigger(id)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user