CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

set_favorite_toy_effect

set_favorite_toy_effect = yes

game/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)

11 more

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.

Spotted a mistake on this page?