###########################
# Somalia
###########################

add_namespace = som
add_namespace = somflavour

country_event = { #intro
	id = som.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.1" }
	title = som.1.t
	desc = som.1.d
	picture = GFX_report_event_SOM_intro

	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 = {
		name = som.1.a
	}
}

country_event = { #BM crisis
	id = som.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.2" }
	title = som.2.t
	desc = som.2.d
	picture = GFX_report_event_SOM_black_monday

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = som.2.a
		add_ideas = SOM_BM
		add_stability = -0.2
		add_war_support = -0.05
		add_political_power = -100
	}
}

country_event = { #elections
	id = som.3
	title = som.3.t
	desc = som.3.d
	picture = GFX_report_event_SOM_Sultan

	is_triggered_only = yes

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event som.3"
		hidden_effect = {
			remove_all_ministers = yes
		}
	}

	option = {
		name = som.3.a
		ai_chance = {
			factor = 33
			modifier = {
				factor = 0
				has_game_rule = {
					rule = SOM_clans
					option = SOM_WARSANGALI_DEMOCRACY
				}
			}
		}
		set_country_flag = SOM_Boqor
		add_ideas = SOM_Cismaan_III_Maxamuud_hog_ade
		add_ideas = SOM_Abdullah_Mohamed_Fadil_for_ade
		add_ideas = SOM_Mohamoud_Ghelle_Yusuf_eco_ade
		add_ideas = SOM_Ismail_Ali_Abukar_sec_ade
		add_political_power = 20
	}

	option = {
		name = som.3.b
		ai_chance = {
			factor = 33
		}
		create_country_leader = {
			name = "Maxamuud Cali Shiire"
			desc = "POLITICS_ALI_SHIRE_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Ali_Shire.png"
			expire = "1.1.1"
			ideology = soclib_pan_somalism_subtype
		}
		add_political_power = 20
		add_ideas = SOM_Abdirashid_Ali_Shermarke_hog_sli
		add_ideas = SOM_Abdirizak_Mahamud_Abubakar_for_sli
		add_ideas = SOM_Jama_Ghalib_eco_sli
		add_ideas = SOM_Abshir_Doore_sec_sli
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = no
		}
	}

	option = {
		name = som.3.c
		ai_chance = {
			factor = 33
		}
		create_country_leader = {
			name = "Maxamuud Cali Shiire"
			desc = "POLITICS_ALI_SHIRE_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Ali_Shire.png"
			expire = "1.1.1"
			ideology = soccon_pan_somalism_subtype
		}
		add_political_power = 20
		add_ideas = SOM_Yasin_Haji_Osman_Sharmarke_hog_sco
		add_ideas = SOM_Hersi_Boqor_for_sco
		add_ideas = SOM_Ahmed_Mohamoud_Ade_eco_sco
		add_ideas = SOM_Allan_Gibb_sec_sco
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
	}
	
	option = {
		name = som.3.e
		ai_chance = {
			factor = 33
		}
		create_country_leader = {
			name = "Maxamuud Cali Shiire"
			desc = "POLITICS_ALI_SHIRE_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Ali_Shire.png"
			expire = "1.1.1"
			ideology = marlib_pan_somalism_subtype
		}
		add_political_power = 20
		add_ideas = SOM_Yasin_Haji_Osman_Sharmarke_hog_sco
		add_ideas = SOM_Hersi_Boqor_for_sco
		add_ideas = SOM_Ahmed_Mohamoud_Ade_eco_sco
		add_ideas = SOM_Allan_Gibb_sec_sco
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = no
		}
	}
}

country_event = {
	id = som.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.4" }
	title = som.4.t
	desc = som.4.d

	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 = {
		name = som.4.a
		add_political_power = 15
	}
}

country_event = {
	id = som.5
	title = som.5.t
	desc = som.5.d
	picture = GFX_report_event_SOM_referendum

	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event som.5"
		hidden_effect = {
			remove_all_ministers = yes
		}
	}

	option = {
		name = som.5.a
		set_country_flag = SOM_Boqor
		create_country_leader = {
			name = "Maxamuud Cali Shiire"
			desc = "POLITICS_ALI_SHIRE_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Ali_Shire.png"
			expire = "1.1.1"
			ideology = pataut_tribal_chiefdom_subtype
		}
		complete_national_focus = SOM_Noble_Victory
		complete_national_focus = SOM_Boqor_Ascendancy
		add_political_power = -100
		add_ideas = SOM_Sheikh_Mukhtar_Mohamed_Hussein_hog_pau
		add_ideas = SOM_Ahmed_Hassan_Musa_for_pau
		add_ideas = SOM_Muhammad_Ali_Shirreh_eco_pau
		add_ideas = SOM_Haji_Bashir_Ismail_Yusuf_sec_pau

		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		if = {
			limit = {
				SOM = {
					has_cosmetic_tag = SOM_KINGDOM
				}
			}
		set_country_leader_ideology = absolute_monarchy_subtype
		}
	}
}

country_event = {
	id = som.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.6" }
	title = som.6.t
	desc = som.6.d
	picture = GFX_report_event_SOM_clan_argument

	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 = {
		name = som.6.a
		add_political_power = -25
	}
}

country_event = {
	id = som.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.7" }
	title = som.7.t
	desc = som.7.d
	picture = GFX_report_event_SOM_hassan_book

	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 = {
		name = som.7.a
		add_political_power = 15
	}
	option = {
		name = som.7.b
		add_stability = -0.01
	}
}

country_event = {
	id = som.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.8" }
	title = som.8.t
	desc = som.8.d
	picture = GFX_report_event_SOM_education_success

	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 = {
		name = som.8.a
		add_political_power = 40
	}
}

country_event = {
	id = som.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.9" }
	title = som.9.t
	desc = som.9.d
	picture = GFX_report_event_SOM_hasnah_doreh

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = som.9.a
		hidden_effect = {
			load_oob = SOM_doreh_brigade
		}
		custom_effect_tooltip = som.9.a.tt
	}
}

country_event = {
	id = som.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.13" }
	title = som.13.t
	desc = som.13.d

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

	trigger = {
	tag = SOM
		has_war_with = ETH
	}

	option = {
		name = som.13.a
		add_stability = -0.05
	}
	option = {
		name = som.13.b
		add_political_power = -50
	}

}

