Scripted trigger
diarch_wants_to_engage_with_mandates_trigger
diarch_wants_to_engage_with_mandates_trigger = { DIARCH = … }game/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 853 (10 lines). Parameters: $DIARCH$.
diarch_wants_to_engage_with_mandates_trigger is a scripted trigger in Crusader Kings III, written at line 853 of its file. A call passes 1 parameter: DIARCH. The game's script calls it in 2 places, among them diarchy_mandate_events_committed_diarch_serves_weight_down_ai_modifier (scripted modifier) and diarchy_mandate_events_committed_diarch_serves_weight_up_ai_modifier (scripted modifier). Patch 1.20.1.2, from game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
What it checks
save_temporary_scope_value_as = { name = diarch_loyalty value = $DIARCH$.diarch_loyalty_score_type_regency_value }One of these
scope:diarch_loyalty >= diarch_loyalty_visibly_loyal_thresholdor
scope:diarch_loyalty <= diarch_loyalty_visibly_disloyal_threshold
• 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 (10 lines of game script)
diarch_wants_to_engage_with_mandates_trigger = {
save_temporary_scope_value_as = {
name = diarch_loyalty
value = $DIARCH$.diarch_loyalty_score_type_regency_value
}
OR = {
scope:diarch_loyalty >= diarch_loyalty_visibly_loyal_threshold
scope:diarch_loyalty <= diarch_loyalty_visibly_disloyal_threshold
}
}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_wants_to_engage_with_mandates_trigger.
Scripted modifiers (AI weights) (2)
- diarchy_mandate_events_committed_diarch_serves_weight_down_ai_modifier
- diarchy_mandate_events_committed_diarch_serves_weight_up_ai_modifier
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.