namespace = ylcharevt
character_event = { #pQe'YQi
	id = ylcharevt.001
	hide_window = yes
	
	only_playable = yes 
	min_age = 35
	only_men = yes
	capable_only = yes
	prisoner = no
	has_character_flag = hs_is_rance
	trigger = {
		total_years_played = 30
		NOT = {has_global_flag = hs_rancequest_happen}
		higher_tier_than = COUNT
		in_revolt = no
		is_landed = yes
	}
	mean_time_to_happen = {
		years = 2
	}
	immediate = {
		save_global_event_target_as = hs_targetchar_rance
		
		ROOT = {
			hs_remove_is_maimed_trait_effect = yes
		}
		remove_disease_trait_effect = yes
		remove_treatment_modifiers_effect = yes
		set_character_flag = is_child_of_destiny
		capital_scope = {
			show_scope_change = no
			ROOT = {
				wealth = 5000
				show_scope_change = no
				custom_tooltip = {
					text = army_of_destiny_tt
					hidden_effect = {
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								heavy_infantry = { 3000 3000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								heavy_infantry = { 3000 3000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								heavy_infantry = { 3000 3000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								heavy_infantry = { 3000 3000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								heavy_infantry = { 3000 3000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								heavy_infantry = { 3000 3000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								knights = { 2000 2000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								knights = { 2000 2000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								knights = { 2000 2000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								knights = { 2000 2000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.2
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								war_elephants = { 2000 2000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.1
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								war_elephants = { 2000 2000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.1
							merge = yes
							attrition = 0.1
							cannot_inherit = yes
							maintenance_multiplier = 0
						}
						spawn_fleet = {
							province = closest # closest sea zone
							owner = THIS
							cannot_inherit = yes
							troops = {
								galleys = { 100 100 }
							}
							maintenance_multiplier = 0
						}
						spawn_fleet = {
							province = closest # closest sea zone
							owner = THIS
							cannot_inherit = yes
							troops = {
								galleys = { 100 100 }
							}
							maintenance_multiplier = 0
						}
						spawn_fleet = {
							province = closest # closest sea zone
							owner = THIS
							cannot_inherit = yes
							troops = {
								galleys = { 100 100 }
							}
							maintenance_multiplier = 0
						}
					}
				}
			}
		}
		
		while = {
			limit = {
				age =17 
			}    
			add_age = -1
		}
		primary_title = { save_event_target_as = old_title }
		e_rancecity = {			
			grant_title = ROOT							
			make_primary_title = yes
			add_law = {
				law = true_cognatic_succession
				cooldown = no
				opinion_effect = no
			}
			add_law = {
				law = status_of_women_4
				cooldown = no
				opinion_effect = no
			}
			add_law = {
				law = succ_primogeniture
				cooldown = no
				opinion_effect = no
			}
			add_law = revoke_title_law_2	
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=5
				diplomacy=10
				intrigue=5
				stewardship=20
				learning = 15
			}
			name="^2"
			religion = ROOT
			culture = ROOT
			dynasty = 5100017
			female = yes
			age = 16
			
			trait = yl_xilu
			trait = fair
			trait = physician
			trait = patient
			trait = craven
			trait = hs_magician
			trait = trusting
			trait = gregarious
			trait = martial_cleric						
		}
		new_character = {
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			reverse_opinion = {
				who = event_target:hs_targetchar_rance
				modifier = opinion_hs_koikokoro
			}#S҉rmRK`V
			add_lover = event_target:hs_targetchar_rance 
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_loyal_servant who = PREV }#
			add_character_modifier = { name = hs_magic_holy_2 duration = -1 } #^y2WTl
			add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #:VS>g
			add_character_modifier = { name = hs_sp_abilitity_7  duration = -1 hidden = yes} #IQ 7
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=13
				diplomacy=12
				intrigue=5
				stewardship=12
				learning = 17
			}
			name="^eyrS"
			religion = ROOT
			culture = ROOT
			dynasty = 5100093
			female = yes
			age = 16
			
			trait = yl_rancesub5
			trait = physician
			trait = administrator
			trait = hs_bakemono
			trait = proud
			trait = wroth
			trait = flamboyant_schemer						
		}
		new_character = {
			hs_shouzhao_effect = yes
			save_event_target_as = hs_target_rancesub5
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_black_2 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_sp_abilitity_39  duration = -1 hidden = yes} #kNR3Rflag 39
			create_character = {
				random_traits = no
				name = "jyr"
				dynasty = 5100093 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 1
				immortal_age = 16
				health = 5
				attributes = { intrigue = 5  martial = 7 diplomacy = 5 stewardship = 8 learning = 5 }	
				historical = yes
				trait = yl_reset
				trait = hs_bakemono
				trait = strong
			}
			new_character = {
				set_immune_to_pruning = yes
				set_character_flag = hs_has_immortal_age
				set_father = ROOT
				add_trait = hs_trait_shouzhao
				#add_character_modifier = {
				#	name = shouzhao
				#	duration = -1
				#}
				set_mother = event_target:hs_target_rancesub5
				add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=10
				diplomacy=15
				intrigue=10
				stewardship=12
				learning = 12
			}
			name="^b"
			religion = ROOT
			culture = russian
			dynasty = 5100015
			female = yes
			age = 16
			
			trait = yl_xila
			trait = fair
			trait = strong
			trait = physician
			trait = hs_maid
			trait = kind
			trait = scholar
			trait = trusting
			trait = hs_magician_l
			trait = born_in_the_purple
			trait = scholarly_theologian						
		}
		new_character = { 
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			reverse_opinion = {
				who = event_target:hs_targetchar_rance
				modifier = opinion_hs_koikokoro
			}#S҉rmRK`V
			add_lover = event_target:hs_targetchar_rance 
			opinion = { modifier = opinion_loyal_servant who = PREV }#
			add_character_modifier = { name = hs_magic_holy_2 duration = -1 } #^y2WTl
			add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ySKb 40
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
			k_hs_helman = {
				grant_title = PREV
				de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_elective_gavelkind
					cooldown = no
					opinion_effect = no
				}
			}

			prestige = 3000
			piety = 1000
			wealth = 3000
			random_landed_title = {
				limit = {						
					tier = DUKE
					is_landless_type_title = no
					owner = {
						ai = yes
					}
				}
				preferred_limit = {
					owner = {
						culture_group = east_slavic 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
					
				}
				any_de_jure_vassal_title = {
					limit = {
						OR = {
							higher_tier_than = BARON
							holding_type = city
						}
					}
					gain_title = PREVPREV
				}
				gain_title = PREV
			}
			set_government_type = republic_government
			capital_scope = {
				new_character ={								
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry  = { 5800 8500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 5000 8500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights = { 4000 7500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
				}
			}
			event_target:hs_targetchar_rance = {
				make_tributary = {
					who = new_character
					tributary_type = permanent
					percentage = 0.4
				}
			}
			
			#set_defacto_liege = ROOT
			create_character = {
				random_traits = no
				attributes = {
					martial=8
					diplomacy=5
					intrigue=5
					stewardship=4
					learning = 6
				}
				name="̑KQ"
				religion = THIS
				culture = THIS
				dynasty = 5100015
				female = yes
				age = 0
				
				trait = yl_hero558
				trait = strong
				trait = willful
				trait = curious
				trait = duelist			
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				set_mother = PREV
				set_father = event_target:hs_targetchar_rance
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=8
					intrigue=11
					stewardship=10
					learning = 12
				}
				name="KQ̑Y"
				religion = PREV
				culture = russian
				dynasty = 5100331
				female = yes
				age = 16
				
				trait = yl_hero482
				trait = strategist
				trait = administrator
				trait = chaste
				trait = wroth
				trait = stressed
				trait = zealous
				trait = stubborn
				trait = organizer
				trait = skilled_tactician						
			}
			new_character = {				
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku #QYuw
				}		
				add_character_modifier = { name = hs_strategist_level2  duration = -1 } #c%c1-3 HIP commander1		
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=9
					intrigue=9
					stewardship=11
					learning = 12
				}
				name="T"
				religion = PREV
				culture = russian
				dynasty = 5100335
				female = no
				age = 16
				
				trait = yl_hero483
				trait = strong
				trait = duelist
				trait = celibate
				trait = adventurer
				trait = born_in_the_purple
				trait = chaste
				trait = kind
				trait = defensive_leader
				trait = tough_soldier						
			}
			new_character = {				
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				add_friend = event_target:hs_targetchar_rance 
				opinion = { modifier = opinion_hs_SISTER who = PREV }#DQVYY
				reverse_opinion = {
						who = PREV
						modifier = opinion_hs_SISTER
				}
				
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				#opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				#reverse_opinion = {
				#	who = PREV
				#	modifier = opinion_hs_keyiyaku #QYuw
				#}		
				create_character = {
					random_traits = no
					attributes = {
						martial=13
						diplomacy=8
						intrigue=15
						stewardship=9
						learning = 14
					}
					name="Il"
					religion = PREV
					culture = russian
					dynasty = 5100093
					female = yes
					age = 16
					
					trait = yl_hero486
					trait = adventurer
					trait = mystic
					trait = hs_bakemono
					trait = scarred
					trait = norse_leader
					trait = erudite
					trait = intricate_webweaver						
				}
				new_character = {				
					opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_koikokoro
					}#S҉rmRK`V
					add_lover = PREV
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_sp_abilitity_16  duration = -1 hidden = yes} #wyR 16
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					
					opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_keyiyaku #QYuw
					}	
					reverse_opinion = {
						who = PREV
						modifier = opinion_mentor #QYuw
					}			
							
				}	
					
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=8
					intrigue=8
					stewardship=8
					learning = 9
				}
				name="?s|Xbe"
				religion = PREV
				culture = russian
				dynasty = 5100332
				female = yes
				age = 16
				
				trait = yl_hero484
				trait = robust
				trait = chaste
				trait = celibate
				trait = zealous
				trait = stubborn
				trait = tough_soldier						
			}
			new_character = {				
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes			
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				#opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				#reverse_opinion = {
				#	who = PREV
				#	modifier = opinion_hs_keyiyaku #QYuw
				#}				
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=14
					intrigue=10
					stewardship=14
					learning = 12
				}
				name="O>Oyr"
				religion = PREV
				culture = russian
				dynasty = 5100333
				female = no
				age = 16
				
				trait = yl_hero485
				trait = robust
				trait = administrator
				trait = adventurer
				trait = humble
				trait = patient
				trait = honest
				trait = organizer
				trait = skilled_tactician						
			}
			new_character = {				
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
				#opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				#reverse_opinion = {
				#	who = PREV
				#	modifier = opinion_hs_keyiyaku #QYuw
				#}				
			}	
			
			create_character = {
				random_traits = no
				attributes = {
					martial=17
					diplomacy=11
					intrigue=15
					stewardship=10
					learning = 12
				}
				name="RRX"
				religion = PREV
				culture = russian
				dynasty = 5100334
				female = no
				age = 16
				
				trait = yl_hero487
				trait = strong
				trait = hunter
				trait = proud
				trait = deceitful
				trait = just
				trait = rough_terrain_leader
				trait = cavalry_leader
				trait = elusive_shadow						
			}
			new_character = {				
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				give_nickname = nick_the_hs257
				#opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				#reverse_opinion = {
				#	who = PREV
				#	modifier = opinion_hs_keyiyaku #QYuw
				#}				
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=15
				diplomacy=22
				intrigue=18
				stewardship=19
				learning = 12
			}
			name="N"
			religion = ROOT
			culture = ROOT
			dynasty = 5100016
			female = yes
			age = 16
			
			trait = yl_riya
			trait = fair
			trait = quick
			trait = proud
			trait = lustful
			trait = zealous
			trait = administrator
			trait = cruel
			trait = impaler
			trait = arbitrary
			trait = grey_eminence						
		}
		new_character = {
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			reverse_opinion = {
				who = event_target:hs_targetchar_rance
				modifier = opinion_hs_koikokoro
			}#S҉rmRK`V
			add_lover = event_target:hs_targetchar_rance 
			add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
			add_character_modifier = {
				name = zhanlifu20
				duration = -1 hidden = yes
			}#bReck
				
			hs_shouzhao_effect = yes
			k_hs_leazas = {
				grant_title = PREV
				de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_primogeniture
					cooldown = no
					opinion_effect = no
				}
			}

			prestige = 3000
			piety = 1000
			wealth = 3000
			random_landed_title = {
				limit = {						
					tier = DUKE
					is_landless_type_title = no
					owner = {
						ai = yes
					}
				}
				preferred_limit = {
					owner = {
						#culture_group = east_slavic 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
					
				}
				any_de_jure_vassal_title = {
					limit = {
						higher_tier_than = BARON
					}
					gain_title = PREVPREV
				}
				gain_title = PREV
			}
			capital_scope = {
				new_character ={								
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry  = { 7800 10500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 9000 10500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights = { 7000 7500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
				}
			}
			event_target:hs_targetchar_rance = {
				make_tributary = {
					who = new_character
					tributary_type = permanent
					percentage = 0.4
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=11
					diplomacy=8
					intrigue=7
					stewardship=11
					learning = 8
				}
				name="^e"
				religion = THIS
				culture = THIS
				dynasty = 5100016
				female = no
				age = 0
				
				trait = yl_hero553
				trait = strong
				trait = rowdy
				trait = willful		
				trait = haughty		
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ySKb 40
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				set_mother = PREV
				set_father = event_target:hs_targetchar_rance
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=13
					diplomacy=8
					intrigue=15
					stewardship=8
					learning = 12
				}
				name="RHY"
				religion = ROOT
				culture = yamato
				dynasty = 5100090
				female = yes
				age = 16
				
				trait = yl_rancesub1
				trait = honest
				trait = shy
				trait = sturdy
				trait = gladiator
				trait = craven
				trait = flamboyant_schemer						
			}
			new_character = {
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				reverse_opinion = {
					who = event_target:hs_targetchar_rance
					modifier = opinion_hs_koikokoro
				}#S҉rmRK`V
				add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku #QYuw
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=6
						diplomacy=6
						intrigue=10
						stewardship=7
						learning = 7
					}
					name="sY"
					religion = THIS
					culture = THIS
					dynasty = 5100090
					female = yes
					age = 0
					
					trait = yl_hero559
					trait = quick
					trait = willful
					trait = schemer
					trait = brooding			
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					set_mother = PREV
					set_father = event_target:hs_targetchar_rance
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=12
						diplomacy=11
						intrigue=7
						stewardship=10
						learning = 8
					}
					name="ZY"
					religion = PREV
					culture = PREV
					dynasty = 5100330
					female = yes
					age = 16
					
					trait = yl_hero473
					trait = sturdy
					trait = chaste
					trait = humble
					trait = trusting
					trait = shy
					trait = content
					trait = defensive_leader
					trait = tough_soldier						
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_friend = PREV
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=17
					diplomacy=18
					intrigue=18
					stewardship=22
					learning = 12
				}
				name="sLNe"
				religion = PREV
				culture = PREV
				dynasty = 5100325
				female = yes
				age = 16
				
				trait = yl_hero468
				trait = shrewd
				trait = administrator
				trait = hs_magician
				trait = patient
				trait = cynical
				trait = elusive_shadow						
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku #QYuw
				}
				add_friend = PREV				
				add_character_modifier = { name = hs_magic_holy_2 duration = -1 } #^y2WTl
				add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				create_character = {
					random_traits = no
					attributes = {
						martial=17
						diplomacy=10
						intrigue=8
						stewardship=8
						learning = 9
					}
					name=")RKQ"
					religion = PREV
					culture = PREV
					dynasty = 5100327
					female = no
					age = 16
					
					trait = yl_hero470
					trait = strong
					trait = duelist
					trait = just
					trait = chaste
					trait = humble
					trait = brave
					trait = experimenter
					trait = skilled_tactician						
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_friend = event_target:hs_targetchar_rance
					opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					give_nickname = nick_the_hs256

					create_character = {
						random_traits = no
						attributes = {
							martial=14
							diplomacy=9
							intrigue=8
							stewardship=10
							learning = 9
						}
						name="b"
						religion = PREV
						culture = PREV
						dynasty = 5100347
						female = yes
						age = 16
						
						trait = yl_hero479
						trait = quick
						trait = robust
						trait = duelist
						trait = chaste
						trait = brave
						trait = defensive_leader
						trait = tough_soldier						
					}
					new_character = {
						hs_shouzhao_effect = yes
						add_lover = PREV
						opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
						add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					}
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=10
					diplomacy=10
					intrigue=10
					stewardship=12
					learning = 9
				}
				name="W2"
				religion = PREV
				culture = PREV
				dynasty = 5100326
				female = yes
				age = 16
				
				trait = yl_hero469
				trait = quick
				trait = sturdy
				trait = duelist
				trait = hs_trait_aojiao
				trait = lustful
				trait = diligent
				trait = trusting
				trait = skilled_tactician						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_lover = event_target:hs_targetchar_rance
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				reverse_opinion = {
					who = event_target:hs_targetchar_rance
					modifier = opinion_hs_koikokoro
				}#S҉rmRK`V
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=18
					diplomacy=10
					intrigue=12
					stewardship=9
					learning = 12
				}
				name="Jyr"
				religion = PREV
				culture = PREV
				dynasty = 5100328
				female = yes
				age = 16
				
				trait = yl_hero471
				trait = strategist
				trait = chaste
				trait = humble
				trait = patient
				trait = shy
				trait = craven
				trait = organizer
				trait = brilliant_strategist						
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_strategist_level3  duration = -1 } #c%c1-3 HIP commander1
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=15
					diplomacy=14
					intrigue=15
					stewardship=12
					learning = 11
				}
				name="Te"
				religion = PREV
				culture = PREV
				dynasty = 5100329
				female = no
				age = 40
				
				trait = yl_hero472
				trait = scarred_mid
				trait = shrewd
				trait = one_eyed
				trait = strategist
				trait = charitable
				trait = organizer
				trait = brilliant_strategist						
			}
			new_character = {
				add_character_modifier = { name = hs_strategist_level2  duration = -1 } #c%c1-3 HIP commander1
				hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=11
						intrigue=11
						stewardship=8
						learning = 8
					}
					name="N"
					religion = PREV
					culture = PREV
					dynasty = 5100329
					female = yes
					age = 16
					
					trait = yl_hero488
					trait = humble
					trait = adventurer
					trait = jungle_terrain_leader
					trait = strategist
					trait = diligent
					trait = skilled_tactician						
				}
				new_character = {
					set_father = PREV
					add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					hs_shouzhao_effect = yes
				}
			}
			
		}
		
		create_character = {
			random_traits = no
			attributes = {
				martial=19
				diplomacy=20
				intrigue=12
				stewardship=14
				learning = 10
			}
			name=""
			religion = ROOT
			culture = yamato
			dynasty = 5100018
			female = yes
			age = 16
			
			trait = yl_xiangji
			trait = fair
			trait = honest
			trait = shy
			trait = socializer
			trait = trusting
			trait = stressed
			trait = charismatic_negotiator						
		}
		new_character = {
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			reverse_opinion = {
				who = event_target:hs_targetchar_rance
				modifier = opinion_hs_koikokoro
			}#S҉rmRK`V
			add_lover = event_target:hs_targetchar_rance 
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = { name = hs_strategist_level2  duration = -1 } #c%c1-3
			k_hs_JAPAN_rance = {
				grant_title = PREV
				de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_elective_gavelkind
					cooldown = no
					opinion_effect = no
				}
			}

			prestige = 3000
			piety = 1000
			wealth = 3000
			random_landed_title = {
				limit = {						
					tier = DUKE
					is_landless_type_title = no
					owner = {
						ai = yes
					}
				}
				preferred_limit = {
					owner = {
						culture = yamato 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
					
				}
				any_de_jure_vassal_title = {
					limit = {
						higher_tier_than = BARON
					}
					gain_title = PREVPREV
				}
				gain_title = PREV
			}
			capital_scope = {
				new_character ={								
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry  = { 4800 6500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 3000 6500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights = { 1000 2500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
				}
			}
			event_target:hs_targetchar_rance = {
				make_tributary = {
					who = new_character
					tributary_type = permanent
					percentage = 0.4
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=4
					intrigue=6
					stewardship=7
					learning = 5
				}
				name="CQ1S"
				religion = THIS
				culture = yamato
				dynasty = 5100374
				female = no
				age = 0
				
				trait = yl_hero556
				trait = robust
				trait = rowdy
				trait = berserker
				trait = willful					
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				set_father = event_target:hs_targetchar_rance
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=11
					intrigue=9
					stewardship=9
					learning = 11
				}
				name="CS"
				religion = PREV
				culture = yamato
				dynasty = 5100336
				female = yes
				age = 16
				
				trait = yl_hero489
				trait = duelist
				trait = adventurer
				trait = zealous
				trait = brave
				trait = berserker
				trait = aggressive_leader
				trait = tough_soldier						
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				reverse_opinion = {
					who = event_target:hs_targetchar_rance
					modifier = opinion_hs_koikokoro
				}#S҉rmRK`V
				add_lover = event_target:hs_targetchar_rance 
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				create_character = {
					random_traits = no
					attributes = {
						martial=6
						diplomacy=8
						intrigue=6
						stewardship=7
						learning = 11
					}
					name="m9h"
					religion = THIS
					culture = THIS
					dynasty = 5100336
					female = yes
					age = 0
					
					trait = yl_hero555
					trait = groomed
					trait = hs_miko
					trait = gluttonous
					trait = idolizer					
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13 A
					add_character_modifier = { name = hs_magic_holy_1 duration = -1 } #^y2WTl
					set_mother = PREV
					set_father = event_target:hs_targetchar_rance
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=16
					diplomacy=7
					intrigue=5
					stewardship=7
					learning = 10
				}
				name="&O"
				religion = PREV
				culture = yamato
				dynasty = 5100337
				female = yes
				age = 16
				
				trait = yl_hero490
				trait = robust
				trait = duelist
				trait = strategist
				trait = gluttonous
				trait = just
				trait = brave
				trait = experimenter
				trait = skilled_tactician						
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=8
					intrigue=7
					stewardship=11
					learning = 8
				}
				name="NASmQ"
				religion = PREV
				culture = yamato
				dynasty = 5100338
				female = yes
				age = 16
				
				trait = yl_hero491
				trait = chaste
				trait = diligent
				trait = content
				trait = light_foot_leader
				trait = skilled_tactician						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ySKb 40
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				create_character = {
					random_traits = no
					attributes = {
						martial=11
						diplomacy=8
						intrigue=7
						stewardship=11
						learning = 8
					}
					name="qNIN"
					religion = PREV
					culture = yamato
					dynasty = 5100338
					female = no
					age = 0
					
					trait = yl_hero552
					trait = strong
					trait = conscientious
					trait = brooding					
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ySKb 40
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					set_mother = PREV
					set_father = event_target:hs_targetchar_rance
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=10
					intrigue=9
					stewardship=12
					learning = 12
				}
				name="eN"
				religion = PREV
				culture = yamato
				dynasty = 5100339
				female = no
				age = 16
				
				trait = yl_hero492
				trait = hs_magician
				trait = quick
				trait = celibate
				trait = chaste
				trait = temperate
				trait = thrifty_clerk						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=11
					diplomacy=12
					intrigue=8
					stewardship=14
					learning = 12
				}
				name="3G"
				religion = PREV
				culture = yamato
				dynasty = none
				female = no
				age = 16
				
				trait = yl_hero493
				trait = administrator
				trait = diligent
				trait = hs_bakemono
				trait = chaste
				trait = paranoid
				trait = fortune_builder						
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_loyal_servant who = PREV } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=13
					diplomacy=7
					intrigue=5
					stewardship=10
					learning = 10
				}
				name="g"
				religion = PREV
				culture = yamato
				dynasty = 5100340
				female = yes
				age = 16
				
				trait = yl_hero494
				trait = trusting
				trait = lustful
				trait = hs_trait_wukou
				trait = zealous
				trait = siege_leader
				trait = thrifty_clerk						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ySKb 40
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
		}
		
		create_character = {
			random_traits = no
			attributes = {
				martial=6
				diplomacy=12
				intrigue=15
				stewardship=12
				learning = 20
			}
			name="^^"
			religion = catholic
			culture = ROOT
			dynasty = 5100091
			female = yes
			age = 16
			
			trait = yl_rancesub2
			trait = quick
			trait = physician
			trait = adventurer
			trait = hs_trait_wukou
			trait = administrator
			trait = hs_summoner
			trait = chaste
			trait = brave
			trait = grey_eminence						
		}
		new_character = {
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			reverse_opinion = {
				who = event_target:hs_targetchar_rance
				modifier = opinion_hs_koikokoro
			}#S҉rmRK`V
			add_lover = event_target:hs_targetchar_rance 
			set_character_flag = hs_doctor
			add_character_modifier = { name = hs_magic_holy_3 duration = -1 } #^y2WTl
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
			add_character_modifier = { name = hs_sp_abilitity_12  duration = -1 hidden = yes} #^y2Wlyy  12
			add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13
			hs_shouzhao_effect = yes
			k_hs_ALchurch_rance = {
				grant_title = PREV
				de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_open_elective
					cooldown = no
					opinion_effect = no
				}
			}
			
			prestige = 3000
			piety = 1000
			wealth = 3000
			random_landed_title = {
				limit = {						
					tier = DUKE
					is_landless_type_title = no
					owner = {
						ai = yes
					}
				}
				preferred_limit = {						
					OR = {
						title = d_venice
						title = d_sicily
						title = d_krete
						title = d_cyprus
						title = d_mallorca
						title = d_socotra
					}
					owner = {
						#culture_group = indo_aryan_group 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
				}
				preferred_limit = {
					owner = {
						#culture_group = indo_aryan_group 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
					
				}
				any_de_jure_vassal_title = {
					limit = {
						OR = {
							higher_tier_than = BARON
							holding_type = temple 
						}
					}
					gain_title = PREVPREV
				}
				gain_title = PREV
			}
			set_government_type = theocracy_government
			capital_scope = {
				new_character ={								
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry  = { 1800 2500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 2000 2500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights = { 2000 2500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
				}
			}
			event_target:hs_targetchar_rance = {
				make_tributary = {
					who = new_character
					tributary_type = permanent
					percentage = 0.4
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=10
					diplomacy=10
					intrigue=10
					stewardship=10
					learning = 10
				}
				name="S"
				religion = THIS
				culture = THIS
				dynasty = 5100091
				female = yes
				age = 0
				
				trait = yl_hero560
				trait = curious			
			}
			new_character = {
				hs_shouzhao_effect = yes
				set_mother = PREV
				set_father = event_target:hs_targetchar_rance
				add_character_modifier = {
					name = dabaifushen
					duration = -1
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=10
					diplomacy=15
					intrigue=15
					stewardship=11
					learning = 14
				}
				name="?Y"
				religion = THIS
				culture = THIS
				dynasty = 5100352
				female = yes
				age = 16
				
				trait = yl_hero501
				trait = possessed
				trait = quick
				trait = homosexual
				trait = mystic
				trait = hs_summoner
				trait = ambitious
				trait = cynical
				trait = bad_priest_christian
				trait = elusive_shadow						
			}
			new_character = {
				hs_shouzhao_effect = yes
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_magic_black_3 duration = -1 } #ўfTl
				add_character_modifier = { name = hs_magic_holy_1 duration = -1 } #^y2WTl
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				add_character_modifier = { name = hs_sp_abilitity_37  duration = -1 hidden = yes} #|^ydc 37 D
				add_character_modifier = { name = hs_sp_abilitity_38  duration = -1 hidden = yes} #uTrlS  38 D
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial= 9
					diplomacy=13
					intrigue=7
					stewardship=13
					learning = 14
				}
				name="jS"
				religion = THIS
				culture = THIS
				dynasty = 5100351
				female = yes
				age = 16
				
				trait = yl_hero502
				trait = groomed
				trait = celibate
				trait = kind
				trait = nun
				trait = zealous
				trait = theologian
				trait = just
				trait = brave
				trait = chaste
				trait = scholarly_theologian						
			}
			new_character = {
				hs_shouzhao_effect = yes
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_magic_holy_2 duration = -1 } #^y2WTl
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				add_character_modifier = { name = hs_sp_abilitity_12  duration = -1 hidden = yes} #^y2Wlyy  12 A
				add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13 A
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=10
					intrigue=5
					stewardship=6
					learning = 10
				}
				name="?SaSm"
				religion = ROOT
				culture = ROOT
				dynasty = 5100372
				female = yes
				age = 16
				
				trait = yl_hero530
				trait = strong
				trait = berserker
				trait = brave
				trait = peasant_leader
				trait = experimenter
				trait = tough_soldier						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_friend = event_target:hs_targetchar_rance
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=7
					intrigue=5
					stewardship=10
					learning = 14
				}
				name="s|"
				religion = THIS
				culture = THIS
				dynasty = 5100350
				female = no
				age = 16
				
				trait = yl_hero503
				trait = strong
				trait = hs_trait_zhonger
				trait = just
				trait = monk
				trait = zealous
				trait = experimenter
				trait = brave
				trait = theologian
				trait = mastermind_theologian						
			}
			new_character = {
				hs_shouzhao_effect = yes
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_holy_3 duration = -1 } #^y2WTl
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=7
					diplomacy=12
					intrigue=9
					stewardship=8
					learning = 8
				}
				name="Wl"
				religion = THIS
				culture = THIS
				dynasty = 5100349
				female = yes
				age = 16
				
				trait = yl_hero504
				trait = hedonist
				trait = lustful
				trait = greedy
				trait = cynical
				trait = nun
				trait = deceitful
				trait = flamboyant_schemer						
			}
			new_character = {
				hs_shouzhao_effect = yes
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=11
					diplomacy=7
					intrigue=5
					stewardship=8
					learning = 7
				}
				name="x^PR"
				religion = THIS
				culture = THIS
				dynasty = 5100348
				female = yes
				age = 16
				
				trait = yl_hero505
				trait = honest
				trait = trusting
				trait = slow
				trait = sturdy
				trait = adventurer
				trait = shieldmaiden
				trait = defensive_leader
				trait = tough_soldier						
			}
			new_character = {
				hs_shouzhao_effect = yes
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				add_character_modifier = { name = hs_sp_abilitity_28  duration = -1 hidden = yes} #VaTflag 28 
				save_event_target_as = hs_targetchar_yl_hero505
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
	
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=15
				diplomacy=12
				intrigue=11
				stewardship=13
				learning = 15
			}
			name="bSumKQ?^"
			religion = ROOT
			culture = ROOT
			dynasty = 5100092
			female = no
			age = 35
			
			trait = yl_hero474
			trait = strong
			trait = quick
			trait = adventurer
			trait = hs_magician_h
			trait = charitable
			trait = brave
			trait = just
			trait = aggressive_leader
			trait = scholarly_theologian						
		}
		new_character = {
			add_friend = event_target:hs_targetchar_rance 
			add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #kp|wR 2
			hs_shouzhao_effect = yes
			save_event_target_as = hs_targetchar_yl_hero474
			k_hs_zeth = {
				grant_title = PREV
				de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_primogeniture
					cooldown = no
					opinion_effect = no
				}
			}
			prestige = 3000
			piety = 1000
			wealth = 3000
			random_landed_title = {
				limit = {						
					tier = DUKE
					is_landless_type_title = no
					owner = {
						ai = yes
					}
				}
				preferred_limit = {
					owner = {
						culture_group = indo_aryan_group 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
					
				}
				any_de_jure_vassal_title = {
					limit = {
						higher_tier_than = BARON
					}
					gain_title = PREVPREV
				}
				gain_title = PREV
			}
			capital_scope = {
				new_character ={								
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry  = { 6800 9500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 4000 7500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights = { 3000 4500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							hs_figure = { 1000 1500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
				}
			}
			event_target:hs_targetchar_rance = {
				make_tributary = {
					who = new_character
					tributary_type = permanent
					percentage = 0.4
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=10
					intrigue=6
					stewardship=11
					learning = 17
				}
				name="s	Ts"
				religion = ROOT
				culture = hindustani
				dynasty = 5100092
				female = yes
				age = 16
				
				trait = yl_rancesub3
				trait = scholarly_theologian
				trait = groomed
				trait = scholar
				trait = hs_magician_h
				trait = lustful
				trait = wroth
				trait = flamboyant_schemer						
			}
			new_character = {
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				reverse_opinion = {
					who = event_target:hs_targetchar_rance
					modifier = opinion_hs_koikokoro
				}#S҉rmRK`V
				add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				set_father = PREV
				add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_sp_abilitity_7  duration = -1 hidden = yes} #IQ 7
				create_character = {
					random_traits = no
					attributes = {
						martial=8
						diplomacy=6
						intrigue=6
						stewardship=7
						learning = 11
					}
					name="ς"
					religion = THIS
					culture = THIS
					dynasty = 5100092
					female = yes
					age = 0
					
					trait = yl_hero554
					trait = hs_magician
					trait = scholar
					trait = timid
					trait = curious					
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					set_mother = PREV
					set_father = event_target:hs_targetchar_rance
				}
			}

			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=10
					intrigue=6
					stewardship=12
					learning = 13
				}
				name="ZY"
				religion = ROOT
				culture = hindustani
				dynasty = 5100341
				female = yes
				age = 16
				
				trait = yl_hero475
				trait = groomed
				trait = quick
				trait = lustful
				trait = hs_magician
				trait = greedy
				trait = zealous
				trait = flamboyant_schemer						
			}
			new_character = {
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				add_character_modifier = { name = hs_magic_black_1 duration = -1 } #ўfTl
				add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				save_event_target_as = hs_targetchar_yl_rancesub3 
				hs_shouzhao_effect = yes
				
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=13
					diplomacy=14
					intrigue=14
					stewardship=13
					learning = 15
				}
				name="CSdPR"
				religion = ROOT
				culture = yamato
				dynasty = 5100342
				female = yes
				age = 16
				
				trait = yl_hero476
				trait = uncouth
				trait = fair
				trait = hs_magician_h
				trait = diligent
				trait = administrator
				trait = fortune_builder						
			}
			new_character = {
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=1
						diplomacy=3
						intrigue=2
						stewardship=4
						learning = 6
					}
					name="?Ye"
					religion = ROOT
					culture = hindustani
					dynasty = 5100345
					female = yes
					age = 16
					
					trait = yl_hero480
					trait = dull
					trait = zealous
					trait = hs_magician_h
					trait = misguided_warrior						
				}
				new_character = {
					opinion = { modifier = opinion_loyal_servant who = PREV } #mRRS҉rvK`V
					opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_keyiyaku #QYuw
					}
					add_friend = PREV
					#reverse_opinion = {
					#	who = event_target:hs_targetchar_rance
					#	modifier = opinion_hs_koikokoro
					#}#S҉rmRK`V
					#add_lover = event_target:hs_targetchar_rance 
					add_character_modifier = { name = hs_magic_elemental_5 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_sp_abilitity_16  duration = -1 hidden = yes} #wyR 16
					hs_shouzhao_effect = yes
					
				}
				
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=13
					diplomacy=12
					intrigue=13
					stewardship=14
					learning = 12
				}
				name="LNl"
				religion = ROOT
				culture = hindustani
				dynasty = 5100343
				female = yes
				age = 16
				
				trait = yl_hero477
				trait = quick
				trait = administrator
				trait = strategist
				trait = adventurer
				trait = chaste
				trait = diligent
				trait = organizer
				trait = grey_eminence						
			}
			new_character = {
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_strategist_level3  duration = -1 } #c%c1-3 HIP commander1
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=8
					intrigue=12
					stewardship=14
					learning = 14
				}
				name="^Z"
				religion = ROOT
				culture = hindustani
				dynasty = 5100344
				female = yes
				age = 16
				
				trait = yl_hero478
				trait = groomed
				trait = mystic
				trait = hs_magician_h
				trait = cynical
				trait = erudite
				trait = fortune_builder						
			}
			new_character = {
				#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				add_character_modifier = { name = hs_magic_black_2 duration = -1 } #ўfTl
				add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43 A
				hs_shouzhao_effect = yes
				
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=8
					diplomacy=10
					intrigue=6
					stewardship=12
					learning = 12
				}
				name=")RyQZ"
				religion = ROOT
				culture = hindustani
				dynasty = 5100346
				fertility = 0
				female = yes
				age = 16
				
				trait = yl_hero481
				trait = lustful
				trait = stressed
				trait = hs_magician_l
				trait = trusting
				trait = kind
				trait = martial_cleric						
			}
			new_character = {
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#reverse_opinion = {
				#	who = event_target:hs_targetchar_rance
				#	modifier = opinion_hs_koikokoro
				#}#S҉rmRK`V
				#add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				add_character_modifier = { name = wont_let_spouse_touch_me duration = -1 hidden = yes }
				
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=8
				diplomacy=16
				intrigue=10
				stewardship=19
				learning = 12
			}
			name="yXoQ"
			religion = ROOT
			culture = ROOT
			dynasty = 5100358
			female = yes
			age = 31
			
			trait = yl_hero495
			trait = robust
			trait = quick
			trait = proud
			trait = administrator
			trait = diligent
			trait = ambitious
			trait = midas_touched						
		}
		new_character = {
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			add_lover = event_target:hs_targetchar_rance 
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = { name = hs_bank_have_money  duration = -1 }
			
			hs_shouzhao_effect = yes
			k_hs_freecity = {
				grant_title = PREV
				de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_open_elective
					cooldown = no
					opinion_effect = no
				}
			}

			prestige = 1000
			piety = 1000
			wealth = 5000
			random_landed_title = {
				limit = {						
					tier = DUKE
					is_landless_type_title = no
					owner = {
						ai = yes
					}
				}
				preferred_limit = {
					owner = {
						#culture_group = east_slavic 
						NOR = {							
							trait = hs_trait_shouzhao
							trait = genius
							trait = strong
							trait = quick
							is_female = yes
							martial= 18
							diplomacy= 15
							intrigue= 15
							stewardship = 15
							learning = 15
						}
					}
					
				}
				any_de_jure_vassal_title = {
					limit = {
						OR = {
							higher_tier_than = BARON
							holding_type = city 
						}
					}
					gain_title = PREVPREV
				}
				gain_title = PREV
			}
			set_government_type = merchant_republic_government
			capital_scope = {
				new_character ={								
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry  = { 1800 4500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 2000 4500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights = { 1000 2500 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.2
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
				}
			}
			event_target:hs_targetchar_rance = {
				make_tributary = {
					who = new_character
					tributary_type = permanent
					percentage = 0.4
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=13
					diplomacy=12
					intrigue=7
					stewardship=15
					learning = 12
				}
				name="s)RN"
				religion = THIS
				culture = THIS
				dynasty = 5100353
				female = yes
				age = 16
				
				trait = yl_hero496
				trait = architect
				trait = humble
				trait = diligent
				trait = zealous
				trait = siege_leader
				trait = midas_touched						
			}
			new_character = {
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
				#add_lover = event_target:hs_targetchar_rance 
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43 A
				save_event_target_as = hs_targetchar_yl_hero496
				create_character = {
					random_traits = no
					attributes = {
						martial=12
						diplomacy=12
						intrigue=11
						stewardship=10
						learning = 8
					}
					name="N"
					religion = PREV
					culture = PREV
					dynasty = 5100354
					female = yes
					age = 16
					
					trait = yl_hero497
					trait = stressed
					trait = administrator
					trait = shrewd
					trait = hs_magician_l
					trait = impaler
					trait = experimenter
					trait = skilled_tactician						
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_friend = PREV
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_37  duration = -1 hidden = yes} #|^ydc 37 D
					#opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
					create_character = {
						random_traits = no
						attributes = {
							martial=12
							diplomacy=6
							intrigue=5
							stewardship=8
							learning = 16
						}
						name="V%m"
						religion = ROOT
						culture = ROOT
						dynasty = 5100095
						female = yes
						age = 16
						
						trait = yl_rancesub6
						trait = fair
						trait = scholar
						trait = adventurer
						trait = hs_magician_h						
						trait = wroth
						trait = stubborn
						trait = chaste
						trait = scholarly_theologian						
					}
					new_character = {
						opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
						reverse_opinion = {
							who = event_target:hs_targetchar_rance
							modifier = opinion_hs_koikokoro
						}#S҉rmRK`V
						add_lover = event_target:hs_targetchar_rance 
						hs_shouzhao_effect = yes
						add_friend = PREV
						add_friend = PREVPREV
						add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
						add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21
						opinion = { modifier = opinion_hs_SISTER who = event_target:hs_targetchar_yl_rancesub3  }#DQVYY
						reverse_opinion = {
							who = event_target:hs_targetchar_yl_rancesub3 
							modifier = opinion_hs_SISTER
						}
			
						
					}
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=10
					diplomacy=8
					intrigue=13
					stewardship=14
					learning = 12
				}
				name="kv"
				religion = PREV
				culture = PREV
				dynasty = 5100355
				female = no
				age = 16
				
				trait = yl_hero498
				trait = quick
				trait = fair
				trait = robust
				trait = duelist
				trait = adventurer
				trait = humble
				trait = holy_warrior
				trait = brilliant_strategist						
			}
			new_character = {
				hs_shouzhao_effect = yes				
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=10
					intrigue=8
					stewardship=12
					learning = 9
				}
				name="N"
				religion = PREV
				culture = PREV
				dynasty = 5100356
				female = yes
				age = 16
				
				trait = yl_hero499
				trait = administrator
				trait = lustful
				trait = adventurer
				trait = sea_queen
				trait = gregarious
				trait = organizer
				trait = charismatic_negotiator						
			}
			new_character = {
				hs_shouzhao_effect = yes
				
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=7
					diplomacy=13
					intrigue=5
					stewardship=9
					learning = 12
				}
				name="?N"
				religion = PREV
				culture = PREV
				dynasty = 5100357
				female = yes
				age = 16
				
				trait = yl_hero500
				trait = fair
				trait = hs_idol
				trait = socializer
				trait = lustful
				trait = cynical
				trait = inspiring_leader
				trait = charismatic_negotiator						
			}
			new_character = {
				set_variable = { which = hs_idol_popularity value = 65 }				
				set_variable = { which = hs_idol_exp value = 25 }
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			}
			
			
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=14
				diplomacy=7
				intrigue=5
				stewardship=9
				learning = 7
			}
			name=")Re"
			religion = ROOT
			culture = ROOT
			dynasty = none
			female = yes
			age = 16
			
			trait = yl_rancesub4
			trait = celibate
			trait = depressed
			trait = hs_bakemono
			trait = craven
			trait = trusting
			trait = thrifty_clerk						
		}
		new_character = {
			hs_shouzhao_effect = yes
			save_event_target_as = hs_target_rancesub4
			add_character_modifier = { name = hs_magic_black_2 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
		}
		
		
		
		create_character = {
			random_traits = no
			attributes = {
				martial=12
				diplomacy=7
				intrigue=3
				stewardship=8
				learning = 11
			}
			name="h"
			religion = ROOT
			culture = yamato
			dynasty = 5100167
			female = yes
			age = 16
			
			trait = yl_hero177
			trait = fair
			trait = possessed
			trait = adventurer
			trait = hs_bakemono
			trait = chaste
			trait = shy
			trait = trusting
			trait = thrifty_clerk						
		}
		new_character = {
			hs_shouzhao_effect = yes
			give_nickname = nick_the_hs174
			add_claim = e_hs_monster_rance
			add_character_modifier = {
				name = hs_rance_Dark_Lord
				duration = -1
			}
			add_character_modifier = {
				name = hs_relife_modifier
				duration = -1
				hidden = yes
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=15
					diplomacy=5
					intrigue=5
					stewardship=8
					learning = 16
				}
				name="eP*Yΐ"
				religion = ROOT
				culture = yamato
				dynasty = 5100168
				female = no
				age = 16
				
				trait = yl_hero178
				trait = temperate
				trait = diligent
				trait = adventurer
				trait = hs_bakemono
				trait = holy_warrior
				trait = craven
				trait = scholarly_theologian						
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_koikokoro
				}#S҉rmRK`V
				add_lover = PREV
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=12
				diplomacy=4
				intrigue=7
				stewardship=3
				learning = 4
			}
			name="DARKpQe"
			religion = ROOT
			culture = ROOT
			dynasty = ROOT
			female = no
			age = 2
			immortal_age = 16
			trait = yl_rancesub7
			trait = strong
			trait = hs_bakemono
			trait = stubborn
			trait = ambitious
			trait = craven	
			trait = bastard
		}
		
		new_character = {
			set_character_flag = hs_has_immortal_age
			add_rival = ROOT
			add_trait = hs_trait_shouzhao
			#add_character_modifier = {
			#	name = shouzhao
			#	duration = -1
			#}
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			set_father = ROOT
			set_mother = event_target:hs_target_rancesub4
			add_lover = event_target:hs_targetchar_yl_hero496
		}
		
		create_character = {
			random_traits = no
			attributes = {
				martial=14
				diplomacy=7
				intrigue=14
				stewardship=12
				learning = 16
			}
			name="s|b^S"
			religion = ROOT
			culture = ROOT
			dynasty = 5100373
			female = yes
			age = 16
			
			trait = yl_hero531
			trait = hs_trait_zhonger
			trait = hs_trait_aojiao
			trait = hs_magician_h
			trait = proud
			trait = kind
			trait = hs_summoner
			trait = genius
			trait = scholar
			trait = greedy
			trait = mastermind_theologian						
		}
		new_character = {
			hs_shouzhao_effect = yes			
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			add_lover = event_target:hs_targetchar_rance
			add_character_modifier = { name = hs_magic_black_3 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_enhance_2 duration = -1 } #:VS>g #NBuffbN-Nuc%cRs^eueP^Ir
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
			add_character_modifier = { name = hs_sp_abilitity_6  duration = -1 hidden = yes} #f 6
			add_character_modifier = { name = hs_sp_abilitity_16  duration = -1 hidden = yes} #wyR 16
			add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21 A
			add_character_modifier = { name = hs_sp_abilitity_29  duration = -1 hidden = yes} #VR 29
			add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #܏zcg 30
			create_character = {
				random_traits = no
				attributes = {
					martial=3
					diplomacy=3
					intrigue=3
					stewardship=10
					learning = 11
				}
				name="s|^e"
				religion = THIS
				culture = THIS
				dynasty = 5100373
				female = yes
				age = 0
				
				trait = yl_hero557
				trait = hs_magician
				trait = genius
				trait = physician
				trait = curious
				trait = conscientious		
				trait = affectionate		
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				set_mother = PREV
				set_father = event_target:hs_targetchar_rance
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=11
				diplomacy=11
				intrigue=8
				stewardship=10
				learning = 12
			}
			name="aS"
			religion = catholic
			culture = ROOT
			dynasty = 5100367
			female = yes
			age = 16
			
			trait = yl_hero506
			trait = immortal
			trait = nun
			trait = lustful
			trait = adventurer
			trait = scholarly_theologian						
		}
		new_character = {
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_magic_holy_3 duration = -1 } #^y2WTl
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=10
				diplomacy=7
				intrigue=12
				stewardship=10
				learning = 10
			}
			name="?YN"
			religion = ROOT
			culture = ROOT
			dynasty = 5100366
			female = yes
			age = 16
			
			trait = yl_hero507
			trait = drunkard
			trait = strong
			trait = duelist
			trait = adventurer
			trait = proud
			trait = brave
			trait = berserker
			trait = skilled_tactician						
		}
		new_character = {
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=9
				diplomacy=11
				intrigue=9
				stewardship=16
				learning = 12
			}
			name="keQTX"
			religion = ROOT
			culture = ROOT
			dynasty = 5100365
			female = yes
			age = 16
			
			trait = yl_hero508
			trait = hs_maid
			trait = quick
			trait = robust
			trait = gardener
			trait = administrator
			trait = hs_trait_wukou
			trait = chaste
			trait = diligent
			trait = fortune_builder						
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			opinion = { modifier = opinion_loyal_servant who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=5
				diplomacy=8
				intrigue=10
				stewardship=9
				learning = 8
			}
			name="wm"
			religion = ROOT
			culture = ROOT
			dynasty = 5100364
			female = yes
			age = 16
			
			trait = yl_hero509
			trait = kind
			trait = hs_maid
			trait = gluttonous
			trait = craven
			trait = deceitful
			trait = flamboyant_schemer						
		}
		new_character = {
			hs_shouzhao_effect = yes
			
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=6
				diplomacy=10
				intrigue=5
				stewardship=12
				learning = 12
			}
			name="aSm̑"
			religion = ROOT
			culture = ROOT
			dynasty = 5100363
			female = yes
			age = 16
			
			trait = yl_hero510
			trait = physician
			trait = administrator
			trait = charitable
			trait = patient
			trait = kind
			trait = martial_cleric						
		}
		new_character = {
			hs_shouzhao_effect = yes
			set_character_flag = hs_doctor
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=5
				diplomacy=6
				intrigue=19
				stewardship=5
				learning = 10
			}
			name="^V"
			religion = ROOT
			culture = ROOT
			dynasty = none
			female = yes
			age = 16
			
			trait = yl_hero511
			trait = mystic
			trait = hs_trait_wukou
			trait = chaste
			trait = kind
			trait = rough_terrain_leader
			trait = elusive_shadow						
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			add_character_modifier = { name = hs_sp_abilitity_35  duration = -1 hidden = yes} #*Oň 35
			add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #܏zcg 30
			add_character_modifier = { name = hs_sp_abilitity_31  duration = -1 hidden = yes} #aVzc 31

		}
		create_character = {
			random_traits = no
			attributes = {
				martial=13
				diplomacy=7
				intrigue=5
				stewardship=7
				learning = 12
			}
			name="5tLk"
			religion = ROOT
			culture = ROOT
			dynasty = 5100362
			female = yes
			age = 16
			
			trait = yl_hero512
			trait = hs_bakemono
			trait = lustful
			trait = trusting
			trait = charitable
			trait = naive_appeaser						
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			add_character_modifier = { name = hs_sp_abilitity_36  duration = -1 hidden = yes} #R>g 36 A
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=10
				diplomacy=9
				intrigue=11
				stewardship=10
				learning = 10
			}
			name="aSW)RN"
			religion = ROOT
			culture = ROOT
			dynasty = 5100361
			female = yes
			age = 16
			
			trait = yl_hero513
			trait = physician
			trait = gluttonous
			trait = hs_summoner
			trait = honest
			trait = trusting
			trait = flamboyant_schemer						
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
			add_character_modifier = { name = hs_magic_black_1 duration = -1 } #ўfTl
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=15
				diplomacy=10
				intrigue=9
				stewardship=12
				learning = 10
			}
			name="y2V"
			religion = ROOT
			culture = ROOT
			dynasty = 5100360
			female = yes
			age = 16
			
			trait = yl_hero514
			trait = robust
			trait = duelist
			trait = slothful
			trait = cynical
			trait = content
			trait = defensive_leader
			trait = skilled_tactician						
		}
		new_character = {
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=10
				diplomacy=8
				intrigue=5
				stewardship=6
				learning = 10
			}
			name="mW"
			religion = ROOT
			culture = ROOT
			dynasty = 5100359
			female = no
			age = 16
			
			trait = yl_hero515
			trait = honest
			trait = slow
			trait = robust
			trait = adventurer
			trait = defensive_leader
			trait = tough_soldier						
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_loyal_servant who = event_target:hs_targetchar_rance } #mRRS҉rvK`V
		}
		character_event = { id = ylcharevt.003 months = 1 }
	}
	after = {
		any_player = { narrative_event = {id = ylcharevt.002} }
	}
	
}
narrative_event = {#QiVY
	id = ylcharevt.002
	desc = EVTDESC_hs_rancequest
	picture = GFX_evt_hs_rancequest
	title = hs_rancequest_title
	is_triggered_only = yes 
	immediate = {
		set_global_flag = hs_rancequest_happen
	}
	option = {
		name = EVTOPT_rancequest_happen
	}
}