country_event = { #Ideology Picker
	id = som.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.14" }
	title = som.14.t
	desc = som.14.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.14.a
		set_country_flag = SOM_Barre_Lives
		set_country_leader_ideology = authcom_subtype
	}
	option = {
		name = som.14.b
		set_country_flag = SOM_Barre_Lives
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		swap_ideas = {
				remove_idea = SOM_Vanguard
				add_idea = SOM_Vanguard_Radsoc
			}
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.20
		}
	}
	option = {
		name = som.14.c
	set_country_flag = SOM_Barre_Lives
	set_cosmetic_tag = SOM_SOCIALIST_FAKE
	create_country_leader = {
			name = "Mohamed Siad Barre"
			desc = "POLITICS_BARRE_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Barre.png"
			expire = "1.1.1"
			ideology = red_tinted_autocracy_subtype
		}

		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		swap_ideas = {
				remove_idea = SOM_Vanguard
				add_idea = SOM_Vanguard_Pataut
			}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.15
		}
		set_party_name = {
			ideology = paternal_autocrat
			long_name = SOM_totalist_party_long
			name = SOM_totalist_party
			}
		}
	}

country_event = { #
	id = som.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.15" }
	title = som.15.t
	desc = som.15.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.15.a
		set_country_leader_ideology = kleptocracy_subtype
	}
	option = {
		name = som.15.b
	}
}

country_event = { #Ideology Picker
	id = som.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.16" }
	title = som.16.t
	desc = som.16.d
	picture = GFX_report_event_SOM_Haaji

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.16.a
	}
	option = {
		name = som.16.b
	create_country_leader = {
			name = "Haaji Mahammad Husseen"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Haaji.png"
			expire = "1.1.1"
			ideology = authdem_pan_somalism_subtype
		}
		set_cosmetic_tag = SOM_REPUBLIC
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.25
		}
		set_party_name = {
			ideology = authoritarian_democrat
			long_name = SOM_national_populist_party_long
			name = SOM_national_populist_party
		}
	hidden_effect = {
		country_event = {
			id = som.24
			days = 30
			}
		}
	}
}

country_event = { #
	id = som.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.17" }
	title = som.17.t
	desc = som.17.d
	picture = GFX_report_event_SOM_Haaji

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.17.a
	}
	option = {
		name = som.17.b
	create_country_leader = {
			name = "Haaji Mahammad Husseen"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Haaji.png"
			expire = "1.1.1"
			ideology = soccon_pan_somalism_subtype
		}

		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.20
		}
		set_party_name = {
			ideology = social_conservative
			long_name = SOM_national_populist_party_long
			name = SOM_national_populist_party
		}
	}
}

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

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.18.a
	}
	option = {
		name = som.18.b
	FRA = {
		add_to_faction = SOM
	}
	set_country_leader_ideology = jacobinism_subtype
	}
	option = {
		name = som.18.c
	FRA = {
			add_to_faction = SOM
	}
	set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
	swap_ideas = {
				remove_idea = SOM_Vanguard
				add_idea = SOM_Vanguard_Syndie
			}
	set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
	add_popularity = {
			ideology = syndicalist
			popularity = 0.2
		}
	}
}

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

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.19.a
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SOM_clans
						option = SOM_WARSANGALI_PATAUT
					}
					has_game_rule = {
						rule = SOM_clans
						option = SOM_WARSANGALI_NATPOP
					}
				}
			}
		}
		country_event = som.63
	}
	option = {
		name = som.19.b
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SOM_clans
						option = SOM_WARSANGALI_BARRE
					}
					has_game_rule = {
						rule = SOM_clans
						option = SOM_WARSANGALI_PATAUT
					}
				}
			}
		}
		country_event = som.64
	}
	option = {
		name = som.19.c
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SOM_clans
						option = SOM_WARSANGALI_BARRE
					}
					has_game_rule = {
						rule = SOM_clans
						option = SOM_WARSANGALI_NATPOP
					}
				}
			}
		}
		add_political_power = -100
	}
}

country_event = { #
	id = som.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.20" }
	title = som.20.t
	desc = som.20.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.20.a
	}
	option = {
		name = som.20.b
	set_country_leader_ideology = pan_somalism_subtype
	}
}

country_event = { #
	id = som.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.21" }
	title = som.21.t
	desc = som.21.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	trigger = {
	tag = SOM
	has_completed_focus = SOM_Securing_Social_State
	OR = {
	has_government = totalist
	has_government = syndicalist
	has_government = radical_socialist
		}
	}
	
	option = {
		name = som.21.a
		hidden_effect = {
		country_event = {
		id = som.41
		days = 50
			}
		}
	}
}

country_event = { #
	id = som.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.20" }
	title = som.22.t
	desc = som.22.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	trigger = {
	tag = SOM
	has_completed_focus = SOM_Securing_Social_State
	has_government = paternal_autocrat
	}
	
	option = {
		name = som.22.a
		hidden_effect = {
		country_event = {
		id = som.41
		days = 50
			}
		}
	}
}

country_event = { #
	id = som.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.23" }
	title = som.23.t
	desc = som.23.d
	picture = GFX_report_event_SOM_Haaji

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.23.a
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
	}
}

country_event = { #
	id = som.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.24" }
	title = som.24.t
	desc = som.24.d
	picture = GFX_report_event_SOM_SYL_Group

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.24.a
		ai_chance = {
			factor = 75
		}
		hidden_effect = {
		country_event = {
			id = som.25
			days = 10
			}
		}
	}
	option = {
		name = som.24.b
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				has_game_rule = {
					rule = SOM_clans
					option = SOM_WARSANGALI_NATPOP
				}
			}
		}
	set_cosmetic_tag = SOM_REPUBLIC
	create_country_leader = {
		name = "Aden Abdulle Osman Daar"
		desc = ""
		picture = "gfx/leaders/SOM/Portrait_SOM_Aden_Daar.png"
		expire = "1.1.1"
		ideology = authdem_pan_somalism_subtype
	}
	hidden_effect = {
		country_event = {
			id = som.26
			days = 1
			}
	}
	hidden_effect = {
		add_ideas = SOM_Yasin_Haji_Osman_Sharmarke_hog_sco
		add_ideas = SOM_Hersi_Boqor_for_sco
		add_ideas = SOM_Ahmed_Mohamoud_Ade_eco_sco
		add_ideas = SOM_Allan_Gibb_sec_sco
		}
	}
}

