@podavlenie_days = 25	#длительность решений на подавление
@oblava_days = 48	#длительность решений на облавы сепаратистов

romeya_national_dec_categ = {	#original_tag = ZVZ, num_subjects > 0

### турки анатолии
	zvz_mission_anatolia_krizis = {	#добавить условия наличия страны В ИДЕЮ
		icon = generic_civil_support
#		visible = {
#			original_tag = ZVZ
#		}		
		available = {
			OR = {
				has_stability > 0.36				
#				has_civil_war = yes
				NOT = {
					has_idea = zvz_turki_v_anatolii
				}
			}
		}
		days_mission_timeout = 215
		#days_remove = 1
		activation = {
			has_idea = zvz_turki_v_anatolii
			has_civil_war = no
			has_stability < 0.25
		}
		fixed_random_seed = no
		fire_only_once = no
		is_good = no
		timeout_effect = {
			country_event = { id = vizan.39 }
		}
	}

#####	ПРИНУЖДЕНИЕ
	zvz_minus_1_zts_separ = {
		icon = zts_knopka		
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZTS_separatism > 1 }			
			political_power_daily > 0.3			
			not = {
				has_decision = zvz_minus_1_zgf_separ
				has_decision = zvz_minus_1_zge_separ
				has_decision = zvz_minus_1_zgh_separ
			}
		}
		visible = {
			ZTS = {
				is_subject_of = ZVZ
			}
		}	
		highlight_states = {
			state = 47
		}
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		fixed_random_seed = no
		days_remove = @podavlenie_days
		ai_will_do = {
			factor = 150
#				modifier = {
#					factor = 100
#					check_variable = {
#						global.ZTS_separatism > 40
#					}	
#				}
		}
		remove_effect = {	
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			if = {
				limit = {
					NOT = {
						has_completed_focus = zvz_shkolnye_reformy	
					}
				}
				ZTS = {
					ZTS_separatism_minus_1 = yes
				}
			}
			if = {
				limit = {					
					has_completed_focus = zvz_shkolnye_reformy						
				}
				ZTS = {
					ZTS_separatism_minus_2 = yes
				}
			}	
		}
	}
	zvz_minus_1_zgf_separ = {
		icon = zgf_knopka		
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZGF_separatism > 1 }			
			political_power_daily > 0.3			
			not = {
				has_decision = zvz_minus_1_zts_separ
				has_decision = zvz_minus_1_zge_separ
				has_decision = zvz_minus_1_zgh_separ
			}
		}
		visible = {
			ZGF = {
				is_subject_of = ZVZ
			}
		}
		highlight_states = {
			state = 731
		}		
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		fixed_random_seed = no
		days_remove = @podavlenie_days
		ai_will_do = {
			factor = 150
#			modifier = {
#				factor = 100
#				check_variable = {	
#					global.ZGF_separatism > 40
#				}	
#			}
		}
		remove_effect = {	
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			if = {
				limit = {
					NOT = {
						has_completed_focus = zvz_shkolnye_reformy	
					}
				}
				ZGF = {
					ZGF_separatism_minus_1 = yes
				}
			}
			if = {
				limit = {					
					has_completed_focus = zvz_shkolnye_reformy						
				}
				ZGF = {
					ZGF_separatism_minus_2 = yes
				}
			}				
		}
	}
	zvz_minus_1_zge_separ = {
		icon = zge_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZGE_separatism > 1 }			
			political_power_daily > 0.3			
			not = {
				has_decision = zvz_minus_1_zts_separ
				has_decision = zvz_minus_1_zgf_separ
				has_decision = zvz_minus_1_zgh_separ
			}
		}
		visible = {
			ZGE = {
				is_subject_of = ZVZ
			}
		}	
		highlight_states = {
			state = 185
		}
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		fixed_random_seed = no
		days_remove = @podavlenie_days
		ai_will_do = {
			factor = 150
#			modifier = {
#				factor = 100
#				check_variable = {
#					global.ZGE_separatism > 40
#				}
#			}		
		}
		remove_effect = {
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			if = {
				limit = {
					NOT = {
						has_completed_focus = zvz_shkolnye_reformy	
					}
				}
				ZGE = {
					ZGE_separatism_minus_1 = yes
				}
			}
			if = {
				limit = {					
					has_completed_focus = zvz_shkolnye_reformy						
				}
				ZGE = {
					ZGE_separatism_minus_2 = yes
				}
			}				
		}
	}
	zvz_minus_1_zgh_separ = {
		icon = zgh_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZGH_separatism > 1 }			
			political_power_daily > 0.3			
			not = {
				has_decision = zvz_minus_1_zts_separ
				has_decision = zvz_minus_1_zgf_separ
				has_decision = zvz_minus_1_zge_separ
			}
		}
		visible = {
			ZGH = {
				is_subject_of = ZVZ
			}
		}
		highlight_states = {
			state = 186
		}		
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		fixed_random_seed = no
		days_remove = @podavlenie_days
		ai_will_do = {
			factor = 150
#			modifier = {
#				factor = 100
#				check_variable = {
#					global.ZGH_separatism > 40
#				}
#			}
		}
		remove_effect = {	
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			if = {
				limit = {
					NOT = {
						has_completed_focus = zvz_shkolnye_reformy	
					}
				}
				ZGH = {
					ZGH_separatism_minus_1 = yes
				}
			}
			if = {
				limit = {					
					has_completed_focus = zvz_shkolnye_reformy						
				}
				ZGH = {
					ZGH_separatism_minus_2 = yes
				}
			}				
		}
	}
