﻿### HEALTH BALANCING TRIGGERS ###
# Along with the health balancing effects, these triggers are only used to get data output used for balancing diseases.


# For activating data output on the number of victims (total, dead and surviving) for contagious disease outbreaks. Combine with a run file like this to quickly collect data:

#every_independent_ruler = {
#	random_courtier = {
#		trigger_event = health.1011 #1011 is plague, 1010 is smallpox
#	}
#}


debug_activate_contagious_disease_outbreak_data_trigger = {
	always = no
}

is_very_young_character = {
	trigger_if = {
		limit = {
			OR = {
				has_trait = whole_of_body
				has_trait = fecund
			}
		}
		age <= 25
	}
	trigger_else = {
		age <= 20
	}		
}

is_young_character = {
	trigger_if = {
		limit = {
			OR = {
				has_trait = whole_of_body
				has_trait = fecund
			}
		}
		age <= 35
	}
	trigger_else = {
		age <= 30
	}
}

is_aging_character = {
	trigger_if = {
		limit = {
			OR = {
				has_trait = whole_of_body
				has_trait = fecund
			}
		}
		age >= 45
	}
	trigger_else = {
		age >= 40
	}
}

is_old_character = {
	trigger_if = {
		limit = {
			is_male = yes
		}
		age >= define:NCharacter|MALE_ELDERLY_AGE
	}
	trigger_else = {
		age >= define:NCharacter|FEMALE_ELDERLY_AGE
	}
}