﻿add_namespace = SyriaFocus
add_namespace = SyriaFocusNews

#Fate of Rojava
country_event = {
	
	id = SyriaFocus.0
	title = SyriaFocus.0.t
	desc = SyriaFocus.0.desc
	picture = GFX_Rojava
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.0.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.0.a executed"		#The area belongs to Syria
		ai_chance = {
			factor = 75
			modifier = {
				factor = 0.8
				tag = FSA
			}
		}
		ROJ = { country_event = { days = 5 id = SyriaFocus.1 } }
		set_country_flag = Rojava_Question_Solved
	}
	option = {
		name = SyriaFocus.0.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.0.b executed"		#Offer them federal status
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				tag = NUS
			}
			modifier = {
				factor = 1.5
				tag = FSA
			}
		}
		ROJ = { country_event = { days = 5 id = SyriaFocus.4 } }
		set_country_flag = Rojava_Question_Solved
	}
	option = {
		name = SyriaFocus.0.c
		log = "[GetDateText]: [This.GetName]: SyriaFocus.0.c executed"		#Let them be independent
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				tag = NUS
			}
			modifier = {
				factor = 2
				tag = FSA
			}
		}
		add_political_power = -100
		remove_state_core = 193
		remove_state_core = 571
		remove_state_core = 575
		set_country_flag = Rojava_Question_Solved
		hidden_effect = { news_event = { id = SyriaFocusNews.0 hours = 6 } }
	}
}

#Try to subjugate Rojava
country_event = {

	id = SyriaFocus.1
	title = SyriaFocus.1.t
	desc = SyriaFocus.1.desc
	picture = GFX_Rojava
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.1.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.1.a executed"		#Reject demands
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0.875
				FROM = { tag = FSA }
			}
		}
		FROM = { country_event = { days = 5 id = SyriaFocus.2 } }
	}
	option = {
		name = SyriaFocus.1.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.1.b executed"		#Agree
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				FROM = { tag = NUS }
			}
			modifier = {
				factor = 1.5
				FROM = { tag = FSA }
			}
		}
		custom_effect_tooltip = GAME_OVER_TT
		FROM = { country_event = { days = 5 id = SyriaFocus.3 } }
	}
}
	
#Demands refused
country_event = {

	id = SyriaFocus.2
	title = SyriaFocus.2.t
	desc = SyriaFocus.2.desc
	picture = GFX_Rojava
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.2.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.2.a executed"		#Damn them
		ai_chance = {
			factor = 90
		}
		create_wargoal = { type = annex_everything target = ROJ }
		remove_state_core = 193
		remove_state_core = 571
		remove_state_core = 575
		add_state_claim = 193
		add_state_claim = 571
		add_state_claim = 575	
		hidden_effect = { news_event = { id = SyriaFocusNews.3 hours = 6 } }
		set_country_flag = SYR_Rojava_go_to_war
		add_ai_strategy = {
			type = conquer
			id = "ROJ"
			value = 200
		}
		add_ai_strategy = {
			type = antagonize
			id = "ROJ"
			value = 200
		}
		add_ai_strategy = {
			type = declare_war
			id = "ROJ"
			value = 200
		}
	}
	option = {
		name = SyriaFocus.2.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.2.b executed"		#Let them go
		ai_chance = {
			factor = 10
		}
		add_political_power = -100
		remove_state_core = 193
		remove_state_core = 571
		remove_state_core = 575	
		add_state_claim = 193
		add_state_claim = 571
		add_state_claim = 575		
		hidden_effect = { news_event = { id = SyriaFocusNews.0 hours = 6 } }
	}
}

#Demands met
country_event = {

	id = SyriaFocus.3
	title = SyriaFocus.3.t
	desc = SyriaFocus.3.desc
	picture = GFX_Rojava
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.3.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.3.a executed"		#Huzzah
		ai_chance = { factor = 100 }
		annex_country = { target = ROJ }
		hidden_effect = { news_event = { id = SyriaFocusNews.1 hours = 6 } }
	}

}
	
#Federal Status offered
country_event = {
	
	id = SyriaFocus.4
	title = SyriaFocus.4.t
	desc = SyriaFocus.4.desc
	picture = GFX_Rojava
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.4.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.4.a executed"		#This is what we wanted
		ai_chance = {
			factor = 80
		}
		FROM = { country_event = { days = 5 id = SyriaFocus.5 } }
		FROM = { set_country_flag = Promised_Federated_Syria }
	}
	option = {
		name = SyriaFocus.4.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.4.b executed"		#We have new goals
		ai_chance = {
			factor = 20
		}
		FROM = { country_event = { days = 5 id = SyriaFocus.2 } }
	}
}

