#####All Hail Obama
#####Events by the radical obamaist, AmCath
add_namespace = obama
add_namespace = redkenya

##Focus tree events
country_event = { #the bush war is still at thing
	id = obama.1
	title = obama.1.t
	desc = obama.1.d
	picture = GFX_report_event_KIK_maumau
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	fire_only_once = yes
	is_triggered_only = yes

	option = { #based
		name = obama.1.a
		custom_effect_tooltip = KEN_checkdecisions
	}
}
country_event = { #bullets and Blood
	id = obama.2
	title = obama.2.t
	desc = obama.2.d
	picture = GFX_report_event_KIK_maumau_4

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

	option = { #based
		name = obama.2.a
	trigger = {
			tag = KIK
		}
		add_stability = 0.01
	}
	option = { #wtf is he going on about
		name = obama.2.b
	trigger = {
			tag = KEN
		}
		add_war_support = 0.01
	}
}
country_event = { #the mountian's final test
	id = obama.4
	title = obama.4.t
	desc = obama.4.d
	picture = GFX_report_event_KIK_maumau

	fire_only_once = yes
	is_triggered_only = yes

	option = { #based
		name = obama.4.a
	}
}
country_event = { #Call to rebellion
	id = obama.5
	title = obama.5.t
	desc = obama.5.d
	picture = GFX_report_event_KIK_maumau_2

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

	option = { #based
		name = obama.5.a
	trigger = {
			tag = KIK
		}
		add_war_support = 0.05
	}
	option = { #based
		name = obama.5.b
	trigger = {
			tag = KEN
		}
		add_manpower = -2
	}
	option = { #based
		name = obama.5.c
	trigger = {
			tag = MAF
		}
		add_manpower = -1
	}
}
country_event = { #Obama musters...
	id = obama.8
	title = obama.8.t
	desc = obama.8.d
	picture = GFX_report_event_KIK_maumau_3

	fire_only_once = yes
	is_triggered_only = yes

	option = { #based
		name = obama.8.a
		add_war_support = 0.03
		add_manpower = -17
		country_event = {
			id = obama.9
			days = 1
		}
		KEN = {
			country_event = {
				id = obama.11
				days = 1
			}
		}
	}
}
country_event = { #The Great Battle
	id = obama.9
	title = obama.9.t
	desc = obama.9.d
	picture = GFX_report_event_KIK_maumau_4

	fire_only_once = yes
	is_triggered_only = yes

	option = { #based
		name = obama.9.a
		hidden_effect = {
			country_event = {	
				id = obama.10
				days = 1
			}
		}
	}
}
country_event = { #End of the Bush War
	id = obama.10
	title = obama.10.t
	desc = obama.10.d
	picture = GFX_report_event_KIK_maumau

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { #based
		name = obama.10.a
		hidden_effect = {
				country_event = { id = obama.12 days = 30 } # event now fires to relevant countries instead of Iceland and Burma
				GER = { country_event = { id = obama.12 days = 30 } }
				MAF = { country_event = { id = obama.12 days = 30 } }
				ENG = { country_event = { id = obama.12 days = 30 } }
				FRA = { country_event = { id = obama.12 days = 30 } }
				USA = { country_event = { id = obama.12 days = 30 } }
				COG = { country_event = { id = obama.12 days = 30 } }
				PAF = { country_event = { id = obama.12 days = 30 } }
				SFA = { country_event = { id = obama.12 days = 30 } }
				KTG = { country_event = { id = obama.12 days = 30 } }
				NMB = { country_event = { id = obama.12 days = 30 } }
				ZAM = { country_event = { id = obama.12 days = 30 } }
				BSC = { country_event = { id = obama.12 days = 30 } }
				GHA = { country_event = { id = obama.12 days = 30 } }
				IVO = { country_event = { id = obama.12 days = 30 } }
				CIV = { country_event = { id = obama.12 days = 30 } }
				UGA = { country_event = { id = obama.12 days = 30 } }
				KEN = { country_event = { id = obama.12 days = 30 } }
				MLW = { country_event = { id = obama.12 days = 30 } }
				CMR = { country_event = { id = obama.12 days = 30 } }
				CEA = { country_event = { id = obama.12 days = 30 } }
				GAB = { country_event = { id = obama.12 days = 30 } }
				SIE = { country_event = { id = obama.12 days = 30 } }
				NGR = { country_event = { id = obama.12 days = 30 } }
				NFA = { country_event = { id = obama.12 days = 30 } }
				BEL = { country_event = { id = obama.12 days = 30 } }
				WLL = { country_event = { id = obama.12 days = 30 } }
		}
	}
}
country_event = { #The Great Battle but Kenya
	id = obama.11
	title = obama.11.t
	desc = obama.11.d
	picture = GFX_report_event_KIK_maumau

	fire_only_once = yes
	is_triggered_only = yes

	option = { #based
		name = obama.11.a
		KIK = {
			hidden_effect = {
				if = {	
					limit = { has_country_leader = { name = "Mzee Onyango Obama" ruling_only = yes } }
					set_country_leader_portrait = {
						portrait = "gfx/leaders/KIK/KIK_Punished_Obama.png"
					}
					set_country_leader_description = {
						desc = "POLITICS_PUNISHED_OBAMA_DESC"
					}
				}
			}
		}
	}
}
##Flavor Events

