add_namespace = iran

country_event = { ###Referendum###
	id = iran.1
	title = iran.1.t
	desc = iran.1.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes

	option = { #worker benefits#
	
		ai_chance = {
			factor = 40
		}
		name = iran.1.a
		
		add_political_power = 50
		
		add_timed_idea = { idea = worker_benefits days = 180 }
	}
	option = {
	
		ai_chance = { #factory jobs#
			factor = 20
		}
		name = iran.1.b
		
		random_owned_controlled_state = {	
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 3
				instant_build = yes
			}
		}
		
		add_stability = 0.1
		
		add_timed_idea = { idea = quick_factory_construction days = 180 }
	}
	option = {
	
		ai_chance = { #more jobs and defense#
			factor = 20
		}
		name = iran.1.c
		
		random_owned_controlled_state = {	
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = arms_factory
				level = 3
				instant_build = yes
			}
		}
		
		add_war_support = 0.1
		
		add_timed_idea = { idea = quick_factory_construction days = 180 }
	}
	option = {
		ai_chance = {
			factor = 20
		}
		name = iran.1.e
		
		add_timed_idea = { idea = reformed_government days = 180 }
		
		add_stability = 0.2
		add_war_support = 0.1
	}
}

country_event = { ###integrate afghanistan###
	id = iran.2
	title = iran.2.t
	desc = iran.2.d
	picture = GFX_report_event_soviet_tank_parade
	
	is_triggered_only = yes

	option = { #Rebuild Their Towns#
	
		ai_chance = {
			factor = 30
		}
		name = iran.2.a
		
		add_timed_idea = { idea = per_integration_costs days = 90 }
		
		415 = {	
			add_extra_state_shared_building_slots = 2

			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}
		
		267 = {	
			add_extra_state_shared_building_slots = 2

			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
			
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}
	}
	
	option = {
	
		ai_chance = { #infrastructure & resources#
			factor = 40
		}
		name = iran.2.b
		
		add_timed_idea = { idea = per_integration_costs days = 120 }
		
		267 = {	
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			
			add_resource = {
				type = tungsten
				amount = 3
			}
		}
		415 = {	
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
			
			add_resource = {
				type = steel
				amount = 3
			}
		}
	}
	
	option = {
	
		ai_chance = { #Bleed them dry#
			factor = 30
		}
		name = iran.2.c
		
		add_manpower = 80000
		
		add_timed_idea = { idea = exploit_afghanistan days = 120 }
		
	}

}