#Federal Status accepted
country_event = {
	
	id = SyriaFocus.5
	title = SyriaFocus.5.t
	desc = SyriaFocus.5.desc
	picture = GFX_Rojava
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.5.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.5.a executed"		#Huzzah
		ai_chance = { factor = 100 }
		every_owned_state = {
			limit = {
				is_core_of = ROJ
			}
			ROJ = { transfer_state = PREV }
		}
		set_autonomy = { target = ROJ autonomy_state = autonomy_autonomous_state }
		hidden_effect = { news_event = { id = SyriaFocusNews.2 hours = 6 } }
	}
}

#Russian and Iranian opinion on SSNP
country_event = {
	
	id = SyriaFocus.6
	title = SyriaFocus.6.t
	desc = SyriaFocus.6.desc
	picture = GFX_SYR_ssnp
	
	trigger = {
		OR = {
			tag = SOV
			tag = PER
		}
		NOT = { has_country_flag = Opinion_On_SSNP }
		SYR = { focus_progress = { focus = SYR_assad_day progress > 0.1 } }
	}
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.6.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.6.a executed"		#Keep SSNP around
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				tag = SOV
			}
			modifier = {
				factor = 0.5
				tag = PER
			}
		}
		set_country_flag = Opinion_On_SSNP
		set_country_flag = Opinion_On_SSNP_Keep
		SYR = { country_event = SyriaFocus.7 }
	}
	option = {
		name = SyriaFocus.6.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.6.b executed"		#Purge SSNP
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.5
				tag = SOV
			}
			modifier = {
				factor = 1.5
				tag = PER
			}
		}
		set_country_flag = Opinion_On_SSNP
		set_country_flag = Opinion_On_SSNP_Purge
		SYR = { country_event = SyriaFocus.7 }
	}
}

country_event = {
	
	id = SyriaFocus.7
	title = SyriaFocus.7.t
	desc = {
		text = SyriaFocus.7.Keep.desc
		trigger = { FROM = { has_country_flag = Opinion_On_SSNP_Keep }
		}
	}
	desc = {
		text = SyriaFocus.7.Purge.desc
		trigger = { FROM = { has_country_flag = Opinion_On_SSNP_Purge }
		}
	}
	picture = GFX_SYR_ssnp
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.7.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.7.a executed"		#Noted
		ai_chance = { factor = 100 }
	}
}

#SSNP Coup
country_event = {

	id = SyriaFocus.8
	
	hidden = yes
	
	trigger = {
		tag = SYR
		has_country_flag = SSNP_Coup_Incoming
	}
	
	mean_time_to_happen = {
		days = 60
	}
	
	fire_only_once = yes
	
	immediate = {
		random_list = {
			10 = { country_event = SyriaFocus.9 }		#Assad dies, strong civil war
			70 = { country_event = SyriaFocus.10 }		#Medium civil war
			20 = { country_event = SyriaFocus.11 }		#Low scale civil war
		}
	}
	
	option = {
		name = SyriaFocus.8.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.8.a executed"
		ai_chance = { factor = 100 }
	}
}

country_event = {

	id = SyriaFocus.9
	title = SyriaFocus.9.t
	desc = SyriaFocus.9.d
	picture = GFX_Assad_parade
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.9.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.9.a executed"
		ai_chance = { factor = 100 }
		kill_country_leader = yes
		set_global_flag = Al_Assad_Dead
		if = {
			limit = { 
				nationalist > 40
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.80
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				nationalist > 30
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.60
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				nationalist > 20
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.40
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				nationalist > 10
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.20
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.10
			}
			set_country_flag = Second_Syrian_Civil_War
		}
	}
}

country_event = {

	id = SyriaFocus.10
	title = SyriaFocus.10.t
	desc = SyriaFocus.10.d
	picture = GFX_SYR_ssnp
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.10.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.10.a executed"
		ai_chance = { factor = 100 }
		if = {
			limit = { 
				nationalist > 40
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.40
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				nationalist > 30
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.30
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				nationalist > 20
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.20
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.10
			}
			set_country_flag = Second_Syrian_Civil_War
		}
	}
}

country_event = {

	id = SyriaFocus.11
	title = SyriaFocus.11.t
	desc = SyriaFocus.11.d
	picture = GFX_SYR_ssnp
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.11.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.11.a executed"
		ai_chance = { factor = 100 }
		if = {
			limit = { 
				nationalist > 40
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.20
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				nationalist > 30
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.15
			}
			set_country_flag = Second_Syrian_Civil_War
		}
		if = {
			limit = { 
				NOT = { has_country_flag = Second_Syrian_Civil_War }
			}
			start_civil_war = {
				ideology = nationalist
				size = 0.10
			}
			set_country_flag = Second_Syrian_Civil_War
		}
	}
}

