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

Scripted trigger · All Under Heaven files

tgp_ceremonial_candidacy_restriction_trigger

tgp_ceremonial_candidacy_restriction_trigger = yes

game/common/scripted_triggers/10_tgp_japan_triggers.txt, line 162 (50 lines). No parameters.

tgp_ceremonial_candidacy_restriction_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 162 of its file. It takes no parameters: tgp_ceremonial_candidacy_restriction_trigger = yes (or no). The game's script calls it in 1 place, among them Influence 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/10_tgp_japan_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 (50 lines of game script)
tgp_ceremonial_candidacy_restriction_trigger = {
	trigger_if = {
		limit = {
			exists = scope:target
			scope:actor ?= { tgp_realm_has_ceremonial_liege_trigger = yes }
			scope:secondary_recipient ?= { tgp_is_in_ceremonial_house_trigger = yes }
		}
		trigger_if = { # Top title only valid for ceremonial liege
			limit = {
				exists = scope:target.var:administrative_ui_special_title
				scope:target.holder = {
					OR = {
						has_realm_law = japanese_regency_succession_law
						has_realm_law = meritocratic_regency_succession_law
					}
				}
			}
			trigger_if = {
				limit = {
					top_liege.primary_title.var:administrative_ui_special_title.holder = { tgp_is_ceremonial_liege_trigger = yes }
				}
				custom_tooltip = {
					text = ceremonial_liege_only_heir_can_be_ruler_trigger
					scope:secondary_recipient = { tgp_is_ceremonial_liege_or_direct_heir_trigger = yes }
				}
			}
			trigger_else_if = {
				limit = {
					scope:actor = { is_independent_ruler = yes }
				}
				custom_tooltip = {
					text = ceremonial_liege_only_heir_can_be_ruler_trigger
					scope:secondary_recipient = scope:actor.player_heir
				}
			}
			trigger_else = {
				custom_tooltip = {
					text = ceremonial_liege_house_can_not_be_ruler_trigger
					scope:secondary_recipient = { tgp_is_ceremonial_liege_trigger = yes }
				}
			}
		}
		trigger_else = { # Governor titles only valid for non-ceremonial liege
			custom_tooltip = {
				text = ceremonial_liege_cannot_be_governor_trigger
				scope:secondary_recipient = { tgp_is_ceremonial_liege_trigger = no }
			}
		}
	}
}

As written in game/common/scripted_triggers/10_tgp_japan_triggers.txt.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_triggers/10_tgp_japan_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?