﻿
###########################
#Ubangi Events
###########################
#By IratePirate
###########################

add_namespace = ubangi

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

	option = {
		name = ubangi.1.a
		ai_chance = { factor = 100 }
	}
	option = {
		name = ubangi.1.b
		ai_chance = { factor = 100 }
		country_event = ubangi.12
	}
}
country_event = {#Batouala
	id = ubangi.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.2" }
	title = ubangi.2.t
	desc = ubangi.2.d
	picture = GFX_report_event_CEA_countryside
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.2.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_stability = 0.01
		}
		add_political_power = 5
	}
}
country_event = {#Civil war - if picked Wadai to side with
	id = ubangi.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.3" }
	title = ubangi.3.t
	desc = ubangi.3.d
	picture = GFX_report_event_CEA_dar_al_kuti
	is_triggered_only = yes
	trigger = {
		owns_state = 975
		NOT = {
			country_exists = WAD
		}
	}
	immediate = {
		hidden_effect = {
					WAD = {
						transfer_state = 660
					}
					CEA = {
						WAD = {
							transfer_technology = yes
						}
					}
					WAD = {
						set_cosmetic_tag = CEA_EQUATORIAL_AFRICA_TAG
						create_country_leader = {
							name = "Antoine Darlan"
							desc = "POLITICS_ANTONIE_DARLAN_DESC"
							picture = "gfx/leaders/CEA/Portrait_CEA_Antoine_Darlan.png"
							expire = "1.1.1"
							ideology = christian_anarchism_subtype
						}
						set_politics = {
							ruling_party = radical_socialist
							elections_allowed = no
						}
						add_popularity = {
							ideology = radical_socialist
							popularity = 0.25
						}
						add_state_core = 660
						add_state_claim = 975
						load_oob = "WAD_BAN"
						load_focus_tree = African_Generic_Democracy
					}
				CEA = {
					declare_war_on = {
						target = WAD
						type = annex_everything
					}
				}
			if = {
				limit = {
					CEA = {
							is_ai = no
						}
					}
				WAD = {
					load_oob = WAD_BAN
				}
			}
		}
	}
	option = {
		name = ubangi.3.a
		ai_chance = { factor = 100 }
		add_war_support = 0.1
	}
}
country_event = {#Civil war - if picked Bangui to side with
	id = ubangi.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.4" }
	title = ubangi.4.t
	desc = ubangi.4.d
	picture = GFX_report_event_elites	
	is_triggered_only = yes
	trigger = {
		owns_state = 975
		NOT = {
			country_exists = WAD
		}
	}
	immediate = {
		hidden_effect = {
					WAD = {
						transfer_state = 975
					}
					CEA = {
						WAD = {
							transfer_technology = yes
						}
					}
					WAD = {
						create_country_leader = {
							name = "Muhammad Urada ibn Ibrahim"
							picture = "gfx/leaders/WAD/Portrait_WAD_Muhammad_Urada.png"
							expire = "1.1.1"
							ideology = tribal_chiefdom_subtype
						}
						set_cosmetic_tag = WAD_BAN
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.25
						}
						add_state_core = 975
						add_state_claim = 660
						load_oob = "WAD_WAD"
					}
				CEA = {
					declare_war_on = {
						target = WAD
						type = annex_everything
					}
				}
			if = {
				limit = {
					CEA = {
							is_ai = no
						}
					}
				WAD = {
					load_oob = WAD_WAD
				}
			}
		}
	}
	option = {
		name = ubangi.4.a
		ai_chance = { factor = 100 }
		add_war_support = 0.1
	}
}
country_event = {#Black Monday
	id = ubangi.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.5" }
	title = ubangi.5.t
	desc = ubangi.5.d
	picture = GFX_report_event_road
	is_triggered_only = yes

	option = {
		name = ubangi.5.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_stability = -0.1
			add_war_support = -0.1
			add_political_power = -150
		}
		if = {
			limit = {
				tag = MAF
				}
			add_political_power = -5
		}
	}
}
country_event = {#Divisions
	id = ubangi.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.6" }
	title = ubangi.6.t
	desc = ubangi.6.d
	picture = GFX_report_event_africamountain
	
	is_triggered_only = yes

	option = {
		name = ubangi.6.a
		ai_chance = { factor = 100 }
		trigger = {
			NOT = {
				tag = MAF
			}
		}
		add_ideas = CEA_divisions_idea
	}
	option = {
		name = ubangi.6.b
		ai_chance = { factor = 100 }
	trigger = {
			is_subject_of = MAF
			NOT = {
				tag = MAF
			}
		}
		add_ideas = CEA_divisions_idea
		MAF = {
			country_event = {
				id = ubangi.7
				days = 3
			}
		}
	}
	option = {
		name = ubangi.6.c
		ai_chance = { factor = 100 }
	trigger = {
			tag = MAF
		}
		add_political_power = -5
	}
}

