Scripted effect · By God Alone files
pam_buy_ecclesiastical_title_interaction_effect
pam_buy_ecclesiastical_title_interaction_effect = yesgame/common/scripted_effects/pam_effects.txt, line 5066 (59 lines). No parameters.
pam_buy_ecclesiastical_title_interaction_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 5066 of its file. It takes no parameters: pam_buy_ecclesiastical_title_interaction_effect = yes. The game's script calls it in 1 place, among them Buy Clerical Title (interaction). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
scope:actor:pay_short_term_gold = { target = scope:recipient gold = pam_buy_ecclesiastical_title_gold_cost_value }
scope:target:change_title_holder_include_vassals = { holder = scope:new_holder change = scope:change government_base = scope:recipient }
scope:new_holder:If
- Any held title: Has “adventurer creation reason” (a variable the game's script sets)
Then
destroy_laamp_effect = { ADVENTURER = scope:new_holder }
- If their government is not Ecclesiastical: Adopts Ecclesiastical Government
If
- The Christian Church: The current phase counts “A Clerical Title is bought”
- scope:actor: Any character situation:
Then
- The Christian Church: Counts toward the situation's next phase: “A Clerical Title is bought”
• 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 (59 lines of game script)
pam_buy_ecclesiastical_title_interaction_effect = {
scope:actor = {
if = {
limit = { government_has_flag = government_is_theocracy }
save_scope_as = new_holder
}
else = {
scope:secondary_recipient = { save_scope_as = new_holder }
}
}
scope:actor = {
pay_short_term_gold = {
target = scope:recipient
gold = pam_buy_ecclesiastical_title_gold_cost_value
}
}
create_title_and_vassal_change = {
type = granted
save_scope_as = change
}
scope:target = {
change_title_holder_include_vassals = {
holder = scope:new_holder
change = scope:change
government_base = scope:recipient
}
}
resolve_title_and_vassal_change = scope:change
scope:new_holder = {
if = {
limit = {
any_held_title = { has_variable = adventurer_creation_reason }
}
destroy_laamp_effect = { ADVENTURER = scope:new_holder }
}
if = {
limit = {
NOT = { government_has_flag = government_is_ecclesiastical }
}
change_government = ecclesiastical_government
}
}
if = {
limit = {
scope:actor = { has_pam_dlc_trigger = yes }
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_clergy_simony
}
scope:actor = {
any_character_situation = {
this = situation:the_christian_church
}
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_clergy_simony
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_buy_ecclesiastical_title_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.