add_namespace = libya
add_namespace = libya.14

# investings
country_event = {
	id = libya.1
	title = libya.1.t
	desc = libya.1.d
	picture = GFX_report_event_stock_market

	is_triggered_only = yes
	option = {	#accept
		name = libya.1.o1
		add_political_power = 50
		LBA = {country_event = {
				id = libya.2
				days = 2
				}}
	}
}

#investings2
country_event = {
	id = libya.2
	title = libya.2.t
	desc = libya.2.d
	picture = GFX_report_event_euro

	is_triggered_only = yes
	option = {	#accept
		name = libya.2.o1
		add_political_power = 50
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_owned_state = {
			add_extra_state_shared_building_slots = 1
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}

}

#syriancris
country_event = {
	id = libya.3
	title = libya.3.t
	desc = libya.3.d
	picture = GFX_report_event_border_conflict

	is_triggered_only = yes
	option = {	#turkey
		name = libya.3.o1
		add_political_power = 25
		TUR = {
			add_opinion_modifier = {
				target = LBA
				modifier = offered_support
				}		}
		LBA = {
			country_event = {
				id = libya.4
				days = 1
			}
		}
	}

	option = {	#syria
		name = libya.3.o2
		add_political_power = 25
		SYR = {
			add_opinion_modifier = {
				target = LBA
				modifier = offered_support
				}		}
		LBA = {
			country_event = {
				id = libya.5
				days = 1
			}
		}
	}

}
#syriancris2
country_event = {
	id = libya.4
	title = libya.4.t
	desc = libya.4.d
	picture = GFX_report_event_economy_status

	is_triggered_only = yes
	option = {	#kktc
		name = libya.4.o1
		add_political_power = 25
		LBA = {
			add_opinion_modifier = {
				target = TUR
				modifier = non_aggression_pact
				}		}

	}
}

#syriancris2.1
country_event = {
	id = libya.5
	title = libya.5.t
	desc = libya.5.d
	picture = GFX_report_event_economy_status

	is_triggered_only = yes
	option = {	#kktc
		name = libya.5.o1
		add_political_power = 25
		LBA = {
			add_opinion_modifier = {
				target = SYR
				modifier = non_aggression_pact
				}		}

	}
}

#birlesme
country_event = {
	id = libya.6
	title = libya.6.t
	desc = libya.6.d
	picture = GFX_report_event_system_of_governance

	is_triggered_only = yes
	option = {	#accept
		name = libya.6.o1

		hidden_effect = {
			hidden_effect = { country_event = Libya_news.1 }}
		add_political_power = 25
		LBA = { annex_country = { target = ROOT transfer_troops = yes } }

	}

}

country_event = {
	id = libya.7
	title = libya.7.t
	desc = libya.7.d
	picture = GFX_report_event_african_union

	is_triggered_only = yes

	option = {	#We accept!
		name = libya.7.o1
		trigger = { has_government = democratic_socialist }
		LBA = { add_to_faction = ROOT }
		hidden_effect = {
			LBA = { country_event = diplomatic_response.1 }
		}
		ai_chance = {
			base = 100
			modifier = {
				is_faction_leader = yes
				add = -100
			}
		}
	}

	option = {	#We refuse!
		name = libya.7.o2
		add_political_power = 20
		hidden_effect = {
			LBA = { country_event = diplomatic_response.2 }
		}
		LBA = {
			country_event = {
				id = libya.8
				days = 3
			}
		}
		ai_chance = {
			base = 0
			modifier = {
				is_in_faction = yes
				add = 50
			}
		}
	}
}

#icsavas
country_event = {
	id = libya.8
	title = libya.8.t
	desc = libya.8.d
	picture = GFX_report_event_libyan_civil_war

	is_triggered_only = yes
	option = {	#war
		name = libya.8.o1
		FROM = {

			add_stability  = -0.5
			add_popularity = {
				ideology = democratic_socialist
				popularity = 0.05
			}
			start_civil_war = {
				ruling_party = FROM
				ideology = democratic_socialist
				size = 0.3

			}
		}
	}
}

#Libyan Civil War
country_event = {
	id = libya.9
	title = libya.9.t
	desc = libya.9.d
	picture = GFX_report_event_libyan_civil_war
	fire_only_once = yes

	is_triggered_only = yes



	option = {
		name = libya.9.o1
		ai_chance = { factor = 1}
	}

}

#serrac
country_event = {
	id = libya.10
	title = libya.10.t
	desc = libya.10.d
	picture = GFX_report_event_system_of_governance

	is_triggered_only = yes
	option = {	#war
		name = libya.10.o1
		add_popularity = { ideology = social_democrat popularity = 0.5 }
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		}

		create_country_leader = {
			name = "Fayez al-Sarraj"
			picture = "al-Sarraj.dds"
			ideology = social_democrat_ideology
			traits = { International_relations }
		}
		hidden_effect = {
		}

	}
}

