Scripted trigger
diarch_candidate_shares_minority_status_with_trigger
diarch_candidate_shares_minority_status_with_trigger = { QUALITY = … TRIGGER_OR_TARGET = … }game/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 647 (14 lines). Parameters: $QUALITY$, $TRIGGER_OR_TARGET$.
diarch_candidate_shares_minority_status_with_trigger is a scripted trigger in Crusader Kings III, written at line 647 of its file. A call passes 2 parameters: QUALITY and TRIGGER_OR_TARGET. 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 liege or above:
NOT = { $QUALITY$ = scope:char_temp.$QUALITY$ }
- Their liege:
$TRIGGER_OR_TARGET$ = { $QUALITY$ = scope:char_temp.$QUALITY$ }
• 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 (14 lines of game script)
diarch_candidate_shares_minority_status_with_trigger = {
# For performance purposes, let's do the most obvious check first.
any_liege_or_above = {
NOT = { $QUALITY$ = scope:char_temp.$QUALITY$ }
}
# Grab the right scope.
save_temporary_scope_as = char_temp
liege = {
# Ok, now make sure we connect to at least one suitable character.
## Yes we're putting a whole trigger in the scripted parameter.
### No one will believe you if you try to tell them of my crimes.
$TRIGGER_OR_TARGET$ = { $QUALITY$ = scope:char_temp.$QUALITY$ }
}
}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_minority_status_with_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.