###########################
# Gabon
###########################

add_namespace = gab

country_event = {
	id = gab.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.1" }
	title = gab.1.t
	desc = gab.1.d
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

trigger = {
		tag = GAB
	}

	is_triggered_only = yes

	option = {
		name = gab.1.a
		ai_chance = {
			factor = 85
		}

	}
}

country_event = { #Coup attempt
	id = gab.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.2" }
	title = gab.2.t
	desc = gab.2.d
	
	picture = GFX_report_event_GAB_coup

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = gab.2.a
		ai_chance = {
			factor = 50
		}
		create_country_leader = {
			name = "Gabriel Leon M'ba"
			desc = "POLITICS_MBA_PATAUT_DESC"
			picture = "gfx/leaders/GAB/Portrait_GAB_Gabriel_Leon_Mba.png"
			expire = "1.1.1"
			ideology = oligarchy_subtype
			traits = { hyperpresident }
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		set_country_flag = GAB_mba_power
		complete_national_focus = GAB_paranoia_of_man
	}

	option = {
		name = gab.2.b
		ai_chance = {
			factor = 50
		}
		remove_all_ministers = yes
		create_country_leader = {
			name = "Charles N'Tchoréré"
			desc = "POLITICS_NTCHORERE_DESC"
			picture = "gfx/leaders/GAB/Portrait_GAB_Tchorere.png"
			expire = "1.1.1"
			ideology = authdem_junta_subtype
		}
		drop_cosmetic_tag = yes
		set_party_name = {
			ideology = authoritarian_democrat
			long_name = GAB_authoritarian_democrat_party_2_long
			name = GAB_authoritarian_democrat_party_2
		}
		set_party_name = {
			ideology = paternal_autocrat
			long_name = GAB_paternal_autocrat_party_2_long
			name = GAB_paternal_autocrat_party_2
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		add_popularity = {
			ideology = social_conservative
			popularity = -0.2
		}
		complete_national_focus = GAB_sucsesful_coup
		set_country_flag = GAB_coup_flag
		if = {
			limit = { is_subject = yes }
			overlord = {
				set_autonomy = {
					target = GAB
					autonomous_state = autonomy_free
				}
			}
		}
		if = {
			limit = { is_in_faction = yes }
			leave_faction = yes
			separate_peace_all_wars = yes
		}
		set_cosmetic_tag = GAB_REP
	}
}

country_event = { #elections n stuff
	id = gab.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.3" }
	title = gab.3.t
	desc = gab.3.d

	fire_only_once = yes
	
	picture = GFX_report_event_GAB_coup
	
	mean_time_to_happen = {
		days = 90
	}

trigger = {
		tag = GAB
		has_completed_focus = GAB_reverse_the_madmans_policies
		has_completed_focus = GAB_rebuild_democratic_institutions
	}

	option = {
		name = gab.3.a
		ai_chance = {
			factor = 50
		}
		hidden_effect = {
			country_event = {
				id = gab.3000
				days = 20
			}
		}
	}
}

country_event = { #elections n stuff
	id = gab.3000
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.3000" }
	title = gab.3000.t
	desc = gab.3000.d
	
	immediate = {
		hidden_effect = {
			country_event = {
				id = gab.15
				days = 2190
			}
		}
	}
	
	picture = GFX_report_event_AST_election

	fire_only_once = yes

	is_triggered_only = yes
	
	option = {
		name = gab.3000.a
	trigger = {
			NOT = {
				has_country_flag = GAB_no_socialists_elections
			}
		}
		ai_chance = {
			factor = 50
		}
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		add_ideas = {
			GAB_Jean_Jacques_Boucavel_hog_rso
			GAB_Marcel_Sandoungou_for_rso
			GAB_Pierre_Claver_Divoungui_eco_rso
			GAB_Valentin_Mihindou_Mi_Nzambe_sec_rso
		}
		set_country_flag = GAB_socialists_elected
		drop_cosmetic_tag = yes
	}

	option = {
		name = gab.3000.c
	trigger = {
			NOT = {
				has_country_flag = GAB_only_socialists
			}
		}
		ai_chance = {
			factor = 50
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = no
		}
		add_ideas = {
			GAB_Felix_Eboue_hog_sli
			GAB_Maurice_Perriot_for_sli
			GAB_Andre_Bayardelle_eco_sli
			GAB_Georges_Parisot_sec_sli
		}
		set_country_flag = GAB_democracy_restored
	}
	
	option = {
		name = gab.3000.b
	trigger = {
			NOT = {
				has_country_flag = GAB_only_socialists
			}
		}
		ai_chance = {
			factor = 50
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
		add_ideas = {
			GAB_Jean_Baptiste_Robert_hog_ade
			GAB_Francois_Reste_for_ade
			GAB_Albert_Kohan_eco_ade
			GAB_Gaston_Flaubert_sec_ade
		}
		set_country_flag = GAB_democracy_restored
	}
}

country_event = { #rejoin entente?
	id = gab.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.4" }
	title = gab.4.t
	desc = gab.4.d
	
	picture = GFX_report_event_usumbura

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = gab.4.a
		ai_chance = {
			factor = 30
		}
		add_political_power = 10
	}

	option = {
		name = gab.4.b
		ai_chance = {
			factor = 70
		}
		trigger = {
			has_war = no
		}
		ENT = {
			country_event = {
				id = gab.9
				days = 5
			}
		}
	}
}

######## Nat France Guns Block ########

country_event = { # Petition Nat France for guns
	id = gab.300
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.300 FROM = [From.GetName]" }
	title = gab.300.t
	desc = gab.300.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes

	option = { #Give them what they want
		name = gab.300.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = -100
		}
		GAB = {
			country_event = {
				id = gab.400
				days = 1
			}
		}
	}
	option = { #Refuse
		name = gab.300.b
		add_political_power = -20
		GAB = {
			country_event = {
				id = gab.5
				days = 1
			}
		}
	}
}

