﻿add_namespace = ufa


#svalit iz voini kak dogovarivalis v evente ufa.15
country_event = {
	id = ufa.1
	title = ufa.1.t
	desc = ufa.1.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {
		has_global_flag = zuf_dogovor_so_slaianami
		tag = ZUF		
		ZUF = {			
			is_in_faction_with = ZPE
			is_in_faction_with = ZOR
			has_war_with = ZSL							
			has_civil_war = no
			has_government = neutrality
			NOT = {
				has_global_flag = zfu_kagan_dies
			}
		}
		ZPE = {
			has_war_with = ZSL
		}
	}
	mean_time_to_happen = { days = 4 }
	fire_only_once = yes
	#Surrender 
	option = {
		name = ufa.1.a
		ai_chance = {
			base = 15
		}
		add_stability = -0.1
		add_war_support = -0.2		
		custom_effect_tooltip = ufa.1.a_tt		
		ZUF = {
			leave_faction = yes
		}
		ZSL = {
			if = {
				limit = {  has_war_with = ZUF  }
				white_peace = {
					tag = ZUF 
					message = ZUF_agree_peace 
				} 
			}
			country_event = { id = ufa.2 }				
		}
		every_other_country = {
				limit = {
						has_war_with = ZUF
						is_in_faction_with = ZSL
				}
				white_peace = {
					tag = ZUF 
					message = ZUF_agree_peace 
				}
			}
		ZPE = {
			add_opinion_modifier = {
				target = ZUF
				modifier = predateli_100
			}
		}
		ZOR = {
			add_opinion_modifier = {
				target = ZUF
				modifier = predateli_100
			}
		}
		add_timed_idea = {
			idea = zuf_pozorny_mir
			days = 1000
		}
	}
	#Never give up!
	option = {
		name = ufa.1.b
		ai_chance = {
			base = 1			
		}
		add_stability = 0.1
		add_war_support = 0.1
		ZSL = {
			country_event = { id = ufa.3 }
		}
	}
}

#to zsl    ufa sderjala slovo i livnyla iz voini
country_event = {
	id = ufa.2
	title = ufa.2.t
	desc = ufa.2.d
	picture = GFX_report_event_finnish_soldiers_snow
	
	is_triggered_only = yes

	#Accept surrender
	option = {
		name = ufa.2.a
		effect_tooltip = {
			ZUF = {
				leave_faction = yes
			}
			if = {
				limit = {  has_war_with = ZUF  }
				white_peace = {
					tag = ZUF 
					message = ZUF_agree_peace 
				} 
			}
			every_other_country = {
				limit = {
						has_war_with = ZUF
						is_in_faction_with = ZSL
				}
				white_peace = {
					tag = ZUF 
					message = ZUF_agree_peace 
				}
			}
			ZPE = {
				add_opinion_modifier = {
					target = ZUF
					modifier = predateli_100
				}
			}
			ZOR = {
				add_opinion_modifier = {
					target = ZUF
					modifier = predateli_100
				}
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.628 }
			ZUF = {
				country_event = { days = 7 id = ufa.19 }
			}			
		}
	}
}

#ufa nas obmanula
country_event = {
	id = ufa.3
	title = ufa.3.t
	desc = ufa.3.d
	picture = GFX_report_event_finnish_soldiers_snow	
	is_triggered_only = yes
	option = {
		name = ufa.3.a
		add_state_claim = 651
		add_state_claim = 573
		add_state_claim = 582
		add_state_claim = 652
	}
}

#zfu smena vlasti v strane
country_event = {
	id = ufa.4
	title = ufa.4.t
	desc = ufa.4.d
	picture = GFX_report_event_finnish_soldiers_snow	
	is_triggered_only = yes
	option = {
		name = ufa.4.a
		set_country_flag = zfu_krizis_vo_vlasti	
		set_global_flag = zfu_kagan_dies
		kill_country_leader = yes
		complete_national_focus = zuf_krizis_vlasti
		set_politics = {	
			ruling_party = neutrality
			last_election = "1983.7.1"
			election_frequency = 48
			elections_allowed = no
		}
		set_popularities = {
			democratic = 10
			neutrality = 80
			fascism = 10
			communism = 0
		}
		# create_country_leader = {
			# name = "Курултай"
			# desc = "zfu_kurultai_decll"
			# picture = "kurultai.tga"
			# expire = "1965.1.1"
			# ideology = despotism
			# traits = {
				
			# }
		# }
		add_country_leader_role = {
			character = ZUF_kurultai
			country_leader = {
				desc = "zfu_kurultai_decll"
				ideology = despotism
				traits = {  }
				expire = "2020.3.1.1"
			}	
			promote_leader = yes 
		}
		add_ideas = zuf_kurultai_krisis
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.633 }
		}
	}
}

#zuf_ocherednoi_kongress_narodov_khalifata
country_event = {
	id = ufa.5
	title = ufa.5.t
	desc = ufa.5.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = ufa.5.a
		add_stability = 0.1
		add_political_power = 50
		army_experience = 5
	}
}