country_event = { #
	id = som.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.25" }
	title = som.25.t
	desc = som.25.d
	picture = GFX_report_event_SOM_SYL_Group

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.25.a
	set_politics = {
			ruling_party = national_populist
			elections_allowed = no
		}
		drop_cosmetic_tag = yes
	}
	option = {
		name = som.25.b
		hidden_effect = {
			country_event = {
				id = som.17
				days = 50
			}
		}
	}
}

country_event = { #
	id = som.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.26" }
	title = som.26.t
	desc = som.26.d
	picture = GFX_report_event_SOM_SYL_Meeting

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.26.a
	hidden_effect = {
	set_country_flag = SOM_REPUBLICAN_SYL
	country_event = {
			id = som.54
			days = 15
			}
	country_event = {
			id = som.27
			days = 30
			}
		}
	}
}

country_event = { #
	id = som.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.27" }
	title = som.27.t
	desc = som.27.d
	picture = GFX_report_event_SOM_SYL_Meeting

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.27.a
	set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
	}
	option = {
		name = som.27.b
	set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
	}
	option = {
		name = som.27.c
	set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
		}
		hidden_effect = {
			country_event = {
				id = som.53
				days = 120
			}
		}
	}
	option = {
		name = som.27.e
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		}
		hidden_effect = {
			country_event = {
				id = som.52
				days = 120
			}
		}
	}
}

country_event = { #Ideology Picker (Soclib)
	id = som.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.28" }
	title = som.28.t
	desc = som.28.d
	picture = GFX_report_event_SOM_SYL_Group

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	trigger = {
	tag = SOM
	has_government = social_liberal
	OR = {
	has_completed_focus = SOM_Pious_Confederation
	has_completed_focus = SOM_Holy_Federation
		}
	}
	
	option = {
		name = som.28.a
		set_country_leader_ideology = jadidism_subtype
	}
	option = {
		name = som.28.b
		set_country_leader_ideology = national_liberalism_subtype
	}
	option = {
		name = som.28.c
		set_country_leader_ideology = soclib_pan_somalism_subtype
	}
	option = {
		name = som.28.e
		set_country_leader_ideology = soclib_tribal_councilism_subtype
	}
	option = {
		name = som.28.f
		set_country_leader_ideology = soclib_islamism_subtype
	}
}

country_event = { #Ideology Picker (Soccon)
	id = som.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.29" }
	title = som.29.t
	desc = som.29.d
	picture = GFX_report_event_SOM_SYL_Group

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	trigger = {
	tag = SOM
	has_government = social_conservative
	OR = {
	has_completed_focus = SOM_Pious_Confederation
	has_completed_focus = SOM_Holy_Federation
		}
	}
	
	option = {
		name = som.29.a
		set_country_leader_ideology = soccon_jadidism_subtype
	}
	option = {
		name = som.29.b
		set_country_leader_ideology = national_conservative_subtype
	}
	option = {
		name = som.29.c
		set_country_leader_ideology = soccon_pan_somalism_subtype
	}
	option = {
		name = som.29.e
		set_country_leader_ideology = soccon_tribal_councilism_subtype
	}
	option = {
		name = som.29.f
		set_country_leader_ideology = soccon_islamism_subtype
	}
}

country_event = { #
	id = som.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.30" }
	title = som.30.t
	desc = som.30.d
	picture = GFX_report_event_SOM_Cismaan

		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 = {
		name = som.30.a
		set_country_leader_ideology = tribal_chiefdom_subtype
	}
	option = {
		name = som.30.b
		set_country_leader_ideology = islamism_subtype
	}
}

country_event = { #Cismaan III Maxamuud
	id = som.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.31" }
	title = som.31.t
	desc = som.31.d
	picture = GFX_report_event_SOM_Cismaan

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.31.a
		trigger = {
		NOT = {
		has_country_flag = SOM_No_Boqor
			}
		}
		add_political_power = 20
	}
	option = {
		name = som.31.b
	set_cosmetic_tag = SOM_FEDERATION
	create_country_leader = {
			name = "Cismaan III Maxamuud"
			desc = "POLITICS_CISMAAN_III_MAXAMUUD_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Cismaan_III_Maxamuud.png"
			expire = "1.1.1"
			ideology = tribal_chiefdom_subtype
		}
	}
	option = {
		name = som.31.c
	set_cosmetic_tag = SOM_MAJEERTEEN
	create_country_leader = {
			name = "Cismaan III Maxamuud"
			desc = "POLITICS_CISMAAN_III_MAXAMUUD_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Cismaan_III_Maxamuud.png"
			expire = "1.1.1"
			ideology = tribal_chiefdom_subtype
		}
	hidden_effect = {
	set_victory_points = {
			province = 1966
			value = 10
			}
	set_province_name = { id = 1966 name = "Alula" }
	}
		custom_effect_tooltip = majeerteen.horn.a.tt
		hidden_effect = {
		every_state = {
		limit = { is_core_of = ERI }
		add_core_of = SOM
			}
		every_state = {
		limit = { is_core_of = ETH }
		add_core_of = SOM
			}
		every_state = {
		limit = { is_core_of = YEM }
		add_core_of = SOM
			}
		every_state = {
		limit = { is_core_of = OMA }
		add_core_of = SOM
			}
		every_state = {
		limit = { is_core_of = KIK }
		add_core_of = SOM
			}
		}
	}
}

country_event = { #
	id = som.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.32" }
	title = som.32.t
	desc = som.32.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes
	is_triggered_only = yes
		trigger = { has_socialist_government = yes }
	
	option = {
		name = som.32.a
		set_country_leader_ideology = left_nationalism_subtype
	}
	option = {
		name = som.32.b
	}
	option = {
		name = som.32.c
		set_country_leader_ideology = radsoc_popular_patriotism_subtype
	}
	option = {
		name = som.32.e
	trigger = {
	has_completed_focus = SOM_Embrace_Tribal_Structure
	}
		set_country_leader_ideology = radsoc_indigenous_communitarianism_subtype
	}
	option = {
		name = som.32.f
	trigger = {
	has_country_flag = SOM_Islamic_Socialism
	}
		set_country_leader_ideology = islamic_socialism_subtype
	}
}

