﻿add_namespace = tunisia
add_namespace = tunflav

country_event = { #Tunisia Intro
	id = tunisia.1
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.1" }
	title = tunisia.1.t
	desc = tunisia.1.d
	picture = GFX_report_event_tunisie
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = tunisia.1.a
	}
}

country_event = { #Tunis Revolts if Annexed
	id = tunisia.2
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.2" }
	title = tunisia.2.t
	desc = tunisia.2.d
	picture = GFX_report_event_tunis_riots
	
	timeout_days = 3
	
	is_triggered_only = yes

	option = {
		name = tunisia.2.a
		trigger = {
			tag = TUN
		}
			if = {
				limit = { is_subject = yes }
				overlord = {
					set_autonomy = { target = ROOT autonomous_state = autonomy_free }
				}
			}
			if = {
				limit = { is_in_faction = yes }
				leave_faction = yes
			}
		ENT = { remove_from_faction = TUN }
		separate_peace_all_wars = yes
		drop_cosmetic_tag = yes
		NFA = {
			country_event = {
				id = tunisia.3
				days = 1
			}
		}
	}
}

country_event = { #NFA - crush Tunisian revolt?
	id = tunisia.3
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.3" }
	title = tunisia.3.t
	desc = tunisia.3.d
	picture = GFX_report_event_tunis_riots
	
	is_triggered_only = yes
	
	timeout_days = 3

	option = {
		name = tunisia.3.a
		ai_chance = {
			factor = 90
			modifier = {
				factor = 0.1
				has_war = yes
			}
		}
		declare_war_on = {
			target = TUN
			type = annex_everything
		}
		add_political_power = -30
		add_war_support = -0.02
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.18
					days = 1
				}
			}
		}
	}
	option = {
		name = tunisia.3.b
		ai_chance = {
			factor = 10
		}
		add_stability = -0.01
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.17
					days = 1
				}
			}
		}
	}
}

country_event = { #Picking an ally
	id = tunisia.4
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.4" }
	title = tunisia.4.t
	desc = tunisia.4.d
	picture = GFX_report_event_beylik
	
	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			country_event = {
				id = tunisia.14
				days = 120
			}
		}
	}

	option = {
		name = tunisia.4.a #side with Dustur
		ai_chance = {
			factor = 25
		}
		set_politics = {
			ruling_party = social_democrat
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.2
		}
		create_country_leader = {
		name = "Monsif Bey"
		picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
		desc = "POLITICS_MONCEF_DESC"
		expire = "1.1.1"
		ideology = socdem_left_nationalism_subtype
		}
		remove_ideas = TUN_grand_council_bickering_idea
	}
	option = {
		name = tunisia.4.b #side with Constitutional Democratic Rally
		ai_chance = {
			factor = 25
		}
		set_politics = {
			ruling_party = market_liberal
		}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.2
		}
		create_country_leader = {
		name = "Monsif Bey"
		desc = "POLITICS_MONCEF_DESC"
		picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
		expire = "1.1.1"
		ideology = marlib_agrarianism_subtype
		}
		remove_ideas = TUN_grand_council_bickering_idea
	}
	option = {
		name = tunisia.4.c #side with the Ulama
		ai_chance = {
			factor = 50
		}
		set_politics = {
			ruling_party = social_conservative
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.2
		}
		create_country_leader = {
		name = "Monsif Bey"
		desc = "POLITICS_MONCEF_DESC"
		picture = "gfx/leaders/TUN/Portrait_TUN_Moncef_Bey.png"
		expire = "1.1.1"
		ideology = soccon_islamism_subtype
		}
		remove_ideas = TUN_grand_council_bickering_idea
		hidden_effect = {
			country_event = {
				id = tunisia.28
				days = 8
			}
		}
	}
}

country_event = { #The Nationalist Opposition
	id = tunisia.5
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.5" }
	title = tunisia.5.t
	desc = tunisia.5.d
	picture = GFX_report_event_dustur
	
	is_triggered_only = yes

	option = {
		name = tunisia.5.a #
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
			}
			add_popularity = {
				ideology = radical_socialist
				popularity = 0.01
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.01
			}
			add_popularity = {
				ideology = market_liberal
				popularity = 0.01
			}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
			}
			add_popularity = {
				ideology = radical_socialist
				popularity = 0.01
			}
			add_political_power = -10
		}
	}
}

country_event = { #Black Monday in Tunisia
	id = tunisia.6
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.6" }
	title = tunisia.6.t
	desc = tunisia.6.d
	picture = GFX_report_event_maison
	
	is_triggered_only = yes

	option = {
		name = tunisia.6.a #
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
			}
			add_timed_idea = {
				idea = TUN_black_monday_5
				days = 1825
			}
			add_stability = -0.15
			add_political_power = -80
			decrease_ruling_party_popularity_by_5 = yes
			add_popularity = { ideology = radical_socialist popularity = 0.02 }
			add_popularity = { ideology = syndicalist popularity = 0.02 }
			add_popularity = { ideology = totalist popularity = 0.01 }
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = -0.02
			add_political_power = -50
		}
		if = {
			limit = {
				tag = MLT
				}
			add_manpower = 2401
			add_stability = -0.01
			add_political_power = -50
		}
	}
}

country_event = { #Rumours of Tunis Annexation Spread
	id = tunisia.7
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.7" }
	title = tunisia.7.t
	desc = tunisia.7.d
	picture = GFX_report_event_oranport
	
	is_triggered_only = yes

	option = {
		name = tunisia.7.a #
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.05
			add_political_power = -80
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = -0.01
			add_political_power = -20
		}
	}
}

country_event = { #Neo-Dustur Round Up in Tunis
	id = tunisia.8
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.8" }
	title = tunisia.8.t
	desc = tunisia.8.d
	picture = GFX_report_event_ghorfas
	
	is_triggered_only = yes

	option = {
		name = tunisia.8.a #
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = tunisia.9
				days = 4
			}
		}
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -25
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 20
		}
	}
}