#zuf_voenn_konsultats_s_ordoi
country_event = {
	id = ufa.6
	title = ufa.6.t
	desc = ufa.6.d
	picture = GFX_report_event_finnish_soldiers_snow	
	is_triggered_only = yes
	option = {
		name = ufa.6.a
		add_opinion_modifier = {
			target = ZUF
			modifier = voennoe_sotrudnichestvo_20
		}
		army_experience = 5
		add_doctrine_cost_reduction = {
			name = land_doc_bonus
			cost_reduction = 0.25
			uses = 1
			category = land_doctrine
		}
		effect_tooltip = {
			ZUF = {
				army_experience = 5
				add_doctrine_cost_reduction = {
					name = land_doc_bonus
					cost_reduction = 0.25
					uses = 1
					category = land_doctrine
				}
			}
		}
		hidden_effect = {
			ZUF = {
				country_event = { days = 4 id = ufa.7 }
			}
		}
		
	}
}
#zuf_ocherednoi_kongress_narodov_khalifata otvet
country_event = {
	id = ufa.7
	title = ufa.7.t
	desc = ufa.7.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = ufa.7.a
		add_opinion_modifier = {
			target = ZOR
			modifier = voennoe_sotrudnichestvo_20
		}
		army_experience = 5
		add_doctrine_cost_reduction = {
			name = land_doc_bonus
			cost_reduction = 0.25
			uses = 1
			category = land_doctrine
		}
	}
}
#zuf_edinyi_standart_voorujeniya otvet
country_event = {
	id = ufa.8
	title = ufa.8.t
	desc = ufa.8.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = ufa.8.a	
		effect_tooltip = {
			add_ideas = zuf_standart_voorujenia_zpe
		}
	}
}
#zuf_democratiz_kurultaia_tyrgai otvet
country_event = {
	id = ufa.9
	title = ufa.9.t
	desc = ufa.9.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = ufa.9.a	
		effect_tooltip = {
			add_ideas = zuf_vozdeistvie_kurultaia
		}
		add_popularity = {
				ideology = democratic
				popularity = 0.1
		}
	}
}
#zuf_podderzka_kurult_turgai NOT democratic
country_event = {
	id = ufa.10
	title = ufa.10.t
	desc = ufa.10.d
	picture = GFX_report_event_finnish_soldiers_snow	
	is_triggered_only = yes
	option = {
		name = ufa.10.a	
		ZTY = {		
			add_popularity = { ideology = democratic popularity = 0.70 }	
				set_politics = {
				ruling_party = democratic
				last_election = "1986.2.2"			
				elections_allowed = no
				}
			if = {
				limit = {  has_idea = zuf_vozdeistvie_kurultaia  }
				remove_ideas = zuf_vozdeistvie_kurultaia
			}		 
			add_ideas = zuf_kurultai_for_friends
		}
		ZUF = {	
			puppet = ZTY
			add_named_threat = { threat = 3 name = zty_zuf_pupppet }	
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.630 }
			}
		}
		ZTY = {
			if = {
				limit = {  has_government = neutrality  }
				start_civil_war = {
					ideology = fascism			
					size = 0.4			
				}
			}
			if = {
				limit = {  has_government = democratic  }
				start_civil_war = {
					ideology = fascism			
					size = 0.4			
				}
			}
			if = {
				limit = {  has_government = fascism  }
				start_civil_war = {
					ideology = neutrality			
					size = 0.4			
				}
			}
			if = {
				limit = {  has_government = communism  }
				start_civil_war = {
					ideology = democratic			
					size = 0.4			
				}
			}
		}	
		hidden_effect = {
			random_other_country = {
				limit = {
					original_tag = ZTY					
				}
				add_ideas = grazganska_woina
			}
		}
		
	}
}
#zuf_podderzka_kurult_turgai democratic
country_event = {
	id = ufa.11
	title = ufa.11.t
	desc = ufa.11.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {
		name = ufa.11.a	
		ZTY = {		
			add_popularity = { ideology = democratic popularity = 0.70 }	
				set_politics = {
				ruling_party = democratic
				last_election = "1986.2.2"			
				elections_allowed = no
				}
			if = {
				limit = {  has_idea = zuf_vozdeistvie_kurultaia  }
				remove_ideas = zuf_vozdeistvie_kurultaia
			}		 
			add_ideas = zuf_kurultai_for_friends
		}
		ZUF = {	
			puppet = ZTY
			add_named_threat = { threat = 1 name = zty_zuf_pupppet_1 }	
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.631 }
			}
		}		
	}
}
#zuf_process_integracii dlya ZTY democratic
country_event = {
	id = ufa.12
	title = ufa.12.t
	desc = ufa.12.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.12.a
		ai_chance = { factor = 100 }
		ZUF = {
			country_event = { id = ufa.13 }
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = { # Refuse
		name = ufa.12.b
		ZUF = {
			country_event = { id = ufa.14 }
			if = {
				limit = {
					ZTY = {
						is_puppet_of = ZUF
					}
				}
				set_autonomy = {
					target = ZTY
					autonomy_state = autonomy_free
				}
			}			
		}
		if = {
			limit = {
				ZTY = {
					is_in_faction_with = ZUF
				}
			}
			leave_faction = yes
		}
		declare_war_on = {
			type = puppet_wargoal_focus
			target = ZUF
		}
	}
}
#zuf_process_integracii dlya ZTY democratic SOGLASNY
country_event = {
	id = ufa.13
	title = ufa.13.t
	desc = ufa.13.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.13.a		
		annex_country = { target = ZTY }
#		if = {
#			limit = {
#				NOT = {
#					has_global_flag = zuf_sredneaziatsk_federat_formed
#				}
#			}
#			set_global_flag = zuf_sredneaziatsk_federat_formed
#			set_cosmetic_tag = ZUF_FEDERAT
#		}		
		add_stability = 0.1
		583 = { add_core_of = ZUF }
		590 = { add_core_of = ZUF }
		588 = { add_core_of = ZUF }
		404 = { add_core_of = ZUF }
		589 = { add_core_of = ZUF }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.632 }
		}
	}	
}
#zuf_process_integracii dlya ZTY democratic NOOOO
country_event = {
	id = ufa.14
	title = ufa.14.t
	desc = ufa.14.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.12.a	
		set_cosmetic_tag = ZUF_FEDERAT
		add_named_threat = { threat = 5 name = zuf_federat_netak }
		add_state_claim = 583
		add_state_claim = 590
		if = {
			limit = {
				ZTY = {
					controls_state = 588
				}
			}
			add_state_claim = 588
		}		
		add_state_claim = 404
		add_state_claim = 589
		583 = { add_core_of = ZUF }
		590 = { add_core_of = ZUF }
		588 = { add_core_of = ZUF }
		404 = { add_core_of = ZUF }	
		589 = { add_core_of = ZUF }				
	}	
}

#sgovor so slavianami
country_event = {
	id = ufa.15
	title = ufa.15.t
	desc = ufa.15.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {		
		tag = ZUF
		NOT = {
			has_global_flag = zfu_kagan_dies
		}		
		ZUF = {
			NOT = {
				has_war_with = ZSL
			}
			has_civil_war = no
			has_government = neutrality
		}
		ZSL = {
			NOT = { has_completed_focus = slavvostok }
			focus_progress = {
				focus = slavvostok
				progress > 0.3
			}
		}
	}
	mean_time_to_happen = { days = 2 }
	fire_only_once = yes
	#poprobovat dogovoritsya 
	option = {
		name = ufa.15.a
		ai_chance = {
			base = 25
		}
		set_global_flag = zfu_popytka_dogovora
		add_political_power = -50
		ZSL = {
			country_event = { id = ufa.16 }
		}
		custom_effect_tooltip = ufa.15.a_tt	
		hidden_effect = {
			ZOR = {
				add_ai_strategy = {
					type = antagonize
					id = "ZSL"
					value = 200
				}
				add_ai_strategy = {
					type = protect
					id = "ZPE"
					value = 50
				}
			}
		}
	}
	#Noooo ne nado dogovorirtsya
	option = {
		name = ufa.15.b
		ai_chance = {
			base = 1			
		}
#		set_global_flag = zfu_popytka_dogovora
		add_political_power = 50
		custom_effect_tooltip = ufa.15.b_tt	
	}
}
#dlya zsl o tom chto zuf predlagaet dogovoritsyableat
country_event = {
	id = ufa.16
	title = ufa.16.t
	desc = ufa.16.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.16.a	
		ai_chance = {
			base = 20
		}
		custom_effect_tooltip = ufa.16.a_tt	
		set_global_flag = zuf_dogovor_so_slaianami	
		ZUF = {
				country_event = { id = ufa.17 }
			}
	}	
	option = { # otkazz
		name = ufa.16.b	
		ai_chance = {
			base = 1
		}	
		ZUF = {
				country_event = { id = ufa.18 }
			}
	}
}
#slaviane soglasilis na dogovor
country_event = {
	id = ufa.17
	title = ufa.17.t
	desc = ufa.17.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.17.a				
	}	
}
#slaviane NE soglasilis na dogovor
country_event = {
	id = ufa.18
	title = ufa.18.t
	desc = ufa.18.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.18.a				
	}	
}

