Alignment

This commit is contained in:
Heidesommer 2026-04-25 03:54:05 -04:00
parent f7a954eb51
commit 15a5108e23
250 changed files with 31104 additions and 25806 deletions

View file

@ -18,6 +18,7 @@
can_marry_common_trigger = {
is_alive = yes
NOT = { has_trait_with_flag = can_not_marry }
NOT = { has_variable = can_not_marry }
trigger_if = {
limit = {
@ -61,16 +62,16 @@ can_marry_trigger = {
allowed_to_marry_same_sex_trigger = {
has_game_rule = accepted_same_sex_marriage
faith = {
faith = {
NOR = {
has_doctrine_parameter = homosexuality_shunned
has_doctrine_parameter = homosexuality_shunned
has_doctrine_parameter = homosexuality_illegal
}
}
}
can_have_children_with = {
sex_opposite_of = $CHARACTER$ # Only opposite sex since for now
sex_opposite_of = $CHARACTER$ # Only opposite sex since for now
}
allowed_to_marry_character_gender_trigger = {
@ -129,25 +130,6 @@ could_marry_character_trigger = {
#}
}
}
trigger_if = {
limit = {
any_close_or_extended_family_member = {
any_spouse = { this = $CHARACTER$ }
}
}
faith = { has_doctrine = doctrine_consanguinity_unrestricted }
$CHARACTER$ = {
faith = { has_doctrine = doctrine_consanguinity_unrestricted }
NOT = {
any_spouse = {
is_close_or_extended_family_of = scope:can_marry_check
NOT = {
faith = { has_doctrine = doctrine_consanguinity_unrestricted }
}
}
}
}
}
# Cannot marry self
NOT = {
scope:can_marry_check = { is_spouse_of = $CHARACTER$ }
@ -282,7 +264,7 @@ can_become_concubine_of_character_trigger = {
could_marry_character_trigger = { CHARACTER = $CHARACTER$ } #Gender, recent divorce, allowed to marry, no illegal incest etc.
}
# Same as above, switching out could_marry_character_trigger for can_take_as_concubine_character_trigger, in order to better inform the player that they cannot take their ex-spouse as a concubine
# Same as above, switching out could_marry_character_trigger for can_take_as_concubine_character_trigger, in order to better inform the player that they cannot take their ex-spouse as a concubine
can_become_concubine_of_character_valid_trigger = {
is_available_quick = {
adult = yes
@ -596,7 +578,7 @@ wants_young_wife = {
count >= 2
is_alive = yes
NOT = { has_trait = bastard }
}
}
}
}
@ -612,7 +594,7 @@ will_not_be_young_wife = {
will_not_be_fertile_wife = {
is_female = yes
is_aging_character = yes
is_aging_character = yes
}
is_ruler_or_close_family = {
@ -620,8 +602,8 @@ is_ruler_or_close_family = {
is_ruler = yes
any_close_family_member = {
even_if_dead = yes
is_ruler = yes
}
is_ruler = yes
}
}
}
@ -633,3 +615,88 @@ can_have_concubines_trigger = {
}
}
}
# if $CHARACTER$ has the right to break betrothal or receive interaction for breaking betrothal?
break_betrothal_valid_target_trigger = {
is_betrothed = yes
# yourself, your courtier, or your child vassal and you were the matchmaker
trigger_if = {
limit = {
this != $CHARACTER$
}
is_ai = yes
OR = {
AND = {
is_child_of = $CHARACTER$
target_is_liege_or_above = $CHARACTER$
NOT = {
matchmaker = {
is_parent_of = prev
this != $CHARACTER$
}
}
}
AND = {
is_playable_character = no
liege = $CHARACTER$
}
}
}
}
cost_prestige_for_break_betrothal_trigger = {
OR = {
scope:rejected_betrothed = {
OR = {
is_close_family_of = scope:actor
AND = {
exists = dynasty
exists = scope:actor.dynasty
dynasty = scope:actor.dynasty
}
}
}
scope:rejecting_betrothed = {
OR = {
is_close_family_of = scope:actor
AND = {
exists = dynasty
exists = scope:actor.dynasty
dynasty = scope:actor.dynasty
}
}
}
scope:actor = {
yields_alliance = {
candidate = scope:rejecting_betrothed
target = scope:rejected_betrothal_owner
target_candidate = scope:rejected_betrothed
}
}
}
}
has_proper_reason_to_break_betrothal_trigger = {
OR = {
scope:rejecting_betrothed = {
OR = {
is_eunuch_trigger = yes
has_trait_with_flag = can_not_marry
AND = {
allowed_to_marry_same_sex_trigger = no
sex_same_as = scope:rejected_betrothed
}
}
}
scope:rejected_betrothed = {
OR = {
is_eunuch_trigger = yes
has_trait_with_flag = can_not_marry
AND = {
allowed_to_marry_same_sex_trigger = no
sex_same_as = scope:rejecting_betrothed
}
}
}
}
}