Scripted effect
lease_barony_to_military_holy_order_effect
lease_barony_to_military_holy_order_effect = { TITLE = … }game/common/scripted_effects/00_religion_effects.txt, line 86 (20 lines). Parameters: $TITLE$.
lease_barony_to_military_holy_order_effect is a scripted effect in Crusader Kings III, written at line 86 of its file. A call passes 1 parameter: TITLE. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
The comment above it in the file
$TITLE$ is the barony, and this expects scope:holy_order
What it does
$TITLE$ = { … }If
- The Personal Tenets unlock leasing to military order give spiritual fulfillment personal
- Their faith is the same as that of holy order
Then
- Spiritual fulfillment +5
• 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 (20 lines of game script)
lease_barony_to_military_holy_order_effect = {
$TITLE$ = {
if = { #To make sure the effect works properly we have to have the title when we lease it out
limit = { holder != prev }
prev = { get_title = prev }
}
lease_out_to_holy_order = scope:holy_order
}
if = {
limit = {
has_personal_tenet_flag = leasing_to_military_order_give_spiritual_fulfillment_personal
faith = scope:holy_order.faith
}
send_interface_toast = {
type = event_generic_good
title = leasing_to_military_order_give_spiritual_fulfillment_personal_toast
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
}
}As written in game/common/scripted_effects/00_religion_effects.txt.
Where it is used
No file of common/, events/ or history/ calls it.
Source: game/common/scripted_effects/00_religion_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.