Scripted trigger · All Under Heaven files
tgp_ceremonial_candidacy_restriction_trigger
tgp_ceremonial_candidacy_restriction_trigger = yesgame/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
If
scope:actor:scope:secondary_recipient:
Then
If
scope:target.holder:One of these
- Has the Japanese Regency Succession Law
or
Has the Meritocratic Regency Succession Law
Then
If
top_liege.primary_title.var:administrative_ui_special_title.holder:
Then
- The Ceremonial Monarch's Player Heir is the only member of the Ceremonial House who may become Ruler via Influence
Else if
- scope:actor: Is an Independent Ruler
Then
- The Ceremonial Monarch's Player Heir is the only member of the Ceremonial House who may become Ruler via Influence
Otherwise
- The Ceremonial Monarch is the only member of the Ceremonial House who may become Ruler via Influence
Otherwise
- Governorships may not be given to the Ceremonial Monarch
• 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.