namespace = hsadopt
#character_event = {#莉赛特
#	id = hsadopt.001
#	desc = "EVTDESC_hsadopt001"
#	picture = "GFX_evt_reset"
#	only_capable = yes 
#	is_triggered_only = yes
#	trigger = {
#		trait = yl_rance
#		trait = hs_trait_shouzhao
#	}
#	option = {
#		name = EVTOPT_reset
#		create_character = {
#			random_traits = no
#			name = "莉赛特"
#			dynasty = 5000001 
#			culture = ROOT
#			religion = ROOT
#			female = yes
#			age = 1
#			immortal_age = 16
#			health = 5
#			attributes = { intrigue =5  martial = 12 diplomacy = 5 stewardship = 10 learning = 5 }	
#			historical = yes
#			trait = yl_reset
#			trait = hs_bakemono
#			trait = strong
#		}
#		new_character = {
#			set_immune_to_pruning = yes
#			set_father = ROOT
#			add_character_modifier = {
#						name = shouzhao
#						duration = -1
#					}
#		}
#	}
#}
character_event = {#vvo
	id = hsadopt.002
	desc = "EVTDESC_hsadopt002"
	picture = "GFX_evt_adoptvvo"
	only_capable = yes 
	is_triggered_only = yes	
	
	trigger = {
		trait = yl_nanoha
		trait = hs_trait_shouzhao
	}
	option = {
		name = EVTOPT_adoptvvo
		create_character = {
			random_traits = no
			name = "薇薇欧"
			dynasty = 5000002 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 1
			health = 5
			immortal_age = 16
			attributes = { intrigue =5  martial = 12 diplomacy = 10 stewardship = 5 learning = 10 }	
			historical = yes
			trait = yl_vvo
			trait = quick
			trait = hs_magic_girl
			trait = duelist
		}
		new_character = {
			set_father = ROOT
			add_trait = hs_trait_shouzhao
			#add_character_modifier = {
			#	name = shouzhao
			#	duration = -1
			#}
			set_immune_to_pruning = yes	
			set_character_flag = hs_has_immortal_age
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
		}
		ROOT = {
			random_opinion_modifier_target = {
				limit = {
					is_female = yes
					trait = yl_fate
					trait = hs_trait_shouzhao
				}
				new_character = {
					set_mother = PREV
				}
			}
		}
	}
}
character_event = {#乔鲁诺
	id = hsadopt.003
	desc = "EVTDESC_hsadopt003"
	picture = "GFX_evt_gift"
	only_capable = yes 
	is_triggered_only = yes	
	
	trigger = {
		trait = yl_dio
		trait = hs_trait_shouzhao
	}
	option = {
		name = EVTOPT_adoptjobana
		create_character = {
			random_traits = no
			name = "乔鲁诺"
			dynasty = 5000142 
			culture = ROOT
			religion = ROOT
			female = no
			age = 1
			health = 5
			attributes = { intrigue = 7  martial = 12 diplomacy = 14 stewardship = 7 learning = 12 }	
			historical = yes
			trait = yl_jobana
			trait = quick
			trait = hs_hjjs
		}
		new_character = {
			set_father = ROOT
			add_trait = hs_trait_shouzhao
			#add_character_modifier = {
			#	name = shouzhao
			#	duration = -1
			#}
			add_character_modifier = {
				name = hs_goldenexperince
				duration = -1
			}		
			set_character_flag = special_marshal
			set_character_flag = gained_stand
			set_immune_to_pruning = yes
			set_character_flag = hs_shenyiflag
		}
		random_bloodline  = {
			limit = {has_bloodline_flag = bloodline_gain_stand}
			new_character = { add_to_bloodline = PREV }
		}
	}
}
character_event = {#波丽娜
	id = hsadopt.004
	desc = "EVTDESC_hsadopt004"
	picture = "GFX_evt_gift"
	only_capable = yes 
	is_triggered_only = yes	
	
	trigger = {
		trait = yl_napoleon
		trait = hs_trait_shouzhao
		higher_tier_than = COUNT
	}
	option = {
		name = EVTOPT_adoptbolina
		hidden_effect = {
			create_character = {#创建默认父母
				random_traits = no historical = yes
				name = ""
				dynasty = THIS 
				culture = THIS
				religion = THIS
				female = yes
				age = 99
			}				
			new_character = {
				save_event_target_as = hs_target_default_mother
			}
			set_mother = event_target:hs_target_default_mother
		}
		create_character = {
			random_traits = yes
			name = "波丽娜"
			dynasty = ROOT 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 16
			attributes = { intrigue = 12  martial = 15 diplomacy = 13 stewardship = 10 learning = 12 }	
			historical = yes
			trait = yl_pauline
			trait = quick
			trait = brilliant_strategist
			trait = diligent
			trait = heavy_infantry_leader
			trait = ambitious
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_SISTER who = PREV }#兄弟姐妹
			reverse_opinion = {
					who = PREV
					modifier = opinion_hs_SISTER
			}
			add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #强化术 #上Buff，战争中给指挥官，平时给健康等
			set_mother = event_target:hs_target_default_mother
			event_target:hs_target_default_mother = {#
				death = {death_reason = death_missing}
			}
		}
	}
}

character_event = {#徐伦
	id = hsadopt.005
	desc = "EVTDESC_hsadopt005"
	picture = "GFX_evt_gift"
	only_capable = yes 
	is_triggered_only = yes
	trigger = {
		trait = hs_trait_shouzhao
	}
	option = {
		name = EVTOPT_adopt005
		create_character = {
			random_traits = no
			name = "徐伦"
			dynasty = ROOT 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 3
			health = 6
			attributes = { intrigue =5  martial = 8 diplomacy = 4 stewardship = 6 learning = 5 }	
			historical = yes
			trait = yl_xulun 
			trait = lustful
			trait = robust
			trait = hs_hjjs
		}
		new_character = {
			set_immune_to_pruning = yes
			set_father = ROOT
			add_trait = hs_trait_shouzhao
			#add_character_modifier = {
			#	name = shouzhao
			#	duration = -1
			#}
			add_character_modifier = {
				name = hs_stonefree
				duration = -1
			}
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
			set_character_flag = gained_stand
		}
	}
}
character_event = {#多比欧
	id = hsadopt.006
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		create_character = {
			random_traits = no
			name = "多比欧"
			dynasty = none 
			culture = ROOT
			religion = ROOT
			female = no
			age = 13
			health = 6
			attributes = { intrigue = 15  martial = 16 diplomacy = 7 stewardship = 6 learning = 13 }	
			historical = yes
			trait = yl_duobiou 
			trait = quick
			trait = craven
			trait = possessed
			trait = deceitful
			trait = robust
			trait = hs_hjjs
		}
		new_character = {
			set_immune_to_pruning = yes
			add_character_modifier = {
				name = hs_crimeking
				duration = -1
			}
			set_character_flag = gained_stand
			add_artifact = bj_jianshi
		}
	}
}
character_event = {#久远
	id = hsadopt.007
	hide_window = yes
	#only_capable = yes 
	is_triggered_only = yes
	trigger = {
		trait = hs_trait_shouzhao
	}
	immediate = {
		#name = EVTOPT_adopt005
		create_character = {
			random_traits = no
			name = "久远"
			dynasty = FROM 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 0
			health = 6
			attributes = { intrigue =8  martial = 8 diplomacy = 7 stewardship = 7 learning = 6 }	
			historical = yes
			trait = yl_hakusub10 
			trait = wroth
			trait = robust
			trait = just
		}
		new_character = {
			set_immune_to_pruning = yes
			set_father = FROM
			set_mother = ROOT
			add_trait = hs_trait_shouzhao
			#add_character_modifier = {
			#	name = shouzhao
			#	duration = -1
			#}
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #治疗术 11
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
		}
	}
}

character_event = {#夜天
	id = hsadopt.008	
	hide_window = yes
	only_playable = yes
	#religion_group = christian
	#only_independent = yes
	only_capable = yes
	min_age = 16
	prisoner = no
	has_character_flag = hs_is_hayate

	trigger = {		
		NOT = { has_character_flag = hayate_changed }
		OR = {
			is_primary_war_defender = yes	
			is_primary_war_attacker = yes
		}
		any_artifact = {
			artifact_type = bj_BookofDarkness 
		}
	}
	
	mean_time_to_happen = {
		days = 15
	}
	
	immediate = {
		set_character_flag = hayate_changed		
		add_character_modifier = {
			name = yl_linforce2
			duration = -1
		}
		create_character = {
			random_traits = no
			name = "希格纳姆"
			dynasty = 5100128 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 16
			attributes = { intrigue =10  martial = 20 diplomacy = 10 stewardship = 10 learning = 9 }	
			historical = yes
			trait = yl_hero72 
			trait = duelist
			trait = robust
			trait = brave		
			trait = chaste
			trait = patient
			trait = hs_magic_girl
			trait = just
			trait = aggressive_leader
			trait = experimenter
			trait = unyielding_leader
			trait = skilled_tactician
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT }
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku
			}
			add_character_modifier = {
				name = hs_yl_hero72
				duration = -1
			}
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
			add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #火系能力 2
		}
		
		create_character = {
			random_traits = no
			name = "维塔"
			dynasty = 5100128 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 16
			attributes = { intrigue = 5  martial = 19 diplomacy = 5 stewardship = 7 learning = 8 }	
			historical = yes
			trait = yl_hero73 
			trait = wroth
			trait = strong
			trait = brave		
			trait = just
			trait = zealous
			trait = hs_magic_girl
			trait = hs_trait_aojiao
			trait = aggressive_leader
			trait = berserker
			trait = unyielding_leader
			trait = tough_soldier
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT }
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku
			}
			add_character_modifier = {
				name = hs_yl_hero73
				duration = -1
			}
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术

		}
		
		create_character = {
			random_traits = no
			name = "莎玛尔"
			dynasty = 5100128 
			culture = ROOT
			religion = ROOT
			female = yes
			age = 16
			attributes = { intrigue =11  martial = 13 diplomacy = 13 stewardship = 12 learning = 17 }	
			historical = yes
			trait = yl_hero74 
			trait = physician
			trait = administrator
			trait = hs_trait_heianliaoli		
			trait = kind
			trait = patient
			trait = hs_magic_girl
			trait = just
			trait = honest
			trait = scholarly_theologian
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT }
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku
			}
			add_character_modifier = {
				name = hs_yl_hero74
				duration = -1
			}
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #治疗术 11
			set_character_flag = hs_doctor
		}
		
	}
	
}

character_event = {
	id = hsadopt.009
	hide_window = yes
	
	#only_playable = yes
	only_capable = yes
	min_age = 16
	prisoner = no
	has_character_flag = hs_is_haruhi

	trigger = {
		NOT = { has_global_flag = hs_haruhi_changed }
		has_lover = no
		OR = {
			trait = stressed
			trait = depressed
			trait = lunatic
		}
		ai = yes
	}
	
	mean_time_to_happen = {
		days = 30
	}
	
	immediate = {
		set_global_flag = hs_haruhi_changed
		add_artifact = bj_SOS
		clr_character_flag = hs_is_haruhi
		any_player = {
			narrative_event = { id = hsadopt.010 days = 3  }
		}
		character_event = {
			id = hsadopt.011
		}
		
	}	
}

