###########################
#Mittelafrikan Events
###########################

add_namespace = mittel
add_namespace = mitteldebug
add_namespace = mittelpolitic
add_namespace = mafrfg
add_namespace = mafdeathgang
add_namespace = mafcollapse
add_namespace = mafinternal

#######Portugal War Chain #######

###Portugal War Chain ###

country_event = { #MAF explanation event
	id = mittel.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1" }
	title = mittel.1.t
	desc = mittel.1.d
	picture = GFX_report_event_ostafrika
	is_triggered_only = yes

	option = {
		name = mittel.1.a
		if = {
			limit = {
				tag = MAF
				}
			hidden_effect = {
				POR = {
					country_event = {
						id = mittel.2
						days = 4 random_days = 2
					}
				}
			}
		}
		add_war_support = 0.01
		add_political_power = 30
	}
}

country_event = { #POR explanation event
	id = mittel.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.2" }
	title = mittel.2.t
	desc = mittel.2.d
	picture = GFX_report_event_ostafrika

	is_triggered_only = yes

	option = {
		name = mittel.2.a
		hidden_effect = {
			POR = {
				country_event = {
					id = mittel.3
					days = 55 random_days = 2
				}
			}
		}
	}
}

country_event = { #POR start event
	id = mittel.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.3" }
	title = mittel.3.t
	desc = mittel.3.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = {
		name = mittel.3.a
		ai_chance = {
			factor = 100
		}
		MAF = {
			country_event = {
				id = mittel.4
				days = 180 random_days = 2
			}
		}
		PAF = {
			country_event = {
				id = portoafrica.24
				days = 1
			}
		}
	}
	option = {
		ai_chance = {
			factor = 0
		}
		name = mittel.3.b
		add_stability = -0.02
		add_political_power = -50
		unlock_national_focus = POR_matters_of_the_realm
	}
}

country_event = { #MAF Rebel event 1.1
	id = mittel.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.4" }
	title = mittel.4.t
	desc = mittel.4.d
	picture = GFX_report_event_brewing

	is_triggered_only = yes
	
trigger = {
		country_exists = POR
	}

	option = {
		name = mittel.4.a
		MAF = { add_ideas = MAF_border_shit_show }
		add_stability = -0.01
		add_political_power = -10
		add_war_support = 0.05
		hidden_effect = {
			country_event = {
				id = mittel.5
				days = 39 random_days = 4
			}
			POR = {
				country_event = por.321
			}
			PAF = {
				country_event = por.321
			}
		}
	}
}

country_event = { #MAF Rebel event 1.2
	id = mittel.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.5" }
	title = mittel.5.t
	desc = mittel.5.d
	picture = GFX_report_event_chanic

	is_triggered_only = yes

trigger = {
		has_idea = MAF_border_shit_show
		country_exists = POR
	}

	option = {
		name = mittel.5.a
		add_stability = -0.02
		hidden_effect = {
			country_event = {
				id = mittel.6
				days = 44 random_days = 4
			}
			POR = {
				country_event = portoafricaflavor.33
			}
			PAF = {
				country_event = portoafricaflavor.33
			}
		}
	}
}

country_event = { #MAF Rebel event 1.3
	id = mittel.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.6" }
	title = mittel.6.t
	desc = mittel.6.d
	picture = GFX_report_event_post

	is_triggered_only = yes
	

trigger = {
		has_idea = MAF_border_shit_show
		country_exists = POR
	}

	option = {
		name = mittel.6.a
		add_stability = -0.02
		hidden_effect = {
			country_event = {
				id = mittel.7
				days = 25 random_days = 4
			}
			POR = {
				country_event = portoafricaflavor.34
			}
			PAF = {
				country_event = portoafricaflavor.34
			}
		}
	}
}

country_event = { #MAF Rebel event 2
	id = mittel.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.7" }
	title = mittel.7.t
	desc = mittel.7.d
	picture = GFX_report_event_IRE_fire

	is_triggered_only = yes

trigger = {
		has_idea = MAF_border_shit_show
		country_exists = POR
	}

	option = {
		name = mittel.7.a
		add_stability = -0.03
		871 = {
			damage_building = {
				type = industrial_complex
				damage = 0.75
			}
		}
		hidden_effect = {
			country_event = {
				id = mittel.8
				days = 51 random_days = 4
			}
			POR = {
				country_event = portoafricaflavor.35
			}
			PAF = {
				country_event = portoafricaflavor.35
			}
		}
	}
}

country_event = { #MAF Rebel event 3
	id = mittel.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.8" }
	title = mittel.8.t
	desc = mittel.8.d
	picture = GFX_report_event_railway2

	is_triggered_only = yes

trigger = {
		has_idea = MAF_border_shit_show
		country_exists = POR
	}

	option = {
		name = mittel.8.a
		add_stability = -0.02
		army_experience = -10
		hidden_effect = {
			country_event = {
				id = mittel.9
				days = 21 random_days = 4
			}
			POR = {
				country_event = por.322
			}
			PAF = {
				country_event = por.322
			}
		}
	}
}

country_event = { #MAF It's time to stop Portugal
	id = mittel.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.9" }
	title = mittel.9.t
	desc = mittel.9.d
	picture = GFX_report_event_recruit

	is_triggered_only = yes

trigger = {
		has_idea = MAF_border_shit_show
		country_exists = POR
		country_exists = PAF
	}

	option = {
		name = mittel.9.a
		ai_chance = {
			factor = 80
		}
		POR = {
			country_event = {
				id = mittel.15
				days = 1
			}
		}
		PAF = {
			country_event = {
				id = portoafrica.25
				days = 1
			}
		}
	}

	option = {
		ai_chance = {
			factor = 20
		}
		name = mittel.9.b
		add_popularity = {
			ideology = paternal_autocrat
			popularity = -0.05
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.05
		}
		GER = {
			country_event = {
				id = mittel.10
				days = 1
			}
		}
		PAF = {
			country_event = {
				id = portoafrica.25
				days = 1
			}
		}
	}
}

country_event = { #GER Mittelafrika asks for help
	id = mittel.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.10" }
	title = mittel.10.t
	desc = mittel.10.d
	picture = GFX_report_event_africamountain

	is_triggered_only = yes

	option = {
		name = mittel.10.a
		ai_chance = {
			factor = 50
		}
		MAF = {
			country_event = {
				id = mittel.11
				days = 1
			}
		}
	}

	option = {
		name = mittel.10.b
		ai_chance = {
			factor = 50
		}
		POR = {
			country_event = {
				id = mittel.12
				days = 1
			}
		}
	}
}

country_event = { #MAF Germany doesn't help us
	id = mittel.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.11" }
	title = mittel.11.t
	desc = mittel.11.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = {
		name = mittel.11.a
		add_political_power = -100
		ai_chance = {
			factor = 20
		}
	}

	option = {
		name = mittel.11.b
		ai_chance = {
			factor = 80
		}
		custom_effect_tooltip = maybe_dont_ignore_germany_MAF
		add_political_power = -50
		POR = {
			country_event = {
				id = mittel.15
				days = 1
			}
		}
		hidden_effect = {
			GER = {
				country_event = {
					id = mittel.1101
					days = 9
				}
			}
		}
	}
}

country_event = { #GER Mittelafrika ignored us
	id = mittel.1101
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1101" }
	title = mittel.1101.t
	desc = mittel.1101.d
	picture = GFX_report_event_generic_diplomacy2

	is_triggered_only = yes

	option = {
		name = mittel.1101.a
		add_political_power = -20
		MAF = {
			country_event = {
				id = mittel.1102
				days = 9
			}
		}
	}
}

country_event = { #MAF Germany is not happy about being ignored
	id = mittel.1102
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1102" }
	title = mittel.1102.t
	desc = mittel.1102.d
	picture = GFX_report_event_generic_diplomacy2

	is_triggered_only = yes

	option = {
		name = mittel.1102.a
		add_political_power = -100
		add_stability = -0.05
		add_war_support = -0.1
	}
}

country_event = { #POR Germany wants to know what is up
	id = mittel.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.12" }
	title = mittel.12.t
	desc = mittel.12.d
	picture = GFX_report_event_generic_diplomacy2

	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 10
		}
		name = mittel.12.a
		GER = {
			country_event = {
				id = mittel.13
				days = 1
			}
		}
	}

	option = {
		ai_chance = {
			factor = 90
		}
		name = mittel.12.b
		add_political_power = -100
		add_stability = -0.10
		GER = {
			add_opinion_modifier = {
				target = POR
				modifier = MAF_Refused_Explain
			}
			country_event = {
				id = mittel.1201
				days = 1
			}
		}
	}
}

country_event = { #GER Portugal tells us to stuff it
	id = mittel.1201
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1201" }
	title = mittel.1201.t
	desc = mittel.1201.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = {
		name = mittel.1201.a
		ai_chance = {
			factor = 20
		}
		add_political_power = -20
	}

	option = {
		name = mittel.1201.b
		ai_chance = {
			factor = 80
		}
		add_political_power = -20
		MAF = {
			country_event = {
				id = mittel.1202
				days = 1
			}
		}
	}
}

country_event = { #MAF gets green light to fuck shit up
	id = mittel.1202
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1202" }
	title = mittel.1202.t
	desc = mittel.1202.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = {
		name = mittel.1202.a
		ai_chance = {
			factor = 5
		}
		add_political_power = -20
	}

	option = {
		name = mittel.1202.b
		ai_chance = {
			factor = 95
		}
		POR = {
			country_event = {
				id = mittel.15
				days = 1
			}
		}
	}
}

country_event = { #GER Portugal explains the situation to us
	id = mittel.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.13" }
	title = mittel.13.t
	desc = mittel.13.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	option = {
		name = mittel.13.a
		MAF = {
			country_event = {
				id = mittel.14
				days = 1
			}
		}
		POR = {
			country_event = {
				id = mittel.1401
				days = 1
			}
		}
	}
}

country_event = { #MAF Portugal explained the situation to Germany and they are fixing it
	id = mittel.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.14" }
	title = mittel.14.t
	desc = mittel.14.d
	picture = GFX_report_event_AUS_GFX_report_event_AUS_Ausgleich_dip_agree

	is_triggered_only = yes

	option = {
		name = mittel.14.a
		add_stability = 0.05
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.05
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.05
		}
		MAF = {
			remove_ideas = MAF_border_shit_show
		}
	}
}

country_event = { #POR made to stand down by Germany
	id = mittel.1401
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1401" }
	title = mittel.1401.t
	desc = mittel.1401.d
	picture = GFX_report_event_AUS_GFX_report_event_AUS_Ausgleich_dip_agree

	is_triggered_only = yes

	option = {
		name = mittel.1401.a
		add_stability = -0.20
		add_political_power = -100
		PAF = {
			country_event = {
				id = portoafrica.26
				days = 1
			}
		}
	}
}

country_event = { #POR Mittelafrika comes a knocking
	id = mittel.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.15" }
	title = mittel.15.t
	desc = mittel.15.d
	picture = GFX_report_event_march

	is_triggered_only = yes

	option = {
		name = mittel.15.a
		ai_chance = {
			factor = 98
			modifier = {
				factor = 0
				OR = {
					is_in_faction = yes
					is_guaranteed_by = CAN
				}
			}
		}
		MAF = {
			country_event = {
				id = mittel.17
				days = 2
			}
		}
		if = {
			limit = {
				has_war_with = MAG
				}
			country_event = {
				id = sharedafrika.98 #end Madagaskar war?
				days = 1
			}
		}
	}
	option = {
		ai_chance = {
			factor = 2
		}
		name = mittel.15.b
		add_stability = -0.20
		add_political_power = -100
		MAF = {
			country_event = {
				id = mittel.16
				days = 2
			}
		}
	}
}

country_event = { #MAF Portugal stands down
	id = mittel.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.16" }
	title = mittel.16.t
	desc = mittel.16.d
	picture = GFX_report_event_march

	is_triggered_only = yes

	option = {
		name = mittel.16.a
		add_stability = 0.05
		remove_ideas = MAF_border_shit_show
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.05
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.05
		}
		PAF = {
			country_event = {
				id = portoafrica.27
				days = 1
			}
		}
	}
}

country_event = { #MAF Portugal refuses to stand down
	id = mittel.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.17" }
	title = mittel.17.t
	desc = mittel.17.d
	picture = GFX_report_event_march

	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 95
		}
		name = mittel.17.a
		POR = {
			country_event = {
				id = mittel.19
				days = 2
			}
		}
		PAF = {
			country_event = {
				id = portoafrica.29
				days = 1
			}
		}
	}

	option = {
	trigger = {
			PAF = {
				is_ai = yes
			}
		}
		ai_chance = {
			factor = 5
		}
		name = mittel.17.b
		add_political_power = -100
		POR = {
			country_event = {
				id = mittel.18
				days = 2
			}
		}
	}
}

country_event = { #POR Mittelafrika stands down
	id = mittel.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.18" }
	title = mittel.18.t
	desc = mittel.18.d
	picture = GFX_report_event_march

	is_triggered_only = yes

	option = {
		name = mittel.18.a
		add_political_power = 50
		PAF = {
			country_event = {
				id = portoafrica.28
				days = 1
			}
		}
	}
}

country_event = { #POR Mittelafrikan troops enter Mozambique
	id = mittel.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.19" }
	title = mittel.19.t
	desc = mittel.19.d
	picture = GFX_report_event_boma

	is_triggered_only = yes

		option = {
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					is_in_faction = yes
					is_guaranteed_by = CAN
				}
			}
		}
		name = mittel.19.a
		if = {
			limit = {
				PAF = {
					is_ai = yes
					}
				}
		PAF = {
				add_timed_idea = {
					idea = PAF_the_offensive
					days = 90
				}
			}
		}
		if = {
			limit = {
				POR = {
					is_ai = yes
					}
				}
		POR = {
				add_timed_idea = {
					idea = PAF_the_offensive
					days = 45
				}
			}
		}
		MAF = {
			set_global_flag = MAF_POR_border_war
		}
				hidden_effect = {
					MAF = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
					PAF = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
					GER = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
					POR = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
				}
		hidden_effect = {
		POR = {
			country_event = {
				id = sharedafrika.94 #escalate war and invade British Protectorates?
				days = 60
			}
		}
		MAF = {
			declare_war_on = {
				target = PAF
				type = annex_everything
			}
		}
		POR = {
			declare_war_on = {
				target = MAF
				type = annex_everything
			}
		}
		if = {
			limit = { 
				ZAM = {
					is_ai = yes
					is_in_faction_with = MAF
					OR = {
						has_government = authoritarian_democrat
						has_government = paternal_autocrat
					}
				}
			}
			ZAM = {
				declare_war_on = {
					target = PAF
					type = annex_everything
				}
			}
		}
		if = {
			limit = { 
				KTG = { 
					is_ai = yes
					is_in_faction_with = MAF
					has_completed_focus = KTG_The_Schutztruppe_Demands
				}
			}
			KTG = {
				declare_war_on = {
					target = PAF
					type = annex_everything
				}
			}
		}
		if = {
			limit = { 
				COG = { 
					is_ai = yes
					is_in_faction_with = MAF
					has_war = no
				}
			}
			COG = {
				declare_war_on = {
					target = PAF
					type = annex_everything
				}
			}
		}
		hidden_effect = {
			news_event = {
				id = worldnews.180
			}
		}
	}
	}

	option = {
	trigger = {
			PAF = {
				is_ai = no
				}
			}
		ai_chance = {
			factor = 5
		}
		name = mittel.19.b
		add_stability = -0.10
		MAF = {
			country_event = {
				id = mittel.20
				days = 1
			}
		}
	}
}

country_event = { #MAF Portugal caves in at the last moment
	id = mittel.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.20" }
	title = mittel.20.t
	desc = mittel.20.d
	picture = GFX_report_event_boma

	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 70
		}
		name = mittel.20.a
		remove_ideas = MAF_border_shit_show
		transfer_state = 544
		if = {
			limit = {
				MLW = { is_in_faction_with = MAF }
			}
			MLW = {
				transfer_state = 954
				add_state_core = 954
			}
			955 = {
				set_demilitarized_zone = no
			}
		}
		POR = {
			country_event = {
				id = mittel.21
				days = 1
			}
		}
		PAF = {
			country_event = {
				id = mittel.21
				days = 1
			}
		}
	}

	option = {
		ai_chance = {
			factor = 30
		}
		name = mittel.20.b
		add_war_support = 0.10
		remove_ideas = MAF_border_shit_show
		POR = {
			country_event = {
				id = mittel.22
				days = 1
			}
		}
		PAF = {
			country_event = {
				id = mittel.22
				days = 1
			}
		}
	}
}

country_event = { #POR Mittelafrika seizes northern Mozambique
	id = mittel.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.21" }
	title = mittel.21.t
	desc = mittel.21.d
	picture = GFX_report_event_SAF_black_soldiers

	is_triggered_only = yes

	option = {
		name = mittel.21.a
		add_stability = -0.10
	}
}

country_event = { #POR Mittelafrika burns camps
	id = mittel.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.22" }
	title = mittel.22.t
	desc = mittel.22.d
	picture = GFX_report_event_rural

	is_triggered_only = yes

	option = {
		name = mittel.22.a
		add_stability = -0.05
	}
}

country_event = { #New Colonies MAF
	id = mittel.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.35" }
	title = mittel.35.t
	desc = mittel.35.d
	picture = GFX_report_event_MAF_boer_war

	is_triggered_only = yes

	option = {
		name = mittel.35.a
		add_stability = -0.05
	}
}

country_event = { #MAF Portugal murders Vorbeck
	id = mittel.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.37" }
	title = mittel.37.t
	desc = mittel.37.d
	picture = GFX_report_event_MAF_hansalbert

	fire_only_once = yes

	is_triggered_only = yes
	
trigger = {
		tag = MAF
		has_idea = MAF_border_shit_show
		date > 1939.1.1
		country_exists = POR
		country_exists = PAF
		has_war = no
	}

	option = {
		name = mittel.37.a
		ai_chance = {
			factor = 100
		}
		set_global_flag = MAF_POR_border_war
				hidden_effect = {
					MAF = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
					PAF = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
					GER = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
					POR = {
						country_event = {
							id = portoafricaflavor.25 days = 6
						}
					}
				}
		declare_war_on = {
			target = PAF
			type = annex_everything
		}
		PAF = {
				add_timed_idea = {
					idea = PAF_the_offensive
					days = 28
				}
			}
		POR = {
				add_timed_idea = {
					idea = PAF_the_offensive
					days = 28
				}
			}
		if = {
			limit = { 
				ZAM = { 
					OR = {
						has_government = authoritarian_democrat
						has_government = paternal_autocrat
					}
				}
			}
			ZAM = {
				set_global_flag = MAF_POR_border_war
				declare_war_on = {
					target = PAF
					type = annex_everything
				}
			}
		}
		POR = {
			country_event = {
				id = mittel.38
				days = 1
			}
		}
		PAF = {
			country_event = {
				id = mittel.38
				days = 1
			}
		}
		add_stability = -0.05
		set_country_flag = Hans_Albert_von_Lettow_Vorbeck_dead
		if = {
			limit = { has_country_flag = goering_gone_bad }
			add_ideas = MAF_Hermann_von_Goering_sec_npo
		}
		else = {
			add_ideas = MAF_Hermann_von_Goering_sec_pau
		}
		hidden_effect = {
			news_event = worldnews.180
		}
	}

	option = {
		ai_chance = {
			factor = 0
		}
		name = mittel.37.b
	trigger = {
			POR = { is_in_faction = no }
		}
		add_stability = -0.30
		add_political_power = -100
		set_global_flag = MAF_NoAttack_Portugal
		set_country_flag = Hans_Albert_von_Lettow_Vorbeck_dead
		if = {
			limit = { has_country_flag = goering_gone_bad }
			add_ideas = MAF_Hermann_von_Goering_sec_npo
		}
		else = {
			add_ideas = MAF_Hermann_von_Goering_sec_pau
		}
	}

	option = {
		ai_chance = {
			factor = 100
		}
		name = mittel.37.c
		add_stability = -0.30
		set_global_flag = MAF_NoAttack_Portugal
		set_country_flag = Hans_Albert_von_Lettow_Vorbeck_dead
		if = {
			limit = {
				has_country_flag = goering_gone_bad
			}
			add_ideas = MAF_Hermann_von_Goering_sec_npo
			else = {
				add_ideas = MAF_Hermann_von_Goering_sec_pau
			}
		}
	}
}

country_event = { #POR Mittelafrika declares war over Vorbeck
	id = mittel.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.38" }
	title = mittel.38.t
	desc = mittel.38.d
	picture = GFX_report_event_soldiers_marching

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.38.a
		add_stability = -0.02
		add_war_support = 0.03
	}
}

###Peace Deals ###

