Commit 601a6bc3 authored by AnakinSklavenwalker's avatar AnakinSklavenwalker

added 1.2 content (copy of 1.1.5 actually)

parent 53f2f6bd
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildBaseComponentAdvancedVehicleFactory.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_Expansion/Run/Data/Scripts/AI/BuildBaseComponentAdvancedVehicleFactory.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Andre_Arsenault $
--
-- $Change: 37816 $
--
-- $DateTime: 2006/02/15 15:33:33 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
function Definitions()
DebugMessage("%s -- In Definitions", tostring(Script))
Category = "Build_Base_Component_Advanced_Vehicle_Factory"
IgnoreTarget = true
TaskForce = {
{
"BaseForce",
"Ground_Arc_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
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildBaseComponentOfficerAcademy.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_Expansion/Run/Data/Scripts/AI/BuildBaseComponentOfficerAcademy.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Andre_Arsenault $
--
-- $Change: 37816 $
--
-- $DateTime: 2006/02/15 15:33:33 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
function Definitions()
DebugMessage("%s -- In Definitions", tostring(Script))
Category = "Build_Base_Component_Officer_Academy"
IgnoreTarget = true
TaskForce = {
{
"BaseForce",
"Republic_Ground_Outpost | Cis_Ground_Outpost = 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
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildBaseComponentResearchFacility.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_Expansion/Run/Data/Scripts/AI/BuildBaseComponentResearchFacility.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Andre_Arsenault $
--
-- $Change: 37816 $
--
-- $DateTime: 2006/02/15 15:33:33 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
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 | E_Ground_Research_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
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildEconomicStructurePlan.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_Expansion/Run/Data/Scripts/AI/BuildEconomicStructurePlan.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Andre_Arsenault $
--
-- $Change: 37816 $
--
-- $DateTime: 2006/02/15 15:33:33 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
function Definitions()
DebugMessage("%s -- In Definitions", tostring(Script))
Category = "Build_Economic_Structure"
IgnoreTarget = true
TaskForce = {
{
"StructureForce",
"Rebel_Ground_Mining_Facility | Empire_Ground_Mining_Facility | Republic_Ground_Farm | Confederacy_Ground_Farm | Republic_Ground_Refining_Facility | Cis_Ground_Refining_Facility | Gladiator_Arena = 1"
}
}
DebugMessage("%s -- Done Definitions", tostring(Script))
end
function StructureForce_Thread()
DebugMessage("%s -- In StructureForce_Thread.", tostring(Script))
Sleep(1)
-- StructureForce.Set_As_Goal_System_Removable(false)
AssembleForce(StructureForce)
StructureForce.Set_Plan_Result(true)
DebugMessage("%s -- StructureForce done!", tostring(Script));
ScriptExit()
end
function StructureForce_Production_Failed(tf, failed_object_type)
DebugMessage("%s -- Abandonning plan owing to production failure.", tostring(Script))
ScriptExit()
end
\ No newline at end of file
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildGroundDefensiveStructurePlan.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_Expansion/Run/Data/Scripts/AI/BuildGroundDefensiveStructurePlan.lua $
--
-- Original Author: James Yarrow
--
-- $Author: Andre_Arsenault $
--
-- $Change: 37816 $
--
-- $DateTime: 2006/02/15 15:33:33 $
--
-- $Revision: #1 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
function Definitions()
DebugMessage("%s -- In Definitions", tostring(Script))
-- Category = "Build_Ground_Defensive_Structure"
Category = "AlwaysOff"
IgnoreTarget = true
TaskForce = {
{
"StructureForce",
"E_Ground_Base_Shield | R_Ground_Base_Shield | E_Galactic_Turbolaser_Tower_Defenses | R_Galactic_Turbolaser_Tower_Defenses = 1"
}
}
DebugMessage("%s -- Done Definitions", tostring(Script))
end
function StructureForce_Thread()
DebugMessage("%s -- In StructureForce_Thread.", tostring(Script))
Sleep(1)
StructureForce.Set_As_Goal_System_Removable(false)
AssembleForce(StructureForce)
StructureForce.Set_Plan_Result(true)
DebugMessage("%s -- StructureForce done!", tostring(Script));
ScriptExit()
end
function StructureForce_Production_Failed(tf, failed_object_type)
DebugMessage("%s -- Abandonning plan owing to production failure.", tostring(Script))
ScriptExit()
end
\ No newline at end of file
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildGroundForcesPlan.lua#4 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (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_Expansion/Run/Data/Scripts/AI/BuildGroundForcesPlan.lua $
--
-- Original Author: James Yarrow
--
-- $Author: James_Yarrow $
--
-- $Change: 56727 $
--
-- $DateTime: 2006/10/24 14:14:26 $
--
-- $Revision: #4 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
-- Tell the script pooling system to pre-cache this number of scripts.
ScriptPoolCount = 7
function Definitions()
Category = "Build_Ground_Forces"
IgnoreTarget = true
TaskForce = {
{
"ReserveForce"
,"Infantry = 0,8"
,"Vehicle = 0,8"
,"Air = 0,8"
,"Darkside_Adept_Team = 0,2"
,"Republic_Arc_Trooper_Squad = 0,2"
,"Field_Com_Cis_Team = 0,1"
,"Field_Com_Republic_P1_Team = 0,1"
,"Field_Com_Republic_P2_Team = 0,1"
}
}
RequiredCategories = { "Vehicle" }
AllowFreeStoreUnits = false
end
function ReserveForce_Thread()
ReserveForce.Set_As_Goal_System_Removable(false)
BlockOnCommand(ReserveForce.Produce_Force())
ReserveForce.Set_Plan_Result(true)
end
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/BuildGroundForcesPlan.lua#4 $
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
-- (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_Expansion/Run/Data/Scripts/AI/BuildGroundForcesPlan.lua $
--
-- Original Author: James Yarrow
--
-- $Author: James_Yarrow $
--
-- $Change: 56727 $
--
-- $DateTime: 2006/10/24 14:14:26 $
--
-- $Revision: #4 $
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
require("pgevents")
-- Tell the script pooling system to pre-cache this number of scripts.
ScriptPoolCount = 7
function Definitions()
Category = "Build_Ground_Forces"
IgnoreTarget = true
TaskForce = {
{
"ReserveForce"
,"Infantry = 0,5"
,"Vehicle = 0,5"
,"Air = 0,5"
,"F9TZ_Cloaking_Transport_Company = 0,1"
,"HAV_Juggernaut_Company = 0,1"
,"Gallofree_HTT_Company = 0,1"
,"Field_Com_Rebel_Team = 0,1"
,"Field_Com_Empire_Team = 0,1"
,"Night_Sister_Company = 0,1"
}
}
RequiredCategories = { "Vehicle" }
AllowFreeStoreUnits = false
end
function ReserveForce_Thread()