country_event = {	###integrate iraq###
	id = iran.3
	title = iran.3.t
	desc = iran.3.d
	picture = GFX_report_event_soviet_tank_parade
	
	is_triggered_only = yes

	option = { #Rebuild Their Towns#
	
		ai_chance = {
			factor = 50
		}
		name = iran.3.a
		
		add_timed_idea = { idea = per_integration_costs days = 90 }
		
		676 = {	
			add_extra_state_shared_building_slots = 2

			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}
		
		291 = {	
			add_extra_state_shared_building_slots = 2

			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}
		
		675 = {	
			add_extra_state_shared_building_slots = 2

			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
			
			add_building_construction = {
				type = infrastructure
				level = 2
				instant_build = yes
			}
		}
	}
	
	option = {	#infrastructure & resources#
	
		ai_chance = {
			factor = 50
		}
		name = iran.3.b
		
		291 = {						
			add_resource = {
				type = rubber
				amount = 3
			}

			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
		676 = {						
			add_resource = {
				type = oil
				amount = 5
			}

			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
		675 = {	
			add_resource = {
				type = aluminium
				amount = 3
			}
			
			add_building_construction = {
				type = infrastructure
				level = 1
				instant_build = yes
			}
		}
		
		add_timed_idea = { idea = per_integration_costs days = 120 }
	}
	
	option = {	#bleed them dry#
	
		ai_chance = {
			factor = 25
		}
		name = iran.3.c
		
		add_manpower = 80000
		
		add_timed_idea = { idea = exploit_iraq days = 120 }
		
	}
	
}

country_event = { #adjust the sails
	id = iran.4
	title = iran.4.t
	desc = iran.4.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		ai_chance = {
			factor = 50
		}
		name = iran.4.a
		
		add_stability = 0.1
		
		add_popularity = {
			ideology = communism
			popularity = 0.15
		}
		
		add_opinion_modifier = { target = SOV modifier = medium_increase }
		SOV = { add_opinion_modifier = { target = PER modifier = medium_increase } }
		
		add_timed_idea = { idea = communist_influence  days = 1095 }
	}
	
	option = {
		ai_chance = {
			factor = 50
		}
		name = iran.4.b
		
		add_stability = 0.1
		
		add_popularity = {
			ideology = fascism
			popularity = 0.15
		}
		
		add_opinion_modifier = { target = GER modifier = medium_increase }
		GER = { add_opinion_modifier = { target = PER modifier = medium_increase } }
		
		add_timed_idea = { idea = fascist_influence days = 1095 }
	}
	
	option = {
	
		ai_chance = {
			factor = 25
		}
		name = iran.4.c
		
		add_stability = 0.1
		
		add_popularity = {
			ideology = democratic
			popularity = 0.15
		}
		
		add_opinion_modifier = { target = ENG modifier = medium_increase }
		ENG = { add_opinion_modifier = { target = PER modifier = medium_increase } }
		
		add_timed_idea = { idea = democratic_influence days = 1095 }
	}
	
	option = {
	
		ai_chance = {
			factor = 25
		}
		name = iran.4.e

		add_manpower = 50000
		add_war_support = 0.15
		set_rule = { can_create_factions = yes }

		add_ideas = persian_defense
		
		add_timed_idea = { idea = neutrality_influence days = 1095 }
	}
}

country_event = { # Persian Rejuvination
	id = iran.5
	title = iran.5.t
	desc = iran.5.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = { ###buy colonies###
		ai_chance = {
			base = 10
		}

		name = iran.5.a
		
		custom_effect_tooltip = buy_eng_colonies
		
		set_country_flag = purchase_british_colonies
	}
	
	option = { ###demand kuwait
		ai_chance = {
			base = 10
		}
		name = iran.5.b
		
		ENG = {
			country_event = { id = iran.6 }
		}
	}
}

country_event = { ###englands event from persia demanding kuwait###
	id = iran.6
	title = iran.6.t
	desc = iran.6.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		ai_chance = { ###england gives kuwait###
			base = 50
		}
		name = iran.6.a
		
		PER = { 
			transfer_state = 656
			add_political_power = 200
		}
		
		PER = {
			country_event = iran.7
		}
	}
	
	option = { ###england does not give kuwait###
		ai_chance = {
			base = 50
		}
		name = iran.6.b
		
		PER = { 
			add_state_core = 656
			add_political_power = -200
		}
		
		PER = {
			country_event = iran.8
		}
	}
}

country_event = { ###england gives kuwait###
	id = iran.7
	title = iran.7.t
	desc = iran.7.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.7.a
	}
}

country_event = { ###england doesnt give kuwait###
	id = iran.8
	title = iran.8.t
	desc = iran.8.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.8.a
	}
}


#######################################
###### Purchasing Western Colonies ####
#######################################

country_event = { ###Iran purchase kuwait###
	id = iran.9
	title = iran.9.t
	desc = iran.9.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.9.a

		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_war_with = GER }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 40 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}

		PER = { 
			transfer_state = 656
			country_event = iran.10
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		name = iran.9.b

		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				NOT = { ENG = { has_war_with = GER } }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 39 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}
		
		PER = { 
			add_war_support = 0.10
			add_state_core = 656
			country_event = iran.11
		}
	}
}

country_event = { ###england sells kuwait###
	id = iran.10
	title = iran.10.t
	desc = iran.10.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.10.a
	}
}

country_event = { ###england doesnt sell colony###
	id = iran.11
	title = iran.11.t
	desc = iran.11.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.11.a
	}
}

country_event = { ###purchase syria###
	id = iran.12
	title = iran.12.t
	desc = iran.12.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 40 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}
		name = iran.12.a
		
		PER = { 
			transfer_state = 680
			transfer_state = 554
			transfer_state = 677
			transfer_state = 553
			country_event = iran.13
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 39 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}
		name = iran.12.b
		
		PER = { 
			add_war_support = 0.10
			add_state_core = 680
			add_state_core = 554
			add_state_core = 677
			add_state_core = 553
			country_event = iran.14
		}
	}
}