country_event = {
	id = obama.12 #obamabook obamabook
	immediate = { log = "[GetDateText]: [Root.GetName]: event obama.12" }
	title = obama.12.t
	desc = obama.12.d
	picture = GFX_report_event_KIK_fitzgerald

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

	option = {
		name = obama.12.a
	}
}
country_event = { #The Sermon on Mount Kenya
	id = obama.13
	immediate = {log = "[GetDateText]: [Root.GetName]: event obama.13"}
	title = obama.13.t
	desc = obama.13.d
	picture = GFX_report_event_KIK_obama
	
	is_triggered_only = yes
	
trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		country_exists = KIK
	}
	
	#minor_flavor = yes

	option = {
		name = obama.13.a
	trigger = {
			tag = KIK
		}
		add_stability = 0.01
		add_war_support = 0.01
	}
	option = {
		name = obama.13.b
	trigger = {
			OR = {
				tag = KEN
				tag = MAF
			}
		}
		add_political_power = 5
	}

}
country_event = { #Welcome to Obama
	id = obama.16
	immediate = {log = "[GetDateText]: [Root.GetName]: event obama.16"}
	title = obama.16.t
	desc =  obama.16.d
	picture = GFX_report_event_KIK_obama

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

	option = {
		trigger = {
			tag = KIK
			}
		name = obama.16.a # life in obama's kenya
		country_event = obama.17
		hidden_effect = {
			add_synd_to_coalition = yes
			add_socdem_to_coalition = yes
			add_radsoc_to_coalition = yes
			add_natpop_to_coalition = yes
		}
	}
	option = {
	trigger = {
			tag = KIK
			}
		name = obama.16.b # onlyobama
		hidden_effect = {
			add_synd_to_coalition = yes
			add_socdem_to_coalition = yes
			add_radsoc_to_coalition = yes
			add_natpop_to_coalition = yes
		}
	}
	option = {
	trigger = {
		OR = {
			tag = KEN
			tag = MAF
			}
		}
		name = obama.16.c
	}
}

country_event = { #Lore
	id = obama.17
	immediate = {log = "[GetDateText]: [Root.GetName]: event obama.17"}
	title = obama.17.t
	desc = obama.17.d
	picture = GFX_report_event_KIK_maumau
	
trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		country_exists = KIK
	}
	
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = obama.17.a # For the Duchy!
	}
}

###POST WAR EVENTS###

country_event = { #Demands from MauMau
	id = redkenya.1
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.1"}
	title = redkenya.1.t
	desc = redkenya.1.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.1.a #Hell no
		KIK = {
			country_event = {
				id = redkenya.2
				days = 5
			}
		}
	}
	option = {
		name = redkenya.1.b #Let them
		KIK = {
			country_event = {
				id = redkenya.3
				days = 5
			}
		}
	}
}

country_event = { #They Accept
	id = redkenya.2
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.2"}
	title = redkenya.2.t
	desc = redkenya.2.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.2.a #
		KIK = {
			transfer_state = 892
		}
	}
}

country_event = { #They Refuse
	id = redkenya.3
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.3"}
	title = redkenya.3.t
	desc = redkenya.3.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.3.a #War time
		declare_war_on = {
			target = SOM
			type = annex_everything
		}
	}
	option = {
		name = redkenya.3.b #War time
		add_political_power = -50
	}
}

country_event = { #Invade Jewganda?
	id = redkenya.4
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.4"}
	title = redkenya.4.t
	desc = {
		text = redkenya.4.d
	trigger = {
			NOT = { UGA = { has_cosmetic_tag = UGA_JUD } }
		}
	}
	desc = {
		text = redkenya.4.d_israel
	trigger = {
			UGA = { has_cosmetic_tag = UGA_JUD }
		}
	}
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.4.a #War time
	trigger = {
			UGA = { has_cosmetic_tag = UGA_JUD }
		}
		add_state_core = 548
		declare_war_on = {
			target = UGA
			type = annex_everything
		}
	}
	option = {
		name = redkenya.4.a_2 #War time
	trigger = {
			NOT = { UGA = { has_cosmetic_tag = UGA_JUD } }
		}
		add_state_core = 548
		declare_war_on = {
			target = UGA
			type = annex_everything
		}
	}
	option = {
		name = redkenya.4.b #War time
	trigger = {
			UGA = { has_cosmetic_tag = UGA_JUD }
		}
	}
	option = {
		name = redkenya.4.b_2 #War time
	trigger = {
			NOT = { UGA = { has_cosmetic_tag = UGA_JUD } }
		}
	}
}