narrative_event = {
	id = hsadopt.010
	title = EVTTITLE_hsadopt_010
	desc = EVTDESC_hsadopt_010
	picture = GFX_evt_hsadopt_010
	is_triggered_only = yes
	trigger = {
		OR = {
			trait = hs_summoner
			trait = hs_bakemono
			trait = hs_kami					
		}
	}
	option = {
		name = EVTOPTA_hsadopt_010
	}
}
character_event = {
	id = hsadopt.011
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		set_variable = { which = hscount value = 5 }
		while = {
			limit = {
				check_variable = {
					which = hscount
					value = 1
				}
			}    
			subtract_variable = {
				which = hscount
				value = 1
			}
			random_playable_ruler ={
				limit = {
					is_landed = yes
					prisoner = no
					ai = yes
					NOR = {
						trait = hs_trait_shouzhao
						trait = genius
						trait = strong
						trait = quick
						is_female = yes
						martial= 18
						diplomacy= 15
						intrigue= 15
						stewardship = 15
						learning = 15
					}
					OR = {
						can_marry = yes
						is_married =yes
					}
				}
				hs_summonhero_effect = yes
				new_character = {
					save_event_target_as = hsopenhero
					wealth = 3000
					piety = 2000
					prestige = 3000
					#culture = PREV
					#religion = PREV
				}
				abdicate_to = event_target:hsopenhero
				if = {
					limit = {year = 900}
					event_target:hsopenhero = {
						capital_scope = {
							event_target:hsopenhero ={
								spawn_unit = {
									province = PREV
									home = PREV
									owner = THIS
									troops ={
										heavy_infantry = { 500 1000 }
									}
									disband_on_peace = no
									reinforces = yes
									reinforce_rate_multiplier = 0.2
									merge = yes
									attrition = 0.2
									cannot_inherit = no
									maintenance_multiplier = 0
								}							
							}
						}
					}
				}
				if = {
					limit = {year =1000}
					event_target:hsopenhero = {
						capital_scope = {
							event_target:hsopenhero ={								
								spawn_unit = {
									province = PREV
									home = PREV
									owner = THIS
									troops ={
										knights  = { 800 1500 }
									}
									disband_on_peace = no
									reinforces = yes
									reinforce_rate_multiplier = 0.2
									merge = yes
									attrition = 0.2
									cannot_inherit = yes
									maintenance_multiplier = 0
								}
							}
						}
					}
				}
				if = {
					limit = {year =1100}
					event_target:hsopenhero = {
						capital_scope = {
							event_target:hsopenhero ={								
								spawn_unit = {
									province = PREV
									home = PREV
									owner = THIS
									troops ={
										knights  = { 800 1500 }
									}
									disband_on_peace = no
									reinforces = yes
									reinforce_rate_multiplier = 0.2
									merge = yes
									attrition = 0.2
									cannot_inherit = yes
									maintenance_multiplier = 0
								}
							}
						}
					}
				}
				if = {
					limit = {year =1200}
					event_target:hsopenhero = {
						capital_scope = {
							event_target:hsopenhero ={								
								spawn_unit = {
									province = PREV
									home = PREV
									owner = THIS
									troops ={
										knights  = { 800 1500 }
									}
									disband_on_peace = no
									reinforces = yes
									reinforce_rate_multiplier = 0.2
									merge = yes
									attrition = 0.2
									cannot_inherit = yes
									maintenance_multiplier = 0
								}
							}
						}
					}
				}
				event_target:hsopenhero = {
					capital_scope = {
						event_target:hsopenhero ={
							spawn_unit = {
								province = PREV
								home = PREV
								owner = THIS
								troops ={
									heavy_infantry = { 1000 1500 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.2
								merge = yes
								attrition = 0.2
								cannot_inherit = no
								maintenance_multiplier = 0
							}							
						}
					}
				}
				if = {
					limit = {
						has_game_rule = {
						   name = hs_mzwsopening_gamerules
						   value = madopen
						}
					}
					if = {
						limit = {year = 900}
						event_target:hsopenhero = {
							capital_scope = {
								event_target:hsopenhero ={
									spawn_unit = {
										province = PREV
										home = PREV
										owner = THIS
										troops ={
											heavy_infantry = { 500 1000 }
										}
										disband_on_peace = no
										reinforces = yes
										reinforce_rate_multiplier = 0.2
										merge = yes
										attrition = 0.2
										cannot_inherit = no
										maintenance_multiplier = 0
									}							
								}
							}
						}
					}
					if = {
						limit = {year =1000}
						event_target:hsopenhero = {
							capital_scope = {
								event_target:hsopenhero ={								
									spawn_unit = {
										province = PREV
										home = PREV
										owner = THIS
										troops ={
											knights  = { 800 1500 }
										}
										disband_on_peace = no
										reinforces = yes
										reinforce_rate_multiplier = 0.2
										merge = yes
										attrition = 0.2
										cannot_inherit = yes
										maintenance_multiplier = 0
									}
								}
							}
						}
					}
					if = {
						limit = {year =1100}
						event_target:hsopenhero = {
							capital_scope = {
								event_target:hsopenhero ={								
									spawn_unit = {
										province = PREV
										home = PREV
										owner = THIS
										troops ={
											knights  = { 800 1500 }
										}
										disband_on_peace = no
										reinforces = yes
										reinforce_rate_multiplier = 0.2
										merge = yes
										attrition = 0.2
										cannot_inherit = yes
										maintenance_multiplier = 0
									}
								}
							}
						}
					}
					if = {
						limit = {year =1200}
						event_target:hsopenhero = {
							capital_scope = {
								event_target:hsopenhero ={								
									spawn_unit = {
										province = PREV
										home = PREV
										owner = THIS
										troops ={
											knights  = { 800 1500 }
										}
										disband_on_peace = no
										reinforces = yes
										reinforce_rate_multiplier = 0.2
										merge = yes
										attrition = 0.2
										cannot_inherit = yes
										maintenance_multiplier = 0
									}
								}
							}
						}
					}
					event_target:hsopenhero = {
						capital_scope = {
							event_target:hsopenhero ={
								spawn_unit = {
									province = PREV
									home = PREV
									owner = THIS
									troops ={
										heavy_infantry = { 1000 1500 }
									}
									disband_on_peace = no
									reinforces = yes
									reinforce_rate_multiplier = 0.2
									merge = yes
									attrition = 0.2
									cannot_inherit = no
									maintenance_multiplier = 0
								}							
							}
						}
					}
				}
				clear_event_target = hsopenhero
			}
		}
		set_variable = { which = hscount value = 0 }
		create_character = {
				random_traits = no historical = yes
				name = "有希"
				attributes = { intrigue =100  martial = 100 diplomacy = 100 stewardship = 100 learning = 100 }
				dynasty = 5000120 
				culture = yamato
				religion = THIS
				female = yes
				age = 16
				trait = yl_yuki   
				trait = erudite
				trait = humble
				trait = hs_trait_wukou
				trait = mystic						
				trait = mastermind_theologian
		}				
		new_character = {
			hs_shouzhao_effect = yes
			add_character_modifier = {
				name = hs_daiji
				duration = -1
			}		
			add_friend = ROOT
		}
		create_character = {
			random_traits = no
			name = "实玖琉"
			dynasty = 5000294 
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			attributes = { intrigue =12  martial = 7 diplomacy = 16 stewardship = 11 learning = 10 }	
			historical = yes
			trait = yl_hero167 
			trait = fair
			trait = adventurer
			trait = hs_maid		
			trait = humble
			trait = kind
			trait = shy
			trait = content
			trait = intricate_webweaver
		}
		new_character = {
			hs_shouzhao_effect = yes
			add_friend = ROOT

		}
		create_character = {
			random_traits = no
			name = "虚"
			dynasty = none 
			culture = yamato
			religion = ROOT
			female = no
			age = 16
			attributes = { intrigue =9  martial = 10 diplomacy = 10 stewardship = 8 learning = 11 }	
			historical = yes
			trait = yl_hero168 
			trait = lustful
			trait = kind
			trait = brave		
			trait = charismatic_negotiator
		}
		new_character = {
			hs_shouzhao_effect = yes
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_koikokoro
			}#被原角色添加恋心
			add_friend = ROOT
		}
		create_character = {
			random_traits = no
			name = "一树"
			dynasty = 5000295 
			culture = yamato
			religion = ROOT
			female = no
			age = 16
			attributes = { intrigue =15  martial = 13 diplomacy = 18 stewardship = 14 learning = 11 }	
			historical = yes
			trait = yl_hero169 
			trait = fair
			trait = shrewd
			trait = mystic		
			trait = chaste
			trait = patient
			trait = temperate
			trait = defensive_leader
			trait = grey_eminence
		}
		new_character = {
			hs_shouzhao_effect = yes
			add_friend = ROOT
		}
	}
}
character_event = {
	id = hsadopt.012
	hide_window = yes
	
	#only_playable = yes
	only_capable = yes
	#min_age = 16
	prisoner = no
	has_character_flag = hs_is_yl_hero48

	trigger = {
		NOT = { has_character_flag = hs_yl_hero48_changed }
		OR = {
			has_global_flag = nanoha_summoned
			has_global_flag = sakura_summoned
			has_global_flag= stern_summoned
			has_global_flag= homura_summoned
		}
		ai = yes
	}
	
	mean_time_to_happen = {
		days = 90
	}
	
	immediate = {
		set_character_flag = hs_yl_hero48_changed
		clr_character_flag = hs_is_yl_hero48
		any_player = {
			narrative_event = { id = hsadopt.013 days = 3  }
		}
		add_trait = hs_magic_girl
		add_trait = homosexual
		liege = {
			create_character = {
				random_traits = no
				dynasty = 5100161
				religion = ROOT
				culture = yamato
				immortal_age = 16
				age = 8
				female = yes
				name = "美游"
				trait = quick
				trait = hs_magic_girl
				trait = scholar
				trait = patient
				trait = yl_hero170
				attributes = {
					diplomacy = 12
					martial = 15
					stewardship = 12
					intrigue = 7
					learning = 15
				}
			}
			new_character = {		
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
				add_friend = ROOT
				set_character_flag = hs_has_immortal_age
				if = {
					limit = {
						ROOT = {
							age = 16
						}
						
					}
					add_age = 3
				}
				if = {
					limit = {
						ROOT = {
							age = 14
						}
						
					}
					add_age = 2
				}
				if = {
					limit = {
						ROOT = {
							age = 11
						}
						
					}
					add_age = 2
				}
			}
			create_character = {
				random_traits = no
				dynasty = 5000231
				religion = ROOT
				culture = ROOT
				immortal_age = 16
				age = 8
				female = yes
				name = "克洛伊"
				trait = robust
				trait = hs_magic_girl
				trait = homosexual
				trait = seductress
				trait = lustful
				trait = yl_hero171
				attributes = {
					diplomacy = 11
					martial = 11
					stewardship = 4
					intrigue = 14
					learning = 6
				}
			}
			new_character = {		
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
				add_friend = ROOT
				opinion = { modifier = opinion_hs_SISTER who = ROOT }#兄弟姐妹
				reverse_opinion = {
						who = ROOT
						modifier = opinion_hs_SISTER
				}
				ROOT = {
					father_even_if_dead = {
						new_character = {
							set_father = PREV
						}
					}
				}
				if = {
					limit = {
						ROOT = {
							age = 16
						}
						
					}
					add_age = 3
				}
				if = {
					limit = {
						ROOT = {
							age = 14
						}
						
					}
					add_age = 2
				}
				if = {
					limit = {
						ROOT = {
							age = 11
						}
						
					}
					add_age = 2
				}
			}
		}
		
	}	
}
narrative_event = {
	id = hsadopt.013
	title = EVTTITLE_hsadopt_013
	desc = EVTDESC_hsadopt_013
	picture = GFX_evt_hsadopt_013
	is_triggered_only = yes
	trigger = {
		trait = hs_summoner
	}
	option = {
		name = EVTOPTA_hsadopt_013
	}
}

