namespace = dvg_lotharingia



dvg_lotharingia.1 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.1.t
	desc = dvg_lotharingia.1.d
	flavor = dvg_lotharingia.1.f
	
	event_image = {
		video = "gfx/event_pictures/middleeast_courtroom_upheaval.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 1

	trigger = {
	    year = 1836
	}
	
	
	# Vive!
	option = {
		name = dvg_lotharingia.1.a
		default_option = yes
		add_journal_entry = {
			type = je_lotharian_house_of_cards
		}
		add_modifier = {
			name = modifier_army_bolstered 
			months = normal_modifier_time
		}
		add_radicals = {
			value = 0.4
			culture = cu:lotharian
		}
		add_loyalists = {
			value = 0.15
			culture = cu:lotharian
		}
		ai_chance = {
			base = 100
		}
	}
}



dvg_lotharingia.2 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.2.t
	desc = dvg_lotharingia.2.d
	flavor = dvg_lotharingia.2.f
	
	event_image = {
		video = "gfx/event_pictures/unspecific_sick_in_hospital.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = { 
	}
	
	
	# Liberte!
	option = {
		name = dvg_lotharingia.2.a
		default_option = yes
		
		
		
		add_radicals = {
			value = 0.5
		}
		add_loyalists = {
			value = 0.1
		}
		
		activate_law = law_type:law_autocracy
		activate_law = law_type:law_monarchy
		activate_law = law_type:law_hereditary_bureaucrats
		
		ruler = { remove_trait = immortal }
		
		c:LOT = { trigger_event = { id = dvg_lotharingia.5 popup = yes days = 10 } }

		ai_chance = {
			base = 40
		}
	}
	option = {
		name = dvg_lotharingia.2.b
		
		
		
		add_radicals = {
			value = -0.2
		}
		activate_law = law_type:law_autocracy
		activate_law = law_type:law_appointed_bureaucrats
		ruler = { kill_character = yes }
		create_character = {
			noble = yes
			ruler = yes
			first_name = "Jean"
			last_name = "Bouillon"
			culture = cu:burgundian
			female = no
			commander_rank = default
			interest_group = ig_landowners
			ig_leader = yes
			ideology = ideology_traditionalist
			birth_date = 1800.6.20
			traits = {
				
				romantic
				
				pious
				
			}
			# prestige = 0.1
		}

		ai_chance = {
			base = 20
		}
	}
	option = {
		name = dvg_lotharingia.2.c
		
		
		
		add_radicals = {
			value = 0.5
		}
		
		c:LOT = { trigger_event = { id = dvg_lotharingia.5 popup = yes days = 30 } }

		ai_chance = {
			base = 30
		}
	}
   option = {
		name = dvg_lotharingia.2.e
		default_option = yes
		add_modifier = {
			name = modifier_army_purged
			months = normal_modifier_time
		}
		ruler = { kill_character = yes }
		
		
		add_radicals = {
			value = -0.5
		}
		activate_law = law_type:law_migration_controls
		activate_law = law_type:law_census_voting
		ig:ig_landowners = {
			remove_ideology = ideology_caudillismo
			}
                ig:ig_armed_forces = {
			remove_ideology = ideology_caudillismo
			}
		create_character = {
			noble = yes
			first_name = "Jean"
			last_name = "Bouillon"
			culture = cu:burgundian
			female = no
			commander_rank = default
			interest_group = ig_landowners
			ig_leader = yes
			ideology = ideology_traditionalist
			birth_date = 1800.6.20
			traits = {
				
				romantic
				
				pious
				
			}
			
		}
		call_election = {
				months = 1
			}
		ai_chance = {
			base = 10
		}
	}
}

