add_namespace = SAU_ciagou_maizhuangbei
add_namespace = SAU_ameishiyou_kaicai
add_namespace = SAU_mai_shiyou
add_namespace = SAU_neizhan_fankang
add_namespace = SAU_gongchan_shijian
add_namespace = SAU_lanxian_shijian
add_namespace = SAU_teshu_shijian
add_namespace = SAU_zhonglixian
add_namespace = SAU_xuancheng_aosiman
add_namespace = SAU_yihewan_beiduyin
################################################################################
##########################         特殊事件         ############################
###############################################################################
news_event = {
	id = SAU_teshu_shijian.1
	title = SAU_teshu_shijian.1.t
	desc = SAU_teshu_shijian.1.desc
	picture = GFX_news_event_shengdi_diushi
	major = no
	trigger = {
		tag = SAU
		is_subject = no
		NOT = {
			OR = {
				controls_province = 5037
				controls_province = 12758
			}
		}
	}
	option = {
		name = SAU_teshu_shijian.1.a
		set_country_flag = SAU_teshu_shijian_flag
		remove_country_leader_trait = {
			trait = SAU_liangshengdi_zhi_zhu
		}
	}
}

news_event = {
	id = SAU_teshu_shijian.2
	title = SAU_teshu_shijian.2.t
	desc = SAU_teshu_shijian.2.desc
	picture = GFX_news_event_shengdi_diushi
	major = no
	trigger = {
		tag = SAU
		is_subject = no
		controls_province = 5037
		controls_province = 12758
		has_country_flag = SAU_teshu_shijian_flag
	}
	option = {
		name = SAU_teshu_shijian.2.a
		add_country_leader_trait = {
			trait = SAU_liangshengdi_zhi_zhu
		}
		clr_country_flag = SAU_teshu_shijian_flag
	}
}

news_event = {
	id = SAU_teshu_shijian.3
	title = SAU_teshu_shijian.3.t
	desc = SAU_teshu_shijian.3.desc
	picture = GFX_news_event_generic_read_write
	major = yes
	fire_only_once = yes
	trigger = {
		tag = EGY
		date > 1936.4.20
		has_global_flag = wo_bushi_56_flag
		country_exists = EGY
		EGY = {
			has_government = neutrality
		}
	}
	option = {
		name = SAU_teshu_shijian.3.a
		kill_country_leader = yes
		create_country_leader = {
			name = aiji_King_Farouk_old
			picture = GFX_portrait_leader_EGY_aiji_King_Farouk_old
			expire = "1965.1.1"
			ideology = despotism
			traits = {
			}
		}
	}
}

news_event = {
	id = SAU_teshu_shijian.4
	title = SAU_teshu_shijian.4.t
	desc = SAU_teshu_shijian.4.desc
	picture = GFX_news_event_yuci_shenwang
	major = no
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.4.a
		add_country_leader_role = {
			promote_leader = yes
			character = "SAU_wangzuo_xuanzhi"
			country_leader = {
				ideology = despotism
				traits = {
					SAU_wangwei_kongxuan
				}
				expire = "1965.3.1.1"
			}
		}
	}
}

news_event = {
	id = SAU_teshu_shijian.10
	title = SAU_teshu_shijian.10.t
	desc = SAU_teshu_shijian.10.desc
	picture = GFX_news_event_003
	major = no
	trigger = {
		original_tag = SAU
		has_idea = SAU_xuancheng_aosiman_wenhao
		has_full_control_of_state = 797
	}
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.10.a
		remove_ideas = SAU_xuancheng_aosiman_wenhao
		add_stability = 0.1		#添加稳定度
		add_war_support = 0.1		#添加战争支持度
		add_political_power = 50		#添加政治点数
		army_experience = 10		#陆军经验
	}
}

news_event = {
	id = SAU_teshu_shijian.11
	title = SAU_teshu_shijian.11.t
	desc = SAU_teshu_shijian.11.desc
	picture = GFX_news_event_yihewan_shaohuiluoma
	major = no
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_teshu_shijian.11.a
		add_war_support = 0.1		#添加战争支持度
		add_political_power = 200		#添加政治点数
		army_experience = 100		#陆军经验
		2 = {
			add_dynamic_modifier = {
				modifier = SAU_ranshao_shengcheng_modifiers
				days = 120
			}
		}
		2 = {
			limit = {
				arms_factory > 0
			}
			damage_building = {
				type = arms_factory
				damage = 1
			}
		}
		2 = {
			limit = {
				industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 1
			}
		}
		every_country = {
			limit = {
				OR = {
					capital_scope = {
						is_on_continent = europe
					}
					capital_scope = {
						is_on_continent = north_america
					}
				}
				has_war_with = SAU
				has_capitulated = no
			}
			add_timed_idea = {
				idea = SAU_yihewan_ouzhoujingkong
				days = 90
			}
		}
		hidden_effect = {
			play_song = "Saudi_Arabia_14"
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.12
	title = SAU_teshu_shijian.12.t
	desc = SAU_teshu_shijian.12.desc
	picture = GFX_report_event_SAU_hajimofu_qingxi_shijian
	trigger = {
		tag = SOV
		SOV = {
			has_completed_focus = SOV_the_anti_soviet_trotskyist_center
			is_subject = no
			NOT = {
				has_completed_focus = SOV_the_left_opposition
			}
			NOT = {
				has_completed_focus = SOV_the_right_opposition
			}
			NOT = {
				has_completed_focus = SOV_beaten_but_not_defeated
			}
		}
		SAU = {
			has_completed_focus = Saudi_Arabia_yiben_shate_zhengtong
			is_subject = no
		}
	}
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.12.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 20
				has_opinion = {
					target = SAU
					value < 39
				}
			}
		}
		SAU = {
			country_event = {
				id = SAU_teshu_shijian.13
				days = 5
			}
		}
	}
	option = {
		name = SAU_teshu_shijian.12.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 50
				has_opinion = {
					target = SAU
					value > 39
				}
			}
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.13
	title = SAU_teshu_shijian.13.t
	desc = SAU_teshu_shijian.13.desc
	picture = GFX_report_event_SAU_hajimofu_qingxi_shijian
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.13.a
		ai_chance = {
			base = 1
		}
		SOV = {
			country_event = {
				id = SAU_teshu_shijian.14
				days = 5
			}
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.14
	title = SAU_teshu_shijian.14.t
	desc = SAU_teshu_shijian.14.desc
	picture = GFX_report_event_SAU_hajimofu_qingxi_shijian
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.14.a
		ai_chance = {
			base = 5
			modifier = {
				factor = 20
				has_opinion = {
					target = SAU
					value < 39
				}
			}
		}
		SAU = {
			country_event = {
				id = SAU_teshu_shijian.15
				days = 5
			}
		}
	}
	option = {
		name = SAU_teshu_shijian.14.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 20
				has_opinion = {
					target = SAU
					value < 39
				}
			}
		}
		SAU = {
			add_opinion_modifier = {
				target = SOV
				modifier = small_increase
			}
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.15
	title = SAU_teshu_shijian.15.t
	desc = SAU_teshu_shijian.15.desc
	picture = GFX_report_event_SAU_hajimofu_qingxi_shijian
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.15.a
		set_country_flag = SAU_hajimofu_bei_chujue_flag
		SAU = {
			send_embargo = SOV
			add_opinion_modifier = {
				target = SOV
				modifier = SAU_hajimofu_bei_qingxi
			}
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.16
	title = SAU_teshu_shijian.16.t
	desc = SAU_teshu_shijian.16.desc
	picture = GFX_report_event_SAU_event_jiejiu_saiyide_chenggong
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.16.a
		clr_global_flag = zhunbei_yigjiu_flag
		set_country_flag = SAU_said_i_nursi_flag
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = SAU_said_i_nursi
	}
}

news_event = {
	id = SAU_teshu_shijian.17
	title = SAU_teshu_shijian.17.t
	desc = SAU_teshu_shijian.17.desc
	picture = GFX_news_event_generic_parliament
	is_triggered_only = yes
	major = yes
	option = {
		name = SAU_teshu_shijian.17.a
		trigger = {
			original_tag = SAU
		}
	}
	option = {
		name = SAU_teshu_shijian.17.b
		trigger = {
			NOT = {
				original_tag = SAU
			}
			NOT = {
				has_war_with = FROM
			}
		}
	}
	option = {
		name = wtt_news.53.c
		trigger = {
			has_war_with = FROM
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.18
	title = SAU_teshu_shijian.18.t
	desc = SAU_teshu_shijian.18.desc
	picture = GFX_news_event_generic_parliament
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = SAU_teshu_shijian.18.a
		1007 = {
			add_resource = {
				type = oil
				amount = 5
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 1
			}
		}
		SAU = {
			give_resource_rights = {
				receiver = USA
				state = 859
			}
		}
		765 = {
			add_resource = {
				type = oil
				amount = 5
			}
		}
	}
}

################################################################################
##########################         研究合作         ############################
############################################################################### 
country_event = {
	id = SAU_teshu_shijian.5
	title = SAU_teshu_shijian.5.t
	desc = SAU_teshu_shijian.5.desc
	picture = GFX_report_event_physics_lab_01
	is_triggered_only = yes
	# Sure
	option = {
		name = SAU_teshu_shijian.5.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 0.5
				}
			}
			modifier = {
				factor = 100
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 5
				has_government = FROM
			}
			modifier = {
				factor = 0
				has_war_with = FROM
			}
		}
		FROM = {
			country_event = {
				id = SAU_teshu_shijian.6
				hours = 1
			}
		}
		effect_tooltip = {
			IF = {
				limit = {
					FROM = {
						has_completed_focus = Saudi_Arabia_lianhe_kaifa_xiangmu
					}
				}
				add_to_tech_sharing_group = SAU_SOV_tech_sharing_group
				FROM = {
					add_to_tech_sharing_group = SAU_SOV_tech_sharing_group
				}
			}
			IF = {
				limit = {
					FROM = {
						has_completed_focus = Saudi_Arabia_yu_yingguo_lianhe_yanjiu
					}
				}
				add_to_tech_sharing_group = SAU_ENG_tech_sharing_group
				FROM = {
					add_to_tech_sharing_group = SAU_ENG_tech_sharing_group
				}
			}
			IF = {
				limit = {
					FROM = {
						has_completed_focus = Saudi_Arabia_yisilan_hezuo_zuzhi
					}
				}
				add_to_tech_sharing_group = SAU_Islamic_tech_sharing
				FROM = {
					add_to_tech_sharing_group = SAU_Islamic_tech_sharing
				}
			}
		}
	}
	# Nope
	option = {
		name = SAU_teshu_shijian.5.b
		ai_chance = {
			base = 1
		}
		FROM = {
			country_event = {
				id = JUNO_brazil_events.122
				hours = 1
			}
		}
		effect_tooltip = {
			FROM = {
				add_cic = 1000
			}
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.6
	title = SAU_teshu_shijian.6.t
	desc = SAU_teshu_shijian.6.desc
	picture = GFX_report_event_physics_lab_01
	is_triggered_only = yes
	# Sure
	option = {
		name = SAU_teshu_shijian.6.a
		ai_chance = {
			base = 1
		}
		IF = {
			limit = {
				FROM = {
					has_completed_focus = Saudi_Arabia_lianhe_kaifa_xiangmu
				}
			}
			add_to_tech_sharing_group = SAU_SOV_tech_sharing_group
			FROM = {
				add_to_tech_sharing_group = SAU_SOV_tech_sharing_group
			}
		}
		IF = {
			limit = {
				FROM = {
					has_completed_focus = Saudi_Arabia_yu_yingguo_lianhe_yanjiu
				}
			}
			add_to_tech_sharing_group = SAU_ENG_tech_sharing_group
			FROM = {
				add_to_tech_sharing_group = SAU_ENG_tech_sharing_group
			}
		}
		IF = {
			limit = {
				FROM = {
					has_completed_focus = Saudi_Arabia_shate_meiguo_huanziyuan
				}
			}
			add_to_tech_sharing_group = SAU_Islamic_tech_sharing
			FROM = {
				add_to_tech_sharing_group = SAU_Islamic_tech_sharing
			}
		}
	}
}

################################################################################
##########################         互不侵犯条约         ############################
###############################################################################
country_event = {
	id = SAU_teshu_shijian.7
	title = SAU_teshu_shijian.7.t
	desc = SAU_teshu_shijian.7.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	option = {
		name = SAU_teshu_shijian.7.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 90
				has_opinion = {
					target = FROM
					value > 29
				}
			}
		}
		diplomatic_relation = {
			country = FROM
			relation = non_aggression_pact
			active = yes
		}
		FROM = {
			country_event = {
				id = SAU_teshu_shijian.8
				hours = 1
			}
		}
	}
	option = {
		#no
		name = SAU_teshu_shijian.7.b
		FROM = {
			country_event = {
				id = SAU_teshu_shijian.9
				hours = 1
			}
		}
	}
}

country_event = {
	id = SAU_teshu_shijian.8
	title = SAU_teshu_shijian.8.t
	desc = SAU_teshu_shijian.8.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	option = {
		name = SAU_teshu_shijian.8.a
	}
}

country_event = {
	id = SAU_teshu_shijian.9
	title = SAU_teshu_shijian.9.t
	desc = SAU_teshu_shijian.9.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes
	option = {
		name = SAU_teshu_shijian.9.a
	}
}

################################################################################
##########################         采购         ############################
###############################################################################
country_event = {
	id = SAU_ciagou_maizhuangbei.1
	title = SAU_ciagou_maizhuangbei.1.t
	desc = SAU_ciagou_maizhuangbei.1.desc
	picture = GFX_report_event_bul_artillery
	is_triggered_only = yes
	option = {
		#Artillery
		name = SAU_ciagou_maizhuangbei.1.a
		ai_chance = {
			base = 15
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = artillery_equipment
					ratio < 0.76
				}
			}
		}
		set_variable = {
			BUL_artillery_type = token:artillery_equipment
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.1.a_tt
	}
	option = {
		#Anti-Tank
		name = SAU_ciagou_maizhuangbei.1.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = anti_tank_equipment
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_artillery_seller = {
				has_tech = interwar_antitank
			}
		}
		set_variable = {
			BUL_artillery_type = token:anti_tank_equipment
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.1.b_tt
	}
}

#购买军用车辆
country_event = {
	id = SAU_ciagou_maizhuangbei.2
	title = SAU_ciagou_maizhuangbei.2.t
	desc = SAU_ciagou_maizhuangbei.2.desc
	picture = GFX_report_event_generic_truck
	is_triggered_only = yes
	option = {
		#Motorized
		name = SAU_ciagou_maizhuangbei.2.a
		ai_chance = {
			base = 15
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = motorized_equipment
					ratio < 0.76
				}
			}
		}
		set_variable = {
			BUL_vehicle_type = token:motorized_equipment
		}
		var:BUL_military_vehicles_seller = {
			set_country_flag = BUL_producing_motorized_for_bulgaria_flag
		}
		#Used for different amounts of equipment based on type
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.2.a_tt
	}
	option = {
		#Mechanized
		name = SAU_ciagou_maizhuangbei.2.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = mechanized_equipment
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_military_vehicles_seller = {
				has_tech = mechanised_infantry
			}
		}
		set_variable = {
			BUL_vehicle_type = token:mechanized_equipment
		}
		var:BUL_military_vehicles_seller = {
			set_country_flag = BUL_producing_mechanized_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.2.b_tt
	}
	option = {
		#Armored Cars
		name = SAU_ciagou_maizhuangbei.2.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = armored_car_equipment
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_military_vehicles_seller = {
				has_tech = armored_car1
			}
		}
		set_variable = {
			BUL_vehicle_type = token:armored_car_equipment
		}
		var:BUL_military_vehicles_seller = {
			set_country_flag = BUL_producing_armored_car_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.2.c_tt
	}
}

#购买坦克
country_event = {
	id = SAU_ciagou_maizhuangbei.3
	title = SAU_ciagou_maizhuangbei.3.t
	desc = SAU_ciagou_maizhuangbei.3.desc
	picture = GFX_report_event_tank_factory
	is_triggered_only = yes
	option = {
		#Light Tank
		name = SAU_ciagou_maizhuangbei.3.a
		ai_chance = {
			base = 15
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = light_tank_chassis
					ratio < 0.76
				}
			}
		}
		set_variable = {
			BUL_armor_type = token:light_tank_chassis
		}
		var:BUL_armor_seller = {
			set_country_flag = BUL_producing_light_armor_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.3.a_tt
	}
	option = {
		#Medium Tank
		name = SAU_ciagou_maizhuangbei.3.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = medium_tank_chassis
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_armor_seller = {
				OR = {
					has_tech = basic_medium_tank
					has_tech = basic_medium_tank_chassis
				}
			}
		}
		set_variable = {
			BUL_armor_type = token:medium_tank_chassis
		}
		var:BUL_armor_seller = {
			set_country_flag = BUL_producing_medium_armor_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.3.b_tt
	}
	option = {
		#Heavy Tank
		name = SAU_ciagou_maizhuangbei.3.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = heavy_tank_chassis
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_armor_seller = {
				has_tech = basic_heavy_tank
			}
		}
		set_variable = {
			BUL_armor_type = token:heavy_tank_chassis
		}
		var:BUL_armor_seller = {
			set_country_flag = BUL_producing_heavy_armor_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.3.c_tt
	}
}

#购买飞机
country_event = {
	id = SAU_ciagou_maizhuangbei.4
	title = SAU_ciagou_maizhuangbei.4.t
	desc = SAU_ciagou_maizhuangbei.4.desc
	picture = GFX_report_event_bul_aircraft_repairs
	is_triggered_only = yes
	option = {
		#Fighters
		name = SAU_ciagou_maizhuangbei.4.a
		ai_chance = {
			base = 15
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = small_plane_airframe
					ratio < 0.76
				}
			}
		}
		set_variable = {
			BUL_aircraft_type = token:small_plane_airframe
		}
		var:BUL_aircraft_seller = {
			set_country_flag = BUL_producing_fighters_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.4.a_tt
	}
	option = {
		#Naval Bombers
		name = SAU_ciagou_maizhuangbei.4.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = small_plane_naval_bomber_airframe
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_aircraft_seller = {
				has_tech = naval_bomber1				#this won't work for BBA, because we can not guarantee that the sender country has a naval bomber design
			}
		}
		set_variable = {
			BUL_aircraft_type = token:small_plane_naval_bomber_airframe
		}
		var:BUL_aircraft_seller = {
			set_country_flag = BUL_producing_naval_bombers_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.4.b_tt
	}
	option = {
		#Tactical Bombers
		name = SAU_ciagou_maizhuangbei.4.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				stockpile_ratio = {
					archetype = medium_plane_airframe
					ratio < 0.76
				}
			}
		}
		trigger = {
			var:BUL_aircraft_seller = {
				OR = {
					has_tech = early_bomber
					has_tech = iw_medium_airframe
				}
			}
		}
		set_variable = {
			BUL_aircraft_type = token:medium_plane_airframe
		}
		var:BUL_aircraft_seller = {
			set_country_flag = BUL_producing_tactical_bombers_for_bulgaria_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.4.c_tt
	}
}

