Scripted trigger
is_diarch_able_trigger
is_diarch_able_trigger = yesgame/common/scripted_triggers/00_diarchy_scripted_triggers.txt, line 106 (22 lines). No parameters.
is_diarch_able_trigger is a scripted trigger in Crusader Kings III, written at line 106 of its file. It takes no parameters: is_diarch_able_trigger = yes (or no). The game's script calls it in 4 places, among them Discharge Entrenched Regent (interaction), diarch_cannot_be_disabled_trigger (scripted trigger) and adult_co_ruler_power_balance_scaling_value (script value). Patch 1.20.1.2, from game/common/scripted_triggers/00_diarchy_scripted_triggers.txt.
The comment above it in the file
This is hooked up to the is_diarch_able rule, referenced by Code.
What it checks
- Is not imprisoned
regency_for_personal_reasons_trigger = noIf
a check the game hides
Then
involved_activity.activity_location.county.holder = { target_is_same_character_or_above = scope:diarch_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 (22 lines of game script)
is_diarch_able_trigger = {
# You can't possibly manage someone else's realm from prison.
is_imprisoned = no
# You need to be mentally & physically sound, to some degree.
## Mostly, this will invalidate, but it won't for co-rulerships so we just disable them here.
regency_for_personal_reasons_trigger = no
# You'd clearly be preoccupied.
trigger_if = {
limit = {
exists = involved_activity
# An independent candidate has no liege whose realm could clash with the activity
exists = liege
}
save_temporary_scope_as = diarch_temp
involved_activity.activity_location.county.holder = {
target_is_same_character_or_above = scope:diarch_temp.liege
}
}
# allow diarchy of diarchy of diarchy anyway, otherwise grand secretary get broken.
# If you're in a diarchy for any other reason, you need to chill.
# NOT = { has_active_diarchy = yes }
}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 is_diarch_able_trigger.
Character interactions (1)
Scripted triggers (1)
Script values (1)
- adult_co_ruler_power_balance_scaling_value
Scripted rules (1)
- is_diarch_able
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.