Crusader Kings III

Crusader Kings III

Better Cadet Branch
Dad needs a Beer  [developer] 13 Dec, 2024 @ 5:22am
Code
ai_will_do = {
base = 5

modifier = {
add = 10
primary_title.tier >= tier_kingdom
}
modifier = {
add = 20
opinion = {
target = house.house_head
value <= -30
}
}
modifier = {
add = 25
house = {
any_house_member = { count > 80 }
}
}
modifier = {
add = 15
OR = {
has_trait = education_learning_4
has_trait = education_stewardship_4
has_trait = education_diplomacy_4
has_trait = education_intrigue_4
has_trait = education_martial_4
has_trait = education_learning_5
has_trait = education_stewardship_5
has_trait = education_diplomacy_5
has_trait = education_intrigue_5
has_trait = education_martial_5
}
}
modifier = {
add = 20
has_trait = shrewd
}
modifier = {
add = 20
has_trait = arrogant
}
modifier = {
add = 20
has_trait = ambitious
}
modifier = {
add = 20
has_trait = impatient
}
modifier = {
add = 20
has_trait = stubborn
}
modifier = {
add = 20
has_trait = disloyal
}
modifier = {
add = 20
has_trait = kinslayer_1
}
modifier = {
add = 30
has_trait = kinslayer_2
}
modifier = {
add = 30
has_trait = kinslayer_3
}
modifier = {
add = 30
has_trait = denounced
}
modifier = {
add = 30
has_trait = disinherited
}
modifier = {
add = 30
has_trait = decadent
}
modifier = {
add = 20
sum_of_all_skills_value >= 60
}
modifier = {
add = -15
is_independent_ruler = no
any_liege_or_above = {
dynasty = root.dynasty
}
}
modifier = {
add = -20
has_trait = craven
}
modifier = {
add = -20
has_trait = content
}
modifier = {
add = -20
has_trait = lazy
}
modifier = {
add = -20
has_trait = loyal
}
modifier = {
add = -20
has_trait = humble
}
modifier = {
add = -10
sum_of_all_skills_value <= 40
}
modifier = {
factor = 0
OR = {
house = {
any_house_member = { count < 26 }
}
sum_of_all_skills_value <= 35
has_trait = education_learning_1
has_trait = education_stewardship_1
has_trait = education_diplomacy_1
has_trait = education_intrigue_1
has_trait = education_martial_1
}
}

modifier = {
factor = 0
any_child = {
is_alive = yes
count < 3
}
}

modifier = {
factor = 0
any_player = {
OR = {
any_child = {
OR = {
is_child_of = root
is_grandchild_of = root
is_great_grandchild_of = root
}
}
any_child = {
even_if_dead = yes
any_child = {
OR = {
is_child_of = root
is_grandchild_of = root
is_great_grandchild_of = root
}
}
}
any_child = {
even_if_dead = yes
any_child = {
even_if_dead = yes
any_child = {
OR = {
is_child_of = root
is_grandchild_of = root
is_great_grandchild_of = root
}
}
}
}
}
}
}

# we don't want AI to split from their House unless they dislike their house head
#modifier = {
# factor = 0
# government_has_flag = government_is_clan
# opinion = {
# target = house.house_head
# value >= -50
# }
#}

# If an admin top liege ever ends up having their house head in a different realm, they should create a cadet branch ASAP
modifier = {
add = 1000
government_has_flag = government_is_administrative
is_independent_ruler = yes
this != house.house_head.top_liege
}
Last edited by Dad needs a Beer; 14 Dec, 2024 @ 4:36am