#zuf pozorny mir
country_event = {
	id = ufa.19
	title = ufa.19.t
	desc = ufa.19.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.19.a	
		ZUF = {
			add_stability = -0.1
			hidden_effect = {
				country_event = { days = 4 id = ufa.4 }
			}
		}		
	}	
}

#zuf kurs na democratiu
country_event = {
	id = ufa.20
	title = ufa.20.t
	desc = ufa.20.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { # Accept
		name = ufa.20.a	
		ZUF = {	
			set_politics = {	
				ruling_party = democratic
				last_election = "1986.1.1"
				election_frequency = 72
				elections_allowed = yes
			}
			set_popularities = {
				democratic = 70
				neutrality = 15
				fascism = 15
				communism = 0
			}			
			add_timed_idea = {
				idea = zuf_kurultai
				days = 1000
			}
		}		
	}	
}
#zuf_voiska_v_stolitse
country_event = {
	id = ufa.21
	title = ufa.21.t
	desc = ufa.21.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.21.a	
		ZUF = {
			add_political_power = -50
			add_popularity = {
				ideology = neutrality
				popularity = -0.15
			}
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
			army_experience = 2
			651 = { add_manpower = -874 }
		}		
	}	
}

#kagan dies
country_event = {
	id = ufa.22
	title = ufa.22.t
	desc = ufa.22.d
	picture = GFX_report_event_swedish_soldier	
	trigger = {	
		date > 1988.09.09
		tag = ZUF	
		NOT = {
			has_global_flag = zuf_dogovor_so_slaianami
#			has_global_flag = zfu_popytka_dogovora
			has_global_flag = zfu_kagan_dies
		}
		ZUF = {
#			has_war = no
#			has_civil_war = no
			has_government = neutrality
		}
#		ZSL = {
#			NOT = { has_completed_focus = slavvostok }
#			focus_progress = {
#				focus = slavvostok
#				progress > 0.1
#			}
#		}
	}
	mean_time_to_happen = { days = 5 }
	fire_only_once = yes	
	option = {
		name = ufa.22.a
		set_global_flag = zfu_kagan_dies
		set_country_flag = zfu_krizis_vo_vlasti			
		kill_country_leader = yes
		complete_national_focus = zuf_krizis_vlasti
		set_politics = {	
			ruling_party = neutrality
			last_election = "1983.7.1"
			election_frequency = 48
			elections_allowed = no
		}
		set_popularities = {
			democratic = 10
			neutrality = 80
			fascism = 10
			communism = 0
		}
		# create_country_leader = {
			# name = "Курултай"
			# desc = "zfu_kurultai_decll"
			# picture = "kurultai.tga"
			# expire = "1965.1.1"
			# ideology = despotism
			# traits = {
				
			# }
		# }
		add_country_leader_role = {
			character = ZUF_kurultai
			country_leader = {
				desc = "zfu_kurultai_decll"
				ideology = despotism
				traits = {  }
				expire = "2020.3.1.1"
			}	
			promote_leader = yes 
		}
		if = {
			limit = {			
				is_in_faction_with = ZPE
				is_faction_leader = no
			}
			country_event = { hours = 2 id = ufa.24 }
		}
		add_stability = -0.1
		add_war_support = -0.1
		add_political_power = -60
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.941 }
		}
	}	
}

#kagan dies 2
country_event = {
	id = ufa.23
	title = ufa.23.t
	desc = ufa.22.d #dont touch desc
	picture = GFX_report_event_swedish_soldier	

	is_triggered_only = yes	
	option = {
		name = ufa.22.a
		set_global_flag = zfu_kagan_dies
		set_country_flag = zfu_krizis_vo_vlasti			
		kill_country_leader = yes
		complete_national_focus = zuf_krizis_vlasti
		set_politics = {	
			ruling_party = neutrality
			last_election = "1983.7.1"
			election_frequency = 48
			elections_allowed = no
		}
		set_popularities = {
			democratic = 10
			neutrality = 80
			fascism = 10
			communism = 0
		}
		# create_country_leader = {
			# name = "Курултай"
			# desc = "zfu_kurultai_decll"
			# picture = "kurultai.tga"
			# expire = "1965.1.1"
			# ideology = despotism
			# traits = {
				
			# }
		# }
		add_country_leader_role = {
			character = ZUF_kurultai
			country_leader = {
				desc = "zfu_kurultai_decll"
				ideology = despotism
				traits = {  }
				expire = "2020.3.1.1"
			}	
			promote_leader = yes 
		}
		add_stability = -0.05
		add_war_support = -0.05
		if = {
			limit = {			
				is_in_faction_with = ZPE
				is_faction_leader = no
			}
			country_event = { hours = 2 id = ufa.24 }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.941 }
		}
	}	
}

