Scripted trigger · By God Alone files
target_valid_ecclesiastical_de_jure_shifting_trigger
target_valid_ecclesiastical_de_jure_shifting_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 5936 (68 lines). No parameters.
target_valid_ecclesiastical_de_jure_shifting_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 5936 of its file. It takes no parameters: target_valid_ecclesiastical_de_jure_shifting_trigger = yes (or no). The game's script calls it in 1 place, among them Beseech De Jure Rights (interaction). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
is_landless_type_title = no- Is not the Head of Faith
- Title tier exactly scope:puppet or actor.highest held title tier minus one
- … is already De Jure part of …
- At least one County of … must be within your sub-Realm
- … is the De Jure Liege of …
If
scope:recipient.religious_head_or_challenger != scope:recipient
Then
- … Head of Faith is the De Jure Liege of …
• 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 (68 lines of game script)
target_valid_ecclesiastical_de_jure_shifting_trigger = {
is_landless_type_title = no
is_head_of_faith = no
tier = scope:puppet_or_actor.highest_held_title_tier_minus_one
custom_tooltip = {
text = petition_de_jure_integration_not_already_de_jure_tt
NOT = {
de_jure_liege = scope:puppet_or_actor.primary_title
}
}
custom_tooltip = {
text = petition_de_jure_integration_target_is_connected_tt
any_de_jure_county = {
holder ?= {
target_is_same_character_or_above = scope:puppet_or_actor
}
}
}
custom_tooltip = {
text = recipient_not_targets_de_jure_liege_tt
NOT = {
de_jure_liege.holder ?= scope:recipient
}
}
trigger_if = {
limit = {
exists = scope:recipient.religious_head_or_challenger
scope:recipient.religious_head_or_challenger != scope:recipient
exists = scope:target.de_jure_liege.holder
}
custom_tooltip = {
text = hof_is_target_de_jure_liege_tt
NOT = {
scope:recipient.religious_head_or_challenger ?= scope:target.de_jure_liege.holder
}
}
}
#AI should only do direct borders, not over water - ew gross
trigger_if = {
limit = {
scope:puppet_or_actor = {
is_ai = no
}
}
custom_tooltip = {
text = target_must_border_your_de_jure
any_de_jure_county = {
any_title_to_title_neighboring_and_across_water_county = {
any_this_title_or_de_jure_above = {
this = scope:puppet_or_actor.primary_title
}
}
}
}
}
trigger_else = {
custom_tooltip = {
text = target_must_border_your_de_jure_land
any_de_jure_county = {
any_title_to_title_neighboring_county = {
any_this_title_or_de_jure_above = {
this = scope:puppet_or_actor.primary_title
}
}
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls target_valid_ecclesiastical_de_jure_shifting_trigger.
Character interactions (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.