
#get a core on a neighbouring richer province.
province_event = {
	id = 9200
	trigger = {
		owner = {
			OR = { 
				government = tribal_despotism
				government = tribal_federation
			}
			war = no
			num_of_cities = 10
		}
		is_core = THIS
		any_neighbor_province = {
			NOT = { owned_by = THIS }
			NOT = { is_core = THIS }
			base_tax = 2
			owner = { tribal = no }
		}
	}
	mean_time_to_happen = {
	
		months = 180

		modifier = {
			factor = 0.8
			owner = { MIL = 8 }
		}
	}

	title = "EVTNAME9200"
	desc = "EVTDESC9200"

	option = {
		name = "EVTOPTA9200"
		random_neighbor_province = {
			limit = {
				NOT = { owned_by = THIS }
				NOT = { is_core = THIS }
				base_tax = 2
				owner = { tribal = no }
			}
			add_core = THIS
		}
		
	}
}


#get conquest CB on a weaker neighbour
country_event = {
	id = 9201
	trigger = {
		OR = { 
			government = tribal_despotism
			government = tribal_federation
		}
		war = no
		num_of_cities = 10
		any_neighbor_country = {
			NOT = { num_of_cities = 4 }	
			not = { has_country_flag = is_tribal_target }		
		}
	}
	mean_time_to_happen = {
		months = 180
		modifier = {
			factor = 0.8
			MIL = 8
		}
	}

	title = "EVTNAME9201"
	desc = "EVTDESC9201"

	option = {
		name = "EVTOPTA9201"
		random_country = {
			limit = {
				neighbour = THIS
				NOT = { num_of_cities = 4 }
				not = { has_country_flag = is_tribal_target }				
			}
			set_country_flag = is_tribal_target
			capital_scope = { add_temp_claim = THIS }
		}
		
	}
}




#get a pretender rising if low war-exhaustion and not in a war.
country_event = {
	id = 9202
	
	trigger = {
		OR = { 
			government = tribal_despotism
			government = tribal_federation
		}
		war = no
		num_of_cities = 10
		NOT = { war_exhaustion = 1 }
		regency = no
		NOT = { num_of_revolts = 1 }
		NOT = {
			any_known_country = {
				truce_with = THIS
			}
		}

	}
	
	title = "EVTNAME9202"
	desc = "EVTDESC9202"
		
	mean_time_to_happen = {
		months = 12
		modifier = {
			factor = 0.5
			MIL = 7
		}
		modifier = {
			factor = 10
			ai = yes
		}
	}
	

	
	option = {
		name = "EVTOPTA9202"
		random_owned = {
			pretender_rebels = 2
		}
	}
}

#event to get a heir killed and pretender rising.
country_event = {
	id = 9203
	
	trigger = {
		OR = { 
			government = tribal_despotism
			government = tribal_federation
		}
		num_of_cities = 10
		government = monarchy
		war = no
		NOT = { war_exhaustion = 1 }
		regency = no
		has_heir = yes
		NOT = { num_of_revolts = 1 }
		NOT = {
			any_known_country = {
				truce_with = THIS
			}
		}
	}
	
	mean_time_to_happen = {
		months = 12
		modifier = {
			factor = 0.5
			MIL = 7
		}
		modifier = {
			factor = 10
			ai = yes
		}
	}
	
	title = "EVTNAME9203"
	desc = "EVTDESC9203"
	
	option = {
		name = "EVTOPTA9203"
		kill_heir = this
	}
	option = {
		name = "EVTOPTB9203"
		random_owned = {
			pretender_rebels = 1
		}
	}	
}

# lower legitimacy if no heir and at peace.
country_event = {
	id = 9204
	
	trigger = {
		OR = { 
			government = tribal_despotism
			government = tribal_federation
		}
		num_of_cities = 10
		government = monarchy
		war = no
		NOT = { war_exhaustion = 1 }
		regency = no
		has_heir = no
		legitimacy = 0.1
		NOT = { num_of_revolts = 1 }
		NOT = {
			any_known_country = {
				truce_with = THIS
			}
		}
	}
	
	mean_time_to_happen = {
		months = 180
		modifier = {
			factor = 10
			ai = yes
		}
	}
	
	title = "EVTNAME9204"
	desc = "EVTDESC9204"
	
	option = {
		name = "EVTOPTA9204"
		legitimacy = -0.15
	}
}


#plundering event for tribes
country_event = {
	id = 9205
	
	is_triggered_only = yes
	
	trigger = {
		OR = { 
			government = tribal_despotism
			government = tribal_federation
		}
		num_of_cities = 10
		NOT = { controlled_by = owner }
	}
	
	
	title = "EVTNAME9205"
	desc = "EVTDESC9205"
	
	option = {
		name = "EVTOPTA9205"
		legitimacy = 0.01
		prestige = 0.02
		war_exhaustion = -0.25
	}
}