character_event = {#TLuVYeQO
	id = ylcharevt.003
	hide_window = yes
	is_triggered_only = yes 
	immediate = {
		create_character = {
			random_traits = no
			attributes = {
				martial=30
				diplomacy=12
				intrigue=20
				stewardship=10
				learning = 12
			}
			name="Q^)Re"
			religion = pagan
			culture = random
			dynasty = 5100371
			female = no
			age = 16
			
			trait = yl_hero516
			trait = strong
			trait = stressed
			trait = cruel
			trait = craven
			trait = wroth
			trait = paranoid
			trait = norse_leader
			trait = ambitious
			trait = arbitrary
			trait = hs_bakemono
			trait = in_hiding
			trait = elusive_shadow						
		}
		new_character = {
			will_not_marry_effect = yes
			add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
			add_character_modifier = { name = hs_magic_black_4 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_magic_elemental_5 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_4 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21 A
			add_character_modifier = { name = hs_sp_abilitity_38  duration = -1 hidden = yes} #uTrlS  38 D
			add_character_modifier = {
				name = hs_rance_Dark_Lord
				duration = -1
			}
			add_character_modifier = {
				name = hs_relife_modifier
				duration = -1
				hidden = yes
			}
			add_character_modifier = {
				name = hs_king_of_monster
				duration = -1
			}
			save_event_target_as = hs_targetchar_yl_hero516
			hs_shouzhao_effect = yes
			e_hs_monster_rance = {
				grant_title = PREV
				#de_jure_liege = e_rancecity
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = succ_turkish_succession
					cooldown = no
					opinion_effect = no
				}
			}

			prestige = 10000
			piety = 3000
			wealth = 5000
			k_hs_helman = {
				holder_scope = {
					capital_scope = {
						kingdom = {
							event_target:hs_targetchar_yl_hero516 = {
								unsafe_war = {
									casus_belli = tribal_invasion
									target = PREVPREV # The top liege of the province owner
									thirdparty_title = PREV # The de jure kingdom
								}
							}
						}
						event_target:hs_targetchar_yl_hero516 = {
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 2500 4000 }									
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1500 2000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 500 1000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
						}
						
					}
					
				}
			}
			k_hs_leazas = {
				holder_scope = {
					capital_scope = {
						kingdom = {
							event_target:hs_targetchar_yl_hero516 = {
								unsafe_war = {
									casus_belli = tribal_invasion
									target = PREVPREV # The top liege of the province owner
									thirdparty_title = PREV # The de jure kingdom
								}
							}
						}
						event_target:hs_targetchar_yl_hero516 = {
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 3500 4000 }									
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1000 1000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1000 1000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
						}
						
					}
					
				}
			}
			k_hs_zeth = {
				holder_scope = {
					capital_scope = {
						kingdom = {
							event_target:hs_targetchar_yl_hero516 = {
								unsafe_war = {
									casus_belli = tribal_invasion
									target = PREVPREV # The top liege of the province owner
									thirdparty_title = PREV # The de jure kingdom
								}
							}
						}
						event_target:hs_targetchar_yl_hero516 = {
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 2500 4000 }		
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1000 1000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1500 2000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
						}
						
					}
					
				}
			}
			k_hs_freecity = {
				holder_scope = {
					capital_scope = {
						kingdom = {
							event_target:hs_targetchar_yl_hero516 = {
								unsafe_war = {
									casus_belli = tribal_invasion
									target = PREVPREV # The top liege of the province owner
									thirdparty_title = PREV # The de jure kingdom
								}
							}
						}
						event_target:hs_targetchar_yl_hero516 = {
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 2500 3000 }		
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1000 1000 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									hs_aliens = { 1000 1500 }
									light_infantry = { 500 1000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
						}
						
					}
					
				}
			}
			any_independent_ruler = {
				limit = {
					NOR = {
						has_landed_title = e_rancecity
						has_landed_title = k_hs_JAPAN_rance
						has_landed_title = k_hs_ALchurch_rance
					}
					num_of_count_titles_in_realm = 20
				}
				capital_scope = {
					kingdom = {
						event_target:hs_targetchar_yl_hero516 = {
							unsafe_war = {
								casus_belli = tribal_invasion
								target = PREVPREV # The top liege of the province owner
								thirdparty_title = PREV # The de jure kingdom
							}
						}
					}
					event_target:hs_targetchar_yl_hero516 = {
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								hs_aliens = { 2500 4000 }
								light_infantry = { 500 1000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}	
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							troops ={
								hs_aliens = { 2500 4000 }
								light_infantry = { 500 1000 }
							}
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}						
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							match_character = PREVPREV
							match_mult = 0.25
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							match_character = PREVPREV
							match_mult = 0.25
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							match_character = PREVPREV
							match_mult = 0.25
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							match_character = PREVPREV
							match_mult = 0.25
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							match_character = PREVPREV
							match_mult = 0.35
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}
						spawn_unit = {
							province = PREV
							home = PREV
							owner = THIS
							match_character = PREVPREV
							match_mult = 0.35
							disband_on_peace = no
							reinforces = yes
							reinforce_rate_multiplier = 0.05
							merge = yes
							attrition = 0
							cannot_inherit = no
							maintenance_multiplier = 0
						}
					}
					
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=10
					diplomacy=13
					intrigue=7
					stewardship=8
					learning = 10
				}
				name="b"
				religion = THIS
				culture = THIS
				dynasty = none
				female = yes
				age = 16
				
				trait = yl_hero517
				trait = hs_renxing
				trait = hs_trait_wukou
				trait = humble
				trait = content
				trait = thrifty_clerk						
			}
			new_character = {				
				hs_shouzhao_effect = yes	
				set_character_flag = no_court_invites			
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=17
					diplomacy=14
					intrigue=11
					stewardship=12
					learning = 13
				}
				name="wYyr"
				religion = PREV
				culture = PREV
				dynasty = random
				female = yes
				age = 16
				
				trait = yl_hero519
				trait = fair
				trait = duelist
				trait = born_in_the_purple
				trait = quick
				trait = chaste
				trait = kind
				trait = proud
				trait = diligent
				trait = stubborn
				trait = unyielding_leader
				trait = hs_bakemono
				trait = mastermind_theologian						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_claim = e_hs_monster_rance
				add_rival = PREV
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_holy_2 duration = -1 } #^y2WTl
				add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				opinion = { modifier = opinion_dishonorable_scum who = PREV } #
				opinion = { modifier = opinion_dishonorable who = PREV } #		
				imprison = PREV
				create_character = {
					random_traits = no
					attributes = {
						martial=17
						diplomacy=8
						intrigue=10
						stewardship=14
						learning = 9
					}
					name="(yrb"
					religion = PREV
					culture = PREV
					dynasty = none
					female = yes
					age = 16
					
					trait = yl_hero518
					trait = hs_trait_aojiao
					trait = hs_bakemono
					trait = stressed
					trait = lustful
					trait = wroth
					trait = impaler
					trait = hs_summoner
					trait = flamboyant_schemer						
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_friend = PREV
					opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_targetchar_rance } #mRRS҉rvK`V			
					add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43 A
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
					add_character_modifier = {
						name = hs_rance_Dark_Lord
						duration = -1
					}
					add_character_modifier = {
						name = hs_relife_modifier
						duration = -1
						hidden = yes
					}
					move_character = event_target:hs_targetchar_rance
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=11
						diplomacy=10
						intrigue=8
						stewardship=10
						learning = 9
					}
					name="^SW"
					religion = PREV
					culture = PREV
					dynasty = 5100368
					female = yes
					age = 16
					
					trait = yl_hero526
					trait = hs_bakemono
					trait = just
					trait = duelist
					trait = diligent
					trait = hs_summoner
					trait = brave
					trait = charitable
					trait = wroth
					trait = chaste
					trait = unyielding_leader
					trait = skilled_tactician						
				}
				new_character = {
					hs_shouzhao_effect = yes
					add_friend = PREV
					#opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
					opinion = { modifier = opinion_dishonorable_scum who = PREVPREV } #
					opinion = { modifier = opinion_dishonorable who = PREVPREV } #	
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #:VS>g #NBuffbN-Nuc%cRs^eueP^Ir
					add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
					add_character_modifier = {
						name = hs_rance_Dark_Lord
						duration = -1
					}
					add_character_modifier = {
						name = hs_relife_modifier
						duration = -1
						hidden = yes
					}
					set_character_flag = no_court_invites
				}
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=20
					diplomacy=10
					intrigue=8
					stewardship=12
					learning = 9
				}
				name="Qnt3t"
				religion = PREV
				culture = PREV
				dynasty = 5100093
				female = yes
				age = 16
				
				trait = yl_hero520
				trait = genius
				trait = depressed
				trait = mystic
				trait = arbitrary
				trait = cynical
				trait = charitable
				trait = proud
				trait = hs_bakemono
				trait = charismatic_negotiator						
			}
			new_character = {
				hs_shouzhao_effect = yes				
				add_character_modifier = { name = hs_magic_black_3 duration = -1 } #ўfTl
				add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_4 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21 A
				add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #uirdc 26 A
				add_character_modifier = { name = hs_sp_abilitity_37  duration = -1 hidden = yes} #|^ydc 37 D
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=13
					diplomacy=8
					intrigue=12
					stewardship=9
					learning = 12
				}
				name="kg"
				religion = PREV
				culture = PREV
				dynasty = none
				female = yes
				age = 16
				
				trait = yl_hero521
				trait = hs_bakemono
				trait = homosexual
				trait = cruel
				trait = impaler
				trait = lustful
				trait = greedy
				trait = slothful
				trait = organizer
				trait = brilliant_strategist						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_friend = PREV
				add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_22  duration = -1 hidden = yes} #T<w 22
				add_character_modifier = { name = hs_sp_abilitity_23  duration = -1 hidden = yes} #ng 23
				add_character_modifier = { name = hs_sp_abilitity_38  duration = -1 hidden = yes} #uTrlS  38 D
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=8
					diplomacy=8
					intrigue=11
					stewardship=7
					learning = 10
				}
				name="tS"
				religion = PREV
				culture = PREV
				dynasty = 5100369
				female = yes
				age = 16
				
				trait = yl_hero523
				trait = hs_bakemono
				trait = kind
				trait = content
				trait = craven
				trait = shy
				trait = naive_appeaser						
			}
			new_character = {
				hs_shouzhao_effect = yes
				#add_lover = PREV
				#opinion = { modifier = opinion_hs_koikokoro who = PREV } #mRRS҉rvK`V
				add_character_modifier = { name = hs_sp_abilitity_31  duration = -1 hidden = yes} #aVzc 31
				add_character_modifier = { name = hs_sp_abilitity_37  duration = -1 hidden = yes} #|^ydc 37 D
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=15
					diplomacy=7
					intrigue=7
					stewardship=8
					learning = 10
				}
				name="jlt"
				religion = PREV
				culture = PREV
				dynasty = 5100370
				female = yes
				age = 16
				
				trait = yl_hero524
				trait = hs_bakemono
				trait = proud
				trait = wroth
				trait = slothful
				trait = aggressive_leader
				trait = brave
				trait = hs_trait_aojiao
				trait = misguided_warrior						
			}
			new_character = {
				add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #4l/Q|wR 1
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
				hs_shouzhao_effect = yes
				create_character = {#R^؞6rk
					random_traits = no historical = yes
					name = " "
					dynasty = THIS 
					culture = THIS
					religion = THIS
					female = yes
					age = 40
				}				
				new_character = {
					save_event_target_as = hs_target_default_mother
				}
				set_mother = event_target:hs_target_default_mother

				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=11
						intrigue=8
						stewardship=8
						learning = 13
					}
					name="Tlt"
					religion = PREV
					culture = PREV
					dynasty = 5100370
					female = yes
					age = 16
					
					trait = yl_hero525
					trait = hs_bakemono
					trait = scholar
					trait = humble
					trait = content
					trait = temperate
					trait = stubborn
					trait = scholarly_theologian						
				}
				new_character = {
					add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #4l/Q|wR 1
					add_character_modifier = {
						name = hs_rance_Dark_Lord
						duration = -1
					}
					add_character_modifier = {
						name = hs_relife_modifier
						duration = -1
						hidden = yes
					}
					opinion = { modifier = opinion_hs_SISTER who = PREV }#DQVYY
					reverse_opinion = {
							who = PREV
							modifier = opinion_hs_SISTER
					}
					set_character_flag = no_court_invites
					add_friend = event_target:hs_targetchar_yl_hero505
					hs_shouzhao_effect = yes
					set_mother = event_target:hs_target_default_mother
					event_target:hs_target_default_mother = {#
						death = {death_reason = death_missing}
					}
				}
			}

			
			create_character = {
				random_traits = no
				attributes = {
					martial=10
					diplomacy=6
					intrigue=14
					stewardship=20
					learning = 15
				}
				name=">m?S"
				religion = PREV
				culture = PREV
				dynasty = none
				female = no
				age = 16
				
				trait = yl_hero527
				trait = hs_bakemono
				trait = genius
				trait = architect
				trait = mystic
				trait = proud
				trait = ambitious
				trait = trickster
				trait = midas_touched						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43 A
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=9
					intrigue=8
					stewardship=10
					learning = 9
				}
				name="RScN"
				religion = PREV
				culture = PREV
				dynasty = none
				female = no
				age = 16
				
				trait = yl_hero522
				trait = hs_bakemono
				trait = strong
				trait = gluttonous
				trait = kind
				trait = temperate
				trait = aggressive_leader
				trait = defensive_leader
				trait = tough_soldier						
			}
			new_character = {
				hs_shouzhao_effect = yes				
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=17
					diplomacy=6
					intrigue=10
					stewardship=8
					learning = 13
				}
				name="aSs|b"
				religion = PREV
				culture = PREV
				dynasty = none
				female = yes
				age = 16
				
				trait = yl_hero528
				trait = hs_bakemono
				trait = fair
				trait = proud
				trait = cynical
				trait = arbitrary
				trait = norse_leader
				trait = intricate_webweaver						
			}
			new_character = {
				hs_shouzhao_effect = yes
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_koikokoro
				}#S҉rmRK`V
				reverse_opinion = {
					who = PREV
					modifier = opinion_loyal_servant
				}#S҉rmRK`V
				set_character_flag = no_court_invites
				opinion = { modifier = opinion_dishonorable_scum who = PREV } #
				opinion = { modifier = opinion_dishonorable who = PREV } #	
				imprison = event_target:hs_targetchar_yl_hero474
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=8
					diplomacy=5
					intrigue=5
					stewardship=3
					learning = 6
				}
				name="O"
				religion = PREV
				culture = PREV
				dynasty = none
				female = no
				age = 16
				
				trait = yl_hero529
				trait = hs_bakemono
				trait = duelist
				trait = robust
				trait = wroth
				trait = aggressive_leader
				trait = brave
				trait = misguided_warrior						
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_4  duration = -1 hidden = yes} #5u/ 4
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = {
					name = hs_rance_Dark_Lord
					duration = -1
				}
				add_character_modifier = {
					name = hs_relife_modifier
					duration = -1
					hidden = yes
				}
				set_character_flag = no_court_invites
			}
		}

	}
}

