// ISDFINSTL
// ISDF late Game

[Start]
scavClass = "ivscav"
consClass = "ivcons"

[IdleDispatcher]
ScavIdleSeconds = 25
UnitIdleSeconds = 120
MinAttackForce = 3 // min # of idle units before dispatch

[Match]
targetType1= "fvscout"
attackType1_1 = "ivscout"

targetType2= "fvscout"
attackType2_1 = "ivmisl"

targetType3 = "fvscout"
attackType3_1 = "ivtank"

targetType4 = "fvsent"
attackType4_1 = "ivmisl"

targetType5 = "fvsent"
attackType5_1 = "ivtank"

targetType6 = "fvsent"
attackType6_1 = "ivscout"
attackType6_2 = "ivscout"

targetType7 = "fvtank"
attackType7_1 = "ivtank"

targetType8 = "fvtank"
attackType8_1 = "ivmisl"
attackType8_2 = "ivmisl"

targetType9 = "fvtank"
attackType9_1 = "ivscout"
attackType9_2 = "ivscout"

targetType10 = "fvwalk"
attackType10_1 = "ivtank"
attackType10_2 = "ivtank"

targetType11 = "fvwalk"
attackType11_1 = "ivmisl"
attackType11_2 = "ivmisl"
attackType11_3 = "ivmisl"

targetType12 = "fvwalk"
attackType12_1 = "ivscout"
attackType12_2 = "ivscout"
attackType12_3 = "ivscout"

targetType13 = "fvatank"
attackType13_1 = "ivtank"
attackType13_2 = "ivtank"
attackType13_3 = "ivtank"

targetType14 = "fbspir"
attackType14_1 = "ivtank"
attackType14_2 = "ivtank"
attackType14_3 = "ivtank"

targetType15 = "fvturr"
attackType15_1 = "ivtank"
attackType15_2 = "ivtank"

targetType16 = "fvturr"
attackType16_1 = "ivscout"
attackType16_2 = "ivscout"
attackType16_3 = "ivscout"

targetType17 = "fvscout"
attackType17_1 = "ivrckt"

targetType18 = "fvsent"
attackType18_1 = "ivrckt"

targetType19 = "fvtank"
attackType19_1 = "ivatank"

targetType20 = "fvwalk"
attackType20_1 = "ivrckt"

targetType21 = "fvatank"
attackType21_1 = "ivatank"
attackType21_2 = "ivatank"

targetType22 = "fvatank"
attackType22_1 = "ivmbike"
attackType22_2 = "ivmbike"
attackType22_3 = "ivmbike"

targetType23 = "fvatank"
attackType23_1 = "ivrckt"
attackType24_2 = "ivrckt"

targetType24 = "fvtank"
attackType24_1 = "ivmbike"

targetType25 = "fvsent"
attackType25_1 = "ivmbike"

targetType26 = "fvartl"
attackType26_1 = "ivmbike"

targetType27 = "fvartl"
attackType27_1 = "ivtank"


[Plan1]
planType = "CollectField"
planPriority = 540
buildIfNoIdle = 1

[Plan2]
planType = "CollectPool"
planPriority = 530
buildIfNoIdle = 1
maxTries = 3 // otherwise I am just killing myself

[Plan3]
planType = "CollectPool"
planPriority = 520
buildIfNoIdle = 1
maxTries = 3 // otherwise I am just killing myself

[Plan4]
planType = "CollectPool"
planPriority = 510
buildIfNoIdle = 1
maxTries = 3 // otherwise I am just killing myself

[Plan5]
planType = "CollectPool"
planPriority = 500
buildIfNoIdle = 1
maxTries = 3 // otherwise I am just killing myself

[Plan6]
planCondition = "Exists"
planConditionClass = "ivservcpu"
planConditionCount = 1
planType = "Service"
planPriority = 490
serviceUnit = "ivservcpu"
unitType1 = "ibrecy"
unitType2 = "ibfact"
unitType3 = "ibpgen"
unitType4 = "ibscav"
unitType5 = "ivscav"
unitType6 = "ibscup"

[Plan7]
planType = "BuildMinimums"
planPriority = 480
buildType1 = "ivcons"
buildCount1 = 2

[Plan8]
planType = "BaseBuildMinimums"
planPriority = 470
buildType1 = "ibpgen"
buildType2 = "ibfact"
buildType3 = "ibcbun"
buildType4 = "ibgtow"
buildType5 = "ibpgen"

[Plan9]
planType = "BuildMinimums"
planPriority = 461
buildType1 = "ivcons"
buildCount1 = 2

[Plan10]
planCondition = "Exists"
planConditionClass = "ibscav"
planConditionCount = 1
planType = "Upgrade"
planPriority = 460
unitType = "ibscav"

