Scripted effect · Roads to Power files
assign_favourite_child_effect
assign_favourite_child_effect = { ACTOR = … RECIPIENT = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 13116 (53 lines). Parameters: $ACTOR$, $RECIPIENT$.
assign_favourite_child_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 13116 of its file. A call passes 2 parameters: ACTOR and RECIPIENT. The game's script calls it in 3 places, among them Choose Favorite Child (interaction), 204500 (history) and 205730 (history). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (53 lines of game script)
assign_favourite_child_effect = {
$ACTOR$ = {
random_relation = {
type = favorite_child
save_scope_as = current_favorite
}
send_interface_toast = {
title = choose_favorite_interaction_notification
left_icon = $ACTOR$
right_icon = $RECIPIENT$
if = {
limit = {
exists = scope:current_favorite
}
remove_relation_favorite_child = scope:current_favorite
scope:current_favorite = {
add_opinion = {
target = $ACTOR$
modifier = no_more_favorite_opinion
}
}
}
set_relation_favorite_child = { reason = favorite_child_chosen target = $RECIPIENT$ }
$RECIPIENT$ = {
add_opinion = {
target = $ACTOR$
modifier = made_favorite_opinion
}
}
custom_tooltip = choose_favorite_interaction_notification.tt
}
hidden_effect = {
every_close_or_extended_family_member = {
limit = {
NOT = { this = $RECIPIENT$ }
OR = {
is_child_of = $ACTOR$
is_grandchild_of = $ACTOR$
is_great_grandchild_of = $ACTOR$
}
}
add_opinion = {
target = $ACTOR$
modifier = has_favorite_opinion
}
add_opinion = {
target = $RECIPIENT$
modifier = is_favorite_opinion
}
}
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls assign_favourite_child_effect.
Character interactions (1)
History files (the start of the game) (2)
- 204500 (characters)
- 205730 (characters)
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.