IIITotal Conquest

Aqueduct for mod makers

AI and diplomacy

data\rtwr_diplomacy.txt

Reload with rtwr_personalities reload.

Leaders' personalities

Each leader rolls one, shown as a trait, and it sets when he goes to war.

rtwr_diplomacy.txt
personality honourable trait RulerHonour weight 35 war_below 35 war_drop 0 independence never
personality pragmatic trait RulerPragmatism weight 40 war_below 60 war_drop 5 independence 1
protectorate_guard on

The traits must be in export_descr_character_traits.txt.

The forced attack on a player at war

Only for a reason the leader accepts.

rtwr_diplomacy.txt
forced_attack allies never
forced_attack honourable dislike,alliance
forced_attack pragmatic any
forced_attack fear 3

Ambitions

The AI makes the target's defenders its invasion targets.

rtwr_diplomacy.txt
ambition gauls seize Rome weight 8 title "Sack Rome"
ambition * hold weight 2
ambition_own romans_julii
home romans_julii italia
ambition_weights honourable destroy 0.5
ambition_ai priority 300 bonus 20
ambition_rules hopeless 4 min_turns 10 hold_turns 20 message on

Limits on the AI

rtwr_diplomacy.txt
invasion_min_units 12
expand_max gauls 5
pace romans_julii romans_brutii margin 25 min 2
transports ships 1 reserve 20000 cost 7000 every 3 unit "naval triremes"
LineDoes
invasion_min_units <n>invades only with armies this big
expand_max <faction> <towns>no new targets at that size
pace <factions> margin <p> min <n>a group keeps pace with its player
transports ...an AI planning a sea invasion gets ships, paid

Also

ai_army_target and horde_target_ counters are in Script conditions and counters. ai_grant is in Economy.