country_event = { #Invade Goering?
	id = redkenya.5
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.5"}
	title = redkenya.5.t
	desc = redkenya.5.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.5.a #War time
		add_state_core = 965
		add_state_core = 546
		add_state_core = 1032
		add_state_core = 918
		add_state_core = 899
		add_state_core = 905
		declare_war_on = {
			target = TZN
			type = annex_everything
		}
	}
	option = {
		name = redkenya.5.b #Not yet
		add_state_core = 965
		add_state_core = 546
		add_state_core = 1032
		add_state_core = 918
		add_state_core = 899
		add_state_core = 905
	}
}

country_event = { #United Kenya
	id = redkenya.6
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.6"}
	title = redkenya.6.t
	desc = redkenya.6.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 30
	}

	trigger = {
		tag = KIK
		NOT = {
			has_country_flag = KIK_miracle_victory
		}
		owns_state = 547
		KEN = {
			exists = no
		}
	}

	option = {
		name = redkenya.6.a #War time
		hidden_effect = {
			set_cosmetic_tag = KIK_KENYA
			transfer_state = 969
			if = {
				limit = {
					969 = {
						NOT = {
							is_core_of = KIK
						}
					}
				}
				add_state_core = 969
			}
			if = {
				limit = {
					892 = {
						NOT = {
							is_core_of = KIK
						}
					}
				}
				add_state_core = 892
			}
		if = {
			limit = {
				970 = {
					NOT = {
						is_core_of = KIK
					}
				}
			}
			add_state_core = 970
		}
		set_capital = { state = 547 }
		}
	}
}

country_event = { #Obama
	id = redkenya.7
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.7"}
	title = redkenya.7.t
	desc = redkenya.7.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.7.a #It was Obama that failed once!
		set_country_flag = KIK_obama_survives
		random_unit_leader = {
				limit = { has_id = 264735 }
				remove_unit_leader = yes
			}
		hidden_effect = {
			create_country_leader = {
				name = "Ndirangu Mau"
				picture = "gfx/leaders/KIK/KIK_Ndirangu_Mau.png"
				expire = "1.1.1"
				ideology = mathengeism_subtype
			}
		}
	}
	option = {
		name = redkenya.7.b #It was Obama that led us to Victory!
		hidden_effect = {
			country_event = redkenya.9
		}
	}
}

country_event = { #Obama
	id = redkenya.8
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.8"}
	title = redkenya.8.t
	desc = redkenya.8.d
	picture = GFX_report_event_KIK_storm
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.8.a #It was Obama that failed once!
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KIK_paths
					option = KIK_OBAMA
				}
			}
		}
		set_country_flag = KIK_obama_survives
		random_unit_leader = {
				limit = { has_id = 264735 }
				remove_unit_leader = yes
			}
		hidden_effect = {
			country_event = {
				id = redkenya.28
				days = 20
			}
			create_country_leader = {
				name = "Ndirangu Mau"
				picture = "gfx/leaders/KIK/KIK_Ndirangu_Mau.png"
				expire = "1.1.1"
				ideology = mathengeism_subtype
			}
		}
	}
	option = {
		name = redkenya.8.b #It was Obama that led us to Victory!
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0		
				OR = {
					has_game_rule = {
						rule = KIK_paths
						option = KIK_KIMATHI
					}
					has_game_rule = {
						rule = KIK_paths
						option = KIK_MATENGE
					}
				}
			}
		}
		random_unit_leader = {
			limit = { has_id = 348924 }
			remove_unit_leader = yes
		}
		hidden_effect = {
			country_event = redkenya.9
			create_country_leader = {
				name = "Fred Kubai"
				desc = "POLITICS_FRED_KUBAI_DESC"
				picture = "gfx/leaders/KIK/KIK_Fred_Kubai.png"
				expire = "1.1.1"
				ideology = obammunism_subtype
			}
		}
		set_global_flag = KIK_OBAMA_DEAD
	}
}