country_event = { #MAF peace deal
	id = mittel.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.39" }
	title = mittel.39.t
	desc = mittel.39.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes

trigger = {
		OR = {
			tag = POR
			AND = {
				tag = PAF
				is_ai = no
			}
		}
		has_war_with = MAF
		date > 1937.10.01
		NOT = {
			has_war_with = SAF
		}
		MAF = {
			has_global_flag = MAF_POR_border_war
		}
		OR = {
			PAF = {
				has_capitulated = yes
			}		
			PAF = {
				surrender_progress > 0.7
			}
		count_triggers = {
			amount = 6
			959 = { #Eastern Angola
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
			916 = { #Old Congo
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
			540 = { #Central Angola
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
			544 = { #Zambezia
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
			917 = { #Southern Angola
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
			950 = { #Inhambane-Gaza
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
			}
			954 = { #Tete
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
				}
			914 = { #Cabinda
				NOT = {
					is_controlled_by_ROOT_or_subject = yes
				}
				}
			}
		}
	}

	option = {
		name = mittel.39.a
		ai_chance = {
			factor = 100
		}
		add_stability = 0.03
		MAF = {
			country_event = {
				id = mittel.40
				days = 2
			}
		}
	}

	option = {
		name = mittel.39.b
		ai_chance = {
			factor = 0
		}
		add_stability = -0.10
	}
}

country_event = { #MAF is in lisbon wtf
	id = mittel.390
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.390" }
	title = mittel.390.t
	desc = mittel.390.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes

trigger = {
		tag = MAF
		has_war_with = POR
		has_global_flag = MAF_POR_border_war
		controls_state = 112
	}

	mean_time_to_happen = {
		days = 60
	}

	option = {
		name = mittel.390.a
		POR = {
			country_event = {
				id = mittel.391
				days = 1
			}
		}
	}

}

country_event = { #MAF is in lisbon wtf
	id = mittel.391
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.391" }
	title = mittel.391.t
	desc = mittel.391.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes

	is_triggered_only = yes


	option = {
		name = mittel.391.a
		MAF = {
			country_event = {
				id = mittel.392
				days = 1
			}
		}
	}

}

country_event = { #Peace deal over War
	id = mittel.392
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.392" }
	title = mittel.392.t
	desc = mittel.392.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.392.a
		every_state = {
			limit = {
				OR = {
					state = 540 #Central Angola
					state = 544 #Zambezia
					state = 914 #Cabinda
					state = 916 #Congo Antigo
					state = 917 #Southern Angola
					state = 950 #Inhambane-Gaza
					state = 954 #Tete
					state = 959 #Eastern Angola
				}
				owner = { is_ally_with = POR }
			}
			MAF = {
				transfer_state = PREV
				add_state_claim = PREV
			}
		}
		POR = {
			white_peace_with_ROOT = yes
		}
		PAF = {
			white_peace_with_ROOT = yes
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
	}

}

country_event = { #MAF peace deal
	id = mittel.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.40" }
	title = mittel.40.t
	desc = mittel.40.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes
	is_triggered_only = yes

trigger = {
		has_war_with = POR
		has_global_flag = MAF_POR_border_war
	}

	option = {
		name = mittel.40.a #Listen to the old guard, take only northern Mozambique
		ai_chance = {
			factor = 90
		}
		if = {
			limit = {
				PAF = { owns_state = 544 }
				}
			MAF = {
				transfer_state = 544
				add_state_claim = 544
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 954 }
				}
			MLW = {
				transfer_state = 954
				add_state_claim = 954
			}
			955 = {
				set_demilitarized_zone = no
			}
		}
		POR = {
			white_peace_with_ROOT = yes
		}
		PAF = {
			white_peace_with_ROOT = yes
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.05
		}
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
	}
	option = {
		name = mittel.40.b #Only taking all of Mozambique will ensure safety
		ai_chance = {
			factor = 10
		}
		if = {
			limit = {
				PAF = { owns_state = 544 }
				}
			MAF = {
				transfer_state = 544
				add_state_claim = 544
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 954 }
				}
			MAF = {
				transfer_state = 954
				add_state_claim = 954
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 950 }
				}
			MAF = {
				transfer_state = 950
				add_state_claim = 950
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 738 }
				SAF = { owns_state = 719 }
				}
			SAF = {
				transfer_state = 738
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 738 }
				SFR = { owns_state = 719 }
				}
			SFR = {
				transfer_state = 738
			}
		}
		POR = {
			white_peace_with_ROOT = yes
		}
		PAF = {
			white_peace_with_ROOT = yes
		}
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
	}
	option = {
		name = mittel.40.c #Establish security zones in Mozambique and Angola
		ai_chance = {
			factor = 5
		}
		if = {
			limit = {
				PAF = { owns_state = 544 }
				}
			544 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 954 }
				}
			954 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 914 }
				}
			914 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 916 }
				}
			916 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 959 }
				}
			959 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 914 }
				}
			914 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 916 }
				}
			916 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 917 }
				}
			917 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 959 }
				}
			959 = {
				set_demilitarized_zone = yes
			}
		}
		POR = {
			white_peace_with_ROOT = yes
		}
		PAF = {
			white_peace_with_ROOT = yes
		}
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
	}
	option = {
		name = mittel.40.e #Portugal has forfeited their colonial holdings with their reckless behaviour, take it all!
		ai_chance = {
			factor = 1
		}
		every_state = {
			limit = {
				OR = {
					state = 540 #Central Angola
					state = 544 #Zambezia
					state = 914 #Cabinda
					state = 916 #Congo Antigo
					state = 917 #Southern Angola
					state = 950 #Inhambane-Gaza
					state = 954 #Tete
					state = 959 #Eastern Angola
				}
				owner = { is_ally_with = POR }
			}
			MAF = {
				transfer_state = PREV
				add_state_claim = PREV
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 738 }
				SAF = { owns_state = 719 }
				}
			SAF = {
				transfer_state = 738
			}
		}
		if = {
			limit = {
				PAF = { owns_state = 738 }
				SFR = { owns_state = 719 }
				}
			SFR = {
				transfer_state = 738
			}
		}
		POR = {
			white_peace_with_ROOT = yes
		}
		PAF = {
			white_peace_with_ROOT = yes
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
		add_stability = -0.1
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
	}
}

country_event = { #Portugal beats MAF
	id = mittel.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.41" }
	title = mittel.41.t
	desc = mittel.41.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes

trigger = {
		tag = MAF
		has_war_with = POR
		has_global_flag = MAF_POR_border_war
		OR = {
			has_capitulated = yes
			surrender_progress > 0.6
			count_triggers = {
				amount = 4
				899 = { #Ruvuma
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				965 = { #Dar
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				546 = { #Dodoma
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				1032 = { #Tabora
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				964 = { #Amboland
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				541 = { #Windhoek
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				813 = { #Rhodesia
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				881 = { #Bas Congo
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
				879 = { #Dar
					is_owned_by_ROOT_or_subject = yes
					OR = {
						is_controlled_by = PAF
						is_controlled_by = POR
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 20
	}

	option = {
		name = mittel.41.a
		ai_chance = {
			factor = 100
		}
		POR = {
			country_event = {
				id = mittel.42
				days = 1
			}
		}
	}

	option = {
		name = mittel.41.b
		ai_chance = {
			factor = 0
		}
		add_stability = -0.1
		add_war_support = -0.05
		add_political_power = -200
	}
}

country_event = { #Portugal beats MAF
	id = mittel.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.42" }
	title = mittel.42.t
	desc = mittel.42.d
	picture = GFX_report_event_SPR_civwar3

	is_triggered_only = yes

trigger = {
		has_war_with = MAF
	}

	option = {
		name = mittel.42.a
		every_state = {
			limit = {
				OR = {
					is_owned_by = MAF
					owner = {
						is_subject_of = MAF
					}
				}
				OR = {
					state = 957 #Westbarotseland
					state = 958 #Ostbarotseland
					state = 956 #Nordvorbecksland
					state = 955 #Ostvorbecksland
					state = 871 #Njassaland
					state = 813 #Südvorbecksland
				}
			}
			PAF = {
				transfer_state = PREV
			}
		}
		if = {
			limit = {
				country_exists = BRT
				BRT = {
					is_in_faction = no
					is_subject = no
					}
				}
			PAF = {
				declare_war_on = { 
					target = BRT 
					type = annex_everything 
				} 
			}
		}
		if = {
			limit = {
				country_exists = BSC
				BSC = {
					is_in_faction = no
					is_subject = no
					}
				}
			PAF = {
				declare_war_on = { 
					target = BSC
					type = annex_everything 
				} 
			}
		}
		if = {
			limit = {
				country_exists = ZAM
				ZAM = {
					is_in_faction = no
					is_subject = no
					}
				}
			PAF = {
				declare_war_on = { 
					target = ZAM 
					type = annex_everything 
				} 
			}
		}
		if = {
			limit = {
				country_exists = MLW
				MLW = {
					is_in_faction = no
					is_subject = no
					}
				}
			PAF = {
				declare_war_on = { 
					target = MLW 
					type = annex_everything 
				} 
			}
		}
		MAF = {
			clr_global_flag = MAF_POR_border_war
			white_peace_with_ROOT = yes
		}
		
		set_global_flag = MAF_NoAttack_Portugal
	}
}

###Stathalter Replacement Chains ###

country_event = { #The Kenyatta-Solf Affair
	id = mittel.43
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.43"}
	title = mittel.43.t
	desc = mittel.43.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes

	option = {
		name = mittel.43.a
		ai_chance = {
			factor = 100
		}
	trigger = {
			tag = GER
		}
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.192
					days = 439
				}
			}
			GER = {
				country_event = {
					id = mittel.192
					days = 439
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = mittel.46
				days = 450
			}
		}
		MAF = {
			country_event = {
				id = mittel.45
				days = 3
			}
		}
	}

	option = {
		name = mittel.43.b
		ai_chance = {
			factor = 0
		}
	trigger = {
			tag = GER
		}
		custom_effect_tooltip = kenyatta_solf_affair_bad
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.44
					days = 3
				}
			}
		}
	}
	
	option = {
		name = mittel.43.c
		ai_chance = {
			factor = 100
		}
	trigger = {
		NOT = {
				tag = GER
			}
		}
		add_political_power = 20
	}
}

country_event = { #The Kenyatta-Solf Affair
	id = mittel.44
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.44"}
	title = mittel.44.t
	desc = mittel.44.d
	picture = GFX_report_event_judges

	is_triggered_only = yes
	
	option = {
		name = mittel.44.a
		add_stability = -0.15
		add_political_power = -100
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
		hidden_effect = {
			country_event = {
				id = mittel.64
				days = 15
			}
			##von Kraut was implicated in this too.
			country_event = {
				id = ostafrika.20
				days = 4
			}
		}
		add_ideas = MAF_Legal_Chaos
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Theodor_von_Hassel_hog_sco
	}
}

country_event = { #The Kenyatta-Solf Affair
	id = mittel.45
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.45"}
	title = mittel.45.t
	desc = mittel.45.d
	picture = GFX_report_event_judges

	is_triggered_only = yes

	option = {
		name = mittel.45.a
		add_political_power = 50
		add_stability = 0.01
		add_popularity = {
			ideology = national_populist
			popularity = 0.03
		}
	}
}

country_event = { #The Black Dossier
	id = mittel.46
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.46"}
	title = mittel.46.t
	desc = mittel.46.d
	picture = GFX_report_event_governorhaus

	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		NOT = {
			GER = {
				has_completed_focus = GER_the_kanzler_and_the_statthalter
			}
		}
	}

	option = {
		name = mittel.46.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -20
		MAF = {
			country_event = {
				id = mittel.47
				days = 1
			}
		}
	}

	option = {
		name = mittel.46.b
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			GER = {
				country_event = {
					id = mittel.51
					days = 14
				}
			}
			MAF = {
				country_event = {
					id = mittel.52
					days = 14
				}
			}
		}
	}
}

country_event = { #The Corruption investigation
	id = mittel.47
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.47"}
	title = mittel.47.t
	desc = mittel.47.d
	picture = GFX_report_event_MAF_goering

	is_triggered_only = yes

	option = {
		name = mittel.47.a
		ai_chance = {
			factor = 60
		}
		add_stability = -0.10
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.48
					days = 30
				}
			}
		}
	}

	option = {
		name = mittel.47.b
		ai_chance = {
			factor = 40
		}
		add_stability = -0.10
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.54
					days = 1
				}
			}
		}
	}
	
	option = {
		name = mittel.47.c
		ai_chance = {
			factor = 40
		}
		add_stability = -0.10
		create_country_leader = {
			name = "Reinhard Heydrich"
			desc = "POLITICS_MAF_REINHARD_HEYDRICH_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Reinhard_Heydrich.png"
			expire = "1.1.1"
			ideology = natpop_colonial_govt_subtype
			traits = {
				MAF_statthalter_heydrich
			}
		}
		create_country_leader = {
			name = "Reinhard Heydrich"
			desc = "POLITICS_MAF_REINHARD_HEYDRICH_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Reinhard_Heydrich.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype
			traits = {
				MAF_statthalter_heydrich
			}
		}
	}
}

country_event = { #Arrest warrant for Goering
	id = mittel.48
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.48"}
	title = mittel.48.t
	desc = mittel.48.d
	picture = GFX_report_event_MAF_goering

	is_triggered_only = yes

	option = {
		name = mittel.48.a
		ai_chance = {
			factor = 30
		}
		set_politics = {
			ruling_party = national_populist
			elections_allowed = no
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.15
		}
		create_country_leader = {
			name = "Hermann Göring"
			desc = "POLITICS_GOERING_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Hermann_Goering.png"
			expire = "1.1.1"
			ideology = natpop_colonial_govt_subtype

		}
		add_stability = -0.05
		GER = {
			country_event = {
				id = mittel.49
				days = 1
			}
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = -0.15
		}
		MAF = {
			country_event = {
				id = mittel.136
				days = 6
			}
		}
			hidden_effect = {
				country_event = {
					id = goering.16
					days = 34
					random_days = 60
				}
			}
	}

	option = {
		name = mittel.48.b
		ai_chance = {
			factor = 70
		}
		add_stability = -0.03
		MAF = {
			country_event = {
				id = mittel.54
				days = 1
			}
		}
		hidden_effect = {
		clr_country_flag = MAF_can_do_crime
		}
	}
}

country_event = { #The Sovereign Stathalter
	id = mittel.49
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.49"}
	title = mittel.49.t
	desc = mittel.49.d
	picture = GFX_report_event_MAF_goering

	is_triggered_only = yes

	option = {
		name = mittel.49.a
		ai_chance = {
			factor = 60
			modifier = {
				factor = 0
				MAF = {
					is_ai = no
				}
			}
		}
		MAF = {
			country_event = {
				id = mittel.50
				days = 1
			}
		}
	}

	option = {
		name = mittel.49.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				MAF = {
					is_ai = yes
				}
			}
		}
		add_political_power = -100
	}
}

country_event = { #Germany doesn't accept Goering
	id = mittel.50
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.50"}
	title = mittel.50.t
	desc = mittel.50.d
	picture = GFX_report_event_MAF_goering

	is_triggered_only = yes

	option = {
		name = mittel.50.a
		add_stability = -1.00
	}
}

country_event = { #The Black Dossier
	id = mittel.51
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.51"}
	title = mittel.51.t
	desc = mittel.51.d
	picture = GFX_report_event_hillstation

	is_triggered_only = yes

	option = {
		name = mittel.51.a
		add_stability = -0.10
		MAF = {
			country_event = {
				id = mittel.47
				days = 1
			}
		}
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.53
					days = 1
				}
			}
		}
	}
}

country_event = { #Friends in Berlin
	id = mittel.52
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.52"}
	title = mittel.52.t
	desc = mittel.52.d
	picture = GFX_goal_generic_german_construction

	is_triggered_only = yes

	option = {
		name = mittel.52.a
		add_political_power = -25
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
	}
}

country_event = { #The Muckrackers
	id = mittel.53
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.53"}
	title = mittel.53.t
	desc = mittel.53.d
	picture = GFX_report_event_iww_demonstration

	is_triggered_only = yes

	option = {
		name = mittel.53.a
		add_stability = -0.05
		add_popularity = {
			ideology = social_democrat
			popularity = 0.05
		}
	}
}

country_event = { #A New Stathalter
	id = mittel.54
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.54"}
	title = mittel.54.t
	desc = mittel.54.d
	picture = GFX_report_event_governorhaus
	is_triggered_only = yes

	option = {
		name = mittel.54.a
		ai_chance = {
			factor = 25
		}
		MAF = {
			country_event = {
				id = mittel.55
				days = 1
			}
		}
	}

	option = {
		name = mittel.54.b
		ai_chance = {
			factor = 30
		}
		MAF = {
			country_event = {
				id = mittel.59
				days = 1
			}
		}
	}

	option = {
		name = mittel.54.c
		ai_chance = {
			factor = 15
		}
		MAF = {
			country_event = {
				id = mittel.63
				days = 1
			}
		}
	}
}

country_event = { #NKR Stathalter
	id = mittel.55
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.55"}
	title = mittel.55.t
	desc = mittel.55.d
	picture = GFX_report_event_governorhaus
	is_triggered_only = yes

	option = {
		name = mittel.55.a #Ernst Junger
		ai_chance = {
			factor = 25
		}
		MAF = {
			country_event = {
				id = mittel.56
				days = 1
			}
		}
	}

	option = {
		name = mittel.55.b #Franz Ritter von Epp
		ai_chance = {
			factor = 50
		}
		MAF = {
			country_event = {
				id = mittel.57
				days = 1
			}
		}
		set_country_flag = Franz_Xaver_Ritter_von_Epp_dead
	}

	option = {
		name = mittel.55.c #Fritz Thyssen
		ai_chance = {
			factor = 25
		}
		MAF = {
			country_event = {
				id = mittel.58
				days = 1
			}
		}
		set_country_flag = Fritz_Thyssen_dead
	}
}

country_event = { #Ernst Junger
	id = mittel.56
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.56"}
	title = mittel.56.t
	desc = mittel.56.d
	picture = GFX_report_event_MAF_ernstjunger
	
	trigger = {
		tag = MAF
	}
	is_triggered_only = yes

	option = {
		name = mittel.56.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Ernst Jünger"
			desc = "POLITICS_JUNGER_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Ernst_Junger.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		set_country_flag = Hermann_von_Goering_dead
		random_unit_leader = {
			limit = { has_id = 198 }			
			remove_unit_leader = yes
		}
		add_ideas = MAF_Ernst_Juenger_hog_pau
		remove_ideas = MAF_Missing_Funds
		remove_ideas = MAF_MEFO
		add_stability = -0.10
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.26
				}
			}
		}
	}
}

country_event = { #Franz Ritter von Epp
	id = mittel.57
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.57"}
	title = mittel.57.t
	desc = mittel.57.d
	picture = GFX_report_event_MAF_franzritter
	is_triggered_only = yes

	option = {
		name = mittel.57.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Franz Ritter von Epp"
			desc = "POLITICS_VON_EPP_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Franz_Ritter_von_Epp.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype
		}
		if = {
			limit = {
				COG = {
					has_country_leader = {
						name = "Franz Ritter von Epp"
						ruling_only = yes
					}
				}
			}
			COG = {
				country_event = conbel.23
			}
		}
		if = {	
			limit = { has_country_leader = { name = "Franz Ritter von Epp" ruling_only = yes } }
			set_country_leader_portrait = {
				portrait = "gfx/leaders/MAF/Portrait_Mittelafrika_Franz_Ritter_von_Epp.png"
			}
		}
		clr_country_flag = Franz_Ritter_von_Epp_dead
		remove_ideas_with_trait = head_of_government
		set_country_flag = Hermann_von_Goering_dead
		random_unit_leader = {
				limit = { has_id = 198 }
				remove_unit_leader = yes
			}
		add_ideas = MAF_Franz_Ritter_von_Epp_hog_pau
		remove_ideas = MAF_Missing_Funds
		add_stability = -0.10
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.27
				}
			}
		}
	}
}

country_event = { #Fritz Thyssen
	id = mittel.58
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.58"}
	title = mittel.58.t
	desc = mittel.58.d
	picture = GFX_report_event_MAF_fritzthyssen

	is_triggered_only = yes

	option = {
		name = mittel.58.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Fritz Thyssen"
			desc = "POLITICS_THYSSEN_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Fritz_Thyssen.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
		clr_country_flag = Fritz_Thyssen_dead
		remove_ideas_with_trait = head_of_government
		set_country_flag = Hermann_von_Goering_dead
		random_unit_leader = {
				limit = { has_id = 198 }			
				remove_unit_leader = yes
			}
		add_ideas = MAF_Fritz_Thyssen_hog_pau
		remove_ideas = MAF_Missing_Funds
		add_stability = -0.10
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.28
				}
			}
		}
	}
}

country_event = { #Karl Ritter
	id = mittel.580
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.580"}
	title = mittel.580.t
	desc = mittel.580.d
	picture = GFX_report_event_MAF_ritter

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.580.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Karl Ritter"
			desc = "POLITICS_KARL_RITTER_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Karl_Ritter.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		set_country_flag = Hermann_von_Goering_dead
		random_unit_leader = {
				limit = { has_id = 198 }			
				remove_unit_leader = yes
			}
		add_ideas = MAF_Karl_Ritter_hog_pau
		remove_ideas = MAF_Missing_Funds
		add_stability = -0.10
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.29
				}
			}
		}
	}
}

country_event = { #DKG Stathalter
	id = mittel.59
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.59"}
	title = mittel.59.t
	desc = mittel.59.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes

	option = {
		name = mittel.59.b
		ai_chance = {
			factor = 35
		}
	trigger = {
			NOT = {
				has_country_flag = nokraut
			}
		}
		MAF = {
			country_event = {
				id = mittel.61
				days = 1
			}
		}
	}

	option = {
		name = mittel.59.c
		ai_chance = {
			factor = 30
		}
		MAF = {
			country_event = {
				id = mittel.62
				days = 1
			}
		}
	}
	
	option = {
		name = mittel.59.e
		ai_chance = {
			factor = 45
		}
		MAF = {
			country_event = {
				id = mittel.1189
				days = 1
			}
		}
	}
}

