﻿# Zanzibar

add_namespace = zanz

country_event = { #Hunting Lodges
	id = zanz.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.1" }
	title = zanz.1.t
	desc = zanz.1.d
	picture = GFX_report_event_market

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = zanz.1.a
		add_stability = 0.02
	}
}

country_event = { #Colonial Office warns against bringing Kiungani alumni into administration
	id = zanz.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.2" }
	title = zanz.2.t
	desc = zanz.2.d
	picture = GFX_OTT_Al_Qurnah

	is_triggered_only = yes
	
	option = { # Proceed anyway
		name = zanz.2.a
		GER = {
			country_event = {
				id = zanz.3
				days = 7
			}
		}
	}
	
	option = { # Reconsider
		name = zanz.2.b
		ai_chance = {
			factor = 0
		}
		add_research_slot = -1
		add_political_power = 70
		add_stability = 0.03
	}
}

country_event = { #Colonial Office angry
	id = zanz.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.3" }
	title = zanz.3.t
	desc = zanz.3.d
	picture = GFX_OTT_Al_Qurnah

	is_triggered_only = yes
	
	option = { # Reprimand Dar
		name = zanz.3.a
		add_stability = -0.01
		MAF = {
			country_event = {
				id = zanz.4
				days = 10
			}
		}
	}
	
	option = { # Do nothing
		name = zanz.3.b
		ai_chance = {
			factor = 0
		}
		add_political_power = -15
	}
}

country_event = { #Dar finds out  that Germany is butthurt
	id = zanz.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.4" }
	title = zanz.4.t
	desc = zanz.4.d
	picture = GFX_OTT_Al_Qurnah

	is_triggered_only = yes

		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = { # Grow a pair
		name = zanz.4.a
		add_political_power = -10
	}
}

country_event = { # Decide our policy on Afro-Arabs
	id = zanz.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.5" }
	title = zanz.5.t
	desc = zanz.5.d
	picture = OTT_Mysticism

	is_triggered_only = yes
	
	option = { # We must crush Islam, separate authority cannot exist
	
		name = zanz.5.a
		add_war_support = 0.05
		add_stability = -0.01
	}
	
	option = { # We must neutralise the clerics by absorbing their power structure into our own
		name = zanz.5.b
		add_stability = 0.02
	}
}

country_event = { # Port project
	id = zanz.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.6" }
	title = zanz.6.t
	desc = zanz.6.d
	picture = GFX_OTT_Basra_Port

	is_triggered_only = yes
	
	option = { # 
		name = zanz.6.a
		increase_ruling_party_popularity_by_5 = yes
	}
	
}

country_event = { # Embrace the Arab tradition
	id = zanz.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.7" }
	title = zanz.7.t
	desc = zanz.7.d
	picture = GFX_OTT_Basra_Port

	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = { # 
		name = zanz.7a
		add_stability = 0.01
	}
}

country_event = { # Declaration, demand submission
	id = zanz.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.6" }
	title = zanz.8.t
	desc = zanz.8.d
	picture = GFX_report_event_MAF_zanzibar

	is_triggered_only = yes
	
	option = { # 
		name = zanz.8.a
		ai_chance = {
			factor = 80
		}
		add_state_core = 965
		drop_cosmetic_tag = yes
		overlord = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_free
				}
			}
			GER = {
				remove_from_faction = ROOT
			}
			ROOT = {
				separate_peace_all_wars = yes
		}
		every_unit_leader = {
			limit = {
				OR = {
					has_id = 87951 #Hermann Meyer-Rabingen
				}
			}
			set_nationality = MAF
		}
		create_field_marshal = {
			name = "Khalifa II bin Harub Al-Said"
			portrait_path = "gfx/leaders/ZZB/Portrait_Zanzibar_Sultan_Khalifa.png"
			traits = { politically_connected }
			skill = 1
			attack_skill = 2
			defense_skill = 2
			planning_skill = 1
			logistics_skill = 1
		}
		MAF = {
			country_event = {
				id = zanz.25
				days = 2
			}
		}
	}
	option = { #  This is a bad idea
		name = zanz.8.b
		add_stability = 0.05
		ai_chance = {
			factor = 0
		}
	}

}