country_event = { #Operation Cheval Mallet
	id = tunisia.9
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.9" }
	title = tunisia.9.t
	desc = tunisia.9.d
	picture = GFX_report_event_gare
	
	is_triggered_only = yes

	option = {
		name = tunisia.9.a #
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = tunisia.11
				days = 264
			}
		}
		if = {
			limit = {
				tag = TUN
				}
			add_stability = 0.1
			add_war_support = 0.1
			add_popularity = {
				ideology = syndicalist
				popularity = -0.01
			}
			add_popularity = {
				ideology = totalist
				popularity = -0.03
			}
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = 0.01
		}
	}
}

country_event = { #Investigation into the Company
	id = tunisia.10
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.10" }
	title = tunisia.10.t
	desc = tunisia.10.d
	picture = GFX_report_event_gare
	
	is_triggered_only = yes

	option = {
		name = tunisia.10.a #
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
				}
			increase_ruling_party_popularity_by_5 = yes
			add_stability = 0.03
			add_war_support = 0.05
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = 0.01
			add_political_power = -25
		}
	}
}

country_event = { #Investigation into the Company concludes
	id = tunisia.11
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.11" }
	title = tunisia.11.t
	desc = tunisia.11.d
	picture = GFX_report_event_villa
	
	is_triggered_only = yes
	
	option = {
		name = tunisia.11.a #
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
				}
			increase_ruling_party_popularity_by_5 = yes
			add_stability = 0.02
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
			add_popularity = {
				ideology = paternal_autocrat
				popularity = -0.01
			}
		}
	}
}

country_event = { #Rumours of corruption scandal
	id = tunisia.12
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.12" }
	title = tunisia.12.t
	desc = tunisia.12.d
	picture = GFX_report_event_bureau
	
	is_triggered_only = yes
	
	option = {
		name = tunisia.12.a #
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = tunisia.13
				days = 8
			}
		}
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.02
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
	}
}

country_event = { #Mass protests
	id = tunisia.13
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.13" }
	title = tunisia.13.t
	desc = tunisia.13.d
	picture = GFX_report_event_tunis_riots
	
	is_triggered_only = yes
	
	option = {
		name = tunisia.13.a #
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.02
			add_political_power = -50
			hidden_effect = {
				set_country_flag = TUN_irregularities_flag
			}
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -20
		}
	}
}

country_event = { #A Secret Meeting
	id = tunisia.14
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.14" }
	title = tunisia.14.t
	desc = tunisia.14.d
	picture = GFX_report_event_tunisiatown
	
	is_triggered_only = yes
	
	trigger = {
		is_subject_of = NFA
	}
	
	option = {
		name = tunisia.14.a #We must wait for a French homecoming
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
				}
			hidden_effect  ={
				set_country_flag = TUN_homecoming_flag
			}
		}
	}
	option = {
		name = tunisia.14.b #We must wait for the war for the Metropol
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				tag = TUN
				}
			hidden_effect  ={
				set_country_flag = TUN_revoltonnfawar_flag
			}
		}
	}
	option = {
		name = tunisia.14.c #We will rise up now!
		ai_chance = {
			factor = 50
		}
		if = {
			limit = {
				tag = TUN
				}
			country_event = {
				id = tunisia.15
				days = 7
			}
		}
	}
	option = {
		name = tunisia.14.e #This is suicide
		ai_chance = {
			factor = 50
		}
	}
}

country_event = { #A Tunisian Uprising
	id = tunisia.15
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.15" }
	title = tunisia.15.t
	desc = tunisia.15.d
	picture = GFX_report_event_tunis_riots
	
	is_triggered_only = yes
	
	trigger = {
		is_subject = yes
	}
	
	option = {
		name = tunisia.15.a #
		ai_chance = {
			factor = 100
		}
			if = {
				limit = { is_subject = yes }
				overlord = {
					set_autonomy = { target = ROOT autonomous_state = autonomy_free }
				}
			}
			if = {
				limit = { is_in_faction = yes }
				leave_faction = yes
			}
		ENT = { remove_from_faction = TUN }
		separate_peace_all_wars = yes
		drop_cosmetic_tag = yes
		NFA = {
			country_event = {
				id = tunisia.16
				days = 1
			}
		}
	}
	option = {
		name = tunisia.15.b #
		ai_chance = {
			factor = 1
		}
		if = {
			limit = {
				tag = TUN
				}
			country_event = {
				id = tunisia.15
				days = 30
			}
		}
	}
	option = {
		name = tunisia.15.c #
		ai_chance = {
			factor = 0
		}
	}
}

country_event = { #NFA - response to ultimatum
	id = tunisia.16
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.16" }
	title = tunisia.16.t
	desc = tunisia.16.d
	picture = GFX_report_event_tunis_riots
	
	is_triggered_only = yes
	
	timeout_days = 3
	
	option = {
		name = tunisia.16.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0.1
				has_war = yes
			}
		}
		declare_war_on = {
			target = TUN
			type = annex_everything
		}
		activate_mission = NFA_retake_tun_mission
		ROOT = {
			add_state_claim = 458
			add_state_claim = 665
		}
		add_political_power = -50
		add_war_support = -0.02
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.18
					days = 1
				}
			}
		}
	}
	option = {
		name = tunisia.16.b #
		ai_chance = {
			factor = 20
		}
		trigger = {
			NOT = {
				has_completed_focus = NFA_la_liberation
			}
		}
		add_stability = -0.01
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.17
					days = 1
				}
			}
		}
	}
	option = {
		name = tunisia.16.c #
		ai_chance = {
			factor = 100
		}
		trigger = {
			has_completed_focus = NFA_la_liberation
		}
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.17
					days = 1
				}
			}
		}
	}
}

country_event = { #NFA lets TUN go
	id = tunisia.17
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.17" }
	title = tunisia.17.t
	desc = tunisia.17.d
	picture = GFX_report_event_gare
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunisia.17.a
		add_stability = 0.02
		add_political_power = 30
	}
}