country_event = { #GSL/SYL
	id = som.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.33" }
	title = som.33.t
	desc = som.33.d
	picture = GFX_report_event_SOM_SYL_Group

	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 = {
		name = som.33.a
	}
}

country_event = { #The Hole
	id = som.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.34" }
	title = som.34.t
	desc = som.34.d
	picture = GFX_report_event_SOM_Siad_Fun

	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 = {
		name = som.34.a
		add_stability = -0.02
		add_manpower = -100
	}
}

country_event = { #Barre Religion
	id = som.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.35" }
	title = som.35.t
	desc = som.35.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.35.a
		set_country_flag = SOM_Islamic_Socialism
		add_ideas = SOM_Islamic_Socialist
		add_political_power = 10
	}
	option = {
			trigger = {
			has_government = totalist
		}
		name = som.35.b
		add_ideas = SOM_State_Athiesm
		add_political_power = -50
	}
}

country_event = { #Pseudo-Caliph
	id = som.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.36" }
	title = som.36.t
	desc = som.36.d
	picture = GFX_report_event_SOM_Haaji
	
		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 = {
		name = som.36.a
	}
}

country_event = { #Djbouti Natpop
	id = som.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.37" }
	title = som.37.t
	desc = som.37.d
	picture = GFX_report_event_SOM_Haaji

	mean_time_to_happen = {
		days = 90
	}
	
	fire_only_once = yes
		trigger = {
		tag = SOM
		SOM = {
			has_completed_focus = SOM_Autocratic_Nationalism
			owns_state = 268
		}
	}
	
	option = {
		name = som.37.a
	}
	option = {
		name = som.37.b
	create_country_leader = {
		name = "Mahmoud Harbi"
		desc = "POLITICS_HARBI_DESC"
		picture = "gfx/leaders/DJI/Portrait_Djbouti_Mahmoud_Harbi.png"
		expire = "1.1.1"
		ideology = natpop_pan_somalism_subtype
		traits = {}
		}
	}
}

country_event = { #Djibouti Authdem/Soccon
	id = som.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.38" }
	title = som.38.t
	desc = som.38.d
	picture = GFX_report_event_SOM_Haaji

	mean_time_to_happen = {
		days = 90
	}
	
	fire_only_once = yes
	trigger = {
	tag = SOM
	SOM = {
	has_completed_focus = SOM_Islamic_Republicanism
	owns_state = 268
		}
	}
	
	option = {
		name = som.38.a
	}
	option = {
		name = som.38.b
	create_country_leader = {
		name = "Hassan Gouled Aptidon"
		desc = "POLITICS_GOULED_DESC"
		picture = "gfx/leaders/DJI/Portrait_Djbouti_Hassan_Gouled_Aptidon.png"
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
		traits = {}
		}
	create_country_leader = {
		name = "Hassan Gouled Aptidon"
		desc = "POLITICS_GOULED_DESC"
		picture = "gfx/leaders/DJI/Portrait_Djbouti_Hassan_Gouled_Aptidon.png"
		expire = "1.1.1"
		ideology = authdem_pan_somalism_subtype
		traits = {}
		}
	}
}

country_event = { #Latinize Somali
	id = som.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.39" }
	title = som.39.t
	desc = som.39.d
	picture = GFX_report_event_SOM_Latinization

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.39.a
		if = {
			limit = {
				has_idea = SOM_osmanya
			}
			swap_ideas = {
				remove_idea = SOM_osmanya
				add_idea = SOM_Latin_Script
			}
		}
		if = {
			limit = {
				has_idea = SOM_osmanya_2
			}
			swap_ideas = {
				remove_idea = SOM_osmanya_2
				add_idea = SOM_Latin_Script
			}
		}
	}
}

country_event = { #Natpops Language
	id = som.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.40" }
	title = som.40.t
	desc = som.40.d
	picture = GFX_report_event_SOM_Latinization

	fire_only_once = yes
	#minor_flavor = yes
	mean_time_to_happen = {
		days = 180
	}
	
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		tag = SOM
		SOM = {
			has_completed_focus = SOM_Securing_National_State
		}
	}
	
	option = {
		name = som.40.a
		add_stability = 0.05
		add_political_power = -100
	}
	option = {
		name = som.40.b
		add_stability = -0.05
		add_political_power = 20
	}
	option = {
		name = som.40.c
		add_political_power = 25
		add_stability = 0.02
	}
}

country_event = { #Siad Barre is crazy
	id = som.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.41" }
	title = som.41.t
	desc = som.41.d
	picture = GFX_report_event_SOM_Barre_Profile

	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 = {
		name = som.41.a
		add_war_support = -0.02
	}
}

country_event = { #Mad Mullah
	id = som.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.42" }
	title = som.42.t
	desc = som.42.d
	picture = GFX_report_event_SOM_Sultan

	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 = {
		name = som.42.a
		add_political_power = 20
	}
	option = {
		name = som.42.b
		set_cosmetic_tag = SOM_DERVISH
	}
}

country_event = { #Mohammad Nur
	id = som.43
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.42" }
	title = som.43.t
	desc = som.43.d
	picture = GFX_report_event_SOM_Mohammad_Nur

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.43.a
		add_political_power = 20
		increase_ruling_party_popularity_by_5 = yes
		add_tech_bonus = {
			bonus = 0.5
			uses = 1
			category = industry
		}
		add_equipment_to_stockpile = {
			type = infantry_equipment_1
			amount = 500
			producer = GER
		}
	}
}

