#Gadsden purcharse
country_event = {
	
	id = 11402090
	title = "Purcharse of the Gold coast" #The Treaty of Guadalupe Hidalgo
	desc = "The English want to stablish themselves as the dominant power in the region, and as to avoid war, the best option is to give up our trade post."
	picture = "treaty"

	is_triggered_only = yes

	option = {
		name = "We agree to their proposal."
		set_country_flag = treaty_of_palau
		prestige = 5
		treasury = 100000
		1909 = { secede_province = ENG }
		ai_chance = {
			factor = 100
		}
	}

	option = {
		name = "We refuse!"
		ai_chance = {
			factor = 0
		}
	}
}
#Gadsden purcharse
country_event = {
	
	id = 346577
	title = "Purcharse of the Gold coast" #The Treaty of Guadalupe Hidalgo
	desc = "The English want to stablish themselves as the dominant power in the region, and as to avoid war, the best option is to give up our trade post."
	picture = "treaty"

	is_triggered_only = yes

	option = {
		name = "We agree to their proposal."
		set_country_flag = treaty_of_palau
		prestige = 5
		treasury = 100000
		1907 = { secede_province = ENG }
		ai_chance = {
			factor = 100
		}
	}

	option = {
		name = "We refuse!"
		ai_chance = {
			factor = 0
		}
	}
}

