Initial commit
This commit is contained in:
59
DATA/SCRIPTS/AI/BUILDTURBOLASERS.LUA
Normal file
59
DATA/SCRIPTS/AI/BUILDTURBOLASERS.LUA
Normal file
@@ -0,0 +1,59 @@
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
-- (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/BuildTurbolasers.LUA
|
||||
--
|
||||
-- Original Editor: Giovanni Galyana
|
||||
--
|
||||
-- Final Edit By: Giovanni Galyana
|
||||
--
|
||||
-- Date: 28 Septembter, 2012
|
||||
--
|
||||
-- Revisions: 0
|
||||
--
|
||||
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
require("pgevents")
|
||||
|
||||
|
||||
function Definitions()
|
||||
Category = "Build_Turbolasers"
|
||||
IgnoreTarget = true
|
||||
TaskForce = {
|
||||
{
|
||||
"StructureForce",
|
||||
"E_Galactic_Turbolaser_Tower_Defenses | R_Galactic_Turbolaser_Tower_Defenses | H_Galactic_Turbolaser_Tower_Defenses = 1"
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
function StructureForce_Thread()
|
||||
|
||||
Sleep(1)
|
||||
|
||||
StructureForce.Set_As_Goal_System_Removable(false)
|
||||
AssembleForce(StructureForce)
|
||||
|
||||
StructureForce.Set_Plan_Result(true)
|
||||
ScriptExit()
|
||||
end
|
||||
|
||||
function StructureForce_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