country_event = { #Djibouti chain start
	id = som.44
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.44" }
	title = som.44.t
	desc = som.44.d
	picture = GFX_report_event_SOM_Djibouti

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = som.44.a
	ai_chance = {
		factor = 20
	}
	trigger = {
	NOT = {
		has_country_leader = { ruling_only = yes name = "Mohamed Siad Barre" }
		has_country_leader = { ruling_only = yes name = "Haaji Mahammad Husseen" }
		}
	}
	DJI = {
		country_event = som.45
		}
	}
	option = {
	trigger = {
	has_country_leader = { ruling_only = yes name = "Haaji Mahammad Husseen" }
	}
	name = som.44.b
	ai_chance = {
		factor = 20
	}
	DJI = {
	country_event = som.46
		}
	}
	option = {
		name = som.44.c
		ai_chance = {
			factor = 20
		}
			trigger = {
			has_country_leader = { ruling_only = yes name = "Mohamed Siad Barre" }
		}
		DJI = {
			country_event = som.46
		}
	}
	option = {
		name = som.44.e
		ai_chance = {
			factor = 80
		}
		add_stability = 0.01
	}
}

country_event = { #Somalis make a deal
	id = som.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.45" }
	title = som.45.t
	desc = som.45.d
	picture = GFX_report_event_SOM_Djibouti

	fire_only_once = yes

	is_triggered_only = yes

	option = { #yes
		name = som.45.a
		ai_chance = {
			factor = 0
		}
		SOM = {
		transfer_state = 1297
		if = {
			limit = {
				owns_state = 269
				}
			SOM = {
				transfer_state = 269
			}
		}
		country_event = som.47
		add_timed_idea = {
			idea = SOM_Djibouti_Purchase
			days = 180
			}
		}
		add_timed_idea = {
			idea = SOM_Djibouti_Purchase_MAF
			days = 180
		}
	}
	option = {
		name = som.45.b
		ai_chance = {
			factor = 1
		}
		country_event = som.49
	}
}

country_event = { #Somalis cause unrest
	id = som.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.46" }
	title = som.46.t
	desc = som.46.d
	picture = GFX_report_event_SOM_Djibouti

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.46.a
		ai_chance = {
			factor = 30
		}
			if = {
				limit = {
					can_declare_war_on = SOM
					}
				declare_war_on = {
					target = SOM
					type = annex_everything
				}
			}
		SOM = {
		transfer_state = 1297
		country_event = som.47
		}
		if = {
			limit = {
				owns_state = 269
				}
			SOM = {
			transfer_state = 269
			}
		}
	}
	option = {
		name = som.46.b
		ai_chance = {
			factor = 100
		}
		SOM = {
		transfer_state = 1297
		country_event = som.47
		}
		if = {
			limit = {
				owns_state = 269
				}
			SOM = {
			transfer_state = 269
			}
		}
	}
}

country_event = { #Somali Victory
	id = som.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.47" }
	title = som.47.t
	desc = som.47.d
	picture = GFX_report_event_SOM_Djibouti

	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 = {
		name = som.47.a
		add_war_support = 0.02
	}
}

country_event = { #Go kill Yemen
	id = som.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.48" }
	title = som.48.t
	desc = som.48.d
	picture = GFX_report_event_SOM_Yemen

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 180
	}

	trigger = {
		tag = SOM
		owns_state = 268
		can_declare_war_on = YEM
		YEM = {
			is_in_faction = no
			is_subject = no
		}
	}

	option = {
		name = som.48.a
	ai_chance = {
			factor = 0
		}
	create_wargoal = {
				target = YEM
				type = annex_everything
		}
	}
	option = {
		name = som.48.b
	ai_chance = {
			factor = 100
		}
	}
}

country_event = { #Somali Defeat
	id = som.49
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.49" }
	title = som.49.t
	desc = som.49.d
	picture = GFX_report_event_SOM_Djibouti

	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 = {
		name = som.49.a
		add_political_power = -100
	}
}

country_event = { #Attempted Assassination
	id = som.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.50" }
	title = som.50.t
	desc = som.50.d
	picture = GFX_report_event_SOM_Barre_Profile

	fire_only_once = yes

	is_triggered_only = yes

	option = {
	ai_chance = {
			factor = 99
		}
		name = som.50.a
		add_political_power = 20
		add_manpower = -250
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.10
		}
		country_event = {
			id = som.14
			days = 1
			}
		hidden_effect = {
			country_event = {
				id = som.34
				days = 50
			}
		}
	}
	option = {
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				has_game_rule = {
					rule = SOM_clans
					option = SOM_WARSANGALI_BARRE
				}
			}
		}
		name = som.50.b
		add_political_power = -50
		hidden_effect = {
		create_country_leader = {
			name = "Somali Revolutionary Council"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Somali_Council.png"
			expire = "1.1.1"
			ideology = red_junta_subtype
		}

		create_country_leader = {
			name = "Somali Revolutionary Council"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Somali_Council.png"
			expire = "1.1.1"
			ideology = centralized_syndicalism_subtype
		}

		create_country_leader = {
			name = "Somali Revolutionary Council"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Somali_Council.png"
			expire = "1.1.1"
			ideology = radsoc_pan_somalism_subtype
		}
			remove_ideas = SOM_Clan_Resistance
			random_unit_leader = {
			limit = { has_id = 21418 }
			retire = yes
				}
			}
		add_popularity = {
			ideology = totalist
			popularity = -0.20
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		country_event = {
			id = som.51
			days = 1
		}
	}
}

country_event = { #Barre overthrown
	id = som.51
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.51" }
	title = som.51.t
	desc = som.51.d
	picture = GFX_report_event_SOM_Barre_Profile

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = som.51.a
		set_country_flag = SOM_Boqor
		add_ideas = SOM_Cismaan_III_Maxamuud_hog_ade
		add_ideas = SOM_Abdullah_Mohamed_Fadil_for_ade
		add_ideas = SOM_Mohamoud_Ghelle_Yusuf_eco_ade
		add_ideas = SOM_Ismail_Ali_Abukar_sec_ade
		add_political_power = 20
	}
	option = {
		name = som.51.b
	set_cosmetic_tag = SOM_REPUBLIC
	create_country_leader = {
		name = "Aden Abdulle Osman Daar"
		desc = ""
		picture = "gfx/leaders/SOM/Portrait_SOM_Aden_Daar.png"
		expire = "1.1.1"
		ideology = authdem_pan_somalism_subtype
	}
	hidden_effect = {
		country_event = {
			id = som.55
			days = 1
			}
	}
	hidden_effect = {
		add_ideas = SOM_Yasin_Haji_Osman_Sharmarke_hog_sco
		add_ideas = SOM_Hersi_Boqor_for_sco
		add_ideas = SOM_Ahmed_Mohamoud_Ade_eco_sco
		add_ideas = SOM_Allan_Gibb_sec_sco
		}
	}
}