dvg_lotharingia.3 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.3.t
	desc = dvg_lotharingia.3.d
	flavor = dvg_lotharingia.3.f
	
	event_image = {
		video = "gfx/event_pictures/unspecific_sick_in_hospital.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = { root.average_sol >= 12
	}
	
	
	# Liberte!
	option = {
		name = dvg_lotharingia.3.a
		default_option = yes
		
		add_loyalists = {
			value = 0.5
		}
		change_variable = {
				name = aigle_var
				add = -10
			}
		
		
		

		ai_chance = {
			base = 50
		}
	}
	option = {
		name = dvg_lotharingia.3.b
		
		
		add_loyalists = {
			value = 0.5
		}
		
		
		
		change_variable = {
				name = aigle_var
				add = -10
			}
		

		ai_chance = {
			base = 50
		}
	}
}

dvg_lotharingia.4 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.4.t
	desc = dvg_lotharingia.4.d
	flavor = dvg_lotharingia.4.f
	
	event_image = {
		video = "gfx/event_pictures/southamerica_election.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = {
	}
	
	
	# Liberte!
	option = {
		name = dvg_lotharingia.4.a
		default_option = yes
		add_modifier = {
			name = modifier_army_purged
			months = normal_modifier_time
		}
		ruler = { kill_character = yes }
		
		
		
		add_radicals = {
			value = -0.5
		}
		activate_law = law_type:law_migration_controls
		activate_law = law_type:law_census_voting
		ig:ig_landowners = {
			remove_ideology = ideology_caudillismo
			}
                ig:ig_armed_forces = {
			remove_ideology = ideology_caudillismo
			}
		create_character = {
			noble = yes
			first_name = "Roger"
			last_name = "de_Lisle"
			culture = cu:lotharian
			female = no
			commander_rank = default
			interest_group = ig_intelligentsia
			ig_leader = yes
			ideology = ideology_republican_leader
			birth_date = 1797.6.10
			traits = {
				
				inspirational_orator
				
				experienced_political_operator
				
			}
			
		}
		create_character = {
		        ruler = yes
			noble = yes
			first_name = "Jean"
			last_name = "Bouillon"
			culture = cu:burgundian
			commander_rank = default
			interest_group = ig_landowners
			ig_leader = yes
			ideology = ideology_moderate
			birth_date = 1800.6.20
			traits = {
				
				romantic
				
				pious
				
			}
			
		}
		call_election = {
				months = 1
			}
		ai_chance = {
			base = 100
		}
	}
}

