Scripted effect · Coronations files
coronation_ceremony_piety_effect
coronation_ceremony_piety_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 1206 (222 lines). No parameters.
coronation_ceremony_piety_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 1206 of its file. It takes no parameters: coronation_ceremony_piety_effect = yes. The game's script calls it in 2 places, among them The Pledge to the … (event coronation_events.6120) and The Three Assents (event coronation_events.6123). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
The comment above it in the file
For flavor and adjusting piety in coronation ceremony the clergy's approval event
What it does
- If coronation clergy approval at least 3:
add_piety = { … }
- Else, if coronation clergy approval at least 2:
add_piety = { … }
- Else, if coronation clergy approval at least 1:
add_piety = { … }
- Else, if coronation clergy approval at least 0:
add_piety = { … }
- Else, if coronation clergy approval at least -1:
add_piety = { … }
- Else, if coronation clergy approval at least -2: Gain -50 Piety
- Else, if coronation clergy approval at least -3: Gain -250 Piety
- Else, if coronation clergy approval at least -4: Gain -250 Piety
- Otherwise: Gain -500 Piety
If
One of these
- scope:activity.special_guest:coronation_hof_guest: Opinion of host at least 90
or
religious_head_or_challenger ?= { … }or
scope:activity.var:anointment_authority: Opinion of host at least 40
Then
- Piety improved by Court Chaplain or Head of Faith's Opinion
If
One of these
- scope:activity.special_guest:coronation_hof_guest: Opinion of host at most -90
or
religious_head_or_challenger ?= { … }or
scope:activity.var:anointment_authority: Opinion of host at most -40
Then
- Piety harmed by Court Chaplain or Head of Faith's Opinion
If
One of these
- Num virtuous traits at least 1
or
Has the Trait: Zealousor
Has the Trait: Venerated Ancestoror
Has the Trait: Heraldor
Has the Trait: Saoshyant Descendantor
Has the Trait: Sayyidor
Has the Trait: Divine Bloodor
Has the Trait: Consecrated Bloodor
Has the Trait: Military Order Memberor
Has the Trait: Warrior of the Faithor
Has the Trait: Saoshyantor
Has the Trait: Paragonor
Has the Trait: The Savioror
Has the Trait: Holy Monarchor
Has the Trait: Theologian
Then
- Piety improved by pious Traits
If
One of these
- Num sinful traits at least 1
or
Has the Trait: Cynicalor
Has the Trait: Excommunicatedor
has_any_shunned_or_criminal_trait_in_rite_trigger = { CHARACTER = scope:host RITE = scope:host.rite }or
Has the Trait: Despoiler of Byzantiumor
Has the Trait: Bastardor
Has the Trait: Gallowsbaitor
Has the Trait: Accused of Decadenceor
Num sinful traits at least 2
Then
- If piety level at least 3: Piety improved by Level of Devotion
- If piety level less than 1: Piety harmed by Level of Devotion
• 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)
coronation_ceremony_piety_effect = {
if = {
limit = {
coronation_clergy_approval_value >= 3
}
add_piety = {
value = massive_piety_gain
if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = coronation_type_anointment
}
}
}
multiply = 1.5
}
}
}
else_if = {
limit = {
coronation_clergy_approval_value >= 2
}
add_piety = {
value = major_piety_gain
if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = coronation_type_anointment
}
}
}
multiply = 1.5
}
}
}
else_if = {
limit = {
coronation_clergy_approval_value >= 1
}
add_piety = {
value = medium_piety_gain
if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = coronation_type_anointment
}
}
}
multiply = 1.5
}
}
}
else_if = {
limit = {
coronation_clergy_approval_value >= 0
}
add_piety = {
value = minor_piety_gain
if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = coronation_type_anointment
}
}
}
multiply = 1.5
}
}
}
else_if = {
limit = {
coronation_clergy_approval_value >= -1
}
add_piety = {
value = miniscule_piety_gain
if = {
limit = {
scope:activity = {
has_activity_option = {
category = special_type
option = coronation_type_anointment
}
}
}
multiply = 1.5
}
}
}
else_if = {
limit = {
coronation_clergy_approval_value >= -2
}
add_piety = minor_piety_loss
}
else_if = {
limit = {
coronation_clergy_approval_value >= -3
}
add_piety = major_piety_loss
}
else_if = {
limit = {
coronation_clergy_approval_value >= -4
}
add_piety = major_piety_loss
}
else = {
add_piety = massive_piety_loss
}
#Custom tooltip triggers need to match coronation_clergy_approval_value
if = {
limit = {As written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 222 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 1206.
Where it is used
Every place in common/, events/ and history/ that calls coronation_ceremony_piety_effect.
Events (2)
- The Pledge to the …
coronation_events.6120 - The Three Assents
coronation_events.6123
Source: game/common/scripted_effects/10_ach_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.