country_event = { # Nat France says yes
	id = gab.400
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.400 FROM = [From.GetName]" }
	title = gab.400.t
	desc = gab.400.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = gab.400.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 100
			producer = NFA
		}
	}
}

country_event = { # Nat France says no
	id = gab.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.5 FROM = [From.GetName]" }
	title = gab.5.t
	desc = gab.5.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = gab.5.a
		add_political_power = -20
	}
}

######## Nat France Guns Block Ends ########

######## Commie France Guns Block ########


country_event = { # Petition Commie France for guns
	id = gab.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.6 FROM = [From.GetName]" }
	title = gab.6.t
	desc = gab.6.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes

	option = { #Give them what they want
		name = gab.6.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = -100
		}
		GAB = {
			country_event = {
				id = gab.4
				days = 1
			}
		}
	}
	option = { #Refuse
		name = gab.6.b
		add_political_power = -20
		GAB = {
			country_event = {
				id = gab.5
				days = 1
			}
		}
	}
}

country_event = { # Commie France says yes
	id = gab.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.7 FROM = [From.GetName]" }
	title = gab.7.t
	desc = gab.7.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = gab.7.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 100
			producer = FRA
		}
	}
}

country_event = { # Commie France says no
	id = gab.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.8 FROM = [From.GetName]" }
	title = gab.8.t
	desc = gab.8.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = gab.8.a
		add_political_power = -20
	}
}


######## Commie France Guns Block Ends ########

######## Join Entente Block ########
country_event = {
	id = gab.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.9 FROM = [From.GetName]" }
	title = gab.9.t
	desc = gab.9.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes

	option = {
		name = gab.9.a
		ai_chance = { base = 100 }
		if = {
			limit = { is_faction_leader = yes }
			add_to_faction = FROM
		}
		else = {
			faction_leader = { add_to_faction = FROM }
		}
		add_political_power = 20
		FROM = { country_event = gab.10 }
	}
	option = {
		name = gab.9.b
		ai_chance = { base = 0 }
		FROM = { country_event = gab.11 }
	}
}

country_event = {
	id = gab.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.10 FROM = [From.GetName]" }
	title = gab.10.t
	desc = gab.10.d
	
	picture = GFX_report_event_usumbura
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = gab.10.a
		add_political_power = 20
	}
}

country_event = {
	id = gab.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.11 FROM = [From.GetName]" }
	title = gab.11.t
	desc = gab.11.d
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes

	option = {
		name = gab.11.a
		add_political_power = -5
	}
}

######## Join Entente Block Ends ########

######## Join 3rd Internationale Block ########

