add_namespace = farouk_gang
add_namespace = Free_Officer_Coup
add_namespace = free_officer_fail
add_namespace = sudan_part
add_namespace = nasser_execution
add_namespace = Sudan
add_namespace = abolish_mon_egy
add_namespace = egy_trial
add_namespace = egy_rioting
add_namespace = aswan
add_namespace = black_saturday
add_namespace = egypt_suez
add_namespace = RCC_Crisis
add_namespace = egy_elect
add_namespace = UAR_annex
add_namespace = sudan_egy
add_namespace = farouk_exiled

country_event = {
	id = sudan_egy.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = sudan_egy.1"}
	title = "Египет Хочет Аннексировать Судан"
	desc = "Египет Хочет Аннексировать Судан"

	is_triggered_only = yes


	option = {
		name = "Уступить Требованиям Египта"
		EGY = { set_country_flag = england_sudan_yes }
		ai_chance = {
			factor = 85
			#modifier = {
			#	factor = 1000
			#	has_game_rule = {
			#		rule = EGY_ai_behavior
			#		option = FAROUK
			#	}
			#}
		}
	}
	option = {
		name = "Отклонить их Претензии и Освободить Судан"
			news_event = Sudan.1
			ENG = {
				set_autonomy = {
					target = SUD
					autonomy_state = autonomy_free
				}
			}
			SUD = {
				drop_cosmetic_tag = yes
				set_politics = {



					ruling_party = neutrality
					last_election = "1945.1.1"
					election_frequency = 48
					elections_allowed = no
				}
					set_popularities = {
						democratic = 0
						communism = 0
						fascism = 0
						nationalist = 0
						monarchism = 0
						neutrality = 63
						islamism = 0
						radical_shiaism = 0

						Social_Democratic = 0
						Social_Liberalism = 0
						Salafism = 0

						Liberal_Conservatism = 37

						conservative = 0
						Christian_Democratic = 0
						socialist = 0
						centrist = 0
						liberal = 0
						trotskyism = 0
						maoism = 0


					}
					create_country_leader = {
						name = "Ибрахим Аббуд"
						picture = "Ibrahim_Abboud.dds"
						ideology = military_junta
					}
				}
		ai_chance = {
			factor = 15
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = EGY_fate_of_sudan
						option = EGYPTIAN_SUDAN
					}
					has_game_rule = {
						rule = EGY_fate_of_sudan
						option = DIVIDED_SUDAN
					}
				}
			}
		}
	}
}
news_event = {
	id = farouk_gang.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.1"}
	title = "[GetNewspaperHeader]Король Фарук Запрещает Все Красные Автомобили"
	desc = farouk_gang.1.d
	picture = GFX_farouk_car

	is_triggered_only = yes


	option = {
		name = "Странный флекс, но нормально"
	}
}
news_event = {
	id = farouk_gang.2 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.2"}
	title = "[GetNewspaperHeader]Дело Гхали"
	desc = farouk_gang.2.d
	picture = GFX_ghali_affair
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = farouk_gang.3 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.3"}
	title = "[GetNewspaperHeader]Король Фарук Отправляется во Францию"
	desc = farouk_gang.3.d
	picture = GFX_farouk_france
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = farouk_gang.4 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.4"}
	title = "[GetNewspaperHeader]Король Фарук Снова Отправляется во Францию"
	desc = farouk_gang.4.d
	picture = GFX_farouk_france

	is_triggered_only = yes


	option = {
		name = "Только лучшее для него"
	}
}
country_event = {
	id = farouk_gang.5 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.5"}
	title = "Замена Короля Фарука"
	desc = farouk_gang.5.d
	picture = GFX_farouk_france

	is_triggered_only = yes


	option = {
		name = "Королева может быть популярной"
		retire_country_leader = yes
		create_country_leader = {
			name = "Фавзия I"
			picture = "fazia.dds"
			ideology = monarchist
			traits = {
				popular_queen
			}
		}
	}

	option = {
		name = "Регент Мухаммад Абдель Моним Будет Править"
		retire_country_leader = yes
		create_country_leader = {
			name = "Мухаммад Абдель I"
			desc = "pol_muhammad_abdel"
			picture = "Muhammad_Abdel_Moneim.dds"
			ideology = monarchist
		}
	}
}
country_event = {
	id = farouk_gang.6 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.6"}
	title = "Военный Парад"
	desc = farouk_gang.6.d
	picture = GFX_FRA_Failed_Putsch

	is_triggered_only = yes


	option = {
		name = "Покажем Им, Кто Здесь Правит!"
		news_event = { id = farouk_gang.7 days = 1 } 
	}
}
news_event = {
	id = farouk_gang.7 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.7"}
	title = "[GetNewspaperHeader]Большой Военный Парад"
	desc = farouk_gang.7.d
	picture = GFX_kmt_burma
	major = yes

	is_triggered_only = yes


	option = {
		name = "И Снова Мы Показали Свою Мощь"
	}
}

