Scripted trigger
suitable_same_realm_child
suitable_same_realm_child = yesgame/common/scripted_triggers/00_childhood_triggers.txt, line 199 (77 lines). No parameters.
suitable_same_realm_child is a scripted trigger in Crusader Kings III, written at line 199 of its file. It takes no parameters: suitable_same_realm_child = yes (or no). 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_triggers/00_childhood_triggers.txt.
What it checks
If
One of these
- Their father: Is played by a person
or
Their mother: Is played by a personor
Their host: Is played by a person
Then
- Their location’s county’s holder:
One of these
All of these
- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
or
Any courtier or guest:- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
or
Any warden hostage:- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
or
Any vassal:- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
or
Any vassal › Any courtier or guest:- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
Otherwise
- Their location’s county’s holder:
One of these
All of these
- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
or
Any courtier:- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
or
Any warden hostage:- Is played by the AI
is_available_child = yesthis != root- Is at least 6 years old
• 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 (77 lines of game script)
suitable_same_realm_child = {
trigger_if = {
limit = {
OR = {
father ?= {
is_ai = no
}
mother ?= {
is_ai = no
}
host ?= {
is_ai = no
}
}
}
location.county.holder ?= { # Scoping like this allows children in the pool to also get this event
OR = {
AND = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
any_courtier_or_guest = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
any_warden_hostage = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
any_vassal = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
any_vassal = {
any_courtier_or_guest = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
}
}
}
trigger_else = {
location.county.holder ?= { # Scoping like this allows children in the pool to also get this event
OR = {
AND = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
any_courtier = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
any_warden_hostage = {
is_ai = yes
is_available_child = yes
this != root
age >= 6
}
}
}
}
}As written in game/common/scripted_triggers/00_childhood_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls suitable_same_realm_child.
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_triggers/00_childhood_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.