country_event = { #Ludwig Bockholt
	id = mittel.60
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.60"}
	title = mittel.60.t
	desc = mittel.60.d
	picture = GFX_report_event_MAF_bockholt
	is_triggered_only = yes

	option = {
		name = mittel.60.a
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Ludwig Bockholt"
			desc = "POLITICS_BOCKHOLT_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Ludwig_Bockholt.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Ludwig_Bockholt_hog_ade
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Ernst_Juenger_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_August_Stauch_eco_ade
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_Detzner_sec_ade
		remove_ideas = MAF_Missing_Funds
		remove_ideas = MAF_MEFO
		add_stability = 0.20
	}
}

country_event = { #Georg Kraut
	id = mittel.61
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.61"}
	title = mittel.61.t
	desc = mittel.61.d
	picture = GFX_report_event_MAF_georgkraut
	is_triggered_only = yes

	option = {
		name = mittel.61.a
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Georg Kraut"
			desc = "POLITICS_KRAUT_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Georg_Kraut.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Georg_Kraut_hog_ade
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Ernst_Juenger_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_August_Stauch_eco_ade
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_Detzner_sec_ade
		remove_ideas = MAF_Missing_Funds
		remove_ideas = MAF_MEFO
		add_stability = 0.20
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.30
				}
			}
		}
	}
}

country_event = { #Rudolf Asmis
	id = mittel.62
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.62"}
	title = mittel.62.t
	desc = mittel.62.d
	picture = GFX_report_event_MAF_rudolfasmis

	is_triggered_only = yes

	option = {
		name = mittel.62.a
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Rudolf Asmis"
			desc = "POLITICS_ASMIS_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Rudolf_Asmis.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Rudolf_Asmis_hog_ade
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Ernst_Juenger_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_August_Stauch_eco_ade
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_Detzner_sec_ade
		remove_ideas = MAF_Missing_Funds
		remove_ideas = MAF_MEFO
		add_stability = 0.20
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.31
				}
			}
		}
	}
}

country_event = { #Fritz Kolbe
	id = mittel.620
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.620"}
	title = mittel.620.t
	desc = mittel.620.d
	picture = GFX_report_event_governorhaus

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.620.a
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Fritz Kolbe"
			desc = "POLITICS_FRITZ_KOLBE_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Fritz_Kolbe.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Fritz_Kolbe_hog_ade
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Ernst_Juenger_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_August_Stauch_eco_ade
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_Detzner_sec_ade
		remove_ideas = MAF_Missing_Funds
		remove_ideas = MAF_MEFO
		add_stability = 0.20
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.32
				}
			}
		}
	}
}

country_event = { #Reform Stathalter
	id = mittel.63
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.63"}
	title = mittel.63.t
	desc = mittel.63.d
	picture = GFX_report_event_GEA_coltroops

	is_triggered_only = yes

	option = {
		name = mittel.63.a
		MAF = {
			country_event = {
				id = mittel.64
				days = 1
			}
		}
	}
}

country_event = { #Vorbeck Gang
	id = mittel.64
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.64"}
	title = mittel.64.t
	desc = mittel.64.d
	picture = GFX_report_event_governorhaus
	is_triggered_only = yes

	option = {
		name = mittel.64.a
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
		create_country_leader = {
			name = "Paul von Lettow Vorbeck"
			desc = "POLITICS_VORBECK_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Paul_von_Lettow_Vorbeck.png"
			expire = "1.1.1"
			ideology = soccon_colonial_govt_subtype

		}
		remove_all_ministers = yes
		add_ideas = MAF_Theodor_von_Hassel_hog_sco
		add_ideas = MAF_Rudolf_Asmis_for_ade
		add_ideas = MAF_Franz_Ritter_von_Epp_eco_pau
		add_ideas = MAF_Julian_Scherner_sec_sco
		remove_ideas = MAF_Missing_Funds
		remove_ideas = MAF_MEFO
		add_stability = 0.40
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.33
				}
			}
		}
		hidden_effect = {
		country_event = { id = mittel.111 days = 5 }
		load_focus_tree = MAF-RFG
		set_country_flag = MAF-RFG
			news_event = {
				id = worldnews.178
			}
		}
	}
}


####Reformgruppe Releasing events########

country_event = { #Kingdoms
	id = mittel.66
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.66"}
	immediate = {
		hidden_effect = {
			548 = {
				add_core_of = UGA
			}
			870 = {
				add_core_of = BRD
			}
			953 = {
				add_core_of = TKE
			}
			879 = {
				add_core_of = COG
			}
			869 = {
				add_core_of = RWA
			}
		}
	}
	title = mittel.66.t
	desc = mittel.66.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = {
		name = mittel.66.a
		release_puppet = UGA
		release_puppet = BRD
		release_puppet = TKE
		release_puppet = KOG
		release_puppet = RWA
		hidden_effect = {
			RWA = {
				load_oob = RWA
			}
			UGA = {
				load_oob = UGA
			}
			BRD = {
				load_oob = BRD
			}
			TKE = {
				load_oob = TKE
			}
			KOG = {
				load_oob = KOG
				set_cosmetic_tag = KOG_KON
			}
		}
	}
}

country_event = { #Britlands
	id = mittel.67
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.67"}
	immediate = {
		hidden_effect = {
			ZAM = {
				add_state_core = 955
				add_state_core = 956
				add_state_core = 813
				add_state_core = 957
				add_state_core = 958
				add_state_core = 871
			}
			KEN = {
				add_state_core = 969
				add_state_core = 547
				add_state_core = 925
				add_state_core = 892
				add_state_core = 970
			}
			NGR = {
				add_state_core = 558
				add_state_core = 913
				add_state_core = 878
			}
		}
	}
	title = mittel.67.t
	desc = mittel.67.d
	picture = GFX_report_event_hillstation
	is_triggered_only = yes

	option = {
		name = mittel.67.a

		set_country_flag = MAF_noAnglos
		release_puppet = NGR
		release_puppet = ZAM
		release_puppet = KEN
		hidden_effect = {
			NGR = {
				set_cosmetic_tag = NGR_ENG
				set_country_flag = NGR_ENG
				load_oob = NGR
				set_politics = {
					ruling_party = social_conservative
					elections_allowed = no
				}
				add_popularity = {
					ideology = social_conservative
					popularity = 0.5
				}
				create_country_leader = {
					name = "Edward Twining"
					desc = "POLITICS_TWINNING_DESC"
					picture = "gfx/leaders/NGR/Portrait_Nigeria_Edward_Twinning.png"
					expire = "1.1.1"
					ideology = soccon_colonial_govt_subtype
		
				}
			}
			ZAM = {
				load_oob = ZAM
				set_cosmetic_tag = ZAM_ENG
				set_country_flag = ZAM_ENG
			}
			KEN = {
				load_oob = KEN
				set_cosmetic_tag = KEN_ENG
				set_country_flag = KEN_ENG
				set_politics = {
					ruling_party = social_conservative
					elections_allowed = no
				}
				add_popularity = {
					ideology = social_conservative
					popularity = 0.5
				}
				create_country_leader = {
					name = "Rea Leaky"
					desc = "POLITICS_LEAKY_DESC"
					picture = "gfx/leaders/Ken/Portrait_Kenya_Rea_Leaky.png"
					expire = "1.1.1"
					ideology = soccon_colonial_govt_subtype
		
				}
			}
		}
	}
}

country_event = { #Lion Society
	id = mittel.68
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.68"}
	title = mittel.68.t
	desc = mittel.68.d
	picture = GFX_report_event_governorhaus
	is_triggered_only = yes

	option = {
		name = mittel.68.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.69
					days = 5
				}
			}
		}
	}
	option = {
		name = mittel.68.b
		ai_chance = {
			factor = 0
		}
	}
}

country_event = { #Lion Society Kills Kraut
	id = mittel.69
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.69"}
	title = mittel.69.t
	desc = mittel.69.d
	picture = GFX_report_event_MAF_georgkraut

	is_triggered_only = yes

	option = {
		name = mittel.69.a
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.71
					days = 5
				}
			}
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.01
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.05
		}
	}
}

country_event = { #Lion Society Tries to Kill Bockholt
	id = mittel.70
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.70"}
	title = mittel.70.t
	desc = mittel.70.d
	picture = GFX_report_event_MAF_bockholt

	is_triggered_only = yes

	option = {
		name = mittel.70.a
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.71
					days = 5
				}
			}
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.01
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.05
		}
	}
}

country_event = { #Lion Society Kills Asmis
	id = mittel.71
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.71"}
	title = mittel.71.t
	desc = mittel.71.d
	picture = GFX_report_event_MAF_rudolfasmis
	is_triggered_only = yes

	option = {
		name = mittel.71.a
		hidden_effect = {
			MAF = {
				country_event = {
					id = mittel.72
					days = 5
				}
			}
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.01
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.05
		}
	}
}

country_event = { #Plot Twist!
	id = mittel.72
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.72"}
	title = mittel.72.t
	desc = mittel.72.d
	picture = GFX_report_event_MAF_albertgoering

	is_triggered_only = yes

	option = {
		name = mittel.72.a
		add_stability = -0.02
		add_popularity = {
			ideology = social_democrat
			popularity = 0.03
		}
	}
}

country_event = { #Opium Trade
	id = mittel.73
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.73"}
	title = mittel.73.t
	desc = mittel.73.d
	picture = doihara
	is_triggered_only = yes

	option = {
		name = mittel.73.a
		ai_chance = {
			factor = 70
		}
		add_stability = 0.02
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
		add_timed_idea = {
			idea = MAF_Opium_Profit
			days = 365
		}
		hidden_effect = {
			JAP = {
				country_event = {
					id = mittel.74
					days = 10
				}
			}
			FNG = {
				country_event = {
					id = mittel.74
					days = 10
				}
			}
		}
		hidden_effect = {
			GER = {
				country_event = {
					id = mittel.75
					days = 10
				}
			}
		}
	}
	option = {
		name = mittel.73.b
		ai_chance = {
			factor = 30
		}
	}
}

country_event = { #Japan gets what it wanted
	id = mittel.74
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.74"}
	title = mittel.74.t
	desc = mittel.74.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = {
		name = mittel.74.a
		add_political_power = 10
		add_timed_idea = {
			idea = MAF_Opium_Profit
			days = 365
		}
	}
}

country_event = { #Germany gets hit with the Opium
	id = mittel.75
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.75"}
	title = mittel.75.t
	desc = mittel.75.d
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = mittel.75.a
		add_stability = -0.03
		add_timed_idea = {
			idea = MAF_Opium_Epidemic
			days = 180
		}
	}
}

country_event = { #Die Volkerschau - Berlin
	id = mittel.76
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.76"}
	title = mittel.76.t
	desc = mittel.76.d
	picture = GFX_report_event_MAF_voelkerschau
	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = mittel.76.a
		add_political_power = 10
		if = {
			limit = {
				has_government = paternal_autocrat
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.05
			}
		}
		if = {
			limit = {
				has_government = national_populist
			}
			add_popularity = {
				ideology = national_populist
				popularity = 0.05
			}
		}
	}
}

country_event = { #Die Volkerschau - Portuguese Reaction
	id = mittel.77
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.77"}
	title = mittel.77.t
	desc = mittel.77.d
	picture = GFX_report_event_MAF_voelkerschau

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

	option = {
		name = mittel.77.a
		add_stability = -0.01
	}
}

country_event = { #Die Volkerschau - Vienna AUS
	id = mittel.78
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.78"}
	title = mittel.78.t
	desc = mittel.78.d
	picture = GFX_report_event_MAF_voelkerschau

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

trigger = {
		MAF = {
			exists = yes
		}
	}

	option = {
		name = mittel.78.a
		add_political_power = 10
	}
}

country_event = { #Die Volkerschau - Vienna
	id = mittel.79
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.79"}
	title = mittel.79.t
	desc = mittel.79.d
	picture = GFX_report_event_MAF_voelkerschau
	is_triggered_only = yes
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = mittel.79.a
		add_political_power = 20
	}
}

country_event = { #Die Volkerschau - Shanghai LEC
	id = mittel.80
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.80"}
	title = mittel.80.t
	desc = mittel.80.d
	picture = GFX_report_event_MAF_voelkerschau

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

trigger = {
		MAF = {
			exists = yes
		}
	}

	option = {
		name = mittel.80.a
		add_political_power = 20
	}
}

country_event = { #Die Volkerschau - Shanghai
	id = mittel.81
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.81"}
	title = mittel.81.t
	desc = mittel.81.d
	picture = GFX_report_event_MAF_voelkerschau
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	is_triggered_only = yes

	option = {
		name = mittel.81.a
		add_political_power = 20
	}
}

country_event = { #Die Volkerschau - Ottoman
	id = mittel.82
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.82"}
	title = mittel.82.t
	desc = mittel.82.d
	picture = GFX_report_event_MAF_voelkerschau
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	is_triggered_only = yes

trigger = {
		MAF = {
			exists = yes
		}
	}

	option = {
		name = mittel.82.a
		add_political_power = 20
	}
}

country_event = { #Die Volkerschau - Ottoman
	id = mittel.83
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.83"}
	title = mittel.83.t
	desc = mittel.83.d
	picture = GFX_report_event_MAF_voelkerschau
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	is_triggered_only = yes

	option = {
		name = mittel.83.a
		add_political_power = 20
	}
}

country_event = { #Die Volkerschau - London GBR
	id = mittel.84
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.84"}
	title = mittel.84.t
	desc = mittel.84.d
	picture = GFX_report_event_MAF_voelkerschau

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

trigger = {
		MAF = {
			exists = yes
		}
	}

	option = {
		name = mittel.84.a
		add_political_power = 20
	}
}

country_event = { #Die Volkerschau - London
	id = mittel.85
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.85"}
	title = mittel.85.t
	desc = mittel.85.d
	picture = GFX_report_event_MAF_voelkerschau
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	is_triggered_only = yes

	option = {
		name = mittel.85.a
		add_political_power = 20
	}
}

###########NKR Periodic Events############

country_event = { #Support Equipment for GER
	id = mittel.86
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.86"}
	title = mittel.86.t
	desc = mittel.86.d
	picture = GFX_report_event_port_big
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

trigger = {
		tag = GER
		MAF = {
			OR = {
				has_government = paternal_autocrat
				has_government = national_populist
			}
			exists = yes
		}
	}

	mean_time_to_happen = {
		months = 24
	}

	option = {
		name = mittel.86.a
		add_equipment_to_stockpile = {
			type = support_equipment_1
			amount = 50
			producer = MAF
		}
		add_political_power = 10
		hidden_effect = {
		if = {
			limit = {
				MAF = {
					NOT = {
						has_country_flag = angry_farmers
						}
					}
				}
				MAF = {
					set_country_flag = angry_farmers
					country_event = {
						id = mittel.87
						days = 24
					}
				}
			}
		}
	}
}

country_event = { #Farmers Resist our policy
	id = mittel.87
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.87"}
	title = mittel.87.t
	desc = mittel.87.d
	picture = GFX_report_event_generic_farming
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

trigger = {
		tag = MAF
		has_country_flag = angry_farmers
	}
	
	mean_time_to_happen = {
		months = 24
	}
	
	fire_only_once = yes

	option = {
		name = mittel.87.a
		add_stability = -0.01
	}
}

country_event = { #Guns for GER
	id = mittel.88
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.88"}
	title = mittel.88.t
	desc = mittel.88.d
	picture = GFX_report_event_generic_factory
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

trigger = {
		tag = GER
		MAF = {
			OR = {
				has_government = paternal_autocrat
				has_government = national_populist
			}
			exists = yes
		}
	}

	mean_time_to_happen = {
		months = 24
	}

	option = {
		name = mittel.88.a
		if = {
			limit = {
				MAF = {
					has_tech = infantry_weapons1
				}
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment_1
				amount = 100
				producer = MAF
			}
		}
		if = {
			limit = {
				MAF = {
					has_tech = improved_infantry_weapons
				}
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment_2
				amount = 100
				producer = MAF
			}
		}
		if = {
			limit = {
				MAF = {
					has_tech = advanced_infantry_weapons
				}
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment_3
				amount = 100
				producer = MAF
			}
		}
		if = {
			limit = {
				MAF = {
					NOT = {
						has_country_flag = angry_workers
						}
					}
				}
				MAF = {
					set_country_flag = angry_farmers
					country_event = {
						id = mittel.89
						days = 19
					}
				}
			}
		add_political_power = 10
	}
}

country_event = { #Industrial Discontent
	id = mittel.89
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.89"}
	title = mittel.89.t
	desc = mittel.89.d
	picture = GFX_report_event_worker_protests
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	is_triggered_only = yes

trigger = {
		tag = MAF
		has_country_flag = angry_workers
	}

	option = {
		name = mittel.89.a
		add_stability = -0.03
		add_war_support = -0.03
	}
}

country_event = { #Resistance to war economy
	id = mittel.90
	title = mittel.90.t
	desc = mittel.90.d
	picture = GFX_report_event_factory
	
	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	is_triggered_only = yes
	option = {
		name = mittel.90.a
		add_stability = -0.01
		add_political_power = -20
	}
}

###Africa Divisions ###

country_event = { #African Division Starts
	id = mittel.91
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.91"}
	title = mittel.91.t
	desc = mittel.91.d
	picture = GFX_report_event_MAF_askari

	is_triggered_only = yes
	option = {
		name = mittel.91.a
		add_political_power = 20
		GER = {
			country_event = {
				id = mittel.92
				days = 90
			}
		}
	}
}

country_event = { #African Division 1
	id = mittel.92
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.92"}
	title = mittel.92.t
	desc = mittel.92.d
	picture = GFX_report_event_MAF_askari2

	is_triggered_only = yes
trigger = {
		country_exists = MAF
	}

	option = {
		name = mittel.92.a
		hidden_effect = {
			load_oob = MAF_Africa1
		}
		custom_effect_tooltip = african_divisions_1
		GER = {
			country_event = {
				id = mittel.93
				days = 180
			}
		}
	}
}

country_event = { #African Division 2
	id = mittel.93
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.93"}
	title = mittel.93.t
	desc = mittel.93.d
	picture = GFX_report_event_MAF_askari2

	is_triggered_only = yes
trigger = {
		country_exists = MAF
	}

	option = {
		name = mittel.93.a
		hidden_effect = {
			load_oob = MAF_Africa2
		}
		custom_effect_tooltip = african_divisions_2
		GER = {
			country_event = {
				id = mittel.94
				days = 270
			}
		}
	}
}

country_event = { #African Division 3
	id = mittel.94
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.94"}
	title = mittel.94.t
	desc = mittel.94.d
	picture = GFX_report_event_SAF_black_soldiers

	is_triggered_only = yes
trigger = {
		country_exists = MAF
	}
	option = {
		name = mittel.94.a
		hidden_effect = {
			load_oob = MAF_Africa3
		}
		custom_effect_tooltip = african_divisions_3
	}
}

#####Royal Tours #####

country_event = { #Royal Tours - Rwanda
	id = mittel.95
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.95"}
	title = mittel.95.t
	desc = mittel.95.d
	picture = GFX_report_event_MAF_tours
	
	fire_only_once = yes
	
trigger = {
		869 = { is_owned_by_ROOT_or_subject = yes }
	}
	is_triggered_only = yes
	option = {
		name = mittel.95.a
		869 = {
			add_extra_state_shared_building_slots = 1
		}
		hidden_effect = {
			GER = { country_event = { id = sharedafrika.35 days = 1 } }
			RWA = { country_event = { id = sharedafrika.35 days = 1 } }
		}
	}
}

country_event = { #Royal Tours - Zanzibar
	id = mittel.96
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.96"}
	title = mittel.96.t
	desc = mittel.96.d
	picture = GFX_report_event_MAF_delegation
	
	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		tag = MAF
		has_country_flag = MAF_Royal_Tours
		905 = { is_owned_by_ROOT_or_subject = yes }
	}

	option = {
		name = mittel.96.a
		905 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = coastal_bunker
				level = 2
				province = 13551
				instant_build = yes
			}
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}
		hidden_effect = {
			GER = { country_event = { id = sharedafrika.36 days = 1 } }
			ZZB = { country_event = { id = sharedafrika.36 days = 1 } }
			GEA = { country_event = { id = sharedafrika.36 days = 1 } }
		}
	}
}

country_event = { #Royal Tours - Kongo
	id = mittel.97
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.97"}
	title = mittel.97.t
	desc = mittel.97.d
	picture = GFX_report_event_MAF_cologne

	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		tag = MAF
		has_country_flag = MAF_Royal_Tours
		928 = { is_owned_by_ROOT_or_subject = yes }
	}

	option = {
		name = mittel.97.a
		add_popularity = {
			ideology = social_liberal
			popularity = 0.01
		}
		hidden_effect = {
			GER = { country_event = { id = sharedafrika.37 days = 1 } }
			KOG = { country_event = { id = sharedafrika.37 days = 1 } }
			PAP = { country_event = { id = sharedafrika.37 days = 1 } }
			PAF = { country_event = { id = sharedafrika.37 days = 1 } }
			POR = { country_event = { id = sharedafrika.37 days = 1 } }
		}
	}
}