country_event = { #Post Obama
	id = redkenya.9
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.9"}
	title = redkenya.9.t
	desc = redkenya.9.d
	picture = GFX_report_event_KIK_maumau
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.9.a #Dedan Takes Charge
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KIK_paths
					option = KIK_MATENGE
				}
			}
		}
		random_unit_leader = {
			limit = { has_id = 264735 }
			remove_unit_leader = yes
		}
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.15
		}
		remove_all_ministers = yes
		add_ideas = KIK_Dedan_Kimathi_hog_rso
		add_ideas = KIK_Kurito_ole_Kisio_for_rso
		add_ideas = KIK_Jaramogi_Odinga_eco_rso
		add_ideas = KIK_Waruhiu_Itote_sec_tot
		remove_ideas = KIK_onlytotalism
		add_synd_to_coalition = yes
		add_socdem_to_coalition = yes
		hidden_effect = {
			set_cosmetic_tag = KIK_KENYA_FEDERATION
			create_country_leader = {
				name = "Ndirangu Mau"
				picture = "gfx/leaders/KIK/KIK_Ndirangu_Mau.png"
				expire = "1.1.1"
				ideology = mathengeism_subtype
			}
		}
	}
	option = {
		name = redkenya.9.b #Mathenge takes over
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = KIK_paths
					option = KIK_KIMATHI
				}
			}
		}
		random_unit_leader = {
			limit = { has_id = 149438 }
			remove_unit_leader = yes
		}
		create_corps_commander = {
			name = "Ndirangu Mau"
			portrait_path = "gfx/leaders/KIK/KIK_Ndirangu_Mau.png"
			desc = ""
			traits = { }
			skill = 2
			attack_skill = 2
			defense_skill = 1
			planning_skill = 1
			logistics_skill = 3
		}
		set_politics = {
			ruling_party = national_populist
			elections_allowed = no
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.15
		}
		remove_all_ministers = yes
		add_ideas = KIK_Stanley_Mathenge_hog_npo
		add_ideas = KIK_Harry_Thuku_for_npo
		add_ideas = KIK_James_Beauttah_eco_npo
		add_ideas = KIK_Mwangi_Macharia_sec_npo
		remove_ideas = KIK_Revisionist_Pariah
		remove_ideas = KIK_onlyobama
		remove_ideas = KIK_onlytotalism
		hidden_effect = {
			set_cosmetic_tag = KEN_KIK
			country_event = {
				id = redkenya.25
				days = 15
			}
			create_country_leader = {
				name = "Fred Kubai"
				desc = "POLITICS_FRED_KUBAI_DESC"
				picture = "gfx/leaders/KIK/KIK_Fred_Kubai.png"
				expire = "1.1.1"
				ideology = moderate_obammunism_subtype
			}
		}
	}
}
country_event = { #war flavor gang
	id = redkenya.10
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.10"}
	title = redkenya.10.t
	desc = redkenya.10.d
	picture = GFX_report_event_KIK_maumau_2
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

trigger = {
		tag = KIK
		has_completed_focus = KIK_new_kenya
		has_war = yes
	}

	option = {
		name = redkenya.10.a #war never changes
		add_war_support = 0.15	}
}
country_event = { #buliding stuff flavor event
	id = redkenya.11
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.11"}
	title = redkenya.11.t
	desc = redkenya.11.d
	picture = GFX_report_event_KIK_maumau_3
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.11.a #war never changes
		random_owned_state = {
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}	}
}
country_event = { #white highlands
	id = redkenya.12
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.11"}
	title = redkenya.12.t
	desc = redkenya.12.d
	picture = GFX_report_event_KIK_maumau_3
	
	fire_only_once = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	
	mean_time_to_happen = {
		days = 180
	}

trigger = {
		tag = KIK
		KEN = {
			exists = no
		}
	}

	option = {
		name = redkenya.12.a #war never changes
		random_owned_state = {
				add_extra_state_shared_building_slots = 2
			}	}
}
country_event = { #pro-bantu
	id = redkenya.13
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.11"}
	title = redkenya.13.t
	desc = redkenya.13.d
	picture = GFX_report_event_KIK_maumau_3
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.13.a #war never changes
		add_political_power = 150
		if = {
			limit = {
				has_country_leader = {
					name = "Stanley Mathenge"
					ruling_only = yes
				}
			}
			hidden_effect = {
				country_event = {
					id = redkenya.14
					days = 20
				}
			}
		}	}
}
country_event = { #purging none bantu
	id = redkenya.14
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.11"}
	title = redkenya.14.t
	desc = redkenya.14.d
	picture = GFX_report_event_KIK_mathenge
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.14.a #war never changes
		add_stability = 0.20
		add_manpower = -2000
	}
}
country_event = { #Obama cult
	id = redkenya.15
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.15"}
	title = redkenya.15.t
	desc = redkenya.15.d
	picture = GFX_report_event_KIK_obama
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.15.a #war never changes
		set_cosmetic_tag = KIK_OBAMA_AFRICA
		hidden_effect = {
			if = {	
				limit = { has_country_leader = { name = "Mzee Onyango Obama" ruling_only = yes } }
				set_country_leader_portrait = {
					portrait = "gfx/leaders/KIK/KIK_Based_Obama.png"
				}
				add_country_leader_trait = avatar_of_ghost_goat
			}
		}
	}
}
country_event = { #Obama Mosley
	id = redkenya.16
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.15"}
	title = redkenya.16.t
	desc = redkenya.16.d
	picture = GFX_report_event_KIK_obama
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.16.a #war never changes
		add_political_power = 50
		increase_ruling_party_popularity_by_5 = yes
	}
}
country_event = { #Like Father Like Son
	id = redkenya.17
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.15"}
	title = redkenya.17.t
	desc = redkenya.17.d
	picture = GFX_report_event_KIK_obama
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.17.a #war never changes
		add_political_power = 50
		add_stability = 0.15
	}
}
country_event = { #Great Leap Forward
	id = redkenya.18
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.15"}
	title = redkenya.18.t
	desc = redkenya.18.d
	picture = GFX_report_event_KIK_obama
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.18.a #war never changes
		add_political_power = -150
		add_stability = -0.15
		add_manpower = -214
		random_owned_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}
}
country_event = { #Kenyatta ded
	id = redkenya.19
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.15"}
	title = redkenya.19.t
	desc = redkenya.19.d
	picture = GFX_report_event_MAF_kenyatta
	
	fire_only_once = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	
	mean_time_to_happen = {
		days = 180
	}

trigger = {
		tag = KIK
		controls_state = 965
	}

	option = {
		name = redkenya.19.a #war never changes
		add_political_power = 50
		add_stability = 0.05
	}
}

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

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	
trigger = {
		tag = KIK
		has_war = no 
		has_completed_focus = KIK_divine_leader
		NOT = {
			country_exists = COG
			country_exists = ZAM
			country_exists = CIV
			country_exists = CMR
			country_exists = NGR
			country_exists = MSF
			country_exists = UMN
			country_exists = TZN
		}
	}
	option = {
		name = redkenya.20.a
		set_country_flag = KIK_obama_ate_africa
		every_owned_state = {
			KIK = { add_state_core = PREV }
		}
	}
}
country_event = { # 
	id = redkenya.21
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.21"}
	title = redkenya.21.t
	desc = redkenya.21.d
	picture = GFX_report_event_KIK_maumau

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	
trigger = {
		tag = KIK
		has_war = no 
		has_completed_focus = KIK_heirs_to_bantu
		NOT = {
			country_exists = COG
			country_exists = ZAM
			country_exists = CIV
			country_exists = CMR
			country_exists = NGR
			country_exists = MSF
			country_exists = UMN
			country_exists = TZN
		}
	}
	option = {
		name = redkenya.21.a
		set_country_flag = KIK_bantu_ate_afrika
		every_owned_state = {
			KIK = { add_state_core = PREV }
		}
	}
}

