Scripted trigger
diarch_candidate_shares_relationship_with_child_trigger
diarch_candidate_shares_relationship_with_child_trigger = { RELATION = … }game/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 635 (11 lines). Parameters: $RELATION$.
diarch_candidate_shares_relationship_with_child_trigger is a scripted trigger in Crusader Kings III, written at line 635 of its file. A call passes 1 parameter: RELATION. The game's script calls it in 1 place, among them diarchy_vizier_succession_score_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
What it checks
- Any relation:
- Is an Adult
is_child_of = scope:char_temp.liegeis_courtier_of = scope:char_temp.liege
• 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 (11 lines of game script)
diarch_candidate_shares_relationship_with_child_trigger = {
# Grab the right scope.
save_temporary_scope_as = char_temp
# Now check.
any_relation = {
type = $RELATION$
is_adult = yes
is_child_of = scope:char_temp.liege
is_courtier_of = scope:char_temp.liege
}
}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_candidate_shares_relationship_with_child_trigger.
Script values (1)
- diarchy_vizier_succession_score_value
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.