#想要购买我们的船只
country_event = {
	id = SAU_ciagou_maizhuangbei.5
	title = SAU_ciagou_maizhuangbei.5.t
	desc = SAU_ciagou_maizhuangbei.5.desc
	picture = GFX_report_event_sailors_in_working_rig
	is_triggered_only = yes
	option = {
		#Accept
		name = SAU_ciagou_maizhuangbei.5.a
		ai_chance = {
			base = 99
			modifier = {
				factor = 0
				OR = {
					has_opinion = {
						target = ROOT
						value < 0
					}
					has_civil_war = yes
					has_capitulated = yes
					is_subject = yes
					surrender_progress > 0.4
					any_other_country = {
						is_major = yes
						has_war_with = PREV
					}
				}
			}
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.5.a_tt
		ROOT = {
			country_event = {
				id = SAU_ciagou_maizhuangbei.6
				days = 1
			}
		}
	}
	option = {
		#Reject
		name = SAU_ciagou_maizhuangbei.5.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 99
				has_war = yes
			}
		}
		ROOT = {
			country_event = {
				id = SAU_ciagou_maizhuangbei.7
				days = 1
			}
			set_country_flag = {
				flag = BUL_ships_purchase_rejected_flag
				value = 1
				days = 180
			}
		}
	}
}

