add_namespace = iranian_focus
add_namespace = iranian_events
add_namespace = PER_majlis
add_namespace = nuclear_iran
add_namespace = PER_election_events
add_namespace = axis_of_resistance_events
add_namespace = iranian_flavor

country_event = {
	id = iranian_events.1 #Bam Earthquake
	title = iranian_events.1.t
	desc = iranian_events.1.d
	picture = GFX_bam_earthquake
	is_triggered_only = yes

	option = { # Send army personnel there to handle the situation.
		name = iranian_events.1.o1
		log = "[GetDateText]: [This.GetName]:iranian_events.1.o1 executed"
		add_political_power = -50
		add_stability = -0.05
		977 = {
			add_manpower = -40000
		}
	}

	option = { # Declare martial law until the situation calms down.
		name = iranian_events.1.o2
		log = "[GetDateText]: [This.GetName]:iranian_events.1.o2 executed"
		add_political_power = -200
		add_stability = 0.05
		977 = {
			add_manpower = -40000
		}
	}
}
news_event = {
	id = iranian_events.2
	title = iranian_events.2.t
	desc = iranian_events.2.d
	picture = GFX_aramco_fire_night
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.2.o1 }
}
country_event = {
	id = iranian_events.3 # Sabotage In Aramco
	title = iranian_events.3.t
	desc = iranian_events.3.d
	picture = GFX_aramco_fire_day
	is_triggered_only = yes

	option = {
		name = iranian_events.3.o1 # Curse them.
		log = "[GetDateText]: [This.GetName]:iranian_events.3.o1 executed"
		add_stability = -0.05
		set_temp_variable = { treasury_change = -7.5 }
		modify_treasury_effect = yes
		news_event = iranian_events.2
	}
}
news_event = {
	id = iranian_events.4 # Israeli Weapon Storage Blown
	title = iranian_events.4.t
	desc = iranian_events.4.d
	picture = GFX_nahariya_storage_blown_world
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.4.o1 }
}
country_event = {
	id = iranian_events.5 # Sabotage In Nahariya Weapon Storage
	title = iranian_events.5.t
	desc = iranian_events.5.d
	picture = GFX_nahariya_storage_blown_country
	is_triggered_only = yes

	option = {
		name = iranian_events.5.o1 # Damn those Iranians!!!
		log = "[GetDateText]: [This.GetName]:iranian_events.5.o1 executed"
		add_stability = -0.05
		set_temp_variable = { treasury_change = -7.5 }
		modify_treasury_effect = yes
		news_event = iranian_events.4
	}
}
country_event = {
	id = iranian_events.7 # The Quds is ours!
	title = iranian_events.7.t
	desc = iranian_events.7.d
	picture = GFX_iran_quds
	is_triggered_only = yes

	trigger = {
		PER = {
			NOT = { has_country_flag = quds_event_was_fired }
			OR = {
				emerging_hardline_shiite_are_in_power = yes
				emerging_moderate_shiite_are_in_power = yes
			}
			OR = {
				207 = { is_controlled_by = PER }
				any_allied_country = { 207 = { is_controlled_by = PREV } }
			}
		}
		ISR = {
			OR = {
				surrender_progress > 0.2
				has_capitulated = yes
			}
		}
	}

	option = { # For Islam and for Palestine!
		name = iranian_events.7.o1
		log = "[GetDateText]: [This.GetName]:iranian_events.7.o1 executed"
		ai_chance = {
			base = 1
		}
		set_country_flag = quds_event_was_fired
		PAL = {
			every_core_state = {
				transfer_state_to = PAL
			}
			set_capital = { state = 207 }
			set_province_name = { id = 1086 name = PER_1086_name }
			set_province_name = { id = 4206 name = PER_4206_name }
			set_province_name = { id = 11970 name = PER_11970_name }
		}
		PER = {
			puppet = PAL
		}
		hidden_effect = {
			ISR = {
				set_country_flag = PER_identify_israeli_divisions_to_damage_them
			}
			damage_units = {
				region = 174
				limit = { has_country_flag = PER_identify_israeli_divisions_to_damage_them }
				damage = 0.8
				org_damage = 0.5
				str_damage = 0.8
				ratio = yes
				army = yes
				navy = yes
			}
			ISR = {
				clr_country_flag = PER_identify_israeli_divisions_to_damage_them
			}
		}
	}

	option = { # We need it for now.
		name = iranian_events.7.o2
		log = "[GetDateText]: [This.GetName]:iranian_events.7.o2 executed"
		set_country_flag = quds_event_was_fired
		ai_chance = {
			base = 0
		}
	}
}
news_event = {
	id = iranian_events.8
	title = iranian_events.8.t
	desc = iranian_events.8.d
	picture = GFX_turkey_iraqi_base_world
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.8.o1 }
}
country_event = {
	id = iranian_events.9 # Turkey-Iraqi Base Blown
	title = iranian_events.9.t
	desc = iranian_events.9.d
	picture = GFX_turkey_iraqi_base_country
	is_triggered_only = yes

	option = {
		name = iranian_events.9.o1 # Sad.
		log = "[GetDateText]: [This.GetName]:iranian_events.9.o1 executed"
		add_war_support = -0.05
		set_temp_variable = { treasury_change = -7.5 }
		modify_treasury_effect = yes
		news_event = iranian_events.8
	}
}
news_event = {
	id = iranian_events.10
	title = iranian_events.10.t
	desc = iranian_events.10.d
	picture = GFX_baku_gas_lines_world
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.10.o1 }
}
country_event = {
	id = iranian_events.11 # Baku Gas Lines Blown
	title = iranian_events.11.t
	desc = iranian_events.11.d
	picture = GFX_baku_gas_lines_country
	is_triggered_only = yes

	option = {
		name = iranian_events.11.o1 # Oh.
		log = "[GetDateText]: [This.GetName]:iranian_events.11.o1 executed"
		add_war_support = -0.02
		set_temp_variable = { treasury_change = -7.5 }
		modify_treasury_effect = yes
		news_event = iranian_events.10
	}
}
country_event = {
	id = iranian_events.12 # The Third Development Plan
	title = iranian_events.12.t
	desc = iranian_events.12.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	option = { # Industry
		name = iranian_events.12.o1
		log = "[GetDateText]: [This.GetName]:iranian_events.12.o1 executed"
		add_timed_idea = {
			idea = industry_focus_idea
			days = 1825
		}
	}

	option = { # Science
		name = iranian_events.12.o2
		log = "[GetDateText]: [This.GetName]:iranian_events.12.o2 executed"
		add_timed_idea = {
			idea = science_focus_idea
			days = 1825
		}
	}

	option = { # Military
		name = iranian_events.12.o3
		log = "[GetDateText]: [This.GetName]:iranian_events.12.o3 executed"
		add_timed_idea = {
			idea = military_focus_idea
			days = 1825
		}
	}
}
country_event = {
	id = iranian_events.13 # Iran asks Iraq
	title = iranian_events.13.t
	desc = iranian_events.13.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = iranian_events.13.o1
		log = "[GetDateText]: [This.GetName]:iranian_events.13.o1 executed"
		if = {
			limit = { PER = { has_country_flag = PER_ask_iraq_for_half_billion_weekly } }
			custom_effect_tooltip = PER_half_billion_weekly_money_TT
			PER = { set_country_flag = PER_iraq_accepted_to_pay_half_billion_weekly }
			set_country_flag = IRQ_iraq_accepted_to_pay_half_billion_weekly
		}
		else_if = {
			limit = { PER = { has_country_flag = PER_ask_iraq_for_one_billion_weekly } }
			custom_effect_tooltip = PER_one_billion_weekly_money_TT
			PER = { set_country_flag = PER_iraq_accepted_to_pay_one_billion_weekly }
			set_country_flag = IRQ_iraq_accepted_to_pay_one_billion_weekly
		}
		else_if = {
			limit = { PER = { has_country_flag = PER_ask_iraq_for_two_billion_weekly } }
			custom_effect_tooltip = PER_two_billion_weekly_money_TT
			PER = { set_country_flag = PER_iraq_accepted_to_pay_two_billion_weekly }
			set_country_flag = IRQ_iraq_accepted_to_pay_two_billion_weekly
		}
		PER = { country_event = { id = iranian_events.15 days = 1 } }
	}

	option = {
		name = iranian_events.13.o2
		log = "[GetDateText]: [This.GetName]:iranian_events.13.o2 executed"
		ai_chance = { base = 0 }
		custom_effect_tooltip = PER_iran_attack_iraq_wargoal_TT
		PER = { country_event = { id = iranian_events.14 days = 1 } }
	}
}
country_event = {
	id = iranian_events.14 # Iraq refuses
	title = iranian_events.14.t
	desc = iranian_events.14.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = iranian_events.14.o1
		log = "[GetDateText]: [This.GetName]:iranian_events.14.o1 executed"
		set_temp_variable = { wargoal_on = IRQ }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			type = puppet_wargoal_focus
			target = IRQ
		}
		add_opinion_modifier = {
			target = IRQ
			modifier = small_decrease
		}
	}
}
country_event = {
	id = iranian_events.15 # Iraq accepts
	title = iranian_events.15.t
	desc = iranian_events.15.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = {
		name = iranian_events.15.o1
		log = "[GetDateText]: [This.GetName]:iranian_events.15.o1 executed"
		if = {
			limit = { has_country_flag = PER_ask_iraq_for_half_billion_weekly }
			custom_effect_tooltip = PER_half_billion_weekly_income_TT
			hidden_effect = { country_event = { id = iranian_events.55 days = 3486 } }
		}
		else_if = {
			limit = { has_country_flag = PER_ask_iraq_for_one_billion_weekly }
			custom_effect_tooltip = PER_one_billion_weekly_income_TT
			hidden_effect = { country_event = { id = iranian_events.55 days = 1743 } }
		}
		else_if = {
			limit = { has_country_flag = PER_ask_iraq_for_two_billion_weekly }
			custom_effect_tooltip = PER_two_billion_weekly_income_TT
			hidden_effect = { country_event = { id = iranian_events.55 days = 871 } }
		}
		add_opinion_modifier = {
			target = IRQ
			modifier = small_increase
		}
	}
}
country_event = {
	id = iranian_events.55 # Hidden effect to remove income or expense
	is_triggered_only = yes
	hidden = yes

	timeout_days = 1
	immediate = {
		PER = {
			clr_country_flag = PER_iraq_accepted_to_pay_half_billion_weekly
			clr_country_flag = PER_iraq_accepted_to_pay_one_billion_weekly
			clr_country_flag = PER_iraq_accepted_to_pay_two_billion_weekly
		}
		IRQ = {
			clr_country_flag = IRQ_iraq_accepted_to_pay_half_billion_weekly
			clr_country_flag = IRQ_iraq_accepted_to_pay_one_billion_weekly
			clr_country_flag = IRQ_iraq_accepted_to_pay_two_billion_weekly
		}
	}
}
### Iranian Presidental Elections Events ###
country_event = { # 2001 Election Notification (Between Khatami and Tavakkoli)
	id = PER_election_events.2
	title = PER_election_events.2.t
	desc = PER_election_events.2.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		tag = PER
		has_start_date < 2016.1.1
		NOT = {
			OR = {
				has_country_flag = PER_turn_off_IR_stuff
				has_country_flag = PER_presidency_abolished
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		set_country_flag = principalist_portrait_tavakoli
		if = {
			limit = { has_country_flag = PER_yazdi_goes }
			set_country_flag = reformist_portrait_yazdi
		}
		else = { set_country_flag = reformist_portrait_khatami }
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = {
		name = PER_election_events.2.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.2.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
	}
}
country_event = { # 2005 Election Notification (Between Ahmadinejad and Rafsanjani)
	id = PER_election_events.3
	title = PER_election_events.3.t
	desc = PER_election_events.3.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		tag = PER
		has_start_date < 2016.1.1
		NOT = {
			OR = {
				has_country_flag = PER_presidency_abolished
				has_country_flag = PER_turn_off_IR_stuff
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		set_country_flag = principalist_portrait_ahmadinejad
		if = {
			limit = { has_country_flag = PER_yazdi_goes }
			set_country_flag = reformist_portrait_kavakebian
		}
		else = { set_country_flag = reformist_portrait_rafsanjani }
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = {
		name = PER_election_events.3.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.3.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
	}
}
country_event = { # 2009 Election Notification (Between Ahmadinejad and Mousavi)
	id = PER_election_events.4
	title = PER_election_events.4.t
	desc = PER_election_events.4.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		tag = PER
		has_start_date < 2016.1.1
		NOT = {
			OR = {
				has_country_flag = PER_presidency_abolished
				has_country_flag = PER_turn_off_IR_stuff
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		set_country_flag = principalist_portrait_ahmadinejad
		if = {
			limit = { has_country_flag = PER_karroubi_goes }
			set_country_flag = reformist_portrait_karroubi
		}
		else = { set_country_flag = reformist_portrait_mousavi }
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = {
		name = PER_election_events.4.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.4.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
	}
}
country_event = { # 2013 Election Notification (Between Ghalibaf and Rouhani)
	id = PER_election_events.5
	title = PER_election_events.5.t
	desc = PER_election_events.5.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		tag = PER
		has_start_date < 2016.1.1
		NOT = {
			OR = {
				has_country_flag = PER_turn_off_IR_stuff
				has_country_flag = PER_presidency_abolished
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		PER_scripted_effect_update_principalists_popularity_variable = yes
		if = {
			limit = {
				NOT = {
					has_country_flag = PER_mashaei_goes
				}
			}
			set_country_flag = principalist_portrait_ghalibaf
		}
		else = {
			set_country_flag = principalist_portrait_mashaei
		}
		set_country_flag = reformist_portrait_rouhani
		hidden_effect = {
			if = {
				limit = {
					is_historical_focus_on = yes
					has_country_flag = principalist_portrait_ghalibaf
				}
				country_event = {
					id = PER_election_events.21
					days = 20
				}
			}
			else_if = {
				limit = {
					has_country_flag = principalist_portrait_ghalibaf
				}
				# 30% Chance that Ghalibaf withdraws with historical AI off
				random = {
					chance = 30
					country_event = {
						id = PER_election_events.21
						days = 20
					}
				}
			}
		}
	}

	option = {
		name = PER_election_events.5.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.5.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
	}
}

country_event = { # 2013 Election Notification (Qalibaf Withdraws from Presidential Election, 30% chance that this event happens)
	id = PER_election_events.21
	title = PER_election_events.21.t
	desc = PER_election_events.21.d
	picture = GFX_ghalibaf_won_election
	is_triggered_only = yes

	timeout_days = 30
	trigger = { has_country_flag = PER_turn_off_IR_stuff }

	immediate = {
		clr_country_flag = principalist_portrait_ghalibaf
		set_country_flag = principalist_portrait_rezaee
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { name = PER_election_events.21.a }
}

country_event = { # 2017 Election Notification (Between Raisi and Rouhani)
	id = PER_election_events.6
	title = PER_election_events.6.t
	desc = PER_election_events.6.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		tag = PER
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		NOT = {
			OR = {
				has_country_flag = PER_presidency_abolished
				has_country_flag = PER_turn_off_IR_stuff
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		set_country_flag = reformist_portrait_rouhani
		if = {
			limit = { has_country_flag = PER_bayadi_goes }
			set_country_flag = principalist_portrait_bayadi
		}
		else = { set_country_flag = principalist_portrait_raisi }
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = {
		name = PER_election_events.6.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.6.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
	}
}
country_event = { # 2021 Election Notification (Between Raisi and Hemmati)
	id = PER_election_events.7
	title = PER_election_events.7.t
	desc = PER_election_events.7.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		tag = PER
		NOT = {
			OR = {
				has_country_flag = PER_presidency_abolished
				has_country_flag = PER_turn_off_IR_stuff
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		set_country_flag = principalist_portrait_raisi
		if = {
			limit = { has_country_flag = PER_haghshenas_goes }
			set_country_flag = reformist_portrait_haghshenas
		}
		else = { set_country_flag = reformist_portrait_hemmati }
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = {
		name = PER_election_events.7.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.7.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
		set_country_flag = PER_13th
	}
}

country_event = { # 2025 Election Notification (Between Raisi and Pezeshkian)
	id = PER_election_events.71
	title = PER_election_events.71.t
	desc = PER_election_events.71.d
	picture = GFX_election
	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_government = communism
		OR = {
			emerging_hardline_shiite_are_in_power = yes
			emerging_moderate_shiite_are_in_power = yes
		}
		tag = PER
		NOT = {
			OR = {
				has_country_flag = PER_presidency_abolished
				has_country_flag = PER_turn_off_IR_stuff
			}
		}
	}

	timeout_days = 30
	immediate = {
		clr_country_flag = PER_election_enabled
		clr_country_flag = principalist_portrait_ahmadinejad
		clr_country_flag = principalist_portrait_raisi
		clr_country_flag = principalist_portrait_tavakoli
		clr_country_flag = principalist_portrait_ghalibaf
		clr_country_flag = principalist_portrait_rezaee
		clr_country_flag = reformist_portrait_hemmati
		clr_country_flag = reformist_portrait_khatami
		clr_country_flag = reformist_portrait_mousavi
		clr_country_flag = reformist_portrait_rafsanjani
		clr_country_flag = reformist_portrait_rouhani
		clr_country_flag = reformist_portrait_pezeshkian
		clr_country_flag = reformist_portrait_kavakebian
		clr_country_flag = reformist_portrait_yazdi
		clr_country_flag = reformist_portrait_karroubi
		clr_country_flag = reformist_portrait_haghshenas
		clr_country_flag = principalist_portrait_mashaei
		clr_country_flag = principalist_portrait_bayadi
		set_country_flag = PER_election_enabled
		set_country_flag = principalist_portrait_raisi
		set_country_flag = reformist_portrait_pezeshkian
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = {
		name = PER_election_events.71.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.71.a executed"
		unlock_decision_category_tooltip = PER_Iranian_elections_decision_category
	}
}

######## Election Result ########
country_event = { # Khatami Elected as President 2001 (Reformists Won)
	id = PER_election_events.8
	title = PER_election_events.8.t
	desc = PER_election_events.8.d
	picture = GFX_khatami_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.8.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.8.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_khatami # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_khatami_idea
	}
}
country_event = { # Yazdi Elected as President 2001 (Reformists Won)
	id = PER_election_events.81
	title = PER_election_events.81.t
	desc = PER_election_events.81.d
	picture = GFX_election_day
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.8.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.81.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_yazdi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_yazdi_idea
		custom_effect_tooltip = PER_add_FMI_TT
		set_temp_variable = { add_col_one = 16 }
		add_coalition_members_effect = yes
	}
}
country_event = { # Tavakoli Elected as President 2001 (Principalists Won)
	id = PER_election_events.9
	title = PER_election_events.9.t
	desc = PER_election_events.9.d
	picture = GFX_tavakoli_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.9.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.9.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_tavakoli # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_tavakoli_idea
	}
}
country_event = { # Rafsanjani Elected as President 2005 (Reformists Won)
	id = PER_election_events.10
	title = PER_election_events.10.t
	desc = PER_election_events.10.d
	picture = GFX_rafsanjani_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.10.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.10.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_rafsanjani # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_rafsanjani_idea
	}
}
country_event = { # Kavakebian Elected as President 2005 (Reformists Won)
	id = PER_election_events.101
	title = PER_election_events.101.t
	desc = PER_election_events.101.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.101.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.101.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_kavakebian # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_kavakebian_idea
	}
}
country_event = { # Ahmadinejad Elected as President 2005 (Principalists Won)
	id = PER_election_events.11
	title = PER_election_events.11.t
	desc = PER_election_events.11.d
	picture = GFX_ahmadinejad_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.11.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.11.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_ahmadinejad # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_ahmadinejad_idea
	}
}
country_event = { # Mousavi Elected as President 2009 (Reformists Won)
	id = PER_election_events.12
	title = PER_election_events.12.t
	desc = PER_election_events.12.d
	picture = GFX_mousavi_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.12.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.12.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_mousavi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_mousavi_idea
	}
}
country_event = { # Karroubi Elected as President 2009 (Reformists Won)
	id = PER_election_events.121
	title = PER_election_events.121.t
	desc = PER_election_events.121.d
	picture = GFX_mousavi_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.121.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.121.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_karroubi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_karroubi_idea
	}
}
country_event = { # Ahmedinejad Elected as President 2009 (Principalists Won)
	id = PER_election_events.13
	title = PER_election_events.13.t
	desc = PER_election_events.13.d
	picture = GFX_ahmadinejad_won_election_second
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.13.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.13.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_ahmadinejad # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_ahmadinejad_idea
		#2009 Election protests will happen IF reformists have had 20% support or more.
		hidden_effect = {
			if = {
				limit = {
					check_variable = { reformists_popularity_percent_round > 19 }
				}
				country_event = {
					id = PER_election_events.28
					days = 3
				}
			}
		}
	}
}
country_event = { # Rouhani Elected as President 2013 (Reformists Won)
	id = PER_election_events.14
	title = PER_election_events.14.t
	desc = PER_election_events.14.d
	picture = GFX_rouhani_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.14.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.14.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_rouhani # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_rouhani_idea
	}
}
country_event = { # Ghalibaf Elected as President 2013 (Principalists Won)
	id = PER_election_events.15
	title = PER_election_events.15.t
	desc = PER_election_events.15.d
	picture = GFX_ghalibaf_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.15.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.15.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_ghalibaf # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_ghalibaf_idea
	}
}
country_event = { # Mashaei Elected as President 2013 (Principalists Won)
	id = PER_election_events.151
	title = PER_election_events.15.t
	desc = PER_election_events.15.d
	picture = GFX_ghalibaf_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.151.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.151.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_mashaei # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_mashaei_idea
	}
}
country_event = { # Rezaee Elected as President 2013 (Principalists Won)
	id = PER_election_events.16
	title = PER_election_events.16.t
	desc = PER_election_events.16.d
	picture = GFX_rezaee_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.16.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.16.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_rezaee # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_rezaee_idea
	}
}
country_event = { # Rouhani Elected as President 2017 (Reformists Won)
	id = PER_election_events.17
	title = PER_election_events.17.t
	desc = PER_election_events.17.d
	picture = GFX_rouhani_won_election_second
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.17.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.17.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_rouhani # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_rouhani_idea
	}
}
country_event = { # Raisi Elected as President 2017 (Principalists Won)
	id = PER_election_events.18
	title = PER_election_events.18.t
	desc = PER_election_events.18.d
	picture = GFX_raisi_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.18.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.18.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_raisi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_raisi_idea
	}
}
country_event = { # Bayadi Elected as President 2017 (Principalists Won)
	id = PER_election_events.181
	title = PER_election_events.181.t
	desc = PER_election_events.181.d
	picture = GFX_raisi_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.181.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.181.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_bayadi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_bayadi_idea
	}
}
country_event = { # Hemmati Elected as President 2021 (Reformists Won)
	id = PER_election_events.19
	title = PER_election_events.19.t
	desc = PER_election_events.19.d
	picture = GFX_hemmati_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.19.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.19.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_hemmati # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_hemmati_idea
	}
}
country_event = { # Haghshenas Elected as President 2021 (Reformists Won)
	id = PER_election_events.191
	title = PER_election_events.191.t
	desc = PER_election_events.191.d
	picture = GFX_hemmati_won_election
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.191.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.191.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_haghshenas # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_haghshenas_idea
	}
}
country_event = { # Raisi Elected as President 2021 (Principalists Won)
	id = PER_election_events.20
	title = PER_election_events.20.t
	desc = PER_election_events.20.d
	picture = GFX_raisi_won_election_second
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.20.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.20.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_raisi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_raisi_idea
	}
}

country_event = { # Raisi Elected as President 2025 (Principalists Won)
	id = PER_election_events.201
	title = PER_election_events.201.t
	desc = PER_election_events.201.d
	picture = GFX_raisi_won_election_second
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.201.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.201.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 9 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_raisi # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_raisi_idea
	}
}

country_event = { # Pezeshkian Elected as President 2025 (Reformists Won)
	id = PER_election_events.202
	title = PER_election_events.202.t
	desc = PER_election_events.202.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = {
		name = PER_election_events.202.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.202.a executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		PER_scripted_effect_finish_election = yes
		set_country_flag = PER_president_pezeshkian # Set President
		add_to_variable = { iranian_president_change = 1 }
		add_ideas = PER_pezeshkian_idea
	}
}
#Events for decisions
country_event = { # TV Ads for Principalists
	id = PER_election_events.22
	title = PER_election_events.22.t
	desc = PER_election_events.22.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = { #Let's do this!
		name = PER_election_events.22.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.22.a executed"
		random_list = {
			70 = {
				set_temp_variable = { party_index = 9 }
				set_temp_variable = { party_popularity_increase = 0.03 }
				change_relative_party_popularity = yes
			}
			30 = {
				set_temp_variable = { party_index = 8 }
				set_temp_variable = { party_popularity_increase = 0.03 }
				change_relative_party_popularity = yes
			}
		}
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { #Nevermind.
		name = PER_election_events.22.b
		log = "[GetDateText]: [This.GetName]:PER_election_events.22.b executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}
}
country_event = { # TV Ads for Reformists
	id = PER_election_events.23
	title = PER_election_events.23.t
	desc = PER_election_events.23.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = { #Let's do this!
		name = PER_election_events.23.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.23.a executed"
		random_list = {
			70 = {
				set_temp_variable = { party_index = 8 }
				set_temp_variable = { party_popularity_increase = 0.03 }
				change_relative_party_popularity = yes
			}
			30 = {
				set_temp_variable = { party_index = 9 }
				set_temp_variable = { party_popularity_increase = 0.03 }
				change_relative_party_popularity = yes
			}
		}
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { #Nevermind.
		name = PER_election_events.23.b
		log = "[GetDateText]: [This.GetName]:PER_election_events.23.b executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}
}
country_event = { # Put Up Street Ads for Principalists
	id = PER_election_events.24
	title = PER_election_events.24.t
	desc = PER_election_events.24.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = { #Okay.
		name = PER_election_events.24.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.24.a executed"
		random_list = {
			70 = {
				set_temp_variable = { party_index = 9 }
				set_temp_variable = { party_popularity_increase = 0.015 }
				change_relative_party_popularity = yes
			}
			30 = {
				set_temp_variable = { party_index = 8 }
				set_temp_variable = { party_popularity_increase = 0.015 }
				change_relative_party_popularity = yes
			}
		}
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { #Maybe next time.
		name = PER_election_events.24.b
		log = "[GetDateText]: [This.GetName]:PER_election_events.24.b executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}
}
country_event = { # Put Up Street Ads for Reformists
	id = PER_election_events.25
	title = PER_election_events.25.t
	desc = PER_election_events.25.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = { #Okay.
		name = PER_election_events.25.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.25.a executed"
		random_list = {
			70 = {
				set_temp_variable = { party_index = 8 }
				set_temp_variable = { party_popularity_increase = 0.015 }
				change_relative_party_popularity = yes
			}
			30 = {
				set_temp_variable = { party_index = 9 }
				set_temp_variable = { party_popularity_increase = 0.015 }
				change_relative_party_popularity = yes
			}
		}
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { #Maybe next time.
		name = PER_election_events.25.b
		log = "[GetDateText]: [This.GetName]:PER_election_events.25.b executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}
}
country_event = { # Host Internet Ads for Principalists
	id = PER_election_events.26
	title = PER_election_events.26.t
	desc = PER_election_events.26.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = { #Sure, why not?
		name = PER_election_events.26.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.26.a executed"
		random_list = {
			70 = {
				set_temp_variable = { party_index = 9 }
				set_temp_variable = { party_popularity_increase = 0.01 }
				change_relative_party_popularity = yes
			}
			30 = {
				set_temp_variable = { party_index = 8 }
				set_temp_variable = { party_popularity_increase = 0.01 }
				change_relative_party_popularity = yes
			}
		}
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { #No.
		name = PER_election_events.26.b
		log = "[GetDateText]: [This.GetName]:PER_election_events.26.b executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}
}
country_event = { # Host Internet Ads for Reformists
	id = PER_election_events.27
	title = PER_election_events.27.t
	desc = PER_election_events.27.d
	picture = GFX_politics_talks
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_turn_off_IR_stuff } }

	option = { #Sure, why not?
		name = PER_election_events.27.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.27.a executed"
		random_list = {
			70 = {
				set_temp_variable = { party_index = 8 }
				set_temp_variable = { party_popularity_increase = 0.01 }
				change_relative_party_popularity = yes
			}
			30 = {
				set_temp_variable = { party_index = 9 }
				set_temp_variable = { party_popularity_increase = 0.01 }
				change_relative_party_popularity = yes
			}
		}
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}

	option = { #No.
		name = PER_election_events.27.b
		log = "[GetDateText]: [This.GetName]:PER_election_events.27.b executed"
		PER_scripted_effect_update_principalists_popularity_variable = yes
	}
}
country_event = { # 2009 Iranian election protests
	id = PER_election_events.28
	title = PER_election_events.28.t
	desc = PER_election_events.28.desc
	picture = GFX_election_protests
	is_triggered_only = yes

	option = { # Suppress them now!
		name = PER_election_events.28.a
		log = "[GetDateText]: [This.GetName]:PER_election_events.28.a executed"
		custom_effect_tooltip = PER_may_start_protests2_TT
		set_country_flag = PER_protests_ongoing
		hidden_effect = {
			news_event = {
				id = iranian_events.230
				days = 7
			}
		}
	}

	option = { # Ok sure, there was fraud in the election.
		name = PER_election_events.28.d
		log = "[GetDateText]: [This.GetName]:PER_election_events.28.d executed"
		custom_effect_tooltip = PER_mousavi_becomes_president_tt
		set_temp_variable = { rul_party_temp = 8 }
		change_ruling_party_effect = yes
		hidden_effect = {
			PER_scripted_effect_finish_election = yes
			set_country_flag = PER_president_mousavi # Set President
			add_to_variable = { iranian_president_change = 1 }
			add_ideas = PER_mousavi_idea
		}
	}
}

# axis_of_resistance_events

country_event = {
	id = axis_of_resistance_events.1 # Iran Wants Us To Join Axis Of Resistance
	title = axis_of_resistance_events.1.t
	desc = axis_of_resistance_events.1.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # Together we're stronger!
		name = axis_of_resistance_events.1.o1
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.1.o1 executed"
		ai_chance = {
			base = 1
		}
		PER = { add_to_faction = ROOT }
		news_event = axis_of_resistance_events.3
		PER = {
			clr_country_flag = invited_syria
			clr_country_flag = invited_iraq
			clr_country_flag = invited_houthis
			clr_country_flag = invited_hezbollah
			clr_country_flag = invited_azerbaijan
			clr_country_flag = invited_turkey
		}
	}

	option = { # No.
		name = axis_of_resistance_events.1.o2
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.1.o2 executed"
		ai_chance = {
			base = -1
		}
		PER = {
			country_event = axis_of_resistance_events.2
			clr_country_flag = invited_syria
			clr_country_flag = invited_iraq
			clr_country_flag = invited_houthis
			clr_country_flag = invited_hezbollah
			clr_country_flag = invited_azerbaijan
			clr_country_flag = invited_turkey
		}
	}
}
country_event = {
	id = axis_of_resistance_events.2 # [COUNTRY] Refused To Joined Axis Of Resistance (country event)
	title = axis_of_resistance_events.2.t
	desc = axis_of_resistance_events.2.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # Okay.
		name = axis_of_resistance_events.2.o1
	}
}
news_event = {
	id = axis_of_resistance_events.3 # [COUNTRY] Joined Axis Of Resistance
	title = axis_of_resistance_events.3.t
	desc = axis_of_resistance_events.3.d
	picture = GFX_axis_of_resistance_world
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.3.o1 }
}
country_event = {
	id = axis_of_resistance_events.4 # Iran Wants Us To Launch Attacks Against Israel
	title = axis_of_resistance_events.4.t
	desc = axis_of_resistance_events.4.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # Let's do this!
		name = axis_of_resistance_events.4.o1
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.4.o1 executed"
		if = {
			limit = {
				587 = {
					is_fully_controlled_by = ISR
				}
				controls_state = 201
				NOT = { controls_state = 587 }
				201 = { NOT = { has_border_war = yes } }
				587 = { NOT = { has_border_war = yes } }
			}
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 201
					num_provinces = 1
					on_win = axis_of_resistance_events.7
					on_lose = axis_of_resistance_events.7
					on_cancel = axis_of_resistance_events.7
				}
				defender = {
					state = 587
					num_provinces = 1
					on_win = axis_of_resistance_events.7
					on_lose = axis_of_resistance_events.7
					on_cancel = axis_of_resistance_events.7
				}
			}
		}
		else_if = {
			limit = {
				controls_state = 201
				NOT = { controls_state = 205 }
				201 = { NOT = { has_border_war = yes } }
				205 = { NOT = { has_border_war = yes } }
			}
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 201
					num_provinces = 1
					on_win = axis_of_resistance_events.7
					   on_lose = axis_of_resistance_events.7
					on_cancel = axis_of_resistance_events.7
				}
				defender = {
					state = 205
					num_provinces = 1
					on_win = axis_of_resistance_events.7
					on_lose = axis_of_resistance_events.7
					on_cancel = axis_of_resistance_events.7
				}
			}
		}
		PER = {
			news_event = axis_of_resistance_events.5
		}
	}

	option = { # We need to prepare.
		name = axis_of_resistance_events.4.o2
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.4.o2 executed"
		ai_chance = {
			base = 0
		}
		PER = {
			country_event = axis_of_resistance_events.6
		}
	}
}
news_event = {
	id = axis_of_resistance_events.5 # Hezbollah Attacks Israel
	title = axis_of_resistance_events.5.t
	desc = axis_of_resistance_events.5.d
	picture = GFX_axis_of_resistance_world
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.5.o1 }
}
country_event = {
	id = axis_of_resistance_events.6 # Hezbollah Didn't Attack
	title = axis_of_resistance_events.6.t
	desc = axis_of_resistance_events.6.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # Understood.
		name = axis_of_resistance_events.6.o1
	}
}
country_event = {
	id = axis_of_resistance_events.7 # Border War Ends
	title = axis_of_resistance_events.7.t
	desc = axis_of_resistance_events.7.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # Ok.
		name = axis_of_resistance_events.7.o1
	}
}
country_event = {
	id = axis_of_resistance_events.8 # Tied with PER_alawites_in_syria - Message to syria
	title = axis_of_resistance_events.8.t
	desc = axis_of_resistance_events.8.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # A keen Intrest Indeed.
		name = axis_of_resistance_events.8.o1
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.8.o1 executed"
		set_temp_variable = { party_index = 8 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		set_temp_variable = { temp_outlook_increase = 0.05 }
		change_relative_party_popularity = yes
	}
}
country_event = {
	id = axis_of_resistance_events.9 # Baathist Plotting Coup
	title = axis_of_resistance_events.9.t
	desc = axis_of_resistance_events.9.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { # A keen Intrest Indeed.
		name = axis_of_resistance_events.9.o1
	}
}
country_event = {
	id = axis_of_resistance_events.11 # Black Flag in Iraq
	is_triggered_only = yes
	hidden = yes

	immediate = {
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.11 executed"
		hidden_effect = {
			HEZ = {
				add_timed_idea = {
					idea = PER_Iraqi_army_weak
					days = 80
				}
				add_timed_idea = {
					idea = PER_Iraqi_army_weak_NTR
					days = 40
				}
			}
			IRQ = {
				add_timed_idea = {
					idea = PER_Iraqi_army_weak_NTR
					days = 80
				}
				#Need to make follow up event that spawns more units for them
				news_event = {
					id = iraqi_flavor_events.11
					hours = 1
				}
				set_political_party = {
					ideology = fascism
					popularity = 2
				}
				168 = { transfer_state_to = ISI }
				166 = { transfer_state_to = ISI }
				167 = { transfer_state_to = ISI }
				set_province_controller = 11369
				set_province_controller = 10106
				set_province_controller = 1938
				set_province_controller = 12372
				set_province_controller = 1631
				set_province_controller = 11191
				set_province_controller = 11199
				set_province_controller = 4951
				set_province_controller = 11292
				set_province_controller = 4951
				set_province_controller = 3265
				set_province_controller = 3180
				set_province_controller = 11198
				set_province_controller = 11196
			}
			ISI = {
				add_ideas = PER_iraqi_civil_war
				declare_war_on = {
					target = IRQ
					type = civil_war
				}
				declare_war_on = {
					target = MDA
					type = civil_war
				}
				declare_war_on = {
					target = IRS
					type = civil_war
				}
				IRQ = {
					every_core_state = { add_core_of = ISI }
				}
				clr_country_flag = dynamic_flag
				clr_country_flag = dynamic_rebel_flag
				set_country_flag = IRQ_badr_oponent
				set_country_flag = is_IRAQ
				mark_formed_country_formable = yes
				set_country_flag = IRQ_ISI_Spawn
				set_cosmetic_tag = IRQ_ISI
				retire_country_leader = yes
				if = {
					limit = {
						check_variable = { global.year < 2007 }
					}
					create_country_leader = {
						name = "Abu Musab Al-Zarqawi"
						picture = "Abu_Musab_Al-Zarqawi.dds"
						ideology = Caliphate
						traits = {
							salafist_Caliphate
							ruthless
							war_criminal
							guerrilla_leader
						}
					}
					set_cosmetic_tag = ISI_aiq_iraq
				}
				division_template = {
					name = "Liwa Muharraka"
					priority = 0
					regiments = {
						Militia_Bat = { x = 0 y = 0 }
						Militia_Bat = { x = 0 y = 1 }
						Militia_Bat = { x = 0 y = 2 }
						Arty_Bat = { x = 0 y = 3 }
						Militia_Bat = { x = 1 y = 0 }
						Militia_Bat = { x = 1 y = 1 }
						Militia_Bat = { x = 1 y = 2 }
						Arty_Bat = { x = 1 y = 3 }
						Militia_Bat = { x = 2 y = 0 }
						Militia_Bat = { x = 2 y = 1 }
						Militia_Bat = { x = 2 y = 2 }
						Arty_Bat = { x = 2 y = 3 }
					}
					support = {
						L_Recce_Comp = { x = 0 y = 0 }
						L_Engi_Comp = { x = 0 y = 1 }
						combat_service_support_company = { x = 0 y = 2 }
						Arty_Battery = { x = 0 y = 3 }
					}
				}
				division_template = {
					name = "Mechanized Division (Mechanized Division)"
					regiments = {
						Mech_Inf_Bat = { x = 0 y = 0 }
						Mech_Inf_Bat = { x = 0 y = 1 }
						Mech_Inf_Bat = { x = 0 y = 2 }
						Mech_Inf_Bat = { x = 0 y = 3 }
						Mech_Inf_Bat = { x = 1 y = 0 }
						Mech_Inf_Bat = { x = 1 y = 1 }
						Mech_Inf_Bat = { x = 1 y = 2 }
						L_arm_Bat = { x = 1 y = 3 }
						armor_Bat = { x = 2 y = 0 }
						armor_Bat = { x = 2 y = 1 }
						SP_Arty_Bat = { x = 3 y = 0 }
						SP_Arty_Bat = { x = 3 y = 1 }
						SP_Arty_Bat = { x = 3 y = 2 }
						Mech_Inf_Bat = { x = 3 y = 3 }
					}
					support = {
						SP_AA_Battery = { x = 0 y = 0 }
					}
				}
				division_template = {
					name = "Liwa Muharraka (Armored Division)"
					regiments = {
						armor_Bat = { x = 0 y = 0 }
						armor_Bat = { x = 0 y = 1 }
						armor_Bat = { x = 0 y = 2 }
						armor_Bat = { x = 1 y = 0 }
						armor_Bat = { x = 1 y = 1 }
						L_arm_Bat = { x = 1 y = 2 }
						Arm_Inf_Bat = { x = 2 y = 0 }
						Arm_Inf_Bat = { x = 2 y = 1 }
						Arm_Inf_Bat = { x = 2 y = 2 }
						Arm_Inf_Bat = { x = 2 y = 3 }
						SP_Arty_Bat = { x = 3 y = 0 }
						SP_Arty_Bat = { x = 3 y = 1 }
						SP_Arty_Bat = { x = 3 y = 2 }
						Mech_Inf_Bat = { x = 3 y = 3 }
					}
					support = {
						SP_AA_Battery = { x = 0 y = 0 }
					}
				}
				168 = {
					create_unit = {
						division = "name = \"1. Liwa Muharraka\" division_template = \"Liwa Muharraka\"start_manpower_factor = 0.7"
						prioritize_location = 11191
						owner = ISI
						count = 5
					}
					create_unit = {
						division = "name = \"3. Liwa Muharraka\" division_template = \"Liwa Muharraka (Armored Division)\"start_manpower_factor = 0.6"
						prioritize_location = 11275
						owner = ISI
						count = 2
					}
					create_unit = {
						division = "name = \"3. Liwa Muharraka\" division_template = \"Mechanized Division (Mechanized Division)\"start_manpower_factor = 0.2"
						prioritize_location = 11275
						owner = ISI
					}
					create_unit = {
						division = "name = \"3. Liwa Muharraka\" division_template = \"Mechanized Division (Mechanized Division)\"start_manpower_factor = 0.5"
						prioritize_location = 11275
						owner = ISI
					}
				}
				166 = {
					create_unit = {
						division = "name = \"7. Liwa Muharraka\" division_template = \"Liwa Muharraka (Armored Division)\"start_manpower_factor = 0.5"
						prioritize_location = 1938
						owner = ISI
						count = 2
					}
				}
				641 = {
					create_unit = {
						division = "name = \"10. Liwa Muharraka\" division_template = \"Liwa Muharraka\"start_manpower_factor = 0.3"
						prioritize_location = 10804
						owner = ISI
						count = 2
					}
				}
				167 = {
					create_unit = {
						division = "name = \"13. Liwa Muharraka\" division_template = \"Liwa Muharraka (Armored Division)\"start_manpower_factor = 0.5"
						prioritize_location = 8123
						owner = ISI
					}
					create_unit = {
						division = "name = \"13. Liwa Muharraka\" division_template = \"Mechanized Division (Mechanized Division)\"start_manpower_factor = 0.5"
						prioritize_location = 8123
						owner = ISI
						count = 2
					}
					create_unit = {
						division = "name = \"13. Liwa Muharraka\" division_template = \"Liwa Muharraka\"start_manpower_factor = 0.5"
						prioritize_location = 8123
						owner = ISI
						count = 2
					}
					create_unit = {
						division = "name = \"14. Liwa Muharraka\" division_template = \"Mechanized Division (Mechanized Division)\"start_manpower_factor = 0.5"
						prioritize_location = 3795
						owner = ISI
					}
				}
			}
		}
		if = {
			limit = {
				country_exists = IRS
			}
			IRQ = { country_event = axis_of_resistance_events.26 }
		}
	}
}
country_event = {
	id = axis_of_resistance_events.12 # Iraqi Baath Revolt
	is_triggered_only = yes
	hidden = yes

	immediate = {
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.12 executed"
		hidden_effect = {
			IRQ = {
				add_timed_idea = { idea = PER_Iraqi_army_weak days = 175 }
				news_event = { id = iraqi_flavor_events.13 hours = 1 }
				country_event = { id = axis_of_resistance_events.11 days = 24 random_hours = 12 random_days = 2 }
				add_ideas = PER_supply_fix
				start_civil_war = {
					ideology = nationalist
					size = IRQ_Support_for_baathist_revolt
					states = { 641 }
					set_cosmetic_tag = IRQ_JRTN
					set_country_flag = IRQ_sunni_revolt
					keep_political_leader = yes
					keep_political_party_members = yes
				}
				declare_war_on = { target = IRS type = civil_war }
				add_ideas = lacks_international_recognition
				random_country_with_original_tag = {
					original_tag_to_check = IRQ
					limit = { has_government = nationalist }
					set_politics = { ruling_party = nationalist elections_allowed = no }
					set_political_party = { ideology = nationalist popularity = 71 }
					set_political_party = { ideology = neutrality popularity = 13 }
					set_political_party = { ideology = fascism popularity = 18 }
					set_temp_variable = { party_index = 21 }
					set_temp_variable = { party_popularity_increase = 0.55 }
					change_relative_party_popularity = yes
					set_temp_variable = { party_index = 22 }
					set_temp_variable = { party_popularity_increase = 0.14 }
					change_relative_party_popularity = yes
					set_temp_variable = { party_index = 19 }
					set_temp_variable = { party_popularity_increase = 0.13 }
					change_relative_party_popularity = yes
					set_temp_variable = { party_index = 12 }
					set_temp_variable = { party_popularity_increase = 0.18 }
					change_relative_party_popularity = yes
					set_temp_variable = { rul_party_temp = 21 }
					change_ruling_party_effect = yes
					set_temp_variable = { add_col_one = 22 }
					add_coalition_members_effect = yes
					swap_ideas = { remove_idea = iranian_quds_force add_idea = the_military }
					swap_ideas = { remove_idea = shia add_idea = sunni }
					add_ideas = lacks_international_recognition
					add_named_threat = { threat = 5 name = IRQ_Iran_coup_civil_war.threat }
					clr_country_flag = dynamic_flag
					clr_country_flag = dynamic_rebel_flag
					set_country_flag = is_IRAQ
					mark_formed_country_formable = yes
					add_ideas = PER_iraqi_civil_war
					set_province_controller = 10793
					set_province_controller = 11498
					set_province_controller = 11364
					set_province_controller = 11295
					set_province_controller = 1600
					set_province_controller = 11289
					set_province_controller = 3219
					set_province_controller = 3795
					set_province_controller = 1350
					set_province_controller = 8123
					set_province_controller = 11295
					set_province_controller = 10106
					set_province_controller = 11369
					set_province_controller = 8123
					set_temp_variable = { percent_change = -5.00 }
					set_temp_variable = { tag_index = PER }
					set_temp_variable = { influence_target = IRQ }
					change_influence_percentage = yes
				}
			}
			IRS = {
				ingame_startup_nations_effect = yes
				create_country_leader = {
					name = "Izzat Ibrahim al-Douri"
					picture = "gfx/leaders/IRQ/Izzat_Ibrahim_al-Douri.dds"
					ideology = Nat_Fascism
					traits = {
						nationalist_Nat_Populism
						military_career
						anti_zionist
					}
				}
				#for some reason this has to work twice
				create_country_leader = {
					name = "Izzat Ibrahim al-Douri"
					picture = "gfx/leaders/IRQ/Izzat_Ibrahim_al-Douri.dds"
					ideology = Nat_Fascism
					traits = {
						nationalist_Nat_Populism
						military_career
						anti_zionist
					}
				}
			}
		}
	}
}
news_event = {
	id = axis_of_resistance_events.13 # Rise of Hamas
	title = axis_of_resistance_events.13.t
	desc = axis_of_resistance_events.13.d
	picture = GFX_News_western_focus_afg
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.13.o1 }
}
news_event = {
	id = axis_of_resistance_events.14 # Rise of PIJ
	title = axis_of_resistance_events.14.t
	desc = axis_of_resistance_events.14.d
	picture = GFX_PER_PAL_PIJ
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.14.o1 }
}
news_event = {
	id = axis_of_resistance_events.15 # Rise of PFLP
	title = axis_of_resistance_events.15.t
	desc = axis_of_resistance_events.15.d
	picture = GFX_PER_PAL_PLPF
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.15.o1 }
}
news_event = {
	id = axis_of_resistance_events.16 # Rise of PRC
	title = axis_of_resistance_events.16.t
	desc = axis_of_resistance_events.16.d
	picture = GFX_PER_PAL_PMC
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.16.o1 }
}

country_event = {
	id = axis_of_resistance_events.17 # Directions from Tehran
	title = axis_of_resistance_events.17.t
	desc = axis_of_resistance_events.17.d
	picture = GFX_axis_of_resistance_country
	is_triggered_only = yes

	option = { name = axis_of_resistance_events.17.a }
}

country_event = {
	id = axis_of_resistance_events.18 # Yemen Under Attack
	title = axis_of_resistance_events.18.t
	desc = axis_of_resistance_events.18.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = axis_of_resistance_events.18.a
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.18.a executed"
		add_relation_modifier = {
			target = YEM
			modifier = generic_increased_military_support
		}
	}
}

news_event = {
	id = axis_of_resistance_events.19 # Yemen Under Attack
	title = axis_of_resistance_events.19.t
	desc = axis_of_resistance_events.19.d
	picture = GFX_yemen_civilwar
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.19.a }
}

country_event = {
	id = axis_of_resistance_events.20 # Yemen Civil war Al-Qaeda
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = HOU
		country_exists = YEM
		HOU = { num_of_controlled_states > 0 }
		YEM = { num_of_controlled_states > 0 }
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.20 executed"
		hidden_effect = {
			if = {
				limit = {
					country_exists = HOU
					country_exists = YEM
					HOU = { num_of_controlled_states > 0 }
					YEM = { num_of_controlled_states > 0 }
				}
				YEM = {
					news_event = { id = axis_of_resistance_events.23 hours = 1 }
					199 = { transfer_state_to = AQY }
					1105 = { transfer_state_to = AQY }
					set_province_controller = 14569
					set_province_controller = 14570
					set_province_controller = 14566
					set_province_controller = 9217
					#set_province_controller = 1631
					every_core_state = { add_core_of = AQY }
				}
				AQY = {
					set_temp_variable = { nation_to_copy_from = YEM.id }
					setup_employment_variables = yes
					ingame_update_setup = yes
					add_equipment_to_stockpile = { type = APC_1 amount = 100 producer = SOV }
					add_equipment_to_stockpile = { type = cnc_equipment_1 amount = 400 producer = SOV }
					add_equipment_to_stockpile = { type = Heavy_Anti_tank_0 amount = 100 producer = SOV }
					add_equipment_to_stockpile = { type = infantry_weapons_1 amount = 2400 producer = SOV }
					add_equipment_to_stockpile = { type = util_vehicle_1 amount = 200 producer = SOV }
					add_manpower = 10000
					set_province_controller = 9144
					set_province_controller = 9197
					add_ideas = PER_Yemeni_civil_war
					set_global_flag = { flag = AQY_limited_war days = 450 value = 1 }
					add_named_threat = {
						threat = 5
						name = AQY_in_yemen
					}
					declare_war_on = { target = YEM type = civil_war }
					declare_war_on = { target = HOU type = civil_war }
					declare_war_on = { target = STC type = civil_war }
					clr_country_flag = dynamic_flag
					clr_country_flag = dynamic_rebel_flag
					if = {
						limit = {
							check_variable = { global.year < 2007 }
						}
						create_country_leader = {
							name = "Abu Musab Al-Zarqawi"
							picture = "gfx/leaders/AQY/AQY_qashim.dds"
							ideology = Caliphate
							traits = {
								salafist_Caliphate
								guerrilla_leader
							}
						}
					}
					division_template = {
						name = "al-Sharia Infantry"
						regiments = {
							Mot_Militia_Bat = { x = 0 y = 0 }
							Mot_Militia_Bat = { x = 0 y = 1 }
						}
						priority = 1
					}
					division_template = {
						name = "al-Sharia Insurgents"
						regiments = {
							Militia_Bat = { x = 0 y = 0 }
							Militia_Bat = { x = 0 y = 1 }
						}
						priority = 1
					}
				}
				199 = {
					create_unit = {
						division = "name = \"Al Mukalla al-Sharia Infantry\" division_template = \"al-Sharia Infantry\"start_manpower_factor = 0.1"
						owner = AQY
					}
					create_unit = {
						division = "name = \"Aboul Abbas Militia\" division_template = \"al-Sharia Infantry\"start_manpower_factor = 0.1"
						owner = AQY
					}
					create_unit = {
						division = "name = \"Tarim al-Sharia Infantry\" division_template = \"al-Sharia Infantry\"start_manpower_factor = 0.1"
						owner = AQY
					}
					create_unit = {
						division = "name = \"Mahrah al-Sharia Infantry\" division_template = \"al-Sharia Infantry\"start_manpower_factor = 0.1"
						owner = AQY
					}
					create_unit = {
						division = "name = \"Sheba al-Sharia Infantry\" division_template = \"al-Sharia Infantry\"start_manpower_factor = 0.1"
						owner = AQY
					}
				}
				196 = {
					create_unit = {
						division = "name = \"Ahwar al-Sharia Insurgents\" division_template = \"al-Sharia Insurgents\"start_manpower_factor = 0.1"
						owner = AQY
					}
					create_unit = {
						division = "name = \"Haduramaut al-Sharia Insurgents\" division_template = \"al-Sharia Insurgents\"start_manpower_factor = 0.1"
						owner = AQY
					}
				}
				1105 = { transfer_state_to = AQY }
			}
		}
	}
}

country_event = {
	id = axis_of_resistance_events.21 # Yemen STC
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = HOU
		country_exists = YEM
		HOU = { num_of_controlled_states > 0 }
		YEM = { num_of_controlled_states > 0 }
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.21 executed"
		hidden_effect = {
			YEM = {
				news_event = { id = axis_of_resistance_events.24 hours = 1 }
				start_civil_war = {
					ideology = neutrality
					size = 0.0
					states = { 198 200 }
					keep_political_leader = yes
					keep_political_party_members = yes
				}
				set_global_flag = YEM_STC_Tag
				add_ideas = lacks_international_recognition
				random_country_with_original_tag = {
					original_tag_to_check = YEM
					limit = { has_government = neutrality }
					set_politics = { ruling_party = neutrality elections_allowed = no }
					set_political_party = { ideology = neutrality popularity = 78 }
					set_political_party = { ideology = democratic popularity = 18 }
					set_political_party = { ideology = communism popularity = 4 }
					declare_war_on = { target = HOU type = civil_war }
					declare_war_on = { target = AQY type = civil_war }
					set_cosmetic_tag = YEM_REB
					set_variable = { dynamic_flag_variant = 6 }
					ingame_startup_nations_effect = yes
					set_country_flag = YEM_TAG_set_STC
					add_ideas = PER_Yemeni_civil_war
					set_temp_variable = { rul_party_temp = 13 }
					set_temp_variable = { disable_elections = 1 }
					change_ruling_party_effect = yes
					set_temp_variable = { party_index = 13 }
					set_temp_variable = { party_popularity_increase = 0.30 }
					change_relative_party_popularity = yes
					create_country_leader = {
						name = "Hadi al-Amiri"
						picture = "gfx/leaders/YEM/abd_rabbuh_mansur_hadi.dds"
						ideology = Neutral_Autocracy
						traits = {
							neutrality_Neutral_Autocracy
						}
					}
					add_threat = 2
					UAE = {
						recall_volunteers_from = YEM
						add_relation_modifier = {
							target = STC
							modifier = generic_increased_military_support
						}
					}
					set_temp_variable = { percent_change = 5.00 }
					set_temp_variable = { tag_index = UAE }
					set_temp_variable = { influence_target = STC }
					change_influence_percentage = yes
					200 = { transfer_state_to = STC }
					division_template = {
						name = "Southern Transitional Council Infantry"
						regiments = {
							Mot_Militia_Bat = { x = 0 y = 0 }
							Mot_Militia_Bat = { x = 0 y = 1 }
							Mot_Militia_Bat = { x = 0 y = 2 }
							Mot_Militia_Bat = { x = 1 y = 0 }
							Arty_Bat = { x = 1 y = 1 }
							SP_Arty_Bat = { x = 1 y = 2 }
						}
						support = {
							L_Engi_Comp = { x = 0 y = 0 }
							armor_Comp = { x = 0 y = 1 }
						}
						priority = 1
					}
					delete_unit = {
						division_template = "National Militia"
						disband = yes
					}
				}
				YEM = {
					if = {
						limit = { HOU = { NOT = { controls_province = 14560 } } }
						YEM = { set_province_controller = 14560 }
					}
					if = {
						limit = { HOU = { NOT = { controls_province = 14474 } } }
						YEM = { set_province_controller = 14474 }
					}
					if = {
						limit = { HOU = { NOT = { controls_province = 14556 } } }
						YEM = { set_province_controller = 14556 }
					}
					if = {
						limit = { HOU = { NOT = { controls_province = 9139 } } }
						YEM = { set_province_controller = 9139 }
					}
				}
				198 = {
					create_unit = {
						division = "name = \"Quwat al-Hizam al-Amni\" division_template = \"Southern Transitional Council Infantry\"start_manpower_factor = 0.1"
						owner = STC
					}
					create_unit = {
						division = "name = \"Al-Quwaat Al-‘Ilaam Al-Jayash\" division_template = \"Southern Transitional Council Infantry\"start_manpower_factor = 0.1"
						owner = STC
					}
					create_unit = {
						division = "name = \"Al-Mahra Brigade\" division_template = \"Southern Transitional Council Infantry\"start_manpower_factor = 0.1"
						owner = STC
					}
					create_unit = {
						division = "name = \"Shabwani Elite Forces\" division_template = \"Southern Transitional Council Infantry\"start_manpower_factor = 0.1"
						owner = STC
					}
					add_dynamic_modifier = {
						modifier = PER_yemen_defense_lands
						scope = STC
					}
				}
			}
		}
	}
}

news_event = {
	id = axis_of_resistance_events.22 # Houthi offensive
	title = axis_of_resistance_events.22.t
	desc = axis_of_resistance_events.22.d
	picture = GFX_YEM_news_event_rpg
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.22.o1 }
}

news_event = {
	id = axis_of_resistance_events.23 # Black Banner yemen
	title = axis_of_resistance_events.23.t
	desc = axis_of_resistance_events.23.d
	picture = GFX_AQY_eastern_rising
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.23.o1 }
}

news_event = {
	id = axis_of_resistance_events.24 # STC
	title = axis_of_resistance_events.24.t
	desc = axis_of_resistance_events.24.d
	picture = GFX_YEM_STC_news_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.24.o1 }
}

country_event = {
	id = axis_of_resistance_events.25 # Implode
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = IRQ
		IRQ = {
			has_country_flag = IRQ_badr_oponent
			num_of_controlled_states > 0
		}
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.25 executed"
		#Islamic Army In Iraq
		create_dynamic_country = {
			original_tag = IRQ
			set_country_flag = IRQ_Islamic_Army_in_Iraq
			copy_tag = IRQ
			transfer_state = 173
			set_country_flag = IRQ_Islamic_Army_in_Iraq
			set_cosmetic_tag = IRQ_Islamic_Army_in_Iraq
			clr_country_flag = dynamic_flag
			clr_country_flag = dynamic_rebel_flag
			set_country_flag = is_IRAQ
			mark_formed_country_formable = yes
			retire_country_leader = yes
			set_politics = { ruling_party = fascism elections_allowed = no }
			set_political_party = { ideology = nationalist popularity = 29 }
			set_political_party = { ideology = fascism popularity = 62 }
			set_political_party = { ideology = neutrality popularity = 9 }
			declare_war_on = { target = IRQ type = civil_war }
			declare_war_on = { target = IRS type = civil_war }
			declare_war_on = { target = MDA type = civil_war }
			declare_war_on = { target = UIQ type = civil_war }
			declare_war_on = { target = IRR type = civil_war }
			#set_province_controller = 3795
			news_event = axis_of_resistance_events.31
			start_politics_input = yes
			set_variable = { party_pop_array^10 = 0.47 } #Kingdom
			set_variable = { party_pop_array^13 = 0.06 } #Neutral_Autocracy
			set_variable = { party_pop_array^22 = 0.47 } #Nat_Autocracy
			set_variable = { ruling_party = 10 }
			startup_politics = yes
		}
		hidden_effect = {
			IAI = {
				set_country_flag = IRQ_Islamic_Army_in_Iraq
				set_cosmetic_tag = IRQ_Islamic_Army_in_Iraq
				set_province_controller = 3795
				declare_war_on = { target = IRQ type = civil_war }
				declare_war_on = { target = IRS type = civil_war }
				declare_war_on = { target = MDA type = civil_war }
				declare_war_on = { target = UIQ type = civil_war }
				declare_war_on = { target = IRR type = civil_war }
				declare_war_on = { target = ISI type = civil_war }
				declare_war_on = { target = NTR type = civil_war }
				declare_war_on = { target = HII type = civil_war }
				ingame_startup_nations_effect = yes
				add_ideas = {
					sunni
					non_state_actor
					corruption_level_05
					intervention_neo_imperialism
					defence_09
					edu_01
					health_01
					social_01
					police_05
					bureau_04
					police_05
					al_jazeera_banned
					youth_radicalization
					partial_draft_army
					no_women_in_military
					foreign_jihadis
					wahabi_ulema
					the_ulema
					officer_basic_training
				}
			}
			ISI = {
				set_province_controller = 1350
				set_province_controller = 1600
				set_province_controller = 11289
				if = {
					limit = {
						has_cosmetic_tag = ISI_aiq_iraq
					}
					retire_country_leader = yes
					set_variable = { Caliphate_leader = 0 }
					create_country_leader = {
						name = "Abu Musab Al-Zarqawi"
						picture = "Abu_Musab_Al-Zarqawi.dds"
						ideology = Caliphate
						traits = {
							salafist_Caliphate
							ruthless
							war_criminal
							guerrilla_leader
						}
					}
				}
				else = {
					retire_country_leader = yes
					set_variable = { Caliphate_leader = 1 }
				}
			}
		}
	}
}

country_event = {
	id = axis_of_resistance_events.26 #1920 Revolution Brigades
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = IRQ
		IRQ = { num_of_controlled_states > 0 }
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]:axis_of_resistance_events.26 executed"
		news_event = {
			id = axis_of_resistance_events.28
			hours = 3
		}
		# 1920 Revolution Brigades
		create_dynamic_country = {
			original_tag = ISI
			set_country_flag = IRQ_1920_revolution_brigades
			copy_tag = ISI
			declare_war_on = { target = IRQ type = civil_war }
			declare_war_on = { target = IRS type = civil_war }
			declare_war_on = { target = MDA type = civil_war }
			declare_war_on = { target = UIQ type = civil_war }
			declare_war_on = { target = IRR type = civil_war }
			declare_war_on = { target = ISI type = civil_war }
			declare_war_on = { target = IAI type = civil_war }
			set_country_flag = IRQ_1920_revolution_brigades
			set_cosmetic_tag = IRQ_1920_revolution_brigades
			clr_country_flag = dynamic_flag
			clr_country_flag = dynamic_rebel_flag
			set_country_flag = is_IRAQ
			mark_formed_country_formable = yes
			retire_country_leader = yes
			set_politics = { ruling_party = neutrality elections_allowed = no }
			set_political_party = { ideology = nationalist popularity = 6 }
			set_political_party = { ideology = neutrality popularity = 67 }
			set_political_party = { ideology = fascism popularity = 27 }
			set_political_party = { ideology = democratic popularity = -100 }
			set_political_party = { ideology = communism popularity = -100 }
			start_politics_input = yes
			set_variable = { party_pop_array^10 = 0.67 } #Kingdom
			set_variable = { party_pop_array^13 = 0.06 } #Neutral_Autocracy
			set_variable = { party_pop_array^22 = 0.27 } #Nat_Autocracy
			set_variable = { ruling_party = 12 }
			startup_politics = yes
			create_country_leader = {
				name = "Aswad Kamil Al-Falahi"
				picture = "gfx/leaders/IRQ/NTR_Aswad_Kamil_AlFalahi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					guerrilla_leader
				}
			}
		}
		NTR = {
			add_ideas = lacks_international_recognition
			IRS = {
				set_province_controller = 8123
				set_province_controller = 11292
				set_province_controller = 1938
				set_province_controller = 10106
				set_province_controller = 11369
			}
			ISI = {
				168 = { transfer_state_to = ISI }
				166 = { transfer_state_to = ISI }
				set_province_controller = 11369
				set_province_controller = 10106
				set_province_controller = 1938
				set_province_controller = 12372
				set_province_controller = 1631
				set_province_controller = 11191
				set_province_controller = 11199
				set_province_controller = 4951
				set_province_controller = 11292
				set_province_controller = 4951
				set_province_controller = 3265
				set_province_controller = 3180
				set_province_controller = 11198
				set_province_controller = 11196
				set_province_controller = 2097
				set_province_controller = 6229
				set_province_controller = 10793
				set_province_controller = 12372
				set_province_controller = 3265
				set_province_controller = 3265
				set_province_controller = 3272
				set_province_controller = 12046
				set_province_controller = 11275
			}
			168 = { transfer_state_to = NTR }
			IRQ = {
				every_core_state = { add_core_of = NTR }
				set_province_controller = 11191
				set_province_controller = 4951
				set_province_controller = 11199
				set_province_controller = 1631
				set_province_controller = 3265
				set_province_controller = 3180
				set_province_controller = 11198
				set_province_controller = 3221
				set_province_controller = 11196
			}
			set_province_controller = 11201
			set_province_controller = 12413
			declare_war_on = { target = IRQ type = civil_war }
			declare_war_on = { target = IRS type = civil_war }
			declare_war_on = { target = MDA type = civil_war }
			declare_war_on = { target = UIQ type = civil_war }
			declare_war_on = { target = IRR type = civil_war }
			declare_war_on = { target = ISI type = civil_war }
			declare_war_on = { target = IAI type = civil_war }
			declare_war_on = { target = IRS type = civil_war }
			set_cosmetic_tag = IRQ_1920_revolution_brigades
			ingame_startup_nations_effect = yes
			add_ideas = {
				PER_iraqi_civil_war
				sunni
				corruption_level_05
				intervention_neo_imperialism
				defence_09
				edu_01
				health_01
				social_01
				police_05
				bureau_04
				police_05
				al_jazeera_banned
				youth_radicalization
				partial_draft_army
				no_women_in_military
				foreign_jihadis
				wahabi_ulema
				the_ulema
				officer_basic_training
			}
			set_country_flag = IRQ_1920_revolution_brigades
			set_cosmetic_tag = IRQ_1920_revolution_brigades
			clr_country_flag = dynamic_flag
			clr_country_flag = dynamic_rebel_flag
			set_country_flag = is_IRAQ
			mark_formed_country_formable = yes
			retire_country_leader = yes
			set_politics = { ruling_party = neutrality elections_allowed = no }
			set_political_party = { ideology = nationalist popularity = 7 }
			set_political_party = { ideology = neutrality popularity = 67 }
			set_political_party = { ideology = fascism popularity = 27 }
			set_political_party = { ideology = communism popularity = -100 }
			start_politics_input = yes
			set_variable = { party_pop_array^10 = 0.67 } #Kingdom
			set_variable = { party_pop_array^13 = 0.06 } #Neutral_Autocracy
			set_variable = { party_pop_array^22 = 0.27 } #Nat_Autocracy
			delete_unit = { division_template = "National Militia" disband = yes }
			set_variable = { ruling_party = 12 }
			set_variable = { party_pop_array^12 = 0.67 } #Kingdom
			startup_politics = yes
			set_political_party = { ideology = communism popularity = -100 }
			create_country_leader = {
				name = "Ahmed Abdel Aziz al-Saadoun"
				picture = "gfx/leaders/IRQ/NTR_Aswad_Kamil_AlFalahi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
					guerrilla_leader
				}
			}
			set_political_party = { ideology = communism popularity = -100 }
			division_template = {
				name = "1920 Brigades (Mechanized Division)"
				regiments = {
					Mech_Inf_Bat = { x = 0 y = 0 }
					Mech_Inf_Bat = { x = 0 y = 1 }
					Mech_Inf_Bat = { x = 0 y = 2 }
					Mech_Inf_Bat = { x = 0 y = 3 }
					Mech_Inf_Bat = { x = 1 y = 0 }
					Mech_Inf_Bat = { x = 1 y = 1 }
					Mech_Inf_Bat = { x = 1 y = 2 }
					L_arm_Bat = { x = 1 y = 3 }
					armor_Bat = { x = 2 y = 0 }
					armor_Bat = { x = 2 y = 1 }
					SP_Arty_Bat = { x = 3 y = 0 }
					SP_Arty_Bat = { x = 3 y = 1 }
					SP_Arty_Bat = { x = 3 y = 2 }
					Mech_Inf_Bat = { x = 3 y = 3 }
				}
				support = {
					SP_AA_Battery = { x = 0 y = 0 }
				}
			}
			division_template = {
				name = "1920 Revolution Brigades"
				priority = 0
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					Special_Forces = { x = 0 y = 1 }
					Special_Forces = { x = 0 y = 2 }
					Special_Forces = { x = 0 y = 3 }
					Special_Forces = { x = 0 y = 4 }
					L_Inf_Bat = { x = 1 y = 0 }
					L_Inf_Bat = { x = 1 y = 1 }
					L_Inf_Bat = { x = 1 y = 2 }
					L_Inf_Bat = { x = 1 y = 3 }
					L_Inf_Bat = { x = 1 y = 4 }
					Arm_Inf_Bat = { x = 2 y = 0 }
					Arm_Inf_Bat = { x = 2 y = 1 }
					Arm_Inf_Bat = { x = 2 y = 2 }
					Arm_Inf_Bat = { x = 2 y = 3 }
					Arm_Inf_Bat = { x = 2 y = 4 }
					Mot_Inf_Bat = { x = 3 y = 0 }
					Mot_Inf_Bat = { x = 3 y = 1 }
					Mot_Inf_Bat = { x = 3 y = 2 }
					Mot_Inf_Bat = { x = 3 y = 3 }
					Mot_Inf_Bat = { x = 3 y = 4 }
				}
				support = {
					L_Recce_Comp = { x = 0 y = 0 }
					L_Engi_Comp = { x = 0 y = 1 }
					combat_service_support_company = { x = 0 y = 2 }
					Arty_Battery = { x = 0 y = 3 }
				}
			}
			division_template = {
				name = "Islamic Conquest"
				priority = 0
				regiments = {
					Militia_Bat = { x = 0 y = 0 }
					Militia_Bat = { x = 0 y = 1 }
					Militia_Bat = { x = 0 y = 2 }
					Arty_Bat = { x = 0 y = 3 }
					Militia_Bat = { x = 1 y = 0 }
					Militia_Bat = { x = 1 y = 1 }
					Militia_Bat = { x = 1 y = 2 }
					Arty_Bat = { x = 1 y = 3 }
					Militia_Bat = { x = 2 y = 0 }
					Militia_Bat = { x = 2 y = 1 }
					Militia_Bat = { x = 2 y = 2 }
					Arty_Bat = { x = 2 y = 3 }
				}
				support = {
					L_Recce_Comp = { x = 0 y = 0 }
					L_Engi_Comp = { x = 0 y = 1 }
					combat_service_support_company = { x = 0 y = 2 }
					Arty_Battery = { x = 0 y = 3 }
				}
			}
			168 = {
				create_unit = {
					division = "name = \"Islamic Conquest\" division_template = \"Islamic Conquest\"start_manpower_factor = 0.9"
					prioritize_location = 12313
					owner = NTR
					count = 5
				}
				create_unit = {
					division = "name = \"Islamic Jihad (Mechanized)\" division_template = \"1920 Brigades (Mechanized Division)\"start_manpower_factor = 0.9"
					prioritize_location = 12313
					owner = NTR
					count = 3
				}
				create_unit = {
					division = "name = \"Islamic Jihad\" division_template = \"1920 Revolution Brigades\"start_manpower_factor = 0.8"
					prioritize_location = 11201
					owner = NTR
					count = 3
				}
			}
			set_temp_variable = { percent_change = 2.00 }
			set_temp_variable = { tag_index = SAU }
			change_influence_percentage = yes
			set_temp_variable = { percent_change = 10.00 }
			set_temp_variable = { tag_index = IRQ }
			change_influence_percentage = yes
			ISI = {
				if = {
					limit = {
						has_cosmetic_tag = ISI_aiq_iraq
					}
					retire_country_leader = yes
					set_variable = { Caliphate_leader = 0 }
					create_country_leader = {
						name = "Abu Musab Al-Zarqawi"
						picture = "Abu_Musab_Al-Zarqawi.dds"
						ideology = Caliphate
						traits = {
							salafist_Caliphate
							ruthless
							war_criminal
							guerrilla_leader
						}
					}
				}
				else = {
					retire_country_leader = yes
					set_variable = { Caliphate_leader = 1 }
				}
			}
		}
	}
}

country_event = {
	id = axis_of_resistance_events.27 # IAQ
	is_triggered_only = yes
	hidden = yes
	fire_only_once = yes

	immediate = {
		log = "[GetDateText]: [This.GetName]: axis_of_resistance_events.27 executed"
		create_dynamic_country = {
			original_tag = ISI
			set_country_flag = IRQ_hamas_of_iraq
			copy_tag = ISI
			set_country_flag = IRQ_hamas_of_iraq
			set_cosmetic_tag = IRQ_hamas_of_iraq
			clr_country_flag = dynamic_flag
			clr_country_flag = dynamic_rebel_flag
			set_country_flag = is_IRAQ
			mark_formed_country_formable = yes
			retire_country_leader = yes
			news_event = {
				id = axis_of_resistance_events.30
				hours = 1
			}
			NTR = {
				drop_cosmetic_tag = yes
				clear_variable = dynamic_flag_variant
				set_cosmetic_tag = IRQ_1920_revolution_brigades_post
				set_politics = { ruling_party = fascism elections_allowed = no }
				set_political_party = { ideology = nationalist popularity = 6 }
				set_political_party = { ideology = fascism popularity = 67 }
				set_political_party = { ideology = neutrality popularity = 27 }
				random_controlled_state = {
					limit = {
						NOT = {
							state = 168
						}
					}
					prioritize = { 641 166 167 557 1143 11248 14952 }
					set_state_controller_to = HII
					set_state_owner_to = HII
				}
				ingame_startup_nations_effect = yes
				delete_unit = { division_template = "Islamic Conquest" disband = yes }
				set_variable = { ruling_party = 10 }
				set_variable = { party_pop_array^10 = 0.67 } #Kingdom
				startup_politics = yes
				retire_ideology_leader = fascism
				create_country_leader = {
					name = "Aswad Kamil Al-Falahi"
					picture = "gfx/leaders/IRQ/IRQ_Aswad_Kamil_Al_Falahi.dds"
					ideology = Kingdom
					traits = {
						guerrilla_leader
					}
				}
				create_country_leader = {
					name = "Aswad Kamil Al-Falahi"
					picture = "gfx/leaders/IRQ/IRQ_Aswad_Kamil_Al_Falahi.dds"
					ideology = Caliphate
					traits = {
						guerrilla_leader
					}
				}
			}
			ISI = {
				if = {
					limit = {
						has_cosmetic_tag = ISI_aiq_iraq
					}
					retire_country_leader = yes
					set_variable = { Caliphate_leader = 0 }
					create_country_leader = {
						name = "Abu Musab Al-Zarqawi"
						picture = "Abu_Musab_Al-Zarqawi.dds"
						ideology = Caliphate
						traits = {
							salafist_Caliphate
							ruthless
							war_criminal
							guerrilla_leader
						}
					}
				}
				else = {
					retire_country_leader = yes
					set_variable = { Caliphate_leader = 1 }
				}
			}
			set_politics = { ruling_party = nationalist elections_allowed = no }
			set_political_party = { ideology = nationalist popularity = 62 }
			set_political_party = { ideology = fascism popularity = 29 }
			set_political_party = { ideology = neutrality popularity = 9 }
			declare_war_on = { target = IRQ type = civil_war }
			declare_war_on = { target = IRS type = civil_war }
			declare_war_on = { target = MDA type = civil_war }
			declare_war_on = { target = UIQ type = civil_war }
			declare_war_on = { target = IRR type = civil_war }
			declare_war_on = { target = NTR type = civil_war }
			declare_war_on = { target = ISI type = civil_war }
			declare_war_on = { target = IAI type = civil_war }
			declare_war_on = { target = ATC type = civil_war }
		}
		HII = {
			add_ideas = {
				PER_iraqi_civil_war
				sunni
				corruption_level_05
				intervention_neo_imperialism
				defence_09
				edu_01
				health_01
				social_01
				police_05
				bureau_04
				police_05
				al_jazeera_banned
				youth_radicalization
				partial_draft_army
				no_women_in_military
				foreign_jihadis
				wahabi_ulema
				the_ulema
				officer_basic_training
			}
			ingame_startup_nations_effect = yes
			set_cosmetic_tag = IRQ_hamas_of_iraq
			set_country_flag = IRQ_hamas_of_iraq
			delete_unit_template_and_units = {
				division_template = "National Militia"
				disband = no
			}
			delete_unit_template_and_units = {
				division_template = "National Militia 1"
				disband = no
			}
			delete_unit_template_and_units = {
				division_template = "National Militia 2"
				disband = no
			}
			delete_unit_template_and_units = {
				division_template = "National Militia 3"
				disband = no
			}
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}
			set_political_party = {
				ideology = neutrality
				popularity = 78
			}
			set_political_party = {
				ideology = fascism
				popularity = 18
			}
			set_political_party = {
				ideology = democratic
				popularity = 4
			}
			division_template = {
				name = "Islamic Conquest"
				priority = 0
				regiments = {
					Militia_Bat = { x = 0 y = 0 }
					Militia_Bat = { x = 0 y = 1 }
					Militia_Bat = { x = 0 y = 2 }
					Arty_Bat = { x = 0 y = 3 }
					Militia_Bat = { x = 1 y = 0 }
					Militia_Bat = { x = 1 y = 1 }
					Militia_Bat = { x = 1 y = 2 }
					Arty_Bat = { x = 1 y = 3 }
					Militia_Bat = { x = 2 y = 0 }
					Militia_Bat = { x = 2 y = 1 }
					Militia_Bat = { x = 2 y = 2 }
					Arty_Bat = { x = 2 y = 3 }
				}
				support = {
					L_Recce_Comp = { x = 0 y = 0 }
					L_Engi_Comp = { x = 0 y = 1 }
					combat_service_support_company = { x = 0 y = 2 }
					Arty_Battery = { x = 0 y = 3 }
				}
			}
			capital_scope = {
				create_unit = {
					division = "name = \"Islamic Conquest\" division_template = \"Islamic Conquest\"start_manpower_factor = 0.5"
					owner = HII
					count = 4
				}
			}
			set_variable = { ruling_party = 12 }
			startup_politics = yes
			create_country_leader = {
				name = "Ahmed Abdel Aziz al-Saadoun"
				picture = "gfx/leaders/IRQ/NTR_Aswad_Kamil_AlFalahi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}
			set_temp_variable = { party_index = 12 }
			set_temp_variable = { party_popularity_increase = 0.30 }
			change_relative_party_popularity = yes
			set_temp_variable = { party_index = 0 }
			set_temp_variable = { party_popularity_increase = 0.23 }
			change_relative_party_popularity = yes
			set_temp_variable = { party_index = 10 }
			set_temp_variable = { party_popularity_increase = 0.25 }
			change_relative_party_popularity = yes
			HAM = {
				add_relation_modifier = {
					target = HAM
					modifier = generic_increased_military_support
				}
			}
			set_temp_variable = { percent_change = 15.00 }
			set_temp_variable = { tag_index = NTR }
			change_influence_percentage = yes
			set_temp_variable = { percent_change = 10.00 }
			set_temp_variable = { tag_index = SYR }
			change_influence_percentage = yes
			set_temp_variable = { percent_change = 5.00 }
			set_temp_variable = { tag_index = USA }
			change_influence_percentage = yes
			set_temp_variable = { percent_change = 4.00 }
			set_temp_variable = { tag_index = HAM }
			change_influence_percentage = yes
			ISI = {
				retire_country_leader = yes
				set_variable = { Caliphate_leader = 0 }
				create_country_leader = {
					name = "Abu Bakr al-Baghdadi"
					picture = "Abu_Bakr_al-Baghdadi.dds"
					expire = "2050.1.1"
					ideology = Caliphate
					traits = {
						guerrilla_leader
						salafist_Caliphate
						qureshi
						zealous
						ruthless
						war_criminal
					}
				}
			}
		}
	}
}

news_event = {
	id = axis_of_resistance_events.28 # #1920 News event
	title = axis_of_resistance_events.28.t
	desc = axis_of_resistance_events.28.d
	picture = GFX_IRQ_Rebal_generic
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.28.o1 }
}

country_event = {
	id = axis_of_resistance_events.29 # Anbar Tribal Council
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = ISI
		ISI = {
			num_of_controlled_states > 0
			NOT = { has_country_flag = IRQ_anbar_tribal_council_trigger }
		}
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]: axis_of_resistance_events.29 executed"
		news_event = {
			id = axis_of_resistance_events.32
			hours = 3
		}
		#Anbar_Tribal_Council
		create_dynamic_country = {
			original_tag = ISI
			set_country_flag = IRQ_Anbar_Tribal_Council
			copy_tag = IRQ
			set_country_flag = IRQ_Anbar_Tribal_Council
			set_cosmetic_tag = IRQ_Anbar_Tribal_Council
			clr_country_flag = dynamic_flag
			clr_country_flag = dynamic_rebel_flag
			set_country_flag = is_IRAQ
			mark_formed_country_formable = yes
			retire_country_leader = yes
			ingame_startup_nations_effect = yes
			set_politics = { ruling_party = neutrality elections_allowed = no }
			set_political_party = { ideology = neutrality popularity = 59 }
			set_political_party = { ideology = nationalist popularity = 29 }
			set_political_party = { ideology = fascism popularity = 12 }
			start_politics_input = yes
			set_variable = { party_pop_array^10 = 0.10 } #Kingdom
			set_variable = { party_pop_array^12 = 0.47 } #Neutral_Muslim_Brotherhood
			set_variable = { party_pop_array^13 = 0.06 } #Neutral_Autocracy
			set_variable = { party_pop_array^22 = 0.37 } #Nat_Autocracy
			set_variable = { ruling_party = 12 }
			startup_politics = yes
			create_country_leader = {
				name = "Ali Hatem al-Suleiman"
				picture = "gfx/leaders/IRQ/Ali_Hatem_al_Suleiman.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}
			transfer_state = 557
			set_province_controller = 3265
			ISI = { set_province_controller = 2097 }
			IRQ = { set_province_controller = 3269 }
			add_ideas = {
				PER_iraqi_civil_war
				sunni
				non_state_actor
				corruption_level_05
				intervention_neo_imperialism
				defence_09
				edu_01
				health_01
				social_01
				police_05
				bureau_04
				police_05
				al_jazeera_banned
				youth_radicalization
				partial_draft_army
				no_women_in_military
				foreign_jihadis
				wahabi_ulema
				the_ulema
				officer_basic_training
			}
			if = {
				limit = { country_exists = IRQ }
				declare_war_on = { target = IRQ type = civil_war }
			}
			if = {
				limit = { country_exists = IRS }
				declare_war_on = { target = IRS type = civil_war }
			}
			if = {
				limit = { country_exists = MDA }
				declare_war_on = { target = MDA type = civil_war }
			}
			if = {
				limit = { country_exists = UIQ }
				declare_war_on = { target = UIQ type = civil_war }
			}
			if = {
				limit = { country_exists = IRR }
				declare_war_on = { target = IRR type = civil_war }
			}
			if = {
				limit = { country_exists = NTR }
				declare_war_on = { target = NTR type = civil_war }
			}
			if = {
				limit = { country_exists = ISI }
				declare_war_on = { target = ISI type = civil_war }
			}
			if = {
				limit = { country_exists = IAI }
				declare_war_on = { target = IAI type = civil_war }
			}
			if = {
				limit = { country_exists = HII }
				declare_war_on = { target = HII type = civil_war }
			}
			ISI = {
				retire_country_leader = yes
				set_variable = { Caliphate_leader = 0 }
				create_country_leader = {
					name = "Abu Bakr al-Baghdadi"
					picture = "Abu_Bakr_al-Baghdadi.dds"
					expire = "2050.1.1"
					ideology = Caliphate
					traits = {
						guerrilla_leader
						salafist_Caliphate
						qureshi
						zealous
						ruthless
						war_criminal
					}
				}
			}
		}
	}
}

news_event = {
	id = axis_of_resistance_events.30 #Hamas In Iraq News Events
	title = axis_of_resistance_events.30.t
	desc = axis_of_resistance_events.30.d
	picture = GFX_IRQ_hamas_of_iraq
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.30.o1 }
}

news_event = {
	id = axis_of_resistance_events.31 #IAI Iraq
	title = axis_of_resistance_events.31.t
	desc = axis_of_resistance_events.31.d
	picture = GFX_IAI_IRQ_event_news
	is_triggered_only = yes
	major = yes

	option = {
		name = axis_of_resistance_events.31.o1
		log = "[GetDateText]: [This.GetName]: axis_of_resistance_events.31.o1 executed"
		IAI = {
			create_country_leader = {
				name = "Ahmed al-Dabash"
				picture = "gfx/leaders/IRQ/IAI_Ahmed_al_Dabash.dds"
				ideology = Kingdom
				traits = {
					guerrilla_leader
				}
			}
		}
	}
}

news_event = {
	id = axis_of_resistance_events.32 #Anbar Tribal Council
	title = axis_of_resistance_events.32.t
	desc = axis_of_resistance_events.32.d
	picture = GFX_IRQ_tribal_forces
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.32.o1 }
}

news_event = {
	id = axis_of_resistance_events.33 #End to the war
	title = axis_of_resistance_events.33.t
	desc = axis_of_resistance_events.33.d
	picture = GFX_news_afghanistan_afghan_troops
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.33.o1 }
}

country_event = { #1920, Naqshbandi Order can form this. - GMCIR #
	id = axis_of_resistance_events.35
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = NTR
		country_exists = IRS
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]: axis_of_resistance_events.35 executed"
		news_event = {
			id = axis_of_resistance_events.36
			hours = 5
		}
		if = {
			limit = {
				fighting_army_strength_ratio = {
					tag = IRS
					ratio > 0.5
				}
			}
			set_global_flag = NTR_IRS_stop_fighting
			NTR = {
				clr_country_flag = IRQ_1920_revolution_brigades
				set_cosmetic_tag = IRQ_GMCIR
				set_country_flag = IRQ_GMCIR
				annex_country = {
					target = IRS
					transfer_troops = yes
				}
				set_variable = { party_pop_array^21 = 1.00 } #Nat_Fascism
				set_politics = { ruling_party = nationalist elections_allowed = no }
				set_political_party = { ideology = nationalist popularity = 100 }
				set_political_party = { ideology = neutrality popularity = 45 }
				set_political_party = { ideology = fascism popularity = 12 }
				startup_politics = yes
				set_temp_variable = { rul_party_temp = 21 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
				create_country_leader = {
					name = "Muzhir al-Qaisi"
					picture = "gfx/leaders/IRQ/IRQ_Muzhir_alQaisi.dds"
					ideology = Nat_Fascism
					traits = {
						nationalist_Nat_Populism
						military_career
						anti_zionist
					}
				}
			}
		}
		else = {
			IRS = {
				clr_country_flag = IRQ_1920_revolution_brigades
				set_cosmetic_tag = IRQ_GMCIR
				set_country_flag = IRQ_GMCIR
				annex_country = {
					target = NTR
					transfer_troops = yes
				}
				set_variable = { party_pop_array^21 = 1.00 } #Nat_Fascism
				set_politics = { ruling_party = nationalist elections_allowed = no }
				set_political_party = { ideology = nationalist popularity = 100 }
				set_political_party = { ideology = neutrality popularity = 45 }
				set_political_party = { ideology = fascism popularity = 12 }
				set_variable = { ruling_party = 21 }
				startup_politics = yes
				random_list = {
					50 = {
						create_country_leader = {
							name = "Muzhir al-Qaisi"
							picture = "gfx/leaders/IRQ/IRQ_Muzhir_alQaisi.dds"
							ideology = Nat_Fascism
							traits = {
								nationalist_Nat_Populism
								military_career
								anti_zionist
							}
						}
					}
					50 = {
						create_country_leader = {
							name = "Izzat Ibrahim al-Douri"
							picture = "gfx/leaders/IRQ/Izzat_Ibrahim_al-Douri.dds"
							ideology = Nat_Fascism
							traits = {
								nationalist_Nat_Populism
								military_career
								anti_zionist
							}
						}
					}
				}
			}
		}
	}
}

news_event = { #1920, Naqshbandi Order can form this. News
	id = axis_of_resistance_events.36
	title = axis_of_resistance_events.36.t
	desc = axis_of_resistance_events.36.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.36.o1 }
}

country_event = { #Hamas In Iraq Coup
	id = axis_of_resistance_events.37
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = NTR
		NOT = { country_exists = HII }
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]: axis_of_resistance_events.37 executed"
		set_global_flag = IRQ_hamas_of_iraq
		clr_country_flag = IRQ_1920_revolution_brigades
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_country_flag = IRQ_hamas_of_iraq
		set_cosmetic_tag = IRQ_hamas_of_iraq
		news_event = {
			id = axis_of_resistance_events.38
			hours = 5
		}
	}
}

news_event = { #Hamas Coup News Event
	id = axis_of_resistance_events.38
	title = axis_of_resistance_events.38.t
	desc = axis_of_resistance_events.38.d
	picture = GFX_news_afghanistan_afghan_troops
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.38.o1 }
}

country_event = { #Al-Awda Coup
	id = axis_of_resistance_events.39
	is_triggered_only = yes
	hidden = yes

	trigger = {
		country_exists = NTR
		NOT = {
			OR = {
				country_exists = HII
				has_global_flag = IRQ_hamas_of_iraq
			}
		}
	}

	immediate = {
		log = "[GetDateText]: [This.GetName]: axis_of_resistance_events.39 executed"
		set_global_flag = IRQ_hamas_of_iraq
		clr_country_flag = IRQ_1920_revolution_brigades
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_country_flag = IRQ_AlAwda
		set_cosmetic_tag = IRQ_AlAwda
		set_politics = { ruling_party = Communism elections_allowed = no }
		set_political_party = { ideology = Communism popularity = 28 }
		set_political_party = { ideology = nationalist popularity = 26 }
		set_political_party = { ideology = neutrality popularity = 29 }
		set_political_party = { ideology = fascism popularity = 12 }
		start_politics_input = yes
		set_variable = { party_pop_array^7 = 1 } #Nat_Autocrac
		set_variable = { ruling_party = 7 }
		startup_politics = yes
		create_country_leader = {
			name = "Younis al-Ahmed"
			picture = "gfx/leaders/IRQ/IRQ_muhammad_yunis_al_ahmad.dds"
			ideology = Autocracy
			traits = {
				emerging_Autocracy
			}
		}
		news_event = {
			id = axis_of_resistance_events.40
			hours = 5
		}
	}
}

news_event = { #Al-Awda Coup News Event
	id = axis_of_resistance_events.40
	title = axis_of_resistance_events.40.t
	desc = axis_of_resistance_events.40.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.40.o1 }
}

news_event = { #vic gmc
	id = axis_of_resistance_events.41
	title = axis_of_resistance_events.41.t
	desc = axis_of_resistance_events.41.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.41.o1 }
}

news_event = { #vic IAI
	id = axis_of_resistance_events.42
	title = axis_of_resistance_events.42.t
	desc = axis_of_resistance_events.42.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.42.o1 }
}

news_event = { #vic Hamas
	id = axis_of_resistance_events.43
	title = axis_of_resistance_events.43.t
	desc = axis_of_resistance_events.43.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.43.o1 }
}

news_event = { #vic 1920 RB
	id = axis_of_resistance_events.44
	title = axis_of_resistance_events.44.t
	desc = axis_of_resistance_events.44.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.44.o1 }
}

news_event = { #vic al-Awda
	id = axis_of_resistance_events.45
	title = axis_of_resistance_events.45.t
	desc = axis_of_resistance_events.45.d
	picture = GFX_IRQ_1910_News_event
	is_triggered_only = yes
	major = yes

	option = { name = axis_of_resistance_events.45.o1 }
}

# Regular Events

country_event = {
	id = iranian_focus.1000
	title = iranian_focus.1000.t
	desc = iranian_focus.1000.d
	picture = GFX_report_event_Sicily_Farms
	is_triggered_only = yes

	option = {
		name = iranian_focus.1000.o1
		log = "[GetDateText]: [This.GetName]:iranian_focus.1000.o1 executed"
		ai_chance = { base = 9 }
		set_temp_variable = { treasury_change = -1.0 }
		modify_treasury_effect = yes
		add_timed_idea = {
			idea = PER_international_expo_1 days = 365
		}
	}

	option = {
		name = iranian_focus.1000.o2
		log = "[GetDateText]: [This.GetName]:iranian_focus.1000.o2 executed"
		set_temp_variable = { treasury_change = -1.0 }
		modify_treasury_effect = yes
		add_timed_idea = {
			idea = PER_international_expo_2 days = 365
			}
	}

	option = {
	name = iranian_focus.1000.o3
		log = "[GetDateText]: [This.GetName]:iranian_focus.1000.o3 executed"
		set_temp_variable = { treasury_change = -1.0 }
		modify_treasury_effect = yes
		add_timed_idea = {
			idea = PER_international_expo_3 days = 365
		}
	}
}

# New PM
country_event = {
	id = PER_majlis.401
	title = PER_majlis.401.t
	desc = PER_majlis.401.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = PER_majlis.401.a
		log = "[GetDateText]: [This.GetName]:PER_majlis.401.a executed"
		if = {
			limit = { NOT = { has_country_flag = PER_iranian_minister_given } }
			set_country_flag = PER_iranian_minister_given
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = PER_majlis.401.b
		trigger = { has_country_flag = PER_iranian_minister_given }
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = PER_majlis.1
	title = PER_majlis.1.t
	desc = PER_majlis.1.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.1.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.1.a executed"
		PER_majlis_elections = yes
		if = {
			limit = { has_country_flag = PER_stop_elections }
			clr_country_flag = PER_stop_elections
		}
		if = {
			limit = {
				emerging_hardline_shiite_are_in_power = no
				emerging_moderate_shiite_are_in_power = no
			}
			country_event = {
				id = PER_majlis.401
				days = 3
			}
		}
		set_variable = { PER_election_var = 48 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = PER_majlis.2
	title = PER_majlis.2.t
	desc = PER_majlis.2.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.2.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.2.a executed"
		custom_effect_tooltip = PER_session_begins_TT
		set_country_flag = PER_debate_ongoing
		activate_mission = PER_debate_now
		ai_chance = { base = 1 }
	}

	# I need more time
	option = {
		name = PER_majlis.2.b
		log = "[GetDateText]: [This.GetName]: PER_majlis.2.b executed"
		custom_effect_tooltip = PER_session_extended_TT
		set_variable = {
			PER_session_var = {
				value = PER_session_var
				add = 3
				clamp = { min = 0 max = 48 }
			}
		}
		ai_chance = { base = 5 }
	}
}

# Liberal Bloc Proposal
country_event = {
	id = PER_majlis.10
	title = PER_majlis.10.t
	desc = PER_majlis.10.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Let's get to work
	option = {
		name = PER_majlis.10.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.10.a executed"
		if = {
			limit = {
				OR = {
					check_variable = { party_pop_array^6 > 0.04 }
					check_variable = { party_pop_array^7 > 0.04 }
					check_variable = { party_pop_array^8 > 0.04 }
					check_variable = { party_pop_array^9 > 0.04 }
				}
				NOT = { has_country_flag = PER_did_lib_1 }
			}
			activate_mission = PER_purging_the_remnants
		}
		else_if = {
			limit = { NOT = { has_country_flag = PER_did_lib_2 } }
			activate_mission = PER_turning_the_clock_forward
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						RAJ = { has_opinion_modifier = mutual_trade_agreement }
						GER = { has_opinion_modifier = mutual_trade_agreement }
						FRA = { has_opinion_modifier = mutual_trade_agreement }
						ITA = { has_opinion_modifier = mutual_trade_agreement }
					}
				}
				NOT = { has_country_flag = PER_did_lib_3 }
			}
			activate_mission = PER_deep_pockets_deeper_ties
		}
		else_if = {
			limit = { NOT = { has_country_flag = PER_did_lib_4 } }
			activate_mission = PER_the_iranian_lobby
		}
		else_if = {
			limit = {
				check_variable = { total_unemployed_percentage_display > 0.2 }
				NOT = { has_country_flag = PER_did_lib_5 }
			}
			activate_mission = PER_the_shift_never_ends
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_idea = economic_boom
						has_idea = corruption_level_03
						has_idea = corruption_level_02
						has_idea = corruption_level_01
					}
				}
				NOT = { has_country_flag = PER_did_lib_6 }
			}
			activate_mission = PER_clean_records
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						401 = { NOT = { internet_station > 1 } }
						977 = { NOT = { internet_station > 1 } }
						1151 = { NOT = { internet_station > 1 } }
						402 = { NOT = { internet_station > 1 } }
						1149 = { NOT = { internet_station > 1 } }
						1147 = { NOT = { internet_station > 1 } }
						978 = {
							NOT = {
								OR = {
									internet_station > 1
									offices > 1
								}
							}
						}
					}
				}
				NOT = { has_country_flag = PER_did_lib_7 }
			}
			activate_mission = PER_is_this_thing_on
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						408 = { NOT = { infrastructure > 4 } }
						401 = { NOT = { infrastructure > 4 } }
						1039 = { NOT = { infrastructure > 4 } }
						1138 = { NOT = { infrastructure > 4 } }
					}
				}
				NOT = { has_country_flag = PER_did_lib_8 }
			}
			activate_mission = PER_disparity_has_no_place_here
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Moderate Conservative Bloc Proposal
country_event = {
	id = PER_majlis.11
	title = PER_majlis.11.t
	desc = PER_majlis.11.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.11.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.11.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_mcon_1
						has_idea = heavily_regulated_immigration
						has_idea = closed_borders
						401 = {
							any_province_building_level = {
								province = {
									id = 3879
									limit_to_border = yes
								}
								building = bunker
								level > 4
							}
							any_province_building_level = {
								province = {
									id = 12895
									limit_to_border = yes
								}
								building = bunker
								level > 4
							}
							any_province_building_level = {
								province = {
									id = 2070
									limit_to_border = yes
								}
								building = bunker
								level > 4
							}
							any_province_building_level = {
								province = {
									id = 10782
									limit_to_border = yes
								}
								building = bunker
								level > 4
							}
							any_province_building_level = {
								province = {
									id = 13082
									limit_to_border = yes
								}
								building = bunker
								level > 4
							}
							any_province_building_level = {
								province = {
									id = 4891
									limit_to_border = yes
								}
								building = bunker
								level > 4
							}
						}
					}
				}
			}
			activate_mission = PER_iran_is_full
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_mcon_2
						408 = { agriculture_district > 0 }
						399 = { agriculture_district > 0 }
						406 = { agriculture_district > 0 }
						404 = { agriculture_district > 0 }
					}
				}
			}
			activate_mission = PER_the_green_pastures
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_mcon_3
						has_stability > 0.64
						has_idea = police_04
						has_idea = police_05
					}
				}
			}
			activate_mission = PER_safety_security_stability
		}
		else_if = {
			limit = { NOT = { has_country_flag = PER_did_mcon_4 } }
			activate_mission = PER_our_left_hand
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_mcon_5
						check_variable = { party_pop_array^3 < 0.05 }
						check_variable = { party_pop_array^4 < 0.05 }
						check_variable = { party_pop_array^5 < 0.05 }
						check_variable = { party_pop_array^19 < 0.05 }
					}
				}
			}
			activate_mission = PER_the_socialist_threat
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_mcon_6
						399 = {
							infrastructure > 4
							renewable_energy_infra > 4
						}
						1146 = {
							infrastructure > 4
							renewable_energy_infra > 4
						}
					}
				}
			}
			activate_mission = PER_the_arteries_of_iran
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_mcon_7
						SAU = { influence_higher_20 = yes }
					}
				}
				check_variable = { domestic_influence_amount < 84.99 }
			}
			activate_mission = PER_chess
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Socialist Bloc Proposal
country_event = {
	id = PER_majlis.12
	title = PER_majlis.12.t
	desc = PER_majlis.12.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.12.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.12.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_1
						has_idea = edu_05
						check_variable = { overall_productivity > 699.99 }
					}
				}
			}
			activate_mission = PER_productive_minds
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_2
						has_idea = social_04
						has_idea = social_05
						has_idea = social_06
						has_idea = open_borders
						1151 = {
							infrastructure > 2
							industrial_complex > 0
						}
					}
				}
			}
			activate_mission = PER_open_hearts
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_3
						976 = {
							infrastructure > 3
							offices > 1
						}
						400 = {
							infrastructure > 3
							offices > 1
							internet_station > 1
						}
					}
				}
			}
			activate_mission = PER_centers_of_innovation
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_4
						check_variable = { debt < 500 }
						check_variable = { interest_rate < 2.000 }
					}
				}
			}
			activate_mission = PER_green_feel_to_paper
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_5
						401 = { radar_station > 3 }
						1150 = { radar_station > 3 }
						399 = { radar_station > 3 }
						405 = { radar_station > 5 }
					}
				}
			}
			activate_mission = PER_eyes_on_the_future
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_6
						has_idea = labour_unions
					}
				}
			}
			activate_mission = PER_rights_of_workers
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_7
						977 = { renewable_energy_infra > 0 }
						1147 = { renewable_energy_infra > 0 }
						check_variable = { energy_sum > 79.99 }
					}
				}
			}
			activate_mission = PER_the_lights_shine_bright
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_soc_8
						nationalist < 0.10
					}
				}
			}
			activate_mission = PER_no_place_for_fascists
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Radical Leftist Proposal
country_event = {
	id = PER_majlis.14
	title = PER_majlis.14.t
	desc = PER_majlis.14.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.14.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.14.a executed"
		if = {
			limit = { NOT = { has_country_flag = PER_did_left_1 } }
			activate_mission = PER_old_friends
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_left_2
						408 = { industrial_complex > 0 }
						1139 = { industrial_complex > 0 }
					}
				}
			}
			activate_mission = PER_the_pride_of_kordestan
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_left_3
						has_idea = health_06
						has_idea = social_06
						has_idea = edu_05
					}
				}
			}
			activate_mission = PER_health_knowledge_and_prosperity
		}
		else_if = {
			limit = {
				NOT = { has_country_flag = PER_did_left_4 }
				country_exists = KUR
				KUR = { is_subject = no }
			}
			activate_mission = PER_puppet_kurdistan
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_left_5
						1039 = { infrastructure > 4 }
						979 = { infrastructure > 4 }
						408 = { infrastructure > 4 }
						1139 = { infrastructure > 4 }
						1138 = { infrastructure > 4 }
					}
				}
			}
			activate_mission = PER_help_the_kurds
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_left_6
						1139 = {
							any_province_building_level = {
								province = {
									id = 12773
									limit_to_border = yes
								}
								building = supply_node
								level > 0
							}
						}
					}
				}
			}
			activate_mission = PER_kermanshahs_supply
		}
		else_if = {
			limit = {
				has_idea = the_military
				NOT = {
					OR = {
						has_country_flag = PER_did_left_7
						check_variable = { party_pop_array^22 < 0.05 }
					}
				}
			}
			activate_mission = PER_military_loyalty
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Neo-I.R. Proposal
country_event = {
	id = PER_majlis.15
	title = PER_majlis.15.t
	desc = PER_majlis.15.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.15.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.15.a executed"
		if = {
			limit = {
				NOT = {
					has_country_flag = PER_did_ir_1
				}
			}
			activate_mission = PER_our_old_leverage
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_ir_2
						399 = {
							rocket_site > 4
						}
						403 = {
							rocket_site > 4
						}
					}
				}
			}
			activate_mission = PER_our_thorns
		}
		# else_if = { # TODO: Replace this with a better trigger regarding the Nuclear Warheads
		# 	limit = {
		# 		NOT = {
		# 			has_country_flag = PER_did_ir_3
		# 			has_nuclear_warhead_0_inventory = yes
		# 		}
		# 	}
		# 	activate_mission = PER_explosive_deterrent
		# }
		# else_if = {
		# 	limit = {
		# 		NOT = {
		# 			has_country_flag = PER_did_ir_4
		# 			power_balance_value = {
		# 				id = PER_clergy_balance_of_power_category
		# 				value > 0.3
		# 			}
		# 		}
		# 	}
		# 	activate_mission = PER_a_return_to_the_past
		# }
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_ir_5
						402 = {
							infrastructure > 4
							internet_station > 1
						}
						1144 = {
							infrastructure > 4
							internet_station > 1
						}
					}
				}
			}
			activate_mission = PER_righteous_roads
		}
		else = {
			custom_effect_tooltip = PER_no_more_missions_TT
		}
		ai_chance = {
			base = 1
		}
	}
}

# Moderate Islamist Proposals
country_event = {
	id = PER_majlis.16
	title = PER_majlis.16.t
	desc = PER_majlis.16.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.16.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.16.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_moderates_1
						has_idea = police_04
						has_idea = police_05
						has_idea = corruption_level_02
						has_idea = corruption_level_01
					}
				}
			}
			activate_mission = PER_firm_hand_of_the_law
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_moderates_2
						has_country_flag = PER_iraq_accepted_to_pay_half_billion_weekly
						has_country_flag = PER_iraq_accepted_to_pay_one_billion_weekly
						has_country_flag = PER_iraq_accepted_to_pay_two_billion_weekly
					}
				}
			}
			activate_mission = PER_demand_our_payments
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_moderates_3
						1148 = { nuclear_reactor > 0 }
						405 = { nuclear_reactor > 0 }
					}
				}
			}
			activate_mission = PER_nuclear_activities
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_moderates_4
						OMA = { influence_higher_20 = yes }
					}
				}
			}
			activate_mission = PER_the_mediator
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_moderates_5
						407 = { air_base > 4 }
						401 = { air_base > 4 }
						976 = { air_base > 4 }
					}
				}
			}
			activate_mission = PER_take_flight
		}
		else_if = {
			limit = {
				country_exists = CHI
				NOT = {
					OR = {
						has_country_flag = PER_did_moderates_6
						has_idea = CHI_sco_member
						has_war_with = CHI
					}
				}
			}
			activate_mission = PER_the_SCO
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}

# Libertarian Proposal
country_event = {
	id = PER_majlis.17
	title = PER_majlis.17.t
	desc = PER_majlis.17.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.17.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.17.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_libertarian_2
						check_variable = { population_tax_rate < 11 }
						check_variable = { corporate_tax_rate < 11 }
					}
				}
			}
			activate_mission = PER_the_tax_haven
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_libertarian_3
						check_variable = { int_investments > 499.99 }
					}
				}
			}
			activate_mission = PER_money_everywhere
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_libertarian_4
						has_equipment = { infantry_weapons_type > 30000 }
						has_idea = police_01
						has_idea = police_02
					}
				}
			}
			activate_mission = PER_right_to_bear_arms
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_libertarian_5
						IRQ = { has_idea = tribute_idea_PER }
						SYR = { has_idea = tribute_idea_PER }
						AFG = { has_idea = tribute_idea_PER }
					}
				}
			}
			activate_mission = PER_exploiting_competition
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_libertarian_6
						SAU = { is_subject_of = PER }
						UAE = { is_subject_of = PER }
						KUW = { is_subject_of = PER }
						QAT = { is_subject_of = PER }
					}
				}
			}
			activate_mission = PER_controlling_competition
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}

# Green Proposal
country_event = {
	id = PER_majlis.18
	title = PER_majlis.18.t
	desc = PER_majlis.18.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.18.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.18.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_green_1
						405 = { renewable_energy_infra > 0 }
						400 = { renewable_energy_infra > 0 }
					}
				}
			}
			activate_mission = PER_renewable_capitals
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_green_2
						1146 = { nuclear_reactor > 0 }
					}
				}
			}
			activate_mission = PER_nuclear_fumes
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_green_3
						1138 = { agriculture_district > 0 }
						978 = { agriculture_district > 0 }
						977 = { agriculture_district > 0 }
					}
				}
			}
			activate_mission = PER_farms_over_factories
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_green_4
						check_variable = { number_of_battery_parks > 4 }
					}
				}
			}
			activate_mission = PER_the_electric_grid
		}
		ai_chance = { base = 1 }
	}
}
# Corporate Proposal (Oligarch)
country_event = {
	id = PER_majlis.19
	title = PER_majlis.19.t
	desc = PER_majlis.19.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.19.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.19.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_oligarch_1
						399 = { fuel_silo > 4 }
						1146 = { fuel_silo > 4 }
					}
				}
			}
			activate_mission = PER_oil_warehouses
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_oligarch_2
						1146 = {
							infrastructure > 4
							internet_station > 1
						}
						399 = {
							infrastructure > 4
							internet_station > 1
						}
					}
				}
			}
			activate_mission = PER_priority_treatment
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_oligarch_3
						check_variable = { corporate_tax_rate < 6 }
						has_idea = economic_boom
					}
				}
			}
			activate_mission = PER_look_the_other_way
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_oligarch_4
						978 = { industrial_complex > 0 }
						has_idea = open_borders
					}
				}
			}
			activate_mission = PER_look_the_other_way
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Monarchist Bloc
country_event = {
	id = PER_majlis.20
	title = PER_majlis.20.t
	desc = PER_majlis.20.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.20.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.20.a executed"
		if = {
			limit = {
				country_exists = AFG
				AFG = { has_war_with = TAL }
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_1
						AFG = {
							has_volunteers_amount_from = {
								tag = PER
								count > 0
							}
						}
					}
				}
			}
			hidden_effect = {
				PER = {
					add_relation_modifier = {
						target = AFG
						modifier = generic_increased_military_support
					}
				}
			}
			activate_mission = PER_intervention_in_the_east
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_3
						has_idea = economic_boom
					}
				}
			}
			activate_mission = PER_lessons_of_white_revolution
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_4
						AFG = { influence_higher_20 = yes }
						TAJ = { influence_higher_20 = yes }
					}
				}
			}
			activate_mission = PER_brother_nations
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_5
						HEZ = {
							is_subject_of = PER
							is_subject = yes
						}
						NOT = { country_exists = HEZ }
						has_war_with = HEZ
					}
				}
			}
			activate_mission = PER_fight_against_evil
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_6
						BHR = { is_subject_of = PER }
						423 = { is_controlled_by = PER }
					}
				}
			}
			activate_mission = PER_our_lost_jewel
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_7
						check_variable = { domestic_influence_amount > 99 }
					}
				}
			}
			activate_mission = PER_the_lions_jungle
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_monarch_8
						check_variable = { gdp_per_capita > 34.99 }
					}
				}
			}
			activate_mission = PER_prosperity_of_the_people
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Tondar
country_event = {
	id = PER_majlis.21
	title = PER_majlis.21.t
	desc = PER_majlis.21.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.21.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.21.a executed"
		if = {
			limit = {
				country_exists = TAL
				NOT = {
					OR = {
						has_country_flag = PER_did_fascist_1
						TAL = { is_subject = yes }
					}
				}
			}
			activate_mission = PER_insurgencies_nowhere
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}
# Artesh
country_event = {
	id = PER_majlis.22
	title = PER_majlis.22.t
	desc = PER_majlis.22.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.22.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.22.a executed"
		if = {
			limit = {
				country_exists = TAL
				NOT = {
					OR = {
						has_country_flag = PER_did_artesh_1
						TAL = { is_subject = yes }
					}
				}
			}
			activate_mission = PER_jobs_in_the_arms_industry
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_artesh_2
						407 = { anti_air_building > 4 }
						405 = { anti_air_building > 4 }
						976 = { anti_air_building > 4 }
					}
				}
			}
			activate_mission = PER_clear_skies
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_artesh_3
						has_army_manpower = { size > 399999 }
					}
				}
			}
			activate_mission = PER_sound_of_marching_boots
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_artesh_4
						has_equipment = { infantry_weapons_type > 3999 }
					}
				}
			}
			activate_mission = PER_endless_stockpiles
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_artesh_5
						1146 = { dockyard > 0 }
					}
				}
			}
			activate_mission = PER_calm_waters
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}

# Reformsits *I.R.
country_event = {
	id = PER_majlis.23
	title = PER_majlis.23.t
	desc = PER_majlis.23.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.23.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.23.a executed"
		if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_1
						405 = { internet_station > 1 }
						402 = { internet_station > 1 }
						400 = { internet_station > 1 }
						979 = { internet_station > 1 }
					}
				}
			}
			activate_mission = PER_national_connection
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_2
						has_idea = CHI_sco_member
					}
				}
			}
			activate_mission = PER_friends_from_across
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_3
						has_idea = economic_boom
					}
				}
			}
			activate_mission = PER_booming_economy
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_4
						401 = {
							air_base > 4
							radar_station > 2
						}
					}
				}
			}
			activate_mission = PER_safe_flight
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_5
						1190 = {
							dockyard > 0
							coastal_bunker > 2
						}
					}
				}
			}
			activate_mission = PER_seagulls_screech
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_6
						AFG = { influence_higher_20 = yes }
						TAJ = { influence_higher_15 = yes }
					}
				}
			}
			activate_mission = PER_brothers_to_the_east
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_7
						check_variable = { int_investments > 499.99 }
						has_idea = economic_boom
					}
				}
			}
			activate_mission = PER_investments_everywhere
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_8
						1039 = { infrastructure > 3 }
						1138 = { infrastructure > 3 }
						401 = { infrastructure > 3 }
						408 = { infrastructure > 3 }
					}
				}
			}
			activate_mission = PER_those_in_need
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_9
						1151 = {
							infrastructure > 2
							industrial_complex > 0
						}
						has_idea = open_borders
						has_idea = social_04
						has_idea = social_05
						has_idea = social_06
					}
				}
			}
			activate_mission = PER_a_place_for_all
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_10
						check_variable = { total_unemployed_percentage_display < 0.2 }
					}
				}
			}
			activate_mission = PER_productive_promises
		}
		else_if = {
			limit = {
				has_idea = corruption_level_04
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_11
						has_idea = bureau_05
						has_idea = corruption_level_02
						has_idea = corruption_level_01
					}
				}
			}
			activate_mission = PER_faith_in_the_government
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_12
						check_variable = { population_tax_rate < 16 }
						check_variable = { corporate_tax_rate > 14 }
					}
				}
			}
			activate_mission = PER_breaks_for_the_needy
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_13
						1146 = { industrial_complex > 0 }
						1145 = { industrial_complex > 0 }
						1039 = { industrial_complex > 0 }
					}
				}
			}
			activate_mission = PER_industrialization_of_rural_areas
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_14
						TUR = { influence_higher_15 = yes }
						GRE = { influence_higher_15 = yes }
					}
				}
			}
			activate_mission = PER_meddling_in_conflicts
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_15
						check_variable = { party_pop_array^9 < 0.20 }
					}
				}
			}
			activate_mission = PER_passive_aggressive_competition
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_16
						405 = { renewable_energy_infra > 1 }
						400 = { renewable_energy_infra > 1 }
					}
				}
			}
			activate_mission = PER_new_energy
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_reformists_17
						check_variable = { debt < 500 }
						check_variable = { interest_rate < 2.000 }
					}
				}
			}
			activate_mission = PER_a_thriving_economy
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = PER_majlis.24
	title = PER_majlis.24.t
	desc = PER_majlis.24.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	# Okay
	option = {
		name = PER_majlis.24.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.24.a executed"
		if = {
			limit = {
				country_exists = AFG
				AFG = { has_war_with = TAL }
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_1
						AFG = {
							has_volunteers_amount_from = {
								tag = PER
								count > 0
							}
						}
					}
				}
			}
			hidden_effect = {
				PER = {
					add_relation_modifier = {
						target = AFG
						modifier = generic_increased_military_support
					}
				}
			}
			activate_mission = PER_intervention_in_afghanistan
		}
		else_if = {
			limit = {
				has_tech = high_speed_rail
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_2
						405 = {
							infrastructure > 3
							internet_station > 1
						}
					}
				}
			}
			activate_mission = PER_developing_the_capital
		}
		else_if = {
			limit = {
				country_exists = SYR
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_3
						SYR = {
							OR = {
								has_idea = faction_resistance_axis_member
								is_subject_of = PER
							}
						}
					}
				}
			}
			activate_mission = PER_syrian_hand
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_4
						976 = { arms_factory > 1 }
					}
				}
			}
			activate_mission = PER_the_armys_suppliers
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_5
						402 = {
							infrastructure > 4
							internet_station > 1
						}
						1144 = {
							infrastructure > 4
							internet_station > 1
						}
					}
				}
			}
			activate_mission = PER_ease_of_prayer
		}
		else_if = {
			limit = {
				country_exists = IRQ
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_6
						has_country_flag = PER_iraq_accepted_to_pay_half_billion_weekly
						has_country_flag = PER_iraq_accepted_to_pay_one_billion_weekly
						has_country_flag = PER_iraq_accepted_to_pay_two_billion_weekly
						IRQ = { influence_higher_50 = yes }
					}
				}
			}
			activate_mission = PER_our_rightful_money
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_7
						SAU = { is_subject_of = PER }
						UAE = { is_subject_of = PER }
						KUW = { is_subject_of = PER }
						QAT = { is_subject_of = PER }
					}
				}
			}
			activate_mission = PER_enemies_on_a_leash
		}
		else_if = {
			limit = {
				country_exists = JOR
				JOR = {
					OR = {
						check_variable = { influence_array^0 = USA }
						check_variable = { influence_array^1 = USA }
						check_variable = { influence_array^2 = USA }
						check_variable = { influence_array^3 = USA }
						check_variable = { influence_array^4 = USA }
					}
				}
				NOT = { has_country_flag = PER_did_principalists_8 }
			}
			activate_mission = PER_fighting_foreigners
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_9
						has_equipment = { medium_plane_suicide_airframe > 4999 }
					}
				}
			}
			activate_mission = PER_the_supplier_of_martyrs
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_10
						408 = { agriculture_district > 0 }
					}
				}
			}
			activate_mission = PER_aiding_the_farmer
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_11
						1146 = {
							infrastructure > 4
							fuel_silo > 4
						}
						399 = {
							infrastructure > 4
							fuel_silo > 4
						}
					}
				}
			}
			activate_mission = PER_fueling_our_revolution
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_12
						has_army_manpower = { size > 449999 }
					}
				}
			}
			activate_mission = PER_outnumbering_the_enemy
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_13
						has_stability > 0.74
						has_idea = police_04
						has_idea = police_05
					}
				}
			}
			activate_mission = PER_safety_with_stability
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_14
						403 = { rocket_site > 4 }
						399 = { rocket_site > 4 }
					}
				}
			}
			activate_mission = PER_national_deterrents
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_15
						IRQ = { has_idea = tribute_idea_PER }
						SYR = { has_idea = tribute_idea_PER }
						LEB = { has_idea = tribute_idea_PER }
					}
				}
			}
			activate_mission = PER_exploiting_our_proxies
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_country_flag = PER_did_principalists_16
						check_variable = { overall_productivity > 899.99 }
					}
				}
			}
			activate_mission = PER_productive_state
		}
		else = { custom_effect_tooltip = PER_no_more_missions_TT }
		ai_chance = { base = 1 }
	}
}

# Set-up for new political parties
country_event = {
	id = PER_majlis.30
	title = PER_majlis.30.t
	desc = PER_majlis.30.d
	picture = GFX_iran_majles
	is_triggered_only = yes
	fire_only_once = yes

	# Okay
	option = {
		name = PER_majlis.30.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.30.a executed"
		hidden_effect = {
			set_popularities = {
				communism = 15
				democratic = 5
				nationalist = 5
				neutrality = 75
			}
		}
		# Total: 30
		set_variable = { party_pop_array^0 = 0.05 } #Western_Autocracy
		set_variable = { party_pop_array^1 = 0.00 } #conservatism
		set_variable = { party_pop_array^2 = 0.00 } #liberalism
		set_variable = { party_pop_array^3 = 0.00 } #socialism
		# Total: 15
		set_variable = { party_pop_array^4 = 0.05 } #Communist-State
		set_variable = { party_pop_array^5 = 0.10 } #anarchist_communism
		set_variable = { party_pop_array^6 = 0 } #Conservative
		set_variable = { party_pop_array^7 = 0 } #Autocracy
		set_variable = { party_pop_array^8 = 0.00 } #Mod_Vilayat_e_Faqih -> Reformists
		set_variable = { party_pop_array^9 = 0.00 } #Vilayat_e_Faqih -> Principalists
		# Total: 0 (Both Banned)
		set_variable = { party_pop_array^10 = 0.00 } #Kingdom
		set_variable = { party_pop_array^11 = 0.00 } #Caliphate
		# Total: 40
		set_variable = { party_pop_array^12 = 0.10 } #Neutral_Muslim_Brotherhood
		set_variable = { party_pop_array^13 = 0.25 } #Neutral_Autocracy
		set_variable = { party_pop_array^14 = 0.10 } #Neutral_conservatism
		set_variable = { party_pop_array^15 = 0.00 } #oligarchism
		set_variable = { party_pop_array^16 = 0.10 } #Neutral_Libertarian
		set_variable = { party_pop_array^17 = 0.00 } #Neutral_green
		set_variable = { party_pop_array^18 = 0.05 } #neutral_Social
		set_variable = { party_pop_array^19 = 0.00 } #Neutral_Communism
		# Total: 15
		set_variable = { party_pop_array^20 = 0.00 } #Nat_Populism
		set_variable = { party_pop_array^21 = 0.02 } #Nat_Fascism
		set_variable = { party_pop_array^22 = 0.03 } #Nat_Autocracy
		set_variable = { party_pop_array^23 = 0.00 } #Monarchist
		hidden_effect = {
			country_event = {
				id = PER_majlis.1
				days = 12
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

# Majles Protest to Centralization law Change
country_event = {
	id = PER_majlis.31
	title = PER_majlis.31.t
	desc = PER_majlis.31.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				has_country_flag = PER_going_full_hardliner
				has_country_flag = PER_buru_cool_down_02
			}
		}
	}

	# Okay, fine
	option = {
		name = PER_majlis.31.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.31.a executed"
		if = {
			limit = {
				has_country_flag = PER_removed_bureau_01
			}
			if = {
				limit = {
					has_idea = bureau_02
				}
				swap_ideas = {
					remove_idea = bureau_02
					add_idea = bureau_01
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_03
				}
				swap_ideas = {
					remove_idea = bureau_03
					add_idea = bureau_01
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_04
				}
				swap_ideas = {
					remove_idea = bureau_04
					add_idea = bureau_01
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_05
				}
				swap_ideas = {
					remove_idea = bureau_05
					add_idea = bureau_01
				}
			}
		}
		# B2
		if = {
			limit = {
				has_country_flag = PER_removed_bureau_02
			}
			if = {
				limit = {
					has_idea = bureau_01
				}
				swap_ideas = {
					remove_idea = bureau_01
					add_idea = bureau_02
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_03
				}
				swap_ideas = {
					remove_idea = bureau_03
					add_idea = bureau_02
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_04
				}
				swap_ideas = {
					remove_idea = bureau_04
					add_idea = bureau_02
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_05
				}
				swap_ideas = {
					remove_idea = bureau_05
					add_idea = bureau_02
				}
			}
		}
		# B3
		if = {
			limit = {
				has_country_flag = PER_removed_bureau_03
			}
			if = {
				limit = {
					has_idea = bureau_01
				}
				swap_ideas = {
					remove_idea = bureau_01
					add_idea = bureau_03
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_02
				}
				swap_ideas = {
					remove_idea = bureau_02
					add_idea = bureau_03
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_04
				}
				swap_ideas = {
					remove_idea = bureau_04
					add_idea = bureau_03
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_05
				}
				swap_ideas = {
					remove_idea = bureau_05
					add_idea = bureau_03
				}
			}
		}
		# B4
		if = {
			limit = {
				has_country_flag = PER_removed_bureau_04
			}
			if = {
				limit = {
					has_idea = bureau_01
				}
				swap_ideas = {
					remove_idea = bureau_01
					add_idea = bureau_04
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_02
				}
				swap_ideas = {
					remove_idea = bureau_02
					add_idea = bureau_04
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_03
				}
				swap_ideas = {
					remove_idea = bureau_03
					add_idea = bureau_04
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_05
				}
				swap_ideas = {
					remove_idea = bureau_05
					add_idea = bureau_04
				}
			}
		}
		# B5
		if = {
			limit = {
				has_country_flag = PER_removed_bureau_05
			}
			if = {
				limit = {
					has_idea = bureau_01
				}
				swap_ideas = {
					remove_idea = bureau_01
					add_idea = bureau_05
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_02
				}
				swap_ideas = {
					remove_idea = bureau_02
					add_idea = bureau_05
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_03
				}
				swap_ideas = {
					remove_idea = bureau_03
					add_idea = bureau_05
				}
			}
			else_if = {
				limit = {
					has_idea = bureau_04
				}
				swap_ideas = {
					remove_idea = bureau_04
					add_idea = bureau_05
				}
			}
		}
		block_bureau_change = yes
		clr_country_flag = PER_removed_bureau_01
		clr_country_flag = PER_removed_bureau_02
		clr_country_flag = PER_removed_bureau_03
		clr_country_flag = PER_removed_bureau_04
		clr_country_flag = PER_removed_bureau_05
		set_country_flag = {
			flag = PER_buru_cool_down
			days = 5
			value = 1
		}
		set_country_flag = {
			flag = PER_buru_cool_down_02
			days = 14
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	# I don't care what they have to say
	option = {
		name = PER_majlis.31.b
		log = "[GetDateText]: [This.GetName]: PER_majlis.31.b executed"
		set_country_flag = {
			flag = PER_buru_cool_down_02
			days = 14
			value = 1
		}
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		newline = yes
		add_political_power = -75
		newline = yes
		random_list = {
			20 = { block_defence_change = yes }
			20 = { block_police_change = yes }
			60 = { }
		}
		ai_chance = { base = 1 }
	}
}

# Majles Protest to Police law Change
country_event = {
	id = PER_majlis.32
	title = PER_majlis.32.t
	desc = PER_majlis.32.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				has_country_flag = PER_going_full_hardliner
				has_country_flag = PER_police_cool_down_2
			}
		}
	}

	# Okay, fine
	option = {
		name = PER_majlis.32.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.32.a executed"
		if = {
			limit = {
				has_country_flag = PER_removed_police_01
			}
			if = {
				limit = {
					has_idea = police_02
				}
				swap_ideas = {
					remove_idea = police_02
					add_idea = police_01
				}
			}
			else_if = {
				limit = {
					has_idea = police_03
				}
				swap_ideas = {
					remove_idea = police_03
					add_idea = police_01
				}
			}
			else_if = {
				limit = {
					has_idea = police_04
				}
				swap_ideas = {
					remove_idea = police_04
					add_idea = police_01
				}
			}
			else_if = {
				limit = {
					has_idea = police_05
				}
				swap_ideas = {
					remove_idea = police_05
					add_idea = police_01
				}
			}
		}
		# B2
		if = {
			limit = {
				has_country_flag = PER_removed_police_02
			}
			if = {
				limit = {
					has_idea = police_01
				}
				swap_ideas = {
					remove_idea = police_01
					add_idea = police_02
				}
			}
			else_if = {
				limit = {
					has_idea = police_03
				}
				swap_ideas = {
					remove_idea = police_03
					add_idea = police_02
				}
			}
			else_if = {
				limit = {
					has_idea = police_04
				}
				swap_ideas = {
					remove_idea = police_04
					add_idea = police_02
				}
			}
			else_if = {
				limit = {
					has_idea = police_05
				}
				swap_ideas = {
					remove_idea = police_05
					add_idea = police_02
				}
			}
		}
		# B3
		if = {
			limit = {
				has_country_flag = PER_removed_police_03
			}
			if = {
				limit = {
					has_idea = police_01
				}
				swap_ideas = {
					remove_idea = police_01
					add_idea = police_03
				}
			}
			else_if = {
				limit = {
					has_idea = police_02
				}
				swap_ideas = {
					remove_idea = police_02
					add_idea = police_03
				}
			}
			else_if = {
				limit = {
					has_idea = police_04
				}
				swap_ideas = {
					remove_idea = police_04
					add_idea = police_03
				}
			}
			else_if = {
				limit = {
					has_idea = police_05
				}
				swap_ideas = {
					remove_idea = police_05
					add_idea = police_03
				}
			}
		}
		# B4
		if = {
			limit = {
				has_country_flag = PER_removed_police_04
			}
			if = {
				limit = {
					has_idea = police_01
				}
				swap_ideas = {
					remove_idea = police_01
					add_idea = police_04
				}
			}
			else_if = {
				limit = {
					has_idea = police_02
				}
				swap_ideas = {
					remove_idea = police_02
					add_idea = police_04
				}
			}
			else_if = {
				limit = {
					has_idea = police_03
				}
				swap_ideas = {
					remove_idea = police_03
					add_idea = police_04
				}
			}
			else_if = {
				limit = {
					has_idea = police_05
				}
				swap_ideas = {
					remove_idea = police_05
					add_idea = police_04
				}
			}
		}
		# B5
		if = {
			limit = {
				has_country_flag = PER_removed_police_05
			}
			if = {
				limit = {
					has_idea = police_01
				}
				swap_ideas = {
					remove_idea = police_01
					add_idea = police_05
				}
			}
			else_if = {
				limit = {
					has_idea = police_02
				}
				swap_ideas = {
					remove_idea = police_02
					add_idea = police_05
				}
			}
			else_if = {
				limit = {
					has_idea = police_03
				}
				swap_ideas = {
					remove_idea = police_03
					add_idea = police_05
				}
			}
			else_if = {
				limit = {
					has_idea = police_04
				}
				swap_ideas = {
					remove_idea = police_04
					add_idea = police_05
				}
			}
		}
		block_police_change = yes
		clr_country_flag = PER_removed_police_01
		clr_country_flag = PER_removed_police_02
		clr_country_flag = PER_removed_police_03
		clr_country_flag = PER_removed_police_04
		clr_country_flag = PER_removed_police_05
		set_country_flag = {
			flag = PER_police_cool_down
			days = 5
			value = 1
		}
		set_country_flag = {
			flag = PER_police_cool_down_2
			days = 14
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	# I don't care what they have to say
	option = {
		name = PER_majlis.32.b
		log = "[GetDateText]: [This.GetName]: PER_majlis.32.b executed"
		set_country_flag = {
			flag = PER_police_cool_down_2
			days = 14
			value = 1
		}
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		newline = yes
		add_political_power = -75
		newline = yes
		random_list = {
			20 = { block_edu_change = yes }
			20 = { block_health_change = yes }
			60 = { }
		}
		ai_chance = { base = 1 }
	}
}

# Majles Protest to Education law Change
country_event = {
	id = PER_majlis.33
	title = PER_majlis.33.t
	desc = PER_majlis.33.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				has_country_flag = PER_going_full_hardliner
				has_country_flag = PER_edu_cool_down_2
			}
		}
	}

	# Okay, fine
	option = {
		name = PER_majlis.33.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.33.a executed"
		if = {
			limit = {
				has_country_flag = PER_removed_edu_01
			}
			if = {
				limit = {
					has_idea = edu_02
				}
				swap_ideas = {
					remove_idea = edu_02
					add_idea = edu_01
				}
			}
			else_if = {
				limit = {
					has_idea = edu_03
				}
				swap_ideas = {
					remove_idea = edu_03
					add_idea = edu_01
				}
			}
			else_if = {
				limit = {
					has_idea = edu_04
				}
				swap_ideas = {
					remove_idea = edu_04
					add_idea = edu_01
				}
			}
			else_if = {
				limit = {
					has_idea = edu_05
				}
				swap_ideas = {
					remove_idea = edu_05
					add_idea = edu_01
				}
			}
		}
		# B2
		if = {
			limit = {
				has_country_flag = PER_removed_edu_02
			}
			if = {
				limit = {
					has_idea = edu_01
				}
				swap_ideas = {
					remove_idea = edu_01
					add_idea = edu_02
				}
			}
			else_if = {
				limit = {
					has_idea = edu_03
				}
				swap_ideas = {
					remove_idea = edu_03
					add_idea = edu_02
				}
			}
			else_if = {
				limit = {
					has_idea = edu_04
				}
				swap_ideas = {
					remove_idea = edu_04
					add_idea = edu_02
				}
			}
			else_if = {
				limit = {
					has_idea = edu_05
				}
				swap_ideas = {
					remove_idea = edu_05
					add_idea = edu_02
				}
			}
		}
		# B3
		if = {
			limit = {
				has_country_flag = PER_removed_edu_03
			}
			if = {
				limit = {
					has_idea = edu_01
				}
				swap_ideas = {
					remove_idea = edu_01
					add_idea = edu_03
				}
			}
			else_if = {
				limit = {
					has_idea = edu_02
				}
				swap_ideas = {
					remove_idea = edu_02
					add_idea = edu_03
				}
			}
			else_if = {
				limit = {
					has_idea = edu_04
				}
				swap_ideas = {
					remove_idea = edu_04
					add_idea = edu_03
				}
			}
			else_if = {
				limit = {
					has_idea = edu_05
				}
				swap_ideas = {
					remove_idea = edu_05
					add_idea = edu_03
				}
			}
		}
		# B4
		if = {
			limit = {
				has_country_flag = PER_removed_edu_04
			}
			if = {
				limit = {
					has_idea = edu_01
				}
				swap_ideas = {
					remove_idea = edu_01
					add_idea = edu_04
				}
			}
			else_if = {
				limit = {
					has_idea = edu_02
				}
				swap_ideas = {
					remove_idea = edu_02
					add_idea = edu_04
				}
			}
			else_if = {
				limit = {
					has_idea = edu_03
				}
				swap_ideas = {
					remove_idea = edu_03
					add_idea = edu_04
				}
			}
			else_if = {
				limit = {
					has_idea = edu_05
				}
				swap_ideas = {
					remove_idea = edu_05
					add_idea = edu_04
				}
			}
		}
		# B5
		if = {
			limit = {
				has_country_flag = PER_removed_edu_05
			}
			if = {
				limit = {
					has_idea = edu_01
				}
				swap_ideas = {
					remove_idea = edu_01
					add_idea = edu_05
				}
			}
			else_if = {
				limit = {
					has_idea = edu_02
				}
				swap_ideas = {
					remove_idea = edu_02
					add_idea = edu_05
				}
			}
			else_if = {
				limit = {
					has_idea = edu_03
				}
				swap_ideas = {
					remove_idea = edu_03
					add_idea = edu_05
				}
			}
			else_if = {
				limit = {
					has_idea = edu_04
				}
				swap_ideas = {
					remove_idea = edu_04
					add_idea = edu_05
				}
			}
		}
		block_edu_change = yes
		clr_country_flag = PER_removed_edu_01
		clr_country_flag = PER_removed_edu_02
		clr_country_flag = PER_removed_edu_03
		clr_country_flag = PER_removed_edu_04
		clr_country_flag = PER_removed_edu_05
		set_country_flag = {
			flag = PER_edu_cool_down
			days = 5
			value = 1
		}
		set_country_flag = {
			flag = PER_edu_cool_down_2
			days = 14
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	# I don't care what they have to say
	option = {
		name = PER_majlis.33.b
		log = "[GetDateText]: [This.GetName]: PER_majlis.33.b executed"
		set_country_flag = {
			flag = PER_edu_cool_down_2
			days = 14
			value = 1
		}
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		newline = yes
		add_political_power = -75
		newline = yes
		random_list = {
			20 = { block_social_change = yes }
			20 = { block_bureau_change = yes }
			60 = { }
		}
		ai_chance = { base = 1 }
	}
}

# Majles Protest to Healthcare law Change
country_event = {
	id = PER_majlis.34
	title = PER_majlis.34.t
	desc = PER_majlis.34.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				has_country_flag = PER_going_full_hardliner
				has_country_flag = PER_health_cool_down_2
			}
		}
	}

	# Okay, fine
	option = {
		name = PER_majlis.34.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.34.a executed"
		if = {
			limit = {
				has_country_flag = PER_removed_health_01
			}
			if = {
				limit = {
					has_idea = health_02
				}
				swap_ideas = {
					remove_idea = health_02
					add_idea = health_01
				}
			}
			else_if = {
				limit = {
					has_idea = health_03
				}
				swap_ideas = {
					remove_idea = health_03
					add_idea = health_01
				}
			}
			else_if = {
				limit = {
					has_idea = health_04
				}
				swap_ideas = {
					remove_idea = health_04
					add_idea = health_01
				}
			}
			else_if = {
				limit = {
					has_idea = health_05
				}
				swap_ideas = {
					remove_idea = health_05
					add_idea = health_01
				}
			}
			else_if = {
				limit = {
					has_idea = health_06
				}
				swap_ideas = {
					remove_idea = health_06
					add_idea = health_01
				}
			}
		}
		# B2
		if = {
			limit = {
				has_country_flag = PER_removed_health_02
			}
			if = {
				limit = {
					has_idea = health_01
				}
				swap_ideas = {
					remove_idea = health_01
					add_idea = health_02
				}
			}
			else_if = {
				limit = {
					has_idea = health_03
				}
				swap_ideas = {
					remove_idea = health_03
					add_idea = health_02
				}
			}
			else_if = {
				limit = {
					has_idea = health_04
				}
				swap_ideas = {
					remove_idea = health_04
					add_idea = health_02
				}
			}
			else_if = {
				limit = {
					has_idea = health_05
				}
				swap_ideas = {
					remove_idea = health_05
					add_idea = health_02
				}
			}
			else_if = {
				limit = {
					has_idea = health_06
				}
				swap_ideas = {
					remove_idea = health_06
					add_idea = health_02
				}
			}
		}
		# B3
		if = {
			limit = {
				has_country_flag = PER_removed_health_03
			}
			if = {
				limit = {
					has_idea = health_01
				}
				swap_ideas = {
					remove_idea = health_01
					add_idea = health_03
				}
			}
			else_if = {
				limit = {
					has_idea = health_02
				}
				swap_ideas = {
					remove_idea = health_02
					add_idea = health_03
				}
			}
			else_if = {
				limit = {
					has_idea = health_04
				}
				swap_ideas = {
					remove_idea = health_04
					add_idea = health_03
				}
			}
			else_if = {
				limit = {
					has_idea = health_05
				}
				swap_ideas = {
					remove_idea = health_05
					add_idea = health_03
				}
			}
			else_if = {
				limit = {
					has_idea = health_06
				}
				swap_ideas = {
					remove_idea = health_06
					add_idea = health_03
				}
			}
		}
		# B4
		if = {
			limit = {
				has_country_flag = PER_removed_health_04
			}
			if = {
				limit = {
					has_idea = health_01
				}
				swap_ideas = {
					remove_idea = health_01
					add_idea = health_04
				}
			}
			else_if = {
				limit = {
					has_idea = health_02
				}
				swap_ideas = {
					remove_idea = health_02
					add_idea = health_04
				}
			}
			else_if = {
				limit = {
					has_idea = health_03
				}
				swap_ideas = {
					remove_idea = health_03
					add_idea = health_04
				}
			}
			else_if = {
				limit = {
					has_idea = health_05
				}
				swap_ideas = {
					remove_idea = health_05
					add_idea = health_04
				}
			}
			else_if = {
				limit = {
					has_idea = health_06
				}
				swap_ideas = {
					remove_idea = health_06
					add_idea = health_04
				}
			}
		}
		# B5
		if = {
			limit = {
				has_country_flag = PER_removed_health_05
			}
			if = {
				limit = {
					has_idea = health_01
				}
				swap_ideas = {
					remove_idea = health_01
					add_idea = health_05
				}
			}
			else_if = {
				limit = {
					has_idea = health_02
				}
				swap_ideas = {
					remove_idea = health_02
					add_idea = health_05
				}
			}
			else_if = {
				limit = {
					has_idea = health_03
				}
				swap_ideas = {
					remove_idea = health_03
					add_idea = health_05
				}
			}
			else_if = {
				limit = {
					has_idea = health_04
				}
				swap_ideas = {
					remove_idea = health_04
					add_idea = health_05
				}
			}
			else_if = {
				limit = {
					has_idea = health_06
				}
				swap_ideas = {
					remove_idea = health_06
					add_idea = health_05
				}
			}
		}
		# B6
		if = {
			limit = {
				has_country_flag = PER_removed_health_06
			}
			if = {
				limit = {
					has_idea = health_01
				}
				swap_ideas = {
					remove_idea = health_01
					add_idea = health_06
				}
			}
			else_if = {
				limit = {
					has_idea = health_02
				}
				swap_ideas = {
					remove_idea = health_02
					add_idea = health_06
				}
			}
			else_if = {
				limit = {
					has_idea = health_03
				}
				swap_ideas = {
					remove_idea = health_03
					add_idea = health_06
				}
			}
			else_if = {
				limit = {
					has_idea = health_04
				}
				swap_ideas = {
					remove_idea = health_04
					add_idea = health_06
				}
			}
			else_if = {
				limit = {
					has_idea = health_05
				}
				swap_ideas = {
					remove_idea = health_05
					add_idea = health_06
				}
			}
		}
		block_health_change = yes
		clr_country_flag = PER_removed_health_01
		clr_country_flag = PER_removed_health_02
		clr_country_flag = PER_removed_health_03
		clr_country_flag = PER_removed_health_04
		clr_country_flag = PER_removed_health_05
		clr_country_flag = PER_removed_health_06
		set_country_flag = {
			flag = PER_health_cool_down
			days = 5
			value = 1
		}
		set_country_flag = {
			flag = PER_health_cool_down_2
			days = 14
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	# I don't care what they have to say
	option = {
		name = PER_majlis.34.b
		log = "[GetDateText]: [This.GetName]: PER_majlis.34.b executed"
		set_country_flag = {
			flag = PER_health_cool_down_2
			days = 14
			value = 1
		}
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		newline = yes
		add_political_power = -25
		newline = yes
		random_list = {
			20 = { block_police_change = yes }
			20 = { block_defence_change = yes }
			60 = { }
		}
		ai_chance = { base = 1 }
	}
}

# Majles Protest to Welfare law Change
country_event = {
	id = PER_majlis.35
	title = PER_majlis.35.t
	desc = PER_majlis.35.d
	picture = GFX_iran_majles
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				has_country_flag = PER_going_full_hardliner
				has_country_flag = PER_social_cool_down_2
			}
		}
	}

	# Okay, fine
	option = {
		name = PER_majlis.35.a
		log = "[GetDateText]: [This.GetName]: PER_majlis.35.a executed"
		if = {
			limit = {
				has_country_flag = PER_removed_social_01
			}
			if = {
				limit = {
					has_idea = social_02
				}
				swap_ideas = {
					remove_idea = social_02
					add_idea = social_01
				}
			}
			else_if = {
				limit = {
					has_idea = social_03
				}
				swap_ideas = {
					remove_idea = social_03
					add_idea = social_01
				}
			}
			else_if = {
				limit = {
					has_idea = social_04
				}
				swap_ideas = {
					remove_idea = social_04
					add_idea = social_01
				}
			}
			else_if = {
				limit = {
					has_idea = social_05
				}
				swap_ideas = {
					remove_idea = social_05
					add_idea = social_01
				}
			}
			else_if = {
				limit = {
					has_idea = social_06
				}
				swap_ideas = {
					remove_idea = social_06
					add_idea = social_01
				}
			}
		}
		# B2
		if = {
			limit = {
				has_country_flag = PER_removed_social_02
			}
			if = {
				limit = {
					has_idea = social_01
				}
				swap_ideas = {
					remove_idea = social_01
					add_idea = social_02
				}
			}
			else_if = {
				limit = {
					has_idea = social_03
				}
				swap_ideas = {
					remove_idea = social_03
					add_idea = social_02
				}
			}
			else_if = {
				limit = {
					has_idea = social_04
				}
				swap_ideas = {
					remove_idea = social_04
					add_idea = social_02
				}
			}
			else_if = {
				limit = {
					has_idea = social_05
				}
				swap_ideas = {
					remove_idea = social_05
					add_idea = social_02
				}
			}
			else_if = {
				limit = {
					has_idea = social_06
				}
				swap_ideas = {
					remove_idea = social_06
					add_idea = social_02
				}
			}
		}
		# B3
		if = {
			limit = {
				has_country_flag = PER_removed_social_03
			}
			if = {
				limit = {
					has_idea = social_01
				}
				swap_ideas = {
					remove_idea = social_01
					add_idea = social_03
				}
			}
			else_if = {
				limit = {
					has_idea = social_02
				}
				swap_ideas = {
					remove_idea = social_02
					add_idea = social_03
				}
			}
			else_if = {
				limit = {
					has_idea = social_04
				}
				swap_ideas = {
					remove_idea = social_04
					add_idea = social_03
				}
			}
			else_if = {
				limit = {
					has_idea = social_05
				}
				swap_ideas = {
					remove_idea = social_05
					add_idea = social_03
				}
			}
			else_if = {
				limit = {
					has_idea = social_06
				}
				swap_ideas = {
					remove_idea = social_06
					add_idea = social_03
				}
			}
		}
		# B4
		if = {
			limit = {
				has_country_flag = PER_removed_social_04
			}
			if = {
				limit = {
					has_idea = social_01
				}
				swap_ideas = {
					remove_idea = social_01
					add_idea = social_04
				}
			}
			else_if = {
				limit = {
					has_idea = social_02
				}
				swap_ideas = {
					remove_idea = social_02
					add_idea = social_04
				}
			}
			else_if = {
				limit = {
					has_idea = social_03
				}
				swap_ideas = {
					remove_idea = social_03
					add_idea = social_04
				}
			}
			else_if = {
				limit = {
					has_idea = social_05
				}
				swap_ideas = {
					remove_idea = social_05
					add_idea = social_04
				}
			}
			else_if = {
				limit = {
					has_idea = social_06
				}
				swap_ideas = {
					remove_idea = social_06
					add_idea = social_04
				}
			}
		}
		# B5
		if = {
			limit = {
				has_country_flag = PER_removed_social_05
			}
			if = {
				limit = {
					has_idea = social_01
				}
				swap_ideas = {
					remove_idea = social_01
					add_idea = social_05
				}
			}
			else_if = {
				limit = {
					has_idea = social_02
				}
				swap_ideas = {
					remove_idea = social_02
					add_idea = social_05
				}
			}
			else_if = {
				limit = {
					has_idea = social_03
				}
				swap_ideas = {
					remove_idea = social_03
					add_idea = social_05
				}
			}
			else_if = {
				limit = {
					has_idea = social_04
				}
				swap_ideas = {
					remove_idea = social_04
					add_idea = social_05
				}
			}
			else_if = {
				limit = {
					has_idea = social_06
				}
				swap_ideas = {
					remove_idea = social_06
					add_idea = social_05
				}
			}
		}
		# B6
		if = {
			limit = {
				has_country_flag = PER_removed_social_06
			}
			if = {
				limit = {
					has_idea = social_01
				}
				swap_ideas = {
					remove_idea = social_01
					add_idea = social_06
				}
			}
			else_if = {
				limit = {
					has_idea = social_02
				}
				swap_ideas = {
					remove_idea = social_02
					add_idea = social_06
				}
			}
			else_if = {
				limit = {
					has_idea = social_03
				}
				swap_ideas = {
					remove_idea = social_03
					add_idea = social_06
				}
			}
			else_if = {
				limit = {
					has_idea = social_04
				}
				swap_ideas = {
					remove_idea = social_04
					add_idea = social_06
				}
			}
			else_if = {
				limit = {
					has_idea = social_05
				}
				swap_ideas = {
					remove_idea = social_05
					add_idea = social_06
				}
			}
		}
		block_social_change = yes
		clr_country_flag = PER_removed_social_01
		clr_country_flag = PER_removed_social_02
		clr_country_flag = PER_removed_social_03
		clr_country_flag = PER_removed_social_04
		clr_country_flag = PER_removed_social_05
		clr_country_flag = PER_removed_social_06
		set_country_flag = {
			flag = PER_social_cool_down
			days = 5
			value = 1
		}
		set_country_flag = {
			flag = PER_social_cool_down_2
			days = 14
			value = 1
		}
		ai_chance = {
			base = 1
		}
	}

	# I don't care what they have to say
	option = {
		name = PER_majlis.35.b
		log = "[GetDateText]: [This.GetName]: PER_majlis.35.b executed"
		set_country_flag = {
			flag = PER_social_cool_down_2
			days = 14
			value = 1
		}
		set_temp_variable = { party_popularity_increase = -0.015 }
		set_temp_variable = { temp_outlook_increase = -0.01 }
		change_relative_party_popularity = yes
		newline = yes
		add_political_power = -25
		newline = yes
		random_list = {
			20 = { block_police_change = yes }
			20 = { block_defence_change = yes }
			60 = { }
		}
		ai_chance = { base = 1 }
	}
}

# New Events

# Nuclear Events
country_event = {
	id = nuclear_iran.1
	title = nuclear_iran.1.t
	desc = nuclear_iran.1.d
	picture = GFX_nuclear_power_plant
	is_triggered_only = yes

	# Russia
	option = {
		name = nuclear_iran.1.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.1.a executed"
		trigger = { NOT = { has_war_with = SOV } }
		SOV = {
			country_event = {
				id = nuclear_iran.2
				days = 1
			}
		}
		ai_chance = { base = 10 }
	}

	# North Korea
	option = {
		name = nuclear_iran.1.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.1.b executed"
		trigger = { NOT = { has_war_with = NKO } }
		NKO = {
			country_event = {
				id = nuclear_iran.2
				days = 1
			}
		}
		ai_chance = { base = 2.5 }
	}
}

# Iran Asks Us for Help
country_event = {
	id = nuclear_iran.2
	title = nuclear_iran.2.t
	desc = nuclear_iran.2.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.2.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.2.a executed"
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		if = {
			limit = { ROOT = { original_tag = NKO } }
			custom_effect_tooltip = PER_missile_nko_TT
			PER = {
				country_event = {
					id = nuclear_iran.3
					days = 1
				}
			}
		}
		if = {
			limit = { ROOT = { original_tag = SOV } }
			custom_effect_tooltip = PER_missile_sov_TT
			PER = {
				country_event = {
					id = nuclear_iran.4
					days = 1
				}
			}
		}
		ai_chance = { base = 10 }
	}

	# No
	option = {
		name = nuclear_iran.2.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.2.b executed"
		if = {
			limit = { ROOT = { original_tag = SOV } }
			PER = { set_country_flag = SOV_rejected_PER }
		}
		if = {
			limit = { ROOT = { original_tag = NKO } }
			PER = { set_country_flag = NKO_rejected_PER }
		}
		PER = {
			country_event = {
				id = nuclear_iran.5
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}
# North Korea Provides Missile Technology
country_event = {
	id = nuclear_iran.3
	title = nuclear_iran.3.t
	desc = nuclear_iran.3.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.3.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.3.a executed"
		if = {
			limit = { has_tech = ICBM3 }
			set_technology = { ICBM4 = 1 }
		}
		else = { PER = { set_technology = { ICBM3 = 1 } } }
		ai_chance = { base = 10 }
	}
}

# Russia Provides Nuclear Technology
country_event = {
	id = nuclear_iran.4
	title = nuclear_iran.4.t
	desc = nuclear_iran.4.d
	picture = GFX_nuclear_power_plant
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.4.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.4.a executed"
		if = {
			limit = { has_tech = reactor3 }
			set_technology = { reactor4 = 1 }
		}
		else = { PER = { set_technology = { reactor3 = 1 } } }
		ai_chance = { base = 10 }
	}
}

# FROM Denies Assistance
country_event = {
	id = nuclear_iran.5
	title = nuclear_iran.5.t
	desc = nuclear_iran.5.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.5.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.5.a executed"
		if = {
			limit = { has_country_flag = NKO_rejected_PER }
			complete_national_focus = PER_mastering_the_atom
		}
		ai_chance = { base = 10 }
	}
}

# Iran Asks Us For Missiles

country_event = {
	id = nuclear_iran.6
	title = nuclear_iran.6.t
	desc = nuclear_iran.6.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.6.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.6.a executed"
		if = {
			limit = { has_dlc = "Gotterdammerung" }
			send_equipment = {
				type = guided_missile_equipment_1
				amount = 400
				target = PER
			}
		}
		else = {
			send_equipment = {
				type = ballistic_missile_equipment
				amount = 400
				target = PER
			}
		}
		custom_effect_tooltip = TT_IF_WE_ACCEPT
		effect_tooltip = {
			PER = {
				set_temp_variable = { treasury_change = -47.00 }
				modify_treasury_effect = yes
			}
			SOV = {
				set_temp_variable = { treasury_change = 47.00 }
				modify_treasury_effect = yes
			}
			set_temp_variable = { percent_change = 4 }
			set_temp_variable = { tag_index = SOV }
			set_temp_variable = { influence_target = PER }
			change_influence_percentage = yes
		}
		PER = {
			country_event = {
				id = nuclear_iran.7
				days = 1
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				has_opinion = { target = PER value > 20 }
				add = 20
			}
		}
	}

	# No
	option = {
		name = nuclear_iran.6.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.6.b executed"
		PER = {
			country_event = {
				id = nuclear_iran.8
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = { target = PER value < 20 }
				add = 20
			}
		}
	}
}

# Russia Sells it's Missiles
country_event = {
	id = nuclear_iran.7
	title = nuclear_iran.7.t
	desc = nuclear_iran.7.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.7.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.7.a executed"
		effect_tooltip = {
			SOV = {
				if = {
					limit = { has_dlc = "Gotterdammerung" }
					send_equipment = {
						type = guided_missile_equipment_1
						amount = 400
						target = PER
					}
				}
				else = {
					send_equipment = {
						type = ballistic_missile_equipment
						amount = 400
						target = PER
					}
				}
			}
		}
		PER = {
			set_temp_variable = { treasury_change = -47.00 }
			modify_treasury_effect = yes
		}
		SOV = {
			set_temp_variable = { treasury_change = 47.00 }
			modify_treasury_effect = yes
		}
		set_temp_variable = { percent_change = 4 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		ai_chance = { base = 10 }
	}
}

# Russia Refuses to Sell Missiles
country_event = {
	id = nuclear_iran.8
	title = nuclear_iran.8.t
	desc = nuclear_iran.8.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.8.a
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = nuclear_iran.9
	title = nuclear_iran.9.t
	desc = nuclear_iran.9.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.9.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.9.a executed"
		if = {
			limit = { has_dlc = "Gotterdammerung" }
			add_equipment_to_stockpile = {
				type = nuclear_missile_equipment_3
				amount = 15
				producer = SOV
			}
		}
		else = {
			add_equipment_to_stockpile = {
				type = ballistic_missile_equipment
				amount = 100
			}
		}
		ai_chance = { base = 10 }
	}
}

# Iran Asks for SHORAD Systems
country_event = {
	id = nuclear_iran.10
	title = nuclear_iran.10.t
	desc = nuclear_iran.10.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.10.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.10.a executed"
		effect_tooltip = {
			1146 = {
				add_building_construction = {
					type = anti_air_building
					level = 1
				}
			}
			newline = yes
			406 = {
				add_building_construction = {
					type = anti_air_building
					level = 1
				}
			}
			newline = yes
			400 = {
				add_building_construction = {
					type = anti_air_building
					level = 1
				}
			}
			newline = yes
			978 = {
				add_building_construction = {
					type = anti_air_building
					level = 1
				}
			}
			newline = yes
			401 = {
				add_building_construction = {
					type = anti_air_building
					level = 1
				}
			}
		}
		set_temp_variable = { treasury_change = -16.25 }
		modify_treasury_effect = yes
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		PER = {
			country_event = {
				id = nuclear_iran.11
				days = 1
			}
		}
		ai_chance = { base = 10 }
	}

	# No
	option = {
		name = nuclear_iran.10.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.10.b executed"
		PER = {
			country_event = {
				id = nuclear_iran.12
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}

# Russia Accepts
country_event = {
	id = nuclear_iran.11
	title = nuclear_iran.11.t
	desc = nuclear_iran.11.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.11.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.11.a executed"
		1146 = {
			add_building_construction = {
				type = anti_air_building
				level = 1
			}
		}
		newline = yes
		406 = {
			add_building_construction = {
				type = anti_air_building
				level = 1
			}
		}
		newline = yes
		400 = {
			add_building_construction = {
				type = anti_air_building
				level = 1
			}
		}
		newline = yes
		978 = {
			add_building_construction = {
				type = anti_air_building
				level = 1
			}
		}
		newline = yes
		401 = {
			add_building_construction = {
				type = anti_air_building
				level = 1
			}
		}
		ai_chance = { base = 10 }
	}
}
# Russia Rejects
country_event = {
	id = nuclear_iran.12
	title = nuclear_iran.12.t
	desc = nuclear_iran.12.d
	picture = GFX_missiles_on_road
	is_triggered_only = yes

	# Okay
	option = {
		name = nuclear_iran.12.a
		ai_chance = { base = 10 }
	}
}

# Grand Bargain (JCPOA Path)
country_event = {
	id = nuclear_iran.13
	title = nuclear_iran.13.t
	desc = nuclear_iran.13.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Negotiate for Monetary Benefits
	option = {
		name = nuclear_iran.13.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.13.a executed"
		activate_mission = PER_nuclear_disarming
		405 = {
			add_building_construction = {
				type = offices
				level = 1
			}
		}
		newline = yes
		400 = {
			add_building_construction = {
				type = offices
				level = 1
			}
		}
		newline = yes
		402 = {
			add_building_construction = {
				type = agriculture_district
				level = 1
			}
		}
		newline = yes
		407 = {
			add_building_construction = {
				type = agriculture_district
				level = 1
			}
		}
		newline = yes
		401 = {
			add_building_construction = {
				type = agriculture_district
				level = 1
			}
		}
		ai_chance = { base = 10 }
	}

	# Negotiate for Industrial Benefits
	option = {
		name = nuclear_iran.13.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.13.b executed"
		activate_mission = PER_nuclear_disarming
		405 = {
			add_building_construction = {
				type = industrial_complex
				level = 1
			}
		}
		newline = yes
		400 = {
			add_building_construction = {
				type = industrial_complex
				level = 1
			}
		}
		newline = yes
		1146 = {
			add_building_construction = {
				type = dockyard
				level = 1
			}
		}
		newline = yes
		401 = {
			add_building_construction = {
				type = dockyard
				level = 1
			}
		}
		ai_chance = { base = 10 }
	}

	# Negotiate for Energy Benefits
	option = {
		name = nuclear_iran.13.c
		log = "[GetDateText]: [This.GetName]: nuclear_iran.13.c executed"
		activate_mission = PER_nuclear_disarming
		405 = {
			add_building_construction = {
				type = nuclear_reactor
				level = 1
			}
		}
		newline = yes
		400 = {
			add_building_construction = {
				type = nuclear_reactor
				level = 1
			}
		}
		newline = yes
		1146 = {
			add_building_construction = {
				type = fossil_powerplant
				level = 2
			}
		}
		newline = yes
		406 = {
			add_building_construction = {
				type = fossil_powerplant
				level = 1
			}
		}
		newline = yes
		1039 = {
			add_building_construction = {
				type = dockyard
				level = 1
			}
		}
		newline = yes
		1151 = {
			add_building_construction = {
				type = dockyard
				level = 1
			}
		}
		ai_chance = { base = 10 }
	}
}

# Iran Reveals Nuclear Capabilities (JCPOA Path)
country_event = {
	id = nuclear_iran.14
	title = nuclear_iran.14.t
	desc = nuclear_iran.14.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Offer negotiations
	option = {
		name = nuclear_iran.14.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.14.a executed"
		PER = {
			country_event = {
				id = nuclear_iran.13
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 50
				has_opinion = {
					target = PER
					value > 4
				}
			}
		}
	}

	# Demand the destruction of all nuclear weapons
	option = {
		name = nuclear_iran.14.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.14.b executed"
		PER = {
			country_event = {
				id = nuclear_iran.15
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 50
				USA = { western_conservatism_are_in_power = yes }
			}
		}
	}
}
# US Gives its own offer
country_event = {
	id = nuclear_iran.15
	title = nuclear_iran.15.t
	desc = nuclear_iran.15.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Ok
	option = {
		name = nuclear_iran.15.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.15.a executed"
		activate_mission = PER_nuclear_disarming
		USA = {
			country_event = {
				id = nuclear_iran.16
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}

	# No
	option = {
		name = nuclear_iran.15.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.15.b executed"
		set_country_flag = PER_nuclear_known
		set_country_flag = PER_sanctioned
		clr_country_flag = PER_nuclear_negotiations
		USA = {
			country_event = {
				id = nuclear_iran.17
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}
# Iran accepts our offer
country_event = {
	id = nuclear_iran.16
	title = nuclear_iran.16.t
	desc = nuclear_iran.16.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = nuclear_iran.16.a
		ai_chance = { base = 1 }
	}
}
# Iran refuses our offer
country_event = {
	id = nuclear_iran.17
	title = nuclear_iran.17.t
	desc = nuclear_iran.17.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = nuclear_iran.17.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.17.a executed"
		if = {
			limit = { has_dlc = "By Blood Alone" }
			send_embargo = PER
		}
		every_country = {
			limit = {
				OR = {
					has_government = democratic
					has_government = neutrality
					original_tag = ISR
					original_tag = SAU
					original_tag = UAE
					original_tag = KUW
				}
			}
			country_event = {
				id = nuclear_iran.18
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = nuclear_iran.17.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.17.b executed"
		every_country = {
			limit = {
				OR = {
					has_government = democratic
					has_government = neutrality
					original_tag = ISR
					original_tag = SAU
					original_tag = UAE
					original_tag = KUW
				}
			}
			country_event = {
				id = nuclear_iran.18
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = nuclear_iran.17.c
		ai_chance = { base = 0 }
	}
}
# US Calls for Sanctions on Iran
country_event = {
	id = nuclear_iran.18
	title = nuclear_iran.18.t
	desc = nuclear_iran.18.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	trigger = { country_exists = USA }

	# Ok
	option = {
		name = nuclear_iran.18.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.18.a executed"
		if = {
			limit = { has_dlc = "By Blood Alone" }
			send_embargo = PER
		}
		add_opinion_modifier = {
			target = PER
			modifier = sanctioned_iran
		}
		PER = {
			country_event = nuclear_iran.19
			add_opinion_modifier = {
				target = ROOT
				modifier = sanctioned_us
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 100
				OR = {
					has_government = democratic
					has_government = neutrality
					has_government = fascism
					original_tag = ISR
					original_tag = SAU
					original_tag = UAE
					original_tag = KUW
					NOT = {
						OR = {
							original_tag = RAJ
							original_tag = SWI
							original_tag = AUS
							original_tag = TAJ
							original_tag = AFG
							original_tag = CHI
							original_tag = SOV
							original_tag = KOR
							original_tag = PAL
							original_tag = SYR
							original_tag = HUN
							original_tag = TRK
							original_tag = UZB
							original_tag = ARM
							is_in_africa = yes
						}
					}
				}
			}
		}
	}

	# No
	option = {
		name = nuclear_iran.18.b
		ai_chance = {
			base = 5
			modifier = {
				add = 100
				OR = {
					has_government = nationalist
					has_government = communism
					original_tag = RAJ
					original_tag = SWI
					original_tag = AUS
					original_tag = TAJ
					original_tag = AFG
					original_tag = CHI
					original_tag = SOV
					original_tag = KOR
					original_tag = PAL
					original_tag = SYR
					original_tag = HUN
					original_tag = TRK
					original_tag = UZB
					original_tag = ARM
					is_in_africa = yes
				}
			}
		}
	}
}

# International Sanctions!
country_event = {
	id = nuclear_iran.19
	title = nuclear_iran.19.t
	desc = nuclear_iran.19.d
	picture = GFX_raid_international_sanctions
	is_triggered_only = yes
	fire_only_once = yes

	# Ok
	option = {
		name = nuclear_iran.19.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.19.a executed"
		set_country_flag = PER_sanctioned
		set_country_flag = PER_nuclear_known
		clr_country_flag = PER_nuclear_negotiations
		if = {
			limit = { NOT = { has_completed_focus = PER_silent_steps } }
			complete_national_focus = PER_silent_steps
		}
		if = {
			limit = { NOT = { has_dynamic_modifier = { modifier = PER_us_sanctions } } }
			add_dynamic_modifier = { modifier = PER_us_sanctions }
		}
		else_if = {
			limit = { has_dynamic_modifier = { modifier = PER_us_sanctions } }
			PER = {
				newline = yes
				custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_us_sanctions }
				add_to_variable = { PER_sanction_trade_opinion_factor = -0.1 tooltip = trade_opinion_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_trade_laws_cost_factor = 0.1 tooltip = trade_laws_cost_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_oil_export_multiplier_modifier = -0.1 tooltip = oil_export_multiplier_modifier_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_improve_relations_maintain_cost_factor = 0.1 tooltip = improve_relations_maintain_cost_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_productivity_growth_modifier = -0.05 tooltip = productivity_growth_modifier_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_stability_factor = -0.05 tooltip = stability_factor_tt }
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = nuclear_iran.20
	title = nuclear_iran.20.t
	desc = nuclear_iran.20.d
	picture = GFX_raid_international_sanctions
	is_triggered_only = yes
	fire_only_once = yes

	# Demand the Dismantlement of all Iranian Nuclear Weapons!
	option = {
		name = nuclear_iran.20.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.20.a executed"
		every_country = {
			limit = {
				OR = {
					has_government = democratic
					has_government = neutrality
					original_tag = ISR
					original_tag = SAU
					original_tag = UAE
					original_tag = KUW
				}
			}
			country_event = {
				id = nuclear_iran.18
				days = 2
			}
		}
		PER = { country_event = nuclear_iran.21 }
		ai_chance = { base = 5 }
	}
}

# United States Demands Nuclear Disarming
country_event = {
	id = nuclear_iran.21
	title = nuclear_iran.21.t
	desc = nuclear_iran.21.d
	picture = GFX_treaty
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = nuclear_iran.21.a
		ai_chance = { base = 5 }
	}
}
# Iran Offers Cheap Oil
country_event = {
	id = nuclear_iran.22
	title = nuclear_iran.22.t
	desc = nuclear_iran.22.d
	picture = GFX_oil_refinery
	is_triggered_only = yes
	fire_only_once = yes

	# Okay
	option = {
		name = nuclear_iran.22.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.22.a executed"
		create_import = {
			resource = oil
			amount = 19
			exporter = PER
		}
		set_temp_variable = { percent_change = 3 }
		set_temp_variable = { tag_index = CHI }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		PER = { country_event = nuclear_iran.23 }
		ai_chance = { base = 5 }
	}

	# No
	option = {
		name = nuclear_iran.22.b
		log = "[GetDateText]: [This.GetName]: nuclear_iran.22.b executed"
		PER = { country_event = nuclear_iran.24 }
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = nuclear_iran.23
	title = nuclear_iran.23.t
	desc = nuclear_iran.23.d
	picture = GFX_oil_refinery
	is_triggered_only = yes
	fire_only_once = yes

	# Okay
	option = {
		name = nuclear_iran.23.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.23.a executed"
		effect_tooltip = {
			CHI = {
				create_import = {
					resource = oil
					amount = 19
					exporter = PER
				}
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = nuclear_iran.24
	title = nuclear_iran.24.t
	desc = nuclear_iran.24.d
	picture = GFX_oil_refinery
	is_triggered_only = yes
	fire_only_once = yes

	# Okay
	option = {
		name = nuclear_iran.24.a
		ai_chance = { base = 5 }
	}
}

# United States Increases Economic Sanctions!
country_event = {
	id = nuclear_iran.25
	title = nuclear_iran.25.t
	desc = nuclear_iran.25.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	# They did what?
	option = {
		name = nuclear_iran.25.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.25.a executed"
		add_opinion_modifier = {
			target = USA
			modifier = recent_actions_negative
		}
		effect_tooltip = {
			PER = {
				newline = yes
				custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_us_sanctions }
				add_to_variable = { PER_sanction_trade_opinion_factor = -0.1 tooltip = trade_opinion_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_trade_laws_cost_factor = 0.1 tooltip = trade_laws_cost_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_oil_export_multiplier_modifier = -0.1 tooltip = oil_export_multiplier_modifier_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_improve_relations_maintain_cost_factor = 0.1 tooltip = improve_relations_maintain_cost_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_productivity_growth_modifier = -0.05 tooltip = productivity_growth_modifier_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_stability_factor = -0.05 tooltip = stability_factor_tt }
			}
		}
		ai_chance = { base = 1 }
	}
}

# United States Decreases Economic Sanctions
country_event = {
	id = nuclear_iran.26
	title = nuclear_iran.26.t
	desc = nuclear_iran.26.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	# They did what?
	option = {
		name = nuclear_iran.26.a
		log = "[GetDateText]: [This.GetName]: nuclear_iran.26.a executed"
		add_opinion_modifier = {
			target = USA
			modifier = recent_actions_positive
		}
		effect_tooltip = {
			PER = {
				newline = yes
				custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_us_sanctions }
				add_to_variable = { PER_sanction_trade_opinion_factor = 0.1 tooltip = trade_opinion_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_trade_laws_cost_factor = -0.1 tooltip = trade_laws_cost_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_oil_export_multiplier_modifier = 0.1 tooltip = oil_export_multiplier_modifier_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_improve_relations_maintain_cost_factor = -0.1 tooltip = improve_relations_maintain_cost_factor_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_productivity_growth_modifier = 0.05 tooltip = productivity_growth_modifier_tt }
				newline = yes
				newline = yes
				add_to_variable = { PER_sanction_stability_factor = 0.05 tooltip = stability_factor_tt }
			}
		}
		ai_chance = { base = 1 }
	}
}

# Iran Increases Hostile Activity
country_event = {
	id = nuclear_iran.27
	title = nuclear_iran.27.t
	desc = nuclear_iran.27.d
	picture = GFX_raid_international_sanctions
	is_triggered_only = yes

	# They did what?
	option = {
		name = nuclear_iran.27.a
		ai_chance = { base = 1 }
	}
}
# Iran Decreases Hostile Activity
country_event = {
	id = nuclear_iran.28
	title = nuclear_iran.28.t
	desc = nuclear_iran.28.d
	picture = GFX_political_deal
	is_triggered_only = yes

	# Good
	option = {
		name = nuclear_iran.28.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = nuclear_iran.29
	title = nuclear_iran.29.t
	desc = nuclear_iran.29.d
	picture = GFX_raid_international_sanctions
	is_triggered_only = yes

	# Good
	option = {
		name = nuclear_iran.29.a
		ai_chance = { base = 1 }
	}
}

# New Events

# IRGC Linked Politicians Invest in Foreign Companies
country_event = {
	id = iranian_focus.1
	title = iranian_focus.1.t
	desc = iranian_focus.1.d
	picture = GFX_dubai_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.1.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.1.a executed"
		custom_effect_tooltip = PER_chance_of_corruption_TT
		hidden_effect = {
			random = {
				chance = 15
					increase_corruption = yes
			}
		}
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_interest_rate_multiplier_modifier = -0.15 tooltip = interest_rate_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.1.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.1.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_corruption_cost = -0.05 tooltip = corruption_cost_factor_tt }
		newline = yes
		add_stability = 0.01
		ai_chance = { base = 1 }
	}
}

# Black Gold

country_event = {
	id = iranian_focus.2
	title = iranian_focus.2.t
	desc = iranian_focus.2.d
	picture = GFX_bushehr_oil
	is_triggered_only = yes

	# Use the oil to build better infrastructure
	option = {
		name = iranian_focus.2.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.2.a executed"
		400 = {
			add_building_construction = {
				type = fossil_powerplant
				level = 1
			}
		}
		newline = yes
		1146 = {
			add_building_construction = {
				type = fossil_powerplant
				level = 1
			}
		}
		newline = yes
		978 = {
			add_building_construction = {
				type = fossil_powerplant
				level = 1
			}
		}
		newline = yes
		set_temp_variable = { treasury_change = -6.75 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}

	# Seize the fields and hold them
	option = {
		name = iranian_focus.2.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.2.b executed"
		1146 = {
			add_resource = {
				type = oil
				amount = 10
			}
		}
		set_temp_variable = { treasury_change = -11.54 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}
}

# Conference in Beijing
country_event = {
	id = iranian_focus.3
	title = iranian_focus.3.t
	desc = iranian_focus.3.d
	picture = GFX_bahman
	is_triggered_only = yes

	# Put Forward Iranian Designs
	option = {
		name = iranian_focus.3.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.3.a executed"
		set_temp_variable = { percent_change = 3 }
		change_domestic_influence_percentage = yes
		newline = yes
		set_temp_variable = { treasury_change = -12.5 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}

	# Request More Chinese Designs
	option = {
		name = iranian_focus.3.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.3.b executed"
		add_tech_bonus = {
			name = iranian_focus.3.t
			bonus = 1
			uses = 2
			category = CAT_util
		}
		newline = yes
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = CHI }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		ai_chance = { base = 1 }
	}
}

# Bonyads Retaliate by Mobilizing the Public
country_event = {
	id = iranian_focus.4
	title = iranian_focus.4.t
	desc = iranian_focus.4.d
	picture = GFX_bonyad
	is_triggered_only = yes

	# Make concessions
	option = {
		name = iranian_focus.4.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.4.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_welfare_cost = 0.05 tooltip = social_cost_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 15 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 1 }
	}

	# Hold the line
	option = {
		name = iranian_focus.4.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.4.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_welfare_cost = -0.03 tooltip = social_cost_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = -15 }
		change_the_ulema_opinion = yes
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = -0.05
		}
		ai_chance = { base = 1 }
	}
}
# Trial of Babak Zanjani
country_event = {
	id = iranian_focus.5
	title = iranian_focus.5.t
	desc = iranian_focus.5.d
	picture = GFX_zanjani
	is_triggered_only = yes

	# Seize all his assets
	option = {
		name = iranian_focus.5.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.5.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_corporate_tax_factor = 0.05 tooltip = corporate_tax_income_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_corruption_cost = 0.05 tooltip = corruption_cost_factor_tt }
		newline = yes
		custom_effect_tooltip = PER_chance_of_corruption_TT
		hidden_effect = {
			random = {
				chance = 15
					increase_corruption = yes
			}
		}
		ai_chance = { base = 1 }
	}

	# Redistribute his assets to the public
	option = {
		name = iranian_focus.5.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.5.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_corruption_cost = -0.05 tooltip = corruption_cost_factor_tt }
		ai_chance = { base = 1 }
	}
}
# Bazaari's Upset with Tax Reform
country_event = {
	id = iranian_focus.6
	title = iranian_focus.6.t
	desc = iranian_focus.6.d
	picture = GFX_bazaar_strike
	is_triggered_only = yes

	# Make concessions
	option = {
		name = iranian_focus.6.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.6.a executed"
		set_temp_variable = { temp_productivity_change = -25 }
		405 = { state_flat_productivity_change_effect = yes }
		407 = { state_flat_productivity_change_effect = yes }
		976 = { state_flat_productivity_change_effect = yes }
		400 = { state_flat_productivity_change_effect = yes }
		newline = yes
		set_temp_variable = { temp_opinion = 15 }
		change_small_medium_business_owners_opinion = yes
		ai_chance = { base = 1 }
	}

	# Hold the line
	option = {
		name = iranian_focus.6.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.6.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_population_tax_income_multiplier_modifier = 0.025 tooltip = population_tax_income_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = -10 }
		change_small_medium_business_owners_opinion = yes
		ai_chance = { base = 1 }
	}
}
# International Students Begin Returning
country_event = {
	id = iranian_focus.7
	title = iranian_focus.7.t
	desc = iranian_focus.7.d
	picture = GFX_tehran_university
	is_triggered_only = yes

	# Take you and your dangerous ideas back where you came from
	option = {
		name = iranian_focus.7.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.7.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.05 tooltip = research_speed_factor_tt }
		ai_chance = { base = 1 }
	}

	# We welcome you with open arms
	option = {
		name = iranian_focus.7.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.7.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_migration_rate_value_factor = 0.1 tooltip = migration_rate_value_factor_tt }
		ai_chance = { base = 1 }
	}
}
# Stance on Alcohol
country_event = {
	id = iranian_focus.8
	title = iranian_focus.8.t
	desc = iranian_focus.8.d
	picture = GFX_iranian_alcohol
	is_triggered_only = yes

	# Establish a taskforce to root out these corrupt few
	option = {
		name = iranian_focus.8.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.8.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = 0.05 tooltip = drift_defence_factor_tt }
		newline = yes
		add_to_variable = { PER_police_cost_multiplier_modifier = 0.05 tooltip = police_cost_multiplier_modifier_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = 0.075
		}
		ai_chance = { base = 1 }
	}

	# Loosen the regulations
	option = {
		name = iranian_focus.8.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.8.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = -0.05 tooltip = drift_defence_factor_tt }
		newline = yes
		add_to_variable = { PER_police_cost_multiplier_modifier = -0.02 tooltip = police_cost_multiplier_modifier_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = -0.10
		}
		ai_chance = { base = 1 }
	}
}
# Hijab Conduct
country_event = {
	id = iranian_focus.9
	title = iranian_focus.9.t
	desc = iranian_focus.9.d
	picture = GFX_iran_hijab_law
	is_triggered_only = yes

	# Establish a taskforce to root out these corrupt few
	option = {
		name = iranian_focus.9.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.9.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_communism_drift = 0.05 tooltip = communism_drift_tt }
		newline = yes
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.10 tooltip = propaganda_campaign_cost_modifier_tt }
		newline = yes
		add_to_variable = { PER_police_cost_multiplier_modifier = 0.05 tooltip = police_cost_multiplier_modifier_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = 0.1
		}
		ai_chance = { base = 1 }
	}

	# Loosen the regulations
	option = {
		name = iranian_focus.9.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.9.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.015 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_police_cost_multiplier_modifier = -0.05 tooltip = police_cost_multiplier_modifier_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = -0.10
		}
		ai_chance = { base = 1 }
	}
}
# Illegal Oil Smuggling Operation Busted
country_event = {
	id = iranian_focus.10
	title = iranian_focus.10.t
	desc = iranian_focus.10.d
	picture = GFX_oil_truck_smuggler
	is_triggered_only = yes

	# Establish a taskforce to root out these corrupt few
	option = {
		name = iranian_focus.10.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.10.a executed"
		978 = {
			add_resource = {
				type = oil
				amount = 5
			}
		}
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_oil_export_multiplier_modifier = 0.03 tooltip = oil_export_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_police_cost_multiplier_modifier = 0.05 tooltip = police_cost_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}

	# Loosen the regulations
	option = {
		name = iranian_focus.10.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.10.b executed"
		978 = {
			add_resource = {
				type = oil
				amount = -2
			}
		}
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_police_cost_multiplier_modifier = -0.02 tooltip = police_cost_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}
}
# Oil Shale in Jordan
country_event = {
	id = iranian_focus.11
	title = iranian_focus.11.t
	desc = iranian_focus.11.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	# A great idea
	option = {
		name = iranian_focus.11.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.11.a executed"
		custom_effect_tooltip = PER_oil_shale2_TT
		PER = {
			country_event = {
				id = iranian_focus.12
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 20
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	# Never!
	option = {
		name = iranian_focus.11.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.11.b executed"
		PER = {
			country_event = {
				id = iranian_focus.13
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}
# FROM Agrees
country_event = {
	id = iranian_focus.12
	title = iranian_focus.12.t
	desc = iranian_focus.12.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	# Great, lets start
	option = {
		name = iranian_focus.12.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.12.a executed"
		if = {
			limit = { JOR = { NOT = { has_country_flag = JOR_agreed_oil_shale } } }
			210 = {
				add_resource = {
					type = oil
					amount = 12
				}
			}
			JOR = {
				give_resource_rights = { receiver = PER state = 210 }
				set_country_flag = JOR_agreed_oil_shale
			}
		}
		else_if = {
			limit = { JOR = { has_country_flag = JOR_asked_for_oil } }
			custom_effect_tooltip = PER_extra_year_TT
		}
		else_if = {
			limit = { JOR = { has_country_flag = JOR_asked_for_oil } }
			add_to_variable = { var = PER_shale_contract value = 24 }
			clamp_variable = { var = PER_shale_contract min = 0 max = 120 }
			custom_effect_tooltip = PER_shortened_year_TT
		}
		ai_chance = { base = 1 }
	}
}

# FROM Rejects
country_event = {
	id = iranian_focus.13
	title = iranian_focus.13.t
	desc = iranian_focus.13.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	# Their loss
	option = {
		name = iranian_focus.13.a
		ai_chance = { base = 1 }
	}
}

# Our Options
country_event = {
	id = iranian_focus.14
	title = iranian_focus.14.t
	desc = iranian_focus.14.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Ask for more oil
	option = {
		name = iranian_focus.14.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.14.a executed"
		set_country_flag = JOR_asked_for_oil
		PER = { country_event = iranian_focus.15 }
		ai_chance = { base = 1 }
	}

	# Ask for a shorter contract
	option = {
		name = iranian_focus.14.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.14.b executed"
		PER = { country_event = iranian_focus.16 }
		ai_chance = { base = 0 }
	}
}

# Jordan Requests More Oil
country_event = {
	id = iranian_focus.15
	title = iranian_focus.15.t
	desc = iranian_focus.15.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.15.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.15.a executed"
		210 = {
			add_resource = {
				type = oil
				amount = 5
			}
		}
		JOR = {
			country_event = {
				id = iranian_focus.12
				days = 1
			}
		}
		custom_effect_tooltip = PER_extra_year_TT
		add_to_variable = { var = PER_shale_contract value = -12 }
		clamp_variable = { var = PER_shale_contract min = 0 max = 120 }
		ai_chance = { base = 1 }
	}

	# No
	option = {
		name = iranian_focus.15.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.15.b executed"
		custom_effect_tooltip = PER_likely_backout_TT
		JOR = {
			set_country_flag = PER_rejected
			country_event = {
				id = iranian_focus.13
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}

# Jordan Requests Shorter Contract
country_event = {
	id = iranian_focus.16
	title = iranian_focus.16.t
	desc = iranian_focus.16.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.16.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.16.a executed"
		JOR = {
			country_event = {
				id = iranian_focus.12
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}

	# No
	option = {
		name = iranian_focus.16.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.16.b executed"
		custom_effect_tooltip = PER_likely_backout_TT
		JOR = {
			set_country_flag = PER_rejected
			country_event = {
				id = iranian_focus.13
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}

# End of Contract
country_event = {
	id = iranian_focus.17
	title = iranian_focus.17.t
	desc = iranian_focus.17.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.17.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.17.a executed"
		PER = { remove_resource_rights = 210 }
		JOR = { clr_country_flag = JOR_agreed_oil_shale }
		ai_chance = { base = 1 }
	}
}

# Jordan Backs Out of the Contract Early
country_event = {
	id = iranian_focus.18
	title = iranian_focus.18.t
	desc = iranian_focus.18.d
	picture = GFX_treaty
	is_triggered_only = yes

	# They did what?
	option = {
		name = iranian_focus.18.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.18.a executed"
		PER = {
			add_opinion_modifier = {
				target = JOR
				modifier = major_breach_of_trust
			}
			if = {
				limit = { has_dlc = "By Blood Alone" }
				send_embargo = JOR
			}
		}
		ai_chance = { base = 1 }
	}

	# Just let it go
	option = {
		name = iranian_focus.18.b
		ai_chance = { base = 0 }
	}
}

# Iran Offers Support in Combatting Terrorism in Central Asia

country_event = {
	id = iranian_focus.19
	title = iranian_focus.19.t
	desc = iranian_focus.19.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Sure
	option = {
		name = iranian_focus.19.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.19.a executed"
		PER = {
			country_event = {
				id = iranian_focus.20
				days = 2
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	# No
	option = {
		name = iranian_focus.19.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.19.b executed"
		PER = {
			country_event = {
				id = iranian_focus.21
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}
}
# United States Agrees
country_event = {
	id = iranian_focus.20
	title = iranian_focus.20.t
	desc = iranian_focus.20.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.20.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.20.a executed"
		if = {
			limit = { has_dlc = "La Resistance" }
			add_intel = {
				target = AFG
				civilian_intel = 70
				army_intel = 70
			}
			newline = yes
			add_intel = {
				target = TAJ
				civilian_intel = 55
				army_intel = 55
			}
			newline = yes
			add_intel = {
				target = KYR
				civilian_intel = 60
				army_intel = 60
			}
			newline = yes
			add_intel = {
				target = UZB
				civilian_intel = 45
				army_intel = 45
			}
			newline = yes
			add_doctrine_cost_reduction = {
				name = iranian_focus.20.t
				cost_reduction = 1.0
				uses = 2
				category = CAT_land_doctrine
			}
		}
		else = {
			set_temp_variable = { percent_change = 2 }
			set_temp_variable = { tag_index = PER }
			set_temp_variable = { influence_target = AFG }
			change_influence_percentage = yes
			newline = yes
			set_temp_variable = { percent_change = 2 }
			set_temp_variable = { tag_index = PER }
			set_temp_variable = { influence_target = TAJ }
			change_influence_percentage = yes
			newline = yes
			set_temp_variable = { percent_change = 2 }
			set_temp_variable = { tag_index = PER }
			set_temp_variable = { influence_target = KYR }
			change_influence_percentage = yes
		}
		newline = yes
		add_manpower = -5000
		ai_chance = { base = 1 }
	}
}
# United States Rejects
country_event = {
	id = iranian_focus.21
	title = iranian_focus.21.t
	desc = iranian_focus.21.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.21.a
		ai_chance = { base = 1 }
	}
}

# Iran Offers Kamikaze Drones
country_event = {
	id = iranian_focus.22
	title = iranian_focus.22.t
	desc = iranian_focus.22.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Sure
	option = {
		name = iranian_focus.22.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.22.a executed"
		PER = {
			country_event = {
				id = iranian_focus.23
				days = 2
			}
		}
		effect_tooltip = {
			send_equipment = {
				equipment = medium_plane_suicide_airframe
				amount = 3000
				target = SOV
			}
			newline = yes
			set_temp_variable = { percent_change = 2 }
			set_temp_variable = { tag_index = PER }
			set_temp_variable = { influence_target = SOV }
			change_influence_percentage = yes
			newline = yes
			add_doctrine_cost_reduction = {
				name = iranian_focus.22.t
				cost_reduction = 1.0
				uses = 2
				category = CAT_air_doctrine
			}
			newline = yes
			set_temp_variable = { treasury_change = 140.5 }
			modify_treasury_effect = yes
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 20
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	# No
	option = {
		name = iranian_focus.22.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.22.b executed"
		PER = {
			country_event = {
				id = iranian_focus.24
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.23
	title = iranian_focus.23.t
	desc = iranian_focus.23.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.23.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.23.a executed"
		send_equipment = {
			equipment = medium_plane_suicide_airframe
			amount = 3000
			target = SOV
		}
		newline = yes
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = SOV }
		change_influence_percentage = yes
		newline = yes
		add_doctrine_cost_reduction = {
			name = iranian_focus.23.t
			cost_reduction = 1.0
			uses = 2
			category = CAT_air_doctrine
		}
		newline = yes
		set_temp_variable = { treasury_change = 140.5 }
		modify_treasury_effect = yes
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.24
	title = iranian_focus.24.t
	desc = iranian_focus.24.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.24.a
		ai_chance = { base = 1 }
	}
}
# Our Suppliers
country_event = {
	id = iranian_focus.25
	title = iranian_focus.25.t
	desc = iranian_focus.25.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Russia - Ground Force
	option = {
		name = iranian_focus.25.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.25.a executed"
		SOV = {
			country_event = {
				id = iranian_focus.26
				days = 2
			}
		}
		custom_effect_tooltip = PER_willingness_to_accept_TT
		custom_effect_tooltip = PER_willingness_to_accept_strong_TT
		ai_chance = { base = 5 }
	}

	# United States - Air Force
	option = {
		name = iranian_focus.25.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.25.b executed"
		USA = {
			country_event = {
				id = iranian_focus.26
				days = 2
			}
		}
		custom_effect_tooltip = PER_willingness_to_accept_TT
		custom_effect_tooltip = PER_willingness_to_accept_low_TT
		ai_chance = { base = 1 }
	}

	# Germany - Armored Forces
	option = {
		name = iranian_focus.25.c
		log = "[GetDateText]: [This.GetName]: iranian_focus.25.c executed"
		GER = {
			country_event = {
				id = iranian_focus.26
				days = 2
			}
		}
		custom_effect_tooltip = PER_willingness_to_accept_TT
		custom_effect_tooltip = PER_willingness_to_accept_low_TT
		ai_chance = { base = 1 }
	}
}
# Iran Asks for Military Assistance
country_event = {
	id = iranian_focus.26
	title = iranian_focus.26.t
	desc = iranian_focus.26.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.26.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.26.a executed"
		PER = {
			country_event = {
				id = iranian_focus.27
				days = 2
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 10
				has_opinion = {
					target = PER
					value > 39
				}
			}
		}
	}

	# No
	option = {
		name = iranian_focus.26.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.26.b executed"
		PER = {
			country_event = {
				id = iranian_focus.28
				days = 2
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				OR = {
					original_tag = GER
					original_tag = USA
				}
				PER = { has_dynamic_modifier = { modifier = PER_us_sanctions } }
			}
		}
	}
}

# [FROM] Accepts!
country_event = {
	id = iranian_focus.27
	title = iranian_focus.27.t
	desc = iranian_focus.27.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.27.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.27.a executed"
		if = {
			limit = { FROM = { original_tag = SOV } }
			add_tech_bonus = {
				name = iranian_focus.27.t
				bonus = 0.5
				uses = 2
				category = CAT_artillery
			}
			newline = yes
			add_tech_bonus = {
				name = iranian_focus.27.t
				bonus = 0.5
				uses = 2
				category = CAT_util
			}
			newline = yes
			add_tech_bonus = {
				name = iranian_focus.27.t
				bonus = 0.5
				uses = 2
				category = CAT_inf_wep
			}
		}
		if = {
			limit = { FROM = { original_tag = USA } }
			if = {
				limit = { has_dlc = "By Blood Alone" }
				add_tech_bonus = {
					name = iranian_focus.27.t
					bonus = 1
					uses = 1
					category = CAT_air_engine
				}
				newline = yes
				add_tech_bonus = {
					name = iranian_focus.27.t
					bonus = 1
					uses = 1
					category = CAT_air_ground_weapons
				}
				newline = yes
				add_tech_bonus = {
					name = iranian_focus.27.t
					bonus = 1
					uses = 1
					category = CAT_air_countermeasures
				}
			}
			else = {
				add_tech_bonus = {
					name = iranian_focus.27.t
					bonus = 1
					uses = 3
					category = CAT_air_eqp
				}
			}
		}
		if = {
			limit = { FROM = { original_tag = GER } }
			add_tech_bonus = {
				name = iranian_focus.27.t
				bonus = 2
				uses = 1
				category = CAT_tanks
			}
			newline = yes
			add_tech_bonus = {
				name = iranian_focus.27.t
				bonus = 2
				uses = 1
				category = CAT_apc
			}
			newline = yes
			add_tech_bonus = {
				name = iranian_focus.27.t
				bonus = 2
				uses = 1
				category = CAT_ifv
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.28
	title = iranian_focus.28.t
	desc = iranian_focus.28.d
	picture = GFX_politics_surveillence
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.28.a
		ai_chance = { base = 1 }
	}
}

# Prominent Commander Rises
country_event = {
	id = iranian_focus.29
	title = iranian_focus.29.t
	desc = iranian_focus.29.d
	picture = GFX_Military_Reform
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.29.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.29.a executed"
		custom_effect_tooltip = PER_samadi_is_promoted_TT
		set_country_flag = PER_samadi
		ai_chance = { base = 1 }
	}

	# He might cause us problems
	option = {
		name = iranian_focus.29.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.29.b executed"
		navy_experience = 200
		ai_chance = { base = 1 }
	}
}
# Iran Would Like to Purchase Su-35's
country_event = {
	id = iranian_focus.30
	title = iranian_focus.30.t
	desc = iranian_focus.30.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.30.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.30.a executed"
		custom_effect_tooltip = PER_effect_if_we_accept_TT
		effect_tooltip = {
			set_temp_variable = { percent_change = 5 }
			set_temp_variable = { tag_index = SOV }
			set_temp_variable = { influence_target = PER }
			change_influence_percentage = yes
			newline = yes
			if = {
				limit = { has_dlc = "By Blood Alone" }
				add_equipment_to_stockpile = {
					type = medium_plane_airframe_2
					variant_name = "Su-30"
					producer = SOV
					amount = -40
				}
				PER = {
					add_equipment_to_stockpile = {
						type = medium_plane_airframe_2
						variant_name = "Su-30"
						amount = 40
						producer = SOV
					}
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = MR_Fighter2
					producer = SOV
					amount = -40
				}
				PER = {
					add_equipment_to_stockpile = {
						type = MR_Fighter2
						amount = 40
						producer = SOV
					}
				}
			}
			newline = yes
			set_temp_variable = { treasury_change = 54.65 }
			modify_treasury_effect = yes
		}
		PER = {
			country_event = {
				id = iranian_focus.31
				days = 1
			}
		}
		ai_chance = {
			base = 3
			modifier = {
				add = 20
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	# No
	option = {
		name = iranian_focus.30.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.30.b executed"
		PER = {
			country_event = {
				id = iranian_focus.32
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = -20
				has_war_with = PER
			}
		}
	}
}
# Russia Accepts
country_event = {
	id = iranian_focus.31
	title = iranian_focus.31.t
	desc = iranian_focus.31.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.31.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.31.a executed"
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		newline = yes
		if = {
			limit = { has_dlc = "By Blood Alone" }
			SOV = {
				add_equipment_to_stockpile = {
					type = medium_plane_airframe_2
					variant_name = "Su-30"
					producer = SOV
					amount = -40
				}
			}
			add_equipment_to_stockpile = {
				type = medium_plane_airframe_2
				variant_name = "Su-30"
				amount = 40
				producer = SOV
			}
		}
		else = {
			SOV = {
				add_equipment_to_stockpile = {
					type = MR_Fighter2
					producer = SOV
					amount = -40
				}
			}
			add_equipment_to_stockpile = {
				type = MR_Fighter2
				amount = 40
				producer = SOV
			}
		}
		newline = yes
		set_temp_variable = { treasury_change = -54.65 }
		modify_treasury_effect = yes
		hidden_effect = {
			SOV = {
				set_temp_variable = { treasury_change = 54.65 }
				modify_treasury_effect = yes
			}
		}
		ai_chance = { base = 1 }
	}
}
# Russia Rejects
country_event = {
	id = iranian_focus.32
	title = iranian_focus.32.t
	desc = iranian_focus.32.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	# Okay
	option = {
		name = iranian_focus.32.a
		ai_chance = { base = 1 }
	}
}

# Science & Islam

country_event = {
	id = iranian_focus.33
	title = iranian_focus.33.t
	desc = iranian_focus.33.d
	picture = GFX_computer
	is_triggered_only = yes

	option = {
		name = iranian_focus.33.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.33.a executed"
		add_tech_bonus = {
			name = iranian_focus.33.t
			bonus = 0.5
			uses = 2
			category = CAT_genes
		}
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_health_cost = -0.05 tooltip = health_cost_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.33.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.33.b executed"
		add_tech_bonus = {
			name = iranian_focus.33.t
			bonus = 0.5
			uses = 2
			category = CAT_industry
		}
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.33.c
		log = "[GetDateText]: [This.GetName]: iranian_focus.33.c executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_welfare_cost = -0.05 tooltip = social_cost_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}
}

# Rudāba PT1

country_event = {
	id = iranian_focus.34
	title = iranian_focus.34.t
	desc = iranian_focus.34.d
	picture = GFX_PER_Iranian_police_loom_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.34.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.35
	title = iranian_focus.35.t
	desc = iranian_focus.35.d
	picture = GFX_election_day
	is_triggered_only = yes

	option = {
		name = iranian_focus.35.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.35.a executed"
		set_temp_variable = { party_index = 8 }
		set_temp_variable = { party_popularity_increase = 0.1 }
		change_relative_party_popularity = yes
		PER_scripted_effect_update_principalists_popularity_variable = yes
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.35.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.35.b executed"
		set_temp_variable = { party_index = 9 }
		set_temp_variable = { party_popularity_increase = 0.1 }
		change_relative_party_popularity = yes
		PER_scripted_effect_update_principalists_popularity_variable = yes
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.36
	title = iranian_focus.36.t
	desc = iranian_focus.36.d
	picture = GFX_election_day
	is_triggered_only = yes

	option = {
		name = iranian_focus.36.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.36.a executed"
		set_temp_variable = { party_index = 8 }
		set_temp_variable = { party_popularity_increase = 0.2 }
		change_relative_party_popularity = yes
		PER_scripted_effect_update_principalists_popularity_variable = yes
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.36.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.36.b executed"
		set_temp_variable = { party_index = 9 }
		set_temp_variable = { party_popularity_increase = 0.2 }
		change_relative_party_popularity = yes
		PER_scripted_effect_update_principalists_popularity_variable = yes
		ai_chance = { base = 1 }
	}
}

# Participation of Loyal-Opposition Groups in the Majles
country_event = {
	id = iranian_focus.37
	title = iranian_focus.37.t
	desc = iranian_focus.37.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.37.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.37.a executed"
		custom_effect_tooltip = PER_unban_loyal_groups_TT
		set_temp_variable = { party_index = 12 }
		unban_party_scripted_call = yes
		set_temp_variable = { party_index = 14 }
		unban_party_scripted_call = yes
		set_temp_variable = { party_index = 15 }
		unban_party_scripted_call = yes
		set_temp_variable = { party_index = 16 }
		unban_party_scripted_call = yes
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.37.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.37.b executed"
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = 0.05
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				is_historical_focus_on = yes
			}
		}
	}
}

# Managing Student Opposition
country_event = {
	id = iranian_focus.38
	title = iranian_focus.38.t
	desc = iranian_focus.38.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.38.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.38.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_police_cost_multiplier_modifier = -0.02 tooltip = police_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_education_cost_multiplier_modifier = -0.02 tooltip = education_cost_multiplier_modifier_tt }
		newline = yes
		add_popularity = {
			ideology = neutrality
			popularity = 0.03
		}
		newline = yes
		add_popularity = {
			ideology = democratic
			popularity = 0.03
		}
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = -0.05
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.38.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.38.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.05 tooltip = research_speed_factor_tt }
		newline = yes
		add_to_variable = { PER_productivity_growth = 0.05 tooltip = productivity_growth_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_education_cost_multiplier_modifier = 0.05 tooltip = education_cost_multiplier_modifier_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = 0.05
		}
		ai_chance = { base = 1 }
	}
}

# A New Era of Iranian Politics
country_event = {
	id = iranian_focus.39
	title = iranian_focus.39.t
	desc = iranian_focus.39.d
	picture = GFX_ayatollah_dictatorship
	is_triggered_only = yes

	option = {
		name = iranian_focus.39.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.39.a executed"
		custom_effect_tooltip = PER_ayatollah_TT
		set_country_flag = PER_stop_elections
		hidden_effect = {
			news_event = {
				id = iranian_focus.391
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}
news_event = {
	id = iranian_focus.391
	title = iranian_focus.391.t
	desc = iranian_focus.391.d
	picture = GFX_ayatollah_dictatorship_world
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_focus.391.a
		ai_chance = { base = 1 }
	}
}

#IRGC Coup FMI tree
country_event = {
	id = iranian_focus.40
	title = iranian_focus.40.t
	desc = iranian_focus.40.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.40.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.40.a executed"
		set_temp_variable = { rul_party_temp = 6 }
		set_temp_variable = { disable_elections = 0 }
		change_ruling_party_effect = yes
		newline = yes
		set_temp_variable = { party_index = 6 }
		set_temp_variable = { party_popularity_increase = 0.15 }
		set_temp_variable = { temp_outlook_increase = 0.15 }
		change_relative_party_popularity = yes
		hidden_effect = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = PER_revenge_flag
		}
		ai_chance = { base = 1 }
	}
}

# Iran Wants to Normalize Relations
country_event = {
	id = iranian_focus.41
	title = iranian_focus.41.t
	desc = iranian_focus.41.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = {
		name = iranian_focus.41.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.41.a executed"
		PER = {
			country_event = {
				id = iranian_focus.42
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				PER = { has_completed_focus = PER_ansar_allah }
			}
		}
	}

	option = {
		name = iranian_focus.41.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.41.b executed"
		remove_opinion_modifier = { target = PER modifier = hostile_status }
		remove_opinion_modifier = { target = PER modifier = oppresses_sunni }
		remove_opinion_modifier = { target = PER modifier = strategic_rivals }
		PER = {
			country_event = {
				id = iranian_focus.43
				days = 1
			}
		}
		country_event = SAU_events.402
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.42
	title = iranian_focus.42.t
	desc = iranian_focus.42.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.42.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.42.a executed"
		complete_national_focus = PER_usurpers_of_mecca
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.43
	title = iranian_focus.43.t
	desc = iranian_focus.43.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.43.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.43.a executed"
		add_opinion_modifier = {
			target = SAU
			modifier = recent_actions_very_positive
		}
		remove_opinion_modifier = {
			target = SAU
			modifier = hostile_status
		}
		remove_opinion_modifier = {
			target = SAU
			modifier = oppresses_shiites
		}
		remove_opinion_modifier = {
			target = SAU
			modifier = strategic_rivals
		}
		ai_chance = { base = 1 }
	}
}

# Iran Wants to Formalize a Non-Aggro Pact
country_event = {
	id = iranian_focus.44
	title = iranian_focus.44.t
	desc = iranian_focus.44.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.44.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.44.a executed"
		PER = {
			country_event = {
				id = iranian_focus.45
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				PER = { has_completed_focus = PER_ansar_allah }
			}
		}
	}

	option = {
		name = iranian_focus.44.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.44.b executed"
		set_country_flag = SAU_be_nice_to_iran
		PER = {
			country_event = {
				id = iranian_focus.46
				days = 1
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.45
	title = iranian_focus.45.t
	desc = iranian_focus.45.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.45.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.46
	title = iranian_focus.46.t
	desc = iranian_focus.46.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.46.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.46.a executed"
		diplomatic_relation = {
			country = SAU
			relation = non_aggression_pact
			active = yes
		}
		ai_chance = { base = 1 }
	}
}

# Iran Wants to Form a Mutual Defense Pact
country_event = {
	id = iranian_focus.47
	title = iranian_focus.47.t
	desc = iranian_focus.47.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.47.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.47.a executed"
		PER = {
			country_event = {
				id = iranian_focus.48
				days = 1
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				PER = { has_completed_focus = PER_ansar_allah }
			}
		}
	}

	option = {
		name = iranian_focus.47.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.47.b executed"
		diplomatic_relation = {
			country = PER
			relation = guarantee
			active = yes
		}
		PER = {
			country_event = {
				id = iranian_focus.49
				days = 1
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.48
	title = iranian_focus.48.t
	desc = iranian_focus.48.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.48.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.49
	title = iranian_focus.49.t
	desc = iranian_focus.49.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.49.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.49.a executed"
		diplomatic_relation = {
			country = SAU
			relation = guarantee
			active = yes
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Iran asks us for Leapord Tanks
	id = iranian_focus.50
	title = iranian_focus.50.t
	desc = iranian_focus.50.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	option = { # Yes
		name = iranian_focus.50.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.50.a executed"
		set_temp_variable = { percent_change = 3 }
		set_temp_variable = { tag_index = GER }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		PER = {
			country_event = {
				id = iranian_focus.51
				days = 1
			}
		}
		if = {
			limit = { has_dlc = "No Step Back" }
			set_temp_variable = { treasury_change = 35.29 }
			modify_treasury_effect = yes
			PER = {
				set_temp_variable = { treasury_change = -35.29 }
				modify_treasury_effect = yes
				add_equipment_to_stockpile = {
					type = medium_tank_chassis_1
					variant_name = "Leopard 2A5"
					amount = 100
					producer = GER
				}
			}
			GER = {
				add_equipment_to_stockpile = {
					type = medium_tank_chassis_1
					variant_name = "Leopard 2A5"
					amount = -100
					producer = GER
				}
			}
		}
		else = {
			set_temp_variable = { treasury_change = 35.29 }
			modify_treasury_effect = yes
			PER = {
				set_temp_variable = { treasury_change = -35.29 }
				modify_treasury_effect = yes
				add_equipment_to_stockpile = {
					type = MBT_1
					amount = 100
					producer = GER
				}
			}
			GER = {
				add_equipment_to_stockpile = {
					type = MBT_1
					amount = -100
					producer = GER
				}
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = PER value > 20 }
				add = 20
			}
		}
	}

	option = { # No
		name = iranian_focus.50.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.50.b executed"
		PER = {
			country_event = {
				id = iranian_focus.52
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = PER value < 20 }
				add = 20
			}
		}
	}
}

country_event = { # X Country accepted
	id = iranian_focus.51
	title = iranian_focus.51.t
	desc = iranian_focus.51.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	option = { # Great
		name = iranian_focus.51.a
		ai_chance = {
			base = 3
		}
	}
}

country_event = { # X Country rejected
	id = iranian_focus.52
	title = iranian_focus.52.t
	desc = iranian_focus.52.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	option = { # Great
		name = iranian_focus.52.a
		ai_chance = {
			base = 3
		}
	}
}

country_event = { # Iran asks us for Jets
	id = iranian_focus.53
	title = iranian_focus.53.t
	desc = iranian_focus.53.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # Yes
		name = iranian_focus.53.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.53.a executed"
		set_temp_variable = { percent_change = 3 }
		set_temp_variable = { tag_index = FRA }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		PER = {
			set_temp_variable = { treasury_change = -47.89 }
			modify_treasury_effect = yes
			if = {
				limit = { has_dlc = "By Blood Alone" }
				add_equipment_to_stockpile = {
					type = medium_plane_fighter_airframe_2
					amount = 45
					variant_name = "Rafale C"
					producer = FRA
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = MR_Fighter2
					amount = 45
					producer = FRA
				}
			}
		}
		FRA = {
			set_temp_variable = { treasury_change = 47.89 }
			modify_treasury_effect = yes
			if = {
				limit = { has_dlc = "By Blood Alone" }
				add_equipment_to_stockpile = {
					type = medium_plane_fighter_airframe_2
					amount = -45
					variant_name = "Rafale C"
					producer = FRA
				}
			}
			else = {
				add_equipment_to_stockpile = {
					type = MR_Fighter4
					amount = -45
					producer = FRA
				}
			}
		}
		set_temp_variable = { treasury_change = 47.89 }
		modify_treasury_effect = yes
		PER = {
			country_event = {
				id = iranian_focus.52
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = PER value > 20 }
				add = 20
			}
		}
	}

	option = { # No
		name = iranian_focus.53.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.53.b executed"
		PER = {
			country_event = {
				id = iranian_focus.51
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = PER value < 20 }
				add = 20
			}
		}
	}
}

# Iran Invites Us to CENTO (Generic)
country_event = {
	id = iranian_focus.54
	title = iranian_focus.54.t
	desc = iranian_focus.54.d
	picture = GFX_cento_event
	is_triggered_only = yes

	# It is a good idea
	option = {
		name = iranian_focus.54.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.54.a executed"
		PER = {
			country_event = {
				id = iranian_focus.55
				days = 2
			}
		}
		news_event = {
			id = iranian_focus.57
			days = 2
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 20
				has_opinion = {
					target = PER
					value > 39
				}
			}
		}
	}

	# Horrible idea
	option = {
		name = iranian_focus.54.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.54.b executed"
		PER = {
			country_event = {
				id = iranian_focus.56
				days = 2
			}
		}
		ai_chance = { base = 1 }
	}
}

# X Country Accepts CENTO Invitation
country_event = {
	id = iranian_focus.55
	title = iranian_focus.55.t
	desc = iranian_focus.55.d
	picture = GFX_cento_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.55.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.55.a executed"
		custom_effect_tooltip = PER_cento_expand_TT
		hidden_effect = {
			FROM = {
				leave_faction = yes
				if = {
					limit = { has_idea = NATO_member }
					remove_ideas = NATO_member
				}
				else_if = {
					limit = { has_idea = CSTO_member }
					remove_ideas = CSTO_member
				}
				add_ideas = faction_cento_alliance
			}
			add_to_faction = FROM
		}
		ai_chance = { base = 1 }
	}
}

# X Country Refuses CENTO Invitation
country_event = {
	id = iranian_focus.56
	title = iranian_focus.56.t
	desc = iranian_focus.56.d
	picture = GFX_cento_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.56.a
		ai_chance = { base = 1 }
	}
}

# Global Event
news_event = {
	id = iranian_focus.57
	title = iranian_focus.57.t
	desc = iranian_focus.57.d
	picture = GFX_cento_world
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_focus.57.a
		ai_chance = { base = 1 }
	}
}

# Uprising in South Azerbaijan
country_event = {
	id = iranian_focus.58
	title = iranian_focus.58.t
	desc = iranian_focus.58.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# We stand with South Azerbaijan
	option = {
		name = iranian_focus.58.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.58.a executed"
		trigger = {
			NOT = {
				original_tag = PER
			}
		}
		set_country_flag = PER_SAZ_rebellion # Will send volunteers to SAZ
		add_relation_modifier = {
			target = SAZ
			modifier = generic_increased_military_support
		}
		hidden_effect = {
			increase_intervention_law_effect = yes
		}
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				NOT = {
					has_idea = faction_cento_alliance
				}
			}
			modifier = {
				add = 10
				has_war_with = PER
			}
		}
	}

	# We stand with Iran
	option = {
		name = iranian_focus.58.b
		trigger = { NOT = { original_tag = PER } }
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				has_idea = faction_cento_alliance
			}
			modifier = {
				add = 10
				is_subject_of = PER
			}
		}
	}

	option = {
		name = iranian_focus.58.c
		log = "[GetDateText]: [This.GetName]: iranian_focus.58.c executed"
		custom_effect_tooltip = PER_hold_TT
		hidden_effect = {
			activate_mission = PER_rebellion_in_azerbaijan
			SAZ = {
				declare_war_on = {
					target = PER
					type = liberate_wargoal
				}
			}
		}
		trigger = { original_tag = PER }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.58.c1
		log = "[GetDateText]: [This.GetName]: iranian_focus.58.c1 executed"
		set_country_flag = PER_attack_later
		custom_effect_tooltip = PER_attack_them_later_TT
		trigger = { original_tag = PER }
		ai_chance = { base = 1 }
	}
}

# Uprising in Balochistan
country_event = {
	id = iranian_focus.59
	title = iranian_focus.59.t
	desc = iranian_focus.59.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# We stand with South Azerbaijan
	option = {
		name = iranian_focus.59.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.59.a executed"
		trigger = {
			NOT = {
				original_tag = PER
			}
		}
		set_country_flag = PER_BLC_rebellion # Will send volunteers to BLC
		add_relation_modifier = {
			target = BLC
			modifier = generic_increased_military_support
		}
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				NOT = {
					has_idea = faction_cento_alliance
				}
			}
			modifier = {
				add = 10
				has_war_with = PER
			}
		}
	}

	# We stand with Iran
	option = {
		name = iranian_focus.59.b
		trigger = { NOT = { original_tag = PER } }
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				has_idea = faction_cento_alliance
			}
			modifier = {
				add = 10
				is_subject_of = PER
			}
		}
	}

	option = {
		name = iranian_focus.59.c
		log = "[GetDateText]: [This.GetName]: iranian_focus.59.c executed"
		custom_effect_tooltip = PER_hold_TT
		trigger = { original_tag = PER }
		ai_chance = { base = 1 }
	}
}

# Uprising in Kordestan

country_event = {
	id = iranian_focus.60
	title = iranian_focus.60.t
	desc = iranian_focus.60.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# We stand with South Azerbaijan
	option = {
		name = iranian_focus.60.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.60.a executed"
		trigger = { NOT = { original_tag = PER } }
		add_relation_modifier = {
			target = IKR
			modifier = generic_increased_military_support
		}
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				NOT = { has_idea = faction_cento_alliance }
			}
			modifier = {
				add = 10
				has_war_with = PER
			}
		}
	}

	# We stand with Iran
	option = {
		name = iranian_focus.60.b
		trigger = { NOT = { original_tag = PER } }
		ai_chance = {
			base = 0
			modifier = {
				add = 10
				has_idea = faction_cento_alliance
			}
			modifier = {
				add = 10
				is_subject_of = PER
			}
		}
	}

	option = {
		name = iranian_focus.60.c
		log = "[GetDateText]: [This.GetName]: iranian_focus.60.c executed"
		custom_effect_tooltip = PER_hold_TT
		trigger = { original_tag = PER }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.61
	title = iranian_focus.61.t
	desc = iranian_focus.61.d
	picture = GFX_corvette
	is_triggered_only = yes

	# Sure
	option = {
		name = iranian_focus.61.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.61.a executed"
		PER = { country_event = iranian_focus.62 }
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = PER value > 0 }
				add = 50
			}
		}
	}

	# No
	option = {
		name = iranian_focus.61.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.61.b executed"
		PER = { country_event = iranian_focus.63 }
		ai_chance = { base = 5 }
	}
}
country_event = {
	id = iranian_focus.62
	title = iranian_focus.62.t
	desc = iranian_focus.62.d
	picture = GFX_corvette
	is_triggered_only = yes

	# ok
	option = {
		name = iranian_focus.62.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.62.a executed"
		create_ship = {
			type = carrier_hull_1
			equipment_variant = "Enterprise Class"
			creator = USA
			name = "IRIS Koroush"
		}
		newline = yes
		create_ship = {
			type = cruiser_hull_2
			equipment_variant = "Ticonderoga Class - Mark 26 Twin-Arm Missile Variant"
			creator = USA
			name = "IRIS Azadi"
		}
		newline = yes
		create_ship = {
			type = cruiser_hull_2
			equipment_variant = "Ticonderoga Class - Mark 26 Twin-Arm Missile Variant"
			creator = USA
			name = "IRIS Piroozi"
		}
		newline = yes
		create_ship = {
			type = cruiser_hull_2
			equipment_variant = "Ticonderoga Class - Mark 26 Twin-Arm Missile Variant"
			creator = USA
			name = "IRIS Shoja"
		}
		newline = yes
		set_temp_variable = { treasury_change = -140 }
		modify_treasury_effect = yes
		newline = yes
		set_temp_variable = { percent_change = 3 }
		set_temp_variable = { tag_index = USA }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		ai_chance = { base = 5 }
	}
}
country_event = {
	id = iranian_focus.63
	title = iranian_focus.63.t
	desc = iranian_focus.63.d
	picture = GFX_corvette
	is_triggered_only = yes

	# ok
	option = {
		name = iranian_focus.63.a
		ai_chance = { base = 5 }
	}
}

# Iran Wants to Re-Open the American Embassy
country_event = {
	id = iranian_focus.64
	title = iranian_focus.64.t
	desc = iranian_focus.64.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Absolutely!
	option = {
		name = iranian_focus.64.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.64.a executed"
		set_country_flag = USA_iranian_friendship
		custom_effect_tooltip = PER_all_negative_modifiers_TT
		set_temp_variable = { percent_change = 2.00 }
		set_temp_variable = { tag_index = USA }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		hidden_effect = {
			USA = {
				remove_opinion_modifier = {
					target = PER
					modifier = beirut_bombing
				}
				remove_opinion_modifier = {
					target = PER
					modifier = no_diplomatic_ties
				}
			}
			PER = {
				remove_opinion_modifier = {
					target = USA
					modifier = no_diplomatic_ties
				}
				remove_opinion_modifier = {
					target = USA
					modifier = cia_coup_mossadeq
				}
				remove_opinion_modifier = {
					target = USA
					modifier = operation_praying_mantis
				}
				remove_opinion_modifier = {
					target = USA
					modifier = helped_iraqi_chemical_weapons
				}
				remove_opinion_modifier = {
					target = USA
					modifier = uss_vincennes
				}
			}
			USA = {
				remove_opinion_modifier = {
					target = PER
					modifier = iran_hostage_crisis
				}
			}
		}
		PER = {
			country_event = {
				id = iranian_focus.65
				days = 1
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 50
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	# We are no friend of yours, Iran
	option = {
		name = iranian_focus.64.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.64.b executed"
		PER = {
			country_event = {
				id = iranian_focus.66
				days = 1
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.65
	title = iranian_focus.65.t
	desc = iranian_focus.65.d
	picture = GFX_treaty
	is_triggered_only = yes

	# Great
	option = {
		name = iranian_focus.65.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.65.a executed"
		custom_effect_tooltip = PER_all_negative_modifiers_TT
		newline = yes
		custom_effect_tooltip = PER_agree_to_hand_off2_TT
		if = {
			limit = { USA = { is_ai = yes } }
			newline = yes
			custom_effect_tooltip = PER_USA_ai_better_TT
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.66
	title = iranian_focus.66.t
	desc = iranian_focus.66.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	# Ok
	option = {
		name = iranian_focus.66.a
		ai_chance = { base = 5 }
	}
}

news_event = {
	id = iranian_focus.67
	title = iranian_focus.67.t
	desc = iranian_focus.67.d
	picture = GFX_news_Hatay
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_focus.67.a
		trigger = {
			NOT = {
				OR = {
					original_tag = SOV
					original_tag = SYR
				}
			}
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.67.b
		trigger = {
			OR = {
				original_tag = SOV
				original_tag = SYR
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.68
	title = iranian_focus.68.t
	desc = iranian_focus.68.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.68.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.68.a executed"
		if = {
			limit = { has_global_flag = GAME_RULE_allow_colored_puppets }
			set_autonomy = {
				target = FSA
				autonomy_state = autonomy_associated_state_colored
			}
		}
		else = {
			set_autonomy = {
				target = FSA
				autonomy_state = autonomy_associated_state
			}
		}
		FSA = {
			annex_country = { target = SYR }
			set_temp_variable = { rul_party_temp = 12 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Burhan Ghalioun"
				picture = "Burhan_Ghalioun.dds"
				expire = "2050.1.1"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Muslim_Brotherhood
				}
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.69
	title = iranian_focus.69.t
	desc = iranian_focus.69.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.69.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.69.a executed"
		add_relation_modifier = {
			target = FSA
			modifier = generic_increased_military_support
		}
		set_country_flag = CENTO_intervention_in_syria
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.69.b
		ai_chance = { base = 1 }
	}
}

news_event = {
	id = iranian_focus.70
	title = iranian_focus.70.t
	desc = iranian_focus.70.d
	picture = GFX_cento_world
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_focus.70.a
		trigger = {
			NOT = {
				OR = {
					original_tag = SYR
					original_tag = SOV
					original_tag = CHI
				}
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.70.b
		trigger = {
			OR = {
				original_tag = SYR
				original_tag = SOV
				original_tag = CHI
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.71
	title = iranian_focus.71.t
	desc = iranian_focus.71.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.71.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.71.a executed"
		custom_effect_tooltip = TT_IF_WE_ACCEPT
		effect_tooltip = {
			PER = { declare_war_on = { target = HEZ type = annex_everything } }
			declare_war_on = { target = HEZ type = annex_everything }
		}
		PER = {
			country_event = {
				id = iranian_focus.72
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = { target = PER value > 20 }
				add = 20
			}
		}
	}

	option = {
		name = iranian_focus.71.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.71.b executed"
		custom_effect_tooltip = TT_IF_WE_DECLINE
		effect_tooltip = {
			PER = {
				set_temp_variable = { wargoal_on = HEZ }
				set_temp_variable = { wargoal_type = 1 }
				add_threat_from_wargoal_effect = yes
				create_wargoal = { target = HEZ type = liberate_wargoal }
			}
		}
		PER = {
			country_event = {
				id = iranian_focus.73
				days = 1
			}
		}
		ai_chance = {
			base = 0
			modifier = {
				has_opinion = { target = PER value < 20 }
				add = 20
			}
		}
	}
}

country_event = {
	id = iranian_focus.72
	title = iranian_focus.72.t
	desc = iranian_focus.72.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.72.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.72.a executed"
		PER = {
			declare_war_on = {
				target = HEZ
				type = annex_everything
			}
		}
		LEB = {
			declare_war_on = {
				target = HEZ
				type = annex_everything
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.73
	title = iranian_focus.73.t
	desc = iranian_focus.73.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.73.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.73.a executed"
		PER = {
			set_temp_variable = { wargoal_on = HEZ }
			set_temp_variable = { wargoal_type = 1 }
			add_threat_from_wargoal_effect = yes
			create_wargoal = {
				target = HEZ
				type = liberate_wargoal
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.74
	title = iranian_focus.74.t
	desc = iranian_focus.74.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = iranian_focus.74.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.74.a executed"
		hidden_effect = { PER = { country_event = iranian_focus.75 } }
		effect_tooltip = {
			custom_effect_tooltip = PER_kill_IRGC_TT
			hidden_effect = {
				retire_character = HEZ_qasem_soleimani
				retire_character = HEZ_mostafa_izadi
				retire_character = HEZ_ali_najafi
				retire_character = HEZ_mohammad_jafari
			}
			newline = yes
			add_war_support = -0.10
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.75
	title = iranian_focus.75.t
	desc = iranian_focus.75.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = iranian_focus.75.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.75.a executed"
		clr_country_flag = PER_strike_hez_1_year
		HEZ = {
			custom_effect_tooltip = PER_kill_IRGC_TT
			hidden_effect = {
				retire_character = HEZ_qasem_soleimani
				retire_character = HEZ_mostafa_izadi
				retire_character = HEZ_ali_najafi
				retire_character = HEZ_mohammad_jafari
			}
			newline = yes
			add_war_support = -0.10
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.76
	is_triggered_only = yes
	hidden = yes

	immediate = { clr_country_flag = PER_strike_hez_1_year }
}

country_event = { #The Persian Gulf
	id = iranian_focus.77
	title = iranian_focus.77.t
	desc = iranian_focus.77.d
	picture = GFX_carrier2
	is_triggered_only = yes

	option = { #No One!
		name = iranian_focus.77.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.77.a executed"
		set_temp_variable = { treasury_change = gdp_total }
		multiply_temp_variable = { treasury_change = 0.05 }
		modify_treasury_effect = yes
		newline = yes
		add_named_threat = {
			threat = 2
			name = "Iran enforces taxation in the Gulf!"
		}
		ai_chance = {
			base = 10
		}
	}

	option = { #Okay
		name = iranian_focus.77.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.77.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_dockyard_income_tax_modifier = 0.05 tooltip = dockyard_income_tax_modifier_tt }
		newline = yes
		add_to_variable = { PER_industrial_capacity_dockyard = 0.05 tooltip = industrial_capacity_dockyard_tt }
		newline = yes
		ai_chance = {
			base = 10
		}
	}
}

news_event = {
	id = iranian_focus.78
	title = iranian_focus.78.t
	desc = iranian_focus.78.d
	picture = GFX_ardabil_conference
	is_triggered_only = yes
	major = yes

	option = { name = iranian_focus.78.a }
}

news_event = {
	id = iranian_focus.781
	title = iranian_focus.781.t
	desc = iranian_focus.781.d
	picture = GFX_civil_war_world
	is_triggered_only = yes
	major = yes

	option = { name = iranian_focus.781.a }
}

country_event = {
	id = iranian_focus.79
	title = iranian_focus.79.t
	desc = iranian_focus.79.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # Fine
		name = iranian_focus.79.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.79.a executed"
		if = {
			limit = {
				original_tag = KUW
			}
			KUW = {
				give_resource_rights = { receiver = PER state = 172 }
			}
		}
		if = {
			limit = {
				original_tag = UAE
			}
			UAE = {
				give_resource_rights = { receiver = PER state = 180 resources = { oil } }
				give_resource_rights = { receiver = PER state = 179 resources = { oil } }
			}
		}
		PER = {
			country_event = iranian_focus.80
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 20
				is_in_faction = no
			}
		}
	}

	option = { # No
		name = iranian_focus.79.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.79.b executed"
		PER = {
			country_event = iranian_focus.81
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 20
				is_in_faction = yes
			}
			modifier = {
				add = 10
				is_guaranteed_by = SAU
			}
			modifier = {
				add = 10
				is_guaranteed_by = USA
			}
		}
	}
}

country_event = {
	id = iranian_focus.80
	title = iranian_focus.80.t
	desc = iranian_focus.80.d
	picture = GFX_generic_grain_silo
	is_triggered_only = yes

	option = {
		name = iranian_focus.80.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.81
	title = iranian_focus.81.t
	desc = iranian_focus.81.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.81.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.81.a executed"
		set_temp_variable = { wargoal_on = FROM }
		set_temp_variable = { wargoal_type = 1 }
		add_threat_from_wargoal_effect = yes
		create_wargoal = {
			target = FROM
			type = liberate_wargoal
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.82
	title = iranian_focus.82.t
	desc = iranian_focus.82.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.82.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.82.a executed"
		425 = { transfer_state_to = PER }
		newline = yes
		486 = { transfer_state_to = PER }
		PER = {
			country_event = {
				id = iranian_focus.83
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 20
				is_in_faction = no
			}
		}
	}

	option = {
		name = iranian_focus.82.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.82.b executed"
		PER = {
			country_event = {
				id = iranian_focus.81
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 20
				is_in_faction = yes
			}
			modifier = {
				add = 10
				is_guaranteed_by = SAU
			}
			modifier = {
				add = 10
				is_guaranteed_by = USA
			}
		}
	}
}

country_event = {
	id = iranian_focus.83
	title = iranian_focus.83.t
	desc = iranian_focus.83.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.83.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.84
	title = iranian_focus.84.t
	desc = iranian_focus.84.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.84.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.84.a executed"
		effect_tooltip = {
			PER = {
				set_autonomy = {
					target = QAT
					autonomy_state = autonomy_puppet_state
					end_wars = no
				}
			}
		}
		PER = {
			country_event = {
				id = iranian_focus.85
				days = 1
			}
		}
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.84.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.84.b executed"
		PER = {
			country_event = {
				id = iranian_focus.81
				days = 1
			}
		}
		ai_chance = {
			base = 3
			modifier = {
				add = 20
				is_in_faction = yes
			}
			modifier = {
				add = 10
				is_guaranteed_by = SAU
			}
			modifier = {
				add = 10
				is_guaranteed_by = USA
			}
		}
	}
}

country_event = {
	id = iranian_focus.85
	title = iranian_focus.85.t
	desc = iranian_focus.85.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.85.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.85.a executed"
		set_autonomy = {
			target = QAT
			autonomy_state = autonomy_puppet_state
			end_wars = no
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.86
	title = iranian_focus.86.t
	desc = iranian_focus.86.d
	picture = GFX_ahmad_shah_massoud
	is_triggered_only = yes

	option = { #A lot of support
		name = iranian_focus.86.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.86.a executed"
		AFG = {
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 3500
			}
			add_equipment_to_stockpile = {
				type = cnc_equipment_2
				amount = 600
			}
			add_equipment_to_stockpile = {
				type = artillery_0
				amount = 400
			}
			add_equipment_to_stockpile = {
				type = Anti_tank_0
				amount = 300
			}
			add_equipment_to_stockpile = {
				type = Anti_Air_0
				amount = 300
			}
		}
		set_temp_variable = { percent_change = 7 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = AFG }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -30 }
		modify_treasury_effect = yes
	}

	option = { #Moderate support
		name = iranian_focus.86.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.86.b executed"
		AFG = {
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 2000
			}
			add_equipment_to_stockpile = {
				type = cnc_equipment_2
				amount = 300
			}
			add_equipment_to_stockpile = {
				type = artillery_0
				amount = 200
			}
			add_equipment_to_stockpile = {
				type = Anti_tank_0
				amount = 100
			}
			add_equipment_to_stockpile = {
				type = Anti_Air_0
				amount = 100
			}
		}
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = AFG }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -20 }
		modify_treasury_effect = yes
	}

	option = { #Low support
		name = iranian_focus.86.c
		log = "[GetDateText]: [This.GetName]: iranian_focus.86.c executed"
		AFG = {
			add_equipment_to_stockpile = {
				type = infantry_weapons_1
				amount = 1000
			}
			add_equipment_to_stockpile = {
				type = cnc_equipment_2
				amount = 150
			}
			add_equipment_to_stockpile = {
				type = artillery_0
				amount = 150
			}
			add_equipment_to_stockpile = {
				type = Anti_tank_0
				amount = 100
			}
		}
		set_temp_variable = { percent_change = 3 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = AFG }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -10 }
		modify_treasury_effect = yes
	}
}

country_event = {
	id = iranian_focus.87
	title = iranian_focus.87.t
	desc = iranian_focus.87.d
	picture = GFX_civil_war_event_2
	is_triggered_only = yes

	option = {
		name = iranian_focus.87.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.87.a executed"
		if = {
			limit = { original_tag = PER }
			custom_effect_tooltip = PER_hazara_hold_180_TT
			activate_mission = PER_hazari_uprising
			newline = yes
			hidden_effect = {
				TAL = { activate_mission = PER_hazari_uprising }
				AFG = { activate_mission = PER_hazari_uprising }
			}
			PER = {
				add_relation_modifier = {
					target = HAZ
					modifier = generic_increased_military_support
				}
			}
		}
		else = {
			HAZ = {
			division_template = {
				name = "Fedayeen-e Hazaristan"
				regiments = {
					Militia_Bat = { x = 0 y = 0 }
					Militia_Bat = { x = 0 y = 1 }
					Militia_Bat = { x = 0 y = 2 }
					Mot_Militia_Bat = { x = 1 y = 0 }
				}
				support = {
					L_Recce_Comp = { x = 0 y = 0 }
					Mot_Recce_Comp = { x = 0 y = 1 }
					Arty_Battery = { x = 0 y = 2 }
					L_Engi_Comp = { x = 0 y = 3 }
				}
				priority = 100
			}
			capital_scope = {
				create_unit = {
					division = "name = \"Hezb-e Wahdat\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 6158
				}
				create_unit = {
					division = "name = \"Harakat-e Islam\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 1995
				}
				create_unit = {
					division = "name = \"Lashkar-e Imam\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 7984
				}
				create_unit = {
					division = "name = \"Lashkar-e Bamiyan\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 10852
				}
				create_unit = {
					division = "name = \"Jebhe-ye Moghavemat-e Hazara\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 6120
				}
			}
		}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.88
	title = iranian_focus.88.t
	desc = iranian_focus.88.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.88.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.88.a executed"
		if = {
			limit = { ROOT = { has_idea = faction_resistance_axis_member } }
			add_to_faction = HAZ
		}
		set_temp_variable = { party_popularity_increase = 0.05 }
		set_temp_variable = { temp_outlook_increase = 0.05 }
		change_relative_party_popularity = yes
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.89
	title = iranian_focus.89.t
	desc = iranian_focus.89.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.89.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.90
	title = iranian_focus.90.t
	desc = iranian_focus.90.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.90.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.90.a executed"
		HAZ = {
			capital_scope = {
				create_unit = {
					division = "name = \"Shahid Mazari Brigade\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 6158
				}
				create_unit = {
					division = "name = \"Fatimiyoun\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 1995
				}
				create_unit = {
					division = "name = \"Jund-e Ali\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 7984
				}
				create_unit = {
					division = "name = \"Imam Hossein Battalion\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 10852
				}
				create_unit = {
					division = "name = \"Mujahideen-e Hazaristan\" division_template = \"Fedayeen-e Hazaristan\" start_experience_factor = 0.1 start_equipment_factor = 1.0"
					owner = ROOT
					prioritize_location = 6120
				}
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.91
	title = iranian_focus.91.t
	desc = iranian_focus.91.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.91.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.91.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.05 tooltip = research_speed_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_offices_productivity = 0.05 tooltip = offices_productivity_tt }
		newline = yes
		set_temp_variable = { temp_opinion = -10 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.91.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.91.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_agricolture_productivity_modifier = 0.1 tooltip = agricolture_productivity_modifier_tt }
		newline = yes
		add_to_variable = { PER_agriculture_district_income_tax_modifier = 0.05 tooltip = agriculture_district_income_tax_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 5 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.92
	title = iranian_focus.92.t
	desc = iranian_focus.92.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.92.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.92.a executed"
		PER = {
			country_event = {
				id = iranian_focus.93
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 30
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	option = {
		name = iranian_focus.92.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.92.b executed"
		PER = {
			country_event = {
				id = iranian_focus.94
				days = 1
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.93
	title = iranian_focus.93.t
	desc = iranian_focus.93.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.93.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.93.a executed"
		custom_effect_tooltip = PER_wpi_iraq_warning_TT
		set_autonomy = {
			target = IRQ
			autonomy_state = autonomy_socialist_union
			end_wars = no
			end_civil_wars = no
		}
		IRQ = { set_country_flag = IRQ_leave_socialist_union }
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.94
	title = iranian_focus.94.t
	desc = iranian_focus.94.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.94.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.95
	title = iranian_focus.95.t
	desc = iranian_focus.95.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.95.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.96
	title = iranian_focus.96.t
	desc = iranian_focus.96.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.96.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.96.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_political_power_factor = 0.05 tooltip = political_power_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.015 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.96.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.96.b executed"
		decrease_corruption = yes
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.97
	title = iranian_focus.97.t
	desc = iranian_focus.97.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.97.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.97.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_migration_rate_value_factor = 0.1 tooltip = migration_rate_value_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_high_unemployment_threshold_modifier = 0.05 tooltip = high_unemployment_threshold_modifier_tt }
		newline = yes
		add_popularity = {
			ideology = nationalist
			popularity = 0.05
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.97.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.97.b executed"
		set_temp_variable = { percent_change = 10 }
		change_domestic_influence_percentage = yes
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.98
	title = iranian_focus.98.t
	desc = iranian_focus.98.d
	picture = GFX_workers_party
	is_triggered_only = yes

	option = {
		name = iranian_focus.98.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.98.a executed"
		add_political_power = 100
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.99
	title = iranian_focus.99.t
	desc = iranian_focus.99.d
	picture = GFX_mek_vic_country
	is_triggered_only = yes

	option = {
		name = iranian_focus.99.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.99.a executed"
		add_political_power = 100
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.100
	title = iranian_focus.100.t
	desc = iranian_focus.100.d
	picture = GFX_monarchist_rally
	is_triggered_only = yes

	option = {
		name = iranian_focus.100.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.100.a executed"
		add_political_power = 100
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.101
	title = iranian_focus.101.t
	desc = iranian_focus.101.d
	picture = GFX_event_pendar
	is_triggered_only = yes

	option = {
		name = iranian_focus.101.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.101.a executed"
		add_political_power = 100
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.102
	title = iranian_focus.102.t
	desc = iranian_focus.102.d
	picture = GFX_montazeri_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.102.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.102.a executed"
		add_political_power = 100
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.103
	title = iranian_focus.103.t
	desc = iranian_focus.103.d
	picture = GFX_politics_talks
	is_triggered_only = yes
	fire_only_once = yes

	option = { #Give Payout
		name = iranian_focus.103.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.103.a executed"
		set_temp_variable = { percent_change = 1 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = IRQ }
		change_influence_percentage = yes
		IRQ = {
			country_event = {
				id = iranian_focus.104
				days = 1
			}
			set_temp_variable = { treasury_change = 35 }
			modify_treasury_effect = yes
		}
		PER = {
			set_temp_variable = { treasury_change = -35 }
			modify_treasury_effect = yes
		}
		ai_chance = {
			base = 5
		}
	}

	option = { #Offer Weapons
		name = iranian_focus.103.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.103.b executed"
		set_temp_variable = { percent_change = 2 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = IRQ }
		change_influence_percentage = yes
		IRQ = {
			country_event = {
				id = iranian_focus.105
				days = 1
			}
		}
		PER = {
			add_equipment_to_stockpile = {
				type = infantry_weapons_2
				amount = -1500
				producer = PER
			}
		}
		IRQ = {
			add_equipment_to_stockpile = {
				type = infantry_weapons_2
				amount = 1500
				producer = PER
			}
		}
		ai_chance = {
			base = 3
		}
	}
}

country_event = {
	id = iranian_focus.104
	title = iranian_focus.104.t
	desc = iranian_focus.104.d
	picture = GFX_stock_market
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.104.a
		ai_chance = { base = 10 }
	}
}
country_event = {
	id = iranian_focus.105
	title = iranian_focus.105.t
	desc = iranian_focus.105.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.105.a
		ai_chance = { base = 10 }
	}
}

# Location of the New Camp Ashraf
country_event = {
	id = iranian_focus.106
	title = iranian_focus.106.t
	desc = iranian_focus.106.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # Turkish Border
		name = iranian_focus.106.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.106.a executed"
		1039 = {
			add_building_construction = {
				type = bunker
				province = 6070
				level = 3
			}
			add_building_construction = {
				type = bunker
				province = 1636
				level = 3
			}
		}
		979 = {
			add_building_construction = {
				type = bunker
				province = 7604
				level = 3
			}
		}
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Iraqi Border
		name = iranian_focus.106.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.106.b executed"
		1039 = {
			add_building_construction = {
				type = bunker
				province = 10774
				level = 3
			}
			add_building_construction = {
				type = bunker
				province = 9421
				level = 3
			}
			add_building_construction = {
				type = bunker
				province = 9059
				level = 3
			}
		}
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_focus.107
	title = iranian_focus.107.t
	desc = iranian_focus.107.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.107.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.107.a executed"
		custom_effect_tooltip = PER_federalize_kurdistan_TT
		hidden_effect = {
			release = IKR
			set_autonomy = {
				target = IKR
				autonomy_state = autonomy_federal_state_iran
			}
			IKR = {
				swap_ideas = {
					remove_idea = non_state_actor
					add_idea = lacks_international_recognition
				}
				add_victory_points = {
					province = 16216
					value = 12
				}
				set_temp_variable = { rul_party_temp = 18 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
				retire_country_leader = yes
				create_country_leader = {
					name = "Abdullah Hassan Zadeh "
					picture = "IKR_kdp_Abdullah_Hesenzade.dds"
					ideology = neutral_Social
					traits = {
						neutrality_neutral_Social
					}
				}
				division_template = {
					name = "Lêşkerî Rojhelat"
					priority = 0
					regiments = {
						Militia_Bat = { x = 0 y = 0 }
						Militia_Bat = { x = 0 y = 1 }
						Militia_Bat = { x = 0 y = 2 }
						Arty_Bat = { x = 0 y = 3 }
						Militia_Bat = { x = 1 y = 0 }
						Militia_Bat = { x = 1 y = 1 }
						Militia_Bat = { x = 1 y = 2 }
						Arty_Bat = { x = 1 y = 3 }
						Militia_Bat = { x = 2 y = 0 }
						Militia_Bat = { x = 2 y = 1 }
						Militia_Bat = { x = 2 y = 2 }
						Arty_Bat = { x = 2 y = 3 }
					}
					support = {
						L_Recce_Comp = { x = 0 y = 0 }
						L_Engi_Comp = { x = 0 y = 1 }
						combat_service_support_company = { x = 0 y = 2 }
						Arty_Battery = { x = 0 y = 3 }
					}
				}
				979 = {
					if = { limit = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } remove_dynamic_modifier = { modifier = PER_kurd_separatism } }
					create_unit = {
						division = "name = \"1st. Lêşkerî Azadî\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 7604
					}
					create_unit = {
						division = "name = \"2nd. Lêşkerî Rojhilat\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 1822
					}
					create_unit = {
						division = "name = \"3rd. Lêşkerî Pêşmerge\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 14268
					}
					create_unit = {
						division = "name = \"4th. Komelî Şoreşger\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 14314
					}
				}
				408 = {
					if = { limit = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } remove_dynamic_modifier = { modifier = PER_kurd_separatism } }
					create_unit = {
						division = "name = \"5th. Şoreşgeranî Welat\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 4943
					}
					create_unit = {
						division = "name = \"6th. Komelî Gelê Azad\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 14313
					}
					create_unit = {
						division = "name = \"7th. Lêşkerî Zagros\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 5098
					}
					create_unit = {
						division = "name = \"8th. Lêşkerî Sanandaj\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 16216
					}
				}
				1139 = {
					if = { limit = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } remove_dynamic_modifier = { modifier = PER_kurd_separatism } }
					create_unit = {
						division = "name = \"9th. Lêşkerî Dersim\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 16155
					}
					create_unit = {
						division = "name = \"10th. Lêşkerî Simko\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 12773
					}
					create_unit = {
						division = "name = \"11th. Lêşkerî Mîrê Şeref\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 4008
					}
					create_unit = {
						division = "name = \"12th. Komelî Bîrîndarî\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 16155
					}
				}
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.107.b
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.108
	title = iranian_focus.108.t
	desc = iranian_focus.108.d
	picture = GFX_pahlavi_country
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.108.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.108.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.025 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_small_medium_business_owners_opinion = yes
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.108.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.108.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_army_org_factor = 0.1 tooltip = army_org_factor_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_the_military_opinion = yes
		newline = yes
		custom_effect_tooltip = PER_ali_reza_TT
		hidden_effect = {
			country_event = {
				id = iranian_focus.197
				days = 16
			}
		}
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.109
	title = iranian_focus.109.t
	desc = iranian_focus.109.d
	picture = GFX_crown_throne
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.109.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.109.a executed"
		set_temp_variable = { temp_opinion = 20 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.109.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.109.b executed"
		set_temp_variable = { temp_opinion = 20 }
		change_the_military_opinion = yes
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.110
	title = iranian_focus.110.t
	desc = iranian_focus.110.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { 1073 = { infrastructure > 3 } }

	option = {
		name = iranian_focus.110.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.110.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.02 tooltip = research_speed_factor_tt }
		1073 = { add_dynamic_modifier = { modifier = PER_center_of_political_wisdom } }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.111
	title = iranian_focus.111.t
	desc = iranian_focus.111.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { 976 = { infrastructure > 3 } }

	option = {
		name = iranian_focus.111.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.111.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.02 tooltip = research_speed_factor_tt }
		976 = { add_dynamic_modifier = { modifier = PER_center_of_political_wisdom } }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.112
	title = iranian_focus.112.t
	desc = iranian_focus.112.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { 402 = { infrastructure > 3 } }

	option = {
		name = iranian_focus.112.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.112.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.02 tooltip = research_speed_factor_tt }
		402 = { add_dynamic_modifier = { modifier = PER_center_of_political_wisdom } }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.113
	title = iranian_focus.113.t
	desc = iranian_focus.113.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { 404 = { infrastructure > 3 } }

	option = {
		name = iranian_focus.113.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.113.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.02 tooltip = research_speed_factor_tt }
		404 = { add_dynamic_modifier = { modifier = PER_center_of_political_wisdom } }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.114
	title = iranian_focus.114.t
	desc = iranian_focus.114.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { 978 = { infrastructure > 3 } }

	option = {
		name = iranian_focus.114.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.114.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.02 tooltip = research_speed_factor_tt }
		978 = { add_dynamic_modifier = { modifier = PER_center_of_political_wisdom } }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.115
	title = iranian_focus.115.t
	desc = iranian_focus.115.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.115.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.115.a executed"
		set_temp_variable = { treasury_change = -12.00 }
		modify_treasury_effect = yes
		newline = yes
		effect_tooltip = {
			USA = {
				set_temp_variable = { party_index = 1 }
				set_temp_variable = { party_popularity_increase = 0.055 }
				change_relative_party_popularity = yes
			}
		}
		set_country_flag = PER_small
		newline = yes
		USA = {
			country_event = {
				id = iranian_focus.116
				days = 1
			}
		}
		newline = yes
		set_temp_variable = { percent_change = 1.00 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = USA }
		change_influence_percentage = yes
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.115.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.115.b executed"
		set_temp_variable = { treasury_change = -24.00 }
		modify_treasury_effect = yes
		newline = yes
		set_country_flag = PER_med
		effect_tooltip = {
			USA = {
				set_temp_variable = { party_index = 1 }
				set_temp_variable = { party_popularity_increase = 0.075 }
				change_relative_party_popularity = yes
			}
		}
		newline = yes
		USA = {
			country_event = {
				id = iranian_focus.116
				days = 1
			}
		}
		newline = yes
		set_temp_variable = { percent_change = 3.00 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = USA }
		change_influence_percentage = yes
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.115.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.115.c executed"
		set_temp_variable = { treasury_change = -36.00 }
		modify_treasury_effect = yes
		newline = yes
		effect_tooltip = {
			USA = {
				set_temp_variable = { party_index = 1 }
				set_temp_variable = { party_popularity_increase = 0.145 }
				change_relative_party_popularity = yes
			}
		}
		newline = yes
		USA = {
			country_event = {
				id = iranian_focus.116
				days = 1
			}
		}
		newline = yes
		set_temp_variable = { percent_change = 5.00 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = USA }
		change_influence_percentage = yes
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.116
	title = iranian_focus.116.t
	desc = iranian_focus.116.d
	picture = GFX_political_deal
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.116.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.116.a executed"
		if = {
			limit = { PER = { has_country_flag = PER_small } }
			set_temp_variable = { party_index = 1 }
			set_temp_variable = { party_popularity_increase = 0.055 }
			change_relative_party_popularity = yes
		}
		else_if = {
			limit = { PER = { has_country_flag = PER_med } }
			set_temp_variable = { party_index = 1 }
			set_temp_variable = { party_popularity_increase = 0.075 }
			change_relative_party_popularity = yes
		}
		else = {
			set_temp_variable = { party_index = 1 }
			set_temp_variable = { party_popularity_increase = 0.145 }
			change_relative_party_popularity = yes
		}
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.117
	title = iranian_focus.117.t
	desc = iranian_focus.117.d
	picture = GFX_iranian_f14
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.117.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.117.a executed"
		create_equipment_variant = {
			name = "F-14I Tomcat"
			type = cv_medium_plane_fighter_airframe_2
			parent_version = 2
			modules = {
				fixed_main_weapon_slot = weap_a2a_hardpoint_2
				fixed_gun_slot = weap_multi_gun_2
				engine_type_slot = engine_jet_double_3
				avionics_type_slot = avionics_manned_3
				wingform_type_slot = wing_variable
				special_slot_type_1 = spec_countermeasures_2
				special_slot_type_2 = empty
				special_slot_type_3 = spec_redundant_2
				fixed_auxiliary_weapon_slot_1 = weap_mp_med_hardpoint_2
				fixed_auxiliary_weapon_slot_2 = weap_mp_light_hardpoint_2
			}
			upgrades = { plane_bba_radar_upgrade = 5 }
			icon = "gfx/interface/technologies/PER/AIR/MR2.dds"
			model = "PER_F14A_entity2"
			design_team = mio:PER_hesa_aircraft_manufacturer
		}
		PER = {
			country_event = {
				id = iranian_focus.118
				days = 1
			}
		}
		ai_chance = {
			base = 5
			modifier = {
				add = 100
				western_conservatism_are_in_power = yes
			}
		}
	}

	option = {
		name = iranian_focus.117.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.117.b executed"
		PER = {
			country_event = {
				id = iranian_focus.119
				days = 1
			}
		}
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.118
	title = iranian_focus.118.t
	desc = iranian_focus.118.d
	picture = GFX_iranian_f14
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.118.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.118.a executed"
		add_equipment_to_stockpile = {
			type = cv_medium_plane_fighter_airframe_2
			variant_name = "F-14I Tomcat"
			producer = USA
			amount = 60
		}
		newline = yes
		set_temp_variable = { treasury_change = -57.5 }
		modify_treasury_effect = yes
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.119
	title = iranian_focus.119.t
	desc = iranian_focus.119.d
	picture = GFX_iranian_f14
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.119.a
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.120
	title = iranian_focus.120.t
	desc = iranian_focus.120.d
	picture = GFX_ebrahim_yazdi_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.120.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.120.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.121
	title = iranian_focus.121.t
	desc = iranian_focus.121.d
	picture = GFX_green_movement
	is_triggered_only = yes

	option = {
		name = iranian_focus.121.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.121.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.122
	title = iranian_focus.122.t
	desc = iranian_focus.122.d
	picture = GFX_national_front
	is_triggered_only = yes

	option = {
		name = iranian_focus.122.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.122.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.123
	title = iranian_focus.123.t
	desc = iranian_focus.123.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.123.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.123.a executed"
		activate_mission = PER_kurdish_promise_army
		custom_effect_tooltip = PER_kurdish_army_TT
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.123.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.123.b executed"
		activate_mission = PER_kurdish_promise_economy
		custom_effect_tooltip = PER_kurdish_economy_TT
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.124
	title = iranian_focus.124.t
	desc = iranian_focus.124.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.124.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.124.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_high_unemployment_threshold_modifier = 0.05 tooltip = high_unemployment_threshold_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_conscription_factor = 0.05 tooltip = conscription_factor_tt }
		newline = yes
		set_temp_variable = { temp_opinion = -10 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.124.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.124.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_resistance_growth = -0.05 tooltip = resistance_growth_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_the_ulema_opinion = yes
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.125
	title = iranian_focus.125.t
	desc = iranian_focus.125.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.125.a # FMI
		log = "[GetDateText]: [This.GetName]:iranian_focus.125.a executed"
		custom_effect_tooltip = PER_fmi_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 16 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Ebrahim Yazdi"
				picture = "ebrahim_yazdi.dds"
				ideology = neutral_Social
				traits = {
					neutrality_neutral_Social
					stubborn
					career_politician
				}
			}
			set_temp_variable = { party_index = 16 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH }
			modifier = { factor = 0 OR = { has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
		}
	}

	option = { # Green Path
		name = iranian_focus.125.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.125.b executed"
		custom_effect_tooltip = PER_gph_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 12 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Mir-Hossein Mousavi"
				picture = "mir_hossein_mousavi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					writer
					honest
					geopolitical_thinker
				}
			}
			set_temp_variable = { party_index = 12 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 OR = { has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
			modifier = { factor = 0 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH } }
		}
	}

	option = { # National Front
		name = iranian_focus.125.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.125.c executed"
		custom_effect_tooltip = PER_nat_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 14 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Adib Boroumand"
				picture = "adib_boroumand_new.dds"
				ideology = Neutral_conservatism
				traits = {
					writer
					neutrality_Neutral_conservatism
					capable
					honest
				}
			}
			set_temp_variable = { party_index = 14 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH }
			modifier = { factor = 0 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
		}
	}
}

country_event = {
	id = iranian_focus.126
	title = iranian_focus.126.t
	desc = iranian_focus.126.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.126.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.126.a executed"
		add_country_leader_trait = supreme_leader_of_iran
		custom_effect_tooltip = PER_ayatollah_republic_TT
		set_country_flag = PER_second_ir
		hidden_effect = {
			country_event = {
				id = iranian_focus.1261
				days = 5
			}
		}
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.1261
	title = iranian_focus.1261.t
	desc = iranian_focus.1261.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.125.a # FMI
		log = "[GetDateText]: [This.GetName]:iranian_focus.125.a executed"
		hidden_effect = {
			enable_elections_with_no_leader_change = yes
		}
		custom_effect_tooltip = PER_fmi_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 16 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Hossein-Ali Montazeri"
				picture = "hossein_montazeri.dds"
				ideology = Neutral_Libertarian
				traits = {
					neutrality_Neutral_Autocracy
					zealous
					cleric
				}
			}
			set_temp_variable = { party_index = 16 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
			modifier = { factor = 0 OR = { has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH } }
		}
	}

	option = { # Green Path
		name = iranian_focus.125.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.125.b executed"
		hidden_effect = {
			enable_elections_with_no_leader_change = yes
		}
		custom_effect_tooltip = PER_gph_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 12 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Hossein-Ali Montazeri"
				picture = "hossein_montazeri.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					neutrality_Neutral_Autocracy
					zealous
					cleric
				}
			}
			set_temp_variable = { party_index = 12 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH }
			modifier = { factor = 0 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
		}
	}

	option = { # National Front
		name = iranian_focus.125.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.125.c executed"
		hidden_effect = {
			enable_elections_with_no_leader_change = yes
		}
		custom_effect_tooltip = PER_nat_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 14 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Hossein-Ali Montazeri"
				picture = "hossein_montazeri.dds"
				ideology = Neutral_conservatism
				traits = {
					neutrality_Neutral_Autocracy
					zealous
					cleric
				}
			}
			set_temp_variable = { party_index = 14 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH }
			modifier = { factor = 0 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
		}
	}
}

country_event = {
	id = iranian_focus.127
	title = iranian_focus.127.t
	desc = iranian_focus.127.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = {
		name = iranian_focus.127.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.127.a executed"
		custom_effect_tooltip = PER_economic_backup_TT
		set_country_flag = PER_econ_backup
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.127.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.127.b executed"
		custom_effect_tooltip = PER_political_backup_TT
		set_country_flag = PER_political_backup
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.128
	title = iranian_focus.128.t
	desc = iranian_focus.128.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.128.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.128.a executed"
		custom_effect_tooltip = PER_chechen_shot_TT
		CHE = { add_manpower = -1 }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.129
	title = iranian_focus.129.t
	desc = iranian_focus.129.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = iranian_focus.129.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.129.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_police_cost_multiplier_modifier = -0.05 tooltip = police_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.025 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.129.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.129.b executed"
		set_temp_variable = { temp_productivity_change = 60 }
		every_owned_state = { state_flat_productivity_change_effect = yes }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.130
	title = iranian_focus.130.t
	desc = iranian_focus.130.d
	picture = GFX_ghalibaf2
	is_triggered_only = yes

	option = {
		name = iranian_focus.130.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.130.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.131
	title = iranian_focus.131.t
	desc = iranian_focus.131.d
	picture = GFX_ahmadi
	is_triggered_only = yes

	option = {
		name = iranian_focus.131.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.131.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.132
	title = iranian_focus.132.t
	desc = iranian_focus.132.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.132.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.132.a executed"
		PER = { country_event = iranian_focus.133 }
		newline = yes
		set_temp_variable = { treasury_change = -14.5 }
		modify_treasury_effect = yes
		newline = yes
		set_temp_variable = { percent_change = 4.00 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		ai_chance = {
			base = 10
			modifier = {
				add = 50
				has_opinion = {
					target = PER
					value > 19
				}
			}
		}
	}

	option = {
		name = iranian_focus.132.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.132.b executed"
		PER = { country_event = iranian_focus.134 }
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.133
	title = iranian_focus.133.t
	desc = iranian_focus.133.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = iranian_focus.133.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.133.a executed"
		977 = {
			add_resource = {
				type = aluminium
				amount = 7
			}
		}
		newline = yes
		1039 = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = offices
				level = 2
			}
		}
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.134
	title = iranian_focus.134.t
	desc = iranian_focus.134.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = {
		name = iranian_focus.134.a
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.135
	title = iranian_focus.135.t
	desc = iranian_focus.135.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.135.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.135.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_education_cost_multiplier_modifier = 0.1 tooltip = education_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_political_power_factor = 0.05 tooltip = political_power_factor_tt }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.135.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.135.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_education_cost_multiplier_modifier = -0.05 tooltip = education_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_political_power_factor = -0.05 tooltip = political_power_factor_tt }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.136
	title = iranian_focus.136.t
	desc = iranian_focus.136.d
	picture = GFX_mashaei_event
	is_triggered_only = yes

	option = {
		name = iranian_focus.136.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.136.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.137
	title = iranian_focus.137.t
	desc = iranian_focus.137.d
	picture = GFX_artesh_protest
	is_triggered_only = yes

	option = {
		name = iranian_focus.137.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.137.a executed"
		add_political_power = 100
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.138
	title = iranian_focus.138.t
	desc = iranian_focus.138.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.138.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.138.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_infrastructure_factor = 0.10 tooltip = production_speed_infrastructure_factor_tt }
		newline = yes
		add_to_variable = { PER_offices_productivity = 0.1 tooltip = offices_productivity_tt }
		newline = yes
		add_to_variable = { PER_corporate_tax_factor = -0.05 tooltip = corporate_tax_income_multiplier_modifier_tt }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.138.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.138.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_health_cost = -0.1 tooltip = health_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_welfare_cost = -0.1 tooltip = social_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_population_tax_income_multiplier_modifier = -0.1 tooltip = population_tax_income_multiplier_modifier_tt }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.138.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.138.c executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_health_cost = -0.05 tooltip = health_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_welfare_cost = -0.05 tooltip = social_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_production_speed_infrastructure_factor = 0.05 tooltip = production_speed_infrastructure_factor_tt }
		newline = yes
		add_to_variable = { PER_offices_productivity = 0.05 tooltip = offices_productivity_tt }
		newline = yes
		add_to_variable = { PER_population_tax_income_multiplier_modifier = -0.1 tooltip = population_tax_income_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_corporate_tax_factor = -0.1 tooltip = corporate_tax_income_multiplier_modifier_tt }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.139
	title = iranian_focus.139.t
	desc = iranian_focus.139.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.139.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.139.a executed"
		add_ideas = PER_western_satan
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.139.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.139.b executed"
		add_ideas = PER_eastern_satan
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.139.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.139.c executed"
		add_ideas = PER_nextdoor_satan
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.140
	title = iranian_focus.140.t
	desc = iranian_focus.140.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.140.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.140.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_personnel_cost_multiplier_modifier = -0.1 tooltip = personnel_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_equipment_cost_multiplier_modifier = -0.1 tooltip = equipment_cost_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = -10 }
		change_the_military_opinion = yes
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.140.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.140.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_army_org_factor = 0.1 tooltip = army_org_factor_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_the_military_opinion = yes
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.141
	title = iranian_focus.141.t
	desc = iranian_focus.141.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.141.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.141.a executed"
		400 = { set_state_name = "Pars" }
		newline = yes
		976 = { set_state_name = "Espahan" }
		newline = yes
		set_province_name = { id = 8074 name = "Espahān" }
		newline = yes
		set_province_name = { id = 557 name = "Neyshāpūr" }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_corruption_cost = -0.05 tooltip = corruption_cost_factor_tt }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.141.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.141.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.025 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.142
	title = iranian_focus.142.t
	desc = iranian_focus.142.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = iranian_focus.142.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.142.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.025 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_population_tax_income_multiplier_modifier = 0.025 tooltip = population_tax_income_multiplier_modifier_tt }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.142.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.142.b executed"
		remove_country_leader_trait = corruptible
		newline = yes
		custom_effect_tooltip = PER_remove_corruptible_debuffs_TT
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.143
	title = iranian_focus.143.t
	desc = iranian_focus.143.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.143.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.143.a executed"
		set_temp_variable = { percent_change = 5.00 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = ROOT }
		change_influence_percentage = yes
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.144
	title = iranian_focus.144.t
	desc = iranian_focus.144.d
	picture = GFX_trade_agreement
	is_triggered_only = yes

	option = {
		name = iranian_focus.144.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.144.a executed"
		set_temp_variable = { receiver_nation = ISR.id }
		set_temp_variable = { sender_nation = PER.id }
		set_improved_trade_agreement = yes
		newline = yes
		add_timed_idea = {
			idea = PER_israeli_trade_agreement
			days = 720
		}
		PER = { country_event = iranian_focus.145 }
		ai_chance = {
			modifier = {
				has_opinion = { target = PER value > 19 }
				add = 50
			}
			base = 5
		}
	}

	option = {
		name = iranian_focus.144.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.144.b executed"
		PER = { country_event = iranian_focus.146 }
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.145
	title = iranian_focus.145.t
	desc = iranian_focus.145.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.145.a
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.146
	title = iranian_focus.146.t
	desc = iranian_focus.146.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		name = iranian_focus.146.a
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.147
	title = iranian_focus.147.t
	desc = iranian_focus.147.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.147.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.147.a executed"
		create_country_leader = {
			name = "Amir Hatami "
			picture = "amir_hatami_pol.dds"
			ideology = Nat_Autocracy
			traits = {
				nationalist_Nat_Autocracy
				army_general
			}
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.147.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.147.b executed"
		create_country_leader = {
			name = "Holako Ahmadian"
			picture = "holako_ahmadian.dds"
			ideology = Nat_Autocracy
			traits = {
				nationalist_Nat_Autocracy
				army_general
			}
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.147.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.147.c executed"
		create_country_leader = {
			name = "Farzad Esmaili "
			picture = "Portrait_Farzad_Esmaili.dds"
			ideology = Nat_Autocracy
			traits = {
				nationalist_Nat_Autocracy
				army_general
			}
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.147.d1
		log = "[GetDateText]: [This.GetName]:iranian_focus.147.d1 executed"
		create_country_leader = {
			name = "Davoud Hermidas-Bavand "
			picture = "davoud_bavand.dds"
			ideology = Nat_Autocracy
			traits = {
				western_socialism
				sasanid_lineage
			}
		}
		custom_effect_tooltip = PER_sasanid_lineage_TT
		set_temp_variable = { add_col_one = 14 }
		add_coalition_members_effect = yes
		ai_chance = { base = 5 }
	}
}

country_event = { #Iran requests railway construction
	id = iranian_focus.148
	title = iranian_focus.148.t
	desc = iranian_focus.148.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { #Accept
		name = iranian_focus.148.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.148.a executed"
		PER = {
			country_event = iranian_focus.149
		}
		ai_chance = {
			base = 8
		}
	}

	option = { #Reject
		name = iranian_focus.148.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.148.b executed"
		PER = {
			country_event = iranian_focus.150
		}
		ai_chance = {
			base = 2
		}
	}
}

country_event = { #They Accept!
	id = iranian_focus.149
	title = iranian_focus.149.t
	desc = iranian_focus.149.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = {
		name = iranian_focus.149.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.149.a executed"
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = ARM }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -3.25 }
		modify_treasury_effect = yes
		build_railway = {
			level = 1
			path = { 4660 13920 6642 1210 12320 12380 12441 }
			start_province = 4660
			target_province = 12441
		}
	}
}

country_event = { #They Deny!
	id = iranian_focus.150
	title = iranian_focus.150.t
	desc = iranian_focus.150.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { name = iranian_focus.150.a }
}

country_event = { #Iran requests railway construction (AZE)
	id = iranian_focus.151
	title = iranian_focus.151.t
	desc = iranian_focus.151.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { #Accept
		name = iranian_focus.151.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.151.a executed"
		PER = {
			country_event = iranian_focus.152
		}
		ai_chance = {
			base = 8
		}
	}

	option = { #Reject
		name = iranian_focus.151.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.151.b executed"
		PER = {
			country_event = iranian_focus.153
		}
		ai_chance = {
			base = 2
		}
	}
}

country_event = { #They Accept! (AZE)
	id = iranian_focus.152
	title = iranian_focus.152.t
	desc = iranian_focus.152.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = {
		name = iranian_focus.152.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.152.a executed"
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = AZE }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -3.25 }
		modify_treasury_effect = yes
		build_railway = {
			level = 1
			path = { 4473 12434 1536 7661 }
			start_province = 4473
			target_province = 7661
		}
	}
}

country_event = { #They Deny!
	id = iranian_focus.153
	title = iranian_focus.153.t
	desc = iranian_focus.153.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { name = iranian_focus.153.a }
}

country_event = { #Iran requests railway construction (GEO)
	id = iranian_focus.154
	title = iranian_focus.154.t
	desc = iranian_focus.154.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { #Accept
		name = iranian_focus.154.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.154.a executed"
		PER = {
			country_event = iranian_focus.155
		}
		ai_chance = {
			base = 8
		}
	}

	option = { #Reject
		name = iranian_focus.154.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.154.b executed"
		PER = {
			country_event = iranian_focus.156
		}
		ai_chance = {
			base = 2
		}
	}
}

country_event = { #They Accept! (GEO)
	id = iranian_focus.155
	title = iranian_focus.155.t
	desc = iranian_focus.155.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = {
		name = iranian_focus.155.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.155.a executed"
		set_temp_variable = { percent_change = 5 }
		set_temp_variable = { tag_index = PER }
		set_temp_variable = { influence_target = GEO }
		change_influence_percentage = yes
		set_temp_variable = { treasury_change = -3.25 }
		modify_treasury_effect = yes
		build_railway = {
			level = 1
			path = { 4534 14158 1599 6671 3658 13930 772 }
			start_province = 4534
			target_province = 772
		}
	}
}

country_event = { #They Deny!
	id = iranian_focus.156
	title = iranian_focus.156.t
	desc = iranian_focus.156.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { name = iranian_focus.156.a }
}

country_event = {
	id = iranian_focus.157
	title = iranian_focus.157.t
	desc = iranian_focus.157.d
	picture = GFX_iran_tehran_parade
	is_triggered_only = yes

	option = {
		name = iranian_focus.157.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.157.a executed"
		army_experience = 25
	}
}

country_event = {
	id = iranian_focus.158
	title = iranian_focus.158.t
	desc = iranian_focus.158.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.158.a # FMI
		log = "[GetDateText]: [This.GetName]:iranian_focus.158.a executed"
		custom_effect_tooltip = PER_fmi_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 16 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Ebrahim Yazdi"
				picture = "ebrahim_yazdi.dds"
				ideology = neutral_Social
				traits = {
					neutrality_neutral_Social
					stubborn
					career_politician
				}
			}
			set_temp_variable = { party_index = 16 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH }
			modifier = { factor = 0 OR = { has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
		}
	}

	option = { # Green Path
		name = iranian_focus.158.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.158.b executed"
		custom_effect_tooltip = PER_gph_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 12 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Mir-Hossein Mousavi"
				picture = "mir_hossein_mousavi.dds"
				ideology = Neutral_Muslim_Brotherhood
				traits = {
					writer
					honest
					geopolitical_thinker
				}
			}
			set_temp_variable = { party_index = 12 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 OR = { has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
			modifier = { factor = 0 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH } }
		}
	}

	option = { # National Front
		name = iranian_focus.158.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.158.c executed"
		custom_effect_tooltip = PER_nat_TT
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 14 }
			change_ruling_party_effect = yes
			create_country_leader = {
				name = "Adib Boroumand"
				picture = "adib_boroumand_new.dds"
				ideology = Neutral_conservatism
				traits = {
					writer
					neutrality_Neutral_conservatism
					capable
					honest
				}
			}
			set_temp_variable = { party_index = 14 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 10
			modifier = { factor = 20 has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH }
			modifier = { factor = 0 OR = { has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH has_global_flag = PER_MONTAZERI_FOCUS_PATH } }
		}
	}
}

country_event = {
	id = iranian_focus.159
	title = iranian_focus.159.t
	desc = iranian_focus.159.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	option = {
		name = iranian_focus.159.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.159.a executed"
		retire_character = PER_qasem_soleimani
		newline = yes
		add_stability = -0.10
		hidden_effect = { news_event = iranian_focus.161 }
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.159.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.159.b executed"
		retire_character = PER_qasem_soleimani
		newline = yes
		declare_war_on = {
			target = USA
			type = topple_government
		}
		hidden_effect = { news_event = iranian_focus.161 }
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = iranian_focus.160
	title = iranian_focus.160.t
	desc = iranian_focus.160.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { PER = { has_character = PER_qasem_soleimani } }

	option = {
		name = iranian_focus.160.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.160.a executed"
		PER = { country_event = iranian_focus.159 }
		newline = yes
		add_stability = -0.10
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.160.b
		ai_chance = { base = 0 }
	}
}

news_event = {
	id = iranian_focus.161
	title = iranian_focus.161.t
	desc = iranian_focus.161.d
	picture = GFX_qasem_soleimani_assassinated
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_focus.161.a
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.162
	title = iranian_focus.162.t
	desc = iranian_focus.162.d
	picture = GFX_pazeshkpour_funeral
	is_triggered_only = yes

	trigger = { nationalist_right_wing_populists_are_in_power = yes }

	option = {
		name = iranian_focus.162.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.162.a executed"
		create_country_leader = {
			name = "Hojjat Kalashi"
			picture = "hojjat_kalashi.dds"
			ideology = Nat_Populism
			traits = {
				nationalist_Nat_Populism
			}
		}
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.162.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.162.b executed"
		create_country_leader = {
			name = "Reza Kermani"
			picture = "reza_kermani.dds"
			ideology = Nat_Populism
			traits = {
				nationalist_Nat_Populism
			}
		}
		ai_chance = { base = 10 }
	}

	option = {
		name = iranian_focus.162.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.162.c executed"
		create_country_leader = {
			name = "Zahra Gholamipour"
			picture = "gholamipour.dds"
			ideology = Nat_Populism
			traits = {
				nationalist_Nat_Populism
			}
		}
		ai_chance = { base = 10 }
	}
}

country_event = {
	id = iranian_focus.163
	title = iranian_focus.163.t
	desc = iranian_focus.163.d
	picture = GFX_jaleeb_people
	is_triggered_only = yes

	option = { # Give them Refuge from the Taliban
		name = iranian_focus.163.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.163.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_migration_rate_value_factor = 0.1 tooltip = migration_rate_value_factor_tt }
		ai_chance = {
			base = 5
		}
	}

	option = { # Let Them in, But Confiscate their Jaleebs!
		name = iranian_focus.163.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.163.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_foreign_influence_defense_modifier = 0.05 tooltip = foreign_influence_defense_modifier_tt }
		ai_chance = {
			base = 5
		}
	}
}

country_event = { # Jalil Zandi Crashes!
	id = iranian_focus.164
	title = iranian_focus.164.t
	desc = iranian_focus.164.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	option = {
		name = iranian_focus.164.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.164.a executed"
		retire_character = PER_jalil_zandi
		show_ideas_tooltip = jalil_zandi
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.164.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.164.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_health_cost = 0.03 tooltip = health_cost_multiplier_modifier_tt }
		ai_chance = { base = 5 }
	}
}

country_event = { # Uptick in Sattelite Usage
	id = iranian_focus.165
	title = iranian_focus.165.t
	desc = iranian_focus.165.d
	picture = GFX_astronauts
	is_triggered_only = yes

	option = { # Leave them be
		name = iranian_focus.165.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.165.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_internet_station_factor = 0.10 tooltip = production_speed_internet_station_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = -0.05 tooltip = drift_defence_factor_tt }
		ai_chance = {
			base = 5
		}
	}

	option = { # Crack down!
		name = iranian_focus.165.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.165.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = 0.05 tooltip = drift_defence_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_internet_station_factor = -0.05 tooltip = production_speed_internet_station_factor_tt }
		ai_chance = {
			base = 5
		}
	}
}

country_event = { # Bazaars in Trouble
	id = iranian_focus.166
	title = iranian_focus.166.t
	desc = iranian_focus.166.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # We can bail a few of them out
		name = iranian_focus.166.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.166.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_interest_rate_multiplier_modifier = 0.25 tooltip = interest_rate_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = 10 }
		change_small_medium_business_owners_opinion = yes
		ai_chance = {
			base = 5
		}
	}

	option = { # They can deal with it themselves
		name = iranian_focus.166.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.166.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_interest_rate_multiplier_modifier = -0.15 tooltip = interest_rate_multiplier_modifier_tt }
		newline = yes
		set_temp_variable = { temp_opinion = -10 }
		change_small_medium_business_owners_opinion = yes
		ai_chance = {
			base = 5
		}
	}
}

country_event = {
	id = iranian_focus.167
	title = iranian_focus.167.t
	desc = iranian_focus.167.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = {
		name = iranian_focus.167.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.167.a executed"
		custom_effect_tooltip = PER_check_states_TT
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.168
	title = iranian_focus.168.t
	desc = iranian_focus.168.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.168.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.168.a executed"
		PER_saneei_change = yes
		set_country_flag = PER_selected_saneei
		set_country_flag = PER_montazeri_dead
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.168.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.168.b executed"
		PER_asadollah_change = yes
		set_country_flag = PER_selected_assadollah
		set_country_flag = PER_montazeri_dead
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.168.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.168.c executed"
		custom_effect_tooltip = PER_second_ir_disbanded_TT
		set_country_flag = PER_montazeri_dead
		hidden_effect = {
			retire_country_leader = yes
			clr_country_flag = PER_second_ir
			# Assigning The Leaders
			PER_party_change = yes
		}
		ai_chance = {
			base = 5
		}
	}
}

country_event = {
	id = iranian_focus.169
	title = iranian_focus.169.t
	desc = iranian_focus.169.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = { # Tri Color
		name = iranian_focus.169.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.169.a executed"
		hidden_effect = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = PER_neutrality
		}
		ai_chance = {
			base = 5
		}
	}

	option = { # Lion and Sun
		name = iranian_focus.169.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.169.b executed"
		hidden_effect = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = PER_AUTH_PAN
			set_variable = { dynamic_flag_variant = 8 }
		}
		ai_chance = {
			base = 5
		}
	}

	option = { # An Islamic Flag
		name = iranian_focus.169.c
		log = "[GetDateText]: [This.GetName]:iranian_focus.169.c executed"
		hidden_effect = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = PER_AUTH
			set_variable = { dynamic_flag_variant = 2 }
		}
		ai_chance = {
			base = 5
		}
	}

	option = { # The Flower
		name = iranian_focus.169.d1
		log = "[GetDateText]: [This.GetName]:iranian_focus.169.d1 executed"
		hidden_effect = {
			drop_cosmetic_tag = yes
			clear_variable = dynamic_flag_variant
			set_cosmetic_tag = PER_ARTESH_CONTROL
		}
		ai_chance = {
			base = 5
		}
	}
}

country_event = {
	id = iranian_focus.170
	title = iranian_focus.170.t
	desc = iranian_focus.170.d
	picture = GFX_treaty
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.170.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.171
	title = iranian_focus.171.t
	desc = iranian_focus.171.d
	picture = GFX_nuclear_power_plant
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.171.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.171.a executed"
		1146 = {
			add_building_construction = {
				type = nuclear_reactor
				level = 1
			}
		}
		newline = yes
		set_temp_variable = { percent_change = 2.00 }
		set_temp_variable = { tag_index = SOV }
		set_temp_variable = { influence_target = PER }
		change_influence_percentage = yes
		newline = yes
		set_temp_variable = { treasury_change = -11.5 }
		modify_treasury_effect = yes
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.171.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.171.b executed"
		set_temp_variable = { percent_change = 5 }
		change_domestic_influence_percentage = yes
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.173
	title = iranian_focus.173.t
	desc = iranian_focus.173.d
	picture = GFX_politics_negotiations
	is_triggered_only = yes

	option = { # Accept
		name = iranian_focus.173.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.173.a executed"
		add_political_power = 25
		PER = {
			country_event = iranian_focus.174
		}
	}

	option = { # Decline
		ai_chance = {
			base = 0
		}
		name = iranian_focus.173.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.173.b executed"
		PER = {
			country_event = iranian_focus.175
		}
	}
}
country_event = {
	id = iranian_focus.174 # Accepted
	title = iranian_focus.174.t
	desc = iranian_focus.174.d
	picture = GFX_message_signing
	is_triggered_only = yes

	option = {
		add_political_power = 25
		ai_chance = { base = 1 }
		name = iranian_focus.174.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.174.a executed"
		TRK = {
			add_opinion_modifier = {
				target = PER
				modifier = political_outreach
			}
		}
		PER = {
			add_opinion_modifier = {
				target = TRK
				modifier = political_outreach
			}
		}
	}
}
country_event = {
	id = iranian_focus.175 # Declined
	title = iranian_focus.175.t
	desc = iranian_focus.175.d
	picture = GFX_treaty_rejected
	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 1
		}
		name = iranian_focus.175.a
		# Delinced -> Ok then...
	}
}

country_event = {
	id = iranian_focus.176 # Iran being left unchecked
	title = iranian_focus.176.t
	desc = iranian_focus.176.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.176.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.176.a executed"
		declare_war_on = {
			target = PER
			type = liberate_wargoal
		}
		hidden_effect = {
			if = {
				limit = { has_country_flag = arabic_nation_flag }
				news_event = {
					id = iranian_focus.781
					days = 1
				}
			}
			else = {
				news_event = {
					id = iranian_focus.177
					days = 1
				}
			}
		}
		ai_chance = { base = 5 }
	}

	option = {
		name = iranian_focus.176.b
		ai_chance = { base = 0 }
	}
}

news_event = {
	id = iranian_focus.177
	title = iranian_focus.177.t
	desc = iranian_focus.177.d
	picture = GFX_news_iraq_war3
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_focus.177.a
		ai_chance = { base = 5 }
	}
}

country_event = {
	id = iranian_focus.178
	title = iranian_focus.178.t
	desc = iranian_focus.178.d
	picture = GFX_court
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.178.a # Support the judiciary
		log = "[GetDateText]: [This.GetName]:iranian_focus.178.a executed"
		set_temp_variable = { temp_opinion = 5 }
		change_the_ulema_opinion = yes
		if = {
			limit = {
				has_power_balance = {
					id = PER_clergy_balance_of_power_category
				}
			}
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.03
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = iranian_focus.178.b # Support the liberal institutions
		log = "[GetDateText]: [This.GetName]:iranian_focus.178.b executed"
		set_temp_variable = { temp_opinion = -5 }
		change_the_ulema_opinion = yes
		if = {
			limit = {
				has_power_balance = {
					id = PER_clergy_balance_of_power_category
				}
			}
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.03
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_focus.179 # Saeed Hajjarian Shot in Tehran!
	title = iranian_focus.179.t
	desc = iranian_focus.179.d
	picture = GFX_Military_Reform
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.179.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.179.a executed"
		set_temp_variable = { temp_opinion = -5 }
		change_the_military_opinion = yes
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_corruption_cost = -0.05 tooltip = corruption_cost_factor_tt }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.03
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.179.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.179.b executed"
		set_temp_variable = { temp_opinion = 5 }
		change_the_military_opinion = yes
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.03
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.180 # Khatami's Reforms
	title = iranian_focus.180.t
	desc = iranian_focus.180.d
	picture = GFX_election_day
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.180.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.180.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_productivity_growth = 0.05 tooltip = productivity_growth_modifier_tt }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.03
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.180.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.180.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_population_tax_income_multiplier_modifier = 0.025 tooltip = population_tax_income_multiplier_modifier_tt }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.03
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.181 # IRGC and Artesh Conflict of Interest
	title = iranian_focus.181.t
	desc = iranian_focus.181.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.181.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.181.a executed"
		set_temp_variable = { temp_opinion = 15 }
		change_the_military_opinion = yes
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_equipment_conversion_speed = -0.05 tooltip = equipment_conversion_speed_tt }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.181.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.181.b executed"
		set_temp_variable = { temp_opinion = -10 }
		change_the_military_opinion = yes
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_equipment_conversion_speed = 0.10 tooltip = equipment_conversion_speed_tt }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.182 # Economic Security Police
	title = iranian_focus.182.t
	desc = iranian_focus.182.d
	picture = GFX_politics_cut_taxes
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.182.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.182.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_agricolture_productivity_modifier = 0.05 tooltip = agricolture_productivity_modifier_tt }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.182.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.182.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_agriculture_district_income_tax_modifier = 0.1 tooltip = agriculture_district_income_tax_modifier_tt }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.183 # Parsian Bank Founded
	title = iranian_focus.183.t
	desc = iranian_focus.183.d
	picture = GFX_banking_crisis
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.183.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.183.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_interest_rate_multiplier_modifier = -0.10 tooltip = interest_rate_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.183.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.183.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_corporate_tax_factor = 0.025 tooltip = corporate_tax_income_multiplier_modifier_tt }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.184 # The Helmand River
	title = iranian_focus.184.t
	desc = iranian_focus.184.d
	picture = GFX_generic_tractor_manufacturer
	is_triggered_only = yes
	fire_only_once = yes

	trigger = { country_exists = TAL }

	option = {
		name = iranian_focus.184.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.184.a executed"
		add_political_power = 150
		if = {
			limit = {
				controls_state = 1152
				NOT = { controls_state = 401 }
				1152 = { NOT = { has_border_war = yes } }
				401 = { NOT = { has_border_war = yes } }
			}
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 1152
					num_provinces = 1
					on_win = iranian_focus.186
					on_lose = iranian_focus.187
					on_cancel = iranian_focus.188
				}
				defender = {
					state = 401
					num_provinces = 1
					on_win = iranian_focus.187
					on_lose = iranian_focus.186
					on_cancel = iranian_focus.188
				}
			}
		}
		hidden_effect = { PER = { country_event = iranian_focus.185 } }
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.184.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.184.b executed"
		add_stability = 0.05
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = iranian_focus.185 # The Helmand River
	title = iranian_focus.185.t
	desc = iranian_focus.185.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.185.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.186 # Taliban Victory Over the Helmand
	title = iranian_focus.186.t
	desc = iranian_focus.186.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.186.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.186.a executed"
		PER = {
			set_temp_variable = { temp_productivity_change = -50 }
			401 = { state_flat_productivity_change_effect = yes }
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.187 # Iranian Victory Over the Helmand
	title = iranian_focus.187.t
	desc = iranian_focus.187.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.187.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.187.a executed"
		PER = {
			set_temp_variable = { temp_productivity_change = 50 }
			401 = { state_flat_productivity_change_effect = yes }
		}
		TAL = { add_stability = -0.03 }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.188 # Ceasefire Called in the Helmand
	title = iranian_focus.188.t
	desc = iranian_focus.188.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_focus.188.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.191 # Khamenei Attacks Liberal Press
	title = iranian_focus.191.t
	desc = iranian_focus.191.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_focus.191.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.191.a executed"
		set_temp_variable = { party_index = 9 }
		set_temp_variable = { party_popularity_increase = 0.05 }
		change_relative_party_popularity = yes
		newline = yes
		set_temp_variable = { party_index = 8 }
		set_temp_variable = { party_popularity_increase = -0.05 }
		change_relative_party_popularity = yes
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = -0.03
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.191.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.191.b executed"
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = 0.05
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.192 # Faraz Qeshm Airlines Yak-40 crash
	title = iranian_focus.192.t
	desc = iranian_focus.192.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	option = {
		name = iranian_focus.192.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.192.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_rail_way_factor = 0.05 tooltip = production_speed_rail_way_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -18.5 }
		modify_treasury_effect = yes
		newline = yes
		add_political_power = -100
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_focus.192.b
		log = "[GetDateText]: [This.GetName]:iranian_focus.192.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_rail_way_factor = -0.03 tooltip = production_speed_rail_way_factor_tt }
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.193 # Faraz Qeshm Airlines Yak-40 crash
	title = iranian_focus.193.t
	desc = iranian_focus.193.d
	picture = GFX_court
	is_triggered_only = yes

	option = {
		name = iranian_focus.193.a
		log = "[GetDateText]: [This.GetName]:iranian_focus.193.a executed"
		retire_character = PER_alireza_asgari
		ai_chance = { base = 1 }
	}
}

# Dead or Alive... Actually, Just Dead
country_event = {
	id = iranian_focus.194
	title = iranian_focus.194.t
	desc = iranian_focus.194.d
	picture = GFX_weapons_arms1
	is_triggered_only = yes

	#picture = GFX_PER_Iranian_police_loom_event
	option = {
		name = iranian_focus.194.a
		ai_chance = { base = 1 }
	}
}

#Arrival in Damascus
country_event = {
	id = iranian_focus.195
	title = iranian_focus.195.t
	desc = iranian_focus.195.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_focus.195.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_focus.196
	is_triggered_only = yes
	hidden = yes

	trigger = {
		western_autocrats_are_in_power = yes
		NOT = { has_country_flag = PER_ali_reza_in }
	}

	immediate = {
		create_country_leader = {
			name = "Reza Shah Pahlavi II "
			picture = "pahlavi_old.dds"
			ideology = Western_Autocracy
			desc = "PER_pahlavi_desc"
			traits = {
				western_Western_Autocracy
				king
				geopolitical_thinker
				shahanshah
			}
		}
	}
}

country_event = {
	id = iranian_focus.197
	title = iranian_focus.197.t
	desc = iranian_focus.197.d
	is_triggered_only = yes

	option = {
		name = iranian_focus.197.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.197.a executed"
		set_country_flag = PER_ali_reza_in
		create_country_leader = {
			name = "Ali-Reza Pahlavi"
			picture = "ali_reza_pahlavi.dds"
			ideology = Western_Autocracy
			traits = {
				western_Western_Autocracy
				king
				geopolitical_thinker
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Rising Internet Usage
	id = iranian_focus.198
	title = iranian_focus.198.t
	desc = iranian_focus.198.d
	picture = GFX_computer
	is_triggered_only = yes

	option = { # Foster this new technology
		name = iranian_focus.198.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.198.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_internet_station_factor = 0.10 tooltip = production_speed_internet_station_factor_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = -0.05
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = iranian_focus.198.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.198.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_internet_station_factor = -0.05 tooltip = production_speed_internet_station_factor_tt }
		newline = yes
		add_to_variable = { PER_cic_construction_boost_factor = 0.05 tooltip = cic_construction_boost_factor_tt }
		newline = yes
		add_power_balance_value = {
			id = PER_clergy_balance_of_power_category
			value = 0.05
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # Ministry Of Culture Under Attack
	id = iranian_focus.199
	title = iranian_focus.199.t
	desc = iranian_focus.199.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = { # Foster this new technology
		name = iranian_focus.199.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.199.a executed"
		add_stability = 0.02
		newline = yes
		add_political_power = 200
		if = {
			limit = {
				OR = {
					emerging_hardline_shiite_are_in_power = yes
					emerging_moderate_shiite_are_in_power = yes
				}
			}
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = {
		name = iranian_focus.199.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.199.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.10 tooltip = propaganda_campaign_cost_modifier_tt }
		if = {
			limit = {
				OR = {
					emerging_hardline_shiite_are_in_power = yes
					emerging_moderate_shiite_are_in_power = yes
				}
			}
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.05
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = { # HIV/AIDS on the rise
	id = iranian_focus.200
	title = iranian_focus.200.t
	desc = iranian_focus.200.d
	picture = GFX_treaty
	is_triggered_only = yes

	option = { # Focus on medical advancements
		name = iranian_focus.200.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.200.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = 0.05 tooltip = propaganda_campaign_cost_modifier_tt }
		newline = yes
		add_to_variable = { PER_research_speed_factor = 0.05 tooltip = research_speed_factor_tt }
		newline = yes
		add_tech_bonus = {
			name = iranian_focus.200.t
			bonus = 0.5
			uses = 1
			category = CAT_genes
		}
		if = {
			limit = {
				OR = {
					emerging_hardline_shiite_are_in_power = yes
					emerging_moderate_shiite_are_in_power = yes
				}
			}
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Crackdown on this immoral behavior
		name = iranian_focus.200.b
		log = "[GetDateText]: [This.GetName]: iranian_focus.200.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.05 tooltip = propaganda_campaign_cost_modifier_tt }
		newline = yes
		add_stability = -0.03
		if = {
			limit = {
				OR = {
					emerging_hardline_shiite_are_in_power = yes
					emerging_moderate_shiite_are_in_power = yes
				}
			}
			newline = yes
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.05
			}
		}
		ai_chance = {
			base = 1
		}
	}
}

country_event = { # Rise Of The Deviant Current
	id = iranian_focus.201
	title = iranian_focus.201.t
	desc = iranian_focus.201.d
	picture = GFX_mashaei_event
	is_triggered_only = yes

	option = { # Focus on medical advancements
		name = iranian_focus.201.a
		log = "[GetDateText]: [This.GetName]: iranian_focus.201.a executed"
		set_temp_variable = { party_index = 22 }
		set_temp_variable = { party_popularity_increase = 0.05 }
		set_temp_variable = { temp_outlook_increase = 0.1 }
		change_relative_party_popularity = yes
		ai_chance = {
			base = 1
		}
	}
}

# 2004 - Khatami boo'ed

# Protest Events

# Khoy has fallen to protesters
country_event = {
	id = iranian_events.20
	title = iranian_events.20.t
	desc = iranian_events.20.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_khoy_fell_recently }
		NOT = { 1039 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.20.a
		log = "[GetDateText]: [This.GetName]:iranian_events.20.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1039 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# West Azerbaijan has fallen
country_event = {
	id = iranian_events.21
	title = iranian_events.21.t
	desc = iranian_events.21.d
	picture = GFX_iran_protest3
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_west_azerbaijan_fell_recently }
		NOT = { 979 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.21.a
		log = "[GetDateText]: [This.GetName]:iranian_events.21.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		979 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Azerbaijan has fallen
country_event = {
	id = iranian_events.22
	title = iranian_events.22.t
	desc = iranian_events.22.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_azerbaijan_fell_recently }
		NOT = { 407 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.22.a
		log = "[GetDateText]: [This.GetName]:iranian_events.22.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		407 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Kordestan has fallen
country_event = {
	id = iranian_events.23
	title = iranian_events.23.t
	desc = iranian_events.23.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_kordestan_fell_recently }
		NOT = { 408 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.23.a
		log = "[GetDateText]: [This.GetName]:iranian_events.23.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		408 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Kermanshah has fallen
country_event = {
	id = iranian_events.24
	title = iranian_events.24.t
	desc = iranian_events.24.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_kermanshah_fell_recently }
		NOT = { 1139 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.24.a
		log = "[GetDateText]: [This.GetName]:iranian_events.24.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1139 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Ilam has fallen
country_event = {
	id = iranian_events.25
	title = iranian_events.25.t
	desc = iranian_events.25.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_ilam_fell_recently }
		NOT = { 1138 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.25.a
		log = "[GetDateText]: [This.GetName]:iranian_events.25.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1138 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Khuzestan has fallen
country_event = {
	id = iranian_events.26
	title = iranian_events.26.t
	desc = iranian_events.26.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_khuzestan_fell_recently }
		NOT = { 399 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.26.a
		log = "[GetDateText]: [This.GetName]:iranian_events.26.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		399 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Hamadan has fallen
country_event = {
	id = iranian_events.27
	title = iranian_events.27.t
	desc = iranian_events.27.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_hamadan_fell_recently }
		NOT = { 1148 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.27.a
		log = "[GetDateText]: [This.GetName]:iranian_events.27.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1148 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Lorestan has fallen
country_event = {
	id = iranian_events.28
	title = iranian_events.28.t
	desc = iranian_events.28.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_lorestan_fell_recently }
		NOT = { 406 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.28.a
		log = "[GetDateText]: [This.GetName]:iranian_events.28.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		406 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Markazi has fallen
country_event = {
	id = iranian_events.29
	title = iranian_events.29.t
	desc = iranian_events.29.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_markazi_fell_recently }
		NOT = { 404 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.29.a
		log = "[GetDateText]: [This.GetName]:iranian_events.29.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		404 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Qom has fallen
country_event = {
	id = iranian_events.30
	title = iranian_events.30.t
	desc = iranian_events.30.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_qom_fell_recently }
		NOT = { 1144 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.30.a
		log = "[GetDateText]: [This.GetName]:iranian_events.30.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1144 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Tehran has fallen
country_event = {
	id = iranian_events.31
	title = iranian_events.31.t
	desc = iranian_events.31.d
	picture = GFX_tehran_protest
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_tehran_fell_recently }
		NOT = { 405 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.31.a
		log = "[GetDateText]: [This.GetName]:iranian_events.31.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		405 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.15
			}
		}
	}
}

# Semnan has fallen
country_event = {
	id = iranian_events.32
	title = iranian_events.32.t
	desc = iranian_events.32.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_semnan_fell_recently }
		NOT = { 1149 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.32.a
		log = "[GetDateText]: [This.GetName]:iranian_events.32.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1149 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Esfahan has fallen
country_event = {
	id = iranian_events.33
	title = iranian_events.33.t
	desc = iranian_events.33.d
	picture = GFX_iran_protest3
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_esfahan_fell_recently }
		NOT = { 976 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.33.a
		log = "[GetDateText]: [This.GetName]:iranian_events.33.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		976 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Fars has fallen
country_event = {
	id = iranian_events.34
	title = iranian_events.34.t
	desc = iranian_events.34.d
	picture = GFX_iran_protest3
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_fars_fell_recently }
		NOT = { 400 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.34.a
		log = "[GetDateText]: [This.GetName]:iranian_events.34.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		400 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Bushehr has fallen
country_event = {
	id = iranian_events.35
	title = iranian_events.35.t
	desc = iranian_events.35.d
	picture = GFX_iran_protest3
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_bushehr_fell_recently }
		NOT = { 1146 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.35.a
		log = "[GetDateText]: [This.GetName]:iranian_events.35.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1146 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Yazd has fallen
country_event = {
	id = iranian_events.36
	title = iranian_events.36.t
	desc = iranian_events.36.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_yazd_fell_recently }
		NOT = { 1147 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.36.a
		log = "[GetDateText]: [This.GetName]:iranian_events.36.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1147 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Gilan has fallen
country_event = {
	id = iranian_events.37
	title = iranian_events.37.t
	desc = iranian_events.37.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_gilan_fell_recently }
		NOT = { 1073 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.37.a
		log = "[GetDateText]: [This.GetName]:iranian_events.37.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1073 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Mazandaran has fallen
country_event = {
	id = iranian_events.38
	title = iranian_events.38.t
	desc = iranian_events.38.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_mazandaran_fell_recently }
		NOT = { 403 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.38.a
		log = "[GetDateText]: [This.GetName]:iranian_events.38.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		403 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Golestan has fallen
country_event = {
	id = iranian_events.39
	title = iranian_events.39.t
	desc = iranian_events.39.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_golestan_fell_recently }
		NOT = { 1145 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.39.a
		log = "[GetDateText]: [This.GetName]:iranian_events.39.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1145 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# North Khorasan has fallen
country_event = {
	id = iranian_events.40
	title = iranian_events.40.t
	desc = iranian_events.40.d
	picture = GFX_iran_protest4
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_north_khorasan_fell_recently }
		NOT = { 1150 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.40.a
		log = "[GetDateText]: [This.GetName]:iranian_events.40.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1150 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Razavi Khorasan has fallen
country_event = {
	id = iranian_events.41
	title = iranian_events.41.t
	desc = iranian_events.41.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_razavi_khorasan_fell_recently }
		NOT = { 402 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.41.a
		log = "[GetDateText]: [This.GetName]:iranian_events.41.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		402 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# South Khorasan has fallen
country_event = {
	id = iranian_events.42
	title = iranian_events.42.t
	desc = iranian_events.42.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_south_khorasan_fell_recently }
		NOT = { 1151 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.42.a
		log = "[GetDateText]: [This.GetName]:iranian_events.42.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		1151 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Kerman has fallen
country_event = {
	id = iranian_events.43
	title = iranian_events.43.t
	desc = iranian_events.43.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_kerman_fell_recently }
		NOT = { 977 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.43.a
		log = "[GetDateText]: [This.GetName]:iranian_events.43.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		977 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Balochistan has fallen
country_event = {
	id = iranian_events.44
	title = iranian_events.44.t
	desc = iranian_events.44.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_balochistan_fell_recently }
		NOT = { 401 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.44.a
		log = "[GetDateText]: [This.GetName]:iranian_events.44.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		401 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Hormuz has fallen
country_event = {
	id = iranian_events.45
	title = iranian_events.45.t
	desc = iranian_events.45.d
	picture = GFX_student_protest_iran
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = PER_hormuz_fell_recently }
		NOT = { 978 = { has_state_flag = PER_locals_swayed } }
	}

	option = {
		name = iranian_events.45.a
		log = "[GetDateText]: [This.GetName]:iranian_events.45.a executed"
		custom_effect_tooltip = PER_state_falls_TT
		978 = { PER_sway_state = yes }
		add_to_variable = { var = PER_protest_exhaustion value = 1 }
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.05
			}
		}
	}
}

# Protests Suppressed
country_event = {
	id = iranian_events.200
	title = iranian_events.200.t
	desc = iranian_events.200.d
	picture = GFX_iran_protest1
	is_triggered_only = yes

	option = {
		name = iranian_events.200.a
		log = "[GetDateText]: [This.GetName]:iranian_events.200.a executed"
		hidden_effect = {
			random_list = {
				70 = {
					add_to_variable = { var = PER_protest_exhaustion value = 1 }
				}
				30 = {
					add_to_variable = { var = PER_protest_exhaustion value = -2 }
				}
			}
		}
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.02
			}
		}
	}
}

country_event = {
	id = iranian_events.201
	title = iranian_events.201.t
	desc = iranian_events.201.d
	picture = GFX_iran_protest2
	is_triggered_only = yes

	option = {
		name = iranian_events.201.a
		log = "[GetDateText]: [This.GetName]:iranian_events.201.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.01
			}
		}
	}
}

country_event = {
	id = iranian_events.202 # End of protests
	title = iranian_events.202.t
	desc = iranian_events.202.d
	picture = GFX_iran_protest5
	is_triggered_only = yes

	option = {
		name = iranian_events.202.a
		log = "[GetDateText]: [This.GetName]:iranian_events.202.a executed"
		clr_country_flag = PER_protests_ongoing
		clear_variable = PER_protest_exhaustion
		every_owned_state = {
			limit = { has_state_flag = PER_locals_swayed }
			clr_state_flag = PER_locals_swayed
		}
		if = {
			limit = { is_ai = no }
			update_per_civil_war_dirty_variable = yes
		}
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = 0.05
			}
		}
	}
}

# I.R. collapse event chain
country_event = {
	id = iranian_events.220 # The Breaking Point
	title = iranian_events.220.t
	desc = iranian_events.220.d
	picture = GFX_iran_revolution_small
	is_triggered_only = yes

	option = {
		name = iranian_events.220.a
		log = "[GetDateText]: [This.GetName]:iranian_events.220.a executed"
		set_country_flag = PER_turn_off_IR_stuff
		custom_effect_tooltip = PER_increase_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = 1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			if = {
				limit = { has_country_flag = PER_protests_ongoing }
				country_event = {
					id = iranian_events.202
					days = 1
				}
			}
			remove_power_balance = { id = PER_clergy_balance_of_power_category }
			country_event = {
				id = iranian_events.221
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 20 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.220.b
		log = "[GetDateText]: [This.GetName]:iranian_events.220.b executed"
		set_country_flag = PER_turn_off_IR_stuff
		custom_effect_tooltip = PER_decrease_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = -1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			if = {
				limit = { has_country_flag = PER_protests_ongoing }
				country_event = {
					id = iranian_events.202
					days = 1
				}
			}
			remove_power_balance = { id = PER_clergy_balance_of_power_category }
			country_event = {
				id = iranian_events.221
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.221 # Defections & Disloyalty
	title = iranian_events.221.t
	desc = iranian_events.221.d
	picture = GFX_artesh_protest
	is_triggered_only = yes

	option = {
		name = iranian_events.221.a
		log = "[GetDateText]: [This.GetName]:iranian_events.221.a executed"
		custom_effect_tooltip = PER_increase_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = 1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.222
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 20 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.221.b
		log = "[GetDateText]: [This.GetName]:iranian_events.221.b executed"
		custom_effect_tooltip = PER_decrease_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = -1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.222
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.222 # A Fractured Parliament
	title = iranian_events.222.t
	desc = iranian_events.222.d
	picture = GFX_event_civil_war_3
	is_triggered_only = yes

	option = {
		name = iranian_events.222.a
		log = "[GetDateText]: [This.GetName]:iranian_events.222.a executed"
		custom_effect_tooltip = PER_increase_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = 1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			if = {
				limit = { date > 2009.1.1 }
				country_event = {
					id = iranian_events.224
					days = 7
				}
			}
			else = {
				country_event = {
					id = iranian_events.223
					days = 7
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 20 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.222.b
		log = "[GetDateText]: [This.GetName]:iranian_events.222.b executed"
		custom_effect_tooltip = PER_decrease_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = -1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			if = {
				limit = { date > 2009.1.1 }
				country_event = {
					id = iranian_events.224
					days = 7
				}
			}
			else = {
				country_event = {
					id = iranian_events.223
					days = 7
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.223 # The Rise of Montazeri (Before 2009)
	title = iranian_events.223.t
	desc = iranian_events.223.d
	picture = GFX_montazeri_event
	is_triggered_only = yes

	option = {
		name = iranian_events.223.a
		log = "[GetDateText]: [This.GetName]:iranian_events.223.a executed"
		custom_effect_tooltip = PER_increase_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = 1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.225
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 20 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.223.b
		log = "[GetDateText]: [This.GetName]:iranian_events.223.b executed"
		custom_effect_tooltip = PER_decrease_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = -1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.225
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.224 # The Formation of the Revolutionary Council (After 2009)
	title = iranian_events.224.t
	desc = iranian_events.224.d
	picture = GFX_iran_nationalist_country
	is_triggered_only = yes

	option = {
		name = iranian_events.224.a
		log = "[GetDateText]: [This.GetName]:iranian_events.224.a executed"
		set_country_flag = PER_rev_council
		custom_effect_tooltip = PER_increase_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = 1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.225
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 20 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.224.b
		log = "[GetDateText]: [This.GetName]:iranian_events.224.b executed"
		set_country_flag = PER_rev_council
		custom_effect_tooltip = PER_decrease_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = -1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.225
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.225 # The Fall of Tehran
	title = iranian_events.225.t
	desc = iranian_events.225.d
	picture = GFX_tehran_protest
	is_triggered_only = yes

	option = {
		name = iranian_events.225.a
		log = "[GetDateText]: [This.GetName]:iranian_events.225.a executed"
		custom_effect_tooltip = PER_increase_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = 1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.226
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 20 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.225.b
		log = "[GetDateText]: [This.GetName]:iranian_events.225.b executed"
		custom_effect_tooltip = PER_decrease_volatility_TT
		add_to_variable = { var = PER_revolution_volatility value = -1 }
		clamp_variable = { var = PER_revolution_volatility min = 0 max = 50 }
		hidden_effect = {
			country_event = {
				id = iranian_events.226
				days = 7
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.226 # The Dissolution of the Islamic Republic
	title = iranian_events.226.t
	desc = iranian_events.226.d
	picture = GFX_regime_crumbles
	is_triggered_only = yes

	option = {
		name = iranian_events.226.a
		log = "[GetDateText]: [This.GetName]:iranian_events.226.a executed"
		hidden_effect = {
			set_cosmetic_tag = PER_free_republic
			news_event = iranian_events.231
			add_stability = -0.15
			if = {
				limit = { has_country_flag = PER_rev_council }
				set_temp_variable = { party_index = 16 }
				set_temp_variable = { party_popularity_increase = 0.35 }
				set_temp_variable = { temp_outlook_increase = 0.35 }
				change_relative_party_popularity = yes
				hidden_effect = {
					set_temp_variable = { rul_party_temp = 16 }
					set_temp_variable = { disable_elections = 1 }
					change_ruling_party_effect = yes
				}
				country_event = {
					id = iranian_focus.158
					days = 16
				}
				create_country_leader = {
					name = "Revolutionary Council"
					picture = "iranian_juntas.dds"
					ideology = neutral_Social
					traits = {
						stubborn
					}
				}
			}
			else = {
				set_temp_variable = { party_index = 13 }
				set_temp_variable = { party_popularity_increase = 0.35 }
				set_temp_variable = { temp_outlook_increase = 0.35 }
				change_relative_party_popularity = yes
				hidden_effect = {
					set_temp_variable = { rul_party_temp = 13 }
					set_temp_variable = { disable_elections = 1 }
					change_ruling_party_effect = yes
				}
				create_country_leader = {
					name = "Hossein-Ali Montazeri"
					picture = "hossein_montazeri.dds"
					ideology = Neutral_Autocracy
					desc = "PER_montazeri_desc"
					traits = {
						neutrality_Neutral_Autocracy
						zealous
						cleric
					}
				}
				if = {
					limit = {
						is_ai = yes
						OR = {
							has_global_flag = PER_FREEDOM_MOVEMENT_FOCUS_PATH
							has_global_flag = PER_NATIONAL_FRONT_FOCUS_PATH
							has_global_flag = PER_GREEN_MOVEMENT_FOCUS_PATH
						}
					}
					country_event = {
						id = iranian_focus.158
						days = 16
					}
				}
			}
			add_ideas = PER_neutral_political_scene
			clr_country_flag = generic_election_killswitch
			set_variable = { party_banned_array^0 = 0 }
			set_variable = { party_banned_array^1 = 0 }
			set_variable = { party_banned_array^2 = 0 }
			set_variable = { party_banned_array^3 = 0 }
			set_variable = { party_banned_array^4 = 0 }
			set_variable = { party_banned_array^8 = 1 }
			set_variable = { party_banned_array^9 = 1 }
			set_variable = { party_banned_array^12 = 0 }
			set_variable = { party_banned_array^13 = 0 }
			set_variable = { party_banned_array^14 = 0 }
			set_variable = { party_banned_array^15 = 0 }
			set_variable = { party_banned_array^16 = 0 }
			set_variable = { party_banned_array^17 = 0 }
			set_variable = { party_banned_array^18 = 0 }
			set_variable = { party_banned_array^19 = 0 }
			set_variable = { party_banned_array^20 = 0 }
			set_variable = { party_banned_array^21 = 0 }
			set_variable = { party_banned_array^22 = 0 }
			set_variable = { party_banned_array^23 = 0 }
			country_event = {
				id = PER_majlis.30
				days = 16
			}
			HEZ = {
				add_opinion_modifier = {
					target = PER
					modifier = danger_to_national_security
				}
			}
			USA = {
				remove_opinion_modifier = {
					target = PER
					modifier = beirut_bombing
				}
				remove_opinion_modifier = {
					target = PER
					modifier = no_diplomatic_ties
				}
				remove_opinion_modifier = {
					target = PER
					modifier = iran_hostage_crisis
				}
			}
			PER = {
				add_opinion_modifier = {
					target = HEZ
					modifier = danger_to_national_security
				}
				remove_opinion_modifier = {
					target = SYR
					modifier = resistance_axis
				}
				remove_opinion_modifier = {
					target = HEZ
					modifier = resistance_axis
				}
				remove_opinion_modifier = {
					target = USA
					modifier = no_diplomatic_ties
				}
				remove_opinion_modifier = {
					target = USA
					modifier = cia_coup_mossadeq
				}
				remove_opinion_modifier = {
					target = ISR
					modifier = no_diplomatic_ties
				}
				remove_opinion_modifier = {
					target = ISR
					modifier = no_diplomatic_ties
				}
				remove_opinion_modifier = {
					target = ISR
					modifier = threat_to_our_independence
				}
				remove_opinion_modifier = {
					target = USA
					modifier = operation_praying_mantis
				}
				remove_opinion_modifier = {
					target = USA
					modifier = uss_vincennes
				}
				remove_opinion_modifier = {
					target = ISR
					modifier = danger_to_national_security
				}
				remove_opinion_modifier = {
					target = ISR
					modifier = ISR_Arab_Conflict
				}
				remove_opinion_modifier = {
					target = ISR
					modifier = death_to_israel
				}
			}
			ISR = {
				remove_opinion_modifier = {
					target = PER
					modifier = no_diplomatic_ties
				}
				remove_opinion_modifier = {
					target = PER
					modifier = death_to_israel_ISR
				}
				remove_opinion_modifier = {
					target = PER
					modifier = danger_to_national_security
				}
				remove_opinion_modifier = {
					target = PER
					modifier = threat_to_our_independence
				}
				remove_opinion_modifier = {
					target = PER
					modifier = ISR_Arab_Conflict
				}
				remove_opinion_modifier = {
					target = PER
					modifier = no_diplomatic_ties
				}
			}
			remove_ideas = PER_ahmadinejad_idea
			remove_ideas = PER_bayadi_idea
			remove_ideas = PER_ghalibaf_idea
			remove_ideas = PER_haghshenas_idea
			remove_ideas = PER_hemmati_idea
			remove_ideas = PER_karroubi_idea
			remove_ideas = PER_kavakebian_idea
			remove_ideas = PER_khatami_idea
			remove_ideas = PER_mashaei_idea
			remove_ideas = PER_mousavi_idea
			remove_ideas = PER_pezeshkian_idea
			remove_ideas = PER_rafsanjani_idea
			remove_ideas = PER_raisi_idea
			remove_ideas = PER_rezaee_idea
			remove_ideas = PER_rouhani_idea
			remove_ideas = PER_tavakoli_idea
			remove_ideas = PER_yazdi_idea
			remove_ideas = the_holy_defence
			HEZ = {
				add_relation_modifier = {
					target = IRI
					modifier = generic_increased_military_support
				}
			}
			SYR = {
				add_relation_modifier = {
					target = IRI
					modifier = generic_increased_military_support
				}
			}
			if = {
				limit = { has_idea = faction_resistance_axis_member }
				leave_faction = yes
			}
			remove_ideas = faction_resistance_axis_member
			country_event = {
				id = iranian_events.227
				days = 5
			}
			country_event = {
				id = iranian_events.239
				days = 30
			}
			if = {
				limit = {
					has_country_leader = { name = "Hossein-Ali Montazeri" ruling_only = yes }
				}
				country_event = {
					id = iranian_events.237
					days = 20
				}
			}
			if = {
				limit = { check_variable = { PER_revolution_volatility > 2 } }
				country_event = {
					id = iranian_events.228
					days = 70
				}
			}
		}
	}
}

country_event = {
	id = iranian_events.227 # IRGC Generals Flee to Lebanon
	title = iranian_events.227.t
	desc = iranian_events.227.d
	picture = GFX_civil_war_event_4
	is_triggered_only = yes

	option = {
		name = iranian_events.227.a
		log = "[GetDateText]: [This.GetName]:iranian_events.227.a executed"
		retire_character = PER_kioumars_heydari
		retire_character = PER_mohammad_pakpour
		retire_character = PER_mostafa_izadi
		retire_character = PER_mohammad_hejazi
		retire_character = PER_mohammad_jafari
		retire_character = PER_ali_najafi
		retire_character = PER_qasem_soleimani
		retire_character = PER_ali_fadavi
		retire_character = PER_mohammad_bagheri
		retire_character = PER_abdolrahim_mousavi
		retire_character = PER_ali_shamkhani
		retire_character = PER_amir_hajizadeh
		delete_unit_template_and_units = {
			division_template = "Niru-ye Daryayi Sepah-e Pasdaran"
			disband = yes
		}
		delete_unit_template_and_units = {
			division_template = "Niru-ye Qods-e Sepah-e Pasdaran"
			disband = yes
		}
		delete_unit_template_and_units = {
			division_template = "Lashkar-e Motorizeh Sepah-e Pasdaran"
			disband = yes
		}
		delete_unit_template_and_units = {
			division_template = "Lashkar-e Zerehiye Sepah-e Pasdaran"
			disband = yes
		}
		delete_unit_template_and_units = {
			division_template = "Lashkar-e Mekanizeh Sepah-e Pasdaran"
			disband = yes
		}
		delete_unit_template_and_units = {
			division_template = "Lashkar-e Komando-ye Sepah-e Pasdaran"
			disband = yes
		}
		delete_unit_template_and_units = {
			division_template = "Lashkar-e Havabord-e Sepah-e Pasdaran"
			disband = yes
		}
		HEZ = { set_country_flag = HEZ_IRGC_GENERALS }
	}
}

country_event = {
	id = iranian_events.228 # Artesh Under Attack!
	title = iranian_events.228.t
	desc = iranian_events.228.d
	picture = GFX_civil_war_event_1
	is_triggered_only = yes

	option = {
		name = iranian_events.228.a
		log = "[GetDateText]: [This.GetName]:iranian_events.228.a executed"
		hidden_effect = {
			country_event = {
				id = iranian_events.232
				days = 30
			}
			news_event = iranian_events.229
			create_dynamic_country = {
				original_tag = PER
				set_country_flag = PER_akhoond_flag
				copy_tag = PER
				set_cosmetic_tag = PER_mullahs_government
				set_variable = { dynamic_flag_variant = 8 }
				mark_formed_country_formable = yes
				retire_country_leader = yes
				set_popularities = {
					communism = 94
					democratic = 6
				}
				set_politics = {
					ruling_party = communism
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^0 = 0.06 } #Western_Autocracy
				set_variable = { party_pop_array^8 = 0.47 } #Mod_Vilayat_e_Faqih -> Reformists
				set_variable = { party_pop_array^9 = 0.47 } #Vilayat_e_Faqih -> Principalists
				### Ruling Party
				set_variable = { ruling_party = 6 }
				startup_politics = yes
				load_focus_tree = { tree = iran_focus keep_completed = yes }
				create_country_leader = {
					name = "Qasem Soleimani "
					picture = "IRCG_Gen_Qasem_Soleimani.dds"
					ideology = Autocracy
					traits = {
						guerrilla_leader
						emerging_Vilayat_e_Faqih
						IRGC_Member
						geopolitical_thinker
						sly
						stubborn
						anti_zionist
					}
				}
			}
			IRI = {
				ingame_startup_nations_effect = yes
				add_ideas = shia
				division_template = {
					name = "Niru-ye Daryayi Sepah-e Pasdaran" #Sepah
					override_model = PER_SEPAH_entity
					regiments = {
						Special_Forces = { x = 0 y = 0 }
						L_Marine_Bat = { x = 0 y = 1 }
						L_Marine_Bat = { x = 0 y = 2 }
						L_Marine_Bat = { x = 0 y = 3 }
						L_Marine_Bat = { x = 0 y = 4 }
						L_Marine_Bat = { x = 1 y = 0 }
						Arty_Bat = { x = 1 y = 1 }
					}
					priority = 2
				}
				division_template = {
					name = "Niru-ye Qods-e Sepah-e Pasdaran" #Sepah
					override_model = PER_SEPAH_entity
					regiments = {
						Special_Forces = { x = 0 y = 0 }
						Special_Forces = { x = 0 y = 1 }
						Special_Forces = { x = 0 y = 2 }
						Special_Forces = { x = 0 y = 3 }
						Special_Forces = { x = 1 y = 0 }
						Special_Forces = { x = 1 y = 1 }
						Special_Forces = { x = 1 y = 2 }
						Special_Forces = { x = 1 y = 3 }
						Special_Forces = { x = 2 y = 0 }
						Special_Forces = { x = 2 y = 1 }
					}
					priority = 2
				}
				division_template = {
					name = "Lashkar-e Motorizeh Sepah-e Pasdaran" #Sepah
					override_model = PER_SEPAH_entity
					regiments = {
						Mot_Militia_Bat = { x = 0 y = 0 }
						Mot_Militia_Bat = { x = 0 y = 1 }
						Mot_Inf_Bat = { x = 1 y = 0 }
						L_Inf_Bat = { x = 1 y = 1 }
						SP_Arty_Bat = { x = 1 y = 2 }
					}
					support = {
						Mot_Recce_Comp = { x = 0 y = 0 }
						H_Engi_Comp = { x = 0 y = 1 }
						SP_AA_Battery = { x = 0 y = 2 }
					}
					priority = 2
				}
				division_template = {
					name = "Lashkar-e Zerehiye Sepah-e Pasdaran" #Sepah
					regiments = {
						armor_Bat = { x = 0 y = 0 }
						Arm_Inf_Bat = { x = 1 y = 0 }
						Mot_Militia_Bat = { x = 1 y = 1 }
						SP_Arty_Bat = { x = 1 y = 2 }
						SP_AA_Bat = { x = 1 y = 3 }
					}
					support = {
						Arm_Recce_Comp = { x = 0 y = 0 }
						H_Engi_Comp = { x = 0 y = 1 }
					}
					priority = 2
				}
				division_template = {
					name = "Lashkar-e Mekanizeh Sepah-e Pasdaran" #Sepah
					regiments = {
						Mech_Inf_Bat = { x = 0 y = 0 }
						Mot_Militia_Bat = { x = 0 y = 1 }
						Mot_Militia_Bat = { x = 0 y = 2 }
						SP_Arty_Bat = { x = 1 y = 0 }
						SP_AA_Bat = { x = 1 y = 1 }
						armor_Bat = { x = 2 y = 0 }
					}
					support = {
						Mot_Recce_Comp = { x = 0 y = 0 }
						L_Engi_Comp = { x = 0 y = 1 }
					}
					priority = 2
				}
				division_template = {
					name = "Lashkar-e Komando-ye Sepah-e Pasdaran" #Sepah
					regiments = {
						Special_Forces = { x = 0 y = 0 }
						Special_Forces = { x = 0 y = 1 }
						Special_Forces = { x = 0 y = 2 }
						Special_Forces = { x = 0 y = 3 }
						Special_Forces = { x = 1 y = 0 }
						SP_Arty_Bat = { x = 1 y = 1 }
					}
					support = {
						L_Engi_Comp = { x = 0 y = 0 }
						#SP_AA_Battery = { x = 0 y = 1 }
					}
					priority = 2
				}
				division_template = {
					name = "Lashkar-e Havabord-e Sepah-e Pasdaran" #Sepah
					regiments = {
						Special_Forces = { x = 0 y = 0 }
						L_Air_Inf_Bat = { x = 0 y = 1 }
					}
					support = {
						L_Recce_Comp = { x = 0 y = 0 }
					}
					priority = 2
				}
				division_template = {
					name = "Niru-ye Basij-e Sepah-e Pasdaran" #Sepah
					override_model = PER_SEPAH_entity
					regiments = {
						Militia_Bat = { x = 0 y = 0 }
						Militia_Bat = { x = 0 y = 1 }
						Militia_Bat = { x = 0 y = 2 }
						Militia_Bat = { x = 3 y = 0 }
						Militia_Bat = { x = 1 y = 0 }
						Militia_Bat = { x = 1 y = 1 }
						Militia_Bat = { x = 1 y = 2 }
						Militia_Bat = { x = 4 y = 0 }
						Militia_Bat = { x = 2 y = 0 }
						Militia_Bat = { x = 2 y = 1 }
					}
					priority = 2
				}
				transfer_state = 402
				transfer_state = 1150
				transfer_state = 1151
				transfer_state = 1149
				transfer_state = 977
				transfer_state = 1147
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"Sepah-e Quds\" division_template = \"Niru-ye Qods-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"Tofangdarane Daryayee-ye Sepah\" division_template = \"Niru-ye Daryayi Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"23rd. Tip-e 'al-Mahdi'\" division_template = \"Lashkar-e Havabord-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"110th. Tip-e 'Salman'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"83rd. Tip-e 'Imam Sadiq'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"82nd. Tip-e 'Sahab Alamar'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"Tip-e 71st\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"Tip-e 71st\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"57th. Tip-e 'Abo-Fazl'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"44th. Tip-e 'Qamr Bani Hashem\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"44th. Tip-e 'Qamr Bani Hashem\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"42nd. Tip-e 'Ansar al-Rasool'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"32nd. Tip-e 'Ansar al-Hussein'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"29th. Tip-e 'Nabi Akram'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"18th. Tip-e 'al-Ghadir'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"29th. Tip-e 'Nabi Akram'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"12th. Tip-e 'Qaem al-Mohammed'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"60th. Tip-e 'Ammar Yasir'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "name = \"Niruy-e Basij'\" division_template = \"Niru-ye Basij-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 15
						owner = IRI
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"21st. Tip-e 'Imam Reza'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
					create_unit = {
						division = "name = \"20th. Tip-e 'Ramazan'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
					create_unit = {
						division = "name = \"25th. Lashkar-e 'Karbala'\" division_template = \"Lashkar-e Komando-ye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
						count = 1
						owner = IRI
					}
				}
				declare_war_on = {
					target = PER
					type = civil_war
				}
			}
			TUR = {
				country_event = {
					id = iranian_events.2281
					days = 12
				}
			}
			hidden_effect = {
				send_equipment = {
					equipment = infantry_weapons_1
					amount = 27000
					target = IRI
				}
			}
			# Civil War Flavor Events
			PER = {
				country_event = { id = iranian_flavor.50 days = 10 random_days = 7 }
				country_event = { id = iranian_flavor.51 days = 20 random_days = 10 }
				country_event = { id = iranian_flavor.52 days = 35 random_days = 14 }
				country_event = { id = iranian_flavor.53 days = 50 random_days = 14 }
				country_event = { id = iranian_flavor.54 days = 65 random_days = 14 }
				country_event = { id = iranian_flavor.55 days = 80 random_days = 20 }
				country_event = { id = iranian_flavor.56 days = 25 random_days = 10 }
				country_event = { id = iranian_flavor.57 days = 45 random_days = 14 }
				country_event = { id = iranian_flavor.58 days = 60 random_days = 20 }
				country_event = { id = iranian_flavor.59 days = 90 random_days = 20 }
				country_event = { id = iranian_flavor.60 days = 100 random_days = 30 }
				country_event = { id = iranian_flavor.61 days = 40 random_days = 14 }
				country_event = { id = iranian_flavor.62 days = 75 random_days = 20 }
				country_event = { id = iranian_flavor.63 days = 120 random_days = 30 }
				country_event = { id = iranian_flavor.64 days = 140 random_days = 30 }
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 100 PER_ai_not_historical_path = yes }
		}
	}

	# Play as IRI Revolt - Soleimani
	option = {
		name = iranian_events.228.b
		log = "[GetDateText]: [This.GetName]:iranian_events.228.b executed"
		custom_effect_tooltip = PER_play_as_IR_TT
		hidden_effect = {
			add_ideas = PER_sayyid_ali_hosseini_khamenei
			create_dynamic_country = {
				original_tag = PER
				set_country_flag = PER_akhoond_flag
				copy_tag = PER
				set_cosmetic_tag = PER_artesh_government
				mark_formed_country_formable = yes
				retire_country_leader = yes
				set_popularities = {
					nationalist = 94
					democratic = 6
				}
				set_politics = {
					ruling_party = nationalist
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^0 = 0.06 } #Western_Autocracy
				set_variable = { party_pop_array^22 = 0.94 } #Nat_Autocracy
				### Ruling Party
				set_variable = { ruling_party = 22 }
				startup_politics = yes
				load_focus_tree = { tree = iran_focus keep_completed = yes }
				create_country_leader = {
					name = "Joint Chiefs Of Staff"
					picture = "PER_joint_chief_staff.dds"
					ideology = Nat_Autocracy
					traits = {
						nationalist_Nat_Autocracy
					}
				}
			}
			1039 = { transfer_state_to = IRI }
			407 = { transfer_state_to = IRI }
			1073 = { transfer_state_to = IRI }
			979 = { transfer_state_to = IRI }
			403 = { transfer_state_to = IRI }
			405 = { transfer_state_to = IRI }
			408 = { transfer_state_to = IRI }
			1148 = { transfer_state_to = IRI }
			1139 = { transfer_state_to = IRI }
			404 = { transfer_state_to = IRI }
			1144 = { transfer_state_to = IRI }
			406 = { transfer_state_to = IRI }
			1138 = { transfer_state_to = IRI }
			399 = { transfer_state_to = IRI }
			1146 = { transfer_state_to = IRI }
			400 = { transfer_state_to = IRI }
			976 = { transfer_state_to = IRI }
			1149 = { transfer_state_to = IRI }
			1145 = { transfer_state_to = IRI }
			978 = { transfer_state_to = IRI }
			401 = { transfer_state_to = IRI }
			1119 = { transfer_state_to = IRI }
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				IRI = {
					load_oob = "PER_2000_nsb"
				}
			}
			else = {
				IRI = {
					load_oob = "PER_2000_nonnsb"
				}
			}
			IRI = {
				ingame_startup_nations_effect = yes
				delete_unit_template_and_units = {
					division_template = "Niru-ye Daryayi Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Niru-ye Qods-e Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Motorizeh Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Zerehiye Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Mekanizeh Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Komando-ye Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Havabord-e Sepah-e Pasdaran"
					disband = yes
				}
			}
			# ROOT
			clr_country_flag = PER_minister_selection
			clr_country_flag = PER_iranian_minister_given
			set_country_flag = PER_majles_abolished
			set_temp_variable = { rul_party_temp = 9 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 9 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
			create_country_leader = {
				name = "Qasem Soleimani "
				picture = "IRCG_Gen_Qasem_Soleimani.dds"
				ideology = Autocracy
				traits = {
					emerging_Vilayat_e_Faqih
					guerrilla_leader
					IRGC_Member
					geopolitical_thinker
					sly
					stubborn
					anti_zionist
				}
			}
			retire_character = PER_ahmadreza_pourdastan
			retire_character = PER_farzad_esmaili
			retire_character = PER_nasser_mohammadifar
			retire_character = PER_houshang_samadi
			retire_character = PER_habibollah_sayyari
			retire_character = PER_hassan_saadi
			retire_character = PER_hossein_khanzadi
			retire_character = PER_shahram_irani
			set_country_flag = PER_IRGC_GENERALS
			HEZ = {
				clr_country_flag = HEZ_IRGC_GENERALS
			}
			delete_unit_template_and_units = {
				division_template = "Niru-ye Daryayi Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Niru-ye Qods-e Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Motorizeh Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Zerehiye Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Mekanizeh Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Komando-ye Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Havabord-e Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Zerehi"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Zerehi"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Mechanize"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Piade Nezam"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Motorizeh"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Mechanize"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Komandoyee"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Komandoyee"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Chatrbaz"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tofangdarane Daryayee"
				disband = yes
			}
			division_template = {
				name = "Niru-ye Daryayi Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					L_Marine_Bat = { x = 0 y = 1 }
					L_Marine_Bat = { x = 0 y = 2 }
					L_Marine_Bat = { x = 0 y = 3 }
					L_Marine_Bat = { x = 0 y = 4 }
					L_Marine_Bat = { x = 1 y = 0 }
					Arty_Bat = { x = 1 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Niru-ye Qods-e Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					Special_Forces = { x = 0 y = 1 }
					Special_Forces = { x = 0 y = 2 }
					Special_Forces = { x = 0 y = 3 }
					Special_Forces = { x = 1 y = 0 }
					Special_Forces = { x = 1 y = 1 }
					Special_Forces = { x = 1 y = 2 }
					Special_Forces = { x = 1 y = 3 }
					Special_Forces = { x = 2 y = 0 }
					Special_Forces = { x = 2 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Motorizeh Sepah-e Pasdaran" #Sepah
				regiments = {
					Mot_Militia_Bat = { x = 0 y = 0 }
					Mot_Militia_Bat = { x = 0 y = 1 }
					Mot_Inf_Bat = { x = 1 y = 0 }
					L_Inf_Bat = { x = 1 y = 1 }
					SP_Arty_Bat = { x = 1 y = 2 }
				}
				support = {
					Mot_Recce_Comp = { x = 0 y = 0 }
					H_Engi_Comp = { x = 0 y = 1 }
					SP_AA_Battery = { x = 0 y = 2 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Zerehiye Sepah-e Pasdaran" #Sepah
				regiments = {
					armor_Bat = { x = 0 y = 0 }
					Arm_Inf_Bat = { x = 1 y = 0 }
					Mot_Militia_Bat = { x = 1 y = 1 }
					SP_Arty_Bat = { x = 1 y = 2 }
					SP_AA_Bat = { x = 1 y = 3 }
				}
				support = {
					Arm_Recce_Comp = { x = 0 y = 0 }
					H_Engi_Comp = { x = 0 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Mekanizeh Sepah-e Pasdaran" #Sepah
				regiments = {
					Mech_Inf_Bat = { x = 0 y = 0 }
					Mot_Militia_Bat = { x = 0 y = 1 }
					Mot_Militia_Bat = { x = 0 y = 2 }
					SP_Arty_Bat = { x = 1 y = 0 }
					SP_AA_Bat = { x = 1 y = 1 }
					armor_Bat = { x = 2 y = 0 }
				}
				support = {
					Mot_Recce_Comp = { x = 0 y = 0 }
					L_Engi_Comp = { x = 0 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Komando-ye Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					Special_Forces = { x = 0 y = 1 }
					Special_Forces = { x = 0 y = 2 }
					Special_Forces = { x = 0 y = 3 }
					Special_Forces = { x = 1 y = 0 }
					SP_Arty_Bat = { x = 1 y = 1 }
				}
				support = {
					L_Engi_Comp = { x = 0 y = 0 }
					#SP_AA_Battery = { x = 0 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Havabord-e Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					L_Air_Inf_Bat = { x = 0 y = 1 }
				}
				support = {
					L_Recce_Comp = { x = 0 y = 0 }
				}
				priority = 2
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Sepah-e Quds\" division_template = \"Niru-ye Qods-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Tofangdarane Daryayee-ye Sepah\" division_template = \"Niru-ye Daryayi Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"23rd. Tip-e 'al-Mahdi'\" division_template = \"Lashkar-e Havabord-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"110th. Tip-e 'Salman'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"83rd. Tip-e 'Imam Sadiq'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"82nd. Tip-e 'Sahab Alamar'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Tip-e 71st\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Tip-e 71st\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"57th. Tip-e 'Abo-Fazl'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"44th. Tip-e 'Qamr Bani Hashem\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"44th. Tip-e 'Qamr Bani Hashem\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"42nd. Tip-e 'Ansar al-Rasool'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"32nd. Tip-e 'Ansar al-Hussein'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"29th. Tip-e 'Nabi Akram'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"18th. Tip-e 'al-Ghadir'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"29th. Tip-e 'Nabi Akram'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"12th. Tip-e 'Qaem al-Mohammed'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"60th. Tip-e 'Ammar Yasir'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			capital_scope = {
				create_unit = {
					division = "name = \"21st. Tip-e 'Imam Reza'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
				create_unit = {
					division = "name = \"20th. Tip-e 'Ramazan'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
				create_unit = {
					division = "name = \"25th. Lashkar-e 'Karbala'\" division_template = \"Lashkar-e Komando-ye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			PER = {
				declare_war_on = {
					target = IRI
					type = annex_everything
				}
			}
		}
		ai_chance = {
			base = 10
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}

	# Play as IRI Revolt - Bavand
	option = {
		name = iranian_events.228.c
		log = "[GetDateText]: [This.GetName]:iranian_events.228.c executed"
		custom_effect_tooltip = PER_play_as_IR2_TT
		set_country_flag = PER_stop_elections
		hidden_effect = {
			add_ideas = PER_sayyid_ali_hosseini_khamenei
			create_dynamic_country = {
				original_tag = PER
				set_country_flag = PER_akhoond_flag
				copy_tag = PER
				set_cosmetic_tag = PER_artesh_government
				mark_formed_country_formable = yes
				retire_country_leader = yes
				set_popularities = {
					nationalist = 94
					democratic = 6
				}
				set_politics = {
					ruling_party = nationalist
					last_election = "1997.6.8"
					election_frequency = 48
					elections_allowed = no
				}
				start_politics_input = yes
				### Party Popularities
				set_variable = { party_pop_array^0 = 0.06 } #Western_Autocracy
				set_variable = { party_pop_array^22 = 0.94 } #Nat_Autocracy
				### Ruling Party
				set_variable = { ruling_party = 22 }
				startup_politics = yes
				load_focus_tree = { tree = iran_focus keep_completed = yes }
				create_country_leader = {
					name = "Joint Chiefs Of Staff"
					picture = "PER_joint_chief_staff.dds"
					ideology = Nat_Autocracy
					traits = {
						nationalist_Nat_Autocracy
					}
				}
			}
			1039 = { transfer_state_to = IRI }
			407 = { transfer_state_to = IRI }
			1073 = { transfer_state_to = IRI }
			979 = { transfer_state_to = IRI }
			403 = { transfer_state_to = IRI }
			405 = { transfer_state_to = IRI }
			408 = { transfer_state_to = IRI }
			1148 = { transfer_state_to = IRI }
			1139 = { transfer_state_to = IRI }
			404 = { transfer_state_to = IRI }
			1144 = { transfer_state_to = IRI }
			406 = { transfer_state_to = IRI }
			1138 = { transfer_state_to = IRI }
			399 = { transfer_state_to = IRI }
			1146 = { transfer_state_to = IRI }
			400 = { transfer_state_to = IRI }
			976 = { transfer_state_to = IRI }
			1149 = { transfer_state_to = IRI }
			1145 = { transfer_state_to = IRI }
			978 = { transfer_state_to = IRI }
			401 = { transfer_state_to = IRI }
			1119 = { transfer_state_to = IRI }
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				IRI = {
					load_oob = "PER_2000_nsb"
				}
			}
			else = {
				IRI = {
					load_oob = "PER_2000_nonnsb"
				}
			}
			IRI = {
				ingame_startup_nations_effect = yes
				delete_unit_template_and_units = {
					division_template = "Niru-ye Daryayi Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Niru-ye Qods-e Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Motorizeh Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Zerehiye Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Mekanizeh Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Komando-ye Sepah-e Pasdaran"
					disband = yes
				}
				delete_unit_template_and_units = {
					division_template = "Lashkar-e Havabord-e Sepah-e Pasdaran"
					disband = yes
				}
			}
			# ROOT
			clr_country_flag = PER_minister_selection
			clr_country_flag = PER_iranian_minister_given
			set_country_flag = PER_majles_abolished
			set_temp_variable = { rul_party_temp = 9 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 9 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
			create_country_leader = {
				name = "Mohammad-Javad Bavand"
				picture = "javad_bavand.dds"
				ideology = Autocracy
				traits = {
					emerging_Vilayat_e_Faqih
					guerrilla_leader
					IRGC_Member
					sasanid_lineage
					political_dancer
				}
			}
			retire_character = PER_ahmadreza_pourdastan
			retire_character = PER_farzad_esmaili
			retire_character = PER_nasser_mohammadifar
			retire_character = PER_houshang_samadi
			retire_character = PER_habibollah_sayyari
			retire_character = PER_hassan_saadi
			retire_character = PER_hossein_khanzadi
			retire_character = PER_shahram_irani
			set_country_flag = PER_IRGC_GENERALS
			HEZ = {
				clr_country_flag = HEZ_IRGC_GENERALS
			}
			delete_unit_template_and_units = {
				division_template = "Niru-ye Daryayi Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Niru-ye Qods-e Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Motorizeh Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Zerehiye Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Mekanizeh Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Komando-ye Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Havabord-e Sepah-e Pasdaran"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Zerehi"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Zerehi"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Mechanize"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Piade Nezam"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Motorizeh"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Mechanize"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Lashkar-e Komandoyee"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Komandoyee"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tip-e Chatrbaz"
				disband = yes
			}
			delete_unit_template_and_units = {
				division_template = "Tofangdarane Daryayee"
				disband = yes
			}
			division_template = {
				name = "Niru-ye Daryayi Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					L_Marine_Bat = { x = 0 y = 1 }
					L_Marine_Bat = { x = 0 y = 2 }
					L_Marine_Bat = { x = 0 y = 3 }
					L_Marine_Bat = { x = 0 y = 4 }
					L_Marine_Bat = { x = 1 y = 0 }
					Arty_Bat = { x = 1 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Niru-ye Qods-e Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					Special_Forces = { x = 0 y = 1 }
					Special_Forces = { x = 0 y = 2 }
					Special_Forces = { x = 0 y = 3 }
					Special_Forces = { x = 1 y = 0 }
					Special_Forces = { x = 1 y = 1 }
					Special_Forces = { x = 1 y = 2 }
					Special_Forces = { x = 1 y = 3 }
					Special_Forces = { x = 2 y = 0 }
					Special_Forces = { x = 2 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Motorizeh Sepah-e Pasdaran" #Sepah
				regiments = {
					Mot_Militia_Bat = { x = 0 y = 0 }
					Mot_Militia_Bat = { x = 0 y = 1 }
					Mot_Inf_Bat = { x = 1 y = 0 }
					L_Inf_Bat = { x = 1 y = 1 }
					SP_Arty_Bat = { x = 1 y = 2 }
				}
				support = {
					Mot_Recce_Comp = { x = 0 y = 0 }
					H_Engi_Comp = { x = 0 y = 1 }
					SP_AA_Battery = { x = 0 y = 2 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Zerehiye Sepah-e Pasdaran" #Sepah
				regiments = {
					armor_Bat = { x = 0 y = 0 }
					Arm_Inf_Bat = { x = 1 y = 0 }
					Mot_Militia_Bat = { x = 1 y = 1 }
					SP_Arty_Bat = { x = 1 y = 2 }
					SP_AA_Bat = { x = 1 y = 3 }
				}
				support = {
					Arm_Recce_Comp = { x = 0 y = 0 }
					H_Engi_Comp = { x = 0 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Mekanizeh Sepah-e Pasdaran" #Sepah
				regiments = {
					Mech_Inf_Bat = { x = 0 y = 0 }
					Mot_Militia_Bat = { x = 0 y = 1 }
					Mot_Militia_Bat = { x = 0 y = 2 }
					SP_Arty_Bat = { x = 1 y = 0 }
					SP_AA_Bat = { x = 1 y = 1 }
					armor_Bat = { x = 2 y = 0 }
				}
				support = {
					Mot_Recce_Comp = { x = 0 y = 0 }
					L_Engi_Comp = { x = 0 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Komando-ye Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					Special_Forces = { x = 0 y = 1 }
					Special_Forces = { x = 0 y = 2 }
					Special_Forces = { x = 0 y = 3 }
					Special_Forces = { x = 1 y = 0 }
					SP_Arty_Bat = { x = 1 y = 1 }
				}
				support = {
					L_Engi_Comp = { x = 0 y = 0 }
					#SP_AA_Battery = { x = 0 y = 1 }
				}
				priority = 2
			}
			division_template = {
				name = "Lashkar-e Havabord-e Sepah-e Pasdaran" #Sepah
				regiments = {
					Special_Forces = { x = 0 y = 0 }
					L_Air_Inf_Bat = { x = 0 y = 1 }
				}
				support = {
					L_Recce_Comp = { x = 0 y = 0 }
				}
				priority = 2
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Sepah-e Quds\" division_template = \"Niru-ye Qods-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Tofangdarane Daryayee-ye Sepah\" division_template = \"Niru-ye Daryayi Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"23rd. Tip-e 'al-Mahdi'\" division_template = \"Lashkar-e Havabord-e Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"110th. Tip-e 'Salman'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"83rd. Tip-e 'Imam Sadiq'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"82nd. Tip-e 'Sahab Alamar'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Tip-e 71st\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"Tip-e 71st\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"57th. Tip-e 'Abo-Fazl'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"44th. Tip-e 'Qamr Bani Hashem\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"44th. Tip-e 'Qamr Bani Hashem\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"42nd. Tip-e 'Ansar al-Rasool'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"32nd. Tip-e 'Ansar al-Hussein'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"29th. Tip-e 'Nabi Akram'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"18th. Tip-e 'al-Ghadir'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"29th. Tip-e 'Nabi Akram'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"12th. Tip-e 'Qaem al-Mohammed'\" division_template = \"Lashkar-e Motorizeh Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "name = \"60th. Tip-e 'Ammar Yasir'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			capital_scope = {
				create_unit = {
					division = "name = \"21st. Tip-e 'Imam Reza'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
				create_unit = {
					division = "name = \"20th. Tip-e 'Ramazan'\" division_template = \"Lashkar-e Zerehiye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
				create_unit = {
					division = "name = \"25th. Lashkar-e 'Karbala'\" division_template = \"Lashkar-e Komando-ye Sepah-e Pasdaran\"start_experience_factor = 1.00 start_equipment_factor = 1.00"
					count = 1
					owner = PER
				}
			}
			PER = {
				declare_war_on = {
					target = IRI
					type = annex_everything
				}
			}
		}
		ai_chance = {
			base = 10
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.2281 # Instability in Azerbaijan Province!
	title = iranian_events.2281.t
	desc = iranian_events.2281.d
	picture = GFX_iranian_civ_war_country
	is_triggered_only = yes

	# We will fund the uprising
	option = {
		name = iranian_events.2281.a
		log = "[GetDateText]: [This.GetName]:iranian_events.2281.a executed"
		PER_SAZ_independence_alt = yes
			hidden_effect = {
				send_equipment = {
					equipment = infantry_weapons_1
					amount = 27000
					target = IRI
				}
			}
		ai_chance = { base = 5 }
	}

	# We will do no such thing! We have more pressing matters at hand
	option = {
		name = iranian_events.2281.b
		log = "[GetDateText]: [This.GetName]:iranian_events.2281.b executed"
			hidden_effect = {
				send_equipment = {
					equipment = infantry_weapons_1
					amount = 27000
					target = IRI
				}
			}
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = iranian_events.2282 # Instability in Azerbaijan Province!
	title = iranian_events.2282.t
	desc = iranian_events.2282.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	# We will fund the uprising
	option = {
		name = iranian_events.2282.a
		log = "[GetDateText]: [This.GetName]:iranian_events.2282.a executed"
		give_guarantee = SAZ
		SAZ = { give_guarantee = ROOT }
		ai_chance = { base = 5 }
	}

	# We will do no such thing! We have more pressing matters at hand
	option = {
		name = iranian_events.2282.b
		ai_chance = { base = 0 }
	}
}

country_event = {
	id = iranian_events.300 # Commemorative Protests for 1999 Student Uprising
	title = iranian_events.300.t
	desc = iranian_events.300.d
	picture = GFX_iran_student_protest1
	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = PER_protests_ongoing } }

	option = {
		name = iranian_events.300.a
		log = "[GetDateText]: [This.GetName]:iranian_events.300.a executed"
		set_temp_variable = { party_index = 9 }
		set_temp_variable = { party_popularity_increase = -0.10 }
		change_relative_party_popularity = yes
		set_temp_variable = { party_index = 8 }
		set_temp_variable = { party_popularity_increase = 0.10 }
		change_relative_party_popularity = yes
		newline = yes
		add_stability = -0.05
		ai_chance = {
			base = 10
			modifier = { factor = 0 PER_ai_not_historical_path = yes }
		}
	}

	option = {
		name = iranian_events.300.b
		log = "[GetDateText]: [This.GetName]:iranian_events.300.b executed"
		custom_effect_tooltip = PER_may_start_protests_TT
		405 = { add_manpower = -54 }
		hidden_effect = {
			country_event = {
				id = iranian_events.301
				days = 10
			}
		}
		ai_chance = {
			base = 0
			modifier = { add = 20 PER_ai_not_historical_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.301 # Commemorative Protests for 1999 Student Uprising
	title = iranian_events.301.t
	desc = iranian_events.301.d
	picture = GFX_iranian_civ_war_country
	is_triggered_only = yes

	option = {
		name = iranian_events.301.a
		log = "[GetDateText]: [This.GetName]:iranian_events.301.a executed"
		custom_effect_tooltip = PER_may_start_protests2_TT
		set_country_flag = PER_protests_ongoing
		hidden_effect = {
			news_event = {
				id = iranian_events.230
				days = 7
			}
			country_event = {
				id = iranian_events.302
				days = 20
			}
		}
	}
}

# Revolution flavor events

country_event = {
	id = iranian_events.302 # Khamenei Declares Protests Illegal
	title = iranian_events.302.t
	desc = iranian_events.302.d
	picture = GFX_khamenei_speaking
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.302.a
		log = "[GetDateText]: [This.GetName]:iranian_events.302.a executed"
		hidden_effect = {
			country_event = {
				id = iranian_events.303
				days = 7
			}
		}
	}
}

country_event = {
	id = iranian_events.303 # Soleimani Vows Harsh Response
	title = iranian_events.303.t
	desc = iranian_events.303.d
	picture = GFX_kotletmani_speaking
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.303.a
		log = "[GetDateText]: [This.GetName]:iranian_events.303.a executed"
		hidden_effect = {
			country_event = {
				id = iranian_events.304
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.304 # Rise of Monarchist Sentiment
	title = iranian_events.304.t
	desc = iranian_events.304.d
	picture = GFX_monarchist_sentiment
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.304.a
		log = "[GetDateText]: [This.GetName]:iranian_events.304.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.305
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.305 # Artesh Refuses Orders!
	title = iranian_events.305.t
	desc = iranian_events.305.d
	picture = GFX_army_objections
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.305.a
		log = "[GetDateText]: [This.GetName]:iranian_events.305.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.306
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.306 # Universities Become Hotbed for Violence
	title = iranian_events.306.t
	desc = iranian_events.306.d
	picture = GFX_university_protest
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.306.a
		log = "[GetDateText]: [This.GetName]:iranian_events.306.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.307
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.307 # Counter Protests Fail to Gain Momentum
	title = iranian_events.307.t
	desc = iranian_events.307.d
	picture = GFX_counter_protests
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.307.a
		log = "[GetDateText]: [This.GetName]:iranian_events.307.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.308
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.308 # Neighboring Countries Express Concern
	title = iranian_events.308.t
	desc = iranian_events.308.d
	picture = GFX_gcc_meet
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.308.a
		log = "[GetDateText]: [This.GetName]:iranian_events.308.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.309
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.309 # Basij Forces Frequently Overwhelmed
	title = iranian_events.309.t
	desc = iranian_events.309.d
	picture = GFX_basij_overwhelmed
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.309.a
		log = "[GetDateText]: [This.GetName]:iranian_events.309.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.310
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.310 # Montazeri Gains Popularity!
	title = iranian_events.310.t
	desc = iranian_events.310.d
	picture = GFX_montazeri_rally
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.310.a
		log = "[GetDateText]: [This.GetName]:iranian_events.310.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
		hidden_effect = {
			country_event = {
				id = iranian_events.311
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.311 # IRGC Postures For Mass Crackdown
	title = iranian_events.311.t
	desc = iranian_events.311.d
	picture = GFX_iran_crackdown
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.311.a
		log = "[GetDateText]: [This.GetName]:iranian_events.311.a executed"
		hidden_effect = {
			country_event = {
				id = iranian_events.312
				days = 19
			}
		}
	}
}

country_event = {
	id = iranian_events.312 # Bloody February
	title = iranian_events.312.t
	desc = iranian_events.312.d
	picture = GFX_bloody_wednesday
	is_triggered_only = yes

	trigger = { has_country_flag = PER_protests_ongoing }

	option = {
		name = iranian_events.312.a
		log = "[GetDateText]: [This.GetName]:iranian_events.312.a executed"
		if = {
			limit = { has_power_balance = { id = PER_clergy_balance_of_power_category } }
			add_power_balance_value = {
				id = PER_clergy_balance_of_power_category
				value = -0.02
			}
		}
	}
}

news_event = {
	id = iranian_events.229 # Iranian Civil War
	title = iranian_events.229.t
	desc = iranian_events.229.d
	picture = GFX_iranian_civilwar
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.229.a }
}

news_event = {
	id = iranian_events.230 # Major Protests in Iran
	title = iranian_events.230.t
	desc = iranian_events.230.d
	picture = GFX_iran_revolution_world
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.230.a }
}

news_event = {
	id = iranian_events.231 # The Islamic Republic Collapses
	title = iranian_events.231.t
	desc = iranian_events.231.d
	picture = GFX_PER_revolution_monarchist
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.231.a }
}

country_event = {
	id = iranian_events.232 # The Central Government is Under Pressure
	title = iranian_events.232.t
	desc = iranian_events.232.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_events.232.a
		log = "[GetDateText]: [This.GetName]:iranian_events.232.a executed"
		country_event = iranian_events.233
		ai_chance = {
			base = 1
			modifier = { factor = 50 PER_ai_heirs_path = yes }
			modifier = { factor = 0 PER_ai_not_heirs_path = yes }
		}
	}

	option = {
		name = iranian_events.232.b
		log = "[GetDateText]: [This.GetName]:iranian_events.232.b executed"
		country_event = iranian_events.234
		ai_chance = {
			base = 1
			modifier = { factor = 50 OR = { has_global_flag = PER_RESTORATION_FOCUS_PATH has_global_flag = PER_IRANIC_FEDERATION_FOCUS_PATH } }
			modifier = { factor = 0 PER_ai_not_restoration_path = yes PER_ai_not_iranic_federation_path = yes }
		}
	}

	option = {
		name = iranian_events.232.c
		log = "[GetDateText]: [This.GetName]:iranian_events.232.c executed"
		country_event = iranian_events.235
		ai_chance = {
			base = 1
			modifier = { factor = 50 PER_ai_leftist_path = yes }
			modifier = { factor = 0 PER_ai_not_leftist_path = yes }
		}
	}

	option = {
		name = iranian_events.232.d1
		ai_chance = {
			base = 1
			modifier = { factor = 0 PER_ai_not_historical_path = yes PER_ai_not_reform_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.233 # Internal Opposition Figures
	title = iranian_events.233.t
	desc = iranian_events.233.d
	is_triggered_only = yes

	option = {
		name = iranian_events.233.a # Ahmadinejad
		log = "[GetDateText]: [This.GetName]:iranian_events.233.a executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 6 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 6 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
			create_country_leader = {
				name = "Mahmoud Ahmadinejad"
				picture = "ahmadinejad.dds"
				ideology = Autocracy
				traits = {
					emerging_Autocracy
					IRGC_Member
					likeable
					rash
					zealous
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_AHMADINEJAD_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_ahmadinejad_path = yes }
		}
	}

	option = {
		name = iranian_events.233.b # Ghalibaf
		log = "[GetDateText]: [This.GetName]:iranian_events.233.b executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 15 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 15 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_GHALIBAF_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_ghalibaf_path = yes }
		}
	}

	option = {
		name = iranian_events.233.c # Mashaei
		log = "[GetDateText]: [This.GetName]:iranian_events.233.c executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 21 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 21 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_MASHAEI_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_mashaei_path = yes }
		}
	}

	option = {
		name = iranian_events.233.d1 # Artesh
		log = "[GetDateText]: [This.GetName]:iranian_events.233.d1 executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 22 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 22 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
			create_country_leader = {
				name = "Artesh Directorate"
				picture = "PER_joint_chief_staff.dds"
				ideology = Nat_Autocracy
				traits = {
					nationalist_Nat_Autocracy
					likeable
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_ARTESH_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_artesh_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.234 # Exiled Opposition Parties (Monarchists)
	title = iranian_events.234.t
	desc = iranian_events.234.d
	is_triggered_only = yes

	option = {
		name = iranian_events.234.a # Constitutionalist Party
		log = "[GetDateText]: [This.GetName]:iranian_events.234.a executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 0 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 0 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_RESTORATION_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_restoration_path = yes }
		}
	}

	option = {
		name = iranian_events.234.b # Pan Iranist Party
		log = "[GetDateText]: [This.GetName]:iranian_events.234.b executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 20 }
			set_temp_variable = { disable_elections = 1 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 20 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
			if = {
				limit = {
					date > 2011.1.1
				}
				create_country_leader = {
					name = "Hojjat Kalashi"
					picture = "hojjat_kalashi.dds"
					ideology = Nat_Populism
					traits = {
						nationalist_Nat_Populism
					}
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_IRANIC_FEDERATION_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_iranic_federation_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.235 # Exiled Opposition Parties (Leftists)
	title = iranian_events.235.t
	desc = iranian_events.235.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = iranian_events.235.a
		log = "[GetDateText]: [This.GetName]:iranian_events.235.a executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 5 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 5 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_MOJAHEDIN_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_mojahedin_path = yes }
		}
	}

	option = {
		name = iranian_events.235.b
		log = "[GetDateText]: [This.GetName]:iranian_events.235.b executed"
		hidden_effect = {
			set_temp_variable = { rul_party_temp = 19 }
			change_ruling_party_effect = yes
			set_temp_variable = { party_index = 19 }
			set_temp_variable = { party_popularity_increase = 0.15 }
			set_temp_variable = { temp_outlook_increase = 0.25 }
			change_relative_party_popularity = yes
		}
		ai_chance = {
			base = 1
			modifier = { factor = 50 has_global_flag = PER_WORKERS_REPUBLIC_FOCUS_PATH }
			modifier = { factor = 0 PER_ai_not_workers_republic_path = yes }
		}
	}
}

country_event = {
	id = iranian_events.236 # IRGC Collapses
	title = iranian_events.236.t
	desc = iranian_events.236.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	option = {
		name = iranian_events.236.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_events.237
	title = iranian_events.237.t
	desc = iranian_events.237.d
	picture = GFX_montazeri_speech
	is_triggered_only = yes

	option = {
		name = iranian_events.237.a
		log = "[GetDateText]: [This.GetName]:iranian_events.237.a executed"
		hidden_effect = {
			country_event = {
				id = iranian_events.238
				days = 24
			}
		}
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_events.238
	title = iranian_events.238.t
	desc = iranian_events.238.d
	picture = GFX_montazeri_event_1
	is_triggered_only = yes

	option = {
		name = iranian_events.238.a
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_events.239
	title = iranian_events.239.t
	desc = iranian_events.239.d
	picture = GFX_rafsanjani_khatami
	is_triggered_only = yes

	option = {
		name = iranian_events.239.a
		log = "[GetDateText]: [This.GetName]:iranian_events.238.b executed"
		set_temp_variable = { party_index = 8 }
		set_temp_variable = { party_popularity_increase = 0.075 }
		set_temp_variable = { temp_outlook_increase = 0.055 }
		change_relative_party_popularity = yes
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_political_power_factor = 0.05 tooltip = political_power_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_centralization_cost = -0.015 tooltip = bureaucracy_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = PER_chance_of_corruption_TT
		hidden_effect = {
			random = {
				chance = 15
				increase_corruption = yes
			}
		}
		ai_chance = { base = 1 }
	}

	option = {
		name = iranian_events.239.b
		log = "[GetDateText]: [This.GetName]:iranian_events.239.b executed"
		custom_effect_tooltip = PER_ban_khatami_TT
		newline = yes
		set_temp_variable = { party_popularity_increase = 0.045 }
		set_temp_variable = { temp_outlook_increase = 0.035 }
		change_relative_party_popularity = yes
		ai_chance = { base = 1 }
	}
}

country_event = {
	id = iranian_events.900
	title = iranian_events.900.t
	desc = iranian_events.900.d
	picture = GFX_achamndsuf_1
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = iranian_events.900.a
		log = "[GetDateText]: [This.GetName]:iranian_events.900.a executed"
		if = {
			limit = {
				is_ai = yes
			}
			# Dynamic Modifiers
			add_dynamic_modifier = { modifier = PER_economy_modifier }
			# Terrible Banking & Taxation
			set_variable = { PER_interest_rate_multiplier_modifier = 0 }
			set_variable = { PER_population_tax_income_multiplier_modifier = 0.10 }
			set_variable = { PER_corporate_tax_factor = 0 }
			set_variable = { PER_centralization_cost = 0.15 }
			#Brian Drain
			set_variable = { PER_migration_rate_value_factor = -0.20 }
			set_variable = { PER_research_speed_factor = -0.15 }
			add_dynamic_modifier = { modifier = PER_political_modifier }
			# Crime & Corruption
			set_variable = { PER_corruption_cost = 1.00 }
			set_variable = { PER_police_cost_multiplier_modifier = -0.10 }
			set_variable = { PER_productivity_growth = -0.20 }
			# Political Assness
			set_variable = { PER_political_power_factor = -0.15 }
			# Artesh
			add_dynamic_modifier = { modifier = PER_artesh_modifier }
			set_variable = { PER_army_org_factor = -0.15 }
			set_variable = { PER_equipment_conversion_speed = -0.35 }
			# Sanctions
			add_dynamic_modifier = { modifier = PER_us_sanctions }
			set_variable = { PER_sanction_trade_opinion_factor = -0.25 }
			set_variable = { PER_sanction_oil_export_multiplier_modifier = -0.50 }
			set_variable = { PER_sanction_trade_laws_cost_factor = 0.50 }
			set_variable = { PER_sanction_improve_relations_maintain_cost_factor = 0.50 }
			set_variable = { PER_sanction_productivity_growth_modifier = -0.15 }
			set_variable = { PER_sanction_stability_factor = -0.10 }
			set_variable = { PER_IRGC_communism_drift = 0.05 }
		}
	}
}

news_event = {
	id = iranian_events.910
	title = iranian_events.910.t
	desc = iranian_events.910.d
	picture = GFX_iran_closes_strait
	is_triggered_only = yes
	major = yes

	option = {
		name = iranian_events.910.a
		log = "[GetDateText]: [This.GetName]:iranian_events.910.a executed"
		#Only the exporters who actually ship through the strait. This is a global news event: without the
		#gate every country on Earth takes the export and fuel penalty.
		if = {
			limit = {
				OR = {
					original_tag = SAU
					original_tag = IRQ
					original_tag = UAE
					original_tag = KUW
					original_tag = QAT
					original_tag = BHR
					original_tag = OMA
				}
			}
			add_ideas = PER_hormuz_blocked_gang
		}
		newline = yes
		custom_effect_tooltip = oil_current_price_tt
	}
}

news_event = {
	id = iranian_events.911
	title = iranian_events.911.t
	desc = iranian_events.911.d
	picture = GFX_iran_reopens_strait
	is_triggered_only = yes
	major = yes

	option = { name = iranian_events.911.a }
}

country_event = {
	id = iranian_flavor.1
	title = iranian_flavor.1.t
	desc = iranian_flavor.1.d
	picture = GFX_generic_education_event_picture
	is_triggered_only = yes

	option = { # Expand the fair with government funding
		name = iranian_flavor.1.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.1.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.02 tooltip = research_speed_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -2.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Let publishers handle it themselves
		name = iranian_flavor.1.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.1.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.03 tooltip = propaganda_campaign_cost_modifier_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.2
	title = iranian_flavor.2.t
	desc = iranian_flavor.2.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # Fund further expansion
		name = iranian_flavor.2.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.2.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_infrastructure_factor = 0.03 tooltip = production_speed_infrastructure_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Celebrate the achievement
		name = iranian_flavor.2.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.2.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_civilian_factories_productivity = 0.02 tooltip = civilian_factories_productivity_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.3
	title = iranian_flavor.3.t
	desc = iranian_flavor.3.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # Invest heavily in port infrastructure
		name = iranian_flavor.3.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.3.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_supply_factor = 0.03 tooltip = supply_factor_tt }
		newline = yes
		add_to_variable = { PER_trade_opinion_factor = 0.03 tooltip = trade_opinion_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Gradual development over time
		name = iranian_flavor.3.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.3.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_supply_factor = 0.01 tooltip = supply_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.4
	title = iranian_flavor.4.t
	desc = iranian_flavor.4.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # Encourage further investment
		name = iranian_flavor.4.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.4.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_return_on_investment_modifier = 0.03 tooltip = return_on_investment_modifier_tt }
		newline = yes
		add_to_variable = { PER_civilian_industry_tax_modifier = 0.02 tooltip = civilian_industry_tax_modifier_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Regulate to prevent a bubble
		name = iranian_flavor.4.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.4.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_consumer_goods_factor = -0.01 tooltip = consumer_goods_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.5
	title = iranian_flavor.5.t
	desc = iranian_flavor.5.d
	picture = GFX_politics_protest
	is_triggered_only = yes

	option = { # Launch a cultural preservation campaign
		name = iranian_flavor.5.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.5.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = 0.05 tooltip = drift_defence_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -1.50 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Issue a diplomatic protest
		name = iranian_flavor.5.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.5.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = -0.02 tooltip = trade_opinion_factor_tt }
		newline = yes
		add_to_variable = { PER_foreign_influence_defense_modifier = 0.03 tooltip = foreign_influence_defense_modifier_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Ignore the provocation
		name = iranian_flavor.5.c
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = iranian_flavor.6
	title = iranian_flavor.6.t
	desc = iranian_flavor.6.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	option = { # Fast-track extraction
		name = iranian_flavor.6.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.6.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_oil_factor = 0.05 tooltip = production_oil_factor_tt }
		newline = yes
		add_to_variable = { PER_gdp_from_resource_sector_modifier = 0.03 tooltip = gdp_from_resource_sector_modifier_tt }
		newline = yes
		set_temp_variable = { treasury_change = -6.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Measured approach to extraction
		name = iranian_flavor.6.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.6.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_oil_factor = 0.02 tooltip = production_oil_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.7
	title = iranian_flavor.7.t
	desc = iranian_flavor.7.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	option = { # Prioritize domestic energy supply
		name = iranian_flavor.7.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.7.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_base_fuel_gain_factor = 0.04 tooltip = base_fuel_gain_factor_tt }
		newline = yes
		add_to_variable = { PER_energy_use_multiplier = 0.03 tooltip = energy_use_multiplier_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Maximize gas exports
		name = iranian_flavor.7.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.7.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_resource_export_multiplier_modifier = 0.04 tooltip = resource_export_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_oil_export_multiplier_modifier = 0.03 tooltip = oil_export_multiplier_modifier_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.8
	title = iranian_flavor.8.t
	desc = iranian_flavor.8.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = { # Create research incentives to retain talent
		name = iranian_flavor.8.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.8.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_research_speed_factor = 0.03 tooltip = research_speed_factor_tt }
		newline = yes
		add_to_variable = { PER_migration_rate_value_factor = 0.02 tooltip = migration_rate_value_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Accept the situation and focus elsewhere
		name = iranian_flavor.8.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.8.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_migration_rate_value_factor = -0.03 tooltip = migration_rate_value_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.9
	title = iranian_flavor.9.t
	desc = iranian_flavor.9.d
	picture = GFX_trade_agreement
	is_triggered_only = yes

	option = { # Invest in traditional craftsmanship
		name = iranian_flavor.9.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.9.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_resource_export_multiplier_modifier = 0.02 tooltip = resource_export_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_trade_opinion_factor = 0.02 tooltip = trade_opinion_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -2.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Let the market decide
		name = iranian_flavor.9.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.9.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_resource_export_multiplier_modifier = 0.01 tooltip = resource_export_multiplier_modifier_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.10
	title = iranian_flavor.10.t
	desc = iranian_flavor.10.d
	picture = GFX_trade_agreement
	is_triggered_only = yes

	option = { # Expand the free trade zone
		name = iranian_flavor.10.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.10.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = 0.03 tooltip = trade_opinion_factor_tt }
		newline = yes
		add_to_variable = { PER_return_on_investment_modifier = 0.02 tooltip = return_on_investment_modifier_tt }
		newline = yes
		set_temp_variable = { treasury_change = -3.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Maintain current scope
		name = iranian_flavor.10.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.10.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_civilian_industry_tax_modifier = 0.01 tooltip = civilian_industry_tax_modifier_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.11
	title = iranian_flavor.11.t
	desc = iranian_flavor.11.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { # Invest in R&D and modernization
		name = iranian_flavor.11.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.11.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_factory_efficiency_gain_factor = 0.03 tooltip = production_factory_efficiency_gain_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -3.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Expand production lines
		name = iranian_flavor.11.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.11.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_industrial_capacity_factory = 0.03 tooltip = industrial_capacity_factory_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.12
	title = iranian_flavor.12.t
	desc = iranian_flavor.12.d
	picture = GFX_steel_mill
	is_triggered_only = yes

	option = { # Modernize with new furnaces
		name = iranian_flavor.12.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.12.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_buildings_factor = 0.02 tooltip = production_speed_buildings_factor_tt }
		newline = yes
		add_to_variable = { PER_civilian_factories_productivity = 0.02 tooltip = civilian_factories_productivity_tt }
		newline = yes
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Expand capacity with existing technology
		name = iranian_flavor.12.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.12.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_industrial_capacity_factory = 0.02 tooltip = industrial_capacity_factory_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.13
	title = iranian_flavor.13.t
	desc = iranian_flavor.13.d
	picture = GFX_computer
	is_triggered_only = yes

	option = { # Invest in tourism infrastructure around it
		name = iranian_flavor.13.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.13.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = 0.02 tooltip = trade_opinion_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -2.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Use it as a national broadcast hub
		name = iranian_flavor.13.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.13.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.03 tooltip = propaganda_campaign_cost_modifier_tt }
		newline = yes
		add_to_variable = { PER_intel_network_gain_factor = 0.02 tooltip = intel_network_gain_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.14
	title = iranian_flavor.14.t
	desc = iranian_flavor.14.d
	picture = GFX_generic_grain_silo
	is_triggered_only = yes

	option = { # Expand saffron cultivation
		name = iranian_flavor.14.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.14.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_agricolture_productivity_modifier = 0.03 tooltip = agricolture_productivity_modifier_tt }
		newline = yes
		add_to_variable = { PER_agriculture_district_income_tax_modifier = 0.02 tooltip = agriculture_district_income_tax_modifier_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Focus on premium exports
		name = iranian_flavor.14.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.14.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_resource_export_multiplier_modifier = 0.03 tooltip = resource_export_multiplier_modifier_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.15
	title = iranian_flavor.15.t
	desc = iranian_flavor.15.d
	picture = GFX_hospital
	is_triggered_only = yes

	option = { # Shut down factories temporarily
		name = iranian_flavor.15.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.15.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_health_cost = -0.02 tooltip = health_cost_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_civilian_factories_productivity = -0.02 tooltip = civilian_factories_productivity_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Issue health advisories only
		name = iranian_flavor.15.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.15.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_health_cost = 0.02 tooltip = health_cost_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_monthly_population = -0.02 tooltip = monthly_population_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.16
	title = iranian_flavor.16.t
	desc = iranian_flavor.16.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = { # Central bank intervention
		name = iranian_flavor.16.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.16.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_consumer_goods_factor = -0.02 tooltip = consumer_goods_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -8.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Let the market correct itself
		name = iranian_flavor.16.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.16.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_consumer_goods_factor = 0.02 tooltip = consumer_goods_factor_tt }
		newline = yes
		add_to_variable = { PER_trade_opinion_factor = -0.03 tooltip = trade_opinion_factor_tt }
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = iranian_flavor.17
	title = iranian_flavor.17.t
	desc = iranian_flavor.17.d
	picture = GFX_oil_refinery
	is_triggered_only = yes

	option = { # Fast-track construction
		name = iranian_flavor.17.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.17.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_base_fuel_gain_factor = 0.04 tooltip = base_fuel_gain_factor_tt }
		newline = yes
		add_to_variable = { PER_production_oil_factor = 0.03 tooltip = production_oil_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -7.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Standard construction timeline
		name = iranian_flavor.17.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.17.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_base_fuel_gain_factor = 0.02 tooltip = base_fuel_gain_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.18
	title = iranian_flavor.18.t
	desc = iranian_flavor.18.d
	picture = GFX_generic_tractor_manufacturer
	is_triggered_only = yes

	option = { # Emergency water transfer from other provinces
		name = iranian_flavor.18.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.18.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_agricolture_productivity_modifier = 0.02 tooltip = agricolture_productivity_modifier_tt }
		newline = yes
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Implement water rationing
		name = iranian_flavor.18.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.18.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_agricolture_productivity_modifier = -0.03 tooltip = agricolture_productivity_modifier_tt }
		newline = yes
		set_temp_variable = { treasury_change = 3.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 0
		}
	}

	option = { # Launch a dam construction project
		name = iranian_flavor.18.c
		log = "[GetDateText]: [This.GetName]: iranian_flavor.18.c executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_speed_infrastructure_factor = 0.02 tooltip = production_speed_infrastructure_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -8.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.19
	title = iranian_flavor.19.t
	desc = iranian_flavor.19.d
	picture = GFX_stock_market
	is_triggered_only = yes

	option = { # Invest in hospitality infrastructure
		name = iranian_flavor.19.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.19.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = 0.03 tooltip = trade_opinion_factor_tt }
		newline = yes
		add_to_variable = { PER_gdp_from_resource_sector_modifier = 0.02 tooltip = gdp_from_resource_sector_modifier_tt }
		newline = yes
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Capitalize on the revenue
		name = iranian_flavor.19.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.19.b executed"
		set_temp_variable = { treasury_change = 5.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.20
	title = iranian_flavor.20.t
	desc = iranian_flavor.20.d
	picture = GFX_broken_infrastructure
	is_triggered_only = yes

	option = { # Deploy the military for relief operations
		name = iranian_flavor.20.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.20.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_army_org_factor = -0.02 tooltip = army_org_factor_tt }
		newline = yes
		add_to_variable = { PER_supply_consumption_factor = 0.02 tooltip = supply_consumption_factor_tt }
		newline = yes
		399 = {
			add_manpower = -500
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Civilian-led disaster response
		name = iranian_flavor.20.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.20.b executed"
		set_temp_variable = { treasury_change = -6.00 }
		modify_treasury_effect = yes
		newline = yes
		399 = {
			add_manpower = -1200
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Appeal for international humanitarian aid
		name = iranian_flavor.20.c
		log = "[GetDateText]: [This.GetName]: iranian_flavor.20.c executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_foreign_influence_defense_modifier = -0.02 tooltip = foreign_influence_defense_modifier_tt }
		newline = yes
		set_temp_variable = { treasury_change = 3.00 }
		modify_treasury_effect = yes
		newline = yes
		399 = {
			add_manpower = -800
		}
		ai_chance = {
			base = 0
		}
	}
}


country_event = {
	id = iranian_flavor.50
	title = iranian_flavor.50.t
	desc = iranian_flavor.50.d
	picture = GFX_Military_Reform
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Welcome them and integrate into our ranks
		name = iranian_flavor.50.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.50.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_experience_gain_army = 0.03 tooltip = experience_gain_army_tt }
		newline = yes
		add_to_variable = { PER_training_time_factor = -0.02 tooltip = training_time_factor_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Screen them carefully first - they could be spies
		name = iranian_flavor.50.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.50.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_intel_network_gain_factor = 0.03 tooltip = intel_network_gain_factor_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Turn them away - we cannot trust IRGC personnel
		name = iranian_flavor.50.c
		log = "[GetDateText]: [This.GetName]: iranian_flavor.50.c executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_army_morale_factor = 0.02 tooltip = army_morale_factor_tt }
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = iranian_flavor.51
	title = iranian_flavor.51.t
	desc = iranian_flavor.51.d
	picture = GFX_generic_grain_silo
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Divert troops to protect the oil infrastructure
		name = iranian_flavor.51.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.51.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_oil_factor = 0.03 tooltip = production_oil_factor_tt }
		newline = yes
		add_to_variable = { PER_oil_export_multiplier_modifier = 0.02 tooltip = oil_export_multiplier_modifier_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_supply_consumption_factor = 0.02 tooltip = supply_consumption_factor_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Focus on the frontlines - we cannot afford distractions
		name = iranian_flavor.51.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.51.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_production_oil_factor = -0.03 tooltip = production_oil_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_army_org_factor = 0.02 tooltip = army_org_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.52
	title = iranian_flavor.52.t
	desc = iranian_flavor.52.d
	picture = GFX_political_deal
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Jam their frequencies and counter with our own broadcasts
		name = iranian_flavor.52.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.52.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.05 tooltip = propaganda_campaign_cost_modifier_tt }
		newline = yes
		add_to_variable = { PER_drift_defence_factor = 0.05 tooltip = drift_defence_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -3.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Ignore it - our people know the truth
		name = iranian_flavor.52.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.52.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = -0.03 tooltip = drift_defence_factor_tt }
		ai_chance = {
			base = 0
		}
	}
}

country_event = {
	id = iranian_flavor.53
	title = iranian_flavor.53.t
	desc = iranian_flavor.53.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Launch a sweeping counterinsurgency operation
		name = iranian_flavor.53.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.53.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_resistance_growth = -0.05 tooltip = resistance_growth_tt }
		newline = yes
		add_to_variable = { PER_root_out_resistance_effectiveness_factor = 0.05 tooltip = root_out_resistance_effectiveness_factor_tt }
		newline = yes
		set_temp_variable = { treasury_change = -2.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Arm local civilian militias to defend their neighborhoods
		name = iranian_flavor.53.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.53.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_recruitable_population = 0.003 tooltip = recruitable_population_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_training_time_factor = 0.03 tooltip = training_time_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.54
	title = iranian_flavor.54.t
	desc = iranian_flavor.54.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Set up refugee camps and provide aid
		name = iranian_flavor.54.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.54.a executed"
		set_temp_variable = { treasury_change = -5.00 }
		modify_treasury_effect = yes
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_monthly_population = 0.03 tooltip = monthly_population_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Redirect refugees to bolster the war economy
		name = iranian_flavor.54.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.54.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_civilian_factories_productivity = 0.02 tooltip = civilian_factories_productivity_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_monthly_population = -0.02 tooltip = monthly_population_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.55
	title = iranian_flavor.55.t
	desc = iranian_flavor.55.d
	picture = GFX_crime_fighting
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Exploit the networks to resupply our forces
		name = iranian_flavor.55.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.55.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_equipment_capture_factor = 0.05 tooltip = equipment_capture_factor_tt }
		newline = yes
		add_to_variable = { PER_production_lack_of_resource_penalty_factor = -0.03 tooltip = production_lack_of_resource_penalty_factor_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Crack down on all smuggling - it aids the enemy too
		name = iranian_flavor.55.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.55.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_intel_network_gain_factor = 0.03 tooltip = intel_network_gain_factor_tt }
		newline = yes
		add_to_variable = { PER_foreign_subversive_activites = -0.03 tooltip = foreign_subversive_activites_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.56
	title = iranian_flavor.56.t
	desc = iranian_flavor.56.d
	picture = GFX_fighter_jet
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Commit additional squadrons to defend the capital
		name = iranian_flavor.56.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.56.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_air_home_defence_factor = 0.05 tooltip = air_home_defence_factor_tt }
		newline = yes
		add_to_variable = { PER_air_intercept_efficiency = 0.03 tooltip = air_intercept_efficiency_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Prioritize ground support over air defense
		name = iranian_flavor.56.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.56.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_ground_attack_factor = 0.04 tooltip = ground_attack_factor_tt }
		newline = yes
		add_to_variable = { PER_experience_gain_air = 0.03 tooltip = experience_gain_air_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.57
	title = iranian_flavor.57.t
	desc = iranian_flavor.57.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = {
		has_war_with = IRI
		country_exists = HEZ
	}

	option = { # Denounce Hezbollah's interference publicly
		name = iranian_flavor.57.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.57.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = 0.03 tooltip = drift_defence_factor_tt }
		newline = yes
		add_to_variable = { PER_foreign_influence_defense_modifier = 0.03 tooltip = foreign_influence_defense_modifier_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Target their supply lines into Iran
		name = iranian_flavor.57.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.57.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_army_attack_factor = 0.02 tooltip = army_attack_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_intel_network_gain_factor = 0.02 tooltip = intel_network_gain_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.58
	title = iranian_flavor.58.t
	desc = iranian_flavor.58.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Grant journalists access to boost our image
		name = iranian_flavor.58.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.58.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = 0.03 tooltip = trade_opinion_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_foreign_influence_defense_modifier = -0.02 tooltip = foreign_influence_defense_modifier_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Restrict media access for operational security
		name = iranian_flavor.58.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.58.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_civilian_intel_factor = 0.05 tooltip = civilian_intel_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = -0.02 tooltip = trade_opinion_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.59
	title = iranian_flavor.59.t
	desc = iranian_flavor.59.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Deploy engineers to repair and harden the grid
		name = iranian_flavor.59.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.59.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_energy_use_multiplier = 0.03 tooltip = energy_use_multiplier_tt }
		newline = yes
		set_temp_variable = { treasury_change = -4.00 }
		modify_treasury_effect = yes
		ai_chance = {
			base = 1
		}
	}

	option = { # Ration power and prioritize military installations
		name = iranian_flavor.59.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.59.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_civilian_factories_productivity = -0.02 tooltip = civilian_factories_productivity_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_military_factories_productivity = 0.02 tooltip = military_factories_productivity_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.60
	title = iranian_flavor.60.t
	desc = iranian_flavor.60.d
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Accept their help - every fighter counts
		name = iranian_flavor.60.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.60.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_special_forces_cap_flat = 2 tooltip = special_forces_cap_flat_tt }
		newline = yes
		add_to_variable = { PER_terrain_penalty_reduction = 0.03 tooltip = terrain_penalty_reduction_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_resistance_growth = 0.03 tooltip = resistance_growth_tt }
		# yessir
		set_country_flag = PER_autonomize_kurds
		hidden_effect = {
			release = IKR
			set_autonomy = {
				target = IKR
				autonomy_state = autonomy_federal_state_iran
			}
			IKR = {
				swap_ideas = {
					remove_idea = non_state_actor
					add_idea = lacks_international_recognition
				}
				add_victory_points = {
					province = 16216
					value = 12
				}
				set_temp_variable = { rul_party_temp = 18 }
				set_temp_variable = { disable_elections = 1 }
				change_ruling_party_effect = yes
				retire_country_leader = yes
				create_country_leader = {
					name = "Abdullah Hassan Zadeh "
					picture = "IKR_kdp_Abdullah_Hesenzade.dds"
					ideology = neutral_Social
					traits = {
						neutrality_neutral_Social
					}
				}
				division_template = {
					name = "Lêşkerî Rojhelat"
					priority = 0
					regiments = {
						Militia_Bat = { x = 0 y = 0 }
						Militia_Bat = { x = 0 y = 1 }
						Militia_Bat = { x = 0 y = 2 }
						Arty_Bat = { x = 0 y = 3 }
						Militia_Bat = { x = 1 y = 0 }
						Militia_Bat = { x = 1 y = 1 }
						Militia_Bat = { x = 1 y = 2 }
						Arty_Bat = { x = 1 y = 3 }
						Militia_Bat = { x = 2 y = 0 }
						Militia_Bat = { x = 2 y = 1 }
						Militia_Bat = { x = 2 y = 2 }
						Arty_Bat = { x = 2 y = 3 }
					}
					support = {
						L_Recce_Comp = { x = 0 y = 0 }
						L_Engi_Comp = { x = 0 y = 1 }
						combat_service_support_company = { x = 0 y = 2 }
						Arty_Battery = { x = 0 y = 3 }
					}
				}
				979 = {
					if = { limit = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } remove_dynamic_modifier = { modifier = PER_kurd_separatism } }
					create_unit = {
						division = "name = \"1st. Lêşkerî Azadî\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 7604
					}
					create_unit = {
						division = "name = \"2nd. Lêşkerî Rojhilat\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 1822
					}
					create_unit = {
						division = "name = \"3rd. Lêşkerî Pêşmerge\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 14268
					}
					create_unit = {
						division = "name = \"4th. Komelî Şoreşger\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 14314
					}
				}
				408 = {
					if = { limit = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } remove_dynamic_modifier = { modifier = PER_kurd_separatism } }
					create_unit = {
						division = "name = \"5th. Şoreşgeranî Welat\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 4943
					}
					create_unit = {
						division = "name = \"6th. Komelî Gelê Azad\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 14313
					}
					create_unit = {
						division = "name = \"7th. Lêşkerî Zagros\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 5098
					}
					create_unit = {
						division = "name = \"8th. Lêşkerî Sanandaj\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 16216
					}
				}
				1139 = {
					if = { limit = { has_dynamic_modifier = { modifier = PER_kurd_separatism } } remove_dynamic_modifier = { modifier = PER_kurd_separatism } }
					create_unit = {
						division = "name = \"9th. Lêşkerî Dersim\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 16155
					}
					create_unit = {
						division = "name = \"10th. Lêşkerî Simko\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 12773
					}
					create_unit = {
						division = "name = \"11th. Lêşkerî Mîrê Şeref\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 4008
					}
					create_unit = {
						division = "name = \"12th. Komelî Bîrîndarî\" division_template = \"Lêşkerî Rojhelat\" start_experience_factor = 1.0 start_equipment_factor = 0.8"
						owner = IKR
						prioritize_location = 16155
					}
				}
			}
		}
		ai_chance = {
			base = 1
		}
	}

	option = { # Decline - we cannot set a precedent for autonomy
		name = iranian_flavor.60.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.60.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = 0.03 tooltip = drift_defence_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.61
	title = iranian_flavor.61.t
	desc = iranian_flavor.61.d
	picture = GFX_corvette
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Secure the strait with a naval blockade
		name = iranian_flavor.61.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.61.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_naval_damage_factor = 0.05 tooltip = naval_damage_factor_tt }
		newline = yes
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = -0.03 tooltip = trade_opinion_factor_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Keep the strait open for trade - we need the revenue
		name = iranian_flavor.61.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.61.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_oil_export_multiplier_modifier = 0.03 tooltip = oil_export_multiplier_modifier_tt }
		newline = yes
		add_to_variable = { PER_trade_opinion_factor = 0.02 tooltip = trade_opinion_factor_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.62
	title = iranian_flavor.62.t
	desc = iranian_flavor.62.d
	picture = GFX_generic_soldiers
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Nationalize key industries for the war effort
		name = iranian_flavor.62.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.62.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_industrial_capacity_factory = 0.03 tooltip = industrial_capacity_factory_tt }
		newline = yes
		add_to_variable = { PER_consumer_goods_factor = 0.03 tooltip = consumer_goods_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_military_factories_productivity = 0.03 tooltip = military_factories_productivity_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Offer tax incentives to keep private industry running
		name = iranian_flavor.62.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.62.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_civilian_factories_productivity = 0.03 tooltip = civilian_factories_productivity_tt }
		newline = yes
		add_to_variable = { PER_civilian_industry_tax_modifier = 0.02 tooltip = civilian_industry_tax_modifier_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.63
	title = iranian_flavor.63.t
	desc = iranian_flavor.63.d
	picture = GFX_treaty
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Promise autonomy reforms after the war
		name = iranian_flavor.63.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.63.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_recruitable_population = 0.005 tooltip = recruitable_population_tt }
		newline = yes
		add_to_variable = { PER_resistance_growth = -0.03 tooltip = resistance_growth_tt }
		newline = yes
		add_to_variable = { PER_nationalist_drift = 0.02 tooltip = nationalist_drift_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # National unity comes first - no concessions during wartime
		name = iranian_flavor.63.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.63.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_drift_defence_factor = 0.05 tooltip = drift_defence_factor_tt }
		newline = yes
		add_to_variable = { PER_resistance_growth = 0.02 tooltip = resistance_growth_tt }
		ai_chance = {
			base = 1
		}
	}
}

country_event = {
	id = iranian_flavor.64
	title = iranian_flavor.64.t
	desc = iranian_flavor.64.d
	picture = GFX_court
	is_triggered_only = yes

	trigger = { has_war_with = IRI }

	option = { # Exploit the intelligence for military operations
		name = iranian_flavor.64.a
		log = "[GetDateText]: [This.GetName]: iranian_flavor.64.a executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_artesh_modifier }
		add_to_variable = { PER_planning_speed = 0.05 tooltip = planning_speed_tt }
		newline = yes
		add_to_variable = { PER_recon_factor_while_entrenched = 0.05 tooltip = recon_factor_while_entrenched_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Leak the documents to expose IRGC corruption
		name = iranian_flavor.64.b
		log = "[GetDateText]: [This.GetName]: iranian_flavor.64.b executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_propaganda_campaign_cost_modifier = -0.05 tooltip = propaganda_campaign_cost_modifier_tt }
		newline = yes
		add_to_variable = { PER_drift_defence_factor = 0.05 tooltip = drift_defence_factor_tt }
		ai_chance = {
			base = 1
		}
	}

	option = { # Share with foreign allies to build international support
		name = iranian_flavor.64.c
		log = "[GetDateText]: [This.GetName]: iranian_flavor.64.c executed"
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_economy_modifier }
		add_to_variable = { PER_trade_opinion_factor = 0.04 tooltip = trade_opinion_factor_tt }
		newline = yes
		custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = PER_political_modifier }
		add_to_variable = { PER_foreign_influence_defense_modifier = -0.03 tooltip = foreign_influence_defense_modifier_tt }
		ai_chance = {
			base = 0
		}
	}
}
