JOR_civil_war = {
	JR2_declare_victory = {
			available = {
				tag = JR2
				JOR = { exists = no }	
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 5
			cost = 0
			
		remove_effect = {
				news_event = { id = Samsonnews.3 hours = 6 }
				remove_ideas = JOR_jordanian_civil_war
				set_capital = {
				  state = 455
				  remember_old_capital = no
				}
				JR2 = {
					change_government_type_presidential_republic = yes
					add_ideas = arab_league_member
					add_ideas = ZZZ_mixed_economy
				}
				every_state = {
					limit = {
					is_core_of = JR2
					}
					remove_core_of = JOR
				}
		}
	}
	JOR_declare_victory = {
			available = {
				tag = JOR
				has_idea = JOR_jordanian_civil_war
				JR2 = { exists = no }	
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 5
			cost = 0
			
		remove_effect = {
				news_event = { id = Samsonnews.2 hours = 6 }
				JOR = {
				remove_ideas = JOR_jordanian_civil_war
				}
				every_state = {
					limit = {
					is_core_of = JOR
					}
					remove_core_of = JR2
			}
		}
	}
}

PER_iraq_intervention_category = {
	PER_iraqi_intervention_debug = {
		priority = 1
		icon = GFX_SOV_decision_president_election_category
		days_mission_timeout = 250
		fire_only_once = no
		is_good = no
		cancel_if_not_visible = yes
		visible = {
	
		}
		available = {
			has_war = no
			BUK = {
				exists = no
			}
			ABK = {
				exists = no
			}
		}
		cancel_trigger = {
			PER = {
				casualties_k > 70
			}
		}
		activation = {
			always = no
		}
		complete_effect = {
			set_country_flag = PER_increase_ambition_iraq
		}
		cancel_effect = {
			add_war_support = -0.2
			add_stability = -0.2
			white_peace = BUK
			white_peace = ABK
			news_event = { id = news.335 }
			country_event = { id = iran.25 days = 31 }
			BUK = {
				retire_character = IRQ_Salah_Mukhtar
				annex_country = { target = IRQ transfer_troops = no }
				country_event = { id = iraq.7 days = 7 }
				country_event = { id = iraq.6 days = 14 }
			}
		}
		timeout_effect = {
			add_war_support = -0.2
			add_stability = -0.2
			white_peace = BUK
			white_peace = ABK
			news_event = { id = news.335 }
			country_event = { id = iran.25 days = 31 }
			BUK = {
				retire_character = IRQ_Salah_Mukhtar
				annex_country = { target = IRQ transfer_troops = no }
				country_event = { id = iraq.7 days = 7 }
				country_event = { id = iraq.6 days = 14 }
			}
		}
	}
	PER_iraqi_intervention = {
		available = {
			tag = PER
			IRQ = { exists = no }
			FIA = { exists = no }
		}
		modifier = {
		}
		ai_will_do = {
			factor = 100
		}
		fire_only_once = yes
		days_remove = 100
		cost = 0
		
		remove_effect = {
			news_event = { id = news.217 }
			activate_mission = PER_iraqi_intervention_debug
				declare_war_on = {
					target = BUK
					type = annex_everything
				}
				declare_war_on = {
					target = ABK
					type = annex_everything
				}
				declare_war_on = {
					target = IAI
					type = annex_everything
				}
            BUK = {
				add_ideas = BUK_iran_war
				load_oob = "BUK_iran_war"
			}
			ABK = {
				add_ideas = BUK_iran_war
			}			
		}
    }
}

PER_iranian_samson_option = {

	PER_invest_in_nuclear_tech = {

		icon = GFX_decision_Make_Nukes

		cost = 150

		fire_only_once = no

		visible = {
			tag = PER
		}
		
		available = {
			num_of_nukes < 10
		}

		days_remove = 120
		
		cancel_if_not_visible = yes
		complete_effect = {
			add_nuclear_bombs = 1
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	deploy_nukes_PER = {
		ai_will_do = {
			factor = 1000
		}
		icon = GFX_decision_Deploy_Nukes
		fire_only_once = yes
		cost = 10
		visible = {
			tag = PER
		}
		available = {
		    has_war_with = GER
			has_war_with = TUR
			controls_state = 411
			controls_state = 912
			surrender_progress > 0.35
			num_of_nukes > 8
		}
		complete_effect = {
			news_event = { id = samsonnews.24 hours = 12 }
			every_country = {
				goto_province = 1896 
			}
			launch_nuke = {
				province = 6953
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 9860
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 11759
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 11853
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 9932
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 11746
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 9853
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 9777
				controller = TUR
				use_nuke = yes
			}
			launch_nuke = {
				province = 6935
				controller = TUR
				use_nuke = yes
			}
			###Scorched Earth
			launch_nuke = {
				province = 1896
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 12773
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 7953
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 7982
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 8117
				controller = PER
				use_nuke = yes
			}
			launch_nuke = {
				province = 8040
				controller = PER
				use_nuke = yes
			}
				#Nuke if Israel exists
				if = {
					limit = { country_exists = ISR }
					launch_nuke = {
					province = 7176
					controller = ISR
					use_nuke = yes
					}
					launch_nuke = {
					province = 11970
					controller = ISR
					use_nuke = yes
					}
					launch_nuke = {
					province = 1201
					controller = ISR
					use_nuke = yes
					}
					launch_nuke = {
					province = 1065
					controller = ISR
					use_nuke = yes
					}
					launch_nuke = {
					province = 4206
					controller = ISR
					use_nuke = yes
					}
					launch_nuke = {
					province = 13218
					controller = ISR
					use_nuke = yes
					}
					launch_nuke = {
					province = 1015
					controller = ISR
					use_nuke = yes
					}
				}
				
				#Nuke if Arabian Republic exists
				if = {
					limit = { country_exists = ARR }
					launch_nuke = {
					province = 10791
					controller = ARR
					use_nuke = yes
					}
					launch_nuke = {
					province = 12702
					controller = ARR
					use_nuke = yes
					}
					launch_nuke = {
					province = 12455
					controller = ARR
					use_nuke = yes
					}
					launch_nuke = {
					province = 2057
					controller = ARR
					use_nuke = yes
					}
					launch_nuke = {
					province = 4968
					controller = ARR
					use_nuke = yes
					}
				}
			sound_effect = siren_sound_effect
			
		}
	}
}

HRL_gaddafi_samson_option = {

	HRL_construct_enrichment_plants = {
		ai_will_do = {
			base = 20
		}
		icon = GFX_PRC_rocket_strike
		available = {
				owns_state = 461
		}
		cancel_if_not_visible = yes
		fire_only_once = yes
		remove_effect = {
			HRL = {
				set_technology = {
						power_plants = 1
				}
				set_technology = {
						nuclear_reactors = 1
				}
				set_technology = {
						nuclear_reactors1 = 1
				}
				514 = {
					add_building_construction = {
						type = nuclear_reactor
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
				462 = {
					add_building_construction = {
						type = nuclear_reactor
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
				273 = {
					add_building_construction = {
						type = nuclear_reactor
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
			}
			set_country_flag = HRL_enrichment_plants_built
		}
		days_remove = 365
		cost = 300
	}
	
	HRL_build_ballistic_missile_plants = {
		ai_will_do = {
			base = 20
		}
		icon = GFX_PRC_rocket_strike
		cancel_if_not_visible = yes
		fire_only_once = yes
		available = {
				has_country_flag = HRL_enrichment_plants_built
		}
		remove_effect = {
			HRL = {
				448 = {
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
				1488 = {
					add_building_construction = {
						type = arms_factory
						level = 3
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
				1487 = {
					add_building_construction = {
						type = arms_factory
						level = 4
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 1
						instant_build = yes
					}
				}
			}
			set_country_flag = HRL_ballistic_missile_factories_built
		}
		days_remove = 365
		cost = 300
	}
	
	HRL_test_the_bomb = {
		ai_will_do = {
			base = 20
		}
		icon = GFX_PRC_rocket_strike
		cancel_if_not_visible = yes
		fire_only_once = yes
		available = {
				has_country_flag = HRL_ballistic_missile_factories_built
		}
		remove_effect = {
		hidden_effect = {
			news_event = { id = samsonnews.26 hours = 12 }
			remove_ideas = {
				HRL_slave_trade
				HRL_lawless_desert
				}
			change_government_type_personalistic_dictatorship = yes
			}
			custom_effect_tooltip = HRL_become_nuclear_tt
			HRL = { set_country_flag = HRL_nukes_obtained }
		}
		days_remove = 300
		cost = 365
	}

	HRL_invest_in_nuclear_tech = {

		icon = GFX_decision_Make_Nukes
		cost = 150
		fire_only_once = no
		visible = {
			tag = HRL
			has_country_flag = HRL_nukes_obtained
		}
		available = {
			num_of_nukes < 10
		}

		days_remove = 120
		
		cancel_if_not_visible = yes
		complete_effect = {
			add_nuclear_bombs = 1
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	deploy_nukes_HRL = {
		ai_will_do = {
			factor = 1000
		}
		icon = GFX_decision_Deploy_Nukes
		fire_only_once = yes
		cost = 10
		visible = {
			tag = HRL
			has_country_flag = HRL_nukes_obtained
		}
		available = {
		    has_war_with = GER
			has_war_with = TUR
			controls_state = 1331
			controls_state = 1325
			surrender_progress > 0.35
			num_of_nukes > 8
		}
		complete_effect = {
			news_event = { id = samsonnews.25 hours = 12 }
			every_country = {
				goto_province = 11834 
			}
			launch_nuke = {
				province = 11834
				controller = FRA
				use_nuke = yes
			}
			launch_nuke = {
				province = 9898
				controller = FRA
				use_nuke = yes
			}
			launch_nuke = {
				province = 6766
				controller = FRA
				use_nuke = yes
			}
			launch_nuke = {
				province = 9764
				controller = SPR
				use_nuke = yes
			}
			launch_nuke = {
				province = 6906
				controller = SPR
				use_nuke = yes
			}
			launch_nuke = {
				province = 7183
				controller = SPR
				use_nuke = yes
			}
			launch_nuke = {
				province = 875
				controller = SPR
				use_nuke = yes
			}
			launch_nuke = {
				province = 11024
				controller = SPR
				use_nuke = yes
			}
			launch_nuke = {
				province = 4135
				controller = ENG
				use_nuke = yes
			}
			launch_nuke = {
				province = 10074
				controller = ITA
				use_nuke = yes
			}
			launch_nuke = {
				province = 819
				controller = ITA
				use_nuke = yes
			}
			launch_nuke = {
				province = 11837
				controller = ITA
				use_nuke = yes
			}
			sound_effect = siren_sound_effect
			
		}
	}
	
	HRL_invade_sudan = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			owns_state = 446
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 7
		
		cancel_if_not_visible = yes
		remove_effect = {
		declare_war_on = {
				target = SUD
				type = annex_everything
			}
		declare_war_on = {
				target = RSF
				type = annex_everything
			}
		declare_war_on = {
				target = SML
				type = annex_everything
			}
		declare_war_on = {
				target = SOM
				type = annex_everything
			}
		every_state = {
				limit = {
				is_core_of = MUS
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = SUD
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = RSF
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ERI
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = DJI
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = SML
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = SOM
			}
			add_core_of = HRL
		}
		transfer_state = 550
		transfer_state = 268
		transfer_state = 1445
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_invade_mauretania = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			owns_state = 446
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 7
		
		cancel_if_not_visible = yes
		remove_effect = {
		MRT = { leave_faction = yes }
		IVO = { set_autonomy = {
			target = MRT
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		MLI = { set_autonomy = {
			target = MRT
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		NGR = { set_autonomy = {
			target = MRT
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		VOL = { set_autonomy = {
			target = MRT
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		GNA = { set_autonomy = {
			target = MRT
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		SEN = { set_autonomy = {
			target = MRT
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		declare_war_on = {
			target = MRT
			type = annex_everything
		}
		declare_war_on = {
			target = RRF
			type = annex_everything
		}
		annex_country = {
			target = WES
			transfer_troops = yes
		}
		every_state = {
				limit = {
				is_core_of = MRT
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = WES
			}
			add_core_of = HRL
			}
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_seize_ceuta_and_melilla = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			owns_state = 290
			has_global_flag = SOV_first_nato_war_victory
		}

		days_remove = 45
		
		cancel_if_not_visible = yes
		remove_effect = {
		transfer_state = 898
		transfer_state = 897
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_invade_levant = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 35
		
		cancel_if_not_visible = yes
		remove_effect = {
		activate_mission = HRL_arab_wars_timer
		add_ideas = HRL_antiimperialist_jihad
		every_possible_country = { remove_ideas = EGY_blocked_suez_canal }
		declare_war_on = {
			target = EGY
			type = annex_everything
		}
		declare_war_on = {
			target = MEK
			type = annex_everything
		}
		declare_war_on = {
			target = PAL
			type = annex_everything
		}
		declare_war_on = {
			target = ISR
			type = annex_everything
		}
		declare_war_on = {
			target = JOR
			type = annex_everything
		}
		declare_war_on = {
			target = JR2
			type = annex_everything
		}
		declare_war_on = {
			target = LEB
			type = annex_everything
		}
		declare_war_on = {
			target = SYR
			type = annex_everything
		}
		declare_war_on = {
			target = FSA
			type = annex_everything
		}
		declare_war_on = {
			target = HTS
			type = annex_everything
		}
		declare_war_on = {
			target = ISS
			type = annex_everything
		}
		declare_war_on = {
			target = ROJ
			type = annex_everything
		}
		every_state = {
				limit = {
				is_core_of = EGY
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ISR
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = PAL
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = JOR
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = JR2
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = LEB
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = SYR
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = HTS
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = FSA
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ISR
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ISS
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ROJ
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = MEK
			}
			add_core_of = HRL
		}
		news_event = { id = samsonnews.30 }
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_invade_iraq = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			owns_state = 454
			has_war = no
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 14
		
		cancel_if_not_visible = yes
		remove_effect = {
		declare_war_on = {
			target = BUK
			type = annex_everything
		}
		declare_war_on = {
			target = ABK
			type = annex_everything
		}
		declare_war_on = {
			target = KUR
			type = annex_everything
		}
		if = {
			limit = {
				IRQ = { is_subject = no }
				}
			declare_war_on = {
			target = IRQ
			type = annex_everything
			}
		}
		if = {
			limit = {
				FIA = { is_in_faction = no }
				}
			declare_war_on = {
			target = FIA
			type = annex_everything
			}
		}
		every_state = {
				limit = {
				is_core_of = IRQ
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ABK
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = BUK
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = FIA
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = KUR
			}
			add_core_of = HRL
			}
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_invade_arabia = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			owns_state = 455
			has_war = no
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 70
		
		cancel_if_not_visible = yes
		remove_effect = {
		declare_war_on = {
			target = ARR
			type = annex_everything
		}
		declare_war_on = {
			target = SAU
			type = annex_everything
		}
		declare_war_on = {
			target = ROC
			type = annex_everything
		}
		declare_war_on = {
			target = JAH
			type = annex_everything
		}
		declare_war_on = {
			target = KUW
			type = annex_everything
		}
		declare_war_on = {
			target = QAT
			type = annex_everything
		}
		declare_war_on = {
			target = UAE
			type = annex_everything
		}
		declare_war_on = {
			target = OMA
			type = annex_everything
		}
		declare_war_on = {
			target = YEM
			type = annex_everything
		}
		declare_war_on = {
			target = AAS
			type = annex_everything
		}
		every_state = {
				limit = {
				is_core_of = SAU
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ARR
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = ROC
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = JAH
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = KUW
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = QAT
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = UAE
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = OMA
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = AAS
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = YEM
			}
			add_core_of = HRL
		}
		transfer_state = 856
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_invade_the_rawafid = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			owns_state = 455
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 150
		
		cancel_if_not_visible = yes
		remove_effect = {
		activate_mission = HRL_persian_war_timer
		SOV = { remove_from_faction = PER }
		PER = { white_peace = GER }
		declare_war_on = {
			target = SAR
			type = annex_everything
		}
		declare_war_on = {
			target = HOU
			type = annex_everything
		}
		declare_war_on = {
			target = HEZ
			type = annex_everything
		}
		declare_war_on = {
			target = FIA
			type = annex_everything
		}
		declare_war_on = {
			target = IRQ
			type = annex_everything
		}
		declare_war_on = {
			target = PER
			type = annex_everything
		}
		every_state = {
				limit = {
				is_core_of = HEZ
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = HOU
			}
			add_core_of = HRL
		}
		every_state = {
				limit = {
				is_core_of = SAR
			}
			add_core_of = HRL
		}
		add_state_core = 413
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_UAR = {

		fire_only_once = yes
		visible = {
			tag = HRL
		}
		available = {
			PER = { surrender_progress > 0.4 }
			NOT = {
				USB = {
				has_country_flag = USB_NSS_flag
				}
			}
			GER = {
			OR = {
			has_completed_focus = GER_aggressive_realpolitk
			has_completed_focus = GER_facit_omnia_voluntas
			has_completed_focus = GER_a_new_october
				}
			}
		}

		days_remove = 7
		
		cancel_if_not_visible = yes
		complete_effect = {
		annex_country = {
			target = HOU
		}
		annex_country = {
			target = HEZ
		}
		annex_country = {
			target = SAR
		}
		transfer_state = 413
		transfer_state = 421
		add_state_core = 421
		white_peace = PER
		if = {
			limit = { SOV = { has_completed_focus = SOV_protect_motherlands_borders } }
			SOV = { add_to_faction = PER }
		}
		remove_ideas = HRL_antiimperialist_jihad
		news_event = { id = samsonnews.31 }
		set_global_flag = HRL_UAR
		}

		ai_will_do = {
			factor = 50
		}
	}
	
	HRL_border_war = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = HRL
		}
		visible = {
			tag = HRL
		}
		available = {
			has_global_flag = HRL_UAR
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 1027
					num_provinces = 1
					on_win = border_conflicts_chuck.1
					on_lose = sneed.1
					on_cancel = sneed.1
					modifier = 0.1
					dig_in_factor = 0
					terrain_factor = 0
				}	
				defender = {
					state = 827
					num_provinces = 1
					on_win = sneed.1
					on_lose = sneed.1
					on_cancel = sneed.1
				}
			}
		}
	}
	
	HRL_persian_war_timer = {
		priority = 1
		icon = GFX_SOV_decision_president_election_category
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = no
		cancel_if_not_visible = yes
		visible = {
	
		}
		available = {
			HRL = {
			OR = {
				casualties_k > 50
				surrender_progress > 0.25
				}
			}
		}
		activation = {
			PER = { has_war_with = HRL }
		}
		cancel_trigger = {
			NOT = { has_war_with = PER }
		}
		complete_effect = {
			add_war_support = -0.2
			add_stability = -0.2
			white_peace = PER
			if = {
			limit = { SOV = { has_completed_focus = SOV_protect_motherlands_borders } }
			SOV = { add_to_faction = PER }
			}
			news_event = { id = samsonnews.32 }
		}
		timeout_effect = {
			add_war_support = -0.2
			add_stability = -0.2
			white_peace = PER
			if = {
			limit = { SOV = { has_completed_focus = SOV_protect_motherlands_borders } }
			SOV = { add_to_faction = PER }
			}
			news_event = { id = samsonnews.32 }
		}
	}
	
	HRL_arab_wars_timer = {
		priority = 1
		icon = GFX_SOV_decision_president_election_category
		days_mission_timeout = 250
		fire_only_once = yes
		is_good = no
		cancel_if_not_visible = yes
		visible = {
	
		}
		available = {
			HRL = {
			OR = {
				casualties_k > 100
				surrender_progress > 0.25
				}
			}
		}
		activation = {
		OR = {
			EGY = { has_war_with = HRL }
			MEK = { has_war_with = HRL }
			MUS = { has_war_with = HRL }
			ISR = { has_war_with = HRL }
			PAL = { has_war_with = HRL }
			SYR = { has_war_with = HRL }
			FSA = { has_war_with = HRL }
			ISS = { has_war_with = HRL }
			HTS = { has_war_with = HRL }
			LEB = { has_war_with = HRL }
			JR2 = { has_war_with = HRL }
			JOR = { has_war_with = HRL }
			ROJ = { has_war_with = HRL }
			KUR = { has_war_with = HRL }
			IRQ = { has_war_with = HRL }
			ABK = { has_war_with = HRL }
			BUK = { has_war_with = HRL }
			KUW = { has_war_with = HRL }
			SAU = { has_war_with = HRL }
			ROC = { has_war_with = HRL }
			ARR = { has_war_with = HRL }
			JAH = { has_war_with = HRL }
			}
		}
		cancel_trigger = {
			has_war = no
		}
		complete_effect = {
			add_war_support = -0.2
			add_stability = -0.2
			white_peace = EGY
			white_peace = MUS
			white_peace = MEK
			white_peace = ISR
			white_peace = PAL
			white_peace = LEB
			white_peace = JOR
			white_peace = JR2
			white_peace = SYR
			white_peace = HTS
			white_peace = ISS
			white_peace = FSA
			white_peace = ROJ
			white_peace = KUR
			white_peace = IRQ
			white_peace = BUK
			white_peace = ABK
			white_peace = IRQ
			white_peace = KUW
			white_peace = JAH
			white_peace = ROC
			white_peace = SAU
			white_peace = ARR
			news_event = { id = samsonnews.32 }
		}
		timeout_effect = {
			add_war_support = -0.2
			add_stability = -0.2
			white_peace = EGY
			white_peace = MUS
			white_peace = MEK
			white_peace = ISR
			white_peace = PAL
			white_peace = LEB
			white_peace = JOR
			white_peace = JR2
			white_peace = SYR
			white_peace = HTS
			white_peace = ISS
			white_peace = FSA
			white_peace = ROJ
			white_peace = KUR
			white_peace = IRQ
			white_peace = BUK
			white_peace = ABK
			white_peace = IRQ
			white_peace = KUW
			white_peace = JAH
			white_peace = ROC
			white_peace = SAU
			white_peace = ARR
			news_event = { id = samsonnews.32 }
		}
	}
	
	HRL_choose_capital = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = HRL
		}
		visible = {
			tag = HRL
		}
		available = {
			has_global_flag = HRL_UAR
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			country_event = { id = jordan.7 }
		}
	}
}

SAU_recreate_PSF = {
	SAU_reform_PSF = {
			available = {
				date > 2022.01.01
				has_war = no
				NOT = {
				tag = ARR
				}
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 5
			cost = 0
			
		remove_effect = {
				set_country_flag = psf_member
				create_faction = peninsula_shield_force
				add_to_faction = UAE
				add_to_faction = OMA
				add_to_faction = QAT
				add_to_faction = KUW
				add_ideas = SAU_loyal_allegiance_council
				add_ideas = SAU_petro_dollar
				OMA = { add_ideas = SAU_petro_dollar }
				QAT = { add_ideas = SAU_petro_dollar }
				UAE = { add_ideas = SAU_petro_dollar }
				KUW = { add_ideas = SAU_petro_dollar }
				remove_ideas = ROC_questionable_legitimacy
				change_government_type_absolute_monarchy = yes
				add_ideas = ZZZ_capitalist_economy
		}
	}
	SAU_kick_kuwait = {
			available = {
				date > 2022.01.01
				BUK = {
				exists = yes
				has_war = no
				}
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 1
			cost = 0
			
		remove_effect = {
				remove_from_faction = KUW
		}
	}
	ARR_get_oil_baby = {
			available = {
				date > 2022.01.01
				has_war = no
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 5
			cost = 0
			
		remove_effect = {
				add_ideas = SAU_petro_dollar
				OMA = { add_ideas = SAU_petro_dollar }
				QAT = { add_ideas = SAU_petro_dollar }
				UAE = { add_ideas = SAU_petro_dollar }
				KUW = { add_ideas = SAU_petro_dollar }
				change_government_type_presidential_republic = yes
				add_ideas = ZZZ_capitalist_economy
		}
	}
}

GER_other_nato_admins = {
	GER_exploit_syrian_resources = {
		icon = GFX_decision_GER_operation_solomon
		allowed = {
			tag = GER
		}
		visible = {
			tag = GER
			SYR = {
				has_cosmetic_tag = SYR_nato
			}
			has_country_flag = GER_syria_economy_restored
		}
		available = {
			has_completed_focus = GER_the_new_order
		}
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		cost = 150
		days_remove = 60
		cancel_if_not_visible = yes
		complete_effect = {
		}
		remove_effect = {
			give_resource_rights = {
				receiver = GER
				state = 814
			}
		}
	}
	GER_support_syrian_economy = {
		icon = GFX_decision_GER_operation_solomon
		allowed = {
			tag = GER
		}
		visible = {
			tag = GER
			SYR = {
				has_cosmetic_tag = SYR_nato
			}
			NOT = {
				has_country_flag = GER_syria_economy_restored
			}
		}
		available = {
			has_completed_focus = GER_the_new_order
		}
		ai_will_do = {
			base = 25
		}
		fire_only_once = no
		cost = 50
		days_remove = 80
		cancel_if_not_visible = yes
		complete_effect = {
			if = {
				limit = {
					SYR = {
						NOT = {
							has_idea = NATO_devestated_economy
							has_idea = NATO_devestated_economy2
							has_idea = NATO_devestated_economy3
						}
					}
				}
				set_country_flag = GER_syria_economy_restored
			}
		}
		remove_effect = {
			SYR = {
				random_owned_controlled_state = {
					limit = {
						is_core_of = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				NATO_increase_economy = yes
			}
		}
	}
	GER_rewrite_syrian_constitution = {
		icon = GFX_decision_GER_operation_solomon
		allowed = {
			tag = GER
		}
		visible = {
			tag = GER
			SYR = {
				has_cosmetic_tag = SYR_nato
			}
			NOT = {
				has_country_flag = GER_syria_stabilized
			}
		}
		available = {
			has_completed_focus = GER_the_new_order
		}
		ai_will_do = {
			base = 25
		}
		fire_only_once = no
		cost = 50
		days_remove = 80
		cancel_if_not_visible = yes
		complete_effect = {
			if = {
				limit = {
					SYR = {
						NOT = {
							has_idea = NATO_unstable_administration
							has_idea = NATO_unstable_administration2
							has_idea = NATO_unstable_administration3
						}
					}
				}
				set_country_flag = GER_syria_stabilized
				SYR = {
					drop_cosmetic_tag = yes
					set_cosmetic_tag = FSA_republic
					set_politics = {
						ruling_party = social_democrat
						elections_allowed = yes
						last_election = "2011.12.1"
						election_frequency = 48
					}
					set_popularities = {
						communist = 6
						social_democrat = 20
						social_liberal = 46
						conservative = 18
						authoritarian_democrat = 10
					}
				}
			}
		}
		remove_effect = {
			SYR = {
				NATO_increase_administration = yes
			}
		}
	}
	
	GER_exploit_serbian_resources = {
		icon = GFX_decision_GER_operation_swift_justice
		allowed = {
			tag = GER
		}
		visible = {
			tag = GER
			SER = {
				has_cosmetic_tag = SER_nato
			}
			has_country_flag = GER_serbia_economy_restored
		}
		available = {
			has_completed_focus = GER_the_new_order
		}
		ai_will_do = {
			base = 25
		}
		fire_only_once = yes
		cost = 150
		days_remove = 60
		cancel_if_not_visible = yes
		complete_effect = {
		}
		remove_effect = {
			give_resource_rights = {
				receiver = GER
				state = 1296
			}
		}
	}
	GER_support_serbian_economy = {
		icon = GFX_decision_GER_operation_swift_justice
		allowed = {
			tag = GER
		}
		visible = {
			tag = GER
			SER = {
				has_cosmetic_tag = SER_nato
			}
			NOT = {
				has_country_flag = GER_serbia_economy_restored
			}
		}
		available = {
			has_completed_focus = GER_the_new_order
		}
		ai_will_do = {
			base = 25
		}
		fire_only_once = no
		cost = 50
		days_remove = 80
		cancel_if_not_visible = yes
		complete_effect = {
			if = {
				limit = {
					SER = {
						NOT = {
							has_idea = NATO_devestated_economy
							has_idea = NATO_devestated_economy2
							has_idea = NATO_devestated_economy3
						}
					}
				}
				set_country_flag = GER_serbia_economy_restored
			}
		}
		remove_effect = {
			SER = {
				random_owned_controlled_state = {
					limit = {
						is_core_of = ROOT
						free_building_slots = {
							building = industrial_complex
							size > 1
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				NATO_increase_economy = yes
			}
		}
	}
	GER_rewrite_serbian_constitution = {
		icon = GFX_decision_GER_operation_swift_justice
		allowed = {
			tag = GER
		}
		visible = {
			tag = GER
			SER = {
				has_cosmetic_tag = SER_nato
			}
			NOT = {
				has_country_flag = GER_serbia_stabilized
			}
		}
		available = {
			has_completed_focus = GER_the_new_order
		}
		ai_will_do = {
			base = 25
		}
		fire_only_once = no
		cost = 50
		days_remove = 80
		cancel_if_not_visible = yes
		complete_effect = {
			if = {
				limit = {
					SER = {
						NOT = {
							has_idea = NATO_unstable_administration
							has_idea = NATO_unstable_administration2
							has_idea = NATO_unstable_administration3
						}
					}
				}
				set_country_flag = GER_serbia_stabilized
				SER = {
					drop_cosmetic_tag = yes
					set_cosmetic_tag = SER_nato_free
					set_politics = {
						ruling_party = social_democrat
						elections_allowed = yes
						last_election = "2011.12.1"
						election_frequency = 48
					}
					set_popularities = {
						communist = 6
						social_democrat = 20
						social_liberal = 46
						conservative = 18
						authoritarian_democrat = 10
					}
				}
			}
		}
		remove_effect = {
			SER = {
				NATO_increase_administration = yes
			}
		}
	}
	
	GER_invite_albania_to_the_eu = {
		icon = generic_industry
		cost = 100
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SER = { is_subject = yes }
			has_completed_focus = GER_eu_economic_expansion
		}
		available = {
			ALB = {
				has_opinion = {
					target = GER
					value > 65
				}
			}
		}
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		}
		remove_effect = {
			ALB = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
				ALB = {
				annex_country = {
				target = KOS
				}
				add_state_core = 785
				add_state_core = 1305
				}
			}
		}
	}
	
	GER_invite_turkey_to_the_eu = {
		icon = generic_industry
		cost = 100
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			TUR = { has_government = social_democrat }
			has_completed_focus = GER_the_new_order
		}
		available = {
			TUR = {
				has_opinion = {
					target = GER
					value > 65
				}
			}
		}
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		}
		remove_effect = {
			TUR = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				CYP = { transfer_state = 836 }
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
		}
	}
	
	GER_invite_bosnia_to_the_eu = {
		icon = generic_industry
		cost = 100
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SER = { is_subject = yes }
			has_completed_focus = GER_eu_economic_expansion
		}
		available = {
			BOS = {
				has_opinion = {
					target = GER
					value > 65
				}
			}
		}
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		}
		remove_effect = {
			BOS = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			add_to_faction = BOS
			FRA = { add_to_faction = BOS }
			ENG = { add_to_faction = BOS }
		}
	}
	
	GER_invite_montenegro_to_the_eu = {
		icon = generic_industry
		cost = 100
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SER = { is_subject = yes }
			has_completed_focus = GER_eu_economic_expansion
		}
		available = {
			MNT = {
				has_opinion = {
					target = GER
					value > 65
				}
			}
		}
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		}
		remove_effect = {
			MNT = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			add_to_faction = MNT
			FRA = { add_to_faction = MNT }
			ENG = { add_to_faction = MNT }
		}
	}
	
	GER_invite_macedonia_to_the_eu = {
		icon = generic_industry
		cost = 100
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SER = { is_subject = yes }
			has_completed_focus = GER_eu_economic_expansion
		}
		available = {
			MAC = {
				has_opinion = {
					target = GER
					value > 65
				}
			}
		}
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		}
		remove_effect = {
			MAC = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			add_to_faction = MAC
			FRA = { add_to_faction = MAC }
			ENG = { add_to_faction = MAC }
		}
	}
	
	GER_invite_serbia_to_the_eu = {
		icon = generic_industry
		cost = 100
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SER = { has_cosmetic_tag = SER_nato_free }
			has_completed_focus = GER_eu_economic_expansion
		}
		available = {
			SER = {
				has_opinion = {
					target = GER
					value > 65
				}
			}
		}
		ai_will_do = {
			base = 1
		}
		complete_effect = {
		}
		remove_effect = {
			SER = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
		}
	}
	
	GER_pressure_moscow_to_invade = {
		icon = generic_industry
		cost = 100
		days_remove = 200
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SOV = { is_subject = yes }
			has_completed_focus = GER_the_new_order
		}
		available = {
			SOV = {
				has_opinion = {
					target = GER
					value > 64
				}
			}
		}
		ai_will_do = {
			base = 30
		}
		complete_effect = {
		}
		remove_effect = {
			SOV = {
				declare_war_on = {
					target = PUR
					type = annex_everything
				}
				declare_war_on = {
					target = UDM
					type = annex_everything
				}
				declare_war_on = {
					target = CHU
					type = annex_everything
				}
				declare_war_on = {
					target = TAT
					type = annex_everything
				}
				declare_war_on = {
					target = STL
					type = annex_everything
				}
				declare_war_on = {
					target = KKP
					type = annex_everything
				}
			}
			NFJ = {
			annex_country = {
			target = STV
			}
			add_state_core = 397
			}
			FER = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			CHE = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			GEO = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			BLR = {
				effect_tooltip = {
					add_ideas = EU_euro_idea1
				}
				hidden_effect = {
					EU_join_effect = yes
					add_to_array = {
						array = GER.GER_sponsor_volt_targets
						value = THIS.id
					}
				}
			}
			add_to_faction = NFJ
			add_to_faction = NAV
			add_to_faction = NOA
			add_to_faction = AZR
			add_to_faction = ARM
			add_to_faction = FER
			add_to_faction = CHE
			add_to_faction = GEO
			FRA = { 
			add_to_faction = NFJ
			add_to_faction = NAV
			add_to_faction = NOA
			add_to_faction = AZR
			add_to_faction = ARM
			}
			ENG = {
			add_to_faction = NFJ
			add_to_faction = NAV
			add_to_faction = NOA
			add_to_faction = AZR
			add_to_faction = ARM
			}
			set_global_flag = SOV_eastern_russia_conquered
		}
	}
	
	GER_finalize_eastern_european_borders = {
		icon = generic_industry
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SOV = { has_war = no }
			has_global_flag = SOV_eastern_russia_conquered
		}
		available = {
		NOT = {
			OR = {
			SOV = {
				owns_state = 351
				owns_state = 264
				owns_state = 400
				owns_state = 256
				owns_state = 581
				owns_state = 249
				owns_state = 399
				owns_state = 1392
				owns_state = 250
				owns_state = 251
				owns_state = 401
				owns_state = 239
				owns_state = 265
				owns_state = 260
				owns_state = 217
					}
				}
			}
		}
		ai_will_do = {
			base = 30
		}
		complete_effect = {
			SOV = {
				transfer_state = 351
				transfer_state = 264
				transfer_state = 400
				transfer_state = 256
				transfer_state = 581
				transfer_state = 249
				transfer_state = 399
				transfer_state = 1392
				transfer_state = 250
				transfer_state = 251
				transfer_state = 401
				transfer_state = 239
				transfer_state = 265
				transfer_state = 260
				transfer_state = 217
			}
			if = {
			limit = { country_exists = UKR }
			UKR = { transfer_state = 238
					add_state_core = 238
				}
			}
			else = {
			transfer_state = 238
			add_state_core = 238
			}
		}
	}
	
	GER_put_roa_in_charge = {
		icon = generic_industry
		cost = 50
		days_remove = 14
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			SOV = { is_subject = yes }
			has_global_flag = SOV_eastern_russia_conquered
		}
		available = {
			GER = {
			OR = {
				has_government = authoritarian_democrat
				has_government = social_liberal
				}
			}
		}
		ai_will_do = {
			base = 5
		}
		complete_effect = {
		}
		remove_effect = {
			country_event = { id = jordan.6 }
		}
	}
	
	GER_rebrand_politics = {
		icon = generic_industry
		fire_only_once = yes
		allowed = {
			tag = GER
		}
		visible = {
			has_cosmetic_tag = EUU
		}
		available = {
			has_cosmetic_tag = EUU
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			set_party_name = {
				ideology = national_socialist
				name = BRS_national_socialist_party
				long_name = BRS_national_socialist_party_long
			}
			set_party_name = {
				ideology = fascist
				name = BRS_fascist_party
				long_name = BRS_fascist_party_long
			}
			set_party_name = {
				ideology = nationalist
				name = BRS_nationalist_party
				long_name = BRS_nationalist_party_long
			}
			set_party_name = {
				ideology = authoritarian_democrat
				name = BRS_authoritarian_democrat_party
				long_name = BRS_authoritarian_democrat_party_long
			}
			set_party_name = {
				ideology = conservative
				name = BRS_conservative_party
				long_name = BRS_conservative_party_long
			}
			set_party_name = {
				ideology = market_liberal
				name = BRS_market_liberal_party
				long_name = BRS_market_liberal_party_long
			}
			set_party_name = {
				ideology = social_liberal
				name = BRS_social_liberal_party
				long_name = BRS_social_liberal_party_long
			}
			set_party_name = {
				ideology = social_democrat
				name = BRS_social_democrat_party
				long_name = BRS_social_democrat_party_long
			}
			set_party_name = {
				ideology = libertarian_socialist
				name = BRS_libertarian_socialist_party
				long_name = BRS_libertarian_socialist_party_long
			}
			set_party_name = {
				ideology = communist
				name = BRS_communist_party
				long_name = BRS_communist_party_long
			}
			set_party_name = {
				ideology = totalitarian_socialist
				name = BRS_totalitarian_socialist_party
				long_name = BRS_totalitarian_socialist_party_long
			}
		}
	}
}

AFA_reclaim_iran = {

	AFA_organize_irgc_remnants = {
		icon = generic_industry
		days_remove = 200
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			always = yes
		}
		available = {
			always = yes
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			add_ideas = AFA_revolutionary_fervor
		}
	}

	AFA_take_out_balochs = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			has_idea = AFA_revolutionary_fervor
		}
		available = {
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			AFA = {
				declare_war_on = {
					target = BAL
					type = annex_everything
				}
				every_state = {
					limit = {
					is_core_of = PER
					}
				add_core_of = AFA
				}
			}
		}
	}
	
	AFA_border_war = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			has_global_flag = second_nato_war_flag
		}
		available = {
			has_global_flag = second_nato_war_flag
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 1326
					num_provinces = 3
					on_win = border_conflicts_chuck.2
					on_lose = sneed.1
					on_cancel = sneed.1
					modifier = 0.1
					dig_in_factor = 0
					terrain_factor = 0
				}	
				defender = {
					state = 416
					num_provinces = 3
					on_win = sneed.1
					on_lose = sneed.1
					on_cancel = sneed.1
				}
			}
		}
	}
	
	AFA_border_war_2 = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			PER = { is_subject = no
					is_in_faction = no
				}
		}
		available = {
			PER = { is_subject = no
					is_in_faction = no
				}
			owns_state = 916
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
			start_border_war = {
				change_state_after_war = no
				attacker = {
					state = 916
					num_provinces = 2
					on_win = border_conflicts_chuck.3
					on_lose = sneed.1
					on_cancel = sneed.1
					modifier = 0.1
					dig_in_factor = 0
					terrain_factor = 0
				}	
				defender = {
					state = 412
					num_provinces = 2
					on_win = sneed.1
					on_lose = sneed.1
					on_cancel = sneed.1
				}
			}
		}
	}
	
	AFA_second_iranian_revolution = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			has_idea = AFA_revolutionary_fervor
		}
		available = {
		OR = {
			PER = { is_subject = no
					is_in_faction = no
				}
			SOV = {
			controls_state = 96
			controls_state = 91 }
			}
			owns_state = 916
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
		GER = { set_autonomy = {
			target = PER
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		SOV = { set_autonomy = {
			target = PER
			autonomous_state = autonomy_free
			end_wars = yes
			end_civil_wars = no
			}
		}
		PER = {
			leave_faction = yes 
			white_peace = SOV
		}
		declare_war_on = {
				target = PER
				type = annex_everything
			}
		}
	}
	
	AFA_liberate_hormuz = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			has_idea = AFA_revolutionary_fervor
		}
		available = {
			SOV = { controls_state = 1378 }
			PER = { exists = no }
			owns_state = 266
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
		SOV = { release = ZET }
		GER = { release = ZET }
		ZET = {
			leave_faction = yes 
		}
		declare_war_on = {
				target = ZET
				type = annex_everything
			}
		}
	}
	
	AFA_take_out_minority_republics = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			has_idea = AFA_revolutionary_fervor
		}
		available = {
			PER = { exists = no }
			owns_state = 266
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
		declare_war_on = {
				target = RIF
				type = annex_everything
			}
		declare_war_on = {
				target = QEM
				type = annex_everything
			}
		transfer_state = 419
		transfer_state = 421
		}
	}
	
	AFA_form_new_islamic_republic = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = AFA
		}
		visible = {
			has_idea = AFA_revolutionary_fervor
		}
		available = {
			PER = { exists = no }
			owns_state = 266
			has_idea = AFA_revolutionary_fervor
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
		set_capital = {
				state = 266
				remember_old_capital = no
			}
		set_cosmetic_tag = AFA_reunified
		news_event = { id = Samsonnews.28 }
		}
	}
}

PER_reclaim_iran = {
	
	PER_blast_irgc = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = PER
		}
		visible = {
			AFA = { exists = yes }
		}
		available = {
			SOV = { is_subject = yes }
			AFA = { exists = yes }
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
		declare_war_on = {
				target = AFA
				type = annex_everything
			}
		declare_war_on = {
				target = BAL
				type = annex_everything
			}
		}
	}
	
	PER_supress_insurgency = {
		icon = generic_industry
		cost = 50
		days_remove = 30
		fire_only_once = yes
		allowed = {
			tag = PER
		}
		visible = {
			always = yes
		}
		available = {
			AFA = { exists = no }
			has_war = no
		}
		ai_will_do = {
			base = 50
		}
		complete_effect = {
		}
		remove_effect = {
		news_event = { id = Samsonnews.29 }
		transfer_state = 416
		transfer_state = 1326
		transfer_state = 913
		transfer_state = 912
		transfer_state = 916
		transfer_state = 410
		}
	}
}

BUK_UAR = {

	BUK_invade_jordan = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = BUK
		}
		available = {
			owns_state = 1032
			has_war = no
			has_global_flag = SOV_first_nato_war_victory
		}

		days_remove = 30
		
		cancel_if_not_visible = yes
		remove_effect = {
		add_ideas = BUK_avenging_saddam
		declare_war_on = {
			target = JOR
			type = annex_everything
		}
		declare_war_on = {
			target = JR2
			type = annex_everything
		}
		declare_war_on = {
			target = LEB
			type = annex_everything
		}
		every_state = {
				limit = {
				is_core_of = LEB
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = JOR
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = JR2
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = HEZ
			}
			add_core_of = BUK
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	BUK_invade_arabia = {

		cost = 50
		fire_only_once = yes
		visible = {
			tag = BUK
		}
		available = {
			OR = {
			owns_state = 553
			owns_state = 455
			}
			has_war = no
			has_global_flag = SOV_first_nato_war_victory
		}

		days_remove = 150
		
		cancel_if_not_visible = yes
		remove_effect = {
		declare_war_on = {
			target = ARR
			type = annex_everything
		}
		declare_war_on = {
			target = SAU
			type = annex_everything
		}
		declare_war_on = {
			target = ROC
			type = annex_everything
		}
		declare_war_on = {
			target = JAH
			type = annex_everything
		}
		declare_war_on = {
			target = KUW
			type = annex_everything
		}
		declare_war_on = {
			target = QAT
			type = annex_everything
		}
		declare_war_on = {
			target = UAE
			type = annex_everything
		}
		declare_war_on = {
			target = OMA
			type = annex_everything
		}
		declare_war_on = {
			target = YEM
			type = annex_everything
		}
		declare_war_on = {
			target = AAS
			type = annex_everything
		}
		every_state = {
				limit = {
				is_core_of = SAU
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = ARR
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = ROC
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = JAH
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = KUW
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = QAT
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = UAE
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = OMA
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = AAS
			}
			add_core_of = BUK
		}
		every_state = {
				limit = {
				is_core_of = YEM
			}
			add_core_of = BUK
		}
		transfer_state = 856
		}

		ai_will_do = {
			factor = 50
		}
	}
}