country_event = {#CEA asks to hand over Chad to France
	id = ubangi.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.7" }
	title = ubangi.7.t
	desc = ubangi.7.d

	picture = GFX_report_event_chiefs2
	is_triggered_only = yes

	option = {#Sure
		name = ubangi.7.a
		ai_chance = { factor = 100 }
		NFA = {
			country_event = {
				id = ubangi.8
				days = 2
				}
			}
		hidden_effect = {
			CEA = {
				country_event = {
					id = ubangi.8
					days = 2
				}
			}
		}
	}
	option = {
		name = ubangi.7.b
		ai_chance = { factor = 100 }
		CEA = {
			country_event = {
				id = ubangi.9
				days = 2
			}
		}
	}
}
country_event = {#MAF and CEA offer southern Chad back
	id = ubangi.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.8" }
	title = ubangi.8.t
	desc = ubangi.8.d
	picture = GFX_report_event_chiefs2
	is_triggered_only = yes

	option = {
		name = ubangi.8.a
		ai_chance = { factor = 100 }
		trigger = {
			tag = NFA
		}
		add_political_power = 20
	}
	option = {
		name = ubangi.8.b
		ai_chance = { factor = 100 }
		trigger = {
			tag = CEA
		}
		NFA = {
			transfer_state = 975
		}
		if = {
			limit = {
				CEA = {
					has_cosmetic_tag = CEA_GERMAN
				}
			}
			set_cosmetic_tag = CEA_GERMAN_SOUTH
			add_stability = 0.25
			add_war_support = 0.2
		}
	}
}
country_event = {#MAF refuses
	id = ubangi.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.9" }
	title = ubangi.9.t
	desc = ubangi.9.d
	picture = GFX_report_event_chiefs2
	is_triggered_only = yes

	option = {
		name = ubangi.9.a
		ai_chance = { factor = 100 }
		add_political_power = -10
	}
}
country_event = {#CSHO Embezzlement
	id = ubangi.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.10" }
	title = ubangi.10.t
	desc = ubangi.10.d
	picture = GFX_report_event_rainforest
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ubangi.10.a
		ai_chance = { factor = 100 }
		add_political_power = -15
	}
}
country_event = {#Missions
	id = ubangi.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.11" }
	title = ubangi.11.t
	desc = ubangi.11.d
	picture = GFX_report_event_CEA_faith
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ubangi.11.a
		ai_chance = { factor = 100 }
	}
}
country_event = {#History lesson?
	id = ubangi.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.12" }
	title = ubangi.12.t
	desc = ubangi.12.d

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

	option = {
		name = ubangi.12.a
		ai_chance = { factor = 0 }
	}
	option = {
		name = ubangi.12.b
		ai_chance = { factor = 100 }
		country_event = ubangi.13
	}
}
country_event = {#More history
	id = ubangi.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.13" }
	title = ubangi.13.t
	desc = ubangi.13.d
	picture = GFX_report_event_mosque	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.13.a
		ai_chance = { factor = 100 }
		add_manpower = -1
	}
}
country_event = {#André Gide Criticises Franco-German Governance in Africa
	id = ubangi.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.14" }
	title = ubangi.14.t
	desc = ubangi.14.d
	picture = GFX_report_event_andre
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.14.a
		trigger = {
			CEA = { is_subject_of = MAF }
		}
		ai_chance = { factor = 100 }
		add_political_power = -3
	}
	option = {
		name = ubangi.14.b
		trigger = {
			NOT = { CEA = { is_subject_of = MAF } }
		}
		ai_chance = { factor = 100 }
	}
}
country_event = {#Pana violence
	id = ubangi.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.15" }
	title = ubangi.15.t
	desc = ubangi.15.d
	picture = GFX_report_event_hillstation
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.15.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_political_power = -20
		}
		if = {
			limit = {
				tag = MAF
			}
		add_political_power = -5
		}
	}
}
country_event = {#Aissa death
	id = ubangi.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.16" }
	title = ubangi.16.t
	desc = ubangi.16.d
	picture = GFX_report_event_JBS_Horses
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ubangi.16.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_stability = 0.01
		}
		if = {
			limit = {
				tag = MAF
			}
		add_political_power = 10
		}
	}
}
country_event = {#Gold mines
	id = ubangi.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.17" }
	title = ubangi.17.t
	desc = ubangi.17.d
	picture = GFX_Union_Miniere
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.17.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_offsite_building = { type = industrial_complex level = 1 }
		}
		add_stability = 0.01
	}
}
country_event = {#Pygmies
	id = ubangi.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.18" }
	title = ubangi.18.t
	desc = ubangi.18.d
	picture = GFX_report_event_rural
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.18.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_political_power = -10
		}
	}
}
country_event = {#Migrations
	id = ubangi.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.19" }
	title = ubangi.19.t
	desc = ubangi.19.d
	picture = GFX_report_event_lagoon
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.19.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
				tag = CMR
			}
			add_stability = -0.02
		}
	}
}
country_event = {#Challa extinction
	id = ubangi.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.20" }
	title = ubangi.20.t
	desc = ubangi.20.d
	picture = GFX_report_event_oyo
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.20.a
		ai_chance = { factor = 100 }
			if = {
				limit = {
					tag = CEA
				}
			add_political_power = -10
		}
	}
}
country_event = {#Death of Cherry
	id = ubangi.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.21" }
	title = ubangi.21.t
	desc = ubangi.21.d
	picture = GFX_report_event_steamship
	is_triggered_only = yes

	option = {
		name = ubangi.21.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_manpower = -1
		}
	}
}
country_event = {#Coffee wilting disease
	id = ubangi.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.22" }
	title = ubangi.22.t
	desc = ubangi.22.d
	picture = GFX_report_event_picking
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.22.a
		ai_chance = { factor = 100 }
		add_political_power = -10
	}
}
country_event = {#Cotton Consortium Collapses in Ubangi-Shari
	id = ubangi.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.23" }
	title = ubangi.23.t
	desc = ubangi.23.d
	picture = GFX_report_event_agronomics
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ubangi.23.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_stability = -0.02
			capital_scope = {
				add_extra_state_shared_building_slots = 1
			}
		}
		if = {
			limit = {
				tag = MAF
				}
			add_political_power = -5
		}
	}
}
country_event = {#Dar Fartit
	id = ubangi.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.24" }
	title = ubangi.24.t
	desc = ubangi.24.d
	picture = GFX_report_event_slaves
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.24.a
		ai_chance = { factor = 100 }
		add_stability = 0.01
	}
}
country_event = {#New diamond mines near Berberati
	id = ubangi.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.25" }
	title = ubangi.25.t
	desc = ubangi.25.d
	picture = GFX_report_event_YUN_mining
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.25.a
		ai_chance = { factor = 100 }
		add_stability = 0.01
	}
}
country_event = {#Death of Father Fayet
	id = ubangi.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.26" }
	title = ubangi.26.t
	desc = ubangi.26.d
	picture = GFX_report_event_IRE_church
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.26.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_political_power = -10
		}
	}
}
country_event = {#Ouesso massacre anniversary
	id = ubangi.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.27" }
	title = ubangi.27.t
	desc = ubangi.27.d
	picture = GFX_report_event_steamship
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ubangi.27.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
				tag = CMR
				}
			add_war_support = 0.01
		}
	}
}
country_event = {#Potagos diary
	id = ubangi.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.28" }
	title = ubangi.28.t
	desc = ubangi.28.d
	picture = GFX_report_event_GRE_athens
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.28.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_political_power = 10
		}
	}
}
country_event = {#Sango
	id = ubangi.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.29" }
	title = ubangi.29.t
	desc = ubangi.29.d
	picture = GFX_report_event_CEA_language
	is_triggered_only = yes

trigger = {
		is_ai = no
		NOT = {
			has_country_flag = revoltsuccessful
		}
	}
	option = {
		name = ubangi.29.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
		add_stability = 0.02
		}
		add_political_power = 5
	}
}
country_event = {#Mutinies
	id = ubangi.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.30" }
	title = ubangi.30.t
	desc = ubangi.30.d
	picture = GFX_report_event_troops
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.30.a
		ai_chance = { factor = 100 }
		if = {
			limit = {
				tag = CEA
			}
			add_stability = -0.03
			add_war_support = -0.03
		}
		if = {
			limit = {
				tag = MAF
				}
			add_war_support = -0.01
		}
	}
}
country_event = {#Bokassa gives us support
	id = ubangi.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.31" }
	title = ubangi.31.t
	desc = ubangi.31.d
	picture = GFX_report_event_troops
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.31.a
		ai_chance = { factor = 100 }
		add_war_support = 0.01
	}
}

