--///////////////////////////////////////////////////////////////////////////////////////////////// -- (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/BuildBaseComponentResearchFacility.LUA -- -- Original Editor: Giovanni Galyana -- -- Final Edit By: Giovanni Galyana -- -- Date: 28 Septembter, 2012 -- -- Revisions: 0 -- --///////////////////////////////////////////////////////////////////////////////////////////////// require("pgevents") -- This plan handles both the first research facility, built under the MajorItem purchase template scheme -- and subsequent research facilities, built under Infrastructure, by other perceptions. function Definitions() DebugMessage("%s -- In Definitions", tostring(Script)) Category = "Build_Base_Component_Research_Facility | Build_Base_Component_Research_Facility_2" IgnoreTarget = true TaskForce = { { "BaseForce", "E_Ground_Research_Facility | H_Ground_Advanced_Technologies_Facility = 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