Scripted effect · Wards and Wardens files
adopt_effect
adopt_effect = { ADOPTER = … CHILD = … }game/common/scripted_effects/05_dlc_bp2_effects.txt, line 1098 (282 lines). Parameters: $ADOPTER$, $CHILD$.
adopt_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 1098 of its file. A call passes 2 parameters: ADOPTER and CHILD. The game's script calls it in 6 places, among them Adopt (interaction), Designate Theocratic Heir (interaction) and …, a Breakthrough (event travel_events.4013). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/05_dlc_bp2_effects.txt.
The comment above it in the file
Adoption effect
What it does
$ADOPTER$ = { … }scope:adoptee:- If any relation:
remove_guardian_effect = { … }
If
NOT = { scope:destination_province = scope:adoptee.location }
Then
- Sets out on a journey (a travel plan)
- … must first Travel to … court
If
scope:adopter:has_blood_brother = yes- Any relation:
NOT = { is_close_family_of = scope:adoptee }
Then
- If any relation:
• 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)
adopt_effect = {
$CHILD$ = { save_scope_as = adoptee }
$ADOPTER$ = {
save_scope_as = adopter
adopt = scope:adoptee
scope:adoptee = {
if = {
limit = { exists = scope:adopter.house }
hidden_effect = {
set_house = scope:adopter.house
}
custom_tooltip = adventurer_adoption_child_tt
}
# Remove bastard traits
if = {
limit = {
has_any_bastard_trait_trigger = yes
}
remove_all_bastard_traits = yes
}
}
# Parochial vassals hate this
if = {
limit = {
NOR = {
has_game_rule = adoption_always_allowed
culture = { has_cultural_parameter = allows_adoption }
}
}
every_vassal = {
custom = every_courtly_vassal_actor
vassal_stance = courtly
limit = {
NOT = {
rite ?= { rite_has_parameter = tenet_adoptionism_adoption_accepted }
}
}
add_opinion = {
modifier = angry_opinion
opinion = -20
target = scope:adopter
}
}
}
# Zealous vassals *hate* you adopting a heretic
if = {
limit = {
faith = {
faith_hostility_level = {
target = scope:adoptee.faith
value >= faith_evil_level
}
}
}
every_vassal = {
custom = every_zealot_vassal_actor
vassal_stance = zealot
limit = {
NOT = {
rite ?= { rite_has_parameter = tenet_adoptionism_adoption_accepted }
}
}
add_opinion = {
modifier = angry_opinion
opinion = -25
target = scope:adopter
}
}
}
else_if = {
limit = {
faith = {
faith_hostility_level = {
target = scope:adoptee.faith
value >= faith_hostile_level
}
}
}
every_vassal = {
custom = every_zealot_vassal_actor
vassal_stance = zealot
limit = {
NOT = {
rite ?= { rite_has_parameter = tenet_adoptionism_adoption_accepted }
}
}
add_opinion = {
modifier = angry_opinion
opinion = -20
target = scope:adopter
}
}
}
else_if = {
limit = {
faith = {
faith_hostility_level = {
target = scope:adoptee.faith
value >= faith_astray_level
}
}
}
every_vassal = {
custom = every_zealot_vassal_actor
vassal_stance = zealot
limit = {
NOT = {
rite ?= { rite_has_parameter = tenet_adoptionism_adoption_accepted }
}
}
add_opinion = {
modifier = angry_opinion
opinion = -10
target = scope:adopter
}
}
}
# Minority vassals *love* you adopting a foreigner
if = {
limit = {As written in game/common/scripted_effects/05_dlc_bp2_effects.txt.
The first 120 of its 282 lines; the rest is in game/common/scripted_effects/05_dlc_bp2_effects.txt from line 1098.
Where it is used
Every place in common/, events/ and history/ that calls adopt_effect.
Character interactions (2)
Events (4)
- …, a Breakthrough
travel_events.4013 - A Child of the Court
hold_court.8100 - adoption.0001
- Spoilt for Choice
ep3_story_cycle_violet_poet.0003
Source: game/common/scripted_effects/05_dlc_bp2_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.