#购买船舶 - FROM 已接受
country_event = {
	id = SAU_ciagou_maizhuangbei.6
	title = SAU_ciagou_maizhuangbei.6.t
	desc = SAU_ciagou_maizhuangbei.6.desc
	picture = GFX_report_event_sailors_in_working_rig
	is_triggered_only = yes
	option = {
		#3 Submarines
		name = SAU_ciagou_maizhuangbei.6.a
		ai_chance = {
			base = 15
		}
		trigger = {
			OR = {
				AND = {
					has_dlc = "Man the Guns"
					FROM = {
						has_tech = early_ship_hull_submarine
					}
				}
				AND = {
					NOT = {
						has_dlc = "Man the Guns"
					}
					FROM = {
						has_tech = early_submarine
					}
				}
			}
		}
		FROM = {
			set_country_flag = BUL_building_submarines_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.6.a_tt
	}
	option = {
		#2 Destroyers
		name = SAU_ciagou_maizhuangbei.6.b
		ai_chance = {
			base = 10
		}
		trigger = {
			OR = {
				AND = {
					has_dlc = "Man the Guns"
					FROM = {
						has_tech = early_ship_hull_light
					}
				}
				AND = {
					NOT = {
						has_dlc = "Man the Guns"
					}
					FROM = {
						has_tech = early_destroyer
					}
				}
			}
		}
		FROM = {
			set_country_flag = BUL_building_destroyers_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.6.b_tt
	}
	option = {
		#1 Light Cruiser
		name = SAU_ciagou_maizhuangbei.6.c
		ai_chance = {
			base = 5
		}
		trigger = {
			OR = {
				AND = {
					has_dlc = "Man the Guns"
					FROM = {
						has_tech = early_ship_hull_cruiser
					}
				}
				AND = {
					NOT = {
						has_dlc = "Man the Guns"
					}
					FROM = {
						has_tech = early_light_cruiser
					}
				}
			}
		}
		FROM = {
			set_country_flag = BUL_building_light_cruiser_flag
		}
		custom_effect_tooltip = SAU_ciagou_maizhuangbei.6.c_tt
	}
}

#购买船舶 - FROM 拒绝了我们的报价
country_event = {
	id = SAU_ciagou_maizhuangbei.7
	title = SAU_ciagou_maizhuangbei.7.t
	desc = SAU_ciagou_maizhuangbei.7.desc
	picture = GFX_report_event_sailors_in_working_rig
	is_triggered_only = yes
	option = {
		#Ok
		name = SAU_ciagou_maizhuangbei.7.a
	}
}

#购买舰船 - 潜艇准备就绪
country_event = {
	id = SAU_ciagou_maizhuangbei.8
	title = SAU_ciagou_maizhuangbei.8.t
	desc = SAU_ciagou_maizhuangbei.8.desc
	picture = GFX_report_event_ast_navy
	is_triggered_only = yes
	option = {
		#Ok
		name = lar_portugal_purchase_ships.4.a
		custom_effect_tooltip = lar_portugal_purchase_ships.4.a_tt
		hidden_effect = {
			hidden_effect = {
				add_manpower = 600
			}
			# 3 x 200MP/SS
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				if = {
					limit = {
						FROM.FROM = {
							has_tech = advanced_ship_hull_submarine
						}
					}
					FROM.FROM = {
						#LVL4
						create_equipment_variant = {
							name = "Slava class"
							type = ship_hull_submarine_4
							name_group = BUL_SS_HISTORICAL
							parent_version = 0
							modules = {
								fixed_ship_torpedo_slot = ship_torpedo_sub_1
								fixed_ship_engine_slot = sub_ship_engine_1
								rear_1_custom_slot = ship_torpedo_sub_1
								front_1_custom_slot = ship_torpedo_sub_1
							}
						}
					}
					create_ship = {
						type = ship_hull_submarine_4
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_4
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_4
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else_if = {
					#LVL3
					limit = {
						FROM.FROM = {
							has_tech = improved_ship_hull_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = ship_hull_submarine_3
							name_group = BUL_SS_HISTORICAL
							parent_version = 0
							modules = {
								fixed_ship_torpedo_slot = ship_torpedo_sub_1
								fixed_ship_engine_slot = sub_ship_engine_1
								rear_1_custom_slot = ship_torpedo_sub_1
							}
						}
					}
					create_ship = {
						type = ship_hull_submarine_3
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_3
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_3
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else_if = {
					#LVL2
					limit = {
						FROM.FROM = {
							has_tech = basic_ship_hull_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = ship_hull_submarine_2
							name_group = BUL_SS_HISTORICAL
							parent_version = 0
							modules = {
								fixed_ship_torpedo_slot = ship_torpedo_sub_1
								fixed_ship_engine_slot = sub_ship_engine_1
								rear_1_custom_slot = ship_torpedo_sub_1
							}
						}
					}
					create_ship = {
						type = ship_hull_submarine_2
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_2
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_2
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else_if = {
					#LVL1
					limit = {
						FROM.FROM = {
							has_tech = early_ship_hull_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = ship_hull_submarine_1
							name_group = BUL_SS_HISTORICAL
							parent_version = 0
							modules = {
								fixed_ship_torpedo_slot = ship_torpedo_sub_1
								fixed_ship_engine_slot = sub_ship_engine_1
							}
						}
					}
					create_ship = {
						type = ship_hull_submarine_1
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_1
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = ship_hull_submarine_1
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else = {
					#Fallback
					create_equipment_variant = {
						name = "Slava class"
						type = ship_hull_submarine_1
						name_group = BUL_SS_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_torpedo_slot = ship_torpedo_sub_1
							fixed_ship_engine_slot = sub_ship_engine_1
						}
					}
					create_ship = {
						type = ship_hull_submarine_1
						equipment_variant = "Slava class"
						creator = ROOT
					}
					create_ship = {
						type = ship_hull_submarine_1
						equipment_variant = "Slava class"
						creator = ROOT
					}
					create_ship = {
						type = ship_hull_submarine_1
						equipment_variant = "Slava class"
						creator = ROOT
					}
				}
			}
			else = {
				#NO MTG
				if = {
					#LVL4
					limit = {
						FROM.FROM = {
							has_tech = advanced_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = submarine_4
							upgrades = {
								ship_reliability_upgrade = 3
								sub_torpedo_upgrade = 3
								sub_stealth_upgrade = 3
								sub_engine_upgrade = 2
							}
						}
					}
					create_ship = {
						type = submarine_4
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_4
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_4
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else_if = {
					#LVL3
					limit = {
						FROM.FROM = {
							has_tech = improved_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = submarine_3
							upgrades = {
								ship_reliability_upgrade = 2
								sub_torpedo_upgrade = 3
								sub_stealth_upgrade = 2
								sub_engine_upgrade = 2
							}
						}
					}
					create_ship = {
						type = submarine_3
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_3
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_3
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else_if = {
					#LVL2
					limit = {
						FROM.FROM = {
							has_tech = basic_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = submarine_2
							upgrades = {
								ship_reliability_upgrade = 2
								sub_torpedo_upgrade = 2
								sub_stealth_upgrade = 2
								sub_engine_upgrade = 1
							}
						}
					}
					create_ship = {
						type = submarine_2
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_2
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_2
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else_if = {
					#LVL1
					limit = {
						FROM.FROM = {
							has_tech = early_submarine
						}
					}
					FROM.FROM = {
						create_equipment_variant = {
							name = "Slava class"
							type = submarine_1
							upgrades = {
								ship_reliability_upgrade = 1
								sub_torpedo_upgrade = 1
								sub_stealth_upgrade = 1
								sub_engine_upgrade = 0
							}
						}
					}
					create_ship = {
						type = submarine_1
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_1
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
					create_ship = {
						type = submarine_1
						equipment_variant = "Slava class"
						creator = FROM.FROM
					}
				}
				else = {
					#Fallback (assuming BUL has at least early tech)
					create_equipment_variant = {
						name = "Slava class"
						type = submarine_1
						upgrades = {
							ship_reliability_upgrade = 1
							sub_torpedo_upgrade = 1
							sub_stealth_upgrade = 1
							sub_engine_upgrade = 0
						}
					}
					create_ship = {
						type = submarine_1
						equipment_variant = "Slava class"
						creator = ROOT
					}
					create_ship = {
						type = submarine_1
						equipment_variant = "Slava class"
						creator = ROOT
					}
					create_ship = {
						type = submarine_1
						equipment_variant = "Slava class"
						creator = ROOT
					}
				}
			}
		}
	}
}

#购买舰船 - 驱逐舰已准备就绪
country_event = {
	id = SAU_ciagou_maizhuangbei.9
	title = SAU_ciagou_maizhuangbei.9.t
	desc = SAU_ciagou_maizhuangbei.9.desc
	picture = GFX_report_event_ast_navy
	is_triggered_only = yes
	option = {
		#Ok
		name = lar_portugal_purchase_ships.4.a
		custom_effect_tooltip = lar_portugal_purchase_ships.5.a_tt
		if = {
			limit = {
				has_dlc = "Man the Guns"
			}
			if = {
				#LVL 4
				limit = {
					FROM.FROM = {
						has_tech = advanced_ship_hull_light
					}
				}
				hidden_effect = {
					add_manpower = 1000
				}
				# 2 x 500MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = ship_hull_light_4
						name_group = BUL_DD_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = light_ship_engine_2
							fixed_ship_torpedo_slot = ship_torpedo_1
							mid_1_custom_slot = ship_mine_layer_1
							rear_1_custom_slot = ship_depth_charge_1
						}
					}
				}
				create_ship = {
					type = ship_hull_light_4
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = ship_hull_light_4
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 3
				limit = {
					FROM.FROM = {
						has_tech = improved_ship_hull_light
					}
				}
				hidden_effect = {
					add_manpower = 800
				}
				# 2 x 400MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = ship_hull_light_3
						name_group = BUL_DD_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = light_ship_engine_2
							fixed_ship_torpedo_slot = ship_torpedo_1
							mid_1_custom_slot = ship_mine_layer_1
							rear_1_custom_slot = ship_depth_charge_1
						}
					}
				}
				create_ship = {
					type = ship_hull_light_3
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = ship_hull_light_3
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 2
				limit = {
					FROM.FROM = {
						has_tech = basic_ship_hull_light
					}
				}
				hidden_effect = {
					add_manpower = 650
				}
				# 2 x 325MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = ship_hull_light_2
						name_group = BUL_DD_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = light_ship_engine_2
							fixed_ship_torpedo_slot = ship_torpedo_1
							mid_1_custom_slot = ship_mine_layer_1
							rear_1_custom_slot = ship_depth_charge_1
						}
					}
				}
				create_ship = {
					type = ship_hull_light_2
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = ship_hull_light_2
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 1
				limit = {
					FROM.FROM = {
						has_tech = early_ship_hull_light
					}
				}
				hidden_effect = {
					add_manpower = 500
				}
				# 2 x 250MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = ship_hull_light_1
						name_group = BUL_DD_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_battery_1
							fixed_ship_anti_air_slot = ship_anti_air_1
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = light_ship_engine_2
							fixed_ship_torpedo_slot = ship_torpedo_1
							mid_1_custom_slot = ship_mine_layer_1
							rear_1_custom_slot = ship_depth_charge_1
						}
					}
				}
				create_ship = {
					type = ship_hull_light_1
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = ship_hull_light_1
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else = {
				#Fallback (assuming BUL has at least early tech)
				hidden_effect = {
					add_manpower = 500
				}
				# 2 x 250MP/DD
				create_equipment_variant = {
					name = "Audacious class"
					type = ship_hull_light_1
					name_group = BUL_DD_HISTORICAL
					parent_version = 0
					modules = {
						fixed_ship_battery_slot = ship_light_battery_1
						fixed_ship_anti_air_slot = ship_anti_air_1
						fixed_ship_fire_control_system_slot = ship_fire_control_system_0
						fixed_ship_radar_slot = empty
						fixed_ship_engine_slot = light_ship_engine_2
						fixed_ship_torpedo_slot = ship_torpedo_1
						mid_1_custom_slot = ship_mine_layer_1
						rear_1_custom_slot = ship_depth_charge_1
					}
				}
				create_ship = {
					type = ship_hull_light_1
					equipment_variant = "Audacious class"
					creator = ROOT
				}
				create_ship = {
					type = ship_hull_light_1
					equipment_variant = "Audacious class"
					creator = ROOT
				}
			}
		}
		else = {
			#NO MTG
			if = {
				#LVL 4
				limit = {
					FROM.FROM = {
						has_tech = advanced_destroyer
					}
				}
				hidden_effect = {
					add_manpower = 1000
				}
				# 2 x 500MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = destroyer_4
						upgrades = {
							ship_torpedo_upgrade = 4
							destroyer_engine_upgrade = 2
							ship_ASW_upgrade = 3
							ship_anti_air_upgrade = 3
						}
					}
				}
				create_ship = {
					type = destroyer_4
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = destroyer_4
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 3
				limit = {
					FROM.FROM = {
						has_tech = improved_destroyer
					}
				}
				hidden_effect = {
					add_manpower = 800
				}
				# 2 x 400MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = destroyer_3
						upgrades = {
							ship_torpedo_upgrade = 3
							destroyer_engine_upgrade = 2
							ship_ASW_upgrade = 2
							ship_anti_air_upgrade = 3
						}
					}
				}
				create_ship = {
					type = destroyer_3
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = destroyer_3
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 2
				limit = {
					FROM.FROM = {
						has_tech = basic_destroyer
					}
				}
				hidden_effect = {
					add_manpower = 650
				}
				# 2 x 325MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = destroyer_2
						upgrades = {
							ship_torpedo_upgrade = 2
							destroyer_engine_upgrade = 1
							ship_ASW_upgrade = 2
							ship_anti_air_upgrade = 3
						}
					}
				}
				create_ship = {
					type = destroyer_2
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = destroyer_2
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 1
				limit = {
					FROM.FROM = {
						has_tech = early_destroyer
					}
				}
				hidden_effect = {
					add_manpower = 500
				}
				# 2 x 250MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = destroyer_1
						upgrades = {
							ship_torpedo_upgrade = 1
							destroyer_engine_upgrade = 1
							ship_ASW_upgrade = 2
							ship_anti_air_upgrade = 2
						}
					}
				}
				create_ship = {
					type = destroyer_1
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
				create_ship = {
					type = destroyer_1
					equipment_variant = "Audacious class"
					creator = FROM.FROM
				}
			}
			else = {
				#Fallback (assuming BUL has at least early tech)			
				hidden_effect = {
					add_manpower = 500
				}
				# 2 x 250MP/DD
				FROM.FROM = {
					create_equipment_variant = {
						name = "Audacious class"
						type = destroyer_1
						upgrades = {
							ship_torpedo_upgrade = 1
							destroyer_engine_upgrade = 1
							ship_ASW_upgrade = 2
							ship_anti_air_upgrade = 2
						}
					}
				}
				create_ship = {
					type = destroyer_1
					equipment_variant = "Audacious class"
					creator = ROOT
				}
				create_ship = {
					type = destroyer_1
					equipment_variant = "Audacious class"
					creator = ROOT
				}
			}
		}
	}
}

#购买舰船 - 轻型巡洋舰准备就绪
country_event = {
	id = SAU_ciagou_maizhuangbei.10
	title = SAU_ciagou_maizhuangbei.10.t
	desc = SAU_ciagou_maizhuangbei.10.desc
	picture = GFX_report_event_ast_navy
	is_triggered_only = yes
	option = {
		#Ok
		name = lar_portugal_purchase_ships.4.a
		custom_effect_tooltip = lar_portugal_purchase_ships.6.a_tt
		if = {
			limit = {
				has_dlc = "Man the Guns"
			}
			if = {
				#LVL 4
				limit = {
					FROM.FROM = {
						has_tech = advanced_ship_hull_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 1400
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = ship_hull_cruiser_4
						name_group = BUL_CL_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_medium_battery_2
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_2
							fixed_ship_armor_slot = empty
							front_1_custom_slot = ship_anti_air_1
							mid_1_custom_slot = ship_torpedo_1
							mid_2_custom_slot = ship_airplane_launcher_1
							rear_1_custom_slot = ship_light_medium_battery_2
						}
					}
				}
				create_ship = {
					type = ship_hull_cruiser_4
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 3
				limit = {
					FROM.FROM = {
						has_tech = improved_ship_hull_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 1200
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = ship_hull_cruiser_3
						name_group = BUL_CL_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_medium_battery_2
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_2
							fixed_ship_armor_slot = empty
							front_1_custom_slot = ship_anti_air_1
							mid_1_custom_slot = ship_torpedo_1
							mid_2_custom_slot = ship_airplane_launcher_1
							rear_1_custom_slot = ship_light_medium_battery_2
						}
					}
				}
				create_ship = {
					type = ship_hull_cruiser_3
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 2
				limit = {
					FROM.FROM = {
						has_tech = basic_ship_hull_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 800
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = ship_hull_cruiser_2
						name_group = BUL_CL_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_medium_battery_2
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_2
							fixed_ship_armor_slot = empty
							front_1_custom_slot = ship_anti_air_1
							mid_1_custom_slot = ship_torpedo_1
							mid_2_custom_slot = ship_airplane_launcher_1
							rear_1_custom_slot = ship_light_medium_battery_2
						}
					}
				}
				create_ship = {
					type = ship_hull_cruiser_2
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 1
				limit = {
					FROM.FROM = {
						has_tech = early_ship_hull_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 600
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = ship_hull_cruiser_1
						name_group = BUL_CL_HISTORICAL
						parent_version = 0
						modules = {
							fixed_ship_battery_slot = ship_light_medium_battery_2
							fixed_ship_anti_air_slot = ship_anti_air_2
							fixed_ship_fire_control_system_slot = ship_fire_control_system_0
							fixed_ship_radar_slot = empty
							fixed_ship_engine_slot = cruiser_ship_engine_2
							fixed_ship_armor_slot = empty
							mid_1_custom_slot = ship_torpedo_1
							mid_2_custom_slot = ship_airplane_launcher_1
							rear_1_custom_slot = ship_light_medium_battery_2
						}
					}
				}
				create_ship = {
					type = ship_hull_cruiser_1
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else = {
				#Fallback (assuming BUL has at least early tech)
				hidden_effect = {
					add_manpower = 600
				}
				create_equipment_variant = {
					name = "Sofia class"
					type = ship_hull_cruiser_1
					name_group = BUL_CL_HISTORICAL
					parent_version = 0
					modules = {
						fixed_ship_battery_slot = ship_light_medium_battery_2
						fixed_ship_anti_air_slot = ship_anti_air_2
						fixed_ship_fire_control_system_slot = ship_fire_control_system_0
						fixed_ship_radar_slot = empty
						fixed_ship_engine_slot = cruiser_ship_engine_2
						fixed_ship_armor_slot = empty
						mid_1_custom_slot = ship_torpedo_1
						mid_2_custom_slot = ship_airplane_launcher_1
						rear_1_custom_slot = ship_light_medium_battery_2
					}
				}
				create_ship = {
					type = ship_hull_cruiser_1
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
		}
		else = {
			#NO MTG
			if = {
				#LVL 4
				limit = {
					FROM.FROM = {
						has_tech = advanced_light_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 1140
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = light_cruiser_4
						upgrades = {
							ship_reliability_upgrade = 4
							ship_engine_upgrade = 3
							ship_gun_upgrade = 4
							ship_anti_air_upgrade = 3
						}
					}
				}
				create_ship = {
					type = light_cruiser_4
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 3
				limit = {
					FROM.FROM = {
						has_tech = improved_light_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 960
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = light_cruiser_3
						upgrades = {
							ship_reliability_upgrade = 3
							ship_engine_upgrade = 2
							ship_gun_upgrade = 3
							ship_anti_air_upgrade = 3
						}
					}
				}
				create_ship = {
					type = light_cruiser_3
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 2
				limit = {
					FROM.FROM = {
						has_tech = basic_light_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 800
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = light_cruiser_2
						upgrades = {
							ship_reliability_upgrade = 2
							ship_engine_upgrade = 2
							ship_gun_upgrade = 2
							ship_anti_air_upgrade = 2
						}
					}
				}
				create_ship = {
					type = light_cruiser_2
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else_if = {
				#LVL 1
				limit = {
					FROM.FROM = {
						has_tech = early_light_cruiser
					}
				}
				hidden_effect = {
					add_manpower = 600
				}
				FROM.FROM = {
					create_equipment_variant = {
						name = "Sofia class"
						type = light_cruiser_1
						upgrades = {
							ship_reliability_upgrade = 2
							ship_engine_upgrade = 2
							ship_gun_upgrade = 1
							ship_anti_air_upgrade = 1
						}
					}
				}
				create_ship = {
					type = light_cruiser_1
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
			else = {
				#Fallback (assuming BUL has at least early tech)
				hidden_effect = {
					add_manpower = 600
				}
				create_equipment_variant = {
					name = "Sofia class"
					type = light_cruiser_1
					upgrades = {
						ship_reliability_upgrade = 2
						ship_engine_upgrade = 2
						ship_gun_upgrade = 1
						ship_anti_air_upgrade = 1
					}
				}
				create_ship = {
					type = light_cruiser_1
					equipment_variant = "Sofia class"
					creator = FROM.FROM
				}
			}
		}
	}
}

country_event = {
	id = SAU_ciagou_maizhuangbei.11
	title = SAU_ciagou_maizhuangbei.11.t
	desc = SAU_ciagou_maizhuangbei.11.desc
	is_triggered_only = yes
	picture = GFX_report_event_merchant_ship_04
	# Yes
	option = {
		name = SAU_ciagou_maizhuangbei.11.a
		ai_chance = {
			base = 0
			modifier = {
				add = 50
				is_in_faction_with = FROM
			}
			modifier = {
				add = 50
				has_same_ideology = yes
			}
			modifier = {
				add = 10
				has_opinion = {
					target = FROM
					value > 10
				}
			}
			modifier = {
				add = 20
				has_opinion = {
					target = FROM
					value > 40
				}
			}
			modifier = {
				add = 30
				has_opinion = {
					target = FROM
					value > 80
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_war_with = FROM
					has_civil_war = yes
					has_capitulated = yes
					has_opinion = {
						target = FROM
						value < 0
					}
				}
			}
		}
		add_offsite_building = {
			type = industrial_complex
			level = 1
		}
		FROM = {
			country_event = {
				id = SAU_ciagou_maizhuangbei.12
				days = 1
			}
		}
	}
	# No
	option = {
		name = SAU_ciagou_maizhuangbei.11.b
		ai_chance = {
			base = 20
		}
		FROM = {
			country_event = {
				id = SAU_ciagou_maizhuangbei.13
				days = 1
			}
		}
	}
}

country_event = {
	id = SAU_ciagou_maizhuangbei.12
	title = SAU_ciagou_maizhuangbei.12.t
	desc = SAU_ciagou_maizhuangbei.12.desc
	is_triggered_only = yes
	picture = GFX_report_event_ast_navy
	option = {
		name = SAU_ciagou_maizhuangbei.12.a
		ai_chance = {
			base = 5
		}
		SMB_get_dreadnoughts_from_country = yes
	}
}

country_event = {
	id = SAU_ciagou_maizhuangbei.13
	title = SAU_ciagou_maizhuangbei.13.t
	desc = SAU_ciagou_maizhuangbei.13.desc
	is_triggered_only = yes
	picture = GFX_report_event_ast_navy
	option = {
		name = SAU_ciagou_maizhuangbei.13.a
		ai_chance = {
			base = 5
		}
		FROM = {
			clr_country_flag = negotiating_dreadnought_purchase_flag@ROOT
		}
	}
}

################################################################################
##########################         阿美石油         ############################
###############################################################################
country_event = {
	id = SAU_ameishiyou_kaicai.1
	title = SAU_ameishiyou_kaicai.1.t
	desc = SAU_ameishiyou_kaicai.1.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	trigger = {
		tag = SAU
		is_subject = no
		controls_province = 12702
		date > 1936.3.1
	}
	option = {
		name = SAU_ameishiyou_kaicai.1.a
		ai_chance = {
			base = 3
		}
		add_political_power = -5
		add_dynamic_modifier = {
			modifier = jialifuniya_alabo_shiyougongsi
		}
		add_to_variable = {
			SAU_shate_amei_1 = 0.05
			tooltip = consumer_goods_factor_tt
		}
		country_event = {
			id = SAU_ameishiyou_kaicai.2
			days = 70
		}
		complete_national_focus = Saudi_Arabia_gongye_amei_shiyou_tance
		add_ideas = SAU_shiyou_maoyi_xiuzheng
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.2
	title = SAU_ameishiyou_kaicai.2.t
	desc = SAU_ameishiyou_kaicai.2.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.2.a
		ai_chance = {
			base = 3
		}
		add_political_power = -5
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = 0.05
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
			add_to_variable = {
				SAU_shate_amei_2 = 0.1
				tooltip = political_power_factor_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 3
			}
		}
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.3
				days = 60
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.3
	title = SAU_ameishiyou_kaicai.3.t
	desc = SAU_ameishiyou_kaicai.3.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.3.a
		ai_chance = {
			base = 3
		}
		add_political_power = -5
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = 0.05
				tooltip = consumer_goods_factor_tt
			}
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 1
			}
		}
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.4
				days = 70
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.4
	title = SAU_ameishiyou_kaicai.4.t
	desc = SAU_ameishiyou_kaicai.4.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.4.a
		ai_chance = {
			base = 3
		}
		add_political_power = -5
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = 0.05
				tooltip = consumer_goods_factor_tt
			}
		}
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.5
				days = 60
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.5
	title = SAU_ameishiyou_kaicai.5.t
	desc = SAU_ameishiyou_kaicai.5.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.5.a
		ai_chance = {
			base = 3
		}
		add_political_power = -5
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = 0.05
				tooltip = consumer_goods_factor_tt
			}
		}
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.6
				days = 50
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.6
	title = SAU_ameishiyou_kaicai.6.t
	desc = SAU_ameishiyou_kaicai.6.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.6.a
		ai_chance = {
			base = 3
		}
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = 0.05
				tooltip = consumer_goods_factor_tt
			}
		}
		add_political_power = -5
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.7
				days = 70
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.7
	title = SAU_ameishiyou_kaicai.7.t
	desc = SAU_ameishiyou_kaicai.7.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.7.a
		ai_chance = {
			base = 3
		}
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_1 = 0.05
				tooltip = consumer_goods_factor_tt
			}
		}
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.8
				days = 100
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.8
	title = SAU_ameishiyou_kaicai.8.t
	desc = SAU_ameishiyou_kaicai.8.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.8.a
		ai_chance = {
			base = 3
		}
		add_political_power = 50
		hidden_effect = {
			country_event = {
				id = SAU_ameishiyou_kaicai.9
				days = 10
			}
			complete_national_focus = Saudi_Arabia_gongye_shiyou_one
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.9
	title = SAU_ameishiyou_kaicai.9.t
	desc = SAU_ameishiyou_kaicai.9.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.9.a
		ai_chance = {
			base = 3
		}
		add_political_power = 100
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 2
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 20
			}
		}
		hidden_effect = {
			complete_national_focus = Saudi_Arabia_gongye_shiyou_two
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.10
	title = SAU_ameishiyou_kaicai.10.t
	desc = SAU_ameishiyou_kaicai.10.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.10.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 10
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_10_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_13_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.13
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.11
	title = SAU_ameishiyou_kaicai.11.t
	desc = SAU_ameishiyou_kaicai.11.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.11.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 4
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 40
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_11_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_10_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_13_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.13
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.12
	title = SAU_ameishiyou_kaicai.12.t
	desc = SAU_ameishiyou_kaicai.12.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.12.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 10
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_12_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_10_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_13_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.13
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.13
	title = SAU_ameishiyou_kaicai.13.t
	desc = SAU_ameishiyou_kaicai.13.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.13.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 10
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_13_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_10_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.14
	title = SAU_ameishiyou_kaicai.14.t
	desc = SAU_ameishiyou_kaicai.14.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.14.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 10
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_14_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_10_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.15
	title = SAU_ameishiyou_kaicai.15.t
	desc = SAU_ameishiyou_kaicai.15.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.15.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 3
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 30
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_15_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_10_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.16
	title = SAU_ameishiyou_kaicai.16.t
	desc = SAU_ameishiyou_kaicai.16.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.16.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 5
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 50
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_16_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				15 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_17_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.17
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.17
	title = SAU_ameishiyou_kaicai.17.t
	desc = SAU_ameishiyou_kaicai.17.desc
	picture = GFX_report_event_SAU_shiyou_kaicai
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.17.a
		ai_chance = {
			base = 3
		}
		add_political_power = 120
		hidden_effect = {
			complete_national_focus = Saudi_Arabia_gongye_shiyou_three
			set_country_flag = zhege_youtian_kaicai_guole_17_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_11_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.10
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_12_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.11
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_13_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.12
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_14_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.14
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_15_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.15
						days = 100
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_16_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.16
						days = 100
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.18
	title = SAU_ameishiyou_kaicai.18.t
	desc = SAU_ameishiyou_kaicai.18.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.18.a
		ai_chance = {
			base = 3
		}
		add_political_power = -30
		hidden_effect = {
			random_list = {
				10 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_19_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.19
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_20_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.20
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_21_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.21
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_22_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.22
						days = 180
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.19
	title = SAU_ameishiyou_kaicai.19.t
	desc = SAU_ameishiyou_kaicai.19.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.19.a
		ai_chance = {
			base = 3
		}
		add_political_power = 90
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 13
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 130
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_19_flag
			random_list = {
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_20_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.20
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_21_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.21
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_22_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.22
						days = 180
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.20
	title = SAU_ameishiyou_kaicai.20.t
	desc = SAU_ameishiyou_kaicai.20.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.20.a
		ai_chance = {
			base = 3
		}
		add_political_power = 10
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 1
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 6
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_20_flag
			random_list = {
				10 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_19_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.19
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_21_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.21
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_22_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.22
						days = 180
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.21
	title = SAU_ameishiyou_kaicai.21.t
	desc = SAU_ameishiyou_kaicai.21.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.21.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 4
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 40
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_21_flag
			random_list = {
				10 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_19_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.19
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_20_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.20
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_22_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.22
						days = 180
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.22
	title = SAU_ameishiyou_kaicai.22.t
	desc = SAU_ameishiyou_kaicai.22.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.22.a
		ai_chance = {
			base = 3
		}
		add_political_power = 30
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			custom_effect_tooltip = modify_jialifuniya_alabo_shiyougongsi
			add_to_variable = {
				SAU_shate_amei_4 = 5
				tooltip = country_resource_oil_tt
			}
		}
		859 = {
			add_resource = {
				type = oil
				amount = 50
			}
		}
		hidden_effect = {
			set_country_flag = zhege_youtian_kaicai_guole_22_flag
			random_list = {
				10 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_19_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.19
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_20_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.20
						days = 180
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_country_flag = zhege_youtian_kaicai_guole_21_flag
					}
					country_event = {
						id = SAU_ameishiyou_kaicai.21
						days = 180
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.23
	title = SAU_ameishiyou_kaicai.23.t
	desc = SAU_ameishiyou_kaicai.23.desc
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.23.a
		add_political_power = -25
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				FROM = {
					has_government = ROOT
				}
			}
			modifier = {
				factor = 0.1
				FROM = {
					is_enemy_ideology = yes
				}
			}
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.23.b
		add_opinion_modifier = {
			target = FROM
			modifier = embargo
		}
		FROM = {
			send_embargo = ROOT
			custom_effect_tooltip = embargo_relation_tt
			country_event = {
				days = 1
				id = SAU_ameishiyou_kaicai.24
			}
		}
		ai_chance = {
			base = 80
			modifier = {
				factor = 0.5
				has_war = yes
			}
			modifier = {
				factor = 0
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.23.c
		add_stability = -0.1
		add_war_support = -0.1
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
		add_opinion_modifier = {
			target = FROM
			modifier = embargo
		}
		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = embargo
			}
			country_event = {
				days = 1
				id = SAU_ameishiyou_kaicai.24
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_stability < 0.4
			}
			modifier = {
				factor = 0
				has_war_support < 0.4
			}
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.24
	title = SAU_ameishiyou_kaicai.24.t
	desc = SAU_ameishiyou_kaicai.24.desc
	picture = GFX_report_event_merchant_ship_01
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.24.a
		trigger = {
			NOT = {
				has_completed_focus = Saudi_Arabia_haximu_zhengtong_halifa
			}
		}
		ai_chance = {
			base = 20
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.24.b
		ai_chance = {
			base = 20
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.5
				tag = USA
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0.5
				has_political_power < 700
			}
		}
		add_political_power = -400
		every_country = {
			limit = {
				tag = ENG
				NOT = {
					has_war_with = ROOT
				}
				NOT = {
					is_subject_of = ROOT
				}
			}
			country_event = {
				days = 1
				id = SAU_ameishiyou_kaicai.25
			}
		}
		every_country = {
			limit = {
				tag = USA
				NOT = {
					has_war_with = ROOT
				}
				NOT = {
					is_subject_of = ROOT
				}
			}
			country_event = {
				days = 1
				id = SAU_ameishiyou_kaicai.25
			}
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.25
	title = SAU_ameishiyou_kaicai.25.t
	desc = SAU_ameishiyou_kaicai.25.desc
	picture = GFX_report_event_FDR_speech
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.25.a
		if = {
			limit = {
				has_opinion_modifier = embargo
			}
			remove_opinion_modifier = {
				target = FROM
				modifier = embargo
			}
			FROM = {
				remove_opinion_modifier = {
					target = ROOT
					modifier = embargo
				}
			}
		}
		add_political_power = 400
		ai_chance = {
			base = 80
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.25.b
		trigger = {
			has_opinion_modifier = embargo
		}
		add_political_power = -25
		ai_chance = {
			base = 20
			modifier = {
				factor = 0.1
				has_war = yes
			}
			modifier = {
				factor = 0.5
				tag = USA
				is_historical_focus_on = yes
			}
		}
	}
}

###############################################################################
##########################         五年计划         ############################
###############################################################################
country_event = {
	id = SAU_ameishiyou_kaicai.26
	title = SAU_ameishiyou_kaicai.26.t
	desc = SAU_ameishiyou_kaicai.26.desc
	picture = GFX_report_event_generic_factory
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.26.a
		ai_chance = {
			base = 3
		}
		add_dynamic_modifier = {
			modifier = SAU_wunian_jihua
		}
		add_to_variable = {
			SAU_gongye_1 = 0.1
			tooltip = production_speed_arms_factory_factor_tt
		}
		add_to_variable = {
			SAU_gongye_2 = -0.1
			tooltip = production_speed_industrial_complex_factor_tt
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.26.b
		ai_chance = {
			base = 3
		}
		add_dynamic_modifier = {
			modifier = SAU_wunian_jihua
		}
		add_to_variable = {
			SAU_gongye_1 = -0.1
			tooltip = production_speed_arms_factory_factor_tt
		}
		add_to_variable = {
			SAU_gongye_2 = 0.1
			tooltip = production_speed_industrial_complex_factor_tt
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.27
	title = SAU_ameishiyou_kaicai.27.t
	desc = SAU_ameishiyou_kaicai.27.desc
	picture = GFX_report_event_generic_factory
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.27.a
		ai_chance = {
			base = 3
		}
		add_dynamic_modifier = {
			modifier = SAU_wunian_jihua
		}
		add_to_variable = {
			SAU_gongye_1 = 0.1
			tooltip = production_speed_arms_factory_factor_tt
		}
		add_to_variable = {
			SAU_gongye_2 = -0.1
			tooltip = production_speed_industrial_complex_factor_tt
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.27.b
		ai_chance = {
			base = 3
		}
		add_dynamic_modifier = {
			modifier = SAU_wunian_jihua
		}
		add_to_variable = {
			SAU_gongye_1 = -0.1
			tooltip = production_speed_arms_factory_factor_tt
		}
		add_to_variable = {
			SAU_gongye_2 = 0.1
			tooltip = production_speed_industrial_complex_factor_tt
		}
	}
}

country_event = {
	id = SAU_ameishiyou_kaicai.28
	title = SAU_ameishiyou_kaicai.28.t
	desc = SAU_ameishiyou_kaicai.28.desc
	picture = GFX_report_event_generic_factory
	is_triggered_only = yes
	option = {
		name = SAU_ameishiyou_kaicai.28.a
		ai_chance = {
			base = 10
		}
		set_country_flag = SAU_chengxin_weizhu_flag
		give_resource_rights = {
			receiver = USA
			state = 859
		}
	}
	option = {
		name = SAU_ameishiyou_kaicai.28.b
		ai_chance = {
			base = 3
			modifier = {
				SAU = {
					is_ai = yes
				}
				factor = 0
			}
		}
		if = {
			limit = {
				has_dynamic_modifier = {
					modifier = jialifuniya_alabo_shiyougongsi
				}
			}
			remove_dynamic_modifier = {
				modifier = jialifuniya_alabo_shiyougongsi
			}
		}
		every_country = {
			limit = {
				OR = {
					tag = ENG
					tag = USA
					is_in_faction_with = ENG
				}
				NOT = {
					has_war_with = ROOT
				}
				NOT = {
					is_subject_of = ROOT
				}
			}
			add_opinion_modifier = {
				target = SAU
				modifier = sanctions
			}
			country_event = {
				days = 1
				id = SAU_ameishiyou_kaicai.23
			}
			custom_effect_tooltip = tooltip_mexico_they_may_declare_war
		}
	}
}

################################################################################
##########################         卖石油         ############################  
###############################################################################
country_event = {
	id = SAU_mai_shiyou.1
	title = SAU_mai_shiyou.1.t
	desc = SAU_mai_shiyou.1.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_mai_shiyou.1.a
		set_country_flag = FROM_zhunbei_goumai_shiyou_flag
		SAU = {
			country_event = SAU_mai_shiyou.2
		}
		hidden_effect = {
			set_country_flag = SAU_mai_shiyou_flag
		}
		ai_chance = {
			base = 1
			modifier = {
				tag = GER
				has_fuel < 350000
				factor = 5
			}
			modifier = {
				tag = ITA
				has_fuel < 200000
				factor = 5
			}
			modifier = {
				tag = ENG
				has_fuel < 300000
				factor = 5
			}
			modifier = {
				tag = SOV
				has_fuel < 400000
				factor = 5
			}
			modifier = {
				tag = FRA
				has_fuel < 250000
				factor = 5
			}
			modifier = {
				tag = USA
				has_fuel < 150000
				factor = 5
			}
			modifier = {
				tag = JAP
				has_fuel < 400000
				factor = 5
			}
		}
	}
	option = {
		name = SAU_mai_shiyou.1.b
		ai_chance = {
			base = 1
		}
		SAU = {
			country_event = SAU_mai_shiyou.3
		}
	}
}

country_event = {
	id = SAU_mai_shiyou.2
	title = SAU_mai_shiyou.2.t
	desc = SAU_mai_shiyou.2.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_mai_shiyou.2.a
		if = {
			limit = {
				FROM = {
					tag = GER
				}
			}
			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
			FRA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
		}
		if = {
			limit = {
				FROM = {
					tag = ITA
				}
			}
			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
			FRA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
		}
		if = {
			limit = {
				FROM = {
					tag = JAP
					has_added_tension_amount > 0.1
					VIN = {
						all_core_state = {
							is_fully_controlled_by = JAP
						}
					}
				}
			}
			ENG = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
			USA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
			FRA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
		}
		if = {
			limit = {
				FROM = {
					tag = ENG
				}
			}
			GER = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
			ITA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
		}
		if = {
			limit = {
				FROM = {
					tag = FRA
				}
			}
			GER = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
			ITA = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
		}
		if = {
			limit = {
				FROM = {
					tag = SOV
				}
				NOT = {
					AND = {
						GER = {
							has_government = communism
						}
						SOV = {
							has_government = communism
						}
					}
				}
			}
			GER = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
		}
		if = {
			limit = {
				FROM = {
					tag = USA
				}
			}
			JAP = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_1
				}
			}
			SOV = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
			GER = {
				add_opinion_modifier = {
					target = ROOT
					modifier = SAU_xiaoshou_shiyou_2
				}
			}
		}
	}
}

country_event = {
	id = SAU_mai_shiyou.3
	title = SAU_mai_shiyou.3.t
	desc = SAU_mai_shiyou.3.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_mai_shiyou.3.a
		hidden_effect = {
			FROM = {
				set_country_flag = {
					flag = SAU_xiang_deguo_chushoushiyou_1_flag
					days = 90
				}
			}
		}
	}
}

country_event = {
	id = SAU_mai_shiyou.4
	title = SAU_mai_shiyou.4.t
	desc = SAU_mai_shiyou.4.desc
	picture = GFX_report_event_SAU_shiyou_kaicai_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_mai_shiyou.4.a
	}
}

country_event = {
	#Iran sells oil 
	id = SAU_mai_shiyou.5
	title = SAU_mai_shiyou.5.t
	desc = SAU_mai_shiyou.5.desc
	picture = GFX_report_event_generic_stock_traders
	#fire_only_once = yes
	is_triggered_only = yes
	option = {
		#Accept
		name = SAU_mai_shiyou.5.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 24
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 49
				}
			}
			modifier = {
				factor = 2
				FROM = {
					is_major = yes
				}
			}
		}
		effect_tooltip = {
			ROOT = {
				give_guarantee = FROM
			}
			FROM = {
				give_resource_rights = {
					receiver = ROOT
					state = 859
				}
				add_offsite_building = {
					type = industrial_complex
					level = 5
				}
			}
		}
		custom_effect_tooltip = PER_resource_rights_on_war_tt
		hidden_effect = {
			FROM = {
				country_event = {
					id = SAU_mai_shiyou.6
					hours = 2
				}
			}
		}
	}
	option = {
		#Refuse
		name = SAU_mai_shiyou.5.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}
		}
		set_country_flag = SAU_refused_oil_flag
		FROM = {
			country_event = {
				id = SAU_mai_shiyou.7
				hours = 2
			}
		}
	}
}

country_event = {
	#Iran gives away resource rights
	id = SAU_mai_shiyou.6
	title = SAU_mai_shiyou.6.t
	desc = SAU_mai_shiyou.6.desc
	picture = GFX_report_event_generic_sign_treaty2
	#fire_only_once = yes
	is_triggered_only = yes
	option = {
		#Great
		name = SAU_mai_shiyou.6.a
		FROM = {
			give_guarantee = ROOT
			set_country_flag = SAU_has_SAU_resource_rights
		}
		ROOT = {
			give_resource_rights = {
				receiver = FROM
				state = 859
			}
		}
		add_offsite_building = {
			type = industrial_complex
			level = 5
		}
		set_country_flag = SAU_sold_oil_flag
		custom_effect_tooltip = PER_resource_rights_on_war_tt
	}
}

country_event = {
	#FROM doesn't want our oil
	id = SAU_mai_shiyou.7
	title = SAU_mai_shiyou.7.t
	desc = SAU_mai_shiyou.7.desc
	picture = GFX_report_event_journalists_speech
	#fire_only_once = yes
	is_triggered_only = yes
	option = {
		#bad
		name = SAU_mai_shiyou.7.a
		clr_country_flag = SAU_offers_oil_flag
	}
}

################################################################################
##########################         反抗         ############################
###############################################################################
news_event = {
	id = SAU_neizhan_fankang.0
	title = SAU_neizhan_fankang.0.t
	desc = SAU_neizhan_fankang.0.desc
	picture = GFX_news_event_india_protests2
	fire_only_once = yes
	is_triggered_only = yes
	major = yes
	option = {
		name = SAU_neizhan_fankang.0.a
	}
}

country_event = {
	id = SAU_neizhan_fankang.1
	title = SAU_neizhan_fankang.1.t
	desc = SAU_neizhan_fankang.1.desc
	picture = GFX_report_event_SAU_shenyepai_kangyi
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.1.a
		add_popularity = {
			ideology = communism
			popularity = 0.05
		}
		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}
		add_stability = -0.05
		custom_effect_tooltip = modify_SAU_honglan_fanduipai
		add_to_variable = {
			SAU_fankang_1 = 0.05
			tooltip = democratic_drift_tt
		}
		add_to_variable = {
			SAU_fankang_2 = 0.05
			tooltip = communism_drift_tt
		}
		add_to_variable = {
			SAU_fankang_3 = 0.02
			tooltip = fascism_drift_tt
		}
		add_to_variable = {
			SAU_fankang_7 = -0.05
			tooltip = neutrality_drift_tt
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.2
	title = SAU_neizhan_fankang.2.t
	desc = SAU_neizhan_fankang.2.desc
	picture = GFX_report_event_BRA_smoking_snakes
	fire_only_once = no
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.2.a
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = {
					target = SAU
					value > 39
				}
				factor = 20
			}
		}
		set_country_flag = women_zhunbei_paiqian_zhiyuanjun_flag
		SAU = {
			country_event = SAU_neizhan_fankang.4
		}
		add_opinion_modifier = {
			target = SAU
			modifier = medium_increase
		}
	}
	option = {
		name = SAU_neizhan_fankang.2.b
		trigger = {
			SAU = {
				NOT = {
					has_completed_focus = Saudi_Arabia_luori_yuhui
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				has_opinion = {
					target = SAU
					value < 39
				}
				factor = 20
			}
		}
		SAU = {
			country_event = SAU_neizhan_fankang.3
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.3
	title = SAU_neizhan_fankang.3.t
	desc = SAU_neizhan_fankang.3.desc
	picture = GFX_report_event_BRA_smoking_snakes
	fire_only_once = no
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.3.a
		SAU = {
			add_opinion_modifier = {
				target = FROM
				modifier = SAU_jujue_paiqian_zhiyuanjun
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.4
	title = SAU_neizhan_fankang.4.t
	desc = SAU_neizhan_fankang.4.desc
	picture = GFX_report_event_BRA_smoking_snakes
	fire_only_once = no
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.4.a
		SAU = {
			add_opinion_modifier = {
				target = FROM
				modifier = small_increase
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.5
	title = SAU_neizhan_fankang.5.t
	desc = SAU_neizhan_fankang.5.desc
	picture = GFX_report_event_BRA_smoking_snakes
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.5.a
		division_template = {
			name = "Saudi Arabia Family Guard"
			division_names_group = SPD_INF_02
			is_locked = yes
			regiments = {
				irregular_infantry = {
					x = 0
					y = 0
				}
				irregular_infantry = {
					x = 0
					y = 1
				}
				irregular_infantry = {
					x = 1
					y = 0
				}
				irregular_infantry = {
					x = 1
					y = 1
				}
				irregular_infantry = {
					x = 2
					y = 0
				}
				irregular_infantry = {
					x = 2
					y = 1
				}
			}
		}
		random_controlled_state = {
			prioritize = {
				292
				679
				855
			}
			create_unit = {
				division = "name = \"Saudi Arabia Family Guard\" division_template = \"Saudi Arabia Family Guard\" start_experience_factor = 0.1 start_equipment_factor = 0.8"
				owner = ROOT
				count = 10
			}
		}
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 1000
			producer = ENG
		}
		add_equipment_to_stockpile = {
			type = support_equipment
			amount = 500
			producer = ENG
		}
		add_equipment_to_stockpile = {
			type = armored_car_equipment
			amount = 100
			producer = ENG
		}
		add_equipment_to_stockpile = {
			type = motorized_equipment_1
			amount = 150
			producer = ENG
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.6
	title = SAU_neizhan_fankang.6.t
	desc = SAU_neizhan_fankang.6.desc
	picture = GFX_report_event_physics_lab_01
	is_triggered_only = yes
	# Sure
	option = {
		name = SAU_neizhan_fankang.6.a
		ai_chance = {
			base = 1
		}
		if = {
			limit = {
				FROM = {
					is_subject = yes
				}
			}
			add_timed_idea = {
				idea = SAU_communist_influence_shi_kuilei
				days = 1300
			}
		}
		else_if = {
			limit = {
				FROM = {
					is_subject = no
				}
			}
			add_timed_idea = {
				idea = SAU_communist_influence
				days = 730
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.7
	title = SAU_neizhan_fankang.7.t
	desc = SAU_neizhan_fankang.7.desc
	picture = GFX_report_event_german_reichstag_gathering
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.7.a
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 25
				}
			}
			modifier = {
				factor = 2
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 2
				ROOT = {
					any_home_area_neighbor_country = {
						original_tag = FROM
					}
				}
			}
		}
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
		set_politics = {
			ruling_party = communism
		}
		FROM = {
			puppet = ROOT
		}
	}
	option = {
		name = denmark_protection_event.100.b		#Intentional
		ai_chance = {
			base = 0
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value < 0
				}
			}
			modifier = {
				add = 5
				any_other_country = {
					is_major = yes
					is_in_faction_with = ROOT
				}
			}
		}
		FROM = {
			puppet = ROOT
		}
		FROM = {
			effect_tooltip = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			country_event = {
				id = SAU_gongchan_shijian.116
				hours = 3
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.8
	title = SAU_neizhan_fankang.8.t
	desc = SAU_neizhan_fankang.8.desc
	picture = GFX_report_event_german_reichstag_gathering
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.8.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				has_stability < 0.4
			}
			modifier = {
				factor = 10
				has_war_support < 0.4
			}
			modifier = {
				factor = 20
				has_war = yes
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 50
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
		}
		SAU = {
			country_event = {
				id = SAU_neizhan_fankang.9
				hours = 3
			}
		}
	}
	option = {
		name = SAU_neizhan_fankang.8.b		#Intentional
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 5
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
		}
		SAU = {
			country_event = {
				id = SAU_neizhan_fankang.10
				hours = 3
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.9
	title = SAU_neizhan_fankang.9.t
	desc = SAU_neizhan_fankang.9.desc
	picture = GFX_report_event_german_reichstag_gathering
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.9.a
		FROM = {
			if = {
				limit = {
					has_full_control_of_state = 658
				}
				release = UAE
			}
			if = {
				limit = {
					has_full_control_of_state = 659
				}
				YEM = {
					transfer_state = 659
					add_opinion_modifier = {
						target = ENG
						modifier = ENG_returned_our_territory
					}
				}
				659 = {
					add_core_of = FSA
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 992
				}
				YEM = {
					transfer_state = 992
				}
			}
			if = {
				limit = {
					has_full_control_of_state = 906
				}
				YEM = {
					transfer_state = 906
				}
			}
			if = {
				limit = {
					OMA = {
						is_subject = yes
					}
				}
				release = OMA
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.10
	title = SAU_neizhan_fankang.10.t
	desc = SAU_neizhan_fankang.10.desc
	picture = GFX_report_event_german_reichstag_gathering
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.10.a
		ai_chance = {
			base = 5
		}
		add_stability = -0.1
		add_war_support = 0.1
	}
	option = {
		name = SAU_neizhan_fankang.10.b		#Intentional
		ai_chance = {
			base = 5
		}
		create_wargoal = {
			type = take_claimed_state
			target = FROM
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.11
	title = SAU_neizhan_fankang.11.t
	desc = SAU_neizhan_fankang.11.desc
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.11.a
		ai_chance = {
			base = 0
			modifier = {
				add = 1
				strength_ratio = {
					tag = FROM
					ratio < 0.9
				}
			}
			modifier = {
				add = 5
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			modifier = {
				add = 2
				has_government = communism
			}
			modifier = {
				add = -2
				is_in_faction = yes
			}
		}
		every_occupied_country = {
			limit = {
				capital_scope = {
					is_on_continent = middle_east
				}
			}
			ROOT = {
				release_puppet_on_controlled = PREV
			}
		}
		FROM = {
			set_country_flag = SAU_feizhimin_hua_flag
		}
		#For loc purposes
	}
	#Are you guys crazy?!
	option = {
		name = SAU_neizhan_fankang.11.b
		ai_chance = {
			base = 5
		}
		set_country_flag = SAU_jujue_zhiminhua_flag
		effect_tooltip = {
			every_owned_state = {
				limit = {
					is_on_continent = middle_east
					NOT = {
						is_core_of = owner
					}
				}
				add_dynamic_modifier = {
					modifier = SAU_zhongdong_fankang_modifier
				}
			}
		}
		if = {
			limit = {
				FROM = {
					#Need to scope to FROM to work with scripted trigger
					ROOT = {
						country_can_be_reasonable_target_of_wargoal = yes
					}
				}
			}
			custom_effect_tooltip = maybe_war_tt
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.12
	title = SAU_neizhan_fankang.12.t
	desc = SAU_neizhan_fankang.12.desc
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	trigger = {
		original_tag = SAU
		any_other_country = {
			has_country_flag = SAU_jujue_zhiminhua_flag
		}
	}
	#Our work here is done
	option = {
		name = SAU_neizhan_fankang.12.a
		ai_chance = {
			base = 1
		}
		every_other_country = {
			limit = {
				has_country_flag = SAU_jujue_zhiminhua_flag
			}
			every_owned_state = {
				limit = {
					is_on_continent = middle_east
					NOT = {
						is_core_of = owner
					}
				}
				add_dynamic_modifier = {
					modifier = SAU_zhongdong_fankang_modifier
				}
			}
		}
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = SAU_feizhimin_hua_flag
				}
				clr_country_flag = SAU_feizhimin_hua_flag
			}
			#if = { #Don't clear this it's used to clear the dynamic modifier when appropriate
			#	limit = {
			#		any_other_country = {
			#			has_country_flag = SAU_jujue_zhiminhua_flag
			#		}
			#	}
			#	clr_country_flag = SAU_jujue_zhiminhua_flag
			#}
		}
	}
	#WAR
	option = {
		name = SAU_neizhan_fankang.12.b
		ai_chance = {
			base = 10
		}
		trigger = {
			any_other_country = {
				has_country_flag = SAU_jujue_zhiminhua_flag
			}
		}
		every_other_country = {
			limit = {
				has_country_flag = SAU_jujue_zhiminhua_flag
			}
			every_owned_state = {
				limit = {
					is_on_continent = middle_east
					NOT = {
						is_core_of = owner
					}
				}
				add_dynamic_modifier = {
					modifier = SAU_zhongdong_fankang_modifier
				}
			}
			if = {
				limit = {
					country_can_be_reasonable_target_of_wargoal = yes
				}
				ROOT = {
					create_wargoal = {
						type = annex_everything
						target = PREV
					}
				}
			}
			#clr_country_flag = SAU_jujue_zhiminhua_flag #Don't clear this it's used to clear the dynamic modifier when appropriate
		}
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = SAU_feizhimin_hua_flag
				}
				clr_country_flag = SAU_feizhimin_hua_flag
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.13
	title = SAU_neizhan_fankang.13.t
	desc = SAU_neizhan_fankang.13.desc
	picture = GFX_report_event_SAU_shenyepai_kangyi
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.13.a
		ai_chance = {
			base = 5
		}
		add_timed_idea = {
			idea = SAU_anfu_buluo
			days = 180
		}
	}
	option = {
		name = SAU_neizhan_fankang.13.b
		ai_chance = {
			base = 5
		}
		857 = {
			set_state_flag = SAU_jiduanfenzi_fankang_flag
		}
		854 = {
			set_state_flag = SAU_jiduanfenzi_fankang_flag
		}
		set_country_flag = SAU_jiduanfenzifankang_flag
		activate_mission = SAU_zongjiaoshili_panluan_mission
		custom_effect_tooltip = SAU_neizhan_fankang_13_tt
	}
}

country_event = {
	id = SAU_neizhan_fankang.14
	title = SAU_neizhan_fankang.14.t
	desc = SAU_neizhan_fankang.14.desc
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			every_country = {
				limit = {
					original_tag = SOV
				}
				every_owned_state = {
					limit = {
						is_core_of = UZB
					}
					UZB = {
						transfer_state = PREV
					}
				}
			}
			every_country = {
				limit = {
					original_tag = SOV
				}
				every_owned_state = {
					limit = {
						is_core_of = TAJ
					}
					TAJ = {
						transfer_state = PREV
					}
				}
			}
			every_country = {
				limit = {
					original_tag = SOV
				}
				every_owned_state = {
					limit = {
						is_core_of = TMS
					}
					TMS = {
						transfer_state = PREV
					}
				}
			}
			every_state = {
				limit = {
					is_owned_by = UZB
				}
				SOV = {
					delete_unit = {
						state = PREV
						disband = no
					}
				}
			}
			every_state = {
				limit = {
					is_owned_by = TAJ
				}
				SOV = {
					delete_unit = {
						state = PREV
						disband = no
					}
				}
			}
			every_state = {
				limit = {
					is_owned_by = TMS
				}
				SOV = {
					delete_unit = {
						state = PREV
						disband = no
					}
				}
			}
			UZB = {
				division_template = {
					name = "basmachi Resistance Fighters"
					is_locked = yes
					priority = 1
					template_counter = 3
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
					}
					is_locked = yes
				}
				every_owned_state = {
					limit = {
						is_core_of = UZB
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = UZB
						count = 2
					}
				}
				random_owned_state = {
					limit = {
						is_core_of = UZB
						is_capital = yes
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = UZB
						count = 2
					}
				}
			}
			TAJ = {
				division_template = {
					name = "basmachi Resistance Fighters"
					is_locked = yes
					priority = 1
					template_counter = 3
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
					}
					is_locked = yes
				}
				every_owned_state = {
					limit = {
						is_core_of = TAJ
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = TAJ
						count = 2
					}
				}
				random_owned_state = {
					limit = {
						is_core_of = TAJ
						is_capital = yes
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = TAJ
						count = 2
					}
				}
			}
			TMS = {
				division_template = {
					name = "basmachi Resistance Fighters"
					is_locked = yes
					priority = 1
					template_counter = 3
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
					}
					is_locked = yes
				}
				every_owned_state = {
					limit = {
						is_core_of = TMS
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = TMS
						count = 2
					}
				}
				random_owned_state = {
					limit = {
						is_core_of = TMS
						is_capital = yes
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = TMS
						count = 2
					}
				}
			}
			UZB = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.7
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.25
				}
				set_rule = {
					can_join_factions = no
				}
			}
			TAJ = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.7
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.25
				}
				set_rule = {
					can_join_factions = no
				}
			}
			TMS = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.7
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.25
				}
				set_rule = {
					can_join_factions = no
				}
			}
			hidden_effect = {
				742 = {
					set_state_name = SOV_Dushanbe
				}
			}
		}
	}
	option = {
		name = SAU_neizhan_fankang.14.a
		UZB = {
			add_named_threat = {
				threat = -1
				name = indepence_war_threat
			}
			declare_war_on = {
				target = SOV
				type = independence_wargoal
			}
		}
		TAJ = {
			add_named_threat = {
				threat = -1
				name = indepence_war_threat
			}
			declare_war_on = {
				target = SOV
				type = independence_wargoal
			}
		}
		TMS = {
			add_named_threat = {
				threat = -1
				name = indepence_war_threat
			}
			declare_war_on = {
				target = SOV
				type = independence_wargoal
			}
		}
		SAU = {
			set_autonomy = {
				target = UZB
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
			set_autonomy = {
				target = TAJ
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
			set_autonomy = {
				target = TMS
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.15
	title = SAU_neizhan_fankang.15.t
	desc = SAU_neizhan_fankang.15.desc
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			ENG = {
				diplomatic_relation = {
					country = IRQ
					relation = guarantee
					active = no
				}
				add_ai_strategy = {
					type = antagonize
					id = IRQ
				}
				add_ai_strategy = {
					type = conquer
					id = IRQ
				}
			}
			every_country = {
				limit = {
					original_tag = IRQ
				}
				every_owned_state = {
					limit = {
						is_core_of = KUR
					}
					KUR = {
						transfer_state = PREV
					}
				}
			}
			every_state = {
				limit = {
					is_owned_by = KUR
				}
				IRQ = {
					delete_unit = {
						state = PREV
						disband = no
					}
				}
			}
			KUR = {
				division_template = {
					name = "basmachi Resistance Fighters"
					is_locked = yes
					priority = 1
					template_counter = 3
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
					}
					is_locked = yes
				}
				every_owned_state = {
					limit = {
						is_core_of = KUR
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = KUR
						count = 2
					}
				}
				random_owned_state = {
					limit = {
						is_core_of = KUR
						is_capital = yes
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = KUR
						count = 2
					}
				}
			}
			KUR = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.7
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.25
				}
				set_rule = {
					can_join_factions = no
				}
				IRQ = {
					if = {
						limit = {
							has_character = IRQ_ahmed_barzani
						}
						remove_advisor_role = {
							character = IRQ_ahmed_barzani
						}
						add_advisor_role = {
							character = IRQ_ahmed_barzani
						}
						IRQ_ahmed_barzani = {
							set_nationality = KUR
						}
					}
				}
				add_country_leader_role = {
					character = IRQ_ahmed_barzani
					promote_leader = yes
					country_leader = {
						ideology = despotism
						expire = "1965.1.1.1"
						traits = {
							guerilla_warfare_expert
						}
					}
				}
				set_party_name = {
					ideology = neutrality
					long_name = IRQ_kurd_neutrality_party_long
					name = IRQ_kurd_neutrality_party
				}
			}
		}
	}
	option = {
		name = SAU_neizhan_fankang.15.a
		KUR = {
			add_named_threat = {
				threat = -1
				name = indepence_war_threat
			}
			declare_war_on = {
				target = IRQ
				type = independence_wargoal
			}
		}
		SAU = {
			set_autonomy = {
				target = KUR
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.16
	title = SAU_neizhan_fankang.16.t
	desc = SAU_neizhan_fankang.16.desc
	picture = GFX_report_event_german_volunteers
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		# We could use their knowledge of the Kuban steppe
		name = SAU_neizhan_fankang.16.a
		ai_chance = {
			base = 100
		}
		set_country_flag = SAU_tongyi_kuerde_flag
		hidden_effect = {
			division_template = {
				name = "Kurdish-tribal-Division"
				division_names_group = ETH_ARAB_MERCS
				template_counter = 106				# The Cossack Regiment Symbol 
				regiments = {
					cavalry = {
						x = 0
						y = 0
					}
					cavalry = {
						x = 0
						y = 1
					}
					cavalry = {
						x = 0
						y = 2
					}
					cavalry = {
						x = 1
						y = 0
					}
					cavalry = {
						x = 1
						y = 1
					}
					cavalry = {
						x = 1
						y = 2
					}
				}
				support = {
					recon = {
						x = 0
						y = 0
					}
					artillery = {
						x = 0
						y = 1
					}
				}
			}
			random_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_owned_by = ROOT
					is_core_of = ROOT
				}
				create_unit = {
					division = "name = \"Kurdish-tribal-Division\" division_template = \"Kurdish-tribal-Division\" start_experience_factor = 0.1 start_equipment_factor = 1"
					owner = ROOT
				}
				create_unit = {
					division = "name = \"Kurdish-tribal-Division\" division_template = \"Kurdish-tribal-Division\" start_experience_factor = 0.1 start_equipment_factor = 1"
					owner = ROOT
				}
			}
		}
		if = {
			limit = {
				has_completed_focus = Saudi_Arabia_laxide_kuozhang_kaiduan
			}
			set_country_flag = aosiman_kuerderen_flag
		}
	}
	option = {
		name = SAU_neizhan_fankang.16.b
		ai_chance = {
			base = 0
		}
		add_war_support = 0.01
		add_political_power = 25
	}
}

