namespace = hvel_addam_alyn_events

hvel_addam_alyn_events.1 = {
	type = character_event
	hidden = yes

	immediate = {
		if = {
			limit = {
				AND = {
					exists = character:Velaryon_43
					character:Velaryon_43 = { is_alive = yes }
					has_game_rule = hvel_addam_corlys
				}
			}
			set_real_father = character:Velaryon_31 # Corlys
			if = {
				limit = {
					current_date >= 8114.1.1
					current_date <= 8129.12.6 #8133.7.1
				}
				agot_safe_set_location_history_effect = { CASTLE = title:b_hull }
			}
		}
		else_if = {
			limit = {
				AND = {
					exists = character:Velaryon_43
					character:Velaryon_43 = { is_alive = yes }
					has_game_rule = hvel_addam_laenor
				}
			}
			set_real_father = character:Velaryon_35 # Laenor
			if = {
				limit = {
					current_date >= 8114.1.1
					current_date <= 8129.12.6 #8133.7.1
				}
				agot_safe_set_location_history_effect = { CASTLE = title:b_hull }
			}
		}
	}
}

hvel_addam_alyn_events.2 = {
	type = character_event
	hidden = yes

	immediate = {
		if = {
			limit = {
				AND = {
					exists = character:Velaryon_44
					character:Velaryon_44 = { is_alive = yes }
					has_game_rule = hvel_alyn_corlys
				}
			}
			set_real_father = character:Velaryon_31 # Corlys
			if = {
				limit = {
					current_date >= 8114.1.1
					current_date <= 8129.12.6 #8133.7.1
				}
				agot_safe_set_location_history_effect = { CASTLE = title:b_hull }
			}
		}
		else_if = {
			limit = {
				AND = {
					exists = character:Velaryon_44
					character:Velaryon_44 = { is_alive = yes }
					has_game_rule = hvel_alyn_laenor
				}
			}
			set_real_father = character:Velaryon_35 # Laenor
			if = {
				limit = {
					current_date >= 8114.1.1
					current_date <= 8129.12.6 #8133.7.1
				}
				agot_safe_set_location_history_effect = { CASTLE = title:b_hull }
			}
		}
	}
}