This is a resource of a default ai_personality for testing purposes to compare performance in general with other existing CAI systems.
Thanks to all previous CAI mods because most of components was initially taken there. First of all -
XAI project,
PiterAI,
SkynetAI,
Beermugcarl AI. Personally - to
z3n and
CavalryCmdr for their studying and explanations.
First of all - some general preparations, find by
Beermugcarl for improving AI logistics.
Changes in descr_character for map.rwm updating for better logistics on campaign map. You should
delete map.rwm before next launch of your mod.
Цитата
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;
starting_action_points 550 ; default value for all characters and pathfinding calculations
An additional trait for AI generals and admirals to increase line of sight for better logistics on campaign map
Цитата
;----------------------------------------------
Trait AI_Boost
Characters family
Hidden
Level GeneralAI
Description GeneralAI_desc
EffectsDescription GeneralAI_effects_desc
Threshold 1
Effect LineOfSight 10
Effect BattleSurgery 20
Effect HitPoints 2
Effect TroopMorale 5
Effect MovementPoints +100
Effect Combat_V_Faction_Slave 10
Effect TaxCollection 50
;----------------------------------------------
Trait AI_AdmiralBoost
Characters family
Hidden
Level AdmiralAI
Description AdmiralAI_desc
EffectsDescription AdmiralAI_effects_desc
Threshold 1
Effect LineOfSight 15
Effect MovementPoints +100
Effect Combat_V_Faction_Slave 10
Trigger Part
;--------------------------------------------
Trigger AI_Boost1
WhenToTest CharacterTurnStart
Condition not CharacterIsLocal
and not IsFactionHeir
and not IsFactionLeader
and Trait AI_Boost = 0
Affects AI_Boost 1 Chance 100
;--------------------------------------------
Trigger AI_Boost2
WhenToTest CharacterTurnStart
Condition IsAdmiral
and not CharacterIsLocal
and Trait AI_AdmiralBoost = 0
Affects AI_AdmiralBoost 1 Chance 100
;--------------------------------------------
Trigger AI_Boost3
WhenToTest CharacterTurnStart
Condition CharacterIsLocal
and Trait AI_Boost = 1
Affects AI_Boost -1 Chance 100
;--------------------------------------------
Trigger AI_Boost4
WhenToTest CharacterSelected
Condition CharacterIsLocal
and Trait AI_Boost = 1
Affects AI_Boost -1 Chance 100
And don't forget to create text description in data/text ofc for those new hidden traits.
Also I used new pathfinding so you may try to update it with my .txt to create new pathfinding.db
and here is CAI file
To view the link Register
ai_personalities inside are -
default,
nomad_faction (ultra aggressive profile for Mongols),
papal_faction and
slave_faction.
Also you may optionally add such triggers into descr_faction_standings for more sensible reactions on Crusade events.
And here are triggers for Faction Leader's traits additional influence on faction global standing parameters.
This project has no final name at the moment, previous was Adaptive Campaign Algorithm Beta (A.C.A.B.)

It's Potentiated Artificial Intelligence Novelty now - P.A.I.N.