Scripted effect
designated_diarch_overwridden_by_co_ruler_effect
designated_diarch_overwridden_by_co_ruler_effect = { CO_RULER = … LIEGE = … }game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 2489 (83 lines). Parameters: $CO_RULER$, $LIEGE$.
designated_diarch_overwridden_by_co_ruler_effect is a scripted effect in Crusader Kings III, written at line 2489 of its file. A call passes 2 parameters: CO_RULER and LIEGE. The game's script calls it in 3 places, among them Elevate Child as Nominal Co-Emperor (interaction), Elevate Co-Emperor (interaction) and Elevate Co-Monarch (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (83 lines of game script)
designated_diarch_overwridden_by_co_ruler_effect = {
$LIEGE$.designated_diarch ?= {
if = {
limit = {
NOT = { this = $CO_RULER$ }
}
# Humble or content characters accept this for what it is.
if = {
limit = {
OR = {
AND = {
has_trait = humble
# ... cancelled out by...
NOT = { has_trait = ambitious }
}
AND = {
has_trait = content
# ... cancelled out by...
NOT = { has_trait = arrogant }
}
}
}
# Annoyance with you.
add_opinion = {
target = $LIEGE$
modifier = disappointed_opinion
opinion = -10
}
# Annoyance with the new co-ruler.
## Vs. player.
if = {
limit = {
# Rationale for this heinous crime at the top of this block.
NOT = { exists = scope:ai_recipient }
}
add_opinion = {
target = $CO_RULER$
modifier = insult_opinion
opinion = -15
}
}
## Vs. AI.
else = {
add_opinion = {
target = scope:ai_recipient
modifier = insult_opinion
opinion = -15
}
}
}
# Everyone else is outraged.
else = {
# Annoyance with you.
add_opinion = {
target = $LIEGE$
modifier = appointed_co_ruler_over_designated_regent_opinion
opinion = -30
}
# Annoyance with the new co-ruler.
## Vs. player.
if = {
limit = {
# Rationale for this heinous crime at the top of this block.
NOT = { exists = scope:ai_recipient }
}
add_opinion = {
target = $CO_RULER$
modifier = appointed_co_ruler_over_designated_regent_opinion
opinion = -50
}
}
## Vs. AI.
else = {
add_opinion = {
target = scope:ai_recipient
modifier = appointed_co_ruler_over_designated_regent_opinion
opinion = -50
}
}
}
}
}
}As written in game/common/scripted_effects/00_diarchy_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls designated_diarch_overwridden_by_co_ruler_effect.
Character interactions (3)
Source: game/common/scripted_effects/00_diarchy_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.