Files
SoaFE/DATA/SCRIPTS/AI/GENERATEMAGICSPACEDEFENSEEASY.LUA
2026-02-28 14:00:45 -06:00

75 lines
2.8 KiB
Lua

-- $Id: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/GenerateMagicSpaceDefenseEasy.lua#1 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (C) Petroglyph Games, Inc.
--
--
-- ***** ** * *
-- * ** * * *
-- * * * * *
-- * * * * * * * *
-- * * *** ****** * ** **** *** * * * ***** * ***
-- * ** * * * ** * ** ** * * * * ** ** ** *
-- *** ***** * * * * * * * * ** * * * *
-- * * * * * * * * * * * * * * *
-- * * * * * * * * * * ** * * * *
-- * ** * * ** * ** * * ** * * * *
-- ** **** ** * **** ***** * ** *** * *
-- * * *
-- * * *
-- * * *
-- * * * *
-- **** * *
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
-- C O N F I D E N T I A L S O U R C E C O D E -- D O N O T D I S T R I B U T E
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- $File: //depot/Projects/StarWars_Steam/FOC/Run/Data/Scripts/AI/GenerateMagicSpaceDefenseEasy.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Brian_Hayes $
--
-- $Change: 637819 $
--
-- $DateTime: 2017/03/22 10:16:16 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
function Definitions()
Category = "Generate_Magic_Space_Defense_Easy"
IgnoreTarget = true
TaskForce = {
{
"ReserveForce"
,"DenyHeroAttach"
,"Fighter | Bomber = 4"
,"Corvette | Frigate = 2"
}
}
AllowFreeStoreUnits = false
MagicPlan = true
MagicPlanStealing = false
end
function ReserveForce_Thread()
ReserveForce.Set_As_Goal_System_Removable(false)
BlockOnCommand(ReserveForce.Produce_Force(Target))
ReserveForce.Set_Plan_Result(true)
--Sleep forever on easy so that we can't repeat the spawn
wait_start_time = GetCurrentTime()
wait_duration = Determine_Magic_Wait_Duration()
while (GetCurrentTime() - wait_start_time < wait_duration) do
Sleep(1)
end
ScriptExit()
end