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

Scripted effect

assign_dog_gender_effect

assign_dog_gender_effect = { GENDER = … }

game/common/scripted_effects/00_animal_effects.txt, line 485 (37 lines). Parameters: $GENDER$.

assign_dog_gender_effect is a scripted effect in Crusader Kings III, written at line 485 of its file. A call passes 1 parameter: GENDER. The game's script calls it in 1 place, among them Pet Dog (story cycle). Patch 1.20.1.2, from game/common/scripted_effects/00_animal_effects.txt.

The comment above it in the file

Assign the gender of the dog

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (37 lines of game script)
assign_dog_gender_effect = {
	save_temporary_scope_value_as = {
		name = gender
		value = flag:$GENDER$
	}
	if = {
		limit = { scope:gender = flag:random }
		hidden_effect = {
			random_list = {
				50 = {
					set_variable = {
						name = dog_gender
						value = flag:female
					}
				}
				50 = {
					set_variable = {
						name = dog_gender
						value = flag:male
					}
				}
			}
		}
	}
	else_if = {
		limit = {
			OR = {
				scope:gender = flag:male
				scope:gender = flag:female
			}
		}
		set_variable = {
			name = dog_gender
			value = flag:$GENDER$
		}
	}
}

As written in game/common/scripted_effects/00_animal_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls assign_dog_gender_effect.

Story cycles (1)

  • Pet Dog

Source: game/common/scripted_effects/00_animal_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?