country_event = { #TUN-NFA War
	id = tunisia.18
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.18" }
	title = tunisia.18.t
	desc = tunisia.18.d
	picture = GFX_LBA_Camel1
	
	is_triggered_only = yes

	option = {
		name = tunisia.18.a
		add_war_support = 0.05
		add_timed_idea = {
			idea = TUN_war_of_independence_idea
			days = 90
		}
		hidden_effect = {
			load_oob = TUN_revolt
			if = {
				limit = {
					NFA = {
						is_ai = no
						}
					}
				load_oob = TUN_independence
			}
			EGY = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			TRP = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			LBA = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			TUR = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			SYR = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			IRQ = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			JBS = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			LEB = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			SAU = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			YEM = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			OMA = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			MOR = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			SUD = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			ZZB = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			PER = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			AFG = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
			SOM = { 
				country_event = { #call for aid from Tunisia
					id = tunisia.21
					days = 4 random_days = 3
				}
			}
		}
	}
}

country_event = { #Tunisia Declares Independence post-Homecoming
	id = tunisia.19
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.19" }
	title = tunisia.19.t
	desc = tunisia.19.d
	picture = GFX_report_event_tunis_riots
	
	fire_only_once = yes
	
	trigger = {
		tag = TUN
		NFA = {
			has_completed_focus = NFA_la_liberation
		}
		has_country_flag = TUN_homecoming_flag
		is_subject = yes
	}
	
	mean_time_to_happen = {
		days = 60
	}
	
	option = {
		name = tunisia.19.a #
		ai_chance = {
			factor = 100
		}
			if = {
				limit = { is_subject = yes }
				overlord = {
					set_autonomy = { target = ROOT autonomous_state = autonomy_free }
				}
			}
			if = {
				limit = { is_in_faction = yes }
				leave_faction = yes
			}
		ENT = { remove_from_faction = TUN }
		separate_peace_all_wars = yes
		drop_cosmetic_tag = yes
		NFA = {
			country_event = {
				id = tunisia.16
				days = 1
			}
		}
	}
	option = {
		name = tunisia.19.b #
		ai_chance = {
			factor = 0
		}
	}
}

country_event = { #Tunisia Declares Independence during Weltkrieg
	id = tunisia.20
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.20" }
	title = tunisia.20.t
	desc = tunisia.20.d
	picture = GFX_report_event_tunis_riots
	
	fire_only_once = yes
	
	trigger = {
		tag = TUN
		NFA = {
			has_war_with = FRA
		}
		has_country_flag = TUN_revoltonnfawar_flag
		is_subject = yes
	}
	
	mean_time_to_happen = {
		days = 60
	}
	
	option = {
		name = tunisia.20.a #
		ai_chance = {
			factor = 100
		}
			if = {
				limit = { is_subject = yes }
				overlord = {
					set_autonomy = { target = ROOT autonomous_state = autonomy_free }
				}
			}
			if = {
				limit = { is_in_faction = yes }
				leave_faction = yes
			}
		ENT = { remove_from_faction = TUN }
		separate_peace_all_wars = yes
		drop_cosmetic_tag = yes
		NFA = {
			country_event = {
				id = tunisia.16
				days = 1
			}
		}
	}
	option = {
		name = tunisia.20.b #
		ai_chance = {
			factor = 0
		}
	}
}

country_event = { #Relief for Tunisia?
	id = tunisia.21
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.21" }
	title = tunisia.21.t
	desc = tunisia.21.d
	picture = GFX_report_event_tunis_riots

	is_triggered_only = yes

	option = {
		name = tunisia.21.a
		ai_chance = {
			factor = 70
		}
		trigger = {
			is_subject = no
			NOT = {
				is_in_faction_with = NFA
			}
		}
		if = {
			limit = {
				has_equipment = { infantry_equipment > 200 }
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -200
			}
		}
		if = {
			limit = {
				has_equipment = { artillery_equipment > 20 }
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment
				amount = -20
			}
		}
		if = {
			limit = {
				has_equipment = { support_equipment > 30 }
			}
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -30
			}
		}
		TUN = {
			country_event = { id = tunisia.22 days = 7 } #arms
		}
		reverse_add_opinion_modifier = {
			target = NFA
			modifier = small_decrease
		}
	}
	option = {
		name = tunisia.21.b
		trigger = {
			is_subject = no
		}
		ai_chance = {
			factor = 30
		}
		add_political_power = -10
	}
	option = {
		name = tunisia.21.c
		trigger = {
			is_subject = yes
		}
	}
	option = {
		name = tunisia.21.e
		trigger = {
			is_subject = no
			is_ai = no
		}
		ai_chance = {
			factor = 0
		}
		declare_war_on = {
			target = NFA
			type = annex_everything
		}
		TUN = {
			give_military_access = ROOT
		}
		if = {
			limit = {
				is_faction_leader = yes
				TUN = {
					is_ai = yes
					}
				}
			ROOT = {
				add_to_faction = TUN
			}
		}
	}
}

country_event = { #Relief for Tunisia?
	id = tunisia.22
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.22" }
	title = tunisia.22.t
	desc = tunisia.22.d
	picture = GFX_report_event_oranport

	is_triggered_only = yes

	option = {
		name = tunisia.22.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 200
		}
		add_manpower = 150
		reverse_add_opinion_modifier = {
			target = FROM
			modifier = small_increase
		}
	}
}

country_event = { #Successful Independence
	id = tunisia.23
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.23" }
	title = tunisia.23.t
	desc = tunisia.23.d
	picture = GFX_report_event_tebourba

	is_triggered_only = yes

	option = {
		name = tunisia.23.a
		add_political_power = 50
		add_timed_idea = {
			idea = TUN_post_independence_issues_idea
			days = 720
		}
		delete_unit_template_and_units = {
			division_template = "Almilishiat Alwatania"
			disband = yes #will refund equipment and manpower
		}
	}
}

