Need help in coding

0

Guys can you give me some advice on what to add to this sample codes so that the ai will only build it when the player has only one land experimental built.

Sample:
opai = FortClarke:AddOpAI('UEF_Fatboy_1',
{
Amount = 2,
KeepAlive = true,
PlatoonAIFunction = {SPAIFileName, 'PatrolThread'},
PlatoonData = {
PatrolChain = 'M4_UEF_LandAttack_Mid_Chain',
},
MaxAssist = 8,
Retry = true,
}
)

1
opai = FortClarke:AddOpAI('UEF_Fatboy_1',
    {
        Amount = 2,
        KeepAlive = true,
        PlatoonAIFunction = {SPAIFileName, 'PatrolThread'},
        PlatoonData = {
            PatrolChain = 'M4_UEF_LandAttack_Mid_Chain',
        },
        MaxAssist = 8,
        Retry = true,
        BuildCondition = {
            {'/lua/editor/otherarmyunitcountbuildconditions.lua', 'BrainsCompareNumCategory', {{'HumanPlayers'}, 1, categories.EXPERIMENTAL, '>='}},
        }
    }
)
0

Thank you very much sir. Well appreciated.