###########	  ИНТЕГРАЦИЯ
	zvz_zts_intagration_law = {
		icon = zts_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {
			has_stability > 0.60
			has_war = no
			ZTS = {
				custom_trigger_tooltip = {
					tooltip = zts_separ_menee_35				
					check_variable = { global.ZTS_separatism < 45 }				
				}	
			}			
		}
		visible = {
			ZTS = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_zakonoproekt_na_integratsii
		}		
		fire_only_once = no
		days_re_enable = 100
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZTS = {
				country_event = { id = vizan.24 }
			}			
		}
	}
	zvz_zgf_intagration_law = {
		icon = zgf_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {
			has_stability > 0.60
			has_war = no
			ZGF = {
				custom_trigger_tooltip = {
					tooltip = zts_separ_menee_35				
					check_variable = { global.ZGF_separatism < 45 }				
				}	
			}			
		}
		visible = {
			ZGF = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_zakonoproekt_na_integratsii
		}		
		fire_only_once = no
		days_re_enable = 100
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZGF = {
				country_event = { id = vizan.24 }
			}			
		}
	}
	zvz_zge_intagration_law = {
		icon = zge_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {
			has_stability > 0.60
			has_war = no
			ZGE = {
				custom_trigger_tooltip = {
					tooltip = zts_separ_menee_35				
					check_variable = { global.ZGE_separatism < 45 }				
				}	
			}			
		}
		visible = {
			ZGE = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_zakonoproekt_na_integratsii
		}		
		fire_only_once = no
		days_re_enable = 100
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZGE = {
				country_event = { id = vizan.24 }
			}			
		}
	}
	zvz_zgh_intagration_law = {
		icon = zgh_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {
			has_stability > 0.60
			has_war = no
			ZGH = {
				custom_trigger_tooltip = {
					tooltip = zts_separ_menee_35				
					check_variable = { global.ZGH_separatism < 45 }				
				}	
			}			
		}
		visible = {
			ZGH = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_zakonoproekt_na_integratsii
		}		
		fire_only_once = no
		days_re_enable = 100
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZGH = {
				country_event = { id = vizan.24 }
			}			
		}
	}
	
	###############	устранение сепаратистов, облавы ############################################
	zvz_minus_2_zts_separ_oblava = {
		icon = zts_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZTS_separatism > 1 }			
			political_power_daily > 0.2			
			not = {
				has_decision = zvz_minus_2_zgh_separ_oblava
				has_decision = zvz_minus_2_zge_separ_oblava
				has_decision = zvz_minus_2_zgf_separ_oblava
			}
		}
		visible = {
			ZTS = {
				is_subject_of = ZVZ
			}
			OR = {
				has_completed_focus = zvz_mirnoe_reshenie_voprosov_separat
				has_completed_focus = zvz_kurs_na_centralizatiy
			}	
		}		
		modifier = {
			political_power_gain = -0.2
		}
		fire_only_once = no
		cost = 10
		fixed_random_seed = no
		days_remove = @oblava_days
		ai_will_do = {
			factor = 200			
		}
		remove_effect = {
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			ZTS = {
				ZTS_separatism_minus_2 = yes
			}				
		}
	}
	zvz_minus_2_zgf_separ_oblava = {
		icon = zgf_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZGF_separatism > 1 }			
			political_power_daily > 0.2			
			not = {
				has_decision = zvz_minus_2_zgh_separ_oblava
				has_decision = zvz_minus_2_zts_separ_oblava
				has_decision = zvz_minus_2_zge_separ_oblava
			}
		}
		visible = {
			ZGF = {
				is_subject_of = ZVZ
			}
			OR = {
				has_completed_focus = zvz_mirnoe_reshenie_voprosov_separat
				has_completed_focus = zvz_kurs_na_centralizatiy
			}
		}		
		modifier = {
			political_power_gain = -0.2
		}
		fire_only_once = no
		cost = 10
		fixed_random_seed = no
		days_remove = @oblava_days
		ai_will_do = {
			factor = 200			
		}
		remove_effect = {
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			ZGF = {
				ZGF_separatism_minus_2 = yes
			}				
		}
	}	
	zvz_minus_2_zge_separ_oblava = {
		icon = zge_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZGE_separatism > 1 }			
			political_power_daily > 0.2			
			not = {
				has_decision = zvz_minus_2_zgh_separ_oblava
				has_decision = zvz_minus_2_zts_separ_oblava
				has_decision = zvz_minus_2_zgf_separ_oblava
			}
		}
		visible = {
			ZGE = {
				is_subject_of = ZVZ
			}
			OR = {
				has_completed_focus = zvz_mirnoe_reshenie_voprosov_separat
				has_completed_focus = zvz_kurs_na_centralizatiy
			}
		}		
		modifier = {
			political_power_gain = -0.2
		}
		fire_only_once = no
		cost = 10
		fixed_random_seed = no
		days_remove = @oblava_days
		ai_will_do = {
			factor = 200			
		}
		remove_effect = {
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			ZGE = {
				ZGE_separatism_minus_2 = yes
			}				
		}
	}
	zvz_minus_2_zgh_separ_oblava = {
		icon = zgh_knopka
#		allowed = {
#			tag = ZVZ
#		}
		available = {			
			check_variable = { global.ZGH_separatism > 1 }			
			political_power_daily > 0.2			
			not = {
				has_decision = zvz_minus_2_zts_separ_oblava
				has_decision = zvz_minus_2_zge_separ_oblava
				has_decision = zvz_minus_2_zgf_separ_oblava
			}
		}
		visible = {
			ZGH = {
				is_subject_of = ZVZ
			}
			OR = {
				has_completed_focus = zvz_mirnoe_reshenie_voprosov_separat
				has_completed_focus = zvz_kurs_na_centralizatiy
			}
		}		
		modifier = {
			political_power_gain = -0.2
		}
		fire_only_once = no
		cost = 10
		fixed_random_seed = no
		days_remove = @oblava_days
		ai_will_do = {
			factor = 200			
		}
		remove_effect = {	
			custom_effect_tooltip = padavlenie_v_despotate_opisanie_tt
			ZGH = {
				ZGH_separatism_minus_2 = yes
			}				
		}
	}