country_event = { #Code de Indigenat
	id = tunisia.24
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.24" }
	title = tunisia.24.t
	desc = tunisia.24.d
	picture = GFX_report_event_fishermen

	is_triggered_only = yes

	option = {
		name = tunisia.24.a
		trigger = {
			tag = TUN
		}
		if = {
			limit = {
				tag = TUN
				}
			add_ideas = TUN_native_code_idea
		}
	}
	option = {
		name = tunisia.24.b
		trigger = {
			tag = NFA
		}
		add_political_power = 10
	}
}

country_event = { #Grand Council Bickering
	id = tunisia.25
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.25" }
	title = tunisia.25.t
	desc = tunisia.25.d
	picture = GFX_report_event_tunisiatown

	is_triggered_only = yes

	option = {
		name = tunisia.25.a
		trigger = {
			tag = TUN
		}
		if = {
			limit = {
				tag = TUN
				}
			add_ideas = TUN_grand_council_bickering_idea
		}
	}
	option = {
		name = tunisia.25.b
		trigger = {
			tag = NFA
		}
		add_political_power = 10
	}
}

country_event = { #Cross-Border Raids in Tripolitania
	id = tunisia.26
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.26" }
	title = tunisia.26.t
	desc = tunisia.26.d
	picture = GFX_LBA_Camel2

	is_triggered_only = yes

	option = {
		name = tunisia.26.a
		trigger = {
			tag = TUN
		}
		if = {
			limit = {
				tag = TUN
				}
			add_ideas = TUN_army_idea_5
			add_political_power = -20
		}
	}
	option = {
		name = tunisia.26.b
		trigger = {
			tag = NFA
		}
		add_political_power = -10
	}
	option = {
		name = tunisia.26.c
		trigger = {
			OR = {
				tag = TUR
				tag = LBA
			}
		}
		add_political_power = -10
	}
}

country_event = { #Street Battles in Tunis
	id = tunisia.27
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.27" }
	title = tunisia.27.t
	desc = tunisia.27.d
	picture = GFX_report_event_tunisiatown

	is_triggered_only = yes

	option = {
		name = tunisia.27.a
		ai_chance = {
			factor = 40
		}
		hidden_effect = {
			set_cosmetic_tag = TUN_REP
		}
		add_popularity = {
			ideology = totalist
			popularity = 0.1
		}
		add_popularity = {
			ideology = syndicalist
			popularity = -0.03
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = -0.03
		}
		add_popularity = {
			ideology = social_democrat
			popularity = -0.03
		}
	}
	option = {
		name = tunisia.27.b
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			set_cosmetic_tag = TUN_REP
		}
		set_politics = {
			ruling_party = syndicalist
			last_election = "1888.6.15"
			election_frequency = 48
			elections_allowed = no
		}
		create_country_leader = {
			name = "Tahar Haddad"
			picture = "gfx/leaders/TUN/Portrait_TUN_Tahar_Haddad.png"
			expire = "1.1.1"
			ideology = centralized_syndicalism_subtype
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.1
		}
		add_popularity = {
			ideology = totalist
			popularity = -0.03
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = -0.03
		}
		add_popularity = {
			ideology = social_democrat
			popularity = -0.03
		}
	}
	option = {
		name = tunisia.27.c
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			set_cosmetic_tag = TUN_REP
		}
		set_politics = {
			ruling_party = radical_socialist
			last_election = "1888.6.15"
			election_frequency = 48
			elections_allowed = no
		}
		create_country_leader = {
			name = "Mohamed Ali Elhammi"
			picture = "gfx/leaders/TUN/Portrait_TUN_Mohamed_Ali_Elhammi.png"
			expire = "1.1.1"
			ideology = radsoc_anarcho_syndicalist_subtype
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.1
		}
		add_popularity = {
			ideology = totalist
			popularity = -0.03
		}
		add_popularity = {
			ideology = syndicalist
			popularity = -0.03
		}
		add_popularity = {
			ideology = social_democrat
			popularity = -0.03
		}
	}
	option = {
		name = tunisia.27.e
		ai_chance = {
			factor = 20
		}
		hidden_effect = {
			set_cosmetic_tag = TUN_REP
		}
		set_politics = {
			ruling_party = social_democrat
			last_election = "1888.6.15"
			election_frequency = 48
			elections_allowed = no
		}
		create_country_leader = {
			name = "Élie Cohen-Hadria"
			picture = "gfx/leaders/TUN/Portrait_TUN_Elie_Cohen_Hadria.png"
			expire = "1.1.1"
			ideology = syndie_social_democrat_subtype
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.1
		}
		add_popularity = {
			ideology = totalist
			popularity = -0.03
		}
		add_popularity = {
			ideology = syndicalist
			popularity = -0.03
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = -0.03
		}
	}
}

country_event = { #Anger over Bey's alliance with the Ulama
	id = tunisia.28
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.28" }
	title = tunisia.28.t
	desc = tunisia.28.d
	picture = GFX_report_event_market

	is_triggered_only = yes

	option = {
		name = tunisia.28.a
		ai_chance = {
			factor = 100
		}
		hidden_effect = {
			country_event = {
				id = tunisia.29
				days = 14
			}
		}
		add_stability = -0.02
	}
}