character_event = { #^z^`aN
	id = ylcharevt.010
	hide_window = yes
	
	only_playable = yes 
	is_triggered_only = yes
	immediate = {
		set_global_flag = hs_huanxiangxiang_build
		primary_title = { save_event_target_as = old_title }
		k_huanxiangxiang = {
			grant_title = ROOT
			make_primary_title = yes
			copy_title_laws = event_target:old_title
			create_character = {
				random_traits = no
				attributes = {
					martial=25
					diplomacy=5
					intrigue=7
					stewardship=8
					learning = 10
				}
				name=""
				religion = ROOT
				culture = yamato
				dynasty = 5100084
				female = yes
				age = 16
				
				trait = yl_tohosub6 
				trait = hs_bakemono
				trait = drunkard
				trait = strong
				trait = slothful
				trait = hedonist
				trait = underhanded_rogue						
			}
			new_character = {
				give_nickname = nick_the_hs93
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_19  duration = -1 hidden = yes} #MO:VS 19
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=20
				diplomacy=10
				intrigue=5
				stewardship=5
				learning = 10
			}
			name="s|N"
			religion = ROOT
			culture = romanian
			dynasty = 5100023
			female = yes
			age = 16
			
			trait = yl_reimi 
			trait = hs_bakemono
			trait = strong
			trait = proud
			trait = cynical
			trait = aggressive_leader
			trait = brilliant_strategist						
		}
		new_character = { 
			give_nickname = nick_the_hs48
			add_age = 484
			#grant_title = c_ulster
			d_hongmoguan = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
			character_event = {id = ylcharevt.012}	
			add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g		
			add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
			add_character_modifier = { name = hs_sp_abilitity_44  duration = -1 hidden = yes} #:VЏ 44
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=15
				diplomacy = 2
				intrigue=10
				stewardship=20
				learning = 10
			}
			name="ɉ"
			religion = ROOT
			culture = yamato
			dynasty = 5100025
			female = yes
			age = 16
			
			trait = yl_satori 
			trait = hs_bakemono
			trait = shrewd
			trait = quick
			trait = administrator
			trait = temperate
			trait = shy
			trait = elusive_shadow						
		}
		new_character = {
			give_nickname = nick_the_hs51
			#grant_title = c_tyrone
			d_dilingdian = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_sp_abilitity_31  duration = -1 hidden = yes} #aVzc 31
			add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
			add_character_modifier = {
				name = zhanlizheng20
				duration = -1 hidden = yes
			}#bReck
			character_event = {id = ylcharevt.013}
			hs_generate_default_mother_effects = yes
			create_character = {
				random_traits = no
				attributes = {
					martial=15
					diplomacy=5
					intrigue=20
					stewardship=5
					learning = 5
				}
				name="K`"
				religion = ROOT
				culture = yamato
				dynasty = 5100025
				female = yes
				age = 16
				
				trait = yl_koishi   
				trait = hs_bakemono
				trait = mystic
				trait = impaler
				trait = elusive_shadow
			}
			new_character = {
				give_nickname = nick_the_hs52
				hs_shouzhao_effect = yes
				save_event_target_as = hs_target_lian
				opinion = { modifier = opinion_hs_SISTER who = PREV }#DQVYY
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_SISTER
				}
				add_character_modifier = {
					name = zhanlizheng30
					duration = -1 hidden = yes
				}#bReck
				add_character_modifier = { name = hs_sp_abilitity_35  duration = -1 hidden = yes} #*Oň 35
				set_mother = event_target:hs_target_default_mother
				event_target:hs_target_default_mother = {#
					death = {death_reason = death_missing}
				}
			}				
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=19
				diplomacy=12
				intrigue=13
				stewardship=11
				learning = 14
			}
			name="Ttl"
			religion = ROOT
			culture = yamato
			dynasty = 5100083
			female = yes
			age = 16
			
			trait = yl_tohosub5  
			trait = robust
			trait = hs_magician
			trait = diligent
			trait = greedy
			trait = just
			trait = underhanded_rogue			
		}
		new_character = { 
			give_nickname = nick_the_hs99
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
			add_character_modifier = { name = hs_sp_abilitity_7  duration = -1 hidden = yes} #IQ 7
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			#grant_title = c_oriel
			d_mahomori = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes				
				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=13
						intrigue=18
						stewardship=16
						learning = 15
					}
					name="1rLNN"
					religion = ROOT
					culture = english
					dynasty = 5100082
					female = yes
					age = 16
					
					trait = yl_tohosub4  
					trait = shrewd
					trait = groomed
					trait = architect
					trait = hs_bakemono
					trait = organizer
					trait = midas_touched					
				}
				new_character = { 
					give_nickname = nick_the_hs100
					hs_shouzhao_effect = yes
					add_friend = PREV
					add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #uirdc 26
					add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43
				}
				
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=25
				diplomacy=20
				intrigue=15
				stewardship=10
				learning = 15
			}
			name="^yHYPR"
			religion = ROOT
			culture = yamato
			dynasty = 5100028
			female = yes
			age = 16
			
			trait = yl_kanako 
			trait = hs_kami
			trait = shrewd
			trait = wroth
			trait = mystic
			trait = ambitious
			trait = deceitful
			trait = elusive_shadow						
		}
		new_character = {
			give_nickname = nick_the_hs54
			#grant_title = c_tyrconnell
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g

			d_shoushishenshe = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
			character_event = {id = ylcharevt.014}	
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=10
				diplomacy=15
				intrigue=5
				stewardship=15
				learning = 22
			}
			name="Y"
			religion = ROOT
			culture = yamato
			dynasty = 5100030
			female = yes
			age = 16
			
			trait = yl_kaguya  
			trait = immortal
			trait = fair
			trait = slothful
			trait = proud
			trait = gamer
			trait = hs_otaku
			trait = scholarly_theologian			
		}
		new_character = { 
			save_event_target_as = hs_target_huiye
			give_nickname = nick_the_hs56
			add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21
			add_character_modifier = {
				name = zhanlizheng40
				duration = -1 hidden = yes
			}#bReck
			#grant_title = c_oriel
			d_yongyuanting = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes	
			add_character_modifier = {
				name = hs_relife_modifier
				duration = -1
			}
			
				create_character = {
					random_traits = no
					attributes = {
						martial=20
						diplomacy=20
						intrigue=20
						stewardship=20
						learning = 20
					}
					name="8l3t"
					religion = ROOT
					culture = yamato
					dynasty = 5100031
					female = yes
					age = 16
					
					trait = yl_yonglin  
					trait = immortal
					trait = physician
					trait = quick
					trait = scholar
					trait = cynical
					trait = midas_touched					
				}
				new_character = { 
					give_nickname = nick_the_hs57
					hs_shouzhao_effect = yes
					add_character_modifier = {
						name = hs_relife_modifier
						duration = -1
					}
					add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
					add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ySKb 40
					add_character_modifier = { name = hs_magic_holy_4 duration = -1 } #^y2WTl
					add_character_modifier = {
						name = zhanlizheng40
						duration = -1 hidden = yes
					}#bReck
					set_character_flag = hs_shenyiflag
					opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_keyiyaku #QYuw
					}
					create_character = {
						random_traits = no
						attributes = {
							martial=14
							diplomacy=10
							intrigue=5
							stewardship=15
							learning = 10
						}
						name="ÔN"
						religion = ROOT
						culture = PREV
						dynasty = 5100032
						female = yes
						age = 16
						
						trait = yl_lingxian 
						trait = hs_bakemono					
						trait = physician
						trait = robust
						trait = humble
						trait = seductress
						trait = tough_soldier						
					}
					new_character = { 
						give_nickname = nick_the_hs58
						hs_shouzhao_effect = yes
						opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
						add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
						add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ygKb 40
					}
				}
				
				create_character = {
					random_traits = no
					attributes = {
						martial=11
						diplomacy=14
						intrigue=22
						stewardship=15
						learning = 16
					}
					name="^"
					religion = ROOT
					culture = yamato
					dynasty = 5100087
					female = yes
					age = 16
					
					trait = yl_tohosub9 
					trait = hs_bakemono					
					trait = shrewd
					trait = mystic
					trait = schemer
					trait = deceitful
					trait = trickster
					trait = elusive_shadow						
				}
				new_character = { 
					give_nickname = nick_the_hs94
					hs_shouzhao_effect = yes	
					add_character_modifier = { name = hs_sp_abilitity_44  duration = -1 hidden = yes} #:VЏ 44
				}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=20
				diplomacy=15
				intrigue=5
				stewardship=15
				learning = 20
			}
			name="^^PR"
			religion = ROOT
			culture = yamato
			dynasty = 5100033
			female = yes
			age = 16
			
			trait = yl_uuz  
			trait = hs_bakemono
			trait = fair
			trait = gluttonous
			trait = architect
			trait = shrewd
			trait = scholarly_theologian						
		}
		new_character = { 
		give_nickname = nick_the_hs59
			#grant_title = c_breifne
			d_baiyulou = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}
			save_event_target_as = hs_target_yl_uuz
			set_defacto_liege = ROOT
			add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_black_2 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = {
				name = zhanlizheng50
				duration = -1 hidden = yes
			}#bReck
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=20
						diplomacy=10
						intrigue=5
						stewardship=15
						learning = 10
					}
					name="Yh"
					religion = ROOT
					culture = yamato
					dynasty = 5100034
					female = yes
					age = 16
					immortal_age = 16
					trait = yl_yaomeng  
					trait = robust
					trait = diligent
					trait = gardener
					trait = defensive_leader
					trait = tough_soldier						
				}
				new_character = { 
					add_artifact = bj_bailou
					add_artifact = bj_louguan
					give_nickname = nick_the_hs60
					hs_shouzhao_effect = yes	
					opinion = {	modifier = opinion_loyal_servant who = event_target:hs_target_yl_uuz }
					opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_keyiyaku #QYuw
					}

					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_18  duration = -1 hidden = yes} #R 18
					add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
				}		
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=3
				diplomacy=13
				intrigue=8
				stewardship=12
				learning = 22
			}
			name="?Bl"
			religion = ROOT
			culture = yamato
			dynasty = 5100096
			female = yes
			age = 16
			
			trait = yl_tohosub12  			
			trait = weak
			trait = scholar
			trait = administrator
			trait = charitable
			trait = mastermind_theologian						
		}
		new_character = { 
			add_artifact = bj_tohoMemento 			
			give_nickname = nick_the_hs103
			#grant_title = c_breifne
			d_HumanVillage = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}			
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=4
						diplomacy=12
						intrigue=6
						stewardship=11
						learning = 17
					}
					name="SÔ"
					religion = ROOT
					culture = yamato
					dynasty = 5100097
					female = yes
					age = 16
					
					trait = yl_tohosub13  
					trait = scholar
					trait = diligent
					trait = greedy
					trait = zealous
					trait = charismatic_negotiator						
				}
				new_character = { 
					give_nickname = nick_the_hs104
					hs_shouzhao_effect = yes	
					add_friend = PREV
				}	
				create_character = {
					random_traits = no
					attributes = {
						martial=18
						diplomacy=5
						intrigue=16
						stewardship=10
						learning = 14
					}
					name="Yu"
					religion = ROOT
					culture = yamato
					dynasty = 5100085
					female = yes
					age = 16
					
					trait = yl_tohosub7  
					trait = immortal
					trait = robust					
					trait = mystic
					trait = wroth
					trait = just
					trait = aggressive_leader
					trait = intricate_webweaver						
				}
				new_character = { 
					add_character_modifier = {
						name = hs_relife_modifier
						duration = -1
					}
					add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #kp|wR 2
					add_rival = event_target:hs_target_huiye
					give_nickname = nick_the_hs105
					hs_shouzhao_effect = yes	
					save_event_target_as = hs_target_yl_meihong
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=16
						diplomacy=15
						intrigue=7
						stewardship=14
						learning = 19
					}
					name="ga"
					religion = ROOT
					culture = yamato
					dynasty = 5100086
					female = yes
					age = 16
					
					trait = yl_tohosub8  
					trait = hs_bakemono
					trait = robust
					trait = scholar
					trait = wroth
					trait = trusting
					trait = kind
					trait = martial_cleric						
				}
				new_character = { 
					give_nickname = nick_the_hs106
					hs_shouzhao_effect = yes	
					add_friend = event_target:hs_target_yl_meihong
					add_friend = PREV
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				}				
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=19
				diplomacy=5
				intrigue=5
				stewardship=7
				learning = 12
			}
			name=")YPR"
			religion = ROOT
			culture = yamato
			dynasty = 5100035 
			female = yes
			age = 16
			
			trait = yl_tianzi  
			trait = hs_kami
			trait = shrewd
			trait = arbitrary
			trait = proud
			trait = greedy
			trait = cynical
			trait = master_of_flame
			trait = intricate_webweaver						
		}
		new_character = { 
			add_artifact = bj_feixiang
			give_nickname = nick_the_hs107
			#grant_title = c_breifne
			add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_8  duration = -1 hidden = yes} #0W 8
			d_youdingtian = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}			
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=14
						diplomacy=20
						intrigue=7
						stewardship=12
						learning = 11
					}
					name="cs"
					religion = ROOT
					culture = yamato
					dynasty = 5100098
					female = yes
					age = 16
					
					trait = yl_tohosub14  
					trait = hs_bakemono
					trait = diligent
					trait = socializer
					trait = gregarious
					trait = grey_eminence						
				}
				new_character = { 
				give_nickname = nick_the_hs108
					hs_shouzhao_effect = yes	
					#add_friend = PREV
					add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_sp_abilitity_4  duration = -1 hidden = yes} #5u 4
				}	
							
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=25
				diplomacy=5
				intrigue=21
				stewardship=5
				learning = 20
			}
			name="+t"
			religion = ROOT
			culture = yamato
			dynasty = 5100099
			female = yes
			age = 17
			
			trait = yl_tohosub15  
			trait = hs_bakemono
			trait = quick
			trait = mystic
			trait = slothful
			trait = deceitful
			trait = trickster
			trait = elusive_shadow						
		}
		new_character = { 
			add_friend = event_target:hs_target_yl_uuz
			give_nickname = nick_the_hs109
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21
			add_character_modifier = { name = hs_sp_abilitity_16  duration = -1 hidden = yes} #wyR 16
			add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #܏zcg 30

			#grant_title = c_breifne
			d_MITUZHIJIA = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}			
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=15
						intrigue=6
						stewardship=22
						learning = 14
					}
					name="݄"
					religion = ROOT
					culture = yamato
					dynasty = 5100099
					female = yes
					age = 16
					
					trait = yl_tohosub16					
					trait = shrewd
					trait = hs_bakemono
					trait = diligent
					trait = administrator
					trait = kind
					trait = fortune_builder						
				}
				new_character = { 
					give_nickname = nick_the_hs110
					hs_shouzhao_effect = yes	
					set_mother = PREV
					save_event_target_as = hs_target_yl_lan
					opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_keyiyaku #QYuw
					}
					add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21

					create_character = {
						random_traits = no
						attributes = {
							martial=12
							diplomacy=6
							intrigue=7
							stewardship=7
							learning = 5
						}
						name="Yj"
						religion = ROOT
						culture = yamato
						dynasty = none
						female = yes
						age = 10
						immortal_age = 16
						trait = yl_tohosub17  
						trait = hs_bakemono
						trait = sturdy						
					}
					new_character = { 
						give_nickname = nick_the_hs111
						hs_shouzhao_effect = yes	
						set_character_flag = hs_has_immortal_age
						set_mother = event_target:hs_target_yl_lan
						opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
						reverse_opinion = {
							who = PREV
							modifier = opinion_hs_keyiyaku #QYuw
						}
						add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					}
				}	
				
							
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=17
				diplomacy=19
				intrigue=16
				stewardship=10
				learning = 14
			}
			name="e"
			religion = ROOT
			culture = yamato
			dynasty = 5100100
			female = yes
			age = 16
			
			trait = yl_tohosub18  
			trait = hs_bakemono
			trait = strong
			trait = shrewd
			trait = patient
			trait = deceitful			
			trait = elusive_shadow						
		}
		new_character = { 
			add_trait = levy_coordinator
			give_nickname = nick_the_hs112
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
			add_character_modifier = { name = hs_sp_abilitity_18  duration = -1 hidden = yes} #R 18
			#grant_title = c_breifne
			d_yaoguaishan = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}			
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=13
						diplomacy=6
						intrigue=5
						stewardship=10
						learning = 9
					}
					name="Momiji"
					religion = ROOT
					culture = yamato
					dynasty = 5100101
					female = yes
					age = 16
					
					trait = yl_tohosub19  
					trait = robust
					trait = hs_bakemono
					trait = hunter
					trait = logistics_expert
					trait = temperate
					trait = tough_soldier						
				}
				new_character = { 
					give_nickname = nick_the_hs113
					hs_shouzhao_effect = yes	
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g

				}	
				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=10
						intrigue=13
						stewardship=12
						learning = 12
					}
					name="g"
					religion = ROOT
					culture = yamato
					dynasty = 5100102
					female = yes
					age = 16
					
					trait = yl_tohosub20  
					trait = hs_bakemono
					trait = shrewd
					trait = paranoid
					trait = levy_coordinator
					trait = intricate_webweaver						
				}
				new_character = { 
					give_nickname = nick_the_hs114
					hs_shouzhao_effect = yes	
					add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #܏zcg 30
					add_character_modifier = {
						name = zhanlizheng20
						duration = -1 hidden = yes
					}#bReck
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=10
						diplomacy=12
						intrigue=15
						stewardship=19
						learning = 14
					}
					name="wS"
					religion = ROOT
					culture = yamato
					dynasty = 5100103
					female = yes
					age = 16
					
					trait = yl_tohosub21  
					trait = hs_bakemono
					trait = architect
					trait = zealous
					trait = stubborn
					trait = midas_touched						
				}
				new_character = { 
					give_nickname = nick_the_hs115
					hs_shouzhao_effect = yes	
					#add_friend = PREV
					add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43
					add_character_modifier = {
						name = zhanlizheng30
						duration = -1 hidden = yes
					}#bReck
				}				
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=18
				diplomacy=22
				intrigue=12
				stewardship=10
				learning = 18
			}
			name="^yPR"
			religion = taoist
			culture = yamato
			dynasty = 5100104
			female = yes
			age = 16
			
			trait = yl_tohosub22  
			trait = hs_kami
			trait = quick
			trait = socializer
			trait = patient
			trait = erudite
			trait = grey_eminence						
		}
		new_character = { 
			give_nickname = nick_the_hs116
			#grant_title = c_breifne
			add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g

			d_mengdiansimiao = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}			
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=20
						diplomacy=10
						intrigue=5
						stewardship=15
						learning = 10
					}
					name="^"
					religion = taoist
					culture = yamato
					dynasty = 5100105
					female = yes
					age = 16
					
					trait = yl_tohosub23  
					trait = hs_bakemono
					trait = zealous
					trait = honest
					trait = detached_priest						
				}
				new_character = { 
					give_nickname = nick_the_hs117
					hs_shouzhao_effect = yes	
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				}	
				create_character = {
					random_traits = no
					attributes = {
						martial=14
						diplomacy=12
						intrigue=17
						stewardship=12
						learning = 16
					}
					name="R%Z"
					religion = taoist
					culture = han
					dynasty = 5100106
					female = yes
					age = 16
					
					trait = yl_tohosub24  
					trait = hs_bakemono
					trait = shrewd
					trait = cynical
					trait = patient
					trait = scholarly_theologian						
				}
				new_character = { 
					give_nickname = nick_the_hs118
					hs_shouzhao_effect = yes	
					add_friend = PREV
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #uirdc 26
					create_character = {
						random_traits = no
						attributes = {
							martial=13
							diplomacy=3
							intrigue=3
							stewardship=3
							learning = 3
						}
						name=""
						religion = taoist
						culture = yamato
						dynasty = 5100108
						female = yes
						age = 16
						
						trait = yl_tohosub26  
						trait = gladiator
						trait = strong
						trait = slow
						trait = hs_bakemono
						trait = misguided_warrior						
					}
					new_character = { 
						give_nickname = nick_the_hs120
						hs_shouzhao_effect = yes	
						#add_friend = PREV
						opinion = { modifier = opinion_loyal_servant who = PREV } #QYuw
						opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
						reverse_opinion = {
							who = PREV
							modifier = opinion_hs_keyiyaku #QYuw
						}
					}
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=10
						intrigue=5
						stewardship=15
						learning = 10
					}
					name="`SS"
					religion = taoist
					culture = yamato
					dynasty = 5100107
					female = yes
					age = 16
					
					trait = yl_tohosub25  
					trait = hs_bakemono
					trait = temperate
					trait = tough_soldier						
				}
				new_character = { 
					give_nickname = nick_the_hs119
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_4  duration = -1 hidden = yes} #5u 4
					#add_friend = PREV
				}
				
				create_character = {
					random_traits = no
					attributes = {
						martial=15
						diplomacy=4
						intrigue=5
						stewardship=7
						learning = 12
					}
					name="V"					
					religion = taoist
					culture = yamato
					dynasty = 5100109
					female = yes
					age = 16
					
					trait = yl_tohosub27  
					trait = hs_bakemono
					trait = humble
					trait = mystic
					trait = fair
					trait = hs_trait_wukou
					trait = naive_appeaser						
				}
				new_character = { 
					give_nickname = nick_the_hs121
					hs_shouzhao_effect = yes	
					add_friend = event_target:hs_target_lian
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				}				
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=20
				diplomacy=14
				intrigue=9
				stewardship=14
				learning = 20
			}
			name="v"
			religion = buddhist
			culture = yamato
			dynasty = 5100140
			female = yes
			age = 16
			
			trait = yl_hero127  
			trait = hs_bakemono
			trait = strong
			#trait = bhikkhuni
			trait = scholar
			trait = administrator
			trait = cavalry_leader
			trait = mastermind_theologian						
		}
		new_character = { 
			give_nickname = nick_the_hs143
			#grant_title = c_breifne
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_magic_enhance_4 duration = -1 } #:VS>g
			
			#add_trait = bhikkhuni
			d_mingliansi = {
				grant_title = PREV
				make_primary_title = yes
				copy_title_laws = event_target:old_title
				de_jure_liege = k_huanxiangxiang
			}			
			set_defacto_liege = ROOT
			hs_shouzhao_effect = yes
				create_character = {
					random_traits = no
					attributes = {
						martial=13
						diplomacy=12
						intrigue=8
						stewardship=16
						learning = 12
					}
					name="ZyQs"
					religion = buddhist
					culture = yamato
					dynasty = none
					female = yes
					age = 16
					
					trait = yl_hero128  
					trait = hs_bakemono
					trait = diligent
					trait = trickster
					trait = fortune_builder						
				}
				new_character = { 
					give_nickname = nick_the_hs144
					hs_shouzhao_effect = yes	
					add_character_modifier = {
						name = zhanlizheng20
						duration = -1
						hidden = yes
					}
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #܏zcg 30
				}	
				create_character = {
					random_traits = no
					attributes = {
						martial=14
						diplomacy=10
						intrigue=8
						stewardship=18
						learning = 15
					}
					name="f"
					religion = buddhist
					culture = sindhi
					dynasty = 5100141
					female = yes
					age = 16
					
					trait = yl_hero129  
					trait = hs_bakemono
					trait = robust
					trait = bhikkhuni
					trait = humble
					trait = trusting
					trait = midas_touched						
				}
				new_character = { 
				give_nickname = nick_the_hs145
					hs_shouzhao_effect = yes	
					add_character_modifier = {
						name = zhanlizheng30
						duration = -1
						hidden = yes
					}
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=11
						diplomacy=6
						intrigue=3
						stewardship=7
						learning = 4
					}
					name="TPR"
					religion = buddhist
					culture = yamato
					dynasty = 5100142
					female = yes
					age = 16
					
					trait = yl_hero130  
					trait = hs_bakemono
					trait = gardener
					trait = kind
					trait = thrifty_clerk						
				}
				new_character = { 
					give_nickname = nick_the_hs146
					hs_shouzhao_effect = yes	
					#add_friend = PREV
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=13
						diplomacy=9
						intrigue=1
						stewardship=7
						learning = 5
					}
					name="SO"
					religion = buddhist
					culture = yamato
					dynasty = 5100143
					female = yes
					age = 16
					
					trait = yl_hero131  
					trait = mystic
					trait = kind
					trait = honest
					trait = hs_bakemono
					trait = amateurish_plotter						
				}
				new_character = { 
					give_nickname = nick_the_hs147
					hs_shouzhao_effect = yes
					add_character_modifier = { name = hs_magic_black_1 duration = -1 } #ўfTl
					add_character_modifier = { name = hs_sp_abilitity_39  duration = -1 hidden = yes} #ŋTflag 39
					#add_friend = PREV
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=16
						diplomacy=5
						intrigue=3
						stewardship=10
						learning = 11
					}
					name="Nn"					
					religion = buddhist
					culture = yamato
					dynasty = 5100144
					female = yes
					age = 16
					
					trait = yl_hero132  
					trait = hs_bakemono
					trait = bhikkhuni
					trait = robust
					trait = mystic
					trait = gladiator
					trait = cynical
					trait = naive_appeaser						
				}
				new_character = { 
					give_nickname = nick_the_hs148
					hs_shouzhao_effect = yes	
					add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					#add_friend = event_target:hs_target_lian
				}
				create_character = {
					random_traits = no
					attributes = {
						martial=13
						diplomacy=6
						intrigue=6
						stewardship=12
						learning = 10
					}
					name="4l"					
					religion = buddhist
					culture = yamato
					dynasty = 5100145
					female = yes
					age = 16
					
					trait = yl_hero133  
					trait = hs_bakemono
					trait = administrator
					trait = sea_queen
					trait = thrifty_clerk						
				}
				new_character = { 
					give_nickname = nick_the_hs149
					hs_shouzhao_effect = yes	
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
					#add_friend = event_target:hs_target_lian
				}	
				create_character = {
					random_traits = no
					attributes = {
						martial=17
						diplomacy=2
						intrigue=12
						stewardship=4
						learning = 11
					}
					name="Nue"					
					religion = ROOT
					culture = yamato
					dynasty = 5100146
					female = yes
					age = 16
					
					trait = yl_hero134  
					trait = hs_bakemono
					trait = shrewd
					trait = mystic
					trait = hs_trait_zhonger
					trait = proud
					trait = ambitious
					trait = elusive_shadow						
				}
				new_character = { 
					give_nickname = nick_the_hs150
					hs_shouzhao_effect = yes
					add_character_modifier = {
						name = zhanlizheng20
						duration = -1
						hidden = yes
					}				
					add_character_modifier = { name = hs_sp_abilitity_35  duration = -1 hidden = yes} #*Oň 35
					add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g	
					#add_friend = event_target:hs_target_lian
				}
		}
	}
	after = {
		any_player = { narrative_event = {id = ylcharevt.011} }
	}
	
}
narrative_event = {#^`aN^z
	id = ylcharevt.011
	desc = EVTDESC_hs_huanxx
	picture = GFX_evt_hs_huanxx
	title = hs_huanxx_title
	is_triggered_only = yes 
	immediate = {
		#set_global_flag = hs_huanxiangxiang_build
	}
	option = {
		name = EVTOPT_huanxx011
	}
}
character_event = { #uT
	id = ylcharevt.012
	hide_window = yes
	is_triggered_only = yes 
	
	immediate = {
		hs_generate_default_mother_effects = yes
		create_character = {
			random_traits = no
			attributes = {
				martial=25
				diplomacy=5
				intrigue=5
				stewardship=5
				learning = 7
			}
			name="pQ5g2"
			religion = ROOT
			culture = ROOT
			dynasty = 5100023
			female = yes
			age = 495
			immortal_age = 16
			trait = yl_fulan  
			trait = hs_bakemono
			trait = robust
			trait = hs_otaku
			trait = stubborn
			trait = wroth
			trait = impaler
			trait = misguided_warrior
		}
		new_character = {
			give_nickname = nick_the_hs49
			set_character_flag = hs_has_immortal_age
			#add_age = 479
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_SISTER who = ROOT }#DQVYY
			reverse_opinion = {
					who = ROOT
					modifier = opinion_hs_SISTER
			}
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_36  duration = -1 hidden = yes} #R>g 36
			add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
			set_mother = event_target:hs_target_default_mother
			event_target:hs_target_default_mother = {#
				death = {death_reason = death_missing}
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=15
				diplomacy=20
				intrigue=10
				stewardship=20
				learning = 15
			}
			name="TY"
			religion = ROOT
			culture = yamato
			dynasty = 5100024
			female = yes
			age = 16
			
			trait = yl_sakuya   
			trait = shrewd
			trait = gardener
			trait = hs_maid
			trait = hs_magician
			trait = administrator
			trait = zealous
			trait = organizer
			trait = fortune_builder
		}
		new_character = {
			give_nickname = nick_the_hs50
			hs_shouzhao_effect = yes
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_14  duration = -1 hidden = yes} #ekPbk 14
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=7
				diplomacy=10
				intrigue=12
				stewardship=18
				learning = 20
			}
			name="^y"
			religion = ROOT
			culture = ROOT
			dynasty = 5100080
			female = yes
			age = 16
			
			trait = yl_tohosub1   
			trait = shrewd
			trait = quick
			trait = hs_otaku
			trait = weak
			trait = hs_bakemono
			trait = scholar
			trait = mastermind_theologian
		}
		new_character = {
			give_nickname = nick_the_hs95
			add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #4l|wR 1
			add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #kp|wR 2
			add_character_modifier = { name = hs_sp_abilitity_5  duration = -1 hidden = yes} #(g 5
			add_character_modifier = { name = hs_sp_abilitity_6  duration = -1 hidden = yes} #f 6
			add_character_modifier = { name = hs_sp_abilitity_7  duration = -1 hidden = yes} #IQ 7
			add_character_modifier = { name = hs_sp_abilitity_8  duration = -1 hidden = yes} #0W 8
			hs_shouzhao_effect = yes
			add_friend = ROOT
			create_character = {
				random_traits = no
				attributes = {
					martial=15
					diplomacy=12
					intrigue=7
					stewardship=16
					learning = 14
				}
				name="Sv`T"
				religion = ROOT
				culture = ROOT
				dynasty = none
				female = yes
				age = 16
				
				trait = yl_tohosub3   
				trait = humble
				trait = patient
				trait = organizer
				trait = hs_bakemono
				trait = administrator
				trait = thrifty_clerk
			}
			new_character = {
				#give_nickname = nick_the_hs97
				hs_shouzhao_effect = yes
				opinion = {	modifier = opinion_loyal_servant who = PREV }
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			}
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=15
				diplomacy=9
				intrigue=5
				stewardship=7
				learning = 6
			}
			name="Ô"
			religion = ROOT
			culture = han
			dynasty = 5100081
			female = yes
			age = 16
			
			trait = yl_tohosub2   
			trait = robust
			trait = humble
			trait = slothful
			trait = hs_bakemono
			trait = content
			trait = misguided_warrior
		}
		new_character = {
			give_nickname = nick_the_hs96
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_19  duration = -1 hidden = yes} #MO:VS 19
		}
		
	}
	
}
character_event = { #0Wupk
	id = ylcharevt.013
	hide_window = yes
	is_triggered_only = yes 
	
	immediate = {
		
		create_character = {
			random_traits = no
			attributes = {
				martial=12
				diplomacy=5
				intrigue=17
				stewardship=15
				learning = 7
			}
			name="Rin"
			religion = ROOT
			culture = yamato
			dynasty = 5100088
			female = yes
			age = 16
			
			trait = yl_tohosub10   
			trait = hs_bakemono
			trait = gardener
			trait = patient
			trait = thrifty_clerk
		}
		new_character = {
			give_nickname = nick_the_hs97
			hs_shouzhao_effect = yes
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
			add_character_modifier = { name = hs_magic_black_2 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_sp_abilitity_24  duration = -1 hidden = yes} #uuk>g 24
			add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #uirdc 26
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=22
				diplomacy=3
				intrigue=2
				stewardship=3
				learning = 2
			}
			name="zz"
			religion = ROOT
			culture = yamato
			dynasty = 5100089
			female = yes
			age = 16
			
			trait = yl_tohosub11   
			trait = hs_bakemono
			trait = robust
			trait = wroth
			trait = brave
			trait = berserker
			trait = misguided_warrior
		}
		new_character = {
			give_nickname = nick_the_hs98
			hs_shouzhao_effect = yes
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
			add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
		}
		
	}
	
}
character_event = { #Rw
	id = ylcharevt.014
	hide_window = yes
	is_triggered_only = yes 
	
	immediate = {
		create_character = {
			random_traits = no
			attributes = {
				martial=25
				diplomacy=15
				intrigue=5
				stewardship=5
				learning = 20
			}
			name="PR"
			religion = ROOT
			culture = yamato
			dynasty = 5100026
			female = yes
			age = 16
			
			trait = yl_suwako   
			trait = hs_kami
			trait = gardener
			trait = zealous
			trait = mastermind_theologian
		}
		new_character = {
			give_nickname = nick_the_hs53
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_sp_abilitity_8  duration = -1 hidden = yes} #0W 8
			add_character_modifier = { name = hs_sp_abilitity_34  duration = -1 hidden = yes} #R/>g 34
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
		}
		create_character = {
			random_traits = no
			attributes = {
				martial=10
				diplomacy=20
				intrigue=10
				stewardship=20
				learning = 15
			}
			name="eׂ"
			religion = ROOT
			culture = yamato
			dynasty = 5100027
			female = yes
			age = 16
			
			trait = yl_sanae    
			trait = erudite
			trait = hs_magician
			trait = hs_miko
			trait = fair
			trait = administrator
			trait = zealous
			trait = mastermind_theologian
		}
		new_character = {
			give_nickname = nick_the_hs55
			hs_shouzhao_effect = yes
			set_character_flag = hs_shenyiflag
			add_character_modifier = { name = hs_magic_holy_1 duration = -1 } #^y2WTl
			add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13
			add_character_modifier = { name = hs_sp_abilitity_44  duration = -1 hidden = yes} #:VЏ 44
		}
	}
	
}
#############################################################################################
character_event = { #svtvXL
	id = ylcharevt.020
	desc = "EVTDESC_hs_gabari01"
	picture = "GFX_evt_gabari01"
	only_playable  = yes
	ai = no
	min_age = 16
	religion_group = christian
	trigger = {
		is_inaccessible_trigger = no
		NOR = {
			trait = lustful
			trait = proud
			trait = envious
			trait = wroth
			trait = slothful
			trait = greedy
			trait = gluttonous
			trait = possessed
			trait = cynical
		}
		NOT = { has_global_flag = hs_Gabriel }
	}
	mean_time_to_happen = {
		years = 300
		modifier = {
				factor = 0.8
				trait = humble
		}
		modifier = {
				factor = 0.8
				trait = chaste
		}
		modifier = {
				factor = 0.8
				trait = kind
		}
		modifier = {
				factor = 0.8
				trait = patient
		}
		modifier = {
				factor = 0.8
				trait = diligent
		}
		modifier = {
				factor = 0.8
				trait = charitable
		}
		modifier = {
				factor = 0.8
				trait = temperate
		}
		modifier = {
				factor = 0.8
				piety = 500
		}
		modifier = {
				factor = 0.8
				piety = 1000
		}
		modifier = {
				factor = 0.8
				piety = 2000
		}
	}
	option = {
		name = EVTOPTA_hsgbr01
		hidden_tooltip = { 
			ROOT = {
				character_event = { id = ylcharevt.021 years = 3 } 
			}
		}
	}
	option = {
		trigger  = {
			OR = {
				piety = 500
				trait = charitable
				trait = kind
				trait = zealous
			}
		}
		name = EVTOPTB_hsgbr01
		scaled_wealth = {
			value = -1.5
			min = -400
			max = -1000
		} 
		hidden_tooltip = { 
			ROOT = {
				character_event = { id = ylcharevt.022 years = 3 } 
			}
		}
	}
	option = {
		trigger  = {
			OR = {
				any_courtier_or_vassal = {
					any_artifact = {
						OR = {
							artifact_type = bj_PFP 
							artifact_type = bj_comic
						}
						#is_artifact_active = yes
					}					
				}
				any_artifact = {
					OR = {
						artifact_type = bj_PFP 
						artifact_type = bj_comic
					}
					#is_artifact_active = yes
				}
			}
		}
		name = EVTOPTC_hsgbr01
		hidden_tooltip = { 
			ROOT = {
				character_event = { id = ylcharevt.023 years = 1 } 
			}
		}
	}
	option = {
		name = EVTOPTD_hsgbr01
		piety = -5
	}
	after = {set_global_flag = hs_Gabriel}
}
character_event = { #svtvXL
	id = ylcharevt.021
	desc = "EVTDESC_hs_gabari02"
	picture = "GFX_evt_gabari01"
	only_playable  = yes
	ai = no
	is_triggered_only = yes
	#religion_group = christian
	option = {
		name = EVTOPT_hsgbr02
		piety = 300
		remove_disease_trait_effect = yes
		hs_remove_is_maimed_trait_effect = yes
		remove_treatment_modifiers_effect = yes
	}
}
character_event = { #svtvXL
	id = ylcharevt.022
	desc = "EVTDESC_hs_gabari03"
	picture = "GFX_evt_gabari01"
	only_playable  = yes
	ai = no
	is_triggered_only = yes
	#religion_group = christian
	option = {
		trigger = {
			age= 45
			NOT = {
				trait = immortal
				trait = hs_bakemono
				trait = hs_kami
			}
		}
		name = EVTOPTA_hsgbr03
		hidden_tooltip = {
			while = {
				limit = {
					age =20 
				}    
				add_age = -1
			}
		}
	}
	option = {
		name = EVTOPTAB_hsgbr03
		add_character_modifier = {
			name = military_jesus 
			duration = -1
		}
	}
	option = {
		trigger = {
			OR = {
				is_ill = yes
				hs_is_injured_trigger = yes
			}
		}
		name = EVTOPTC_hsgbr03
		hidden_tooltip = {
			remove_disease_trait_effect = yes
			hs_remove_is_maimed_trait_effect = yes
			remove_treatment_modifiers_effect = yes
		}
	}
	option = {
		name = EVTOPTD_hsgbr03
		hidden_tooltip = {piety = 2000}
	}
}
character_event = { #svtvXL
	id = ylcharevt.023
	desc = "EVTDESC_hs_gabari04"
	picture = "GFX_evt_gabari01"
	only_playable  = yes
	ai = no
	is_triggered_only = yes
	#religion_group = christian
	option = {
		name = EVTOPTA_hsgbr04
		remove_trait = zealous
		piety = -500
		character_event = { id = ylcharevt.024 days = 30 }
			create_character = {
				random_traits = no
				attributes = {
					martial=15
					diplomacy=10
					intrigue=5
					stewardship=5
					learning = 45
				}
				name="svt"
				religion = ROOT
				culture = ROOT
				dynasty = 5000042 
				female = yes
				age = 16
				
				trait = yl_gabriel  
				trait = hs_kami				
				trait = gamer
				trait = hs_otaku
				trait = genius
				trait = slothful 
				trait = greedy
				trait = cynical
				trait = detached_priest
					
			}
			new_character = {
				hs_shouzhao_effect = yes
				give_nickname = nick_the_hs85
				set_character_flag = hs_doctor
				add_artifact = gjallarhorn
				add_character_modifier = { name = hs_magic_holy_4 duration = -1 } #^y2WTl
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				add_character_modifier = { name = hs_sp_abilitity_12  duration = -1 hidden = yes} #^y2Wlyy  12
				add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13
				add_character_modifier = { name = hs_sp_abilitity_16  duration = -1 hidden = yes} #wyR 16
			}
	}
	option = {
		name = EVTOPTB_hsgbr04
		piety = 100
		add_trait = zealous
		character_event = { id = ylcharevt.025 days = 30 }
	}
}
character_event = { #svtvXL
	id = ylcharevt.024
	desc = "EVTDESC_hs_gabari05"
	picture = "GFX_evt_gabari02"
	only_playable  = yes
	ai = no
	is_triggered_only = yes
	option = {
		name = EVTOPT_hsgbr05
		health = 2
		change_learning = 10
	}
}
character_event = { #svtvXL
	id = ylcharevt.025
	desc = "EVTDESC_hs_gabari06"
	picture = "GFX_evt_gabari02"
	only_playable  = yes
	ai = no
	is_triggered_only = yes
	option = {
		name = EVTOPT_hsgbr06
		add_character_modifier = {
			name = speaking_in_tounges
			duration = -1
		}
	}
}
#####################################################################################
character_event = {
	id = ylcharevt.030
	hide_window = yes
	ai = no
	only_rulers = yes
	only_independent = yes
	prisoner = no
	min_age = 16
	religion_group = christian
	has_dlc = "Sons of Abraham"
	war = yes
	
	trigger = {
		NOR = {
			religion = cathar
			religion = messalian
		}
		year = 1000
		OR = {
			tier = emperor
			tier = king
		}
		is_republic = no
		is_priest = no
		
		primary_title = {
			culture = ROOT
		}
		NOT = { has_global_flag = jeanne_darc_spawned }
	}
	
	mean_time_to_happen = {
		months = 1500
	}
	immediate = {
		set_global_flag = jeanne_darc_spawned
		create_character = {
			random_traits = no
			dynasty = NONE
			religion = ROOT
			culture = frankish 
			female = yes
			age = 16
			name="V"
			trait = zealous
			trait = celibate
			trait = chaste
			trait = honest
			trait = brave
			trait = trusting
			trait = brilliant_strategist
			trait = inspiring_leader
			trait = aggressive_leader
			attributes = {
				diplomacy = 15
				martial = 25
				stewardship = 10
				intrigue = 5
				learning = 10
			}
			historical = yes
		}
		new_character = {
			give_nickname = nick_darc
			set_character_flag = is_jeanne_darc
			add_character_modifier = { name = hs_magic_holy_1 duration = -1 } #^y2WTl
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g		
			add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #:VS>g
			add_character_modifier = {
				name = voice_of_jesus
				duration = -1
			}
			add_character_modifier = {
				name = jd_strategist
				duration = -1
			}
			random_list = {
				1 = {add_trait = yl_jeanne}
				1 = {add_trait = yl_jeanne2}
				1 = {add_trait = yl_jeanne3}
				1 = {add_trait = yl_hero214}
			}
			hs_shouzhao_effect = yes
			opinion = {
				modifier = opinion_loyal_servant
				who = ROOT
				years = 100
			}
			character_event = { id = SoA.5351 }
		}
	}
}
character_event = {
	id = ylcharevt.031
	hide_window = yes
	has_character_flag = is_jeanne_darc
	
	trigger = {
		NOR = {
			trait = chaste
			trait = humble
			trait = kind
			trait = patient
			trait = diligent
			trait = charitable
			trait = temperate
		}
		OR = {			
			trait = lustful
			trait = proud
			trait = envious
			trait = wroth
			trait = slothful
			trait = greedy
			trait = gluttonous
			trait = possessed
			prisoner = yes
		}
		OR = {
			trait = stressed
			trait = depressed
			trait = lunatic
			prisoner = yes
		}
	}
	
	mean_time_to_happen = {
		months = 3
	}
	immediate = {
		clr_character_flag = is_jeanne_darc
		remove_trait = yl_jeanne
		remove_trait = yl_jeanne2
		remove_trait = yl_jeanne3
		remove_trait = yl_hero214
		remove_trait = yl_jeanne2_huajia
		remove_trait = yl_jeanne3_huajia
		remove_trait = yl_hero214_huajia
		remove_trait = yl_jeanne_huajia
		remove_trait = hs_huajiatriggered 		
		random_list = {
			1 = {add_trait = yl_jeanne_d}
			1 = {add_trait = yl_jeanne2_d}
		} 
		hs_remove_is_maimed_trait_effect = yes
		remove_disease_trait_effect = yes
		remove_treatment_modifiers_effect = yes
		imprison = no
		set_defacto_liege = ROOT
		while = {
			limit = {
				age = 17
			}    
			add_age = -1
		}
		any_player = {
			narrative_event = {id = ylcharevt.042} 
		}
	}
}
narrative_event = {
	id = ylcharevt.042
	desc = EVTDESC_ylchar42
	picture = "GFX_evt_hs_ylcharevt042"
	title = evt_TITLE_ylcharevt042
	is_triggered_only = yes
	option = {
		name = EVTOPTylchar42		
	}
}
character_event = {
	id = ylcharevt.040
	desc = "EVTDESC_hs_lihuazou"
	picture = "GFX_evt_lihuazou"
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hskanade01
		wealth = -50
		ROOT = {
			character_event = {id = ylcharevt.041 days = 30}	
		}
		
	}
	option = {
		name = EVTOPTB_hskanade01
	}
	option = {
		name = EVTOPTC_hskanade01
		trigger = {trait = gluttonous}
		add_friend = event_target:hs_kanade
	}
}
character_event = {
	id = ylcharevt.041
	desc = "EVTDESC_hs_lihuazou2"
	picture = "GFX_evt_lihuazou"
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hskanade02
		if = {
			limit = {
				event_target:hs_kanade = {
					OR = {
						is_lover = ROOT
						is_friend = ROOT
						opinion = { who = ROOT value = 80 }
					}
				}
			}
			event_target:hs_kanade = {
				remove_trait = gluttonous
				health = 0.5
			}
			ROOT = {
				remove_trait = gluttonous
				health = 0.5
			}
		}
		add_trait = just
		clear_event_target = event_target:hs_kanade
	}
	option = {
		name = EVTOPTB_hskanade02
		health = 0.5
		clear_event_target = event_target:hs_kanade
	}
	option = {
		name = EVTOPTC_hskanade02
		trigger = {	
			OR = {
				trait = drunkard
				trait = hedonist
				trait = slothful
			}
		}
		add_friend = event_target:hs_kanade
		add_trait = gluttonous
		clear_event_target = event_target:hs_kanade
	}
}
character_event = {
	id = ylcharevt.050
	desc = "EVTDESC_hs_idolpro"
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hsidol01
		trigger = {k_765pro ={has_holder = no}}
		primary_title = {
			k_765pro = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}		
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}	
		if = {
			limit = {
				NOT = {
					has_global_flag = yl_idolsub49_summoned
				}
			}
			set_global_flag = yl_idolsub49_summoned
			create_random_diplomat = {
				random_traits = no
				religion = ROOT
				culture = yamato
				female = yes
				dynasty = 5100166
				age = 16
				name = "*geg"
				attributes = { diplomacy = 15 }
				trait = hs_idol
				trait = yl_idolsub49
				trait = fair
			}
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_setidol
				set_variable = { which = hs_idol_popularity value = 5 }				
				random_list = { 
					1 = {set_variable = { which = hs_idol_exp value = 25 }}
					2 = {set_variable = { which = hs_idol_exp value = 15 }}
					3 = {set_variable = { which = hs_idol_exp value = 10 }}
					4 = {set_variable = { which = hs_idol_exp value = 5 }}
				}
				add_character_modifier = {
					name = hs_idollevel_1
					duration = -1
				}
				hs_check_idoltype_effect = yes			
			}
		}
		
	}
	option = {
		name = EVTOPTB_hsidol01	
		trigger = {k_346pro ={has_holder = no}}
		primary_title  = {
			k_346pro = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
		if = {
			limit = {
				NOT = {
					has_global_flag = yl_idolsub11_summoned
				}
			}
			set_global_flag = yl_idolsub11_summoned
			create_random_diplomat = {
				random_traits = no
				religion = ROOT
				culture = yamato
				female = yes
				age = 16
				dynasty = 5100165
				name = "oSg"
				attributes = { diplomacy = 15 }
				trait = hs_idol
				trait = yl_idolsub11
				trait = fair
			}
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_setidol
				set_variable = { which = hs_idol_popularity value = 5 }				
				random_list = { 
					1 = {set_variable = { which = hs_idol_exp value = 25 }}
					2 = {set_variable = { which = hs_idol_exp value = 15 }}
					3 = {set_variable = { which = hs_idol_exp value = 10 }}
					4 = {set_variable = { which = hs_idol_exp value = 5 }}
				}
				add_character_modifier = {
					name = hs_idollevel_1
					duration = -1
				}
				hs_check_idoltype_effect = yes			
			}
		}
		
	}
	option = {
		name = EVTOPTC_hsidol01	
		trigger = {k_ynmbcollage ={has_holder = no}}
		primary_title  = {
			k_ynmbcollage = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
		if = {
			limit = {
				NOT = {
					has_global_flag = yl_idolsub38_summoned
				}
			}
			set_global_flag = yl_idolsub38_summoned
			create_random_diplomat = {
				random_traits = no
				religion = ROOT
				culture = yamato
				dynasty = 5100164
				female = yes
				age = 16
				name = "WzCNg"
				attributes = { diplomacy = 15 }
				trait = hs_idol
				trait = fair
				trait = yl_idolsub38
			}
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_setidol
				set_variable = { which = hs_idol_popularity value = 5 }				
				random_list = { 
					1 = {set_variable = { which = hs_idol_exp value = 25 }}
					2 = {set_variable = { which = hs_idol_exp value = 15 }}
					3 = {set_variable = { which = hs_idol_exp value = 10 }}
					4 = {set_variable = { which = hs_idol_exp value = 5 }}
				}
				add_character_modifier = {
					name = hs_idollevel_1
					duration = -1
				}
				add_character_modifier = { name = hs_sp_abilitity_44  duration = -1 hidden = yes} #:VЏ 44
				hs_check_idoltype_effect = yes			
			}
		}
		
	}
	option = {
		name = hs_EVTOPTextrapage	
		character_event = {id = ylcharevt.051}
	}	
}
character_event = {
	id = ylcharevt.051
	desc = "EVTDESC_hs_idolpro"
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hsidol02
		trigger = {k_hanasaka ={has_holder = no}}
		primary_title  = {
			k_hanasaka = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
	}
	option = {
		name = EVTOPTB_hsidol02	
		trigger = {k_ENTUM ={has_holder = no}}
		primary_title  = {
			k_ENTUM = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
	}
	option = {
		name = EVTOPTC_hsidol02	
		trigger = {k_hololive ={has_holder = no}}
		primary_title  = {
			k_hololive = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
		if = {
			limit = {
				NOT = {
					has_global_flag = yl_idolsub66_summoned
				}
			}
			set_global_flag = yl_idolsub66_summoned
			create_random_diplomat = {
				random_traits = no
				religion = ROOT
				dynasty = 5100163
				culture = yamato
				female = yes
				age = 16
				name = "zz"
				attributes = { diplomacy = 15 }
				trait = hs_idol
				trait = fair
				trait = yl_idolsub66
			}
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_setidol
				set_variable = { which = hs_idol_popularity value = 5 }				
				random_list = { 
					1 = {set_variable = { which = hs_idol_exp value = 25 }}
					2 = {set_variable = { which = hs_idol_exp value = 15 }}
					3 = {set_variable = { which = hs_idol_exp value = 10 }}
					4 = {set_variable = { which = hs_idol_exp value = 5 }}
				}
				add_character_modifier = {
					name = hs_idollevel_1
					duration = -1
				}
				hs_check_idoltype_effect = yes			
			}
		}
		
	}
	option = {
		name = hs_EVTOPTextrapage	
		character_event = {id = ylcharevt.052}
	}	
}
character_event = {
	id = ylcharevt.052
	desc = "EVTDESC_hs_idolpro"
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hsidol03
		ai_chance = {
			factor = 33
		}
		trigger = {k_2434 ={has_holder = no}}
		primary_title  = {
			k_2434 = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
		if = {
			limit = {
				NOT = {
					has_global_flag = yl_idolsub65_summoned
				}
			}
			set_global_flag = yl_idolsub65_summoned
			create_random_diplomat = {
					random_traits = no
					religion = ROOT
					dynasty = 5100162 
					culture = yamato
					female = yes
					age = 16
					name = "TQ"
					attributes = { diplomacy = 15 }
					trait = hs_idol
					trait = fair
					trait = yl_idolsub65
			}
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_setidol
				set_variable = { which = hs_idol_popularity value = 5 }				
				random_list = { 
					1 = {set_variable = { which = hs_idol_exp value = 25 }}
					2 = {set_variable = { which = hs_idol_exp value = 15 }}
					3 = {set_variable = { which = hs_idol_exp value = 10 }}
					4 = {set_variable = { which = hs_idol_exp value = 5 }}
				}
				add_character_modifier = {
					name = hs_idollevel_1
					duration = -1
				}
				hs_check_idoltype_effect = yes			
			}
		}
		
	}
	option = {
		name = EVTOPTB_hsidol03	
		ai_chance = {
			factor = 33
		}
		trigger = {k_udp8 ={has_holder = no}}
		primary_title  = {
			k_udp8 = {
				grant_title = ROOT
				make_primary_title = yes
				copy_title_laws = PREV
			}
		}
		any_player = {
			limit = {NOT = {character = ROOT}}
			character_event = {id = ylcharevt.059 days = 5}
		}
	}
	option = {
		name = EVTOPTC_hsidol03	
		ai_chance = {
			factor = 1
		}
		wealth = 1000
		prestige = 500
		#piety = 500
		clr_character_flag = hsorganize_idolpro_flag
	}
	option = {
		name = hs_EVTOPTextrapage	
		ai_chance = {
			factor = 33
		}
		character_event = {id = ylcharevt.050}
	}	
}
character_event = {
	id = ylcharevt.059
	desc = "EVTDESC_hs_idolpro059"
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hsido059
	}
	after = {
		hidden_effect = {
			FROM = {
				create_random_diplomat = {
					random_traits = no
					religion = FROM
					culture = FROM
					female = yes
					age = 16							
				}
				new_character = {
					random_list = { 
						1 = {set_variable = { which = hs_idol_exp value = 30 }}
						2 = {set_variable = { which = hs_idol_exp value = 25 }}
						3 = {set_variable = { which = hs_idol_exp value = 20 }}
						4 = {set_variable = { which = hs_idol_exp value = 15 }}
					}
					random_list = { 
						1 = {set_variable = { which = hs_idol_popularity value = 70 }}
						2 = {set_variable = { which = hs_idol_popularity value = 55 }}
						3 = {set_variable = { which = hs_idol_popularity value = 40 }}
						4 = {set_variable = { which = hs_idol_popularity value = 25 }}
					}
					hs_transidol_effect = yes
					hs_check_idoltype_effect = yes
					set_character_flag = hs_setidol
					change_diplomacy = 5
				}
				random_realm_province = {
					new_character = {
						culture = THIS
						religion = THIS
					}			
				}
			}
		}
	}
}
character_event = {
	id = ylcharevt.060
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		trait = hs_idol
	}
	immediate = {
		 random = { #yV
			chance = 10
			modifier = {
				factor = 1.1
				wealth = 2000
			}
			modifier = {
				factor = 1.1
				wealth = 3500
			}
			modifier = {
				factor = 1.1
				wealth = 7000
			}
			modifier = {
				factor = 1.1
				wealth = 10500
			}
			modifier = {
				factor = 0.1
				NOT = {check_variable = { which = "hs_idol_live_holdcount" value = 10 }}
			}
			modifier = {
				factor = 2
				check_variable = { which = "hs_idol_live_holdcount" value = 15 }
			}
			modifier = {
				factor = 2
				check_variable = { which = "hs_idol_live_holdcount" value = 26 }
			}
			modifier = {
				factor = 1.3
				check_variable = { which = "hs_idol_live_holdcount" value = 30 }
			}
			modifier = {
				factor = 1.3
				check_variable = { which = "hs_idol_live_holdcount" value = 40 }
			}
			modifier = {
				factor = 1.3
				check_variable = { which = "hs_idol_live_holdcount" value = 50 }
			}
			modifier = {
				factor = 1.2
				check_variable = { which = "hs_idol_live_holdcount" value = 60 }
			}
			modifier = {
				factor = 1.2
				check_variable = { which = "hs_idol_live_holdcount" value = 70 }
			}
			modifier = {
				factor = 1.1
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 60
			}
			modifier = {
				factor = 1.1
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 50
			}
			modifier = {
				factor = 1.2
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 45
			}
			modifier = {
				factor = 1.2
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 43
			}
			modifier = {
				factor = 1.2
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 40
			}
			modifier = {
				factor = 1.5
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 35
			}
			modifier = {
				factor = 1.5
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 32
			}
			modifier = {
				factor = 1.2
				NOT = {
					hs_isimmoratal_trigger = yes
				}
				age = 26
			}
			modifier = {
				factor = 0.8
				age < 22
			}
			modifier = {
				factor = 0.45
				age < 18
			}
			modifier = {
				factor = 1.5
				OR = {
					trait = depressed
				}	
		    }
		    modifier = {
				factor = 1.7
				OR = {
					trait = depressed
				}	
		    }
			modifier = {
				factor = 0.7
				OR = {
					trait = ambitious
				}	
		    }
			liege = { character_event = { id = ylcharevt.065 days = 5 random = 10  } }
		}
		random = { #bR
		  chance = 8
		  modifier = {
			factor = 1.1
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				diplomacy = 20
			} 
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				diplomacy = 25
			} 
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				stewardship = 20
			} 
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				stewardship = 25
			} 
		  }
		  modifier = {
			factor = 1.2
			check_variable = {
				which = global_2D_idoltimes_value
				value = 15
			}
		  }
		  modifier = {
			factor = 1.2
			check_variable = {
				which = global_2D_idoltimes_value
				value = 50
			}
		  }
		  modifier = {
			factor = 1.1
			check_variable = {
				which = global_2D_idoltimes_value
				value = 100
			}
		  }
		  modifier = {
			factor = 1.2
			hs_magician_trigger = yes
		  }
		  modifier = {
			factor = 1.2
			check_variable = {which = "hs_idol_exp" value = 20}
		  }
		  modifier = {
			factor = 1.2
			check_variable = {which = "hs_idol_exp" value = 30}
		  }
		  modifier = {
			factor = 1.3
			check_variable = {which = "hs_idol_exp" value = 40}
		  }
		  modifier = {
			factor = 1.3
			check_variable = {which = "hs_idol_exp" value = 50}
		  }
		  modifier = {
			factor = 1.3
			diplomacy = 25
		  }
		  modifier = {
			factor = 1.2
			diplomacy = 20
		  }
		  modifier = {
			factor = 1.2
			diplomacy = 15
		  }
		  modifier = {
			factor = 1.2
			has_minor_title = title_topidol 
		  }
		  modifier = {
			factor = 1.5
			trait = fair
		  }		  
		  modifier = {
			factor = 0.1
			hs_is_injured_trigger = yes
		  }
		  modifier = {
			factor = 0.5
			OR = {
				trait = depressed
			}	
		  }
		  modifier = {
			factor = 0.7
			OR = {
				trait = depressed
			}	
		  }
		  liege = {character_event = { id = ylcharevt.061 }}
			change_variable = {
				which = global_2D_idoltimes_value
				value = 1
			}
		  break = yes
		}
		liege = { character_event = { id = ylcharevt.062 }}
		change_variable = {
			which = global_2D_idoltimes_value
			value = -1
		}
	}
}
character_event = { #livesuccess
	id = ylcharevt.061
	desc = EVTDESC_ylchar61
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	option = {
		name = EVTOPTylchar61
		transfer_scaled_wealth = {
			to = FROM
			value = 0.1
			min = 50
			max = 500
		}
		scaled_wealth = {
			value = 0.15
			min = 100
		}
		if = {
			limit = {
				FROM = {check_variable = {which = "hs_idol_popularity" value = 30}}
			}
			scaled_wealth = {
				value = 0.25
				min = 100
				max = 500
			}
			prestige = 25
			piety = 25
		}
		if = {
			limit = {
				FROM = {check_variable = {which = "hs_idol_popularity" value = 45}}
			}
			scaled_wealth = {
				value = 0.25
				min = 100
				max = 500
			}
			
		}
		if = {
			limit = {
				FROM = {check_variable = {which = "hs_idol_popularity" value = 60}}
			}
			scaled_wealth = {
				value = 0.25
				min = 150
				max = 500
			}
			prestige = 25
			piety = 25
		}
		if = {
			limit = {
				FROM = {check_variable = {which = "hs_idol_popularity" value = 75}}
			}
			scaled_wealth = {
				value = 0.2
				min = 150
				max = 1000
			}
			
		}
		if = {
			limit = {
				FROM = {check_variable = {which = "hs_idol_popularity" value = 90}}
			}
			scaled_wealth = {
				value = 0.2
				min = 200
				max = 1500
			}
			prestige = 25
			piety = 25
		}
		prestige = 50
		piety = 50
		FROM = {
			if = {
				limit = {
					NOT = {check_variable = {which = "hs_idol_popularity" value = 30}}
				}
				change_variable = { which = "hs_idol_popularity" value = 8 }
				
			}
			else_if = {
				limit = {
					NOT = {check_variable = {which = "hs_idol_popularity" value = 60}}
				}
				change_variable = { which = "hs_idol_popularity" value = 4 }
			}
			else = {
				change_variable = { which = "hs_idol_popularity" value = 2 }
			}
			hidden_effect = {
				change_variable = {
					which = global_2D_idoltimes_value
					value = 1
				}
				change_variable = { which = "hs_idol_live_holdcount" value = 3 }
				random_list = {
					1 = {change_variable = { which = "hs_idol_exp" value = 3 }}
					1 = {change_variable = { which = "hs_idol_exp" value = 2 }}
					1 = {change_variable = { which = "hs_idol_exp" value = 1 }}
					1 = {}
				}
			}
			hs_check_idoltype_effect = yes
		}
		
	}
}
character_event = { #live fail
	id = ylcharevt.062
	desc = EVTDESC_ylchar62
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	option = {
		name = EVTOPTylchar62
		scaled_wealth = {
			value = 0.05
			min = 20
		}
		transfer_scaled_wealth = {
			to = FROM
			value = 0.05
			min = 50
			max = 500
		}
		prestige = -50
		hidden_effect = {
			FROM = {
				random = {
				  chance = 40
				  modifier = {
					factor = 2
					trait = proud
				  }
				  modifier = {
					factor = 1.5
					trait = ambitious
				  }
				  modifier = {
					factor = 0.5
					trait = content
				  }
				  hs_idol_practise_effect = yes
				}
			}
		}
	}
}
character_event = {
	id = ylcharevt.063
	hide_window = yes
	is_triggered_only = yes
	only_rulers = yes
	trigger = {
		hs_hasidolpro_trigger = yes	
		any_courtier = { 
			trait = hs_idol
		}
	}
	
	immediate = {
				
		character_event = {
			id = ylcharevt.064 days = 1
		}
		any_courtier = { 
			limit = {trait = hs_idol}
			random_list = {
				100 = {
					modifier = {
						factor = 1.5
						check_variable = {which = "hs_idol_popularity" value = 90}
					}
					modifier = {
						factor = 1.5
						check_variable = {which = "hs_idol_popularity" value = 60}
					}
					modifier = {
						factor = 1.5
						check_variable = {which = "hs_idol_popularity" value = 30}
					}
					modifier = {
						factor = 1.2
						check_variable = {which = "hs_idol_exp" value = 20}
					}
					modifier = {
						factor = 1.5
						check_variable = {which = "hs_idol_exp" value = 30}
					}
					modifier = {
						factor = 1.2
						check_variable = {which = "hs_idol_exp" value = 40}
					}
					modifier = {
						factor = 1.2
						check_variable = {which = "hs_idol_exp" value = 50}
					}
					set_character_flag = hs_idolsummary1
					
				}
				200 = {
					set_character_flag = hs_idolsummary2
				}
				100 = {
					modifier = {
						factor = 0.2
						ROOT = {ai = yes}
					}
					set_character_flag = hs_idolsummary3
				}
			}
					
			
		}
		
	}
}
character_event = {
	id = ylcharevt.064
	desc = EVTDESC_ylchar63
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes
	only_rulers = yes
	
	trigger = {
		hs_hasidolpro_trigger = yes	
		any_courtier = { 
			trait = hs_idol
		}
	}
	
	option = {
		name = EVTOPTylchar63		
		any_courtier = { 
			limit = {
				has_character_flag = hs_idolsummary1
			}
			
			custom_tooltip = {
				text = hs_tooltip_idolsummary1
				change_variable = { which = "hs_idol_live_holdcount" value = 2 }
				if = {
					limit = {
						check_variable = {which = "hs_idol_popularity" value = 90}
					}
					ROOT = {
						scaled_wealth = {
							value = 0.40
							min = 300
							max = 7000
						}
					}			
				}
				else_if = {
					limit = {
						check_variable = {which = "hs_idol_popularity" value = 60}
					}
					ROOT = {
						scaled_wealth = {
							value = 0.25
							min = 200
							max = 4500
						}
					}		
				}
				else = {
					ROOT = {
						scaled_wealth = {
							value = 0.15
							min = 100
							max = 3000
						}
					}
				}
				
			}
		}
		#any_courtier = { 
		#	limit = {
		#		has_character_flag = hs_idolsummary2
		#	}
		#	custom_tooltip = {
		#		text = hs_tooltip_idolsummary2
		#	}
		#}
		any_courtier = { 
			limit = {
				has_character_flag = hs_idolsummary3
			}
			custom_tooltip = {
				text = hs_tooltip_idolsummary3
				ROOT = {
					scaled_wealth = {
						value = -0.1
						min = -50
						max = -1500
					}
				}
			}
		}
		any_courtier = { 			
			#hidden_tooltip = {
				limit = {trait = hs_idol}
				clr_character_flag = hs_idolsummary1
				clr_character_flag = hs_idolsummary2
				clr_character_flag = hs_idolsummary3
				show_scope_change = no
				if = {
					limit = {
						check_variable = {which = "hs_idol_popularity" value = 90}
					}
					transfer_scaled_wealth = {
						from = ROOT
						value = 0.25
						min = 100
						max = 1000
					}			
				}
				else_if = {
					limit = {
						check_variable = {which = "hs_idol_popularity" value = 60}
					}
					transfer_scaled_wealth = {
						from = ROOT
						value = 0.15
						min = 60
						max = 500
					}	
				}
				else = {
					transfer_scaled_wealth = {
						from = ROOT
						value = 0.1
						min = 30
						max = 200
					}
				}
				
			#}
								
			
		}
		
	}
}
character_event = {
	id = ylcharevt.065
	desc = EVTDESC_ylchar65
	picture = "GFX_evt_hs_idoltimes"
	is_triggered_only = yes	
	trigger = {
		FROM = {
			is_alive = yes
			trait = hs_idol
		}
	}
	option = {
		name = EVTOPTCylchar65	
		trigger = {
			stewardship = 20
		}
		tooltip_info = stewardship
		ai_chance = {
			factor = 10
		}
		#hidden_effect = {
			FROM = { 
				custom_tooltip = {
					text = EVTTIP_ylchar65
					character_event = {id = ylcharevt.066}
				}	
				
			}
		#}
		if = {
			limit = {
				FROM = {check_variable = { which = "hs_idol_popularity" value = 90 }}
			}
			FROM = {change_variable = { which = "hs_idol_popularity" value = -3 }}
			scaled_wealth = {
				value = 0.5
				min = 400
				max = 2500
			}
		}
		if = {
			limit = {
				FROM = {check_variable = { which = "hs_idol_popularity" value = 60 }}
			}
			FROM = {change_variable = { which = "hs_idol_popularity" value = -2 }}
			scaled_wealth = {
				value = 0.3
				min = 200
				max = 2000
			}
		}
		if = {
			limit = {
				FROM = {check_variable = { which = "hs_idol_popularity" value = 30 }}
			}
			FROM = {change_variable = { which = "hs_idol_popularity" value = -1 }}
			scaled_wealth = {
				value = 0.2
				min = 100
				max = 1500
			}
		}
		else = {
			#FROM = {change_variable = { which = "hs_idol_popularity" value = -1 }}
			scaled_wealth = {
				value = 0.1
				min = 50
				max = 1000
			}
		}
	}
	option = {
		name = EVTOPTAylchar65		
		ai_chance = {
			factor = 0
		}
		#hidden_effect = {
			FROM = { 
				custom_tooltip = {
					text = EVTTIP_ylchar65
					character_event = {id = ylcharevt.066}
				}	
				
			}
		#}
		
		
	}
	option = {
		name = EVTOPTBylchar65		
		ai_chance = {
			factor = 85
		}
		FROM = { 
			random = {
				chance = 30
				modifier = {
					factor = 0.3
					ROOT = {
						ai = yes
					}
				}
				modifier = {
					factor = 0.7
					check_variable = { which = "hs_idol_live_holdcount" value < 5 }
				}
				modifier = {
					factor = 0.7
					check_variable = { which = "hs_idol_live_holdcount" value < 10 }
				}
				modifier = {
					factor = 1.2
					check_variable = { which = "hs_idol_live_holdcount" value = 15 }
				}
				modifier = {
					factor = 1.2
					check_variable = { which = "hs_idol_live_holdcount" value = 25 }
				}
				modifier = {
					factor = 1.2
					check_variable = { which = "hs_idol_live_holdcount" value = 35 }
				}
				modifier = {
					factor = 1.2
					check_variable = { which = "hs_idol_live_holdcount" value = 50 }
				}
				modifier = {
					factor = 1.2
					check_variable = { which = "hs_idol_live_holdcount" value = 70 }
				}
				modifier = {
					factor = 1.2
					has_lover = yes
				}
				modifier = {
					factor = 1.2
					wealth = 2500
				}
				modifier = {
					factor = 1.2
					wealth = 5000
				}
				modifier = {
					factor = 1.2
					wealth = 10000
				}
				modifier = {
					factor = 1.15
					is_married = yes
				}
				modifier = {
					factor = 1.5
					hs_is_injured_trigger = yes
				}
				modifier = {
					factor = 1.05
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 60
				}
				modifier = {
					factor = 1.1
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 50
				}
				modifier = {
					factor = 1.1
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 45
				}
				modifier = {
					factor = 1.2
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 40
				}
				modifier = {
					factor = 1.2
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 36
				}
				modifier = {
					factor = 1.1
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 33
				}
				modifier = {
					factor = 1.1
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 30
				}
				modifier = {
					factor = 1.1
					NOT = {
						hs_isimmoratal_trigger = yes
					}
					age = 28
				}
				modifier = {
					factor = 0.65
					age < 25
				}
				modifier = {
					factor = 0.35
					age < 20
				}
				modifier = {
					factor = 2.5
					has_character_flag = hs_iodl_submitretire
				}
				modifier = {
					factor = 1.3
					trait = stressed
				}
				modifier = {
					factor = 1.6
					trait = depressed
				}
				modifier = {
					factor = 0.5
					trait = ambitious
				}
				modifier = {
					factor = 1.15
					has_children = yes
				}
				modifier = {
					factor = 0.9
					check_variable = {which = "hs_idol_popularity" value = 30}
				}
				modifier = {
					factor = 0.9
					check_variable = {which = "hs_idol_popularity" value = 45}
				}
				modifier = {
					factor = 0.9
					check_variable = {which = "hs_idol_popularity" value = 60}
				}
				modifier = {
					factor = 0.9
					check_variable = {which = "hs_idol_popularity" value = 75}
				}
				modifier = {
					factor = 0.9
					check_variable = {which = "hs_idol_popularity" value = 90}
				}
				modifier = {
					factor = 0.85
					check_variable = {which = "hs_idol_exp" value = 30}
				}
				modifier = {
					factor = 0.85
					check_variable = {which = "hs_idol_exp" value = 45}
				}
				modifier = {
					factor = 0.85
					check_variable = {which = "hs_idol_exp" value = 60}
				}
				custom_tooltip = {
					text = EVTTIP_ylchar65
					character_event = {id = ylcharevt.066}
				}						
			}
		}
		FROM = { set_character_flag = hs_iodl_submitretire	}	
	}
}
character_event = {
	id = ylcharevt.066
	hide_window = yes
	is_triggered_only = yes
	trigger = {
	}
	
	immediate = {				
		remove_trait = hs_idol
		clr_character_flag = hs_is_a_idol
		remove_trait = cannot_marry
		remove_character_modifier = will_not_marry
		remove_title = title_topidol
		if = {
			limit = {
				has_ambition = obj_be_idolmaster
			}
			cancel_ambition = yes
		}
		if = {
			limit = {
				OR = {						
					check_variable = {which = "hs_idol_popularity" value = 30}
					liege = {
						ai = no
					}
				}
			}
			any_player = {character_event = {id = yl_summon.4}}
		}	
		set_character_flag = hs_idol_gradud	
		if = {
			limit = {					
				check_variable = {which = "hs_idol_popularity" value = 90}			
			}
			change_variable = {
				which = global_2D_idoltimes_value
				value = -6
			}
		}	
		else_if = {
			limit = {					
				check_variable = {which = "hs_idol_popularity" value = 60}			
			}
			change_variable = {
				which = global_2D_idoltimes_value
				value = -4
			}
		}
		else_if = {
			limit = {					
				check_variable = {which = "hs_idol_popularity" value = 30}			
			}
			change_variable = {
				which = global_2D_idoltimes_value
				value = -2
			}
		}
	}
}
##############################################saya no uta
character_event = { 
	id = ylcharevt.070
	desc = EVTDESC_ylchar70
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar70
		prestige = -200
		event_target:hs_saya = { character_event = {id = ylcharevt.071 months = 1} }
		event_target:hs_saya = { character_event = {id = ylcharevt.071 months = 3} }
		event_target:hs_saya = { character_event = {id = ylcharevt.071 months = 5} }
		event_target:hs_saya = { character_event = {id = ylcharevt.071 months = 7} }
		event_target:hs_saya = { character_event = {id = ylcharevt.071 months = 9} }
		event_target:hs_saya = { character_event = {id = ylcharevt.071 months = 11} }
		event_target:hs_saya = { character_event = {id = ylcharevt.072 months = 12} }
	}
	option = {
		name = EVTOPTBylchar70
		prestige = 100
		piety = -100
		event_target:hs_saya = { 
			death = {
					death_reason = death_execution_burning
					killer = ROOT
			} 
		}
	}
}
character_event = { 
	id = ylcharevt.071
	hide_window = yes
	
	is_triggered_only = yes
	immediate = {
		random_list = {
			10 = {
				trigger = {liege = {trait = lunatic}}
				liege = { character_event = {id = ylcharevt.073} }
			}
			10 = {
				trigger = { liege = {trait = lunatic} }
				liege = { character_event = {id = ylcharevt.074} }
			}
			fallback  = {
				liege = { character_event = {id = ylcharevt.078} }
			}
		}
	}
}
character_event = { 
	id = ylcharevt.072
	hide_window = yes
	
	is_triggered_only = yes
	immediate = {
		if = {
			limit = {
				event_target:hs_saya = {
					OR = {
						is_lover = liege
						is_friend = liege
						opinion = { who = liege value = 100 }
					}
				}
				liege = {trait = lunatic}
			}
			liege = { character_event = {id = ylcharevt.075} }
			break = yes
		}
		liege = { long_character_event = {id = ylcharevt.076} }
	}
}
character_event = { 
	id = ylcharevt.073
	desc = EVTDESC_ylchar73
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar73
		prestige = -150
	}
	option = {
		name = EVTOPTBylchar73
		prestige = 100
		piety = -100
		random_courtier = {
			limit = {
				NOT = {trait = hs_trait_shouzhao}
				prisoner = no
				age = 16
			}
			imprison = ROOT
		}
	}
}
character_event = { 
	id = ylcharevt.074
	desc = EVTDESC_ylchar74
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar74
		military_techpoints = 30
		culture_techpoints = 30
		economy_techpoints  = 30
	}
}
character_event = { 
	id = ylcharevt.075
	desc = EVTDESC_ylchar75
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar75
		long_character_event = {id = ylcharevt.077} 
	}
	option = {
		name = EVTOPTBylchar75
		add_trait = content
	}
}
long_character_event = { 
	id = ylcharevt.076
	desc = EVTDESC_ylchar76
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar76
		hidden_effect = {
			event_target:hs_saya = { 
				death = { death_reason = death_missing } 
			}
		}
	}
	option = {
		name = EVTOPTBylchar76
		event_target:hs_saya = { 
			add_lover = ROOT
			remove_trait = cannot_marry
			remove_character_modifier = will_not_marry
		}
	} 
}
long_character_event = { 
	id = ylcharevt.077
	desc = EVTDESC_ylchar77
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar77
		hidden_effect = {
			event_target:hs_saya = { 
				death = { death_reason = death_missing } 
			}
		}
		remove_trait = lunatic
		add_trait = depressed
	}
	option = {
		name = EVTOPTBylchar77
		hidden_effect = {
			event_target:hs_saya = { 
				death = { death_reason = death_missing } 
			}
		}
		remove_trait = lunatic
	} 
}
character_event = { 
	id = ylcharevt.078
	desc = EVTDESC_ylchar78
	picture = "GFX_evt_hs_saya1"
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar78
		event_target:hs_saya = { 
			death = {
					death_reason = death_execution_burning
					killer = ROOT
			} 
		}
		add_trait = stressed
	}
}
character_event = { 
	id = ylcharevt.079
	hide_window = yes
	
	trigger = { 
		trait = pregnant
		trait = yl_sayanormal
		trait = hs_trait_shouzhao
	}
	is_triggered_only = yes
	immediate = { 
		any_player = {
			narrative_event = {id = ylcharevt.080} 
		}
	}
}
narrative_event = {
	id = ylcharevt.080
	desc = {
	  trigger = {
		NOT = {is_lover = event_target:hs_saya}
	  }
	  text = EVTDESC_ylchar80
	}
	desc = {
	  trigger = {
		is_lover = event_target:hs_saya
	  }
	  text = EVTDESCB_ylchar80
	}
	picture = "GFX_evt_hs_saya2"
	title = ylsayanouta_title
	is_triggered_only = yes
	option = {
		name = EVTOPTAylchar80
		custom_tooltip = {
			text = hs_endgame
			create_character = {
				random_traits = no
				dynasty = none
				name = "NVPw"
			}
			set_player_character = new_character
		}
	}
}
#################################
character_event = { 
	id = ylcharevt.090
	hide_window = yes
	
	trigger = { 

	}
	is_triggered_only = yes
	immediate = { 
		event_target:hs_target_aqua = {
			liege = {
				character_event = {id = ylcharevt.096} 
			}
			
		}
	}
}