character_event = {
	id = hsadopt.014
	hide_window = yes
	
	#only_playable = yes
	only_capable = yes
	min_age = 16
	prisoner = no
	is_triggered_only = yes
	trigger = {
		ai = yes
	}	
	
	immediate = {
		#character_event = {
		#	id = hsadopt.011
		#}
		create_character = {#创建默认父母
			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
			dynasty = 5000037
			religion = ROOT
			culture = yamato
			age = 16
			name = "直叶"
			female = yes
			trait = strong
			trait = duelist
			trait = humble
			trait = diligent
			trait = light_foot_leader
			trait = tough_soldier
			trait = yl_hero158
			attributes = {
				diplomacy = 13
				martial = 17
				stewardship = 14
				intrigue = 5
				learning = 12
			}
		}
		new_character = {
			hs_shouzhao_effect = yes
			opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
			opinion = { modifier = opinion_hs_SISTER who = ROOT }#兄弟姐妹
			reverse_opinion = {
					who = ROOT
					modifier = opinion_hs_SISTER
			}
			add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
			set_mother = event_target:hs_target_default_mother
			event_target:hs_target_default_mother = {#
				death = {death_reason = death_missing}
			}
			#character_event = {
			#	id = hsadopt.015 days = 60 random = 100
			#}
		}
		random_playable_ruler = {
			create_character = {
				random_traits = no
				dynasty = 5000296
				religion = ROOT
				culture = ROOT
				age = 16
				name = "珪子"
				female = yes
				trait = honest
				trait = adventurer
				trait = falconer
				trait = hs_summoner
				trait = chaste
				trait = martial_cleric
				trait = yl_hero159
				attributes = {
					diplomacy = 10
					martial = 12
					stewardship = 12
					intrigue = 3
					learning = 9
				}
			}
			new_character = {
				hs_shouzhao_effect = yes
				character_event = {
					id = hsadopt.015 days = 60 random = 100
				}
				add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #生物操控 26
			}
		}
		random_playable_ruler = {
			create_character = {
				random_traits = no
				dynasty = 5000297
				religion = ROOT
				culture = ROOT
				age = 16
				name = "木绵季"
				female = yes
				trait = cancer
				trait = quick
				trait = duelist
				trait = temperate
				trait = humble
				trait = tough_soldier
				trait = yl_hero160
				attributes = {
					diplomacy = 10
					martial = 17
					stewardship = 7
					intrigue = 6
					learning = 6
				}
			}
			new_character = {
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
				character_event = {
					id = hsadopt.015 days = 60 random = 100
				}			
			}
			ROOT = {
				any_spouse = {
					limit = {
						trait = yl_asuna   
					}
					add_friend = new_character
				}				
			}
		}
		random_playable_ruler = {
			create_character = {
				random_traits = no
				dynasty = 5000298
				religion = ROOT
				culture = ROOT
				age = 16
				name = "诗乃"
				female = yes
				trait = quick
				trait = hunter
				trait = hs_trait_aojiao
				trait = stubborn
				trait = rough_terrain_leader
				trait = intricate_webweaver
				trait = yl_hero161
				attributes = {
					diplomacy = 10
					martial = 17
					stewardship = 7
					intrigue = 9
					learning = 12
				}
			}
			new_character = {
				hs_shouzhao_effect = yes
				character_event = {
					id = hsadopt.015 days = 60 random = 100
				}
				add_character_modifier = { name = hs_sp_abilitity_40  duration = -1 hidden = yes} #神射手 40
			}
		}
		random_playable_ruler = {
			create_character = {
				random_traits = no
				dynasty = 5000299
				religion = ROOT
				culture = ROOT
				age = 16
				name = "爱丽丝"
				female = yes
				trait = robust
				trait = duelist
				trait = hs_renxing
				trait = envious
				trait = hs_magician
				trait = scholarly_theologian
				trait = yl_hero162
				attributes = {
					diplomacy = 12
					martial = 17
					stewardship = 10
					intrigue = 12
					learning = 14
				}
			}
			new_character = {
				hs_shouzhao_effect = yes
				character_event = {
					id = hsadopt.015 days = 60 random = 100
				}
				add_character_modifier = { name = hs_magic_holy_3 duration = -1 } #神圣魔法
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
			}
		}
	}	
}
character_event = {
	id = hsadopt.015
	hide_window = yes
	
	#only_playable = yes
	only_capable = yes
	min_age = 16
	prisoner = no
	is_triggered_only = yes
	trigger = {
		ai = yes
	}	
	
	immediate = {
		if = {
			limit = {
				NOR = {
					has_lover = yes
					is_married = yes
				}
			}
			move_character = FROM		
			if = {
				limit = {
					NOR = {
						trait = yl_hero160
					}
				}
				add_friend = FROM
				opinion = { modifier = opinion_hs_koikokoro who = FROM } #添加对原角色的恋心
			}			
		}		
	}	
}
character_event = {
	id = hsadopt.018
	hide_window = yes
	is_triggered_only = yes		
	immediate = {
		if ={
			limit = {
				OR = {
					any_owned_bloodline = {
						founder = {
							OR = {
								trait = hs_trait_shouzhao
								trait = hs_trait_shouzhao_blood
							}
						}
					}
					mother_even_if_dead = {
						OR = {
							trait = hs_trait_shouzhao
							trait = hs_trait_shouzhao_blood
						}
					}
					father_even_if_dead = {
						OR = {
							trait = hs_trait_shouzhao
							trait = hs_trait_shouzhao_blood
						}
					}
				}
				NOR = {
					trait = hs_trait_shouzhao
				}
			}
			add_trait = hs_trait_shouzhao_blood
		}
	}	
}
character_event = {
	id = hsadopt.019
	hide_window = yes
	only_men = yes
	prisoner = no
	is_triggered_only = yes		
	immediate = {
		if ={
			limit = {
				is_female = no
				NOR = {
					was_conceived_a_bastard = yes
					trait = bastard
					trait = legit_bastard	
					has_global_flag = hs_yl_hero222_summoned
				}
			}
			character_event = { id = hsadopt.020 days = 1 }
		}
	}	
}
character_event = { #无职转生
	id = hsadopt.020
	hide_window = yes
	is_triggered_only = yes
	only_men = yes
	trigger = {		
		trait = genius
		trait = hs_magician_h
		NOT = { dynasty = none }
	}
	immediate = {
		random = {
		  chance = 70		
			modifier = { # Having a super-parent boosts the chance
				factor = 1.4
				OR = {
					father_even_if_dead = {
						has_top_tier_education_trait_trigger = yes
						is_attractive_trigger = yes
						has_pleasant_personality_trigger = yes
					}
					mother_even_if_dead = {
						has_top_tier_education_trait_trigger = yes
						is_attractive_trigger = yes
						has_pleasant_personality_trigger = yes
					}
				}
			}
			modifier = {
				factor = 0.3
				liege = {
					ai = no
				}
			}
			#modifier = {
			#	factor = 100
			#	liege = {
			#		has_character_flag = hs_flagdebug
			#	}
			#}
			#modifier = {
			#	factor = 0
			#	liege = {
			#		has_character_flag = hs_flagdebug
			#	}
			#}
			if = {
				limit = {
					NOR = {
						father_even_if_dead = {ai = no}
						mother_even_if_dead = {ai = no}
					}					
				}
				set_name = hero222_NAME
			}
			add_trait = hs_trait_shouzhao
			#add_character_modifier = {
			#	name = shouzhao
			#	duration = -1
			#}
			set_character_flag = is_yl_hero222
			add_trait = yl_hero222
			any_player = {
				limit = {trait = hs_summoner}
				character_event = { id = yl_summon.2 }
			}
			set_global_flag = hs_yl_hero222_summoned
			character_event = { id = hsadopt.021 years = 3 }#lqx 3
			character_event = { id = hsadopt.022 years = 5 }#xlf 5
			character_event = { id = hsadopt.023 years = 7 }#als 7
			
			character_event = { id = hsadopt.025 years = 6 }#爱夏 6诺伦 6
			
			#break = yes                                 
		}
						
	}
}
character_event = { #无职转生
	id = hsadopt.021
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	only_men = yes
	trigger = {		
		has_character_flag = is_yl_hero222
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "洛琪希"
			attributes = { intrigue = 6  martial = 17 diplomacy = 8 stewardship = 14 learning = 17 }
			dynasty = 5000311  
			culture = THIS
			religion = THIS
			female = yes
			age = 36
			trait = yl_hero223   
			trait = quick
			trait = adventurer
			trait = scholar
			trait = hs_bakemono
			trait = humble
			trait = shy
			trait = erudite
			trait = mastermind_theologian
		}				
		new_character = {
			hs_shouzhao_effect = yes
			character_event = { id = hsadopt.024 years = 13 }#恋爱
			add_character_modifier = { name = hs_magic_elemental_3 duration = -1 } #破坏术
			add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #治疗术 11
		}
		set_guardian = new_character
		change_learning = 5
		change_martial = 3
		change_intrigue = 3
		change_stewardship = 3
		add_trait = lustful
		opinion = { modifier = opinion_mentor who = new_character years = 25 } #添加对原角色的导师感情
		add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1
	}
}
character_event = { #无职转生
	id = hsadopt.022
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	only_men = yes
	trigger = {		
		has_character_flag = is_yl_hero222
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "希露菲叶特"
			attributes = { intrigue = 3  martial = 18 diplomacy = 8 stewardship = 15 learning = 15 }
			dynasty = none  
			culture = THIS
			religion = THIS
			female = yes
			age = 5
			immortal_age = 16
			trait = yl_hero224   
			trait = physician
			trait = adventurer
			trait = scholar
			trait = hs_bakemono
			trait = humble
			trait = shy
			trait = erudite
			#trait = scholarly_theologian
		}				
		new_character = {
			set_character_flag = hs_has_immortal_age
			hs_shouzhao_effect = yes
			add_friend = ROOT
			add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1
			add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #治疗术 11
			#opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
			character_event = { id = hsadopt.024 years = 10 }#恋爱10
		}
		
	}
}
character_event = { #无职转生
	id = hsadopt.023
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	#only_men = yes
	trigger = {		
		has_character_flag = is_yl_hero222
	}
	immediate = {
		random_dynasty_member = {
			limit = {
				NOR = {
					character = ROOT					
					is_parent_of = ROOT					
				}
				
			}
			preferred_limit = {
				OR = { 
					tier = KING
					tier = emperor 
				}
				age = 16
			}
			preferred_limit = {
				tier = DUKE
				age = 16
			}
			preferred_limit = {
				age = 16
				is_female = no
			}
			preferred_limit = {
				is_female = no
			}
			ROOT = {
				set_guardian = PREV
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
			}
			create_character = {
				random_traits = no historical = yes
				name = "艾莉丝"
				attributes = { intrigue = 7  martial = 19 diplomacy = 5 stewardship = 7 learning = 12 }
				dynasty = none  
				culture = THIS
				religion = THIS
				female = yes
				age = 8
				immortal_age = 16
				trait = yl_hero225   
				trait = robust
				trait = adventurer
				trait = duelist
				trait = hs_trait_aojiao
				trait = proud
				trait = wroth
				trait = brave
				#trait = scholarly_theologian
			}				
			new_character = {				
				set_father = PREV
				dynasty = PREV  
				hs_shouzhao_effect = yes
				#opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
				add_friend = ROOT
				character_event = { id = hsadopt.024 years = 8 }#恋爱8	
				set_character_flag = hs_has_immortal_age	
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #斗术	

			}
			
		}
		add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术					
	}
}
character_event = { #无职转生
	id = hsadopt.024
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	#only_men = yes
	#trigger = {		
	#	has_character_flag = is_yl_hero222
	#}
	immediate = {		
		if = {
			limit = {
				trait = yl_hero224 
			}
			add_spouse = FROM
		}
		add_lover = FROM	
		opinion = { modifier = opinion_hs_koikokoro who = FROM } #添加对原角色的恋心
		reverse_opinion = {
			who = FROM
			modifier = opinion_hs_koikokoro
		}#被原角色添加恋心
		
	}
}
character_event = { #无职转生
	id = hsadopt.025
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	#only_men = yes
	trigger = {		
		has_character_flag = is_yl_hero222
	}
	immediate = {
		father = {
			save_event_target_as = event_target:yl_hero222_father
			random_opinion_modifier_target = {
				limit = {
					NOR = {
						character = ROOT					
						is_parent_of = ROOT					
					}
					is_female = yes
					practical_age < 45
				}
				preferred_limit = {
					is_lover = event_target:yl_hero222_father
				}
				preferred_limit = {
					OR = {
						is_married = event_target:yl_hero222_father
						is_consort = event_target:yl_hero222_father
					}
				}
				preferred_limit = {
					opinion = {
						who = event_target:yl_hero222_father
						value >= 65
					}
				}
				create_character = {
					random_traits = no historical = yes
					name = "爱夏"
					attributes = { intrigue = 5  martial = 4 diplomacy = 8 stewardship = 7 learning = 4 }
					dynasty = THIS  
					culture = THIS
					religion = THIS
					female = yes
					age = 0
					immortal_age = 16
					trait = yl_hero222_sub1   
					trait = genius
					trait = hs_maid
					#trait = scholarly_theologian
				}				
				new_character = {				
					set_father = PREVPREV
					set_mother = PREV
					hs_shouzhao_effect = yes				
					opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
					set_character_flag = hs_has_immortal_age		
	
				}
			}
			
			
		}
		mother = {
			create_character = {
				random_traits = no historical = yes
				name = "诺伦"
				attributes = { intrigue = 4  martial = 6 diplomacy = 4 stewardship = 4 learning = 8 }
				dynasty = event_target:yl_hero222_father  
				culture = THIS
				religion = THIS
				female = yes
				age = 0
				immortal_age = 16
				trait = yl_hero222_sub2   
				trait = hs_magician_l
				#trait = scholarly_theologian
			}				
			new_character = {				
				set_father = event_target:yl_hero222_father
				set_mother = PREV
				hs_shouzhao_effect = yes
				
				set_character_flag = hs_has_immortal_age		

			}

		}				
	}
}
character_event = {#异世界舅舅
	id = hsadopt.030
	hide_window = yes
	has_character_flag = hs_is_yl_hero421
	mean_time_to_happen = {
		years = 2
		modifier = {
			factor = 10
			has_character_modifier = yl_hero421_event_fail
		}
		modifier = {
			factor = 0.5
			has_character_modifier = yl_hero421_event_success
		}
		modifier = {
			factor = 0.7		
			liege = {
				opinion = {
					who = ROOT
					value = 50
				}
			}
		}
		modifier = {
			factor = 0.5		
			liege = {
				opinion = {
					who = ROOT
					value = 100
				}
			}
		}
		modifier = {
			factor = 0.3
			liege = {
				is_friend = ROOT
			}
		}
	}
	trigger = {
		NOT = {
			has_global_flag = hs_adopt030_event3
		}
		in_command = no
		prisoner = no
		is_incapable = no
		independent = no
	}
	immediate = {
		save_event_target_as = hs_target_yl_hero421
		liege = {
			character_event = {id = hsadopt.031}
		}
		
	}
}
character_event = {#异世界舅舅
	id = hsadopt.031
	desc = "EVTDESC_hsadopt031"
	picture = "GFX_evt_adopt031"
	is_triggered_only = yes
	
	option = {
		name = EVTOPT_adopt030A
		add_character_modifier = {
			name = yl_hero421_event_success
			duration = 700
			hidden = yes
		}
		hidden_effect = {
			random_list = {
				5 = {					
					change_variable = {which = "hs_hsadopt031_exp" value = 2}
					opinion = {
						who = FROM
						modifier = opinion_budding_friendship
					}
					character_event = {id = hsadopt.032}
				}
				1 = {
					modifier = {
						factor = 2
						is_friend = FROM
					}
					change_variable = {which = "hs_hsadopt031_exp" value = 3}
					character_event = {id = hsadopt.033}
				}
				1 = {
					modifier = {
						factor = 0
						is_friend = FROM
					}
					add_friend = FROM
				}
				10 = {
					modifier = {
						factor = 0.5
						reverse_opinion  = {
							who = from
							value = 80
						}
					}
				}
			}
		}
		
	}
	option = {
		name = EVTOPT_adopt030C
		trigger = {
			OR = {
				trait = gamer
				trait = hs_otaku
			}
		}
		#tooltip_info = gamer
		add_character_modifier = {
			name = yl_hero421_event_success
			duration = 700
			hidden = yes
		}
		hidden_effect = {
			random_list = {
				10 = {					
					change_variable = {which = "hs_hsadopt031_exp" value = 2}
					opinion = {
						who = FROM
						modifier = opinion_budding_friendship
					}
					character_event = {id = hsadopt.032}
				}
				6 = {
					modifier = {
						factor = 2
						is_friend = FROM
					}
					change_variable = {which = "hs_hsadopt031_exp" value = 3}
					character_event = {id = hsadopt.033}
				}
				2 = {
					modifier = {
						factor = 0
						is_friend = FROM
					}
					add_friend = FROM
				}
			}
		}
		
	}
	option = {
		name = EVTOPT_adopt030B
		add_character_modifier = {
			name = yl_hero421_event_fail
			duration = 1000
			hidden = yes
		}
	}
	after = {
		if = {
			limit = {
				check_variable = {which = "hs_hsadopt031_exp" value = 5}
			}
			character_event = {id = hsadopt.034}
		}

	}
}
character_event = {#异世界舅舅
	id = hsadopt.032
	desc = "EVTDESC_hsadopt032"
	picture = "GFX_evt_adopt031"
	is_triggered_only = yes
	notification = yes
	option = {
		name = EVTOPT_adopt030A				
	}
}
character_event = {#异世界舅舅
	id = hsadopt.033
	desc = "EVTDESC_hsadopt033"
	picture = "GFX_evt_adopt031"
	is_triggered_only = yes
	
	option = {
		name = EVTOPT_adopt033A	
		scaled_wealth = {
			value = 0.1
			min = 150
			max = 1000
		}
	}
}
character_event = {#异世界舅舅
	id = hsadopt.034
	desc = "EVTDESC_hsadopt034"
	picture = "GFX_evt_adopt031"
	is_triggered_only = yes

	option = {
		name = EVTOPT_adopt034A	
		scaled_wealth = {
			value = -0.1
			max = -1000
			min = -150
		}
		if = {
			limit = {
				NOT = { has_global_flag = hs_adopt030_event1 }
			}
			create_character = {
				random_traits = no historical = yes
				name = "苏翠路奇拉泽加鲁涅尔鲁蕾娅阿格兰泽尔加"
				attributes = { intrigue = 6 martial = 14 diplomacy = 7 stewardship = 11 learning = 11 }
				dynasty = 5000367 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 16
				
				trait = yl_hero422
				trait = born_in_the_purple
				trait = fair
				trait = shrewd
				trait = kind
				trait = adventurer
				trait = hs_bakemono
				trait = hs_trait_aojiao
				trait = lustful
				trait = just
				trait = brave
				trait = skilled_tactician
			}				
			new_character = {
				hs_shouzhao_effect = yes
				add_friend = event_target:hs_target_yl_hero421					
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #斗术
				add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #破坏术
				add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #飞行 17
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_yl_hero421	 } #添加对原角色的恋心			
			}
			set_global_flag = hs_adopt030_event1
		}
		else_if = {
			limit = {
				has_global_flag = hs_adopt030_event1
				NOT = { has_global_flag = hs_adopt030_event2 }
			}
			create_character = {
				random_traits = no historical = yes
				name = "梅贝露"
				attributes = { intrigue = 6 martial = 11 diplomacy = 7 stewardship = 8 learning = 8 }
				dynasty = 5000368 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 16
				
				trait = yl_hero423
				trait = hs_otaku
				trait = hedonist
				trait = slothful
				trait = proud
				trait = hs_magician
				trait = trusting
				trait = content
				trait = indulgent_wastrel
			}				
			new_character = {
				add_artifact = bj_yl_hero423
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
				add_character_modifier = { name = hs_magic_elemental_1 duration = -1 } #破坏术
				add_friend = event_target:hs_target_yl_hero421	
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_yl_hero421	 } #添加对原角色的恋心			
			}
			set_global_flag = hs_adopt030_event2
		}
		else_if = {
			limit = {
				has_global_flag = hs_adopt030_event2
				NOT = { has_global_flag = hs_adopt030_event3 }
			}
			create_character = {
				random_traits = no historical = yes
				name = "艾丽西亚"
				attributes = { intrigue = 6 martial = 11 diplomacy = 13 stewardship = 11 learning = 14 }
				dynasty = 5000369 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 16
				
				trait = yl_hero424
				trait = adventurer
				trait = physician
				trait = hs_magician
				trait = kind
				trait = humble
				trait = charitable
				trait = just
				trait = martial_cleric
			}				
			new_character = {
				hs_shouzhao_effect = yes
				add_friend = event_target:hs_target_yl_hero421	
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_yl_hero421	 } #添加对原角色的恋心
				event_target:hs_target_yl_hero421 = {
					clr_character_flag = hs_is_yl_hero421
				}
				add_character_modifier = { name = hs_magic_holy_1 duration = -1 } #神圣魔法
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #治疗术 11
				add_character_modifier = { name = hs_sp_abilitity_12  duration = -1 hidden = yes} #神圣祝福  12
				add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #净化术  13
				add_character_modifier = { name = hs_sp_abilitity_44  duration = -1 hidden = yes} #强运 44


			}
			set_global_flag = hs_adopt030_event3
		}
		hidden_effect = {
			change_variable = {which = "hs_hsadopt031_exp" value = -5}
		}
	}
	option = {
		name = EVTOPT_adopt034B	
	}

}

character_event = {
	id = hsadopt.041
	hide_window = yes
	is_triggered_only = yes

	immediate = {	
		liege = {character_event = { id = hsadopt.040 }	}		
	}
}

character_event = {#老师
	id = hsadopt.040
	desc = "EVTDESC_hsadopt040"
	picture = "GFX_evt_hstls160"
	is_triggered_only = yes
	immediate = {
		create_character = {
			random_traits = no
			dynasty = 5100292
			religion = ROOT
			culture = yamato
			age = 22
			name = "真冬"
			female = yes
			trait = fair
			trait = hs_trait_aojiao
			trait = uncouth
			trait = proud
			trait = diligent
			trait = just
			trait = administrator
			trait = martial_cleric
			trait = yl_hero425
			attributes = {
				diplomacy = 10
				martial = 9
				stewardship = 12
				intrigue = 8
				learning = 14
			}
		}
		new_character = {			
			hs_shouzhao_effect = yes
		}
	}
	option = {
		name = EVTOPT_adopt040A
		scaled_wealth = {
			value = -0.01
			min = -5
			max = -20
		}
		new_character = {
			give_minor_title = title_teacher
		}
	}
	option = {
		name = EVTOPT_adopt040B
		scaled_wealth = {
			value = -0.02
			min = -10
			max = -40
		}
		piety = -10
	}
}


character_event = { #推子起始
	id = hsadopt.050
	hide_window = yes
	
	#only_playable = yes
	#only_capable = yes
	#min_age = 16
	only_women = yes
	is_triggered_only = yes
	trigger = {
		trait = hs_idol
	}	
	immediate = {
		create_character = {
			random_traits = no
			dynasty = 5000383
			religion = ROOT
			culture = yamato
			age = 2
			name = "爱久爱海"
			female = no
			trait = fair
			trait = scholar
			trait = chaste
			trait = twin
			trait = hs_otaku
			trait = yl_hero437
			attributes = {
				diplomacy = 11
				martial = 6
				stewardship = 13
				intrigue = 14
				learning = 14
			}
		}
		new_character = {			
			hs_shouzhao_effect = yes
			set_mother = PREV
			save_event_target_as = hs_target_yl_hero437
			opinion = { modifier = opinion_loyal_servant who = PREV } #
			character_event = { id = hsadopt.052 months = 20 random = 4 }#加奈
			create_character = {
				random_traits = no
				dynasty = 5000383
				religion = ROOT
				culture = yamato
				age = 2
				name = "露比"
				female = yes
				trait = fair
				trait = zealous
				trait = paranoid
				trait = twin
				trait = hs_otaku
				trait = yl_hero438
				attributes = {
					diplomacy = 7
					martial = 4
					stewardship = 6
					intrigue = 8
					learning = 7
				}
			}
			new_character = {						
				set_mother = PREVPREV
				opinion = { modifier = opinion_loyal_servant who = PREVPREV } #
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #添加对原角色的恋心
				opinion = { modifier = opinion_hs_SISTER who = PREV }#兄弟姐妹
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_SISTER
				}
				set_variable = { which = hs_idol_popularity value = 45 }				
				set_variable = { which = hs_idol_exp value = 10 }
				hs_shouzhao_effect = yes
			}
			
		}
		
		liege = {
			character_event = { id = hsadopt.051 }			
		}	
	}	
}
character_event = {#推子开始
	id = hsadopt.051
	desc = "EVTDESC_hsadopt051"
	picture = "GFX_evt_hsadopt051"
	is_triggered_only = yes
	immediate = {
		
	}
	option = {
		name = EVTOPT_adopt051A
		scaled_wealth = {
			value = -0.05
			min = -15
			max = -200
		}
	}
	option = {
		name = EVTOPT_adopt051B
		piety = -10
		FROM = {
			remove_trait = hs_idol
			clr_character_flag = hs_is_a_idol
			if = {
				limit = {
					has_ambition = obj_be_idolmaster
				}
				cancel_ambition = yes
			}	
			set_character_flag = hs_idol_gradud		
		}
	}
}
character_event = { #推子起始
	id = hsadopt.052
	hide_window = yes	
	is_triggered_only = yes
	immediate = {
		random_realm_character = {
			limit = {
				is_ruler = yes
			}
			create_character = {
				random_traits = no
				dynasty = 5000384
				religion = ROOT
				culture = yamato
				age = 4
				name = "加奈"
				female = yes
				trait = quick
				trait = groomed
				trait = cynical
				trait = diligent
				trait = hs_idol
				trait = yl_hero439
				attributes = {
					diplomacy = 7
					martial = 2
					stewardship = 9
					intrigue = 3
					learning = 10
				}
			}
			new_character = {						
				add_friend = event_target:hs_target_yl_hero437
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_yl_hero437 } #
				save_event_target_as = hs_target_yl_hero439
				set_variable = { which = hs_idol_popularity value = 45 }				
				set_variable = { which = hs_idol_exp value = 25 }
				hs_shouzhao_effect = yes
			}
		}
		liege = {character_event = { id = hsadopt.054 }  }
		character_event = { id = hsadopt.053 months = 135 random = 10 }
	}	
}
character_event = { #推子起始
	id = hsadopt.053
	hide_window = yes	
	is_triggered_only = yes
	immediate = {
		random_realm_character = {
			limit = {
				is_ruler = yes
			}
			create_character = {
				random_traits = no
				dynasty = 5000385
				religion = ROOT
				culture = yamato
				age = 16
				name = "茜"
				female = yes
				trait = quick
				trait = groomed
				trait = chaste
				trait = zealous
				trait = stubborn
				trait = hs_idol
				trait = yl_hero440
				trait = grey_eminence
				attributes = {
					diplomacy = 10
					martial = 4
					stewardship = 11
					intrigue = 13
					learning = 14
				}
			}
			new_character = {						
				add_friend = event_target:hs_target_yl_hero437
				add_friend = event_target:hs_target_yl_hero439
				save_event_target_as = hs_target_yl_hero440
				opinion = { modifier = opinion_hs_koikokoro who = event_target:hs_target_yl_hero437 } #
				set_variable = { which = hs_idol_popularity value = 40 }				
				set_variable = { which = hs_idol_exp value = 35 }
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_42  duration = -1 hidden = yes} #推理 42 A
			}
		}
		liege = {character_event = { id = hsadopt.055 }  }
	}	
}
character_event = {#推子加奈
	id = hsadopt.054
	desc = "EVTDESC_hsadopt054"
	picture = "GFX_evt_hsadopt051"
	is_triggered_only = yes
	immediate = {
		
	}
	option = {
		name = EVTOPT_adopt054A
		scaled_wealth = {
			value = -0.05
			min = -15
			max = -200
		}
		event_target:hs_target_yl_hero439 = { move_character = ROOT }
	}
	option = {
		name = EVTOPT_adopt054B
	}
}

character_event = {#推子akane
	id = hsadopt.055
	desc = "EVTDESC_hsadopt055"
	picture = "GFX_evt_hsadopt051"
	is_triggered_only = yes
	immediate = {
		
	}
	option = {
		name = EVTOPT_adopt054A
		scaled_wealth = {
			value = -0.05
			min = -15
			max = -200
		}
		event_target:hs_target_yl_hero440 = { move_character = ROOT }
	}
	option = {
		name = EVTOPT_adopt054B
	}
}

character_event = { #推子终末
	id = hsadopt.056
	hide_window = yes
	only_women = yes
	is_triggered_only = yes
	trigger = {
		trait = hs_idol
	}	
	immediate = {		
		if = {
			limit = {
				liege = {
					OR = {
						is_lover = ROOT
						is_married = ROOT
					}
					is_incapable = no
				}				
			}
			liege = {
				character_event = { id = hsadopt.057 }			
			}
		}
		else = {
			random_child = {
				limit = {
					trait = yl_hero438
				}
				add_trait = hs_idol
			}
			death = {
				death_reason = death_rabble
			} 
		}	
	}	
}

character_event = {#推子终末
	id = hsadopt.057
	desc = "EVTDESC_hsadopt057"
	picture = "GFX_evt_hsadopt051"
	is_triggered_only = yes
	immediate = {
		
	}
	option = {
		name = EVTOPT_adopt057A		
		FROM = {
			add_trait = severely_injured
		}
		random_list = {
			40 = {
				trigger = {
					combat_rating = 50
				}
				modifier = {
					factor = 2
					combat_rating = 75
				}
				modifier = {
					factor = 2
					combat_rating = 100
				}
				custom_tooltip = {
					text = EVTOPT_adopt057A_tooltip				
				}
			}
			20 = {
				add_trait = wounded
			}
			10 = {
				add_trait = severely_injured
			}
			5 = {
				death = {
					death_reason = death_rabble
				} 
			}
		}
		
	}
	option = {
		name = EVTOPT_adopt057B
		piety = -10
		add_trait = stressed
		hidden_effect = {
			FROM = {
				random_child = {
					limit = {
						trait = yl_hero438
					}
					add_trait = hs_idol
				}
				death = {
					death_reason = death_rabble
				} 
			}
			
		}
	}
}


character_event = {
	id = hsadopt.1000
	hide_window = yes
	
	only_playable = yes
	religion_group = christian
	only_independent = yes
	only_capable = yes
	min_age = 16
	prisoner = no
	has_character_flag = is_charlemagne

	trigger = {
		has_dlc = "Charlemagne"
		NOT = {
			has_game_rule = {
				name = charlemagne_story
				value = off
			}
		}
		has_game_rule = {
			   name = hs_hischange_gamerules
			   value = yes
		}
		NOT = { year = 780 }
		NOT = { has_character_flag = charlemagne_changed }
	}
	
	mean_time_to_happen = {
		days = 5
	}
	
	immediate = {
		set_character_flag = charlemagne_changed
		while = {
			limit = {
				age =17 
			}    
			add_age = -1
		}
		add_trait = genius
		narrative_event = { id = hsadopt.1050 days = 3  }
	}	
}
narrative_event = {
	id = hsadopt.1050
	title = EVTTITLE_CM_1050
	desc = EVTDESC_CM_1050
	picture = GFX_evt_emissary

	capable_only = yes
	min_age = 16
	only_playable = yes
	prisoner = no
	only_independent = yes
	religion_group = christian
	has_character_flag = is_charlemagne
	is_triggered_only = yes
	trigger = {
		has_dlc = "Charlemagne"
		NOT = {
			has_game_rule = {
				name = charlemagne_story
				value = off
			}
		}
		NOT = { has_global_flag = roland_spawned }
	}
	
	immediate = {
		set_global_flag = roland_spawned
		ROOT = {
			capital_scope = {
				ROOT ={								
					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 = yes
						maintenance_multiplier = 0
					}
				}
			}
		}
	}
	
	option = {
		name = EVTOPTA_CM_1050
		custom_tooltip = { text = roland_arrives }
		hidden_tooltip = {
			create_character = {
				random_traits = no
				dynasty = 726
				religion = ROOT
				culture = breton
				age = 16
				name = "罗兰"
				female = yes
				trait = honest
				trait = brave
				trait = skilled_tactician
				trait = strong
				trait = fair
				trait = aggressive_leader
				trait = yl_hissub2
				attributes = {
					diplomacy = 12
					martial = 17
					stewardship = 8
					intrigue = 5
					learning = 8
				}
			}
			new_character = {
				set_character_flag = is_roland
				set_character_flag = hero_knight
				opinion = {
					modifier = opinion_loyal_servant
					who = ROOT
					years = 100
				}
				hs_shouzhao_effect = yes
				character_event = { id = CM.1051 days = 350 }
				add_character_modifier = {
                    name = hs_jd_strategist
                    duration = -1
                }
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
				add_character_modifier = { name = hs_sp_abilitity_25  duration = -1 hidden = yes} #屏障 25
			}
			create_character = {
				random_traits = no
				dynasty = 679
				religion = ROOT
				culture = ROOT
				age = 16
				name = "布拉达曼特"
				female = yes
				trait = honest
				trait = brave
				trait = sturdy
				trait = chaste
				trait = just
				trait = inspiring_leader
				trait = shieldmaiden
				trait = tough_soldier
				trait = yl_hissub22
				attributes = {
					diplomacy = 10
					martial = 15
					stewardship = 9
					intrigue = 5
					learning = 8
				}
			}
			new_character = {
				#set_character_flag = is_roland
				set_character_flag = hero_knight
				opinion = {
					modifier = opinion_loyal_servant
					who = ROOT
					years = 100
				}
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
				hs_shouzhao_effect = yes
			}
			c_91506 = {
				add_trait = nun
				add_trait = brave
				add_trait = scholarly_theologian
				add_trait = strong
				add_trait = hs_magician_h
				add_trait = aggressive_leader
				add_trait = yl_hissub21
				remove_trait = martial_cleric
				opinion = {
					modifier = opinion_loyal_servant
					who = ROOT
					years = 100
				}
				set_character_flag = hero_knight
				set_gender = female
				add_character_modifier = { name = hs_magic_holy_3 duration = -1 } #神圣魔法
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
				add_character_modifier = { name = hs_magic_enhance_2 duration = -1 } #强化术
				add_character_modifier = { name = hs_sp_abilitity_11  duration = -1 hidden = yes} #治疗术 11
				add_character_modifier = { name = hs_sp_abilitity_12  duration = -1 hidden = yes} #神圣祝福  12
				add_character_modifier = { name = hs_sp_abilitity_13  duration = -1 hidden = yes} #净化术  13
				hs_shouzhao_effect = yes
				set_defacto_liege = root
				while = {
					limit = {
						age =17 
					}    
					add_age = -1
				}
			}
			#create_character = {
			#	random_traits = no
			#	dynasty = none
			#	religion = catholic
			#	culture = ROOT
			#	age = 16
			#	name = "托宾"
			#	female = yes
			#	trait = nun
			#	trait = brave
			#	trait = scholarly_theologian
			#	trait = strong
			#	trait = hs_magician_h
			#	trait = aggressive_leader
			#	trait = yl_hissub21
			#	attributes = {
			#		diplomacy = 10
			#		martial = 17
			#		stewardship = 8
			#		intrigue = 5
			#		learning = 15
			#	}
			#}
			#new_character = {
			#	
			#	#add_character_modifier = {
            #    #    name = hs_jd_strategist
            #    #    duration = -1
            #    #}
			#}
			set_global_flag = ogier_spawned
			create_character = {
				random_traits = no
				dynasty = 102013
				religion = norse_pagan
				culture = norse
				age = 16
				female = yes
				trait = humble
				trait = brave
				trait = skilled_tactician
				trait = patient
				trait = unyielding_leader
				trait = holy_warrior
				trait = yl_hissub20
				attributes = {
					diplomacy = 7
					martial = 13
					stewardship = 10
					intrigue = 7
					learning = 7
				}
			}
			new_character = {
				set_name = Ogier
				set_character_flag = is_ogier
				set_character_flag = hero_knight
				opinion = {
					modifier = opinion_loyal_servant
					who = ROOT
					years = 100
				}
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术
				set_father = c_194036
				hs_shouzhao_effect = yes
				#add_character_modifier = {
                #    name = hs_jd_strategist
                #    duration = -1
                #}
			}
			create_character = {
				random_traits = no
				dynasty = random
				religion = ROOT
				culture = saxon
				age = 16
				female = no
				name = "阿斯托尔福"
				trait = kind
				trait = hedonist
				trait = indulgent_wastrel
				trait = gregarious
				trait = fair
				trait = patient
				trait = yl_hissub3
				attributes = {
					diplomacy = 13
					martial = 13
					stewardship = 10
					intrigue = 12
					learning = 10
				}
			}
			new_character = {
				opinion = {
					modifier = opinion_loyal_servant
					who = ROOT
					years = 100
				}
				add_character_modifier = {
					name = zhanlizheng40
					duration = -1
					hidden = yes
				}
				set_character_flag = hero_knight
				#add_character_modifier = {
                #    name = hs_jd_strategist
                #    duration = -1
                #}
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_magic_enhance_1 duration = -1 } #强化术
			}
			create_character = {
				random_traits = no
				dynasty = random
				religion = ROOT
				culture = german
				age = 16
				female = no
				name = "齐格飞"
				trait = experimenter
				trait = stubborn
				trait = tough_soldier
				trait = strong
				trait = hunter
				trait = yl_hissub4
				attributes = {
					diplomacy = 10
					martial = 16
					stewardship = 8
					intrigue = 7
					learning = 10
				}
			}
			new_character = {
				opinion = {
					modifier = opinion_loyal_servant
					who = ROOT
					years = 100
				}
				#add_character_modifier = {
            	#    name = hs_jd_strategist
            	#    duration = -1
            	#}
				set_character_flag = hero_knight
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #斗术
				hs_shouzhao_effect = yes
			}
		}
		
	}
}
character_event = {
	id = hsadopt.1100
	hide_window = yes
	
	only_playable = yes
	only_independent = yes
	only_capable = yes
	min_age = 16
	prisoner = no
	has_character_flag = is_temujin

	trigger = {
		NOT = { has_character_flag = temujin_changed }
		has_game_rule = {
			   name = hs_hischange_gamerules
			   value = yes
		}
	}
	
	mean_time_to_happen = {
		days = 5
	}
	
	immediate = {
		set_character_flag = temujin_changed
		set_gender = female
		add_trait = yl_hissub5
		while = {
			limit = {
				age =17 
			}    
			add_age = -1
		}
		add_trait = hs_trait_shouzhao
		#add_character_modifier = {
		#	name = shouzhao
		#	duration = -1
		#}
		add_character_modifier = {
			name = hs_jd_strategist
			duration = -1
		}
		add_character_modifier = {
			name = hs_jd_ruler
			duration = -1
		}
	}	
}

character_event = {
	id = hsadopt.1200
	hide_window = yes
	is_triggered_only = yes
	ai = no
	only_playable = yes
	trigger = {
		is_save_game = no
		NOR = { 
			has_global_flag = hs_mari_changed 
			has_global_flag = hs_luce_changed
		}
		has_game_rule = {
			name = hs_hischange_gamerules
			value = yes
		}
		ai = no	
	}
	immediate = {	
		random_list = {
			20 = {
				trigger = {
					NOT = {
						has_global_flag = hs_luce_changed
					}
				}
				k_papal_state = {
					holder_scope = {
						create_character = {
							random_traits = yes
							dynasty = none
							religion = catholic
							culture = THIS
							age = 16
							female = yes
							name = "Luce"
							trait = yl_hero611
							trait = zealous
							trait = pilgrim
							trait = scholarly_theologian
							attributes = {
								diplomacy = 14
								martial = 2
								stewardship = 5
								intrigue = 5
								learning = 14
							}
						}
						new_character = {
							set_global_flag = hs_luce_changed
						}
					}
				}
					
			}
			20 = {
				trigger = {
					NOT = {
						has_global_flag = hs_mari_changed
					}
				}
				set_global_flag = hs_mari_changed
				if = {
					limit = {
						d_osterreich = { has_holder = yes }
					}
					d_osterreich = {
						holder_scope = {
							create_character = {
								random_traits = yes
								dynasty = 51
								religion = catholic
								culture = THIS
								immortal_age = 16
								age = 14
								female = yes
								name = "玛丽 安托瓦内特"
								trait = fair
								trait = born_in_the_purple
								trait = seductress
								trait = groomed
								trait = yl_hero157
								attributes = {
									diplomacy = 14
									martial = 2
									stewardship = 4
									intrigue = 5
									learning = 9
								}
							}
							new_character = {			
								set_character_flag = hs_has_immortal_age
								hs_shouzhao_effect = yes
								if = {
									limit = {
										k_france = {
											holder_scope = {
												age = 10
												is_female = no
												is_married = no
											}
										}
									}
									k_france = {
										holder_scope = {
											add_spouse = new_character
										}
									}
									#break = yes
								}
								else_if = {
									limit = {
										k_france = {
											holder_scope = {
												any_child = {
													age = 10
													is_female = no
													is_married = no
												}
											}
										}
									}
									k_france = {
										holder_scope = {
											random_child = {
												limit = {
													age = 10
													is_female = no
													is_married = no
												}
												add_spouse = new_character
											}
										}
									}
								}		
								set_global_flag = hero392_summoned				
								create_character = {
									random_traits = no
									attributes = {
										martial=17
										diplomacy=11
										intrigue= 11
										stewardship=7
										learning = 13
									}
									name="迪昂"
									religion = THIS
									culture = THIS
									dynasty = 5100268
									female = no
									age = 16
		
									trait = yl_hero392  
									trait = fair
									trait = gladiator
									trait = seducer
									trait = charitable
									trait = temperate
									trait = defensive_leader
									trait = tough_soldier
								}
								new_character = {							
									hs_shouzhao_effect = yes
									add_friend = PREV
									opinion = { modifier = opinion_hs_keyiyaku who = PREV } #契约者
									reverse_opinion = {
										who = PREV
										modifier = opinion_hs_keyiyaku #契约者
									}
									add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
								}						
							}
							
							
						}
					}
				}
				else = {
					k_papal_state = {
						holder_scope = {
							create_character = {
								random_traits = yes
								dynasty = 51
								religion = catholic
								culture = THIS
								immortal_age = 16
								age = 14
								female = yes
								name = "玛丽 安托瓦内特"
								trait = fair
								trait = born_in_the_purple
								trait = seductress
								trait = groomed
								trait = yl_hero157
								attributes = {
									diplomacy = 14
									martial = 2
									stewardship = 4
									intrigue = 5
									learning = 9
								}
							}
							new_character = {			
								set_character_flag = hs_has_immortal_age
								hs_shouzhao_effect = yes
								if = {
									limit = {
										k_france = {
											holder_scope = {
												age = 10
												is_female = no
												is_married = no
											}
										}
									}
									k_france = {
										holder_scope = {
											add_spouse = new_character
										}
									}
									#break = yes
								}
								else_if = {
									limit = {
										k_france = {
											holder_scope = {
												any_child = {
													age = 10
													is_female = no
													is_married = no
												}
											}
										}
									}
									k_france = {
										holder_scope = {
											random_child = {
												limit = {
													age = 10
													is_female = no
													is_married = no
												}
												add_spouse = new_character
											}
										}
									}
								}		
								set_global_flag = hero392_summoned				
								create_character = {
									random_traits = no
									attributes = {
										martial=17
										diplomacy=11
										intrigue= 11
										stewardship=7
										learning = 13
									}
									name="迪昂"
									religion = THIS
									culture = THIS
									dynasty = 5100268
									female = no
									age = 16
		
									trait = yl_hero392  
									trait = fair
									trait = gladiator
									trait = seducer
									trait = charitable
									trait = temperate
									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 } #斗术
									opinion = { modifier = opinion_hs_keyiyaku who = PREV } #契约者
									reverse_opinion = {
										who = PREV
										modifier = opinion_hs_keyiyaku #契约者
									}
								}						
							}
								
								
							
						}
					}
				}
			}			
		}
		
	}
}
character_event = {
	id = hsadopt.1300
	hide_window = yes
	is_triggered_only = yes
	ai = no
	only_playable = yes
	trigger = {
		#is_save_game = no
		NOT = { has_global_flag = hs_yl_hero346_sommoned }		
		ai = no	
		year = 1195
		NOT = {
			year = 1250
		}
	}
	immediate = {	
		set_global_flag = hs_yl_hero346_sommoned
		random_independent_ruler = {
			preferred_limit = {
				culture = frankish
			}
			preferred_limit = {
				any_realm_lord = {
					culture = frankish
				}
			}
			create_character = {
				name="莉洁特"
				female=yes
				dynasty=5000336					
				religion="cathar"
				culture="frankish"
				trait = chaste
				trait = craven
				trait = groomed
				trait = kind
				trait = shy
				#trait = martial_cleric
				trait = yl_hero345
				age = 0				
				attributes = {
					martial=5
					diplomacy=12
					intrigue=5
					stewardship=10	
					learning = 12
				}
			}
			new_character = {			
				add_character_modifier = {
					name = hs_relife_modifier 
					duration = -1
					hidden = yes
				}		
			}
		}
	}
}
#character_event = {
#	id = hsadopt.1400
#	hide_window = yes
#	is_triggered_only = yes
#	ai = no
#	only_playable = yes
#	trigger = {
#		
#	}
#	immediate = {	
#		#set_global_flag = hs_yl_hero346_sommoned
#		if = {
#			limit = {
#				has_global_flag = hs_yl_hero346_sommoned
#			}
#			piety = 1000
#		}
#		
#	}
#}
character_event = {
	   id = hsadopt.1500
	   hide_window = yes
	   is_triggered_only = yes
	   trigger = {
		  #trait = hs_trait_shouzhao
		  OR = {
			trait = yl_hero356
			trait = yl_hero358
			trait = yl_hero359
		  }
	   }
	   immediate = {
			if = {
							limit = {
										trait = yl_hero356
							}
							remove_trait = yl_hero356
							add_trait = yl_hero357
			}
			if = {
							limit = {
										trait = yl_hero358
							}
							remove_trait = yl_hero358
							add_trait = yl_xinyi
			}
			if = {
							limit = {
										trait = yl_hero359
							}
							remove_trait = yl_hero359
							add_trait = yl_hero360
			}
	   }
}


character_event = {#三藏法师
	id = hsadopt.1600	
	#hide_window = yes
	desc = EVTDESC_hsadopt_1600	
	picture = GFX_evt_merchant_caravan	
	min_age = 16
	prisoner = no
	religion = buddhist
	trigger = {		
		NOT = {religion_authority = 0.5}
		higher_tier_than = DUKE
		is_incapable = no
		NOT = {has_global_flag = hs_yl_hero388_summoned}
	}
	
	mean_time_to_happen = {
		years = 95
		modifier = {
			factor = 0.85
			NOT = { religion_authority = 0.1 }
		}
		modifier = {
			factor = 0.95
			NOT = { religion_authority = 0.2 }
		}
		modifier = {
			factor = 0.95
			NOT = { religion_authority = 0.3 }
		}
		modifier = {
			factor = 0.95
			NOT = { religion_authority = 0.4 }
		}
		modifier = {
			factor = 0.6
			has_global_flag = yl_hissub19_summoned
		}
	}
	
	immediate = {
		set_global_flag = hs_yl_hero388_summoned			
	}
	option = {
		name = EVTOPT_adopt1600A
		scaled_wealth = {
			value = -0.5
			min = -1500
			max = -3000
		}
		prestige = 250
		piety = 500
		religion_authority = {
			modifier = strengthened_religion
			years = 50
		}
		religion_authority = {
			modifier = successful_heretic_dialogue
			years = 50
		}
	}
	option = {
		name = EVTOPT_adopt1600B
		scaled_wealth = {
			value = -1
			min = -2000
			max = -4000
		}
		prestige = 500
		piety = 1000
		religion_authority = {
			modifier = strengthened_religion
			years = 50
		}
		religion_authority = {
			modifier = successful_heretic_dialogue
			years = 50
		}
		religion_authority = {
			modifier = strengthened_religion
			years = 50
		}
		religion_authority = {
			modifier = successful_heretic_dialogue
			years = 50
		}
		hidden_effect = {
			create_character = {
				random_traits = no historical = yes
				name = "祎"
				attributes = { intrigue = 6 martial = 12 diplomacy = 16 stewardship = 13 learning = 18 }
				dynasty = 5100293 
				culture = han
				religion = buddhist
				female = yes
				age = 16
				trait = yl_hero388
				trait = fair
				trait = erudite
				trait = theologian
				trait = hs_kami
				trait = chaste
				trait = humble
				trait = diligent
				trait = just
				trait = kind
				trait = bhikkhuni
				trait = mastermind_theologian
			}				
			new_character = {
				hs_shouzhao_effect = yes
				give_nickname = nick_the_hs237
				if = {
					limit = {any_player = {trait = hs_summoner}}
					any_player = {character_event = {id = yl_summon.2}}
				}
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
				add_character_modifier = { name = hs_magic_enhance_2 duration = -1 } #强化术
				create_character = {
					random_traits = no historical = yes
					name = "悟空"
					attributes = { intrigue = 10 martial = 17 diplomacy = 6 stewardship = 8 learning = 12 }
					dynasty = 5100294 
					culture = han
					religion = buddhist
					female = yes
					age = 16
					trait = yl_hero389
					trait = strong
					trait = quick
					trait = hs_kami
					trait = adventurer
					trait = proud
					trait = hs_trait_aojiao
					trait = deceitful
					trait = brave
					trait = bhikkhuni
					trait = skilled_tactician
				}				
				new_character = {
					hs_shouzhao_effect = yes
					give_nickname = nick_the_hs238
					add_artifact = bj_yl_hero388
					opinion = { modifier = opinion_hs_keyiyaku who = PREV } #契约者
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_keyiyaku #契约者
					}
					add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #破坏术
					add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #斗术
					add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #飞行 17
					add_character_modifier = { name = hs_sp_abilitity_32  duration = -1 hidden = yes} #威风 32
					add_character_modifier = { name = hs_sp_abilitity_35  duration = -1 hidden = yes} #伪装 35
					add_character_modifier = { name = hs_sp_abilitity_19  duration = -1 hidden = yes} #部位强化 19
				}
			}
		}
		
		
	}
	option = {
		name = EVTOPT_adopt1600C

	}
	after = {
		religion_authority = {
			modifier = paragon_of_virtue
			years = 50
		}
		religion_authority = {
			modifier = paragon_of_virtue
			years = 50
		}

		religion_authority = {
			modifier = strengthened_religion
			years = 50
		}
		religion_authority = {
			modifier = successful_inquisition
			years = 50
		}
	}
}


