##################Librium Veto################


##so it begins 

country_event = {

	id = 6500 
	
	trigger = {
		war = yes
		war_exhaustion = 5
		NOT = { overseas_provinces_percentage  = 50 }
		NOT = { aristocracy_plutocracy = 0 }
		NOT = { has_country_flag = librium_veto }
	}

	mean_time_to_happen =  {
		months = 5000
		modifier = {
			factor = 0.95
			num_of_cities = 20
		}
		modifier = {
			factor = 0.95
			num_of_cities = 30
		}
		modifier = {
			factor = 0.95
			num_of_cities = 40
		}
		modifier = {
			factor = 0.95
			num_of_cities = 50
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -1 }
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -2 }
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -3 }
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -4 }
		}	
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = -1 }
		}
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = -2 }
		}
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = -3 }
		}
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = -4 }
		}
		modifier = {
			factor = 0.95
			NOT = { MIL = 4 }
		}
		modifier = {
			factor = 0.95
			NOT = { MIL = 5 }
		}
		modifier = {
			factor = 0.95
			NOT = { MIL = 6 }
		}
		modifier = {
			factor = 1.05
			ADM = 6
		}
		modifier = {
			factor = 1.05
			ADM = 7
		}
		modifier = {
			factor = 1.05
			ADM = 8
		}
		modifier = {
			factor = 1.05
			ADM = 9
		}
		modifier = {
			factor = 1.05
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 1.05
			NOT = { stability = -1 }
		}
		modifier = {
			factor = 1.05
			NOT = { stability = -2 }
		}
	}

	title = "EVTNAME6500"
	desc = "EVTDESC6500"

	option = {
		name = "EVTOPTA6500"
		set_country_flag = librium_veto
		war_exhaustion = -5
		army_tradition = 10
		centralization_decentralization = 1
		aristocracy_plutocracy = -1
		random_owned = {
			cavalry = current
			cavalry = current
			cavalry = current
			cavalry = current
			cavalry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
			infantry = current
		}
	}

	option = {
		name = "EVTOPTB6500"
		stability = -1
		war_exhaustion = 1
		centralization_decentralization = -1
		aristocracy_plutocracy = 1
		random_owned = {
			limit = {
				is_colony = no
			}
			create_revolt = 1
		}
		random_owned = {
			limit = {
				is_colony = no
			}
			create_revolt = 1
		}
	}
}

#further concession demanded

country_event = {
	
	id = 6501

	trigger = {
		has_country_flag = librium_veto
		war = no
	}
	
	mean_time_to_happen =  {
		months = 5000
		modifier = {
			factor = 1.05
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 1.05
			NOT = { stability = -1 }
		}
		modifier = {
			factor = 1.05
			NOT = { stability = -2 }
		}
		modifier = {
			factor = 0.95
			NOT = { ADM = 4 }
		}
		modifier = {
			factor = 0.95
			NOT = { ADM = 5 }
		}
		modifier = {
			factor = 0.95
			NOT = { ADM = 6 }
		}
	}

	title = "EVTNAME6501"
	desc = "EVTDESC6501"

	option = {
		name = "EVTOPTA6501"
		stability = 1
		centralization_decentralization = 1
		aristocracy_plutocracy = -1
		random_owned = {
			limit = {
				is_colony = no
			}
			base_tax = -1		
		}
	}

	option = {
		name = "EVTOPTA6501"
		stability = -1
		random_owned = {
			limit = {
				is_colony = no
			}
			create_revolt = 1
		}
		random_owned = {
			limit = {
				is_colony = no
			}
			create_revolt = 1
		}
		random_owned = {
			limit = {
				is_colony = no
			}
			create_revolt = 1
		}
		random_owned = {
			limit = {
				is_colony = no
			}
			create_revolt = 1
		}
	}
} 

#Nobles support us

country_event = {
	
	id = 6502

	trigger = {
		has_country_flag = librium_veto
		war = yes
	}
	
	mean_time_to_happen =  {
		months = 5000
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -1 }
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -2 }
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -3 }
		}
		modifier = {
			factor = 0.95
			NOT = { aristocracy_plutocracy = -4 }
		}	
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = -1 }
		}
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = 2 }
		}
		 modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = 3 }
		}
		modifier = {
			factor = 0.95
			NOT = { centralization_decentralization	 = 4 }
		}
	}
	
	title = "EVTNAME6502"
	desc = "EVTDESC6502"

	option = {
		name = "EVTOPTA6502"
		war_exhaustion = -1
		random_owned = {
			cavalry = current
			infantry = current
			infantry = current
		}
	}
}

###reform 

country_event={
	id = 6503

	trigger = {
		has_country_flag = librium_veto
		stability = 3
		prestige = 0.50
		war = no
		ADM = 6
		MIL = 6
		DIP = 6
	}

	mean_time_to_happen =  {
		months = 5000
		modifier = {
			factor = 0.95
			ADM = 7
		}
		modifier = {
			factor = 0.95
			ADM = 8
		}
		modifier = {
			factor = 0.95
			ADM = 9
		}
		modifier = {
			factor = 0.95
			MIL = 7
		}
		modifier = {
			factor = 0.95
			MIL = 8
		}
		modifier = {
			factor = 0.95
			MIL = 9
		}
		modifier = {
			factor = 0.95
			MIL = 7
		}
		modifier = {
			factor = 0.95
			MIL = 8
		}
		modifier = {
			factor = 0.95
			MIL = 9
		}
	}

	
	title = "EVTNAME6503"
	desc = "EVTDESC6503"

	option = {
		name = "EVTOPTA6503"
		clr_country_flag = librium_veto	
		centralization_decentralization = -3
		aristocracy_plutocracy = 3
		random_owned = {
			limit = {
				is_colony = no
			}
			base_tax = 1		
		}
		random_owned = {
			limit = {
				is_colony = no
			}
			base_tax = 1		
		}
		random_owned = {
			limit = {
				is_colony = no
			}
			base_tax = 1		
		}	
		any_neighbor_country = {
			limit = {
				NOT = { has_country_flag = librium_veto }
			}
			country_event = 6504
		}		
	}

	option = {
		name = "EVTOPTB6503"
		prestige = -0.10
		centralization_decentralization = 1
		aristocracy_plutocracy = -1
	}
}

country_event={
	id = 6504
	
	is_triggered_only = yes
	
	title = "EVTNAME6504"
	desc = "EVTDESC6504"

	option = {
		name = "EVTOPTA6504"
		any_owned = {
			any_neighbor_province = {
				limit = {
					owned_by = FROM
					NOT = { is_core = THIS }
				}
				add_core = THIS
			}
		}
	}
}