CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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:

• 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)

Casus belli (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.

Spotted a mistake on this page?