country_event = { #Anger over Bey's alliance with the Ulama
	id = tunisia.29
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.29" }
	title = tunisia.29.t
	desc = tunisia.29.d
	picture = GFX_report_event_square

	is_triggered_only = yes

	option = {
		name = tunisia.29.a #Bey is overthrown
		ai_chance = {
			factor = 60
		}
		set_politics = {
			ruling_party = totalist
			last_election = "1888.6.15"
			election_frequency = 48
			elections_allowed = no
		}
		create_country_leader = {
			name = "Habib Bourguiba"
			picture = "gfx/leaders/TUN/Portrait_TUN_Habib_Bourguiba.png"
			expire = "1.1.1"
			ideology = natsynd_subtype
		}
		create_field_marshal = {
			name = "Habib Bourguiba"
			portrait_path = "gfx/leaders/TUN/Portrait_TUN_Habib_Bourguiba.png"
			traits = {
				fast_planner
				career_officer
			}
			skill = 3
			attack_skill = 4
			defense_skill = 2
			planning_skill = 2
			logistics_skill = 2
		}
		create_corps_commander = {
			name = "Abdelaziz Thâalbi"
			portrait_path = "gfx/leaders/Generic/Portrait_Arabia_Generic_land_new_1.png"
			traits = {
				trickster
				media_personality
			}
			skill = 2
			attack_skill = 1
			defense_skill = 1
			planning_skill = 3
			logistics_skill = 2
		}
		create_corps_commander = {
			name = "Hassen Belkhodja"
			portrait_path = "gfx/leaders/Generic/Portrait_Arabia_Generic_land_new_4.png"
			traits = {
				fortress_buster
			}
			skill = 2
			attack_skill = 1
			defense_skill = 2
			planning_skill = 3
			logistics_skill = 1
		}
		hidden_effect = {
		every_unit_leader = {
			limit = {
				OR = {
					has_id = 87911 #Monsif Bey
				}
			}
			set_nationality = NSW
			}
		}
		add_popularity = {
			ideology = totalist
			popularity = 0.1
		}
		add_stability = -0.05
		hidden_effect = {
			country_event = {
				id = tunisia.30
				days = 1
			}
		}
	}
	option = {
		name = tunisia.29.b #Beylik survives
		ai_chance = {
			factor = 40
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.03
		}
		add_popularity = {
			ideology = totalist
			popularity = -0.02
		}
		add_popularity = {
			ideology = syndicalist
			popularity = -0.02
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = -0.02
		}
		add_stability = -0.05
	}
}

country_event = { #Tunis Went Socialist - Uprising
	id = tunisia.30
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.30" }
	title = tunisia.30.t
	desc = tunisia.30.d
	picture = GFX_report_event_minaret
	
	timeout_days = 3
	
	is_triggered_only = yes

	option = {
		name = tunisia.30.a
		trigger = {
			tag = TUN
		}
		add_war_support = 0.05
		add_manpower = 2500
		increase_ruling_party_popularity_by_10 = yes
			if = {
				limit = { is_subject = yes }
				overlord = {
					set_autonomy = { target = ROOT autonomous_state = autonomy_free }
				}
			}
			if = {
				limit = { is_in_faction = yes }
				leave_faction = yes
			}
		ENT = { remove_from_faction = TUN }
		separate_peace_all_wars = yes
		drop_cosmetic_tag = yes
		NFA = {
			country_event = {
				id = tunisia.31
				days = 1
			}
		}
	}
}

country_event = { #NFA - crush leftist Tunisian revolt?
	id = tunisia.31
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.31" }
	title = tunisia.31.t
	desc = tunisia.31.d
	picture = GFX_report_event_minaret
	
	is_triggered_only = yes
	
	timeout_days = 3

	option = {
		name = tunisia.31.a
		ai_chance = {
			factor = 90
			modifier = {
				factor = 0.1
				has_war = yes
			}
		}
		declare_war_on = {
			target = TUN
			type = annex_everything
		}
		add_political_power = -30
		add_war_support = -0.02
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.18
					days = 1
				}
			}
		}
	}
	option = {
		name = tunisia.31.b
		ai_chance = {
			factor = 10
		}
		add_stability = -0.01
		hidden_effect = {
			TUN = {
				country_event = {
					id = tunisia.17
					days = 1
				}
			}
		}
	}
}

country_event = { #The Approach to Syndicalism
	id = tunisia.32
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.32" }
	title = tunisia.32.t
	desc = tunisia.32.d
	picture = GFX_news_event_FRA_paris

	is_triggered_only = yes
	
	trigger = {
		has_socialist_government = yes
	}
	
	option = {
		name = tunisia.32.a #all good
		add_stability = 0.02
	}
	option = {
		name = tunisia.32.b #Totalist - change
		trigger = {
			has_government = totalist
		}
		create_country_leader = {
			name = "Habib Bourguiba"
			picture = "gfx/leaders/TUN/Portrait_TUN_Habib_Bourguiba.png"
			expire = "1.1.1"
			ideology = militant_atheism_subtype
		}
		add_war_support = 0.02
	}
	option = {
		name = tunisia.32.c #Syndicalist - change
		trigger = {
			has_government = syndicalist
		}
		create_country_leader = {
			name = "Tahar Haddad"
			picture = "gfx/leaders/TUN/Portrait_TUN_Tahar_Haddad.png"
			expire = "1.1.1"
			ideology = syn_developing_leftism_subtype
		}
		add_war_support = 0.02
	}
	option = {
		name = tunisia.32.e #Rad Soc - change
		trigger = {
			has_government = radical_socialist
		}
		create_country_leader = {
			name = "Mohamed Ali Elhammi"
			picture = "gfx/leaders/TUN/Portrait_TUN_Mohamed_Ali_Elhammi.png"
			expire = "1.1.1"
			ideology = moderate_socialist_subtype
		}
		add_war_support = 0.02
	}
	option = {
		name = tunisia.32.e #Soc Dem - change
		trigger = {
			has_government = social_democrat
		}
		create_country_leader = {
			name = "Élie Cohen-Hadria"
			picture = "gfx/leaders/TUN/Portrait_TUN_Elie_Cohen_Hadria.png"
			expire = "1.1.1"
			ideology = socdem_left_nationalism_subtype
		}
		add_war_support = 0.02
	}
}