country_event = {
	id = gab.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.12 FROM = [From.GetName]" }
	title = gab.12.t
	desc = gab.12.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes

	option = {
		name = gab.12.a
		ai_chance = {
			base = 100
		}
		if = {
			limit = { is_faction_leader = yes }
			add_to_faction = FROM
		}
		else = {
			faction_leader = { add_to_faction = FROM }
		}
		add_political_power = 20
		FROM = { country_event = gab.13 }
	}
	option = {
		name = gab.12.b
		FROM = { country_event = gab.14 }
	}
}

country_event = {
	id = gab.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.13 FROM = [From.GetName]" }
	title = gab.13.t
	desc = gab.13.d
	
	picture = GFX_report_event_usumbura
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = gab.13.a
		add_political_power = 20
	}
}

country_event = {
	id = gab.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.14 FROM = [From.GetName]" }
	title = gab.14.t
	desc = gab.14.d
	
	picture = GFX_report_event_usumbura

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = gab.14.a
		add_political_power = -5
	}
}

######## Join 3rd Internationale Block Ends ########

country_event = { # Next Gabon Elections Event
	id = gab.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event gab.15 FROM = [From.GetName]" }
	title = gab.15.t
	desc = gab.15.d
	
	immediate = {
		hidden_effect = {
			country_event = {
				id = gab.15
				days = 2190
			}
		}
	}
	
	picture = GFX_report_event_AST_election

	is_triggered_only = yes

	option = {
		name = gab.15.a
	trigger = {
			NOT = {
				has_country_flag = GAB_only_socialists
			}
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
		add_political_power = 25
		if = {
			limit = {
				is_in_faction_with = INT
			}
			leave_faction = yes
		}
		if = {
			limit = {
				has_country_flag = GAB_socialists_elected
			}
			clr_country_flag = GAB_socialists_elected
			set_country_flag = GAB_democracy_restored
		}
		remove_all_ministers = yes
		add_ideas = {
			GAB_Jean_Baptiste_Robert_hog_ade
			GAB_Francois_Reste_for_ade
			GAB_Albert_Kohan_eco_ade
			GAB_Gaston_Flaubert_sec_ade
		}
	}
	option = {
		name = gab.15.b
	trigger = {
			NOT = {
				has_country_flag = GAB_no_socialists_elections
			}
		}
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		if = {
			limit = {
				is_in_faction_with = ENT
			}
			leave_faction = yes
		}
		if = {
			limit = {
				has_country_flag = GAB_democracy_restored
			}
			clr_country_flag = GAB_democracy_restored
			set_country_flag = GAB_socialists_elected
		}
		add_political_power = 25
		remove_all_ministers = yes
		drop_cosmetic_tag = yes
		add_ideas = {
			GAB_Fulbert_Youlou_hog_rso
			GAB_Pascal_Lissouba_for_rso
			GAB_Alphonse_Massemba_Debat_eco_rso
			GAB_Nkola_Mbomo_sec_rso
		}
	}
	option = {
		name = gab.15.c
	trigger = {
			NOT = {
				has_country_flag = GAB_only_socialists
			}
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = no
		}
		if = {
			limit = {
				is_in_faction_with = INT
			}
			leave_faction = yes
		}
		if = {
			limit = {
				has_country_flag = GAB_socialists_elected
			}
			clr_country_flag = GAB_socialists_elected
			set_country_flag = GAB_democracy_restored
		}
		add_political_power = 25
		remove_all_ministers = yes
		add_ideas = {
			GAB_Felix_Eboue_hog_sli
			GAB_Maurice_Perriot_for_sli
			GAB_Andre_Bayardelle_eco_sli
			GAB_Georges_Parisot_sec_sli
		}
	}
}

country_event = { #forced labour
	id = gab.16
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.16"}
	title = gab.16.t
	desc = gab.16.d
	picture = GFX_MON_camp

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.16.a
		add_stability = -0.02
	}
}

country_event = { #bwati faith
	id = gab.17
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.17"}
	title = gab.17.t
	desc = gab.17.d
	picture = GFX_report_event_GAB_mba3

	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #yes
		name = gab.17.a
		add_war_support = 0.01
		hidden_effect = {
			country_event = {
				id = gab.39
				days = 19
			}
		}
	}
}

country_event = { #hyperpurge
	id = gab.18
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.18"}
	title = gab.18.t
	desc = gab.18.d
	picture = report_event_GAB_mba_microphone

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.18.a
		add_political_power = -50
	}
}