country_event = { # Obama Kid
	id = redkenya.22
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.22"}
	title = redkenya.22.t
	desc = redkenya.22.d
	picture = GFX_report_event_KIK_dedan

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.22.a
		add_political_power = 50
	}
}
country_event = { # Join Int
	id = redkenya.23
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.22"}
	title = redkenya.23.t
	desc = redkenya.23.d
	picture = GFX_report_event_KIK_dedan

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.23.a
		add_political_power = 50
		FRA = {
			add_to_faction = KIK
		}
	}
}
country_event = { # Baby Obama
	id = redkenya.24
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.24"}
	title = redkenya.24.t
	desc = redkenya.24.d
	picture = GFX_report_event_KIK_dedan

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.24.a
		create_country_leader = {
			name = "Barack Obama"
			desc = "POLITICS_BABY_OBAMA_DESC"
			picture = "gfx/leaders/KIK/KIK_Baby_Obama.png"
			expire = "1.1.1"
			ideology = moderate_obammunism_subtype 
		}
		hidden_effect = {
			country_event = {
				id = redkenya.26
				months = 257
			}
		}
	}
	option = {
		name = redkenya.24.b
		add_stability = 0.05
		add_political_power = 50
	}
}
country_event = { # Mathenge Brags
	id = redkenya.25
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.25"}
	title = redkenya.25.t
	desc = redkenya.25.d
	picture = GFX_report_event_KIK_mathenge

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.25.a
		add_political_power = 50
		increase_ruling_party_popularity_by_5 = yes
	}
}
country_event = { # Obama 2
	id = redkenya.26
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.25"}
	title = redkenya.26.t
	desc = redkenya.26.d
	picture = GFX_report_event_KIK_obama

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.26.a
		create_country_leader = {
			name = "Barack Obama Jr"
			picture = "gfx/leaders/KIK/KIK_Babier_Obama.png"
			expire = "2009.1.1"
			ideology = moderate_obammunism_subtype
		}
	}
	option = {
		name = redkenya.26.b
		create_country_leader = {
			name = "Barack Obama Jr"
			picture = "gfx/leaders/KIK/KIK_Babier_Obama.png"
			expire = "2009.1.1"
			ideology = moderate_obammunism_subtype
		}
	}
}