#Russian and Iranian opinion on Palestinian Groups
country_event = {
	
	id = SyriaFocus.12
	title = SyriaFocus.12.t
	desc = SyriaFocus.12.desc
	picture = GFX_palestinians_in_syria
	
	trigger = {
		OR = {
			tag = SOV
			tag = PER
		}
		NOT = { has_country_flag = Opinion_On_Palestinian_Groups }
		SYR = { 
			OR = {
				focus_progress = { focus = SYR_ssnp_traitors progress > 0.1 }
				focus_progress = { focus = SYR_incorporate_ssnp progress > 0.1 } 
			}
		}
	}
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.12.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.12.a executed"		#Keep Palestinian groups around
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				tag = PER
			}
			modifier = {
				factor = 0.5
				tag = SOV
			}
		}
		set_country_flag = Opinion_On_Palestinian_Groups
		set_country_flag = Opinion_On_Palestinian_Groups_Keep
		SYR = { country_event = SyriaFocus.13 }
	}
	option = {
		name = SyriaFocus.12.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.12.b executed"		#Purge Palestinian groups
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.5
				tag = PER
			}
			modifier = {
				factor = 1.5
				tag = SOV
			}
		}
		set_country_flag = Opinion_On_Palestinian_Groups
		set_country_flag = Opinion_On_Palestinian_Groups_Purge
		SYR = { country_event = SyriaFocus.13 }
	}
}

country_event = {
	
	id = SyriaFocus.13
	title = SyriaFocus.13.t
	desc = {
		text = SyriaFocus.13.Keep.desc
		trigger = { FROM = { has_country_flag = Opinion_On_Palestinian_Groups_Keep }
		}
	}
	desc = {
		text = SyriaFocus.13.Purge.desc
		trigger = { FROM = { has_country_flag = Opinion_On_Palestinian_Groups_Purge }
		}
	}
	picture = GFX_palestinians_in_syria
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.13.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.13.a executed"		#Noted
		ai_chance = { factor = 100 }
	}
}

#Russian and Iranian opinion on Shiite Groups
country_event = {
	
	id = SyriaFocus.14
	title = SyriaFocus.14.t
	desc = SyriaFocus.14.desc
	picture = GFX_palestinians_in_syria
	
	trigger = {
		OR = {
			tag = SOV
			tag = PER
		}
		NOT = { has_country_flag = Opinion_On_Shiite_Groups }
		SYR = { 
			OR = {
				focus_progress = { focus = SYR_integrate_palestinians progress > 0.1 }
				focus_progress = { focus = SYR_expel_palestinians progress > 0.1 } 
			}
		}
	}
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.14.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.14.a executed"		#Keep Shiite groups around
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.8
				tag = PER
			}
			modifier = {
				factor = 0.8
				tag = SOV
			}
		}
		set_country_flag = Opinion_On_Shiite_Groups
		set_country_flag = Opinion_On_Shiite_Groups_Keep
		SYR = { country_event = SyriaFocus.15 }
	}
	option = {
		name = SyriaFocus.14.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.14.b executed"		#Purge Shiite groups
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				tag = PER
			}
			modifier = {
				factor = 1.8
				tag = SOV
			}
		}
		set_country_flag = Opinion_On_Shiite_Groups
		set_country_flag = Opinion_On_Shiite_Groups_Purge
		SYR = { country_event = SyriaFocus.15 }
	}
}

country_event = {
	
	id = SyriaFocus.15
	title = SyriaFocus.15.t
	desc = {
		text = SyriaFocus.15.Keep.desc
		trigger = { FROM = { has_country_flag = Opinion_On_Shiite_Groups_Keep }
		}
	}
	desc = {
		text = SyriaFocus.15.Purge.desc
		trigger = { FROM = { has_country_flag = Opinion_On_Shiite_Groups_Purge }
		}
	}
	picture = GFX_palestinians_in_syria
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.15.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.15.a executed"		#Noted
		ai_chance = { factor = 100 }
	}
}

#Syria asks for protection
country_event = {
	
	id = SyriaFocus.16
	title = SyriaFocus.16.t
	desc = SyriaFocus.16.d

	picture = GFX_Assad_parade
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.16.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.16.a executed"		#Agree to their request
		ai_chance = { factor = 90 }
		set_autonomy = {
			target = SYR
			autonomy_state = autonomy_associated_state
		}
		hidden_effect = { SYR = { add_ideas = subject_neutral } } 
		SYR = { set_country_flag = SYR_Post_War_Tree_Finished }
		SYR = { country_event = SyriaFocus.17 }
	}
	option = {
		name = SyriaFocus.16.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.16.b executed"		#Agree to their request
		ai_chance = { factor = 10 }
		SYR = { set_country_flag = SYR_Request_Rejected }
		SYR = { country_event = SyriaFocus.18 }
	}
}

country_event = {
	
	id = SyriaFocus.17
	title = SyriaFocus.17.t
	desc = SyriaFocus.17.d

	picture = GFX_Assad_parade
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.17.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.17.a executed"		#Noted
		ai_chance = { factor = 100 }
		if = { 
			limit = {
				has_idea = iranian_aid 
			}
			remove_ideas = iranian_aid 
		}
	}
}