country_event = { # Deal with nationalists
	id = zanz.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.9" }
	title = zanz.9.t
	desc = zanz.9.d
	picture = GFX_report_event_slaves

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

	option = {
		name = zanz.9.a
		add_war_support = 0.05
	}
}

country_event = { # DOAG investments falter
	id = zanz.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.10" }
	title = zanz.10.t
	desc = zanz.10.d
	picture = GFX_report_event_MAF_zanzibar
	
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = zanz.10.a
		if = {
			limit = {
				tag = ZZB
				}
		add_stability = -0.02
		}
	}
}

country_event = { # Burning of the Royal Cinema Theatre in Zanzibar
	id = zanz.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.11" }
	title = zanz.11.t
	desc = zanz.11.d
	picture = GFX_report_event_stonetown
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.11.a
		if = {
			limit = {
				tag = ZZB
				}
		add_political_power = -10
		add_stability = -0.01
		}
	}
}

country_event = { # Policy on our minority groups
	id = zanz.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.12" }
	title = zanz.12.t
	desc = zanz.12.d
	picture = GFX_report_event_creek
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.12.a
		add_stability = 0.01
	}
}

country_event = { # China Question
	id = zanz.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.13" }
	title = zanz.13.t
	desc = zanz.13.d
	picture = GFX_report_event_MAF_zanzibar
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.13.a
		add_stability = 0.05
		add_political_power = -20
	}
}

country_event = { #  chiefs
	id = zanz.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.14" }
	title = zanz.14.t
	desc = zanz.14.d
	picture = GFX_OTT_Arabs_Angry
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.14.a
		add_stability = 0.02
	}
	
	option = {
		name = zanz.14.b
		add_political_power = 30
		add_war_support = 0.03
	}
}

country_event = { # Black Monday
	id = zanz.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.15" }
	title = zanz.15.t
	desc = zanz.15.d
	picture = GFX_report_event_mombasa

	is_triggered_only = yes

	option = {
		name = zanz.15.a
		if = {
			limit = {
				tag = ZZB
				}
		add_ideas = ZZB_black_monday_severe_idea
		add_stability = -0.15
		add_political_power = -100
		}
		if = {
			limit = {
				tag = ZZB
				}
		add_political_power = -5
		}
	}
}

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

	option = {
		name = zanz.16.a
	}
}

country_event = { # Fiah
	id = zanz.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.17" }
	title = zanz.17.t
	desc = zanz.17.d
	picture = GFX_report_event_hospital
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.17.a
		add_political_power = -10
		if = {
			limit = {
				tag = ZZB
			}
			add_stability = 0.02
		}
	}
}

country_event = { # Cloves
	id = zanz.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.18" }
	title = zanz.18.t
	desc = zanz.18.d
	picture = GFX_report_event_teamaking
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.18.a
		add_political_power = -10
	}
}

country_event = { # Angry Indians
	id = zanz.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.19" }
	title = zanz.19.t
	desc = zanz.19.d
	picture = GFX_OTT_Al_Qurnah
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.19.a
		add_stability = -0.01
		add_political_power = -10
	}
}

country_event = { # Angry Indians - Indian reaction
	id = zanz.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.20" }
	title = zanz.20.t
	desc = zanz.20.d
	picture = GFX_OTT_Al_Qurnah
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.20.a
		add_war_support = 0.01
	}
}

country_event = { # Debt repayments
	id = zanz.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.21" }
	title = zanz.21.t
	desc = zanz.21.d
	picture = GFX_report_event_stonetown
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.21.a
		if = {
			limit = {
				tag = ZZB
			}
			add_stability = 0.02
		}
		add_political_power = 10
	}
}

country_event = { # EACA
	id = zanz.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.22" }
	title = zanz.22.t
	desc = zanz.22.d
	picture = GFX_report_event_sena
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.22.a
		add_political_power = -3
	}
}

