• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
X

XYN

Guest
To what extent is it possible to mod the AI behavior, other than ai_zeal etc?

For example, is it possible to mod the acceptance score of various actions, or weight of the wargoals?

My particular issue is this: a 16 years old countess first tries to marry her 1 year old nephew (of the same dynasty), and when refused, she goes and marries a 69 years old lowborn courtier. And he certainly wasn't the only courtier available for the matrilineal marriage.

I'd like to change how it scores the candidates for the marriage.
 
You can mod the chance of the AI taking certain option in events by adding an ai_chance block, and the chance of taking decisions or using wargoals by changing the ai_will_do block. Note that you can't modify hard-coded decisions, like marriage or inviting to court.
 
To what extent is it possible to mod the AI behavior, other than ai_zeal etc?

For example, is it possible to mod the acceptance score of various actions, or weight of the wargoals?

My particular issue is this: a 16 years old countess first tries to marry her 1 year old nephew (of the same dynasty), and when refused, she goes and marries a 69 years old lowborn courtier. And he certainly wasn't the only courtier available for the matrilineal marriage.

I'd like to change how it scores the candidates for the marriage.

Can't be done, the marrige ai is unmoddable.

The only thing that might be possible is adding a new decision, with the "add_spouse" effect. That decision can then use ai weights to modify marriage behaviour. The problem is the hard-coded marriage decision would still exist, although there may be a way to effectively deactivate it using defines.
 
there may be a way to effectively deactivate it using defines.
There is. Set OFFER_MARRIGE_INTERACTION_ENABLED and OFFER_SUCCESSION_MARRIGE_INTERACTION_ENABLED both to 0. They are, to the best of my knowledge, for regular and matrilineal marriage respectively.
 
Last edited: