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_temujin_character_effect

spawn_temujin_character_effect = yes

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

• 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 = yes

As 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.

Spotted a mistake on this page?