country_event = {
	id = SAU_neizhan_fankang.17
	title = SAU_neizhan_fankang.17.t
	desc = SAU_neizhan_fankang.17.desc
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			every_country = {
				limit = {
					original_tag = RAJ
				}
				every_owned_state = {
					limit = {
						is_core_of = PAK
					}
					PAK = {
						transfer_state = PREV
					}
				}
			}
			every_state = {
				limit = {
					is_owned_by = PAK
				}
				RAJ = {
					delete_unit = {
						state = PREV
						disband = no
					}
				}
			}
			PAK = {
				division_template = {
					name = "Pakistan Islamic Division"
					is_locked = yes
					priority = 1
					template_counter = 3
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
					}
					is_locked = yes
				}
				every_owned_state = {
					limit = {
						is_core_of = PAK
					}
					create_unit = {
						division = "name = \"Pakistan Islamic Division\" division_template = \"Pakistan Islamic Division\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = PAK
						count = 2
					}
				}
				random_owned_state = {
					limit = {
						is_core_of = PAK
						is_capital = yes
					}
					create_unit = {
						division = "name = \"Pakistan Islamic Division\" division_template = \"Pakistan Islamic Division\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = PAK
						count = 2
					}
				}
			}
			PAK = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.05
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.7
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.25
				}
				set_rule = {
					can_join_factions = no
				}
			}
		}
	}
	option = {
		name = SAU_neizhan_fankang.17.a
		PAK = {
			add_named_threat = {
				threat = -1
				name = indepence_war_threat
			}
			declare_war_on = {
				target = RAJ
				type = independence_wargoal
			}
		}
		SAU = {
			set_autonomy = {
				target = PAK
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

country_event = {
	id = SAU_neizhan_fankang.18
	title = SAU_neizhan_fankang.18.t
	desc = SAU_neizhan_fankang.18.desc
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes
	option = {
		name = SAU_neizhan_fankang.18.a
		trigger = {
			has_completed_focus = Saudi_Arabia_zuoxian_one
		}
		custom_effect_tooltip = SAU_waiguo_kangmi_guwen_tt
		hidden_effect = {
			IRQ = {
				if = {
					limit = {
						has_character = IRQ_yusuf_salman_yusuf
						NOT = {
							has_idea = IRQ_yusuf_salman_yusuf
						}
					}
					remove_advisor_role = {
						character = IRQ_yusuf_salman_yusuf
						slot = political_advisor
					}
					add_advisor_role = {
						character = IRQ_yusuf_salman_yusuf
						advisor = {
							slot = political_advisor
							cost = 150
							idea_token = IRQ_yusuf_salman_yusuf_sau
							traits = {
								ARG_communist_insurrectionist
							}
						}
					}
					IRQ_yusuf_salman_yusuf = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = IRQ_husain_al_rahhal
						NOT = {
							has_idea = IRQ_husain_al_rahhal
						}
					}
					remove_advisor_role = {
						character = IRQ_husain_al_rahhal
						slot = political_advisor
					}
					add_advisor_role = {
						character = IRQ_husain_al_rahhal
						advisor = {
							slot = political_advisor
							cost = 150
							idea_token = IRQ_husain_al_rahhal_sau
							traits = {
								IRQ_as_sahifah_editor
							}
						}
					}
					IRQ_husain_al_rahhal = {
						set_nationality = SAU
					}
				}
			}
			if = {
				PER = {
					NOT = {
						has_completed_focus = PER_united_progressive_parties
					}
				}
				PER = {
					retire_character = PER_jafar_kavian
					retire_character = PER_ghulam_yahya_daneshian
					retire_character = PER_abdolsamad_kambakhsh
				}
				SAU = {
					set_country_flag = SAU_kangmi_haozhao_flag
				}
			}
		}
	}
	option = {
		name = SAU_neizhan_fankang.18.b
		trigger = {
			has_completed_focus = Saudi_Arabia_lanxian_one
		}
		custom_effect_tooltip = SAU_waiguo_kangmi_guwen_1_tt
	}
}

################################################################################
##########################         共产         ############################
############################################################################### 
country_event = {
	id = SAU_gongchan_shijian.1
	title = SAU_gongchan_shijian.1.t
	desc = SAU_gongchan_shijian.1.desc
	picture = GFX_report_event_FIN_petsamo_melting_plant
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_gongchan_shijian.1.a
		ai_chance = {
			base = 5
		}
		every_core_state = {
			add_extra_state_shared_building_slots = 1
		}
		random_core_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}
}

country_event = {
	id = SAU_gongchan_shijian.2
	title = SAU_gongchan_shijian.2.t
	desc = SAU_gongchan_shijian.1.desc
	picture = GFX_report_event_FIN_petsamo_melting_plant
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_gongchan_shijian.1.a
		ai_chance = {
			base = 5
		}
		every_core_state = {
			add_extra_state_shared_building_slots = 2
		}
		random_core_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_core_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}
}