country_event = { #Ideology Picker (Socdem)
	id = som.52
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.52" }
	title = som.52.t
	desc = som.52.d
	picture = GFX_report_event_SOM_SYL_Meeting
	
	is_triggered_only = yes

	fire_only_once = yes
	trigger = {
	tag = SOM
	has_government = social_democrat
	OR = {
	has_completed_focus = SOM_Pious_Confederation
	has_completed_focus = SOM_Holy_Federation
		}
	}
	
	option = {
		name = som.52.a
		set_country_leader_ideology = socdem_islamism_subtype
	}
	option = {
		name = som.52.b
		set_country_leader_ideology = socdem_jadidism_subtype
	}
	option = {
		name = som.52.c
		set_country_leader_ideology = socdem_pan_somalism_subtype
	}
	option = {
		name = som.52.e
		set_country_leader_ideology = socdem_radical_progressivism_subtype
	}
	option = {
		name = som.52.f
		set_country_leader_ideology = socdem_agrarianism_subtype
	}
	option = {
		name = som.52.g
		set_country_leader_ideology = popular_patriotism_subtype
	}
}

country_event = { #Ideology Picker (Marlib)
	id = som.53
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.53" }
	title = som.53.t
	desc = som.53.d
	picture = GFX_report_event_SOM_SYL_Meeting

	is_triggered_only = yes
	
	trigger = {
	tag = SOM
	has_government = market_liberal
	OR = {
	has_completed_focus = SOM_Pious_Confederation
	has_completed_focus = SOM_Holy_Federation
		}
	}
	
	option = {
		name = som.53.a
		set_country_leader_ideology = marlib_pan_somalism_subtype
	}
	option = {
		name = som.53.b
		set_country_leader_ideology = tribal_councilism_subtype
	}
	option = {
		name = som.53.c
		set_country_leader_ideology = marlib_islamism_subtype
	}
	option = {
		name = som.53.e
		set_country_leader_ideology = marlib_agrarianism_subtype
	}
	option = {
		name = som.53.f
		set_country_leader_ideology = liberal_conservative_subtype
	}
	option = {
		name = som.53.g
		set_country_leader_ideology = progressive_democracy_subtype
	}
	option = {
		name = som.53.h
		set_country_leader_ideology = humanistic_capitalism_subtype
	}
	option = {
		name = som.53.i
		set_country_leader_ideology = marlib_centrist_subtype
	}
}

country_event = { #SYL Leader Picker
	id = som.54
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.54" }
	title = som.54.t
	desc = som.54.d
	picture = GFX_report_event_SOM_SYL_Meeting

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.54.a
		hidden_effect = {
		create_country_leader = {
		name = "Aden Abdulle Osman Daar"
		desc = ""
		picture = "gfx/leaders/SOM/Portrait_SOM_Aden_Daar.png"
		expire = "1.1.1"
		ideology = socdem_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Aden Abdulle Osman Daar"
		desc = ""
		picture = "gfx/leaders/SOM/Portrait_SOM_Aden_Daar.png"
		expire = "1.1.1"
		ideology = soclib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Aden Abdulle Osman Daar"
		desc = ""
		picture = "gfx/leaders/SOM/Portrait_SOM_Aden_Daar.png"
		expire = "1.1.1"
		ideology = marlib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Aden Abdulle Osman Daar"
		desc = ""
		picture = "gfx/leaders/SOM/Portrait_SOM_Aden_Daar.png"
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
			}
		}
	}
	option = {
		name = som.54.b
		hidden_effect = {
		create_country_leader = {
		name = "Yasin Haji Osman Sharmarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Yasin_Haji_Osman_Sharmarke.png"
		desc = ""
		expire = "1.1.1"
		ideology = socdem_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Yasin Haji Osman Sharmarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Yasin_Haji_Osman_Sharmarke.png"
		desc = ""
		expire = "1.1.1"
		ideology = soclib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Yasin Haji Osman Sharmarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Yasin_Haji_Osman_Sharmarke.png"
		desc = ""
		expire = "1.1.1"
		ideology = marlib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Yasin Haji Osman Sharmarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Yasin_Haji_Osman_Sharmarke.png"
		desc = ""
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
			}
		}
	}
	option = {
		name = som.54.c
		hidden_effect = {
		create_country_leader = {
		name = "Haji Bashir Ismail Yusuf"
		picture = "gfx/leaders/SOM/Portrait_SOM_Haji_Bashir_Ismail_Yusuf.png"
		desc = "POLITICS_BASHIR_YUSUF_SOM_DESC"
		expire = "1.1.1"
		ideology = socdem_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Haji Bashir Ismail Yusuf"
		picture = "gfx/leaders/SOM/Portrait_SOM_Haji_Bashir_Ismail_Yusuf.png"
		desc = "POLITICS_BASHIR_YUSUF_SOM_DESC"
		expire = "1.1.1"
		ideology = soclib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Haji Bashir Ismail Yusuf"
		picture = "gfx/leaders/SOM/Portrait_SOM_Haji_Bashir_Ismail_Yusuf.png"
		desc = "POLITICS_BASHIR_YUSUF_SOM_DESC"
		expire = "1.1.1"
		ideology = marlib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Haji Bashir Ismail Yusuf "
		picture = "gfx/leaders/SOM/Portrait_SOM_Haji_Bashir_Ismail_Yusuf.png"
		desc = "POLITICS_BASHIR_YUSUF_SOM_DESC"
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
			}
		}
	}
	option = {
		name = som.54.e
		hidden_effect = {
		create_country_leader = {
		name = "Sheikh Mukhtar Mohamed Hussein"
		picture = "gfx/leaders/SOM/Portrait_SOM_Sheikh_Mukhtar_Mohamed_Hussein.png"
		desc = ""
		expire = "1.1.1"
		ideology = socdem_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Sheikh Mukhtar Mohamed Hussein"
		picture = "gfx/leaders/SOM/Portrait_SOM_Sheikh_Mukhtar_Mohamed_Hussein.png"
		desc = ""
		expire = "1.1.1"
		ideology = soclib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Sheikh Mukhtar Mohamed Hussein"
		picture = "gfx/leaders/SOM/Portrait_SOM_Sheikh_Mukhtar_Mohamed_Hussein.png"
		desc = ""
		expire = "1.1.1"
		ideology = marlib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Sheikh Mukhtar Mohamed Hussein "
		picture = "gfx/leaders/SOM/Portrait_SOM_Sheikh_Mukhtar_Mohamed_Hussein.png"
		desc = ""
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
			}
		}
	}
	option = { #Abdirashid Ali Shermarke
		name = som.54.f
		hidden_effect = {
		create_country_leader = {
		name = "Abdirashid Ali Shermarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Abdirashid_Ali_Shermarke.png"
		desc = "POLITICS_ALI_SHERMAKE_DESC"
		expire = "1.1.1"
		ideology = socdem_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Abdirashid Ali Shermarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Abdirashid_Ali_Shermarke.png"
		desc = "POLITICS_ALI_SHERMAKE_DESC"
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Abdirashid Ali Shermarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Abdirashid_Ali_Shermarke.png"
		desc = "POLITICS_ALI_SHERMAKE_DESC"
		expire = "1.1.1"
		ideology = marlib_pan_somalism_subtype
		}
		create_country_leader = {
		name = "Abdirashid Ali Shermarke"
		picture = "gfx/leaders/SOM/Portrait_SOM_Abdirashid_Ali_Shermarke.png"
		desc = "POLITICS_ALI_SHERMAKE_DESC"
		expire = "1.1.1"
		ideology = soccon_pan_somalism_subtype
			}
		}
	}
}