dvg_lotharingia.5 = { #Split Lotharingia up into warlord states
	type = country_event
	placement = root
	duration = 3

	title = dvg_lotharingia.5.t
	desc = dvg_lotharingia.5.d
	flavor = dvg_lotharingia.5.f

	event_image = {
		video = "gfx/event_pictures/europenorthamerica_springtime_of_nations.bk2"
	}

	on_created_soundeffect = "event:/SFX/Events/southamerica/war_civilians"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	trigger = {
		exists = c:LOT
		this = c:LOT
		NOT = { has_global_variable = lotharingia_shatters }
	}

	immediate = {
		set_global_variable = lotharingia_shatters
		
		set_variable = chinese_central_government
		
		s:STATE_TRANSFLEUVE = {
			add_claim = c:BEO
		}
		s:STATE_LIBREVILLE = {
			add_claim = c:ATL
		}
		s:STATE_LIBREVILLE = {
			add_claim = c:LOT
		}
s:STATE_NOUVELLE_ALSACE = {
			add_claim = c:LOT
		}
s:STATE_BOURGOGNE_DU_SUD = {
			add_claim = c:LOT
		}
s:STATE_TRANSFLEUVE = {
			add_claim = c:LOT
		}
s:STATE_BRUXELLES_SUR_ODON = {
			add_claim = c:LOT
		}	

s:STATE_MARCHES_OUEST = {
			add_claim = c:LOT
		}
		
		if = {
			limit = { exists = s:STATE_BOURGOGNE_DU_SUD.region_state:LOT }
			create_country = { #Odonia
				tag = ODO
				origin = this
				state = s:STATE_BOURGOGNE_DU_SUD.region_state:LOT
				state = s:STATE_TRANSFLEUVE.region_state:LOT

				on_created = {
					warlord_setup_effect = yes
					set_variable = warlord_state
				}
			}
			c:ODO = { save_scope_as = scope_ODO }
			if = {
				limit = { exists = s:STATE_BOURGOGNE_DU_SUD.region_state:LOT }
				s:STATE_BOURGOGNE_DU_SUD.region_state:LOT = { set_state_owner = c:ODO }
			}
			if = {
				limit = { exists = s:STATE_TRANSFLEUVE.region_state:LOT }
				s:STATE_TRANSFLEUVE.region_state:LOT = { set_state_owner = c:ODO }
			}
		}

		if = {
			limit = { exists = s:STATE_NOUVELLE_ALSACE.region_state:LOT }
			create_country = { #Nouvelle Alsace
				tag = NEA
				origin = this
				state = s:STATE_NOUVELLE_ALSACE.region_state:LOT
				state = s:STATE_LIBREVILLE.region_state:LOT

				on_created = {
					warlord_setup_effect = yes
					set_variable = warlord_state
				}
			}
			c:NEA = { save_scope_as = scope_NEA}
		}

		if = {
			limit = { exists = s:STATE_COTE_DU_CAFE.region_state:LOT }
			create_country = { #Atlantia
				tag = ATL 
				origin = this
				state = s:STATE_COTE_DU_CAFE.region_state:LOT
				state = s:STATE_GOUAS.region_state:LOT

				on_created = {
					warlord_setup_effect = yes
					set_variable = warlord_state
				}
			}
			c:ATL = { save_scope_as = scope_ATL }
			
			
		}

		if = {
			limit = { exists = s:STATE_MARCHES_OUEST.region_state:LOT }
			create_country = { #Taragui
				tag = TGI
				origin = this
				state = s:STATE_CHACO_BOREAL.region_state:LOT
				state = s:STATE_MARCHES_OUEST.region_state:LOT
				state = s:STATE_GRAND_CHACO.region_state:LOT
				state = s:STATE_EOFERWIC.region_state:LOT
				state = s:STATE_NORTHUMBRIA.region_state:LOT

				on_created = {
					warlord_setup_effect = yes
					set_variable = warlord_state
				}
			}
			c:TGI = { save_scope_as = scope_TGI }
		}

		

		every_subject_or_below = {
			limit = {
				is_subject_of = ROOT
				OR = {
					is_subject_type = subject_type_vassal
					is_subject_type = subject_type_protectorate
					is_subject_type = subject_type_dominion
					is_subject_type = subject_type_puppet
				}
			}
			
			make_independent = yes
		}

		c:ODO = {
		 if = {
			limit = {
				has_variable = warlord_state
				NOR = {
					has_variable = var_warlord_two
					has_variable = var_warlord_three
					has_variable = var_warlord_four 
				}
			}
			}
			save_scope_as = scope_random_warlord_one
			set_variable = var_warlord_one
		}

		c:NEA = {
		if = {
			limit = {
				has_variable = warlord_state
				NOR = {
					has_variable = var_warlord_one
					has_variable = var_warlord_three
					has_variable = var_warlord_four
				}
			}
			}
			save_scope_as = scope_random_warlord_two
			set_variable = var_warlord_two
		}

		c:ATL = {
		if = {
			limit = {
				has_variable = warlord_state
				NOR = {
					has_variable = var_warlord_one
					has_variable = var_warlord_two
					has_variable = var_warlord_four
				}
			}
			}
			save_scope_as = scope_random_warlord_three
			set_variable = var_warlord_three
		}

		c:TGI = {
		if = {
			limit = {
				has_variable = warlord_state
				NOR = {
					has_variable = var_warlord_one
					has_variable = var_warlord_two
					has_variable = var_warlord_three
				}
			}
			}
			save_scope_as = scope_random_warlord_four
			set_variable = var_warlord_four
		}
	}

	option = {
		name = dvg_lotharingia.5.ab
		trigger = {
			exists = scope:scope_random_warlord_one
			is_player = yes
		}
		c:LOT = {
		create_diplomatic_play = {
			name = guarani_independence
		
			target_country = c:TGI
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:TGI
				type = conquer_state
				target_state = s:STATE_BRUXELLES_SUR_ODON.region_state:LOT
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = new_alsace_independence
		
			target_country = c:NEA
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:NEA
				type = war_reparations
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = coup_of_odonia
		
			target_country = c:ODO
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:ODO
				type = annex_country
				target_country = c:LOT
			}
		}			
	}
		play_as = scope:scope_random_warlord_one
	}

	option = {
		name = dvg_lotharingia.5.b
		trigger = {
			exists = scope:scope_random_warlord_two
			is_player = yes
		}
		c:LOT = {
		create_diplomatic_play = {
			name = guarani_independence
		
			target_country = c:TGI
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:TGI
				type = conquer_state
				target_state = s:STATE_BRUXELLES_SUR_ODON.region_state:LOT
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = new_alsace_independence
		
			target_country = c:NEA
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:NEA
				type = war_reparations
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = coup_of_odonia
		
			target_country = c:ODO
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:ODO
				type = annex_country
				target_country = c:LOT
			}
		}			
	}
		play_as = scope:scope_random_warlord_two
	}

	option = {
		name = dvg_lotharingia.5.c
		trigger = {
			exists = scope:scope_random_warlord_three
			is_player = yes
		}
		c:LOT = {
		create_diplomatic_play = {
			name = guarani_independence
		
			target_country = c:TGI
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:TGI
				type = conquer_state
				target_state = s:STATE_BRUXELLES_SUR_ODON.region_state:LOT
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = new_alsace_independence
		
			target_country = c:NEA
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:NEA
				type = war_reparations
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = coup_of_odonia
		
			target_country = c:ODO
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:ODO
				type = annex_country
				target_country = c:LOT
			}
		}			
	}
		play_as = scope:scope_random_warlord_three
	}

	option = {
		name = dvg_lotharingia.5.aa
		trigger = {
			exists = scope:scope_random_warlord_four
			is_player = yes
		}
		c:LOT = {
		
		create_diplomatic_play = {
			name = coup_of_odonia
		
			target_country = c:ODO
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:ODO
				type = annex_country
				target_country = c:LOT
			}
		}
	   create_diplomatic_play = {
			name = new_alsace_independence
		
			target_country = c:NEA
			
			war = yes
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:NEA
				type = war_reparations
				target_country = c:LOT
			}
		}
	   create_diplomatic_play = {
			name = guarani_independence
		
			target_country = c:TGI
			
			war = no
			
			type =dp_rebellion_annex
			
			add_war_goal = {
				holder = c:TGI
				type = conquer_state
				target_state = s:STATE_BRUXELLES_SUR_ODON.region_state:LOT
				target_country = c:LOT
			}
		}
	}
		play_as = scope:scope_random_warlord_four
	}

	option = {
		default_option = yes
		
		name = dvg_lotharingia.5.a
		c:LOT = {
		create_diplomatic_play = {
			name = guarani_independence
		
			target_country = c:TGI
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:TGI
				type = conquer_state
				target_state = s:STATE_BRUXELLES_SUR_ODON.region_state:LOT
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = new_alsace_independence
		
			target_country = c:NEA
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:NEA
				type = war_reparations
				target_country = c:LOT
			}
		}
		create_diplomatic_play = {
			name = coup_of_odonia
		
			target_country = c:ODO
			
			war = no
			
			type = dp_rebellion_annex
			
			add_war_goal = {
				holder = c:ODO
				type = annex_country
				target_country = c:LOT
			}
		}			
	}
	}
}