######### ВКЛЮЧЕНИЕ В СОСТАВ (империя)
	zvz_zts_ultimat_law = {
		icon = zts_knopka
#		allowed = {
#			tag = ZVZ
#		}		
		available = {
			has_stability > 0.5
			has_war_support > 0.5
			has_war = no						
		}
		visible = {
			ZTS = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_edinaya_romeya
		}		
		fire_only_once = yes		
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZTS = {
				country_event = { id = vizan.68 }
			}			
		}
	}
	zvz_zgf_ultimat_law = {
		icon = zgf_knopka
#		allowed = {
#			tag = ZVZ
#		}		
		available = {
			has_stability > 0.5
			has_war_support > 0.5
			has_war = no						
		}
		visible = {
			ZGF = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_edinaya_romeya
		}		
		fire_only_once = yes		
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZGF = {
				country_event = { id = vizan.68 }
			}			
		}
	}
	zvz_zge_ultimat_law = {
		icon = zge_knopka
#		allowed = {
#			tag = ZVZ
#		}	
		available = {
			has_stability > 0.5
			has_war_support > 0.5
			has_war = no						
		}
		visible = {
			ZGE = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_edinaya_romeya			
		}		
		fire_only_once = yes		
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZGE = {
				country_event = { id = vizan.68 }
			}			
		}
	}
	zvz_zgh_ultimat_law = {
		icon = zgh_knopka
#		allowed = {
#			tag = ZVZ
#		}		
		available = {
			has_stability > 0.5
			has_war_support > 0.5
			has_war = no						
		}
		visible = {
			ZGH = {
				is_subject_of = ZVZ
			}
			has_completed_focus = zvz_edinaya_romeya
		}		
		fire_only_once = yes		
		cost = 50		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_intagration_law_tt
			ZGH = {
				country_event = { id = vizan.68 }
			}			
		}
	}
}	

romeya_national_zemli_categ = {		#######	национализация деспотатов
	zvz_nationaliz_zemel_47 = {
		icon = generic_civil_support
		available = {
			has_stability > 0.65
			has_war = no
			controls_state = 47 			
		}		
		fire_only_once = yes		
		cost = 20		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			47 = { add_core_of = ROOT }
			add_stability = -0.01
		}
	}
	zvz_nationaliz_zemel_186 = {
		icon = generic_civil_support
		available = {
			has_stability > 0.65
			has_war = no
			controls_state = 186 			
		}				
		fire_only_once = yes		
		cost = 20		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			186 = { add_core_of = ROOT }
			add_stability = -0.01
		}
	}
	zvz_nationaliz_zemel_731 = {
		icon = generic_civil_support
		available = {
			has_stability > 0.65
			has_war = no
			controls_state = 731 			
		}				
		fire_only_once = yes		
		cost = 20		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			731 = { add_core_of = ROOT }
			add_stability = -0.01
		}
	}
	zvz_nationaliz_zemel_106 = {
		icon = generic_civil_support
		available = {
			has_stability > 0.65
			has_war = no
			controls_state = 106 			
		}				
		fire_only_once = yes		
		cost = 20		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			106 = { add_core_of = ROOT }
			add_stability = -0.01
		}
	}
	zvz_nationaliz_zemel_185 = {
		icon = generic_civil_support
		available = {
			has_stability > 0.65
			has_war = no
			controls_state = 185 			
		}				
		fire_only_once = yes		
		cost = 20		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			185 = { add_core_of = ROOT }
			add_stability = -0.01
		}
	}
	zvz_nationaliz_zemel_782 = {
		icon = generic_civil_support
		available = {
			has_stability > 0.65
			has_war = no
			controls_state = 782 			
		}				
		fire_only_once = yes		
		cost = 20		
		ai_will_do = {
			factor = 200			
		}
		complete_effect = {	
			782 = { add_core_of = ROOT }
			add_stability = -0.01
		}
	}
}
###############################################################################################################
romeya_alliancy_categ = {	#has_completed_focus = zvz_mesto_v_mire
	zvz_podgotovka_k_vstupleniu_v_sneg = {
		icon = generic_political_discourse
		available = {
			political_power_daily > 0.2	
			OR = {
				has_government = democratic
				has_government = neutrality
			}
			has_war = no
			has_added_tension_amount < 10			
			is_subject = no
		}
		visible = {
			has_completed_focus = zvz_kurs_v_sneg				
		}
		fire_only_once = yes
		modifier = {			
			political_power_gain = -0.2		
		}
		days_remove = 50		
		cost = 80
		remove_effect = {
			set_country_flag = zvz_gotovy_podavat_zayavku
		}
		ai_will_do = {
			base = 150
			modifier = {
				add = 50
				has_government = democratic
			}
		}
	}
	zvz_zayavka_v_rim_sneg = {
		icon = generic_political_discourse
		available = {
			OR = {
				has_government = democratic
				has_government = neutrality
			}
			has_war = no
			has_added_tension_amount < 10
			has_country_flag = zvz_gotovy_podavat_zayavku					
			is_subject = no
		}
		visible = {
			has_completed_focus = zvz_kurs_v_sneg
			is_in_faction = no			
			ZRI = {
				is_faction_leader = yes
				has_government = democratic
			}
			NOT = {
				has_war_with = ZRI
			}			
		}
		fire_only_once = no		
		days_re_enable = 350
		cost = 30
		complete_effect = {
			custom_effect_tooltip = zayavka_v_rim_diplomat_tt
			ZRI = {
				country_event = { id = ar_political.706 }
			}
		}
		ai_will_do = {
			base = 80
			modifier = {
				add = 100
				has_government = democratic
			}
		}
	}
}

