Exactly.
Now you need to follow this up with a Unit File that includes the Colony type the AI may Subscribe too. For Example see reference
You also may include a cell for that exampled Mining Colony Type: Just for that
AI STATE Defend (Short Term)
Why AI STATE SHORT TERM DEFEND? This is so; when the AI is triggered to go into this (strategy state) it will consider what is really to be needed to be built; by the designers wishs.
The AI will be triggered into a SHORT TERM STATE by:
With an Enemy in Territory ONLY from any existing AI (strategy) State other then (Defend Long Term and possibly with in the Defend Short Term in its self… But will continue thru the entire defaulted:
AI State :=(Defense, Defend (Short Term), Defend (Long Term) States; as long as an Enemy is in your AI's Territory
The Short Term State will Last for (about 5 turns) and will Prompt the AI to start fresh builds from the AI Facilities, Vehicle Files (if that Colony has a Ship Yard) and the Units File.
This AI prompt will NEVER delete any existing builds in the Queue and May add to the existing build tasks for some Queues.
With a Default Vehicle File; The AI subscription will start at Entry 1 Type.
example se4 default AI Vehicle File:
AI State := Prepare for Defense, Defend (Short Term), Defend (Long Term)
Num Queue Entries := 21
Entry 1 Type := Weapon Platform
Entry 1 Planet Per Item := 0
Entry 1 Must Have At Least := 2
Entry 2 Type := Satellite
Entry 2 Planet Per Item := 0
Entry 2 Must Have At Least := 2
"~"
Any and all build prompts also will be subject to the Facility, Vehicles and Unit build protocol of Rules.
The AI will remain in the strategy state of: Defend Short Term if an attack is underway by enemy forces. This is the early stages of the defense for about the (first 5 turns).
If the enemy is now; only near by and not in your AI’s System and there, is (no) unexplored systems close by; then the AI will switch to: Infrastructure State
If the AI can still explore some new systems with no Enemy nearby; then the AI will default to the EXPLORE STATE.
If the Enemy attack is continuous in your AI’s territory THEN your AI may perceive this to be a prolonged conflict and need to TOTALLY defend its systems
your AI Player will lock into and to continue with the Defend Long Term (strategy set) until that enemy is gone from its territory then that AI will resume at the Infrastructure State; until another trigger.
Reference
Example Only "RACE"_AI_Construction_Facilities
AI State := Defend (Short Term)
Construction Queue Type := Mining Colony
Num Queue Entries := #
Facility 1 Ability := Supply Generation
Facility 1 Amount := 1
Facility 2 Ability := Shield Modifier - System
Facility 2 Amount := 1
Facility 3 Ability := Combat Modifier - System
Facility 3 Amount := 1
Facility 4 Ability := Damage Modifier – System
Facility 4 Amount := 1
Facility 5 Ability := Change Population Happiness – System
Facility 5 Amount := 1
Facility 6 Ability := Stop Planet Destroyer
Facility 6 Amount := 1
Facility 7 Ability := Stop Black Hole Creator
Facility 7 Amount := 1
Facility 8 Ability := ETC
Example only “RACE”_AI_Construction_Units
Colony Type := Mining Colony
Num Queue Entries := 23
Entry 1 Type := Fighter
Entry 1 Maximum in kT := 140
Entry 2 Type := Troop
Entry 2 Maximum in kT := 60
Entry 3 Type := Weapon Platform
Entry 3 Maximum in kT := 200
Entry 4 Type := Troop
Entry 4 Maximum in kT := 140
Entry 5 Type := Weapon Platform
Entry 5 Maximum in kT := 400
Entry 6 Type := Fighter
Entry 6 Maximum in kT := 350
Entry 7 Type := Troop
Entry 7 Maximum in kT := 340
Entry 8 Type := Weapon Platform
Entry 8 Maximum in kT := 600
Entry 9 Type := Troop
Entry 9 Maximum in kT := 540
Entry 10 Type := Weapon Platform
Entry 10 Maximum in kT := 1000
Entry 11 Type := Troop
Entry 11 Maximum in kT := 940
Entry 12 Type := Fighter
Entry 12 Maximum in kT := 600
Entry 13 Type := Weapon Platform
Entry 13 Maximum in kT := 2000
Entry 14 Type := Troop
Entry 14 Maximum in kT := 1140
Entry 15 Type := Fighter
Entry 15 Maximum in kT := 1200
Entry 16 Type := Weapon Platform
Entry 16 Maximum in kT := 3000
Entry 17 Type := Troop
Entry 17 Maximum in kT := 1340
Entry 18 Type := Weapon Platform
Entry 18 Maximum in kT := 4000
Entry 19 Type := Troop
Entry 19 Maximum in kT := 1540
Entry 20 Type := Weapon Platform
Entry 20 Maximum in kT := 5000
Entry 21 Type := Satellite
Entry 21 Maximum in kT := 2400
Entry 22 Type := Weapon Platform
Entry 22 Maximum in kT := 6000
Entry 23 Type := Troop
Entry 23 Maximum in kT := 3000
[ October 07, 2003, 20:30: Message edited by: JLS ]