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

Scripted effect

spawn_dynamic_mongol_court_effect

spawn_dynamic_mongol_court_effect = yes

game/common/scripted_effects/00_mongol_invasion_effects.txt, line 1685 (223 lines). No parameters.

spawn_dynamic_mongol_court_effect is a scripted effect in Crusader Kings III, written at line 1685 of its file. It takes no parameters: spawn_dynamic_mongol_court_effect = yes. The game's script calls it in 1 place, among them spawn_temujin_character_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_mongol_invasion_effects.txt.

The comment above it in the file

Populating the life of Temujin...

What it does

  • If a check the game hides passes: the same again (1 line)
    • create_character = { … }

    Otherwise

    • create_character = { … }
  • scope:genghis_spouse:
    • marry = scope:temujin
  • create_character = { … }
  • recruit_three_nomadic_capital_characters_effect = { NOMAD_TEMPLATE_CHARACTER = nomadic_commander_template }

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (120 lines of game script)
spawn_dynamic_mongol_court_effect = {
	add_character_flag = is_temujin

	if = {
		limit = {
			scope:temujin = {
				is_female = no
			}
		}
		save_scope_as = great_khan_family_father
	}
	else = {
		save_scope_as = great_khan_family_mother
	}
	if = {
		limit = {
			exists = scope:great_khan_family_father
		}
		create_character = {
			template = dynamic_genghis_spouse_template
			gender = female
			employer = scope:temujin
			save_scope_as = genghis_spouse
		}
		scope:genghis_spouse = {
			save_scope_as = great_khan_family_mother
		}
	}
	else = {
		create_character = {
			template = dynamic_genghis_spouse_template
			gender = male
			employer = scope:temujin
			save_scope_as = genghis_spouse
		}
		scope:genghis_spouse = {
			save_scope_as = great_khan_family_father
		}
	}
	scope:genghis_spouse = {
		marry = scope:temujin
		# Make temporarily immune to disease
		add_character_flag = {
			flag = immune_to_disease
			years = 10
		}
	}
	create_character = {
		template = dynamic_genghis_child_template
		employer = scope:temujin
		father = scope:great_khan_family_father
		mother = scope:great_khan_family_mother
		dynasty = inherit
		save_scope_as = genghis_child_1
	}
	scope:genghis_child_1 = {
		# Make temporarily immune to disease
		add_character_flag = {
			flag = immune_to_disease
			years = 10
		}
	}
	create_character = {
		template = dynamic_genghis_child_template
		employer = scope:temujin
		father = scope:great_khan_family_father
		mother = scope:great_khan_family_mother
		dynasty = inherit
		save_scope_as = genghis_child_2
	}
	scope:genghis_child_2 = {
		# Make temporarily immune to disease
		add_character_flag = {
			flag = immune_to_disease
			years = 10
		}
	}
	create_character = {
		template = dynamic_genghis_child_template
		employer = scope:temujin
		father = scope:great_khan_family_father
		mother = scope:great_khan_family_mother
		dynasty = inherit
		save_scope_as = genghis_child_3
	}
	scope:genghis_child_3 = {
		# Make temporarily immune to disease
		add_character_flag = {
			flag = immune_to_disease
			years = 10
		}
	}
	create_character = {
		template = dynamic_genghis_child_template
		employer = scope:temujin
		father = scope:great_khan_family_father
		mother = scope:great_khan_family_mother
		dynasty = inherit
		save_scope_as = genghis_child_4
	}
	scope:genghis_child_4 = {
		# Make temporarily immune to disease
		add_character_flag = {
			flag = immune_to_disease
			years = 10
		}
	}
	create_character = {
		template = dynamic_genghis_child_template
		employer = scope:temujin
		father = scope:great_khan_family_father
		mother = scope:great_khan_family_mother
		dynasty = inherit
		save_scope_as = genghis_child_5
	}
	scope:genghis_child_5 = {
		# Make temporarily immune to disease
		add_character_flag = {
			flag = immune_to_disease
			years = 10

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

The first 120 of its 223 lines; the rest is in game/common/scripted_effects/00_mongol_invasion_effects.txt from line 1685.

Where it is used

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

Scripted effects (1)

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