romeya_zamorskie_territorii_categ = {	#	has_completed_focus = zvz_usilenie_prisutstviya
	zvz_dorogi_453 = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			has_full_control_of_state = 453					
		}
		visible = {					
			has_full_control_of_state = 453
		}
		highlight_states = {
			state = 453
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			add_stability = 0.02
			if = {
				limit = {
					453 = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
				}
				453 = {
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
				}
			}
			453 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		}		
		ai_will_do = {
			factor = 15
		}
	}
	zvz_dorogi_846 = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			has_full_control_of_state = 846					
		}
		visible = {					
			has_full_control_of_state = 846
		}
		highlight_states = {
			state = 846
		}
		fire_only_once = yes
		cost = 30			
		complete_effect = {
			add_stability = 0.02
			if = {
				limit = {
					846 = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
				}
				846 = {
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
				}
			}			
			846 = {
				add_building_construction = {
					type = naval_base
					province = 1155
					level = 1
				}				
			}						
		}		
		ai_will_do = {
			factor = 15
		}
	}
	zvz_dorogi_268 = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			has_full_control_of_state = 268					
		}
		visible = {					
			has_full_control_of_state = 268
		}
		highlight_states = {
			state = 268
		}
		fire_only_once = yes
		cost = 20			
		complete_effect = {
			add_stability = 0.02
			if = {
				limit = {
					268 = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
				}
				268 = {
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
				}
			}	
			268 = {
				add_building_construction = {
					type = naval_base
					province = 4985
					level = 1
				}				
			}
		}		
		ai_will_do = {
			factor = 15
		}
	}
	zvz_dorogi_868 = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			has_full_control_of_state = 868					
		}
		visible = {					
			has_full_control_of_state = 868
		}
		highlight_states = {
			state = 868
		}
		fire_only_once = yes
		cost = 30			
		complete_effect = {
			add_stability = 0.02
			if = {
				limit = {
					868 = {
						free_building_slots = {
							building = infrastructure
							size > 1
						}
					}
				}
				868 = {
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
					}
				}
			}
			846 = {
				add_building_construction = {
					type = naval_base
					province = 9663
					level = 1
				}				
			}
		}		
		ai_will_do = {
			factor = 15
		}
	}
}

romeya_vselenskaya_tserkov_categ = {	# has_completed_focus = zvz_na_puti_k_vselenskoi_tserkvi
	zvz_ierusalim_patriarhat = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			OR = {
				has_full_control_of_state = 849	
				ZGS = {
					AND = {
						OR = {
							is_in_faction_with = ZVZ
							is_subject_of = ZVZ
						}
						has_full_control_of_state = 849
					}
				}
			}	
		}
		highlight_states = {
			state = 849
		}
		fire_only_once = yes
		cost = 30			
		complete_effect = {			
			country_event = { id = vizan.73 }
			if = {
				limit = {
					ZGS = {
						is_subject_of = ZVZ
					}
				}
				ZGS = {
					add_ideas = zvz_ierusalim_patriarh
				}
			}
		}		
		ai_will_do = {
			factor = 200
		}
	}
	zvz_aleksandriya_patriarhat = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			OR = {
				has_full_control_of_state = 447	
				ZMM = {
					AND = {
						OR = {
							is_in_faction_with = ZVZ
							is_subject_of = ZVZ
						}
						has_full_control_of_state = 447
					}
				}
			}	
		}
		highlight_states = {
			state = 447
		}
		fire_only_once = yes
		cost = 30			
		complete_effect = {			
			country_event = { id = vizan.74 }	
			if = {
				limit = {
					ZMM = {
						is_subject_of = ZVZ
					}
				}
				ZMM = {
					add_ideas = zvz_aleksandriiskii_patriarh
				}
			}
		}		
		ai_will_do = {
			factor = 200
		}
	}
	zvz_antiohia_patriarhat = {	
		icon = generic_operation		
		available = {
			is_subject = no				
			OR = {
				has_full_control_of_state = 677	
				ZOT = {
					AND = {
						OR = {
							is_in_faction_with = ZVZ
							is_subject_of = ZVZ
						}
						has_full_control_of_state = 677
					}
				}
			}	
		}
		highlight_states = {
			state = 677
		}
		fire_only_once = yes
		cost = 30			
		complete_effect = {			
			country_event = { id = vizan.75 }	
			if = {
				limit = {
					ZOT = {
						is_subject_of = ZVZ
					}
				}
				ZOT = {
					add_ideas = zvz_antiohia_patriarh
				}
			}
		}		
		ai_will_do = {
			factor = 200
		}
	}
}

