Scripted effect
spawn_temujins_court_effect
spawn_temujins_court_effect = yesgame/common/scripted_effects/00_mongol_invasion_effects.txt, line 1412 (271 lines). No parameters.
spawn_temujins_court_effect is a scripted effect in Crusader Kings III, written at line 1412 of its file. It takes no parameters: spawn_temujins_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
- Is not married
NOT = { character:172004 ?= { … } }
Then
If
scope:temujin:is_female = yes
Then
create_character = { … }
Otherwise
create_character = { … }
scope:borte:marry = scope:temujin
create_character = { … }
• 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_temujins_court_effect = {
add_character_flag = is_temujin
if = {
limit = {
is_married = no
NOT = {
character:172004 ?= {
any_former_spouse = {
this = scope:temujin
}
}
}
}
if = {
limit = {
scope:temujin = { is_female = yes }
}
# Create Temujin (husband)...
create_character = {
template = genghis_khan_character_template
name = "Temujin" # Husband of Temujin
employer = scope:temujin
save_scope_as = borte
}
}
else = {
# Create Borte (wife)...
create_character = {
template = borte_character_template
name = "Borte" # Wife of Temujin
gender = female
employer = scope:temujin
save_scope_as = borte
}
}
scope:borte = {
marry = scope:temujin
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 10
}
}
if = {
limit = {
scope:temujin = { is_male = yes }
}
scope:temujin = { save_scope_as = great_khan_family_father }
scope:borte = { save_scope_as = great_khan_family_mother }
}
else = {
scope:temujin = { save_scope_as = great_khan_family_mother }
scope:borte = { save_scope_as = great_khan_family_father }
}
# Create Jochi (son)...
create_character = {
template = jochi_character_template
name = "Jochi" # (Oldest son of Temujin and Borte)
employer = scope:temujin
mother = scope:great_khan_family_mother
father = scope:great_khan_family_father
save_scope_as = jochi
}
scope:jochi = {
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 10
}
}
# Create Tolui (son)...
create_character = {
template = tolui_character_template
name = "Tolui" # (Son of Temujin and Borte)
employer = scope:temujin
mother = scope:great_khan_family_mother
father = scope:great_khan_family_father
save_scope_as = tolui
}
scope:tolui = {
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 10
}
}
# Create Chagatai (son)...
create_character = {
template = chagatai_character_template
name = "Chagatai" # (Son of Temujin and Borte)
employer = scope:temujin
mother = scope:great_khan_family_mother
father = scope:great_khan_family_father
save_scope_as = chagatai
}
scope:chagatai = {
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 10
}
#Make it more likely that he gets a good martial education
hidden_effect = {
education_point_acquisition_effect = yes
education_point_acquisition_effect = yes
}
}
# Create Ögedei (son)...
create_character = {
template = ogodei_character_template
name = "Ogodei" # Ögedei Khan (# Son of Temujin and Borte)
employer = scope:temujin
mother = scope:great_khan_family_motherAs written in game/common/scripted_effects/00_mongol_invasion_effects.txt.
The first 120 of its 271 lines; the rest is in game/common/scripted_effects/00_mongol_invasion_effects.txt from line 1412.
Where it is used
Every place in common/, events/ and history/ that calls spawn_temujins_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.