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

Scripted trigger

diarch_coup_attempt_is_valid_showing_failure_only_trigger

diarch_coup_attempt_is_valid_showing_failure_only_trigger = { DIARCH = … }

game/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 784 (21 lines). Parameters: $DIARCH$.

diarch_coup_attempt_is_valid_showing_failure_only_trigger is a scripted trigger in Crusader Kings III, written at line 784 of its file. A call passes 1 parameter: DIARCH. The game's script calls it in 2 places, among them Attempt to Overthrow Liege (decision) and diarchy.9032 (event). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.

What it checks

• 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 (21 lines of game script)
diarch_coup_attempt_is_valid_showing_failure_only_trigger = {
	# Diarch must be able to act.
	diarch_cannot_be_disabled_trigger = { DIARCH = $DIARCH$ }
	# Plus standard checks.
	is_available_adult = yes
	# Filter this out in advance, else we risk trying to enter a duel later, only to find we're already engaged in one.
	custom_description = {
		text = ENGAGED_IN_SINGLE_COMBAT
		NOT = { exists = var:engaged_in_single_combat }
	}
	# Liege must have _something_ at the highest tier that isn't a HoF title.
	custom_tooltip = {
		text = diarch_attempt_to_overthrow_liege.tt.liege_cant_hold_only_hof_highest_title
		liege = {
			any_held_title = {
				tier = prev.highest_held_title_tier
				is_head_of_faith = no
			}
		}
	}
}

As written in game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/00_diarchy_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?