romeya_linii_oborony_categ = {	#has_completed_focus = zvz_dalekie_ukrepleniya
	zvz_liniya_konstantinopol = {	
		icon = generic_operation		
		available = {			
			has_full_control_of_state = 341	
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			state = 341
		}
		fire_only_once = yes
		cost = 30
		days_remove = 40
		modifier = {
			civilian_factory_use = 3
		}
		remove_effect = {			
			army_experience = 2
			add_war_support = 0.01
			341 = {
				custom_effect_tooltip = zvz_liniya_konstantinopol_tt
				add_building_construction = {
					type = bunker
					level = 2
					province = 9833
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 11829
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 849
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					province = 9833
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					province = 11829
					instant_build = yes
				}
			}
		}		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 200
				has_war = yes
			}	
		}
	}
	zvz_liniya_ankira = {	
		icon = generic_operation		
		available = {			
			has_full_control_of_state = 49	
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			state = 49
		}
		fire_only_once = yes
		cost = 30
		days_remove = 30
		modifier = {
			civilian_factory_use = 3
		}
		remove_effect = {			
			army_experience = 2
			add_war_support = 0.01
			49 = {
				custom_effect_tooltip = zvz_liniya_ankira_tt
				add_building_construction = {
					type = bunker
					level = 2
					province = 11747
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 9871
					instant_build = yes
				}
			}
		}		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 200
				has_war = yes
			}	
		}
	}
	zvz_liniya_kipr = {	
		icon = generic_operation		
		available = {			
			has_full_control_of_state = 183	
			num_of_civilian_factories_available_for_projects > 1
		}
		highlight_states = {
			state = 183
		}
		fire_only_once = yes
		cost = 30
		days_remove = 40
		modifier = {
			civilian_factory_use = 2
		}
		remove_effect = {			
			army_experience = 2
			add_war_support = 0.01
			183 = {
				custom_effect_tooltip = zvz_liniya_kipr_tt
				add_building_construction = {
					type = bunker
					level = 2
					province = 7193
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 11984
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					province = 7193
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					level = 2
					province = 11984
					instant_build = yes
				}
			}
		}		
		ai_will_do = {
			factor = 30
			modifier = {
				factor = 200
				has_war = yes
			}	
		}
	}
	zvz_liniya_kanal = {	
		icon = generic_operation		
		available = {			
			has_full_control_of_state = 846	
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = {
			state = 846
		}
		fire_only_once = yes
		cost = 30
		days_remove = 30
		modifier = {
			civilian_factory_use = 3
		}
		remove_effect = {			
			army_experience = 2
			add_war_support = 0.01
			846 = {
				custom_effect_tooltip = zvz_liniya_kanal_tt
				add_building_construction = {
					type = bunker
					level = 2
					province = 12049
					instant_build = yes
				}
				add_building_construction = {
					type = bunker
					level = 2
					province = 4073
					instant_build = yes
				}				
			}
		}		
		ai_will_do = {
			factor = 60
			modifier = {
				factor = 100
				has_war = yes
			}	
		}
	}


}
#########################################################################################################################################
############################################################################################################################################
####################################################################################################################################
##########################################################################################################################################
romeya_kreditovanie_dec_categ = {	#has_completed_focus = zvz_otdel_kreditovaniya
#	zvz_add_10_money_v_fond = {		#10 фоллисов
#		icon = generic_decision
#		available = {			
#			custom_trigger_tooltip = {
#				tooltip = zvz_max_kreditov_1000				
#				check_variable = { zvz_fond_kreditov < 1000 }
#			}
#		}		
#		fire_only_once = no
#		days_re_enable = 2
#		cost = 25		
#		ai_will_do = {
#			factor = 2
#			modifier = {
#				factor = 150
#				check_variable = {
#					zvz_fond_kreditov < 400
#				}	
#			}
#		}
#		complete_effect = {	
#			custom_effect_tooltip = zvz_10_deneg_add
#			add_to_variable = { zvz_fond_kreditov = 10 }
#			clamp_variable = {
#				var = zvz_fond_kreditov
#				min = 0
#				max = 1000
#			}
#		}
#	}
#	zvz_add_30_money_v_fond = {		#30 фоллисов
#		icon = generic_decision	
#		available = {			
#			custom_trigger_tooltip = {
#				tooltip = zvz_max_kreditov_1000				
#				check_variable = { zvz_fond_kreditov < 1000 }
#			}
#		}		
#		fire_only_once = no
#		days_re_enable = 2
#		cost = 60		
#		ai_will_do = {
#			factor = 2
#			modifier = {
#				factor = 150
#				check_variable = {
#					zvz_fond_kreditov < 400
#				}	
#			}
#		}
#		complete_effect = {	
#			custom_effect_tooltip = zvz_30_deneg_add
#			add_to_variable = { zvz_fond_kreditov = 30 }
#			clamp_variable = {
#				var = zvz_fond_kreditov
#				min = 0
#				max = 1000
#			}
#		}
#	}
	
	zvz_triggeredd_targettt = {	#	выбрать себе цель)0))00
		icon = generic_operation
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		target_trigger = {
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {
#					has_war_with = ROOT
					has_government = communism
					has_government = democratic
				}
			}
		} 
		available = {			
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {
#					has_war_with = ROOT
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {	
			NOT = {
				has_country_flag = zvz_target_selected_flag
			}			
		}
		fire_only_once = no
		days_re_enable = 2
		cost = 1		
		ai_will_do = {
			factor = 50
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_triggeredd_targettt_tt    
			set_country_flag = zvz_target_selected_flag
			FROM = {
				set_country_flag = zvz_our_target_flag
				hidden_effect = {
					country_event = { id = vizan.100 days = 2 random = 10 }
				}
				every_other_country = {
					clr_country_flag = zvz_our_target_flag	
				}
			}			
		}
	}
	#################################################	ЭКОН0МИКА
	zvz_okazat_finans_pomosh = {	#	оказать финансовую помощь
		icon = generic_nationalism
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
#		target_trigger = {
#			FROM = {
#				has_country_flag = zvz_our_target_flag				
#			}
#		} 
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_30				
				check_variable = { zvz_fond_kreditov > 29 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {
#					has_war_with = ROOT
					has_government = communism
					has_government = democratic
				}
				has_stability < 0.5				
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag				
			}
		}
		fire_only_once = no
		days_re_enable = 35
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_okazat_finans_pomosh_tt
			custom_effect_tooltip = zvz_fond_kreditov_minus_30_finans_pomosh		
			FROM = {
				country_event = { id = vizan.101 }
				custom_effect_tooltip = needs_approval
			}			
		}
	}
	zvz_vikupit_dolgovye_obyazatelstva = {	#	Выкупить долговые обязательства
		icon = generic_form_nation
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
#		target_trigger = {
#			FROM = {
#				has_country_flag = zvz_our_target_flag				
#			}
#		} 
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_50				
				check_variable = { zvz_fond_kreditov > 49 }
			}
			FROM = {
				custom_trigger_tooltip = {
					tooltip = zvz_infl_tt_50				
					check_variable = { zvz_infl > 49 }
				}
			}
			FROM = {			
				exists = yes				
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
				ic_ratio = {
					tag = ROOT
					ratio < 0.5
				}				
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag				
			}
		}
		fire_only_once = yes
