
###########################
# Ivory Coast Events
###########################
# By IratePirate
###########################

add_namespace = ivorycoast

country_event = {# Ivory Coast Intro Event
	id = ivorycoast.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.1" }
	title = ivorycoast.1.t
	desc = ivorycoast.1.d
	picture = GFX_report_event_elites

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

	option = {
		name = ivorycoast.1.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = {# Market Crash
	id = ivorycoast.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.2" }
	title = ivorycoast.2.t
	desc = ivorycoast.2.d
	picture = GFX_report_event_railway2
	is_triggered_only = yes

	option = {
		name = ivorycoast.2.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = IVO
			}
		add_ideas = IVO_economicdisaster
		add_stability = -0.1
		add_political_power = -100
		hidden_effect = {
			country_event = {
				id = ivorycoast.17# decide a policy
				days = 15
			}
		}
		if = {
			limit = {
				tag = MAF
			}
			add_political_power = -5
			}
		}
	}
}
country_event = {# Liberian border
	id = ivorycoast.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.3" }
	title = ivorycoast.3.t
	desc = ivorycoast.3.d
	picture = GFX_report_event_rural
	is_triggered_only = yes
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = ivorycoast.3.a
		ai_chance = {
			factor = 100
		}
		add_political_power = -5
		}
	}
	
country_event = {#Abdijan Protests
	id = ivorycoast.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.4" }
	title = ivorycoast.4.t
	desc = ivorycoast.4.d
	picture = GFX_report_event_streets4
	is_triggered_only = yes
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = ivorycoast.4.a
		ai_chance = {
			factor = 100
		}
	trigger = {
			OR = {
				tag = IVO
				tag = CIV
			}
		}
		if = {
			limit = {
				OR = {
					tag = IVO
					tag = CIV
				}
			}
			add_stability = 0.03
			add_political_power = -100
		}
		}
		
	option = {
		name = ivorycoast.4.b
		ai_chance = {
			factor = 100
		}
	trigger = {
			OR = {
				tag = IVO
				tag = CIV
			}
		}
		if = {
			limit = {
				OR = {
					tag = IVO
					tag = CIV
				}
			}
		add_stability = -0.05
		}
		}
	option = {
		name = ivorycoast.4.c
		ai_chance = {
			factor = 100
		}
	trigger = {
			NOT = {
				tag = IVO
				tag = CIV
			}
		}
		add_political_power = -5
		}
	}
	
country_event = {## Grand-Bassam Incident
	id = ivorycoast.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.5" }
	title = ivorycoast.5.t
	desc = ivorycoast.5.d
	picture = GFX_report_event_factory
	is_triggered_only = yes
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	option = {
		name = ivorycoast.5.a
		ai_chance = {
			factor = 100
		}
	trigger = {
			OR = {
				tag = IVO
				tag = CIV
			}
		}
		if = {
			limit = {
				OR = {
					tag = IVO
					tag = CIV
				}
			}
		add_stability = -0.05
		add_war_support = -0.05
		}
	}
	option = {
		name = ivorycoast.5.b
		ai_chance = {
			factor = 100
		}
		add_political_power = -10
		}
	}
	
country_event = {# Houphouët
	id = ivorycoast.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.6" }
	title = ivorycoast.6.t
	desc = ivorycoast.6.d
	picture = GFX_report_event_felix
	is_triggered_only = yes

	option = {
		name = ivorycoast.6.a
		ai_chance = {
			factor = 100
		}
	trigger = {
		tag = IVO
			NOT = {
				has_completed_focus = IVO_proagrarianistpolicy
			}
		}
		add_stability = 0.05
		add_political_power = -25
			add_popularity = {
			ideology = syndicalist
			popularity = 0.02
			}
		}
		
	option = {
		name = ivorycoast.6.b
		ai_chance = {
			factor = 100
		}
	trigger = {
		tag = IVO
			NOT = {
				has_completed_focus = IVO_antiagrarianistpolicy
				}
			}
			add_popularity = {
			ideology = social_democrat
			popularity = 0.02
			}
			add_popularity = {
			ideology = radical_socialist
			popularity = 0.02
			}

		}
	option = {
		name = ivorycoast.6.b
		ai_chance = {
			factor = 100
		}
	trigger = {
			NOT = {
				tag = IVO
				}
			}
			add_political_power = -10
		}
	}
	
country_event = {# Dyuala Murders
	id = ivorycoast.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.7" }
	title = ivorycoast.7.t
	desc = ivorycoast.7.d
	picture = GFX_report_event_mosque
	is_triggered_only = yes

	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	option = {
		name = ivorycoast.7.a
		ai_chance = {
			factor = 100
		}
		add_political_power = -10
		}
	}
	
country_event = {# Alcoholism
	id = ivorycoast.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.8" }
	title = ivorycoast.8.t
	desc = ivorycoast.8.d

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

	option = {
		name = ivorycoast.8.a
		ai_chance = {
			factor = 100
		}
		add_political_power = -10
		hidden_effect = {
			country_event = { id = ivorycoast.10 days = 104 }
			}
		}
	}
	