country_event = { #kleptocracy
	id = gab.19
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.19"}
	title = gab.19.t
	desc = gab.19.d
	picture = GFX_report_event_GAB_mba2

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.19.a
		add_stability = -0.02
	}
}

country_event = { #mba united central africa
	id = gab.20
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.20"}
	title = gab.20.t
	desc = gab.20.d
	picture = GFX_report_event_GAB_mba

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.20.a
		add_war_support = 0.01
	}
}

country_event = { #Gondjout united central africa
	id = gab.21
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.21"}
	title = gab.21.t
	desc = gab.21.d
	picture = GFX_report_event_GAB_gondjout
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #yes
		name = gab.21.a
		add_war_support = 0.01
	}
}

country_event = { #Aubame united central africa
	id = gab.22
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.22"}
	title = gab.22.t
	desc = gab.22.d
	picture = GFX_report_event_GAB_aubame

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.22.a
		add_war_support = 0.01
	}
}

country_event = { #Socialists united central africa
	id = gab.230
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.230"}
	title = gab.230.t
	desc = gab.230.d
	picture = GFX_report_event_GAB_sousatte

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.230.a
		add_war_support = 0.01
	}
}

country_event = { #Socialists united central africa
	id = gab.23
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.23"}
	title = gab.23.t
	desc = gab.23.d
	picture = GFX_report_event_GAB_sousatte

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.23.a
		add_war_support = 0.01
	}
}

country_event = { #red militia
	id = gab.24
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.24"}
	title = gab.24.t
	desc = gab.24.d
	picture = GFX_report_event_GAB_sousatte

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.24.a
		army_experience = 3
	}
}

country_event = { #red gabon
	id = gab.25
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.25"}
	title = gab.25.t
	desc = gab.25.d
	picture = GFX_report_event_GAB_sousatte

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.25.a
		add_political_power = 10
	}
}

country_event = { #soclib french freindship
	id = gab.26
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.26"}
	title = gab.26.t
	desc = gab.26.d
	picture = GFX_report_event_GAB_gondjout

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.26.a
		add_stability = 0.01
	}
}

country_event = { #modern gabon
	id = gab.27
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.27"}
	title = gab.27.t
	desc = gab.27.d
	picture = GFX_report_event_GAB_gondjout

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.27.a
		add_stability = 0.01
	}
}

country_event = { #mba french freindship
	id = gab.28
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.28"}
	title = gab.28.t
	desc = gab.28.d
	picture = GFX_report_event_GAB_mba_party

	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #yes
		name = gab.28.a
		add_stability = 0.01
	}
}

country_event = { #restore FEA
	id = gab.29
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.29"}
	title = gab.29.t
	desc = gab.29.d
	picture = GFX_report_event_GAB_mba

	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #yes
		name = gab.29.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = gab.30
				days = 20
			}
		}
	}
}

country_event = { #restore FEA
	id = gab.30
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.30"}
	title = gab.30.t
	desc = gab.30.d
	picture = GFX_report_event_GAB_fea_map

	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #yes
		name = gab.30.a
		add_political_power = 10
		hidden_effect = {
			country_event = {
				id = gab.301
				days = 7
			}
		}	
		set_party_name = {
			name = GAB_authoritarian_democrat_party_3
			long_name = GAB_authoritarian_democrat_party_3_long
			ideology = authoritarian_democrat
		}
		set_party_name = {
			name = GAB_authoritarian_democrat_party_3
			long_name = GAB_authoritarian_democrat_party_3_long
			ideology = paternal_autocrat
		}
	}
	option = { #yes
		name = gab.30.b
		NFA = {
			end_puppet = GAB
		}
		set_cosmetic_tag = GAB_EQUATOR_REP
	}
}

