Scripted trigger
similar_age_same_court_child
similar_age_same_court_child = yesgame/common/scripted_triggers/00_childhood_triggers.txt, line 277 (28 lines). No parameters.
similar_age_same_court_child is a scripted trigger in Crusader Kings III, written at line 277 of its file. It takes no parameters: similar_age_same_court_child = yes (or no). No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_childhood_triggers.txt.
What it checks
- Their location’s county’s holder:
One of these
All of these
- Is played by the AI
is_available_child = yesthis != rootage <= root.age_plus_3age >= age_minus_3
or
Any courtier or guest:- Is played by the AI
is_available_child = yesthis != rootage <= root.age_plus_3age >= age_minus_3
or
Any warden hostage:- Is played by the AI
is_available_child = yesthis != rootage <= root.age_plus_3age >= age_minus_3
• 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 (28 lines of game script)
similar_age_same_court_child = {
exists = location.county.holder # Scoping like this allows children in the pool to also get this event
location.county.holder = {
OR = {
AND = {
is_ai = yes
is_available_child = yes
this != root
age <= root.age_plus_3
age >= age_minus_3
}
any_courtier_or_guest = {
is_ai = yes
is_available_child = yes
this != root
age <= root.age_plus_3
age >= age_minus_3
}
any_warden_hostage = {
is_ai = yes
is_available_child = yes
this != root
age <= root.age_plus_3
age >= age_minus_3
}
}
}
}As written in game/common/scripted_triggers/00_childhood_triggers.txt.
Where it is used
No file of common/, events/ or history/ calls it.
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.