country_event = {# Mossi Lynches
	id = ivorycoast.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.9" }
	title = ivorycoast.9.t
	desc = ivorycoast.9.d

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

	option = {
		name = ivorycoast.9.a
		ai_chance = {
			factor = 100
		}
		add_political_power = -10
		}
	}
	
country_event = {# Palm Wine Prohibition fails
	id = ivorycoast.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.10" }
	title = ivorycoast.10.t
	desc = ivorycoast.10.d

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

	option = {
		name = ivorycoast.10.a
		ai_chance = {
			factor = 100
		}
		add_stability = -0.01
		}
	}
	
country_event = {# Sanwi king criticises
	id = ivorycoast.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.11" }
	title = ivorycoast.11.t
	desc = ivorycoast.11.d

	is_triggered_only = yes
	picture = GFX_report_event_chiefs2			
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	option = {
		name = ivorycoast.11.a
		ai_chance = {
			factor = 110
		}
		}
	}

country_event = {#March on Abjidan
	id = ivorycoast.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.12" }
	title = ivorycoast.12.t
	desc = ivorycoast.12.d
	picture = GFX_report_event_streets4

	is_triggered_only = yes

	option = {
		name = ivorycoast.12.a
		ai_chance = {
			factor = 120
		}
		add_political_power = -50
		create_country_leader = {
			name = "Jean-Baptiste Mockey"
			picture = "gfx/leaders/IVO/Portrait_IVO_Jean_Baptiste_Mockey.png"
			expire = "1.1.1"
			ideology = left_nationalism_subtype
		}
		hidden_effect = {
		create_country_leader = {
			name = "Adrien Dignan Bailly"
			picture = "gfx/leaders/IVO/Portrait_IVO_Adrien_Dignan_Bailly.png"
			expire = "1.1.1"
			ideology = broad_communism_subtype
		}

		create_country_leader = {
			name = "Adrien Dignan Bailly"
			picture = "gfx/leaders/IVO/Portrait_IVO_Adrien_Dignan_Bailly.png"
			expire = "1.1.1"
			ideology = syn_broad_communism_subtype
		}

		create_country_leader = {
			name = "François-Joseph Amon d'Aby"
			picture = "gfx/leaders/IVO/Portrait_IVO_Francois_Joseph_Amon_dAby.png"
			expire = "1.1.1"
			ideology = socdem_christian_democracy_subtype
		}

		create_country_leader = {
			name = "Félix Houphouët-Boigny"
			picture = "gfx/leaders/IVO/Portrait_IVO_Felix_Houphouet_Boigny.png"
			expire = "1.1.1"
			ideology = soclib_agrarianism_subtype
		}

		create_country_leader = {
			name = "Tidiane Dem"
			picture = "gfx/leaders/IVO/Portrait_IVO_Tidiane_Dem.png"
			expire = "1.1.1"
			ideology = humanistic_capitalism_subtype
		}

		create_country_leader = {
			name = "Bernard Yago"
			picture = "gfx/leaders/IVO/Portrait_IVO_Bernard_Yago.png"
			expire = "1.1.1"
			ideology = christian_democracy_subtype
		}

		create_country_leader = {
			name = "Sékou Sanogo"
			picture = "gfx/leaders/IVO/Portrait_IVO_Sekou_Sanogo.png"
			expire = "1.1.1"
			ideology = authdem_gaullism_subtype
		}

		create_country_leader = {
			name = "Thomas d'Aquin Ouattara"
			picture = "gfx/leaders/IVO/Portrait_IVO_Thomas_dAquin_Ouattara.png"
			expire = "1.1.1"
			ideology = junta_subtype
		}

		create_country_leader = {
			name = "Péléforo Gbon Coulibaly"
			picture = "gfx/leaders/IVO/Portrait_IVO_Peleforo_Gbon_Coulibaly.png"
			expire = "1.1.1"
			ideology = natpop_tribal_chiefdom_subtype
		}
	}
		set_politics = {
			ruling_party = radical_socialist
		}
		overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			GER = {
				remove_from_faction = ROOT			
			}
			drop_cosmetic_tag = yes
			ROOT = {
				separate_peace_all_wars = yes
			}
		hidden_effect = {
		if = {
			limit = {
				GHA = {
					is_subject_of = MAF
					}
				}
				MAF = {
					country_event = {
						id = ivorycoast.15
						days = 3
						}	
					}
				}
				NFA = {
					country_event = {
						id = ivorycoast.15
						days = 2
					}	
				}
			}
		}
		
	option = {
		name = ivorycoast.12.a
		ai_chance = {
			factor = 40
		}
		add_stability = -0.05
		}
	}

