more file updating
This commit is contained in:
parent
4afc9466f5
commit
fde59745b8
99 changed files with 5706 additions and 2115 deletions
|
|
@ -13,30 +13,29 @@ create_cadet_branch_decision = {
|
|||
decision_group_type = major
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 6
|
||||
county = 12
|
||||
duchy = 6
|
||||
kingdom = 6
|
||||
empire = 6
|
||||
hegemony = 6
|
||||
kingdom = 1
|
||||
empire = 1
|
||||
hegemony = 1
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
is_playable_character = yes
|
||||
exists = house.house_head
|
||||
is_house_head = no
|
||||
highest_held_title_tier > tier_barony
|
||||
government_allows = rulers_should_have_dynasty
|
||||
is_house_head = no
|
||||
NOR = {
|
||||
government_has_flag = government_is_holy_order
|
||||
government_has_flag = government_is_theocracy
|
||||
AND = {
|
||||
faith = { has_doctrine = doctrine_theocracy_temporal }
|
||||
has_council_position = councillor_court_chaplain
|
||||
rite ?= { rite_has_doctrine = doctrine_theocracy_temporal }
|
||||
}
|
||||
AND = {
|
||||
has_tgp_dlc_trigger = yes
|
||||
tgp_is_in_ceremonial_house_trigger = yes
|
||||
has_tgp_dlc_trigger = yes
|
||||
}
|
||||
}
|
||||
exists = house.house_head
|
||||
is_playable_character = yes
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
|
|
@ -65,7 +64,7 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
# If you are Administrative, we let the player create a new House much easier, as to have easy access to their own Family Title and Estate.
|
||||
trigger_else_if = {
|
||||
limit = { government_allows = administrative }
|
||||
limit = { government_allows = noble_families }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
is_ai = yes # We don't want the AI to create cadet branches willy nilly, so they have additional restrictions.
|
||||
|
|
@ -79,12 +78,13 @@ create_cadet_branch_decision = {
|
|||
any_held_title = {
|
||||
place_in_line_of_succession = {
|
||||
target = root
|
||||
value <=3
|
||||
value <= 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
highest_held_title_tier >= main_administrative_tier
|
||||
}
|
||||
# No triggers for players.
|
||||
}
|
||||
|
|
@ -104,6 +104,14 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
# only feudal or japanese ruler create branch when liege is househead.
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_is_japanese_trigger = no
|
||||
NOT = { government_has_flag = government_is_feudal }
|
||||
}
|
||||
NOT = { target_is_liege_or_above = house.house_head }
|
||||
}
|
||||
# Marriage restrictions
|
||||
trigger_if = {
|
||||
limit = { is_male = yes }
|
||||
|
|
@ -111,7 +119,7 @@ create_cadet_branch_decision = {
|
|||
limit = {
|
||||
OR = {
|
||||
is_married = yes
|
||||
faith = { has_doctrine = doctrine_gender_female_dominated }
|
||||
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
|
||||
}
|
||||
}
|
||||
patrilinear_marriage = yes
|
||||
|
|
@ -122,7 +130,7 @@ create_cadet_branch_decision = {
|
|||
limit = {
|
||||
OR = {
|
||||
is_married = yes
|
||||
faith = { has_doctrine = doctrine_gender_male_dominated }
|
||||
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
|
||||
}
|
||||
}
|
||||
matrilinear_marriage = yes
|
||||
|
|
@ -173,53 +181,29 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ai_potential = {
|
||||
exists = house.house_head
|
||||
is_adult = yes
|
||||
highest_held_title_tier > tier_barony
|
||||
any_child = { is_alive = yes }
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 30
|
||||
|
||||
modifier = { # Dukes and above are more keen
|
||||
add = 70
|
||||
exists = primary_title
|
||||
primary_title.tier > tier_county
|
||||
}
|
||||
|
||||
modifier = { # Prefer to stay in liege's dynasty
|
||||
add = -50
|
||||
government_is_japanese_trigger = no
|
||||
top_liege != this
|
||||
any_liege_or_above = {
|
||||
dynasty = root.dynasty
|
||||
any_child = { is_alive = yes } # move it beforehand for performance reason
|
||||
trigger_if = {
|
||||
limit = {
|
||||
# always allow branch if in different realm, they need the estate.
|
||||
NAND = {
|
||||
government_allows = noble_families
|
||||
trigger_if = {
|
||||
limit = { exists = house.house_head.liege }
|
||||
house.house_head.liege != root
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
modifier = { # Childless rulers should not found houses
|
||||
factor = 0
|
||||
# Childless rulers should not found houses
|
||||
any_child = {
|
||||
is_alive = yes
|
||||
count < 3
|
||||
count >= 3
|
||||
}
|
||||
}
|
||||
|
||||
modifier = { # Stop stealing player's house members
|
||||
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
|
||||
NOR = {
|
||||
# Stop stealing player's house members
|
||||
any_player = {
|
||||
OR = {
|
||||
any_child = {
|
||||
OR = {
|
||||
is_child_of = root
|
||||
|
|
@ -227,9 +211,6 @@ create_cadet_branch_decision = {
|
|||
is_great_grandchild_of = root
|
||||
}
|
||||
}
|
||||
}
|
||||
any_child = {
|
||||
even_if_dead = yes
|
||||
any_child = {
|
||||
even_if_dead = yes
|
||||
any_child = {
|
||||
|
|
@ -240,32 +221,54 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
years_from_game_start >= 5
|
||||
}
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 30
|
||||
|
||||
modifier = { # Dukes and above are more keen
|
||||
add = {
|
||||
value = primary_title.tier
|
||||
subtract = tier_county
|
||||
multiply = 20
|
||||
}
|
||||
}
|
||||
|
||||
# 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
|
||||
add = {
|
||||
value = 0
|
||||
subtract = "opinion(house.house_head)"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# 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_allows = administrative
|
||||
top_liege = this
|
||||
this != house.house_head.top_liege
|
||||
}
|
||||
|
||||
modifier = {
|
||||
add = -250
|
||||
years_from_game_start < 5
|
||||
government_allows = noble_families
|
||||
liege = this
|
||||
trigger_if = {
|
||||
limit = { exists = house.house_head.liege }
|
||||
house.house_head.liege != root
|
||||
}
|
||||
}
|
||||
|
||||
### TGP
|
||||
|
|
@ -275,7 +278,7 @@ create_cadet_branch_decision = {
|
|||
top_liege.primary_title = {
|
||||
any_past_holder = { is_close_family_of = root }
|
||||
}
|
||||
add = -25
|
||||
add = -20
|
||||
}
|
||||
|
||||
modifier = { # Prefer to branch away from leading house if distant to split up blocs
|
||||
|
|
@ -295,12 +298,13 @@ create_cadet_branch_decision = {
|
|||
modifier = { # Ruler should not break family apart
|
||||
government_is_japanese_trigger = yes
|
||||
is_independent_ruler = yes
|
||||
house.house_head ?= { is_vassal_or_below_of = root }
|
||||
add = -1000
|
||||
}
|
||||
|
||||
modifier = { # Close and extended family prefer to stay with Ritsuryo house heads
|
||||
government_is_japanese_trigger = yes
|
||||
government_allows = administrative
|
||||
government_allows = noble_families
|
||||
OR = {
|
||||
is_close_or_extended_family_of = house.house_head
|
||||
AND = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue