namespace = hsblood
character_event = { #standcreate
	id = hsblood.001
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	trigger = {
		trait = hs_hjjs
		NOR = {
			trait = imbecile
			trait = inbred
			has_character_flag = gained_stand
		}
	}
	#mean_time_to_happen = {
	#	years = 5
	#}
	immediate = {
		character_event = { id = hsblood.002 months = 12 random = 6 }
	}
}
character_event = { #standcreate
	id = hsblood.002
	hide_window = yes
	is_triggered_only = yes
	#only_capable = yes
	#min_age = 12
	trigger = {
		trait = hs_hjjs
		NOR = {
			trait = imbecile
			trait = inbred
			has_character_flag = gained_stand
		}
	}
	#mean_time_to_happen = {
	#	years = 5
	#}
	immediate = {
		hs_gainstand_effect = yes
		if = {
			limit = {
				NOT = {
					has_character_flag = gained_stand_fail	
				}
			}		
			father = {
				character_event = { id = hsblood.003  }
			}
			mother = {
				character_event = { id = hsblood.003  }
			}
		}
	}
}
character_event = { 
	id = hsblood.003
	#hide_window = yes
	is_triggered_only = yes
	desc = EVTDESC_hsblood003
	picture = "GFX_evt_child_sword_altaic"
	option = {
		name = EVTOPThsblood003
	}
}
character_event = { #zhanchedasai
	id = hsblood.200
	desc = "EVTDESC_zhanche01"
	picture = "GFX_evt_zhanchedao"
	is_triggered_only = yes
	immediate = {
		create_character = {
			random_traits = yes
			attributes = {
				martial=20
			}
			religion = ROOT
			culture = ROOT
			female = yes
			age = 16
			
			trait = strategist
			trait = cavalry_leader
			trait = brilliant_strategist			
		}
		new_character = {
			hs_transzhanchedao_effect = yes
			set_character_flag = special_marshal
		}
		random_realm_province = {
			new_character = {
				culture = THIS
				religion = THIS
			}			
		}
	}
	option = {
		name = EVTOPT_zhanche
		new_character = {
			move_character = ROOT
		}
	}
}
province_event = {
	id = hsblood.201

	hide_window = yes

	is_triggered_only = yes

	immediate = {
		FROM = { character_event = { id = hsblood.202 } }
	}
}
character_event = {
	id = hsblood.202
	desc = "EVTDESC_zhanche02"
	picture = "GFX_evt_zhanchedao"
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_zhanche02
		prestige = 50
		scaled_wealth = {
			value = -0.2
			min = -100
			max = -1000
		}
	}
	option = {
		name = EVTOPTB_zhanche02
		prestige = -200
		FROM = {add_province_modifier = { name = hs_zcdss years = 3 }}
	}
}