country_event = { #Royal Tours - Hehe
	id = mittel.98
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.98"}
	title = mittel.98.t
	desc = mittel.98.d
	picture = GFX_report_event_MAF_skull
	
	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		tag = GER
		MAF = {
			has_country_flag = MAF_Royal_Tours
		}
	}

	option = {
		name = mittel.98.a
		ai_chance = {
			factor = 10
		}
		MAF = {
			country_event = {
				id = mittel.99
				days = 1
			}
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.05
		}
	}
	option = {
		name = mittel.98.b
		ai_chance = {
			factor = 90
		}
		MAF = {
			country_event = {
				id = mittel.100
				days = 1
			}
		}
	}
}

country_event = { #Royal Tours - Hehe
	id = mittel.99
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.99"}
	title = mittel.99.t
	desc = mittel.99.d
	picture = GFX_report_event_MAF_return
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.99.a
		add_stability = 0.01
	}
}

country_event = { #Royal Tours - Hehe
	id = mittel.100
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.100"}
	title = mittel.100.t
	desc = mittel.100.d
	picture = GFX_report_event_MAF_skull
	
	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 = {
		name = mittel.100.a
		add_stability = -0.01
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.05
		}
	}
}

country_event = { #Royal Tours - Buganda
	id = mittel.101
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.101"}
	title = mittel.101.t
	desc = mittel.101.d
	picture = GFX_report_event_MAF_onstage
	
	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		tag = MAF
		has_country_flag = MAF_Royal_Tours
		OR = {
			869 = { is_owned_by_ROOT_or_subject = yes }
			UGA = {
				is_subject_of = MAF
				NOT = {
					has_completed_focus = UGA_thekampalacrisis
				}
			}
		}
	}

	option = {
		name = mittel.101.a
		army_experience = 35
		add_war_support = 0.05
		hidden_effect = {
			GER = { country_event = { id = sharedafrika.38 days = 1 } }
			UGA = { country_event = { id = sharedafrika.38 days = 1 } }
		}
	}
}
#Collapse
country_event = {
id = mittel.102
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.102"}
	title = mittel.102.t
	desc = mittel.102.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes

trigger = {
		tag = MAF
		has_global_flag = MAF_gonna_die
		NOT = {
			has_global_flag = MAF_POR_border_war
			has_global_flag = MAF_is_already_collapsing
			AND = {
				OR = {
					has_game_rule = {
						rule = MAF_politic
						option = MAF_POLITIC_DKG
					}
					has_game_rule = {
						rule = MAF_politic
						option = MAF_POLITIC_NKR
					}
					has_game_rule = {
						rule = MAF_politic
						option = MAF_POLITIC_REFORM
					}
					has_game_rule = {
						rule = MAF_politic
						option = MAF_POLITIC_SOVEREIGN
					}
				}
				is_ai = yes
			}
			has_government = national_populist
			GER = {
				has_completed_focus = GER_the_kanzler_and_the_statthalter
			}
		}
	}
	mean_time_to_happen = {
		days = 15
	}
	option = {
		name = mittel.102.a
		custom_effect_tooltip = MAF_revolt_warning
			hidden_effect = {
				MAF = {
					random_unit_leader = {
						limit = { has_id = 198 }			
						remove_unit_leader = yes
					}
					set_country_flag = Hermann_von_Goering_dead
				}
				every_unit_leader = {
					limit = { has_unit_leader_flag = TZN_leader_flag }
					set_nationality = TZN
				}
				every_owned_state = {
					limit = {
						OR = {
							state = 546
							state = 918
							state = 965
						}
					}
					TZN = { 
						transfer_state = PREV
						#load_focus_tree = TZN_Goeringia
						add_to_array = { global.MAF_collapse_tags = THIS }
					}
				}
				if = {
					limit = {
						country_exists = TZN
						TZN = { 
							NOT = { 
							  has_country_flag = MAF_already_exists 
							} 
						}
					}
					MAF = { 
						TZN = { 
							transfer_technology = yes 
						} 
					}
					TZN = {
						set_cosmetic_tag = TZN_GER
						add_state_core = 546
						add_state_core = 918
						add_state_core = 965
						load_oob = "TZN"
						load_oob = "TZN_naval"
					}
				}
				if = {
					limit = {
						country_exists = TZN
						country_exists = MAF
					}
					MAF = { 
						declare_war_on = { 
							target = TZN 
							type = annex_everything 
						} 
					}
				}
				if = {
					limit = {
						country_exists = TZN
						country_exists = MAF
					}
					MAF = { 
						declare_war_on = { 
							target = TZN 
							type = annex_everything 
						} 
					}
				}
				if = {
					limit = {
						has_country_leader = {
							name = "Hermann Göring"
						}
					}
					create_country_leader = {
						name = "Franz Ritter von Epp"
						desc = "POLITICS_VON_EPP_DESC"
						picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Franz_Ritter_von_Epp.png"
						expire = "1.1.1"
						ideology = autocratic_colonial_govt_subtype
			
					}
					if = {	
						limit = { has_country_leader = { name = "Franz Ritter von Epp" ruling_only = yes } }
						set_country_leader_portrait = {
							portrait = "gfx/leaders/MAF/Portrait_Mittelafrika_Franz_Ritter_von_Epp.png"
						}
					}
				}
				MAF = {
					country_event = {
						id = mittel.186
						days = 30
					}
				}
				set_global_flag = MAF_is_already_collapsing
			}
		}
	}

#Silence Washes over Mittelafrika
country_event = {
id = mittel.1002
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.1002"}
	title = mittel.1002.t
	desc = mittel.1002.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes

trigger = {
		tag = MAF
		AND = {
			has_global_flag = MAF_gonna_die
			GER = {
				has_completed_focus = GER_the_kanzler_and_the_statthalter
			}
		}
		NOT = {
			has_global_flag = MAF_POR_border_war
			has_global_flag = MAF_is_already_collapsing
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_NKR
				}
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_DKG
				}
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_REFORM
				}
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_SOVEREIGN
				}
			has_country_leader = {
				name = "Hermann Göring"
				ruling_only = yes
			}
		}
	}
	mean_time_to_happen = {
		days = 5
	}
	option = {
		name = mittel.102.a
		custom_effect_tooltip = MAF_revolt_warning
			hidden_effect = {
				MAF = {
					random_unit_leader = {
						limit = { has_id = 198 }
						remove_unit_leader = yes
					}
					set_country_flag = Hermann_von_Goering_dead
				}
				every_owned_state = {
					limit = {
						OR = {
							state = 546
							state = 918
							state = 965
						}
					}
					TZN = { 
						transfer_state = PREV
						load_focus_tree = african_republic_authoritarian
					}
				}
				if = {
					limit = {
						country_exists = TZN
						TZN = { 
							NOT = { 
							  has_country_flag = MAF_already_exists 
							} 
						}
					}
					MAF = { 
						TZN = { 
							transfer_technology = yes 
						} 
					}
					TZN = {
						set_cosmetic_tag = TZN_GER_BUT_NOT_GOERING
						add_state_core = 546
						add_state_core = 918
						add_state_core = 965
						load_oob = "TZN"
						load_oob = "TZN_naval"
						 create_country_leader = {
							name = "Mohamed Husen"
							desc = "POLITICS_HUSAN_DESC"
							picture = "gfx/leaders/TZN/Portrait_TZN_Muhamed_Husan.png"
							expire = "1.1.1"
							ideology = colonial_govt_subtype
				
						}
						set_politics = {
							ruling_party = authoritarian_democrat
						}
					}
				}
				if = {
					limit = {
						country_exists = TZN
						country_exists = MAF
					}
					MAF = { 
						declare_war_on = { 
							target = TZN
							type = annex_everything
						} 
					}
				}
				MAF = {
					country_event = {
						id = mittel.186
						days = 30
					}
				}
				set_global_flag = MAF_is_already_collapsing
			}
		}
	}

#Mahiwatag Celebrations
country_event = {
	id = mittel.103
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.103"}
	title = mittel.103.t
	desc = mittel.103.d
	picture = GFX_report_event_MAF_mahiwa
	is_triggered_only = yes
	
	#minor_flavor = yes
	
trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		OR = {
			tag = MAF
			is_subject_of = MAF
		}
	}

	option = {
		name = mittel.103.a
		if = {
			limit = {
			OR = {
				tag = MAF
				tag = CMR
				tag = NMB
				tag = CEA
				tag = KOG
				tag = ZAM
				tag = CIV
				}
			}
			army_experience = 5
			add_political_power = 10
			hidden_effect = {
				country_event = {
					days = 365
					id = mittel.103
				}
			}
		}
	}
	option = {
		name = mittel.103.b
		if = {
			limit = {
			NOT = {
				tag = MAF
			}
			OR = {
				tag = GHA
				tag = NGR
				tag = KEN
				tag = UGA
				tag = ZAM
				tag = CIV
				tag = PAF
				tag = BSC
				tag = MLW
				tag = COG
				tag = KTG
				tag = ZZB
				tag = IVO
				}
			}
			add_political_power = -5
			hidden_effect = {
				country_event = {
					days = 365
					id = mittel.103
				}
			}
		}
	}
}

country_event = {
	id = mittel.104
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.104"}
	title = mittel.104.t
	desc = mittel.104.d
	picture = GFX_report_event_MAF_dernburg

	#minor_flavor = yes
trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		OR = {
			tag = MAF
			is_subject_of = MAF
		}
	}

	is_triggered_only = yes

	option = {
		name = mittel.104.a
	trigger = {
			tag = MAF
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
	}

	option = {
		name = mittel.104.b
	trigger = {
			tag = MAF
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.05
		}
	}

	option = {
		name = mittel.104.c
	trigger = {
			tag = MAF
		}
		add_stability = 0.02
	}
	option = {
		name = mittel.104.e
	trigger = {
		NOT = {
			tag = MAF
			}
		}
		add_political_power = 5
	}
}

country_event = { ###SAF railway event
	id = mittel.105
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.105"}
	title = mittel.105.t
	desc = mittel.105.d
	picture = GFX_report_event_MAF_railroad

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.105.a
		add_stability = 0.02
		add_ideas = MAF_CtC_Rail
	}
}

country_event = { ###EGY railway event
	id = mittel.106
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.106"}
	title = mittel.106.t
	desc = mittel.106.d
	picture = GFX_report_event_MAF_railroad

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.106.a
		add_stability = 0.02
		add_ideas = MAF_CtC_Rail
	}
}

country_event = { ####ETH railway event
	id = mittel.107
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.107"}
	title = mittel.107.t
	desc = mittel.107.d
	picture = GFX_report_event_MAF_railroad

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.107.a
		add_stability = 0.02
		add_ideas = MAF_CtC_Rail
	}
}

country_event = { ###Black Monday--Initial event. Please see MAF 174 and on for follow-up events for subsequent budgets.
	id = mittel.108
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.108"}
	title = mittel.108.t
	desc = mittel.108.d
	picture = GFX_report_event_governorhaus

trigger = {
		tag = MAF
	}
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.108.a
		add_ideas = MAF_Black_Monday_idea
		add_stability = -0.1
		add_war_support = -0.05
		add_political_power = -50
		hidden_effect = {
			set_country_flag = MAF_can_do_crime
		}
	}
}

country_event = { ###Belgian Investment
	id = mittel.109
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.109"}
	title = mittel.109.t
	desc = mittel.109.d
	picture = GFX_report_event_hillstation
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.109.a
		add_ideas = MAF_African_Investments
		add_stability = 0.02
	}
}

country_event = { ###MAF blocks investment
	id = mittel.110
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.110"}
	title = mittel.110.t
	desc = mittel.110.d
	picture = GFX_report_event_hillstation

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.110.a
		add_stability = -0.02
		remove_ideas = MAF_African_Investments
	}
}

country_event = { ###New Parties
	id = mittel.111
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.111"}
	title = mittel.111.t
	desc = mittel.111.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.111.a
		set_party_name = {
			ideology = paternal_autocrat
			long_name = MAF_DEM_paternal_autocrat_party_long
			name = MAF_DEM_paternal_autocrat_party
		}
		create_country_leader = {
			name = "Heinrich Kirchheim"
			desc = "POLITICS_KIRCHHEIM_DESC"
			picture = "gfx/leaders/NMB/Portrait_NMB_Heinrich_Kircheim.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype

		}
		set_party_name = {
			ideology = authoritarian_democrat
			long_name = MAF_DEM_authoritarian_democrat_party_long
			name = MAF_DEM_authoritarian_democrat_party
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.05
		}
		hidden_effect = {
		add_popularity = {
			ideology = social_conservative
			popularity = 0.40
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.20
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = -0.20
		}
		add_popularity = {
			ideology = national_populist
			popularity = -1.00
		}
		}
	}
}

country_event = { ###Reformgruppe Split
	id = mittel.112
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.112"}
	title = mittel.112.t
	desc = mittel.112.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.112.a
		hidden_effect = {
			country_event = {
				days = 30
				id = mittel.113
			}
		}
		set_party_name = {
			ideology = social_conservative
			long_name = MAF_DEM_social_conservative_party_long
			name = MAF_DEM_social_conservative_party
		}
		set_party_name = {
			ideology = social_democrat
			long_name = MAF_DEM_social_democrat_party_long
			name = MAF_DEM_social_democrat_party
		}
		set_party_name = {
			ideology = market_liberal
			long_name = MAF_DEM_market_liberal_party_long
			name = MAF_DEM_market_liberal_party
		}
		set_party_name = {
			ideology = social_liberal
			long_name = MAF_DEM_social_liberal_party_long
			name = MAF_DEM_social_liberal_party
		}
		create_country_leader = {
			name = "Theodor von Hassel"
			desc = "POLITICS_HASSEL_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Theodor_von_Hassel.png"
			expire = "1.1.1"
			ideology = marlib_colonial_govt_subtype

		}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.10
		}
	}
}

country_event = { ###Election
	id = mittel.113
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event mittel.113"
		hidden_effect = {
			set_country_flag = MAF_election_over
		}
	}
	title = mittel.113.t
	desc = mittel.113.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.113.a

		add_popularity = {
			ideology = social_conservative
			popularity = 0.25
		}
		GER = {
			country_event = {
				days = 1
				id = mittel.116
			}
		}
	}
	
	option = {
		name = mittel.113.c
		add_popularity = {
			ideology = market_liberal
			popularity = 0.25
		}
		GER = {
			country_event = {
				days = 1
				id = mittel.120
			}
		}
	}
	
	option = {
		name = mittel.113.f

		add_popularity = {
			ideology = social_democrat
			popularity = 0.25
		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Jules_Cousin_hog_sli
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Joseph_Marie_Birraux_for_sli
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_Jules_Cousin_eco_sli
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_John_Arthur_sec_mli
		###RE-ADD AN EVENT FOR GERMANY HERE LATER
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = no
		}
	}
	option = {
		name = mittel.113.g

		add_popularity = {
			ideology = social_liberal
			popularity = 0.25
		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Albert_von_Goering_hog_sde
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Joseph_Marie_Birraux_for_sli
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_Jules_Cousin_eco_sli
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_John_Arthur_sec_mli
		###RE-ADD AN EVENT FOR GERMANY HERE LATER
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = no
		}
	}
}

country_event = { ###Ending the Landtag
	id = mittel.114
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.114"}
	title = mittel.114.t
	desc = mittel.114.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.114.a
		add_stability = -0.05
		add_popularity = {
			ideology = social_conservative
			popularity = -0.15
		}
		add_popularity = {
			ideology = market_liberal
			popularity = -0.15
		}
	}
}

country_event = { ###Asmis Appointed
	id = mittel.115
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.115"}
	title = mittel.115.t
	desc = mittel.115.d
	picture = GFX_report_event_MAF_rudolfasmis

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.115.a
		create_country_leader = {
			name = "Rudolf Asmis"
			desc = "POLITICS_ASMIS_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Rudolf_Asmis.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype

		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		add_stability = -0.1
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Rudolf_Asmis_hog_ade
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Ernst_Juenger_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_August_Stauch_eco_ade
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_Detzner_sec_ade
	}
}

country_event = { ###WAP elected
	id = mittel.116
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.116"}
	title = mittel.116.t
	desc = mittel.116.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.116.a
		MAF = {
			country_event = {
				days = 1
				id = mittel.117
			}
		}
	}
	option = {
		name = mittel.116.b
		add_stability = -0.05
		MAF = {
			country_event = {
				days = 1
				id = mittel.115
			}
		}
	}
}

country_event = { ###Scherner Appointed
	id = mittel.117
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.117"}
	title = mittel.117.t
	desc = mittel.117.d
	picture = GFX_report_event_MAF_officers

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.117.a
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = no
		}
	}
}

country_event = { ###KVP elected
	id = mittel.118
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.118"}
	title = mittel.118.t
	desc = mittel.118.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.118.a
		MAF = {
			country_event = {
				days = 1
				id = mittel.119
			}
		}
	}
	option = {
		name = mittel.118.b
		add_stability = -0.05
		MAF = {
			country_event = {
				days = 1
				id = mittel.115
			}
		}
	}
}

country_event = { ###Kirchheim appointed
	id = mittel.119
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.119"}
	title = mittel.119.t
	desc = mittel.119.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.119.a
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Rudolf_Asmis_hog_ade
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Ernst_Juenger_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_August_Stauch_eco_ade
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_Detzner_sec_ade
	}
}

country_event = { ###NRG Elected
	id = mittel.120
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.120"}
	title = mittel.120.t
	desc = mittel.120.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.120.a
		MAF = {
			country_event = {
				days = 1
				id = mittel.121
			}
		}
	}
	option = {
		name = mittel.120.b
		MAF = {
			country_event = {
				days = 1
				id = mittel.122
			}
		}
	}
	option = {
		name = mittel.120.c
		add_stability = -0.05
		MAF = {
			country_event = {
				days = 1
				id = mittel.115
			}
		}
	}
}

country_event = { ###Theodor appointed
	id = mittel.121
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.121"}
	title = mittel.121.t
	desc = mittel.121.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.121.a
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = no
		}
		remove_all_ministers = yes
		add_ideas = MAF_Theodor_von_Hassel_hog_sco
		add_ideas = MAF_Karl_Atangana_for_sco
		add_ideas = MAF_Walther_von_Rathenau_eco_mli
		add_ideas = MAF_Julian_Scherner_sec_sco
	}
}

country_event = { ###Rathenau appointed
	id = mittel.122
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.122"}
	title = mittel.122.t
	desc = mittel.122.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.122.a
		add_stability = -0.02
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = no
		}
		create_country_leader = {
			name = "Walther Rathenau"
			desc = "POLITICS_RATHENAU_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Walther_Rathenau.png"
			expire = "1.1.1"
			ideology = marlib_colonial_govt_subtype

		}
		remove_all_ministers = yes
		add_ideas = MAF_Walther_von_Rathenau_hog_sco
		add_ideas = MAF_Karl_Atangana_for_sco
		add_ideas = MAF_Walther_von_Rathenau_eco_mli
		add_ideas = MAF_Julian_Scherner_sec_sco
	}
}

country_event = { ###AAP elected
	id = mittel.123
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.123"}
	title = mittel.123.t
	desc = mittel.123.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.123.a
	trigger = {
			NOT = {
				BRD = {
					has_country_leader = {
						name = "Carl Schmitt"
						ruling_only = yes
					}				
				}
			}
		}
		MAF = {
			country_event = {
				days = 1
				id = mittel.124
			}
		}
	}
	option = {
		name = mittel.123.b
		add_stability = -0.05
		MAF = {
			country_event = {
				days = 1
				id = mittel.115
			}
		}
	}
}

country_event = { ###Schmitt appointed
	id = mittel.124
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.124"}
	title = mittel.124.t
	desc = mittel.124.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.124.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		hidden_effect = {
			MAF = {
				country_event = {
					days = 1
					id = mittel.114
				}
			}
		}
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Franz_Ritter_von_Epp_hog_pau
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Arthur_Zimmermann_for_pau
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_Hans_Albert_von_Lettow_Vorbeck_sec_pau
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Heinrich_Kirchheim_sec_ade
	}
}


####Mau Mau War ####

country_event = { ###Church in Kenya
	id = mittel.125
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.125"}
	title = mittel.125.t
	desc = mittel.125.d
	picture = GFX_report_event_church_lagos
	is_triggered_only = yes

	option = {
		name = mittel.125.a
		add_political_power = -10
		add_war_support = 0.01
	}
	option = {
		name = mittel.125.b
		add_political_power = -20
		add_stability = 0.01
	}
	option = {
		name = mittel.125.c
		add_political_power = 10
	}
	option = {
		name = mittel.125.e
	trigger = {
			NOT = {
				tag = MAF
				}
			}
		add_political_power = -5
	}
}

country_event = { ###Stumpf murdered
	id = mittel.126
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.126"}
	title = mittel.126.t
	desc = mittel.126.d
	picture = GFX_report_event_MAF_hulda
	is_triggered_only = yes

	option = {
		name = mittel.126.a
		if = {
			limit = {
				tag = KEN
				}
		add_stability = -0.01
		}
	}
}

country_event = { ###Colonisation Question in Kenya
	id = mittel.127
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.127"}
	title = mittel.127.t
	desc = mittel.127.d
	picture = GFX_report_event_MAF_highlands

	is_triggered_only = yes
	fire_only_once = yes
	
trigger = {
		tag = MAF
		owns_state = 547
	}

	option = {
		name = mittel.127.a
		hidden_effect = {
			country_event = {
				days = 180
				id = mittel.128
			}
		}
	}
	option = {
		name = mittel.127.b
		add_popularity = {
			ideology = market_liberal
			popularity = 0.05
		}
	}
}