country_event = { # Liwalis
	id = zanz.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.23" }
	title = zanz.23.t
	desc = zanz.23.d
	picture = GFX_OTT_Sheikh_Sait
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.23.a
		if = {
			limit = {
				tag = ZZB
			}
			add_stability = -0.02
		}
	}
}

country_event = { # Memoirs
	id = zanz.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.24" }
	title = zanz.24.t
	desc = zanz.24.d
	picture = GFX_report_event_stonetown
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	is_triggered_only = yes

	option = {
		name = zanz.24.a
		if = {
			limit = {
				tag = ZZB
			}
			add_stability = 0.01
		}
	}
}

country_event = { # Invade Zanzibar?
	id = zanz.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.25" }
	title = zanz.25.t
	desc = zanz.25.d
	picture = GFX_report_event_coast2

	is_triggered_only = yes

	option = {
		name = zanz.25.a
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				has_war_with = PAF
			}
		}
		declare_war_on = {
			target = ZZB
			type = annex_everything
		}
	}
	option = {
		name = zanz.25.b
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { # Radio station
	id = zanz.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.26" }
	title = zanz.26.t
	desc = zanz.26.d
	picture = GFX_report_event_coast2

	is_triggered_only = yes

	option = {
		name = zanz.26.a
			increase_ruling_party_popularity_by_5 = yes
			905 = {
				add_building_construction = {
					type = radar_station
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_tech = radio_detection
				}
				add_tech_bonus = {
					name = radiodetection
					bonus = 1
					uses = 1
					category = electronics
				}
				else = {
					set_technology = { radio_detection = 1 }
			}
		}
			add_tech_bonus = {
				name = radar_tech
				bonus = 1
				uses = 1
				category = radar_tech
		}
	}

}


country_event = { # Rechenberg Report
	id = zanz.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.27" }
	title = zanz.27.t
	desc = zanz.27.d
	picture = GFX_report_event_mombasa

	is_triggered_only = yes
	
trigger = {
		905 = { is_controlled_by_ROOT_or_ally = yes } # Zanzibar
	}

	option = {
		name = zanz.27.a
	trigger = {
			NOT = {
				tag = ZZB
			}
		}
		if = {
			limit = {
				tag = MAF
				}
		add_stability = 0.01
		}
	}
	
	option = {
		name = zanz.27.b
	trigger = {
			tag = ZZB
		}
		add_stability = 0.01
		hidden_effect = {
			set_country_flag = ZZB_rechenberg
		}
	}

}

country_event = { # Rechenberg Arrives on Zanzibar
	id = zanz.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.28" }
	title = zanz.28.t
	desc = zanz.28.d
	picture = GFX_report_event_creek

	is_triggered_only = yes
	
trigger = {
		905 = { is_controlled_by_ROOT_or_ally = yes } # Zanzibar
	}

	option = {
		name = zanz.28.a
	trigger = {
			NOT = {
				tag = ZZB
			}
		}
		if = {
			limit = {
				tag = MAF
				}
		add_stability = 0.01
		}
	}
	
	option = {
		name = zanz.28.b
		add_stability = 0.02
	trigger = {
			tag = ZZB
		}
	}

}

country_event = { # African Councillors in Zanzibar
	id = zanz.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.29" }
	title = zanz.29.t
	desc = zanz.28.d
	picture = GFX_report_event_mombasa

	is_triggered_only = yes
	
trigger = {
		905 = { is_controlled_by_ROOT_or_ally = yes } # Zanzibar
	}

	option = {
		name = zanz.29.a
	trigger = {
			NOT = {
				tag = ZZB
			}
		}
	}
	option = {
		name = zanz.29.b
	trigger = {
			tag = ZZB
		}
		add_stability = 0.05
		add_political_power = -50
	}
	
	option = {
		name = zanz.29.c
	trigger = {
			tag = ZZB
		}
		add_political_power = 120
		add_stability = -0.01
	}
}

country_event = { # Administrative Reforms in Zanzibar
	id = zanz.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.30" }
	title = zanz.30.t
	desc = zanz.30.d
	picture = GFX_report_event_chiefs2

	is_triggered_only = yes
	
trigger = {
		905 = { is_controlled_by_ROOT_or_ally = yes } # Zanzibar
	}

	option = {
		name = zanz.30.a
	trigger = {
			NOT = {
				tag = ZZB
			}
		}
	}
	option = {
		name = zanz.30.b
	trigger = {
			tag = ZZB
		}
		increase_ruling_party_popularity_by_10 = yes
		add_political_power = -20
	}
	
	option = {
		name = zanz.30.c
	trigger = {
			tag = ZZB
		}
		add_stability = 0.02
		add_war_support = -0.01
	}
}

country_event = { # The Troup Agriculture Reforms
	id = zanz.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.31" }
	title = zanz.31.t
	desc = zanz.31.d
	picture = GFX_report_event_teamaking

	is_triggered_only = yes
	
trigger = {
		905 = { is_controlled_by_ROOT_or_ally = yes } # Zanzibar
	}

	option = {
		name = zanz.31.a
	trigger = {
			NOT = {
				tag = ZZB
			}
		}
	}
	option = {
		name = zanz.31.b
	trigger = {
			tag = ZZB
		}
		add_offsite_building = { type = industrial_complex level = 2 }
		add_political_power = -100
		add_stability = -0.02
	}
	
	option = {
		name = zanz.31.c
	trigger = {
			tag = ZZB
		}
		add_offsite_building = { type = industrial_complex level = 1 }
		add_political_power = -10
	}
}

country_event = { # Debt Moratoriums - Arab Land Issue
	id = zanz.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.32" }
	title = zanz.32.t
	desc = zanz.32.d
	picture = GFX_report_event_pondicherry

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

	option = {
		name = zanz.32.a
		add_political_power = -10
	}
}

country_event = { # Reforms to Zanzibari Schooling
	id = zanz.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.33" }
	title = zanz.33.t
	desc = zanz.33.d
	picture = GFX_report_event_felix

	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = zanz.33.a
		add_political_power = 10
	}
}