character_event = {
	id = ylcharevt.096
	desc = {
	  trigger = {
		NOT = {trait = yl_knsbsub1}
	  }
	  text = EVTDESC_hs_aqua1
	}
	desc = {
	  trigger = {
		trait = yl_knsbsub1
	  }
	  text = EVTDESCB_hs_aqua1
	}
	picture = "GFX_evt_hs_aqua"
	is_triggered_only = yes
	trigger = {
		OR = {
			trait = yl_knsbsub1  
			intrigue = 20
			capital_scope = {
				OR = {
					port = yes
					borders_major_river = yes
				}
			}
		}		
	}
	option = {
		trigger = {
			NOT = {
				trait = yl_knsbsub1  
			}		
		}
		ai_chance = {
			factor = 80
		}
		name = EVTOPTA_hsaqua01
		wealth = -200
		ROOT = {
			character_event = { id = ylcharevt.091 days = 30 }	
		}		
	}
	option = {
		trigger = {
			NOT = {
				trait = yl_knsbsub1  
			}		
		}
		ai_chance = {
			factor = 20
		}
		name = EVTOPTB_hsaqua01
		prestige = 100
	}
	option = {
		trigger = {
			OR = {
				learning = 25
				trait = hs_otaku
				trait = yl_knsbsub1  
				intrigue = 25
			}
		}
		name = EVTOPTC_hsaqua01
		ROOT = {
			character_event = { id = ylcharevt.094 days = 1 }	
		}
		ai_chance = {
			factor = 900
		}
	}
}
character_event = {
	id = ylcharevt.091
	desc = "EVTDESC_hs_aqua2"
	picture = "GFX_evt_hs_aqua"
	is_triggered_only = yes
	trigger = {
		#capital_scope = {
		#	port = yes
		#}
	}
	immediate = {
		capital_scope = {
			add_province_modifier = { name = hs_aquabless years = 100 }
		}
	}
	option = {		
		trigger = {
			OR = {
				trait = deceitful
				trait = greedy
				intrigue = 20
			}
		}
		ai_chance = {
			factor = 95
		}
		name = EVTOPTA_hsaqua02
		tooltip_info = intrigue
		ROOT = {
			character_event = { id = ylcharevt.092 days = 5 }	
		}		
	}
	option = {
		name = EVTOPTB_hsaqua02
		hidden_effect = {
			event_target:hs_target_aqua = { 
				death = { death_reason = death_missing } 
			}
		}
		ai_chance = {
			factor = 5
		}
	}
	option = {
		name = EVTOPTC_hsaqua02
		prestige = -300
		capital_scope = {
			remove_province_modifier = hs_aquabless
		}
		event_target:hs_target_aqua = {
			add_rival = ROOT
		}
	}
}
character_event = {
	id = ylcharevt.092
	desc = "EVTDESC_hs_aqua3"
	picture = "GFX_evt_hs_aqua"
	is_triggered_only = yes
	trigger = {
		capital_scope = {
			port = yes
		}
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "bbZ"
			attributes = { intrigue = 5  martial = 15 diplomacy = 10 stewardship = 7 learning = 10 }
			dynasty = 5000144  
			culture = THIS
			religion = THIS
			female = yes
			age = 16
			trait = yl_lalatina 
			trait = stubborn
			trait = strong
			trait = adventurer
			trait = lustful
			trait = just
			trait = defensive_leader
			trait = unyielding_leader
			trait = tough_soldier
		}				
		new_character = { 
			add_character_modifier = { name = hs_sp_abilitity_25  duration = -1 hidden = yes} #OS 25
			add_character_modifier = { name = hs_sp_abilitity_28  duration = -1 hidden = yes} #VaTflag 28 
			hs_shouzhao_effect = yes
			add_friend = event_target:hs_target_aqua
			save_event_target_as = hs_target_yl_lalatina
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
		}
	}
	#portrait = new_character
	option = {		
		trigger = {
			OR = {
				trait = deceitful
				trait = greedy
				intrigue = 20
			}
		}
		ai_chance = {
			factor = 100
		}
		name = EVTOPTA_hsaqua03
		tooltip_info = intrigue
		ROOT = {
			character_event = { id = ylcharevt.093 days = 5 }	
		}		
	}
	option = {
		name = EVTOPTB_hsaqua02
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			event_target:hs_target_aqua = { 
				death = { death_reason = death_missing } 
			}
		}
	}
	option = {
		name = EVTOPTC_hsaqua02
		prestige = -300
		ai_chance = {
			factor = 100
		}
		capital_scope = {
			remove_province_modifier = hs_aquabless
		}
		event_target:hs_target_aqua = {
			add_rival = ROOT
		}
	}
}
character_event = {
	id = ylcharevt.093
	desc = "EVTDESC_hs_aqua4"
	picture = "GFX_evt_hs_aqua"
	is_triggered_only = yes
	trigger = {
		capital_scope = {
			port = yes
		}
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "``"
			attributes = { intrigue = 5  martial = 15 diplomacy = 4 stewardship = 8 learning = 12 }
			dynasty = 5000143   
			culture = THIS
			religion = THIS
			female = yes
			age = 16
			trait = yl_megumin  
			trait = stubborn
			trait = quick
			trait = hs_trait_zhonger
			trait = hs_magician_l
			trait = adventurer
			trait = proud
			trait = shy
			trait = siege_leader
			trait = scholarly_theologian
		}				
		new_character = { 
			add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #kp|wR 2
			give_nickname = nick_the_hs86
			hs_shouzhao_effect = yes
			add_friend = event_target:hs_target_aqua
			add_friend = event_target:hs_target_yl_lalatina
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
			reverse_opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
			
		}
	}
	#portrait = new_character
	option = {
		name = EVTOPTB_hsaqua02
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			event_target:hs_target_aqua = { 
				death = { death_reason = death_missing } 
			}
		}
	}
	option = {
		name = EVTOPTC_hsaqua04
		prestige = -500
		ai_chance = {
			factor = 80
		}
		capital_scope = {
			remove_province_modifier = hs_aquabless
		}
		event_target:hs_target_aqua = {
			add_rival = ROOT
		}
	}
}
character_event = {
	id = ylcharevt.094
	desc = "EVTDESC_hs_aqua5"
	picture = "GFX_evt_hs_aqua"
	is_triggered_only = yes
	
	option = {	
		name = EVTOPTA_hsaqua05
		ROOT = {
			character_event = { id = ylcharevt.095 days = 15 }	
		}	
	}
}
character_event = {
	id = ylcharevt.095
	desc = "EVTDESC_hs_aqua6"
	picture = "GFX_evt_hs_aqua"
	is_triggered_only = yes
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "bbZ"
			attributes = { intrigue = 5  martial = 15 diplomacy = 10 stewardship = 7 learning = 10 }
			dynasty = 5000144  
			culture = THIS
			religion = THIS
			female = yes
			age = 16
			trait = yl_lalatina 
			trait = stubborn
			trait = strong
			trait = robust
			trait = adventurer
			trait = lustful
			trait = just
			trait = defensive_leader
			trait = unyielding_leader
			trait = tough_soldier
		}				
		new_character = { 
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_sp_abilitity_25  duration = -1 hidden = yes} #OS 25
			add_character_modifier = { name = hs_sp_abilitity_28  duration = -1 hidden = yes} #VaTflag 28 
			save_event_target_as = hs_target_yl_lalatina
			add_friend = event_target:hs_target_aqua
			add_friend = event_target:hs_target_yl_lalatina
			add_friend = event_target:hs_target_knsbsub1
			reverse_opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
			create_character = {
				random_traits = no historical = yes
				name = "KQ̑e"
				attributes = { intrigue = 15  martial = 12 diplomacy = 13 stewardship = 10 learning = 25 }
				dynasty = random   
				culture = THIS
				religion = THIS
				female = yes
				age = 16
				trait = yl_knsbsub5    
				trait = schemer
				trait = hs_kami
				trait = chaste
				trait = adventurer
				trait = scarred
				trait = patient
				trait = zealous
				trait = intricate_webweaver
			}				
			new_character = { 
				hs_shouzhao_effect = yes
				add_friend = PREV
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_enhance_3 duration = -1 } #:VS>g
				add_character_modifier = { name = hs_sp_abilitity_12  duration = -1 hidden = yes} #^y2Wlyy  12
				add_character_modifier = { name = hs_sp_abilitity_15  duration = -1 hidden = yes} #؏%f>gflag 15
				add_character_modifier = { name = hs_sp_abilitity_35  duration = -1 hidden = yes} #*Oň 35
				add_character_modifier = { name = hs_sp_abilitity_44  duration = -1 hidden = yes} #:VЏ 44
			}
		}
		create_character = {
			random_traits = no historical = yes
			name = "``"
			attributes = { intrigue = 5  martial = 15 diplomacy = 4 stewardship = 8 learning = 12 }
			dynasty = 5000143   
			culture = THIS
			religion = THIS
			female = yes
			age = 16
			trait = yl_megumin  
			trait = stubborn
			trait = quick
			trait = hs_magician_h
			trait = adventurer
			trait = proud
			trait = shy
			trait = siege_leader
			trait = scholarly_theologian
		}				
		new_character = { 
			hs_shouzhao_effect = yes
			give_nickname = nick_the_hs86
			add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #kp|wR 2
			add_friend = event_target:hs_target_aqua
			add_friend = event_target:hs_target_yl_lalatina
			add_friend = event_target:hs_target_knsbsub1
			opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
			reverse_opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
			create_character = {
				random_traits = no historical = yes
				name = "``"
				attributes = { intrigue = 2  martial = 13 diplomacy = 2 stewardship = 12 learning = 15 }
				dynasty = 5000143   
				culture = THIS
				religion = THIS
				female = yes
				age = 16
				trait = yl_knsbsub4    
				trait = chaste
				trait = humble
				trait = hs_magician_h
				trait = erudite
				trait = shy
				trait = naive_appeaser
			}				
			new_character = { 
				hs_shouzhao_effect = yes
				add_friend = PREV
				add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #:VS>g
				add_character_modifier = { name = hs_sp_abilitity_27  duration = -1 hidden = yes} #irtϑdc 27
				add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #܏zcg 30
			}
			create_character = {
				random_traits = no historical = yes
				name = "1rLNN"
				attributes = { intrigue = 6  martial = 20 diplomacy = 10 stewardship = 6 learning = 17 }
				dynasty = 5100375   
				culture = THIS
				religion = THIS
				female = yes
				age = 12
				immortal_age = 16
				trait = yl_knsbsub2    
				trait = born_in_the_purple
				trait = genius
				trait = hs_magician_h
				trait = chaste
				trait = just
				trait = siege_leader
				trait = scholarly_theologian
			}				
			new_character = { 
				hs_shouzhao_effect = yes
				add_friend = event_target:hs_target_knsbsub1
				set_character_flag = hs_has_immortal_age
				add_friend = PREV
				add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
				add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #:VS>g
				add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_knsbsub1 } #mRRS҉rvK`V
			}
		}
		
		create_character = {
			random_traits = no historical = yes
			name = "uyQ"
			attributes = { intrigue = 2  martial = 15 diplomacy = 8 stewardship = 1 learning = 18 }
			dynasty = random   
			culture = THIS
			religion = THIS
			female = yes
			age = 16
			trait = yl_knsbsub3    
			trait = hs_bakemono
			trait = humble
			trait = kind
			trait = diligent
			trait = temperate
			trait = brave
			trait = naive_appeaser
		}				
		new_character = { 
			hs_shouzhao_effect = yes
			add_character_modifier = { name = hs_magic_black_3 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #Wub 21
			add_character_modifier = { name = hs_sp_abilitity_38  duration = -1 hidden = yes} #uTrlS  38
		}
		
		
		
	}
	option = {	
		name = EVTOPTA_hsaqua06
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			event_target:hs_target_aqua = { 
				death = { death_reason = death_missing } 
			}
		}
	}
	option = {	
		name = EVTOPTB_hsaqua06
		piety = -150
		ai_chance = {
			factor = 90
		}
	}
	
}
################################################dio
province_event = {
	id = ylcharevt.100
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		holder_scope = { character_event = { id = ylcharevt.101 } }
	}
}
character_event = {
	id = ylcharevt.101
	desc = "EVTDESC_hsblood101"
	picture = "GFX_evt_hs_dioappear"
	
	is_triggered_only = yes
	immediate = {
		create_character = {
			random_traits = no historical = yes
				name = "eY"
				attributes = { intrigue =15  martial = 25 diplomacy = 10 stewardship = 12 learning = 12 }
				dynasty = 5000141 
				culture = FROM
				religion = FROM
				female = no
				age = 16
				fertility = 1.5
				trait = aggressive_leader
				trait = yl_dio
				trait = hs_bakemono
				trait = quick
				trait = proud
				trait = shrewd
				trait = greedy
				trait = ambitious
				trait = schemer
				trait = cynical
				trait = kinslayer
				trait = elusive_shadow
		}
		random_realm_title = {
			limit = {
				tier = COUNT
				is_capital = no
			}
			grant_title = new_character
		}
		new_character = { 
			hs_shouzhao_effect = yes
			add_artifact = bj_stonemask
			add_rival = event_target:hssummoned_jotaro
			add_character_modifier = {
				name = hs_theworld  
				duration = -1
			}
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_14  duration = -1 hidden = yes} #ekPbk 14
			add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #ޘL 17
			character_event = { id = hsadopt.003 years = 5 }
			
			capital_scope = {
				new_character ={
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							light_infantry = { 15000 15000 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.1
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 5000 5000 }
						}
						disband_on_peace = no
						reinforces = no
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							heavy_infantry = { 5000 5000 }
						}
						disband_on_peace = no
						reinforces = no
						merge = yes
						attrition = 0.2
						cannot_inherit = no
						maintenance_multiplier = 0
					}
					spawn_unit = {
						province = PREV
						home = PREV
						owner = THIS
						troops ={
							knights  = { 5000 5000 }
						}
						disband_on_peace = no
						reinforces = yes
						reinforce_rate_multiplier = 0.1
						merge = yes
						attrition = 0.2
						cannot_inherit = yes
						maintenance_multiplier = 0
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTA_hsblood101
		prestige = -200
		abdicate_to = new_character
	}
	option = {
		name = EVTOPTB_hsblood101
		piety = -100
		new_character = {
			add_claim = ROOT
			set_defacto_liege = THIS
		}
		
	}
	after = {
		any_player = { narrative_event = { id = ylcharevt.102 days = 15 } }
		new_character = {
			random_claim = {
				holder_scope = {
					reverse_unsafe_war = {
						target = new_character
						casus_belli = claim
						thirdparty_title = PREV
					}
				}
			}
		}
	}
}
narrative_event = {#dio
	id = ylcharevt.102
	desc = EVTDESC_hsblood102
	picture = GFX_evt_hs_dioappear
	title = hs_hsblood102_title
	is_triggered_only = yes 
	
	option = {
		name = EVTOPT_hsblood102
	}
}
#########################################
character_event = {
	id = ylcharevt.110
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		trait = hs_idol
	}
	immediate = {
		random = {
		  chance = 8
		  modifier = {
			factor = 1.5
			liege = {
				ai = yes
			}
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				diplomacy = 20
			} 
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				diplomacy = 25
			} 
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				stewardship = 20
			} 
		  }
		  modifier = {
			factor = 1.2
			any_courtier_or_vassal  = { 
				has_minor_title = title_producer
				stewardship = 25
			} 
		  }
		  modifier = {
			factor = 1.1
			prestige = 10000
		  }
		  modifier = {
			factor = 1.2
			prestige = 7000
		  }
		  modifier = {
			factor = 1.3
			prestige = 5000
		  }
		  modifier = {
			factor = 1.5
			prestige = 3000
		  }
		  modifier = {
			factor = 1.1
			FROM = {prestige = 10000}
		  }
		  modifier = {
			factor = 1.2
			FROM = {prestige = 7000}
		  }
		  modifier = {
			factor = 1.3
			FROM = {prestige = 5000}
		  }
		  modifier = {
			factor = 1.5
			FROM = {prestige = 3000}
		  }
		  modifier = {
			factor = 1.5
			diplomacy = 25
		  }
		  modifier = {
			factor = 1.5
			diplomacy = 20
		  }
		  modifier = {
			factor = 1.2
			diplomacy = 15
		  }
		  modifier = {
			factor = 1.1
			FROM = {diplomacy = 25}
		  }
		  modifier = {
			factor = 1.2
			FROM = {diplomacy = 20}
		  }
		  modifier = {
			factor = 1.1
			FROM = {diplomacy = 15}
		  }
		  modifier = {
			factor = 1.5
			check_variable = {which = "hs_idol_exp" value = 20}
		  }
		  modifier = {
			factor = 1.5
			check_variable = {which = "hs_idol_exp" value = 35}
		  }
		  modifier = {
			factor = 1.5
			check_variable = {which = "hs_idol_exp" value = 45}
		  }
		  modifier = {
			factor = 1.5
			check_variable = {which = "hs_idol_exp" value = 60}
		  }
		  modifier = {
			factor = 3
			any_artifact = {
				has_artifact_flag = hs_flag_idolartifac 
			}
		  }
		  modifier = {
			factor = 3
			trait = fair
		  }	
		  modifier = {
			factor = 1.2
			trait = diligent
		  }
		  modifier = {
			factor = 1.2
			trait = genius
		  }			  
		  modifier = {
			factor = 0.2
			hs_is_injured_trigger = yes
		  }
		  modifier = {
			factor = 0.3
			OR = {
				trait = stressed
				trait = depressed
			}	
		  }
		  liege = {character_event = { id = ylcharevt.111 }}
		  break = yes
		}
		liege = { character_event = { id = ylcharevt.112 }}
	}
}
character_event = { #success
	id = ylcharevt.111
	title = EVTDESC_ylchar111
	desc = EVTDESC_ylchar111
	picture = "GFX_evt_hs_idoltimes"
	border = GFX_event_normal_frame_economy
	is_triggered_only = yes
	notification = yes
	immediate = {
		change_variable = {
			which = global_2D_idoltimes_value
			value = 1
		}
		FROM = {
			random_list = {
				70 = {
					modifier = {
						factor = 0.5
						trait = fair
					}	
					modifier = {
						factor = 2
						check_variable = {which = "hs_idol_popularity" value = 60}
					}
					  modifier = {
						factor = 0.7
						check_variable = {which = "hs_idol_exp" value = 20}
					  }
					  modifier = {
						factor = 0.7
						check_variable = {which = "hs_idol_exp" value = 35}
					  }
					  modifier = {
						factor = 0.7
						check_variable = {which = "hs_idol_exp" value = 45}
					  }
					  modifier = {
						factor = 0.7
						check_variable = {which = "hs_idol_exp" value = 60}
					  }					
					change_variable = { which = "hs_idol_popularity" value = 5 }
				}
				10 = {
					modifier = {
						factor = 2
						check_variable = {which = "hs_idol_exp" value = 30}
					}
					change_variable = { which = "hs_idol_popularity" value = 10 }
				}
				10 = {
					modifier = {
						factor = 2
						check_variable = {which = "hs_idol_exp" value = 30}
					}
					change_variable = { which = "hs_idol_popularity" value = 15 }
				}
				5 = {
					  modifier = {
						factor = 3
						check_variable = {which = "hs_idol_exp" value = 40}
					  }
					  modifier = {
						factor = 5
						check_variable = {which = "hs_idol_exp" value = 60}
					}
					change_variable = { which = "hs_idol_popularity" value = 20 }
				}
				1 = {
					modifier = {
						factor = 5
						trait = fair
					}
					modifier = {
						factor = 2
						check_variable = { which = "hs_idol_exp" value = 60 }
					}
					change_variable = { which = "hs_idol_popularity" value = 30 }
				}
			}
			hidden_effect = {hs_check_idoltype_effect = yes}			
		}
	}
	option = {
		name = EVTOPTylchar111		
	}
}
character_event = { #fail
	id = ylcharevt.112
	desc = EVTDESC_ylchar112
	title = EVTDESC_ylchar112
	picture = "GFX_evt_hs_idoltimes"
	border = GFX_event_normal_frame_economy
	notification = yes
	is_triggered_only = yes
	option = {
		name = EVTOPTylchar112
		prestige = -10
	}
}
######################
narrative_event = {#/OKNir
	id = ylcharevt.121
	desc = EVTDESC_hs_charevt121
	picture = GFX_evt_hs_utawareru
	title = EVTTITLE_hs_charevt121
	is_triggered_only = yes 
	immediate = {
		set_global_flag = hs_hakurevolt
	}
	option = {
		name = EVTOPT_charevt121
	}
}
province_event = {
	id = ylcharevt.120
	hide_window = yes
	
	is_triggered_only = yes
	trigger = {
		has_dlc = "Horse Lords"
		NOT = {has_global_flag = hs_hakurevolt}
		has_empty_holding = yes # To allow a Clan capital
		owner = {
			is_feudal = yes
			higher_tier_than = count
			#culture = ROOT
			#risks_minor_clan_rising = yes
			in_revolt = no
			capital_scope = {
				NOT = { province = ROOT }
			}
		}
		
		NOT = { # Not if there is already an ongoing Minor Clan revolt
			owner = {
				top_liege = {
					war = yes
					any_war = {
						defender = { character = PREV }
						using_cb = cb_minor_clan_revolt
#						war_title = ROOT # The county
					}
				}
			}
		}
	}
	
	immediate = {
		add_province_modifier = {
			name = recent_county_uprising
			duration = 1825 # One year of -100% revolt risk in this county
		}
		
		owner = {
			top_liege = {
				save_event_target_as = province_top_liege
			}
		}
	
		create_character = {
			name="TKQeYW"
			random_traits = no
			dynasty = 5100110
			religion = ROOT
			culture = ROOT
			female = no
			age = 16
			health = 7
			attributes = {
				martial=22
				diplomacy=15
				intrigue=12
				stewardship=16
				learning = 12
			}
			trait = stressed
			trait = yl_hakusub1
			trait = quick
			trait = administrator 
			trait = peasant_leader  
			trait = hs_kami 
			trait = kind   
			trait = charitable
			trait = brave
			trait = just
			trait = experimenter
			trait = brilliant_strategist 
		}
		
		new_character = {
			hs_shouzhao_effect = yes
			#add_artifact = doujinshi_ero_1
			save_event_target_as = hs_target_haku
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			create_title = {
				tier = EMPEROR
				landless = yes
				temporary = yes
				rebel = yes
				culture = ROOT
				name = "TUSKUER_qiyijun"
				holder = THIS
				#nomad = yes
			}			
			set_government_type = feudal_government		
			#save_event_target_as = minor_clan_revolt_leader			
			wealth = 2500
			prestige = 3500			
			spawn_unit = {
				province = PREV
				home = PREV
				owner = THIS
				troops ={
					knights = { 10 10 }
					hs_gundam = { 1 1 }
				}
				disband_on_peace = no
				reinforces = yes
				reinforce_rate_multiplier = 0.2
				merge = yes
				attrition = 0
				cannot_inherit = no
				maintenance_multiplier = 0
			}
			spawn_unit = {
				province = ROOT
				home = ROOT
				owner = THIS
				#leader = THIS
				#for_population = 10000
				disband_on_peace = yes
				reinforces = yes
				reinforce_rate_multiplier = 0.1
				scaled_with_population_of = event_target:province_top_liege
				troops = {				
					knights = { 3000 3000 }
					heavy_infantry = { 5000 5000 }
				}
				maintenance_multiplier = 0
				attrition = 0.7
			}
			spawn_unit = {
				province = ROOT
				home = ROOT
				owner = THIS
				#leader = THIS
				#scaled_with_population_of = event_target:province_top_liege
				#for_population = 10000
				cannot_inherit = yes
				scaled_with_population_of = event_target:province_top_liege
				reinforces = yes
				reinforce_rate_multiplier = 0.1
				troops = {
					light_cavalry = { 2000 2500 }
					light_infantry = { 4000 5000 }
					war_elephants = { 500 800 }
				}
				maintenance_multiplier = 0
				attrition = 0.7
			}
			if = {
				limit = {year =1000}
				spawn_unit = {
					province = ROOT
					home = ROOT
					owner = THIS
					#leader = THIS
					#scaled_with_population_of = event_target:province_top_liege
					#for_population = 10000
					scaled_with_population_of = event_target:province_top_liege
					cannot_inherit = yes
					reinforces = yes
					reinforce_rate_multiplier = 0.1
					troops = {
						knights = { 3500 4000 }
						heavy_infantry = { 4000 5000 }
						war_elephants = { 700 1000 }
					}
					maintenance_multiplier = 0
					attrition = 0.7
				}
			}		
			
			# DoW on the province top liege
			ROOT = {
				owner = {
					top_liege = {
						add_population_scaled = -0.1
#						set_defacto_vassal = PREVPREVPREV
						reverse_war = {
							target = PREVPREVPREV
							casus_belli = cb_minor_clan_revolt
							thirdparty_title = ROOT # The county
						}
						reverse_opinion = {
							who = PREVPREVPREV
							modifier = opinion_evil_tyrant
						}
					}
				}
			}
			character_event = {
				id = ylcharevt.122
			}
		}		
		any_player = {narrative_event = {id = ylcharevt.121}}
	}
}
character_event = {
	id = ylcharevt.122
	hide_window = yes
	
	is_triggered_only = yes
	immediate = {

			create_character = {
				random_traits = no
				attributes = {
					martial=12
					diplomacy=15
					intrigue=8
					stewardship=20
					learning = 18
				}
				name="22"
				religion = THIS
				culture = THIS
				dynasty = 5100110
				female = yes
				age = 16
				
				trait = yl_hakusub2   
				trait = shrewd
				trait = physician
				trait = patient
				trait = envious
				trait = kind
				trait = diligent
				trait = scholarly_theologian
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_friend = ROOT
				set_character_flag = hs_doctor		
				opinion = { modifier = opinion_hs_koikokoro who = ROOT } #mRRS҉rvK`V
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #lu>g 11
				add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #QS>g  13
				add_character_modifier = { name = hs_magic_holy_2 duration = -1 } #^y2WTl
				create_character = {#R^؞6rk
					random_traits = no historical = yes
					name = "Ve^S"
					dynasty = THIS 
					culture = THIS
					religion = THIS
					female = yes
					age = 90
				}				
				new_character = {
					save_event_target_as = hs_target_default_mother
				}
				set_mother = event_target:hs_target_default_mother				

				create_character = {
					random_traits = no
					attributes = {
						martial=11
						diplomacy=6
						intrigue=12
						stewardship=7
						learning = 17
					}
					name="?22"
					religion = THIS
					culture = THIS
					dynasty = 5100110
					female = yes
					age = 14
					immortal_age = 16
					trait = yl_hakusub3   
					trait = sturdy
					trait = falconer
					trait = hs_trait_wukou
					trait = charitable
					trait = gluttonous
					trait = shy
				}
				new_character = {
					hs_shouzhao_effect = yes
					set_character_flag = hs_has_immortal_age
					opinion = { modifier = opinion_hs_SISTER who = PREV }#DQVYY
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_SISTER
					}
					opinion = { modifier = opinion_fatherly_love who = ROOT months = 100 }	
					add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #uirdc 26	
					set_mother = event_target:hs_target_default_mother				
					event_target:hs_target_default_mother = {#
						death = {death_reason = death_missing}
					}
				}
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=17
					diplomacy=5
					intrigue=3
					stewardship=6
					learning = 5
				}
				name="w"
				religion = THIS
				culture = THIS
				dynasty = random
				female = no
				age = 16
				
				trait = yl_hakusub4   
				trait = scarred
				trait = robust
				trait = gladiator
				trait = hunter
				trait = wroth
				trait = diligent
				trait = aggressive_leader
				trait = tough_soldier
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				
				opinion = { modifier = opinion_trusted_servant  who = ROOT months = 1200 }	
				create_character = {
					random_traits = no
					attributes = {
						martial=3
						diplomacy=12
						intrigue=10
						stewardship=12
						learning = 17
					}
					name="gS"
					religion = THIS
					culture = THIS
					dynasty = THIS
					female = yes
					age = 16
					
					trait = yl_hakusub6   
					trait = blinded
					trait = weak
					trait = scholar
					trait = chaste
					trait = charitable
					trait = stubborn
					trait = naive_appeaser
				}
				new_character = {
					opinion = { modifier = opinion_hs_koikokoro who = ROOT } #mRRS҉rvK`V
					hs_shouzhao_effect = yes
					character_event = {
						id = hsadopt.007 years = 1
					}
				}				
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=24
					diplomacy=18
					intrigue=13
					stewardship=20
					learning = 12
				}
				name="uZ"
				religion = THIS
				culture = THIS
				dynasty = random
				female = no
				age = 16
				
				trait = yl_hakusub5   
				trait = fair
				trait = robust
				trait = shrewd
				trait = duelist
				trait = organizer
				trait = chaste
				trait = cavalry_leader
				trait = fortune_builder
			}
			new_character = {
				hs_shouzhao_effect = yes	
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
				
				opinion = { modifier = opinion_trusted_servant  who = ROOT months = 1200 }	
			}
			
			create_character = {
				random_traits = no
				attributes = {
					martial=14
					diplomacy=5
					intrigue=6
					stewardship=7
					learning = 9
				}
				name="KQW"
				religion = THIS
				culture = THIS
				dynasty = random
				female = no
				age = 16
				
				trait = yl_hakusub7   
				trait = robust
				trait = duelist
				trait = proud
				trait = wroth
				trait = cavalry_leader
				trait = aggressive_leader
				trait = skilled_tactician
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_trusted_servant  who = ROOT months = 1200 }	
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #e>g	
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=19
					diplomacy=7
					intrigue=10
					stewardship=6
					learning = 10
				}
				name="aS2b"
				religion = THIS
				culture = THIS
				dynasty = 5100111
				female = yes
				age = 16
				
				trait = yl_hakusub8   
				trait = shrewd
				trait = strong
				trait = gladiator
				trait = hedonist
				trait = drunkard
				trait = aggressive_leader
				trait = tough_soldier
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
				opinion = { modifier = opinion_trusted_servant  who = ROOT months = 1200 }				
			}
			create_character = {
				random_traits = no
				attributes = {
					martial=16
					diplomacy=8
					intrigue=2
					stewardship=4
					learning = 8
				}
				name=""
				religion = THIS
				culture = THIS
				dynasty = 5100112
				female = yes
				age = 16
				
				trait = yl_hakusub9   
				trait = robust
				trait = dull
				trait = duelist
				trait = kind
				trait = chaste
				trait = unyielding_leader
				trait = misguided_warrior
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				opinion = { modifier = opinion_trusted_servant  who = ROOT months = 1200 } 
			}
	}
}
character_event = { #^XRkR3R
	id = ylcharevt.130
	desc = "EVTDESC_hs_charevt130"
	picture = "GFX_evt_abigaier01"
	only_playable  = yes
	ai = no
	min_age = 16
	
	trigger = {
		is_inaccessible_trigger = no		
		NOT = { has_global_flag = hs_abigaier_happen }
		NOT = {
			trait = lunatic
		}
	}
	mean_time_to_happen = {
		years = 400
		modifier = {
				factor = 0.8
				religion_group = christian
		}
		modifier = {
				factor = 0.9
				num_of_count_titles_in_realm = 50
		}
		modifier = {
				factor = 0.9
				num_of_count_titles_in_realm = 100
		}		
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "?kvS"
			attributes = { intrigue =12  martial = 11 diplomacy = 5 stewardship = 3 learning = 7 }
			dynasty = 5100125 
			culture = ROOT
			religion = catholic
			female = yes
			age = 12
			immortal_age = 16
			trait = yl_hero7_2
			trait = mystic
			trait = possessed
			#trait = charismatic_negotiator
		}				
		new_character = {
			save_event_target_as = hs_target_abigaier
			set_character_flag = hs_has_immortal_age
			add_character_modifier = { name = hs_sp_abilitity_24  duration = -1 hidden = yes} #uuk>g 24
			hs_shouzhao_effect = yes
		}
		set_global_flag = hs_abigaier_happen
	}
	option = {
		name = EVTOPTA_ylcharevt130
		new_character = {
			death = {
				death_reason = death_execution_burning
				killer = ROOT
			} 
		}
		narrative_event = {
			id = ylcharevt.136
		}
	}	
	option = {		
		name = EVTOPTC_ylcharevt130
		character_event = {
			id = ylcharevt.131
		}
	}
}
character_event = { #^XRkR3R
	id = ylcharevt.131
	desc = "EVTDESC_hs_charevt131"
	picture = "GFX_evt_abigaier01"
	only_playable  = yes
	ai = no
	min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt131
		new_character = {
			death = {
				death_reason = death_execution_burning
				killer = ROOT
			} 
		}
		narrative_event = {
			id = ylcharevt.136
		}
	}
	option = {
		trigger  = {
			OR = {
				any_courtier_or_vassal  = {
					OR = {
						trait = yl_kezi
						trait = yl_naiyako
						trait = yl_sayanormal
						trait = yl_sayalunatic
					}
				}
				OR = {
					trait = yl_kezi
					trait = yl_naiyako
					trait = yl_sayanormal
					trait = yl_sayalunatic
				}
			}
		}
		name = EVTOPTB_ylcharevt131
		scaled_wealth = {
			value = -0.5
			min = -100
			max = -400
		} 
		piety = -300
		new_character = {
			move_character = ROOT
			hidden_effect = {
				remove_trait = yl_hero7_2
				add_trait = yl_hero7
			}
		}		
	}
	option = {		
		name = EVTOPTC_ylcharevt131
		trigger  = {
			NOR = {
				any_courtier_or_vassal  = {
					OR = {
						trait = yl_kezi
						trait = yl_naiyako
						trait = yl_sayanormal
						trait = yl_sayalunatic
					}
				}
				OR = {
					trait = yl_kezi
					trait = yl_naiyako
					trait = yl_sayanormal
					trait = yl_sayalunatic
				}
			}
		}
		character_event = {
			id = ylcharevt.132
		}
	}
}
character_event = { #^XRkR3RۏeQnx
	id = ylcharevt.132
	desc = "EVTDESC_hs_charevt132"
	picture = "GFX_evt_abigaier01"
	only_playable  = yes
	ai = no
	min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt132
		new_character = {
			death = {
				death_reason = death_execution_burning
				killer = ROOT
			} 
		}
		narrative_event = {
			id = ylcharevt.136
		}
	}
	option = {		
		name = EVTOPTC_ylcharevt132
		character_event = {
			id = ylcharevt.133
		}
	}
}
character_event = { #^XRkR3R
	id = ylcharevt.133
	desc = "EVTDESC_hs_charevt133"
	picture = "GFX_evt_abigaier01"
	only_playable  = yes
	ai = no
	min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt133
		new_character = {
			death = {
				death_reason = death_execution_burning
				killer = ROOT
			} 
		}
		narrative_event = {
			id = ylcharevt.136
		}
	}
	option = {		
		name = EVTOPTC_ylcharevt133
		custom_tooltip = {
			text = EVTtxt_ylcharevt133
			random_list = {
				9 = {
					character_event = {
						id = ylcharevt.134
					}
					
				}
				1 = {
					character_event = {
						id = ylcharevt.135
					}					
				}
			}
		}
		
	}
}
character_event = { #sancheck fail
	id = ylcharevt.134
	desc = "EVTDESC_hs_charevt134"
	picture = "GFX_evt_abigaier01"
	only_playable  = yes
	ai = no
	min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt134
		health = -0.5
		change_diplomacy = -1
		change_learning = -1
		change_martial = -1
		change_intrigue = -1
		change_stewardship = -1
		new_character = {
			death = {
				death_reason = death_execution_burning
				killer = ROOT
			} 
		}
		add_trait = lunatic
		narrative_event = {
			id = ylcharevt.136
		}
	}
	option = {		
		name = EVTOPTC_ylcharevt134
		trigger = { health = 2 }
		health = -0.5
		change_diplomacy = -1
		change_learning = -1
		change_martial = -1
		change_intrigue = -1
		change_stewardship = -1
		custom_tooltip = {
			text = EVTtxt_ylcharevt133
			random_list = {
				9 = {
					character_event = {
						id = ylcharevt.134
					}
					
				}
				1 = {
					character_event = {
						id = ylcharevt.135
					}					
				}
			}
		}
	}
}
character_event = { #sancheck pass
	id = ylcharevt.135
	desc = "EVTDESC_hs_charevt135"
	picture = "GFX_evt_abigaier01"
	only_playable  = yes
	ai = no
	min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt135
		new_character = {
			move_character = ROOT
			hidden_effect = {
				remove_trait = yl_hero7_2
				add_trait = yl_hero7
			}
		}	
	}
}
narrative_event = { 
	id = ylcharevt.136
	desc = "EVTDESC_hs_charevt136"
	picture = "GFX_evt_abigaier01"
	title = EVTTITLE_hs_charevt136
	only_playable = yes
	ai = no
	min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt136
		any_realm_province = {			
			add_province_modifier  = { name = hs_abibless duration = 7050 }
		}	
	}
}
narrative_event = {#RevQ>N
	id = ylcharevt.160
	#hide_window = yes
	desc = "EVTDESC_hs_liuqi"
	picture = "GFX_evt_hs_liuqi"
	title = hstls_title_ylcharevt160
	#is_triggered_only = yes	
	ai = no
	only_playable = yes
	trigger = {
		total_years_played = 45
		NOR = {
			has_global_flag = hs_liuqi_happened
			has_global_flag= hero198_summoned
			has_global_flag= hero199_summoned
		}
	}
	mean_time_to_happen = {
		months = 1200
		modifier = {
			factor = 0.8
			year = 1066
		}
		modifier = {
			factor = 1.5
			NOT = { year = 1000 }
		}
		modifier = {
			factor = 1.3
			has_global_flag = nieluoyi_explorers 
		}
		modifier = {
			factor = 1.3
			has_global_flag = hs_liuqi_happened
		}
		modifier = {
			factor = 1.3
			has_global_flag = hs_elfbri_happened
		}
		modifier = {
			factor = 1.3
			has_global_flag = aztec_explorers
		}
	}
	immediate = {
		hidden_effect = {
			if = {
				limit = {
					e_china_west_governor = {
						holder_scope = {
							age = 0
						}
					}
					
				
				}
				e_china_west_governor ={
					holder_scope = {
						create_character = {
							random_traits = no historical = yes
							name = "Y"
							attributes = { intrigue =11  martial = 26 diplomacy = 22 stewardship = 10 learning = 8 }
							dynasty = 5000312 
							culture = han
							religion = taoist
							female = yes
							age = 16
							trait = sturdy
							trait = yl_hero233
							trait = adventurer
							trait = fair
							trait = gardener
							trait = socializer
							trait = humble
							trait = patient
							trait = kind
							trait = temperate
							trait = just
							trait = charismatic_negotiator
						}
						new_character = {					
							character_event = {id = ylcharevt.161}	
							set_character_flag = is_displaced_prince
							hs_shouzhao_effect = yes
							add_character_modifier = {
								name = jd_prince
								duration = -1
							}
							add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
							add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
							random_dynasty_member_even_if_dead = {
								limit = {
									OR = {
										trait = yl_hero612
										trait = yl_hero211
									}
								}
								new_character = {
									set_father = PREV
								}
							}
							save_event_target_as = the_chinese_invader
							wealth = 3000
							prestige = 3000
							piety = 3000
							log = "China Logging:"
							log = "[This.GetFullName] ID [This.GetID] is the Displaced Prince"
						}
					}
				}
			}
			else = {
				e_china ={
					holder_scope = {
						create_character = {
							random_traits = no historical = yes
							name = "Y"
							attributes = { intrigue =11  martial = 26 diplomacy = 22 stewardship = 10 learning = 8 }
							dynasty = 5000312 
							culture = han
							religion = taoist
							female = yes
							age = 16
							trait = sturdy
							trait = yl_hero233
							trait = adventurer
							trait = fair
							trait = gardener
							trait = socializer
							trait = humble
							trait = patient
							trait = kind
							trait = temperate
							trait = just
							trait = charismatic_negotiator
						}
						new_character = {					
							character_event = {id = ylcharevt.161}	
							set_character_flag = is_displaced_prince
							hs_shouzhao_effect = yes
							add_character_modifier = {
								name = jd_prince
								duration = -1
							}
							add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
							add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
							random_dynasty_member_even_if_dead = {
								limit = {
									OR = {
										trait = yl_hero612
										trait = yl_hero211
									}
								}
								new_character = {
									set_father = PREV
								}
							}
							save_event_target_as = the_chinese_invader
							wealth = 3000
							prestige = 3000
							piety = 3000
							log = "China Logging:"
							log = "[This.GetFullName] ID [This.GetID] is the Displaced Prince"
						}
					}
				}
			}
			set_global_flag = hs_liuqi_happened
		
		}	
	}
	option = {
		name = EVTOPTA_hs_ylcharevt160
	}
	
}
character_event = {#RevQ>N
	id = ylcharevt.161
	hide_window = yes
	is_triggered_only = yes	
	immediate = {
		#any_player = {
		#	limit = {
		#		has_offmap_news_enabled = offmap_china
		#		is_within_diplo_range = ROOT
		#	}
		#	narrative_event = { id = JD.10108 days = 1 } #News: "A wild adventurer appears" (uses triggered desc to mention it's a prince)
		#}
		set_defacto_liege = ROOT
		create_title = {
			tier = emperor
			landless = yes
			adventurer = yes
			culture = ROOT
			name = "CLAIMANT_SHUHAN"
			holder = ROOT
			base_title = THIS
		}
		set_character_flag = raiding_adventurer
		change_variable = { which = global_raiding_adventurer_spawn_by_jurchen_invasion value = 1 }
		
		1513 = { #Jiuquan
			save_event_target_as = target_province
		}
		set_variable = { which = hscount value = 1 }
		if = {
			limit = {
				year = 900
			}
			set_variable = { which = hscount value = 2 }
		}
		if = {
			limit = {
				year = 1000
			}
			set_variable = { which = hscount value = 3 }
		}
		if = {
			limit = {
				year = 1100
			}
			set_variable = { which = hscount value = 4 }
		}
		if = {
			limit = {
				year = 1200
			}
			set_variable = { which = hscount value = 6 }
		}
		while = {
			limit = {
				check_variable = {
					which = hscount
					value = 1
				}
			}    
			subtract_variable = {
				which = hscount
				value = 1
			}
			spawn_unit = {
				province = event_target:target_province
				home = event_target:target_province
				owner = ROOT
				attrition = 0
				reinforces = yes
				is_looter = yes
				can_toggle_looting = no
				cannot_inherit = yes
				merge = yes
				troops = {
					knights = { 1500 2500 }
				}
			}			
			spawn_unit = {
				province = event_target:target_province
				home = event_target:target_province
				owner = ROOT
				attrition = 0
				reinforces = yes
				is_looter = yes
				can_toggle_looting = no
				cannot_inherit = yes
				merge = yes
				troops = {
					archers = { 1500 2000 }
					light_infantry = { 2000 3500 }
					heavy_infantry = { 2000 3500 }
				}
			}
			spawn_unit = {
				province = event_target:target_province
				home = event_target:target_province
				owner = ROOT
				attrition = 0
				reinforces = yes
				is_looter = yes
				can_toggle_looting = no
				cannot_inherit = yes
				merge = yes
				troops = {
					archers = { 1500 2500 }
					light_infantry = { 2000 3500 }
					heavy_infantry = { 2000 3500 }
				}
			}
		}
		set_variable = { which = hscount value = 0 }	
		character_event = { id = ylcharevt.162 days = 600 }#days = 1095
		add_character_modifier = {
			name = hs_jd_ruler
			duration = -1
		}
		set_global_flag= hero198_summoned
		set_global_flag= hero199_summoned
		create_character = {
			random_traits = no historical = yes
			name = "N"
			attributes = { intrigue = 13 martial = 18 diplomacy = 25 stewardship = 20 learning = 19 }
			dynasty = 5100174 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = yl_hero198
			trait = genius
			trait = fair
			trait = sturdy
			trait = scholar
			trait = strategist
			trait = administrator
			trait = architect
			trait = hs_summoner
			trait = chaste
			trait = diligent
			trait = erudite
			trait = organizer
			trait = midas_touched
		}				
		new_character = {
			hs_shouzhao_effect = yes		
			add_artifact = chinese_crossbow 
			give_nickname = nick_the_hs175
			add_character_modifier = {
				name = jd_strategist
				duration = -1
			}
			add_character_modifier = { name = hs_sp_abilitity_42  duration = -1 hidden = yes} #ct 42
			add_character_modifier = { name = hs_sp_abilitity_43  duration = -1 hidden = yes} #SwQSf 43
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
			set_character_flag = is_chinese_strategist
			if = {
				limit = { 
					can_hold_title = title_commander 
					ROOT = { can_grant_title = title_commander }
				}
				give_minor_title = title_commander
			}
			add_character_modifier = {
				name = jd_administrator
				years = 100
			}
			set_character_flag = is_chinese_administrator
			if = {
				limit = {
					offmap_china = {
						has_status = china_golden_age
					}
				}
				set_character_flag = jd_administrator_golden_age #so you can't reappoint during golden age to get better modifier
			}
			give_minor_title = title_administrator #effects in minor title definition
			add_character_modifier = {
				name = hs_jd_strategist
				duration = -1
			}
			add_character_modifier = { name = zhanlifu10  duration = -1 hidden = yes}

			add_friend = ROOT
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}
			create_character = {
				random_traits = no historical = yes
				name = "u"
				attributes = { intrigue = 12  martial = 12 diplomacy = 8 stewardship = 12 learning = 13 }
				dynasty = 5000319 
				culture = han
				religion = taoist
				female = yes
				age = 16
				trait = robust
				trait = yl_hero239
				trait = duelist
				trait = shrewd
				trait = administrator
				trait = chaste
				trait = diligent
				trait = ambitious
				trait = experimenter
				trait = organizer
				trait = master_of_flame
				trait = brilliant_strategist
			}
			new_character = {					
				hs_shouzhao_effect = yes				
				opinion = { modifier = opinion_hs_keyiyaku who = PREV } #QYuw
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku #QYuw
				}	
				opinion = {	modifier = opinion_loyal_servant who = ROOT }
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
				add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
				add_friend = PREV
			}
		}
		create_character = {
			random_traits = no historical = yes
			name = "u"
			attributes = { intrigue = 19 martial = 19 diplomacy = 10 stewardship = 16 learning = 15 }
			dynasty = 5100175 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = yl_hero199
			trait = genius
			trait = shy
			trait = mystic
			trait = strategist
			trait = proud
			trait = ambitious
			trait = sapper
			trait = elusive_shadow
		}				
		new_character = {
			hs_shouzhao_effect = yes	 
			give_nickname = nick_the_hs176
			if = {
				limit = { 
					can_hold_title = title_commander 
					ROOT = { can_grant_title = title_commander }
				}
				give_minor_title = title_commander
			}
			add_character_modifier = {
				name = jd_administrator
				years = 100
			}
			set_character_flag = is_chinese_administrator
			if = {
				limit = {
					offmap_china = {
						has_status = china_golden_age
					}
				}
				set_character_flag = jd_administrator_golden_age #so you can't reappoint during golden age to get better modifier
			}
			add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
			give_minor_title = title_administrator #effects in minor title definition

			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}		
			add_friend = ROOT
			#add_artifact = bj_RaisingHeart 		
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
			
		}
		create_character = {
			random_traits = no historical = yes
			name = ""
			attributes = { intrigue = 10  martial = 19 diplomacy = 7 stewardship = 12 learning = 12 }
			dynasty = 5000313 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = strong
			trait = yl_hero234
			trait = duelist
			trait = fair
			trait = scholar
			trait = chaste
			trait = proud
			trait = kind
			trait = diligent
			trait = just
			trait = levy_coordinator
			trait = brilliant_strategist
		}
		new_character = {					
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}	
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
			add_friend = ROOT
			add_character_modifier = {
				name = hs_wuhujiang_1
				duration = -1
			}
			add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
			add_character_modifier = { name = hs_strategist_level2  duration = -1 } #c%c1-3 HIP commander1

			give_nickname = nick_the_hs191
		}
		create_character = {
			random_traits = no historical = yes
			name = "ޘ"
			attributes = { intrigue = 4  martial = 13 diplomacy = 4 stewardship = 5 learning = 8 }
			dynasty = 5000314 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = strong
			trait = yl_hero235
			trait = duelist
			trait = hedonist
			trait = hunter
			trait = wroth
			trait = cruel
			trait = humble
			trait = cynical
			trait = berserker
			trait = aggressive_leader
			trait = sapper
			trait = levy_coordinator
			trait = tough_soldier
		}
		new_character = {					
			hs_shouzhao_effect = yes
			add_artifact = chinese_serpent_spear
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			opinion = {	modifier = opinion_loyal_servant who = ROOT }			
			add_friend = ROOT
			add_character_modifier = {
				name = hs_wuhujiang_2
				duration = -1
			}
		}
		create_character = {
			random_traits = no historical = yes
			name = "N"
			attributes = { intrigue = 15  martial = 21 diplomacy = 15 stewardship = 14 learning = 11 }
			dynasty = 5000315 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = robust
			trait = yl_hero221
			trait = fair
			trait = chaste
			trait = humble
			trait = patient
			trait = diligent
			trait = just
			trait = brave
			trait = master_of_flame
			trait = defensive_leader
			trait = unyielding_leader
			trait = tough_soldier
		}
		new_character = {					
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = { name = hs_strategist_level1  duration = -1 } #c%c1-3 HIP commander1
			add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
			opinion = {	modifier = opinion_loyal_servant who = ROOT }			
			add_friend = ROOT
			add_character_modifier = {
				name = hs_wuhujiang_3
				duration = -1
			}
			give_nickname = nick_the_hs193
		}
		create_character = {
			random_traits = no historical = yes
			name = ""
			attributes = { intrigue = 10  martial = 16 diplomacy = 8 stewardship = 10 learning = 10 }
			dynasty = 5000316 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = robust
			trait = yl_hero236
			trait = fair
			trait = hunter
			trait = proud
			trait = zealous
			trait = brave
			trait = arbitrary
			trait = inspiring_leader
			trait = cavalry_leader
			trait = master_of_flame
			trait = skilled_tactician
		}
		new_character = {					
			hs_shouzhao_effect = yes
			give_nickname = nick_the_hs192
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}	
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_friend = ROOT
			add_character_modifier = {
				name = hs_wuhujiang_4
				duration = -1
			}
		}
		create_character = {
			random_traits = no historical = yes
			name = "V"
			attributes = { intrigue = 13  martial = 22 diplomacy = 8 stewardship = 6 learning = 11 }
			dynasty = 5000317 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = robust
			trait = yl_hero237
			trait = shrewd
			trait = hunter
			trait = just
			trait = patient
			trait = stubborn
			trait = flanker
			trait = levy_coordinator
			trait = mountain_terrain_leader
			trait = skilled_tactician
		}
		new_character = {					
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #QYuw
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #QYuw
			}	
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #^ygKb 40
			add_friend = ROOT
			add_character_modifier = {
				name = hs_wuhujiang_5
				duration = -1
			}
		}
		create_character = {
			random_traits = no historical = yes
			name = "S"
			attributes = { intrigue = 11  martial = 10 diplomacy = 12 stewardship = 9 learning = 10 }
			dynasty = 5000318 
			culture = han
			religion = taoist
			female = yes
			age = 16
			trait = robust
			trait = yl_hero238
			trait = fair
			trait = hunter
			trait = proud
			trait = wroth
			trait = stubborn
			trait = brave
			trait = logistics_expert
			trait = tough_soldier
		}
		new_character = {					
			hs_shouzhao_effect = yes	
			add_spouse = ROOT
			impregnate = ROOT
			give_nickname = nick_the_hs195
			add_character_modifier = { name = hs_sp_abilitity_41  duration = -1 hidden = yes} #fkhVcc 41
		}
	}
	
}
character_event = { #"[Root.GetBestName] prepares to settle (declare war)"
	id = ylcharevt.162
	has_dlc = "Jade Dragon"
	is_triggered_only = yes
	hide_window = yes
	
	immediate = {
		any_army = {
			set_can_toggle_looting = yes
			set_looting = no
		}
		any_independent_ruler = {
			limit = {				
				OR = {
					distance = {
						where = event_target:target_province
						value < 700
					}
					has_opinion_modifier = { who = ROOT modifier = opinion_looted }
				}
				demesne_size = 1
			}
			primary_title = {
				add_pressed_claim = ROOT
			}
			
		}
		random_independent_ruler = {
			limit = {
				has_opinion_modifier = { who = ROOT modifier = opinion_looted }
				#NOT = { realm_levy_diff = { who = ROOT value = 3000 } }
				demesne_size = 1
			}
			save_event_target_as = random_ruler_target			
			clr_character_flag = raiding_adventurer
			random_realm_province = {
				limit = {
					any_neighbor_province = {
						NOT = { owner = { same_realm = ROOT } }
					}
				}
				ROOT = {
					unsafe_war = {
						target = event_target:random_ruler_target
						casus_belli = hs_invasion
						thirdparty_title = PREV
						tier = KING
					}
					event_target:random_ruler_target = {
						character_event = { id = HL.112 }
					}
				}
				break = yes
			}			
			random_realm_province = {
				ROOT = {
					unsafe_war = {
						target = event_target:random_ruler_target
						casus_belli = hs_invasion
						thirdparty_title = PREV
						tier = KING
					}
					event_target:random_ruler_target = {
						character_event = { id = HL.112 }
					}
				}
			}
			if = {
				limit = { war = yes }
				break = yes
			}					
		}
		if = {
			limit = { war = yes }
			break = yes
		}
		repeat_event = { id = ylcharevt.162 days = 365 }	
		clr_character_flag = raiding_adventurer
	}
}
##################################################################vSSw
character_event = { #vSSw
	id = ylcharevt.140
	desc = "EVTDESC_hs_charevt140"
	picture = "GFX_evt_gangtiepanni01"
	hide_new = yes
	hide_from = yes
	#only_playable  = yes
	#ai = no
	#min_age = 16
	is_triggered_only = yes
	option = {
		name = EVTOPTA_ylcharevt140
		capital_scope = {
			province_event = {
				id =  ylcharevt.141
			}
		}
	}
	option = {
		name = EVTOPTB_ylcharevt140
		piety = -20	
	}
}
province_event = {
	id = ylcharevt.141
	hide_window = yes
	is_triggered_only = yes	
	
	immediate = {
		#set_global_flag = nieluoyi_explorers
		#set_province_flag = hs_nieluoyi_target
		activate_title = { title = e_aiyalong status = yes }
		k_papal_state = {
			holder_scope = {
				create_character = {
					random_traits = no historical = yes
					name = "SVyr"
					attributes = { intrigue =18  martial = 20 diplomacy = 5 stewardship = 22 learning = 20 }
					dynasty = 5100126 
					culture = random
					religion = pagan
					female = no
					age = 20
					trait = genius
					trait = yl_svsub7
					trait = architect
					trait = proud
					trait = hs_bakemono
					trait = wroth
					trait = cruel
					trait = ambitious
					trait = arbitrary
					trait = midas_touched
				}
				new_character = {					
					add_character_modifier ={
						name = hs_yl_svsub7
						duration = -1
					}
					add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #4xOW>g
					add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
					add_character_modifier = { name = hs_sp_abilitity_19  duration = -1 hidden = yes} #MO:VS 19
					add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #uirdc 26
					add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #ZΘ 32
					add_character_modifier = { name = hs_sp_abilitity_34  duration = -1 hidden = yes} #R/>g 34
					e_aiyalong = { grant_title = PREV }
					set_government_type = feudal_government
					e_aiyalong = {
						add_law = {
							law = true_cognatic_succession
							cooldown = no
							opinion_effect = no
						}
						add_law = {
							law = status_of_women_4
							cooldown = no
							opinion_effect = no
						}
						add_law = {
							law = succ_turkish_succession
							cooldown = no
							opinion_effect = no
						}
						add_law = revoke_title_law_2
					}				
					set_defacto_liege = THIS
					save_event_target_as = hs_target_beierft
					create_character = {
						random_traits = no historical = yes
						name = ""
						attributes = { intrigue =18  martial = 19 diplomacy = 9 stewardship = 10 learning = 10 }
						dynasty = 5100126 
						culture = THIS
						religion = pagan
						female = yes
						age = 16
						trait = hs_renxing
						trait = yl_svsub8
						trait = duelist
						trait = proud
						trait = brave
						trait = just
						trait = deceitful
						trait = narrow_flank_leader
						trait = elusive_shadow
					}
					new_character = {		
						hs_shouzhao_effect = yes
						set_father = PREV
						move_character = FROM
						add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
						add_character_modifier = { name = hs_sp_abilitity_18  duration = -1 hidden = yes} #R 18
					}
					create_character = {
						random_traits = no historical = yes
						name = "fWVb"
						attributes = { intrigue =13  martial = 15 diplomacy = 15 stewardship = 16 learning = 13 }
						dynasty = 5100126 
						culture = THIS
						religion = pagan
						female = yes
						age = 16
						trait = hs_renxing
						trait = yl_svsub9
						trait = shrewd
						trait = strategist
						trait = administrator
						trait = humble
						trait = patient
						trait = just
						trait = skilled_tactician
					}
					new_character = {		
						hs_shouzhao_effect = yes
						set_father = PREV
						move_character = FROM
						add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
						add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
					}
					create_character = {
						random_traits = no historical = yes
						name = "RmS"
						attributes = { intrigue =7  martial = 14 diplomacy = 12 stewardship = 8 learning = 10 }
						dynasty = 5100126 
						culture = THIS
						religion = pagan
						female = yes
						age = 16
						trait = hs_renxing
						trait = yl_svsub10
						trait = architect
						trait = chaste
						trait = humble
						trait = kind
						trait = trusting
						trait = honest
						trait = martial_cleric
					}
					new_character = {		
						hs_shouzhao_effect = yes
						set_father = PREV
						move_character = FROM
						add_character_modifier = { name = hs_sp_abilitity_25  duration = -1 hidden = yes} #OS 25
					}
					
				
				}								
				e_aiyalong = {
					holder_scope = {
						narrative_event = { id = ylcharevt.142 months = 1 }
					}
				}
			}
		}		
	}
	
}
narrative_event = {
	id = ylcharevt.142
	major = yes
	hide_window = yes
	#picture = GFX_evt_hs_nieluoyi_invasion
	is_triggered_only = yes
	
	major_trigger = {
		FROM = { owner = { NOT = { character = PREVPREV } } }
	}
	immediate = {	
		#will_not_marry_effect = yes
		wealth = 50000
		prestige = 5000
		FROM = {
			kingdom = {
				ROOT = {
					unsafe_war = {
						casus_belli = tribal_invasion
						target = PREVPREV # The top liege of the province owner
						thirdparty_title = PREV # The de jure kingdom
					}
				}
			}
		}
		set_variable = { which = hscount value = 200 }
		while = {
			limit = {
				check_variable = {
					which = hscount
					value = 1
				}
			}    
			subtract_variable = {
				which = hscount
				value = 1
			}
			spawn_unit = {
				province = FROM
				home = FROM
				troops = {
					hs_figure = { 200 200 }
					light_infantry = { 100 100 }
				}
				reinforces = yes
				reinforce_rate_multiplier = 0.4
			}
			
			spawn_fleet = {
				province = closest  # closest sea zone
				owner = ROOT
				cannot_inherit = no
				troops = {
					galleys = { 1 1 }
				}
				maintenance_multiplier = 0
			}
		}
		set_variable = { which = hscount value = 0 }		
		any_player = {
			narrative_event = { id = ylcharevt.143 days = 5 }
		}
		create_character = {
			random_traits = no historical = yes
			name = "cym"
			attributes = { martial = 30 }
			dynasty = none 
			culture = THIS
			religion = pagan
			female = yes
			age = 16
			trait = hs_renxing
			trait = yl_svsub11
			trait = brilliant_strategist
		}
		new_character = {
			will_not_marry_effect = yes
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = {
				name = hs_jixienvshen
				duration = -1
			}
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
		}
		create_character = {
			random_traits = no historical = yes
			name = "?KQXb"
			attributes = { martial = 30 }
			dynasty = none 
			culture = THIS
			religion = pagan
			female = yes
			age = 16
			trait = hs_renxing
			trait = yl_svsub12
			trait = brilliant_strategist
		}
		new_character = {
			will_not_marry_effect = yes
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = {
				name = hs_jixienvshen
				duration = -1
			}
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
		}
		create_character = {
			random_traits = no historical = yes
			name = "Xvb"
			attributes = { martial = 30 }
			dynasty = none 
			culture = THIS
			religion = pagan
			female = yes
			age = 16
			trait = hs_renxing
			trait = yl_svsub13
			trait = brilliant_strategist
		}
		new_character = {
			will_not_marry_effect = yes
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
			add_character_modifier = {
				name = hs_jixienvshen
				duration = -1
			}
			opinion = {	modifier = opinion_loyal_servant who = ROOT }
		}
		
	}
}
narrative_event = {
	id = ylcharevt.143
	title = EVTNAME_hscharevt142
	desc = EVTDESC_hscharevt142
	picture = GFX_evt_gangtiepanni01
	
	is_triggered_only = yes
	option = {
		name = EVTOPTA_hscharevt142
	}
}
narrative_event = {#Y|NR
   id = ylcharevt.170
   #hide_window = yes
   desc = "EVTDESC_hs_elfbri"
   picture = "GFX_evt_hs_elfbri01"
   title = hstls_title_elfbri01
   #is_triggered_only = yes              
   ai = no
   only_playable = yes
   trigger = {
	  total_years_played = 50
	  NOR = {
		has_global_flag = hs_elfbri_happened
	  }
   }
   mean_time_to_happen = {
	  months = 1200
	  modifier = {
		factor = 0.9
		year = 1066
	  }
	  modifier = {
		factor = 1.5
		NOT = { year = 1000 }
	  }
	  modifier = {
		factor = 0.8
		has_global_flag = Chaldea_founded                      
	  }
	modifier = {
		factor = 1.3
		has_global_flag = nieluoyi_explorers 
	}
	modifier = {
		factor = 1.3
		has_global_flag = hs_liuqi_happened
	}
	modifier = {
		factor = 1.3
		has_global_flag = hs_elfbri_happened
	}
	modifier = {
		factor = 1.3
		has_global_flag = aztec_explorers
	}
	
   }
   immediate = {
	  hidden_effect = {
		 c_orkney = {
			holder_scope = {
			   create_character = {
				  random_traits = no historical = yes
				  name = "id9h"
				  attributes = { intrigue =15  martial = 18 diplomacy = 5 stewardship = 20 learning = 20 }
				  dynasty = 5100254
				  culture = THIS
				  religion = THIS
				  female = yes
				  age = 16
				  trait = genius
				  trait = yl_hero347
				  trait = chaste
				  trait = proud
				  trait = mystic
				  trait = deceitful
				  trait = arbitrary
				  trait = hs_bakemono
				  trait = cynical
				  trait = mastermind_theologian
			   }
			   new_character = {                                                                     
				  character_event = {id = ylcharevt.171}                                                                                             
				  set_character_flag = yl_hero347
				  hs_shouzhao_effect = yes                                                                                     
				  wealth = 3000
				  prestige = 3000
				  piety = 3000
				  add_claim = k_england
				  add_claim = k_scotland
				  give_nickname = nick_the_hs221
				  add_artifact = bj_yl_hero347
				  add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
				  add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
			   }
			}
		 }
		 set_global_flag = hs_elfbri_happened                   
	  }             
   }
   option = {
	  name = EVTOPTA_hs_ylcharevt170
   }
              
}
 