country_event = { ###Land Crisis
	id = mittel.128
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.128"}
	title = mittel.128.t
	desc = mittel.128.d
	picture = GFX_report_event_MAF_highlands

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.128.a
		add_popularity = {
			ideology = market_liberal
			popularity = -0.05
		}
		set_country_flag = MAF_Kikyu2
		add_stability = -0.02
	}
	option = {
		name = mittel.128.b
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.05
		}
		add_stability = -0.05
	}
	option = {
		name = mittel.128.c
		if = {
			limit = {
				has_government = paternal_autocrat
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.05
			}
		}
		if = {
			limit = {
				has_government = national_populist
			}
			add_popularity = {
				ideology = national_populist
				popularity = 0.05
			}
		}
		set_country_flag = MAF_Kikyu3
		hidden_effect = {
			country_event = {
				days = 180
				id = mittel.130
			}
		}
	}
}

country_event = { ###Death of Warahui
	id = mittel.129
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.129"}
	title = mittel.129.t
	desc = mittel.129.d
	picture = GFX_report_event_MAF_waruhiu

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.129.a
		add_stability = -0.02
		hidden_effect = {
			country_event = {
				days = 180
				id = mittel.131
			}
		}
	}
}

country_event = { ###Land Reclamation complete
	id = mittel.130
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.130"}
	title = mittel.130.t
	desc = mittel.130.d
	picture = GFX_report_event_MAF_highlands
	fire_only_once = yes
	is_triggered_only = yes
trigger = {
		tag = MAF
		547 = {
			is_owned_by = MAF
		}
	}

	fire_only_once = yes

	option = {
		name = mittel.130.a
		547 = {
			add_extra_state_shared_building_slots = 2
		}
		add_stability = 0.02
	}
}

country_event = { ###Mau Mau revolt
	id = mittel.131
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.131"}
	title = mittel.131.t
	desc = mittel.131.d
	picture = GFX_report_event_MAF_forest
	fire_only_once = yes
	is_triggered_only = yes

trigger = {
		tag = MAF
		#547 = {
			#is_owned_by = MAF
		#}
	}
	

	option = {
		name = mittel.131.a
		set_country_flag = MAF_Mau_Mau_Revolt
		KIK = {
			transfer_state = 969
			transfer_state = 925
			add_state_core = 547
			add_state_core = 925
			add_state_core = 969
			load_oob = KIK
			add_ideas = MAF_Nat_Buff
		}
		MAF = {
			declare_war_on = {
				target = KIK
				type = annex_everything
			}
		}
		if = {
			limit = {
				has_country_flag = MAF_Kikyu1
			}
			KIK = {
				load_oob = KIK1
				add_stability = 0.15
			}
		}
		if = {
			limit = {
				has_country_flag = MAF_Kikyu2
			}
			KIK = {
				load_oob = KIK2
				add_stability = 0.05
			}
		}
		if = {
			limit = {
				has_country_flag = MAF_Kikyu3
			}
			KIK = {
				load_oob = KIK3
				add_stability = 0.05
			}
		}
	}
}


country_event = { ###Mau Mau defeated
	id = mittel.132
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.132"}
	title = mittel.132.t
	desc = mittel.132.d
	picture = GFX_report_event_MAF_forest
	
trigger = {
		has_country_flag = MAF_Mau_Mau_Revolt
		KIK = {
			exists = no
		}
	}

	fire_only_once = yes

	option = {
		name = mittel.132.a
		clr_country_flag = MAF_Mau_Mau_Revolt
		add_stability = 0.05
		hidden_effect = {
			country_event = {
				months = 8
				id = mittel.133
			}
		}
	}
}

country_event = { ###Mau Mau Revolt Again
	id = mittel.133
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.133"}
	title = mittel.133.t
	desc = mittel.133.d
	picture = GFX_report_event_MAF_forest

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = mittel.133.a
		set_country_flag = MAF_Mau_Mau_Revolt
		KIK = {
			transfer_state = 547
			transfer_state = 925
			add_state_core = 547
			add_state_core = 925
			load_oob = KIK
			add_ideas = MAF_Nat_Buff
		}
		MAF = {
			declare_war_on = {
				target = KIK
				type = annex_everything
			}
		}
	}
}

country_event = { #####African Volunteers
	id = mittel.135
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.135"}
	title = mittel.135.t
	desc = mittel.135.d
	picture = GFX_report_event_saf_soldiers_3

	fire_only_once = yes
	is_triggered_only = yes

	option = { #Great
		name = mittel.135.a
		custom_effect_tooltip = MAF_CAN_Vol_tooltip
		hidden_effect = {
			load_oob = MAF_CAN_Vol
		}
	}
}


country_event = { #####Sovereign State
	id = mittel.136
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.136"}
	title = mittel.136.t
	desc = mittel.136.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes
	is_triggered_only = yes

	option = { #Great
		name = mittel.136.a
		set_country_flag = goering_gone_bad
		remove_ideas_with_trait = head_of_government
		add_ideas = MAF_Hermann_von_Goering_hog_npo
		remove_ideas_with_trait = foreign_minister
		add_ideas = MAF_Arthur_Zimmermann_for_npo
		remove_ideas_with_trait = economy_minister
		add_ideas = MAF_Fritz_Thyssen_eco_npo
		remove_ideas_with_trait = security_minister
		add_ideas = MAF_Hermann_von_Goering_sec_npo
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = -0.05
		}
		hidden_effect = {
			news_event = {
				id = worldnews.181
			}
		
		}
	}
}

###Revolts--See also: mittel.181 and mittel.182 for build-up to this
###The events are all HIDDEN and will result in these countries declaring war without event pop-up spam.

country_event = { #####Rwanda Revolt
	id = mittel.140
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.140"}
	hidden = yes
	is_triggered_only = yes
	immediate = {
		869 = {
			add_core_of = RWA
		}
		release = RWA
		declare_war_on = {
			target = RWA
			type = annex_everything
		}
		RWA = {
			load_oob = RWA
			add_ideas = MAF_Nat_Buff
		}
	}
}

country_event = { #####Burundi Revolt
	id = mittel.141
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.141"}
	hidden = yes
	is_triggered_only = yes
	immediate = {
		870 = {
			add_core_of = BRD
		}
		release = BRD
		declare_war_on = {
			target = BRD
			type = annex_everything
		}
		BRD = {
			load_oob = BRD
			add_ideas = MAF_Nat_Buff
		}
	}
}

#Intro event
country_event = {
	id = mittel.167
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.167"}
	title = mittel.167.t
	desc = mittel.167.d
	picture = GFX_report_event_MAF_solf

	is_triggered_only = yes
	

	option = {
		name = mittel.167.a
	}
}

#MAF/SAF peace deal with POR
country_event = {
	id = mittel.168
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.168"}
	title = mittel.168.t
	desc = mittel.168.d
	picture = GFX_report_event_AUS_Ausgleich_dip_agree

	fire_only_once = yes

trigger = {
		tag = POR
		has_war_with = MAF
		has_country_flag = portugal_fights_MAF-SAF
		MAF = {
			has_global_flag = MAF_POR_border_war
			surrender_progress < 0.3
		}
		544 = { #Zambezia
			is_owned_by_ROOT_or_subject = yes
			NOT = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		954 = { #Tete
			is_owned_by_ROOT_or_subject = yes
			NOT = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		950 = { #Inhambane-Gaza
			is_owned_by_ROOT_or_subject = yes
			NOT = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		540 = { #Angola
			is_owned_by_ROOT_or_subject = yes
			NOT = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
		916 = { #Congo Antigo
			is_owned_by_ROOT_or_subject = yes
			NOT = {
				is_controlled_by_ROOT_or_subject = yes
			}
		}
	}

	option = {
		name = mittel.168.a
		ai_chance = {
			factor = 100
		}
		MAF = {
			country_event = {
				id = mittel.169
				days = 1
			}
		}
	}

	option = {
		name = mittel.168.b
		ai_chance = {
			factor = 0
		}
		add_war_support = -0.10
	}
}

country_event = { #MAF peace deal
	id = mittel.169
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.169"}
	title = mittel.169.t
	desc = mittel.169.d
	picture = GFX_report_event_AUS_GFX_report_event_AUS_Ausgleich_dip_agree

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.169.a #Listen to the old guard, take northern Mozambique
		ai_chance = {
			factor = 50
		}
		every_state = {
			limit = {
				OR = {
					is_owned_by = POR
					owner = {
						is_subject_of = POR
					}
				}
					state = 544 #Zambezia
				}
			MAF = {
				transfer_state = PREV
			}
		}
		if = {
			limit = {
				SAF = {
					has_war_with = POR
				}
			}
			SAF = {
				country_event = mittel.174
			}
		}
		if = {
			limit = {
				ZAM = {
					has_war_with = POR
				}
			}
			ZAM = {
				clr_global_flag = MAF_POR_border_war
				white_peace = POR
			}
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.05
		}
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
		POR = {
			clr_country_flag = portugal_fights_MAF-SAF
			white_peace_with_ROOT = yes
		}
		POR = {
			clr_country_flag = portugal_fights_MAF-SAF
			white_peace_with_ROOT = yes
		}
		POR = {
			separate_peace_all_wars = yes
		}
		PAF = {
			separate_peace_all_wars = yes
		}
	}

	option = {
		name = mittel.169.b #Establish security zones in Mozambique and Angola
		ai_chance = {
			factor = 0
		}
		every_state = {
			limit = {
				OR = {
					is_owned_by = POR
					owner = {
						is_subject_of = POR
					}
				}
				OR = {
					state = 544 #Zambezia
					state = 954 #Tete
					state = 914 #Cabinda
					state = 916 #Congo Antigo
					state = 959 #Lunda-Chokwe Oriental
					state = 951 #Mavinga
				}
			}
			MAF = {
				transfer_state = PREV
			}
		}
		if = {
			limit = {
				SAF = {
					has_war_with = POR
				}
			}
			SAF = {
				country_event = mittel.174
			}
		}
		if = {
			limit = {
				ZAM = {
					has_war_with = POR
				}
			}
			ZAM = {
				clr_global_flag = MAF_POR_border_war
				white_peace = POR
			}
		}
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
		POR = {
			clr_country_flag = portugal_fights_MAF-SAF
			white_peace_with_ROOT = yes
		}
		POR = {
			separate_peace_all_wars = yes
		}
		PAF = {
			separate_peace_all_wars = yes
		}
	}

	option = {
		name = mittel.169.c #Portugal has forfeited their colonial holdings with their reckless behaviour, take it all!
	trigger = {
			PAF = {
				owns_state = 914
				owns_state = 916
				owns_state = 959
				owns_state = 951
				owns_state = 950
				owns_state = 540
				owns_state = 917
				owns_state = 705
			}
		}
		ai_chance = {
			factor = 0
		}
		every_state = {
			limit = {
				OR = {
					is_owned_by = POR
					owner = {
						is_subject_of = POR
					}
				}
				OR = {
					state = 544 #Zambezia
					state = 954 #Tete
					state = 914 #Cabinda
					state = 916 #Congo Antigo
					state = 959 #Lunda-Chokwe Oriental
					state = 951 #Mavinga
					state = 540 #Angola
					state = 917 #Lunda-Chokwe Ocidental
					state = 705 #São Tomé
				}
			}
			MAF = {
				transfer_state = PREV
			}
		}
		if = {
			limit = {
				SAF = {
					has_war_with = POR
				}
			}
			SAF = {
				country_event = mittel.174
			}
			else = {
				every_state = {
					limit = {
						OR = {
							is_owned_by = POR
							owner = {
								is_subject_of = POR
							}
						}
						state = 950 #Inhambane-Gaza
					}
					MAF = {
						transfer_state = PREV
					}
				}
			}
		}
		else = {
			every_state = {
				limit = {
					OR = {
						is_owned_by = POR
						owner = {
							is_subject_of = POR
						}
					}
					state = 738 #Swaziland
				}
				SAF = {
					transfer_state = PREV
				}
			}
		}
		if = {
			limit = {
				ZAM = {
					has_war_with = POR
				}
			}
			ZAM = {
				clr_global_flag = MAF_POR_border_war
				white_peace = POR
			}
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.05
		}
		add_stability = -0.1
		remove_ideas = MAF_border_shit_show
		clr_global_flag = MAF_POR_border_war
		POR = {
			clr_country_flag = portugal_fights_MAF-SAF
			white_peace_with_ROOT = yes
		}
		POR = {
			separate_peace_all_wars = yes
		}
		PAF = {
			separate_peace_all_wars = yes
		}
	}
}

country_event = {
	id = mittel.174
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.174"}
	title = mittel.174.t
	desc = mittel.174.d
	picture = GFX_report_event_AUS_Ausgleich_dip_agree

	is_triggered_only = yes

	option = {
		name = mittel.174
		if = {
			limit = {
				950 = {
					OR = {
						is_controlled_by = POR
						controller = {
							is_subject_of = POR
						}
					}
				}
			}
			transfer_state = 950
		}
		if = {
			limit = {
				has_war_with = POR
			}
			POR = {
				white_peace_with_ROOT = yes
			}
		}
		if = {
			limit = {
				ZAM = {
					has_war_with = POR
				}
			}
			ZAM = {
				clr_global_flag = MAF_POR_border_war
				white_peace = POR
			}
		}
		POR = {
			separate_peace_all_wars = yes
		}
		PAF = {
			separate_peace_all_wars = yes
		}
	}
}

country_event = {
	id = mittel.175
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.175"}

	hidden = yes
	fire_only_once = yes

	trigger = {
		tag = MAF
		has_global_flag = MAF_POR_border_war
		OR = {
			NOT = {
				has_war_with = POR
			}
			POR = { exists = no }
		}
	}

	immediate = {
		clr_global_flag = MAF_POR_border_war
		remove_ideas = MAF_border_shit_show
		if = {
			limit = {
				POR = {
					has_country_flag = portugal_fights_MAF-SAF
				}
			}
			POR = {
				clr_country_flag = portugal_fights_MAF-SAF
			}
		}
	}
}

country_event = { #Tanganyka peace Zanzibar?
	id = mittel.170
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.170"}
	title = mittel.170.t
	desc = mittel.170.d
	picture = GFX_report_event_AUS_Ausgleich_dip_agree

	fire_only_once = yes
trigger = {
		tag = ZZB
		controls_state = 905
		has_war_with = TZN
	}

	mean_time_to_happen = {
		days = 90
	}

	option = {
		name = mittel.170.a
		ai_chance = {
			factor = 100
		}
		TZN = {
			country_event = {
				id = mittel.171
				days = 1
			}
		}
	}

	option = {
		name = mittel.170.b
		ai_chance = {
			factor = 0
		}
		add_war_support = -0.10
	}
}

country_event = { #Tanganyka peace Zanzibar!
	id = mittel.171
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.171"}
	title = mittel.171.t
	desc = mittel.171.d
	picture = GFX_report_event_AUS_Ausgleich_dip_agree

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.171.a
		ai_chance = {
			factor = 100
		}
		ZZB = {
			white_peace_with_ROOT = yes
		}
		if = {
			limit = {
				ZZB = {
					owns_state = 970
				}
			}
		transfer_state = 970
		}
		add_stability = 0.10
	}

	option = {
		name = mittel.171.b
		ai_chance = {
			factor = 0
		}
		add_war_support = -0.10
		ZZB = {
			country_event = {
				id = mittel.172
				days = 1
			}
		}
	}
}

country_event = { #Tanganyka won't peace Zanzibar
	id = mittel.172
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.172"}
	title = mittel.172.t
	desc = mittel.172.d
	picture = GFX_report_event_AUS_Ausgleich_dip_agree

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.172.a
		add_stability = -0.05
	}
}

country_event = { #Germany accepts Goering...just
	id = mittel.173
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.173"}
	title = mittel.173.t
	desc = mittel.173.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.173.a
		add_stability = -0.10
	}
}

country_event = { #Budget event for 1937. Bypasses the focus automatically.
	id = mittel.176
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.176"}
	title = mittel.176.t
	desc = mittel.176.d
	picture = GFX_report_event_announcement
	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = mittel.176.a
		swap_ideas = {
			remove_idea = MAF_Black_Monday_MoreImproved
			add_idea = MAF_Black_Monday_1937_mils
		}
	}

	option = {
		name = mittel.176.b
		swap_ideas = {
			remove_idea = MAF_Black_Monday_MoreImproved
			add_idea = MAF_Black_Monday_1937_civs
		}
	}
}

country_event = { #Budget event for 1938. Bypasses the focus automatically.
	id = mittel.178
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.178"}
	title = mittel.178.t
	desc = mittel.178.d
	picture = GFX_report_event_announcement

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = mittel.178.a

		if = {
			limit = {
				has_idea = MAF_Black_Monday_1937_mils
			}
			swap_ideas = {
				remove_idea = MAF_Black_Monday_1937_mils
				add_idea = MAF_Black_Monday_1938_mils
			}
		}

		if = {
			limit = {
				has_idea = MAF_Black_Monday_1937_civs
			}
			swap_ideas = {
				remove_idea = MAF_Black_Monday_1937_civs
				add_idea = MAF_Black_Monday_1938_mils
			}
		}
	}

	option = {
		name = mittel.178.b

		if = {
			limit = {
				has_idea = MAF_Black_Monday_1937_mils
			}
			swap_ideas = {
				remove_idea = MAF_Black_Monday_1937_mils
				add_idea = MAF_Black_Monday_1938_civs
			}
		}

		if = {
			limit = {
				has_idea = MAF_Black_Monday_1937_civs
			}
			swap_ideas = {
				remove_idea = MAF_Black_Monday_1937_civs
				add_idea = MAF_Black_Monday_1938_civs
			}
		}
	}
}

country_event = { #Budget event for 1939. Bypasses the focus automatically.
	id = mittel.179
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.179"}
	title = mittel.179.t
	desc = mittel.179.d
	picture = GFX_report_event_announcement

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = mittel.179.a

		if = {
			limit = {
				has_idea = MAF_Black_Monday_1938_mils
			}
			swap_ideas = {
				remove_idea = MAF_Black_Monday_1938_mils
				add_idea = MAF_Black_Monday_1939
			}
		}
		if = {
			limit = {
				has_idea = MAF_Black_Monday_1938_civs
			}
			swap_ideas = {
				remove_idea = MAF_Black_Monday_1938_civs
				add_idea = MAF_Black_Monday_1939
			}
		}
	}
}

country_event = { #Budget event for post-war. Bypasses automatically.
	id = mittel.180
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.180"}
	title = mittel.180.t
	desc = mittel.180.d
	picture = GFX_report_event_announcement

	is_triggered_only = yes

	fire_only_once = yes

	option = {
		name = mittel.180.a
		swap_ideas = {
			remove_idea = MAF_Black_Monday_1939
			add_idea = MAF_Post_War
		}
	}
}

country_event = { #Goering's Speech
	id = mittel.181
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.181"}
	title = mittel.181.t
	desc = mittel.181.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.181.a
		country_event = {
				id = mittel.182
				days = 30
			}
	}
}

country_event = { #Africa goes quiet
	id = mittel.182
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.182"}
	title = mittel.182.t
	desc = mittel.182.d
	picture = GFX_report_event_MAF_tanganyika

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.182.a

		add_ideas = {
			MAF_Imminent_Collapse
		}
		custom_effect_tooltip = MAF_revolt_warning
		hidden_effect = {
			set_country_flag = MAF_GORING_SCREWEDUP
			country_event = {
				id = mittel.140
				days = 10
			}
			country_event = {
				id = mittel.141
				days = 10
			}
			country_event = {
				id = mittel.145
				days = 20
			}
			country_event = {
				id = mittel.147
				days = 30
			}
			country_event = {
				id = mittel.148
				days = 40
			}
			country_event = {
				id = mittel.151
				days = 50
			}
			country_event = {
				id = mittel.165
				days = 60
			}			
		}
	}
}

country_event = { #HIDDEN EVENT TO REMOVE COUNTRY FLAG
	id = mittel.183
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.183"}

	fire_only_once = yes
	hidden = yes

trigger = {
		has_idea = MAF_Imminent_Collapse
		tag = MAF
		OR = {
			has_war_with = UGA
			has_war_with = RWA
			has_war_with = BRD
			has_war_with = COG
			has_war_with = BRT
			has_war_with = BSC
			has_war_with = KOG
			has_war_with = TKE
			has_war_with = MZB
			has_war_with = KBR
			has_war_with = HAU
			has_war_with = DAH
			has_war_with = GHA
		}
	}

	mean_time_to_happen = {
		days = 3
	}

	option = {
		clr_country_flag = MAF_GORING_SCREWEDUP
	}
}


country_event = { #Peace in Afrika?
	id = mittel.184
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.184"}
	title = mittel.184.t
	desc = mittel.184.d
	picture = GFX_report_event_MAF_tanganyika

	fire_only_once = yes

	mean_time_to_happen = {
		days = 15
	}

trigger = {
		has_idea = MAF_Imminent_Collapse
		NOT = {
			has_country_flag = MAF_GORING_SCREWEDUP
		}
		NOT = {
			has_war_with = UGA
			has_war_with = RWA
			has_war_with = BRD
			has_war_with = COG
			has_war_with = BRT
			has_war_with = BSC
			has_war_with = KOG
			has_war_with = TKE
			has_war_with = MZB
			has_war_with = KBR
			has_war_with = HAU
			has_war_with = DAH
			has_war_with = GHA
		}
	}

	option = {
		name = mittel.184.a
		set_country_flag = MAF_sucsesfully_avoided_collapse
		remove_ideas = {
			MAF_Imminent_Collapse
		}
		add_stability = 0.05
	}
}

