Scripted trigger · By God Alone files
pam_custom_empire_can_claim_kingdom_exclave_trigger
pam_custom_empire_can_claim_kingdom_exclave_trigger = { NEW_EMPEROR = … }game/common/scripted_triggers/pam_scripted_triggers.txt, line 5839 (83 lines). Parameters: $NEW_EMPEROR$.
pam_custom_empire_can_claim_kingdom_exclave_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 5839 of its file. A call passes 1 parameter: NEW_EMPEROR. The game's script calls it in 2 places, among them Found a New Empire (decision) and create_custom_empire_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
- Title tier exactly Kingdom
None of these
$NEW_EMPEROR$ = { completely_controls = prev }holder ?= $NEW_EMPEROR$- Their holder:
target_is_liege_or_above = $NEW_EMPEROR$
None of these
- Any de jure county:
empire.title_capital_county ?= this
- Any de jure county:
- Their empire › Any direct de jure vassal title:
- Title tier exactly Kingdom
None of these
this = scope:kingdom_temp$NEW_EMPEROR$ = { completely_controls = prev }holder ?= $NEW_EMPEROR$- Their holder:
target_is_liege_or_above = $NEW_EMPEROR$
If
a check the game hides
Then
- Their empire’s holder:
- No vassal or below:
NOT = { completely_controls = scope:kingdom_temp }
- Their empire’s holder:
None of these
- Any de jure county:
save_temporary_scope_as = county_temp- Any title to title neighboring and across water county:
empire = scope:county_temp.empire- Their kingdom:
None of these
this = scope:county_temp.kingdom$NEW_EMPEROR$ = { completely_controls = prev }- Their holder:
target_is_same_character_or_above = $NEW_EMPEROR$
- Any de jure county:
- Any de jure county › Any neighboring county › Their kingdom:
One of these
- Their holder:
target_is_same_character_or_above = $NEW_EMPEROR$
or
$NEW_EMPEROR$ = { completely_controls = prev }
- Their holder:
• 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 (83 lines of game script)
pam_custom_empire_can_claim_kingdom_exclave_trigger = {
tier = tier_kingdom
save_temporary_scope_as = kingdom_temp
NOR = {
$NEW_EMPEROR$ = {
completely_controls = prev
}
holder ?= $NEW_EMPEROR$
holder ?= {
target_is_liege_or_above = $NEW_EMPEROR$
}
}
NOT = {
any_de_jure_county = {
empire.title_capital_county ?= this
}
}
#Is not only kingdom in empire
empire = {
any_direct_de_jure_vassal_title = {
tier = tier_kingdom
NOR = {
this = scope:kingdom_temp
$NEW_EMPEROR$ = {
completely_controls = prev
}
holder ?= $NEW_EMPEROR$
holder ?= {
target_is_liege_or_above = $NEW_EMPEROR$
}
}
}
}
#Is not controlled by de jure liege
trigger_if = {
limit = {
exists = empire.holder
}
empire.holder = {
NOR = {
this = scope:kingdom_temp.holder
any_vassal_or_below = {
this = scope:kingdom_temp.holder
}
completely_controls = scope:kingdom_temp
}
}
}
#Not bordering any other county of de jure empire (not held by new empire)
NOT = {
any_de_jure_county = {
save_temporary_scope_as = county_temp
any_title_to_title_neighboring_and_across_water_county = {
empire = scope:county_temp.empire
kingdom = {
NOR = {
this = scope:county_temp.kingdom
$NEW_EMPEROR$ = {
completely_controls = prev
}
holder ?= {
target_is_same_character_or_above = $NEW_EMPEROR$
}
}
}
}
}
}
any_de_jure_county = {
any_neighboring_county = {
kingdom = {
OR = {
holder ?= {
target_is_same_character_or_above = $NEW_EMPEROR$
}
$NEW_EMPEROR$ = {
completely_controls = prev
}
}
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_custom_empire_can_claim_kingdom_exclave_trigger.
Decisions (1)
Scripted effects (1)
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.