character_event = {#纳萨力克
	id = hsadopt.1700	
	desc = EVTDESC_hsadopt_1700
	picture = GFX_evt_hsadopt_1700	
	is_triggered_only = yes

	trigger = {		
		trait = gamer
		total_years_played = 35
		NOT = {
			has_global_flag = hsadopt_1700_open
		}
		OR = {
			is_landed = yes
			top_liege = {
				is_landed = yes
			}
		}
	}

	weight_multiplier = {
		days = 1
		
		modifier = {
			factor = 10
			trait = hs_bakemono
		}
		modifier = {
			factor = 3
			trait = cruel
		}
		modifier = {
			factor = 3
			trait = impaler
		}
		modifier = {
			factor = 0.5
			NOT = { total_years_played = 50 }
		}
	}
	immediate = {
		
		
		
	}
	option = {
		name = EVTOPT_hsadopt_1700A
		ai_chance = {
			factor = 25
		}
	}
	option = {
		name = EVTOPT_hsadopt_1700B
		ai_chance = {
			factor = 75
		}
		set_global_flag = hsadopt_1700_open
		activate_title = { title = k_Nazarick status = yes }

		create_character = {
			random_traits = no
			name = "安兹·乌尔·恭"
			dynasty = 5100392 
			culture = ROOT
			religion = ROOT
			female = no
			age = 16
			fertility = 0
			attributes = { intrigue =18  martial = 17 diplomacy = 10 stewardship = 10 learning = 18 }	
			historical = yes
			trait = yl_hero601 
			trait = duelist
			trait = stressed
			trait = hs_bakemono		
			trait = celibate
			trait = cruel
			trait = hs_magician_h
			trait = paranoid
			trait = norse_leader
			trait = hs_summoner
			trait = elusive_shadow
		}
		new_character = {
			hs_shouzhao_effect = yes
			will_not_marry_effect = yes
			add_character_modifier = {
				name = hs_yl_hero601
				duration = -1
			}
			add_character_modifier = {
				name = hs_relife_modifier
				duration = -1
				hidden = yes
			}
			add_character_modifier = { name = wont_let_spouse_touch_me duration = -1 hidden = yes }
			add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
			add_character_modifier = { name = hs_magic_black_2 duration = -1 } #黑暗魔法
			add_character_modifier = { name = hs_magic_elemental_5 duration = -1 } #破坏术
			add_character_modifier = { name = hs_sp_abilitity_6  duration = -1 hidden = yes} #暗 6
			add_character_modifier = { name = hs_sp_abilitity_14  duration = -1 hidden = yes} #时间操作 14
			add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #领域生成 21 A
			add_character_modifier = { name = hs_sp_abilitity_34  duration = -1 hidden = yes} #创造术 34 A
			add_character_modifier = { name = hs_sp_abilitity_39  duration = -1 hidden = yes} #宣判：flag 39 D

			if = {
				limit = {
					ROOT = {
						independent = yes
						is_landed = yes
					}
				}
				ROOT = {
					primary_title = {
						add_claim = new_character
					}
				}
				
			}
			else = {
				top_liege = {
					primary_title = {
						add_claim = new_character
					}
				}
				
			}

			k_Nazarick = {
				grant_title = PREV
				add_law = {
					law = succ_primogeniture
					cooldown = no
					opinion_effect = no
				}
				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_w_cooldown = succ_primogeniture
			add_law_w_cooldown = true_cognatic_succession
			add_law_w_cooldown = status_of_women_4
			primary_title = {
				add_law = {
					law = succ_primogeniture
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = true_cognatic_succession
					cooldown = no
					opinion_effect = no
				}
				add_law = {
					law = status_of_women_4
					cooldown = no
					opinion_effect = no
				}
			}
			if = {
				limit = {any_player = {trait = hs_summoner}}
				any_player = {character_event = {id = yl_summon.2}}
			}
			
			
			
			
			
			prestige = 3000
			piety = 1000
			wealth = 3000
			random_claim = {
				holder_scope = {
					reverse_unsafe_war = {
						target = new_character
						casus_belli = claim
						thirdparty_title = PREV
					}
					capital_scope = {
						new_character = {
							spawn_unit = {
								province = PREV
								home = PREV
								owner = new_character
								troops ={
									hs_aliens = { 3500 5000 }
									hs_figure = { 4000 5000 }
								}
								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 = new_character
								troops ={
									knights = { 3500 5000 }
									hs_aliens = { 2500 4000 }		
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.2
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
							spawn_unit = {
								province = PREV
								home = PREV
								owner = new_character
								troops ={
									hs_aliens = { 3500 5000 }
									light_infantry = { 8000 10000 }
								}
								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 = new_character
								troops ={
									hs_aliens = { 3500 5000 }
									archers = { 8000 10000 }
								}
								disband_on_peace = no
								reinforces = yes
								reinforce_rate_multiplier = 0.3
								merge = yes
								attrition = 0
								cannot_inherit = no
								maintenance_multiplier = 0
							}
						}
					}
					
				}
			}			
			create_character = {
				random_traits = no
				name = "雅儿贝德"
				dynasty = none 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 16
				attributes = { intrigue = 19  martial = 16 diplomacy = 12 stewardship = 12 learning = 8 }	
				historical = yes
				trait = yl_hero602 
				trait = hs_trait_bingjiao
				trait = shrewd
				trait = lustful		
				trait = hs_bakemono
				trait = zealous
				trait = fair
				trait = proud
				trait = greedy
				trait = envious
				trait = administrator
				trait = grey_eminence
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #添加对原角色的恋心
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				add_character_modifier = {
					name = zhanlizheng30
					duration = -1 hidden = yes
				}#战力补正
				
				add_character_modifier = { name = hs_magic_black_2 duration = -1 } #黑暗魔法
				add_character_modifier = { name = hs_magic_elemental_2 duration = -1 } #破坏术
				add_character_modifier = { name = hs_sp_abilitity_25  duration = -1 hidden = yes} #屏障 25
				add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #斗术
				set_character_flag = no_court_invites
			}
			
			create_character = {
				random_traits = no
				name = "夏提雅"
				dynasty = 5100393 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 16
				attributes = { intrigue =11  martial = 16 diplomacy = 7 stewardship = 8 learning = 8 }	
				historical = yes
				trait = yl_hero603 
				trait = fair
				trait = homosexual
				trait = hs_bakemono		
				trait = proud
				trait = berserker
				trait = cruel
				trait = zealous
				trait = ambitious
				trait = holy_warrior
				trait = skilled_tactician
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #添加对原角色的恋心
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				add_character_modifier = { name = hs_magic_combat_4 duration = -1 } #斗术
				add_character_modifier = { name = hs_magic_black_2 duration = -1 } #黑暗魔法

				add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #火系能力 2
				add_character_modifier = { name = hs_sp_abilitity_16  duration = -1 hidden = yes} #瞬间移动 16
				add_character_modifier = { name = hs_sp_abilitity_17  duration = -1 hidden = yes} #飞行 17
				add_character_modifier = { name = hs_sp_abilitity_25  duration = -1 hidden = yes} #屏障 25
				add_character_modifier = { name = hs_sp_abilitity_38  duration = -1 hidden = yes} #生命汲取  38 D
				add_character_modifier = {
					name = zhanlifu30
					duration = -1 hidden = yes
				}#战力补正负
				set_character_flag = no_court_invites
			}
			create_character = {
				random_traits = no
				name = "亚乌菈·贝拉·菲欧拉"
				dynasty = none 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 76
				attributes = { intrigue =11  martial = 17 diplomacy = 11 stewardship = 10 learning = 7 }	
				historical = yes
				trait = yl_hero604 
				trait = falconer
				trait = gregarious
				trait = hs_bakemono		
				trait = organizer
				trait = cavalry_leader
				trait = tough_soldier
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				add_character_modifier = { name = hs_magic_combat_1 duration = -1 } #斗术
				add_character_modifier = { name = hs_sp_abilitity_30  duration = -1 hidden = yes} #远程探查 30
				add_character_modifier = { name = hs_sp_abilitity_37  duration = -1 hidden = yes} #精神操控 37 D
				add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #生物操控 26 A
				set_character_flag = no_court_invites
				create_character = {
					random_traits = no
					name = "马雷·贝罗·菲欧雷"
					dynasty = none 
					culture = ROOT
					religion = ROOT
					female = no
					age = 76
					attributes = { intrigue =11  martial = 20 diplomacy = 12 stewardship = 8 learning = 8 }	
					historical = yes
					trait = yl_hero605
					trait = shy
					trait = robust
					trait = hs_bakemono		
					trait = gardener
					trait = cruel
					trait = humble
					trait = content
					trait = thrifty_clerk
				}
				new_character = {
					hs_shouzhao_effect = yes
					opinion = { modifier = opinion_hs_SISTER who = PREV }
					reverse_opinion = {
						who = PREV
						modifier = opinion_hs_SISTER
					}
					opinion = { modifier = opinion_hs_keyiyaku who = PREVPREV }
					reverse_opinion = {
						who = PREVPREV
						modifier = opinion_hs_keyiyaku
					}
					opinion = { modifier = opinion_loyal_servant who = PREVPREV } #
					add_character_modifier = { name = hs_magic_elemental_4 duration = -1 } #破坏术
					add_character_modifier = { name = hs_magic_combat_3 duration = -1 } #斗术

					add_character_modifier = { name = hs_sp_abilitity_26  duration = -1 hidden = yes} #生物操控 26 A
					set_character_flag = no_court_invites
					
				}
			}
			create_character = {
				random_traits = no
				name = "迪米乌哥斯"
				dynasty = none 
				culture = ROOT
				religion = ROOT
				female = no
				age = 16
				attributes = { intrigue =19  martial = 18 diplomacy = 15 stewardship = 17 learning = 19 }	
				historical = yes
				trait = yl_hero606 
				trait = shrewd
				trait = scholar
				trait = hs_bakemono		
				trait = impaler
				trait = strategist
				trait = cruel
				trait = humble
				trait = skilled_tactician
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术

				add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #火系能力 2
				add_character_modifier = { name = hs_sp_abilitity_37  duration = -1 hidden = yes} #精神操控 37 D
				add_character_modifier = { name = hs_sp_abilitity_21  duration = -1 hidden = yes} #领域生成 21 A
				add_character_modifier = { name = hs_sp_abilitity_19  duration = -1 hidden = yes} #部位强化 19
				set_character_flag = no_court_invites
				
			}
			create_character = {
				random_traits = no
				name = "潘多拉"
				dynasty = 5100394 
				culture = ROOT
				religion = ROOT
				female = no
				age = 16
				attributes = { intrigue =14  martial = 15 diplomacy = 11 stewardship = 18 learning = 12 }	
				historical = yes
				trait = yl_hero607
				trait = hs_trait_zhonger
				trait = hs_bakemono		
				trait = architect
				trait = administrator
				trait = quick
				trait = zealous
				trait = fortune_builder
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				add_character_modifier = {
					name = zhanlizheng40
					duration = -1 hidden = yes
				}#战力补正
				
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #添加对原角色的恋心
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				add_character_modifier = { name = hs_magic_combat_2 duration = -1 } #斗术

				add_character_modifier = { name = hs_sp_abilitity_35  duration = -1 hidden = yes} #伪装 35
				set_character_flag = no_court_invites
				
			}
			create_character = {
				random_traits = no
				name = "塞巴斯蒂安"
				dynasty = none 
				culture = ROOT
				religion = ROOT
				female = no
				age = 16
				attributes = { intrigue =11  martial = 15 diplomacy = 12 stewardship = 12 learning = 11 }	
				historical = yes
				trait = yl_hero608 
				trait = quick
				trait = groomed
				trait = hs_bakemono		
				trait = administrator
				trait = humble
				trait = kind
				trait = content
				trait = chaste
				trait = duelist
				trait = fortune_builder
			}
			new_character = {
				hs_shouzhao_effect = yes
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				opinion = { modifier = opinion_hs_koikokoro who = PREV } #添加对原角色的恋心
				opinion = { modifier = opinion_loyal_servant who = PREV } #
				add_character_modifier = { name = hs_magic_combat_4 duration = -1 } #斗术
				set_character_flag = no_court_invites
			}
			create_character = {
				random_traits = no
				name = "拉娜·提耶儿·夏尔敦"
				dynasty = 5100395 
				culture = ROOT
				religion = ROOT
				female = yes
				age = 16
				attributes = { intrigue =19  martial = 7 diplomacy = 16 stewardship = 11 learning = 12 }	
				historical = yes
				trait = yl_hero609 
				trait = fair
				trait = hs_bakemono		
				trait = hs_trait_bingjiao
				trait = born_in_the_purple
				trait = schemer
				trait = lustful
				trait = cruel
				trait = ambitious
				trait = elusive_shadow
			}
			new_character = {
				opinion = { modifier = opinion_hs_keyiyaku who = PREV }
				reverse_opinion = {
					who = PREV
					modifier = opinion_hs_keyiyaku
				}
				hs_shouzhao_effect = yes
				give_nickname = nick_the_hs260
				set_character_flag = no_court_invites
			}
		}
		
		
	}
	after = {
		
	}
}

character_event = {#水组事件链
	id = hsadopt.1800
	desc = "EVTDESC_hsadopt1800"
	picture = "GFX_evt_hsadopt_1800"
	title = EVTTITLE_hsadopt_1800
	is_triggered_only = yes
	immediate = {
		
	}
	option = {
		name = EVTOPT_adopt1800A
		character_event = {id = hsadopt.1801 }
		ai_chance = {
			factor = 99
		}
	}
	option = {
		name = EVTOPT_adopt1800B
	}
}

character_event = {#水组事件链
	id = hsadopt.1801
	desc = "EVTDESC_hsadopt1801"
	picture = "GFX_evt_hsadopt_1800"
	is_triggered_only = yes
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "透"
			attributes = { diplomacy = 4 martial = 1 stewardship = 9 intrigue = 1 learning = 1 }
			dynasty = 5100418 
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero642
			trait = fair
			trait = hs_idol
			trait = genius
			trait = chaste
			trait = charitable			
			trait = arbitrary
			trait = poet
			trait = mystic
			trait = grey_eminence
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_character_flag = hs_setidol
			give_nickname = nick_the_hs266
			set_variable = { which = hs_idol_popularity value = 28 }				
			set_variable = { which = hs_idol_exp value = 25 }
		}	
	}
	option = {
		name = EVTOPT_adopt1801A
		character_event = {id = hsadopt.1802 days = 20 }
		ai_chance = {
			factor = 99
		}
	}
	#option = {
	#	name = EVTOPT_adopt1801B
	#}
}
character_event = {#水组事件链
	id = hsadopt.1802
	desc = "EVTDESC_hsadopt1802"
	picture = "GFX_evt_hsadopt_1800"
	title = EVTTITLE_hsadopt_1802
	is_triggered_only = yes
	immediate = {
		
	}
	option = {
		name = EVTOPT_adopt1802A
		character_event = {id = hsadopt.1803  }
		ai_chance = {
			factor = 99
		}
	}
	option = {
		name = EVTOPT_adopt1802B
	}
}
character_event = {#水组事件链
	id = hsadopt.1803
	desc = "EVTDESC_hsadopt1803"
	picture = "GFX_evt_hsadopt_1800"
	is_triggered_only = yes
	trigger = {
		any_courtier_or_vassal = {
			trait = yl_hero642
			trait = hs_trait_shouzhao
		}
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "圆香"
			attributes = { diplomacy = 11 martial = 1 stewardship = 9 intrigue = 1 learning = 8 }
			dynasty = 5100419 
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero643
			trait = fair
			trait = hs_idol
			trait = hs_trait_aojiao
			trait = diligent
			trait = paranoid
			trait = stubborn
			trait = cynical
			trait = ambitious
			trait = charismatic_negotiator
			
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_character_flag = hs_setidol
			any_courtier_or_vassal = {
				limit = {
					trait = yl_hero642
					trait = hs_trait_shouzhao
				}			
				add_friend = new_character
			}
			give_nickname = nick_the_hs267
			set_variable = { which = hs_idol_popularity value = 20 }				
			set_variable = { which = hs_idol_exp value = 27 }
		}	
	}
	option = {
		name = EVTOPT_adopt1803A
		character_event = {id = hsadopt.1804 days = 20 }
		ai_chance = {
			factor = 99
		}
	}
	#option = {
	#	name = EVTOPT_adopt1802B
	#}
}
character_event = {#水组事件链
	id = hsadopt.1804
	desc = "EVTDESC_hsadopt1804"
	picture = "GFX_evt_hsadopt_1800"
	is_triggered_only = yes
	trigger = {
		any_courtier_or_vassal = {
			trait = yl_hero642
			trait = hs_trait_shouzhao
		}
		any_courtier_or_vassal = {
			trait = yl_hero643
			trait = hs_trait_shouzhao
		}

	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "小糸"
			attributes = { diplomacy = 7 martial = 7 stewardship = 9 intrigue = 4 learning = 9 }
			dynasty = 5100420 
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero644
			trait = hs_idol
			trait = diligent
			trait = craven
			trait = shy
			trait = patient
			trait = kind		
			trait = just
			trait = charismatic_negotiator
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_character_flag = hs_setidol
			any_courtier_or_vassal = {
				limit = {
					trait = yl_hero642
					trait = hs_trait_shouzhao
				}			
				add_friend = new_character
			}
			any_courtier_or_vassal = {
				limit = {
					trait = yl_hero643
					trait = hs_trait_shouzhao
				}			
				add_friend = new_character
			}
			give_nickname = nick_the_hs268
			set_variable = { which = hs_idol_popularity value = 18 }				
			set_variable = { which = hs_idol_exp value = 17 }
		}
	}
	option = {
		name = EVTOPT_adopt1804A
		character_event = {id = hsadopt.1805 days = 20 }
		
		ai_chance = {
			factor = 99
		}
	}
	#option = {
	#	name = EVTOPT_adopt1804B
	#}
}
character_event = {#水组事件链
	id = hsadopt.1805
	desc = "EVTDESC_hsadopt1805"
	picture = "GFX_evt_hsadopt_1800"
	is_triggered_only = yes
	trigger = {
		any_courtier_or_vassal = {
			trait = yl_hero642
			trait = hs_trait_shouzhao
		}
		any_courtier_or_vassal = {
			trait = yl_hero643
			trait = hs_trait_shouzhao
		}
		any_courtier_or_vassal = {
			trait = yl_hero644
			trait = hs_trait_shouzhao
		}
	}
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "雏菜"
			attributes = { diplomacy = 6 martial = 4 stewardship = 13 intrigue = 3 learning = 10 }
			dynasty = 5100421 
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero645
			trait = hs_idol
			trait = quick
			trait = honest
			trait = content
			trait = slothful
			trait = proud	
			trait = arbitrary
			trait = hedonist
			trait = charismatic_negotiator
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_character_flag = hs_setidol
			any_courtier_or_vassal = {
				limit = {
					trait = yl_hero642
					trait = hs_trait_shouzhao
				}			
				add_friend = new_character
			}
			any_courtier_or_vassal = {
				limit = {
					trait = yl_hero643
					trait = hs_trait_shouzhao
				}			
				add_friend = new_character
			}
			any_courtier_or_vassal = {
				limit = {
					trait = yl_hero644
					trait = hs_trait_shouzhao
				}			
				add_friend = new_character
			}
			give_nickname = nick_the_hs269
			set_variable = { which = hs_idol_popularity value = 22 }				
			set_variable = { which = hs_idol_exp value = 24 }
		}
	}
	option = {
		name = EVTOPT_adopt1805A
		
		ai_chance = {
			factor = 99
		}
	}
	#option = {
	#	name = EVTOPT_adopt1802B
	#}
}


character_event = {#MUJICA
	id = hsadopt.1900
	desc = "EVTDESC_hsadopt1900"
	picture = "GFX_evt_hsadopt_1900"
	is_triggered_only = yes
	trigger = {
		
	}
	immediate = {

	}
	option = {
		name = EVTOPT_adopt1900A
		scaled_wealth = {
			value = -1
			min = -3000
			max = -5000
		}
	}
	option = {
		name = EVTOPT_adopt1900B
		scaled_wealth = {
			value = -2
			min = -5000
			max = -15000
		}
		new_character = {
			set_character_flag = hs_flag_adopt1900
		}
	}
	option = {
		name = EVTOPT_adopt1900C
		new_character = {
			banish = yes
		}
	}
	after = {
		new_character = {
			character_event = { id = hsadopt.1901 days = 1}
		}
	}
}


