Hello CSI,
How to: Creating custom unit scripts for Sorian AI:
http://forums.faforever.com/viewtopic.php?f=41&t=14688
It's also working with the normal AI in FAF
Forged Alliance Forever Forums
PlatoonTemplate {
Name = 'T1LandArtillery',
FactionSquads = {
UEF = {
{ 'uel0103', 1, 1, 'Attack', 'none' }
},
Aeon = {
{ 'ual0103', 1, 1, 'Attack', 'none' }
},
Cybran = {
{ 'url0103', 1, 1, 'Attack', 'none' }
},
Seraphim = {
{ 'xsl0103', 1, 1, 'Attack', 'none' }
},
}
}
BuilderGroup {
BuilderGroupName = 'T1LandFactoryBuilders',
BuildersType = 'FactoryBuilder',
# T1 Artillery, built in a ratio to tanks before tech 3
Builder {
BuilderName = 'T1 Mortar',
PlatoonTemplate = 'T1LandArtillery',
Priority = 830,
BuilderConditions = {
#{ UCBC, 'LocationFactoriesBuildingLess', { 'LocationType', 1, 'INDIRECTFIRE LAND MOBILE' } },
{ UCBC, 'HaveUnitRatio', { 0.25, categories.LAND * categories.INDIRECTFIRE * categories.MOBILE, '<=', categories.LAND * categories.DIRECTFIRE * categories.MOBILE}},
{ UCBC, 'FactoryLessAtLocation', { 'LocationType', 1, 'FACTORY LAND TECH3' }},
{ IBC, 'BrainNotLowPowerMode', {} },
{ EBC, 'GreaterThanEconEfficiencyOverTime', { 0.6, 1.05 }},
},
BuilderType = 'Land',
},
}
local IBC = '/lua/editor/InstantBuildConditions.lua'
BuilderGroup {
BuilderGroupName = 'T1ArtyFactoryBuilders',
BuildersType = 'FactoryBuilder',
Builder {
BuilderName = 'T1 Mortar',
PlatoonTemplate = 'T1LandArtillery',
Priority = 1200, -- changed for testing, original value was 830
BuilderConditions = {
{ IBC, 'BrainNotLowPowerMode', {} },
{ IBC, 'BrainNotLowMassMode', {} },
},
BuilderType = 'Land',
},
}
BaseBuilderTemplate {
[...]
Builders = {
[...]
'T1ArtyFactoryBuilders',
[...]
},
UnitList = {
T1GroundDefense = {
UEF = {'brnt1expd', 40}, -- Name: Mayor MK1 - (Experimental Gatling Defense System)
},
}
UnitList = {
T1GroundDefense = {
UEF = {'brnt1exart', 40}, -- Lumberjack (Experimental Artillery Installation)
},
}
Users browsing this forum: No registered users and 1 guest