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

Scripted trigger · Roads to Power files

any_valid_title_to_grant_trigger

any_valid_title_to_grant_trigger = { CANDIDATE = … TOP_LIEGE = … }

game/common/scripted_triggers/07_ep3_triggers.txt, line 219 (22 lines). Parameters: $CANDIDATE$, $TOP_LIEGE$.

any_valid_title_to_grant_trigger is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 219 of its file. A call passes 2 parameters: CANDIDATE and TOP_LIEGE. The game's script calls it in 3 places, among them Ask to Influence Candidacy (interaction), Harm Candidacy (interaction) and Influence Candidacy (interaction). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.

What it checks

Every line of it is script with no tooltip text: the script is below.

The script as written (22 lines of game script)
any_valid_title_to_grant_trigger = {
	# IMPORTANT!
	# The is_valid_showing_failures_only of support_candidacy_interaction doesn't use this
	# It uses a cloned version that has been optimized for AI usage
	# Please update that one too if you're updating this one
	$CANDIDATE$ ?= {
		is_clergy = no
		save_temporary_scope_as = candidate_temp
		custom_tooltip = {
			text = support_candidacy_can_appoint_for_title_tt
			$TOP_LIEGE$.primary_title = {
				any_in_de_jure_hierarchy = {
					continue = {
						tier > tier_duchy
					}
					save_temporary_scope_as = title_temp
					scope:candidate_temp = { can_appoint_for_title = scope:title_temp }
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/07_ep3_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls any_valid_title_to_grant_trigger.

Source: game/common/scripted_triggers/07_ep3_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?