character_event = {#MUJICA
	id = hsadopt.1901
	hide_window = yes
	is_triggered_only = yes

	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "海铃"
			attributes = { intrigue = 5 martial = 12 diplomacy = 10 stewardship = 10 learning = 10 }
			dynasty = 5100443
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero675
			trait = hs_idol
			trait = groomed
			trait = mystic
			trait = chaste
			trait = humble
			trait = envious
			trait = thrifty_clerk
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_variable = { which = hs_idol_popularity value = 34 }				
			set_variable = { which = hs_idol_exp value = 28 }
			save_event_target_as = hs_target_yl_hero675
			create_character = {
				random_traits = no historical = yes
				name = "初音"
				attributes = { intrigue = 6 martial = 8 diplomacy = 14 stewardship = 8 learning = 10 }
				dynasty = 5100444
				culture = yamato
				religion = ROOT
				female = yes
				age = 16
				
				trait = yl_hero676
				trait = hs_idol
				trait = fair
				trait = socializer
				trait = lustful
				trait = legit_bastard
				trait = homosexual
				trait = humble
				trait = zealous
				trait = intricate_webweaver
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_name = NAME_yl_hero676
				set_variable = { which = hs_idol_popularity value = 46 }				
				set_variable = { which = hs_idol_exp value = 33 }
				add_friend = PREV
				add_friend = ROOT
				opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #契约者
				reverse_opinion = {
					who = ROOT
					modifier = opinion_hs_keyiyaku #契约者
				}
				opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
			}
		}
		
		create_character = {
			random_traits = no historical = yes
			name = "若麦"
			attributes = { intrigue = 10 martial = 10 diplomacy = 11 stewardship = 12 learning = 9 }
			dynasty = 5100445
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero677
			trait = hs_idol
			trait = groomed
			trait = sturdy
			trait = shrewd
			trait = deceitful
			trait = ambitious
			trait = diligent
			trait = elusive_shadow
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_variable = { which = hs_idol_popularity value = 25 }				
			set_variable = { which = hs_idol_exp value = 24 }
		}
		create_character = {
			random_traits = no historical = yes
			name = "睦"
			attributes = { intrigue = 2 martial = 4 diplomacy = 7 stewardship = 10 learning = 10 }
			dynasty = 5100446
			culture = yamato
			religion = ROOT
			female = yes
			age = 16
			
			trait = yl_hero678
			trait = hs_idol
			trait = fair
			trait = gardener
			trait = hs_trait_wukou
			trait = humble
			trait = chaste
			trait = trusting
			trait = thrifty_clerk
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_variable = { which = hs_idol_popularity value = 61 }				
			set_variable = { which = hs_idol_exp value = 31 }
			save_event_target_as = hs_target_yl_hero678
			add_friend = ROOT
			opinion = { modifier = opinion_hs_keyiyaku who = ROOT } #契约者
			reverse_opinion = {
				who = ROOT
				modifier = opinion_hs_keyiyaku #契约者
			}

		}
	}

	after = {
		if = {
			limit = {
				has_character_flag = hs_flag_adopt1900
			}
			create_character = {
				random_traits = no historical = yes
				name = "灯"
				attributes = { intrigue = 4 martial = 6 diplomacy = 5 stewardship = 9 learning = 15 }
				dynasty = 5100447
				culture = yamato
				religion = ROOT
				female = yes
				age = 16
				
				trait = yl_hero679
				trait = hs_idol
				trait = stressed
				trait = poet
				trait = hs_trait_wukou
				trait = chaste
				trait = craven
				trait = zealous
				trait = mystic
				trait = naive_appeaser
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_variable = { which = hs_idol_popularity value = 17 }				
				set_variable = { which = hs_idol_exp value = 20 }
				save_event_target_as = hs_target_yl_hero679
				add_friend = ROOT

				create_character = {
					random_traits = no historical = yes
					name = "爱音"
					attributes = { intrigue = 6 martial = 7 diplomacy = 14 stewardship = 7 learning = 9 }
					dynasty = 5100448
					culture = yamato
					religion = ROOT
					female = yes
					age = 16
					
					trait = yl_hero680
					trait = hs_idol
					trait = socializer
					trait = charitable
					trait = kind
					trait = gregarious
					trait = charismatic_negotiator
				}				
				new_character = {
					hs_shouzhao_effect = yes
					set_variable = { which = hs_idol_popularity value = 15 }				
					set_variable = { which = hs_idol_exp value = 14 }
					add_friend = PREV

					create_character = {
						random_traits = no historical = yes
						name = "爽世"
						attributes = { intrigue = 12 martial = 6 diplomacy = 10 stewardship = 14 learning = 12 }
						dynasty = 5100449
						culture = yamato
						religion = ROOT
						female = yes
						age = 16
						
						trait = yl_hero681
						trait = hs_idol
						trait = greedy
						trait = groomed
						trait = charitable
						trait = chaste
						trait = patient
						
						trait = intricate_webweaver
					}				
					new_character = {
						hs_shouzhao_effect = yes
						set_variable = { which = hs_idol_popularity value = 16 }				
						set_variable = { which = hs_idol_exp value = 16 }
						add_friend = PREV
						add_friend = PREVPREV
						add_friend = event_target:hs_target_yl_hero678
						opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
					}
				}

				create_character = {
					random_traits = no historical = yes
					name = "立希"
					attributes = { intrigue = 6 martial = 12 diplomacy = 6 stewardship = 8 learning = 10 }
					dynasty = 5100450
					culture = yamato
					religion = ROOT
					female = yes
					age = 16
					
					trait = yl_hero682
					trait = hs_idol
					trait = fair
					trait = envious
					trait = diligent
					trait = zealous
					trait = stubborn
					trait = tough_soldier
				}				
				new_character = {
					hs_shouzhao_effect = yes
					set_variable = { which = hs_idol_popularity value = 16 }				
					set_variable = { which = hs_idol_exp value = 21 }
					add_friend = event_target:hs_target_yl_hero675
					add_friend = PREV					
					opinion = { modifier = opinion_hs_koikokoro who = PREV } #添加对原角色的恋心
					reverse_opinion = {
						who = event_target:hs_target_yl_hero675
						modifier = opinion_hs_koikokoro
					}#被原角色添加恋心
					
					create_character = {
						random_traits = no historical = yes
						name = "乐奈"
						attributes = { intrigue = 4 martial = 4 diplomacy = 6 stewardship = 6 learning = 10 }
						dynasty = 5100451
						culture = yamato
						religion = ROOT
						female = yes
						age = 16
						
						trait = yl_hero683
						trait = hs_idol
						trait = mystic
						trait = hs_trait_wukou
						trait = gluttonous
						trait = honest
						trait = indulgent_wastrel
					}				
					new_character = {
						hs_shouzhao_effect = yes
						set_variable = { which = hs_idol_popularity value = 33 }				
						set_variable = { which = hs_idol_exp value = 14 }
						add_friend = PREV
					}
				}

			}
			
			
			
			
		}
	}
}


character_event = {
	id = hsadopt.1920
	hide_window = yes
	is_triggered_only = yes
	capable_only = yes
	prisoner = no	
	ai = yes
	only_men = yes
	has_global_flag = hs_hsadopt_1920_open
	trigger = {
		NOT = { is_inaccessible_trigger = yes }
		is_ill = no
		
		NOR = {
			has_character_flag = is_child_of_destiny 
			has_character_flag = hs_has_static_portraits
			trait = genius
			hs_is_injured_trigger = yes
		}
		OR = {			
			AND = {
				culture = yamato
				trait = playful
			}
			trait = hs_summoner
		}
		trait = curious
		
	}
	
	immediate = {
		random_list = {
			95 = {
			}
			5 = {
				clr_global_flag = hs_hsadopt_1920_open
				set_name = NAME_yl_hero703
				add_trait = yl_hero703
				add_trait = adventurer
				hs_shouzhao_effect = yes
				add_character_modifier = { name = hs_sp_abilitity_4  duration = -1 hidden = yes} #电/雷 4

				if = {
					limit = {any_player = {trait = hs_summoner}}
					any_player = {character_event = {id = yl_summon.2}}
				}
				character_event = { id = hsadopt.1921 days = 1}
			}
		}
		
	}
}

character_event = {
	id = hsadopt.1921
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		
	}
	
	immediate = {
		create_character = {
			random_traits = no historical = yes
			name = "霞"
			attributes = { intrigue = 7 martial = 6 diplomacy = 12 stewardship = 11 learning = 10 }
			dynasty = none
			culture = yamato
			religion = ROOT
			female = yes
			age = 12
			immortal_age = 16

			trait = yl_hero707
			trait = fair
			trait = adventurer
			trait = hs_trait_aojiao
			trait = wroth
			trait = stubborn
		}				
		new_character = {
			hs_shouzhao_effect = yes
			set_character_flag = hs_has_immortal_age			
			add_friend = ROOT
			add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1

			create_character = {
				random_traits = no historical = yes
				name = "刚"
				attributes = { intrigue = 5 martial = 9 diplomacy = 15 stewardship = 16 learning = 13 }
				dynasty = none
				culture = yamato
				religion = ROOT
				female = no
				age = 15
				immortal_age = 16
	
				trait = yl_hero708
				trait = gregarious
				trait = humble
				trait = lustful
				trait = conscientious
				trait = sturdy
				trait = indulgent_wastrel
				trait = adventurer
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age	
				add_character_modifier = { name = hs_sp_abilitity_8  duration = -1 hidden = yes} #地/岩/土 8
		
				add_friend = ROOT
				add_friend = PREV
			}
		}

		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
			}
			create_character = {
				random_traits = no historical = yes
				name = "莎莉娜"
				attributes = { intrigue = 12 martial = 4 diplomacy = 12 stewardship = 10 learning = 10 }
				dynasty = none
				culture = THIS
				religion = THIS
				female = yes
				age = 12
				immortal_age = 16
	
				trait = yl_hero704
				trait = brooding
				trait = groomed
				trait = shrewd
				trait = hs_trait_aojiao
				trait = gluttonouslustful
				trait = adventurer
	
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age			
				add_friend = ROOT
				add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #火系能力 2

				opinion = { modifier = opinion_hs_koikokoro who = ROOT } #添加对原角色的恋心
			}
		}
		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
			}
			create_character = {
				random_traits = no historical = yes
				name = "遥"
				attributes = { intrigue = 4 martial = 9 diplomacy = 11 stewardship = 6 learning = 8}
				dynasty = none
				culture = THIS
				religion = THIS
				female = yes
				age = 12
				immortal_age = 16
	
				trait = yl_hero705
				trait = gluttonous
				trait = gregarious
				trait = curious
				trait = fussy
				trait = adventurer
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age			
				add_friend = ROOT
				add_character_modifier = { name = hs_sp_abilitity_2  duration = -1 hidden = yes} #火系能力 2

			}
		}
		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
			}
			create_character = {
				random_traits = no historical = yes
				name = "艾莉丝"
				attributes = { intrigue = 3 martial = 9 diplomacy = 5 stewardship = 3 learning = 7 }
				dynasty = none
				culture = THIS
				religion = THIS
				female = yes
				age = 11
				immortal_age = 16
	
				trait = yl_hero706
				trait = hs_summoner
				trait = sturdy
				trait = playful
				trait = rowdy
				trait = adventurer
				trait = aggressive_leader
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age			
				add_friend = ROOT
				
			}
		}
		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
			}
			create_character = {
				random_traits = no historical = yes
				name = "小光"
				attributes = { intrigue = 3 martial = 8 diplomacy = 10 stewardship = 8 learning = 10 }
				dynasty = none
				culture = THIS
				religion = THIS
				female = yes
				age = 13
				immortal_age = 16
	
				trait = yl_hero712
				trait = adventurer
				trait = haughty
				trait = groomed
				trait = proud
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age			
				add_friend = ROOT
				add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1

			}
		}
		
		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
				any_child = {
					age = 10
					NOT = { age = 14 }
					is_female = yes
					NOR = {
						has_character_flag = is_child_of_destiny 
						has_character_flag = hs_has_static_portraits
						trait = genius
					}
				}
			}
			random_child = {
				limit = {
					age = 10
					NOT = { age = 14 }
					is_female = yes
					NOR = {
						has_character_flag = is_child_of_destiny 
						has_character_flag = hs_has_static_portraits
						trait = genius
						hs_is_injured_trigger = yes
					}
				}
				add_trait = yl_hero713
				hs_shouzhao_effect = yes
				set_name = NAME_yl_hero713
			}
			
		}
		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
				any_child = {
					age = 10
					NOT = { age = 14 }
					is_female = yes
					NOR = {
						has_character_flag = is_child_of_destiny 
						has_character_flag = hs_has_static_portraits
						trait = genius
					}
				}
			}
			random_child = {
				limit = {
					age = 10
					NOT = { age = 14 }
					is_female = yes
					NOR = {
						has_character_flag = is_child_of_destiny 
						has_character_flag = hs_has_static_portraits
						trait = genius
						hs_is_injured_trigger = yes
					}
				}
				add_trait = yl_hero714
				hs_shouzhao_effect = yes
				set_name = NAME_yl_hero714
			}
			
		}
		random_playable_ruler = {
			limit = {
				higher_real_tier_than = BARON
			}
			create_character = {
				random_traits = no historical = yes
				name = "莉莉艾"
				attributes = { intrigue = 1 martial = 2 diplomacy = 5 stewardship = 12 learning = 15 }
				dynasty = none
				culture = THIS
				religion = THIS
				female = yes
				age = 12
				immortal_age = 16
	
				trait = yl_hero709
				trait = timid
				trait = fair
				trait = adventurer
				trait = humble
				trait = honest
			}				
			new_character = {
				hs_shouzhao_effect = yes
				set_character_flag = hs_has_immortal_age			
				add_friend = ROOT
				add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1

				create_character = {
					random_traits = no historical = yes
					name = "水莲"
					attributes = { intrigue = 10 martial = 4 diplomacy = 4 stewardship = 6 learning = 8 }
					dynasty = none
					culture = THIS
					religion = THIS
					female = yes
					age = 12
					immortal_age = 16
		
					trait = yl_hero710
					trait = kind
					trait = idolizer
					trait = adventurer
					trait = trickster
					trait = deceitful
				}				
				new_character = {
					hs_shouzhao_effect = yes
					set_character_flag = hs_has_immortal_age			
					add_friend = ROOT
					add_friend = PREV
					add_character_modifier = { name = hs_sp_abilitity_1  duration = -1 hidden = yes} #水/冰系能力 1

					create_character = {
						random_traits = no historical = yes
						name = "玛奥"
						attributes = { intrigue = 4 martial = 4 diplomacy = 6 stewardship = 12 learning = 7 }
						dynasty = none
						culture = THIS
						religion = THIS
						female = yes
						age = 12
						immortal_age = 16
			
						trait = yl_hero711
						trait = hs_idol
						trait = mystic
						trait = hs_trait_wukou
						trait = gluttonous
						trait = honest
						trait = indulgent_wastrel
					}				
					new_character = {
						hs_shouzhao_effect = yes
						set_character_flag = hs_has_immortal_age		
						add_character_modifier = { name = hs_sp_abilitity_5  duration = -1 hidden = yes} #木 5
	
						add_friend = ROOT
						add_friend = PREV
						add_friend = PREVPREV
					}
				}
			}
		}
	}
}