Scripted effect
spawn_temujin_character_effect
spawn_temujin_character_effect = yesgame/common/scripted_effects/00_mongol_invasion_effects.txt, line 32 (589 lines). No parameters.
spawn_temujin_character_effect is a scripted effect in Crusader Kings III, written at line 32 of its file. It takes no parameters: spawn_temujin_character_effect = yes. The game's script calls it in 2 places, among them ep3_roman_restoration.0520 (event) and mongol_invasion.0001 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_mongol_invasion_effects.txt.
The comment above it in the file
A wild Genghis Khan appears!
What it does
If
character:125501 = { is_ai = no }
Then
If
a check the game hides
Then
scope:temujin:give_temujin_land_effect = yes- Gains the Trait Greatest of Khans
form_the_mongol_empire_effect = yes- Gain +25,000 Prestige
- Gains the Nickname 'Genghis Khan'
- Event conqueror.0001
Otherwise
- scope:temujin: Event conqueror.0001
Else if
character:125501 = { is_physically_able_ai_adult = yes }
Then
scope:temujin:- Gains the Trait Greatest of Khans
give_temujin_land_effect = yes- They gets +5,000
- Dread +80
spawn_temujins_court_effect = yesform_the_mongol_empire_effect = yes- Gain +25,000 Prestige
- If does not have the Peacemaker Perk:
add_perk = peacemaker_perk
- Loses the Trait Naive Appeaser
- Loses the Trait Adequate Bargainer
- Loses the Trait Charismatic Negotiator
- Loses the Trait Gray Eminence
- Loses the Trait Virtuoso Arbitrator
- Loses the Trait Amateurish Plotter
- Loses the Trait Flamboyant Trickster
- Loses the Trait Intricate Webweaver
- Loses the Trait Elusive Shadow
- Loses the Trait Conniving Puppetmaster
- Loses the Trait Indulgent Wastrel
- Loses the Trait Thrifty Clerk
- Loses the Trait Fortune Builder
- Loses the Trait Midas Touched
- Loses the Trait Golden Sovereign
- Loses the Trait Conscientious Scribe
- Loses the Trait Insightful Thinker
- Loses the Trait Astute Intellectual
- Loses the Trait Mastermind Philosopher
- Loses the Trait Erudite Oracle
- Loses the Trait Misguided Warrior
- Loses the Trait Tough Soldier
- Loses the Trait Skilled Tactician
- Loses the Trait Brilliant Strategist
- Gains the Trait Exalted Warlord
- Gains the Trait Flexible Leader
- Gains the Trait Athletic
If
a check the game hides
Then
- Gains the Trait Hastiluder
add_random_tiered_trait_track_xp_effect = { … }
- Their dynasty:
add_dynasty_prestige_level = 5- The dynasty gains +10,000 Renown
add_dynasty_perk = warfare_legacy_1add_dynasty_perk = warfare_legacy_2add_dynasty_perk = warfare_legacy_3add_dynasty_perk = warfare_legacy_4add_dynasty_perk = warfare_legacy_5If
a check the game hides
Then
add_dynasty_perk = ep1_culture_legacy_1
- Gains the Nickname 'Genghis Khan'
Else if
- character:125501.dynasty › Any dynasty member:
- Is played by a person
- Is landed
Then
If
a check the game hides
Then
scope:temujin:- Gains the Trait Greatest of Khans
form_the_mongol_empire_effect = yes- Gain +25,000 Prestige
- Gains the Nickname 'Genghis Khan'
- Event conqueror.0001
Otherwise
- scope:temujin: Event conqueror.0001
Else if
- character:125501.dynasty › Any dynasty member:
Then
scope:temujin:- Gains the Trait Greatest of Khans
give_temujin_land_effect = yes- They gets +5,000
- Dread +80
spawn_temujins_court_effect = yesform_the_mongol_empire_effect = yes- Gain +25,000 Prestige
- If does not have the Peacemaker Perk:
add_perk = peacemaker_perk
- Loses the Trait Naive Appeaser
- Loses the Trait Adequate Bargainer
- Loses the Trait Charismatic Negotiator
- Loses the Trait Gray Eminence
- Loses the Trait Virtuoso Arbitrator
- Loses the Trait Amateurish Plotter
- Loses the Trait Flamboyant Trickster
- Loses the Trait Intricate Webweaver
- Loses the Trait Elusive Shadow
- Loses the Trait Conniving Puppetmaster
- Loses the Trait Indulgent Wastrel
- Loses the Trait Thrifty Clerk
- Loses the Trait Fortune Builder
- Loses the Trait Midas Touched
- Loses the Trait Golden Sovereign
- Loses the Trait Conscientious Scribe
- Loses the Trait Insightful Thinker
- Loses the Trait Astute Intellectual
- Loses the Trait Mastermind Philosopher
- Loses the Trait Erudite Oracle
- Loses the Trait Misguided Warrior
- Loses the Trait Tough Soldier
- Loses the Trait Skilled Tactician
- Loses the Trait Brilliant Strategist
- Gains the Trait Exalted Warlord
- Gains the Trait Flexible Leader
- Gains the Trait Athletic
If
a check the game hides
Then
- Gains the Trait Hastiluder
add_random_tiered_trait_track_xp_effect = { … }
- Their dynasty:
add_dynasty_prestige_level = 5- The dynasty gains +10,000 Renown
add_dynasty_perk = warfare_legacy_1add_dynasty_perk = warfare_legacy_2add_dynasty_perk = warfare_legacy_3add_dynasty_perk = warfare_legacy_4- … (more in the script below)
- … (more in the script below)
- … (more in the script below)
• 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_temujin_character_effect = {
title:c_khentii.title_province = {
save_scope_as = temujins_birthplace
}
if = {
limit = {
exists = character:125501
character:125501 = {
is_ai = no
}
}
character:125501 = {
save_scope_as = temujin
}
if = {
limit = {
#The DLC has our own BECOME GENGHIS stuff for players
has_mpo_dlc_trigger = no
}
scope:temujin = {
give_temujin_land_effect = yes
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 15
}
add_trait = greatest_of_khans
form_the_mongol_empire_effect = yes
add_prestige = 25000
give_nickname = nick_genghis_khan
trigger_event = conqueror.0001
}
}
else = {
scope:temujin = {
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 15
}
trigger_event = conqueror.0001
}
}
}
else_if = {
limit = {
exists = character:125501
character:125501 = { is_physically_able_ai_adult = yes }
}
character:125501 = {
save_scope_as = temujin
}
scope:temujin = {
# Make temporarily immune to disease
add_character_flag = {
flag = immune_to_disease
years = 15
}
add_trait = greatest_of_khans
give_temujin_land_effect = yes
add_gold = 5000
add_dread = high_dread
spawn_temujins_court_effect = yes
form_the_mongol_empire_effect = yes
add_prestige = 25000
if = {
limit = {
has_mpo_dlc_trigger = no
NOT = { has_perk = peacemaker_perk }
}
add_perk = peacemaker_perk
}
remove_trait = education_diplomacy_1
remove_trait = education_diplomacy_2
remove_trait = education_diplomacy_3
remove_trait = education_diplomacy_4
remove_trait = education_diplomacy_5
remove_trait = education_intrigue_1
remove_trait = education_intrigue_2
remove_trait = education_intrigue_3
remove_trait = education_intrigue_4
remove_trait = education_intrigue_5
remove_trait = education_stewardship_1
remove_trait = education_stewardship_2
remove_trait = education_stewardship_3
remove_trait = education_stewardship_4
remove_trait = education_stewardship_5
remove_trait = education_learning_1
remove_trait = education_learning_2
remove_trait = education_learning_3
remove_trait = education_learning_4
remove_trait = education_learning_5
remove_trait = education_martial_1
remove_trait = education_martial_2
remove_trait = education_martial_3
remove_trait = education_martial_4
add_trait = education_martial_5
add_trait = flexible_leader
add_trait = athletic
if = {
limit = { has_dlc_feature = tours_and_tournaments }
add_trait = tourney_participant
add_random_tiered_trait_track_xp_effect = {
TRAIT = lifestyle_hunter
TRACK = hunter
LEVEL_1 = yes
LEVEL_3 = no
}
add_random_tiered_trait_track_xp_effect = {
TRAIT = tourney_participant
TRACK = horse
LEVEL_1 = yes
LEVEL_3 = yes
}
add_random_tiered_trait_track_xp_effect = {
TRAIT = tourney_participant
TRACK = bow
LEVEL_1 = yesAs written in game/common/scripted_effects/00_mongol_invasion_effects.txt.
The first 120 of its 589 lines; the rest is in game/common/scripted_effects/00_mongol_invasion_effects.txt from line 32.
Where it is used
Every place in common/, events/ and history/ that calls spawn_temujin_character_effect.
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.