country_event = {
	
	id = SyriaFocus.18
	title = SyriaFocus.18.t
	desc = SyriaFocus.18.d

	picture = GFX_Assad_parade
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.18.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.18.a executed"		#Noted
		ai_chance = { factor = 100 }
		if = { 
			limit = {
				FROM = { tag = PER }
				has_idea = iranian_aid 
			}
			remove_ideas = iranian_aid 
		}
	}
}

#Fate of the Syrian Arab Army
country_event = {
	
	id = SyriaFocus.19
	title = SyriaFocus.19.t
	desc = SyriaFocus.19.d
	
	picture = GFX_syrian_arab_army
	
	trigger = {
		tag = FSA
		focus_progress = { focus = SYR_syrian_arab_army progress > 0.1 }
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.19.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.19.a executed"				#Integrate them
		ai_chance = { 
			factor = 25
			modifier = {
				factor = 3			
				num_divisions < 15			#If we took heavy casualties, integrate
			}
		}
		set_country_flag = FSA_Syrian_Arab_Army_Decision
		add_popularity = { ideology = communism popularity = 0.1 }
		relative_change_neg_8 = yes
		if = {
			limit = { has_idea = the_military }
			set_country_flag = current_the_military
			increase_internal_faction_opinion = yes
		}
		custom_effect_tooltip = TT_SYRIAN_ARAB_ARMY_REMNANTS
		load_oob = Syrian_Arab_Army_Remnants
	}
	option = {
		name = SyriaFocus.19.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.19.b executed"				#Disband them
		ai_chance = { 
			factor = 75
			modifier = {
				factor = 0.3
				num_divisions < 15
			}
		}
		set_country_flag = FSA_Syrian_Arab_Army_Decision
	}
}

#Fate of ex-SAA generals
country_event = {
	
	id = SyriaFocus.20
	title = SyriaFocus.20.t
	desc = SyriaFocus.20.d
	
	picture = GFX_syrian_arab_army
	
	trigger = {
		tag = FSA
		has_country_flag = FSA_Syrian_Arab_Army_Decision
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.20.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.20.a executed"				#Let them join
		ai_chance = { factor = 30 }
		add_popularity = { ideology = communism popularity = 0.05 }
		relative_change_neg_4 = yes
		if = {
			limit = { has_idea = the_military }
			set_country_flag = current_the_military
			increase_internal_faction_opinion = yes
		}
		create_corps_commander = {
			name = "Ali Abdullah Ayyoub"
			picture = "gfx/leaders/SYR/Portrait_Ali_Ayyoub.dds"
			traits = { trait_engineer }
			skill = 4
		}
		create_corps_commander = {
			name = "Abdel Fatah Qudsiyeh"
			picture = "Portrait_Abdel_Fatah_Qudsiyeh.dds"
			traits = { trait_engineer }
			skill = 2
		}
	}
	option = {
		name = SyriaFocus.20.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.20.b executed"				#Put them in prison
		ai_chance = { factor = 60 }
	}
	option = {
		name = SyriaFocus.20.c
		log = "[GetDateText]: [This.GetName]: SyriaFocus.20.c executed"				#Send them to the hangman
		ai_chance = { factor = 10 }
		add_popularity = { ideology = fascism popularity = 0.05 }
		relative_change_pos_4 = yes		
		if = { limit = { USA = { has_government = democratic } }
			add_opinion_modifier = { target = FSA modifier = barbarian_practices }
		}		
		if = { limit = { ENG = { has_government = democratic } }
			add_opinion_modifier = { target = FSA modifier = barbarian_practices }
		}
		if = { limit = { FRA = { has_government = democratic } }
			add_opinion_modifier = { target = FSA modifier = barbarian_practices }
		}
		if = { limit = { GER = { has_government = democratic } }
			add_opinion_modifier = { target = FSA modifier = barbarian_practices }
		}
		random_country = {
			limit = {
				NOT = {
					tag = USA
					tag = ENG
					tag = FRA
					tag = GER
				}
				has_government = democratic
			}
			add_opinion_modifier = { target = FSA modifier = barbarian_practices }
		}
	}
}

### Political plurality ###
#Baath Party
country_event = {

	id = SyriaFocus.21
	title = SyriaFocus.21.t
	desc = SyriaFocus.21.d
	picture = GFX_baath_party
	
	trigger = {
		tag = FSA
		focus_progress = { focus = SYR_political_plurality progress > 0.1 }
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.21.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.21.a executed"		#Ban them
		ai_chance = { factor = 80 }
		add_ideas = baath_party_banned
		if = {
			limit = { has_idea = oligarchs }
			set_country_flag = current_oligarchs
			decrease_internal_faction_opinion = yes
		}
	}
	option = {
		name = SyriaFocus.21.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.21.b executed"		#Allow them
		ai_chance = { factor = 20 }
		relative_change_neg_10 = yes
		if = {
			limit = { has_idea = oligarchs }
			set_country_flag = current_oligarchs
			increase_internal_faction_opinion = yes
		}
	}
}