country_event = { #New Gov Gen
	id = gab.301
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.301"}
	title = gab.301.t
	desc = gab.301.d
	picture = GFX_report_event_GAB_fea_map

	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #Keep M'Ba
		name = gab.301.a
		if = {
			limit = {
				has_government = paternal_autocrat
			}
			set_country_leader_ideology = autocratic_colonial_govt_subtype
		}
		if = {	
			limit = { has_country_leader = { name = "Gabriel Leon M'ba" ruling_only = yes } }
			set_country_leader_portrait = {
				portrait = "gfx/leaders/GAB/Portrait_GAB_Gabriel_Leon_Mba_Governor.png"
			}
		}
	}
	option = { #yes
		name = gab.301.b
	trigger = {
			FAR = {
				NOT = {
					has_country_leader = {
						name = "Félix Eboué"
					}
				}
			}
		}
		create_country_leader = {
			name = "Félix Eboué"
			picture = "gfx/leaders/CAF/Portrait_CAF_Felix_Eboue.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype
			traits = {
				sec_man_of_the_people
			}
		}
		create_country_leader = {
			name = "Félix Eboué"
			picture = "gfx/leaders/CAF/Portrait_CAF_Felix_Eboue.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype
			traits = {
				sec_man_of_the_people
			}
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.4
		}
	}
	
	option = { #yes
		name = gab.301.c
		create_country_leader = {
			name = "Joseph-François Reste"
			picture = "gfx/leaders/GAB/Portrait_GAB_Joseph_Francois_Reste.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype
			traits = {
				
			}
		}
	}
}

country_event = { #peace with spaination
	id = gab.31
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.31"}
	title = gab.31.t
	desc = gab.31.d
	picture = GFX_report_event_MAF_askari
	
	mean_time_to_happen = {
		days = 90
	}

	fire_only_once = yes
	
trigger = {
		owns_state = 297
		OR = {
			tag = CNT
			tag = SPR
			tag = CAR
			tag = SFA
		}
		has_war_with = GAB
		NOT = {
			controls_state = 297
		}
	}

	option = { #yes
		name = gab.31.a
		GAB = {
			country_event = {
				id = gab.32
				days = 2
			}
		}
	}
	option = { #yes
		name = gab.31.b
	trigger = {
			is_ai = no
		}
		add_political_power = -20
	}
}

country_event = { #peace with spain?
	id = gab.32
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.32"}
	title = gab.32.t
	desc = gab.32.d
	picture = GFX_report_event_MAF_askari
	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #yes
		name = gab.32.a
		FROM = {
			country_event = {
				id = gab.33
				days = 2
			}
		}
	}
	option = { #no
		name = gab.32.b
		trigger = {
			is_ai = no
		}
		FROM = {
			country_event = {
				id = gab.34
				days = 2
			}
		}
	}
}

country_event = { #giving land to Gabon
	id = gab.33
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.33"}
	title = gab.33.t
	desc = gab.33.d
	picture = GFX_report_event_MAF_askari

	fire_only_once = yes

	is_triggered_only = yes

	option = { #yes
		name = gab.33.a
			white_peace = GAB
			every_country = {
			limit = { is_in_faction_with = ROOT }
			white_peace = GAB
			}
			GAB = {
				transfer_state = 297
			}
	}
}

country_event = { #asshats said no :p
	id = gab.34
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.34"}
	title = gab.34.t
	desc = gab.34.d
	picture = GFX_report_event_MAF_askari

	fire_only_once = yes

	is_triggered_only = yes

	option = { #yes
		name = gab.34.a
		add_political_power = -20
	}
}

country_event = { #peace with the tugas
	id = gab.35
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.35"}
	title = gab.35.t
	desc = gab.35.d
	picture = GFX_report_event_MAF_askari
	
	mean_time_to_happen = {
		days = 90
	}

	fire_only_once = yes
	
trigger = {
		owns_state = 914
		OR = {
			tag = POR
			tag = PAF
		}
		has_war_with = GAB
		NOT = {
			controls_state = 914
		}
	}

	option = { #yes
		name = gab.35.a
		GAB = {
			country_event = {
				id = gab.36
				days = 2
			}
		}
	}
	option = { #yes
		name = gab.35.b
	trigger = {
			is_ai = no
		}
		add_political_power = -20
	}
}

country_event = { #peace with the tugas?
	id = gab.36
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.36"}
	title = gab.36.t
	desc = gab.36.d
	picture = GFX_report_event_MAF_askari
	fire_only_once = yes
	
	is_triggered_only = yes

	option = { #yes
		name = gab.36.a
		FROM = {
			country_event = {
				id = gab.37
				days = 2
			}
		}
	}
	option = { #no
		name = gab.36.b
	trigger = {
			is_ai = no
		}
		FROM = {
			country_event = {
				id = gab.38
				days = 2
			}
		}
	}
}