country_event = {#Hans Suren
	id = ubangi.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.32" }
	title = ubangi.32.t
	desc = ubangi.32.d
	picture = GFX_report_event_sunbro
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = ubangi.32.a
		add_political_power = 5
	}
}

country_event = {#Chiefs anger
	id = ubangi.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.33" }
	title = ubangi.33.t
	desc = ubangi.33.d
	picture = GFX_report_event_lagoon
	is_triggered_only = yes

	option = {
		name = ubangi.33.a
			add_popularity = {
				ideology = social_conservative
				popularity = -0.05
			hidden_effect = {
				country_event = {
					id = ubangi.34
					days = 6
				}
			}
		}
	}
}

country_event = {#Attempted counter coup against the Emir
	id = ubangi.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.34" }
	title = ubangi.34.t
	desc = ubangi.34.d
	picture = GFX_report_event_street2
	is_triggered_only = yes

	option = {
		name = ubangi.34.a #coup fails
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_BOGANDA_COUP
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_SOCIALIST_COUP
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_WADAI_COUP
				}
			}
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.03
		}
		add_stability = -0.01
		add_ideas = CEA_statist_resistance
	}
	option = {
		name = ubangi.34.b #al-Senoussi takes over
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_SULTAN_STAYS_IN_POWER
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_BOGANDA_COUP
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_SOCIALIST_COUP
				}
			}
		}
		create_country_leader = {
			name = "Kamoun Mohamed al-Senoussi"
			picture = "gfx/leaders/CEA/Portrait_CEA_Kamoun_Mohamed_Senoussi.png"
			expire = "1.1.1"
			ideology = pataut_tribal_chiefdom_subtype
		}
		set_party_name = {
			name = CEA_paternal_autocrat_party3
			long_name = CEA_paternal_autocrat_party3_long
			ideology = paternal_autocrat
		}
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.15
		}
		remove_ideas = CEA_suppressing_the_chiefs_idea
		add_ideas = CEA_statist_resistance
		hidden_effect = {
			if = {
				limit = {
					is_faction_leader = yes
				}
				CEA = { dismantle_faction = yes }
			}
			else_if = {
				limit = {
					is_in_faction = yes 
				}
				CEA = { leave_faction = yes }
			}
		}
		remove_ideas_with_trait = head_of_government
		set_cosmetic_tag = CEA_SULTANATE
		complete_national_focus = CEA_colonial_collapse
		every_unit_leader = {
			limit = { has_id = 6597 }
			remove_unit_leader = yes
		}
		every_unit_leader = {
			limit = { has_id = 6598 }
			remove_unit_leader = yes
		}
		if = {
			limit = {
				country_exists = MAF
			}
			every_unit_leader = {
				limit = { has_unit_leader_flag = MAF_former_german }
				set_nationality = MAF
			}
		}
		if = {
			limit = {
				NOT = {
					country_exists = MAF
				}
				country_exists = CMR
				CMR = {	
					has_colonial_government = yes
				}
			}
			every_unit_leader = {
				limit = { has_unit_leader_flag = MAF_former_german }
				set_nationality = CMR
			}
		}
		else = {
			effect_tooltip = {
				every_unit_leader = {
					limit = { has_unit_leader_flag = MAF_former_german }
					remove_unit_leader = yes
				}
			}
			hidden_effect = {
				every_unit_leader = {
					limit = { has_unit_leader_flag = MAF_former_german }
					set_nationality = XXA
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = cea_flavour.60
				days = 22
			}
			country_event = {
				id = cea_flavour.61
				days = 33
			}
		}
		add_stability = -0.02
	}
	option = {
		name = ubangi.34.c #Boganda and republicans
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_SULTAN_STAYS_IN_POWER
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_SOCIALIST_COUP
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_WADAI_COUP
				}
			}
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = no
		}
		complete_national_focus = CEA_colonial_collapse
		add_popularity = {
			ideology = social_liberal
			popularity = 0.15
		}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.04
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.03
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.03
		}
		drop_cosmetic_tag = yes
		add_stability = -0.02
	}
	option = {
		name = ubangi.34.e #Socialist takeover
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_SULTAN_STAYS_IN_POWER
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_BOGANDA_COUP
				}
			}
			modifier = {
				factor = 0
				has_game_rule = {
					rule = CEA_government
					option = CEA_GOVERNMENT_WADAI_COUP
				}
			}
		}
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.05
		}
		add_popularity = {
			ideology = totalist
			popularity = 0.02
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.04
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.03
		}
		complete_national_focus = CEA_colonial_collapse
		hidden_effect = {
			country_event = {
				id = cea_flavour.40
				days = 16
			}
			country_event = {
				id = cea_flavour.36
				days = 45
			}
		}
		add_ideas = CEA_new_to_socialism
		remove_ideas_with_trait = head_of_government
		add_ideas = CEA_Antoine_Darlan_hog_syn
		drop_cosmetic_tag = yes
		add_stability = -0.02
	}
	option = {
		name = ubangi.34.f #Algiers coup
		ai_chance = {
			factor = 25
		}
		NFA = {
			add_state_claim= 975
			add_state_claim= 660
			annex_country = {
				target = CEA
			}
		}
	}
}