#vyhod iz alliansa
country_event = {
	id = ufa.24
	title = ufa.24.t
	desc = ufa.24.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.24.a	
		leave_faction = yes
		add_ai_strategy = {
				type = alliance
				id = "ZPE"
				value = -50
			}
		add_ai_strategy = {
				type = alliance
				id = "ZOR"
				value = -50
			}
		ZOR = {
			add_ai_strategy = {
				type = alliance
				id = "ZUF"
				value = -50
			}
			country_event = {
				id =  ufa.25
			}
		}	
		ZPE = {
			add_ai_strategy = {
				type = alliance
				id = "ZUF"
				value = -50
			}
			country_event = {
				id =  ufa.25
			}
		}
	}	
}
#vyhod iz alliansa FOR MEMVBER
country_event = {
	id = ufa.25
	title = ufa.25.t
	desc = ufa.25.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.25.a	
		
	}	
}
#voenny omniparism
country_event = {
	id = ufa.26
	title = ufa.26.t
	desc = ufa.26.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.26.a	
		set_politics = {	
			ruling_party = communism
			last_election = "1983.7.1"
			election_frequency = 48
			elections_allowed = no
		}
		set_popularities = {
			democratic = 5
			neutrality = 10
			fascism = 10
			communism = 75
		}
		set_country_flag = zuf_vseh_rasstrelyat		
		add_timed_idea = {
			idea = zuf_war_omniparism
			days = 750
		}
		add_stability = -0.15
		add_war_support = -0.18		
		651 = { add_manpower = -54 }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.680 }
		}
	}	
}
#vizit v turgai
country_event = {
	id = ufa.27
	title = ufa.27.t
	desc = ufa.27.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.27.a	
			country_event = { days = 1 id = ufa.28 }
	}	
}
#vizit v turgai 2
country_event = {
	id = ufa.28
	title = ufa.28.t
	desc = ufa.28.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.28.a	
		ai_chance = {
			base = 10
		}
		if = {
			limit = {
				NOT = {
					has_completed_focus = zuf_otkryt_sklady
				}
			}
			complete_national_focus = zuf_otkryt_sklady
		}
#		complete_national_focus = zuf_attack_turgai
		declare_war_on = {
			type = puppet_wargoal_focus
			target = ZTY
		}
		add_ai_strategy = {
			type = conquer
			id = "ZTY"
			value = 200
		}
		country_event = { days = 1 id = ufa.29 }
		set_global_flag = zuf_zty_slomany_stul_flag
	}
	option = { 
		name = ufa.28.b	
		ai_chance = {
			base = 70
		}
		add_stability = 0.05
	}	
}
#war turgai
country_event = {
	id = ufa.29
	title = ufa.29.t
	desc = ufa.29.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.29.a	
			add_war_support = 0.05
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.675 }
			}
	}	
}
#to ZIK friend omni
country_event = {
	id = ufa.30
	title = ufa.30.t
	desc = ufa.30.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.30.a	
		ai_chance = {
			base = 70
		}
		ZIK = { add_to_faction = ZUF }
		ZUF = {
			country_event = { days = 1 id = ufa.31 }
		}
	}
	option = { 
		name = ufa.30.b	
		ai_chance = {
			base = 5
		}
		ZUF = {
			country_event = { days = 1 id = ufa.3100 }
		}
	}	
}
#to ZIK friend omni JOIN TO FACTION
country_event = {
	id = ufa.31
	title = ufa.31.t
	desc = ufa.31.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.31.a	
		add_political_power = 50
		add_stability = 0.08
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.681 }
		}
	}	
}
#to ZIK friend omni NOT JOIN TO FACTION
country_event = {
	id = ufa.3100
	title = ufa.3100.t
	desc = ufa.3100.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.3100.a		
		add_stability = -0.08		
	}	
}
#to sosedi ZUF. rashirenie omnikov
country_event = {
	id = ufa.32
	title = ufa.32.t
	desc = ufa.32.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.32.a	
		add_popularity = {
			ideology = communism
			popularity = 0.1
		}
	}	
}
# ultimatum ZTY ot omnikov ZUF
country_event = {
	id = ufa.33
	title = ufa.33.t
	desc = ufa.33.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # Accept demands
		name = ufa.33.a
		ai_chance = {
			base = 25
			modifier = { # Don't accept if in a faction that can protect them
				factor = 0
				OR = {
					any_other_country = {
						is_major = yes
						OR = {
							is_in_faction_with = ZTY
							has_guaranteed = ZTY
						}
					}					
					ZUF = { surrender_progress > 0.5 }
				}
			}
		}
		set_politics = {			
			ruling_party = communism
		}
		set_popularities = {
			democratic = 2
			neutrality = 26
			fascism = 2
			communism = 70
		}
		ZUF = {
			country_event = { days = 3 id = ufa.34 }
		}
		custom_effect_tooltip = ufa.33.a_TT
	}
	option = { # Refuse
		name = ufa.33.b
		ai_chance = {
			base = 0
			modifier = {
				add = 1				
				any_other_country = {
					is_major = yes
					is_in_faction_with = ZTY
				}				
			}
			modifier = {
				add = 5
				any_other_country = {
					is_major = yes
					has_guaranteed = ZTY
				}
			}
		}
		ZUF = {
			country_event = { days = 3 id = ufa.35 }
			effect_tooltip = {
				create_wargoal = {
					type = annex_everything
					target = ZTY
				}	
			}
		}
	}
}

# ZTY Surrenders
country_event = {
	id = ufa.34
	title = ufa.34.t
	desc = ufa.34.d
	picture = GFX_report_event_soviet_invasion_map	
	is_triggered_only = yes	
	option = {
		name = ufa.34.a
		puppet = ZTY
		add_named_threat = { threat = 2 name = ufa.34.theatt }
		hidden_effect = {
			news_event = { hours = 10 id = ar_news.696 }
		}
	}
}
# ZTY Refuses
country_event = {
	id = ufa.35
	title = ufa.35.t
	desc = ufa.35.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.35.a
		create_wargoal = {
			type = annex_everything
			target = ZTY
		}		
	}
}
# ultimatum ZKZ ot omnikov ZUF
country_event = {
	id = ufa.36
	title = ufa.36.t
	desc = ufa.36.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # Accept demands
		name = ufa.36.a
		ai_chance = {
			base = 25
			modifier = { # Don't accept if in a faction that can protect them
				factor = 0
				OR = {
					any_other_country = {
						is_major = yes
						OR = {
							is_in_faction_with = ZKZ
							has_guaranteed = ZKZ
						}
					}					
					ZUF = { surrender_progress > 0.5 }
				}
			}
		}
		set_politics = {			
			ruling_party = communism
		}
		set_popularities = {
			democratic = 2
			neutrality = 26
			fascism = 2
			communism = 70
		}
		ZUF = {
			country_event = { days = 3 id = ufa.37 }
		}		
		custom_effect_tooltip = ufa.36.a_TT
	}
	option = { # Refuse
		name = ufa.36.b
		ai_chance = {
			base = 0
			modifier = {
				add = 1				
				any_other_country = {
					is_major = yes
					is_in_faction_with = ZKZ
				}				
			}
			modifier = {
				add = 5
				any_other_country = {
					is_major = yes
					has_guaranteed = ZKZ
				}
			}
		}
		ZUF = {
			country_event = { days = 3 id = ufa.38 }
			effect_tooltip = {
				create_wargoal = {
					type = annex_everything
					target = ZKZ
				}	
			}
		}
	}
}