country_event = { # Sultan's Speech
	id = zanz.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.34" }
	title = zanz.34.t
	desc = zanz.34.d
	picture = GFX_report_event_MAF_zanzibar

	is_triggered_only = yes

	option = {
		name = zanz.34.a
	trigger = {
			NOT = {
				tag = ZZB
			}
		}
		add_stability = -0.01
	}
	option = {
		name = zanz.34.b
	trigger = {
			tag = ZZB
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.1
		}
		add_stability = 0.02
		add_war_support = 0.02
		swap_ideas = { 
			remove_idea = GBR_Colonial_Government 
			add_idea = Generic_Colonial_Nation 
		}
	}
	option = {
		name = zanz.34.c
	trigger = {
			tag = ZZB
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = yes
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.02
		}
		create_country_leader = {
			name = "Khalifa II bin Harub Al-Said"
			picture = "gfx/leaders/ZZB/Portrait_Zanzibar_Sultan_Khalifa.png"
			expire = "1.1.1"
			ideology = prussian_constitutionalism_subtype
		}
		add_stability = 0.02
		add_war_support = 0.03
		swap_ideas = { 
			remove_idea = GBR_Colonial_Government 
			add_idea = Generic_Colonial_Nation 
		}
	}
	option = {
		name = zanz.34.e
	trigger = {
			tag = ZZB
		}
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = yes
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.1
		}
		create_country_leader = {
			name = "Khalifa II bin Harub Al-Said"
			picture = "gfx/leaders/ZZB/Portrait_Zanzibar_Sultan_Khalifa.png"
			expire = "1.1.1"
			ideology = absolute_monarchy_subtype
		}
		add_stability = -0.02
		add_war_support = 0.03
		swap_ideas = { 
			remove_idea = GBR_Colonial_Government 
			add_idea = Generic_Colonial_Nation 
		}
	}
}

