Scripted trigger
has_access_to_claim_throne_scheme_trigger
has_access_to_claim_throne_scheme_trigger = { TARGET = … }game/common/scripted_triggers/00_scheme_triggers.txt, line 1063 (47 lines). Parameters: $TARGET$.
has_access_to_claim_throne_scheme_trigger is a scripted trigger in Crusader Kings III, written at line 1063 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 3 places, among them Claim Throne (Scheme) (interaction), Claim Throne (scheme) and … Who Defends (event coronation_events.6010). Patch 1.20.1.2, from game/common/scripted_triggers/00_scheme_triggers.txt.
What it checks
One of these
- Has the Meritocracy Perk
or
All of these
is_diarch_of_target = $TARGET$$TARGET$ = { … }
or
All of these
is_powerful_vassal_of = $TARGET$- Any character struggle:
involvement = involvedhas_struggle_phase_parameter = unlocks_claim_throne_for_powerful_vassalsis_secondary_character_involvement_involved_trigger = { CHAR = $TARGET$ }
or
Any character struggle:involvement = involvedhas_struggle_phase_parameter = unlocks_claim_throne_for_allis_secondary_character_involvement_involved_trigger = { CHAR = $TARGET$ }
or
All of these
exists = title:d_sunni.holderis_vassal_of = title:d_sunni.holder- Any character struggle:
involvement = involvedhas_struggle_phase_parameter = unlocks_claim_throne_for_caliph_vassals
or
has_character_flag = confederation_claim_throne
- If government is Celestial:
None of these
- Any liege or above: Holds China
• 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 (47 lines of game script)
has_access_to_claim_throne_scheme_trigger = {
OR = {
has_perk = meritocracy_perk
AND = {
is_diarch_of_target = $TARGET$
$TARGET$ = {
NOT = { has_diarchy_parameter = can_be_instantly_dismissed }
}
}
AND = {
is_powerful_vassal_of = $TARGET$
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = unlocks_claim_throne_for_powerful_vassals
is_secondary_character_involvement_involved_trigger = {
CHAR = $TARGET$
}
}
}
AND = {
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = unlocks_claim_throne_for_all
is_secondary_character_involvement_involved_trigger = {
CHAR = $TARGET$
}
}
}
AND = {
exists = title:d_sunni.holder
is_vassal_of = title:d_sunni.holder
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = unlocks_claim_throne_for_caliph_vassals
}
}
has_character_flag = confederation_claim_throne
}
trigger_if = {
limit = {
government_has_flag = government_is_celestial
}
NOT = {
any_liege_or_above = { has_title = title:h_china }
}
}
}As written in game/common/scripted_triggers/00_scheme_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_access_to_claim_throne_scheme_trigger.
Source: game/common/scripted_triggers/00_scheme_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.