dvg_lotharingia.6 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.6.t
	desc = dvg_lotharingia.6.d
	flavor = dvg_lotharingia.6.f
	
	event_image = {
		video = "gfx/event_pictures/unspecific_military_parade.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = {
	}
	
	
	# Liberte!
	option = {
		name = dvg_lotharingia.6.a
		default_option = yes
		add_modifier = {
			name = modifier_army_bolstered
			months = normal_modifier_time
		}

		add_modifier = {
			name = china_authority
			months = normal_modifier_time
		}
		add_modifier = {
			name = warlord_legitimacy
			months = normal_modifier_time
		}
		add_modifier = {
			name = order_restored
			months = normal_modifier_time
		}
		add_modifier = {
			name = reclaimed_states
			months = normal_modifier_time
		}
			
		change_infamy = -10
		
		
		add_loyalists = {
			value = 0.5
		}
		add_radicals = {
			value = -0.5
		}
		ruler = { remove_trait = immortal }
		
		ai_chance = {
			base = 50
		}
	}
	option = {
		name = dvg_lotharingia.6.b

		add_modifier = {
			name = china_authority
			months = normal_modifier_time
		}
		add_modifier = {
			name = warlord_legitimacy
			months = normal_modifier_time
		}
		add_modifier = {
			name = order_restored
			months = normal_modifier_time
		}
		add_modifier = {
			name = reclaimed_states
			months = normal_modifier_time
		}
			
		change_infamy = -10
		
		
		add_loyalists = {
			value = 0.5
		}
		add_radicals = {
			value = -0.5
		}
		activate_law = law_type:law_autocracy
		activate_law = law_type:law_monarchy
		ruler = { remove_trait = immortal }
		
		ai_chance = {
			base = 50
		}
	}
}

