The debugging will continue until stability improves

This commit is contained in:
Heidesommer 2026-05-22 22:45:00 -04:00
parent bd75dc0b38
commit b21331e150
39 changed files with 25050 additions and 13859 deletions

View file

@ -806,21 +806,21 @@ offer_vassalization_interaction = {
}
}
modifier = { # Iberian Struggle, less likely for outsiders to vassalize inside
add = -35
desc = iberian_struggle_reason_reason
trigger = {
scope:actor = {
NOT = {
any_character_struggle = { is_struggle_type = iberian_struggle }
}
}
scope:recipient = {
any_character_struggle = { is_struggle_type = iberian_struggle }
}
}
}
# modifier = { # Iberian Struggle, less likely for outsiders to vassalize inside
# add = -35
# desc = iberian_struggle_reason_reason
# trigger = {
# scope:actor = {
# NOT = {
# any_character_struggle = { is_struggle_type = iberian_struggle }
# }
# }
# scope:recipient = {
# any_character_struggle = { is_struggle_type = iberian_struggle }
# }
# }
# }
#
modifier = { #Ageism modifier vs kids.
desc = offer_vassalization_interaction_aibehavior_child_tt
trigger = {

View file

@ -747,18 +747,18 @@ gift_interaction = {
}
}
modifier = {
add = 100
scope:actor = {
is_at_war = no
has_trait = fp3_struggle_supporter
any_character_struggle = { is_struggle_type = persian_struggle }
}
scope:recipient = {
title:d_sunni.holder ?= this
gold < 0
}
}
# modifier = {
# add = 100
# scope:actor = {
# is_at_war = no
# has_trait = fp3_struggle_supporter
# any_character_struggle = { is_struggle_type = persian_struggle }
# }
# scope:recipient = {
# title:d_sunni.holder ?= this
# gold < 0
# }
# }
# Nomads are slightly less likely to do this since they'd prefer to send Herd instead
modifier = {

View file

@ -995,32 +995,32 @@ arrange_marriage_interaction = {
localization = MARRIAGE_HOOK
}
send_option = { # FP3
is_shown = {
scope:actor = {
any_character_struggle = {
is_struggle_type = persian_struggle
has_struggle_phase_parameter = can_trade_piety_for_marriage_acceptance
}
}
}
is_valid = {
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = persian_struggle
}
}
scope:recipient = {
any_character_struggle = {
involvement = involved
is_struggle_type = persian_struggle
}
}
}
flag = piety_cost_reduction
localization = TRADE_PIETY_FOR_BETTER_AI_ACCEPTANCE
}
# send_option = { # FP3
# is_shown = {
# scope:actor = {
# any_character_struggle = {
# is_struggle_type = persian_struggle
# has_struggle_phase_parameter = can_trade_piety_for_marriage_acceptance
# }
# }
# }
# is_valid = {
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = persian_struggle
# }
# }
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = persian_struggle
# }
# }
# }
# flag = piety_cost_reduction
# localization = TRADE_PIETY_FOR_BETTER_AI_ACCEPTANCE
# }
send_option = { # EP3 Influence
is_shown = { # Actor must have a government that uses influence

View file

@ -842,62 +842,62 @@ befriend_interaction = {
# Struggle
modifier = {
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_friend_lover_with_character
}
}
scope:recipient = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_friend_lover_with_character
}
}
add = {
value = 0
if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_deescalation
trait_compatibility = {
target = scope:recipient
value >= low_positive_trait_compatibility
}
}
scope:recipient = {
has_character_flag = agenda_towards_deescalation
}
}
add = 200
}
else_if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_deescalation
trait_compatibility = {
target = scope:recipient
value >= low_positive_trait_compatibility
}
}
}
add = 50
}
else_if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_escalation
}
}
add = -200
}
else = {
add = 10
}
}
}
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_friend_lover_with_character
# }
# }
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_friend_lover_with_character
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_deescalation
# trait_compatibility = {
# target = scope:recipient
# value >= low_positive_trait_compatibility
# }
# }
# scope:recipient = {
# has_character_flag = agenda_towards_deescalation
# }
# }
# add = 200
# }
# else_if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_deescalation
# trait_compatibility = {
# target = scope:recipient
# value >= low_positive_trait_compatibility
# }
# }
# }
# add = 50
# }
# else_if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -200
# }
# else = {
# add = 10
# }
# }
# }
modifier = {
factor = 25
@ -1402,52 +1402,52 @@ seduce_interaction = {
}
}
# Struggle
modifier = {
scope:recipient = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_friend_lover_with_character
}
}
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_friend_lover_with_character
}
}
add = {
value = 0
if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_deescalation
trait_compatibility = {
target = scope:recipient
value >= low_positive_trait_compatibility
}
}
scope:recipient = {
has_character_flag = agenda_towards_deescalation
}
}
add = 50
}
else_if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_escalation
}
}
add = -200
}
else = {
add = 5
}
}
}
# # Struggle
# modifier = {
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_friend_lover_with_character
# }
# }
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_friend_lover_with_character
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_deescalation
# trait_compatibility = {
# target = scope:recipient
# value >= low_positive_trait_compatibility
# }
# }
# scope:recipient = {
# has_character_flag = agenda_towards_deescalation
# }
# }
# add = 50
# }
# else_if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -200
# }
# else = {
# add = 5
# }
# }
# }
modifier = {
factor = 1.25
@ -1843,25 +1843,25 @@ court_interaction = {
ai_potential = {
is_adult = yes
trigger_if = {
limit = {
NOR = {
culture = {
has_cultural_parameter = ai_romance_scheme_increase
}
AND = {
has_character_flag = agenda_towards_deescalation
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
}
}
}
}
ai_honor >= high_positive_ai_value
ai_compassion >= low_positive_ai_value
}
# trigger_if = {
# limit = {
# NOR = {
# culture = {
# has_cultural_parameter = ai_romance_scheme_increase
# }
# AND = {
# has_character_flag = agenda_towards_deescalation
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
# }
# }
# }
# }
# ai_honor >= high_positive_ai_value
# ai_compassion >= low_positive_ai_value
# }
highest_held_title_tier > tier_barony
NOR = {
has_trait = celibate
@ -1881,69 +1881,69 @@ court_interaction = {
# Struggle
modifier = {
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
}
}
scope:recipient = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
}
}
add = {
value = 0
if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_deescalation
}
scope:recipient = {
has_character_flag = agenda_towards_deescalation
}
}
add = 25
}
else_if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_escalation
}
}
add = -200
}
else = {
add = 5
}
}
}
modifier = { # Motivate AI's to use it on catalyst providers exclusively
add = -50
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
}
}
scope:recipient = {
NOT = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
}
}
}
}
# # Struggle
# modifier = {
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
# }
# }
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_deescalation
# }
# scope:recipient = {
# has_character_flag = agenda_towards_deescalation
# }
# }
# add = 25
# }
# else_if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -200
# }
# else = {
# add = 5
# }
# }
# }
# modifier = { # Motivate AI's to use it on catalyst providers exclusively
# add = -50
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
# }
# }
# scope:recipient = {
# NOT = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# phase_has_catalyst = catalyst_became_best_friend_soulmate_with_very_important_character
# }
# }
# }
# }
#
opinion_modifier = {
opinion_target = scope:recipient
multiplier = 0.4

View file

@ -3295,71 +3295,71 @@ vassal_claim_liege_title_interaction = {
}
# Agenda impact
modifier = {
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
}
}
add = {
value = 0
if = {
limit = {
scope:actor = {
any_character_struggle = {
phase_has_catalyst = catalyst_gain_claim_on_title_fp2
}
has_character_flag = agenda_towards_escalation
}
}
add = 200
}
else_if = {
limit = {
scope:actor = {
any_character_struggle = {
phase_has_catalyst = catalyst_gain_claim_on_title_fp2
}
}
}
add = -100
}
}
}
modifier = {
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = persian_struggle
}
}
add = {
value = 0
if = {
limit = {
scope:actor = {
any_character_struggle = {
phase_has_catalyst = catalyst_gain_claim_on_title_fp3
}
has_trait = fp3_struggle_detractor
}
}
add = 200
}
else_if = {
limit = {
scope:actor = {
any_character_struggle = {
phase_has_catalyst = catalyst_gain_claim_on_title_fp3
}
}
}
add = -100
}
}
}
# modifier = {
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_gain_claim_on_title_fp2
# }
# has_character_flag = agenda_towards_escalation
# }
# }
# add = 200
# }
# else_if = {
# limit = {
# scope:actor = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_gain_claim_on_title_fp2
# }
# }
# }
# add = -100
# }
# }
# }
#
# modifier = {
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = persian_struggle
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_gain_claim_on_title_fp3
# }
# has_trait = fp3_struggle_detractor
# }
# }
# add = 200
# }
# else_if = {
# limit = {
# scope:actor = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_gain_claim_on_title_fp3
# }
# }
# }
# add = -100
# }
# }
# }
modifier = {
factor = 0.25

View file

@ -2692,30 +2692,30 @@ incite_revolts_interaction = {
has_relation_rival = scope:recipient
}
}
# Only available during Opportunity, Hostility and Tension phases
scope:actor = {
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = unlocks_incite_revolts_interaction
# Can only target involved
is_secondary_character_involvement_involved_trigger = { CHAR = scope:recipient }
}
}
AND = {
scope:actor = {
has_trait = fp3_struggle_detractor
any_character_struggle = {
involvement = involved
is_struggle_type = persian_struggle
}
}
scope:recipient = {
any_character_struggle = {
is_struggle_type = persian_struggle
involvement = involved
}
}
}
# # Only available during Opportunity, Hostility and Tension phases
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# has_struggle_phase_parameter = unlocks_incite_revolts_interaction
# # Can only target involved
# is_secondary_character_involvement_involved_trigger = { CHAR = scope:recipient }
# }
# }
# AND = {
# scope:actor = {
# has_trait = fp3_struggle_detractor
# any_character_struggle = {
# involvement = involved
# is_struggle_type = persian_struggle
# }
# }
# scope:recipient = {
# any_character_struggle = {
# is_struggle_type = persian_struggle
# involvement = involved
# }
# }
# }
scope:actor.domicile ?= {
has_domicile_parameter = can_use_incite_revolts
}
@ -3026,18 +3026,18 @@ incite_revolts_interaction = {
ai_potential = {
short_term_gold >= medium_gold_value
OR = {
any_character_struggle = {
has_struggle_phase_parameter = unlocks_incite_revolts_interaction
involvement = involved
OR = {
is_struggle_phase = struggle_iberia_phase_opportunity
is_struggle_phase = struggle_iberia_phase_hostility
}
}
any_character_struggle = {
is_struggle_type = persian_struggle
involvement = involved
}
# any_character_struggle = {
# has_struggle_phase_parameter = unlocks_incite_revolts_interaction
# involvement = involved
# OR = {
# is_struggle_phase = struggle_iberia_phase_opportunity
# is_struggle_phase = struggle_iberia_phase_hostility
# }
# }
# any_character_struggle = {
# is_struggle_type = persian_struggle
# involvement = involved
# }
domicile ?= {
has_domicile_parameter = can_use_incite_revolts
}
@ -5075,26 +5075,26 @@ invite_foreign_ruler_to = {
# Interaction deprecated by new activity planning system
always = no
scope:actor != scope:recipient
# Scope:actor needs to either be involved in certain struggle types or else have a specific perk.
scope:actor = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
}
}
# Scope:recipient must be landed, and neither over or under scope:actor.
scope:recipient = {
any_character_struggle = {
involvement = involved
is_struggle_type = iberian_struggle
}
is_playable_character = yes
NOR = {
any_liege_or_above = { this = scope:actor }
any_vassal_or_below = { this = scope:actor }
}
}
# scope:actor != scope:recipient
# # Scope:actor needs to either be involved in certain struggle types or else have a specific perk.
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# }
# }
# # Scope:recipient must be landed, and neither over or under scope:actor.
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# is_struggle_type = iberian_struggle
# }
# is_playable_character = yes
# NOR = {
# any_liege_or_above = { this = scope:actor }
# any_vassal_or_below = { this = scope:actor }
# }
# }
}
is_valid_showing_failures_only = {

View file

@ -667,20 +667,20 @@
}
}
modifier = { # Iberian Struggle, less likely for outsiders to vassalize inside
add = -35
desc = iberian_struggle_reason_reason
trigger = {
scope:actor = {
NOT = {
any_character_struggle = { is_struggle_type = iberian_struggle }
}
}
scope:recipient = {
any_character_struggle = { is_struggle_type = iberian_struggle }
}
}
}
# modifier = { # Iberian Struggle, less likely for outsiders to vassalize inside
# add = -35
# desc = iberian_struggle_reason_reason
# trigger = {
# scope:actor = {
# NOT = {
# any_character_struggle = { is_struggle_type = iberian_struggle }
# }
# }
# scope:recipient = {
# any_character_struggle = { is_struggle_type = iberian_struggle }
# }
# }
# }
modifier = { #Ageism modifier vs kids.
desc = offer_vassalization_interaction_aibehavior_child_tt
@ -9008,20 +9008,20 @@ mpo_offer_submission_or_ruin = {
}
}
modifier = { # Iberian Struggle, less likely for outsiders to vassalize inside
add = -35
desc = iberian_struggle_reason_reason
trigger = {
scope:actor = {
NOT = {
any_character_struggle = { is_struggle_type = iberian_struggle }
}
}
scope:recipient = {
any_character_struggle = { is_struggle_type = iberian_struggle }
}
}
}
# modifier = { # Iberian Struggle, less likely for outsiders to vassalize inside
# add = -35
# desc = iberian_struggle_reason_reason
# trigger = {
# scope:actor = {
# NOT = {
# any_character_struggle = { is_struggle_type = iberian_struggle }
# }
# }
# scope:recipient = {
# any_character_struggle = { is_struggle_type = iberian_struggle }
# }
# }
# }
modifier = { #Ageism modifier vs kids.
desc = offer_vassalization_interaction_aibehavior_child_tt