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

@ -21,7 +21,7 @@
# hidden = yes
# trigger = {
# scope:old_faith = { has_doctrine_parameter = sanctioned_false_conversion }
# scope:old_faith = { main_rite = { rite_has_parameter = sanctioned_false_conversion } }
# NOR = {
# any_secret = { type = secret_crypto_religionist }
# has_variable = forbid_crypto_reconversion
@ -43,7 +43,7 @@ false_conversion.0002 = {
scope = landed_title
trigger = {
scope:old_faith = { has_doctrine_parameter = sanctioned_false_conversion }
scope:old_faith = { main_rite = { rite_has_parameter = sanctioned_false_conversion } }
NOR = {
has_variable = false_convert
has_variable = forbid_crypto_reconversion
@ -147,8 +147,8 @@ false_conversion.0020 = {
# Deduct piety, but only if faith doesn't sanction false conversions
if = {
limit = {
faith = {
NOT = { has_doctrine_parameter = sanctioned_false_conversion }
rite = {
NOT = { rite_has_parameter = sanctioned_false_conversion }
}
}
add_piety = major_piety_loss
@ -214,10 +214,11 @@ false_conversion.0020 = {
# }
# }
stress_impact = {
stress_and_fulfillment_impact = {
zealous = medium_stress_impact_gain #Damn it, I was passionate about my openly-practiced faith!
cynical = medium_stress_impact_gain #Damn it, they're all basically the same! Probably!
}
change_spiritual_fulfillment = major_spiritual_fulfillment_value #Openly living your true faith again.
ai_chance = {
base = 60
ai_value_modifier = {
@ -243,16 +244,17 @@ false_conversion.0020 = {
# Deduct piety, but only if faith doesn't sanction false conversions
if = {
limit = {
faith = {
NOT = { has_doctrine_parameter = sanctioned_false_conversion }
rite = {
NOT = { rite_has_parameter = sanctioned_false_conversion }
}
}
add_piety = major_piety_loss
}
stress_impact = {
stress_and_fulfillment_impact = {
zealous = medium_stress_impact_gain #Damn it, I was passionate about my openly-practiced faith!
cynical = medium_stress_impact_gain #Damn it, they're all basically the same! Probably!
}
change_spiritual_fulfillment = major_spiritual_fulfillment_value #Openly living your true faith again.
ai_chance = {
base = 60
ai_value_modifier = {
@ -314,8 +316,8 @@ false_conversion.0030 = {
}
triggered_desc = {
trigger = {
faith = {
has_doctrine = doctrine_pluralism_pluralistic
rite = {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
}
desc = false_conversion.0030.desc_no_secret_faith
@ -353,7 +355,7 @@ false_conversion.0030 = {
}
if = { #If pluralistic, look at any hidden faiths.
limit = {
faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
every_vassal = {
limit = { #Providing they are equal-to-or-less in hostility.
@ -393,7 +395,7 @@ false_conversion.0030 = {
save_temporary_scope_as = current_character
root.faith = {
faith_hostility_level_comparison = {
secret_faith <= scope:current_character.faith
scope:current_character.secret_faith <= scope:current_character.faith
}
}
OR = {
@ -575,7 +577,7 @@ false_conversion.0030 = {
}
if = { #Under pluralist lieges, tell suitable players that their liege is offering amnesty.
limit = {
faith = { has_doctrine = doctrine_pluralism_pluralistic }
rite = { rite_has_doctrine = doctrine_pluralism_pluralistic }
}
every_vassal = {
limit = {
@ -598,13 +600,13 @@ false_conversion.0030 = {
# Piety loss, but not if has false conversion sanction tenet
if = {
limit = {
faith = {
NOT = { has_doctrine = tenet_false_conversion_sanction }
rite = {
NOT = { rite_has_tenet = tenet_false_conversion_sanction }
}
}
add_piety = major_piety_loss
}
stress_impact = {
stress_and_fulfillment_impact = {
honest = minor_stress_impact_loss
trusting = minor_stress_impact_loss
}
@ -695,7 +697,7 @@ false_conversion.0031 = {
modifier = religious_freedom_opinion
target = root
}
stress_impact = {
stress_and_fulfillment_impact = {
zealous = medium_stress_impact_gain
cynical = medium_stress_impact_gain
deceitful = medium_stress_impact_gain
@ -709,7 +711,7 @@ false_conversion.0031 = {
}
option = { #I know how this goes: I'll keep my private faith private.
name = false_conversion.0031.b
stress_impact = {
stress_and_fulfillment_impact = {
honest = medium_stress_impact_gain
trusting = medium_stress_impact_gain
deceitful = medium_stress_impact_loss
@ -821,7 +823,7 @@ false_conversion.1000 = {
first_valid = {
triggered_desc = {
trigger = {
faith = { has_doctrine_parameter = sanctioned_false_conversion }
rite = { rite_has_parameter = sanctioned_false_conversion }
any_in_list = {
list = spouses_and_family_to_convert
count > 1
@ -831,7 +833,7 @@ false_conversion.1000 = {
}
triggered_desc = {
trigger = {
faith = { has_doctrine_parameter = sanctioned_false_conversion }
rite = { rite_has_parameter = sanctioned_false_conversion }
}
desc = false_conversion.1000.b_sanctioned_single
}
@ -850,7 +852,7 @@ false_conversion.1000 = {
}
}
trigger = {
#faith = { has_doctrine_parameter = sanctioned_false_conversion }
#rite = { rite_has_parameter = sanctioned_false_conversion }
# Don't override old secret faiths
NOR = {
any_secret = { type = secret_crypto_religionist }
@ -866,7 +868,7 @@ false_conversion.1000 = {
religion_adopt_secret_faith_modifier = {
TARGET = root
FORCED = yes
FAITH = root.faith
RITE = root.rite
}
}
}
@ -947,11 +949,11 @@ false_conversion.1010 = {
value = yes
}
}
0 = {
10 = {
religion_adopt_secret_faith_modifier = {
TARGET = root
TARGET = scope:spouse
FORCED = yes
FAITH = root.faith
RITE = root.rite
}
save_scope_value_as = {
name = spouse_wants_secret_faith
@ -993,7 +995,7 @@ false_conversion.1010 = {
first_valid = {
triggered_desc = {
trigger = {
faith = { has_doctrine_parameter = sanctioned_false_conversion }
rite = { rite_has_parameter = sanctioned_false_conversion }
}
desc = false_conversion.1000.b_sanctioned_plural
}
@ -1025,14 +1027,14 @@ false_conversion.1010 = {
religion_adopt_secret_faith_modifier = {
TARGET = root
FORCED = yes
FAITH = root.faith
RITE = root.rite
}
}
}
}
# Secret-Faith Yearlies
# =====================
# #####################
## A Moment of Weakness
## Someone close to you is in pain, attempt to convert them to your crypto-religion as a coping method?
scripted_trigger false_conversion_2000_is_vulnerable_trigger = {
@ -1056,7 +1058,7 @@ scripted_trigger false_conversion_2000_is_vulnerable_trigger = {
}
}
}
has_trait = depressed_1
has_trait = depressed
}
}
@ -1220,14 +1222,16 @@ false_conversion.2000 = {
scope:vulnerable_relation = {
AND = {
has_character_modifier = stress_frozen_grief
OR = {
has_memory_type = friend_died
has_memory_type = best_friend_died
has_memory_type = lover_died
has_memory_type = soulmate_died
has_memory_type = relative_died
has_memory_type = spouse_died
has_memory_type = dog_died
any_memory = {
OR = {
has_memory_type = friend_died
has_memory_type = best_friend_died
has_memory_type = lover_died
has_memory_type = soulmate_died
has_memory_type = relative_died
has_memory_type = spouse_died
has_memory_type = dog_died
}
}
}
}
@ -1256,7 +1260,7 @@ false_conversion.2000 = {
}
}
else_if = {
limit = { scope:vulnerable_relation = { has_trait = depressed_1 } }
limit = { scope:vulnerable_relation = { has_trait = depressed } }
add_character_flag = {
flag = false_conversion_2000_depression
days = 1
@ -1318,7 +1322,7 @@ false_conversion.2000 = {
}
}
}
stress_impact = {
stress_and_fulfillment_impact = {
honest = minor_stress_impact_gain
}
@ -1341,7 +1345,7 @@ false_conversion.2000 = {
target = scope:vulnerable_relation
modifier = comforted_opinion
}
stress_impact = {
stress_and_fulfillment_impact = {
compassionate = minor_stress_impact_loss
}
@ -1388,7 +1392,7 @@ false_conversion.2001 = {
option = { # Convert
name = false_conversion.2001.a
false_conversion_2000_convert = yes
stress_impact = {
stress_and_fulfillment_impact = {
honest = major_stress_impact_gain
craven = medium_stress_impact_gain
paranoid = medium_stress_impact_gain
@ -1402,9 +1406,6 @@ false_conversion.2001 = {
}
}
# Bonus event: Avoid a holy war by converting to the aggressor's religion
# TO-DO
# Your secret religion has been exposed, do you openly convert to it or abandon it?
false_conversion.8000 = {
type = character_event
@ -1459,7 +1460,7 @@ false_conversion.8000 = {
add_piety = medium_piety_loss
add_piety_level = -1
stress_impact = {
stress_and_fulfillment_impact = {
zealous = major_stress_impact_gain
content = minor_stress_impact_loss
arbitrary = minor_stress_impact_loss
@ -1474,7 +1475,7 @@ false_conversion.8000 = {
set_character_faith_with_conversion = secret_faith
remove_character_secret_faith = yes
stress_impact = {
stress_and_fulfillment_impact = {
cynical = minor_stress_impact_gain
zealous = medium_stress_impact_loss
honest = minor_stress_impact_loss

File diff suppressed because it is too large Load diff

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
}

View file

@ -1,756 +0,0 @@
namespace = head_of_faith
##################################################
# #Islamic Caliphate Configuration
# 0001 - 0010 Heirs of the Prophet - Sunnis decide which caliph they consider most appropriate.
# 0011 - 0020 Heirs of the Prophet - Shias decide which caliph they consider most appropriate.
# 0021 - 0030 Heirs of the Prophet - Muhakkimas decide which caliph they consider most appropriate.
# 0031 - 0040 Heirs of the Prophet - Zandaqas decide which caliph they consider most appropriate.
#
##################################################
##################################################
# ISLAMIC CALIPHATE CONFIGURATION
scripted_trigger valid_prior_caliph_available_trigger = {
faith = { has_doctrine = muhammad_succession_$MS_TYPE$_doctrine }
scope:old_faith = {
# Uses a temporal faith...
has_doctrine = doctrine_temporal_head
# ... with a current holder...
exists = religious_head_title.holder
# ... that follows the correct succession of the Prophet.
has_doctrine = muhammad_succession_$MS_TYPE$_doctrine
# Plus make sure this isn't either of the major orthodoxies.
religious_head_title = {
NOR = {
this = title:d_sunni
this = title:d_shiite
}
}
}
}
scripted_effect grab_existing_caliph_effect = {
if = {
limit = { exists = $TITLE_PATH$.holder }
$TITLE_PATH$ = { save_scope_as = $DENOMINATION$_title }
$TITLE_PATH$.holder = { save_scope_as = $DENOMINATION$_caliph }
}
}
scripted_effect set_default_caliph_effect = {
faith = {
# Default to scope:old_title, if it exists.
if = {
limit = { exists = scope:old_title }
set_religious_head_title = scope:old_title
}
# Otherwise, try to pick the correct orthodoxy.
else_if = {
limit = {
has_doctrine = muhammad_succession_sunni_doctrine
exists = scope:sunni_title
}
set_religious_head_title = scope:sunni_title
}
else_if = {
limit = {
has_doctrine = muhammad_succession_shia_doctrine
exists = scope:shia_title
}
set_religious_head_title = scope:shia_title
}
}
}
scripted_effect set_religious_head_title_to_and_gain_hook_effect = {
# First, we set the new religious head.
faith = { set_religious_head_title = $NEW_RELIGIOUS_HEAD_TITLE$ }
# Next, if possible, we give a hook on the new religious head.
if = {
limit = {
NOT = { has_hook = $NEW_RELIGIOUS_HEAD_TITLE$.holder }
}
$NEW_RELIGIOUS_HEAD_TITLE$.holder = {
send_interface_toast = {
title = head_of_faith.0000.new_faith_submitted_for_hook
left_icon = root
root = {
add_hook = {
type = indebted_hook
target = $NEW_RELIGIOUS_HEAD_TITLE$.holder
}
}
}
}
}
# And always give a little opinion of them.
reverse_add_opinion = {
target = $NEW_RELIGIOUS_HEAD_TITLE$.holder
modifier = repentant_opinion
opinion = 25
}
}
scripted_effect set_religious_head_title_to_and_give_hook_effect = {
# First, we set the new religious head.
faith = { set_religious_head_title = $NEW_RELIGIOUS_HEAD_TITLE$ }
# Next, if possible, we give a hook on the new religious head.
if = {
limit = {
NOT = { has_hook = $NEW_RELIGIOUS_HEAD_TITLE$.holder }
}
$NEW_RELIGIOUS_HEAD_TITLE$.holder = {
send_interface_toast = {
title = head_of_faith.0000.new_faith_submitted_for_hook
left_icon = prev
add_hook = {
type = indebted_hook
target = prev
}
}
}
}
# And always give a little opinion of them.
reverse_add_opinion = {
target = $NEW_RELIGIOUS_HEAD_TITLE$.holder
modifier = repentant_opinion
opinion = 25
}
}
scripted_effect set_religious_head_title_to_&_gain_flag_effect = {
# First, we set the new religious head.
faith = { set_religious_head_title = $NEW_RELIGIOUS_HEAD_TITLE$ }
# Next, some piety.
add_piety = major_piety_gain
# Plus, we flag it that this character will likely try for independence later.
add_character_flag = wishes_to_schism_caliphate_flag
custom_tooltip = head_of_faith.0000.wishes_to_schism_caliphate_flag_added
# And always give a little opinion of them.
reverse_add_opinion = {
target = $NEW_RELIGIOUS_HEAD_TITLE$.holder
modifier = repentant_opinion
opinion = 25
}
}
##################################################
# Heirs of the Prophet - Sunni
# by Ewan Cowhig Croft
# 0001 - 0010
##################################################
# A temporal Sunni reformer decides their HoF.
head_of_faith.0001 = {
type = character_event
title = head_of_faith.0001.t
desc = head_of_faith.0001.desc
theme = faith
left_portrait = {
character = root
animation = personality_rational
}
lower_left_portrait = scope:sunni_caliph
lower_center_portrait = {
character = scope:old_caliph
trigger = {
valid_prior_caliph_available_trigger = { MS_TYPE = sunni }
}
}
cooldown = { years = 10 }
trigger = {
# Requires either a prior caliphate or a Shia one to exist.
OR = {
exists = title:d_sunni.holder
AND = {
exists = scope:old_faith.religious_head_title.holder
valid_prior_caliph_available_trigger = { MS_TYPE = sunni }
}
}
}
immediate = {
play_music_cue = "mx_cue_sacredrite"
# Grab caliphs.
grab_existing_caliph_effect = {
TITLE_PATH = title:d_sunni
DENOMINATION = sunni
}
grab_existing_caliph_effect = {
TITLE_PATH = scope:old_faith.religious_head_title
DENOMINATION = old
}
# And sort defaults.
set_default_caliph_effect = yes
}
# Realign with Sunni orthodoxy.
option = {
name = head_of_faith.0001.a
trigger = { exists = scope:sunni_caliph }
# Set up the new HoF.
set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:sunni_title }
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:sunni_caliph
multiplier = 5
}
}
}
# Follow scope:old_faith's caliph.
option = {
name = head_of_faith.0001.b
trigger = {
exists = scope:old_caliph
valid_prior_caliph_available_trigger = { MS_TYPE = sunni }
}
# Set up the new HoF.
set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title }
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = 5
}
}
}
# Scope:sunni_caliph has our _present_ loyalties.
option = {
name = head_of_faith.0001.c
trigger = { exists = scope:sunni_caliph }
# Set up the new HoF.
set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:sunni_title }
# No stress for faith-guiding.
ai_chance = {
base = 100
ai_value_modifier = {
ai_vengefulness = 1
ai_zeal = 1
}
opinion_modifier = {
opinion_target = scope:sunni_caliph
multiplier = -2
}
}
}
# We shall follow scope:old_faith... for now...
option = {
name = head_of_faith.0001.d
trigger = {
exists = scope:old_caliph
valid_prior_caliph_available_trigger = { MS_TYPE = sunni }
}
# Set up the new HoF.
set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title }
# No stress for faith-guiding.
ai_chance = {
base = 100
ai_value_modifier = {
ai_vengefulness = 1
ai_zeal = 1
}
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = -2
}
}
}
# No option for striking out on your own immediately; you have a decision for that, or could've taken a different succession doctrine.
}
##################################################
# Heirs of the Prophet - Shia
# by Ewan Cowhig Croft
# 0001 - 0010
##################################################
# A temporal Shia reformer decides their HoF.
head_of_faith.0011 = {
type = character_event
title = head_of_faith.0011.t
desc = head_of_faith.0011.desc
theme = faith
left_portrait = {
character = root
animation = personality_rational
}
lower_center_portrait = {
character = scope:old_caliph
trigger = {
valid_prior_caliph_available_trigger = { MS_TYPE = shia }
}
}
lower_right_portrait = scope:shia_caliph
cooldown = { years = 10 }
trigger = {
# Requires either a prior caliphate or a Shia one to exist.
OR = {
exists = title:d_shiite.holder
AND = {
exists = scope:old_faith.religious_head_title.holder
valid_prior_caliph_available_trigger = { MS_TYPE = shia }
}
}
}
immediate = {
play_music_cue = "mx_cue_sacredrite"
# Grab caliphs.
grab_existing_caliph_effect = {
TITLE_PATH = title:d_shiite
DENOMINATION = shia
}
grab_existing_caliph_effect = {
TITLE_PATH = scope:old_faith.religious_head_title
DENOMINATION = old
}
# And sort defaults.
set_default_caliph_effect = yes
}
# Realign with Shia orthodoxy.
option = {
name = head_of_faith.0011.a
trigger = { exists = scope:shia_caliph }
# Set up the new HoF.
set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:shia_title }
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:shia_caliph
multiplier = 5
}
}
}
# Follow scope:old_faith's caliph.
option = {
name = head_of_faith.0011.c
trigger = {
exists = scope:old_caliph
valid_prior_caliph_available_trigger = { MS_TYPE = shia }
}
# Set up the new HoF.
set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title }
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = 5
}
}
}
# Scope:shia_caliph has our _present_ loyalties.
option = {
name = head_of_faith.0011.b
trigger = { exists = scope:shia_caliph }
# Set up the new HoF.
set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:shia_title }
# No stress for faith-guiding.
ai_chance = {
base = 100
ai_value_modifier = {
ai_vengefulness = 1
ai_zeal = 1
}
opinion_modifier = {
opinion_target = scope:shia_caliph
multiplier = -2
}
}
}
# We shall follow scope:old_faith... for now...
option = {
name = head_of_faith.0011.d
trigger = {
exists = scope:old_caliph
valid_prior_caliph_available_trigger = { MS_TYPE = shia }
}
# Set up the new HoF.
set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title }
# No stress for faith-guiding.
ai_chance = {
base = 100
ai_value_modifier = {
ai_vengefulness = 1
ai_zeal = 1
}
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = -2
}
}
}
# No option for striking out on your own immediately; you have a decision for that, or could've taken a different succession doctrine.
}
##################################################
# Heirs of the Prophet - Muhakkima
# by Ewan Cowhig Croft
# 0001 - 0010
##################################################
# A temporal Muhakkima reformer decides their HoF.
head_of_faith.0021 = {
type = character_event
title = head_of_faith.0021.t
desc = head_of_faith.0021.desc
theme = faith
left_portrait = {
character = root
animation = personality_rational
}
lower_center_portrait = {
character = scope:old_caliph
trigger = {
valid_prior_caliph_available_trigger = { MS_TYPE = muhakkima }
}
}
cooldown = { years = 10 }
trigger = {
# Requires an old religious head to exist in some form.
exists = scope:old_faith.religious_head_title.holder
valid_prior_caliph_available_trigger = { MS_TYPE = muhakkima }
}
immediate = {
play_music_cue = "mx_cue_sacredrite"
# Grab the relevant caliph.
grab_existing_caliph_effect = {
TITLE_PATH = scope:old_faith.religious_head_title
DENOMINATION = old
}
# And sort defaults.
set_default_caliph_effect = yes
}
# Go our own way.
option = {
name = head_of_faith.0021.a
# Another splinter faith enters the ring.
faith = { remove_religious_head_title = yes }
# Nice chunk of piety for asserting your independence.
add_piety = major_piety_gain
# No stress for faith-guiding.
ai_chance = {
base = 100
ai_value_modifier = {
ai_zeal = 1
ai_boldness = 1
ai_vengefulness = 0.5
}
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = -2
}
}
}
# Follow scope:old_faith's caliph.
option = {
name = head_of_faith.0021.b
# Set up the new HoF.
set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title }
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = 5
}
}
}
}
##################################################
# Heirs of the Prophet - Zandaqa
# by Ewan Cowhig Croft
# 0001 - 0010
##################################################
scripted_effect decide_if_worthy_of_consideration_for_new_hof_effect = {
if = {
limit = { faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } } # Check if Zandaqa (in case this gets expanded in the future for outside the Zandaqa)
if = {
limit = { has_strong_hook = scope:pledge_target }
use_hook = scope:pledge_target
set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title }
}
else = {
show_as_tooltip = {
random_list = {
100 = { # You get Rejected
show_chance = no
desc = head_of_faith.0031.b.rejection
custom_tooltip = head_of_faith.0031.rejection.outcome
faith = { remove_religious_head_title = yes }
}
100 = { # Set up the new HoF.
show_chance = no
desc = head_of_faith.0031.b.acceptance
set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title }
}
}
}
}
if = {
limit = { is_developer_testing_trigger = yes }
custom_tooltip = debug_generic_option_shortened_trigger_can_disable # Actually the opposite
scope:pledge_target = {
trigger_event = {
id = head_of_faith.0032
days = 2
}
}
}
else = { scope:pledge_target = { trigger_event = head_of_faith.0032 } }
}
else = { set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title } }
}
# A temporal Zandaqa reformer decides their HoF.
head_of_faith.0031 = {
type = character_event
title = head_of_faith.0031.t
desc = head_of_faith.0031.desc
theme = faith
left_portrait = {
character = root
animation = personality_rational
}
lower_left_portrait = scope:sunni_caliph
lower_center_portrait = {
character = scope:old_caliph
trigger = {
valid_prior_caliph_available_trigger = { MS_TYPE = zandaqa }
}
}
lower_right_portrait = scope:shia_caliph
cooldown = { years = 10 }
trigger = {
# Requires any one caliphate to be around.
OR = {
exists = title:d_sunni.holder
exists = title:d_shiite.holder
AND = {
exists = scope:old_faith.religious_head_title.holder
valid_prior_caliph_available_trigger = { MS_TYPE = zandaqa }
}
}
}
immediate = {
play_music_cue = "mx_cue_sacredrite"
# Grab caliphs.
grab_existing_caliph_effect = {
TITLE_PATH = title:d_sunni
DENOMINATION = sunni
}
grab_existing_caliph_effect = {
TITLE_PATH = title:d_shiite
DENOMINATION = shia
}
grab_existing_caliph_effect = {
TITLE_PATH = scope:old_faith.religious_head_title
DENOMINATION = old
}
# And sort defaults.
set_default_caliph_effect = yes
save_scope_as = pledgeing_individual
}
# Go our own way.
option = {
name = head_of_faith.0031.a
# Another splinter faith enters the ring.
faith = { remove_religious_head_title = yes }
# Nice chunk of piety for asserting your independence.
add_piety = major_piety_gain
# No stress for faith-guiding.
ai_chance = {
base = 100
ai_value_modifier = {
ai_zeal = 1
ai_boldness = 1
ai_vengefulness = 0.5
}
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = -2
}
}
}
# Realign with Sunni orthodoxy.
option = {
name = head_of_faith.0031.b
trigger = { exists = scope:sunni_caliph }
scope:sunni_caliph = { save_scope_as = pledge_target }
decide_if_worthy_of_consideration_for_new_hof_effect = yes
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:sunni_caliph
multiplier = 5
}
}
}
# Realign with Shia orthodoxy.
option = {
name = head_of_faith.0031.c
trigger = { exists = scope:shia_caliph }
scope:shia_caliph = { save_scope_as = pledge_target }
decide_if_worthy_of_consideration_for_new_hof_effect = yes
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:shia_caliph
multiplier = 5
}
}
}
# Follow scope:old_faith's caliph.
option = {
name = head_of_faith.0031.d
trigger = {
exists = scope:old_caliph
valid_prior_caliph_available_trigger = { MS_TYPE = zandaqa }
}
scope:old_caliph = { save_scope_as = pledge_target }
decide_if_worthy_of_consideration_for_new_hof_effect = yes
# No stress for faith-guiding.
ai_chance = {
base = 0
opinion_modifier = {
opinion_target = scope:old_caliph
multiplier = 5
}
}
}
}
head_of_faith.0032 = {
type = letter_event
sender = scope:pledgeing_individual
opening = head_of_faith.0032.t
desc = head_of_faith.0032.desc
option = { # Yes, I will be your head
name = head_of_faith.0032.a
add_piety = medium_piety_gain
scope:pledgeing_individual = {
send_interface_message = {
type = event_religious_good
title = head_of_faith.0032.notif.a
right_icon = scope:pledge_target
set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title }
}
}
ai_chance = { # This should be a rare outcome (HOFs are usually more zealous than rational, so it should help balance it)
base = 100
ai_value_modifier = {
ai_compassion = 0.05
ai_greed = 0.1
ai_rationality = 0.5 # Rational HOFs wish to expand their influence
ai_sociability = 0.05
ai_zeal = -0.5 # Faithful HOFs dislike the Zandaqa
}
opinion_modifier = { # Opinion plays into it (no need to check with friendship, since you *should* have good op of your friends. Otherwise they are not really your friends!)
who = root
opinion_target = scope:pledgeing_individual
multiplier = 0.2
}
}
}
option = { # No, go away I don't want to be your hof
name = head_of_faith.0032.b
add_piety = medium_piety_loss
trigger = { NOT = { scope:pledgeing_individual = { has_strong_hook = scope:pledge_target } } }
show_as_unavailable = { always = yes }
scope:pledgeing_individual = {
send_interface_message = {
type = event_religious_bad
title = head_of_faith.0032.notif.b
right_icon = scope:pledge_target
faith = { remove_religious_head_title = yes }
}
}
ai_chance = { base = 100 }
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,231 +0,0 @@
namespace = human_sacrifice
##################################################
#Flowery War CB events
#0001 - Fail to sacrifice suitable victims by the time limit.
#0002 - A victim died before they could be sacrificed.
#0003 - A victim was released rather than be sacrificed.
##################################################
##################################################
# Thirsting Gods
# by Ewan Cowhig Croft
# 0001
##################################################
# You have disappointed your deities by not sacrificing marked captives.
# by Ewan Cowhig Croft
human_sacrifice.0001 = {
type = character_event
title = human_sacrifice.0001.t
desc = human_sacrifice.0001.desc
theme = faith
left_portrait = {
character = root
animation = shame
}
trigger = {
faith = { has_doctrine_parameter = human_sacrifice_active }
any_prisoner = { has_character_modifier = designated_human_sacrifice_modifier }
}
weight_multiplier = {
base = 1
}
immediate = {
every_prisoner = {
limit = { has_character_modifier = designated_human_sacrifice_modifier }
add_to_list = designated_sacrifices_list
}
save_scope_value_as = {
name = designated_sacrifice_count
value = {
value = 0
every_in_list = {
list = designated_sacrifices_list
add = 1
}
}
}
}
option = { #Immediately sacrifice the remainder to try and make amends.
name = human_sacrifice.0001.a
every_prisoner = {
limit = { has_character_modifier = designated_human_sacrifice_modifier }
death = {
death_reason = death_sacrificed_to_gods
killer = root
}
}
add_piety = {
value = miniscule_piety_gain
multiply = scope:designated_sacrifice_count
}
add_character_modifier = {
modifier = human_sacrifice_coward_modifier
years = 10
}
stress_impact = {
callous = minor_stress_impact_loss
sadistic = medium_stress_impact_loss
zealous = major_stress_impact_loss
compassionate = medium_stress_impact_gain
cynical = major_stress_impact_gain
}
ai_chance = {
base = 50
ai_value_modifier = {
ai_compassion = 0.5
ai_zeal = -0.5
}
modifier = {
add = 10
has_trait = callous
}
modifier = {
add = 20
has_trait = sadistic
}
modifier = {
add = 30
has_trait = zealous
}
modifier = {
add = -20
has_trait = compassionate
}
modifier = {
add = -30
has_trait = cynical
}
}
}
option = { #Accept the loss of piety with dignity.
name = human_sacrifice.0001.b
add_piety = {
value = medium_piety_loss
multiply = scope:designated_sacrifice_count
}
stress_impact = { zealous = medium_stress_impact_gain }
ai_chance = {
base = 50
ai_value_modifier = {
ai_zeal = 0.5
ai_energy = -0.25
}
modifier = {
add = -30
has_trait = zealous
}
}
}
option = { #Internally decry the barbarism of your faith.
name = human_sacrifice.0001.c
if = {
limit = {
NOT = {
any_secret = { type = secret_non_believer }
}
}
give_non_believer_secret_effect = yes
}
else = { add_prestige = minor_prestige_gain }
stress_impact = {
compassionate = medium_stress_impact_loss
cynical = major_stress_impact_loss
callous = minor_stress_impact_gain
sadistic = medium_stress_impact_gain
zealous = major_stress_impact_gain
}
ai_chance = {
base = 50
ai_value_modifier = {
ai_compassion = 0.5
ai_zeal = -0.5
}
modifier = {
add = 20
has_trait = compassionate
}
modifier = {
add = 30
has_trait = cynical
}
modifier = {
add = -10
has_trait = callous
}
modifier = {
add = -20
has_trait = sadistic
}
modifier = {
add = -30
has_trait = zealous
}
}
}
}
# A marked captive has died without being sacrificed.
# by Ewan Cowhig Croft
#human_sacrifice.0002 = {
#hidden = yes
#
#trigger = {
#has_character_modifier = designated_human_sacrifice_modifier
#imprisoner = {
#faith = { has_doctrine_parameter = human_sacrifice_active }
#}
#}
#
#immediate = {
#save_scope_as = dead_designated_sacrifice
#imprisoner = {
#send_interface_message = {
#type = event_religious_bad_with_text
#title = designated_sacrifice_died.t
#desc = designated_sacrifice_died.desc
#right_icon = scope:dead_designated_sacrifice
#add_piety = minor_piety_loss
#}
#}
#}
#}
# A marked captive has been released without being sacrificed.
# by Ewan Cowhig Croft
human_sacrifice.0003 = {
hidden = yes
trigger = {
has_character_modifier = designated_human_sacrifice_modifier
scope:imprisoner = {
faith = { has_doctrine_parameter = human_sacrifice_active }
}
}
immediate = {
save_scope_as = released_designated_sacrifice
scope:imprisoner = {
if = {
limit = {
scope:released_designated_sacrifice = { is_alive = yes }
}
send_interface_message = {
type = event_religious_bad_with_text
title = designated_sacrifice_release.t
desc = designated_sacrifice_released.desc
right_icon = scope:released_designated_sacrifice
add_piety = medium_piety_loss
}
}
}
remove_character_modifier = designated_human_sacrifice_modifier
}
}

View file

@ -1,115 +0,0 @@
namespace = jewish_events
### Rabbinic priesthood wants to become monogamous
jewish_events.0001 = {
type = character_event
title = jewish_events.0001.t
desc = jewish_events.0001.desc
theme = learning
left_portrait = {
character = root
animation = personality_bold
}
option = { #Just accept it
name = jewish_events.0001.a
show_as_tooltip = {
root.faith = {
remove_doctrine = doctrine_polygamy
add_doctrine = doctrine_monogamy
}
}
ai_chance = {
base = 100
}
}
option = { #Refuse to change
name = jewish_events.0001.b
trigger = {
this = root.culture.culture_head
root.culture = {
NOT = { has_cultural_tradition = tradition_polygamous }
}
}
add_piety = major_piety_loss
show_as_tooltip = {
root.faith = {
remove_doctrine = doctrine_polygamy
add_doctrine = doctrine_monogamy
}
}
root.culture = {
if = {
limit = {
has_cultural_tradition = tradition_monogamous
}
remove_culture_tradition = tradition_monogamous
}
if = {
limit = {
has_cultural_tradition = tradition_concubines
}
remove_culture_tradition = tradition_concubines
}
add_culture_tradition = tradition_polygamous
}
}
option = { #Refuse to change but also you're powerful enough to supercede the priesthood
name = jewish_events.0001.c
trigger = {
exists = root.faith.religious_head
root.faith.religious_head = { is_vassal_or_below_of = root }
}
add_piety_level = -1
reverse_add_opinion = {
target = root.faith.religious_head
modifier = insulted_opinion
opinion = -75
}
root.faith = {
set_variable = {
name = rabbinicism_rejected_monogamy
value = yes
}
}
}
after = {
add_character_flag = had_event_jewish_events_0001
if = {
limit = {
NOT = { root.faith = { has_variable = rabbinicism_rejected_monogamy } }
}
if = {
limit = {
root.faith = { has_doctrine = doctrine_polygamy }
}
root.faith = {
set_variable = {
name = rabbinicism_accepted_monogamy
value = yes
}
remove_doctrine = doctrine_polygamy
add_doctrine = doctrine_monogamy
}
}
if = {
limit = {
exists = root.faith.religious_head
root.faith.religious_head = { is_vassal_or_below_of = root }
}
every_player = {
limit = {
faith = root.faith
NOT = { has_character_flag = had_event_jewish_events_0001 }
}
trigger_event = jewish_events.0001
}
}
}
}
}