country_event = {#Vatican Establishes a Chad Diocese
	id = ubangi.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.35" }
	title = ubangi.35.t
	desc = ubangi.35.d
	picture = GFX_report_event_market
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.35.a
		if = {
			limit = {
				tag = CEA
			}
			add_stability = 0.02
		}
		add_political_power = 5
	}
}

country_event = {#The Tschad Protectorate
	id = ubangi.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.36" }
	title = ubangi.36.t
	desc = ubangi.36.d
	picture = GFX_report_event_chad
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.36.a
		if = {
			limit = {
				tag = CEA
			}
			add_stability = 0.01
		}
		add_political_power = 5
	}
}

country_event = {#The Three Kingdoms of the Sahel
	id = ubangi.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.37" }
	title = ubangi.37.t
	desc = ubangi.37.d
	picture = GFX_report_event_ruins
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.37.a
		country_event = ubangi.38
	}
	option = {
		name = ubangi.37.b
	}
}

country_event = {#The Three Kingdoms of the Sahel
	id = ubangi.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.38" }
	title = ubangi.38.t
	desc = ubangi.38.d
	picture = GFX_report_event_chad
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.38.a
		add_political_power = 5
	}
}

country_event = {#The Senussi Orders Threaten Tchad
	id = ubangi.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.39" }
	title = ubangi.39.t
	desc = ubangi.39.d
	picture = GFX_report_event_wadai
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.39.a
		add_political_power = -5
	}
}

