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_trigger

is_clerical_appointment_valid_trigger = { CANDIDATE = … TITLE = … TOP_LIEGE = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 374 (25 lines). Parameters: $CANDIDATE$, $TITLE$, $TOP_LIEGE$.

is_clerical_appointment_valid_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 374 of its file. A call passes 3 parameters: CANDIDATE, TITLE and TOP_LIEGE. The game's script calls it in 7 places, among them harm_clerical_candidacy_interaction (interaction), Influence Clerical Candidacy (interaction) and Influence Head of Faith Candidacy (interaction). Its body carries 2 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

  • $TITLE$ = { save_temporary_scope_as = title_temp }
  • $CANDIDATE$ = { save_temporary_scope_as = candidate_temp }
  • $TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp }
  • If

    a check the game hides

    Then

  • is_clerical_appointment_valid_base_trigger = { CANDIDATE = $CANDIDATE$ TOP_LIEGE = $TOP_LIEGE$ }

• 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 (25 lines of game script)
is_clerical_appointment_valid_trigger = {
	$TITLE$ = { save_temporary_scope_as = title_temp }
	$CANDIDATE$ = { save_temporary_scope_as = candidate_temp }
	$TOP_LIEGE$ = { save_temporary_scope_as = top_liege_temp }
	trigger_if = {
		limit = { exists = scope:title_temp }
		custom_tooltip = { # Has relevant law
			text = has_appointment_succession_tt
			$TITLE$ = {
				OR = {
					has_title_law = clerical_appointment_law
					holder ?= { has_realm_law = clerical_appointment_law }
				}
			}
		}
		custom_tooltip = { # Titles below the holder's primary tier are inherited alongside it, so they cannot be contested on their own
			text = follows_other_title_appointment_tt
			scope:title_temp.holder ?= { primary_title.tier = scope:title_temp.tier }
		}
	}
	is_clerical_appointment_valid_base_trigger = {
		CANDIDATE = $CANDIDATE$
		TOP_LIEGE = $TOP_LIEGE$
	}
}

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_trigger.

Character interactions (5)

Events (1)

Scripted effects inside an event file (1)

  • ecumenical_council_summons_events_0020_get_appointment_score_effect

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?