add_namespace = arab_spring

country_event = {	#Mohammed Bouazizi Self Immolation 17th of December 2010
	id = arab_spring.1
	title = arab_spring.1.t
	desc = arab_spring.1.d
	picture = GFX_report_arab_spring_tunisia1
	trigger = {
        has_government = reactionary
		date < 2018.09.15
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.1.o1
        hidden_effect = {
            country_event = {
                id = arab_spring.2
                days = 1
                random_hours = 10
            }
        }
		add_political_power = -20
		add_popularity = {
			ideology = reactionary
			popularity = -0.05
		}
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Protests against Ben Ali
	id = arab_spring.2
	title = arab_spring.2.t
	desc = arab_spring.2.d
	picture = GFX_report_arab_spring_tunisia2
	
	is_triggered_only = yes

	option = {
		name = arab_spring.2.o1
        hidden_effect = {
			country_event = {
                id = arab_spring.3
                days = 19
                random_hours = 10
            }
        }
		news_event = {
			id = arab_spring_news.1
			days = 1
			random_hours = 10
		}
		add_stability = -0.05
		add_popularity = {
			ideology = reactionary
			popularity = -0.02
		}
		ai_chance = {
		    factor = 80
	    }
	}
	option = {
		name = arab_spring.2.o2
        hidden_effect = {
			country_event = {
                id = arab_spring.6
                days = 19
                random_hours = 10
            }
        }
		hidden_effect = {
			country_event = {
                id = arab_spring.9
                days = 7
                random_hours = 10
            }
        }
		news_event = {
			id = arab_spring_news.1
			days = 1
			random_hours = 10
		}
		add_stability = -0.1
		add_popularity = {
			ideology = reactionary
			popularity = -0.05
		}
		ai_chance = {
		    factor = 20
	    }
	}
}

country_event = {	#Death of Bouazizi
	id = arab_spring.3
	title = arab_spring.3.t
	desc = arab_spring.3.d
	picture = GFX_report_arab_spring_tunisia3
	
	is_triggered_only = yes

	option = {
		name = arab_spring.3.o1
        hidden_effect = {
			country_event = {
                id = arab_spring.4
                days = 10
                random_hours = 10
            }
        }
		add_stability = -0.03
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Ben Ali flees country
	id = arab_spring.4
	title = arab_spring.4.t
	desc = arab_spring.4.d
	picture = GFX_report_arab_spring_tunisia4
	
	is_triggered_only = yes

	option = {
		name = arab_spring.4.o1
        hidden_effect = {
			country_event = {
                id = arab_spring.5
                days = 1
                random_hours = 10
            }
        }
		add_country_leader_role = {
			character = TUN_Mohamed_Ghannouchi
			promote_leader = yes
			country_leader = {
				ideology = authoritarian_democrat
				expire = "1.1.1.1"
				traits = { 
					emergency_powers
				}
			}
			
		}
		news_event = {
			id = arab_spring_news.2
			days = 1
			random_hours = 10
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Ghannouchi resigns
	id = arab_spring.5
	title = arab_spring.5.t
	desc = arab_spring.5.d
	picture = GFX_report_arab_spring_tunisia5
	
	is_triggered_only = yes

	option = {
		name = arab_spring.5.o1
        hidden_effect = {
			
        }
		add_country_leader_role = {
			character = TUN_Fouad_Mebazaa
			promote_leader = yes
			country_leader = {
				ideology = counter_progressive_democrat
				expire = "1.1.1.1"
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Death of Bouazizi - Civil War
	id = arab_spring.6
	title = arab_spring.6.t
	desc = arab_spring.6.d
	picture = GFX_report_arab_spring_tunisia3
	
	is_triggered_only = yes

	option = {
		name = arab_spring.6.o1
		add_stability = -0.03
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Algeria Protests
	id = arab_spring.7
	title = arab_spring.7.t
	desc = arab_spring.7.d
	picture = GFX_report_arab_spring_algeria1
	trigger = {
        has_government = democratic_socialist
		date < 2018.09.15
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.7.o1
		add_stability = -0.03
		ai_chance = {
		    factor = 100
	    }
		hidden_effect = {
			country_event = {
                id = arab_spring.8
                days = 10
                random_hours = 10
            }
        }
	}
}

country_event = {	#Lift State of Emergency or harsher punishment
	id = arab_spring.8
	title = arab_spring.8.t
	desc = arab_spring.8.d
	picture = GFX_report_arab_spring_algeria2
	
	is_triggered_only = yes

	option = {
		name = arab_spring.8.o1
		add_stability = 0.03
		remove_ideas = ALG_State_of_Emergency
		remove_country_leader_trait = emergency_powers
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.8.o2
		add_stability = -0.05
		hidden_effect = {
			country_event = {
                id = arab_spring.10
                days = 5
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Civil War - Tunisia
	id = arab_spring.9
	title = arab_spring.9.t
	desc = arab_spring.9.d
	picture = GFX_report_arab_spring_tunisia6
	
	is_triggered_only = yes

	option = {
		name = arab_spring.9.o1
		add_stability = -0.05
		start_civil_war = {
			ideology = islamist
			size = 0.2
			states = { 
				665
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Civil War - Algeria
	id = arab_spring.10
	title = arab_spring.10.t
	desc = arab_spring.10.d
	picture = GFX_report_arab_spring_algeria3
	
	is_triggered_only = yes

	option = {
		name = arab_spring.10.o1
		add_stability = -0.05
		start_civil_war = {
			ideology = social_liberal
			size = 0.3
			states = { 
				1115
				1118
				1116
				514
				1117
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Oman 2011 Protests
	id = arab_spring.11
	title = arab_spring.11.t
	desc = arab_spring.11.d
	picture = GFX_report_arab_spring_oman1
	trigger = {
        has_government = monarchist
		date < 2018.09.15
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.11.o1
		add_stability = -0.02
		hidden_effect = {
			country_event = {
                id = arab_spring.12
                days = 10
                random_hours = 10
            }
        }
		add_popularity = {
			ideology = monarchist
			popularity = -0.01
		}
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Oman 2011 Lulu Hypermarket set aflame
	id = arab_spring.12
	title = arab_spring.12.t
	desc = arab_spring.12.d
	picture = GFX_report_arab_spring_oman2
	
	is_triggered_only = yes

	option = {
		name = arab_spring.12.o1
		add_stability = -0.01
		hidden_effect = {
			country_event = {
                id = arab_spring.13
                days = 10
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
}

country_event = {	#Oman 2011 Reform
	id = arab_spring.13
	title = arab_spring.13.t
	desc = arab_spring.13.d
	picture = GFX_report_arab_spring_oman3
	
	is_triggered_only = yes

	option = {
		name = arab_spring.13.o1
		add_stability = 0.05
		add_popularity = {
			ideology = monarchist
			popularity = 0.03
		}
		add_political_power = -150
		add_ideas = welfare_modest_assistance
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Egyptian Protests
	id = arab_spring.14
	title = arab_spring.14.t
	desc = arab_spring.14.d
	picture = GFX_report_arab_spring_egypt1
	trigger = {
        has_government = nationalist
		date < 2018.09.15
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.14.o1
		add_stability = -0.05
		add_popularity = {
			ideology = nationalist
			popularity = -0.03
		}
		hidden_effect = {
			country_event = {
                id = arab_spring.17
                days = 17
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Kuwait Stateless Protests
	id = arab_spring.15
	title = arab_spring.15.t
	desc = arab_spring.15.d
	picture = GFX_report_arab_spring_kuwait1
	trigger = {
        has_government = monarchist
		date < 2018.09.15
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.15.o1
		add_stability = -0.03
		add_popularity = {
			ideology = monarchist
			popularity = -0.01
		}
		hidden_effect = {
			country_event = {
                id = arab_spring.16
                days = 90
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Kuwait Political Protests
	id = arab_spring.16
	title = arab_spring.16.t
	desc = arab_spring.16.d
	picture = GFX_report_arab_spring_kuwait2
	
	is_triggered_only = yes

	option = {
		name = arab_spring.16.o1
		add_stability = -0.05
		add_popularity = {
			ideology = monarchist
			popularity = -0.01
		}
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.16.o2
		add_stability = 0.01
		add_popularity = {
			ideology = monarchist
			popularity = 0.01
		}
		add_political_power = -150
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Mubarak resign or not
	id = arab_spring.17
	title = arab_spring.17.t
	desc = arab_spring.17.d
	picture = GFX_report_arab_spring_egypt2
	
	is_triggered_only = yes

	option = {
		name = arab_spring.17.o1
		add_country_leader_role = {
			character = EGY_mohamed_tantawi
			promote_leader = yes
			country_leader = {
				ideology = military_junta
				expire = "1.1.1.1"
				traits = {
					military_theorist
				}
			}
		}
		set_party_name = {
			ideology = nationalist
			long_name = "Supreme Council of the Armed Forces"	
			name = "SCAF"
		}
		hidden_effect = {
			country_event = {
                id = arab_spring.19
                days = 100
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
	option = { #Civil War
		name = arab_spring.17.o2
		add_stability = -0.02
		hidden_effect = {
			country_event = {
                id = arab_spring.18
                days = 1
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Egyptian Civil War
	id = arab_spring.18
	title = arab_spring.18.t
	desc = arab_spring.18.d
	picture = GFX_report_arab_spring_egypt3
	
	is_triggered_only = yes

	option = {
		name = arab_spring.18.o1
		add_stability = -0.05
		start_civil_war = {
			ideology = islamist
			size = 0.3
			states = { 
				552
				1032
				453
				447
			}
		}
		
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Egyptian 2012 Elections
	id = arab_spring.19
	title = arab_spring.19.t
	desc = arab_spring.19.d
	picture = GFX_report_arab_spring_egypt4
	
	is_triggered_only = yes

	option = {
		name = arab_spring.19.o1
		add_popularity = {
			ideology = islamist
			popularity = 0.1
		}
		set_politics = {
			ruling_party = islamist
			elections_allowed = yes
		}
		hidden_effect = {
			set_party_name = {
				ideology = nationalist
				long_name = "Dignity Party"	
				name = "Dignity Party"
			}
			add_country_leader_role = {
				character = EGY_Hamdeen_Sabahi
				promote_leader = yes
				country_leader = {
					ideology = pannationalist
					expire = "1.1.1.1"
				}
			}
			country_event = {
                id = arab_spring.20
                days = 150
                random_hours = 10
            }
        }
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.19.o2
		add_popularity = {
			ideology = social_liberal
			popularity = 0.1
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		set_party_name = {
			ideology = social_liberal
			long_name = "Independent"	
			name = "Independent"
		}
		hidden_effect = {
			set_party_name = {
				ideology = nationalist
				long_name = "Dignity Party"	
				name = "Dignity Party"
			}
			add_country_leader_role = {
				character = EGY_Hamdeen_Sabahi
				promote_leader = yes
				country_leader = {
					ideology = pannationalist
					expire = "1.1.1.1"
				}
			}
        }
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.19.o3
		add_popularity = {
			ideology = social_liberal
			popularity = 0.1
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		add_country_leader_role = {
			character = EGY_Amr_Moussa
			promote_leader = yes
			country_leader = {
				ideology = moderate
				expire = "1.1.1.1"
				traits = {
					ARAB_Former_Foreign_Minister
					ARAB_Remnant_of_the_old_Regime
				}
			}
		}
		set_party_name = {
			ideology = social_liberal
			long_name = "Independent"	
			name = "Independent"
		}
		hidden_effect = {
			set_party_name = {
				ideology = nationalist
				long_name = "Dignity Party"	
				name = "Dignity Party"
			}
			add_country_leader_role = {
				character = EGY_Hamdeen_Sabahi
				promote_leader = yes
				country_leader = {
					ideology = pannationalist
					expire = "1.1.1.1"
				}
			}
        }
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.19.o4
		add_popularity = {
			ideology = nationalist
			popularity = 0.1
		}
		set_party_name = {
			ideology = democratic_socialist
			long_name = "Egyptian Popular Current"	
			name = "EPC"
		}
		add_country_leader_role = {
			character = EGY_Hamdeen_Sabahi
			promote_leader = yes
			country_leader = {
				ideology = pannationalist
				expire = "1.1.1.1"
				traits = {
					editor
					ARAB_Staunch_Pan_Arabist
				}
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.19.o5
		add_popularity = {
			ideology = islamist
			popularity = 0.1
		}
		set_politics = {
			ruling_party = islamist
			elections_allowed = yes
		}
		set_party_name = {
			ideology = islamist
			long_name = "Independent and Al-Nour Party"	
			name = "Independent Islamist"
		}
		add_country_leader_role = {
			character = EGY_Abdel_Moneim_Aboul_Fotouh
			promote_leader = yes
			country_leader = {
				ideology = islamic_republican
				expire = "1.1.1.1"
				traits = {
					ARAB_Islamic_Democrat
					ARAB_Backed_by_the_Al_Nour
				}
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Egyptian 2013 Protests
	id = arab_spring.20
	title = arab_spring.20.t
	desc = arab_spring.20.d
	picture = GFX_report_arab_spring_egypt5
	
	is_triggered_only = yes

	option = {
		name = arab_spring.20.o1
		add_stability = -0.05
		add_popularity = {
			ideology = islamist
			popularity = -0.1
		}
		add_country_leader_trait = ARAB_Unwanted_President
		ai_chance = {
		    factor = 100
	    }
		hidden_effect = {
			country_event = {
                id = arab_spring.21
                days = 6
                random_hours = 10
            }
        }
		remove_country_leader_trait = ARAB_First_Democratic_President_Egypt
	}
}
country_event = {	#Egyptian 2013 Coup
	id = arab_spring.21
	title = arab_spring.21.t
	desc = arab_spring.21.d
	picture = GFX_report_arab_spring_egypt6
	
	is_triggered_only = yes

	option = {
		name = arab_spring.21.o1
		add_country_leader_role = {
			character = EGY_Adly_Mansour
			promote_leader = yes
			country_leader = {
				ideology = national_democrat 
				expire = "1.1.1.1"
				traits = {
					
				}
			}
		}
		add_popularity = {
			ideology = islamist
			popularity = -0.35
		}
		add_popularity = {
			ideology = nationalist
			popularity = 0.15
		}
		set_politics = {
			ruling_party = nationalist
			elections_allowed = yes
		}
		set_party_name = {
			ideology = nationalist
			long_name = "Independent"	
			name = "Independent"
		}
		ai_chance = {
		    factor = 100
	    }
	}
	option = {
		name = arab_spring.21.o2
		add_political_power = -40
		hidden_effect = {
			add_country_leader_role = {
				character = EGY_Adly_Mansour
				promote_leader = yes
				country_leader = {
					ideology = military_junta
					expire = "1.1.1.1"
					traits = {
						
					}
				}
			}
			set_party_name = {
				ideology = nationalist
				long_name = "Independent"	
				name = "Independent"
			}
			country_event = {
				id = arab_spring.22
				days = 2
				random_hours = 10
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Egyptian Civil War
	id = arab_spring.22
	title = arab_spring.22.t
	desc = arab_spring.22.d
	picture = GFX_report_arab_spring_egypt3
	
	is_triggered_only = yes

	option = {
		name = arab_spring.22.o1
		add_stability = -0.05
		start_civil_war = {
			ideology = nationalist
			size = 0.3
			states = { 
				552
				1032
				453
				447
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Jordan 2011 Protests
	id = arab_spring.23
	title = arab_spring.23.t
	desc = arab_spring.23.d
	picture = GFX_report_arab_spring_jordan1
	trigger = {
        has_government = monarchist
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.23.o1
		add_stability = -0.02
		hidden_effect = {
			country_event = {
                id = arab_spring.24
                days = 20
                random_hours = 10
            }
        }
		add_popularity = {
			ideology = monarchist
			popularity = -0.01
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Jordan Protests continue
	id = arab_spring.24
	title = arab_spring.24.t
	desc = arab_spring.24.d
	picture = GFX_report_arab_spring_jordan2
	is_triggered_only = yes

	option = { #Reforms happen + Prime Minister removed
		name = arab_spring.24.o1
		add_stability = 0.03
		add_popularity = {
			ideology = monarchist
			popularity = 0.01
		}
		add_political_power = -200
		add_popularity = {
			ideology = islamist
			popularity = 0.02
		}
		add_war_support = -0.05
		ai_chance = {
		    factor = 100
	    }
	}
	option = {#islamic Action Front gains traction
		name = arab_spring.24.o2
		add_stability = -0.06
		hidden_effect = {
			country_event = {
                id = arab_spring.25
                days = 10
                random_hours = 10
            }
        }
		add_popularity = {
			ideology = islamist
			popularity = 0.05
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Jordanian Civil War
	id = arab_spring.25
	title = arab_spring.25.t
	desc = arab_spring.25.d
	picture = GFX_report_arab_spring_jordan3
	trigger = {
        has_government = monarchist
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.25.o1
		add_stability = -0.08
		start_civil_war = {
			ideology = islamist
			size = 0.3
			states = { 
				1175
			}
		}
		add_popularity = {
			ideology = monarchist
			popularity = -0.04
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Bahrain 2011 Protests
	id = arab_spring.26
	title = arab_spring.26.t
	desc = arab_spring.26.d
	picture = GFX_report_arab_spring_bahrain1
	trigger = {
        has_government = monarchist
	}
	is_triggered_only = yes

	option = {
		name = arab_spring.26.o1
		add_stability = -0.02
		hidden_effect = {
			SAU = {
				country_event = {
					id = arab_spring.27
					days = 20
					random_hours = 10
				}
			}
        }
		add_popularity = {
			ideology = monarchist
			popularity = -0.01
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#GCC Send Troops yes or no
	id = arab_spring.27
	title = arab_spring.27.t
	desc = arab_spring.27.d
	picture = GFX_report_arab_spring_bahrain2
	is_triggered_only = yes

	option = { #Yes
		name = arab_spring.27.o1
		add_stability = -0.02
		BAR = {
			country_event = {
				id = arab_spring.28
				days = 2
				random_hours = 10
			}
		}
		add_manpower = -1500
		add_stability = -0.05
		ai_chance = {
		    factor = 100
	    }
	}
	option = { #No
		name = arab_spring.27.o2
		add_stability = 0.05

		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#GCC Troops Arrive Bahrain
	id = arab_spring.28
	title = arab_spring.28.t
	desc = arab_spring.28.d
	picture = GFX_report_arab_spring_bahrain3
	trigger = {
        has_government = monarchist
	}
	is_triggered_only = yes

	option = { #Yes
		name = arab_spring.28.o1
		add_stability = -0.02
		SAU = {
			puppet = {
				target = BAR
				end_wars = no
			}
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#Protests intensify and storm the Palace
	id = arab_spring.29
	title = arab_spring.29.t
	desc = arab_spring.29.d
	picture = GFX_report_arab_spring_bahrain4
	trigger = {
        has_government = monarchist
	}
	is_triggered_only = yes

	option = { #Yes
		name = arab_spring.29.o1
		add_popularity = {
			ideology = monarchist
			popularity = -0.25
		}
		add_country_leader_role = {
			character = BAR_Ali_Salman
			promote_leader = yes
			country_leader = {
				ideology = islamic_republican 
				expire = "1.1.1.1"
				traits = {
					ARAB_Islamist_Figurehead
				}
			}
		}
		set_politics = {
			ruling_party = islamist
			elections_allowed = yes
		}
		ai_chance = {
		    factor = 100
	    }
	}
}
country_event = {	#2014 Egypt Election
	id = arab_spring.30
	title = arab_spring.30.t
	desc = arab_spring.30.d
	picture = GFX_report_arab_spring_bahrain4
	
	is_triggered_only = yes

	option = { 
		name = arab_spring.30.o1
		
		ai_chance = {
		    factor = 100
	    }
	}
}