country_event = { #Cyrenaica - defend Libya from Tunisia?
	id = tunisia.33
	immediate = { log = "[GetDateText]: [Root.GetName]: tunisia.33" }
	title = tunisia.33.t
	desc = tunisia.33.d
	picture = GFX_report_event_minaret
	
	fire_only_once = yes

	mean_time_to_happen = {
		days = 30
	}

	trigger = {
		original_tag = LBA
		is_in_faction = no
		is_subject = no
		OR = {
			TUN = { controls_state = 448 }
			TUN = { owns_state = 448 }
		}
	}
	
	timeout_days = 3

	option = {
		name = tunisia.33.a
		ai_chance = {
			factor = 90
			modifier = {
				factor = 0.1
				has_war = yes
			}
		}
		declare_war_on = {
			target = TUN
			type = annex_everything
		}
	}
	option = {
		name = tunisia.33.b
		ai_chance = {
			factor = 10
		}
	}
}

#Flavour events

country_event = { #The Carthage Eucharistic Congress
	id = tunflav.1
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.1" }
	title = tunflav.1.t
	desc = tunflav.1.d
	picture = GFX_report_event_eucharist
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.1.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.03
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
	}
}


country_event = { #The Msika Affair
	id = tunflav.2
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.2" }
	title = tunflav.2.t
	desc = tunflav.2.d
	picture = GFX_report_event_minaret
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.2.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = FRA
				}
			add_stability = -0.01
		}
	}
}
country_event = { #Republication of the 'The Surest Path'
	id = tunflav.3
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.3" }
	title = tunflav.3.t
	desc = tunflav.3.d
	picture = GFX_report_event_tunisiatown
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.3.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 10
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #Khumayr Raids on the Algerian-Tunisian Border
	id = tunflav.4
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.4" }
	title = tunflav.4.t
	desc = tunflav.4.d
	picture = GFX_report_event_nomads
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.4.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
			add_manpower = -82
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = -0.01
			add_manpower = -37
		}
	}
}

country_event = { #Muhammed Ali Returns from Egypt
	id = tunflav.5
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.5" }
	title = tunflav.5.t
	desc = tunflav.5.d
	picture = GFX_report_event_gare
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.5.a
		if = {
			limit = {
				tag = TUN
				}
			add_popularity = { ideology = syndicalist popularity = -0.02 }
			add_political_power = -10
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
		if = {
			limit = {
				tag = EGY
				}
			add_political_power = 10
		}
	}
}

country_event = { #Return of the Ottoman Exiles to Tunis
	id = tunflav.6
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.6" }
	title = tunflav.6.t
	desc = tunflav.6.d
	picture = GFX_report_event_lagoulette
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.6.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 20
			add_stability = 0.01
		}
		if = {
			limit = {
				tag = TUR
				}
			add_political_power = 10
		}
	}
}

country_event = { #La Tunisie Martyre Spreads
	id = tunflav.7
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.7" }
	title = tunflav.7.t
	desc = tunflav.7.d
	picture = GFX_report_event_martyr
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.7.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -20
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
	}
}

country_event = { #Huwa Am!
	id = tunflav.8
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.8" }
	title = tunflav.8.t
	desc = tunflav.8.d
	picture = GFX_report_event_tunisiatown
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.8.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #The Musulfrancs Problem
	id = tunflav.9
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.9" }
	title = tunflav.9.t
	desc = tunflav.9.d
	picture = GFX_report_event_villa
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.9.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #Infighting at the L'Institut Pasteur de Tunis
	id = tunflav.10
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.10" }
	title = tunflav.10.t
	desc = tunflav.10.d
	picture = GFX_report_event_ghorfas
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.10.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = 0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #Moncef Bey Renovates the Ghriba Synagogue
	id = tunflav.11
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.11" }
	title = tunflav.11.t
	desc = tunflav.11.d
	picture = GFX_report_event_minaret
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.11.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = 0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
		if = {
			limit = {
				tag = TUR
				}
			add_political_power = 5
		}
	}
}

country_event = { #Statement of Intent
	id = tunflav.12
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.12" }
	title = tunflav.12.t
	desc = tunflav.12.d
	picture = GFX_report_event_missionschool
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.12.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 10
		}
	}
}

country_event = { #Tunisia in the Weltkrieg
	id = tunflav.13
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.13" }
	title = tunflav.13.t
	desc = tunflav.13.d
	picture = GFX_report_event_oasis
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.13.a
		if = {
			limit = {
				tag = TUN
				}
			add_war_support = 0.01
			add_political_power = -20
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 10
		}
	}
}

country_event = { #Bourguiba Attends the Birmingham Meeting
	id = tunflav.14
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.14" }
	title = tunflav.14.t
	desc = tunflav.14.d
	picture = GFX_report_event_syndicats
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.14.a
		if = {
			limit = {
				tag = TUN
				}
			add_popularity = { ideology = totalist popularity = 0.01 }
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
	}
}

country_event = { #War Rumours in Tunis
	id = tunflav.15
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.15" }
	title = tunflav.15.t
	desc = tunflav.15.d
	picture = GFX_report_event_arabs
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		TUN = { is_subject_of = NFA }
	}
	
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.15.a
		if = {
			limit = {
				tag = TUN
				}
			add_war_support = 0.01
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
		if = {
			limit = {
				tag = EGY
				}
			add_political_power = -10
		}
	}
}

country_event = { #L'Action Tunissiene
	id = tunflav.16
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.16" }
	title = tunflav.16.t
	desc = tunflav.16.d
	picture = GFX_report_event_action
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		TUN = { is_subject_of = NFA }
	}
	
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.16.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -10
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #Breakout at Bordj le Boeuf
	id = tunflav.17
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.17" }
	title = tunflav.17.t
	desc = tunflav.17.d
	picture = GFX_report_event_prison
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.17.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
	}
}

country_event = { #Inter-Dustur Riots in Beja
	id = tunflav.18
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.18" }
	title = tunflav.18.t
	desc = tunflav.18.d
	picture = GFX_report_event_oranport
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		TUN = { is_subject_of = NFA }
	}
	
	#minor_flavor = yes

	is_triggered_only = yes

	option = {
		name = tunflav.18.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 10
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 10
		}
	}
}