# ZKZ Surrenders
country_event = {
	id = ufa.37
	title = ufa.37.t
	desc = ufa.37.d
	picture = GFX_report_event_soviet_invasion_map	
	is_triggered_only = yes	
	option = {
		name = ufa.37.a
		puppet = ZKZ
		add_named_threat = { threat = 2 name = ufa.37.theatt }
		hidden_effect = {
			news_event = { hours = 10 id = ar_news.697 }
		}
	}
}
# ZKZ Refuses
country_event = {
	id = ufa.38
	title = ufa.38.t
	desc = ufa.38.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.38.a
		create_wargoal = {
			type = annex_everything
			target = ZKZ
		}		
	}
}

# event to ZKZ o tom chto torgovye gildii chet mutat"
country_event = {
	id = ufa.39
	title = ufa.39.t
	desc = ufa.39.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.39.a
		add_popularity = {
			ideology = democratic
			popularity = 0.1
		}
		add_timed_idea = {
			idea = zuf_vozdeistvie_kurultaia
			days = 400
		}				
	}
}
# ultimatum ZKZ ot DEMOCTAROV ZUF
country_event = {
	id = ufa.40
	title = ufa.40.t
	desc = ufa.40.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # Accept demands
		name = ufa.40.a
		ai_chance = {
			base = 25
			modifier = { # Don't accept if in a faction that can protect them
				factor = 0
				OR = {
					any_other_country = {
						is_major = yes
						OR = {
							is_in_faction_with = ZKZ
							has_guaranteed = ZKZ
						}
					}					
					ZUF = { surrender_progress > 0.5 }
				}
			}
		}
		set_politics = {			
			ruling_party = democratic
		}
		set_popularities = {
			democratic = 80
			neutrality = 5
			fascism = 5
			communism = 10
		}
		ZUF = {
			country_event = { days = 1 id = ufa.41 }
		}		
		custom_effect_tooltip = ufa.40.a_TT
	}
	option = { # Refuse
		name = ufa.40.b
		ai_chance = {
			base = 0
			modifier = {
				add = 1				
				any_other_country = {
					is_major = yes
					is_in_faction_with = ZKZ
				}				
			}
			modifier = {
				add = 5
				any_other_country = {
					is_major = yes
					has_guaranteed = ZKZ
				}
			}
		}
		ZUF = {
			country_event = { days = 3 id = ufa.42 }			
		}
		every_state = {
				limit = {
					is_owned_by = ZUF
				}
				add_claim_by = ZKZ
			}
		declare_war_on = {
			type = annex_everything
			target = ZUF
		}
	}
}
# ZKZ nasha marionetka
country_event = {
	id = ufa.41
	title = ufa.41.t
	desc = ufa.41.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.41.a
		puppet = ZKZ	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.701 }
		}
	}
}
# ZKZ idut na nas s voinoi
country_event = {
	id = ufa.42
	title = ufa.42.t
	desc = ufa.42.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.42.a
		add_stability = -0.07
		add_war_support = -0.05	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.702 }
			every_state = {
				limit = {
					is_owned_by = ZKZ
				}
				add_claim_by = ZUF
			}
		}
	}
}
# ultimatum ZKZ na sovsem annex
country_event = {
	id = ufa.43
	title = ufa.43.t
	desc = ufa.43.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # Accept demands
		name = ufa.43.a
		ai_chance = {
			base = 25			
		}
		ZUF = {
			country_event = { days = 3 id = ufa.44 }
		}		
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = { # Refuse
		name = ufa.43.b
		ai_chance = {
			base = 1			
		}
		ZUF = {
			country_event = { days = 3 id = ufa.45 }			
		}		
	}
}
# ultimatum ZKZ na sovsem annex GOOD
country_event = {
	id = ufa.44
	title = ufa.44.t
	desc = ufa.44.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.44.a
		annex_country = { target = ZKZ }
		add_named_threat = { threat = 5 name = zuf_kuda_ty_rastesh_to }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.703 }
		}
	}
}
# ultimatum ZKZ na sovsem annex NOT GOOD
country_event = {
	id = ufa.45
	title = ufa.45.t
	desc = ufa.45.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = ufa.45.a
		add_political_power = 120
	}
}

