Initial commit
This commit is contained in:
67
DATA/SCRIPTS/AI/BUILDBASECOMPONENTCOMMARRAY.LUA
Normal file
67
DATA/SCRIPTS/AI/BUILDBASECOMPONENTCOMMARRAY.LUA
Normal file
@@ -0,0 +1,67 @@
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- (c) Galyana's Ultimate Empire at War Modifications
|
||||
--
|
||||
-- ****** *** *** ************ *** ***
|
||||
-- * * * * * * * *
|
||||
-- * * * * * * *
|
||||
-- * * * * * * *
|
||||
-- * * * * * **** * * *
|
||||
-- * * * ****** * * * *
|
||||
-- * **** * * * * * * * *** *
|
||||
-- * * * * * * * * * *
|
||||
-- * * * * * * * * * *
|
||||
-- * * * * * * * ** * * *
|
||||
-- ****** ****** ************ **** ** *******
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- 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: GUEaW/Data/Scripts/AI/BuildBaseComponentCommArray.LUA
|
||||
--
|
||||
-- Original Editor: Giovanni Galyana
|
||||
--
|
||||
-- Final Edit By: Giovanni Galyana
|
||||
--
|
||||
-- Date: 10 May, 2014
|
||||
--
|
||||
-- Revisions: 1
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
|
||||
|
||||
function Definitions()
|
||||
DebugMessage("%s -- In Definitions", tostring(Script))
|
||||
|
||||
Category = "Build_Base_Component_Comm_Array"
|
||||
IgnoreTarget = true
|
||||
TaskForce = {
|
||||
{
|
||||
"BaseForce",
|
||||
"E_Ground_Communications_Array | R_Ground_Communications_Array | H_Ground_Communications_Array = 1"
|
||||
}
|
||||
}
|
||||
|
||||
DebugMessage("%s -- Done Definitions", tostring(Script))
|
||||
end
|
||||
|
||||
function BaseForce_Thread()
|
||||
DebugMessage("%s -- In BaseForce_Thread.", tostring(Script))
|
||||
|
||||
Sleep(1)
|
||||
|
||||
-- BaseForce.Set_As_Goal_System_Removable(false)
|
||||
AssembleForce(BaseForce)
|
||||
|
||||
BaseForce.Set_Plan_Result(true)
|
||||
DebugMessage("%s -- BaseForce done!", tostring(Script));
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
function BaseForce_Production_Failed(tf, failed_object_type)
|
||||
DebugMessage("%s -- Abandonning plan owing to production failure.", tostring(Script))
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user