Another question for dummies, I have no experience with this so I'd like somebody to proof read it.
I want to tell the AI not to use subjugation if it's "big" and the opponent is "small". I wrote this to check that if attacker has real size of at least 4 it must not subjugate realms smaller than realm size 4, but small rulers shouldn't mind subjugating anybody, as well as two checks on the attacker age to push it to use subjugation before dying.
Is this how it should be done?
I want to tell the AI not to use subjugation if it's "big" and the opponent is "small". I wrote this to check that if attacker has real size of at least 4 it must not subjugate realms smaller than realm size 4, but small rulers shouldn't mind subjugating anybody, as well as two checks on the attacker age to push it to use subjugation before dying.
Code:
ai_will_do = {
factor = 1
modifier = { # Subjugating small realms is only worth if the attacker has a small realm
factor = 0
AND = {
ROOT = {
realm_size >= 4
}
FROM = {
realm_size <= 4
}
}
}
modifier = { # Use your once in a lifetime CB
factor = 1.5
ROOT = {
age > 30
}
}
modifier = { # Use your once in a lifetime CB already
factor = 2
ROOT = {
age > 40
}
}
Is this how it should be done?