#vstupi t woinu protiv slavian
country_event = {
	id = ufa.46
	title = ufa.46.t
	desc = ufa.46.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {
		tag = ZUF		
		ZUF = {
			has_civil_war = no
			is_in_faction_with = ZPE			
			NOT = {
				has_war_with = ZSL
			}
			has_capitulated = no
		}
		ZPE = {
			has_war_with = ZSL
		}
	}
	mean_time_to_happen = { days = 1 }
	fire_only_once = yes
	#GO GO POWER UFA
	option = {
		name = ufa.46.a
		ai_chance = {
			base = 70
		}
		ZPE = {
			country_event = { id = ufa.47 }
		}
		custom_effect_tooltip = ufa.46.a_tt
	}
	#NO NO NO
	option = {
		name = ufa.46.b
		ai_chance = {
			base = 1
		}
		add_stability = -0.05
		add_war_support = -0.05
	}
}
# slavian agressia FOR ZPE
country_event = {
	id = ufa.47
	title = ufa.47.t
	desc = ufa.47.d
	picture = GFX_report_event_soviet_tanks_snow
	is_triggered_only = yes	
	option = {
		name = ufa.47.a		
		ZUF = {
			add_to_war = { 
				targeted_alliance = ZPE 
				enemy = ZSL 
	#			hostility_reason = asked_to_join
			}
		}
	}
}
# gumpomosh dlya bulgarii
country_event = {
	id = ufa.48
	title = ufa.48.t
	desc = ufa.48.d
	picture = GFX_report_event_soviet_tanks_snow
	is_triggered_only = yes	
	option = {
		name = ufa.48.a	
		add_stability = 0.12
		add_political_power = 100
		add_opinion_modifier = {
			target = ZUF
			modifier = gum_pomosh_20
		}
		if = {
			limit = {
				has_opinion_modifier = predateli_100
			}
			remove_opinion_modifier = {
				target = ZUF
				modifier = predateli_100
			}
		}
		random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		set_country_flag = gumponosh_ot_zuf_pribyla
	}
}
# my nakazali tyrgai za stul
country_event = {
	id = ufa.49
	title = ufa.49.t
	desc = ufa.49.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {		
		tag = ZUF		
		ZUF = {
			has_war_with = ZTY
			has_government = neutrality
		}
		ZTY = {
			surrender_progress > 0.25
		}
	}
	mean_time_to_happen = { days = 2 }
	fire_only_once = yes
	#her s nimi
	option = {
		name = ufa.49.a
		ai_chance = {
			base = 70
		}
		effect_tooltip = {
			white_peace = {
					tag = ZTY 
					message = ZUF_nakazala_ZTY 
				}
			ZUF = {
				add_timed_idea = {
					idea = zuf_reparation_ot_zty_for_zuf
					days = 400
				}
			}
			ZTY = {
				add_timed_idea = {
					idea = zuf_reparation_for_zty
					days = 400
				}
			}
		}		
		ZTY = {
			country_event = {
				id = ufa.50
			}
			custom_effect_tooltip = needs_approval
		}		
	}
	# ne ne, annex 
	option = {
		name = ufa.49.b
		ai_chance = {
			base = 1			
		}
	}
}
# for ZTY predlojenie o mire ot ZUF
country_event = {
	id = ufa.50
	title = ufa.50.t
	desc = ufa.50.d
	picture = GFX_report_event_soviet_tanks_snow	
	is_triggered_only = yes	
	#soglasny
	option = {
		name = ufa.50.a
		ai_chance = {
			base = 70
		}
		ZUF = {
			white_peace = {
					tag = ZTY 
					message = ZUF_nakazala_ZTY 
				}
			add_timed_idea = {
				idea = zuf_reparation_ot_zty_for_zuf
				days = 400
			}
			country_event = {
				id = ufa.51
			}
		}
		hidden_effect = {
			clr_global_flag = zuf_zty_slomany_stul_flag
			every_other_country = {
					limit = {
							has_war_with = ZTY
							is_in_faction_with = ZUF
					}
					white_peace = {
						tag = ZTY 
#						message = ZUF_nakazala_ZTY 
					}
				}
		}		
		add_timed_idea = {
				idea = zuf_reparation_for_zty
				days = 400
			}				
	}
	# ne ne  
	option = {
		name = ufa.50.b
		ai_chance = {
			base = 1			
		}
		ZUF = {
			country_event = {
				id = ufa.52
			}
		}
	}
}
# ZTY soglasno na mir
country_event = {
	id = ufa.51
	title = ufa.51.t
	desc = ufa.51.d
	picture = GFX_report_event_soviet_tanks_snow	
	is_triggered_only = yes	
	#soglasny
	option = {
		name = ufa.51.a	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.704 }
		}
	}
}
# ZTY NE soglasno na mir
country_event = {
	id = ufa.52
	title = ufa.52.t
	desc = ufa.52.d
	picture = GFX_report_event_soviet_tanks_snow	
	is_triggered_only = yes	
	#soglasny
	option = {
		name = ufa.52.a	
		clr_global_flag = zuf_zty_slomany_stul_flag	## хммм
	}
}
#zuf_dolgaya noch
country_event = {
	id = ufa.53
	title = ufa.53.t
	desc = ufa.53.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.53.a	
		ZUF = {
			add_political_power = -50
			add_stability = -0.10
			add_popularity = {
				ideology = democratic
				popularity = -0.1
			}
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}			
			651 = { add_manpower = -8752 }			
		}		
	}	
}
#zuf_bashkir shuro
country_event = {
	id = ufa.54
	title = ufa.54.t
	desc = ufa.54.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.54.a	
		ZUF = {			
			set_politics = {							
				ruling_party = fascism
				last_election = "1985.7.1"
				election_frequency = 48
				elections_allowed = no
			}
			set_popularities = {				
				fascism = 75
				communism = 5
				neutrality = 20			
			}
			hidden_effect = {
				kill_country_leader = yes
				news_event = { hours = 3 id = ar_news.705 }
			}
			# create_country_leader = {
				# name = "Закий Рахими"
				# desc = " "
				# picture = "zakii_rahim.tga"
				# expire = "2020.1.1"
				# ideology = nazism
				# traits = {					
				# }
			# }
			add_country_leader_role = {
				character = ZUF_zakiy_rahimi
				country_leader = {
					ideology = nazism
					traits = {  }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			set_party_name = { 
				ideology = fascism 
				long_name = ZUF_fascism_party_shuro_long 
				name = ZUF_fascism_party_shuro
			}			
			add_timed_idea = {
			idea = zuf_shuro_ideolog
			days = 1000
			}
			651 = { add_manpower = -241 }
			add_timed_idea = {
				idea = zuf_soprotivlenie_novoi_vlasti_v_armii
				days = 365
			}
		}		
	}	
}
#event to ZPA o tom chto bashkiry rejut persov
country_event = {
	id = ufa.55
	title = ufa.55.t
	desc = ufa.55.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.55.a	
		add_opinion_modifier = {
			target = ZUF
			modifier = etnicheskye_chistki_50
		}	
	}	
}
#nasledie tamerlana
country_event = {
	id = ufa.56
	title = ufa.56.t
	desc = ufa.56.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.56.a	
		set_cosmetic_tag = ZUF_FEDERAT
		add_political_power = 120
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.706 }
		}
	}	
}
#zuf attack turgai potomu chto my tyran
country_event = {
	id = ufa.57
	title = ufa.57.t
	desc = ufa.57.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.57.a	
		every_state = {
				limit = {
					is_owned_by = ZTY
				}
				add_claim_by = ZUF
			}
		if = {
			limit = {
				country_exists = ZTY
				ZTY = {
					NOT = {
						is_puppet_of = ZUF
					}
					NOT = {
						is_in_faction_with = ZUF
					}
				}
			}
			create_wargoal = {
					type = annex_everything
					target = ZTY					
			}
		}			
	}	
}
#zuf_presy u vlasti
country_event = {
	id = ufa.58
	title = ufa.58.t
	desc = ufa.58.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.58.a	
		ZUF = {			
			set_politics = {				
				ruling_party = neutrality
				last_election = "1985.7.1"
				election_frequency = 48
				elections_allowed = no
			}
			set_popularities = {				
				fascism = 10
				communism = 10
				neutrality = 80			
			}
			hidden_effect = {
				kill_country_leader = yes
				news_event = { hours = 3 id = ar_news.707 }
			}
			# create_country_leader = {
				# name = "Султан Мохаммед Али Форуги"
				# desc = " "
				# picture = "mohamed_ali_forugi.tga"
				# expire = "2020.1.1"
				# ideology = oligarchism
				# traits = {
					# #
				# }
			# }
			add_country_leader_role = {
				character = ZUF_sultan_mohammed_ali_forougi
				country_leader = {
					ideology = oligarchism
					traits = {  }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			set_party_name = { 
				ideology = neutrality 
				long_name = ZUF_neutrality_party_persian_long 
				name = ZUF_neutrality_party_persian
			}
			set_cosmetic_tag = ZUF_PROPERS
			add_war_support = -0.1			
			651 = { add_manpower = -1271 }
			add_timed_idea = {
				idea = zuf_soprotivlenie_novoi_vlasti_v_armii
				days = 450
			}
		}		
	}	
}
#ZUF priglasit ko dvoru znatnye persidskiye roda
country_event = {
	id = ufa.59
	title = ufa.59.t
	desc = ufa.59.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.59.a	
		add_timed_idea = {
			idea = zuf_persian_ideolog
			days = 750
		}		
		add_stability = 0.08	
	}	
}
#event dlya ZPA o tom chto v ZUF hotyat s nami drujit
country_event = {
	id = ufa.60
	title = ufa.60.t
	desc = ufa.60.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.60.a	
		add_opinion_modifier = {
			target = ZUF
			modifier = diplomat_20
		}	
		add_ai_strategy = {
					type = alliance
					id = "ZUF"
					value = 50
				}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.708 }
		}	
	}	
}
#zuf persidskaya jensina y vlasti
country_event = {
	id = ufa.61
	title = ufa.61.t
	desc = ufa.61.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.61.a	
		ZUF = {				
			retire_country_leader  = yes			
			# create_country_leader = {
				# name = "Гульнара аль Бейрути"
				# desc = " "
				# picture = "gulnara_al_beirudi.tga"
				# expire = "2020.1.1"
				# ideology = konstitut_monarch
				# traits = {					
				# }
			# }
			add_country_leader_role = {
				character = ZUF_gulnara_al_beyruti
				country_leader = {
					ideology = konstitut_monarch
					traits = {  }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			hidden_effect = {	
				news_event = { hours = 3 id = ar_news.709 }
			}
		}
		ZPA = { add_to_faction = ZUF }		
	}	
}
#zuf persidskaya jensina y vlasti event for ZPA
country_event = {
	id = ufa.62
	title = ufa.62.t
	desc = ufa.62.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.62.a	
		ai_chance = {
			base = 100			
		}	
		effect_tooltip = {
			ZUF = {				
				retire_country_leader  = yes			
				# create_country_leader = {
					# name = "Гульнара аль Бейрути"
					# desc = " "
					# picture = "gulnara_al_beirudi.tga"
					# expire = "2020.1.1"
					# ideology = konstitut_monarch
					# traits = {						
					# }
				# }
				add_country_leader_role = {
					character = ZUF_gulnara_al_beyruti
					country_leader = {
						ideology = konstitut_monarch
						traits = {  }
						expire = "2020.3.1.1"
					}	
					promote_leader = yes 
				}
			}
			ZPA = { add_to_faction = ZUF }
		}
		ZUF = {
			country_event = {
				id = ufa.61
			}
		}		
	}
	option = { 
		name = ufa.62.b	
		ZUF = {
			country_event = {
				id = ufa.63
			}
		}			
	}	
}
#zuf persiya poslala nas naher
country_event = {
	id = ufa.63
	title = ufa.63.t
	desc = ufa.63.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.63.a	
		add_stability = -0.1		
	}	
}
#event for persia/ voennoe sotrudnichestvo s ufoi
country_event = {
	id = ufa.64
	title = ufa.64.t
	desc = ufa.64.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.64.a	
		army_experience = 10
		add_political_power = 20
		effect_tooltip = {
			add_opinion_modifier = {
							target = ZUF
							modifier = voennoe_sotrudnichestvo_20
						}
			ZUF = {
				add_opinion_modifier = {
					target = ZPA
					modifier = voennoe_sotrudnichestvo_20
				}
			}
		}		
	}	
}
#event for persia/ dogovor o rashirenii na sewer
country_event = {
	id = ufa.65
	title = ufa.65.t
	desc = ufa.65.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
	name = ufa.65.a	
		ai_chance = {
			base = 100			
		}
		add_ai_strategy = {
			type = befriend
			id = "ZUF"
			value = 50
		}
		add_ai_strategy = {
			type = protect
			id = "ZUF"
			value = 50
		}
		ZUF = {
			country_event = {
				id = ufa.66
			}
		}
	}
	option = { 
		name = ufa.65.b	
			ZUF = {
				country_event = {
					id = ufa.67
				}
			}
			custom_effect_tooltip = ufa.65.b.tt 
	}	
}
#persia podderjala nashi ustremleniya
country_event = {
	id = ufa.66
	title = ufa.66.t
	desc = ufa.66.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.66.a	
		add_stability = 0.07
		add_war_support = 0.1
		set_country_flag = zuf_zpa_friends
		add_named_threat = { threat = 2 name = sgovor_zuf_i_zpa }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.711 }			
		}
	}	
}
#persia NE podderjala nashi ustremleniya
country_event = {
	id = ufa.67
	title = ufa.67.t
	desc = ufa.67.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.67.a	
		custom_effect_tooltip = ufa.67.tt 
	}	
}
#for ZKZ ultimatum ot zuf. oni hotat nas raspilit
country_event = {
	id = ufa.68
	title = ufa.68.t
	desc = ufa.68.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.68.a	
		ai_chance = {
			base = 75			
		}
		custom_effect_tooltip = GAME_OVER_TT
		ZUF = {
			country_event = {
				id = ufa.69
			}
		}
	}
	option = { 
		name = ufa.68.b	
		ai_chance = {
			base = 10			
		}
		ZUF = {
			country_event = {
				id = ufa.71
			}
		}
	}	
}
#razdel alash go go
country_event = {
	id = ufa.69
	title = ufa.69.t
	desc = ufa.69.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.69.a	
		annex_country = { target = ZKZ }
		hidden_effect = {
			841 = {
				add_core_of = ZUF
			}
			842 = {
				add_core_of = ZUF
			}
			906 = {
				add_core_of = ZUF
			}
			586 = {
				add_core_of = ZUF
			}
			732 = {
				add_core_of = ZUF
			}
			405 = {
				add_core_of = ZUF
			}
			907 = {
				add_core_of = ZUF
			}
			742 = {
				add_core_of = ZUF
			}
			news_event = { hours = 3 id = ar_news.712 }
		}
		ZPA = {
			country_event = {
				id = ufa.70
			}
		}
		effect_tooltip = {
			ZPA = {
				transfer_state = 587
				transfer_state = 585
				transfer_state = 908
				transfer_state = 843
				transfer_state = 890
			}
		}
	}	
}
#razdel alash go go for ZPA
country_event = {
	id = ufa.70
	title = ufa.70.t
	desc = ufa.70.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.70.a	
		transfer_state = 587
		transfer_state = 585
		transfer_state = 908
		transfer_state = 843
		transfer_state = 890
	}	
}
#alash soprotivlyaetsya
country_event = {
	id = ufa.71
	title = ufa.71.t
	desc = ufa.71.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.71.a	
		ai_chance = {
			base = 100			
		}
		add_state_claim = 841
		add_state_claim = 842
		add_state_claim = 906
		add_state_claim = 586
		add_state_claim = 732
		add_state_claim = 405
		add_state_claim = 907
		add_state_claim = 742
		ZPA = {			
			add_state_claim = 587
			add_state_claim = 585
			add_state_claim = 908
			add_state_claim = 843
			add_state_claim = 890
		}
		declare_war_on = {
			type = annex_everything
			target = ZKZ
		}
	}
	option = { 
		name = ufa.71.b	
		ai_chance = {
			base = 3			
		}
		add_war_support = -0.2
		add_stability = -0.15
	}	
}
#programma pereseleniya bulgarii
country_event = {
	id = ufa.72
	title = ufa.72.t
	desc = ufa.72.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.72.a	
		ai_chance = {
			base = 10			
		}
		add_stability = 0.1
		ZUF = {
			puppet = ZOR
			country_event = {
				id = ufa.73
			}
		}
	}
	option = { 
		name = ufa.72.b	
		ai_chance = {
			base = 3			
		}	
		add_war_support = 0.1
		ZUF = {
			country_event = {
				id = ufa.74
			}
		}
	}	
}
#programma pereseleniya bulgarii OK
country_event = {
	id = ufa.73
	title = ufa.73.t
	desc = ufa.73.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.73.a	
		effect_tooltip = {
			puppet = ZOR
		}
	}	
}
#programma pereseleniya bulgarii NOT OK
country_event = {
	id = ufa.74
	title = ufa.74.t
	desc = ufa.74.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.74.a	
		add_stability = -0.05
	}	
}
#GUMpomosh ot sultanshi lol event ZOR
country_event = {
	id = ufa.75
	title = ufa.75.t
	desc = ufa.75.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.75.a	
		add_stability = -0.05
		ZUF = {			
			country_event = { hours = 10 id = ufa.76 }	
		}
	}	
}
#GUMpomosh ot sultanshi lol OTVET event ZUF
country_event = {
	id = ufa.76
	title = ufa.76.t
	desc = ufa.76.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.76.a	
		add_stability = 0.05
		country_event = { hours = 5 id = ufa.77 }				
	}	
}
#GUMpomosh ot sultanshi lol OTVET II event ZUF
country_event = {
	id = ufa.77
	title = ufa.77.t
	desc = ufa.77.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.77.a	
		add_political_power = 10
		ZUF = {
			puppet = ZOR			
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.713 }
		}
		ZOR = {
			country_event = {
				id = ufa.78
			}
		}
	}	
}
#event for ZOR  - my puppet
country_event = {
	id = ufa.78
	title = ufa.78.t
	desc = ufa.77.d  #tak nado
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.78.a	
		add_stability = 0.12	
		effect_tooltip = {
			ZUF = {
				puppet = ZOR			
			}
		}
	}	
}
#event for ZSL  o vozmojnosti vosstaniya v permi
country_event = {
	id = ufa.79
	title = ufa.79.t
	desc = ufa.79.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.79.a	
		add_stability = -0.03		
	}	
}
#event for rebel zpe from zuf - go go aliance
country_event = {
	id = ufa.80
	title = ufa.80.t
	desc = ufa.80.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.80.a	
		ai_chance = {
			base = 100			
		}
		ZPA = {
			add_to_faction = ZPE 
			country_event = {
				id = ufa.81
			}			
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.715 }
			}
		}
	}
	option = { 
		name = ufa.80.b	
		ai_chance = {
			base = 3			
		}
		add_stability = 0.1
		add_war_support = 0.1
		ZPA = {
			country_event = {
				id = ufa.82
			}
		}		
	}	
}
#event for rebel zpe from zuf - go go aliance OTVET YES
country_event = {
	id = ufa.81
	title = ufa.81.t
	desc = ufa.81.d  
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.81.a	
		trigger = {
			ZPE = {
				has_war_with = ZSL
			}
			ZPA = {
				NOT = {
					has_war_with = ZSL
					is_in_faction_with = ZSL
				}	
			}
		}
		ai_chance = {
			base = 100			
		}	
		effect_tooltip = {
			ZPA = {			
				add_to_faction = ZPE 
			}
		}
		add_to_war = { 
				targeted_alliance = ZPE 
				enemy = ZSL 
		}
	}
	option = { 
		name = ufa.81.b	
		ai_chance = {
			base = 3			
		}
		effect_tooltip = {
			ZPA = {			
				add_to_faction = ZPE 
			}
		}		
	}	
}
#event for rebel zpe from zuf - go go aliance OTVET NOOOO
country_event = {
	id = ufa.82
	title = ufa.82.t
	desc = ufa.82.d  
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.82.a	
				
	}	
}
#event for rebel ZBJ from ZSE - go go aliance
country_event = {
	id = ufa.83
	title = ufa.83.t
	desc = ufa.83.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.83.a	
		ai_chance = {
			base = 100			
		}
		ZSE = {			
			if = {
				limit = {
					is_faction_leader = yes
				}
				add_to_faction = ZBJ				
			}
			if = {
				limit = {
					is_in_faction = no	
				}				
				create_faction = northern_alliance_zse
				add_to_faction = ZBJ				
			}
			country_event = {
				id = ufa.84
			}
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.716 }
			}
		}
	}
	option = { 
		name = ufa.83.b	
		ai_chance = {
			base = 3			
		}
		add_stability = 0.1
		add_war_support = 0.1
		ZSE = {
			country_event = {
				id = ufa.85
			}
		}		
	}	
}
#event for rebel ZBJ from ZSE- go go aliance OTVET YES
country_event = {
	id = ufa.84
	title = ufa.84.t
	desc = ufa.84.d  
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.84.a	
		custom_effect_tooltip = ufa.84.tt
		trigger = {
			ZBJ = {
				has_war_with = ZSL
			}
			ZSE = {
				NOT = {
					has_war_with = ZSL
					is_in_faction_with = ZSL
				}	
			}
		}
		ai_chance = {
			base = 100			
		}			
		add_to_war = { 
			targeted_alliance = ZBJ 
			enemy = ZSL 
		}
	}
	option = { 
		name = ufa.84.b	
		custom_effect_tooltip = ufa.84.tt		
	}	
}
#event for rebel ZBJ from ZSE - go go aliance OTVET NOOOO
country_event = {
	id = ufa.85
	title = ufa.85.t
	desc = ufa.85.d  
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = ufa.85.a	
				
	}	
}