country_event = {#Edeka and the Chad Cattle Boom
	id = ubangi.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.40" }
	title = ubangi.40.t
	desc = ubangi.40.d
	picture = GFX_report_event_brewing
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.40.a
		add_political_power = 10
	}
}

country_event = {#The Kub-Kub Massacre Memorial
	id = ubangi.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.41" }
	title = ubangi.41.t
	desc = ubangi.41.d
	picture = GFX_report_event_wadai
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.41.a
		add_political_power = 5
	}
}

country_event = {#The Shrinking of Lake Chad
	id = ubangi.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.42" }
	title = ubangi.42.t
	desc = ubangi.42.d
	picture = GFX_report_event_lactchad
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.42.a
		if = {
			limit = {
				NOT = {
					OR = {
						tag = GER
						tag = TUR
					}
				}
			}
			add_stability = -0.01
		}
	}
}

country_event = {#Koulamallah and the Sahelian Left
	id = ubangi.43
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.43" }
	title = ubangi.43.t
	desc = ubangi.43.d
	picture = GFX_report_event_chad
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.43.a
		if = {
			limit = {
				NOT = {
					tag = GER
					}
				}
			add_popularity = { ideology = radical_socialist popularity = 0.01 }
		}
	}
}

country_event = {#The Ennedi Cave Paintings
	id = ubangi.44
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.44" }
	title = ubangi.44.t
	desc = ubangi.44.d
	picture = GFX_report_event_cave
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.44.a
		add_political_power = 3
	}
}

