Scripted effect
add_suitable_same_realm_children_to_list
add_suitable_same_realm_children_to_list = yesgame/common/scripted_effects/00_childhood_effects.txt, line 513 (197 lines). No parameters.
add_suitable_same_realm_children_to_list is a scripted effect in Crusader Kings III, written at line 513 of its file. It takes no parameters: add_suitable_same_realm_children_to_list = yes. The game's script calls it in 7 places, among them Armory Break-in (event child_personality.7100), Blood and Spit (event child_personality.7070) and Mysteries of the … (event child_personality.7060). Patch 1.20.1.2, from game/common/scripted_effects/00_childhood_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
add_suitable_same_realm_children_to_list = {
if = {
limit = {
OR = {
father ?= {
is_ai = no
}
mother ?= {
is_ai = no
}
host ?= {
is_ai = no
}
}
}
if = {
limit = { exists = location.county.holder.top_liege }
location.county.holder.top_liege = {
save_scope_as = top_liege_scope
}
}
else = {
save_scope_as = top_liege_scope
}
scope:top_liege_scope = {
if = {
limit = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
add_to_list = suitable_same_realm_children
}
if = {
limit = {
any_courtier_or_guest = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
every_courtier_or_guest = {
limit = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
add_to_list = suitable_same_realm_children
}
}
if = {
limit = {
any_warden_hostage = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
every_warden_hostage = {
limit = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
add_to_list = suitable_same_realm_children
}
}
if = {
limit = {
any_vassal_or_below = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
every_vassal_or_below = {
limit = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
add_to_list = suitable_same_realm_children
}
}
if = {
limit = {
any_vassal_or_below = {
any_courtier_or_guest = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
}
every_vassal_or_below = {
limit = {
any_courtier_or_guest = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
every_courtier_or_guest = {
limit = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
add_to_list = suitable_same_realm_children
}As written in game/common/scripted_effects/00_childhood_effects.txt.
The first 120 of its 197 lines; the rest is in game/common/scripted_effects/00_childhood_effects.txt from line 513.
Where it is used
Every place in common/, events/ and history/ that calls add_suitable_same_realm_children_to_list.
Events (7)
- Armory Break-in
child_personality.7100 - Blood and Spit
child_personality.7070 - Mysteries of the …
child_personality.7060 - The Dark Cave
child_personality.7200 - The Stolen Keg
child_personality.7000 - To Game or To Ride?
child_personality.7400
1 more
- What Do You Want To Do?
bp2_yearly.8020
Source: game/common/scripted_effects/00_childhood_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.