event fixes pt IV

This commit is contained in:
trashmasteruni 2026-10-11 00:50:52 +02:00
parent e660a1513e
commit 4ee8abdc61
22 changed files with 2057 additions and 8852 deletions

View file

@ -13,10 +13,10 @@
# 0018 - Confirm pledging.
# 0020 - AI rulers pledge to Undirected GHW.
# 0092 - AI rulers pledge to Directed GHW.
# 0090 - Holy Orders pledging to GHW.
# 0090 - Military Orders pledging to GHW.
# 0021 - AI rulers counterpledge to Undirected GHW.
# 0093 - AI rulers counterpledge to Directed GHW.
# 0091 - Holy Orders counterpledging to GHW.
# 0091 - Military Orders counterpledging to GHW.
# 0022, 0023 - The Pope calls out unpledged player.
# 0024 - Dead Recipient is replaced.
# 0025 - Converted Recipient is replaced.
@ -29,6 +29,7 @@
# 0051 - GHW was declared.
# 0052 - GHW was won.
# 0053 - GHW was lost.
# 0054 - GHW was invalidated after launching.
# 0055 - GHW failed to start.
# 0060 - Crusader trait gained.
# 0058 - Crusader trait lost.
@ -45,14 +46,30 @@ great_holy_war.0001 = {
has_doctrine = doctrine_spiritual_head
save_temporary_scope_as = the_faith
exists = religious_head
trigger_if = { # Player spiritual heads launch through a decision or bull, not this monthly pulse
limit = {
religious_head = { is_ai = no }
}
religious_head = { player_hof_requested_ghw_launch_trigger = yes }
}
NOR = {
exists = great_holy_war
exists = var:variable_ghw_cooldown
religion = { exists = var:variable_first_ghw_cooldown } # Do not event spam after Crusades have been just unlocked.
trigger_if = {
limit = {
NOT = {
religious_head = { religious_head_has_selected_ghw_target_trigger = yes }
}
}
religion = { exists = var:variable_first_ghw_cooldown } # Do not event spam after Crusades have been just unlocked.
}
}
religious_head = { is_imprisoned = no }
religion = { exists = var:variable_ghw_unlocked } #Activated by event for every religion.
suitable_faith_for_undirected_ghw_trigger = yes #Right combinations of Doctrines to have GHWs. And a valid target exists
religion = { exists = var:variable_ghw_unlocked } # Age of Crusades
OR = {
suitable_faith_for_undirected_ghw_trigger = yes #Right combinations of Doctrines to have GHWs. And a valid target exists
religious_head = { religious_head_has_selected_ghw_target_trigger = yes }
}
}
immediate = {
@ -60,7 +77,46 @@ great_holy_war.0001 = {
#Determine Sponsor.
religious_head = { save_scope_as = ghw_sponsor }
determine_ghw_target_effect = { FAITH = scope:the_faith }
if = {
limit = { scope:ghw_sponsor = { has_variable = player_ghw_launch } }
save_temporary_scope_value_as = {
name = skip_ghw_war_chest_gold
value = yes
}
}
if = {
limit = {
scope:ghw_sponsor = { has_variable = player_ghw_target_kingdom }
}
scope:ghw_sponsor = {
var:player_ghw_target_kingdom = { save_scope_as = target_kingdom }
remove_variable = player_ghw_target_kingdom
if = {
limit = { has_variable = player_ghw_launch }
remove_variable = player_ghw_launch
}
}
pam_determine_ghw_target_character_from_kingdom_effect = { FAITH = scope:the_faith }
}
else_if = {
limit = {
scope:ghw_sponsor = {
has_pam_dlc_trigger = yes
has_variable = pam_bull_ghw_target_kingdom
}
}
pam_use_bull_selected_ghw_target_effect = {
GHW_SPONSOR = scope:ghw_sponsor
FAITH = scope:the_faith
}
}
else = {
determine_ghw_target_effect = { FAITH = scope:the_faith }
if = {
limit = { scope:ghw_sponsor = { has_variable = player_ghw_launch } }
scope:ghw_sponsor = { remove_variable = player_ghw_launch }
}
}
# Launch the preparation phase
start_great_holy_war = {
@ -78,7 +134,10 @@ great_holy_war.0001 = {
}
}
if = {
limit = { scope:ghw_sponsor.gold > 0 }
limit = {
scope:ghw_sponsor.gold > 0
NOT = { exists = scope:skip_ghw_war_chest_gold }
}
great_holy_war = {
change_war_chest_gold = {
value = scope:ghw_sponsor.gold
@ -123,7 +182,7 @@ great_holy_war.0001 = {
scope:ghw_sponsor = {
random_courtier = {
alternative_limit = {
scope:the_faith = { has_doctrine = doctrine_gender_male_dominated }
scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_male_dominated } }
is_male = yes
is_adult = yes
is_ai = yes
@ -135,7 +194,7 @@ great_holy_war.0001 = {
faith = scope:the_faith
}
alternative_limit = {
scope:the_faith = { has_doctrine = doctrine_gender_female_dominated }
scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_female_dominated } }
is_female = yes
is_adult = yes
is_ai = yes
@ -174,13 +233,13 @@ great_holy_war.0001 = {
gender_female_chance = {
if = {
limit = {
scope:the_faith = { has_doctrine = doctrine_gender_male_dominated }
scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_male_dominated } }
}
add = 0
}
else_if = {
limit = {
scope:the_faith = { has_doctrine = doctrine_gender_female_dominated }
scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_female_dominated } }
}
add = 100
}
@ -242,7 +301,7 @@ great_holy_war.0001 = {
}
every_faith_holy_order = {
trigger_event = {
#Holy orders always join
#Military Orders always join
id = great_holy_war.0090
days = { 30 60 }
}
@ -272,7 +331,7 @@ great_holy_war.0001 = {
faith = {
every_faith_holy_order = {
trigger_event = {
# Holy orders always join
# Military Orders always join
id = great_holy_war.0091
days = { 30 60 }
}
@ -695,7 +754,7 @@ great_holy_war.0003 = {
if = {
limit = {
has_trait = excommunicated
faith = { has_doctrine_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
}
custom_tooltip = great_holy_war.0003.a.lifted_excommunication
trigger_event = {
@ -738,7 +797,7 @@ great_holy_war.0003 = {
if = {
limit = {
has_trait = excommunicated
faith = { has_doctrine_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
}
trigger_event = {
id = great_holy_war.0015
@ -1033,7 +1092,7 @@ great_holy_war.0010 = {
OR = {
current_date >= 2650.1.1 # Free for all after Historical years
AND = { # Any Faith is seriously under attack.
any_holy_site = {
any_holy_site_barony = {
holder.top_liege = {
faith.religion != root.religion
}
@ -1054,7 +1113,7 @@ great_holy_war.0010 = {
}
}
religion:islam_religion = root.religion
any_holy_site = {
any_holy_site_barony = {
holder.top_liege = {
faith.religion != root.religion
}
@ -1076,7 +1135,7 @@ great_holy_war.0010 = {
religion:islam_religion = {
exists = var:variable_ghw_unlocked
}
any_holy_site = {
any_holy_site_barony = {
holder.top_liege = {
faith.religion != root.religion
}
@ -1563,7 +1622,7 @@ great_holy_war.0016 = {
30 = { #Excommunication available only if target already not excommunicated and religion allows it.
trigger = {
NOT = { has_trait = excommunicated }
faith = { has_doctrine_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
highest_held_title_tier >= tier_kingdom
}
modifier = { #Fool me once...
@ -1655,7 +1714,7 @@ great_holy_war.0016 = {
remove_character_flag = ghw_light_punishment
remove_character_flag = ghw_harsh_punishment
remove_character_flag = ghw_excommunication
stress_impact = {
stress_and_fulfillment_impact = {
zealous = medium_stress_impact_gain
}
}
@ -1782,7 +1841,7 @@ great_holy_war.0018 = {
if = {
limit = {
has_trait = excommunicated
faith = { has_doctrine = tenet_communion }
faith = { faith_has_sacraments_trigger = yes }
}
trigger_event = {
id = great_holy_war.0015
@ -1811,7 +1870,7 @@ great_holy_war.0020 = {
is_at_war = no
is_imprisoned = no
highest_held_title_tier >= tier_county
NOT = { has_trait = incapable }
is_incapable = no
ai_zeal >= 0
root.faith = scope:the_faith
NOT = { target_is_liege_or_above = scope:target_character }
@ -1861,7 +1920,7 @@ great_holy_war.0020 = {
}
}
random_list = {
15 = { # Pledge.
25 = { # Pledge.
trigger = {
OR = { # Either be independent, or have no liege above you of the defending Faith, to avoid messy situations of vassals and lieges fighting against each other.
top_liege = this
@ -1881,7 +1940,7 @@ great_holy_war.0020 = {
if = {
limit = {
has_trait = excommunicated
faith = { has_doctrine_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
}
trigger_event = {
id = great_holy_war.0015
@ -1893,7 +1952,7 @@ great_holy_war.0020 = {
trigger_event = { id = great_holy_war.0026 } # Set Beneficiary automatically.
}
}
85 = { # Do not pledge.
75 = { # Do not pledge.
random = { # When not pledging, there is still a chance that the AI will donate money.
chance = 35
modifier = {
@ -2047,6 +2106,10 @@ great_holy_war.0020 = {
factor = 0.5
highest_held_title_tier = tier_empire
}
modifier = { #Tier
factor = 0.25
highest_held_title_tier = tier_hegemony
}
}
}
}
@ -2057,7 +2120,7 @@ great_holy_war.0020 = {
#Requires a the_faith scope, defined in the cb.
great_holy_war.0092 = {
hidden = yes
trigger = {
is_ai = yes
is_ruler = yes
@ -2065,7 +2128,7 @@ great_holy_war.0092 = {
is_at_war = no
is_imprisoned = no
highest_held_title_tier >= tier_county
NOT = { has_trait = incapable }
is_incapable = no
ai_zeal >= 0
root.faith = scope:the_faith
NOT = { target_is_liege_or_above = scope:ghw_defender } #scope:target_character isn't created in the holy war decision where this event is called
@ -2115,7 +2178,7 @@ great_holy_war.0092 = {
}
}
random_list = {
15 = { #Pledge.
35 = { #Pledge.
trigger = {
OR = { # Either be independent, or have no liege above you of the defending Faith, to avoid messy situations of vassals and lieges fighting against each other.
top_liege = this
@ -2137,12 +2200,10 @@ great_holy_war.0092 = {
}
}
}
45 = {
}
40 = { #Do not pledge.
65 = { #Do not pledge.
random = { #When not pledging, there is still a chance that the AI will donate money.
chance = 15
chance = 35
modifier = {
factor = 0.75
has_trait = greedy
@ -2231,12 +2292,16 @@ great_holy_war.0092 = {
factor = 0.5
highest_held_title_tier = tier_empire
}
modifier = { #Tier
factor = 0.25
highest_held_title_tier = tier_hegemony
}
}
}
}
}
#AI hidden event to have a holy order pledge to a Great Holy War during the preparation phase.
#AI hidden event to have a Military Order pledge to a Great Holy War during the preparation phase.
#Event is fired when the Pope calls for the Crusade.
#Requires a the_faith scope, defined by event.
great_holy_war.0090 = {
@ -2244,6 +2309,7 @@ great_holy_war.0090 = {
scope = holy_order
trigger = {
is_military_order_trigger = yes
scope:the_faith = { #Crusade still exists
great_holy_war ?= {
NOT = { has_pledged_attacker = root.leader }
@ -2274,7 +2340,7 @@ great_holy_war.0021 = {
is_at_war = no
is_imprisoned = no
highest_held_title_tier >= tier_county
NOT = { has_trait = incapable }
is_incapable = no
root.faith = scope:the_faith.great_holy_war.ghw_target_character.faith
scope:the_faith = { #Crusade still exists
great_holy_war ?= {
@ -2323,7 +2389,7 @@ great_holy_war.0021 = {
}
}
random_list = {
10 = { #Pledge.
15 = { #Pledge.
trigger = {
OR = { # Either be independent, or have no liege above you of the attacking Faith, to avoid messy situations of vassals and lieges fighting against each other.
top_liege = this
@ -2335,7 +2401,7 @@ great_holy_war.0021 = {
}
scope:the_faith.great_holy_war = { pledge_defender = root }
}
45 = { #Do not pledge.
85 = { #Do not pledge.
modifier = { #More pledging happening at start of preparation phase.
factor = 0.75
NOT = { exists = scope:the_faith.great_holy_war.ghw_war }
@ -2461,6 +2527,10 @@ great_holy_war.0021 = {
factor = 0.5
highest_held_title_tier = tier_empire
}
modifier = { #Tier
factor = 0.25
highest_held_title_tier = tier_hegemony
}
}
}
}
@ -2472,7 +2542,7 @@ great_holy_war.0021 = {
#Requires a the_faith scope, defined in the cb.
great_holy_war.0093 = {
hidden = yes
trigger = {
is_ai = yes
is_ruler = yes
@ -2480,7 +2550,7 @@ great_holy_war.0093 = {
is_at_war = no
is_imprisoned = no
highest_held_title_tier >= tier_county
NOT = { has_trait = incapable }
is_incapable = no
root.faith = scope:target_faith
scope:the_faith = { #Crusade still exists
great_holy_war ?= {
@ -2528,7 +2598,7 @@ great_holy_war.0093 = {
}
}
random_list = {
25 = { #Pledge.
30 = { #Pledge.
trigger = {
OR = { # Either be independent, or have no liege above you of the attacking Faith, to avoid messy situations of vassals and lieges fighting against each other.
top_liege = this
@ -2540,7 +2610,7 @@ great_holy_war.0093 = {
}
scope:the_faith.great_holy_war = { pledge_defender = root }
}
75 = { #Do not pledge.
70 = { #Do not pledge.
modifier = { #More likely if war is close by.
factor = 0.5
scope:target_kingdom = {
@ -2636,12 +2706,16 @@ great_holy_war.0093 = {
factor = 0.5
highest_held_title_tier = tier_empire
}
modifier = { #Tier
factor = 0.25
highest_held_title_tier = tier_hegemony
}
}
}
}
}
#AI hidden event to have a holy order counterpledge to a Great Holy War during the preparation phase.
#AI hidden event to have a Military Order counterpledge to a Great Holy War during the preparation phase.
#Event is fired when the Pope calls for the Crusade and when the target Kingdom is switched.
#Requires a the_faith scope, defined by event.
great_holy_war.0091 = {
@ -2649,6 +2723,7 @@ great_holy_war.0091 = {
scope = holy_order
trigger = {
is_military_order_trigger = yes
scope:the_faith = { #Crusade still exists
great_holy_war ?= {
NOT = { has_pledged_defender = root.leader }
@ -2832,7 +2907,7 @@ great_holy_war.0023 = {
if = {
limit = {
has_trait = excommunicated
faith = { has_doctrine_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
}
custom_tooltip = great_holy_war.0003.a.lifted_excommunication
trigger_event = {
@ -2846,7 +2921,7 @@ great_holy_war.0023 = {
pledge_ghw_war_chest_piety_effect = yes
}
}
stress_impact = {
stress_and_fulfillment_impact = {
cynical = minor_stress_impact_gain
zealous = minor_stress_impact_loss
}
@ -2890,7 +2965,7 @@ great_holy_war.0023 = {
if = {
limit = {
has_trait = excommunicated
faith = { has_doctrine_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
}
trigger_event = {
id = great_holy_war.0015
@ -2914,7 +2989,7 @@ great_holy_war.0023 = {
days = 550
}
}
stress_impact = {
stress_and_fulfillment_impact = {
cynical = minor_stress_impact_gain
greedy = minor_stress_impact_gain
generous = minor_stress_impact_loss
@ -2977,7 +3052,7 @@ great_holy_war.0023 = {
id = great_holy_war.0016
days = 37
}
stress_impact = {
stress_and_fulfillment_impact = {
zealous = minor_stress_impact_gain
cynical = minor_stress_impact_loss
}
@ -3049,7 +3124,7 @@ great_holy_war.0024 = {
}
}
#on_character_faith_change: of Recipient, pick another one.
#on_rite_change: of Recipient, pick another one.
great_holy_war.0025 = {
hidden = yes
scope = character
@ -3134,15 +3209,15 @@ great_holy_war.0026 = {
OR = {
AND = {
is_male = yes
faith = { has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
AND = {
is_female = yes
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
NOR = {
faith = { has_doctrine = doctrine_gender_male_dominated }
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
is_close_family_or_spouse_of_root_trigger = yes
@ -3156,15 +3231,15 @@ great_holy_war.0026 = {
OR = {
AND = {
is_male = yes
faith = { has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
AND = {
is_female = yes
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
NOR = {
faith = { has_doctrine = doctrine_gender_male_dominated }
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
is_close_family_or_spouse_of_root_trigger = yes
@ -3177,15 +3252,15 @@ great_holy_war.0026 = {
OR = {
AND = {
is_male = yes
faith = { has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
AND = {
is_female = yes
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
NOR = {
faith = { has_doctrine = doctrine_gender_male_dominated }
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
is_close_family_or_spouse_of_root_trigger = yes
@ -3197,15 +3272,15 @@ great_holy_war.0026 = {
OR = {
AND = {
is_male = yes
faith = { has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
AND = {
is_female = yes
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
NOR = {
faith = { has_doctrine = doctrine_gender_male_dominated }
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
age <= 40
@ -3215,15 +3290,15 @@ great_holy_war.0026 = {
OR = {
AND = {
is_male = yes
faith = { has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
AND = {
is_female = yes
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
NOR = {
faith = { has_doctrine = doctrine_gender_male_dominated }
faith = { has_doctrine = doctrine_gender_female_dominated }
rite = { rite_has_doctrine = doctrine_gender_male_dominated }
rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
}
}
@ -3344,7 +3419,7 @@ great_holy_war.0028 = {
}
}
#On_character_faith_change.
#on_rite_change.
great_holy_war.0029 = {
hidden = yes
scope = character
@ -3564,17 +3639,20 @@ great_holy_war.0040 = {
scope:great_holy_war = {
change_war_chest_gold = root.var:triple_great_holy_war_pledge_amount
}
scope:scoped_pope = {
add_opinion = {
target = root
modifier = donated_ghw_money_2
if = {
limit = { scope:scoped_pope != root }
scope:scoped_pope = {
add_opinion = {
target = root
modifier = donated_ghw_money_2
}
}
}
add_character_flag = { # Used to check whether the Pope will harass for more later.
flag = ghw_pledged_gold
days = 7300
}
stress_impact = {
stress_and_fulfillment_impact = {
cynical = minor_stress_impact_gain
greedy = medium_stress_impact_gain
}
@ -3590,17 +3668,20 @@ great_holy_war.0040 = {
}
scope:great_holy_war = { change_war_chest_gold = root.var:double_great_holy_war_pledge_amount }
scope:scoped_pope = {
add_opinion = {
target = root
modifier = donated_ghw_money_1
if = {
limit = { scope:scoped_pope != root }
scope:scoped_pope = {
add_opinion = {
target = root
modifier = donated_ghw_money_1
}
}
}
add_character_flag = { # Used to check whether the Pope will harass for more later.
flag = ghw_pledged_gold
days = 7300
}
stress_impact = {
stress_and_fulfillment_impact = {
cynical = minor_stress_impact_gain
greedy = medium_stress_impact_gain
}
@ -4067,6 +4148,58 @@ great_holy_war.0053 = {
after = { remove_variable = ghw_war_chest_donated_sum }
}
#The Crusade was invalidated after the war had already been launched (fired from the undirected GHW casus belli on_invalidated).
great_holy_war.0054 = {
title = great_holy_war.0054.title
desc = {
desc = great_holy_war.0054.desc.intro
first_valid = {
triggered_desc = {
trigger = { scope:ghw_sponsor = root }
desc = great_holy_war.0054.desc.sponsor
}
triggered_desc = {
trigger = { scope:ghw_defender = root }
desc = great_holy_war.0054.desc.defender
}
desc = great_holy_war.0054.desc.bystander
}
desc = great_holy_war.0054.desc.outro
}
theme = faith
override_background = {
reference = battlefield
}
left_portrait = {
character = scope:ghw_sponsor
animation = shame
}
right_portrait = {
character = scope:ghw_defender
animation = war_over_win
}
option = {
name = great_holy_war.0054.a
trigger = { scope:ghw_sponsor = root }
}
option = {
name = great_holy_war.0054.b
trigger = { scope:ghw_defender = root }
}
option = {
name = great_holy_war.0054.c
trigger = {
NOR = {
scope:ghw_sponsor = root
scope:ghw_defender = root
}
}
}
}
#on_great_holy_war_invalidation: Crusade has been invalidated before starting.
great_holy_war.0055 = {
hidden = yes
@ -4081,7 +4214,7 @@ great_holy_war.0055 = {
religious_head = { save_scope_as = ghw_sponsor }
save_scope_as = the_faith
change_fervor = {
value = -10
value = significant_fervor_loss
desc = fervor_loss_crusade_invalid
}
set_variable = {
@ -4347,7 +4480,7 @@ great_holy_war.0058 = {
}
}
#on_character_faith_change: check if the character has changed Religion, in which case the Crusader trait should be cleared.
#on_rite_change: check if the character has changed Religion, in which case the Crusader trait should be cleared.
great_holy_war.0059 = {
hidden = yes
scope = character
@ -4560,18 +4693,19 @@ great_holy_war.0083 = {
location = scope:fallback_host.capital_province
template = new_commander_character
faith = root.faith
rite = root.rite
culture = root.culture
save_scope_as = fallback_recipient
gender_female_chance = {
if = {
limit = {
root.faith = { has_doctrine = doctrine_gender_male_dominated }
root.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
add = 0
}
else_if = {
limit = {
root.faith = { has_doctrine = doctrine_gender_female_dominated }
root.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
add = 100
}
@ -4630,13 +4764,13 @@ great_holy_war.0084 = {
gender_female_chance = {
if = {
limit = {
root.faith = { has_doctrine = doctrine_gender_male_dominated }
root.rite = { rite_has_doctrine = doctrine_gender_male_dominated }
}
add = 0
}
else_if = {
limit = {
root.faith = { has_doctrine = doctrine_gender_female_dominated }
root.rite = { rite_has_doctrine = doctrine_gender_female_dominated }
}
add = 100
}