dvg_lotharingia.7 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.7.t
	desc = dvg_lotharingia.7.d
	flavor = dvg_lotharingia.7.f
	
	event_image = {
		video = "gfx/event_pictures/southamerica_election.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = {
	}
	
	
	# Liberte!
	option = {
		name = dvg_lotharingia.7.a
		default_option = yes
		
		
		ruler = { kill_character = yes }
		
		change_infamy = -15
		
		add_radicals = {
			value = -0.5
		}
		activate_law = law_type:law_census_voting
		activate_law = law_type:law_no_migration_controls
		
		create_character = {
			noble = yes
			first_name = "Jean"
			last_name = "Bouillon"
			culture = cu:burgundian
			female = no
			commander_rank = default
			interest_group = ig_landowners
			ig_leader = yes
			ideology = ideology_traditionalist
			birth_date = 1800.6.20
			traits = {
				
				romantic
				
				pious
				
			}
			
		}
		
		call_election = {
				months = 1
			}
		s:STATE_LIBREVILLE = {
			remove_claim = c:LOT
		}
s:STATE_NOUVELLE_ALSACE = {
			remove_claim = c:LOT
		}
s:STATE_BOURGOGNE_DU_SUD = {
			remove_claim = c:LOT
		}
s:STATE_TRANSFLEUVE = {
			remove_claim = c:LOT
		}
s:STATE_BRUXELLES_SUR_ODON = {
			remove_claim = c:LOT
		}	

s:STATE_MARCHES_OUEST = {
			remove_claim = c:LOT
		}
		ai_chance = {
			base = 100
		}
	}
}

dvg_lotharingia.8 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.8.t
	desc = dvg_lotharingia.8.d
	flavor = dvg_lotharingia.8.f
	
	event_image = {
		video = "gfx/event_pictures/southamerica_public_figure_assassination.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = {
	}
	
	
	# Liberte!
	option = {
		name = dvg_lotharingia.8.a
		default_option = yes
		
		add_modifier = {
			name = warlord_legitimacy
			months = normal_modifier_time
		}
		
		add_loyalists = {
			value = 0.5
		}
		activate_law = law_type:law_landed_voting
		activate_law = law_type:law_no_migration_controls
		change_tag = LOT
		
		create_character = {
		
			is_general = yes
			first_name = "Charles"
			last_name = "de_Kinsen"
			noble = yes
			culture = cu:lotharian
			commander_rank = default
			interest_group = ig_armed_forces
			ideology = ideology_republican_leader
			hq = region_la_plata
			birth_date = 1798.6.12
			ig_leader = yes
			traits = {
				scarred
				psychological_affliction
				wrathful
				firebrand
				trench_rat
			}
			# prestige = 0.1
		}
		
		call_election = {
				months = 1
			}
		ai_chance = {
			base = 100
		}
	}
}