country_event = { ###germany doesnt sell colony###
	id = iran.13
	title = iran.13.t
	desc = iran.13.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.13.a
	}
}

country_event = { ###germany doesnt sell colony###
	id = iran.14
	title = iran.14.t
	desc = iran.14.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.14.a
		
	}
}

country_event = { ###purchase of jordan###
	id = iran.15
	title = iran.15.t
	desc = iran.15.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.15.a

		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_war_with = GER }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 45 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}

		PER = { 
			transfer_state = 455
			
			country_event = iran.16
			
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		name = iran.15.b

		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				NOT = { ENG = { has_war_with = GER } }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 44 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}
		
		PER = { 
			add_war_support = 0.1
			add_state_core = 455
			country_event = iran.17
		}
	}
}

country_event = { ###sells jordan###
	id = iran.16
	title = iran.16.t
	desc = iran.16.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.16.a
		
	}
}

country_event = { ###keeps jordan###
	id = iran.17
	title = iran.17.t
	desc = iran.17.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

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

country_event = { ###purchase of palestine###
	id = iran.18
	title = iran.18.t
	desc = iran.18.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.18.a
		
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_war_with = GER }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 45 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}

		PER = { 
			transfer_state = 454
			
			country_event = iran.19
			
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		
		name = iran.18.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				NOT = { ENG = { has_war_with = GER } }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 44 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}

		PER = { 
			add_war_support = 0.1
			add_state_core = 454
			country_event = iran.20
		}
	}
}

country_event = { ###sells palestine###
	id = iran.19
	title = iran.19.t
	desc = iran.19.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

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

country_event = { ###keeps palestine###
	id = iran.20
	title = iran.20.t
	desc = iran.20.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.20.a
	}
}

country_event = { ###purchase of sinai###
	id = iran.21
	title = iran.21.t
	desc = iran.21.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.21.a
		
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_war_with = GER }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 45 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}

		PER = { 
			transfer_state = 453
			
			country_event = iran.22
			
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		
		name = iran.21.b

		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				NOT = { ENG = { has_war_with = GER } }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 44 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}

		PER = { 
			add_war_support = 0.1
			add_state_core = 453
			country_event = iran.23
		}
	}
}

country_event = { ###sells Sinai###
	id = iran.22
	title = iran.22.t
	desc = iran.22.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.22.a
	}
}

country_event = { ###keeps Sinai###
	id = iran.23
	title = iran.23.t
	desc = iran.23.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.23.a
	}
}

country_event = { ###purchase of Aden###
	id = iran.24
	title = iran.24.t
	desc = iran.24.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.24.a
		
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_war_with = GER }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 45 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}

		PER = { 
			transfer_state = 659
			
			country_event = iran.25
			
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		name = iran.24.b
		
		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				NOT = { ENG = { has_war_with = GER } }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 44 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}

		PER = { 
			add_war_support = 0.1
			add_state_core = 659
			country_event = iran.26
		}
	}
}

country_event = { ###sells Aden###
	id = iran.25
	title = iran.25.t
	desc = iran.25.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.25.a
	}
}

country_event = { ###keeps Aden###
	id = iran.26
	title = iran.26.t
	desc = iran.26.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.26.a
	}
}

country_event = { ###purchase of Gulf Nations###
	id = iran.27
	title = iran.27.t
	desc = iran.27.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.27.a
		
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				ENG = { has_war_with = GER }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size > 45 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size > 100 } }
			}
		}

		PER = { 
			transfer_state = 765
			transfer_state = 658
			
			country_event = iran.28
			
			add_timed_idea = { idea = purchase_of_colony days = 90}
		}
		
		add_timed_idea = { idea = sold_colony days = 90}
	}
	
	option = {
		name = iran.27.b
		
		ai_chance = {
			base = 5
			modifier = {
				factor = 5
				NOT = { ENG = { has_war_with = GER } }
			}
			modifier = {
				factor = 5
				PER = { has_army_size = { size < 44 } }
			}
			modifier = {
				factor = 5
				PER = { has_navy_size = { size < 99 } }
			}
		}

		PER = { 
			add_war_support = 0.1
			add_state_core = 765
			add_state_core = 658
			country_event = iran.29
		}
	}
}

