Initial commit: OpenRA game engine
Fork from OpenRA/OpenRA with one-click launch script (start-ra.cmd) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
43
mods/ra/maps/soviet-11b/soviet11b.lua
Normal file
43
mods/ra/maps/soviet-11b/soviet11b.lua
Normal file
@@ -0,0 +1,43 @@
|
||||
--[[
|
||||
Copyright (c) The OpenRA Developers and Contributors
|
||||
This file is part of OpenRA, which is free software. It is made
|
||||
available to you under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version. For more
|
||||
information, see COPYING.
|
||||
]]
|
||||
StartingUnits = { "mcv", "e4", "e4", "e2", "e2" }
|
||||
SovietTransportWay = { TransportEntry.Location, TransportStop.Location }
|
||||
|
||||
InitialSovietReinforcements = function()
|
||||
Trigger.AfterDelay(DateTime.Seconds(2), function()
|
||||
Media.PlaySpeechNotification(USSR, "ReinforcementsArrived")
|
||||
Reinforcements.ReinforceWithTransport(USSR, "lst", StartingUnits, SovietTransportWay)
|
||||
end)
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
Greece.Cash = 10000
|
||||
|
||||
if Greece.HasNoRequiredUnits() then
|
||||
USSR.MarkCompletedObjective(DestroyNavalBase)
|
||||
end
|
||||
|
||||
if USSR.HasNoRequiredUnits() and DateTime.GameTime > DateTime.Seconds(5) then
|
||||
Greece.MarkCompletedObjective(BeatSoviets)
|
||||
end
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
USSR = Player.GetPlayer("USSR")
|
||||
Greece = Player.GetPlayer("Greece")
|
||||
|
||||
InitObjectives(USSR)
|
||||
|
||||
DestroyNavalBase = AddPrimaryObjective(USSR, "destroy-allied-naval-base")
|
||||
BeatSoviets = AddPrimaryObjective(Greece, "")
|
||||
|
||||
Camera.Position = DefaultCameraPosition.CenterPosition
|
||||
InitialSovietReinforcements()
|
||||
Trigger.AfterDelay(DateTime.Seconds(5), ActivateAI)
|
||||
end
|
||||
Reference in New Issue
Block a user