country_event = { # Thanks, Obama
	id = redkenya.27
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.27"}
	title = redkenya.27.t
	desc = redkenya.27.d
	picture = GFX_report_event_KIK_obama

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = redkenya.27.a
		add_political_power = 10
	}
}

country_event = { # Only Obama?
	id = redkenya.28
	immediate = {log = "[GetDateText]: [Root.GetName]: event redkenya.28"}
	title = redkenya.28.t
	desc = redkenya.28.d
	picture = GFX_report_event_KIK_obama

	fire_only_once = yes
	is_triggered_only = yes

	option = { #ONLY OBAMA MEANS ONLY OBAMA
		name = redkenya.28.a
		add_political_power = -10
		remove_all_ministers = yes
		add_ideas = KIK_Hussein_Obama_hog_tot
		add_ideas = KIK_Hussein_Obama_for_tot
		add_ideas = KIK_Hussein_Obama_eco_tot
		add_ideas = KIK_Hussein_Obama_sec_tot
	}
	option = { #Lets not
		name = redkenya.28.b
		add_political_power = 10
		remove_all_ministers = yes
		add_ideas = KIK_Hussein_Obama_hog_tot
		add_ideas = KIK_Dedan_Kimathi_for_tot
		add_ideas = KIK_Kurito_ole_Kisio_eco_tot
		add_ideas = KIK_Waruhiu_Itote_sec_tot
	}
}

country_event = {
	id = redkenya.29
	title = redkenya.29.t
	desc = redkenya.29.d
	picture = GFX_report_event_KIK_mathenge

	is_triggered_only = yes
	fire_only_once = yes

	option = {#
		name = redkenya.29.a
		set_cosmetic_tag = KIK_BANTU_GANG_2
	}
	option = {#
		name = redkenya.29.b
		set_cosmetic_tag = KIK_BANTU_GANG_3
	}
	option = {#
		name = redkenya.29.c
		set_cosmetic_tag = KIK_BANTU_GANG_4
	}
	option = {#
		name = redkenya.29.e
		set_cosmetic_tag = KIK_BANTU_GANG_5
	}
	option = {#
		name = redkenya.29.f
		set_cosmetic_tag = KIK_BANTU_GANG_6
	}
	option = {#
		name = redkenya.29.g
	}
}

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

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = redkenya.30.a
		hidden_effect = {
			every_state = {
				limit = { is_core_of = ERI }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = ETH }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = SOM }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = TZN }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = MAG }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = SUD }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = MZB }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = RWA }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = BRD }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = ZZB }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = UGA }
				add_core_of = KIK
			}
			every_state = {
				limit = { is_core_of = ZAM }
				add_core_of = KIK
			}
			add_state_core = 871
			add_state_core = 544
			add_state_core = 955
			add_state_core = 954
			add_state_core = 970
			add_state_core = 1183
			add_state_core = 879
			add_state_core = 1182
			add_state_core = 1184
			add_state_core = 949
			add_state_core = 1182
			add_state_core = 977
			add_state_core = 1026
			add_state_core = 1181
			country_event = {
				id = redkenya.31
			}
		}
		create_wargoal = { target = ERI type = annex_everything }
		create_wargoal = { target = ETH type = annex_everything }
		create_wargoal = { target = SOM type = annex_everything }
		create_wargoal = { target = TZN type = annex_everything }
		create_wargoal = { target = MAG type = annex_everything }
		create_wargoal = { target = DJI type = annex_everything }
		create_wargoal = { target = RWA type = annex_everything }
		create_wargoal = { target = BRD type = annex_everything }
		create_wargoal = { target = ZZB type = annex_everything }
		create_wargoal = { target = UGA type = annex_everything }
		create_wargoal = { target = COG type = annex_everything }
		create_wargoal = { target = KIV type = annex_everything }
		create_wargoal = { target = MSF type = annex_everything }
		create_wargoal = { target = UMN type = annex_everything }
		create_wargoal = { target = LPD type = annex_everything }
		create_wargoal = { target = 551.owner type = annex_everything }
		create_wargoal = { target = 955.owner type = annex_everything }
		create_wargoal = { target = 544.owner type = annex_everything }
		create_wargoal = { target = 871.owner type = annex_everything }
		hidden_effect = {
			country_event = {
				id = redkenya.35
				days = 30
			}
		}
	}
	option = {
		name = redkenya.30.b
		add_stability = 0.05
	}
}

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

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = redkenya.31.a
		set_cosmetic_tag = KIK_EASTAFRICA_1
	}
	option = {
		name = redkenya.31.b
		set_cosmetic_tag = KIK_EASTAFRICA_2
	}
}