#		days_re_enable = 2
		cost = 2		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_vikupit_dolgovye_obyazatelstva_tt
			custom_effect_tooltip = zvz_fond_kreditov_minus_50			
			FROM = {
				country_event = { id = vizan.112 }				
			}	
			subtract_from_variable = { zvz_fond_kreditov = 50 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	zvz_vikupit_aktsii_krupnih_kompanii = {	#	Покупка крупных компаний
		icon = generic_industry
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_50				
				check_variable = { zvz_fond_kreditov > 49 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = yes
#		days_re_enable = 2
		cost = 2		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_vikupit_aktsii_krupnih_kompanii_tt		
			custom_effect_tooltip = zvz_fond_kreditov_minus_50					
			FROM = {
				country_event = { id = vizan.113 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 50 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
######################  СТАБКА
	zvz_naladit_kontakt_s_oppozisiei = {	#	наладить контакт с оппозицией
		icon = generic_civil_support
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		target_trigger = {
			FROM = {					
				NOT = {
					has_country_flag = oppozition_aktivated_fond_flag
				}
			}
		} 
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20				
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag	
			}	
		}
		fire_only_once = yes
#		days_re_enable = 2
		cost = 2		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_naladit_kontakt_s_oppozisiei_tt		
			unlock_decision_tooltip = zvz_finansirovat_sozdanie_oppozits_smi
			unlock_decision_tooltip = zvz_podderjat_vistuplenie_oppozitsii
			FROM = {
				country_event = { id = vizan.105 days = 2 random = 15 }
			}	
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	zvz_finansirovat_sozdanie_oppozits_smi = {	#	профинансировать создание оппозиционных средств массовой информации
		icon = generic_operation
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		target_trigger = {
			FROM = {
#				has_country_flag = zvz_our_target_flag	
				has_country_flag = oppozition_aktivated_fond_flag
			}
		} 
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20			
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = yes
#		days_re_enable = 2
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_finansirovat_sozdanie_oppozits_smi_tt
			unlock_decision_tooltip = zvz_podderjat_smi			
			FROM = {
				set_country_flag = zvz_finansirovat_sozdanie_oppozits_smi_flag
				country_event = { id = vizan.114 days = 4 random = 50 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	zvz_podderjat_smi = {	#	поддержать СМИ свобода слова
		icon = generic_political_discourse
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}
		target_trigger = {
			FROM = {
#				has_country_flag = zvz_our_target_flag	
				has_country_flag = zvz_finansirovat_sozdanie_oppozits_smi_flag
			}
		} 		
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20			
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 35
		cost = 1		
		ai_will_do = {
			factor = 150
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_podderjat_smi_tt			
			FROM = {
				country_event = { id = vizan.109 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}	
	zvz_podderjat_vistuplenie_oppozitsii = {	#	поддержать выступление оппозиции
		icon = generic_break_treaty
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		target_trigger = {
			FROM = {
#				has_country_flag = zvz_our_target_flag	
				has_country_flag = oppozition_aktivated_fond_flag
			}
		} 
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20			
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				has_stability < 0.65
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 35
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_podderjat_vistuplenie_oppozitsii_tt			
			FROM = {
				country_event = { id = vizan.106 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	zvz_big_marsh_oppozitsii = {	#	поддержать марш оппозиции
		icon = generic_civil_support
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		target_trigger = {
			FROM = {
#				has_country_flag = zvz_our_target_flag	
				has_country_flag = oppozition_aktivated_fond_flag
			}
		} 
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_30			
				check_variable = { zvz_fond_kreditov > 29 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				has_stability < 0.6
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 55
		cost = 2		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_30	
			custom_effect_tooltip = zvz_big_marsh_oppozitsii_tt			
			FROM = {
				country_event = { id = vizan.115 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 30 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}	
	
	
	zvz_diskredit_pravitelstva = {	#	Дискредитировать правительство 
		icon = generic_decision
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_50				
				check_variable = { zvz_fond_kreditov > 49 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 35
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_50	
			custom_effect_tooltip = zvz_diskredit_pravitelstva_tt			
			FROM = {
				country_event = { id = vizan.138 }
			}			
		}
	}
	
	zvz_perepisat_istoriy = {	#	Переписать историю государства, меняя акценты
		icon = generic_break_treaty
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20				
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 80
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_perepisat_istoriy_tt			
			FROM = {
				country_event = { id = vizan.117 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	### поддержа националистов
	zvz_podderjka_nationalistovy = {	#	Финансирование националистических групп
		icon = generic_ignite_civil_war
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_30				
				check_variable = { zvz_fond_kreditov > 29 }
			}
			FROM = {
				has_stability < 0.62
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 35
		cost = 1		
		ai_will_do = {
			factor = 50
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_30	
			custom_effect_tooltip = zvz_podderjka_nationalistovy_tt			
			FROM = {
				country_event = { id = vizan.118 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 30 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	
	zvz_aktsii_vandalizma = {	#	Устроить акции вандализма  
		icon = generic_scorched_earth
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20				
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 35
		cost = 1		
		ai_will_do = {
			factor = 50
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		fixed_random_seed = no
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_aktsii_vandalizma_tt
			random_list = {
				70 = {
					FROM = {
						country_event = { id = vizan.119 }
					}
				}
				30 = {
					FROM = {
						country_event = { id = vizan.120 }
					}
				}
			}			
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	#### other
	zvz_romeya_the_best = {	#	Поддержка образа Ромеи как самой цивилизованной страны мира
		icon = generic_decision
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_30				
				check_variable = { zvz_fond_kreditov > 29 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 55
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_30	
			custom_effect_tooltip = zvz_romeya_the_best_tt			
			FROM = {
				country_event = { id = vizan.121 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 30 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	zvz_romeyskii_teatr = {	#	Лучший театр Константинополя посетит столицу этой страны 
		icon = generic_nationalism
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_20				
				check_variable = { zvz_fond_kreditov > 19 }
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 120
		cost = 2		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_20	
			custom_effect_tooltip = zvz_romeyskii_teatr_tt			
			FROM = {
				country_event = { id = vizan.129 }
			}
			subtract_from_variable = { zvz_fond_kreditov = 20 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}			
		}
	}
	
	zvz_plan_ih_borby = {	#	Попытка переворота руками их оппозиции
		icon = generic_independence
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_50				
				check_variable = { zvz_fond_kreditov > 49 }
			}
			FROM = {
				has_stability < 0.4
				democratic > 0.3
			}
			FROM = {
				custom_trigger_tooltip = {
					tooltip = zvz_infl_tt_70				
					check_variable = { zvz_infl > 69 }
				}
			}
			FROM = {
				NOT = {
					has_idea = zvz_podavlenie_maidana
				}
			}
			FROM = {
				exists = yes
				is_subject = no
				has_war = no
				NOT = {					
					has_government = communism
					has_government = democratic
				}
			}
		}	
		visible = {				
			has_country_flag = zvz_target_selected_flag	
			FROM = {
				has_country_flag = zvz_our_target_flag
			}	
		}
		fire_only_once = no
		days_re_enable = 170
		cost = 5		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_50	
			custom_effect_tooltip = zvz_plan_ih_borby_tt			
			FROM = {
				country_event = { id = vizan.122 }
			}	
			subtract_from_variable = { zvz_fond_kreditov = 50 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	######################### 	поддержка революционной стороны
	zvz_maidan_finansy_dobrovoltsev = {	#	профинансировать добровольческие батальоны
		icon = generic_ignite_civil_war
		targets = {
			D01 D02 D03 D04 D05 D06 D07 D08 D09 D010 D011 D012 D013 D014 D015
		}	
		target_trigger = {
			FROM = {
				has_country_flag = pro_romeya_maidan_flag
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_10				
				check_variable = { zvz_fond_kreditov > 9 }
			}			
			FROM = {
				exists = yes
				is_subject = no	
				has_government = democratic
			}
		}	
		visible = {				
			FROM = {
				has_country_flag = pro_romeya_maidan_flag
				has_civil_war = yes
				NOT = {
					has_war_with = ZVZ
				}
			}	
		}
		fire_only_once = no
		days_re_enable = 30
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 100
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_10	
			custom_effect_tooltip = zvz_maidan_finansy_dobrovoltsev_tt			
			FROM = {
				country_event = { id = vizan.131 }
			}	
			subtract_from_variable = { zvz_fond_kreditov = 10 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	
	zvz_maidan_finansy_weapon = {	#	передать им оружие
		icon = generic_prepare_civil_war
		targets = {
			D01 D02 D03 D04 D05 D06 D07 D08 D09 D010 D011 D012 D013 D014 D015
		}	
		target_trigger = {
			FROM = {
				has_country_flag = pro_romeya_maidan_flag
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_10				
				check_variable = { zvz_fond_kreditov > 9 }
			}	
			has_equipment = {
				infantry_equipment > 350
			}
			FROM = {
				exists = yes
				is_subject = no	
				has_government = democratic
			}
		}	
		visible = {				
			FROM = {
				has_country_flag = pro_romeya_maidan_flag
				has_civil_war = yes
				NOT = {
					has_war_with = ZVZ
				}
			}	
		}
		fire_only_once = no
		days_re_enable = 20
		cost = 1		
		ai_will_do = {
			factor = 120
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_10	
			custom_effect_tooltip = zvz_maidan_finansy_weapon_tt			
			FROM = {
				country_event = { id = vizan.132 }
			}	
			subtract_from_variable = { zvz_fond_kreditov = 10 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	
	
	
	zvz_maidan_sodeistvie_democratizaysii = {	#	замарионетить
		icon = eng_trade_unions_support
		targets = {
			D01 D02 D03 D04 D05 D06 D07 D08 D09 D010 D011 D012 D013 D014 D015
		}	
		target_trigger = {
			FROM = {
				has_country_flag = pro_romeya_maidan_flag
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = zvz_immem_kreditov_10				
				check_variable = { zvz_fond_kreditov > 9 }
			}	
			has_equipment = {
				infantry_equipment > 350
			}
			FROM = {
				exists = yes
				is_subject = no	
				has_government = democratic
				has_civil_war = no
			}
		}	
		visible = {				
			FROM = {
				has_country_flag = pro_romeya_maidan_flag				
				NOT = {
					has_war_with = ZVZ
				}
			}	
		}
		fire_only_once = yes
#		days_re_enable = 2
		cost = 1		
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 50
				check_variable = {
					zvz_fond_kreditov > 150
				}	
			}
		}
		complete_effect = {	
			custom_effect_tooltip = zvz_fond_kreditov_minus_10	
			custom_effect_tooltip = zvz_maidan_sodeistvie_democratizaysii_tt			
			FROM = {
				country_event = { id = vizan.133 }
			}	
			subtract_from_variable = { zvz_fond_kreditov = 10 } 
			clamp_variable = {
				var = zvz_fond_kreditov
				min = 0
				max = 1000
			}
		}
	}
	
	
	
	
	###############################################
	zvz_smenit_target = {	#	сменить цель
		icon = generic_break_treaty
		targets = {
			XKO	ZAS ZAI ZVA ZML ZGS ZGO ZOT
		}	
#		target_trigger = {
#			FROM = {
#				has_country_flag = zvz_our_target_flag				
#			}
#		} 		
		available = {			
			
		}	
		visible = {			
			has_country_flag = zvz_target_selected_flag
			FROM = {
				has_country_flag = zvz_our_target_flag				
			}
		}
		fire_only_once = no
		days_re_enable = 1
		cost = 1		
		ai_will_do = {
			factor = 0
			modifier = {
				add = 200
				any_other_country = {
					has_country_flag = zvz_our_target_flag	
					OR = {
						is_subject = yes
						exists = no
						has_war_with = ROOT
						has_government = communism
						has_government = democratic
					}
				}
			}			
		}
		complete_effect = {	
			clr_country_flag = zvz_target_selected_flag
			hidden_effect = {
				every_other_country = {
					clr_country_flag = zvz_our_target_flag	
				}
			}
		}
	}
#	zvz_vyvesti_dengi_10 = {	#	вывести деньги		
#		icon = generic_decision	
#		available = {			
#			custom_trigger_tooltip = {
#				tooltip = zvz_immem_kreditov_10				
#				check_variable = { zvz_fond_kreditov > 9 }
#			}
#		}		
#		fire_only_once = no
#		days_re_enable = 2
#		cost = 1		
#		ai_will_do = {
#			factor = 0			
#		}
#		complete_effect = {	
#			custom_effect_tooltip = zvz_fond_kreditov_minus_10
#			subtract_from_variable = { zvz_fond_kreditov = 10 }
#			clamp_variable = {
#				var = zvz_fond_kreditov
#				min = 0
#				max = 1000
#			}
#			add_political_power = 17
#		}
#	}
}