dvg_lotharingia.9 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.9.t
	desc = dvg_lotharingia.9.d
	flavor = dvg_lotharingia.9.f
	
	event_image = {
		video = "gfx/event_pictures/europenorthamerica_native_american.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 3

	trigger = {
	}
	
	
	# Authoritie!
	option = {
		name = dvg_lotharingia.9.a
		default_option = yes
		
		
		add_modifier = {
			name = china_authority
			months = normal_modifier_time
		}
		add_modifier = {
			name = warlord_legitimacy
			months = normal_modifier_time
		}
		add_modifier = {
			name = order_restored
			months = normal_modifier_time
		}
		add_modifier = {
			name = reclaimed_states
			months = normal_modifier_time
		}
		change_relations = {
				country = c:TWT
				value = 30
			}
		
		add_loyalists = {
			value = 0.6
		}
		set_country_type = recognized
		
		activate_law = law_type:law_migration_controls
		
		
		ai_chance = {
			base = 100
		}
	}
}

dvg_lotharingia.10 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.10.t
	desc = dvg_lotharingia.10.d
	flavor = dvg_lotharingia.10.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/southamerica_aristocrats.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/southamerica/aristocrats"

	icon = "gfx/interface/icons/event_icons/event_military.dds"

	trigger = {
			owns_entire_state_region = STATE_COTE_DU_CAFE
		}

	immediate = {
		if = {
			limit = {
				owns_entire_state_region = STATE_COTE_DU_CAFE
			}
			s:STATE_COTE_DU_CAFE.region_state:LOT = {
			if = {
				limit = {
					state_region = s:STATE_COTE_DU_CAFE
				}
				}
				save_scope_as = atlantia_state
			}
		}
	}
	
	option = {
		name = dvg_lotharingia.10.a
		default_option = yes
		if = {
			limit = {
				country_has_primary_culture = cu:lotharian #DVG
			}
			scope:atlantia_state = {
				state_region = {
					add_homeland = lotharian #DVG
				}
			}
		}
		
		change_variable = {
				name = aigle_var
				add = 20
			}
		scope:atlantia_state = {
			add_modifier = {
			name = dvg_atlantia_support
			days = 1825
			
		}
		}
	}
}

dvg_lotharingia.11 = {
	type = country_event
	placement = ROOT

	title = dvg_lotharingia.11.t
	desc = dvg_lotharingia.11.d
	flavor = dvg_lotharingia.11.f
	
	event_image = {
		video = "gfx/event_pictures/unspecific_signed_contract.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/middleeast/courtroom_upheaval"

	icon = "gfx/interface/icons/event_icons/event_fire.dds"

	duration = 1

	trigger = {
	    year = 1836
	}
	
	
	# Vive!
	option = {
		name = dvg_lotharingia.11.a
		default_option = yes
		remove_primary_culture = cu:lotharian
		change_relations = {
				country = c:ATL
				value = -15
			}
		 change_relations = {
				country = c:LOT
				value = -30
			}

		c:BRG = {
			create_diplomatic_pact = {
				country = c:NEA
				type = dominion 
			}
		}
		
		ai_chance = {
			base = 30
		}
	}
	option = {
		name = dvg_lotharingia.11.b
		remove_primary_culture = cu:lotharian
		change_relations = {
				country = c:ATL
				value = -15
			}
		 change_relations = {
				country = c:LOT
				value = -30
			}

		c:BRG = {
			create_diplomatic_pact = {
				country = c:NEA
				type = puppet
			}
		}
		play_as = c:BRG

		ai_chance = {
			base = 15
		}
		
	}
	option = {
		name = dvg_lotharingia.11.c

		 change_relations = {
				country = c:ATL
				value = -15
			}
		 change_relations = {
				country = c:LOT
				value = -30
			}

		c:BRG = {
			create_diplomatic_pact = {
				country = c:NEA
				type = customs_union
			}
			create_diplomatic_pact = {
				country = c:NEA
				type = defensive_pact
			}
		}
		
		ai_chance = {
			base = 55
		}
	}
}


