N3OW/N3OW/common/scripted_effects/00_holy_order_effects.txt
2025-10-30 12:41:45 +00:00

187 lines
3 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 = {
scope:$GRANDMASTER$ = {
add_courtier = scope:recipient
if = {
limit = {
scope:recipient = {
is_close_family_of = scope:actor
}
}
add_opinion = {
target = scope:actor
modifier = pleased_opinion
opinion = 20
}
}
}
scope:recipient = {
add_trait = order_member
add_piety_level = 1
if = {
limit = { is_ruler = yes }
depose = yes
}
if = {
limit = {
faith != scope:$GRANDMASTER$.faith
}
set_character_faith = scope:$GRANDMASTER$.faith
}
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_clergy_effect = {
scope:recipient = {
add_opinion = {
modifier = demanded_taking_vows
target = scope:actor
}
simplified_clergy_effect = { RECIPIENT = scope:recipient }
}
}
simplified_clergy_effect = {
$RECIPIENT$ = {
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
}
}