country_event = { ###sells Gulf Nations###
	id = iran.28
	title = iran.28.t
	desc = iran.28.d
	picture = GFX_report_event_generic_sign_treaty3
	
	is_triggered_only = yes

	option = {
		name = iran.28.a
	}
}

country_event = { ###keeps Gulf Nations###
	id = iran.29
	title = iran.29.t
	desc = iran.29.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.29.a
	}
}

country_event = { #form faction with turkey#
	id = iran.30
	title = iran.30.t
	desc = iran.30.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	option = {
		name = iran.30.a #a great initiative!
		trigger = { is_subject = no } #failsafe to ensure subjects don't leave their master
		ai_chance = {
			base = 20
			modifier = {
				factor = 0.5
				is_in_faction = yes
				has_war = yes
			}
		}
		if = {
			limit = {
				ROOT = { is_in_faction = yes }
			}
			leave_faction = yes
		}
		PER = { add_to_faction = ROOT }
		if = {
			limit = {
				num_subjects > 0
			}
			every_other_country = {
				limit = { is_subject_of = ROOT }
				PER = { add_to_faction = PREV }
			}
		}
		hidden_effect = {
			PER = { country_event = { id = iran.31 hours = 6 } } 
			add_ai_strategy = {
				type = alliance
				id = PER
				value = 300
			}
		}
	}

	option = {
		name = iran.30.b #thinly-veiled persian opportunism!
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				is_in_faction = yes
				has_war = yes
			}
		}
		hidden_effect = {
			PER = { country_event = { id = iran.32 hours = 8 } } 
			set_country_flag = TUR_rejected_faction_with_PER
		}
	}
}

country_event = {
	id = iran.31
	title = iran.31.t
	desc = iran.31.desc
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	option = {
		name = iran.31.a #a great initiative!
		effect_tooltip = { 
			PER = { add_to_faction = FROM }
		}
	}
}

#The Balkan Pact Faction - [FROM] Rejects!
country_event = {
	id = iran.32
	title = iran.32.t
	desc = iran.32.desc
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	option = {
		name = iran.32.a #then they shall fall alone
	}
}

country_event = {
	id = iran.33
	title = iran.33.t
	desc = iran.33.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = iran.33.a
		release = PAK
		430 = { remove_core_of = PAK }
		RAJ = { transfer_state = 430 }
		PER = { set_autonomy = { target = PAK autonomy_state = autonomy_integrated_puppet } }
		PAK = {
			add_timed_idea = {
				idea = per_puppet
				days = 365
			}
		}
		if = {
			limit = {
				has_idea = RAJ_marginalized_muslim_community_angry
			}
			swap_ideas = {
				add_idea = RAJ_marginalized_muslim_community_happy
				remove_idea = RAJ_marginalized_muslim_community_angry
			}
		}
		if = {
			limit = {
				has_idea = RAJ_marginalized_muslim_community
			}
			swap_ideas = {
				add_idea = RAJ_marginalized_muslim_community_happy
				remove_idea = RAJ_marginalized_muslim_community
			}
		}
	}
}

country_event = { ###SAU puppet or war###
	id = iran.34
	title = iran.34.t
	desc = iran.34.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = iran.34.a
		
		ai_chance = {
			base = 10
		}

		PER = { 
			PER = { set_autonomy = { target = SAU autonomy_state = autonomy_puppet } }

			country_event = iran.35
		}
		
		add_timed_idea = { idea = per_puppet days = 365}
	}
	
	option = {
		name = iran.34.b
		
		ai_chance = {
			base = 20
		}

		PER = { 
			country_event = iran.36
		}
	}
}

country_event = { ###accept###
	id = iran.35
	title = iran.35.t
	desc = iran.35.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes

	option = {
		name = iran.35.a
		add_political_power = 75
	}
}

country_event = { ###decline###
	id = iran.36
	title = iran.36.t
	desc = iran.36.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.36.a
		add_war_support = 0.15
		create_wargoal = {
			target = SAU
			type = puppet_wargoal_focus
		}
	}
}