country_event = {
	id = SAU_gongchan_shijian.3
	title = SAU_gongchan_shijian.3.t
	desc = SAU_gongchan_shijian.1.desc
	picture = GFX_report_event_FIN_petsamo_melting_plant
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_gongchan_shijian.1.a
		ai_chance = {
			base = 5
		}
		every_core_state = {
			add_extra_state_shared_building_slots = 3
		}
		random_core_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_core_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_core_state = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}
}

country_event = {
	id = SAU_gongchan_shijian.4
	title = SAU_gongchan_shijian.4.t
	desc = SAU_gongchan_shijian.4.desc
	picture = GFX_report_event_soviet_purge_officers_01
	is_triggered_only = yes
	option = {
		name = SAU_gongchan_shijian.4.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 20
				has_opinion = {
					target = FROM
					value > 29
				}
			}
		}
		SAU = {
			country_event = {
				id = SAU_gongchan_shijian.5
				hours = 10
			}
		}
	}
	option = {
		name = SAU_gongchan_shijian.4.b
		ai_chance = {
			base = 6
			modifier = {
				factor = 3
				has_opinion = {
					target = FROM
					value < 29
				}
			}
		}
	}
}

country_event = {
	id = SAU_gongchan_shijian.5
	title = SAU_gongchan_shijian.5.t
	desc = SAU_gongchan_shijian.5.desc
	picture = GFX_report_event_soviet_purge_officers_01
	is_triggered_only = yes
	option = {
		name = SAU_gongchan_shijian.5.a
		if = {
			limit = {
				OR = {
					has_completed_focus = Saudi_Arabia_sulian_junshi_guwen
					has_completed_focus = Saudi_Arabia_lianhe_shiguan_xuexiao
				}
			}
			SOV = {
				if = {
					limit = {
						has_character = SOV_andrey_yeryomenko
					}
					remove_advisor_role = {
						character = SOV_andrey_yeryomenko
						slot = army_chief
					}
					add_advisor_role = {
						character = SOV_andrey_yeryomenko
						advisor = {
							slot = army_chief
							cost = 150
							idea_token = SOV_andrey_yeryomenko_sau
							traits = {
								army_chief_maneuver_2
							}
						}
					}
					SOV_andrey_yeryomenko = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = SOV_issa_pliyev
					}
					remove_advisor_role = {
						character = SOV_issa_pliyev
						slot = army_chief
					}
					SOV_issa_pliyev = {
						set_nationality = SAU
					}
				}
			}
		}
		if = {
			limit = {
				has_completed_focus = Saudi_Arabia_yu_yingguo_guanxi
			}
			ENG = {
				if = {
					limit = {
						has_character = ENG_algernon_willis
					}
					remove_advisor_role = {
						character = ENG_algernon_willis
					}
					add_advisor_role = {
						character = ENG_algernon_willis
						advisor = {
							slot = high_command
							cost = 150
							idea_token = ENG_algernon_willis_sau
							traits = {
								navy_capital_ship_2
							}
						}
					}
					ENG_algernon_willis = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = ENG_jackie_smyth
					}
					remove_advisor_role = {
						character = ENG_jackie_smyth
					}
					add_advisor_role = {
						character = ENG_jackie_smyth
						advisor = {
							slot = high_command
							cost = 150
							idea_token = ENG_jackie_smyth_sau
							traits = {
								army_chief_old_guard
							}
						}
					}
					ENG_jackie_smyth = {
						set_nationality = SAU
					}
				}
			}
		}
		if = {
			limit = {
				has_completed_focus = Saudi_Arabia_yu_meiguo_guanxi
			}
			USA = {
				if = {
					limit = {
						has_character = USA_charles_m_cooke_jr
					}
					remove_advisor_role = {
						character = USA_charles_m_cooke_jr
					}
					USA_charles_m_cooke_jr = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = USA_russell_hartle
					}
					remove_advisor_role = {
						character = USA_russell_hartle
					}
					add_advisor_role = {
						character = USA_russell_hartle
						advisor = {
							slot = high_command
							cost = 150
							idea_token = USA_russell_hartle_sau
							traits = {
								army_infantry_2
							}
						}
					}
					USA_russell_hartle = {
						set_nationality = SAU
					}
				}
			}
		}
		if = {
			limit = {
				has_completed_focus = Saudi_Arabia_fulici_geluoba_tiaoyue
			}
			GER = {
				if = {
					limit = {
						has_character = GER_werner_von_fritsch
					}
					remove_advisor_role = {
						character = GER_werner_von_fritsch
						slot = army_chief
					}
					remove_advisor_role = {
						character = GER_werner_von_fritsch
						slot = high_command
					}
					add_advisor_role = {
						character = GER_werner_von_fritsch
						advisor = {
							slot = high_command
							cost = 150
							idea_token = GER_werner_von_fritsch_sau
							traits = {
								army_logistics_2
							}
						}
					}
					GER_werner_von_fritsch = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = GER_werner_von_blomberg
					}
					remove_advisor_role = {
						character = GER_werner_von_blomberg
					}
					add_advisor_role = {
						character = GER_werner_von_blomberg
						advisor = {
							slot = army_chief
							cost = 150
							idea_token = GER_werner_von_blomberg_sau
							traits = {
								army_chief_planning_2
							}
						}
					}
					GER_werner_von_blomberg = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = GER_oswald_lutz
					}
					remove_advisor_role = {
						character = GER_oswald_lutz
					}
					add_advisor_role = {
						character = GER_oswald_lutz
						advisor = {
							slot = high_command
							cost = 150
							idea_token = GER_oswald_lutz_sau
							traits = {
								army_CombinedArms_2
							}
						}
					}
					GER_oswald_lutz = {
						set_nationality = SAU
					}
				}
			}
		}
	}
}

country_event = {
	id = SAU_gongchan_shijian.6
	title = SAU_gongchan_shijian.6.t
	desc = SAU_gongchan_shijian.6.desc
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	option = {
		name = SAU_gongchan_shijian.6.a
		trigger = {
			OR = {
				has_completed_focus = Saudi_Arabia_zuoxian_one
				has_completed_focus = Saudi_Arabia_lanxian_one
			}
		}
		ai_chance = {
			base = 50
		}
		set_country_flag = huangshi_de_mingyun_flag
	}
	option = {
		name = SAU_gongchan_shijian.6.b
		ai_chance = {
			base = 1
		}
		if = {
			limit = {
				has_government = neutrality
			}
			add_popularity = {
				ideology = fascism
				popularity = -0.1
			}
		}
		else_if = {
			limit = {
				NOT = {
					has_government = neutrality
				}
			}
			add_popularity = {
				ideology = neutrality
				popularity = -0.1
			}
		}
		add_political_power = 100		#添加政治点数 
		retire_character = abdullah_bin_abdulaziz_al_saud
		retire_character = khalid_bin_abdulaziz_al_saud
		retire_character = SAU_Mishaal_bin_Abdulaziz_Al_Saud
		retire_character = saud_bin_abdulaziz_al_saud
		retire_character = Saad_bin_Abdulaziz_Al_Sha
		retire_character = SAU_Musaid_bin_Abdul_Rahman_Al_Saud
		retire_character = abdul_muhsin_bin_abdulaziz_al_saud
		retire_character = Bandar_bin_Abdulaziz_Al_Saud
		retire_character = Faisal_bin_Abdulaziz_Al_Saud
		retire_character = Faisal_bin_Turki_I_Al_Saud
		retire_character = Mansour_bin_Abdulaziz_Al_Saud
		retire_character = Muhammad_bin_Abdulaziz_Al_Saud
		retire_character = SAU_Abdullah_bin_Faisal_Al
		retire_character = Mohammed_bin_Abdul_Rahman_Saudi
		retire_character = SAU_Noura_bint_Abdul_Rahman_Al_Saud
	}
}

country_event = {
	#Germany makes us a volkskommissariat
	id = SAU_gongchan_shijian.7
	title = SAU_gongchan_shijian.7.t
	desc = SAU_gongchan_shijian.7.desc
	picture = GFX_report_event_generic_communist_congress
	is_triggered_only = yes
	option = {
		#For the workers we will!
		name = SAU_gongchan_shijian.7.a
		ai_chance = {
			base = 10
		}
		FROM = {
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_volkskommissariat
				end_wars = no
				end_civil_wars = no
			}
		}
		IF = {
			limit = {
				FROM = {
					has_completed_focus = Saudi_Arabia_jiaqiang_jingji_hezuo
				}
				NOT = {
					has_idea = SAU_lianhe_jingji
				}
			}
			add_ideas = SAU_lianhe_jingji
		}
		IF = {
			limit = {
				FROM = {
					has_completed_focus = Saudi_Arabia_xiandai_fuli_zhidu
				}
				NOT = {
					has_idea = SAU_lianhe_jundui
				}
			}
			add_ideas = SAU_lianhe_jundui
		}
	}
}