#Gadsden purcharse
country_event = {
	
	id = 346577
	title = "Purcharse of the Gold coast" #The Treaty of Guadalupe Hidalgo
	desc = "The English want to stablish themselves as the dominant power in the region, and as to avoid war, the best option is to give up our trade post."
	picture = "treaty"

	is_triggered_only = yes

	option = {
		name = "We agree to their proposal."
		prestige = 5
		treasury = 100000
		1907 = { secede_province = ENG }
		ai_chance = {
			factor = 100
		}
	}

	option = {
		name = "We refuse!"
		ai_chance = {
			factor = 0
		}
	}
}
#Gadsden purcharse
country_event = {
	
	id = 346578
	title = "Danish India" #The Treaty of Guadalupe Hidalgo
	desc = "The Danish diplomats have arrived to us with a proposal: to buy their colonies, what will be our answer?"
	picture = "treaty"

	is_triggered_only = yes

	option = {
		name = "We agree to their proposal."
		prestige = 5
		DEN = { treasury = 100000 }
		DEN = { country_event = 34579 }
		2619 = { secede_province = ENG }
		2670 = { secede_province = ENG }
		ai_chance = {
			factor = 100
		}
	}

	option = {
		name = "We refuse!"
		ai_chance = {
			factor = 0
		}
	}
}
#Gadsden purcharse
country_event = {
	
	id = 346578
	title = "Danish India" #The Treaty of Guadalupe Hidalgo
	desc = "The Danish diplomats have arrived to us with a proposal: to buy their colonies, what will be our answer?"
	picture = "treaty"

	is_triggered_only = yes

	option = {
		name = "We agree to their proposal."
		prestige = 5
		2619 = { secede_province = ENG }
		2670 = { secede_province = ENG }
		ai_chance = {
			factor = 100
		}
	}
}
#Wallonian revolution
country_event = {

	id = 1028000
	title = "French at schools"
	desc = ""
	picture = ""
	
	trigger = {
		tag = NEE
		year = 1840
		NOT = { 
			has_country_flag = wallons_angwy
			has_country_flag = wallons_noangwy
		}
		owns = 392
	}

	mean_time_to_happen =  {
		days = 25
	}

	fire_only_once = yes
	
	option = {
		name = "Allow them to speak French in schools"
			set_country_flag = wallons_noangwy
            any_owned = {
            limit = { controlled_by = THIS }
            any_pop = {
                limit = {
                    OR = {
                        has_pop_culture = dutch
                        has_pop_culture = flemish
                    }
                }
            militancy = 5
            consciousness = 6 }
        }
	}
	
	option = {
		name = "French must be banned"
		set_country_flag = wallons_angwy
            any_owned = {
            limit = { controlled_by = THIS }
            any_pop = {
                limit = {
                    OR = {
                        has_pop_culture = wallonian
                    }
                }
            militancy = 2
            consciousness = 3 }
        }
	}
}
#Wallonian revolution
country_event = {

	id = 1028001
	title = "Wallonian revolution"
	desc = "Being oppressed constantly by the central government, Wallonians are ready to secede from our union."
	picture = "hungarian_revolution"
	
	trigger = {
		OR = { 
		tag = NET
		tag = NEE }
		year = 1848
			has_country_flag = wallons_angwy
		NOT = { 
			has_country_flag = walloon_revolution_has_happened
		}
		owns = 392
	}

	fire_only_once = yes
	mean_time_to_happen =  {
		days = 25
	}

	
	option = {
		name = "Get ready."
		any_pop = {
			consciousness = 1
			militancy = -1
		}
		any_owned = {
			limit = {
				is_core = WLL
			}
			secede_province = WLL
		}
		NEE = { 392 = { secede_province = WLL } }
		NEE = { 394 = { secede_province = WLL } }
		NEE = { 398 = { secede_province = WLL } }
		NEE = { 397 = { secede_province = WLL } }
		WLL = {
			leadership = 80
		}
		set_country_flag = walloon_revolution_has_happened
		create_vassal = WLL
	}
	
	option = {
		name = "Get ready in walloon."
		set_country_flag = walloon_revolution_has_happened
		any_pop = {
			consciousness = 2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = WLL
			}
			secede_province = WLL
		}
		WLL = {
			leadership = 80
		}
		AUS = {
			capital = 619
		}
		create_vassal = WLL
		change_tag_no_core_switch = WLL
	}
}
#Walloon war of independence
country_event = {

	id = 1028010
	title = "Walloon war of independence"
	desc = ""
	picture = "revolutionnn"
	major = yes 
	
	fire_only_once = yes

	trigger = {
		tag = NEE
		has_country_flag = walloon_revolution_has_happened
		owns = 392
	}
 
	mean_time_to_happen =  {
		months = 1
	}

	option = {
		name = "We will end this now!"
		release_vassal = WLL
		war = {
			target = WLL
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}	
		}
	}
}
#flemish revolution
country_event = {

	id = 1028002
	title = "Flemish revolution"
	desc = "With the constant religious oppression and acceptance of the French minorities, they feel forced to secede from our union to persue their best interests."
	picture = "hungarian_revolution"
	
	trigger = {
		OR = { 
		tag = NET
		tag = NEE }
		year = 1848
			has_country_flag = wallons_noangwy
		NOT = { year = 1850 
			has_country_flag = flemish_revolution_has_happened
		}
		owns = 387
	}

	fire_only_once = yes
	mean_time_to_happen =  {
		days = 25
	}

	
	option = {
		name = "They think they can throw our union under the bus."
		any_pop = {
			consciousness = 1
			militancy = -1
		}
		387 = { secede_province = FLA }
		FLA = { all_core = { secede_province = FLA } }
		FLA = {
			leadership = 80
		}
		set_country_flag = flemish_revolution_has_happened
		create_vassal = FLA
	}
	
	option = {
		name = "Let's fight by their side."
		set_country_flag = flemish_revolution_has_happened
		any_pop = {
			consciousness = 2
			militancy = 2
		}
		any_owned = {
			limit = {
				is_core = FLA
			}
			secede_province = FLA
		}
		FLA = {
			leadership = 80
		}
		create_vassal = FLA
		change_tag_no_core_switch = FLA
	}
}
#flemish war of independence
country_event = {

	id = 1028011
	title = "Flemish war of independence"
	desc = "Now that we are ready, we can go and destroy their filthy dreams of acceptance."
	picture = "revolutionnn"
	
	fire_only_once = yes

	trigger = {
		tag = NEE
		has_country_flag = flemish_revolution_has_happened
	}
 
	mean_time_to_happen =  {
		months = 1
	}

	option = {
		name = "Let's end this now!"
		release_vassal = FLA
		war = {
			target = FLA
			attacker_goal = {
				casus_belli = civil_war
			}
			
			defender_goal = {
				casus_belli = status_quo
			}	
		}
	}
}