Scripted effect
set_favorite_toy_effect
set_favorite_toy_effect = yesgame/common/scripted_effects/00_personal_details_effects.txt, line 1281 (99 lines). No parameters.
set_favorite_toy_effect is a scripted effect in Crusader Kings III, written at line 1281 of its file. It takes no parameters: set_favorite_toy_effect = yes. The game's script calls it in 20 places, among them children_bonding (activity pulse), A Growing Shadow (event childhood.1007) and A Mysterious New Friend (event bp2_yearly.2010). Patch 1.20.1.2, from game/common/scripted_effects/00_personal_details_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (99 lines of game script)
set_favorite_toy_effect = {
if = {
limit = {
NOT = { has_variable = child_toy_variable }
}
hidden_effect = {
random_list = {
10 = {
modifier = {
has_trait = rowdy
factor = 5
}
set_variable = {
name = child_toy_variable
value = flag:wooden_knight
}
}
10 = {
set_variable = {
name = child_toy_variable
value = flag:toy_boat
}
}
10 = {
modifier = {
has_trait = rowdy
factor = 5
}
set_variable = {
name = child_toy_variable
value = flag:wooden_sword
}
}
10 = {
modifier = {
has_trait = curious
factor = 5
}
modifier = {
has_trait = charming
factor = 5
}
set_variable = {
name = child_toy_variable
value = flag:ragdoll
}
}
10 = {
modifier = {
has_trait = pensive
factor = 5
}
set_variable = {
name = child_toy_variable
value = flag:spinning_top
}
}
10 = {
set_variable = {
name = child_toy_variable
value = flag:rolling_hoop
}
}
10 = {
set_variable = {
name = child_toy_variable
value = flag:scopperel
}
}
10 = {
set_variable = {
name = child_toy_variable
value = flag:wooden_horse
}
}
10 = {
modifier = {
has_trait = curious
factor = 5
}
modifier = {
has_trait = charming
factor = 5
}
set_variable = {
name = child_toy_variable
value = flag:doll
}
}
10 = {
set_variable = {
name = child_toy_variable
value = flag:stick_horse
}
}
}
}
}
}As written in game/common/scripted_effects/00_personal_details_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_favorite_toy_effect.
Activity pulse actions (1)
- children_bonding
Events (17)
- A Growing Shadow
childhood.1007 - A Mysterious New Friend
bp2_yearly.2010 - An Encouraging Friend
bp2_yearly.2015 - Anger Management
childhood.0007 - Blossoming Friendship
childhood.0003 - Generous or Greedy?
bp2_yearly.2130
11 more
- Growing Strong
birth.3034 - Harsh Punishment
childhood.1012 - Influence Ward's Personality: … — Failure
bp2_character_interaction.1002 - Influence Ward's Personality: … — Success
bp2_character_interaction.1001 - Mysteries of the …
child_personality.7060 - Playtime
court.5030 - Supportive …
childhood.1002 - The Concern of a Friend
childhood.1009 - The Dark Cave
child_personality.7200 - The Destruction of the …
childhood.1013 - Unwelcome Attention
childhood.0005
Scripted effects (2)
Source: game/common/scripted_effects/00_personal_details_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.