################################################################################
##########################         蓝线         ############################ 
###############################################################################  
country_event = {
	id = SAU_lanxian_shijian.1
	title = SAU_lanxian_shijian.1.t
	desc = SAU_lanxian_shijian.1.desc
	picture = GFX_report_event_FIN_petsamo_mine
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_lanxian_shijian.1.a
		ai_chance = {
			base = 5
			modifier = {
				has_opinion = {
					target = SAU
					value > 29
				}
				factor = 10
			}
			modifier = {
				has_opinion = {
					target = SAU
					value > 29
				}
				factor = 20
			}
		}
		add_offsite_building = {
			type = industrial_complex
			level = 1
		}
		SAU = {
			country_event = {
				id = SAU_lanxian_shijian.2
				hours = 5
			}
		}
	}
	option = {
		name = SAU_lanxian_shijian.1.b
		ai_chance = {
			base = 5
		}
		SAU = {
			country_event = {
				id = SAU_lanxian_shijian.3
				hours = 5
			}
		}
	}
}

country_event = {
	id = SAU_lanxian_shijian.2
	title = SAU_lanxian_shijian.2.t
	desc = SAU_lanxian_shijian.1.desc
	picture = GFX_report_event_FIN_petsamo_mine
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_lanxian_shijian.1.a
		ai_chance = {
			base = 5
		}
		add_political_power = -25
		add_equipment_to_stockpile = {
			type = train_equipment
			amount = 15
			producer = ENG
		}
	}
}

country_event = {
	id = SAU_lanxian_shijian.3
	title = SAU_lanxian_shijian.3.t
	desc = SAU_lanxian_shijian.1.desc
	picture = GFX_report_event_FIN_petsamo_mine
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_lanxian_shijian.1.a
		ai_chance = {
			base = 5
		}
	}
}

################################################################################
##########################         中立线         ############################
############################################################################### 
country_event = {
	id = SAU_zhonglixian.1
	title = SAU_zhonglixian.1.t
	desc = SAU_zhonglixian.1.desc
	picture = GFX_report_event_generic_construction_site
	trigger = {
	}
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
		}
	}
	option = {
		name = SAU_zhonglixian.1.a
		ai_chance = {
			base = 10
		}
		trigger = {
		}
		add_political_power = -50
		add_timed_idea = {
			idea = SAU_duifang_touzi_women
			days = 365
		}
		add_opinion_modifier = {
			target = FROM
			modifier = SAU_duifang_touzi_women_haogan
		}
		event_option_tooltip = SAU_zhonglixian.2.a
	}
	option = {
		name = SAU_zhonglixian.1.b
		ai_chance = {
			base = 10
		}
		trigger = {
		}
	}
}

country_event = {
	id = SAU_zhonglixian.2
	title = SAU_zhonglixian.2.t
	desc = SAU_zhonglixian.2.desc
	picture = GFX_report_event_generic_sign_treaty2
	trigger = {
	}
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
		}
	}
	option = {
		name = SAU_zhonglixian.2.a
		ai_chance = {
			base = 10
		}
		trigger = {
		}
		add_offsite_building = {
			type = industrial_complex
			level = 1
		}
		add_opinion_modifier = {
			target = FROM
			modifier = NOR_invested_in_our_country
		}
	}
}

country_event = {
	id = SAU_zhonglixian.3
	title = SAU_zhonglixian.3.t
	desc = SAU_zhonglixian.3.desc
	picture = GFX_report_event_SWI_parliament_members
	trigger = {
	}
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
		}
	}
	option = {
		name = SAU_zhonglixian.3.a
		ai_chance = {
			base = 10
		}
		trigger = {
		}
	}
}

country_event = {
	#The Civil War broke out
	id = SAU_zhonglixian.4
	title = SAU_zhonglixian.4.t
	desc = SAU_zhonglixian.4.desc
	picture = GFX_report_SAU_kaishidui_dulusaiwaer_zhuiqui_4
	is_triggered_only = yes
	option = {
		#we are communist now!
		name = SAU_zhonglixian.4.a
		ai_chance = {
			base = 10
		}
		hidden_effect = {
			if = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_on_continent = europe
					}
					set_variable = {
						ROOT.temp_capital = THIS.id
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					set_variable = {
						ROOT.temp_capital = THIS.id
					}
				}
			}
		}
		start_civil_war = {
			ruling_party = fascism
			ideology = neutrality
			size = 0.4			#since this triggers when the country goes over 50% communism
			capital = var:ROOT.temp_capital
		}
		SAU = {
			set_autonomy = {
				target = EGY
				autonomy_state = autonomy_puppet
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

country_event = {
	id = SAU_zhonglixian.5
	title = SAU_zhonglixian.5.t
	desc = SAU_zhonglixian.5.desc
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.5.a
		ai_chance = {
			base = 10
		}
		SAU = {
			country_event = SAU_zhonglixian.6
		}
	}
	option = {
		name = SAU_zhonglixian.5.b
		ai_chance = {
			base = 5
		}
		SAU = {
			country_event = SAU_zhonglixian.7
		}
	}
}

country_event = {
	id = SAU_zhonglixian.6
	title = SAU_zhonglixian.6.t
	desc = SAU_zhonglixian.6.desc
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.6.a
		ai_chance = {
			base = 50
		}
		ITA = {
			if = {
				limit = {
					has_character = ITA_mario_berti
				}
				remove_advisor_role = {
					character = ITA_mario_berti
				}
				add_advisor_role = {
					character = ITA_mario_berti
				}
				ITA_mario_berti = {
					set_nationality = SAU
				}
			}
		}
		ITA = {
			if = {
				limit = {
					has_character = ITA_emilio_de_bono
				}
				remove_advisor_role = {
					character = ITA_emilio_de_bono
					slot = army_chief
				}
				add_advisor_role = {
					character = ITA_emilio_de_bono
					advisor = {
						slot = army_chief
						cost = 150
						idea_token = ITA_emilio_de_bono_sau
						traits = {
							army_chief_defensive_1
						}
					}
				}
				ITA_emilio_de_bono = {
					set_nationality = SAU
				}
			}
		}
		SAU = {
			add_opinion_modifier = {
				target = FROM
				modifier = small_increase
			}
		}
	}
}

country_event = {
	id = SAU_zhonglixian.7
	title = SAU_zhonglixian.7.t
	desc = SAU_zhonglixian.7.desc
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.7.a
		ai_chance = {
			base = 50
		}
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 500
			producer = ITA
		}
		add_equipment_to_stockpile = {
			type = artillery_equipment
			amount = 100
			producer = ITA
		}
		add_equipment_to_stockpile = {
			type = support_equipment
			amount = 200
			producer = ITA
		}
	}
}

country_event = {
	id = SAU_zhonglixian.8
	title = SAU_zhonglixian.8.t
	desc = SAU_zhonglixian.8.desc
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.8.a
		ai_chance = {
			base = 5
		}
		SAU = {
			country_event = SAU_zhonglixian.9
		}
	}
}

country_event = {
	id = SAU_zhonglixian.9
	title = SAU_zhonglixian.9.t
	desc = SAU_zhonglixian.9.desc
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.9.a
		ai_chance = {
			base = 50
		}
		random_core_state = {
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
				is_owned_and_controlled_by = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		random_core_state = {
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
				is_owned_and_controlled_by = ROOT
			}
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
		SAU = {
			add_opinion_modifier = {
				target = FROM
				modifier = small_increase
			}
		}
	}
}

##########################哈希姆
country_event = {
	id = SAU_zhonglixian.10
	title = SAU_zhonglixian.10.t
	desc = SAU_zhonglixian.10.desc
	picture = GFX_report_event_bul_troops_macedonia
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.10.a
		ai_chance = {
			base = 50
		}
		hidden_effect = {
			IRQ = {
				if = {
					limit = {
						has_character = IRQ_abd_al_ilah
					}
					remove_advisor_role = {
						character = IRQ_abd_al_ilah
						slot = theorist
					}
					add_advisor_role = {
						character = IRQ_abd_al_ilah
					}
					IRQ_abd_al_ilah = {
						set_nationality = SAU
					}
				}
			}
			complete_national_focus = IRQ_commander_of_the_faithful
		}
		add_country_leader_role = {
			character = IRQ_abd_al_ilah
			promote_leader = yes
			country_leader = {
				ideology = moderatism
				traits = {
					IRQ_hashemite_regent
					the_legitimist
				}
				expire = "1965.1.1.1"
				id = -1
			}
		}
		add_country_leader_role = {
			character = IRQ_abd_al_ilah
			promote_leader = yes
			country_leader = {
				ideology = fascism_ideology
				traits = {
					IRQ_hashemite_regent
					the_legitimist
				}
				expire = "1965.1.1.1"
				id = -1
			}
		}
		add_ideas = SAU_haximu_saiyide
		if = {
			limit = {
				IRQ = {
					has_completed_focus = IRQ_rally_behind_the_hashemite_dynasty
				}
			}
			IRQ = {
				uncomplete_national_focus = {
					focus = IRQ_rally_behind_the_hashemite_dynasty
					uncomplete_children = yes
					refund_political_power = yes
				}
				complete_national_focus = IRQ_party_of_national_brotherhood
			}
		}
		else_if = {
			limit = {
				IRQ = {
					has_completed_focus = IRQ_promote_kurdish_culture
				}
			}
			IRQ = {
				uncomplete_national_focus = {
					focus = IRQ_promote_kurdish_culture
					uncomplete_children = yes
					refund_political_power = yes
				}
				complete_national_focus = IRQ_party_of_national_brotherhood
			}
		}
		add_stability = 0.1		#添加稳定度
	}
}

country_event = {
	id = SAU_zhonglixian.11
	title = SAU_zhonglixian.11.t
	desc = SAU_zhonglixian.11.desc
	picture = GFX_report_event_election_vote
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.11.a
		ai_chance = {
			base = 25
			modifier = {
				threat > 20
				factor = 1.5
			}
			modifier = {
				threat > 40
				factor = 1.5
			}
			modifier = {
				threat > 60
				factor = 2
			}
			modifier = {
				has_non_aggression_pact_with = SAU
				factor = 1.4
			}
			modifier = {
				is_in_faction = no
				factor = 2.5
			}
			modifier = {
				is_in_faction = yes
				factor = 0.8
			}
			modifier = {
				has_opinion = {
					target = SAU
					value > 49
				}
				factor = 1.5
			}
			modifier = {
				strength_ratio = {
					tag = SAU
					ratio < 1
				}
				factor = 2
			}
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.12
				hours = 6
			}
		}
	}
	option = {
		name = SAU_zhonglixian.11.b
		ai_chance = {
			base = 30
			modifier = {
				is_in_faction = yes
				factor = 2				#we're good thanks
			}
			modifier = {
				SAU = {
					is_ai = yes
				}
				factor = 0
			}
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.13
				hours = 6
			}
		}
	}
}

country_event = {
	id = SAU_zhonglixian.12
	title = SAU_zhonglixian.12.t
	desc = SAU_zhonglixian.12.desc
	picture = GFX_report_event_bul_troops_macedonia
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.12.a
		ai_chance = {
			base = 50
		}
		SAU = {
			set_autonomy = {
				target = IRQ
				autonomy_state = autonomy_personal_union
				end_wars = no
				end_civil_wars = no
			}
		}
		add_opinion_modifier = {
			target = IRQ
			modifier = large_increase
		}
		IRQ = {
			add_opinion_modifier = {
				target = ROOT
				modifier = large_increase
			}
		}
		hidden_effect = {
			IRQ = {
				if = {
					limit = {
						has_character = IRQ_ibrahim_al_ghandanfari
					}
					remove_advisor_role = {
						character = IRQ_ibrahim_al_ghandanfari
						slot = political_advisor
					}
					add_advisor_role = {
						character = IRQ_ibrahim_al_ghandanfari
						advisor = {
							slot = political_advisor
							cost = 150
							idea_token = IRQ_ibrahim_al_ghandanfari_sau
							traits = {
								financial_expert
							}
						}
					}
					IRQ_ibrahim_al_ghandanfari = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = IRQ_jamil_abdul_wahab
					}
					remove_advisor_role = {
						character = IRQ_jamil_abdul_wahab
						slot = political_advisor
					}
					add_advisor_role = {
						character = IRQ_jamil_abdul_wahab
						advisor = {
							slot = political_advisor
							cost = 150
							idea_token = IRQ_jamil_abdul_wahab_sau
							traits = {
								IRQ_minister_of_education
							}
						}
					}
					IRQ_jamil_abdul_wahab = {
						set_nationality = SAU
					}
				}
				if = {
					limit = {
						has_character = IRQ_jamil_al_midfai
					}
					remove_advisor_role = {
						character = IRQ_jamil_al_midfai
						slot = political_advisor
					}
					add_advisor_role = {
						character = IRQ_jamil_al_midfai
						advisor = {
							slot = political_advisor
							cost = 150
							idea_token = IRQ_jamil_al_midfai_sau
							traits = {
								IRQ_militant_politician
							}
						}
					}
					IRQ_jamil_al_midfai = {
						set_nationality = SAU
					}
				}
				retire_character = IRQ_muhammad_amin_zaki
			}
			set_country_flag = yilake_chenfu_women_flag
		}
		add_stability = 0.05		#添加稳定度
	}
}

country_event = {
	id = SAU_zhonglixian.13
	title = SAU_zhonglixian.13.t
	desc = SAU_zhonglixian.13.desc
	picture = GFX_report_event_bul_troops_macedonia
	is_triggered_only = yes
	option = {
		name = SAU_zhonglixian.13.a
		ai_chance = {
			base = 50
		}
		every_state = {
			limit = {
				is_core_of = IRQ
			}
			add_claim_by = ROOT
		}
		create_wargoal = {
			target = IRQ
			type = puppet_wargoal_focus
		}
		add_war_support = 0.1		#添加稳定度
	}
}

country_event = {
	id = SAU_zhonglixian.14
	title = SAU_zhonglixian.14.t
	desc = SAU_zhonglixian.14.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok we will join
	option = {
		name = SAU_zhonglixian.14.a
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					has_war_with = FROM
					is_subject = yes
				}
			}
			modifier = {
				factor = 5
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value > 50
				}
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
		}
		FROM = {
			country_event = {
				id = SAU_zhonglixian.15
				days = 3
				random_days = 3
			}
		}
	}
	# We are not interested at this time.
	option = {
		name = SAU_zhonglixian.14.b
		ai_chance = {
			base = 4
		}
		FROM = {
			country_event = {
				id = SAU_zhonglixian.0
				days = 3
				random_days = 3
			}
		}
	}
}

country_event = {
	id = SAU_zhonglixian.15
	title = SAU_zhonglixian.15.t
	desc = SAU_zhonglixian.15.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.15.a
		ai_chance = {
			base = 10
		}
		puppet = FROM
	}
}

country_event = {
	id = SAU_zhonglixian.0
	title = SAU_zhonglixian.0.t
	desc = SAU_zhonglixian.0.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.0.a
		ai_chance = {
			base = 10
		}
		ROOT = {
			create_wargoal = {
				target = FROM
				type = puppet_wargoal_focus
			}
		}
	}
}

# FROM wants to take puppet from us
country_event = {
	id = SAU_zhonglixian.16
	title = SAU_zhonglixian.16.t
	desc = SAU_zhonglixian.16.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Agree
	option = {
		name = SAU_zhonglixian.16.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				FROM = {
					OR = {
						has_idea = IRQ_anglo_iraqi_treaty
						has_idea = IRQ_anglo_iraqi_mutual_defense_agreement
					}
				}
			}
			modifier = {
				factor = 5
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 0
				has_war_with = FROM
			}
		}
		IF = {
			limit = {
				JOR = {
					exists = yes
					is_subject_of = ROOT
				}
			}
			JOR = {
				country_event = {
					id = SAU_zhonglixian.17
					hours = 1
				}
			}
		}
		ELSE_IF = {
			limit = {
				455 = {
					is_owned_and_controlled_by = ROOT
				}
			}
			455 = {
				transfer_state_to = FROM
			}
			FROM = {
				country_event = {
					id = SAU_zhonglixian.18
					hours = 1
				}
			}
		}
	}
	# Refuse
	option = {
		name = SAU_zhonglixian.16.b
		ai_chance = {
			base = 2
		}
		FROM = {
			country_event = {
				id = SAU_zhonglixian.19
				hours = 12
			}
		}
	}
}

# Overlord wants to transfer us to IRQ control
country_event = {
	id = SAU_zhonglixian.17
	title = SAU_zhonglixian.17.t
	desc = SAU_zhonglixian.17.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Agree
	option = {
		name = SAU_zhonglixian.17.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_war_with = SAU
			}
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.18
				hours = 1
			}
		}
		effect_tooltip = {
			SAU = {
				puppet = JOR
			}
		}
	}
	# Refuse
	option = {
		name = SAU_zhonglixian.17.b
		ai_chance = {
			base = 0
			modifier = {
				add = 1
				has_war_with = SAU
			}
		}
		FROM = {
			country_event = {
				id = SAU_zhonglixian.20
				hours = 1
			}
		}
	}
}

# FROM has agreed to transfer
country_event = {
	id = SAU_zhonglixian.18
	title = SAU_zhonglixian.18.t
	desc = SAU_zhonglixian.18.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Great
	option = {
		name = SAU_zhonglixian.18.a
		ai_chance = {
			base = 10
		}
		IF = {
			limit = {
				JOR = {
					exists = yes
					is_subject_of = ENG
				}
			}
			JOR = {
				drop_cosmetic_tag = yes
			}
			SAU = {
				puppet = JOR
			}
		}
		ELSE = {
			455 = {
				transfer_state_to = SAU
			}
		}
	}
}

# ENG has rejected transfer
country_event = {
	id = SAU_zhonglixian.19
	title = SAU_zhonglixian.19.t
	desc = SAU_zhonglixian.19.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.19.a
		ai_chance = {
			base = 10
		}
	}
}

# Puppet has rejected transfer
country_event = {
	id = SAU_zhonglixian.20
	title = SAU_zhonglixian.20.t
	desc = SAU_zhonglixian.20.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.20.a
		ai_chance = {
			base = 10
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.19
				days = 3
			}
		}
	}
}

# FROM wants to take PAL from us
country_event = {
	id = SAU_zhonglixian.21
	title = SAU_zhonglixian.21.t
	desc = SAU_zhonglixian.21.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Agree
	option = {
		name = SAU_zhonglixian.21.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 0
				has_war_with = FROM
			}
		}
		IF = {
			limit = {
				PAL = {
					exists = yes
					is_subject_of = ROOT
				}
			}
			PAL = {
				country_event = {
					id = SAU_zhonglixian.22
					hours = 1
				}
			}
		}
		ELSE_IF = {
			limit = {
				454 = {
					is_owned_and_controlled_by = ROOT
				}
			}
			454 = {
				transfer_state_to = FROM
			}
			FROM = {
				country_event = {
					id = SAU_zhonglixian.23
					hours = 1
				}
			}
		}
	}
	# Refuse
	option = {
		name = SAU_zhonglixian.21.b
		ai_chance = {
			base = 2
		}
		FROM = {
			country_event = {
				id = SAU_zhonglixian.24
				hours = 12
			}
		}
	}
}