#hafter2
country_event = {
	id = libya.11
	title = libya.11.t
	desc = libya.11.d
	picture = GFX_report_event_stability

	is_triggered_only = yes
	option = {	#war
		name = libya.11.o1
		add_popularity = { ideology = nationalist popularity = 0.5 }
		set_politics = {
			ruling_party = nationalist
			elections_allowed = yes
		}
		set_party_name = {
			ideology = nationalist
			long_name = HOR
			name = HOR
		}
		create_country_leader = {
			name = "Khalifa Haftar"
			picture = "Khalife_hafter.dds"
			ideology = national_democrat
			traits = { warmonger }
		}

		country_event = {
			id = libya.14
			days = 1
		}



	}
}

#kıtasahan
country_event = {
	id = libya.12
	title = libya.12.t
	desc = libya.12.d
	picture = GFX_report_event_trade_policy

	is_triggered_only = yes
	option = {	#war
		name = libya.12.o1

		add_equipment_to_stockpile = {
			type = convoy
			amount = 250
			producer = TUR
		}
		TUR = { increase_trade_influence_by_2 = yes }


	}
}

#isid
country_event = {
	id = libya.13
	title = libya.13.t
	desc = libya.13.d
	picture = GFX_report_event_libyan_civil_war

	is_triggered_only = yes
	option = {	#war
		name = libya.13.o1

		hidden_effect = {
			ISS = {
				transfer_state = 662


				add_state_core = 907
				add_state_core = 661
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 663
				add_state_core = 662
				add_state_core = 273


				create_country_leader = {
					name = " Ebu Nebil el-Anbari"
					picture = "el-Anbari.dds"
					ideology = islamic_republican
					traits = {

					}
				}

				create_field_marshal = {
					name = "Ebu Hüdeyfe el-Muhacir"
					picture = "el-Muhacir.dds"
					traits = { old_guard infantry_leader offensive_doctrine  }
					skill = 2

				}
				load_OOB = ISS_libya

				declare_war_on = { target = LBA type = annex_everything }
				declare_war_on = { target = HOR type = annex_everything }
				declare_war_on = { target = NAC type = annex_everything }



			}
		}
	}
}

#isid
country_event = {
	id = libya.14
	title = libya.14.t
	desc = libya.14.d
	picture = GFX_report_event_libyan_civil_war

	is_triggered_only = yes
	option = {	#war
		name = libya.14.o1

		hidden_effect = {
			NAC = {
				transfer_state = 448
				transfer_state = 661
				transfer_state = 907
				transfer_state = 662


				add_state_core = 907
				add_state_core = 661
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 663
				add_state_core = 662
				add_state_core = 273


				create_country_leader = {
					name = "Fayez al-Sarraj"
					picture = "al-Sarraj.dds"
					ideology = social_democrat_ideology
					traits = { International_relations }
				}

				load_OOB = NAC
				declare_war_on = { target = LBA type = annex_everything }
				country_event = {
					id = libya.13
					days = 1
				}



			}
		}
	}
}