country_event = { #The Belhaouane Massacre
	id = tunflav.19
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.19" }
	title = tunflav.19.t
	desc = tunflav.19.d
	picture = GFX_news_event_FRA_antijacobin_riots
	
	trigger = { 
		TUN = { is_subject_of = NFA }
	}

	is_triggered_only = yes

	option = {
		name = tunflav.19.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.06
			add_war_support = -0.04
			add_political_power = -50
		}
		if = {
			limit = {
				tag = NFA
				}
			add_stability = -0.01
			add_political_power = -20
		}
	}
}

country_event = { #Rise of Fallaqa Attacks in Tunisia
	id = tunflav.20
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.20" }
	title = tunflav.20.t
	desc = tunflav.20.d
	picture = GFX_report_event_sudwest
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.20.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #Flag picker
	id = tunflav.21
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.21" }
	title = tunflav.21.t
	desc = tunflav.21.d
	picture = GFX_report_event_market
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.21.a
	}
	option = {
		name = tunflav.21.b
		set_cosmetic_tag = TUN_BEY
	}
	option = {
		name = tunflav.21.c
		set_cosmetic_tag = TUN_BEY2
	}
	option = {
		name = tunflav.21.e
		set_cosmetic_tag = TUN_BEY3
	}
	option = {
		name = tunflav.21.f
		set_cosmetic_tag = TUN_HUS
	}
	option = {
		name = tunflav.21.g
		drop_cosmetic_tag = yes
	}
}

country_event = { #Spread ourselves?
	id = tunflav.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event tunflav.22" }
	title = tunflav.22.t
	desc = tunflav.22.d
	picture = GFX_report_event_beylik
	
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
		}
	}

	option = {
		name = tunflav.22.a
		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = tunflav.22.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0.1
				OR = {
					has_government = social_democrat
					has_socialist_government = yes
				}
			}
		}
		set_cosmetic_tag = TUN_EMP
		add_ideas = TUN_revanchism_idea
		add_war_support = 0.05
		add_political_power = -50
		every_state = {
			limit = { is_core_of = MLT }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = SRD }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = ALG }
			add_core_of = ROOT
		}
		every_state = {
			limit = { is_core_of = MOR }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = LBA }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = TRP }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = MRT }
			add_claim_by = ROOT
		}
		1 = { add_claim_by = ROOT } #Corsica
		115 = { add_claim_by = ROOT } #Sicily
		117 = { add_claim_by = ROOT } #Balaerics
	}
}

country_event = { #Muslim Scholars Complain about Vintners
	id = tunflav.23
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.23" }
	title = tunflav.23.t
	desc = tunflav.23.d
	picture = GFX_report_event_terraces
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.23.a
		if = {
			limit = {
				tag = TUN
				}
			add_popularity = { ideology = social_conservative popularity = 0.03 }
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #Continued Influx of Rural Migrants
	id = tunflav.24
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.24" }
	title = tunflav.24.t
	desc = tunflav.24.d
	picture = GFX_report_event_stones
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.24.a
		if = {
			limit = {
				tag = TUN
				}
			add_stability = -0.01
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -10
		}
	}
}

country_event = { #Instability in Southern Europe Boosts Exports
	id = tunflav.25
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.25" }
	title = tunflav.25.t
	desc = tunflav.25.d
	picture = GFX_report_event_nomads
	
	fire_only_once = yes
	
	trigger = {
		is_ai = no
		tag = TUN
		OR = {
			SPR = {
				has_war = yes
			}
			SIC = {
				has_war = yes
			}
		}
	}
	
	mean_time_to_happen = {
		days = 120
	}
	
	option = {
		name = tunflav.25.a
		if = {
			limit = {
				tag = TUN
				}
			add_offsite_building = { type = industrial_complex level = 1 }
			add_political_power = 30
			add_stability = 0.01
		}
	}
}

country_event = { #The Tunisian Hat Wars
	id = tunflav.26
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.26" }
	title = tunflav.26.t
	desc = tunflav.26.d
	picture = GFX_report_event_ghorfas
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.26.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -10
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #The Friendly Association
	id = tunflav.27
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.27" }
	title = tunflav.27.t
	desc = tunflav.27.d
	picture = GFX_report_event_ghorfas
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.27.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 5
		}
	}
}

country_event = { #Challaye Reports on Maghrebi Violence
	id = tunflav.28
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.28" }
	title = tunflav.28.t
	desc = tunflav.28.d
	picture = GFX_report_event_oasis
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.28.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -20
		}
	}
}

country_event = { #The Death of Alexis Lemaitr
	id = tunflav.29
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.29" }
	title = tunflav.29.t
	desc = tunflav.29.d
	picture = GFX_report_event_priests
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.29.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 5
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = -5
		}
	}
}

country_event = { #The Rise of Couscous
	id = tunflav.30
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.30" }
	title = tunflav.30.t
	desc = tunflav.30.d
	picture = GFX_report_event_minaret
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.30.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 5
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #A Standard Day in Tunisia
	id = tunflav.31
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.31" }
	title = tunflav.31.t
	desc = tunflav.31.d
	picture = GFX_report_event_villa
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.31.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 5
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #Kaddour ben Nitram, the Funny Man of Tunis
	id = tunflav.32
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.32" }
	title = tunflav.32.t
	desc = tunflav.32.d
	picture = GFX_report_event_ghorfas
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.32.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = 5
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #Conservative Anger at Tunis
	id = tunflav.33
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.33" }
	title = tunflav.33.t
	desc = tunflav.33.d
	picture = GFX_report_event_tebourba
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes
	
	option = {
		name = tunflav.33.a
		add_ideas = TUN_discontentedulama_idea
		add_political_power = -30
	}
}