// Branch off in case of artillery
[Plan11]
MinTtlScrap = 80
planType = "BaseBuildMinimums"
planPriority = 430
planCondition= "HisExists"
planConditionClass = "fvartl"
planConditionCount = 1
buildType1 = "ibpgen"
buildCount1 = 3
buildType2 = "ibarmo"
buildCount2= 1
buildType3 = "ibtrain"
buildCount3 = 1

[Plan12]
MinTtlScrap = 50
planCondition = "HisExists"
planConditionClass= "fvartl"
planConditionCount = 1
planType = "BuildLoop"
planPriority = 420
unitType1 = "ivapc"
unitCount1 = 2
loopDelay = 250

[Plan13]
planCondition = "HisExists"
planConditionClass= "fvartl"
planConditionCount = 1
planType = "Attacker"
planPriority = 410
targetType = "fvartl"
attackType1 = "ivapc"
attackType2 = "ivapc"
AttackAnything = true
buildIfNoIdle = 1

[Plan14]
planType = "BuildMinimums"
planPriority = 400
buildType1 = "ivtank"
buildCount1 = 4

[Plan15]
planType = "DefendArea"
planPriority = 390
targetType = "ibscav"
ContinueEvenIfFail = true

[Plan16]
planType = "DefendArea"
planPriority = 380
targetType = "ivscav"
doNextOnFail =1 

[Plan17]
planType = "BaseBuildMinimums"
planPriority = 370
buildType1 = "ibpgen"
buildCount1 = 3
buildType2 = "ibsbay"
buildType3 = "ibarmo"

[Plan18]
planType = "CollectField"
planPriority = 360
defendType1 = "ivtank"
defendCount1 = 2

[Plan19]
planType = "BuildMinimums"
planPriority = 350
buildType1 = "ivatank"
buildCount1 = 2
buildType2 = "ivrckt"
buildCount2 = 2
buildType3 = "ivservcpu"
buildCount3 = 2

[Plan20]
planType = "Service"
planPriority = 340
serviceUnit = "ivservcpu"
unitType1 = "ivatank"
unitType2 = "ivrckt"
unitType3 = "ibpgen"
unitType4 = "ivtank"

[Plan21]
planType = "ClearArea"
planPriority = 330
targetType = "fbscav"

[Plan22]
planType = "Attacker"
planPriority = 320
targetType =  "fbscav"
attackType1=  "ivatank"
attackType2 = "ivatank"
attackType3 = "ivrckt"
AttackAnything = true
buildIfNoIdle = 1

[Plan23]
planType = "ClearArea"
planPriority = 310
targetType = "fbscup"

[Plan24]
planType = "Attacker"
planPriority = 300
targetType = "fbscup"
attackType1=  "ivatank"
attackType2 = "ivatank"
attackType3 = "ivrckt"
AttackAnything = true
buildIfNoIdle = 1

[Plan25]
planType = "CollectPool"
planPriority = 290
buildIfNoIdle =1 

[Plan26]
planType = "Attacker"
planPriority = 280
targetType = "fbspir"
attackType1=  "ivatank"
attackType2 = "ivatank"
attackType3 = "ivrckt"
AttackAnything = true
buildIfNoIdle = 1

[Plan27]
planType = "Attacker"
planPriority = 270
targetType = "fbrecy"
attackType1=  "ivatank"
attackType2 = "ivatank"
attackType3 = "ivrckt"
AttackAnything = true
buildIfNoIdle = 1

[Plan28]
planType = "BuildLoop"
planPriority = 260
buildType1 = "ivmbike"
buildCount1 = 3
loopDelay = 150

[Plan29]
planType = "Attacker"
planPriority = 250
targetType = "fbforg"
attackType1 = "ivmbike"
attackType2 = "ivmbike"
attackType3 = "ivmbike"
AttackAnything = true
buildIfNoIdle = 1

[Plan30]
planType = "Attacker"
planPriority = 240
targetType = "fbspir"
attackType1 = "ivmbike"
attackType2 = "ivmbike"
attackType3 = "ivmbike"
AttackAnything = true
buildIfNoIdle = 1

[Plan31]
planType = "Attacker"
planPriority = 230
targetType = "fbover"
attackType1 = "ivmbike"
attackType2 = "ivmbike"
attackType3 = "ivmbike"
AttackAnything = true
buildIfNoIdle = 1

[Plan32]
planType = "Attacker"
planPriority = 220
targetType = "fbrecy"
attackType1 = "ivmbike"
attackType2 = "ivmbike"
attackType3 = "ivmbike"
AttackAnything = true
buildIfNoIdle = 1

[Plan33]
planType = "DistributeUnits"
planPriority= 10

// Power Control Plan
[Plan34]
MaxCurPower = 1
planType = "BaseBuildMinimums"
planPriority = 471 
buildType1 = "ibpgen"
buildCount1 = 3
