Scripted trigger · All Under Heaven files
target_shares_nearest_related_title_holder_trigger
target_shares_nearest_related_title_holder_trigger = { COMPARE = … TITLE = … }game/common/scripted_triggers/10_tgp_japan_triggers.txt, line 92 (24 lines). Parameters: $COMPARE$, $TITLE$.
target_shares_nearest_related_title_holder_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 92 of its file. A call passes 2 parameters: COMPARE and TITLE. The game's script calls it in 1 place, among them Request Royal Honsei (decision). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_japan_triggers.txt.
The comment above it in the file
Filter out dynasties of Emperors further away from you e.g. your father's brother's son
What it checks
Else if
- Any parent › Any parent:
is_a_previous_title_holder_trigger = { TITLE = $TITLE$ }
Then
is_grandchild_of = $COMPARE$
Otherwise
is_great_grandchild_of = $COMPARE$
- Any parent › Any parent:
• 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 (24 lines of game script)
target_shares_nearest_related_title_holder_trigger = {
trigger_if = {
limit = {
any_parent = {
even_if_dead = yes
is_a_previous_title_holder_trigger = { TITLE = $TITLE$ }
}
}
is_child_of = $COMPARE$
}
trigger_else_if = {
limit = {
any_parent = {
even_if_dead = yes
any_parent = {
even_if_dead = yes
is_a_previous_title_holder_trigger = { TITLE = $TITLE$ }
}
}
}
is_grandchild_of = $COMPARE$
}
trigger_else = { is_great_grandchild_of = $COMPARE$ }
}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 target_shares_nearest_related_title_holder_trigger.
Decisions (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.