country_event = {#
	id = redkenya.32
	title = redkenya.32.t
	desc = redkenya.32.d
	picture = GFX_report_event_maasai

	is_triggered_only = yes
	fire_only_once = yes

	option = {#assimilate them
		name = redkenya.32.a
		add_popularity = {
			ideology = totalist
			popularity = 0.1
		}
		add_manpower = 12500
		random_owned_controlled_state = {
			limit = { is_core_of = ROOT }
			add_extra_state_shared_building_slots = 1
		}
		random_owned_controlled_state = {
			limit = { is_core_of = ROOT }
			add_extra_state_shared_building_slots = 1
		}
	}
	option = {#autonomy
		name = redkenya.32.b
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.08
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.03
		}
		add_stability = 0.1
	}
	option = {#nah fuck em
		name = redkenya.32.c
		add_popularity = {
			ideology = national_populist
			popularity = 0.1
		}
		add_manpower = -25000
		add_war_support = 0.1
	}
}

country_event = {#
	id = redkenya.33
	title = redkenya.33.t
	desc = redkenya.33.d
	picture = GFX_report_event_KIK_dedan

	is_triggered_only = yes
	fire_only_once = yes

	option = {#kimathi 1
		name = redkenya.33.a
		hidden_effect = {
			country_event = {
				id = redkenya.24
				days = 5015
			}
		}
	}
	option = {#kimathi 2
		name = redkenya.33.b
	}
	option = {
		name = redkenya.33.c
		create_country_leader = {
			name = "Bildad Kaggia"
			desc = "POLITICS_BILDAD_KAGGIA_DESC"
			picture = "gfx/leaders/KIK/KIK_Bildad_Kaggia.png"
			expire = "1.1.1"
			ideology = left_nationalism_subtype
		}
	}
	option = {
		name = redkenya.33.e
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.15
		}
		hidden_effect = {
			add_socdem_to_coalition = yes
			add_radsoc_to_coalition = yes
		}
	}
	option = {
		name = redkenya.33.f
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = no
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.15
		}
		hidden_effect = {
			add_synd_to_coalition = yes
			add_radsoc_to_coalition = yes
		}
	}
	option = {
		name = redkenya.33.g
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		create_country_leader = {
			name = "Makhan Singh"
			desc = "POLITICS_MAKHAN_SINGH_DESC"
			picture = "gfx/leaders/KIK/KIK_Makhan_Singh.png"
			expire = "1.1.1"
			ideology = democratic_syndicalism_subtype
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.1
		}
		hidden_effect = {
			add_socdem_to_coalition = yes
			add_radsoc_to_coalition = yes
		}
	}
}