#Germany will hand territory it gains in southern Africa to MAF
country_event = {
	id = mittel.185
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.185"}
	title = mittel.185.t
	desc = mittel.185.d
	picture = GFX_report_event_MAF_tanganyika

trigger = {
		tag = GER
		country_exists = MAF
		MAF = {
			is_subject_of = GER
			has_capitulated = no
		}
		any_owned_state = {
			is_on_continent = africa
			has_variable = ambition_area_@MAF
			NOT = {
				is_core_of = GER
				is_claimed_by = GER
				is_core_of = SAF
				state = 268 #Djibouti
				state = 543 #Madagascar
				state = 708 #Comoros
				state = 861 #Berbera
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittel.185.a
		every_owned_state = {
			limit = {
				is_on_continent = africa
				has_variable = ambition_area_@MAF
				NOT = {
					is_core_of = GER
					is_claimed_by = GER
					is_core_of = SAF
					state = 268 #Djibouti
					state = 543 #Madagascar
					state = 708 #Comoros
					state = 861 #Berbera
				}
			}
			MAF = {
				transfer_state = PREV
			}
		}
	}
}

country_event = { #Big Collapse Event
	id = mittel.186
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.186"}
	title = mittel.186.t
	desc = mittel.186.d
	picture = GFX_report_event_SPR_civwar3
	
	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		NOT = {
			has_country_flag = MAF_no_collapse
		}
	}

	option = {
		name = mittel.186.a

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			NMB = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			MAF_collapse = yes
			NMB = {
				change_tag_from = MAF
			}
			NMB = {
				annex_country = {
					target = MAF
				}
			}
		}
	}

	option = {
		name = mittel.186.b

		country_event = mittel.1861
	}

	option = {
		name = mittel.186.c

		country_event = mittel.1860
	}

	option = {
		name = mittel.186.e

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			TZN = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			MAF_collapse = yes
			TZN = {
				change_tag_from = MAF
			}
			TZN = {
				annex_country = {
					target = MAF
				}
			}
		}
	}
}

country_event = { #Ostafrika Collapse Event
	id = mittel.1860
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.1860"}
	title = mittel.1860.t
	desc = mittel.1860.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = mittel.1860.a

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			BRD = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			MAF_collapse = yes
			BRD = {
				change_tag_from = MAF
			}
			BRD = {
				annex_country = {
					target = MAF
				}
			}
		}
	}

	option = {
		name = mittel.1860.b

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			RWA = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {	
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			MAF_collapse = yes
			RWA = {
				change_tag_from = MAF
			}
			RWA = {
				annex_country = {
					target = MAF
				}
			}
		}
	}
}

country_event = { #Zentralafrika Collapse Event
	id = mittel.1861
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.1861"}
	title = mittel.1861.t
	desc = mittel.1861.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = mittel.1861.a

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			CMR = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			MAF_collapse = yes
			CMR = {
				change_tag_from = MAF
			}
			CMR = {
				annex_country = {
					target = MAF
				}
			}
		}
	}
	
	
		
	option = {
		name = mittel.1861.f

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			KOG = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			MAF_collapse = yes
			KOG = {
				change_tag_from = MAF
			}
			KOG = {
				annex_country = {
					target = MAF
				}
			}
		}
	}
	
	option = {
		name = mittel.1861.g

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			CEA = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			MAF_collapse = yes
			CEA = {
				change_tag_from = MAF
			}
			CEA = {
				annex_country = {
					target = MAF
				}
			}
		}
	}
}


country_event = { #Fall Hellgrün
id = mittel.187
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.187"}
	title = mittel.187.t
	desc = mittel.187.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes

trigger = {
		has_government = national_populist
		tag = MAF
		OR = {
			has_stability < -0.75
			surrender_progress > 0.70
		}
		NOT = {
			has_global_flag = MAF_POR_border_war
			has_global_flag = MAF_is_already_collapsing
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_NKR
				}
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_DKG
				}
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_REFORM
				}
				has_game_rule = {
					rule = MAF_politic
					option = MAF_POLITIC_SOVEREIGN
				}
			GER = {
				has_completed_focus = GER_the_kanzler_and_the_statthalter
			}
		}
	}
	mean_time_to_happen = {
		days = 30
	}
	option = {
		name = mittel.187.a
		ai_chance = {
			factor = 50
		}
		custom_effect_tooltip = MAF_revolt_warning
		hidden_effect = {
	every_owned_state = {
		limit = {
			OR = {
				state = 546
				state = 918
				state = 965
			}
		}
		TZN = {
		transfer_state = PREV
		load_focus_tree = generic_focus
		add_to_array = { global.MAF_collapse_tags = THIS }
		}
	}
	set_global_flag = MAF_is_already_collapsing
	}
	if = {
		limit = {
			country_exists = TZN
			TZN = { NOT = { has_country_flag = MAF_already_exists } }
		}
		MAF = { TZN = { transfer_technology = yes } }
		TZN = {
			set_cosmetic_tag = TZN_GER
			add_state_core = 546
			add_state_core = 918
			add_state_core = 965
			load_oob = TZN
			load_oob = TZN_naval
		}
	}
	if = {
		limit = {
			country_exists = TZN
			country_exists = MAF
		}
		MAF = { declare_war_on = { target = TZN type = annex_everything } }
	}
	if = {
		limit = {
			country_exists = TZN
			country_exists = RWA
		}
		TZN = { declare_war_on = { target = RWA type = annex_everything } }
	}
	if = {
		limit = {
			country_exists = TZN
			country_exists = BRD
		}
		TZN = { declare_war_on = { target = BRD type = annex_everything } }
	}
	hidden_effect = {
	MAF = {
			country_event = {
				id = mittel.188
				days = 30
			}
		}
	MAF = {
			set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "DOAG Board of Directors"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_DOAG.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		set_country_flag = Hermann_von_Goering_dead
		random_unit_leader = {
			limit = { has_id = 198 }			
			remove_unit_leader = yes
		}
		add_ideas = MAF_Franz_Ritter_von_Epp_hog_pau
		}
		}
	}
	option = {
		name = mittel.187.b
		ai_chance = {
			factor = 50
		}
		custom_effect_tooltip = MAF_revolt_warning
		hidden_effect = {
	every_owned_state = {
		limit = {
			OR = {
				state = 546
				state = 918
				state = 965
			}
		}
		TZN = {
		transfer_state = PREV
		#load_focus_tree = TZN_Goeringia
		}
	}
	set_global_flag = MAF_is_already_collapsing
	}
	if = {
		limit = {
			country_exists = TZN
			TZN = { NOT = { has_country_flag = MAF_already_exists } }
		}
		MAF = { TZN = { transfer_technology = yes } }
		TZN = {
			set_cosmetic_tag = TZN_GER
			add_state_core = 546
			add_state_core = 918
			add_state_core = 965
			load_oob = TZN
			load_oob = TZN_naval
		}
	}
	if = {
		limit = {
			country_exists = TZN
			country_exists = MAF
		}
		MAF = { declare_war_on = { target = TZN type = annex_everything } }
	}
	if = {
		limit = {
			country_exists = TZN
			country_exists = RWA
		}
		TZN = { declare_war_on = { target = RWA type = annex_everything } }
	}
	if = {
		limit = {
			country_exists = TZN
			country_exists = BRD
		}
		TZN = { declare_war_on = { target = BRD type = annex_everything } }
	}
	effect_tooltip = {
			TZN = {
				change_tag_from = MAF
			}
		}
	hidden_effect = {
	TZN = {
			change_tag_from = MAF
		}
	MAF = {
			country_event = {
				id = mittel.188
				days = 20
			}
		}
	MAF = {
			set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "DOAG Board of Directors"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_DOAG.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
		remove_ideas_with_trait = head_of_government
		set_country_flag = Hermann_von_Goering_dead
		random_unit_leader = {
				limit = { has_id = 198}			
				remove_unit_leader = yes
			}
		add_ideas = MAF_Franz_Ritter_von_Epp_hog_pau
		}
		}
	}
	option = {
		name = mittel.187.c
		ai_chance = {
			factor = 0
			modifier = {
				factor = 0
				has_game_rule = { 
					rule = MAF_politic 
					option = MAF_POLITIC_COLLAPSE
				}
			}
		}
		add_political_power = -100
		}
	}
	
country_event = { #Big Collapse Event Goering fucked up bad edition
	id = mittel.188
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.188"}
	title = mittel.188.t
	desc = mittel.188.d
	picture = GFX_report_event_SPR_civwar3

	fire_only_once = yes
	is_triggered_only = yes
	
trigger = {
		NOT = {
			has_country_flag = MAF_no_collapse
		}
	}

	option = {
		name = mittel.186.a

		custom_effect_tooltip = MAF_collapse_tooltip

		effect_tooltip = {
			NMB = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_global_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			MAF_collapse = yes
			NMB = {
				change_tag_from = MAF
			}
			NMB = {
				annex_country = {
					target = MAF
				}
			}
		}
	}

	option = {
		name = mittel.186.b

		country_event = mittel.1861
	}

	option = {
		name = mittel.186.c

		country_event = mittel.1860
	}

	option = {
		name = mittel.186.e

		custom_effect_tooltip = MAF_collapse_tooltip


		effect_tooltip = {
			set_global_flag = Super_Event_Visible
			set_global_flag = MAF_Mittelafrika_Collapse
			every_country = {
				limit = {
					NOT = {
						is_ai = yes
						has_country_flag = KX_superevent_sounds_off
						has_global_flag = KX_superevent_total_off
					}
				}
				scoped_sound_effect = "superev_collapse"
			}
			TZN = {
				change_tag_from = MAF
			}
		}

		hidden_effect = {
			MAF_collapse = yes
			TZN = {
				change_tag_from = MAF
			}
			TZN = {
				annex_country = {
					target = MAF
				}
			}
		}
	}
	
	option = {
		name = mittel.186.f 
		ai_chance = {
			factor = 0
		}
		if = {
			limit = {
				has_country_leader = {
					name = "DOAG Board of Directors"
					ruling_only = yes
				}
			}
			create_country_leader = {
				name = "Franz Ritter von Epp"
				desc = "POLITICS_VON_EPP_DESC"
				picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Franz_Ritter_von_Epp.png"
				expire = "1.1.1"
				ideology = autocratic_colonial_govt_subtype
	
			}
			if = {	
				limit = { has_country_leader = { name = "Franz Ritter von Epp" ruling_only = yes } }
				set_country_leader_portrait = {
					portrait = "gfx/leaders/MAF/Portrait_Mittelafrika_Franz_Ritter_von_Epp.png"
				}
			}
		}
		add_political_power = -200
		
	}
}

country_event = { #Lobbying in Berlin
	id = mittel.189
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.189"}
	title = mittel.189.t
	desc = mittel.189.d
	picture = GFX_report_event_MAF_vorbeck

	is_triggered_only = yes

	option = {
		name = mittel.189.a

	}
}

country_event = { #Meeting with the Kaiser
	id = mittel.190
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.190"}
	title = mittel.190.t
	desc = mittel.190.d
	picture = GFX_report_event_MAF_vorbeck

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.190.a

	}
}

country_event = { #
	id = mittel.191
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.190"}
	title = mittel.191.t
	desc = mittel.191.d
	picture = GFX_report_event_MAF_vorbeck

	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 90
	}
	
trigger = {	
		tag = MAF
		GER = {
			has_idea = GER_Paul_von_Lettow_Vorbeck_hog_mli
		}
		has_country_leader = {
			name = "Paul von Lettow Vorbeck"
		}
	}

	option = {
		name = mittel.191.a

	}
}

country_event = { #Goring revealed
	id = mittel.192
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.192"}
	title = mittel.192.t
	desc = mittel.192.d
	picture = GFX_report_event_MAF_franzritter
	is_triggered_only = yes

	option = {
		name = mittel.192.a
		add_stability = -0.01
	}
	option = {
		name = mittel.192.b
		add_war_support = 0.01
	}
}

country_event = { #
	id = mittel.193
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.193"}
	title = mittel.193.t
	desc = mittel.193.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.193.a
		MAF = {
			country_event = {
				id = mittel.194
				days = 2
			}
		}
	}
	
	option = { 
		ai_chance = {
			factor = 0
		}
		name = mittel.193.b
		MAF = {
			country_event = {
				id = mittel.195
				days = 2
			}
		}
	}
}

country_event = { #
	id = mittel.194
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.194"}
	title = mittel.194.t
	desc = mittel.194.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.194.a
		add_political_power = 10
	}
}

country_event = { #
	id = mittel.195
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.195"}
	title = mittel.195.t
	desc = mittel.195.d
	picture = GFX_report_event_MAF_schnee

	fire_only_once = yes
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.195.a
		add_political_power = -10
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		add_ideas = MAF_Rudolf_Asmis_hog_ade
	}
}

country_event = { #
	id = mittel.196
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.196"}
	title = mittel.196.t
	desc = mittel.196.d
	picture = GFX_report_event_MAF_schnee

	fire_only_once = yes
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.196.a
		MAF = {
			country_event = {
				id = mittel.197
				days = 2
			}
		}
	}
	
	option = { 
		ai_chance = {
			factor = 0
		}
		name = mittel.196.b
		MAF = {
			country_event = {
				id = mittel.198
				days = 2
			}
		}
	}
}

country_event = { #
	id = mittel.197
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.197"}
	title = mittel.197.t
	desc = mittel.197.d
	picture = GFX_report_event_MAF_schnee

	fire_only_once = yes
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.197.a
		add_political_power = 10
	}
}

country_event = { #
	id = mittel.198
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.198"}
	title = mittel.198.t
	desc = mittel.198.d
	picture = GFX_report_event_MAF_goering

	fire_only_once = yes
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.198.a
		add_political_power = -10
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		add_ideas = MAF_Reinhard_Heydrich_hog_npo
		create_country_leader = {
			name = "Hermann Göring"
			desc = "POLITICS_GOERING_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Hermann_Goering_Governor.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
	}
}

country_event = { #Death of Sabac
	id = mittel.199
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittel.199"}
	title = mittel.199.t
	desc = mittel.199.d
	picture = GFX_report_event_MAF_sabac
	is_triggered_only = yes

	option = { 
		ai_chance = {
			factor = 100
		}
		name = mittel.199.a
		
	}
}

#########################################
###		  KENYA CONTENT		  ###
#########################################

country_event = { ##Kenya takes issue with our actions
	id = mittel.410
	title = mittel.410.t
	desc = mittel.410.d
	picture = GFX_report_event_governorhaus
trigger = {
		547 = { is_owned_by_ROOT_or_subject = yes 
		} 
	}

	is_triggered_only = yes

	option = { ##we should do something about this immediately.
		log = "[GetLogInfo]: event mittel.410 option mittel.410.a"
		name = mittel.410.a

		hidden_effect = {
			KEN = {
				country_event = { id = mittel.411	days = 2 }
			}
		}
	}

	option = { ##this will blow over.
		log = "[GetLogInfo]: event mittel.410 option mittel.410.b"
		name = mittel.410.b

		hidden_effect = {
			KEN = {
				country_event = { id = mittel.411	days = 22 }
			}
		}
	}
}

country_event = { ##Kenya response
	id = mittel.411
	title = mittel.411.t
	desc = mittel.411.d
	picture = GFX_report_event_governorhaus
trigger = {
		547 = { is_owned_by_ROOT_or_subject = yes }
	}

	is_triggered_only = yes

	option = { ##Demand compensation
		log = "[GetLogInfo]: event mittel.411 option mittel.411.a"
		name = mittel.411.a
		hidden_effect = {
		MAF = {
			country_event = { id = mittel.412 days = 2 }
			}
		}
	}

	option = { ##do nothing
		log = "[GetLogInfo]: event mittel.411 option mittel.411.b"
		name = mittel.411.b
		ai_chance = {
			factor = 0
		}
	}
}

country_event = { ##Kenya's demands
	id = mittel.412
	title = mittel.412.t
	desc = mittel.412.d
	picture = GFX_report_event_governorhaus
	trigger = {547 = { is_owned_by_ROOT_or_subject = yes } }

	is_triggered_only = yes

	option = { ##fine.
		log = "[GetLogInfo]: event mittel.412 option mittel.412.a"
		name = mittel.412.a
		ai_chance = {
			factor = 10
		}
		add_political_power = -25
	}

	option = { ##inacceptable.
		log = "[GetLogInfo]: event mittel.412 option mittel.412.b"
		name = mittel.412.b
		ai_chance = {
			factor = 90
		}	
		hidden_effect = {
			country_event = { id = mittel.414	days = 15 }
		}
	}
}

country_event = { ##Kenya infuriated
	id = mittel.413
	title = mittel.413.t
	desc = mittel.413.d
	picture = GFX_report_event_governorhaus
trigger = {
		547 = { is_owned_by_ROOT_or_subject = yes }
	}

	is_triggered_only = yes

	option = { ##Mobilise!
		log = "[GetLogInfo]: event mittel.413 option mittel.413.a"
		name = mittel.413.a
		ai_chance = {
			factor = 80
		}	
		add_stability = -0.01
		add_war_support = 0.03
		hidden_effect = {
		MAF = {
			country_event = { id = mittel.414	days = 2 }
			}
		}
	}

	option = { ##do nothing
		log = "[GetLogInfo]: event mittel.413 option mittel.413.b"
		name = mittel.413.b
		ai_chance = {
			factor = 0
		}	
	}
}

country_event = { ##Kenya mobilises
	id = mittel.414
	title = mittel.414.t
	desc = mittel.414.d
	picture = GFX_report_event_governorhaus

	trigger = {547 = { is_owned_by_ROOT_or_subject = yes } }

	is_triggered_only = yes

	option = { ##fine, give them what they want.
		log = "[GetLogInfo]: event mittel.414 option mittel.414.a"
		name = mittel.414.a
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			every_country = {
				limit = {
					OR = {
					tag = GER
					tag = CMR
					tag = NMB
					tag = CEA
					tag = KOG
					tag = COG
					tag = KTG
					tag = ZAM
					tag = CIV
					tag = GHA
					tag = NGR
					tag = KEN
					tag = UGA
					tag = BSC
					tag = MLW
					tag = MAG
					tag = ZZB
					tag = PAF
					tag = POR
					tag = SFA
					tag = SIE
					tag = LIB
					tag = NFA
					tag = SOM
					tag = ETH
					tag = DJI
					}
				}
				country_event = {
					id = mittel.417 #Standoff at Taveta ends peacefully
					days = 1
				}
			}
		}
		add_political_power = -40
	}

	option = { ##two can play that game.
		log = "[GetLogInfo]: event mittel.414 option mittel.414.b"
		name = mittel.414.b
		add_war_support = 0.03
		add_stability = -0.01
		ai_chance = {
			factor = 80
		}	
		hidden_effect = {
			KEN = { country_event = { id = mittel.415	days = 1 } }
		}
		hidden_effect = {
			GER = { country_event = { id = mittel.416	days = 4 } }
		}
	}
}

country_event = { ##Kenya response to MAF mobilising
	id = mittel.415
	title = mittel.415.t
	desc = mittel.415.d
	picture = GFX_report_event_governorhaus
trigger = {
		547 = { is_owned_by_ROOT_or_subject = yes }
	}

	is_triggered_only = yes

	option = { ##Mobilise!
		log = "[GetLogInfo]: event mittel.415 option mittel.415.a"
		name = mittel.415.a
		ai_chance = {
			factor = 35
		}
			if = {
				limit = { is_subject = yes }
				overlord = {
					set_autonomy = { target = ROOT autonomous_state = autonomy_free }
				}
			}
			if = {
				limit = { is_in_faction = yes }
				leave_faction = yes
			}
			GER = { remove_from_faction = KEN }
			separate_peace_all_wars = yes
		hidden_effect = {
			MAF = {
				country_event = {
					id = kenia.241
					days = 3
					}
				}
			}
		add_stability = -0.05
	}

	option = { ##do nothing
		log = "[GetLogInfo]: event mittel.415 option mittel.415.b"
		name = mittel.415.b
		ai_chance = {
			factor = 65
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.02
		}
		add_political_power = -25
		hidden_effect = {
			every_country = {
				limit = {
					OR = {
					tag = GER
					tag = CMR
					tag = NMB
					tag = CEA
					tag = KOG
					tag = COG
					tag = KTG
					tag = ZAM
					tag = CIV
					tag = GHA
					tag = NGR
					tag = MAF
					tag = UGA
					tag = BSC
					tag = MLW
					tag = MAG
					tag = ZZB
					tag = PAF
					tag = POR
					tag = SFA
					tag = SIE
					tag = LIB
					tag = NFA
					tag = SOM
					tag = ETH
					tag = DJI
					}
				}
				country_event = {
					id = mittel.417 #Standoff at Taveta ends peacefully
					days = 1
				}
			}
		}
	}
}

country_event = { ##GER: MAF is mobilising
	id = mittel.416
	title = mittel.416.t
	desc = mittel.416.d
	picture = GFX_report_event_governorhaus

	trigger = {547 = { is_owned_by_ROOT_or_subject = yes } }

	is_triggered_only = yes

	option = { ##tell them to stand down immediately.
		log = "[GetLogInfo]: event mittel.416 option mittel.416.a"
		name = mittel.416.a
		MAF = { country_event = { id = mittel.418	days = 2 } }
	}
}