country_event = {# Mandinke tensions
	id = ivorycoast.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.13" }
	title = ivorycoast.13.t
	desc = ivorycoast.13.d
	picture = GFX_report_event_chiefs		
	is_triggered_only = yes
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	option = {
		name = ivorycoast.13.a
		ai_chance = {
			factor = 110
		}
		add_political_power = -5
		}
	}
	
	country_event = {# Uprising among the Mandinke
	id = ivorycoast.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.14" }
	title = ivorycoast.14.t
	desc = ivorycoast.14.d

	is_triggered_only = yes
	picture = GFX_report_event_rural			

	option = {
		name = ivorycoast.14.a
		ai_chance = {
			factor = 110
		}
		if = {
			limit = {
				tag = IVO
			}
			add_stability = -0.1
			807 = {
				set_demilitarized_zone = yes
				}
			set_country_flag = mandinke_revolt
			}
			add_political_power = -10
		}
	}
	
	country_event = {# Intervention
	id = ivorycoast.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.15" }
	title = ivorycoast.15.t
	desc = ivorycoast.15.d

	is_triggered_only = yes
	picture = GFX_report_event_troops2

	option = {
		name = ivorycoast.15.a
		declare_war_on = {
			target = IVO
			type = annex_everything
		}
		if = {
			limit = {
				GHA = {
					is_subject_of = MAF
					}
				}
				GHA = {
					country_event = ivorycoast.16
				}
			}
		if = {
			limit = {
				GHA = {
					is_subject_of = MAF
					}
				CIV = {
					is_subject_of = MAF
					}
				}
				CIV = {
					country_event = ivorycoast.16
				}
			}
		ai_chance = {
			factor = 0
		}

		}
	option = {
		name = ivorycoast.15.b
		add_political_power = -20
		ai_chance = {
			factor = 110
		}
		if = {
			limit = {
				GHA = {
					is_subject_of = MAF
					}
				}
				GHA = {
					country_event = ivorycoast.16
				}
			}
		if = {
			limit = {
				GHA = {
					is_subject_of = MAF
					}
				CIV = {
					is_subject_of = MAF
					}
				}
				CIV = {
					country_event = ivorycoast.16
				}
			}
		}
	}
	country_event = {#Gold Coast and CIV join?
	id = ivorycoast.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.16" }
	title = ivorycoast.16.t
	desc = ivorycoast.16.d

	is_triggered_only = yes
	picture = GFX_report_event_troops2

	option = {
		name = ivorycoast.16.a
		add_stability = -0.02
		add_war_support = 0.05
		declare_war_on = {
			target = IVO
			type = annex_everything
		}
		ai_chance = {
			factor = 0
		}
		}
		
	option = {
		name = ivorycoast.16.b# no
		ai_chance = {
			factor = 0
		}
	}
}

	country_event = {#Decide economic policy?
	id = ivorycoast.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.17" }
	title = ivorycoast.17.t
	desc = ivorycoast.17.d

	is_triggered_only = yes
	picture = GFX_report_event_chanic

	option = {
		name = ivorycoast.17.a#diversify
		ai_chance = {
			factor = 50
		}
		complete_national_focus = IVO_wemustdiversify
	}
	option = {
		name = ivorycoast.17.b#austerity
		ai_chance = {
			factor = 50
		}
		complete_national_focus = IVO_makedowithwhatwehave
	}
}

country_event = {#Factional Bickering
	id = ivorycoast.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.18" }
	title = ivorycoast.18.t
	desc = ivorycoast.18.d
	picture = GFX_report_event_streets4

	is_triggered_only = yes

	option = {
		name = ivorycoast.18.a# totalists
		ai_chance = {
			factor = 100
		}
		create_country_leader = {
			name = "Adrien Dignan Bailly"
			picture = "gfx/leaders/IVO/Portrait_IVO_Adrien_Dignan_Bailly.png"
			expire = "1.1.1"
			ideology = broad_communism_subtype
		}
		add_popularity = {
			ideology = totalist
			popularity = 0.15
		}
		add_war_support = 0.05
	}
	option = {
		name = ivorycoast.18.b# syndicalists
		ai_chance = {
			factor = 100
		}
		create_country_leader = {
			name = "Adrien Dignan Bailly"
			picture = "gfx/leaders/IVO/Portrait_IVO_Adrien_Dignan_Bailly.png"
			expire = "1.1.1"
			ideology = syn_broad_communism_subtype
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.15
		}
		add_war_support = 0.05
	}
	option = {
		name = ivorycoast.18.c# socialists
		ai_chance = {
			factor = 100
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.05
		}
		add_war_support = 0.05
	}
	option = {
		name = ivorycoast.18.e# moderates
		ai_chance = {
			factor = 100
		}
		create_country_leader = {
			name = "François-Joseph Amon d'Aby"
			picture = "gfx/leaders/IVO/Portrait_IVO_Francois_Joseph_Amon_dAby.png"
			expire = "1.1.1"
			ideology = syndie_social_democrat_subtype
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.15
		}
		add_war_support = 0.05
	}
}

country_event = {#Death of Louis Gustave Binger
	id = ivorycoast.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event ivorycoast.19" }
	title = ivorycoast.19.t
	desc = ivorycoast.19.d
	picture = GFX_report_event_chiefs2
	is_triggered_only = yes

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

	option = {
		name = ivorycoast.19.a
	}
}