#SSNP
country_event = {

	id = SyriaFocus.22
	title = SyriaFocus.22.t
	desc = SyriaFocus.22.d
	picture = GFX_SYR_ssnp
	
	trigger = {
		tag = FSA
		focus_progress = { focus = SYR_political_plurality progress > 0.1 }
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.22.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.22.a executed"		#Ban them
		ai_chance = { factor = 70 }
		add_ideas = ssnp_party_banned
		if = {
			limit = { has_idea = the_military }
			set_country_flag = current_the_military
			decrease_internal_faction_opinion = yes
		}
	}
	option = {
		name = SyriaFocus.22.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.22.b executed"		#Allow them
		ai_chance = { factor = 30 }
		relative_change_neg_6 = yes
		if = {
			limit = { has_idea = the_military }
			set_country_flag = current_the_military
			increase_internal_faction_opinion = yes
		}
	}
}

#Salafist parties
country_event = {

	id = SyriaFocus.23
	title = SyriaFocus.23.t
	desc = SyriaFocus.23.d
	picture = GFX_Tahrir_Al_Sham
	
	trigger = {
		tag = FSA
		focus_progress = { focus = SYR_political_plurality progress > 0.1 }
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = SyriaFocus.23.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.23.a executed"		#Ban them
		ai_chance = { factor = 70 }
		add_ideas = salafist_party_banned
		if = {
			limit = { has_idea = The_Ulema }
			set_country_flag = current_The_Ulema
			decrease_internal_faction_opinion = yes
		}
		if = {
			limit = { has_country_flag = Promised_Representation_NUS }
			custom_effect_tooltip = TT_SYR_PROMISED_REPRESENTATION_NUS
			start_civil_war = { ideology = fascism }
		}
	}
	option = {
		name = SyriaFocus.23.b
		log = "[GetDateText]: [This.GetName]: SyriaFocus.23.b executed"		#Allow them
		ai_chance = { factor = 30 }
		relative_change_neg_4 = yes
		if = {
			limit = { has_idea = The_Ulema }
			set_country_flag = current_The_Ulema
			increase_internal_faction_opinion = yes
		}
	}
}

### 2nd Civil War due to betraying Rojava ###
#Initial starter
country_event = {

	id = SyriaFocus.24
	title = SyriaFocus.24.t
	desc = SyriaFocus.24.d
	picture = GFX_Rojava
	
	trigger = {
		tag = FSA
		has_country_flag = SYR_federation_promise_broken
		ROJ = {
			OR = {
				exists = no
				is_subject_of = FSA
			}
		}
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 30
	}
	
	option = {
		name = SyriaFocus.24
		log = "[GetDateText]: [This.GetName]: SyriaFocus.24 executed"
		ai_chance = { factor = 100 }
		hidden_effect = {
			if = {
				limit = { ROJ = { exists = no } }
				release = ROJ
				ROJ = { load_oob = ROJ_2017 }
			}
			if = {
				limit = { ROJ = { is_subject_of = ROOT } }
				set_autonomy = {
					target = ROJ
					autonomy_state = autonomy_free
				}
			}
		}
		declare_war_on = {
			target = ROJ
			type = annex_everything
		}
		hidden_effect = { news_event = { id = SyriaFocusNews.6 hours = 6 } }
	}
	
}

#Druze rise up
country_event = {

	id = SyriaFocus.25
	title = SyriaFocus.25.t
	desc = SyriaFocus.25.d
	picture = GFX_Druze
	
	trigger = {
		tag = FSA
		has_country_flag = SYR_federation_promise_broken
		has_war_with = ROJ
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 30
	}
	
	option = {
		name = SyriaFocus.25
		log = "[GetDateText]: [This.GetName]: SyriaFocus.25 executed"
		ai_chance = { factor = 100 }
		hidden_effect = {
			if = {
				limit = { DRU = { exists = no } }
				release = DRU
				DRU = { load_oob = DRU_2017 }
			}
			if = {
				limit = { DRU = { is_subject_of = ROOT } }
				set_autonomy = {
					target = DRU
					autonomy_state = autonomy_free
				}
			}
			#Set a random ideology
			DRU = {
				random_list = {
					10 = {
						set_politics = { ruling_party = democratic elections_allowed = yes }
						add_popularity = { ideology = democratic popularity = 0.6 }
					}
					20 = {
						set_politics = { ruling_party = communism elections_allowed = yes }
						add_popularity = { ideology = communism popularity = 0.6 }
					}
					40 = {
						set_politics = { ruling_party = neutrality elections_allowed = yes }
						add_popularity = { ideology = neutrality popularity = 0.6 }
					}
					10 = {
						set_politics = { ruling_party = nationalist elections_allowed = no }
						add_popularity = { ideology = nationalist popularity = 0.6 }
					}
				}
			}
		}
		declare_war_on = {
			target = DRU
			type = annex_everything
		}
	}
	
}

