# Venezuela's quest for independence
country_event = {

	id = 1043
	
	trigger = {
		NOT = { exists = VNZ }
		NOT = { has_country_flag = venezuela_nationalism }
		VNZ = {
			NOT = {
				OR = {
					is_core = 741			# Cumana
					is_core = 742			# Guayana
					is_core = 830			# Maracaibo
					is_core = 831			# Caracas
					is_core = 834			# Barinas
				}
			}
		}
		OR = {
			owns = 741			# Cumana
			owns = 742			# Guayana
			owns = 830			# Maracaibo
			owns = 831			# Caracas
			owns = 834			# Barinas
		}
		year = 1700
	}
	
	mean_time_to_happen = {
		months = 600

		modifier = {
			factor = 0.9
			NOT = { centralization_decentralization = 0 }
		}
		modifier = {
			factor = 0.9
			NOT = { centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = { centralization_decentralization = -4 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 1
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 5
		}
		modifier = {
			factor = 0.9
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.9
			NOT = { stability = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = { stability = -2 }
		}
		modifier = {
			factor = 1.1
			stability = 1
		}
		modifier = {
			factor = 1.1
			stability = 2
		}
		modifier = {
			factor = 1.1
			stability = 3
		}		
		modifier = {
			factor = 0.9
			year = 1760
		}
		modifier = {
			factor = 0.8
			year = 1780
		}
	}
	
	title = "EVTNAME1043"
	desc = "EVTDESC1043"
	
	option = {
		name = "EVTOPTA1043"
		set_country_flag = venezuela_nationalism
		VNZ = {
			add_core = 741			# Cumana
			add_core = 742			# Guayana
			add_core = 830			# Maracaibo
			add_core = 831			# Caracas
			add_core = 834			# Barinas
		}
		colonists = -1
		random_owned = {
			limit = { is_colony = yes }
			create_revolt = 1
		}
	}
}

# Colonial assembly
province_event = {

	id = 1047
	
	trigger = {
		is_colony = yes
		owner = {
			has_country_flag = venezuela_nationalism
			NOT = { stability = 0 }
			NOT = { advisor = colonial_governor }
		}
	}
	
	mean_time_to_happen = {
		months = 60

		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -1 } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -2 } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { advisor = statesman } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { ADM = 4 } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { DIP = 4 } }
		}
		modifier = {
			factor = 1.1
			owner = { ADM = 8 }
		}
		modifier = {
			factor = 1.1
			owner = { DIP = 8 }
		}
		modifier = {
			factor = 1.1
			owner = { advisor = statesman }
		}
	}
	
	title = "EVTNAME1023"
	desc = "EVTDESC1023"
	
	option = {
		name = "EVTOPTA1023"		# Attempt to find a diplomatic solution
		owner = {
			clr_country_flag = venezuela_nationalism
			add_country_modifier = {
				name = "diplomatic_negotiation"
				duration = 300
			}
		}
	}
		
	option = {
		name = "EVTOPTB1023"		# The days of diplomacy are over
		owner = { stability = -1 }
		add_province_modifier = {
			name = "colonial_tensions"
			duration = 300
		}
	}
}