country_event = { #
	id = som.55
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.55" }
	title = som.55.t
	desc = som.55.d
	picture = GFX_report_event_SOM_SYL_Meeting

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.55.a
	hidden_effect = {
	set_country_flag = SOM_REPUBLICAN_SYL
	country_event = {
			id = som.54
			days = 15
			}
	country_event = {
			id = som.27
			days = 30
			}
		}
	}
}

country_event = { #Early Ogaden war
	id = som.56
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.56" }
	title = som.56.t
	desc = som.56.d
	picture = GFX_report_event_SOM_Sultan

	fire_only_once = yes

	mean_time_to_happen = {
		days = 180
	}
	
	trigger = {
	tag = SOM
	is_in_faction = no
	is_subject = no
	has_war = no
	can_declare_war_on = ETH
	date > 1938.06.01
	SOM = {
		has_completed_focus = SOM_tfwnoclans
		NOT = {
			has_completed_focus = SOM_forthegreatergood
		}
		has_country_leader = { ruling_only = yes name = "Maxamuud Cali Shiire" }
		has_government = paternal_autocrat
		}
	}

	option = {
		name = som.56.a
	ai_chance = {
			factor = 50
		}
	add_political_power = 20
	}
	option = {
		name = som.56.b
	ai_chance = {
			factor = 50
	}
	declare_war_on = {
			target = ETH
			type = annex_everything
		}
	add_political_power = -50
	add_stability = -0.05
	add_war_support = 0.05
	}
}

country_event = { #
	id = som.57
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.57" }
	title = som.57.t
	desc = som.57.d
	picture = GFX_report_event_SOM_Sultan

	mean_time_to_happen = {
		days = 180
	}
	
	fire_only_once = yes
	trigger = {
	tag = EGY
	EGY = {
	is_faction_leader = yes
	has_completed_focus = EGY_nile_proclamation
	has_completed_focus = EGY_gather_african_allies
	}
	SOM = {
	is_in_faction = no
	is_subject = no
	has_socialist_government = no
	NOT = {
	has_idea = SOM_Somali_Isolation
			}
		}
	}
	
	option = {
		name = som.57.a
		ai_chance = {
			factor = 100
		}
		SOM = {
		country_event = {
			id = som.58
			days = 15
				}
			}
		}
	option = {
	ai_chance = {
			factor = 0
		}
		name = som.57.b
		add_political_power = 10
	}
}

country_event = { #
	id = som.58
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.58" }
	title = som.58.t
	desc = som.58.d
	picture = GFX_report_event_SOM_Sultan

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.58.a
		ai_chance = {
			factor = 50
		}
		EGY = {
			add_to_faction = SOM
			}
		}
	option = {
		name = som.58.b
		ai_chance = {
			factor = 50
		}
		add_political_power = 20
	}
}

country_event = { #A Somali 'Kingdom'
	id = som.59
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.59" }
	title = som.59.t
	desc = som.59.d
	picture = GFX_report_event_SOM_Sultan

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.59.a
		set_cosmetic_tag = SOM_KINGDOM
		}
	option = {
		name = som.59.b
		increase_ruling_party_popularity_by_2 = yes
	}
	option = {
		name = som.59.c
		set_cosmetic_tag = SOM_BOQORATE
		increase_ruling_party_popularity_by_2 = yes
	}
}

country_event = { #A Capital All but in Name
	id = som.60
	immediate = { log = "[GetDateText]: [Root.GetName]: event som.60" }
	title = som.60.t
	desc = som.60.d
	picture = GFX_report_event_SOM_Sultan

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = som.60.a
		set_victory_points = {
			province = 10921
			value = 10
		}
		increase_ruling_party_popularity_by_5 = yes
		add_political_power = -50
	}
	option = {
		name = som.60.b
		add_stability = 0.05
		increase_ruling_party_popularity_by_2 = yes
	}
}

country_event = {#
	id = som.61
	title = som.61.t
	desc = som.61.d
	picture = GFX_report_event_SOM_clan_argument

	is_triggered_only = yes

	option = {#Yes
		name = som.61.a
		ai_chance = {
			factor = 70
			modifier = {
				factor = 0
				DJI = {
					is_subject_of = GER
					has_completed_focus = DJI_reward_the_emperor
				}
			}
			modifier = {
				factor = 0
				SOM = {
					has_war = yes
				}
			}
		}
		ROOT = {
			add_to_faction = FROM
		}
	}
	option = {#No
		name = som.61.b
		ai_chance = {
			factor = 30
		}
		SOM = {
		country_event = som.62
		}
	}
}
	