country_event = { #The Tunisian Ideological Divide
	id = tunflav.34
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.34" }
	title = tunflav.34.t
	desc = tunflav.34.d
	picture = GFX_report_event_delegation
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.34.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -10
			add_popularity = {
				ideology = social_democrat
				popularity = -0.01
			}
			add_popularity = {
				ideology = market_liberal
				popularity = -0.01
			}
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #The Italian Maghrebis
	id = tunflav.35
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.35" }
	title = tunflav.35.t
	desc = tunflav.35.d
	picture = GFX_report_event_minaret
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.35.a
		if = {
			limit = {
				tag = TUN
				}
			add_political_power = -10
			add_popularity = {
				ideology = social_democrat
				popularity = -0.01
			}
			add_popularity = {
				ideology = market_liberal
				popularity = -0.01
			}
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #Alexandrine Patriarch Visits Tunis
	id = tunflav.36
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.36" }
	title = tunflav.36.t
	desc = tunflav.36.d
	picture = GFX_report_event_EGY_coptic_pope
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.36.a
	}
}

country_event = { #The Restoration of Mamluk Identity
	id = tunflav.37
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.37" }
	title = tunflav.37.t
	desc = tunflav.37.d
	picture = GFX_report_event_tunisiatown
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.37.a
	}
}

country_event = { #The Arslan-Bourguiba Meeting
	id = tunflav.38
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.38" }
	title = tunflav.38.t
	desc = tunflav.38.d
	picture = GFX_report_event_meeting
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.38.a
		add_political_power = -10
	}
}

country_event = { #Legacy of the Franco-Tunisian Customs Union
	id = tunflav.39
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.39" }
	title = tunflav.39.t
	desc = tunflav.39.d
	picture = GFX_report_event_fishermen
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.39.a
	}
}

country_event = { #Weakening Opposition
	id = tunflav.40
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.40" }
	title = tunflav.40.t
	desc = tunflav.40.d
	picture = GFX_report_event_dustur
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.40.a
		increase_ruling_party_popularity_by_5 = yes
		add_stability = -0.02
		add_war_support = -0.01
	}
}

country_event = { #Student Protests at Zaituna
	id = tunflav.41
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.41" }
	title = tunflav.41.t
	desc = tunflav.41.d
	picture = GFX_report_event_dustur
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.41.a
		add_stability = -0.03
	}
}

country_event = { #Thirtieth Anniversary of Le Tunisien
	id = tunflav.42
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.42" }
	title = tunflav.42.t
	desc = tunflav.42.d
	picture = GFX_report_event_bureau
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.42.a
		if = {
			limit = {
				tag = TUN
				}
			add_popularity = {
				ideology = social_liberal
				popularity = 0.01
			}
			add_popularity = {
				ideology = market_liberal
				popularity = 0.01
			}
		}
	}
}

country_event = { #al-Sadli Defects to Néo-Dustūr
	id = tunflav.43
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.43" }
	title = tunflav.43.t
	desc = tunflav.43.d
	picture = GFX_report_event_syndicats
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.43.a
		if = {
			limit = {
				tag = TUN
				}
			add_popularity = {
				ideology = social_democrat
				popularity = -0.01
			}
			add_popularity = {
				ideology = totalist
				popularity = 0.01
			}
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = { #Splits Over Tunisian Totalism
	id = tunflav.44
	immediate = { log = "[GetDateText]: [Root.GetName]: tunflav.44" }
	title = tunflav.44.t
	desc = tunflav.44.d
	picture = GFX_report_event_tunisiatown
	
	is_triggered_only = yes
	
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = tunflav.44.a
		if = {
			limit = {
				tag = TUN
				}
			add_popularity = {
				ideology = totalist
				popularity = -0.01
			}
		}
		if = {
			limit = {
				tag = NFA
				}
			add_political_power = 5
		}
	}
}

country_event = {	#Antun Saadeh publishes 'The Genesis of Nations' - OTT event
	id = tunflav.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event tunflav.45" }
	title = tunflav.45.t
	desc = tunflav.45.d
	is_triggered_only = yes

	picture = GFX_OTT_Antun_Saadeh

	trigger = { 
		is_ai = no
	}
	#minor_flavor = yes

	option = {
		name = tunflav.45.a
		add_stability = -0.01
	}
}

country_event = {	#Increased attacks in the Hejaz - from OTT
	id = tunflav.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event tunflav.46" }
	title = tunflav.46.t
	desc = tunflav.46.d

	is_triggered_only = yes
	picture = GFX_LBA_Camel2

	option = {
		name = tunflav.46.a
		ai_chance = {
			factor = 60
		}
		add_political_power = -10
	}
}

country_event = {	#Famine in Ottoman Tripolitania
	id = tunflav.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event tunflav.47" }
	title = tunflav.47.t
	desc = tunflav.47.d
	is_triggered_only = yes

	picture = GFX_OTT_Famine

	option = {
		name = tunflav.47.a
		ai_chance = {
			factor = 60
		}
		add_political_power = -15
		add_manpower = 176
	}
}

country_event = { #Spread ourselves - socialist version?
	id = tunflav.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event tunflav.48" }
	title = tunflav.48.t
	desc = tunflav.48.d
	picture = GFX_report_event_tunisiatown
	
	is_triggered_only = yes
	
	trigger = {
		has_socialist_government = yes
	}

	option = {
		name = tunflav.48.a
		ai_chance = {
			factor = 90
		}
	}
	option = {
		name = tunflav.48.b
		ai_chance = {
			factor = 10
		}
		set_cosmetic_tag = TUN_EMP_SOC
		add_ideas = TUN_revanchism_idea
		add_war_support = 0.05
		add_political_power = -50
		every_state = {
			limit = { is_core_of = MLT }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = SRD }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = ALG }
			add_core_of = ROOT
		}
		every_state = {
			limit = { is_core_of = MOR }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = LBA }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = TRP }
			add_claim_by = ROOT
		}
		every_state = {
			limit = { is_core_of = MRT }
			add_claim_by = ROOT
		}
		1 = { add_claim_by = ROOT } #Corsica
		115 = { add_claim_by = ROOT } #Sicily
		117 = { add_claim_by = ROOT } #Balaerics
	}
}