# Overlord wants to transfer us to IRQ control
country_event = {
	id = SAU_zhonglixian.22
	title = SAU_zhonglixian.22.t
	desc = SAU_zhonglixian.22.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Agree
	option = {
		name = SAU_zhonglixian.22.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_war_with = SAU
			}
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.23
				hours = 1
			}
		}
		drop_cosmetic_tag = yes
		effect_tooltip = {
			SAU = {
				puppet = PAL
			}
		}
	}
	# Refuse
	option = {
		name = SAU_zhonglixian.22.b
		ai_chance = {
			base = 0
			modifier = {
				add = 1
				has_war_with = SAU
			}
		}
		FROM = {
			country_event = {
				id = SAU_zhonglixian.25
				hours = 1
			}
		}
	}
}

# FROM has agreed to transfer
country_event = {
	id = SAU_zhonglixian.23
	title = SAU_zhonglixian.23.t
	desc = SAU_zhonglixian.23.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Great
	option = {
		name = SAU_zhonglixian.23.a
		ai_chance = {
			base = 10
		}
		IF = {
			limit = {
				PAL = {
					exists = yes
					is_subject_of = ENG
				}
			}
			PAL = {
				drop_cosmetic_tag = yes
				retire_country_leader = yes
			}
			SAU = {
				puppet = PAL
			}
		}
		ELSE = {
			455 = {
				transfer_state_to = SAU
			}
		}
	}
}

# ENG has rejected transfer
country_event = {
	id = SAU_zhonglixian.24
	title = SAU_zhonglixian.24.t
	desc = SAU_zhonglixian.24.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.24.a
		ai_chance = {
			base = 10
		}
	}
	option = {
		name = SAU_zhonglixian.24.b
		ai_chance = {
			base = 10
		}
		454 = {
			add_claim_by = ROOT
		}
		add_war_support = 0.1
		FROM = {
			diplomatic_relation = {
				country = ROOT
				relation = military_access
				active = no
			}
		}
	}
}

# Puppet has rejected transfer
country_event = {
	id = SAU_zhonglixian.25
	title = SAU_zhonglixian.25.t
	desc = SAU_zhonglixian.25.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.25.a
		ai_chance = {
			base = 10
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.24
				days = 3
			}
		}
	}
}

### Iraq Wants Syria ###
country_event = {
	id = SAU_zhonglixian.26
	title = SAU_zhonglixian.26.t
	desc = SAU_zhonglixian.26.desc
	picture = GFX_report_event_ENG_middle_eastern_conflict
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.26.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 5
				has_opinion = {
					target = FROM
					value > 50
				}
			}
			modifier = {
				factor = 0
				has_war_with = FROM
			}
		}
		IF = {
			limit = {
				SYR = {
					exists = yes
					is_subject_of = ROOT
				}
			}
			SYR = {
				country_event = {
					id = SAU_zhonglixian.27
					hours = 1
				}
			}
			effect_tooltip = {
				FROM = {
					puppet = SYR
				}
			}
		}
		ELSE = {
			FROM = {
				country_event = {
					id = SAU_zhonglixian.29
					hours = 1
				}
			}
			effect_tooltip = {
				every_owned_state = {
					limit = {
						is_core_of = SYR
					}
					transfer_state_to = FROM
				}
			}
		}
	}
	# No
	option = {
		name = SAU_zhonglixian.26.b
		ai_chance = {
			base = 1
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.28
				hours = 1
			}
		}
	}
}

## FRA wants to give us to IRQ
country_event = {
	id = SAU_zhonglixian.27
	title = SAU_zhonglixian.27.t
	desc = SAU_zhonglixian.27.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.27.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_war_with = SAU
			}
		}
		effect_tooltip = {
			FROM.FROM = {
				puppet = ROOT
			}
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.29
				hours = 1
			}
		}
	}
	# No
	option = {
		name = SAU_zhonglixian.27.b
		ai_chance = {
			base = 0
			modifier = {
				add = 1
				has_war_with = SAU
			}
		}
		SAU = {
			country_event = {
				id = SAU_zhonglixian.28
				hours = 1
			}
		}
	}
}

## FRA rejects transfer of SYR
country_event = {
	id = SAU_zhonglixian.28
	title = SAU_zhonglixian.28.t
	desc = SAU_zhonglixian.28.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.28.a
		ai_chance = {
			base = 5
		}
	}
	option = {
		name = SAU_zhonglixian.28.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 5
				is_in_faction = yes
			}
			modifier = {
				factor = 10
				any_allied_country = {
					is_major = yes
				}
			}
		}
		IF = {
			limit = {
				FROM = {
					tag = SYR
				}
			}
			ROOT = {
				create_wargoal = {
					target = FROM
					type = puppet_wargoal_focus
				}
			}
		}
		ELSE = {
			every_owned_state = {
				limit = {
					is_core_of = SYR
				}
				add_claim_by = ROOT
			}
			ROOT = {
				create_wargoal = {
					target = FROM
					type = take_claimed_state
				}
			}
		}
	}
}

## FRA accepts transfer of SYR
country_event = {
	id = SAU_zhonglixian.29
	title = SAU_zhonglixian.29.t
	desc = SAU_zhonglixian.29.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Ok
	option = {
		name = SAU_zhonglixian.29.a
		ai_chance = {
			base = 10
		}
		FROM = {
			IF = {
				limit = {
					tag = SYR
				}
				overlord = {
					end_puppet = SYR
				}
				ROOT = {
					puppet = SYR
				}
				drop_cosmetic_tag = yes
			}
			ELSE = {
				every_owned_state = {
					limit = {
						is_core_of = SYR
					}
					transfer_state_to = ROOT
				}
			}
		}
	}
}