#Alawites rise up
country_event = {

	id = SyriaFocus.26
	title = SyriaFocus.26.t
	desc = SyriaFocus.26.d
	picture = GFX_Alawites
	
	trigger = {
		tag = FSA
		has_country_flag = SYR_federation_promise_broken
		has_war_with = ROJ
	}
	
	fire_only_once = yes
	
	mean_time_to_happen = {
		days = 30
	}
	
	option = {
		name = SyriaFocus.26
		log = "[GetDateText]: [This.GetName]: SyriaFocus.26 executed"
		ai_chance = { factor = 100 }
		hidden_effect = {
			if = {
				limit = { ALA = { exists = no } }
				release = ALA
				ALA = { load_oob = ALA_2017 }
			}
			if = {
				limit = { ALA = { is_subject_of = ROOT } }
				set_autonomy = {
					target = ALA
					autonomy_state = autonomy_free
				}
			}
			#Set a random ideology
			ALA = {
				random_list = {
					5 = {
						set_politics = { ruling_party = democratic elections_allowed = yes }
						add_popularity = { ideology = democratic popularity = 0.6 }
					}
					40 = {
						set_politics = { ruling_party = communism elections_allowed = yes }
						add_popularity = { ideology = communism popularity = 0.6 }
					}
					20 = {
						set_politics = { ruling_party = neutrality elections_allowed = yes }
						add_popularity = { ideology = neutrality popularity = 0.6 }
					}
					20 = {
						set_politics = { ruling_party = nationalist elections_allowed = no }
						add_popularity = { ideology = nationalist popularity = 0.6 }
					}
				}
			}
		}
		declare_war_on = {
			target = ALA
			type = annex_everything
		}
	}
	
}

#Lebanese support against Hezbollah
country_event = {

	id = SyriaFocus.27
	title = SyriaFocus.27.t
	desc = SyriaFocus.27.d
	picture = GFX_Hezbollah_Spies
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.27.a		#Deal
		log = "[GetDateText]: [This.GetName]: SyriaFocus.27.a executed"
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				FROM = { has_government = fascism }
				NOT = { has_government = fascism }
			}
		}
		set_country_flag = LEB_agreed_to_help_SYR
		FROM = {
			country_event = SyriaFocus.28
			set_country_flag = LEB_agreed_to_help_SYR
		}
	}
	option = {
		name = SyriaFocus.27.b		#No deal
		log = "[GetDateText]: [This.GetName]: SyriaFocus.27.b executed"
		ai_chance = {
			factor = 20
		}
		FROM = { country_event = SyriaFocus.29 }
	}
	
}

#Lebanon agrees
country_event = {

	id = SyriaFocus.28
	title = SyriaFocus.28.t
	desc = SyriaFocus.28.d
	picture = GFX_Hezbollah_Spies
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.28.a		#Ok
		log = "[GetDateText]: [This.GetName]: SyriaFocus.28.a executed"
		ai_chance = { factor = 100 }
	}
	
}

#Lebanon disagrees
country_event = {

	id = SyriaFocus.29
	title = SyriaFocus.29.t
	desc = SyriaFocus.29.d
	picture = GFX_Hezbollah_Spies
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.29.a		#Ok
		log = "[GetDateText]: [This.GetName]: SyriaFocus.29.a executed"
		ai_chance = { factor = 100 }
	}
	
}

#Pressuring Lebanon
country_event = {

	id = SyriaFocus.30
	title = SyriaFocus.30.t
	desc = SyriaFocus.30.d
	picture = GFX_Syrian_Occupation_Lebanon
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.30.a		#Submit
		log = "[GetDateText]: [This.GetName]: SyriaFocus.30.a executed"
		ai_chance = { 
			factor = 20
			modifier = {
				factor = 4
				has_country_flag = LEB_agreed_to_help_SYR
			}
		}
		FROM = { country_event = { id = SyriaFocus.31 hours = 6 } }
	}
	option = {
		name = SyriaFocus.30.b		#Resist
		log = "[GetDateText]: [This.GetName]: SyriaFocus.30.b executed"
		ai_chance = { 
			factor = 80 
			modifier = {
				factor = 0.25
				has_country_flag = LEB_agreed_to_help_SYR
			}
		}
		clr_country_flag = LEB_agreed_to_help_SYR
		FROM = { clr_country_flag = LEB_agreed_to_help_SYR }
		FROM = { country_event = { id = SyriaFocus.32 hours = 6 } }
	}
	
}

