3066 lines
66 KiB
Text
3066 lines
66 KiB
Text
|
|
|
|||
|
|
|
|||
|
|
send_child_to_holy_order_tooltip_effect = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
add_trait = order_member
|
|||
|
|
add_piety_level = 1
|
|||
|
|
custom_tooltip = character_will_leave_court_holy_order
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_married = yes
|
|||
|
|
}
|
|||
|
|
every_spouse = {
|
|||
|
|
divorce = scope:recipient
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = betrothed
|
|||
|
|
}
|
|||
|
|
break_betrothal = betrothed
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_been_promised_grand_wedding = yes
|
|||
|
|
}
|
|||
|
|
break_grand_wedding_betrothal_effect = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_concubine = yes
|
|||
|
|
}
|
|||
|
|
this.concubinist = {
|
|||
|
|
remove_concubine = scope:recipient
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
number_of_concubines > 0
|
|||
|
|
}
|
|||
|
|
every_concubine = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
remove_concubine = prev
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
send_child_to_holy_order_effect = {
|
|||
|
|
$GRANDMASTER$ = {
|
|||
|
|
add_courtier = scope:recipient
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:actor
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_opinion = {
|
|||
|
|
target = scope:actor
|
|||
|
|
modifier = pleased_opinion
|
|||
|
|
opinion = 25
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_opinion = {
|
|||
|
|
target = scope:actor
|
|||
|
|
modifier = pleased_opinion
|
|||
|
|
opinion = 15
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:recipient = {
|
|||
|
|
add_trait = order_member
|
|||
|
|
add_piety_level = 1
|
|||
|
|
if = {
|
|||
|
|
limit = { is_ruler = yes }
|
|||
|
|
depose = yes
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
faith != $GRANDMASTER$.faith
|
|||
|
|
}
|
|||
|
|
set_character_faith = $GRANDMASTER$.faith
|
|||
|
|
set_character_rite = $GRANDMASTER$.rite
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_married = yes
|
|||
|
|
}
|
|||
|
|
every_spouse = {
|
|||
|
|
divorce = scope:recipient
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = betrothed
|
|||
|
|
}
|
|||
|
|
break_betrothal = betrothed
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_been_promised_grand_wedding = yes
|
|||
|
|
}
|
|||
|
|
break_grand_wedding_betrothal_effect = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_concubine = yes
|
|||
|
|
}
|
|||
|
|
this.concubinist = {
|
|||
|
|
remove_concubine = scope:recipient
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
number_of_concubines > 0
|
|||
|
|
}
|
|||
|
|
every_concubine = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
remove_concubine = prev
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
take_vows_faith_opinion_effect = yes
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
$GRANDMASTER$ = {
|
|||
|
|
has_realm_law = cultural_holy_order_succession_law
|
|||
|
|
NOT = {
|
|||
|
|
culture = {
|
|||
|
|
has_same_culture_heritage = scope:recipient.culture
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
$GRANDMASTER$ = { save_scope_as = grandmaster }
|
|||
|
|
custom_tooltip = military_order_wrong_culture_tt
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
send_child_to_clergy_effect = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = { has_character_flag = pam_simony_paid_vows }
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
OR = {
|
|||
|
|
scope:demand ?= yes
|
|||
|
|
AND = {
|
|||
|
|
is_imprisoned_by = scope:puppet_or_actor
|
|||
|
|
OR = {
|
|||
|
|
is_heir_of = scope:puppet_or_actor
|
|||
|
|
any_claim = {
|
|||
|
|
exists = this
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_opinion = {
|
|||
|
|
modifier = forced_taking_vows
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
add_opinion = {
|
|||
|
|
modifier = demanded_taking_vows
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
simplified_clergy_effect = { RECIPIENT = scope:recipient }
|
|||
|
|
}
|
|||
|
|
scope:puppet_or_actor = {
|
|||
|
|
#Spiritual fulfillment gain
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_child_of = scope:puppet_or_actor
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = medium_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
is_child_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:puppet_or_actor.house
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = minor_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:puppet_or_actor.house
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
trigger_else = {
|
|||
|
|
OR = {
|
|||
|
|
dynasty ?= scope:puppet_or_actor.dynasty
|
|||
|
|
is_close_or_extended_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = miniscule_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = miniscule_spiritual_fulfillment_value
|
|||
|
|
multiply = 0.5
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
simplified_clergy_effect = {
|
|||
|
|
$RECIPIENT$ = {
|
|||
|
|
# Full monastic vows supersede a deacon's ordination
|
|||
|
|
remove_trait = cleric
|
|||
|
|
add_trait = devoted
|
|||
|
|
add_piety_level = 1
|
|||
|
|
if = {
|
|||
|
|
limit = { is_ruler = yes }
|
|||
|
|
depose = yes
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_married = yes
|
|||
|
|
}
|
|||
|
|
every_spouse = {
|
|||
|
|
divorce = $RECIPIENT$
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = betrothed
|
|||
|
|
}
|
|||
|
|
break_betrothal = betrothed
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_been_promised_grand_wedding = yes
|
|||
|
|
}
|
|||
|
|
break_grand_wedding_betrothal_effect = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_concubine = yes
|
|||
|
|
}
|
|||
|
|
this.concubinist = {
|
|||
|
|
remove_concubine = $RECIPIENT$
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
number_of_concubines > 0
|
|||
|
|
}
|
|||
|
|
every_concubine = {
|
|||
|
|
$RECIPIENT$ = {
|
|||
|
|
remove_concubine = prev
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
release_as_executioner_effect = {
|
|||
|
|
scope:actor = {
|
|||
|
|
court_position_grant_effect = {
|
|||
|
|
EMPLOYER = scope:actor
|
|||
|
|
POS = executioner
|
|||
|
|
CANDIDATE = scope:recipient
|
|||
|
|
}
|
|||
|
|
save_scope_as = liege
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
create_monastic_decision_effect = {
|
|||
|
|
save_scope_as = root_scope
|
|||
|
|
custom_tooltip = create_monastic_order_decision_effect_message_tenet
|
|||
|
|
custom_tooltip = create_monastic_order_decision_effect_message
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
OR = {
|
|||
|
|
has_realm_law = church_authority_1
|
|||
|
|
has_realm_law = church_authority_2
|
|||
|
|
has_realm_law = church_authority_3
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
custom_tooltip = create_monastic_order_gain_hook
|
|||
|
|
}
|
|||
|
|
custom_tooltip = create_monastic_order_decision_effect_message_warning
|
|||
|
|
|
|||
|
|
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
|
|||
|
|
stress_impact = {
|
|||
|
|
zealous = minor_stress_impact_loss
|
|||
|
|
impatient = miniscule_stress_impact_gain
|
|||
|
|
patient = miniscule_stress_impact_loss
|
|||
|
|
calm = miniscule_stress_impact_loss
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if = { # If you have no valid barony this will throw errors when you open the decision - we add this check to avoid that
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:title
|
|||
|
|
}
|
|||
|
|
hidden_effect = {
|
|||
|
|
scope:title = {
|
|||
|
|
ordered_county_province = {
|
|||
|
|
order_by = {
|
|||
|
|
value = 0
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
OR = {
|
|||
|
|
terrain = hills
|
|||
|
|
terrain = mountains
|
|||
|
|
terrain = desert_mountains
|
|||
|
|
terrain = desert
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add = 2
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
OR = {
|
|||
|
|
terrain = forest
|
|||
|
|
terrain = drylands
|
|||
|
|
terrain = wetlands
|
|||
|
|
terrain = jungle
|
|||
|
|
terrain = terraced_hills
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add = 1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
limit = {
|
|||
|
|
has_holding = no
|
|||
|
|
has_ongoing_construction = no
|
|||
|
|
}
|
|||
|
|
begin_create_holding = church_holding
|
|||
|
|
save_scope_as = province
|
|||
|
|
set_variable = {
|
|||
|
|
name = monastic_order_capital
|
|||
|
|
value = root.faith
|
|||
|
|
years = 50
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
trigger_event = holy_order.2009
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
create_monastic_order_leader_and_notification_effect = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:chosen_leader
|
|||
|
|
}
|
|||
|
|
scope:chosen_leader = {
|
|||
|
|
save_scope_as = new_monastic_leader
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
scope:leader = { save_scope_as = new_monastic_leader }
|
|||
|
|
}
|
|||
|
|
hidden_effect = {
|
|||
|
|
if = { # set up currencies for the HO leader, has to be saved as scope:leader
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:new_monastic_leader
|
|||
|
|
}
|
|||
|
|
scope:new_monastic_leader = {
|
|||
|
|
set_variable = founding_monastic
|
|||
|
|
}
|
|||
|
|
scope:new_holy_order.leader.primary_title = {
|
|||
|
|
set_variable = {
|
|||
|
|
name = founder
|
|||
|
|
value = scope:founder
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#If we have to transfer Order from default leader to someone else
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:new_monastic_leader = {
|
|||
|
|
has_character_flag = created_char
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:new_monastic_leader = {
|
|||
|
|
remove_character_flag = created_char
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
scope:new_holy_order.leader ?= scope:new_monastic_leader
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:new_holy_order.leader.primary_title = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = granted
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = yes
|
|||
|
|
}
|
|||
|
|
change_title_holder_include_vassals = {
|
|||
|
|
holder = scope:new_monastic_leader
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
}
|
|||
|
|
scope:new_monastic_leader = {
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = devoted
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
scope:new_monastic_leader = {
|
|||
|
|
add_gold = 100 #So that they have some money to lend out
|
|||
|
|
add_piety_level = 2
|
|||
|
|
add_gold = holy_order_starting_gold
|
|||
|
|
}
|
|||
|
|
every_in_list = {
|
|||
|
|
list = grabbed_monks
|
|||
|
|
limit = {
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:new_monastic_leader
|
|||
|
|
is_courtier_of = scope:new_monastic_leader
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:new_monastic_leader = { add_courtier = prev }
|
|||
|
|
remove_character_flag = created_char
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# send messages
|
|||
|
|
send_interface_toast = {
|
|||
|
|
type = monastic_holy_order_founded_message
|
|||
|
|
desc = i_created_monastic_holy_order_message
|
|||
|
|
custom_tooltip = monastic_order_tenet_advocated_tt
|
|||
|
|
left_icon = scope:new_monastic_leader
|
|||
|
|
right_icon = scope:new_holy_order.title
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
# send messages to relevant characters that HO got created
|
|||
|
|
save_scope_as = holy_order_creator
|
|||
|
|
every_player = {
|
|||
|
|
limit = {
|
|||
|
|
faith = scope:holy_order_creator.faith
|
|||
|
|
this != scope:holy_order_creator
|
|||
|
|
}
|
|||
|
|
send_interface_message = {
|
|||
|
|
type = monastic_holy_order_founded_message
|
|||
|
|
desc = someone_created_monastic_holy_order_message
|
|||
|
|
custom_tooltip = monastic_order_tenet_advocated_tt
|
|||
|
|
left_icon = scope:holy_order_creator
|
|||
|
|
right_icon = scope:new_holy_order.title
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
create_monastic_order_founder_effect = {
|
|||
|
|
# gain opinion with your HoF, if you have one and it's not you
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = faith.religious_head
|
|||
|
|
faith.religious_head != root
|
|||
|
|
}
|
|||
|
|
faith.religious_head = {
|
|||
|
|
add_opinion = {
|
|||
|
|
target = root
|
|||
|
|
modifier = founded_monastic_order_opinion
|
|||
|
|
opinion = 20
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
# get a nice modifier
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = { has_character_modifier = founded_monastic_order_modifier }
|
|||
|
|
}
|
|||
|
|
add_character_modifier = {
|
|||
|
|
modifier = founded_monastic_order_modifier
|
|||
|
|
years = 5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
# boost the fervor
|
|||
|
|
faith = {
|
|||
|
|
change_fervor = {
|
|||
|
|
value = notable_fervor_gain
|
|||
|
|
desc = fervor_gain_monastic_order_founded
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
|
|||
|
|
|
|||
|
|
scope:leader = {
|
|||
|
|
save_scope_as = order_master
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
create_character_memory = {
|
|||
|
|
type = founded_monastic_order_memory
|
|||
|
|
participants = {
|
|||
|
|
order_master = scope:leader
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# PAM - Catalysts
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_pam_dlc_trigger = yes
|
|||
|
|
religion = religion:christianity_religion
|
|||
|
|
situation:the_christian_church ?= {
|
|||
|
|
situation_top_has_catalyst = catalyst_the_christian_church_founded_monastic_order
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
situation:the_christian_church = {
|
|||
|
|
trigger_situation_catalyst = catalyst_the_christian_church_founded_monastic_order
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
grab_best_monk_for_tenet_effect = {
|
|||
|
|
$TENET$ = {
|
|||
|
|
save_scope_as = monk_grabbin_tenet
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = dynasty
|
|||
|
|
}
|
|||
|
|
dynasty = {
|
|||
|
|
ordered_dynasty_member = {
|
|||
|
|
order_by = learning
|
|||
|
|
#Family member courtier
|
|||
|
|
limit = {
|
|||
|
|
is_close_family_of = scope:founder
|
|||
|
|
house ?= scope:founder.house
|
|||
|
|
is_courtier_of = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
OR = {
|
|||
|
|
rite = {
|
|||
|
|
rite_has_tenet = scope:monk_grabbin_tenet
|
|||
|
|
}
|
|||
|
|
has_personal_tenet = scope:monk_grabbin_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Family member
|
|||
|
|
alternative_limit = {
|
|||
|
|
is_close_family_of = scope:founder
|
|||
|
|
house ?= scope:founder.house
|
|||
|
|
is_ruler = no
|
|||
|
|
in_diplomatic_range = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
#Don't steal players' courtiers
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
is_courtier = yes
|
|||
|
|
NOT = {
|
|||
|
|
is_courtier_of = scope:founder
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
liege = {
|
|||
|
|
is_ai = no
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#House member courtier
|
|||
|
|
alternative_limit = {
|
|||
|
|
house ?= scope:founder.house
|
|||
|
|
is_courtier_of = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
}
|
|||
|
|
#House member
|
|||
|
|
alternative_limit = {
|
|||
|
|
house ?= scope:founder.house
|
|||
|
|
is_ruler = no
|
|||
|
|
in_diplomatic_range = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
#Don't steal players' courtiers
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
is_courtier = yes
|
|||
|
|
NOT = {
|
|||
|
|
is_courtier_of = scope:founder
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
liege = {
|
|||
|
|
is_ai = no
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#dynasty member courtier
|
|||
|
|
alternative_limit = {
|
|||
|
|
is_courtier_of = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
}
|
|||
|
|
#Dynasty member
|
|||
|
|
alternative_limit = {
|
|||
|
|
is_ruler = no
|
|||
|
|
in_diplomatic_range = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
#Don't steal players' courtiers
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
is_courtier = yes
|
|||
|
|
NOT = {
|
|||
|
|
is_courtier_of = scope:founder
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
liege = {
|
|||
|
|
is_ai = no
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
exists = scope:abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Grab monk courtiers ordered by family importance
|
|||
|
|
ordered_courtier = {
|
|||
|
|
order_by = learning
|
|||
|
|
#Bastards first
|
|||
|
|
limit = {
|
|||
|
|
is_close_family_of = scope:founder
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
}
|
|||
|
|
#friends
|
|||
|
|
alternative_limit = {
|
|||
|
|
has_any_good_relationship_with_character_trigger = { CHARACTER = scope:founder }
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
potential_abbot_trigger = yes
|
|||
|
|
}
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
exists = scope:abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
random_list = {
|
|||
|
|
#male monk that belongs to local culture
|
|||
|
|
2 = {
|
|||
|
|
trigger = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:leader.primary_title
|
|||
|
|
}
|
|||
|
|
scope:leader.primary_title = {
|
|||
|
|
NOT = { has_variable = female_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Create newly-generated option
|
|||
|
|
create_character = {
|
|||
|
|
template = monastic_order_leader_character
|
|||
|
|
culture = scope:barony.county.culture
|
|||
|
|
location = scope:founder.location
|
|||
|
|
gender = male
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#male lowborn monk that belongs to local culture
|
|||
|
|
2 = {
|
|||
|
|
trigger = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:leader.primary_title
|
|||
|
|
}
|
|||
|
|
scope:leader.primary_title = {
|
|||
|
|
NOT = { has_variable = female_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Create newly-generated option
|
|||
|
|
create_character = {
|
|||
|
|
template = monastic_order_leader_character
|
|||
|
|
dynasty = none
|
|||
|
|
culture = scope:barony.county.culture
|
|||
|
|
location = scope:founder.location
|
|||
|
|
gender = male
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#male lowborn monk that belongs to founder culture
|
|||
|
|
1 = {
|
|||
|
|
trigger = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:leader.primary_title
|
|||
|
|
}
|
|||
|
|
scope:leader.primary_title = {
|
|||
|
|
NOT = { has_variable = female_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Create newly-generated option
|
|||
|
|
create_character = {
|
|||
|
|
template = monastic_order_leader_character
|
|||
|
|
dynasty = none
|
|||
|
|
culture = scope:barony.county.culture
|
|||
|
|
location = scope:founder.location
|
|||
|
|
gender = male
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#male monk that belongs to founder culture
|
|||
|
|
1 = {
|
|||
|
|
trigger = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:leader.primary_title
|
|||
|
|
}
|
|||
|
|
scope:leader.primary_title = {
|
|||
|
|
NOT = { has_variable = female_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Create newly-generated option
|
|||
|
|
create_character = {
|
|||
|
|
template = monastic_order_leader_character
|
|||
|
|
culture = scope:barony.county.culture
|
|||
|
|
location = scope:founder.location
|
|||
|
|
gender = male
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#female nun that belongs to local culture
|
|||
|
|
2 = {
|
|||
|
|
trigger = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:leader.primary_title
|
|||
|
|
}
|
|||
|
|
scope:leader.primary_title = {
|
|||
|
|
NOT = { has_variable = male_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Create newly-generated option
|
|||
|
|
create_character = {
|
|||
|
|
template = monastic_order_leader_character
|
|||
|
|
culture = scope:barony.county.culture
|
|||
|
|
location = scope:founder.location
|
|||
|
|
gender = female
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#female nun that belongs to founder culture
|
|||
|
|
1 = {
|
|||
|
|
trigger = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:leader.primary_title
|
|||
|
|
}
|
|||
|
|
scope:leader.primary_title = {
|
|||
|
|
NOT = { has_variable = male_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Create newly-generated option
|
|||
|
|
create_character = {
|
|||
|
|
template = monastic_order_leader_character
|
|||
|
|
culture = scope:barony.county.culture
|
|||
|
|
location = scope:founder.location
|
|||
|
|
gender = female
|
|||
|
|
save_scope_as = abbot_prospect
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:abbot_prospect = {
|
|||
|
|
add_character_flag = {
|
|||
|
|
flag = created_char
|
|||
|
|
days = 60
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:abbot_prospect = {
|
|||
|
|
add_to_list = grabbed_monks
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
pick_monastic_founder_option_effect = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:monastic_order
|
|||
|
|
}
|
|||
|
|
custom_tooltip = monastic_tenet_pick_tt
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
custom_tooltip = monastic_tenet_pick_unformed_order_tt
|
|||
|
|
}
|
|||
|
|
# holy_order.2009 stored the founder boost on the province until this order title existed
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:monastic_order
|
|||
|
|
scope:barony.title_province ?= { has_variable = new_order_ascetic_boost }
|
|||
|
|
}
|
|||
|
|
scope:barony.title_province = {
|
|||
|
|
var:new_order_ascetic_boost = { save_temporary_scope_as = new_order_ascetic_founder }
|
|||
|
|
remove_variable = new_order_ascetic_boost
|
|||
|
|
}
|
|||
|
|
scope:monastic_order = {
|
|||
|
|
set_variable = {
|
|||
|
|
name = ascetic_order_founder
|
|||
|
|
value = scope:new_order_ascetic_founder
|
|||
|
|
years = 50
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Gain popularity if taking holding from old order
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:target_order_tenet
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
if = {
|
|||
|
|
limit = { has_tenet_popularity_trigger = yes }
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
list_size = {
|
|||
|
|
name = revoked_leases
|
|||
|
|
value >= 5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_tenet_popularity = {
|
|||
|
|
target = scope:tenet_pick
|
|||
|
|
change = {
|
|||
|
|
value = medium_tenet_popularity_gain
|
|||
|
|
multiply = 4
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
list_size = {
|
|||
|
|
name = revoked_leases
|
|||
|
|
value >= 4
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_tenet_popularity = {
|
|||
|
|
target = scope:tenet_pick
|
|||
|
|
change = {
|
|||
|
|
value = medium_tenet_popularity_gain
|
|||
|
|
multiply = 3
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
list_size = {
|
|||
|
|
name = revoked_leases
|
|||
|
|
value >= 3
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_tenet_popularity = {
|
|||
|
|
target = scope:tenet_pick
|
|||
|
|
change = {
|
|||
|
|
value = medium_tenet_popularity_gain
|
|||
|
|
multiply = 2
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
list_size = {
|
|||
|
|
name = revoked_leases
|
|||
|
|
value >= 2
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_tenet_popularity = {
|
|||
|
|
target = scope:tenet_pick
|
|||
|
|
change = {
|
|||
|
|
value = medium_tenet_popularity_gain
|
|||
|
|
multiply = 1.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
change_tenet_popularity = {
|
|||
|
|
target = scope:tenet_pick
|
|||
|
|
change = {
|
|||
|
|
value = medium_tenet_popularity_gain
|
|||
|
|
multiply = 1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
rite = {
|
|||
|
|
OR = {
|
|||
|
|
has_tenet_status = { tenet = tenet_dulia status = core }
|
|||
|
|
has_tenet_status = { tenet = tenet_dulia status = permitted }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
custom_tooltip = monastic_founder_become_saint_tt
|
|||
|
|
}
|
|||
|
|
#Reward high church authority theocrat with a hook
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
root = {
|
|||
|
|
OR = {
|
|||
|
|
has_realm_law = church_authority_1
|
|||
|
|
has_realm_law = church_authority_2
|
|||
|
|
has_realm_law = church_authority_3
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
root = {
|
|||
|
|
add_hook = {
|
|||
|
|
type = indebted_hook
|
|||
|
|
target = scope:chosen_leader
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:target_lessee
|
|||
|
|
}
|
|||
|
|
scope:target_lessee = {
|
|||
|
|
set_relation_rival = {
|
|||
|
|
target = scope:chosen_leader
|
|||
|
|
reason = rival_shattered_order
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
take_vows_demand_effect = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_heir_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_tyranny = medium_tyranny_gain
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
scope:recipient = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
has_relation_rival = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
ai_zeal <= low_negative_ai_value
|
|||
|
|
ai_greed >= low_positive_ai_value
|
|||
|
|
ai_vengefulness >= low_positive_ai_value
|
|||
|
|
}
|
|||
|
|
NOR = {
|
|||
|
|
has_trait = forgiving
|
|||
|
|
has_trait = craven
|
|||
|
|
has_trait = zealous
|
|||
|
|
has_trait = content
|
|||
|
|
has_trait = humble
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
set_relation_rival = {
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
reason = rival_forced_to_take_vows
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
#Bastards with decently matching personality don't see this as betrayal
|
|||
|
|
NAND = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
ai_vengefulness < low_positive_ai_value
|
|||
|
|
ai_greed < low_positive_ai_value
|
|||
|
|
ai_zeal > low_negative_ai_value
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
progress_towards_rival_effect = {
|
|||
|
|
CHARACTER = scope:puppet_or_actor
|
|||
|
|
REASON = rival_forced_to_take_vows
|
|||
|
|
OPINION = 0
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
every_parent = {
|
|||
|
|
limit = {
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:puppet_or_actor
|
|||
|
|
#Doesn't have other kid in root's line succession
|
|||
|
|
any_child = {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:recipient
|
|||
|
|
}
|
|||
|
|
is_heir_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
has_trait = zealous
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_opinion = {
|
|||
|
|
modifier = forced_child_take_vows
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
send_child_to_monastic_order_effect = {
|
|||
|
|
# Legitimacy loss if you're doing this to your children
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_legitimacy = yes
|
|||
|
|
scope:recipient = { is_primary_heir_of = scope:puppet_or_actor }
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
hyperdulia_take_the_vows_trigger = yes
|
|||
|
|
}
|
|||
|
|
add_legitimacy = {
|
|||
|
|
value = miniscule_legitimacy_gain
|
|||
|
|
multiply = scope:puppet_or_actor.primary_title.tier
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
add_legitimacy = {
|
|||
|
|
value = minor_legitimacy_loss
|
|||
|
|
multiply = scope:puppet_or_actor.primary_title.tier
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_legitimacy = yes
|
|||
|
|
scope:recipient = { is_heir_of = scope:puppet_or_actor }
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
hyperdulia_take_the_vows_trigger = yes
|
|||
|
|
}
|
|||
|
|
add_legitimacy = {
|
|||
|
|
value = minor_legitimacy_gain
|
|||
|
|
multiply = scope:puppet_or_actor.primary_title.tier
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
add_legitimacy = {
|
|||
|
|
value = miniscule_legitimacy_loss
|
|||
|
|
multiply = scope:puppet_or_actor.primary_title.tier
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_legitimacy = yes
|
|||
|
|
hyperdulia_take_the_vows_trigger = yes
|
|||
|
|
}
|
|||
|
|
add_legitimacy = {
|
|||
|
|
value = medium_legitimacy_gain
|
|||
|
|
multiply = scope:puppet_or_actor.primary_title.tier
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#Spiritual fulfillment gain
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_child_of = scope:puppet_or_actor
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = major_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
is_child_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:puppet_or_actor.house
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = medium_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
trigger_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:puppet_or_actor.house
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
trigger_else = {
|
|||
|
|
OR = {
|
|||
|
|
dynasty ?= scope:puppet_or_actor.dynasty
|
|||
|
|
is_close_or_extended_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = minor_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
change_spiritual_fulfillment = {
|
|||
|
|
value = miniscule_spiritual_fulfillment_value
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_imprisoned = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
#Send to holy order if we can, if not... make just rando monk in a bishop's court
|
|||
|
|
scope:archabbot = {
|
|||
|
|
add_courtier = scope:recipient
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_opinion = {
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
modifier = pleased_opinion
|
|||
|
|
opinion = 15
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:puppet_or_actor.house
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
dynastic_monks_gain_xp_effect = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
scope:recipient = {
|
|||
|
|
add_trait = devoted
|
|||
|
|
add_piety_level = 1
|
|||
|
|
if = {
|
|||
|
|
limit = { is_ruler = yes }
|
|||
|
|
depose = yes
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_married = yes
|
|||
|
|
}
|
|||
|
|
every_spouse = {
|
|||
|
|
divorce = scope:recipient
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = betrothed
|
|||
|
|
}
|
|||
|
|
break_betrothal = betrothed
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_been_promised_grand_wedding = yes
|
|||
|
|
}
|
|||
|
|
break_grand_wedding_betrothal_effect = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_concubine = yes
|
|||
|
|
}
|
|||
|
|
this.concubinist = {
|
|||
|
|
remove_concubine = scope:recipient
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
number_of_concubines > 0
|
|||
|
|
}
|
|||
|
|
every_concubine = {
|
|||
|
|
scope:recipient = {
|
|||
|
|
remove_concubine = prev
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
house = {
|
|||
|
|
has_house_aspiration_parameter = humility_take_the_vows_bonus
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_piety_experience = 100
|
|||
|
|
add_character_modifier = {
|
|||
|
|
modifier = tgp_humility_take_the_vows_bonus_modifier
|
|||
|
|
years = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
take_vows_faith_opinion_effect = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = cp:councillor_court_chaplain
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
cp:councillor_court_chaplain = {
|
|||
|
|
add_opinion = {
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
modifier = pious_opinion
|
|||
|
|
opinion = 20
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#bastards
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = cp:councillor_court_chaplain
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
cp:councillor_court_chaplain = {
|
|||
|
|
add_opinion = {
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
modifier = pious_opinion
|
|||
|
|
opinion = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = faith.religious_head
|
|||
|
|
faith.religious_head != scope:puppet_or_actor
|
|||
|
|
scope:recipient = {
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = bastard
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
faith.religious_head = {
|
|||
|
|
add_opinion = {
|
|||
|
|
target = scope:puppet_or_actor
|
|||
|
|
modifier = pious_opinion
|
|||
|
|
opinion = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
monastic_lifestyle_xp_yearly_gain_effect = {
|
|||
|
|
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_learning_5
|
|||
|
|
}
|
|||
|
|
add_learning_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_learning_4
|
|||
|
|
}
|
|||
|
|
add_learning_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.9
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_learning_3
|
|||
|
|
}
|
|||
|
|
add_learning_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.8
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_learning_2
|
|||
|
|
}
|
|||
|
|
add_learning_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.7
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_learning_1
|
|||
|
|
}
|
|||
|
|
add_learning_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.6
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
add_learning_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.3
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Stewardship
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_stewardship_5
|
|||
|
|
}
|
|||
|
|
add_stewardship_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.8
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_stewardship_4
|
|||
|
|
}
|
|||
|
|
add_stewardship_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.7
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_stewardship_3
|
|||
|
|
}
|
|||
|
|
add_stewardship_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.6
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_stewardship_2
|
|||
|
|
}
|
|||
|
|
add_stewardship_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_stewardship_1
|
|||
|
|
}
|
|||
|
|
add_stewardship_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.4
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
add_stewardship_lifestyle_xp = {
|
|||
|
|
value = medium_lifestyle_xp
|
|||
|
|
multiply = 0.2
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
military_order_lifestyle_xp_yearly_gain_effect = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_martial_5
|
|||
|
|
}
|
|||
|
|
add_martial_lifestyle_xp = {
|
|||
|
|
value = minor_lifestyle_xp
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_martial_4
|
|||
|
|
}
|
|||
|
|
add_martial_lifestyle_xp = {
|
|||
|
|
value = minor_lifestyle_xp
|
|||
|
|
multiply = 0.9
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_martial_3
|
|||
|
|
}
|
|||
|
|
add_martial_lifestyle_xp = {
|
|||
|
|
value = minor_lifestyle_xp
|
|||
|
|
multiply = 0.8
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_martial_2
|
|||
|
|
}
|
|||
|
|
add_martial_lifestyle_xp = {
|
|||
|
|
value = minor_lifestyle_xp
|
|||
|
|
multiply = 0.7
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = education_martial_1
|
|||
|
|
}
|
|||
|
|
add_martial_lifestyle_xp = {
|
|||
|
|
value = minor_lifestyle_xp
|
|||
|
|
multiply = 0.6
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
add_martial_lifestyle_xp = {
|
|||
|
|
value = minor_lifestyle_xp
|
|||
|
|
multiply = 0.3
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
military_order_yearly_trait_gain_effect = {
|
|||
|
|
#Lazarites might gain a little leprosy...
|
|||
|
|
#Hospital orders gain physician trait XP
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
primary_title = {
|
|||
|
|
OR = {
|
|||
|
|
this = title:d_knights_of_st_lazarus
|
|||
|
|
this = title:d_knights_hospitaller
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
every_courtier = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = lifestyle_physician
|
|||
|
|
}
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = lifestyle_physician
|
|||
|
|
value = { 1 10 }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
random = {
|
|||
|
|
chance = 50
|
|||
|
|
ordered_courtier = {
|
|||
|
|
order_by = learning
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
has_trait = lifestyle_physician
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_trait = lifestyle_physician
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
set_up_historical_monastic_orders_effect = {
|
|||
|
|
#BENEDICTINES
|
|||
|
|
#Store-brand Benedictines
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
#Benedictines in Italy are eternal
|
|||
|
|
always = yes
|
|||
|
|
}
|
|||
|
|
title:b_bruck = {
|
|||
|
|
save_scope_as = monastic_barony_1
|
|||
|
|
barony.holder = {
|
|||
|
|
save_scope_as = game_start_founder_1
|
|||
|
|
set_variable = {
|
|||
|
|
name = monastic_game_start_founder_1
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
character:contemplativeholyorder01 = {
|
|||
|
|
save_scope_as = monastic_leader_1
|
|||
|
|
}
|
|||
|
|
scope:game_start_founder_1 = {
|
|||
|
|
create_holy_order_neutral_effect = {
|
|||
|
|
LEADER = scope:monastic_leader_1
|
|||
|
|
CAPITAL = scope:monastic_barony_1
|
|||
|
|
NEW_HO_SCOPE = new_holy_order
|
|||
|
|
FOUNDER = scope:game_start_founder
|
|||
|
|
ORDER_TYPE = monastic
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:monastic_leader_1 = {
|
|||
|
|
#Add now-unneeded abbots as courtiers
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = devoted
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = { 20 80 }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = scope:monastic_leader_1
|
|||
|
|
}
|
|||
|
|
save_scope_as = contemplativeteutons
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
title:b_bruck = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativeteutons }
|
|||
|
|
title:b_wieselburg = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativeteutons }
|
|||
|
|
title:b_horn = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativeteutons }
|
|||
|
|
title:b_kapfenberg = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativeteutons }
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
#Benedictines in Italy are eternal
|
|||
|
|
always = yes
|
|||
|
|
}
|
|||
|
|
title:b_velletri = {
|
|||
|
|
save_scope_as = monastic_barony_2
|
|||
|
|
barony.holder = {
|
|||
|
|
save_scope_as = game_start_founder_2
|
|||
|
|
set_variable = {
|
|||
|
|
name = monastic_game_start_founder_2
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
character:contemplativeholyorder02 = {
|
|||
|
|
save_scope_as = monastic_leader_2
|
|||
|
|
}
|
|||
|
|
scope:game_start_founder_2 = {
|
|||
|
|
create_holy_order_neutral_effect = {
|
|||
|
|
LEADER = scope:monastic_leader_2
|
|||
|
|
CAPITAL = scope:monastic_barony_2
|
|||
|
|
NEW_HO_SCOPE = new_holy_order
|
|||
|
|
FOUNDER = scope:game_start_founder
|
|||
|
|
ORDER_TYPE = monastic
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:monastic_leader_2 = {
|
|||
|
|
#Add now-unneeded abbots as courtiers
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = devoted
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = { 20 80 }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = scope:monastic_leader_2
|
|||
|
|
}
|
|||
|
|
save_scope_as = contemplativehospitallers
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
title:b_velletri = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativehospitallers }
|
|||
|
|
title:b_camaldoli = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativehospitallers }
|
|||
|
|
title:b_civitas_castelli = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativehospitallers }
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
#Benedictines in Italy are eternal
|
|||
|
|
always = yes
|
|||
|
|
}
|
|||
|
|
title:b_da_chainoc = {
|
|||
|
|
save_scope_as = monastic_barony_3
|
|||
|
|
barony.holder = {
|
|||
|
|
save_scope_as = game_start_founder_3
|
|||
|
|
set_variable = {
|
|||
|
|
name = monastic_game_start_founder
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
character:contemplativeholyorder03 = {
|
|||
|
|
save_scope_as = monastic_leader_3
|
|||
|
|
}
|
|||
|
|
scope:game_start_founder_3 = {
|
|||
|
|
create_holy_order_neutral_effect = {
|
|||
|
|
LEADER = scope:monastic_leader_3
|
|||
|
|
CAPITAL = scope:monastic_barony_3
|
|||
|
|
NEW_HO_SCOPE = new_holy_order
|
|||
|
|
FOUNDER = scope:game_start_founder_3
|
|||
|
|
ORDER_TYPE = monastic
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:monastic_leader_3 = {
|
|||
|
|
#Add now-unneeded abbots as courtiers
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = devoted
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = { 20 80 }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = scope:monastic_leader_3
|
|||
|
|
}
|
|||
|
|
save_scope_as = contemplativelazarites
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
title:b_da_chainoc = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativelazarites }
|
|||
|
|
title:b_ardee = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativelazarites }
|
|||
|
|
title:b_clonmel = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativelazarites }
|
|||
|
|
title:b_kilmallock = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:contemplativelazarites }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#Give all monastic leaders some monastic trait XP
|
|||
|
|
every_religion_global = {
|
|||
|
|
every_faith = {
|
|||
|
|
limit = {
|
|||
|
|
any_faith_holy_order = {
|
|||
|
|
exists = this
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
every_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = {
|
|||
|
|
has_trait = devoted
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
leader = {
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = { 40 90 }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
set_up_historical_military_orders_effect = {
|
|||
|
|
#CHRISTIAN MILITARY ORDERS
|
|||
|
|
#Create Teutons
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
always = yes
|
|||
|
|
}
|
|||
|
|
character:militantholyorder01 = {
|
|||
|
|
save_scope_as = leader_1
|
|||
|
|
}
|
|||
|
|
title:b_floridsdorf = {
|
|||
|
|
save_scope_as = barony_1
|
|||
|
|
barony.holder = {
|
|||
|
|
save_scope_as = game_start_founder_1
|
|||
|
|
set_variable = {
|
|||
|
|
name = military_order_game_start_founder_1
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
create_holy_order = {
|
|||
|
|
leader = scope:leader_1
|
|||
|
|
founder = scope:game_start_founder_1
|
|||
|
|
random_holy_order_type = military
|
|||
|
|
capital = scope:barony_1
|
|||
|
|
save_scope_as = new_holy_order
|
|||
|
|
}
|
|||
|
|
scope:leader_1 = {
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = order_member
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = scope:leader_1
|
|||
|
|
}
|
|||
|
|
save_scope_as = militantteutons
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
title:b_floridsdorf = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantteutons }
|
|||
|
|
title:b_kamnik = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantteutons }
|
|||
|
|
title:b_wels = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantteutons }
|
|||
|
|
title:b_freistadt = { lease_out_to_holy_order = scope:militantteutons }
|
|||
|
|
}
|
|||
|
|
#hospitallers
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
always = yes
|
|||
|
|
}
|
|||
|
|
character:militantholyorder02 = {
|
|||
|
|
save_scope_as = leader_2
|
|||
|
|
}
|
|||
|
|
title:b_gubbio = {
|
|||
|
|
save_scope_as = barony_2
|
|||
|
|
barony.holder = {
|
|||
|
|
save_scope_as = game_start_founder_2
|
|||
|
|
set_variable = {
|
|||
|
|
name = military_order_game_start_founder_2
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
create_holy_order = {
|
|||
|
|
leader = scope:leader_2
|
|||
|
|
founder = scope:game_start_founder_2
|
|||
|
|
random_holy_order_type = military
|
|||
|
|
capital = scope:barony_2
|
|||
|
|
save_scope_as = new_holy_order
|
|||
|
|
}
|
|||
|
|
scope:leader_2 = {
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = order_member
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = scope:leader_2
|
|||
|
|
}
|
|||
|
|
save_scope_as = militanthospitallers
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
title:b_gubbio = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militanthospitallers }
|
|||
|
|
title:b_guastalla = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militanthospitallers }
|
|||
|
|
title:b_brescello = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militanthospitallers }
|
|||
|
|
title:b_melfi = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militanthospitallers }
|
|||
|
|
}
|
|||
|
|
#Lazarites
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
always = yes
|
|||
|
|
}
|
|||
|
|
character:militantholyorder03 = {
|
|||
|
|
save_scope_as = leader_3
|
|||
|
|
}
|
|||
|
|
title:b_balrothery = {
|
|||
|
|
save_scope_as = barony_3
|
|||
|
|
barony.holder = {
|
|||
|
|
save_scope_as = game_start_founder_3
|
|||
|
|
set_variable = {
|
|||
|
|
name = military_order_game_start_founder_3
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
create_holy_order = {
|
|||
|
|
leader = scope:leader_3
|
|||
|
|
founder = scope:game_start_founder_3
|
|||
|
|
random_holy_order_type = military
|
|||
|
|
capital = scope:barony_3
|
|||
|
|
save_scope_as = new_holy_order
|
|||
|
|
}
|
|||
|
|
scope:leader_3 = {
|
|||
|
|
every_courtier = {
|
|||
|
|
add_trait = order_member
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
leader = scope:leader_3
|
|||
|
|
}
|
|||
|
|
save_scope_as = militantlazarites
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
title:b_kildare = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantlazarites }
|
|||
|
|
title:b_kinsale = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantlazarites }
|
|||
|
|
title:b_roscrea = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantlazarites }
|
|||
|
|
title:b_trim = {
|
|||
|
|
create_title_and_vassal_change = {
|
|||
|
|
type = revoked
|
|||
|
|
save_scope_as = change
|
|||
|
|
add_claim_on_loss = no
|
|||
|
|
}
|
|||
|
|
change_title_holder = {
|
|||
|
|
holder = title:c_coimbra.holder
|
|||
|
|
change = scope:change
|
|||
|
|
}
|
|||
|
|
resolve_title_and_vassal_change = scope:change
|
|||
|
|
lease_out_to_holy_order = scope:militantlazarites }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
dynastic_monks_gain_xp_effect = {
|
|||
|
|
if = {
|
|||
|
|
limit = { NOT = { exists = scope:puppet_or_actor } }
|
|||
|
|
scope:actor = { save_scope_as = puppet_or_actor }
|
|||
|
|
}
|
|||
|
|
every_courtier = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = devoted
|
|||
|
|
OR = {
|
|||
|
|
AND = {
|
|||
|
|
exists = scope:puppet_or_actor.dynasty
|
|||
|
|
dynasty ?= scope:puppet_or_actor.dynasty
|
|||
|
|
}
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = {
|
|||
|
|
value = 2
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_close_family_of = scope:puppet_or_actor
|
|||
|
|
}
|
|||
|
|
add = 2
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
house ?= scope:puppet_or_actor.house
|
|||
|
|
}
|
|||
|
|
add = 2
|
|||
|
|
}
|
|||
|
|
#increase for lease granting interaction
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:target
|
|||
|
|
}
|
|||
|
|
multiply = 2
|
|||
|
|
}
|
|||
|
|
#Increase for huge donation
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:huge_donation ?= yes
|
|||
|
|
}
|
|||
|
|
multiply = 2.5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Holy Order patronage loss warning
|
|||
|
|
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
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
monastic_belief_spreading_targeting_effect = {
|
|||
|
|
save_scope_as = holy_order_leader
|
|||
|
|
holy_order = {
|
|||
|
|
save_scope_as = holy_order
|
|||
|
|
}
|
|||
|
|
holy_order.order_tenet = {
|
|||
|
|
save_scope_as = order_tenet
|
|||
|
|
}
|
|||
|
|
rite = {
|
|||
|
|
save_scope_as = order_rite
|
|||
|
|
}
|
|||
|
|
#Make lists of targets
|
|||
|
|
holy_order = {
|
|||
|
|
#Spread Tenet to AI characters as personal tenet
|
|||
|
|
every_leased_title = {
|
|||
|
|
#leases' duchies' counties
|
|||
|
|
duchy ?= {
|
|||
|
|
every_de_jure_county_holder = {
|
|||
|
|
limit = {
|
|||
|
|
pam_monastic_tenet_spread_target_trigger = { ORDER_LEADER = scope:holy_order_leader }
|
|||
|
|
}
|
|||
|
|
add_to_list = personal_tenet_targets
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Neighboring counties to leases
|
|||
|
|
county ?= {
|
|||
|
|
every_neighboring_county = {
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
holder ?= {
|
|||
|
|
pam_monastic_tenet_spread_target_trigger = { ORDER_LEADER = scope:holy_order_leader }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
holder = {
|
|||
|
|
add_to_list = personal_tenet_targets
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Change character tenets
|
|||
|
|
every_in_list = {
|
|||
|
|
list = personal_tenet_targets
|
|||
|
|
#Of AI
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
is_ai = yes
|
|||
|
|
}
|
|||
|
|
random = {
|
|||
|
|
chance = {
|
|||
|
|
value = {
|
|||
|
|
value = scope:holy_order_leader.learning
|
|||
|
|
multiply = 0.5
|
|||
|
|
}
|
|||
|
|
#Actually want tenet
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
any_desired_tenet = {
|
|||
|
|
selection_count = 97
|
|||
|
|
only_positive = yes
|
|||
|
|
threshold = 1
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add = 0.1
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
any_desired_tenet = {
|
|||
|
|
selection_count = 1
|
|||
|
|
only_positive = yes
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 5
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
any_desired_tenet = {
|
|||
|
|
selection_count = 3
|
|||
|
|
only_positive = yes
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 3
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
any_desired_tenet = {
|
|||
|
|
selection_count = 6
|
|||
|
|
only_positive = yes
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 2
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
rite = {
|
|||
|
|
has_tenet_status = {
|
|||
|
|
tenet = scope:order_tenet
|
|||
|
|
status = core
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 2
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
rite = {
|
|||
|
|
has_tenet_status = {
|
|||
|
|
tenet = scope:order_tenet
|
|||
|
|
status = permitted
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 1.5
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
rite = {
|
|||
|
|
has_tenet_status = {
|
|||
|
|
tenet = scope:order_tenet
|
|||
|
|
status = prohibited
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.25
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
capital_county.kingdom = scope:holy_order_leader.capital_county.kingdom
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.75
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
capital_county.empire = scope:holy_order_leader.capital_county.empire
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
multiply = 0.75
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
highest_held_title_tier >= tier_kingdom
|
|||
|
|
}
|
|||
|
|
multiply = 0.25
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
add_to_list = order_tenet_accepted
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
monastic_tenet_espousing_effect = {
|
|||
|
|
add_character_flag = {
|
|||
|
|
flag = mon_tenet_cooldown
|
|||
|
|
years = 5
|
|||
|
|
}
|
|||
|
|
#Need to convince at least someone, jeez...
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
any_in_list = {
|
|||
|
|
count >= 1
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
is_ai = yes
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
random_in_list = {
|
|||
|
|
list = personal_tenet_targets
|
|||
|
|
limit = {
|
|||
|
|
highest_held_title_tier <= tier_county
|
|||
|
|
is_ai = yes
|
|||
|
|
}
|
|||
|
|
limit = {
|
|||
|
|
highest_held_title_tier <= tier_duchy
|
|||
|
|
is_ai = yes
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
is_ai = yes
|
|||
|
|
}
|
|||
|
|
add_to_list = order_tenet_accepted
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_value_as = {
|
|||
|
|
name = order_tenet_accepted_count
|
|||
|
|
value = list_size:order_tenet_accepted
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
#APPLY TO CHARACTERS SELECTED IN monastic_belief_spreading_targeting_effect
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
any_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
count >= 1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
custom_tooltip = order_tenet_accepted_list_tt
|
|||
|
|
}
|
|||
|
|
hidden_effect = {
|
|||
|
|
every_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
add_character_flag = free_tenet_change
|
|||
|
|
force_set_personal_tenet = scope:order_tenet
|
|||
|
|
remove_character_flag = free_tenet_change
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#players choose via interaction
|
|||
|
|
every_in_list = {
|
|||
|
|
list = personal_tenet_targets
|
|||
|
|
limit = {
|
|||
|
|
is_ai = no
|
|||
|
|
}
|
|||
|
|
save_scope_as = tenet_interaction_recipient
|
|||
|
|
run_interaction = {
|
|||
|
|
interaction = pam_evangelize_personal_tenet_interaction
|
|||
|
|
actor = scope:holy_order_leader
|
|||
|
|
recipient = scope:tenet_interaction_recipient
|
|||
|
|
execute_threshold = decline
|
|||
|
|
}
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
#give some correct rite courtiers piety
|
|||
|
|
custom_tooltip = espouse_beliefs_monks_piety_tt
|
|||
|
|
hidden_effect = {
|
|||
|
|
add_piety = medium_piety_gain
|
|||
|
|
every_courtier = {
|
|||
|
|
limit = {
|
|||
|
|
rite = scope:order_rite
|
|||
|
|
has_trait = devoted
|
|||
|
|
}
|
|||
|
|
random = {
|
|||
|
|
chance = {
|
|||
|
|
value = scope:holy_order_leader.learning
|
|||
|
|
multiply = 4
|
|||
|
|
}
|
|||
|
|
add_piety = medium_piety_gain
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Set courtier rite to order rite
|
|||
|
|
every_courtier = {
|
|||
|
|
limit = {
|
|||
|
|
faith = scope:holy_order_leader.faith
|
|||
|
|
NOT = {
|
|||
|
|
rite = scope:order_rite
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
random = {
|
|||
|
|
chance = {
|
|||
|
|
value = scope:holy_order_leader.learning
|
|||
|
|
multiply = 4
|
|||
|
|
}
|
|||
|
|
set_character_rite = scope:holy_order_leader.rite
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:holy_order_leader = {
|
|||
|
|
if = {
|
|||
|
|
limit = { has_trait = devoted }
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = 5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#Inform their lease holders of what happened
|
|||
|
|
holy_order = {
|
|||
|
|
every_leased_title = {
|
|||
|
|
county.holder ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
every_faith_playable_ruler = {
|
|||
|
|
limit = {
|
|||
|
|
is_clergy = yes
|
|||
|
|
in_diplomatic_range = scope:holy_order_leader
|
|||
|
|
}
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
hidden_effect = {
|
|||
|
|
every_in_list = {
|
|||
|
|
list = rulers_to_notify
|
|||
|
|
limit = {
|
|||
|
|
is_ai = no
|
|||
|
|
}
|
|||
|
|
save_scope_as = msg_receiver
|
|||
|
|
#Personal Tenet spread message
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
any_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
count > 2
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
ordered_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
order_by = highest_held_title_tier
|
|||
|
|
limit = {
|
|||
|
|
is_liege_or_above_of = scope:msg_receiver
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:msg_receiver.house
|
|||
|
|
has_any_scripted_relation = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
liege ?= scope:msg_receiver
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
top_liege ?= scope:msg_receiver
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
any_character_to_title_neighboring_county = {
|
|||
|
|
holder = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = tenet_change_1
|
|||
|
|
}
|
|||
|
|
ordered_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
order_by = highest_held_title_tier
|
|||
|
|
limit = {
|
|||
|
|
is_liege_or_above_of = scope:msg_receiver
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
OR = {
|
|||
|
|
house ?= scope:msg_receiver.house
|
|||
|
|
has_any_scripted_relation = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
liege ?= scope:msg_receiver
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
top_liege ?= scope:msg_receiver
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
any_character_to_title_neighboring_county = {
|
|||
|
|
holder = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = tenet_change_2
|
|||
|
|
}
|
|||
|
|
send_interface_message = {
|
|||
|
|
type = msg_order_espousing_beliefs
|
|||
|
|
title = msg_order_espousing_beliefs_title_tenet
|
|||
|
|
left_icon = scope:tenet_change_1
|
|||
|
|
right_icon = scope:holy_order_leader.primary_title
|
|||
|
|
custom_tooltip = order_spreading_tenet_tt
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
any_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
count = 2
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
random_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = tenet_change_1
|
|||
|
|
}
|
|||
|
|
random_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
limit = {
|
|||
|
|
NOR = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
this = scope:tenet_change_1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = tenet_change_2
|
|||
|
|
}
|
|||
|
|
send_interface_message = {
|
|||
|
|
type = msg_order_espousing_beliefs
|
|||
|
|
title = msg_order_espousing_beliefs_title_tenet
|
|||
|
|
left_icon = scope:tenet_change_1
|
|||
|
|
right_icon = scope:holy_order_leader.primary_title
|
|||
|
|
custom_tooltip = order_spreading_tenet_tt_char_1
|
|||
|
|
custom_tooltip = order_spreading_tenet_tt_char_2
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
any_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
count = 1
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:msg_receiver
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
random_in_list = {
|
|||
|
|
list = order_tenet_accepted
|
|||
|
|
save_scope_as = tenet_change_1
|
|||
|
|
}
|
|||
|
|
send_interface_message = {
|
|||
|
|
type = msg_order_espousing_beliefs
|
|||
|
|
title = msg_order_espousing_beliefs_title_tenet
|
|||
|
|
left_icon = scope:tenet_change_1
|
|||
|
|
right_icon = scope:holy_order_leader.primary_title
|
|||
|
|
custom_tooltip = order_spreading_tenet_tt_char_1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#Other effect where they gain monasteries and increase development
|
|||
|
|
|
|||
|
|
#Get monasteries where Rite and ruler tenet matches theirs
|
|||
|
|
#Increase development in matching-rite duchies they lease in
|
|||
|
|
#improve monk courtiers of leader
|
|||
|
|
#Inform their lease holders of what happened
|
|||
|
|
#Inform lease holders of other monasteries they had monasteries switched
|
|||
|
|
monastic_lease_swapping_effect = {
|
|||
|
|
add_character_flag = {
|
|||
|
|
flag = mon_monastery_gain_cooldown
|
|||
|
|
years = 3
|
|||
|
|
}
|
|||
|
|
add_character_flag = {
|
|||
|
|
flag = just_swapped_lease
|
|||
|
|
days = 10
|
|||
|
|
}
|
|||
|
|
save_scope_as = holy_order_leader
|
|||
|
|
holy_order = {
|
|||
|
|
save_scope_as = holy_order
|
|||
|
|
}
|
|||
|
|
holy_order.order_tenet = {
|
|||
|
|
save_scope_as = order_tenet
|
|||
|
|
}
|
|||
|
|
rite = {
|
|||
|
|
save_scope_as = order_rite
|
|||
|
|
}
|
|||
|
|
faith = {
|
|||
|
|
random_faith_holy_order = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:holy_order
|
|||
|
|
}
|
|||
|
|
any_leased_title = {
|
|||
|
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
|||
|
|
}
|
|||
|
|
scope:holy_order_leader.var:old_order ?= this
|
|||
|
|
}
|
|||
|
|
alternative_limit = {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:holy_order
|
|||
|
|
}
|
|||
|
|
any_leased_title = {
|
|||
|
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = target_order
|
|||
|
|
ordered_leased_title = {
|
|||
|
|
order_by = {
|
|||
|
|
value = county.development_level
|
|||
|
|
multiply = -1
|
|||
|
|
}
|
|||
|
|
limit = {
|
|||
|
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
|||
|
|
NOT = {
|
|||
|
|
county = scope:target_order.leader.capital_county
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
save_scope_as = taken_monastery
|
|||
|
|
}
|
|||
|
|
#Capital monastery if only available
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
NOT = {
|
|||
|
|
exists = scope:taken_monastery
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
ordered_leased_title = {
|
|||
|
|
order_by = {
|
|||
|
|
value = county.development_level
|
|||
|
|
multiply = -1
|
|||
|
|
}
|
|||
|
|
limit = {
|
|||
|
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
|||
|
|
}
|
|||
|
|
save_scope_as = taken_monastery
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
exists = scope:taken_monastery
|
|||
|
|
}
|
|||
|
|
#Inform their lease holders of what is happening
|
|||
|
|
holy_order = {
|
|||
|
|
every_leased_title = {
|
|||
|
|
county.holder ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
faith.religious_head ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
rite.head_of_rite ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
scope:target_order = {
|
|||
|
|
every_leased_title = {
|
|||
|
|
county.holder ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
leader.rite.head_of_rite ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:taken_monastery.county = {
|
|||
|
|
holder ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
clerical_region_title.holder ?= {
|
|||
|
|
add_to_list = rulers_to_notify
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
every_in_list = {
|
|||
|
|
list = rulers_to_notify
|
|||
|
|
limit = {
|
|||
|
|
is_ai = no
|
|||
|
|
}
|
|||
|
|
save_scope_as = msg_receiver
|
|||
|
|
|
|||
|
|
#Normal message
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:target_order = {
|
|||
|
|
any_leased_title = {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:taken_monastery
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
send_interface_message = {
|
|||
|
|
type = msg_order_took_over_monastery
|
|||
|
|
title = msg_order_took_over_monastery.t
|
|||
|
|
left_icon = scope:holy_order_leader.primary_title
|
|||
|
|
right_icon = scope:target_order.leader.primary_title
|
|||
|
|
custom_tooltip = order_took_over_monastery_tt
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
#Rite mismatch caused this
|
|||
|
|
scope:target_order.leader.rite ?= {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:order_rite
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
NOT = {
|
|||
|
|
scope:taken_monastery.county.clerical_region_title.holder.rite ?= scope:target_order.leader.rite
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
scope:taken_monastery.county.holder.rite ?= this
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:target_order.leader.rite = { save_scope_as = target_rite }
|
|||
|
|
custom_tooltip = monastic_spreading_rite_tt
|
|||
|
|
}
|
|||
|
|
#Influence of patron or puppeteer
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:taken_monastery.county = {
|
|||
|
|
OR = {
|
|||
|
|
clerical_region_title.holder ?= {
|
|||
|
|
OR = {
|
|||
|
|
scope:holy_order.holy_order_patron ?= this
|
|||
|
|
scope:holy_order_leader.puppeteer ?= this
|
|||
|
|
any_personal_tenet = {
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
holder ?= {
|
|||
|
|
OR = {
|
|||
|
|
scope:holy_order.holy_order_patron ?= this
|
|||
|
|
scope:holy_order_leader.puppeteer ?= this
|
|||
|
|
any_personal_tenet = {
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:taken_monastery.county.clerical_region_title.holder ?= {
|
|||
|
|
OR = {
|
|||
|
|
scope:holy_order.holy_order_patron ?= this
|
|||
|
|
scope:holy_order_leader.puppeteer ?= this
|
|||
|
|
any_personal_tenet = {
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:taken_monastery.county.clerical_region_title.holder = {
|
|||
|
|
save_scope_as = instigator
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
scope:taken_monastery.county.holder ?= {
|
|||
|
|
save_scope_as = instigator
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
custom_tooltip = monastic_spreading_instigated_tt
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
#Order destroying message
|
|||
|
|
else = {
|
|||
|
|
send_interface_message = {
|
|||
|
|
type = msg_order_took_over_monastery
|
|||
|
|
title = msg_order_took_over_other_order.t
|
|||
|
|
left_icon = scope:holy_order_leader.primary_title
|
|||
|
|
right_icon = scope:target_order.leader.primary_title
|
|||
|
|
custom_tooltip = order_took_over_capital_monastery_tt
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
#Rite mismatch caused this
|
|||
|
|
scope:target_order.leader.rite ?= {
|
|||
|
|
NOT = {
|
|||
|
|
this = scope:order_rite
|
|||
|
|
}
|
|||
|
|
OR = {
|
|||
|
|
NOT = {
|
|||
|
|
scope:taken_monastery.county.clerical_region_title.holder.rite ?= scope:target_order.leader.rite
|
|||
|
|
}
|
|||
|
|
NOT = {
|
|||
|
|
scope:taken_monastery.county.holder.rite ?= this
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:target_order.leader.rite = { save_scope_as = target_rite }
|
|||
|
|
custom_tooltip = monastic_spreading_rite_tt
|
|||
|
|
}
|
|||
|
|
#Influence of patron or puppeteer
|
|||
|
|
else_if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:taken_monastery.county = {
|
|||
|
|
OR = {
|
|||
|
|
clerical_region_title.holder ?= {
|
|||
|
|
OR = {
|
|||
|
|
scope:holy_order.holy_order_patron ?= this
|
|||
|
|
scope:holy_order_leader.puppeteer ?= this
|
|||
|
|
any_personal_tenet = {
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
holder ?= {
|
|||
|
|
OR = {
|
|||
|
|
scope:holy_order.holy_order_patron ?= this
|
|||
|
|
scope:holy_order_leader.puppeteer ?= this
|
|||
|
|
any_personal_tenet = {
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
if = {
|
|||
|
|
limit = {
|
|||
|
|
scope:taken_monastery.county.clerical_region_title.holder ?= {
|
|||
|
|
OR = {
|
|||
|
|
scope:holy_order.holy_order_patron ?= this
|
|||
|
|
scope:holy_order_leader.puppeteer ?= this
|
|||
|
|
any_personal_tenet = {
|
|||
|
|
this = scope:order_tenet
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
scope:taken_monastery.county.clerical_region_title.holder = {
|
|||
|
|
save_scope_as = instigator
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else = {
|
|||
|
|
scope:taken_monastery.county.holder ?= {
|
|||
|
|
save_scope_as = instigator
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
custom_tooltip = monastic_spreading_instigated_tt
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
scope:taken_monastery = {
|
|||
|
|
revoke_lease = yes
|
|||
|
|
lease_out_to_holy_order = scope:holy_order
|
|||
|
|
}
|
|||
|
|
#Monk courtiers get better
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = 10
|
|||
|
|
}
|
|||
|
|
every_courtier = {
|
|||
|
|
limit = {
|
|||
|
|
has_trait = devoted
|
|||
|
|
}
|
|||
|
|
add_trait_xp = {
|
|||
|
|
trait = devoted
|
|||
|
|
value = 5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|