country_event = {#Death of Hassane Babalay
	id = ubangi.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.45" }
	title = ubangi.45.t
	desc = ubangi.45.d
	picture = GFX_report_event_wadai
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.45.a
		add_political_power = -3
	}
}

country_event = {#Explosion in Banda Sales
	id = ubangi.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.46" }
	title = ubangi.46.t
	desc = ubangi.46.d
	picture = GFX_report_event_lactchad
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.46.a
		add_political_power = 5
	}
}

country_event = {#Tribal Clashes Among the Toubou
	id = ubangi.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.47" }
	title = ubangi.47.t
	desc = ubangi.47.d
	picture = GFX_report_event_tibesti
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.47.a
		add_political_power = -5
	}
}

country_event = {#The Black Sheep Plot
	id = ubangi.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.48" }
	title = ubangi.48.t
	desc = ubangi.48.d
	picture = GFX_report_event_sheep
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.48.a
		add_political_power = -5
	}
}

country_event = {#The Horn Report on Colonial Transportation
	id = ubangi.49
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.49" }
	title = ubangi.49.t
	desc = ubangi.49.d
	picture = GFX_report_event_port_rail
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.49.a
		add_political_power = 5
	}
}

country_event = {#Death of Derde Shaffai Bogarmi
	id = ubangi.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.50" }
	title = ubangi.50.t
	desc = ubangi.50.d
	picture = GFX_report_event_tibesti
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.50.a
		add_political_power = -5
	}
}

country_event = {#Islam Spreads in Guéra
	id = ubangi.51
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.51" }
	title = ubangi.51.t
	desc = ubangi.51.d
	picture = GFX_report_event_africamountain
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.51.a
		add_political_power = -5
	}
}

country_event = {#The Sao Bronzes
	id = ubangi.52
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.52" }
	title = ubangi.52.t
	desc = ubangi.52.d
	picture = GFX_report_event_sao
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.52.a
		add_political_power = 5
	}
}

country_event = {#The Maria Theresa Thaler Issue
	id = ubangi.53
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.53" }
	title = ubangi.53.t
	desc = ubangi.53.d
	picture = GFX_report_event_mtt
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ubangi.53.a
		add_political_power = 5
	}
}

country_event = {#Potential Coup
	id = ubangi.54
	immediate = { log = "[GetDateText]: [Root.GetName]: event ubangi.54" }
	title = ubangi.54.t
	desc = ubangi.54.d
	picture = GFX_report_event_mtt
	is_triggered_only = yes
	
	option = {
		name = ubangi.54.a #wasn't real
		ai_chance = { factor = 50 }
		add_political_power = 20
		trigger = {
			is_subject = yes
		}
	}
	option = {
		name = ubangi.54.b #oh shit it was real
		ai_chance = { factor = 50 }
		drop_cosmetic_tag = yes
		if = {
			limit = {
				is_subject_of = MAF
			}
			MAF = {
				set_autonomy = {
					target = CEA
					autonomous_state = autonomy_free
				}
			}
		}
		if = {
			limit = {
				is_in_faction_with = GER
			}
			GER = { remove_from_faction = CEA }
			hidden_effect = {
				unlock_national_focus = CEA_fall_of_bokassa
			}
		}
	}
}