// ******************************************************************************************
// WorthAttack - attacks buildings etc.
// Straightforward basic attack with 1 team, avoids everything on route
// ******************************************************************************************

STRATEGY

DESCRIPTION
name=InfantryBaseAttack1T2
frequency=2
mintech=2
maxtech=2
house=all
losses=100
reactive=0
ENDDESCRIPTION

// The TEAMS:
TEAM
name W1
teamtype T1Infantry
minunits 8
maxunits 15
ENDTEAM

TEAM
name W2
teamtype T1Infantry
minunits 6
maxunits 15
ENDTEAM

TEAM
name W3
teamtype T1Infantry
minunits 8
maxunits 15
ENDTEAM

// The TARGET:
TARGET
name WorthEnemy
targettype enemybase
ENDTARGET

STAGING
name s1
relative WorthEnemy
stagingtype lflank
distance far
threat lowthreat
ENDSTAGING

STAGING
name s2
relative WorthEnemy
stagingtype lflank
distance medium
threat lowthreat
ENDSTAGING

STAGING
name s3
relative WorthEnemy
stagingtype lflank
distance near
threat lowthreat
ENDSTAGING

STEP

SEND
who w1
destination s2
route lowthreat
encounter attack
endstate attack
ENDSEND

SEND
who w2
destination s1
route lowthreat
encounter attack
endstate attack
ENDSEND

SEND
who w3
destination s2
route lowthreat
encounter attack
endstate attack
ENDSEND

ENDSTEP

STEP

SEND
who w3
destination s3
route lowthreat
encounter attack
endstate attack
ENDSEND

ENDSTEP

STEP

TEXT 
name AiAttackSoon
ENDTEXT

SEND
who all
destination WorthEnemy
route lowthreat
encounter attack
endstate attack
ENDSEND

ENDSTEP

STEP

SEND
who all
destination homebase
route lowthreat
encounter attack
endstate guard
ENDSEND

ENDSTEP

// and thats your lot
ENDSTRATEGY

