namespace = self-age_Divinite
######################################
####### Divinite			   #######
######################################
character_event = {
	id = self-age_Divinite.1
	hide_window = yes
	is_triggered_only = yes
	trigger = {
		trait = Divinite
		OR = {
			age > 16
			NOT = {
				health = 9999.0
			}
		}
	}
	immediate = {
		if = {
			limit = {
				NOT = {
					trait = Divinite_maladie
				}
			}
			health = -9999.0
			remove_trait = Divinite
			add_age = -1
			health = 9999.0
			add_trait = Divinite
		}
		else_if = {
			limit = {
				trait = Divinite_maladie
			}
			health = -9999.0
			remove_trait = Divinite
			remove_trait = Divinite_maladie
			add_age = -1
			health = 9999.0
			add_trait = Divinite
			add_trait = Divinite_maladie
		}
	}
}

character_event = {
	id = self-age_Divinite.2
	hide_window = yes
	only_rulers = yes
	mean_time_to_happen = {
		days = 1
	}
	trigger = {
		trait = Divinite
		OR = {
			age > 16
			NOT = {
				health = 9999.0
			}
		}
	}
	immediate = {
		if = {
			limit = {
				NOT = {
					trait = Divinite_maladie
				}
			}
			health = -9999.0
			remove_trait = Divinite
			add_age = -1
			health = 9999.0
			add_trait = Divinite
		}
		else_if = {
			limit = {
				trait = Divinite_maladie
			}
			health = -9999.0
			remove_trait = Divinite
			remove_trait = Divinite_maladie
			add_age = -1
			health = 9999.0
			add_trait = Divinite
			add_trait = Divinite_maladie
		}
	}
}