
#####################################
# Spawn Emperors where appropriate! #
#####################################

character_event = {
	id = 1337

	is_triggered_only = yes
	
	hide_window = yes

	ai = no
	only_playable = yes
	
	trigger = {
		is_multiplayer_host_character = yes
		is_alternate_start = no
		is_save_game = no
	}
	
	immediate = {
		if = {
			limit = {
				start_date = 1081.4.1 # Alexiad
			}
			c_munster = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty = 906 # von Meyer
						dna = cclddvhebcc
						properties = ac0ab0000000000000
						religion = waldensian
						culture = german
						age = 43
						random_traits = no
						trait = charismatic_negotiator
						trait = genius
						trait = stubborn
						trait = just
						trait = stressed
					}
				}
			}
			c_saray = {
				holder_scope = {
					create_character = {
						name = " "
						dynasty= 907 # Zilberman
						dna = bgfgcobccay
						properties = hkrbed0b0000000000
						religion = jewish
						culture = ashkenazi
						age = 18
						random_traits = no
						trait = skilled_tactician
						trait = strong
						trait = duelist
						trait = brave
						trait = cynical
						trait = gluttonous
						trait = cruel
						trait = stubborn
						trait = wounded
					}
				}
			}
			c_koln = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty = 909 # der Leegar
						dna = bgbjcqgckcu
						properties = el0af0000000000000
						religion = orthodox
						culture = german
						age = 33
						random_traits = no
						trait = amateurish_plotter
						trait = scholar
						trait = lustful
						trait = temperate
					}
				}
			}
			c_braunschweig = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 910 # Pattensen
						dna = aaddiujabem
						properties = eg0d0d000000000000
						religion = norse_pagan
						culture = old_saxon
						age = 30
						random_traits = no
						trait = scholarly_theologian
						trait = homosexual
						trait = quick
						trait = dwarf
						trait = hedonist
						trait = administrator
						trait = gluttonous
						trait = slothful
						trait = gregarious
						trait = honest
						trait = cynical
						trait = just
						trait = lunatic
					}
				}
			}
			c_jaffa = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 912 # Erez Sender
						dna = daigadbbdag
						properties = cj0jgj000000000000
						religion = jewish
						culture = ashkenazi
						age = 20
						random_traits = no
						trait = skilled_tactician
						trait = kinslayer
						trait = genius
						trait = poet
						trait = scholar
						trait = gluttonous
						trait = diligent
						trait = proud
						trait = cynical
						trait = erudite
					}
				}
			}
			c_poznanskie = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 914 # Kawczyski
						dna = akafiaajfba
						properties = ee0dhd000000000000
						religion = catholic
						culture = polish
						age = 16
						random_traits = no
						trait = naive_appeaser
						trait = quick
						trait = strategist
						trait = lustful
						trait = gluttonous
						trait = kind
						trait = shy
						trait = trusting
						trait = cynical
						trait = stressed
					}
				}
			}
			c_sjaelland = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 915 # Pedersen
						dna = begddqaegcv
						properties = ca0djd0a0000000000
						religion = catholic
						culture = irish
						age = 20
						random_traits = no
						trait = skilled_tactician
						trait = strong
						trait = robust
						trait = gluttonous
						trait = brave
						trait = cynical
						trait = shy
						trait = arbitrary
						trait = wounded
					}
					new_character = {
						culture = danish
					}
				}
			}
			c_koln = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 916 # Dockhorn
						dna = cgbdaricedh
						properties = cm0d0d0c0000000000
						religion = catholic
						culture = german
						age = 20
						random_traits = no
						trait = midas_touched
						trait = homosexual
						trait = shrewd
						trait = scarred
						trait = kinslayer
						trait = quick
						trait = cynical
						trait = ambitious
						trait = greedy
					}
				}
			}
			c_julich = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 917 # von Mies
						dna = cmidesmjdan
						properties = el0dhk0d0000000000
						religion = catholic
						culture = german
						age = 34
						random_traits = no
						trait = thrifty_clerk
						trait = legit_bastard
						trait = charitable
						trait = lustful
						trait = shy
						trait = stubborn
						trait = wounded
					}
				}
			}
			c_schwyz = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 918 # Wuttke
						dna = daceeacadcm
						properties = el0dhk000000000000
						religion = catholic
						culture = prussian
						age = 38
						random_traits = no
						trait = midas_touched
						trait = administrator
						trait = shy
						trait = gluttonous
						trait = lustful
					}
				}
			}
			c_vestisland = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 919 # av Egilstair
						dna = aeafbrjfacd
						properties = ge0dek000000000000
						religion = norse_pagan
						culture = norse
						age = 23
						random_traits = no
						trait = fortune_builder
						trait = poet
						trait = architect
						trait = greedy
						trait = just
						trait = slothful
						trait = stubborn
						trait = stressed
						trait = depressed
					}
				}
			}
			c_gudbrandsdal = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 920 # Fjeld
						dna = adgiengdacm
						properties = eb0acb000000000000
						religion = norse_pagan
						culture = norwegian
						age = 48
						random_traits = no
						trait = skilled_tactician
						trait = legit_bastard
						trait = viking
						trait = dynastic_kinslayer
						trait = hedonist
						trait = lunatic
					}
				}
			}
			c_northumberland = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 921 # Aytoun
						dna = dfjchyjaaaf
						properties = fl0cjd000000000000
						religion = catholic
						culture = scottish
						age = 29
						random_traits = no
						trait = scholarly_theologian
						trait = scholar
						trait = gamer
						trait = chaste
						trait = charitable
						trait = just
						trait = depressed
					}
				}
			}
			c_gelre = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 922 # van der Veer
						dna = cjieaphcddj
						properties = ae0ag0000000000000
						religion = catholic
						culture = dutch
						age = 43
						random_traits = no
						trait = misguided_warrior
						trait = dynastic_kinslayer
						trait = duelist
						trait = seducer
						trait = gamer
						trait = deceitful
						trait = craven
					}
				}
			}
			c_sjaelland = {
				holder_scope = {
					create_character = {
						name = ""
						female = yes
						dynasty= 924 # Bornebusch
						dna = diecfqaeccx
						properties = ae0aic0000000000c0
						religion = catholic
						culture = danish
						age = 19
						random_traits = no
						trait = scholarly_theologian
						trait = quick
						trait = patient
						trait = just
						trait = trusting
						trait = shy
						trait = stubborn
						trait = stressed
					}
				}
			}
			c_jiuquan = {
				holder_scope = {
					create_character = {
						name = " "
						dynasty= 925 # Vong
						dna = cadclyfdaaz
						properties = mc0ccd00000000cb00
						religion = taoist
						culture = han
						age = 35
						random_traits = no
						trait = thrifty_clerk
						trait = quick
					}
				}
			}
		}
		if = {
			limit = {
				start_date = 1187.1.1 # Third Crusade
			}
			c_gowrie = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 931 # af Pynn
						dna = ddihfbgaacd
						properties = ah0acb000000000000
						religion = catholic
						culture = norse
						age = 38
						random_traits = no
						trait = misguided_warrior
						trait = weak
						trait = crusader
						trait = greedy
						trait = proud
						trait = craven
						trait = paranoid
					}
				}
			}
			c_coruna = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 945 # Baamonde
						dna = bcgbbfaaddc
						properties = ai00jc000000000000
						religion = catholic
						culture = portuguese
						age = 27
						random_traits = no
						trait = midas_touched
						trait = quick
						trait = gluttonous
						trait = slothful
						trait = honest
						trait = shy
						trait = just
						trait = paranoid
						trait = cynical
						trait = stubborn
					}
				}
			}
			c_akershus = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 946 # Odinson
						dna = bgdeceicacz
						properties = aa0agb000000000000
						religion = norse_pagan
						culture = norse
						age = 35
						random_traits = no
						trait = grey_eminence
						trait = genius
						trait = stubborn
						trait = cynical
						trait = stressed
						trait = lunatic
						trait = possessed
					}
				}
			}
			c_apulia = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 947 # Temesi
						dna = adbhccccbam
						properties = en0dgd000000000000
						religion = catholic
						culture = greek
						age = 33
						random_traits = no
						trait = grey_eminence
						trait = poet
						trait = shrewd
						trait = legit_bastard
						trait = stubborn
						trait = patient
						trait = lustful
						trait = cynical
					}
					new_character = {
						culture = norman
					}
				}
			}
			c_santiago = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 948 # Sanjurjo
						dna = bjbgerfacbw
						properties = ah0ahb000000000000
						religion = catholic
						culture = portuguese
						age = 23
						random_traits = no
						trait = charismatic_negotiator
						trait = slothful
						trait = patient
						trait = kind
						trait = gregarious
						trait = trusting
					}
				}
			}
			c_telemark = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 949 # Huyderman
						dna = decaarccacm
						properties = cd0dak000000000000
						religion = norse_pagan
						culture = norwegian
						age = 36
						random_traits = no
						trait = scholarly_theologian
						trait = shrewd
						trait = harelip
						trait = scholar
						trait = gamer
						trait = kind
						trait = proud
						trait = cynical
						trait = trusting
						trait = stressed
					}
				}
			}
			c_sodermanland = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 950 # Bjrkman
						dna = cebjjkjcgbm
						properties = cj0ccd000000000000
						religion = norse_pagan
						culture = norse
						age = 29
						random_traits = no
						trait = skilled_tactician
						trait = viking
						trait = gluttonous
						trait = cynical
						trait = honest
					}
				}
			}
			c_napoli = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 951 # Prosapio
						dna = dccfbdcdbag
						properties = ca0dgk000000000000
						religion = catholic
						culture = italian
						age = 22
						random_traits = no
						trait = mastermind_theologian
						trait = hunchback
						trait = theologian
						trait = zealous
						trait = craven
						trait = lunatic
						trait = possessed
					}
				}
			}
			c_york = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 952 # Berg
						dna = cjiijuidfad
						properties = ch0ced000000000000
						religion = norse_pagan
						culture = norse
						age = 26
						random_traits = no
						trait = fortune_builder
						trait = shrewd
						trait = quick
						trait = gluttonous
						trait = kind
						trait = diligent
						trait = stubborn
						trait = shy
						trait = craven
						trait = cynical
					}
				}
			}
			c_ostergotland = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 953 # Lindeus
						dna = defeeijddaw
						properties = eb0ebk000000000000
						religion = norse_pagan
						culture = norse
						age = 30
						random_traits = no
						trait = charismatic_negotiator
						trait = stutter
						trait = legit_bastard
						trait = quick
						trait = honest
						trait = lustful
						trait = shy
						trait = ambitious
						trait = just
						trait = cynical
						trait = stressed
					}
				}
			}
		}
		if = {
			limit = {
				start_date = 1220.2.1 # The Mongols
			}
			c_shrewsbury = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 923 # Husker
						dna = dcafazedbce
						properties = ck0dek000000000000
						religion = catholic
						culture = finnish
						age = 38
						random_traits = no
						trait = scholarly_theologian
						trait = gamer
						trait = scholar
						trait = gluttonous
						trait = slothful
						trait = honest
						trait = just
					}
					new_character = {
						culture = saxon
					}
				}
			}
			c_esztergom = {
				holder_scope = {
					create_character = {
						name = ""
						female = yes
						dynasty= 911 # Corvinus
						dna = ddjdizckecd
						properties = ak0bda0000000000c0
						religion = catholic
						culture = hungarian
						age = 24
						random_traits = no
						trait = elusive_shadow
						trait = strong
						trait = legit_bastard
						trait = brave
						trait = stubborn
						trait = deceitful
						trait = cynical
						trait = stressed
					}
				}
			}
			c_altmark = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 926 # Schneider
						dna = acafbdkfbcf
						properties = ge0dhk000000000000
						religion = norse_pagan
						culture = old_saxon
						age = 26
						random_traits = no
						trait = grey_eminence
						trait = falconer
						trait = scholar
						trait = cynical
						trait = gluttonous
						trait = erudite
						trait = kind
						trait = shy
						trait = trusting
					}
				}
			}
			c_jylland = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 927 # Overgaard
						dna = ajedcweabbs
						properties = ea0djd000000000000
						religion = catholic
						culture = danish
						age = 38
						random_traits = no
						trait = fortune_builder
						trait = mystic
						trait = lustful
						trait = proud
					}
				}
			}
			c_teviotdale = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 928 # MacDuff
						dna = bbeiguiahco
						properties = ch0dck000000000000
						religion = catholic
						culture = saxon
						age = 35
						random_traits = no
						trait = thrifty_clerk
						trait = shrewd
						trait = erudite
						trait = stubborn
					}
				}
			}
			c_zagreb = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 929 # Lopac
						dna = balagmegcbd
						properties = 0a0chd000000000000
						religion = catholic
						culture = croatian
						age = 28
						random_traits = no
						trait = grey_eminence
						trait = celibate
						trait = honest
						trait = charitable
						trait = erudite
						trait = just
						trait = shy
					}
				}
			}
			c_burgos = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 933 # Martinez
						dna = diejekgdbdv
						properties = ah000b000000000000
						religion = catholic
						culture = castillan
						age = 23
						random_traits = no
						trait = fortune_builder
						trait = administrator
						trait = craven
						trait = erudite
					}
				}
			}
			c_trondelag = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 935 # Kolbotn
						dna = bdebaradaby
						properties = ag0agb000000000000
						religion = finnish_pagan
						culture = norwegian
						age = 33
						random_traits = no
						trait = amateurish_plotter
						trait = administrator
						trait = stubborn
					}
				}
			}
			c_venezia = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 936 # Poxhofer
						dna = ajhfdpibbab
						properties = ec0dhd000000000000
						religion = catholic
						culture = visigothic
						age = 26
						random_traits = no
						trait = amateurish_plotter
						trait = legit_bastard
						trait = deceitful
						trait = envious
						trait = proud
						trait = shy
					}
					new_character = {
						culture = german
					}
				}
			}
			c_krakowskie = {
				holder_scope = {
					create_character = {
						name = ""
						female = yes
						dynasty= 938 # Polowczyk
						dna = dgdfiflbeca
						properties = ab00gb0000000000b0
						religion = catholic
						culture = polish
						age = 29
						random_traits = no
						trait = scholarly_theologian
						trait = shrewd
						trait = scholar
						trait = erudite
						trait = kind
						trait = cynical
						trait = stubborn
						trait = trusting
					}
				}
			}
			c_leiningen = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 939 # Htter
						dna = decidqijfck
						properties = ej00c0000000000000
						religion = catholic
						culture = german
						age = 30
						random_traits = no
						trait = grey_eminence
						trait = lustful
						trait = cynical
						trait = kind
					}
				}
			}
			c_rama = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 940 # Vukalic
						dna = djbbeqmebbc
						properties = ek0dhk000000000000
						religion = orthodox
						culture = serbian
						age = 30
						random_traits = no
						trait = underhanded_rogue
						trait = scholar
						trait = honest
						trait = cynical
						trait = lustful
						trait = drunkard
					}
				}
			}
			c_rashka = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 941 # Zikic
						dna = beccfcicaax
						properties = ge0dbd000000000000
						religion = slavic_pagan
						culture = serbian
						age = 30
						random_traits = no
						trait = charismatic_negotiator
						trait = quick
						trait = gluttonous
						trait = cynical
						trait = craven
						trait = kind
					}
				}
			}
			c_skane = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 942 # Johansson
						dna = cieghcjcabx
						properties = ca0cad000000000000
						religion = norse_pagan
						culture = norse
						age = 29
						random_traits = no
						trait = flamboyant_schemer
						trait = slow
						trait = proud
						trait = ambitious
						trait = diligent
						trait = paranoid
						trait = stubborn
						trait = lunatic
						trait = possessed
					}
				}
			}
			c_limbuwan = {
				holder_scope = {
					create_character = {
						name = " "
						dynasty= 943 # Sherpa
						dna = dgajdxcdcca
						properties = en0ah0000000000000
						religion = buddhist
						culture = nepali
						age = 30
						random_traits = no
						trait = skilled_tactician
						trait = kshatriya
						trait = quick
						trait = vajrayana_buddhist
						trait = lustful
						trait = gluttonous
						trait = slothful
						trait = just
						trait = trusting
						trait = cynical
						trait = ambitious
						trait = stubborn
						trait = honest
						trait = wroth
					}
				}
			}
			c_leicester = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 944 # Welford
						dna = cbaechecacz
						properties = 0e0dcd000000000000
						religion = catholic
						culture = norse
						age = 25
						random_traits = no
						trait = thrifty_clerk
						trait = quick
						trait = strategist
						trait = shy
						trait = gluttonous
						trait = erudite
						trait = wroth
						trait = cynical
						trait = depressed
					}
					new_character = {
						culture = saxon
					}
				}
			}
		}
		if = {
			limit = {
				start_date = 1241.5.1 # The Hansa
			}
			c_moskva = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 908 # Unclded
						dna = aambfggafco
						properties = cc0cbd000000000000
						religion = slavic_pagan
						culture = russian
						age = 18
						random_traits = no
						trait = brilliant_strategist
						trait = quick
						trait = strong
						trait = kinslayer
						trait = gluttonous
						trait = slothful
						trait = wroth
						trait = ambitious
						trait = cynical
					}
				}
			}
			c_birlad = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 932 # Wolfendale
						dna = ddbgcvcjbck
						properties = eh0jbj000000000000
						religion = tengri_pagan
						culture = hungarian
						age = 24
						random_traits = no
						trait = fortune_builder
						trait = homosexual
						trait = genius
						trait = dynastic_kinslayer
						trait = lustful
						trait = diligent
						trait = honest
						trait = craven
						trait = paranoid
						trait = ambitious
						trait = cynical
						trait = kind
					}
				}
			}
			c_itil = {
				holder_scope = {
					create_character = {
						name = ""
						female = yes
						dynasty= 930 # Kabar
						dna = djeehubdedv
						properties = eb0bed0000000000c0
						religion = zun_pagan
						culture = khazar
						age = 28
						random_traits = no
						trait = elusive_shadow
						trait = legit_bastard
						trait = dwarf
						trait = fair
						trait = schemer
						trait = cynical
						trait = paranoid
						trait = lustful
					}
				}
			}
			c_lincoln = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 934 # Vespasian
						dna = djiihkfbgba
						properties = ee0ddd000000000000
						religion = catholic
						culture = saxon
						age = 16
						random_traits = no
						trait = intricate_webweaver
						trait = legit_bastard
						trait = kinslayer
						trait = fair
						trait = genius
						trait = impaler
						trait = lustful
						trait = cynical
						trait = arbitrary
						trait = cruel
						trait = lunatic
					}
				}
			}
			c_brabant = {
				holder_scope = {
					create_character = {
						name = ""
						dynasty= 913 # Castlemount
						dna = aijcewiddbi
						properties = 0h0dek000000000000
						religion = catholic
						culture = old_frankish
						age = 25
						random_traits = no
						trait = mastermind_theologian
						trait = celibate
						trait = mystic
						trait = scholar
						trait = lunatic
					}
				}
			}
		}
	}
}