news_event = {
	id = farouk_gang.8 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.8"}
	title = "[GetNewspaperHeader]Ветер Перемен"
	desc = farouk_gang.8.d
	picture = GFX_farouk_france

	is_triggered_only = yes


	option = {
		name = "Это Должно Успокоить Людей"
	}
}
country_event = {
	id = farouk_gang.9 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.9"}
	title = "Судьба Бывшего Короля"
	desc = farouk_gang.9.d
	picture = GFX_farouk_grave

	is_triggered_only = yes


	option = {
		name = "Жирный Ублюдок Получил по Заслугам"
	}
}
news_event = {
	id = farouk_gang.10 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_gang.10"}
	title = "[GetNewspaperHeader]Умер Отец Комедии"
	desc = farouk_gang.10.d
	picture = GFX_news_event_naguib_rihani

	is_triggered_only = yes
	fire_only_once = yes


	option = {
		name = "Аллах Ярхемуху"
	}
}
news_event = {
	id = Free_Officer_Coup.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = Free_Officer_Coup.1"}
	title = "[GetNewspaperHeader]Свободный Офицерский Корпус"
	desc = Free_Officer_Coup.1.d
	picture = GFX_free_officer_coup
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
		set_global_flag = egypt_free_officer_coup
		hidden_effect = {
			PRC = { 
				mark_focus_tree_layout_dirty = yes
			}
		}
	}
}
news_event = {
	id = free_officer_fail.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = free_officer_fail.1"}
	title = "[GetNewspaperHeader]Неудачный Переворот в Королевстве Египет"
	desc = free_officer_fail.1.d
	picture = GFX_egy_coup_fail
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = sudan_part.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = sudan_part.1"}
	title = "[GetNewspaperHeader]Раздел Англо-Египетского Судана"
	desc = sudan_part.1.d
	picture = GFX_partition_of_Egypt
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = nasser_execution.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = nasser_execution.1"}
	title = "[GetNewspaperHeader]Казнь Насера"
	desc = nasser_execution.1.d
	picture = GFX_nasser_Execution
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = Sudan.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = Sudan.1"}
	title = "[GetNewspaperHeader]Независимость Судана"
	desc = Sudan.1.d
	picture = GFX_indep_sudan
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = abolish_mon_egy.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = abolish_mon_egy.1"}
	title = "[GetNewspaperHeader]Конец Эпохи"
	desc = abolish_mon_egy.1.d
	picture = GFX_egy_end_of_an_era
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
news_event = {
	id = egy_trial.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_trial.1"}
	title = "[GetNewspaperHeader]Роялистская Военная Чистка в Египте?"
	desc = egy_trial.1.d
	picture = GFX_royalist_egy_purge
	major = yes

	is_triggered_only = yes


	option = {
		name = "Интересно"
	}
}
country_event = {
	id = egy_trial.2 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_trial.2"}
	title = "Судьба Насера"
	desc = egy_trial.2.d
	picture = GFX_royalist_egy_purge

	is_triggered_only = yes


	option = {
		name = "Оставьте его в покое"
		news_event = { id = egy_trial.3 days = 1 } 
	}
	option = {
		name = "Принудить его к Изгнанию"
		news_event = { id = egy_trial.4 days = 1 } 
	}
	option = {
		name = "Заключить его под Стражу"
		news_event = { id = egy_trial.5 days = 1 } 
	}
}
news_event = {
	id = egy_trial.3 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_trial.3"}
	title = "[GetNewspaperHeader]Кто Помнит Насера?"
	desc = egy_trial.3.d
	picture = GFX_egy_end_of_an_era

	is_triggered_only = yes


	option = {
		name = "Насер Кто?"
	}
}
news_event = {
	id = egy_trial.4 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_trial.4"}
	title = "[GetNewspaperHeader]Пока Пока Насер"
	desc = egy_trial.4.d
	picture = GFX_El_Al_Flight_402

	is_triggered_only = yes


	option = {
		name = "Он Сам Виноват в Этом"
	}
}
news_event = {
	id = egy_trial.5 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_trial.5"}
	title = "[GetNewspaperHeader]Тюремный Срок для Насера"
	desc = egy_trial.5.d
	picture = GFX_generic_sc_ruling

	is_triggered_only = yes


	option = {
		name = "Увидимся Через 15 Лет"
	}
}
news_event = {
	id = egy_rioting.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_rioting.1"}
	title = "[GetNewspaperHeader]Беспорядки в Египте, Вызванные Исламским Братством"
	desc = egy_rioting.1.d
	picture = GFX_islam_brotherhood_rioting
	major = yes

	is_triggered_only = yes


	option = {
		name = "Остановить Их!"
	}
}
news_event = {
	id = aswan.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = aswan.1"}
	title = "[GetNewspaperHeader]Обеспечено Финансирование Строительства Асуанского Гидроузла"
	desc = egy_suez_funding.1.d
	picture = GFX_aswan_construction
	major = yes

	is_triggered_only = yes


	option = {
		name = "Очень Хорошо"
	}
}
news_event = {
	id = black_saturday.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = black_saturday.1"}
	title = "[GetNewspaperHeader]Беспорядки «Черной Субботы» в Египте"
	desc = black_saturday.1.d
	picture = GFX_black_saturday
	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		NOT = { has_country_flag = black_saturday_1 }
	}

	major = yes
	option = {
		name = "Ужас"
		set_country_flag = black_saturday_1
		if = {
			limit = {
				tag = EGY
			}
			complete_national_focus = EGY_Black_Saturday
		}
	}
}
news_event = {
	id = farouk_exiled.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = farouk_exiled.1"}
	title = "[GetNewspaperHeader]Аукцион Царских Владений"
	desc = farouk_exiled.1.d
	picture = GFX_exile_of_king_farouk
	is_triggered_only = yes

	major = yes
	option = {
		name = "Он Действительно был Безумцем"
	}
}
country_event = {
	id = RCC_Crisis.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = RCC_Crisis.1"}
	title = "СРК в Кризисе"
	desc = RCC_Crisis.1.d

	is_triggered_only = yes


	option = {
		name = "Насер Укрепляет Власть"
		complete_national_focus = EGY_Nasser_Consolidates_Power
		retire_country_leader = yes
		create_country_leader = {
			name = "Гамаль Абдель Насер"
			desc = "POLITICS_NASSER_DESC"
			traits = {
				first_egyptian
				fearless_in_the_face_of_imperialism
				publically_adored_populist
				commanding_presence
				believer_in_public_mega_work_projects
			}
			picture = "Nasser.dds"
			ideology = pan_arabism
		}
		ai_chance = {
			factor = 80
			modifier = {
				OR = {
					has_game_rule = {
						rule = EGY_revolution_aftermath
						option = EGY_Naguib
					}
					has_game_rule = {
						rule = EGY_revolution_aftermath
						option = EGY_Mohieddin
					}
				}
				factor = 0
			}
		}
	}
	option = {
		name = "Нагиб Укрепляет Власть"
		complete_national_focus = EGY_Naguib_Consolidates_Power
		hidden_effect = {
			set_cosmetic_tag = EGY_REP
		}
		ai_chance = {
			factor = 10
			modifier = {
				OR = {
					AND = {
						has_game_rule = {
							rule = EGY_revolution_aftermath
							option = DEFAULT
						}
						is_historical_focus_on = yes
					}
					has_game_rule = {
						rule = EGY_revolution_aftermath
						option = HISTORICAL
					}
					has_game_rule = {
						rule = EGY_revolution_aftermath
						option = EGY_Mohieddin
					}
				}
				factor = 0
			}
		}
	}
	option = {
		name = "Халед Мохи эд-Дин"
		complete_national_focus = EGY_Kahlid_Mohieddin_Coup
		set_politics = {
			ruling_party = communism
			elections_allowed = no
		}
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
		create_country_leader = {
			name = "Халед Мохи эд-Дин"
			picture = "Kahlid_Mohieddin.dds"
			ideology = marxism_leninism
		}
		drop_cosmetic_tag = yes
		hidden_effect = {
		set_cosmetic_tag = EGY_RED
		}
		ai_chance = {
			factor = 10
			modifier = {
				OR = {
					AND = {
						has_game_rule = {
							rule = EGY_revolution_aftermath
							option = DEFAULT
						}
						is_historical_focus_on = yes
					}
					has_game_rule = {
						rule = EGY_revolution_aftermath
						option = HISTORICAL
					}
					has_game_rule = {
						rule = EGY_revolution_aftermath
						option = EGY_Naguib
					}
				}
				factor = 0	
			}
		}
	}
}
country_event = {
	id = egy_elect.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egy_elect.1"}
	title = "Египетские Выборы"
	desc = "Египетские Выборы"

	is_triggered_only = yes


	option = {
		name = "Нагиб Побеждает"
		complete_national_focus = EGY_Naguib_Victory
		ai_chance = {
			factor = 34
			modifier = {
				OR = {
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_democratic
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_islamic
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_salafist
					}
				}
				factor = 0
			}
		}
	}
	option = {
		name = "Хасан аль-Худайби Побеждает"
		complete_national_focus = EGY_Hassan_al_Hudaybi
		complete_national_focus = EGY_Ilkwhan_Victory
		set_politics = {
			ruling_party = islamism
			elections_allowed = yes
		}
		add_popularity = {
			ideology = islamism
			popularity = 0.3
		}
		ai_chance = {
			factor = 10
			modifier = {
				OR = {
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_democratic
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_nationalist
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_salafist
					}
				}
				factor = 0
			}
		}
	}
	option = {
		name = "Сейид Кутб Побеждает"
		complete_national_focus = EGY_Ilkwhan_Victory
		complete_national_focus = EGY_Sayyid_Qutb
		set_politics = {
			ruling_party = Salafism
			elections_allowed = no
		}
		add_popularity = {
			ideology = Salafism
			popularity = 0.3
		}
		ai_chance = {
			factor = 10
			modifier = {
				OR = {
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_democratic
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_islamic
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_nationalist
					}
				}
				factor = 0
			}
		}
	}

	option = {
		name = "Партия Вафд Побеждает"
		complete_national_focus = EGY_wafd_victory
		set_politics = {
			ruling_party = liberal
			elections_allowed = yes
		}
		add_popularity = {
			ideology = liberal
			popularity = 0.2
		}
		ai_chance = {
			factor = 10
			modifier = {
				OR = {
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_nationalist
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_islamic
					}
					has_game_rule = {
						rule = EGY_republic_election
						option = EGY_salafist
					}
				}
				factor = 0
			}
		}
	}
}

country_event = {
	id = egypt_suez.1 
 immediate = {log = "[GetDateText]: [Root.GetTag]: id = egypt_suez.1"}
	title = "Египет Запрашивает Суэц"
	desc = "Египет Запрашивает Суэц"

	is_triggered_only = yes


	option = {
		name = "Принять Запрос"
		EGY = {
			transfer_state = 743
		}
		ai_chance = {
			factor = 65
		}
	}
	option = {
		name = "Отказать в Запросе"
		set_global_flag = negotiaiton_fail_suez
		ai_chance = {
			factor = 35
		}
	}

}
