
namespace = HAMANE_NOTIFICATIONS

#Revival of Hun Empire
narrative_event = {
	id = HAMANE_NOTIFICATIONS.1
	title = "EVTTITL_HAMANE_NOTIFICATIONS.1"
	desc = "EVTDESC_HAMANE_NOTIFICATIONS.1"
	picture = GFX_evt_mongols_pillage_oldgods
	
	is_triggered_only = yes
	
	option = {
		log = "[Root.GetDynName]([Root.GetID]) [From.GetBestName] loudly proclaimed the resurgence of the Hun Empire in [From.Location.GetName]!(OPTA)"
		name = "EVTOPTA_HAMANE_NOTIFICATIONS.1" #Interesting...
		trigger = {
			FROM = {
				character = ROOT
			}
		}
		create_bloodline = {
			type = second_attila
		}
	}
	option = {
		log = "[Root.GetDynName]([Root.GetID]) [From.GetBestName] loudly proclaimed the resurgence of the Hun Empire in [From.Location.GetName]!(OPTB) All right. [From.GetSheHeCap] must be a crazy."
		name = "EVTOPTB_HAMANE_NOTIFICATIONS.1" #Interesting...
		trigger = {
			NOT = {
				FROM = {
					character = ROOT
				}
			}
		}
	}
}

#notification events
character_event = {
	id = HAMANE_NOTIFICATIONS.2
	title = "EVTTITL_HAMANE_NOTIFICATIONS.2"
	desc = {
		text = EVTDESC_HAMANE_NOTIFICATIONS.2_mother
		trigger = {
			FROM = { has_character_flag = bloodline_from_mother }
		}
	}
	desc = {
		text = EVTDESC_HAMANE_NOTIFICATIONS.2_wife
		trigger = {
			FROM = { has_character_flag = bloodline_from_wife }
		}
	}
	desc = {
		text = EVTDESC_HAMANE_NOTIFICATIONS.2_father
		trigger = {
			FROM = { has_character_flag = bloodline_from_father }
		}
	}
	desc = {
		text = EVTDESC_HAMANE_NOTIFICATIONS.2_husband
		trigger = {
			FROM = { has_character_flag = bloodline_from_husband }
		}
	}
	picture = GFX_evt_bloodlines
	
	is_triggered_only = yes
	
	option = {
		log = "[Root.GetDynName]([Root.GetID]) [FromFrom.GetBestName], Who is filling the prestige in the four seas proclaimed the descent of [additional_bloodline.GetName] as successor of [bloodline_owner.GetBestName]!"
		name = "EVTOPTA_HAMANE_NOTIFICATIONS.2" #Interesting...
		FROMFROM = {
			show_portrait = yes
		}
	}
}

#flag management events
character_event = {
	id = HAMANE_NOTIFICATIONS.5
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = bloodline_from_mother
		clr_character_flag = bloodline_from_father
		clr_character_flag = bloodline_from_wife
		clr_character_flag = bloodline_from_husband
	}
}