country_event = { #giving land to Gabon
	id = gab.37
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.37"}
	title = gab.37.t
	desc = gab.37.d
	picture = GFX_report_event_MAF_askari

	fire_only_once = yes

	is_triggered_only = yes

	option = { #yes
		name = gab.37.a
			white_peace = GAB
			every_country = {
			limit = { is_in_faction_with = POR }
			white_peace = GAB
			}
			GAB = {
				transfer_state = 914
			}
	}
}

country_event = { #asshats said no :p
	id = gab.38
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.38"}
	title = gab.38.t
	desc = gab.38.d
	picture = GFX_report_event_MAF_askari

	fire_only_once = yes

	is_triggered_only = yes

	option = { #yes
		name = gab.38.a
		add_political_power = -20
	}
}

country_event = { #sketchy past
	id = gab.39
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.39"}
	title = gab.39.t
	desc = gab.39.d
	picture = GFX_report_event_GAB_sketchy_past_spirituality

	fire_only_once = yes
	is_triggered_only = yes

	option = { #yes
		name = gab.39.a
		add_stability = -0.03
		add_command_power = 7
		hidden_effect = {
			if = {
				limit = { is_in_faction_with = ENT }
				country_event = {
					id = gab.40
					days = 37
				}
			}
		}
	}
}

country_event = { #charm allies
	id = gab.40
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.40"}
	title = gab.40.t
	desc = gab.40.d
	picture = GFX_report_event_GAB_epigenesis_allies

	fire_only_once = yes
	is_triggered_only = yes

	option = { #yes
		name = gab.40.a
		add_political_power = 30
	}
}

country_event = { #socialist final dream
	id = gab.41
	immediate = {log = "[GetDateText]: [Root.GetName]: event gab.41"}
	title = gab.41.t
	desc = gab.41.d
	picture = GFX_report_event_GAB_sousatte

	fire_only_once = yes
	is_triggered_only = yes

	option = { #radsoc
		name = gab.41.a
		ai_chance = {
			factor = 60
		}
		add_tot_to_coalition = yes
		add_synd_to_coalition = yes
	}
	option = { #syndie
		name = gab.41.b
		ai_chance = {
			factor = 39
		}
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		create_country_leader = {
			name = "Rene-Paul Sousatte"
			desc = "POLITICS_SOUSATTE_DESC"
			picture = "gfx/leaders/GAB/Portrait_GAB_Rene_Paul_Sousatte.png"
			expire = "1.1.1"
			ideology = african_syndicalism_subtype
		}
		add_tot_to_coalition = yes
		add_radsoc_to_coalition = yes
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			add_ideas = GAB_Louis_Mvey_hog_syn
		}
		drop_cosmetic_tag = yes
	}
	option = { #radsoc pan-afr
		name = gab.41.c
		ai_chance = {
			factor = 0
		}
		set_country_leader_ideology = radsoc_left_panafricanism_subtype
		set_cosmetic_tag = GAB_AFRICA
		add_tot_to_coalition = yes
		add_synd_to_coalition = yes
		hidden_effect = {
			every_country = {
				limit = {
					is_in_africa = yes
				}
				ROOT = {
					create_wargoal = {
						target = PREV
						type = annex_everything
					}
				}
			}
			every_state = {
				limit = {
					is_on_continent = africa
				}
				GAB = { 
					add_state_core = PREV 
				}
			}
		}
	}
	option = { #syndie pan-afr
		name = gab.41.e
		ai_chance = {
			factor = 1
		}
		set_cosmetic_tag = GAB_AFRICA
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		create_country_leader = {
			name = "Rene-Paul Sousatte"
			desc = "POLITICS_SOUSATTE_DESC"
			picture = "gfx/leaders/GAB/Portrait_GAB_Rene_Paul_Sousatte.png"
			expire = "1.1.1"
			ideology = syn_left_panafricanism_subtype
		}
		add_tot_to_coalition = yes
		add_radsoc_to_coalition = yes
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			add_ideas = GAB_Louis_Mvey_hog_syn
			every_country = {
				limit = {
					is_in_africa = yes
				}
				ROOT = {
					create_wargoal = {
						target = PREV
						type = annex_everything
					}
				}
			}
			every_state = {
				limit = {
					is_on_continent = africa
				}
				GAB = { 
					add_state_core = PREV 
				}
			}
		}
	}
}