character_event = {
   id = ylcharevt.171
   hide_window = yes
   is_triggered_only = yes 
  
   immediate = {
	  #activate_title = { title = k_elfbri status = yes }
	  create_title = {
		 tier = king
		 landless = yes
		 adventurer = yes
		 #culture = ROOT
		 name = "CLAIMANT_efibri"
		 holder = ROOT
		 base_title = THIS
	  }
	  set_defacto_liege = THIS
	  set_variable = { which = hscount value = 1 }
	  if = {
		 limit = {
						year = 900
		 }
		 set_variable = { which = hscount value = 2 }
	  }
	  if = {
		 limit = {
						year = 1000
		 }
		 set_variable = { which = hscount value = 3 }
	  }
	  if = {
		 limit = {
						year = 1100
		 }
		 set_variable = { which = hscount value = 4 }
	  }
	  if = {
		 limit = {
						year = 1200
		 }
		 set_variable = { which = hscount value = 6 }
	  }
	  while = {
		 limit = {
						check_variable = {
									   which = hscount
									   value = 1
						}
		 }   
		 subtract_variable = {
						which = hscount
						value = 1
		 }
		c_orkney = {
			ROOT ={
				 spawn_unit = {
					province = PREV
					home = PREV
					owner = THIS
					attrition = 0
					reinforces = yes
					is_looter = no
					can_toggle_looting = yes
					cannot_inherit = yes
					merge = yes
					troops = {
								   knights = { 2500 3000 }
					}
				 }                                          
				 spawn_unit = {
					province = PREV
					home = PREV
					owner = THIS
					attrition = 0
					reinforces = yes
					is_looter = no
					can_toggle_looting = yes
					cannot_inherit = yes
					merge = yes
					troops = {
								   archers = { 1000 1000 }
								   light_infantry = { 1000 1500 }
								   heavy_infantry = { 500 500 }
					}
				 }
				 spawn_unit = {
					province = PREV
					home = PREV
					owner = THIS
					attrition = 0
					reinforces = yes
					is_looter = no
					can_toggle_looting = yes
					cannot_inherit = yes
					merge = yes
					troops = {
								   archers = { 500 500 }
								   light_infantry = { 500 500 }
								   heavy_infantry = { 500 500 }
					}
				 }
			}
		}
	  }
	  set_variable = { which = hscount value = 0 }        	  
		character_event = {id = ylcharevt.175 days = 1} 			  	  
	  create_character = {
			random_traits = no historical = yes
			name = "^1^"
			attributes = { intrigue =15  martial = 16 diplomacy = 14 stewardship = 10 learning = 12 }
			dynasty = 5100255
			culture = ROOT
			religion = ROOT
			female = yes
			age = 16
			trait = yl_hero349
			trait = fair
			trait = hedonist
			trait = legit_bastard
			trait = brave
			trait = hs_trait_aojiao
			trait = wroth
			trait = impaler
			trait = hs_bakemono
			trait = cavalry_leader
			trait = indulgent_wastrel
		 }
		new_character = {                        
			hs_shouzhao_effect = yes       
			set_mother = ROOT
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g	
			add_character_modifier = { name = hs_magic_black_2 duration = -1 } #ўfTl
			add_character_modifier = { name = hs_sp_abilitity_38  duration = -1 hidden = yes} #uTrlS  38
		}
	  create_character = {
		random_traits = no historical = yes
		name = "T<heyr"
		attributes = { intrigue =7  martial = 15 diplomacy = 10 stewardship = 7 learning = 10 }
		dynasty = 5100256
		culture = ROOT
		religion = ROOT
		female = yes
		age = 16
		trait = strong
		trait = yl_hero348
		trait = cruel
		trait = brave
		trait = hs_bakemono
		trait = wroth
		trait = gluttonous
		trait = cavalry_leader
		trait = skilled_tactician
	  }
	  new_character = {                                                                     		 
		 hs_shouzhao_effect = yes
		 give_nickname = nick_the_hs222
		 add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
	  }
		create_character = {
			random_traits = no historical = yes
			name = "h2"
			attributes = { intrigue =8  martial = 22 diplomacy = 6 stewardship = 8 learning = 12}
			dynasty = 5100257
			culture = ROOT
			religion = ROOT
			female = yes
			age = 16
			trait = yl_hero350
			trait = fair
			trait = strong
			trait = norse_leader
			trait = chaste
			trait = hs_bakemono
			trait = trusting
			trait = honest
			trait = unyielding_leader
			trait = cavalry_leader
			trait = tough_soldier
		 }
		 new_character = {                        
			hs_shouzhao_effect = yes
			give_nickname = nick_the_hs223
			add_character_modifier = {
				name = hs_yl_hero350
				duration = -1
			}
			add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
			add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #e>g
		 }		  
				 
   }                                                         
              
}
narrative_event = {
   id = ylcharevt.172
   picture = "GFX_evt_hs_elfbri01"
   title = EVTNAME_hschavt_172
   desc = EVTDESC_hschavt_172
   major = yes
   only_playable = yes
   has_character_flag = yl_hero347             
   trigger = {
	  #has_character_flag = yl_hero347
	 k_england = {
		holder_scope = {character = ROOT}
	 }
	 k_scotland = {
		holder_scope = {character = ROOT}
	 }
   }             
   border = GFX_event_narrative_frame_war                                        
   major_trigger = {
		ai = no
   }
  
   mean_time_to_happen = {
	    days = 10
   }
  
   immediate = {
	  activate_title = { title = e_elfbri status = yes }
	  e_elfbri = { grant_title = PREV }
	  set_government_type = feudal_government
	  e_elfbri = {
		 add_law = succ_primogeniture
		 add_law = agnatic_succession
		 add_law = revoke_title_law_2
	  }                                                         
	  set_defacto_liege = THIS
	  k_england = {
		 de_jure_liege = e_elfbri
		 destroy_landed_title = THIS
	  }
	  k_scotland = {
		 de_jure_liege = e_elfbri
		 destroy_landed_title = THIS
	  }
	  add_claim = k_ireland
	  add_claim = k_wales
	  clr_character_flag = yl_hero347     
	  c_dublin = {
		 holder_scope = {
			create_character = {
			   random_traits = no historical = yes
			   name = "KQZ"
			   attributes = { intrigue =5  martial = 2 diplomacy = 10 stewardship = 20 learning = 12 }
			   dynasty = 5100258
			   culture = THIS
			   religion = THIS
			   female = yes
			   age = 16
			   trait = born_in_the_purple
			   trait = yl_hero351
			   trait = wroth
			   trait = groomed
			   trait = architect
			   trait = hs_bakemono
			   trait = lustful
			   trait = proud
			   trait = midas_touched
			}
			new_character = {                                                                     
			   character_event = {id = ylcharevt.173}                                                                                             
			   set_character_flag = yl_hero348
			   hs_shouzhao_effect = yes                                                                                     
			   wealth = 3000
			   prestige = 3000
			   piety = 3000
			   add_claim = e_elfbri
			   add_claim = k_ireland
			   add_claim = k_wales
						 
			}
		 }
	  }
   }
  
   option = {
		name = EVTOPTA_hschavt172                                                               
   }
}
 
 
character_event = {
   id = ylcharevt.173
   hide_window = yes
   is_triggered_only = yes 
  
   immediate = {
	  #activate_title = { title = k_elfbri status = yes }
	  create_title = {
		 tier = king
		 landless = yes
		 adventurer = yes
		 culture = ROOT
		 name = "CLAIMANT_efibri2"
		 holder = ROOT
		 base_title = THIS
	  }
	  set_variable = { which = hscount value = 1 }
	  if = {
		 limit = {
						year = 900
		 }
		 set_variable = { which = hscount value = 2 }
	  }
	  if = {
		 limit = {
						year = 1000
		 }
		 set_variable = { which = hscount value = 3 }
	  }
	  if = {
		 limit = {
						year = 1100
		 }
		 set_variable = { which = hscount value = 4 }
	  }
	  if = {
		 limit = {
						year = 1200
		 }
		 set_variable = { which = hscount value = 6 }
	  }
	  while = {
		 limit = {
						check_variable = {
									   which = hscount
									   value = 1
						}
		 }   
		 subtract_variable = {
						which = hscount
						value = 1
		 }
		 c_dublin = {
			ROOT ={
				 spawn_unit = {
					province = PREV
					home = PREV
					owner = THIS
					attrition = 0
					reinforces = yes
					is_looter = no
					can_toggle_looting = yes
					cannot_inherit = yes
					merge = yes
					troops = {
								   knights = { 2500 3000 }
					}
				 }                                          
				 spawn_unit = {
					province = PREV
					home = PREV
					owner = THIS
					attrition = 0
					reinforces = yes
					is_looter = no
					can_toggle_looting = yes
					cannot_inherit = yes
					merge = yes
					troops = {
								   archers = { 1000 1000 }
								   light_infantry = { 1000 1500 }
								   heavy_infantry = { 500 500 }
					}
				 }
				 spawn_unit = {
					province = PREV
					home = PREV
					owner = THIS
					attrition = 0
					reinforces = yes
					is_looter = no
					can_toggle_looting = yes
					cannot_inherit = yes
					merge = yes
					troops = {
								   archers = { 500 500 }
								   light_infantry = { 500 500 }
								   heavy_infantry = { 500 500 }
					}
				 }
			}
		}
	  }
	  set_variable = { which = hscount value = 0 }        
	  set_defacto_liege = THIS
	  character_event = {id = ylcharevt.175 days = 1}
	  create_character = {
		random_traits = no historical = yes
		name = "?SXbŖ"
		attributes = { intrigue =5  martial = 10 diplomacy = 15 stewardship = 12 learning = 18 }
		dynasty = 5100259
		culture = ROOT
		religion = ROOT
		female = yes
		age = 16
		trait = quick
		trait = yl_hero352
		trait = shy
		trait = chaste
		trait = hs_bakemono
		trait = wroth
		trait = temperate
		trait = adventurer
		trait = defensive_leader
		trait = brilliant_strategist
	  }
	  new_character = {                                                                     
		 hs_shouzhao_effect = yes
		give_nickname = nick_the_hs224
		 add_artifact = bj_yl_hero352
		 add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #4xOW>g
		add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #e>g
	  }                                                                                                                     
	   create_character = {
			random_traits = no historical = yes
			name = "eY>O"
			attributes = { intrigue =15  martial = 17 diplomacy = 16 stewardship = 6 learning = 16 }
			dynasty = 5100260
			culture = ROOT
			religion = ROOT
			female = no
			age = 16
			trait = quick
			trait = yl_hero353
			trait = schemer
			trait = patient
			trait = ambitious
			trait = cynical
			trait = deceitful
			trait = hs_bakemono
			trait = elusive_shadow
		 }
		 new_character = {                        
			hs_shouzhao_effect = yes 
			give_nickname = nick_the_hs225
			add_character_modifier = { name = hs_magic_enhance_2 duration = -1 } #:VS>g
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #4xOW>g
		 }
   }                                                         
              
}
 
