Scripted effect · By God Alone files
ecclesiastical_de_jure_shifting_effect
ecclesiastical_de_jure_shifting_effect = { CLERIC = … DE_JURE_MASTER = … }game/common/scripted_effects/pam_effects.txt, line 13216 (304 lines). Parameters: $CLERIC$, $DE_JURE_MASTER$.
ecclesiastical_de_jure_shifting_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 13216 of its file. A call passes 2 parameters: CLERIC and DE_JURE_MASTER. The game's script calls it in 4 places, among them Beseech De Jure Rights (interaction), Bestow De Jure Lands (interaction) and pam_interactions_events.0094 (event). Its body carries 5 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
- … becomes De Jure Liege of …
If
scope:promise_domination ?= yes
Then
- If has Legitimacy: In 5 years, if there still any non-⟨faith⟩ Rulers whose Realms contain a De Jure … County, you will lose 1 Level of Devotion and -300 Legitimacy
- Otherwise: In 5 years, if there still any non-⟨faith⟩ Rulers whose Realms contain a De Jure … County, you will lose 1 Level of Devotion and -750 Prestige
- Event pam_interactions_events.0093 (after 5 years)
If
scope:donate_faith ?= yes
Then
pay_short_term_gold = { target = $CLERIC$ gold = major_gold_value }
If
scope:use_hook ?= yeshas_usable_hook = $CLERIC$
Then
use_hook = $CLERIC$
pam_offer_pilgrimage_effect = { ACTOR = $DE_JURE_MASTER$ CLERIC = $CLERIC$ }If
scope:promise_conversion ?= yes
Then
remove_treasury_or_gold = { … }add_piety_experience = { … }scope:target:If
$DE_JURE_MASTER$.rite = $CLERIC$.rite- scope:target › Any de jure county:
faith = $DE_JURE_MASTER$.faithNone of these
rite = $DE_JURE_MASTER$.rite- Their holder:
- Is played by a person
NOT = { this = $DE_JURE_MASTER$ }NOT = { this = $CLERIC$ }
- Their rite:
divergence(scope:de_jure_master.rite) >= medium_rite_divergence_value- Does not have “rite grace period” (a variable the game's script sets)
Then
If
- scope:target › Any de jure county:
None of these
faith = $DE_JURE_MASTER$.faith- Their holder:
- Is played by a person
NOT = { this = $DE_JURE_MASTER$ }NOT = { this = $CLERIC$ }
Then
- scope:target › Any de jure county:
If
scope:offer_hook ?= yes
Then
$CLERIC$ = { … }
scope:target:If
scope:recipient = $CLERIC$
Then
- Every non-⟨faith⟩ County … … in …:
- Where:
NOT = { faith = $DE_JURE_MASTER$.faith }- Their holder:
target_is_same_character_or_above = $DE_JURE_MASTER$
change_county_control = extreme_county_control_loss
- Where:
Otherwise
- Every non-⟨faith⟩ County … … in …:
- Where:
NOT = { faith = $DE_JURE_MASTER$.faith }- Their holder:
target_is_same_character_or_above = $DE_JURE_MASTER$
change_county_control = extreme_county_control_loss
- Where:
If
scope:recipient = $CLERIC$
Then
- Every non-… County … … in …:
- Where:
faith = $DE_JURE_MASTER$.faithNOT = { rite = $CLERIC$.rite }- Their holder:
target_is_same_character_or_above = $DE_JURE_MASTER$
change_county_control = medium_county_control_loss
- Where:
Otherwise
- Every non-… County … … in …:
- Where:
faith = $DE_JURE_MASTER$.faithNOT = { rite = $CLERIC$.rite }- Their holder:
target_is_same_character_or_above = $DE_JURE_MASTER$
change_county_control = medium_county_control_loss
- Where:
- scope:puppet_or_actor › If has Legitimacy:
add_legitimacy = { … }
• 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 (120 lines of game script)
ecclesiastical_de_jure_shifting_effect = {
custom_tooltip = gain_de_jure_target_title_tt
if = {
limit = {
scope:promise_domination ?= yes
}
if = {
limit = {
has_legitimacy = yes
}
custom_tooltip = domination_promise_tt
}
else = {
custom_tooltip = domination_promise_no_legitimacy_tt
}
trigger_event = {
id = pam_interactions_events.0093
years = 5
}
}
if = {
limit = {
scope:donate_faith ?= yes
}
pay_short_term_gold = {
target = $CLERIC$
gold = major_gold_value
}
}
if = {
limit = {
scope:use_hook ?= yes
has_usable_hook = $CLERIC$
}
use_hook = $CLERIC$
}
pam_offer_pilgrimage_effect = {
ACTOR = $DE_JURE_MASTER$
CLERIC = $CLERIC$
}
if = {
limit = {
scope:promise_conversion ?= yes
}
remove_treasury_or_gold = {
value = {
value = $DE_JURE_MASTER$.miniscule_gold_value
if = {
limit = {
exists = scope:target
}
scope:target = {
every_de_jure_county = {
limit = {
OR = {
NOT = {
faith = $DE_JURE_MASTER$.faith
}
trigger_if = {
limit = {
$DE_JURE_MASTER$.rite = $CLERIC$.rite
}
AND = {
NOT = {
rite = $DE_JURE_MASTER$.rite
}
rite = {
"divergence(scope:de_jure_master.rite)" >= medium_rite_divergence_value
}
}
}
}
}
add = $DE_JURE_MASTER$.miniscule_gold_value
}
}
}
divide = 2
}
}
add_piety_experience = {
value = {
value = $DE_JURE_MASTER$.miniscule_piety_gain
if = {
limit = {
exists = scope:target
}
scope:target = {
every_de_jure_county = {
limit = {
OR = {
NOT = {
faith = $DE_JURE_MASTER$.faith
}
trigger_if = {
limit = {
$DE_JURE_MASTER$.rite = $CLERIC$.rite
}
AND = {
NOT = {
rite = $DE_JURE_MASTER$.rite
}
rite = {
"divergence(scope:de_jure_master.rite)" >= medium_rite_divergence_value
}
}
}
}
}
add = $DE_JURE_MASTER$.miniscule_piety_gain
}
}
}
divide = 2
}
}
scope:target = {
if = {
limit = {
$DE_JURE_MASTER$.rite = $CLERIC$.riteAs written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 304 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 13216.
Where it is used
Every place in common/, events/ and history/ that calls ecclesiastical_de_jure_shifting_effect.
Character interactions (2)
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.