country_event = {#
	id = som.62
	title = som.62.t
	desc = som.62.d
	picture = GFX_report_event_SOM_clan_argument

	is_triggered_only = yes

	option = {#Yes
		name = som.62.a
		add_political_power = -40
	}
}

country_event = {
	id = som.63
	title = som.11.t
	desc = som.11.d
	picture = GFX_report_event_SOM_Barre

	fire_only_once = yes
	is_triggered_only = yes

		trigger = {
		NOT = {
			controls_state = 944
			controls_state = 906
		}
	}

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event som.63"
		hidden_effect = {
			remove_all_ministers = yes
			news_event = {
				id = worldnews.113
				days = 1
			}
		}
	}

	option = {
		name = som.11.a
		add_timed_idea = {
			idea = AUTH_chaotic_army_idea
			days = 90
		}
		drop_cosmetic_tag = yes
		set_cosmetic_tag = SOM_SOC
		if = {
			limit = { is_in_faction = yes }
			leave_faction = yes
		}
		create_country_leader = {
			name = "Mohamed Siad Barre"
			desc = "POLITICS_BARRE_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Barre.png"
			expire = "1.1.1"
			ideology = red_junta_subtype
		}
		add_ideas = SOM_Mohamed_Siad_Barre_hog_tot
		add_ideas = SOM_Ahmad_Mahamuud_Faarah_for_tot
		add_ideas = SOM_Muhammad_Sh_Osman_eco_tot
		add_ideas = SOM_Mohamed_Siad_Barre_sec_tot
		add_ideas = SOM_Clan_Resistance
		set_politics = {
			ruling_party = totalist
			elections_allowed = no
		}
		random_unit_leader = {
			limit = { has_id = 21417 }
			retire = yes
		}
		hidden_effect = {
		set_country_flag = SOM_No_Boqor
		clr_country_flag = SOM_REPUBLICAN_SYL
		clr_country_flag = SOM_Boqor
		create_country_leader = {
			name = "Cismaan III Maxamuud"
			desc = "POLITICS_CISMAAN_III_MAXAMUUD_DESC"
			picture = "gfx/leaders/SOM/Portrait_SOM_Cismaan_III_Maxamuud.png"
			expire = "1.1.1"
			ideology = tribal_chiefdom_subtype
			}
		every_unit_leader = {
			limit = {
				has_id = 21418
			}
		remove_unit_leader_trait = hidden_sympathies
			}
		}
	}
}

country_event = {
	id = som.64
	title = som.12.t
	desc = som.12.d
	picture = GFX_report_event_SOM_Haaji

	fire_only_once = yes
	is_triggered_only = yes

		trigger = {
		NOT = {
			controls_state = 944
		}
	}

	immediate = {
		log = "[GetDateText]: [Root.GetName]: event som.64"
		hidden_effect = {
			remove_all_ministers = yes
			news_event = {
				id = worldnews.1257
				days = 1
		}
		}
	}

	option = {
		name = som.12.a
		add_timed_idea = {
			idea = AUTH_chaotic_army_idea
			days = 90
		}
		if = {
			limit = { is_in_faction = yes }
			leave_faction = yes
		}
		drop_cosmetic_tag = yes
		create_country_leader = {
			name = "Haaji Mahammad Husseen"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Haaji.png"
			expire = "1.1.1"
			ideology = natpop_pan_somalism_subtype
		}
		add_ideas = SOM_Haji_Bashir_Ismail_Yusuf_hog_npo
		add_ideas = SOM_Muhammad_Omer_Ges_for_npo
		add_ideas = SOM_Bibi_Moheem_eco_npo
		add_ideas = SOM_Ahmed_Hassan_Musa_sec_npo
		hidden_effect = {
		remove_ideas = SOM_Clan_Resistance
		create_country_leader = {
			name = "Somali Revolutionary Council"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Somali_Council.png"
			expire = "1.1.1"
			ideology = red_junta_subtype
		}
		create_country_leader = {
			name = "Somali Revolutionary Council"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Somali_Council.png"
			expire = "1.1.1"
			ideology = centralized_syndicalism_subtype
		}
		create_country_leader = {
			name = "Somali Revolutionary Council"
			desc = ""
			picture = "gfx/leaders/SOM/Portrait_SOM_Somali_Council.png"
			expire = "1.1.1"
			ideology = radsoc_pan_somalism_subtype
			}
		}
		random_unit_leader = {
			limit = { has_id = 21417 }
			retire = yes
		}
		random_unit_leader = {
			limit = { has_id = 21418 }
			retire = yes
		}
		set_politics = {
			ruling_party = national_populist
			elections_allowed = no
		}
		hidden_effect = {
			country_event = {
				id = som.33
				days = 30
			}
		}
		hidden_effect = {
			set_country_flag = SOM_No_Boqor
			create_country_leader = {
				name = "Cismaan III Maxamuud"
				desc = "POLITICS_CISMAAN_III_MAXAMUUD_DESC"
				picture = "gfx/leaders/SOM/Portrait_SOM_Cismaan_III_Maxamuud.png"
				expire = "1.1.1"
				ideology = tribal_chiefdom_subtype
			}
		}
	}
}

country_event = {#Xeer system
	id = som.65
	title = som.65.t
	desc = som.65.d
	picture = GFX_report_event_SOM_Xeer_System

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = som.65.a
		increase_ruling_party_popularity_by_2 = yes
	}
	option = {
		name = som.65.b
		add_stability = 0.02
	}
	option = {
		name = som.65.c
		trigger = { 
			has_government = authoritarian_democrat 
			has_completed_focus = SOM_Royalist_Party
		}
		set_country_leader_ideology = natpop_kritarchy_subtype
		add_stability = 0.02
	}
}

#Flavour events
country_event = {
	id = somflavour.1 #
	immediate = { log = "[GetDateText]: [Root.GetName]: event somflavour.57 FROM = [From.GetName]" }
	title = somflavour.1.t
	desc = somflavour.1.d
	picture = GFX_report_event_eritrea
	is_triggered_only = yes

		trigger = { is_ai = no }
	#minor_flavor = yes

	option = {
		name = somflavour.1.a
			trigger = { tag = SOM }
		
	}

	option = {
		name = somflavour.57.b
			trigger = {
			NOT = { tag = SOM }
		}
		
	}
}