character_event = {
   id = ylcharevt.175
   hide_window = yes
   is_triggered_only = yes 
  
   immediate = {
	  random_claim = {
			limit = {
				has_holder = yes
			}
			holder_scope = {
				reverse_unsafe_war = {
					target = ROOT
					casus_belli = claim
					thirdparty_title = PREV
				}
			}
		}
   }                                                                      
}
 
narrative_event = {#Y|NR
   id = ylcharevt.176
   #hide_window = yes
   desc = "EVTDESC_hs_elfbri02"
   picture = "GFX_evt_hs_elfbri01"
   title = hstls_title_elfbri02
   #is_triggered_only = yes              
   major = yes
   only_playable = yes
   has_character_flag = yl_hero348
   trigger = {
		has_global_flag = hs_elfbri_happened
		higher_real_tier_than = DUKE
		any_spouse = {
			ai = no
			higher_real_tier_than = KING
			any_spouse = {
				trait = yl_hero347
				higher_real_tier_than = DUKE
			}
			any_spouse = {
				trait = yl_hero352
			}
			
		}
   }
   major_trigger = {
		ai = no
   }
   mean_time_to_happen = {
	    months = 1
   }
   immediate = {
	   ROOT = {
			clr_character_flag = yl_hero348
			#any_war = {end_war = whitepeace}
	   } 
		any_spouse = {
			limit = {
				ai = no
			}
			e_elfbri = { grant_title = PREV }
			ROOT = {
				set_defacto_liege = PREV
			}
			random_spouse = {
				limit = {
					trait = yl_hero347
					higher_real_tier_than = DUKE
				}
				set_defacto_liege = PREV
			}
		}
		k_ireland = {
		 de_jure_liege = e_elfbri
	  }
	  k_wales = {
		 de_jure_liege = e_elfbri
	  }
   }
   option = {
	  name = EVTOPTA_hs_ylcharevt176
   }
              
}

 

