add_namespace = shia_civil
add_namespace = persia
add_namespace = persia_news

country_event = {
	id = shia_civil.1
	title = shia_civil.1.t1
	picture = GFX_report_event_dynamic_civil_wars_coming
	desc = shia_civil.1.d1
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = shia_civil.1.o1
		add_political_power = 80
		add_stability = -0.03
		hidden_effect = {
			random_list = {
				30 = {
					start_civil_war = {
						ruling_party = islamist
						ideology = FROM
						size = 0.3
					}
				}
				70 = {
					add_popularity = {
						ideology = islamist
						popularity = 0.05
					}
					set_politics = {
						ruling_party = islamist
						elections_allowed = yes
					}
					add_opinion_modifier = {

						target = PER

						modifier = declaration_of_friendship

					}

				}
			}

		}

		ai_chance = { factor = 96 }
	}
}

#Persia Civil War
news_event = {
	id = persia_news.1
	title = persia_news.1.t
	desc = persia_news.1.d
	picture = GFX_news_event_recruits
	major = yes
	is_triggered_only = yes


	option = {
		name =  persia_news.1.a
	}
}
country_event = {
	id = persia.1
	title = persia.1.t1
	picture = GFX_report_event_dynamic_civil_wars_coming
	desc = persia.1.d1
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = persia.1.o1
		add_political_power = 80
		add_stability = -0.03
		hidden_effect = {

			country_event = {
				id = persia.2
				days = 5
			}
		}

		ai_chance = { factor = 96 }
	}
}

country_event = {
	id = persia.2
	title = persia.2.t1
	picture = GFX_report_event_city
	desc = persia.2.d1
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = persia.2.o1
		add_political_power = 70
		add_stability = 0.05
		hidden_effect = {
			country_event = {
				id = persia.3
				days = 5
			}
		}

		ai_chance = { factor = 96 }
	}

	option = {
		name = persia.2.o2
		add_stability = -0.07
		421 = {
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}

		ai_chance = { factor = 96 }
	}
}

country_event = {
	id = persia.3
	title = persia.3.t1
	picture = GFX_report_event_iraq_war7
	desc = persia.3.d1
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = persia.3.o1
		add_stability = -0.03
		hidden_effect = {
			KUR = {
				transfer_state = 421

				load_OOB = KUR_rebels2

				declare_war_on = { target = PER type = annex_everything }
			}

		}

		ai_chance = { factor = 96 }
	}
}

country_event = {
	id = persia.4
	title = persia.4.t1
	picture = GFX_report_event_iraq_war7
	desc = persia.4.d1
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = persia.4.o1
		add_stability = -0.5
		add_political_power = 200
		hidden_effect = {
			country_event = persia_news.1

			ASM = {
				transfer_state = 413


				create_country_leader = {
					name = "Ahmad Mola Nissi"
					ideology = national_democrat
					picture = "gfx/leaders/ASM/Ahmad_Mola.dds"
				}
				load_OOB = ASM_rebels

				declare_war_on = { target = PER type = annex_everything }
				declare_war_on = { target = IPR type = annex_everything }
				declare_war_on = { target = KUR type = annex_everything }
			}

			SAR = {
				transfer_state = 419
				add_state_core = 420
				add_state_core = 416

				create_country_leader = {
					name = "Army Council"
					picture = "Council.dds"
					ideology = national_democrat
					traits = { nationalist_symbol}
				}
				load_OOB = SAR_rebels
				declare_war_on = { target = ASM type = annex_everything }

				declare_war_on = { target = PER type = annex_everything }
				declare_war_on = { target = IPR type = annex_everything }
				declare_war_on = { target = KUR type = annex_everything }
			}

			IPR = {
				transfer_state = 420
				transfer_state = 416
				transfer_state = 418
				transfer_state = 913
				transfer_state = 417
				transfer_state = 266



				add_state_core = 417
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 410
				add_state_core = 912

				create_country_leader = {
					name = "Ali Hosseini Khamenei"
					ideology = islamic_authoritarian
					picture = "Ali_Hosseini_Khamenei.dds"
				}

				load_OOB = IPR_rebels

				declare_war_on = { target = ASM type = annex_everything }

				declare_war_on = { target = PER type = annex_everything }
				declare_war_on = { target = KUR type = annex_everything }
				declare_war_on = { target = SAR type = annex_everything }
			}

			KUR = {
				transfer_state = 421
				add_state_core = 420
				add_state_core = 416
				add_state_core = 266
				add_state_core = 418
				add_state_core = 913
				add_state_core = 417
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 410
				add_state_core = 912

				add_popularity = {

					ideology = nationalist
					popularity = 0.2
				}
				set_politics = {
					ruling_party = nationalist
					elections_allowed = no
				}
				load_OOB = KUR_rebels2

				declare_war_on = { target = ASM type = annex_everything }

				declare_war_on = { target = PER type = annex_everything }
				declare_war_on = { target = IPR type = annex_everything }
				declare_war_on = { target = SAR type = annex_everything }
			}

		}

		ai_chance = { factor = 96 }
	}
}

country_event = {
	id = persia.5
	title = persia.5.t1
	picture = GFX_report_event_iraq_war7
	desc = persia.5.d1
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = persia.5.o1
		add_stability = -0.5
		add_political_power = 200
		hidden_effect = {
			country_event = persia_news.1
			create_faction = "Anti-Government"
			add_to_faction = PER
			add_to_faction = SAR
			add_to_faction = KUR






			ASM = {
				transfer_state = 413


				create_country_leader = {
					name = "Ahmad Mola Nissi"
					ideology = national_democrat
					picture = "gfx/leaders/ASM/Ahmad_Mola.dds"
				}
				load_OOB = ASM_rebels

				declare_war_on = { target = PER type = annex_everything }
				declare_war_on = { target = IPR type = annex_everything }
				declare_war_on = { target = KUR type = annex_everything }
			}

			SAR = {
				transfer_state = 419
				add_state_core = 420
				add_state_core = 416

				create_country_leader = {
					name = "Army Council"
					picture = "Council.dds"
					ideology = national_democrat
					traits = { nationalist_symbol}
				}
				load_OOB = SAR_rebels

				declare_war_on = { target = ASM type = annex_everything }
				declare_war_on = { target = IPR type = annex_everything }
			}

			IPR = {
				transfer_state = 420
				transfer_state = 416
				transfer_state = 418
				transfer_state = 913
				transfer_state = 417
				transfer_state = 266



				add_state_core = 417
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 410
				add_state_core = 912

				create_country_leader = {
					name = "Ali Hosseini Khamenei"
					ideology = islamic_authoritarian
					picture = "Ali_Hosseini_Khamenei.dds"
				}

				load_OOB = IPR_rebels

				declare_war_on = { target = ASM type = annex_everything }

				declare_war_on = { target = PER type = annex_everything }
				declare_war_on = { target = KUR type = annex_everything }
				declare_war_on = { target = SAR type = annex_everything }
			}

			KUR = {
				transfer_state = 421
				add_state_core = 420
				add_state_core = 416
				add_state_core = 266
				add_state_core = 418
				add_state_core = 913
				add_state_core = 417
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 410
				add_state_core = 912

				add_popularity = {

					ideology = nationalist
					popularity = 0.2
				}
				set_politics = {
					ruling_party = nationalist
					elections_allowed = no
				}
				load_OOB = KUR_rebels2

				declare_war_on = { target = ASM type = annex_everything }

				declare_war_on = { target = IPR type = annex_everything }
			}

		}

		ai_chance = { factor = 96 }
	}
}
