This commit is contained in:
Heidesommer 2026-05-25 07:54:55 -04:00
parent 26b04f6db4
commit c6eb868ef4
116 changed files with 69758 additions and 26333 deletions

View file

@ -819,154 +819,154 @@ on_death = {
}
}
# Struggle Catalysts
## Generic unnatural deaths.
if = {
limit = { exists = scope:killer }
if = { # FP2/Generic
limit = {
is_important_or_vip_struggle_character = yes
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_unnatural_death_important_character
}
}
every_character_struggle = {
involvement = involved
activate_struggle_catalyst = {
catalyst = catalyst_unnatural_death_important_character
character = root
}
}
}
if = {
limit = {
has_trait = fp3_struggle_supporter
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_unnatural_death_supporter
}
}
every_character_struggle = {
involvement = involved
activate_struggle_catalyst = {
catalyst = catalyst_unnatural_death_supporter
character = root
}
log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_unnatural_death_supporter }
}
}
if = {
limit = {
has_trait = fp3_struggle_detractor
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_unnatural_death_detractor
}
}
every_character_struggle = {
involvement = involved
activate_struggle_catalyst = {
catalyst = catalyst_unnatural_death_detractor
character = root
}
log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_unnatural_death_detractor }
}
}
}
## Caliphal deaths.
if = {
limit = { has_title = title:d_sunni }
## Did they die violently?
### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
if = {
limit = {
exists = scope:killer
struggle:persian_struggle ?= {
phase_has_catalyst = catalyst_caliph_died_violently
NOT = { has_variable = significant_character_death_cooldown }
}
}
struggle:persian_struggle = {
activate_struggle_catalyst = {
catalyst = catalyst_caliph_died_violently
character = root
}
log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_violently }
set_variable = {
name = significant_character_death_cooldown
value = yes
years = catalyst_cooldown_between_significant_character_deaths_years_value
}
}
}
## If not, give the natural version.
### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
else_if = {
limit = {
struggle:persian_struggle ?= {
phase_has_catalyst = catalyst_caliph_died_naturally
NOT = { has_variable = significant_character_death_cooldown }
}
}
struggle:persian_struggle = {
activate_struggle_catalyst = {
catalyst = catalyst_caliph_died_naturally
character = root
}
log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_naturally }
set_variable = {
name = significant_character_death_cooldown
value = yes
years = catalyst_cooldown_between_significant_character_deaths_years_value
}
}
}
}
# Other Struggle Stuff
## Caliphal deaths part 2: because people tend to remember stuff like that.
if = {
limit = {
has_title = title:d_sunni
# Check that scope:killer is in some way involved in the on-going disputes.
scope:killer ?= {
any_character_struggle = { this = struggle:persian_struggle }
# Inter-familial murders within the caliphate don't count, that's just politics.
exists = root.dynasty
NOT = { dynasty ?= root.dynasty }
}
}
# Cool, we've established you're involved enough to assign traits to and don't have extenuating circumstances.
scope:killer = {
# Are you a supporter? If so, invert.
if = {
limit = { has_trait = fp3_struggle_supporter }
send_interface_toast = {
type = event_toast_effect_neutral
title = persian_struggle.tt.supporter_killed_caliph
left_icon = root
hidden_effect = { remove_trait = fp3_struggle_supporter }
add_trait_force_tooltip = fp3_struggle_detractor
}
}
# Are you neutral? If so, become a detractor.
else_if = {
limit = {
NOR = {
has_trait = fp3_struggle_supporter
has_trait = fp3_struggle_detractor
}
}
send_interface_toast = {
type = event_toast_effect_neutral
title = persian_struggle.tt.neutral_killed_caliph
left_icon = root
add_trait = fp3_struggle_detractor
}
}
# Else you're a detractor? You're good, carry on as you are.
}
}
# # Struggle Catalysts
# ## Generic unnatural deaths.
# if = {
# limit = { exists = scope:killer }
# if = { # FP2/Generic
# limit = {
# is_important_or_vip_struggle_character = yes
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_unnatural_death_important_character
# }
# }
# every_character_struggle = {
# involvement = involved
# activate_struggle_catalyst = {
# catalyst = catalyst_unnatural_death_important_character
# character = root
# }
# }
# }
# if = {
# limit = {
# has_trait = fp3_struggle_supporter
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_unnatural_death_supporter
# }
# }
# every_character_struggle = {
# involvement = involved
# activate_struggle_catalyst = {
# catalyst = catalyst_unnatural_death_supporter
# character = root
# }
# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_unnatural_death_supporter }
# }
# }
# if = {
# limit = {
# has_trait = fp3_struggle_detractor
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_unnatural_death_detractor
# }
# }
# every_character_struggle = {
# involvement = involved
# activate_struggle_catalyst = {
# catalyst = catalyst_unnatural_death_detractor
# character = root
# }
# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_unnatural_death_detractor }
# }
# }
# }
# ## Caliphal deaths.
# if = {
# limit = { has_title = title:d_sunni }
# ## Did they die violently?
# ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
# if = {
# limit = {
# exists = scope:killer
# struggle:persian_struggle ?= {
# phase_has_catalyst = catalyst_caliph_died_violently
# NOT = { has_variable = significant_character_death_cooldown }
# }
# }
# struggle:persian_struggle = {
# activate_struggle_catalyst = {
# catalyst = catalyst_caliph_died_violently
# character = root
# }
# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_violently }
# set_variable = {
# name = significant_character_death_cooldown
# value = yes
# years = catalyst_cooldown_between_significant_character_deaths_years_value
# }
# }
# }
# ## If not, give the natural version.
# ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
# else_if = {
# limit = {
# struggle:persian_struggle ?= {
# phase_has_catalyst = catalyst_caliph_died_naturally
# NOT = { has_variable = significant_character_death_cooldown }
# }
# }
# struggle:persian_struggle = {
# activate_struggle_catalyst = {
# catalyst = catalyst_caliph_died_naturally
# character = root
# }
# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_naturally }
# set_variable = {
# name = significant_character_death_cooldown
# value = yes
# years = catalyst_cooldown_between_significant_character_deaths_years_value
# }
# }
# }
# }
# # Other Struggle Stuff
# ## Caliphal deaths part 2: because people tend to remember stuff like that.
# if = {
# limit = {
# has_title = title:d_sunni
# # Check that scope:killer is in some way involved in the on-going disputes.
# scope:killer ?= {
# any_character_struggle = { this = struggle:persian_struggle }
# # Inter-familial murders within the caliphate don't count, that's just politics.
# exists = root.dynasty
# NOT = { dynasty ?= root.dynasty }
# }
# }
# # Cool, we've established you're involved enough to assign traits to and don't have extenuating circumstances.
# scope:killer = {
# # Are you a supporter? If so, invert.
# if = {
# limit = { has_trait = fp3_struggle_supporter }
# send_interface_toast = {
# type = event_toast_effect_neutral
# title = persian_struggle.tt.supporter_killed_caliph
# left_icon = root
# hidden_effect = { remove_trait = fp3_struggle_supporter }
# add_trait_force_tooltip = fp3_struggle_detractor
# }
# }
# # Are you neutral? If so, become a detractor.
# else_if = {
# limit = {
# NOR = {
# has_trait = fp3_struggle_supporter
# has_trait = fp3_struggle_detractor
# }
# }
# send_interface_toast = {
# type = event_toast_effect_neutral
# title = persian_struggle.tt.neutral_killed_caliph
# left_icon = root
# add_trait = fp3_struggle_detractor
# }
# }
# # Else you're a detractor? You're good, carry on as you are.
# }
# }
every_close_family_member = {
create_character_memory = {

File diff suppressed because it is too large Load diff

View file

@ -449,29 +449,29 @@ on_character_faith_change = {
}
}
}
## Struggle Effects
### persian_struggle: switching faith to anything that isn't an orthodox Sunni creed'll flip you to detractor.
if = {
limit = {
# Gotta be in the appropriate struggle.
any_character_struggle = { this = struggle:persian_struggle }
# Filter out pre-existing detractors.
NOT = { has_trait = fp3_struggle_detractor }
# Now, check the new faith.
exists = title:d_sunni.holder
OR = {
NOT = { exists = faith.religious_head }
NOT = { faith.religious_head = title:d_sunni.holder }
}
}
send_interface_toast = {
type = event_toast_effect_neutral
title = persian_struggle.tt.converted_away_from_sunni_orthodoxy
left_icon = root
hidden_effect = { remove_trait = fp3_struggle_supporter }
add_trait_force_tooltip = fp3_struggle_detractor
}
}
# ## Struggle Effects
# ### persian_struggle: switching faith to anything that isn't an orthodox Sunni creed'll flip you to detractor.
# if = {
# limit = {
# # Gotta be in the appropriate struggle.
# any_character_struggle = { this = struggle:persian_struggle }
# # Filter out pre-existing detractors.
# NOT = { has_trait = fp3_struggle_detractor }
# # Now, check the new faith.
# exists = title:d_sunni.holder
# OR = {
# NOT = { exists = faith.religious_head }
# NOT = { faith.religious_head = title:d_sunni.holder }
# }
# }
# send_interface_toast = {
# type = event_toast_effect_neutral
# title = persian_struggle.tt.converted_away_from_sunni_orthodoxy
# left_icon = root
# hidden_effect = { remove_trait = fp3_struggle_supporter }
# add_trait_force_tooltip = fp3_struggle_detractor
# }
# }
# Local conversion
if = {

File diff suppressed because it is too large Load diff

View file

@ -777,7 +777,7 @@ yearly_playable_pulse = {
limit = {
government_has_flag = government_is_prepublic
any_held_title = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
NOT = {
has_title_law = saxon_elective_succession_law
@ -786,7 +786,7 @@ yearly_playable_pulse = {
}
every_held_title = {
limit = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
}
add_title_law = saxon_elective_succession_law
@ -814,7 +814,7 @@ yearly_playable_pulse = {
limit = {
government_has_flag = government_is_urepublic
any_held_title = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
NOT = {
has_title_law = urban_elective_succession_law
@ -823,7 +823,7 @@ yearly_playable_pulse = {
}
every_held_title = {
limit = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
}
add_title_law = urban_elective_succession_law
@ -1236,7 +1236,7 @@ yearly_playable_pulse = {
}
else_if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
OR = {
has_domicile_building_or_higher = village_rice_field_01
@ -1254,7 +1254,7 @@ yearly_playable_pulse = {
}
if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
has_domicile_building_or_higher = village_grazing_land_05
}
@ -1267,7 +1267,7 @@ yearly_playable_pulse = {
}
else_if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
has_domicile_building_or_higher = village_grazing_land_03
}
@ -1280,7 +1280,7 @@ yearly_playable_pulse = {
}
else_if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
has_domicile_building_or_higher = village_grazing_land_01
}
@ -1295,7 +1295,7 @@ yearly_playable_pulse = {
}
if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
has_domicile_building_or_higher = communal_gardens_fruit_05
}
@ -1308,7 +1308,7 @@ yearly_playable_pulse = {
}
else_if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
has_domicile_building_or_higher = communal_gardens_03
}
@ -1321,7 +1321,7 @@ yearly_playable_pulse = {
}
else_if = {
limit = {
government = landless_minority_government
has_government = landless_minority_government
domicile ?= {
has_domicile_building_or_higher = communal_gardens_01
}
@ -1705,7 +1705,7 @@ yearly_playable_pulse = {
}
# Failsafe to ensure we don't get independent admin rulers of too low a rank (i.e. below king)
# Failsafe to ensure we don't have a noble family holding land without other titles - Give any held land to liege
else_if = {
if = {
limit = {
# They are a Vassal
is_independent_ruler = no
@ -2319,11 +2319,11 @@ three_year_playable_pulse = {
events = {
adultery.0001 #Suspected spouse/soulmate of cheating (increased chance when there is a lover, but can also trigger otherwise)
}
random_events = {
800 = 0
200 = global_culture.3011
600 = global_culture.3012
}
# random_events = {
# 800 = 0
# 200 = global_culture.3011
# 600 = global_culture.3012
# }
effect = {
if = { # Nomadic herd starves if you're landless
limit = {
@ -2771,7 +2771,7 @@ quarterly_playable_pulse = {
limit = {
government_has_flag = government_is_prepublic
any_held_title = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
NOT = {
has_title_law = saxon_elective_succession_law
@ -2780,7 +2780,7 @@ quarterly_playable_pulse = {
}
every_held_title = {
limit = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
}
add_title_law = saxon_elective_succession_law
@ -2808,7 +2808,7 @@ quarterly_playable_pulse = {
limit = {
government_has_flag = government_is_urepublic
any_held_title = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
NOT = {
has_title_law = urban_elective_succession_law
@ -2817,7 +2817,7 @@ quarterly_playable_pulse = {
}
every_held_title = {
limit = {
title_tier > barony
tier >= tier_county
is_nomad_title = no
}
add_title_law = urban_elective_succession_law
@ -3392,7 +3392,7 @@ on_yearly_events = {
400 = yearly_persian.1101 # Shu'ubiyya, or Persian Nationalism (From the foreign side)
# Varangian Guard
400 = varangian.0001 # A Courtier wants to join the Varangian Guard
# 400 = varangian.0001 # A Courtier wants to join the Varangian Guard
#Pet story cycles
20 = pet_animal.5001 # Rival has cat...
@ -3653,12 +3653,12 @@ on_yearly_events = {
180 = fp2_yearly.8004 # Translation School
180 = fp2_yearly.8005 # Under the Stone Pine
180 = fp2_yearly.8006 # Saqaliba Settlers
180 = fp2_struggle.1002 # Xenophilic Advancment
160 = fp2_struggle.1050 # Dreams of Destruction
150 = fp2_struggle.2000 # Disorderly Market
140 = fp2_struggle.2008 # Misdeeds of the Councillor
300 = fp2_struggle.2013 # The Secret to Freedom
130 = fp2_struggle.2015 # Letter on the Back
# 180 = fp2_struggle.1002 # Xenophilic Advancment
# 160 = fp2_struggle.1050 # Dreams of Destruction
# 150 = fp2_struggle.2000 # Disorderly Market
# 140 = fp2_struggle.2008 # Misdeeds of the Councillor
# 300 = fp2_struggle.2013 # The Secret to Freedom
# 130 = fp2_struggle.2015 # Letter on the Back
180 = fp2_yearly.2025 # Suffering from Success
150 = fp2_yearly.4001 # You fancy a little siesta
150 = fp2_yearly.4002 # A county is increasingly religiously intertwined