Scripted effect
set_up_historical_monastic_orders_effect
set_up_historical_monastic_orders_effect = yesgame/common/scripted_effects/00_holy_order_effects.txt, line 1612 (3404 lines). No parameters.
set_up_historical_monastic_orders_effect is a scripted effect in Crusader Kings III, written at line 1612 of its file. It takes no parameters: set_up_historical_monastic_orders_effect = yes. The game's script calls it in 1 place, among them on_game_start (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.
What it does
If
always = yes
Then
scope:game_start_founder:create_holy_order_neutral_effect = { … }
scope:monastic_leader:- If current year less than 868:
add_courtier = character:pastoral_benedictine_1add_courtier = character:anianian_benedictine_1add_courtier = character:maurian_benedictine_1add_courtier = character:gallic_benedictine_1add_courtier = character:168025
- Else, if current year less than 1067:
add_courtier = character:edgaric_1add_courtier = character:corbine_benedictine_2add_courtier = character:gurloesian_1add_courtier = character:ripollese_1add_courtier = character:sankt_gallen_1add_courtier = character:ottonian_benedictine_1add_courtier = character:glagolitic_1add_courtier = character:guntherian_benedictine_1
- Otherwise:
add_courtier = character:guntherian_benedictine_2
- Every Courtier:
- If current year less than 868:
- If current year less than 868:
- Montalcino:
lease_out_to_holy_order = scope:benedictine
- Farfa:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Cassino:
lease_out_to_holy_order = scope:benedictine
- Saint Albans:
lease_out_to_holy_order = scope:benedictine
- Hexham:
lease_out_to_holy_order = scope:benedictine
- Wolverhampton:
lease_out_to_holy_order = scope:benedictine
- Whitby:
lease_out_to_holy_order = scope:benedictine
- Lodève:
lease_out_to_holy_order = scope:benedictine
- Figeac:
lease_out_to_holy_order = scope:benedictine
- Hallein:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Calw:
lease_out_to_holy_order = scope:benedictine
- Hersfeld:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Lorsch:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Deggendorf:
lease_out_to_holy_order = scope:benedictine
- Saint-Mihiel:
lease_out_to_holy_order = scope:benedictine
- Prüm:
lease_out_to_holy_order = scope:benedictine
- Loches:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Beaugency:
lease_out_to_holy_order = scope:benedictine
- Abbeville:
lease_out_to_holy_order = scope:benedictine
- Montalcino:
If
- Current year at least 868
- Current year less than 1178
Then
- Montalcino:
lease_out_to_holy_order = scope:benedictine
- Pomposa:
lease_out_to_holy_order = scope:benedictine
- Pinerolo:
lease_out_to_holy_order = scope:benedictine
- Saint Albans:
lease_out_to_holy_order = scope:benedictine
- Hexham:
lease_out_to_holy_order = scope:benedictine
- Wolverhampton:
lease_out_to_holy_order = scope:benedictine
- Taunton:
lease_out_to_holy_order = scope:benedictine
- Corvey:
lease_out_to_holy_order = scope:benedictine
- Corbie:
lease_out_to_holy_order = scope:benedictine
- Gent:
lease_out_to_holy_order = scope:benedictine
- Sankt Gallen:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Lure:
lease_out_to_holy_order = scope:benedictine
- Lorsch:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Calw:
lease_out_to_holy_order = scope:benedictine
- Hallein:
- Their holder’s liege:
get_title = prev
lease_out_to_holy_order = scope:benedictine
- Their holder’s liege:
- Deggendorf:
lease_out_to_holy_order = scope:benedictine
- Slaný:
lease_out_to_holy_order = scope:benedictine
- Lorient:
lease_out_to_holy_order = scope:benedictine
- Berga:
lease_out_to_holy_order = scope:benedictine
- Solin:
lease_out_to_holy_order = scope:benedictine
- Biograd:
lease_out_to_holy_order = scope:benedictine
- If current year at least 1178:
- Montalcino:
lease_out_to_holy_order = scope:benedictine
- Pomposa:
lease_out_to_holy_order = scope:benedictine
- Pinerolo:
lease_out_to_holy_order = scope:benedictine
- Slaný:
lease_out_to_holy_order = scope:benedictine
- Solin:
lease_out_to_holy_order = scope:benedictine
- Montalcino:
- … (more in the script below)
• 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 (120 lines of game script)
set_up_historical_monastic_orders_effect = {
#BENEDICTINES
#Store-brand Benedictines
if = {
limit = {
#Benedictines in Italy are eternal
always = yes
}
title:b_cento = {
save_scope_as = monastic_barony
county.holder = {
save_scope_as = game_start_founder
set_variable = {
name = monastic_game_start_founder
days = 10
}
}
}
if = {
limit = {
current_year < 868
}
character:benedictine_1 = {
save_scope_as = monastic_leader
}
}
else_if = {
limit = {
current_year < 1067
}
character:benedictine_3 = {
save_scope_as = monastic_leader
}
}
else = {
character:benedictine_4 = {
save_scope_as = monastic_leader
}
}
scope:game_start_founder = {
create_holy_order_neutral_effect = {
LEADER = scope:monastic_leader
CAPITAL = scope:monastic_barony
NEW_HO_SCOPE = new_holy_order
FOUNDER = scope:game_start_founder
ORDER_TYPE = monastic
}
}
scope:monastic_leader = {
#Add now-unneeded abbots as courtiers
if = {
limit = {
current_year < 868
}
add_courtier = character:pastoral_benedictine_1
add_courtier = character:anianian_benedictine_1
add_courtier = character:maurian_benedictine_1
add_courtier = character:gallic_benedictine_1
add_courtier = character:168025
}
else_if = {
limit = {
current_year < 1067
}
add_courtier = character:edgaric_1
add_courtier = character:corbine_benedictine_2
add_courtier = character:gurloesian_1
add_courtier = character:ripollese_1
add_courtier = character:sankt_gallen_1
add_courtier = character:ottonian_benedictine_1
add_courtier = character:glagolitic_1
add_courtier = character:guntherian_benedictine_1
}
else = {
add_courtier = character:guntherian_benedictine_2
}
every_courtier = {
add_trait = devoted
add_trait_xp = {
trait = devoted
value = { 20 80 }
}
}
faith = {
random_faith_holy_order = {
limit = {
leader = scope:monastic_leader
}
save_scope_as = benedictine
}
}
}
#Lease out additional holdings
#867 ONLY
if = {
limit = {
exists = scope:benedictine
current_year < 868
}
#ITALY
title:b_montalcino = { lease_out_to_holy_order = scope:benedictine }
title:b_farfa = {
holder.liege = { get_title = prev } # grab from theocrat baron vassal
lease_out_to_holy_order = scope:benedictine
}
title:b_cassino = { lease_out_to_holy_order = scope:benedictine }
#BRITAIN
#English monasteries that were doing something more or less benedictine
title:b_saint_albans = { lease_out_to_holy_order = scope:benedictine }
title:b_hexham = { lease_out_to_holy_order = scope:benedictine }
title:b_wolverhampton = { lease_out_to_holy_order = scope:benedictine }
title:b_whitby = { lease_out_to_holy_order = scope:benedictine }
#Only here until Cluniac/Gorziac reforms:
#AQUITAINE
#Represent Abbey of St Saveur
title:b_lodeve = { lease_out_to_holy_order = scope:benedictine }
title:b_figeac = { lease_out_to_holy_order = scope:benedictine }
As written in game/common/scripted_effects/00_holy_order_effects.txt.
The first 120 of its 3404 lines; the rest is in game/common/scripted_effects/00_holy_order_effects.txt from line 1612.
Where it is used
Every place in common/, events/ and history/ that calls set_up_historical_monastic_orders_effect.
On actions (the game's own hooks) (1)
- on_game_start
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.