Scripted effect · By God Alone files
clergy_land_refusal_legitimacy_piety_effect
clergy_land_refusal_legitimacy_piety_effect = yesgame/common/scripted_effects/pam_effects.txt, line 6106 (33 lines). No parameters.
clergy_land_refusal_legitimacy_piety_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 6106 of its file. It takes no parameters: clergy_land_refusal_legitimacy_piety_effect = yes. The game's script calls it in 3 places, among them …, Denied (event pam_interactions_events.0036), Negotiations for … (event pam_interactions_events.0030) and The Disputing of … (event pam_interactions_events.0034). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
scope:target.tier >= scope:recipient.highest_held_title_tier_minus_one
Then
scope:recipient:- Gain … Piety
- If has Legitimacy: Gains … Legitimacy
- Otherwise: Gain … Prestige
Otherwise
scope:recipient:- Gain … Piety
- If has Legitimacy: Gains … Legitimacy
- Otherwise: Gain … Prestige
• 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 (33 lines of game script)
clergy_land_refusal_legitimacy_piety_effect = {
if = {
limit = {
scope:target.tier >= scope:recipient.highest_held_title_tier_minus_one
}
scope:recipient = {
add_piety = clergy_land_refusal_large_piety_value
if = {
limit = {
has_legitimacy = yes
}
add_legitimacy = clergy_land_refusal_large_legitimacy_value
}
else = {
add_prestige = clergy_land_refusal_large_prestige_value
}
}
}
else = {
scope:recipient = {
add_piety = clergy_land_refusal_small_piety_value
if = {
limit = {
has_legitimacy = yes
}
add_legitimacy = clergy_land_refusal_small_legitimacy_value
}
else = {
add_prestige = clergy_land_refusal_small_prestige_value
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls clergy_land_refusal_legitimacy_piety_effect.
Events (3)
- …, Denied
pam_interactions_events.0036 - Negotiations for …
pam_interactions_events.0030 - The Disputing of …
pam_interactions_events.0034
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.