country_event = { ##Kenya backs down over crisis
	id = mittel.417
	title = mittel.417.t
	desc = mittel.417.d
	picture = GFX_report_event_governorhaus

	is_triggered_only = yes

	option = { ##Phew
		log = "[GetLogInfo]: event mittel.417 option mittel.417.a"
		name = mittel.417.a
		add_political_power = 5
	}
}

country_event = { ##MAF: GER is telling us to stand down
	id = mittel.418
	title = mittel.418.t
	desc = mittel.418.d
	picture = GFX_report_event_governorhaus

	trigger = {547 = { is_owned_by_ROOT_or_subject = yes } }

	is_triggered_only = yes

	option = { ##fine.
		log = "[GetLogInfo]: event mittel.418 option mittel.418.a"
		name = mittel.418.a
		hidden_effect = {
			every_country = {
				limit = {
					OR = {
					tag = GER
					tag = CMR
					tag = NMB
					tag = CEA
					tag = KOG
					tag = COG
					tag = KTG
					tag = ZAM
					tag = KEN
					tag = GHA
					tag = NGR
					tag = MAF
					tag = UGA
					tag = BSC
					tag = MLW
					tag = MAG
					tag = ZZB
					tag = PAF
					tag = POR
					tag = SFA
					tag = SIE
					tag = LIB
					tag = NFA
					tag = SOM
					tag = ETH
					tag = DJI
					}
				}
				country_event = {
					id = mittel.417 #Standoff at Taveta ends peacefully
					days = 1
				}
			}
		}
		add_political_power = -20
		add_stability = -0.01
	}
}

country_event = { ###Goering becoming King of Afrika
	id = mittel.1188
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.1188" }
	title = mittel.1188.t
	desc = mittel.1188.d
	picture = GFX_report_event_MAF_goering

trigger = {
		tag = MAF
		has_government = national_populist
		has_global_flag = MAF_FREEDOM_FLAG
		NOT = {
			is_subject_of = GER
		}
	}
	
	fire_only_once = yes

	option = {
		name = mittel.188.a
		add_stability = 0.05
	}
	option = {
		name = mittel.1188.b
		add_stability = -0.05
		set_cosmetic_tag = AFK
		hidden_effect = {
			create_country_leader = {
				name = "Hermann I"
				desc = "POLITICS_GOERING_DESC"
				picture = "gfx/leaders/MAF/Portrait_Mittelafrika_King_Goering.png"
				expire = "1.1.1"
				ideology = natpop_colonial_govt_subtype
				traits = { hog_supreme_ruler }
			}
		}
	}
}

country_event = { #Erwin Rommel
	id = mittel.1189
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittel.189" }
	title = mittel.1189.t
	desc = mittel.1189.d
	picture = GFX_report_event_MAF_erwin_rommel

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = mittel.1189.a
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		create_country_leader = {
			name = "Erwin Rommel"
			desc = "POLITICS_PAPMEL_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Erwin_Rommel_kr.png"
			expire = "1.1.1"
			ideology = colonial_govt_subtype
		}
		remove_all_ministers = yes
		add_ideas = MAF_Erwin_Rommel_hog_ade
		add_ideas = MAF_Ernst_Juenger_for_pau
		add_ideas = MAF_August_Stauch_eco_ade
		add_ideas = MAF_Hermann_Detzner_sec_ade
		hidden_effect = {
			every_country = {
				if = {
					limit = {
						NOT = {
							tag = MAF
						}
						is_afrikan_tag = yes
						}
					country_event = sharedafrika.34
				}
			}
		}
	}
}

###British and Flandro-Wallonian Events (Informal Empire System) ###
#Credit to Flamefang

country_event = { #British Influence
	id = mittelpolitic.1
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittelpolitic.1"}
	title = mittelpolitic.1.t
	desc = mittelpolitic.1.d
	picture = GFX_report_event_saf_soldiers

trigger = {
		tag = MAF
		NOT = {
			has_idea = MAF_British_Influence
			has_country_flag = MAF_noAnglos
		}
		market_liberal > 0.25
		market_liberal < 0.35
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittelpolitic.1.a
		if = {
			limit = {
				has_idea = MAF_Strong_British_Influence
			}
			swap_ideas = {
				remove_idea = MAF_Strong_British_Influence
				add_idea = MAF_British_Influence
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = MAF_Strong_British_Influence
				}
			}
			add_ideas = MAF_British_Influence
		}
	}
}

country_event = { #Strong British Influence
	id = mittelpolitic.2
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittelpolitic.2"}
	title = mittelpolitic.2.t
	desc = mittelpolitic.2.d
	picture = GFX_report_event_saf_soldiers

trigger = {
		tag = MAF
		NOT = {
			has_idea = MAF_Strong_British_Influence
			has_country_flag = MAF_noAnglos
		}
		market_liberal > 0.35
		market_liberal < 0.45
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittelpolitic.2.a
		if = {
			limit = {
				has_idea = MAF_British_Influence
			}
			swap_ideas = {
				remove_idea = MAF_British_Influence
				add_idea = MAF_Strong_British_Influence
			}
		}
		if = {
			limit = {
				has_idea = MAF_British_Condominium
			}
			swap_ideas = {
				remove_idea = MAF_British_Condominium
				add_idea = MAF_Strong_British_Influence
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = MAF_British_Influence
					has_idea = MAF_British_Condominium
				}
			}
			add_ideas = MAF_Strong_British_Influence
		}
	}
}

country_event = { #British Condominium
	id = mittelpolitic.3
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittelpolitic.3"}
	title = mittelpolitic.3.t
	desc = mittelpolitic.3.d
	picture = GFX_report_event_saf_soldiers

trigger = {
		tag = MAF
		NOT = {
			has_idea = MAF_British_Condominium
			has_country_flag = MAF_noAnglos
		}
		market_liberal > 0.45
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittelpolitic.3.a
		if = {
			limit = {
				has_idea = MAF_Strong_British_Influence
			}
			swap_ideas = {
				remove_idea = MAF_Strong_British_Influence
				add_idea = MAF_British_Condominium
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = MAF_Strong_British_Influence
				}
			}
			add_ideas = MAF_British_Condominium
		}
	}
}

country_event = { #Flandro-Wallonian Influence
	id = mittelpolitic.4
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittelpolitic.4"}
	title = mittelpolitic.4.t
	desc = mittelpolitic.4.d
	picture = GFX_Parlement2

trigger = {
		tag = MAF
		NOT = {
			has_idea = MAF_Flandro-Wallonian_Influence
		}
		social_liberal > 0.25
		social_liberal < 0.35
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittelpolitic.4.a
		if = {
			limit = {
				has_idea = MAF_Strong_Flandro-Wallonian_Influence
			}
			swap_ideas = {
				remove_idea = MAF_Strong_Flandro-Wallonian_Influence
				add_idea = MAF_Flandro-Wallonian_Influence
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = MAF_Strong_Flandro-Wallonian_Influence
				}
			}
			add_ideas = MAF_Flandro-Wallonian_Influence
		}
	}
}

country_event = { #Strong British Influence
	id = mittelpolitic.5
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittelpolitic.5"}
	title = mittelpolitic.5.t
	desc = mittelpolitic.5.d
	picture = GFX_Parlement2

trigger = {
		tag = MAF
		NOT = {
			has_idea = MAF_Strong_Flandro-Wallonian_Influence
		}
		social_liberal > 0.35
		social_liberal < 0.45
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittelpolitic.5.a
		if = {
			limit = {
				has_idea = MAF_Flandro-Wallonian_Influence
			}
			swap_ideas = {
				remove_idea = MAF_Flandro-Wallonian_Influence
				add_idea = MAF_Strong_Flandro-Wallonian_Influence
			}
		}
		if = {
			limit = {
				has_idea = MAF_Flandro-Wallonian_Condominium
			}
			swap_ideas = {
				remove_idea = MAF_Flandro-Wallonian_Condominium
				add_idea = MAF_Strong_Flandro-Wallonian_Influence
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = MAF_Flandro-Wallonian_Influence
					has_idea = MAF_Flandro-Wallonian_Condominium
				}
			}
			add_ideas = MAF_Strong_Flandro-Wallonian_Influence
		}
	}
}

country_event = { #British Condominium
	id = mittelpolitic.6
	immediate = {log = "[GetDateText]: [Root.GetName]: event mittelpolitic.6"}
	title = mittelpolitic.6.t
	desc = mittelpolitic.6.d
	picture = GFX_Parlement2

trigger = {
		tag = MAF
		NOT = {
			has_idea = MAF_Flandro-Wallonian_Condominium
		}
		market_liberal > 0.45
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = mittelpolitic.6.a
		if = {
			limit = {
				has_idea = MAF_Strong_Flandro-Wallonian_Influence
			}
			swap_ideas = {
				remove_idea = MAF_Strong_Flandro-Wallonian_Influence
				add_idea = MAF_Flandro-Wallonian_Condominium
			}
		}
		if = {
			limit = {
				NOT = {
					has_idea = MAF_Strong_Flandro-Wallonian_Influence
				}
			}
			add_ideas = MAF_Flandro-Wallonian_Condominium
		}
	}
}


country_event = { #Solf Dies
	id = mittelpolitic.7
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event mittelpolitic.7" 
		hidden_effect = {
			create_country_leader = {
				name = "Heinrich Schnee"
				desc = "POLITICS_SCHNEE_DESC"
				picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Heinrich_Schnee.png"
				expire = "1.1.1"
				ideology = colonial_govt_subtype
	
			}
			country_event = {
				id = mittelpolitic.703
				days = 3
			}
		}
	}
	title = mittelpolitic.7.t
	desc = mittelpolitic.7.d
	picture = GFX_report_event_MAF_schnee
	is_triggered_only = yes
	
	option = {
		name = mittelpolitic.7.a
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = no
		}
		add_ideas = MAF_Reinhard_Heydrich_hog_npo
		create_country_leader = {
			name = "Hermann Göring"
			desc = "POLITICS_GOERING_DESC"
			picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Hermann_Goering_Governor.png"
			expire = "1.1.1"
			ideology = autocratic_colonial_govt_subtype

		}
		GER = {
			country_event = {
				id = mittel.193
				days = 6
			}
		}
	}
	option = {
		name = mittelpolitic.7.b
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = no
		}
		add_ideas = MAF_Rudolf_Asmis_hog_ade
		GER = {
			country_event = {
				id = mittel.196
				days = 6
			}
		}
	}
}

country_event = { #NKR intro
	id = mittelpolitic.700
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.700" }
	title = mittelpolitic.700.t
	desc = mittelpolitic.700.d
	picture = GFX_report_event_MAF_franzritter
	is_triggered_only = yes
	
	
	option = {
		name = mittelpolitic.700.a
		trigger = {
			tag = MAF
		}
		if = {
			limit = {
				tag = MAF
				}
		add_ideas = MAF_old_new_guard_divide
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.02
		}
		add_popularity = {
			ideology = national_populist
			popularity = 0.02
			}
		}
	}
	
	option = {
		name = mittelpolitic.700.b
		trigger = {
			NOT = {
				tag = MAF
			}
		}
		add_stability = -0.01
	}
}

country_event = { #DKG intro
	id = mittelpolitic.701
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.701" }
	title = mittelpolitic.701.t
	desc = mittelpolitic.701.d
	picture = GFX_report_event_MAF_schnee
	is_triggered_only = yes
	
	
	option = {
		name = mittelpolitic.701.a
		trigger = {
			tag = MAF
		}
		if = {
			limit = {
				tag = MAF
				}
			add_stability = 0.01
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = 0.02
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.01
			}
		}
	}
	option = {
		name = mittelpolitic.701.b
		trigger = {
			NOT = { tag = MAF }
		}
		add_stability = 0.01
	}
}

country_event = { #Collapse mechanic mentioned
	id = mittelpolitic.702
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.702" }
	title = mittelpolitic.702.t
	desc = mittelpolitic.702.d
	picture = GFX_report_event_MAF_tanganyika
	is_triggered_only = yes
	
	option = {
		name = mittelpolitic.702.a
		if = {
			limit = {
				tag = MAF
				}
		add_stability = 0.01
		}
		custom_effect_tooltip = mittelcollapsetooltipger
	}
}

country_event = { #f for solf
	id = mittelpolitic.703
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.703" }
	title = mittelpolitic.703.t
	desc = mittelpolitic.703.d
	picture = GFX_report_event_MAF_solf
	is_triggered_only = yes
	
	
	option = {
		name = mittelpolitic.703.a
		add_political_power = 5
	}
}

country_event = { #MAF is doing Shenanigans 
	id = mittelpolitic.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.8" }
	title = mittelpolitic.8.t
	desc = mittelpolitic.8.d
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #Fuck them they broke their deal
		name = mittelpolitic.8.a
	trigger = {
			MAF = {
				check_variable = { MAF_kenya_uganda_centralized_var < 15 }
				check_variable = { MAF_nigeria_centralized_var < 15 }
			}
		}
		overlord = {
			set_autonomy = {
				target = ROOT
				autonomous_state = autonomy_free
			}
		}
		CAN = {
			add_to_faction = ROOT
		}
		if = {
			limit = {
				NOT = { has_idea = GBR_Colonial_Government }
			}
			add_ideas = GBR_Colonial_Government
		}
	}
	
	option = { #eh
		name = mittelpolitic.8.b
		
	}
}

country_event = { #MAF is doing Shenanigans 
	id = mittelpolitic.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.9" }
	title = mittelpolitic.9.t
	desc = {
		text = mittelpolitic.9.d.madagascar
	trigger = {
			tag = MAG
		}
	}
	desc = {
		text = mittelpolitic.9.d.westafrika
	trigger = {
			tag = CIV
		}
	}
	desc = {
		text = mittelpolitic.9.d.zambia
	trigger = {
			tag = ZAM
		}
	}
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #Tell Berlin and stop this tomfoolery
		name = mittelpolitic.9.a
		GER = {
			country_event = {
				id = mittelpolitic.10
				days = 5
			}
		}
		if = {
			limit = {	
				tag = CIV
			}
			set_global_flag = CIV_HELP
		}
		if = {
			limit = {	
				tag = MAG
			}
			set_global_flag = MAG_HELP
		}
		if = {
			limit = {	
				tag = ZAM
			}
			set_global_flag = ZAM_HELP
		}
	}
	
	option = { #eh
		name = mittelpolitic.9.b
		
	}
}

country_event = { #Do we stop Mittelafrika from doing stuff
	id = mittelpolitic.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.10" }
	title = mittelpolitic.10.t
	desc = mittelpolitic.10.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #Sure
		name = mittelpolitic.10.a
		if = {
			limit = {
				has_global_flag = CIV_HELP
			}
			CIV = {
				country_event = {
					id = mittelpolitic.11
					days = 2
				}
			}
		}
		if = {
			limit = {
				has_global_flag = ZAM_HELP
			}
			ZAM = {
				country_event = {
					id = mittelpolitic.11
					days = 2
				}
			}
		}
		if = {
			limit = {
				has_global_flag = MAG_HELP
			}
			ZAM = {
				country_event = {
					id = mittelpolitic.11
					days = 2
				}
			}
		}
	}
	
	option = { #eh
		name = mittelpolitic.10.b
		if = {
			limit = {
				has_global_flag = CIV_HELP
			}
			CIV = {
				country_event = {
					id = mittelpolitic.14 
					days = 2
				}
			}
		}
		if = {
			limit = {
				has_global_flag = ZAM_HELP
			}
			ZAM = {
				country_event = {
					id = mittelpolitic.14
					days = 2
				}
			}
		}
		if = {
			limit = {
				has_global_flag = MAG_HELP
			}
			ZAM = {
				country_event = {
					id = mittelpolitic.14
					days = 2
				}
			}
		}
	}
}

country_event = { #Germany Helps us - CIV
	id = mittelpolitic.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.11" }
	title = mittelpolitic.11.t
	desc = mittelpolitic.11.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #yay
		name = mittelpolitic.11.a
		overlord = {
			set_autonomy = {
				target = ROOT
				autonomous_state = autonomy_free
			}
		}
		get_current_government_type = yes
		GER = {
			set_autonomy = {
				target = CIV
				autonomous_state = kr_default_puppet
			}
		}
		restore_previous_government_type = yes
	}
}

country_event = { #Germany Helps us - ZAM
	id = mittelpolitic.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.12" }
	title = mittelpolitic.12.t
	desc = mittelpolitic.12.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #yay
		name = mittelpolitic.12.a
		overlord = {
			set_autonomy = {
				target = ROOT
				autonomous_state = autonomy_free
			}
		}
		get_current_government_type = yes
		GER = {
			set_autonomy = {
				target = ZAM
				autonomous_state = kr_default_puppet
			}
		}
		restore_previous_government_type = yes
	}
}

country_event = { #Germany Helps us - MAG
	id = mittelpolitic.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.13" }
	title = mittelpolitic.13.t
	desc = mittelpolitic.13.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #yay
		name = mittelpolitic.13.a
		overlord = {
			set_autonomy = {
				target = ROOT
				autonomous_state = autonomy_free
			}
		}
		get_current_government_type = yes
		GER = {
			set_autonomy = {
				target = MAG
				autonomous_state = kr_default_puppet
			}
		}
		restore_previous_government_type = yes
	}
}

country_event = { #Germany tells us to get bent
	id = mittelpolitic.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.14" }
	title = mittelpolitic.14.t
	desc = mittelpolitic.14.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #damn
		name = mittelpolitic.14.a
		
	}
}

country_event = { #maf is doing stuff
	id = mittelpolitic.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.15" }
	title = mittelpolitic.15.t
	desc = {
		text = mittelpolitic.15.d.kenya
	trigger = {
			tag = KEN
		}
	}
	desc = {
		text = mittelpolitic.15.d.nigeria
	trigger = {
			tag = NGR
		}
	}
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #(clueless)
		name = mittelpolitic.15.a
		ai_chance = {
			factor = 90
		}
		hidden_effect = {
			country_event = {
				id = mittelpolitic.15
				days = 4
			}
		}
	}
	
	option = { #fuck off m8
		name = mittelpolitic.15.a
		ai_chance = {
			factor = 10
		}
	trigger = {
			MAF = {
				check_variable = { MAF_kenya_uganda_centralized_var < 15 }
				check_variable = { MAF_nigeria_centralized_var < 15 }
			}
		}
	}
}

country_event = { #maf is doing stuff
	id = mittelpolitic.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.16" }
	title = mittelpolitic.16.t
	desc = mittelpolitic.16.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #(clueless)
		name = mittelpolitic.16.a
		if = {
			limit = {
				tag = NGR
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.3
			}
			set_politics = {
				ruling_party = paternal_autocrat
				elections_allowed = no
			}
			set_party_name = {
				ideology = paternal_autocrat
				name = MAF_ANGLO_authoritarian_democrat_party
				long_name = MAF_ANGLO_authoritarian_democrat_party_long
			}
			set_cosmetic_tag = NGR_GER_RK
			NGR = { get_current_government_type = yes }
			MAF = {
				set_autonomy = {
					target = NGR
					autonomous_state = kx_brit_mil_protectorate
				}
			}
			NGR = {
				restore_previous_government_type = yes
			}
		}
		if = {
			limit = {
				tag = UGA
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.3
			}
			create_country_leader = {
				name = "Kai-Uwe von Hassel"
				picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Kai_Uwe_von_Hassel.png"
				expire = "1.1.1"
				ideology = autocratic_colonial_govt_subtype
	
			}
			set_politics = {
				ruling_party = paternal_autocrat
				elections_allowed = no
			}
			set_party_name = {
				ideology = paternal_autocrat
				name = MAF_ANGLO_authoritarian_democrat_party
				long_name = MAF_ANGLO_authoritarian_democrat_party_long
			}
			UGA = { get_current_government_type = yes }
			MAF = {
				set_autonomy = {
					target = UGA
					autonomous_state = kx_brit_mil_protectorate
				}
			}
			UGA = {
				restore_previous_government_type = yes
			}
		}
		if = {
			limit = {
				tag = KEN
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.3
			}
			create_country_leader = {
				name = "Kai-Uwe von Hassel"
				picture = "gfx/leaders/MAF/Portrait_Mittelafrika_Kai_Uwe_von_Hassel.png"
				expire = "1.1.1"
				ideology = autocratic_colonial_govt_subtype
	
			}
			set_politics = {
				ruling_party = paternal_autocrat
				elections_allowed = no
			}
			set_party_name = {
				ideology = paternal_autocrat
				name = MAF_ANGLO_authoritarian_democrat_party
				long_name = MAF_ANGLO_authoritarian_democrat_party_long
			}
			KEN = { get_current_government_type = yes }
			MAF = {
				set_autonomy = {
					target = KEN
					autonomous_state = kx_brit_mil_protectorate
				}
			}
			KEN = {
				restore_previous_government_type = yes
			}
		}
	}
}

country_event = { #Do we try stop Mittelafrika from doing stuff
	id = mittelpolitic.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.17" }
	title = mittelpolitic.17.t
	desc = mittelpolitic.17.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #Sure
		name = mittelpolitic.17.a
		GER = {
			country_event = {
				id = mittelpolitic.18
				days = 2
			}
		}
		
	}
	
	option = { #eh
		name = mittelpolitic.17.b
	
	}
}