#Lebanon agrees
country_event = {

	id = SyriaFocus.31
	title = SyriaFocus.31.t
	desc = SyriaFocus.31.d
	picture = GFX_Syrian_Occupation_Lebanon
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.31.a		#Great
		log = "[GetDateText]: [This.GetName]: SyriaFocus.31.a executed"
		ai_chance = { factor = 100 }
		set_autonomy = { target = LEB autonomy_state = autonomy_satellite_state }
		hidden_effect = { LEB = { add_ideas = subject_neutral } }
		hidden_effect = { news_event = { id = SyriaFocusNews.7 hours = 6 } }
	}
	
}

#Lebanon Resists
country_event = {

	id = SyriaFocus.32
	title = SyriaFocus.32.t
	desc = SyriaFocus.32.d
	picture = GFX_Syrian_Occupation_Lebanon
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.32.a		#Damn
		log = "[GetDateText]: [This.GetName]: SyriaFocus.32.a executed"
		ai_chance = { factor = 100 }
		create_wargoal = {
			type = puppet_wargoal_focus 
			target = LEB
		}
		set_country_flag = Occupy_Lebanon
	}
	
}

#Succesful Hezbollah coup
country_event = {
	
	id = SyriaFocus.33
	title = SyriaFocus.33.t
	desc = SyriaFocus.33.d
	picture = GFX_Hezbollah_Spies
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.33.a
		log = "[GetDateText]: [This.GetName]: SyriaFocus.33.a executed"
		ai_chance = { factor = 100 }
		custom_effect_tooltip = GAME_OVER_TT
		HEZ = {
			annex_country = {
				target = LEB
				transfer_troops = yes
			}
			set_cosmetic_tag = LEB
		}
		hidden_effect = { news_event = { id = SyriaFocusNews.8 hours = 6 } }
	}

}

#Unsuccesful Hezbollah coup
country_event = {
	
	id = SyriaFocus.34
	title = SyriaFocus.34.t
	desc = SyriaFocus.34.d
	picture = GFX_Hezbollah_Spies
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.34.a			#Retaliate
		log = "[GetDateText]: [This.GetName]: SyriaFocus.34.a executed"
		ai_chance = { 
			factor = 80
			modifier = {
				factor = 0
				has_war = yes
			}
		}
		declare_war_on = {
			target = HEZ
			type = annex_everything
		}
		hidden_effect = { news_event = { id = SyriaFocusNews.9 hours = 6 } }
	}
	option = {
		name = SyriaFocus.34.b			#Do nothing
		log = "[GetDateText]: [This.GetName]: SyriaFocus.34.b executed"
		ai_chance = { factor = 20 }
		relative_change_neg_10 = yes
		hidden_effect = { news_event = { id = SyriaFocusNews.9 hours = 6 } }
	}

}

#Pressuring Hezbollah
country_event = {

	id = SyriaFocus.35
	title = SyriaFocus.35.t
	desc = SyriaFocus.35.d
	picture = GFX_Syrian_Occupation_Lebanon
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.35.a		#Submit
		log = "[GetDateText]: [This.GetName]: SyriaFocus.35.a executed"
		ai_chance = { 
			factor = 60
		}
		FROM = { country_event = { id = SyriaFocus.36 hours = 6 } }
	}
	option = {
		name = SyriaFocus.35.b		#Resist
		log = "[GetDateText]: [This.GetName]: SyriaFocus.35.b executed"
		ai_chance = { 
			factor = 40 
		}
		FROM = { country_event = { id = SyriaFocus.37 hours = 6 } }
	}
	
}

#Hezbollah agrees
country_event = {

	id = SyriaFocus.36
	title = SyriaFocus.36.t
	desc = SyriaFocus.36.d
	picture = GFX_Syrian_Occupation_Lebanon
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.36.a		#Great
		log = "[GetDateText]: [This.GetName]: SyriaFocus.36.a executed"
		ai_chance = { factor = 100 }
		set_autonomy = { target = HEZ autonomy_state = autonomy_satellite_state }
		hidden_effect = { HEZ = { add_ideas = subject_neutral } }
		hidden_effect = { news_event = { id = SyriaFocusNews.7 hours = 6 } }
	}
	
}

#Hezbollah Resists
country_event = {

	id = SyriaFocus.37
	title = SyriaFocus.37.t
	desc = SyriaFocus.37.d
	picture = GFX_Syrian_Occupation_Lebanon
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.37.a		#Damn
		log = "[GetDateText]: [This.GetName]: SyriaFocus.37.a executed"
		ai_chance = { factor = 100 }
		create_wargoal = {
			type = puppet_wargoal_focus 
			target = HEZ
		}
		set_country_flag = Occupy_Lebanon
	}
	
}