character_event = { #YaS
	id = ylcharevt.180
	hide_window = yes
	is_triggered_only = yes 
	has_character_flag = hs_is_yl_hero573

	immediate = {
		repeat_event = { id = ylcharevt.180 months = 2 }
		if = {
			limit = {
				NOT = {
					has_global_flag = yl_hero573_beenlover
				}
				any_lover = {
					ai = no
				}
			}
			any_lover = {
				limit = {
					ai = no
					NOT = {has_character_flag = yl_hero573_beenlover_player}
				}
				set_character_flag = yl_hero573_beenlover_player
			}
			set_global_flag = yl_hero573_beenlover
	    }

		if= {
			limit = {
				has_global_flag = yl_hero573_beenlover
			}
			any_lover = {
				limit = {
					ai = yes
				}
				remove_lover = ROOT
			}
			any_lover = {
				limit = {
					ai = no		
				}
				if = {
					limit = {NOT = {has_character_flag = yl_hero573_beenlover_player}}
					set_character_flag = yl_hero573_beenlover_player
				}
				random = {
					chance = 10
					modifier = {
						factor = 0
						any_lover = {
							ai = no
							any_lover = {
								NOT = { trait = yl_hero573 }
							}
						}
					}
					character_event = {id = ylcharevt.183}
				}
			}
			
		}

		if = {
			limit = {
				has_global_flag = yl_hero573_beenlover
				NOT = {
					any_lover = {
						ai = no
					}
				}	
				
			}
			random_player = {
				if = {
					limit = {
						has_character_flag = yl_hero573_beenlover_player
					}
					character_event = {
						id = ylcharevt.181
					}
				}
				else = {
					character_event = {
						id = ylcharevt.182
					}
				}
			}
		}
	}                                                                      
}
character_event = {
	id = ylcharevt.183
	desc = EVTDESC_hscharevt183
	picture = GFX_evt_ylcharevt_180
	ai = no
	is_triggered_only = yes

	trigger = {
		any_lover = {
			NOT = { trait = yl_hero573 }
		}
	}
	option = {
		name = EVTOPT_hscharevt183A
		custom_tooltip = {
			text = hscharevt180A
		}
		random_lover = {
			limit = {
				NOT = { trait = yl_hero573 }
			}
			remove_lover = ROOT
		}
	}
	option = {
		name = EVTOPT_hscharevt183B
		trigger = {health = 3}
		custom_tooltip = {
			text = hscharevt180A
		}
		if = {
			limit = {
				trait = stressed
				trait = depressed					
			}
			health = -0.2
		}
		else_if = {
			limit = {
				NOT = {
					trait = stressed
				}
				trait = depressed
			}
			add_trait = stressed
		}
		else_if = {
			limit = {
				NOT = {
					trait = depressed
				}
				trait = stressed
			}
			remove_trait = stressed
			add_trait = depressed			
		}	
		else = {
			add_trait = stressed		
		}
	}
}