################################################################################
##########################         奥斯曼         ############################
############################################################################### 
country_event = {
	id = SAU_xuancheng_aosiman.1
	title = SAU_xuancheng_aosiman.1.t
	desc = SAU_xuancheng_aosiman.1.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.1.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.2
				days = 3
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.2
	title = SAU_xuancheng_aosiman.2.t
	desc = SAU_xuancheng_aosiman.2.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.2.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.3
				days = 20
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.3
	title = SAU_xuancheng_aosiman.3.t
	desc = SAU_xuancheng_aosiman.3.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.3.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.4
				days = 15
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.4
	title = SAU_xuancheng_aosiman.4.t
	desc = SAU_xuancheng_aosiman.4.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.4.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.5
				days = 1
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.5
	title = SAU_xuancheng_aosiman.5.t
	desc = SAU_xuancheng_aosiman.5.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.5.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.6
				days = 5
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.6
	title = SAU_xuancheng_aosiman.6.t
	desc = SAU_xuancheng_aosiman.6.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.6.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.7
				days = 15
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.7
	title = SAU_xuancheng_aosiman.7.t
	desc = SAU_xuancheng_aosiman.7.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.7.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.8
				days = 20
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.8
	title = SAU_xuancheng_aosiman.8.t
	desc = SAU_xuancheng_aosiman.8.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.8.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.9
				days = 30
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.9
	title = SAU_xuancheng_aosiman.9.t
	desc = SAU_xuancheng_aosiman.9.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_1
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.9.a
		ai_chance = {
			base = 5
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.10
				days = 5
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.10
	title = SAU_xuancheng_aosiman.10.t
	desc = SAU_xuancheng_aosiman.10.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_1
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.10.a
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.11
				days = 20
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.11
	title = SAU_xuancheng_aosiman.11.t
	desc = SAU_xuancheng_aosiman.11.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_1
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.11.a
		custom_effect_tooltip = zuizhong_jieshu_tt
		set_country_flag = SAU_yingqu_dulusaiwaer_flag
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.12
	title = SAU_xuancheng_aosiman.12.t
	desc = SAU_xuancheng_aosiman.12.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.12.a
		ai_chance = {
			base = 5
		}
		custom_effect_tooltip = geiyu_buchang_halifa_tt
		hidden_effect = {
			TUR = {
				retire_character = TUR_abdulmejid_ii
				retire_character = TUR_durrushehvar_i
			}
			country_event = {
				id = SAU_xuancheng_aosiman.13
				days = 5
			}
			country_event = {
				id = SAU_xuancheng_aosiman.15
				days = 40
			}
			country_event = {
				id = SAU_xuancheng_aosiman.16
				days = 20
			}
		}
		add_ideas = SAU_abdulmejid_ii
		set_country_flag = SAU_xunuo_aosiman_flag
		custom_effect_tooltip = available_political_advisor
		show_ideas_tooltip = SAU_durrushehvar_i
		custom_effect_tooltip = CHL_skip_one_line_tt
		complete_national_focus = Saudi_Arabia_laxide_xiandai_aosiman_zhengfu
	}
	option = {
		name = SAU_xuancheng_aosiman.12.b
		ai_chance = {
			base = 5
		}
		custom_effect_tooltip = gen_gongzhu_siben_tt
		TUR = {
			retire_character = TUR_abdulmejid_ii
			retire_character = TUR_durrushehvar_i
		}
		hidden_effect = {
			country_event = {
				id = SAU_xuancheng_aosiman.13
				days = 5
			}
			country_event = {
				id = SAU_xuancheng_aosiman.16
				days = 20
			}
		}
		add_ideas = SAU_durrushehvar_i
		set_country_flag = SAU_durrushehvar_i_neige_flag
		complete_national_focus = Saudi_Arabia_laxide_xiandai_aosiman_zhengfu
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.13
	title = SAU_xuancheng_aosiman.13.t
	desc = SAU_xuancheng_aosiman.13.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.13.a
		ai_chance = {
			base = 10
		}
		TUR = {
			add_opinion_modifier = {
				target = SAU
				modifier = large_decrease
			}
		}
		TUR = {
			complete_national_focus = TUR_reconfigure_our_foreign_policy
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.13.b
		ai_chance = {
			base = 3
		}
		TUR = {
			add_opinion_modifier = {
				target = SAU
				modifier = large_decrease
			}
		}
		TUR = {
			complete_national_focus = TUR_continue_to_prioritise_balkan_integrity
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.14
	title = SAU_xuancheng_aosiman.14.t
	desc = SAU_xuancheng_aosiman.14.desc
	picture = GFX_report_event_SAU_xuancheng_aosiman_diguo
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.14.a
		ai_chance = {
			base = 10
		}
		add_ideas = SAU_xuancheng_aosiman_wenhao
		TUR = {
			add_opinion_modifier = {
				target = SAU
				modifier = large_decrease
			}
		}
		IRQ = {
			add_opinion_modifier = {
				target = SAU
				modifier = medium_decrease
			}
		}
		JOR = {
			add_opinion_modifier = {
				target = SAU
				modifier = medium_decrease
			}
		}
		PAL = {
			add_opinion_modifier = {
				target = SAU
				modifier = medium_decrease
			}
		}
		SYR = {
			add_opinion_modifier = {
				target = SAU
				modifier = medium_decrease
			}
		}
		LEB = {
			add_opinion_modifier = {
				target = SAU
				modifier = medium_decrease
			}
		}
		ENG = {
			add_opinion_modifier = {
				target = SAU
				modifier = small_decrease
			}
		}
		add_country_leader_trait = {
			trait = AFG_caliph_trait
		}
		hidden_effect = {
			complete_national_focus = Saudi_Arabia_laxide_xiandai_aosiman_zhengfu
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.15
	title = SAU_xuancheng_aosiman.15.t
	desc = SAU_xuancheng_aosiman.15.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_2
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.15.a
		ai_chance = {
			base = 10
		}
		TUR = {
			if = {
				limit = {
					has_character = TUR_fakhri_pasha
				}
				remove_advisor_role = {
					character = TUR_fakhri_pasha
					slot = army_chief
				}
				add_advisor_role = {
					character = TUR_fakhri_pasha
					advisor = {
						slot = army_chief
						cost = 100
						idea_token = TUR_fakhri_pasha_sau
						traits = {
							army_chief_offensive_2
						}
					}
				}
				TUR_fakhri_pasha = {
					set_nationality = SAU
				}
			}
		}
		TUR = {
			if = {
				limit = {
					has_character = TUR_ali_ihsan_sabis
				}
				remove_advisor_role = {
					character = TUR_ali_ihsan_sabis
					slot = high_command
				}
				add_advisor_role = {
					character = TUR_ali_ihsan_sabis
					advisor = {
						slot = high_command
						cost = 100
						idea_token = TUR_ali_ihsan_sabis_sau
						traits = {
							army_logistics_2
						}
					}
				}
				TUR_ali_ihsan_sabis = {
					set_nationality = SAU
				}
			}
		}
		TUR = {
			if = {
				limit = {
					has_character = TUR_ahmet_fevzi_pasha
				}
				remove_advisor_role = {
					character = TUR_ahmet_fevzi_pasha
				}
				add_advisor_role = {
					character = TUR_ahmet_fevzi_pasha
					advisor = {
						slot = army_chief
						cost = 100
						idea_token = TUR_ahmet_fevzi_pasha_sau
						traits = {
							army_chief_planning_2
						}
					}
				}
				TUR_ahmet_fevzi_pasha = {
					set_nationality = SAU
				}
			}
		}
		TUR = {
			if = {
				limit = {
					has_character = TUR_refet_pasha
				}
				remove_advisor_role = {
					character = TUR_refet_pasha
				}
				add_advisor_role = {
					character = TUR_refet_pasha
					advisor = {
						slot = high_command
						cost = 100
						idea_token = TUR_refet_pasha_sau
						traits = {
							army_regrouping_2
						}
					}
				}
				TUR_refet_pasha = {
					set_nationality = SAU
				}
			}
		}
		TUR = {
			if = {
				limit = {
					has_character = TUR_mehmet_esat_pasha
				}
				remove_advisor_role = {
					character = TUR_mehmet_esat_pasha
				}
				add_advisor_role = {
					character = TUR_mehmet_esat_pasha
					advisor = {
						slot = army_chief
						cost = 100
						idea_token = TUR_mehmet_esat_pasha_sau
						traits = {
							army_chief_drill_2
						}
					}
				}
				TUR_mehmet_esat_pasha = {
					set_nationality = SAU
				}
			}
		}
		set_country_flag = TUR_PROVISIONARY_flag
	}
	option = {
		name = SAU_xuancheng_aosiman.15.b
		ai_chance = {
			base = 3
		}
		set_country_flag = aosiman_bahuangpai_qianfu_flag
		custom_effect_tooltip = aosiman_jiangling_qianfu_tt
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.16
	title = SAU_xuancheng_aosiman.16.t
	desc = SAU_xuancheng_aosiman.16.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_1
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.16.a
		ai_chance = {
			base = 5
		}
		add_timed_idea = {
			idea = SAU_huangjia_hunli
			days = 100
		}
	}
}

#与约旦边境冲突的三种结果
country_event = {
	id = SAU_xuancheng_aosiman.17
	title = SAU_xuancheng_aosiman.17.t
	desc = SAU_xuancheng_aosiman.17.desc
	picture = GFX_report_event_france_victory_syria
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.17.a
		SAU = {
			set_autonomy = {
				target = JOR
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
		army_experience = 50		#陆军经验
		ENG = {
			country_event = {
				id = SAU_xuancheng_aosiman.23
				hours = 15
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.18
	title = SAU_xuancheng_aosiman.18.t
	desc = SAU_xuancheng_aosiman.18.desc
	picture = GFX_report_event_SAU_yihewan_qizhi_event
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.18.a
		add_stability = -0.05		#添加稳定度
		add_war_support = -0.05		#添加战争支持度
		army_experience = 10		#陆军经验
		add_political_power = -50		#添加政治点数
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.19
	title = SAU_xuancheng_aosiman.19.t
	desc = SAU_xuancheng_aosiman.19.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_3
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.19.a
		add_stability = 0.05		#添加稳定度
		add_war_support = 0.05		#添加战争支持度
		army_experience = 20		#陆军经验
	}
}

#要求旧奥斯曼领土臣服
country_event = {
	id = SAU_xuancheng_aosiman.20
	title = SAU_xuancheng_aosiman.20.t
	desc = SAU_xuancheng_aosiman.20.desc
	picture = GFX_report_event_SOV_tank_column
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.20.a
		ai_chance = {
			base = 25
			modifier = {
				threat > 20
				factor = 1.5
			}
			modifier = {
				threat > 40
				factor = 1.5
			}
			modifier = {
				threat > 60
				factor = 2
			}
			modifier = {
				has_non_aggression_pact_with = SAU
				factor = 1.4
			}
			modifier = {
				is_in_faction = no
				factor = 2.5
			}
			modifier = {
				is_in_faction = yes
				factor = 0.8
			}
			modifier = {
				has_opinion = {
					target = SAU
					value > 49
				}
				factor = 1.5
			}
			modifier = {
				strength_ratio = {
					tag = SAU
					ratio < 1
				}
				factor = 2
			}
		}
		SAU = {
			country_event = {
				id = SAU_xuancheng_aosiman.21
				hours = 6
			}
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.20.b
		ai_chance = {
			base = 30
			modifier = {
				is_in_faction = yes
				factor = 2				#we're good thanks
			}
			modifier = {
				SAU = {
					is_ai = yes
				}
				factor = 0
			}
		}
		SAU = {
			country_event = {
				id = SAU_xuancheng_aosiman.22
				hours = 6
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.21
	title = SAU_xuancheng_aosiman.21.t
	desc = SAU_xuancheng_aosiman.21.desc
	picture = GFX_report_event_SOV_tank_column
	is_triggered_only = yes
	option = {
		name = WW_hungary.56.a
		SAU = {
			set_autonomy = {
				target = FROM
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
		add_war_support = 0.1		#添加战争支持度
		army_experience = 25		#陆军经验
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.22
	title = SAU_xuancheng_aosiman.22.t
	desc = SAU_xuancheng_aosiman.22.desc
	picture = GFX_report_event_SAU_kaishidui_dulusaiwaer_zhuiqui_3
	is_triggered_only = yes
	option = {
		name = WW_hungary.56.a
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
		add_war_support = 0.05		#添加战争支持度
	}
}

#英国对我们占领约旦的反应
country_event = {
	id = SAU_xuancheng_aosiman.23
	title = SAU_xuancheng_aosiman.23.t
	desc = SAU_xuancheng_aosiman.23.desc
	picture = GFX_report_event_journalists_speech
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.23.a
		add_political_power = -25
		ai_chance = {
			base = 10
			modifier = {
				factor = 10
				FROM = {
					has_government = ROOT
				}
			}
			modifier = {
				factor = 0.1
				FROM = {
					is_enemy_ideology = yes
				}
			}
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.23.b
		add_opinion_modifier = {
			target = FROM
			modifier = embargo
		}
		FROM = {
			send_embargo = ROOT
			custom_effect_tooltip = embargo_relation_tt
			country_event = {
				days = 1
				id = SAU_xuancheng_aosiman.24
			}
		}
		ai_chance = {
			base = 80
			modifier = {
				factor = 0.5
				has_war = yes
			}
			modifier = {
				factor = 0
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.23.c
		add_stability = -0.1
		add_war_support = -0.1
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
		add_opinion_modifier = {
			target = FROM
			modifier = embargo
		}
		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = embargo
			}
			country_event = {
				days = 1
				id = SAU_xuancheng_aosiman.24
			}
		}
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				has_stability < 0.4
			}
			modifier = {
				factor = 0
				has_war_support < 0.4
			}
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
			modifier = {
				factor = 0
				has_government = communism
				FROM = {
					has_government = communism
				}
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.24
	title = SAU_xuancheng_aosiman.24.t
	desc = SAU_xuancheng_aosiman.24.desc
	picture = GFX_report_event_france_victory_syria
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.24.a
		add_stability = -0.05		#添加稳定度
		add_war_support = 0.05		#添加战争支持度
	}
}

#奥斯曼将领潜伏，我们进攻土耳其时候他们造反
country_event = {
	id = SAU_xuancheng_aosiman.25
	title = SAU_xuancheng_aosiman.25.t
	desc = SAU_xuancheng_aosiman.25.desc
	picture = GFX_report_event_tur_sultan_and_pashas
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.25.a
		TUR = {
			set_country_flag = TUR_PROVISIONARY_flag
			set_country_flag = TUR_ottoman_officers_invited_back
			start_civil_war = {
				ruling_party = neutrality
				ideology = democratic
				size = 0.6
				capital = 797
				keep_unit_leaders_trigger = {
					NOT = {
						has_trait = trait_TUR_kemalist_champion
					}
				}
				add_ideas = SAU_aosiman_baohuangpan_neiiluan
			}
			hidden_effect = {
				add_country_leader_role = {
					promote_leader = yes
					character = TUR_refet_pasha
					country_leader = {
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							crown_regent
						}
					}
				}
				division_template = {
					name = "Ottoman Royal Guard"
					force_allow_recruiting = yes
					division_names_group = SAU_INF_01
					priority = 0
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 0
							y = 3
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
						infantry = {
							x = 1
							y = 2
						}
						infantry = {
							x = 1
							y = 3
						}
						artillery_brigade = {
							x = 2
							y = 0
						}
					}
					support = {
						artillery = {
							x = 0
							y = 0
						}
						recon = {
							x = 0
							y = 1
						}
					}
				}
				random_controlled_state = {
					create_unit = {
						division = "name = \"Ottoman Royal Guard\" division_template = \"Ottoman Royal Guard\" start_experience_factor = 0.1 start_equipment_factor = 1"
						owner = TUR
						count = 8
					}
				}
			}
		}
		SAU = {
			set_autonomy = {
				target = TUR
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
	}
}

#索取多布罗加
country_event = {
	id = SAU_xuancheng_aosiman.26
	title = SAU_xuancheng_aosiman.26.t
	desc = SAU_xuancheng_aosiman.26.desc
	picture = GFX_report_event_election_vote
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.26.a
		ai_chance = {
			base = 25
			modifier = {
				threat > 20
				factor = 1.5
			}
			modifier = {
				threat > 40
				factor = 1.5
			}
			modifier = {
				threat > 60
				factor = 2
			}
			modifier = {
				has_non_aggression_pact_with = SAU
				factor = 1.4
			}
			modifier = {
				is_in_faction = no
				factor = 2.5
			}
			modifier = {
				is_in_faction = yes
				factor = 0.8
			}
			modifier = {
				has_opinion = {
					target = SAU
					value > 49
				}
				factor = 1.5
			}
			modifier = {
				strength_ratio = {
					tag = SAU
					ratio < 1
				}
				factor = 2
			}
		}
		SAU = {
			country_event = {
				id = SAU_xuancheng_aosiman.27
				hours = 5
			}
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.26.b
		ai_chance = {
			base = 30
			modifier = {
				is_in_faction = yes
				factor = 2				#we're good thanks
			}
			modifier = {
				SAU = {
					is_ai = yes
				}
				factor = 0
			}
		}
		SAU = {
			country_event = {
				id = SAU_xuancheng_aosiman.28
				hours = 5
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.27
	title = SAU_xuancheng_aosiman.27.t
	desc = SAU_xuancheng_aosiman.27.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.27.a
		transfer_state = 971
		transfer_state = 77
		SAU = {
			add_opinion_modifier = {
				target = FROM
				modifier = small_increase
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.28
	title = SAU_xuancheng_aosiman.28.t
	desc = SAU_xuancheng_aosiman.28.desc
	picture = GFX_report_event_generic_panzer_attack
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.28.a
		every_state = {
			limit = {
				OR = {
					state = 971
					state = 77
				}
			}
			add_claim_by = ROOT
			add_core_of = ROOT
		}
		create_wargoal = {
			target = FROM
			type = take_core_state
		}
	}
}

#罗马尼亚最后通牒
country_event = {
	id = SAU_xuancheng_aosiman.29
	title = SAU_xuancheng_aosiman.29.t
	desc = SAU_xuancheng_aosiman.29.desc
	picture = GFX_report_SAU_kaishidui_dulusaiwaer_zhuiqui_5
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.29.a
		ai_chance = {
			base = 25
			modifier = {
				threat > 20
				factor = 1.5
			}
			modifier = {
				threat > 40
				factor = 1.5
			}
			modifier = {
				threat > 60
				factor = 2
			}
			modifier = {
				has_non_aggression_pact_with = SAU
				factor = 1.4
			}
			modifier = {
				is_in_faction = no
				factor = 2.5
			}
			modifier = {
				is_in_faction = yes
				factor = 0.8
			}
			modifier = {
				has_opinion = {
					target = SAU
					value > 49
				}
				factor = 1.5
			}
			modifier = {
				strength_ratio = {
					tag = SAU
					ratio < 1
				}
				factor = 2
			}
		}
		SAU = {
			country_event = {
				id = SAU_xuancheng_aosiman.30
				hours = 5
			}
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.29.a
		ai_chance = {
			base = 30
			modifier = {
				is_in_faction = yes
				factor = 2				#we're good thanks
			}
			modifier = {
				SAU = {
					is_ai = yes
				}
				factor = 0
			}
		}
		SAU = {
			country_event = {
				id = SAU_xuancheng_aosiman.31
				hours = 5
			}
		}
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.30
	title = SAU_xuancheng_aosiman.30.t
	desc = SAU_xuancheng_aosiman.30.desc
	picture = GFX_report_SAU_kaishidui_dulusaiwaer_zhuiqui_5
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.30.a
		hidden_effect = {
			ROM = {
				release = TRA
			}
		}
		SAU = {
			set_autonomy = {
				target = ROM
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
			set_autonomy = {
				target = TRA
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
		add_war_support = 0.05
		add_political_power = 50
		army_experience = 10
	}
}

country_event = {
	id = SAU_xuancheng_aosiman.31
	title = SAU_xuancheng_aosiman.31.t
	desc = SAU_xuancheng_aosiman.31.desc
	picture = GFX_report_SAU_kaishidui_dulusaiwaer_zhuiqui_5
	is_triggered_only = yes
	option = {
		name = SAU_xuancheng_aosiman.31.a
		every_state = {
			limit = {
				is_core_of = ROM
			}
			add_claim_by = ROOT
		}
		create_wargoal = {
			target = ROM
			type = puppet_wargoal_focus
		}
	}
}

#奥斯曼皇室突然4了
country_event = {
	id = SAU_xuancheng_aosiman.32
	title = SAU_xuancheng_aosiman.32.t
	desc = SAU_xuancheng_aosiman.32.desc
	picture = GFX_report_event_tur_upheaval_celebration
	trigger = {
		original_tag = SAU
		has_country_flag = SAU_xunuo_aosiman_flag
		has_full_control_of_state = 797
	}
	fire_only_once = yes
	immediate = {
		hidden_effect = {
			remove_ideas = TUR_abdulmejid_ii
			retire_character = TUR_abdulmejid_ii
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.32.a
		add_country_leader_role = {
			character = TUR_durrushehvar_i
			country_leader = {
				expire = "1965.1.1"
				ideology = despotism
				traits = {
					sultana
					calipha
				}
			}
			promote_leader = yes
		}
		set_country_flag = TUR_durrushehvar_i_shi_lingxiu_flag
	}
	option = {
		name = SAU_xuancheng_aosiman.32.b
		add_country_leader_trait = {
			trait = calipha
		}
	}
}

#土耳其库尔德人暴动
country_event = {
	id = SAU_xuancheng_aosiman.33
	title = SAU_xuancheng_aosiman.33.t
	desc = SAU_xuancheng_aosiman.33.desc
	picture = GFX_report_event_generic_rally2
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			every_country = {
				limit = {
					original_tag = TUR
				}
				every_owned_state = {
					limit = {
						is_core_of = KUR
					}
					KUR = {
						transfer_state = PREV
					}
				}
			}
			every_state = {
				limit = {
					is_owned_by = KUR
				}
				TUR = {
					delete_unit = {
						state = PREV
						disband = no
					}
				}
			}
			KUR = {
				division_template = {
					name = "basmachi Resistance Fighters"
					is_locked = yes
					priority = 1
					template_counter = 3
					regiments = {
						infantry = {
							x = 0
							y = 0
						}
						infantry = {
							x = 0
							y = 1
						}
						infantry = {
							x = 0
							y = 2
						}
						infantry = {
							x = 1
							y = 0
						}
						infantry = {
							x = 1
							y = 1
						}
					}
					is_locked = yes
				}
				random_owned_state = {
					limit = {
						is_core_of = KUR
					}
					create_unit = {
						division = "name = \"basmachi Resistance Fighters\" division_template = \"basmachi Resistance Fighters\" start_experience_factor = 0.05 start_equipment_factor = 0.95"
						owner = KUR
						count = 7
					}
				}
			}
			KUR = {
				set_party_name = {
					ideology = neutrality
					long_name = IRQ_kurd_neutrality_party_long
					name = IRQ_kurd_neutrality_party
				}
				add_country_leader_role = {
					character = KUR_ishan_nuri
					promote_leader = yes
					country_leader = {
						ideology = despotism
						expire = "1965.1.1.1"
						traits = {
							experienced_insurgent
						}
					}
				}
			}
		}
	}
	option = {
		name = SAU_xuancheng_aosiman.33.a
		KUR = {
			add_named_threat = {
				threat = -1
				name = indepence_war_threat
			}
			declare_war_on = {
				target = TUR
				type = independence_wargoal
			}
		}
		SAU = {
			set_autonomy = {
				target = KUR
				autonomy_state = aosiman_xingshengzhi
				end_wars = no
				end_civil_wars = no
			}
		}
		every_owned_state = {
			limit = {
				is_owned_and_controlled_by = KUR
				has_dynamic_modifier = {
					modifier = KUR_resistance_modifier
				}
			}
			remove_dynamic_modifier = {
				modifier = KUR_resistance_modifier
			}
		}
	}
}

# Iraq demands western territory
country_event = {
	id = SAU_xuancheng_aosiman.34
	title = SAU_xuancheng_aosiman.34.t
	desc = SAU_xuancheng_aosiman.34.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# We will defend it
	option = {
		name = SAU_xuancheng_aosiman.34.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 5
				OR = {
					AND = {
						is_in_faction = yes
						NOT = {
							is_in_faction_with = FROM
						}
					}
					is_subject = yes
				}
			}
			modifier = {
				factor = 0.7
				is_in_faction_with = FROM
			}
			modifier = {
				factor = 0
				is_subject_of = FROM
			}
			modifier = {
				factor = 0.5
				AND = {
					has_war_with_major = yes
					is_in_faction = no
				}
			}
		}
		add_war_support = 0.1
		FROM = {
			country_event = {
				id = SAU_xuancheng_aosiman.36
				days = 3
			}
		}
	}
	# Give up
	option = {
		name = SAU_xuancheng_aosiman.34.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 0
				has_war_with = FROM
			}
			modifier = {
				factor = 10
				fighting_army_strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}
		}
		FROM = {
			country_event = {
				id = SAU_xuancheng_aosiman.35
				days = 3
			}
		}
		effect_tooltip = {
			IF = {
				limit = {
					413 = {
						is_owned_and_controlled_by = ROOT
					}
				}
				413 = {
					transfer_state_to = FROM
				}
			}
			IF = {
				limit = {
					421 = {
						is_owned_and_controlled_by = ROOT
					}
				}
				421 = {
					transfer_state_to = FROM
				}
			}
		}
	}
}

# Iran agrees to transfer territory
country_event = {
	id = SAU_xuancheng_aosiman.35
	title = SAU_xuancheng_aosiman.35.t
	desc = SAU_xuancheng_aosiman.35.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# great
	option = {
		name = SAU_xuancheng_aosiman.35.a
		ai_chance = {
			base = 10
		}
		IF = {
			limit = {
				413 = {
					is_owned_and_controlled_by = FROM
				}
			}
			413 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				1000 = {
					is_owned_and_controlled_by = FROM
				}
			}
			1000 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				419 = {
					is_owned_and_controlled_by = FROM
				}
			}
			419 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				421 = {
					is_owned_and_controlled_by = FROM
				}
			}
			421 = {
				transfer_state_to = ROOT
			}
		}
		IF = {
			limit = {
				1001 = {
					is_owned_and_controlled_by = FROM
				}
			}
			1001 = {
				transfer_state_to = ROOT
			}
		}
	}
}

# Iran refuses to transfer territory
country_event = {
	id = SAU_xuancheng_aosiman.36
	title = SAU_xuancheng_aosiman.36.t
	desc = SAU_xuancheng_aosiman.36.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# Go to war with Iran
	option = {
		name = SAU_xuancheng_aosiman.36.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0.5
				is_in_faction = no
			}
			modifier = {
				factor = 0.1
				is_in_faction = no
				FROM = {
					is_in_faction = yes
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_war_with = ENG
					has_war_with = SOU
				}
			}
		}
		create_wargoal = {
			target = FROM
			type = take_claimed_state
		}
	}
	# Give up
	option = {
		name = SAU_xuancheng_aosiman.36.b
		ai_chance = {
			base = 2
		}
		FROM = {
			country_event = {
				id = SAU_xuancheng_aosiman.37
				days = 14
				random_days = 4
			}
		}
	}
}

# Iraq backs down
country_event = {
	id = SAU_xuancheng_aosiman.37
	title = SAU_xuancheng_aosiman.37.t
	desc = SAU_xuancheng_aosiman.37.desc
	picture = GFX_report_event_generic_sign_treaty2
	is_triggered_only = yes
	# ok
	option = {
		name = SAU_xuancheng_aosiman.37.a
		ai_chance = {
			base = 10
		}
		add_stability = 0.05
		add_political_power = 50
	}
}

#################################################################################
##############################伊赫万  ############################################
#################################################################################
country_event = {
	id = SAU_yihewan_beiduyin.2
	title = SAU_yihewan_beiduyin.2.t
	desc = SAU_yihewan_beiduyin.2.desc
	picture = GFX_report_event_SAU_yihewan_event_1
	fire_only_once = yes
	trigger = {
		original_tag = SAU
		date > 1936.9.16
		has_completed_focus = Saudi_Arabia_aertaweiya_huiyi_de_huixiang
	}
	option = {
		name = SAU_yihewan_beiduyin.2.a
		set_country_flag = SAU_yihewan_lingxiu_chusheng_flag
	}
}

country_event = {
	id = SAU_yihewan_beiduyin.3
	title = SAU_yihewan_beiduyin.3.t
	desc = SAU_yihewan_beiduyin.3.desc
	picture = GFX_report_event_SAU_yihewan_event_1
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = SAU_yihewan_beiduyin.3.a
		add_stability = 0.1		#添加稳定度
		add_country_leader_role = {
			character = SAU_zhuhaiman_aotaibi_yihewan
			promote_leader = yes
			country_leader = {
				ideology = fascism_ideology
				traits = {
					SAU_tianjiang_zhizi
				}
				expire = "1965.1.1.1"
				id = -1
			}
		}
		hidden_effect = {
			add_country_leader_role = {
				character = SAU_zhuhaiman_aotaibi_yihewan
				promote_leader = yes
				country_leader = {
					ideology = despotism
					traits = {
						SAU_tianjiang_zhizi
					}
					expire = "1965.1.1.1"
					id = -1
				}
			}
		}
	}
	option = {
		name = SAU_yihewan_beiduyin.3.b
		add_war_support = 0.05		#添加稳定度
		add_country_leader_role = {
			character = SAU_yihewan_dierge_lingdaoren
			promote_leader = yes
			country_leader = {
				ideology = fascism_ideology
				traits = {
					SAU_yihewan_xiongdihui_tezhi
				}
				expire = "1965.1.1.1"
				id = -1
			}
		}
		hidden_effect = {
			add_country_leader_role = {
				character = SAU_wulima_weiyuanhui_leader
				promote_leader = yes
				country_leader = {
					ideology = despotism
					traits = {
						SAU_wulima_huiyi
					}
					expire = "1965.1.1.1"
					id = -1
				}
			}
		}
	}
}

country_event = {
	id = SAU_yihewan_beiduyin.4
	title = SAU_yihewan_beiduyin.4.t
	desc = SAU_yihewan_beiduyin.4.desc
	picture = GFX_report_event_SAU_yihewan_event_2
	is_triggered_only = yes
	option = {
		name = SAU_yihewan_beiduyin.4.a
		add_manpower = 100
		army_experience = 10		#陆军经验
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 100
			producer = FROM
		}
	}
}

country_event = {
	id = SAU_yihewan_beiduyin.5
	title = SAU_yihewan_beiduyin.5.t
	desc = SAU_yihewan_beiduyin.5.desc
	picture = GFX_report_event_SAU_yihewan_event_2
	is_triggered_only = yes
	option = {
		name = SAU_yihewan_beiduyin.5.a
		add_manpower = 200
		army_experience = 25		#陆军经验
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 300
			producer = FROM
		}
	}
}

country_event = {
	id = SAU_yihewan_beiduyin.6
	title = SAU_yihewan_beiduyin.6.t
	desc = SAU_yihewan_beiduyin.6.desc
	picture = GFX_report_event_SAU_yihewan_event_2
	is_triggered_only = yes
	option = {
		name = SAU_yihewan_beiduyin.6.a
		add_manpower = -200
		army_experience = -15		#陆军经验
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = -100
		}
	}
}

country_event = {
	id = SAU_yihewan_beiduyin.7
	title = SAU_yihewan_beiduyin.7.t
	desc = SAU_yihewan_beiduyin.7.desc
	picture = GFX_report_event_SAU_yihewan_event_2s
	is_triggered_only = yes
	option = {
		name = SAU_yihewan_beiduyin.7.a
		add_manpower = 300
		army_experience = 75		#陆军经验
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 600
			producer = FROM
		}
		every_state = {
			limit = {
				has_state_flag = FROM_beilueduo_flag
				OR = {
					industrial_complex > 0
					arms_factory > 0
				}
			}
			if = {
				limit = {
					industrial_complex > 0
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
				SAU = {
					THIS.capital_scope = {
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}
			else_if = {
				limit = {
					arms_factory > 0
				}
				remove_building = {
					type = arms_factory
					level = 1
				}
			}
			damage_units = {
				state = THIS
				org_damage = 0.25
				str_damage = 0.1
				ratio = yes
				army = yes
			}
		}
	}
}

country_event = {
	id = SAU_yihewan_beiduyin.8
	title = SAU_yihewan_beiduyin.8.t
	desc = SAU_yihewan_beiduyin.8.desc
	picture = GFX_report_event_SAU_yihewan_event_2
	is_triggered_only = yes
	option = {
		name = SAU_yihewan_beiduyin.8.a
		SAU = {
			random_list = {
				70 = {
					country_event = {
						id = SAU_yihewan_beiduyin.4
						hours = 5
					}
				}
				47 = {
					country_event = {
						id = SAU_yihewan_beiduyin.5
						hours = 5
					}
				}
				26 = {
					country_event = {
						id = SAU_yihewan_beiduyin.6
						hours = 5
					}
				}
				15 = {
					country_event = {
						id = SAU_yihewan_beiduyin.7
						hours = 5
					}
				}
			}
		}
		ROOT = {
			add_opinion_modifier = {
				target = SAU
				modifier = medium_decrease
			}
		}
	}
}