country_event = {
	id = iran.37
	title = iran.37.t
	desc = iran.37.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #accept
		name = iran.37.a

		ai_chance = {
			base = 30
			modifier = {
				add = -25
				PER = { has_army_size = { size < 50 } }
			}
			modifier = {
				add = 100
				PER = { has_army_size = { size > 49 } }
			}
			modifier = {
				add = 20
				is_in_faction_with = PER
			}
			modifier = {
				factor = 5
				has_global_flag = TUR_saadabad_pact_member
			}				
		}

		PER = { 
			country_event = iran.38
		}

	}

	option = { #decline
		name = iran.37.b

		ai_chance = {
			base = 10
			modifier = {
				PER = { has_army_size = { size > 49 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				PER = { has_army_size = { size < 40 } }
			}
			modifier = {
				factor = 2
				is_in_faction = yes
				NOT = { is_in_faction_with = PER }
			}
			modifier = {
				any_other_country = {
					has_guaranteed = AFG
				}
				factor = 5 #i've got friends
			}
			modifier = {
				any_other_country = {
					is_major = yes
					has_guaranteed = AFG
				}
				factor = 5 #i've got big friends
			}
		}

		PER = { 
			country_event = iran.39
		}
	}
}

country_event = { ###joins iran###
	id = iran.38
	title = iran.38.t
	desc = iran.38.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes

	option = {
		name = iran.38.a
		267 = {
			if = {
				limit = { is_owned_by = AFG }
				add_core_of = PER
			}
		}
		415 = {
			if = {
				limit = { is_owned_by = AFG }
				add_core_of = PER
			}
		}
		AFG = {
			every_unit_leader = {
				set_nationality = PER
			}
		}
		annex_country = { target = AFG transfer_troops = yes }
		#set_country_flag = AFG_annexed
		add_stability = 0.05
		add_political_power = 75
	}
}

country_event = { ###rejects deal###
	id = iran.39
	title = iran.39.t
	desc = iran.39.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.39.a
		add_war_support = 0.1
		add_state_claim = 267
		add_state_claim = 415
		create_wargoal = {
			target = AFG
			type = annex_everything
		}
	}
}

country_event = {
	id = iran.40
	title = iran.40.t
	desc = iran.40.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { #accept
		name = iran.40.a

		ai_chance = {
			base = 30
			modifier = {
				add = -25
				PER = { has_army_size = { size < 50 } }
			}
			modifier = {
				add = 100
				PER = { has_army_size = { size > 49 } }
			}
			modifier = {
				add = 20
				is_in_faction_with = PER
			}
			modifier = {
				factor = 5
				has_global_flag = TUR_saadabad_pact_member
			}				
		}

		PER = { 
			country_event = iran.41
		}

	}

	option = { #decline
		name = iran.40.b

		ai_chance = {
			base = 10
			modifier = {
				PER = { has_army_size = { size > 49 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				PER = { has_army_size = { size < 40 } }
			}
			modifier = {
				factor = 2
				is_in_faction = yes
				NOT = { is_in_faction_with = PER }
			}
			modifier = {
				any_other_country = {
					has_guaranteed = IRQ
				}
				factor = 5 #i've got friends
			}
			modifier = {
				any_other_country = {
					is_major = yes
					has_guaranteed = IRQ
				}
				factor = 5 #i've got big friends
			}
		}

		PER = { 
			country_event = iran.42
		}
	}
}

country_event = { ###joins iran###
	id = iran.41
	title = iran.41.t
	desc = iran.41.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes

	option = {
		name = iran.41.a
		291 = {
			if = {
				limit = { is_owned_by = IRQ }
				add_core_of = PER
			}
		}
		676 = {
			if = {
				limit = { is_owned_by = IRQ }
				add_core_of = PER
			}
		}
		675 = {
			if = {
				limit = { is_owned_by = IRQ }
				add_core_of = PER
			}
		}
		IRQ = {
			every_unit_leader = {
				set_nationality = PER
			}
		}
		annex_country = { target = IRQ transfer_troops = yes }
		#set_country_flag = IRQ_annexed
		add_stability = 0.05
		add_political_power = 75
	}
}

country_event = { ###rejects deal###
	id = iran.42
	title = iran.42.t
	desc = iran.42.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes

	option = {
		name = iran.42.a
		add_war_support = 0.1
		add_state_claim = 291
		add_state_claim = 675
		add_state_claim = 676
		create_wargoal = {
			target = IRQ
			type = annex_everything
		}
	}
}