Scripted trigger · By God Alone files
divorce_is_justified_trigger
divorce_is_justified_trigger = { DIVORCER = … }game/common/scripted_triggers/pam_scripted_triggers.txt, line 3731 (68 lines). Parameters: $DIVORCER$.
divorce_is_justified_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 3731 of its file. A call passes 1 parameter: DIVORCER. The game's script calls it in 2 places, among them Request Divorce (interaction) and Request Divorce (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
One of these
relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:secondary_recipient }or
All of these
- Their faith is the same as that of recipient
sex_same_as = scope:secondary_recipientallowed_to_marry_same_sex_trigger = no
or
scope:secondary_recipient: Has the Modifier: Accused of Impotencyor
scope:secondary_recipient › Any relation:NOT = { this = $DIVORCER$ }NOT = { this = scope:recipient }relation_with_character_is_incestuous_in_my_rite_trigger = { CHARACTER = scope:secondary_recipient }
or
scope:secondary_recipient:exposed_cheating_on_spouse_trigger = { SPOUSE = $DIVORCER$ }
or
scope:secondary_recipient:is_female = nois_eunuch_trigger = yes
or
All of these
- Any consort:
is_alive = yesthis != scope:secondary_recipient
- Any consort:
this = scope:secondary_recipient
All of these
- scope:secondary_recipient.culture: Their culture does not have the tradition Polygamous
- scope:secondary_recipient.rite: Does not have the Polygamous Doctrine
- Any consort:
or
scope:secondary_recipient.faith:faith_hostility_level = { target = scope:recipient.faith value >= faith_hostile_level }
or
scope:secondary_recipient: Has the Trait: Adultereror
scope:secondary_recipient:- Fertility less than 0.1
None of these
- Any child › Any parent:
this = $DIVORCER$
- Any child › Any parent:
or
$DIVORCER$ = { … }
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (68 lines of game script)
divorce_is_justified_trigger = {
OR = {
relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:secondary_recipient }
AND = {
faith = scope:recipient.faith
sex_same_as = scope:secondary_recipient
allowed_to_marry_same_sex_trigger = no
}
scope:secondary_recipient = {
has_character_modifier = wedding_accused_impotency_modifier
}
scope:secondary_recipient = {
any_relation = {
type = lover
NOR = {
this = $DIVORCER$
this = scope:recipient
}
relation_with_character_is_incestuous_in_my_rite_trigger = { CHARACTER = scope:secondary_recipient }
}
}
scope:secondary_recipient = {
exposed_cheating_on_spouse_trigger = { SPOUSE = $DIVORCER$ }
}
scope:secondary_recipient = {
is_female = no
is_eunuch_trigger = yes
}
AND = {
any_consort = {
is_alive = yes
this != scope:secondary_recipient
}
any_consort = {
this = scope:secondary_recipient
}
AND = {
scope:secondary_recipient.culture = { NOT = { has_cultural_tradition = tradition_polygamous } }
scope:secondary_recipient.rite = { NOT = { rite_has_doctrine = doctrine_polygamy } }
}
}
scope:secondary_recipient.faith = {
faith_hostility_level = {
target = scope:recipient.faith
value >= faith_hostile_level
}
}
scope:secondary_recipient = {
has_trait = adulterer
}
scope:secondary_recipient = {
fertility < 0.1
NOT = {
any_child = {
any_parent = {
this = $DIVORCER$
}
}
}
}
$DIVORCER$ = {
has_opinion_modifier = {
modifier = attempted_murder_me_crime
target = scope:secondary_recipient
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls divorce_is_justified_trigger.
Character interactions (2)
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.