Scripted effect
save_event_targets_from_childhood_effect
save_event_targets_from_childhood_effect = yesgame/common/scripted_effects/00_education_effects.txt, line 663 (35 lines). No parameters.
save_event_targets_from_childhood_effect is a scripted effect in Crusader Kings III, written at line 663 of its file. It takes no parameters: save_event_targets_from_childhood_effect = yes. The game's script calls it in 5 places, among them Coming of Age (event coming_of_age.0001), Coming of Age (event coming_of_age.0002) and Coming of Age (event coming_of_age.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.
The comment above it in the file
To extract and save event_targets to use in coming_of_age notification event
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (35 lines of game script)
save_event_targets_from_childhood_effect = {
if = {
limit = {
any_relation = { type = friend always = yes }
}
random_relation = {
type = friend
save_scope_as = friend
}
}
if = {
limit = {
exists = var:had_childhood_crush_variable
}
var:had_childhood_crush_variable = {
save_scope_as = crush
}
}
if = {
limit = {
exists = var:had_childhood_bully_variable
}
var:had_childhood_bully_variable = {
save_scope_as = bully
}
}
if = {
limit = {
exists = var:had_childhood_victim_variable
}
var:had_childhood_victim_variable = {
save_scope_as = victim
}
}
}As written in game/common/scripted_effects/00_education_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls save_event_targets_from_childhood_effect.
Events (5)
- Coming of Age
coming_of_age.0001 - Coming of Age
coming_of_age.0002 - Coming of Age
coming_of_age.0003 - Coming of Age
coming_of_age.0004 - Coming of Age
coming_of_age.0005
Source: game/common/scripted_effects/00_education_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.