#Syria Demands Golan
country_event = {

	id = SyriaFocus.38
	title = SyriaFocus.38.t
	desc = SyriaFocus.38.d
	picture = GFX_Golan
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocus.38.a		#Never
		log = "[GetDateText]: [This.GetName]: SyriaFocus.84.a executed"
		ai_chance = { factor = 70 }
	}
	option = {
		name = SyriaFocus.38.b		#In exchange for support for One-State solution
		log = "[GetDateText]: [This.GetName]: SyriaFocus.38.b executed"
		ai_chance = { 
			factor = 20
			modifier = {
				factor = 2
				FROM = {
					same_ideology = yes
				}
			}
		}
	}
	option = {
		name = SyriaFocus.38.c		#Sure
		log = "[GetDateText]: [This.GetName]: SyriaFocus.38.c executed"
		ai_chance = { 
			factor = 10 
			modifier = {
				factor = 2
				FROM = {
					same_ideology = yes
				}
			}
		}
	}
	
}


###################
### News Events ###
###################

#Rojava allowed to be independent
news_event = {
	
	id = SyriaFocusNews.0
	title = SyriaFocusNews.0.t
	desc = SyriaFocusNews.0.d
	picture = GFX_news_rojava_victory
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.0.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.0.a executed"
		ai_chance = { factor = 100 }
	}
}

#Rojava annexed
news_event = {
	
	id = SyriaFocusNews.1
	title = SyriaFocusNews.1.t
	desc = SyriaFocusNews.1.d
	picture = GFX_news_rojava_victory
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.1.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.1.a executed"
		ai_chance = { factor = 100 }
	}
}

#Rojava puppeted
news_event = {
	
	id = SyriaFocusNews.2
	title = SyriaFocusNews.2.t
	desc = SyriaFocusNews.2.d
	picture = GFX_news_rojava_victory
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.2.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.2.a executed"
		ai_chance = { factor = 100 }
	}
}

#Rojava resists
news_event = {
	
	id = SyriaFocusNews.3
	title = SyriaFocusNews.3.t
	desc = SyriaFocusNews.3.d
	picture = GFX_news_rojava_victory
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.3.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.3.a executed"
		ai_chance = { factor = 100 }
	}
}

#Attempted SSNP coup
news_event = {
	
	id = SyriaFocusNews.4
	title = SyriaFocusNews.4.t
	desc = {
		text = SyriaFocusNews.4.d1
		trigger = { SYR = { has_country_flag = Al_Assad_Dead } }
	}
	desc = {
		text = SyriaFocusNews.4.d2
		trigger = { SYR = { NOT = { has_country_flag = Al_Assad_Dead } } }
	}
	picture = GFX_news_SSNP
	
	major = yes
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { tag = SYR }
	}
	
	option = {
		name = SyriaFocusNews.4.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.4.a executed"
		ai_chance = { factor = 100 }
	}
}

#Syria Federal Republic formed
news_event = {

	id = SyriaFocusNews.5
	title = SyriaFocusNews.5.t
	desc = SyriaFocusNews.5.d
	picture = GFX_news_Syria_federal_republic
	
	major = yes
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { tag = FSA }
	}
	
	option = {
		name = SyriaFocusNews.5.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.5.a executed"
		ai_chance = { factor = 100 }
	}
}

#Ethnic conflict in Syria
news_event = {

	id = SyriaFocusNews.6
	title = SyriaFocusNews.6.t
	desc = SyriaFocusNews.6.d
	picture = GFX_news_event_war
	
	major = yes
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { tag = FSA }
	}
	
	option = {
		name = SyriaFocusNews.6.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.6.a executed"
		ai_chance = { factor = 100 }
	}
}

#Puppeting of Lebanon
news_event = {

	id = SyriaFocusNews.7
	title = SyriaFocusNews.7.t
	desc = SyriaFocusNews.7.d
	picture = GFX_news_Syrian_Occupation_Lebanon
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.7.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.7.a executed"
		ai_chance = { factor = 100 }
	}
}

#Hezbollah coup in Lebanon
news_event = {

	id = SyriaFocusNews.8
	title = SyriaFocusNews.8.t
	desc = SyriaFocusNews.8.d
	picture = GFX_news_Hezbollah_Coup
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.8.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.8.a executed"
		ai_chance = { factor = 100 }
	}
}

#Hezbollah coup in Lebanon - failed
news_event = {

	id = SyriaFocusNews.9
	title = SyriaFocusNews.9.t
	desc = SyriaFocusNews.9.d
	picture = GFX_news_Hezbollah_Coup
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.9.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.9.a executed"
		ai_chance = { factor = 100 }
	}
}

#Syria renounces claim on Golan
news_event = {

	id = SyriaFocusNews.10
	title = SyriaFocusNews.10.t
	desc = SyriaFocusNews.10.d
	picture = GFX_news_Golan
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = SyriaFocusNews.10.a
		log = "[GetDateText]: [This.GetName]: SyriaFocusNews.10.a executed"
		ai_chance = { factor = 100 }
	}
}