country_event = { #Do we stop Mittelafrika from doing stuff
	id = mittelpolitic.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.18" }
	title = mittelpolitic.18.t
	desc = mittelpolitic.18.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #Sure
		name = mittelpolitic.18.a
		COG = {
			country_event = {
				id = mittelpolitic.18
				days = 2
			}
		}
		
	}
	
	option = { #eh
		name = mittelpolitic.18.b
		COG = {
			country_event = {
				id = mittelpolitic.14
				days = 2
			}
		}
	}
}

country_event = { #Germany Helps us - COG
	id = mittelpolitic.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.19" }
	title = mittelpolitic.19.t
	desc = mittelpolitic.19.d
	
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #yay
		name = mittelpolitic.19.a
		overlord = {
			set_autonomy = {
				target = ROOT
				autonomous_state = autonomy_free
			}
		}
		get_current_government_type = yes
		GER = {
			set_autonomy = {
				target = COG
				autonomous_state = kr_default_puppet
			}
		}
		restore_previous_government_type = yes
	}
}

country_event = { #britains back and they want their colonies back
	id = mittelpolitic.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.20" }
	title = mittelpolitic.20.t
	desc = mittelpolitic.20.d
	
	picture = GFX_report_event_GEA_coltroops
	
	fire_only_once = yes
	
trigger = {
		tag = MAF
		country_exists = GBR
		GBR = {
			has_completed_focus = GBR_end_of_bra
		}
	}
	
	option = { #it only ever was temporary
		name = mittelpolitic.20.a
	trigger = {
			NGR = {
				NOT = {
					has_country_flag = MAF_its_just_been_revoked
				}
			}
			UGA = {
				NOT = {
					has_country_flag = MAF_its_just_been_revoked
				}
			}
		}
		KEN = {
			overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			ENT = {
				add_to_faction = KEN
			}
			if = {
				limit = {
					NOT = { has_idea = GBR_Colonial_Government }
				}
				add_ideas = GBR_Colonial_Government
			}
		}
		UGA = {
			overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			ENT = {
				add_to_faction = UGA
			}
			if = {
				limit = {
					NOT = { has_idea = GBR_Colonial_Government }
				}
				add_ideas = GBR_Colonial_Government
			}
		}
		NGR = {
			overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			ENT = {
				add_to_faction = NGR
			}
			if = {
				limit = {
					NOT = { has_idea = GBR_Colonial_Government }
				}
				add_ideas = GBR_Colonial_Government
			}
		}
		GHA = {
			overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			ENT = {
				add_to_faction = GHA
			}
			if = {
				limit = {
					NOT = { has_idea = GBR_Colonial_Government }
				}
				add_ideas = GBR_Colonial_Government
			}
		}
		MLW = {
			overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			ENT = {
				add_to_faction = GHA
			}
			if = {
				limit = {
					NOT = { has_idea = GBR_Colonial_Government }
				}
				add_ideas = GBR_Colonial_Government
			}
		}
		BSC = {
			overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			ENT = {
				add_to_faction = BSC
			}
			if = {
				limit = {
					NOT = { has_idea = GBR_Colonial_Government }
				}
				add_ideas = GBR_Colonial_Government
			}
		}
		hidden_effect = {
			if = {
				limit = {
					ZAM = {
						NOT = {
							has_government = national_populist
						}
					}
				}
				ZAM = {
					country_event = {
						id = mittelpolitic.23
						days = 20
					}
				}
			}
		}
	}
	option = { #fuck off
		name = mittelpolitic.20.b
		add_political_power = -100
		GBR = {
			country_event = {
				id = mittelpolitic.21
				days = 5
			}
		}
	}
}

country_event = { #invade maf?
	id = mittelpolitic.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.21" }
	title = mittelpolitic.21.t
	desc = mittelpolitic.21.d
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	
	option = { #let it go
		name = mittelpolitic.21.a
		ai_chance = {
			factor = 75
		}
		
	}
	
	option = { #war time
		name = mittelpolitic.21.b
		ai_chance = {
			factor = 25
		}
		if = {
			limit = {
				country_exists = MAF
			}
			declare_war_on = {
				target = MAF
				type = annex_everything
			}
		}
	}
}

country_event = { #fate of westafrika
	id = mittelpolitic.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.22" }
	title = mittelpolitic.22.t
	desc = mittelpolitic.22.d
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	
	option = { #status quo is fine
		name = mittelpolitic.22.a
		ai_chance = {
			factor = 75
		}
		
	}
	
	option = { #give the brits their shit back
		name = mittelpolitic.22.b
		ai_chance = {
			factor = 25
		}
	trigger = {
			CIV = {
				NOT = {
					OR = {
						has_country_leader = {
							name = "Arnold Hodson"
							ruling_only = yes
						}
						has_country_leader = {
							name = "Jules Brévie"
							ruling_only = yes
						}
					}
				}
			}
		}
		GHA = {
			transfer_state = 274
			transfer_state = 1321
			transfer_state = 1323
			transfer_state = 1322
			load_oob = GHA
			create_country_leader = {
				name = "Arnold Hodson"
				desc = "POLITICS_FELIX_CIV_BOIGNY_DESC"
				picture = "gfx/leaders/CIV/CIV_Arnold_Hodson.png"
				expire = "1.1.1"
				ideology = soclib_colonial_govt_subtype
	
			}
			set_politics = {
				ruling_party = social_liberal
			}
			set_cosmetic_tag = GHA_GBR
		}
		ENT = {
			add_to_faction = GHA
		}
		NFA = { 
			transfer_state = 807
			transfer_state = 963 		
		}
	}
}

country_event = { #fate of north rhodesia
	id = mittelpolitic.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.23" }
	title = mittelpolitic.23.t
	desc = mittelpolitic.23.d
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	
	option = { #status quo is fine
		name = mittelpolitic.23.a
		ai_chance = {
			factor = 75
		}
	trigger = {
			ZAM = {
				NOT = {
					has_government = social_conservative
				}
			}
		}
	}
	
	option = { #the south african threat is over, return North Rhodesia
		name = mittelpolitic.23.b
		ai_chance = {
			factor = 25
		}
	trigger = {
			ROOT = {
				NOT = {
					has_government = paternal_autocrat
				}
			}
		}
		ZIM = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		ZIM = {	
			change_tag_from = ROOT
			add_state_core = 957
			add_state_core = 958
			add_state_core = 956
			add_state_core = 871
			add_state_core = 813
			set_cosmetic_tag = ZIM_federation
			hidden_effect = {
				country_event = {
					id = nrho.19
					days = 23
				}
			}
		}
		ZAM = {
			every_unit_leader = {
				limit = { 
					has_id = 67709
				}
				set_nationality = MAF
			}
			every_unit_leader = {
				limit = { 
					has_id = 63709
				}
				set_nationality = MAF
			}
			every_unit_leader = {
				limit = { 
					has_id = 66709
				}
				set_nationality = MAF
			}
			every_unit_leader = {
				limit = { 
					has_id = 65709
				}
				set_nationality = MAF
			}
		}
		ROOT = {
			every_unit_leader = {
				set_nationality = ZIM
			}
		}
	}
}

country_event = { #fate of kenya uganda
	id = mittelpolitic.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event mittelpolitic.25" }
	title = mittelpolitic.25.t
	desc = mittelpolitic.25.d
	picture = GFX_report_event_GEA_coltroops
	is_triggered_only = yes
	
	option = { #split them up again
		name = mittelpolitic.25.b
		ai_chance = {
			factor = 25
		}
		KEN = {
			drop_cosmetic_tag = yes
		}
		UGA = {
			transfer_state = 548
			load_oob = UGA
		}
		UGA = {
			set_politics = {
				ruling_party = social_liberal
			}
		}
		UGA = {
			get_current_government_type = yes
		}
		KEN = {
			puppet = UGA
		}
		UGA = {
			restore_previous_government_type = yes
		}
		UGA = {
			add_popularity = {
				ideology = social_liberal
				popularity = 0.3
			}
		}
	}
}

###MITTEL REFORMGRUPPE STUFF ###

country_event = { #African Constitution?
	id = mafrfg.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.1" }
	title = mafrfg.1.t
	desc = mafrfg.1.d
	picture = NOR_syndicalist_constitution
	is_triggered_only = yes
	fire_only_once = yes
	
	option = {
		name = mafrfg.1.a
		set_country_flag = MAF_constitution
	}
	
	option = {
		name = mafrfg.1.b
		set_country_flag = MAF_no_constitution
	}
}

country_event = { #Elections?
	id = mafrfg.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.2" }
	title = mafrfg.2.t
	desc = mafrfg.2.d
	picture = NOR_syndicalist_constitution
	is_triggered_only = yes
	fire_only_once = yes
	
	option = {
		name = mafrfg.2.a
		set_country_flag = MAF_elections_are_a_thing
	}
	
	option = {
		name = mafrfg.2.b
		set_country_flag = MAF_elections_are_not_a_thing
	}
}

country_event = { #We reformed enough to save the country
	id = mafrfg.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.3" }
	title = mafrfg.3.t
	desc = mafrfg.3.d
	picture = NOR_syndicalist_constitution
	
trigger = {
		tag = MAF
		OR = {
			AND = {
				has_country_flag = MAF_elections_are_not_a_thing
				has_country_flag = MAF_constitution
			}
			AND = {
				has_country_flag = MAF_elections_are_a_thing
				has_country_flag = MAF_no_constitution
			}
		}
	}
	fire_only_once = yes
	
	option = {
		name = mafrfg.3.a
		add_stability = 0.1
		custom_effect_tooltip = MAF_we_did_it_patrick_we_saved_mittelafrika
	}
}

country_event = { #We reformed the country so much that the native africans actually took over
	id = mafrfg.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.4" }
	title = mafrfg.4.t
	desc = mafrfg.4.d
	picture = NOR_syndicalist_constitution
	
trigger = {
		tag = MAF
		AND = {
			has_country_flag = MAF_elections_are_a_thing
			has_country_flag = MAF_constitution
		}
	}
	fire_only_once = yes
	
	option = { #who saw that coming?
		name = mafrfg.4.a
		add_stability = -0.1
		custom_effect_tooltip = MAF_democracy_and_stuff
		set_country_flag = MAF_full_reform
	}
}


country_event = { #Wholesome Albery Goering
	id = mafrfg.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.5" }
	title = mafrfg.5.t
	desc = mafrfg.5.d
	picture = GFX_report_event_MAF_albertgoering
	is_triggered_only = yes
	fire_only_once = yes
	
	option = { #who saw that coming?
		name = mafrfg.5.a
		add_political_power = 20
		
	}
}
news_event = { #News African Kaiser
	id = mafrfg.6
	title = mafrfg.6.t
	desc = mafrfg.6.d
	picture = GFX_news_event_MAF_reform

	major = yes
	is_triggered_only = yes

trigger = {
		wants_world_news = yes
	}


	option = { 
		name = mafrfg.6.a

	}
}

news_event = { #News African Federation
	id = mafrfg.7
	title = mafrfg.7.t
	desc = mafrfg.7.d
	picture = GFX_news_event_MAF_reform

	major = yes
	is_triggered_only = yes

trigger = {
		wants_world_news = yes
	}


	option = { 
		name = mafrfg.7.a

	}
}

country_event = { #African Kaiser
	id = mafrfg.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.8" }
	title = mafrfg.8.t
	desc = mafrfg.8.d
	picture = GFX_report_event_MAF_african_kaiser
	is_triggered_only = yes
	
	
	option = { #who saw that coming?
		name = mafrfg.8.a
		news_event = {
			id = mafrfg.6
			days = 1
		}
		set_cosmetic_tag = MAF_kaiser
		hidden_effect = {
			news_event = {
				id = mafrfg.6
			}
		}
	}
}

country_event = { #African Federation
	id = mafrfg.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafrfg.9" }
	title = mafrfg.9.t
	desc = mafrfg.9.d
	picture = GFX_report_event_MAF_kenyatta
	is_triggered_only = yes
	
	
	option = { #who saw that coming?
		name = mafrfg.9.a
		set_cosmetic_tag = MAF_federation
		news_event = {
			id = mafrfg.7
			days = 1
		}
		hidden_effect = {
			news_event = {
				id = mafrfg.7
			}
		}
	}
}

country_event = { #willy 2 death
	id = mafdeathgang.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafdeathgang.1" }
	title = mafdeathgang.1.t
	desc = mafdeathgang.1.d
	picture = GFX_report_event_GER_coronation
fire_only_once = yes
	
	trigger = {
		tag = MAF
		has_country_flag = MAF_kasier_willyII_gang
		has_global_flag = wilhelmiided
	}

	option = {
		name = mafdeathgang.1
		hidden_effect = {
			create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_AFRIKA_DESC"
					picture = "gfx/leaders/MAF/Portrait_Germany_Wilhelm_III.png"
					expire = "1.1.1"
					ideology = socdem_colonial_govt_subtype
				}
				create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_AFRIKA_DESC"
					picture = "gfx/leaders/MAF/Portrait_Germany_Wilhelm_III.png"
					expire = "1.1.1"
					ideology = soclib_colonial_govt_subtype
				}
				create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_AFRIKA_DESC"
					picture = "gfx/leaders/MAF/Portrait_Germany_Wilhelm_III.png"
					expire = "1.1.1"
					ideology = marlib_colonial_govt_subtype
				}
				create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_AFRIKA_DESC"
					picture = "gfx/leaders/MAF/Portrait_Germany_Wilhelm_III.png"
					expire = "1.1.1"
					ideology = soccon_colonial_govt_subtype
				}
				create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_AFRIKA_DESC"
					picture = "gfx/leaders/MAF/Portrait_Germany_Wilhelm_III.png"
					expire = "1.1.1"
					ideology = colonial_govt_subtype
				}
				create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_AFRIKA_DESC"
					picture = "gfx/leaders/MAF/Portrait_Germany_Wilhelm_III.png"
					expire = "1.1.1"
					ideology = autocratic_colonial_govt_subtype
				}
		}
	}
}

country_event = { 
	id = mafcollapse.1
	immediate = { 
		add_to_variable = { MAF_collapse_monthly_var = 1 }
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		has_idea = MAF_Debt
	}
}

country_event = { 
	id = mafcollapse.100
	immediate = { 
		add_to_variable = { MAF_collapse_monthly_var = 1 }
		set_country_flag = MAF_vaccum_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		has_idea = MAF_power_vacuum
	}
}

country_event = { 
	id = mafcollapse.101
	immediate = { 
		add_to_variable = { MAF_collapse_monthly_var = 1 }
		set_country_flag = MAF_natives_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		has_idea = MAF_disgruntled_natives
	}
}

country_event = { 
	id = mafcollapse.102
	immediate = { 
		add_to_variable = { MAF_collapse_monthly_var = 1 }
		set_country_flag = MAF_farmers_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		has_idea = MAF_disgruntled_farmers
	}
}

country_event = { 
	id = mafcollapse.103
	immediate = { 
		add_to_variable = { MAF_collapse_monthly_var = 1 }
		set_country_flag = MAF_blues_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		has_idea = MAF_corporate_blues
	}
}

country_event = { 
	id = mafcollapse.200
	immediate = { 
		subtract_from_variable = { MAF_collapse_monthly_var = 1 }
		clr_country_flag = MAF_vaccum_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		NOT = { has_idea = MAF_power_vacuum }
		has_country_flag = MAF_vaccum_collapse
	}
}

country_event = { 
	id = mafcollapse.201
	immediate = { 
		subtract_from_variable = { MAF_collapse_monthly_var = 1 }
		clr_country_flag = MAF_natives_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		NOT = { has_idea = MAF_disgruntled_natives }
		has_country_flag = MAF_natives_collapse
	}
}

country_event = { 
	id = mafcollapse.202
	immediate = { 
		subtract_from_variable = { MAF_collapse_monthly_var = 1 }
		clr_country_flag = MAF_farmers_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		NOT = { has_idea = MAF_disgruntled_farmers }
		has_country_flag = MAF_farmers_collapse
	}
}

country_event = { 
	id = mafcollapse.203
	immediate = { 
		subtract_from_variable = { MAF_collapse_monthly_var = 1 }
		clr_country_flag = MAF_blues_collapse
	}
	hidden = yes
	fire_only_once = yes
	trigger = {
		tag = MAF
		NOT = { has_idea = MAF_corporate_blues }
		has_country_flag = MAF_blues_collapse
	}
}

country_event = { #oopsy daisy
	id = mafcollapse.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafcollapse.2" }
	title = mafcollapse.2.t
	desc = mafcollapse.2.d
	picture = GFX_report_event_GEA_coltroops

	fire_only_once = yes
	trigger = {
		tag = MAF
		is_ai = no
		check_variable = {
			var = MAF_collapse_var
			value = 20
			compare = greater_than
		}
		date > 1939.01.01
		NOT = {
			OR = {
				has_global_flag = MAF_cant_die_yet
				has_global_flag = MAF_no_die
				has_global_flag = MAF_no_collapse
			}
		}
	}

	option = {
		name = mafcollapse.2.a
		set_global_flag = MAF_gonna_die
	}
}

country_event = { #oopsy daisy
	id = mafcollapse.2100
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafcollapse.2" }
	title = mafcollapse.2.t
	desc = mafcollapse.2.d
	picture = GFX_report_event_GEA_coltroops

	fire_only_once = yes
	trigger = {
		tag = MAF
		has_global_flag = MAF_cant_die_yet
		date > 1939.01.01
	}

	option = {
		name = mafcollapse.2.a
		set_global_flag = MAF_gonna_die
	}
}

country_event = { #maf dying for the ai
	id = mafcollapse.2000
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafcollapse.2" }
	title = mafcollapse.2.t
	desc = mafcollapse.2.d
	picture = GFX_report_event_GEA_coltroops

	fire_only_once = yes
	trigger = {
		tag = MAF
		is_ai = yes
		NOT = {
			OR = {
				has_global_flag = MAF_cant_die_yet
				has_global_flag = MAF_no_die
			}
		}
		date > 1939.01.01
	}

	option = {
		name = mafcollapse.2
		random_list = {
			40 = { set_global_flag = MAF_gonna_die }
			60 = { }
		}
	}
}

country_event = { #do we want maf to die
	id = mafcollapse.700
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafcollapse.700" }
	title = mafcollapse.700.t
	desc = mafcollapse.700.d
	picture = GFX_report_event_afrikahaus
	fire_only_once = yes
	
	trigger = {
		is_ai = no
		OR = {
			is_subject = yes
			num_subjects > 0
		}
	}

	option = {
		name = mafcollapse.700.a
		hidden_effect = {
			country_event = sharedafrika.134 #flavour events on or off
		}
	}
	option = {
		name = mafcollapse.700.b
		hidden_effect = {
			set_global_flag = MAF_cant_die_yet
			country_event = sharedafrika.134
		}
	}
	option = {
		name = mafcollapse.700.c
		hidden_effect = {
			country_event = sharedafrika.134
			set_global_flag = MAF_no_die
		}
	}
}

####Internal Stuff ###
country_event = { #olympio or notherns
	id = mafinternal.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.1" }
	title = mafinternal.1.t
	desc = mafinternal.1.d
	picture = GFX_report_event_MAF_mahiwa

	fire_only_once = yes
	is_triggered_only = yes

	option = { #olympio
		name = mafinternal.1.a
		
	}
	
	option = { #northerns
		name = mafinternal.1.b
		
	}
}

country_event = { #brits french or germs
	id = mafinternal.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.2" }
	title = mafinternal.2.t
	desc = mafinternal.2.d
	picture = GFX_report_event_MAF_mahiwa

	is_triggered_only = yes

	option = { #germs
		name = mafinternal.2.a
		
	}
	
	option = { #french
		name = mafinternal.2.b
		
	}
	
	option = { #anglos
		name = mafinternal.2.c
		
	}
	
	option = { #everyone
		name = mafinternal.2.e
		
	}
}

country_event = { #deal with settlers
	id = mafinternal.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.3" }
	title = mafinternal.3.t
	desc = mafinternal.3.d
	picture = GFX_report_event_MAF_mahiwa

	is_triggered_only = yes

	option = { #germs
		name = mafinternal.3.a
		
	}
	
	option = { #french
		name = mafinternal.3.b
		
	}
}

country_event = { #deal with Malagasy 
	id = mafinternal.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.4" }
	title = mafinternal.4.t
	desc = mafinternal.4.d
	picture = GFX_report_event_MAF_mahiwa

	is_triggered_only = yes

	option = { #germs
		name = mafinternal.4.a
		
	}
	
	option = { #french
		name = mafinternal.4.b
		
	}
}

country_event = { #deal with buganda 
	id = mafinternal.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.5" }
	title = mafinternal.5.t
	desc = mafinternal.5.d
	picture = GFX_report_event_MAF_mahiwa

	is_triggered_only = yes

	option = { #germs
		name = mafinternal.5.a
		
	}
	
	option = { #french
		name = mafinternal.5.b
		
	}
}

country_event = { #deal with belgians 
	id = mafinternal.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.6" }
	title = mafinternal.6.t
	desc = mafinternal.6.d
	picture = GFX_report_event_MAF_mahiwa

	is_triggered_only = yes

	option = { #nice
		name = mafinternal.6.a
		
	}
	
	option = { #not nice
		name = mafinternal.6.b
		
	}
}

country_event = { #deal with evoles 
	id = mafinternal.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event mafinternal.7" }
	title = mafinternal.7.t
	desc = mafinternal.7.d
	picture = GFX_report_event_MAF_mahiwa

	is_triggered_only = yes

	option = { #nice
		name = mafinternal.7.a
		
	}
	
	option = { #not nice
		name = mafinternal.7.b
		
	}
}