character_event = {
	id = ylcharevt.181
	desc = EVTDESC_hscharevt181
	picture = GFX_evt_ylcharevt_180
	ai = no
	is_triggered_only = yes


	option = {
		name = EVTOPT_hscharevt181A
		custom_tooltip = {
			text = hscharevt180A
		}
		add_lover = FROM
	}
	option = {
		name = EVTOPT_hscharevt181B
		custom_tooltip = {
			text = hscharevt180B
		}
		from = {
			death = {
				death_reason = death_missing
			} 
		}
	}
}
character_event = {
	id = ylcharevt.182
	desc = EVTDESC_hscharevt182
	picture = GFX_evt_ylcharevt_180
	ai = no
	is_triggered_only = yes


	option = {
		name = EVTOPT_hscharevt181A
		custom_tooltip = {
			text = hscharevt180A
		}
		add_lover = FROM
	}
	option = {
		name = EVTOPT_hscharevt182B
		custom_tooltip = {
			text = hscharevt180B
		}
		from = {
			death = {
				death_reason = death_missing
			} 
		}
	}
}
character_event = { #YaS
	id = ylcharevt.184
	hide_window = yes
	is_triggered_only = yes 
	has_character_flag = hs_is_yl_hero573
	trigger = {
		FROM = {
			is_liege_of = ROOT
			ai = no
		}
	}
	immediate = {
		if = {
			limit = {
				FROM = {
					has_lover = yes
				}
			}
			FROM = { character_event = {id = ylcharevt.186}}
		}
		else = {
			FROM = { character_event = {id = ylcharevt.185}}
		}
		
	}                                                                      
}

character_event = {
	id = ylcharevt.185
	desc = EVTDESC_hscharevt185
	picture = GFX_evt_ylcharevt_180
	ai = no
	is_triggered_only = yes


	option = {
		name = EVTOPT_hscharevt185A
		custom_tooltip = {
			text = hscharevt180A
		}
		add_lover = FROM
	}
	option = {
		name = EVTOPT_hscharevt185B
		custom_tooltip = {
			text = hscharevt180B
		}
		from = {
			death = {
				death_reason = death_missing
			} 
		}
	}
}
character_event = {
	id = ylcharevt.186
	desc = EVTDESC_hscharevt186
	picture = GFX_evt_ylcharevt_180
	ai = no
	is_triggered_only = yes


	option = {
		name = EVTOPT_hscharevt185A
		custom_tooltip = {
			text = hscharevt180A
		}
		add_lover = FROM
	}
	option = {
		name = EVTOPT_hscharevt185B
		custom_tooltip = {
			text = hscharevt180B
		}
		from = {
			death = {
				death_reason = death_missing
			} 
		}
	}
}