More fixes

This commit is contained in:
Heidesommer 2026-05-28 07:00:37 -04:00
parent f78dbd4986
commit a6f8acc22f
23 changed files with 5790 additions and 1934 deletions

View file

@ -2241,50 +2241,50 @@ purchase_truce_interaction = {
base = 0
# Struggle
modifier = {
trigger_if = {
limit = {
scope:recipient = {
any_character_struggle = {
involvement = involved
}
}
scope:actor = {
any_character_struggle = {
involvement = involved
}
}
}
}
trigger_else = {
always = no
}
add = {
value = 0
if = {
limit = {
scope:recipient = {
any_character_struggle = {
phase_has_catalyst = catalyst_sign_truce_outside_war
}
has_character_flag = agenda_towards_escalation
}
}
add = -50
}
else_if = {
limit = {
scope:recipient = {
any_character_struggle = {
phase_has_catalyst = catalyst_sign_truce_outside_war
}
}
}
add = 100
}
}
desc = AI_STRUGGLE_INTENT
}
# modifier = {
# trigger_if = {
# limit = {
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# }
# }
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# }
# }
# }
# }
# trigger_else = {
# always = no
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:recipient = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_sign_truce_outside_war
# }
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -50
# }
# else_if = {
# limit = {
# scope:recipient = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_sign_truce_outside_war
# }
# }
# }
# add = 100
# }
# }
# desc = AI_STRUGGLE_INTENT
# }
# Factor up or down based on the sum offered.
## Small.
@ -2579,42 +2579,42 @@ purchase_truce_interaction = {
}
# Struggle
modifier = {
scope:recipient = {
any_character_struggle = {
involvement = involved
}
}
scope:actor = {
any_character_struggle = {
involvement = involved
}
}
add = {
value = 0
if = {
limit = {
scope:actor = {
any_character_struggle = {
phase_has_catalyst = catalyst_sign_truce_outside_war
}
has_character_flag = agenda_towards_escalation
}
}
add = -50
}
else_if = {
limit = {
scope:actor = {
any_character_struggle = {
phase_has_catalyst = catalyst_sign_truce_outside_war
}
}
}
add = 100
}
}
}
# modifier = {
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# }
# }
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# }
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_sign_truce_outside_war
# }
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -50
# }
# else_if = {
# limit = {
# scope:actor = {
# any_character_struggle = {
# phase_has_catalyst = catalyst_sign_truce_outside_war
# }
# }
# }
# add = 100
# }
# }
# }
# Finally, calculate factors.
## Only buy truces from weaker/roughly-equal realms if you're craven have been at war forever.
modifier = {
@ -5350,45 +5350,45 @@ invite_foreign_ruler_to = {
}
# Struggle agenda
modifier = {
desc = AI_STRUGGLE_INTENT
scope:invite_to_feast = yes
scope:recipient = {
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast
}
}
scope:actor = {
any_character_struggle = {
involvement = involved
phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast
}
}
NAND = {
scope:actor.faith = scope:recipient.faith
scope:actor.culture = scope:recipient.culture
}
add = {
value = 0
if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_deescalation
}
}
add = 100
}
else_if = {
limit = {
scope:actor = {
has_character_flag = agenda_towards_escalation
}
}
add = -100
}
}
}
# modifier = {
# desc = AI_STRUGGLE_INTENT
# scope:invite_to_feast = yes
# scope:recipient = {
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast
# }
# }
# scope:actor = {
# any_character_struggle = {
# involvement = involved
# phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast
# }
# }
# NAND = {
# scope:actor.faith = scope:recipient.faith
# scope:actor.culture = scope:recipient.culture
# }
# add = {
# value = 0
# if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_deescalation
# }
# }
# add = 100
# }
# else_if = {
# limit = {
# scope:actor = {
# has_character_flag = agenda_towards_escalation
# }
# }
# add = -100
# }
# }
# }
}
### Performance-enhancement
#ai_potential = {