country_event = { # The Crown Colony of the Seychelles
	id = zanz.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.35" }
	title = zanz.35.t
	desc = zanz.35.d
	picture = GFX_report_event_lagoon
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	is_triggered_only = yes

	option = {
		name = zanz.35.a
		if = {
			limit = {
			tag = ZZB
			}
		add_stability = 0.01
		}
		add_political_power = 5
	}
}

country_event = { # The Rise of the Seychelles Taxpayers Association
	id = zanz.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.36" }
	title = zanz.36.t
	desc = zanz.36.d
	picture = GFX_report_event_seychelles

	is_triggered_only = yes
	
trigger = {
		905 = { is_controlled_by_ROOT_or_ally = yes } # Zanzibar
	}

	option = {
		name = zanz.36.a
		if = {
			limit = {
			tag = ZZB
			}
		add_stability = -0.01
		hidden_effect = {
			set_country_flag = seychellesreforms
			}
		}
		add_political_power = -5
	}
}

country_event = { # Propose union with Muscat?
	id = zanz.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.37" }
	title = zanz.37.t
	desc = zanz.37.d
	picture = GFX_report_event_minaret

	is_triggered_only = yes

	option = {
		name = zanz.37.a
		ai_chance = {
			factor = 100
		}
		OMA = {
			country_event = {
				id = zanz.38
				days = 2
			}
		}
	}
	option = {
		name = zanz.37.b
		ai_chance = {
			factor = 0
		}
	}
}

country_event = { # Zanzibar proposes a union
	id = zanz.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.38" }
	title = zanz.38.t
	desc = zanz.38.d
	picture = GFX_report_event_MAF_zanzibar

	is_triggered_only = yes

	option = {
		name = zanz.38.a
		ai_chance = {
			factor = 80
		}
		ZZB = {
			country_event = {
				id = zanz.39
				days = 2
			}
		}
	}
	option = {
		name = zanz.38.b
		ai_chance = {
			factor = 0
		}
		trigger = {
			ZZB = {
				is_ai = yes
			}
		}
	}
}

country_event = { # A reunification!
	id = zanz.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.39" }
	title = zanz.39.t
	desc = zanz.39.d
	picture = GFX_report_event_MAF_zanzibar

	is_triggered_only = yes

	option = {
		name = zanz.39.a
		set_cosmetic_tag = ZZB_OMA
			ZZB = {
				annex_country = {
					target = OMA
					transfer_troops = yes
				}
			}
			OMA = {
				every_unit_leader = {
					set_nationality = ZZB
				}
			}
		add_state_core = 294
		add_state_core = 859
		add_state_core = 347
		add_state_core = 1024
		OMA = {
			remove_state_core = 294
			remove_state_core = 859
			remove_state_core = 347
			remove_state_core = 1024
		}
		add_named_threat = { 
			threat = 1
			name = omanzanzibarunion
		}
		add_stability = -0.02
		hidden_effect = {
			if = {
				limit = { 
					is_ai = no
				}
			}
			country_event = {
				id = oma.15 # become Omani Empire?
				days = 90
			}
		}
	}
}

country_event = { #The Comoros
	id = zanz.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.40" }
	title = zanz.40.t
	desc = zanz.40.d
	picture = GFX_report_event_comoros

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = zanz.40.a
	}
}

country_event = { #Malaria Outbreaks on Ngadzidja
	id = zanz.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.41" }
	title = zanz.41.t
	desc = zanz.41.d
	picture = GFX_report_event_comoros

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = zanz.41.a
		if = {
			limit = {
				tag = ZZB
			}
			add_political_power = -20
			add_stability = -0.01
			add_manpower = -481
		}
		if = {
			limit = {
				tag = MAG
			}
			add_manpower = 245
			add_political_power = -20
		}
	}
}

country_event = { #Sugar collapse on Comoros
	id = zanz.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event zanz.42" }
	title = zanz.42.t
	desc = zanz.42.d
	picture = GFX_report_event_comoros

	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = zanz.42.a
		if = {
			limit = {
				tag = ZZB
			}
			add_political_power = -20
		}
	}
}