Scripted effect · By God Alone files
ecclesiastic_grant_claim_interaction_effect
ecclesiastic_grant_claim_interaction_effect = yesgame/common/scripted_effects/pam_effects.txt, line 3835 (538 lines). No parameters.
ecclesiastic_grant_claim_interaction_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 3835 of its file. It takes no parameters: ecclesiastic_grant_claim_interaction_effect = yes. The game's script calls it in 3 places, among them Beseech Claim (interaction), pam_interactions_events.0020 (event) and pam_interactions_events.0023 (event). Its body carries 15 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
add_pressed_claim = scope:target- If clerical hesitation claim interaction at least 9 › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment -20
If
root ?= scope:cleric
Then
- You lose Spiritual Fulfillment because you are morally conflicted about aiding … in this
Otherwise
- … … Spiritual Fulfillment because … is morally conflicted about aiding … in this
- Else, if clerical hesitation claim interaction at least 6 › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment -10
If
root ?= scope:cleric
Then
- You lose Spiritual Fulfillment because you are morally conflicted about aiding … in this
Otherwise
- … … Spiritual Fulfillment because … is morally conflicted about aiding … in this
- Else, if clerical hesitation claim interaction at least 3 › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment -5
If
root ?= scope:cleric
Then
- You lose Spiritual Fulfillment because you are morally conflicted about aiding … in this
Otherwise
- … … Spiritual Fulfillment because … is morally conflicted about aiding … in this
- Else, if all of these hold:
- Conditions:
- Clerical hesitation claim interaction less than 3
- Clerical hesitation claim interaction at least -2
- Then › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Conditions:
- Else, if clerical hesitation claim interaction less than -2 › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment +1
If
root ?= scope:cleric
Then
- You gain Spiritual Fulfillment because you consider … a righteous Holder for …
Otherwise
- … … Spiritual Fulfillment because … … … a righteous Holder for …
- Else, if clerical hesitation claim interaction at least -5 › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment +3
If
root ?= scope:cleric
Then
- You gain Spiritual Fulfillment because you consider … a righteous Holder for …
Otherwise
- … … Spiritual Fulfillment because … … … a righteous Holder for …
- Else, if clerical hesitation claim interaction at least -8 › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment +5
If
root ?= scope:cleric
Then
- You gain Spiritual Fulfillment because you consider … a righteous Holder for …
Otherwise
- … … Spiritual Fulfillment because … … … a righteous Holder for …
- Otherwise › scope:secondary_recipient:
If
- Is played by the AI
- Piety at most 0
Then
add_piety = { … }
Otherwise
add_piety = { … }
- Spiritual fulfillment +10
If
root ?= scope:cleric
Then
- You gain Spiritual Fulfillment because you consider … a righteous Holder for …
Otherwise
- … (more in the script below)
- … (more in the script below)
• 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)
ecclesiastic_grant_claim_interaction_effect = {
add_pressed_claim = scope:target
scope:secondary_recipient = { save_scope_as = cleric }
scope:recipient = { save_scope_as = owner }
#Either your shittiness or target's coolness has given the clergyman pause
if = {
limit = {
clerical_hesitation_claim_interaction_value >= 9
}
scope:secondary_recipient = {
if = {
limit = {
is_ai = yes
piety <= 0
}
show_as_tooltip = {
add_piety = {
value = major_piety_loss
multiply = {
value = scope:puppet_or_actor.highest_held_title_tier
subtract = 1
}
}
}
}
else = {
add_piety = {
value = major_piety_loss
multiply = {
value = scope:puppet_or_actor.highest_held_title_tier
subtract = 1
}
}
}
change_spiritual_fulfillment = massive_spiritual_fulfillment_loss
if = {
limit = {
root ?= scope:cleric
}
custom_tooltip = clerical_hesitation_high_player_tt
}
else = {
custom_tooltip = clerical_hesitation_high_tt
}
}
}
else_if = {
limit = {
clerical_hesitation_claim_interaction_value >= 6
}
scope:secondary_recipient = {
if = {
limit = {
is_ai = yes
piety <= 0
}
show_as_tooltip = {
add_piety = {
value = medium_piety_loss
multiply = {
value = scope:puppet_or_actor.highest_held_title_tier
subtract = 1
}
}
}
}
else = {
add_piety = {
value = medium_piety_loss
multiply = {
value = scope:puppet_or_actor.highest_held_title_tier
subtract = 1
}
}
}
change_spiritual_fulfillment = major_spiritual_fulfillment_loss
if = {
limit = {
root ?= scope:cleric
}
custom_tooltip = clerical_hesitation_high_player_tt
}
else = {
custom_tooltip = clerical_hesitation_high_tt
}
}
}
else_if = {
limit = {
clerical_hesitation_claim_interaction_value >= 3
}
scope:secondary_recipient = {
if = {
limit = {
is_ai = yes
piety <= 0
}
show_as_tooltip = {
add_piety = {
value = minor_piety_loss
multiply = {
value = scope:puppet_or_actor.highest_held_title_tier
subtract = 1
}
}
}
}
else = {
add_piety = {
value = minor_piety_loss
multiply = {
value = scope:puppet_or_actor.highest_held_title_tier
subtract = 1
}
}
}
change_spiritual_fulfillment = medium_spiritual_fulfillment_loss
if = {
limit = {
root ?= scope:clericAs written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 538 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 3835.
Where it is used
Every place in common/, events/ and history/ that calls ecclesiastic_grant_claim_interaction_effect.
Character interactions (1)
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.