Scripted trigger · By God Alone files
is_clerical_appointment_valid_base_trigger
is_clerical_appointment_valid_base_trigger = { CANDIDATE = … TOP_LIEGE = … }game/common/scripted_triggers/pam_scripted_triggers.txt, line 473 (45 lines). Parameters: $CANDIDATE$, $TOP_LIEGE$.
is_clerical_appointment_valid_base_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 473 of its file. A call passes 2 parameters: CANDIDATE and TOP_LIEGE. The game's script calls it in 6 places, among them harm_clerical_candidacy_interaction (interaction), Influence Clerical Candidacy (interaction) and Influence Head of Faith Candidacy (interaction). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
$CANDIDATE$ = { save_temporary_scope_as = candidate_temp }$TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp }scope:candidate_temp:- Is an Adult
- Their faith is the same as that of top liege temp
- … must be a Dominant, Equal, or Clerical Gender within your Faith (⟨faith⟩)
- … must be a member of the Clergy, or ⟨faith⟩ must have the Lay Clergy Doctrine
- … Government does not allow Theocratic appointments (…)
- … must be able to inherit Titles (not Disinherited, Gallivanter, or Military Order Member)
• 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 (45 lines of game script)
is_clerical_appointment_valid_base_trigger = {
$CANDIDATE$ = { save_temporary_scope_as = candidate_temp }
$TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp }
scope:candidate_temp = {
is_adult = yes
faith = scope:top_liege_temp.faith # Must be of the same faith
custom_tooltip = {
text = can_be_appointed_interaction_tt
OR = {
can_be_granted_theocratic_titles_by = { RULER = scope:top_liege_temp } # Gender checks
AND = {
is_diarch_of_target = scope:top_liege_temp
scope:top_liege_temp = { has_diarchy_active_parameter = diarchy_is_co_rulership }
}
}
}
custom_tooltip = {
text = can_be_appointed_interaction_clergy_tt
OR = { # Clergy or Lay Clergy
is_clergy = yes
rite = { rite_has_parameter = lay_clergy } # HoF cannot be temporal if you have Theocratic clergy, so no need to check for that
this = scope:top_liege_temp.player_heir # Designated Theocratic Heir
AND = {
is_landless_adventurer = yes
this = scope:top_liege_temp
}
}
}
custom_tooltip = { # Only theocracies
text = only_theocratic_tt
OR = {
government_has_flag = government_is_theocracy
is_landed = no
}
}
custom_tooltip = { # Barred from holding titles
text = can_be_appointed_interaction_can_inherit_tt
NOR = {
has_trait = order_member
has_trait = gallivanter
has_trait = disinherited
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_clerical_appointment_valid_base_trigger.
Character interactions (4)
- harm_clerical_candidacy_interaction
- Influence Clerical Candidacy
- Influence Head of Faith Candidacy
- support_clerical_candidacy_interaction
Casus belli (1)
Scripted triggers (1)
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.