country_event = {#obama fate of diaspora
	id = redkenya.34
	title = redkenya.34.t
	desc = redkenya.34.d
	picture = GFX_report_event_african_diaspora

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = redkenya.34.a
		hidden_effect = {
			add_state_core = 362
			add_state_core = 1158
			add_state_core = 363
			add_state_core = 368
			add_state_core = 1168
			add_state_core = 364
			add_state_core = 365
			add_state_core = 367
			add_state_core = 1167
			add_state_core = 1169
			add_state_core = 1170
			add_state_core = 371
			add_state_core = 370
			add_state_core = 1172
			add_state_core = 1171
			every_state = {
				limit = {
					is_core_of = HAI
				}
				add_core_of = KIK
			}
			every_state = {
				limit = {
					is_core_of = DOM
				}
				add_core_of = KIK
			}
			every_state = {
				limit = {
					is_core_of = CAF
				}
				add_core_of = KIK
			}
			every_state = {
				limit = {
					is_core_of = BRA
				}
				add_core_of = KIK
			}
			every_state = {
				limit = {
					is_core_of = CUB
				}
				add_core_of = KIK
			}
		}
		create_wargoal = {
			target = COR
			type = annex_everything
		}
		create_wargoal = {
			target = USA
			type = annex_everything
		}
		create_wargoal = {
			target = TEX
			type = annex_everything
		}
		create_wargoal = {
			target = BBR
			type = annex_everything
		}
		create_wargoal = {
			target = BRA
			type = annex_everything
		}
		create_wargoal = {
			target = CAF
			type = annex_everything
		}
		create_wargoal = {
			target = HAI
			type = annex_everything
		}	
		create_wargoal = {
			target = DOM
			type = annex_everything
		}
		create_wargoal = {
			target = CUB
			type = annex_everything
		}
	}
	option = {
		name = redkenya.34.b
		create_faction = "Afrikan Internationale"
		hidden_effect = {
			DOM = {
				country_event = {
					id = redkenya.36
					days = 7
				}
			}
			if = {
				limit = {
					CAF = {
						has_socialist_government = yes
					}
				}
				CAF = {
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
			if = {
				limit = {
					country_exists = BBR
				}
				BBR = { 
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
			if = {
				limit = {
					HAI = {
						NOT = {
							has_government = paternal_autocrat
						}
					}
				}
				HAI = {
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
			if = {
				limit = {
					NYC = {
						OR = {
							has_country_leader = {
								name = "Casper Holstein"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Bumpy Johnson"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Stephanie St. Clair"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Frank Crosswaith"
								ruling_only = yes
							}
							has_country_leader = {
								name = "A. Philip Randolph"
								ruling_only = yes
							}
							has_country_leader = {
								name = "David Hamilton Jackson"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Hubert Harrison"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Bayard Rustin"
								ruling_only = yes
							}
							has_country_leader = {
								name = "James R. Lawson"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Sufi Abdul Hamid"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Ira Kemp"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Marcus Garvey"
								ruling_only = yes
							}
						}
					}
				}
				NYC = {
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
		}
	}
	option = {
		name = redkenya.34.c
		add_stability = 0.1
	}
}

country_event = {#kimathi & co fate of diaspora
	id = redkenya.35
	title = redkenya.35.t
	desc = redkenya.35.d
	picture = GFX_report_event_african_diaspora

	is_triggered_only = yes

	option = {
		name = redkenya.35.a
		hidden_effect = {
			add_state_core = 444
			add_state_core = 443
			add_state_core = 428
			add_state_core = 429
			add_state_core = 868
			add_state_core = 321
			add_state_core = 422
			add_state_core = 320
			add_state_core = 1095
			every_state = {
				limit = {
					is_core_of = YEM
				}
				add_core_of = KIK
			}
			every_state = {
				limit = {
					is_core_of = OMA
				}
				add_core_of = KIK
			}
		}
		create_wargoal = {
			target = OMA
			type = annex_everything
		}
		create_wargoal = {
			target = YEM
			type = annex_everything
		}
		create_wargoal = {
			target = DEH
			type = annex_everything
		}
		create_wargoal = {
			target = MAD
			type = annex_everything
		}
		create_wargoal = {
			target = GER
			type = annex_everything
		}
	}
	option = {
		name = redkenya.35.b
		create_faction = "Umoja wa Afrika kwa Uhuru"
		hidden_effect = {
			DOM = {
				country_event = {
					id = redkenya.36
					days = 7
				}
			}
			if = {
				limit = {
					CAF = {
						has_socialist_government = yes
					}
				}
				CAF = {
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
			if = {
				limit = {
					country_exists = BBR
				}
				BBR = { 
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
			if = {
				limit = {
					HAI = {
						NOT = {
							has_government = paternal_autocrat
						}
					}
				}
				HAI = {
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
			if = {
				limit = {
					NYC = {
						OR = {
							has_country_leader = {
								name = "Casper Holstein"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Bumpy Johnson"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Stephanie St. Clair"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Frank Crosswaith"
								ruling_only = yes
							}
							has_country_leader = {
								name = "A. Philip Randolph"
								ruling_only = yes
							}
							has_country_leader = {
								name = "David Hamilton Jackson"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Hubert Harrison"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Bayard Rustin"
								ruling_only = yes
							}
							has_country_leader = {
								name = "James R. Lawson"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Sufi Abdul Hamid"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Ira Kemp"
								ruling_only = yes
							}
							has_country_leader = {
								name = "Marcus Garvey"
								ruling_only = yes
							}
						}
					}
				}
				NYC = {
					country_event = {
						id = redkenya.36
						days = 7
					}
				}
			}
		}
	}
	option = {
		name = redkenya.35.c
		add_stability = 0.125
	}
}

country_event = { #join the mau-mau?
	id = redkenya.36
	title = redkenya.36.t
	desc = redkenya.36.d
	picture = GFX_report_event_african_diaspora

	is_triggered_only = yes

	option = { #yes
		name = redkenya.36.a
		ai_chance = { factor = 75 }
		add_to_faction = KIK
		KIK = {
			country_event = redkenya.37
		}
	}
	option = { #no
		name = redkenya.36.b
		ai_chance = { factor = 25 }
		KIK = {
			country_event = redkenya.38
		}
	}
}

country_event = {
	id = redkenya.37
	title = redkenya.37.t
	desc = redkenya.37.d
	picture = GFX_report_event_african_diaspora

	is_triggered_only = yes

	option = {
		name = redkenya.37.a
		KIK = {
			add_to_faction = FROM
		}
	}
}

country_event = {
	id = redkenya.38
	title = redkenya.38.t
	desc = redkenya.38.d
	picture = GFX_report_event_african_diaspora

	is_triggered_only = yes

	option = {
		name = redkenya.38.a
		add_political_power = -25
	}
	option = {
		name = redkenya.38.b
		declare_war_on = {
			target = FROM
			type = annex_everything
		}
	}
}