Scripted effect
grant_title_holy_order_patronage_warning_effect
grant_title_holy_order_patronage_warning_effect = yesgame/common/scripted_effects/00_holy_order_effects.txt, line 5831 (81 lines). No parameters.
grant_title_holy_order_patronage_warning_effect is a scripted effect in Crusader Kings III, written at line 5831 of its file. It takes no parameters: grant_title_holy_order_patronage_warning_effect = yes. The game's script calls it in 2 places, among them Grant Appointment (interaction) and Grant Titles (interaction). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.
The comment above it in the file
Holy Order patronage loss warning
What it does
If
- scope:puppet_or_actor › Any patroned holy order:
leader.capital_county ?= { … }
scope:recipient:One of these
- Highest held Title is at least Duchy Rank
or
All of these
- Any in list: Title tier at least Duchy
One of these
scope:ho_capital_temp.holder:target_is_same_character_or_above = scope:recipient
or
Any in list:this = scope:ho_capital_temp
or
All of these
scope:ho_capital_temp.holder.highest_held_title_tier = tier_county- Any in list:
- Title tier at least Duchy
- Any de jure county:
this = scope:ho_capital_temp
Then
- … will lose Holy Order Patronage of one or more Holy Orders
- scope:puppet_or_actor › Any patroned holy order:
If
- scope:actor › Any patroned holy order:
leader.capital_county ?= { save_temporary_scope_as = ho_capital_temp is_in_list = target_titles }
Then
- If … gains any higher-Tier Titles, you will lose Holy Order Patronage of a local Holy Order
• 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 (81 lines of game script)
grant_title_holy_order_patronage_warning_effect = {
if = {
limit = {
#Holy order is actually involved
scope:puppet_or_actor = {
any_patroned_holy_order = {
leader.capital_county ?= {
save_temporary_scope_as = ho_capital_temp
any_this_title_or_de_jure_above = {
OR = {
is_in_list = target_titles
holder ?= {
target_is_same_character_or_above = scope:recipient
}
}
}
}
}
}
#Duchy tier or higher is involved
scope:recipient = {
OR = {
#Is duke
highest_held_title_tier >= tier_duchy
#Will be duke and either already controls duchy or will
AND = {
any_in_list = {
list = target_titles
tier >= tier_duchy
}
OR = {
scope:ho_capital_temp.holder ?= {
target_is_same_character_or_above = scope:recipient
}
any_in_list = {
list = target_titles
this = scope:ho_capital_temp
}
AND = {
scope:ho_capital_temp.holder.highest_held_title_tier = tier_county
any_in_list = {
list = target_titles
tier >= tier_duchy
any_de_jure_county = {
this = scope:ho_capital_temp
}
}
}
}
}
}
}
}
custom_tooltip = holy_order_control_loss_warning_tt
}
#Potential holy order patronage loss warning
if = {
limit = {
#No duchies involved
NOR = {
scope:recipient = {
highest_held_title_tier > tier_county
}
any_in_list = {
list = target_titles
tier > tier_county
}
}
#But you are giving away Order capital
scope:actor = {
any_patroned_holy_order = {
leader.capital_county ?= {
save_temporary_scope_as = ho_capital_temp
is_in_list = target_titles
}
}
}
}
custom_tooltip = potential_holy_order_control_loss_warning_tt
}
}As written in game/common/scripted_effects/00_holy_order_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls grant_title_holy_order_patronage_warning_effect.
Character interactions (2)
Source: game/common/scripted_effects/00_holy_order_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.