﻿###########################
# Roman  Events
###########################
add_namespace = romanimp
# karfagen
country_event = {
	id = romanimp.1
	title = romanimp.1.t
	desc = romanimp.1.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # Accept
		name = romanimp.1.a
		ai_chance = { factor = 100 }
		ZRI = {
			country_event = { id = romanimp.3 }
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = { # Refuse
		name = romanimp.1.b
		ZRI = {
			country_event = { id = romanimp.2 }
		}
	}
}

# karfagen otakaz
country_event = {
	id = romanimp.2
	title = romanimp.2.t
	desc = romanimp.2.d
	picture = GFX_report_event_stalin_02	
	is_triggered_only = yes	
	option = {
		name = romanimp.2.a
		add_stability = -0.02
	}
}

# karfagen soglasn
country_event = {
	id = romanimp.3
	title = romanimp.3.t
	desc = romanimp.3.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.3.a
		annex_country = { target = ZKG }
		hidden_effect = {
			ZRI = {
				country_event = { days = 1 id = ar_news.507 }
			}
		}
	}
}

# vybory democr
country_event = {
	id = romanimp.4
	title = romanimp.4.t
	desc = romanimp.4.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.4.a
		add_popularity = { ideology = democratic popularity = 0.64 }	
		set_politics = {
			ruling_party = democratic
			last_election = "1986.2.2"			
			elections_allowed = yes
		}
		hidden_effect = {
			country_event = {
				days = 1
				id = ar_news.508
			}
		}
	}
}

# swi integ
country_event = {
	id = romanimp.5
	title = romanimp.5.t
	desc = romanimp.5.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = { # soglasn
		name = romanimp.5.a
		ai_chance = {
			factor = 10	
			modifier = {
				factor = 0
				XAU = {
					has_army_size = { size > 10 }
				}
			}
		}
		ZRI = {
			country_event = { days = 1 id = romanimp.6 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.5.a.tt		
	}
	option = { # otkaz
		name = romanimp.5.b
		ai_chance = {
			base = 15
			modifier = {
				ZRI = { has_army_size = { size > 44 } }
				factor = 0.5
			}			
		}
		custom_effect_tooltip = romanimp.5.b.tt		
		ZRI = {
			country_event = { id = romanimp.7 }
		}
	}
}

# swi soglasn
country_event = {
	id = romanimp.6
	title = romanimp.6.t
	desc = romanimp.6.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.6.a
		annex_country = { target = ZWI }
		add_named_threat = { threat = 3 name = roman_annex_swi }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.511 }
					}
				}
	}
}

# swi otakaz
country_event = {
	id = romanimp.7
	title = romanimp.7.t
	desc = romanimp.7.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.7.a
		if = {
				limit = {
					ZWI = {
						is_puppet_of = ZRI
					}
				}
				set_autonomy = {
					target = ZWI
					autonomy_state = autonomy_free
				}
			}
		ZRI = { remove_from_faction = ZWI }	
		add_state_claim = 151
		add_state_claim = 3
		add_state_claim = 153
		declare_war_on = {
			type = annex_everything
			target = ZWI
		}
		ZWI = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
			}
		}
	}
}

# aus integ
country_event = {
	id = romanimp.8
	title = romanimp.8.t
	desc = romanimp.8.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.8.a
		ai_chance = {
			base = 10
			modifier = {
				add = -25
				ZRI = { has_army_size = { size < 40 } }
			}
			modifier = {
				add = 100
				ZRI = { has_army_size = { size > 39 } }
			}
		}
		ZRI = {
			country_event = { days = 2 id = romanimp.9 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.8.a.tt		
	}
	option = { # otkaz
		name = romanimp.8.b
		ai_chance = {
			base = 10
			modifier = {
				ZRI = { has_army_size = { size > 39 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				ZRI = { has_army_size = { size < 30 } }
			}
		}
		custom_effect_tooltip = romanimp.8.b.tt		
		ZRI = {
			country_event = { id = romanimp.10 }
		}
	}
}

# aus soglasn
country_event = {
	id = romanimp.9
	title = romanimp.9.t
	desc = romanimp.9.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.9.a
		annex_country = { target = XAU }
		add_named_threat = { threat = 3 name = roman_annex_aus }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.512 }
					}
				}
	}
}

# aus otakaz
country_event = {
	id = romanimp.10
	title = romanimp.10.t
	desc = romanimp.10.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.10.a
		if = {
				limit = {
					XAU = {
						is_puppet_of = ZRI
					}
				}
				set_autonomy = {
					target = XAU
					autonomy_state = autonomy_free
				}
			}
		ZRI = { remove_from_faction = XAU }
		add_state_claim = 152
		add_state_claim = 4
		add_state_claim = 102
		add_state_claim = 764		
		declare_war_on = {
			type = annex_everything
			target = XAU
		}
		XAU = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
			}
		}
	}
}

# cro integ
country_event = {
	id = romanimp.11
	title = romanimp.11.t
	desc = romanimp.11.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.11.a
		ai_chance = {
			base = 10
			modifier = {
				add = -25
				ZRI = { has_army_size = { size < 40 } }
			}
			modifier = {
				add = 100
				ZRI = { has_army_size = { size > 39 } }
			}
		}
		ZRI = {
			country_event = { days = 2 id = romanimp.12 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.11.a.tt		
	}
	option = { # otkaz
		name = romanimp.11.b
		ai_chance = {
			base = 10
			modifier = {
				ZRI = { has_army_size = { size > 39 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				ZRI = { has_army_size = { size < 30 } }
			}
			modifier = {
				add = 30
				ZRI = { has_war = yes }
			}
		}
		custom_effect_tooltip = romanimp.11.b.tt		
		ZRI = {
			country_event = { id = romanimp.13 }
		}
	}
}

# cro soglasn
country_event = {
	id = romanimp.12
	title = romanimp.12.t
	desc = romanimp.12.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.12.a
#		annex_country = { target = CRO }
		add_named_threat = { threat = 3 name = roman_annex_cro }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.513 }
					}
				}
	}
}

# cro otakaz
country_event = {
	id = romanimp.13
	title = romanimp.13.t
	desc = romanimp.13.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.13.a
		# if = {
				# limit = {
					# CRO = {
						# is_puppet_of = ZRI
					# }
				# }
				# set_autonomy = {
					# target = CRO
					# autonomy_state = autonomy_free
				# }
			# }
#		ZRI = { remove_from_faction = CRO }
		# add_state_claim = 109			
		# declare_war_on = {
			# type = annex_everything
			# target = CRO
		# }
		# CRO = {
			# drop_cosmetic_tag = yes
			# add_ideas = vosstanie_protiv_rima
			# add_stability = 0.3
			# add_war_support = 0.3
			# hidden_effect = {
				# kill_country_leader = yes
			# }
		# }
	}
}

# ser integ
country_event = {
	id = romanimp.14
	title = romanimp.14.t
	desc = romanimp.11.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.11.a
		ai_chance = {
			factor = 20
			modifier = {
				factor = 80
				strength_ratio = {
					tag = ZRI
					ratio > 0.7
				}
			}	
		}
		ZRI = {
			country_event = { days = 3 id = romanimp.15 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.11.a.tt		
	}
	option = { # otkaz
		name = romanimp.11.b
		ai_chance = {
			factor = 60
			modifier = {
				factor = 20
				strength_ratio = {
					tag = ZRI
					ratio > 0.7
				}
			}	
		}
		custom_effect_tooltip = romanimp.11.b.tt		
		ZRI = {
			country_event = { id = romanimp.16 }
		}
	}
}

# ser soglasn
country_event = {
	id = romanimp.15
	title = romanimp.15.t
	desc = romanimp.15.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.15.a
		annex_country = { target = XMZ }
		add_named_threat = { threat = 3 name = roman_annex_ser }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.514 }
					}
				}
	}
}

# ser otakaz
country_event = {
	id = romanimp.16
	title = romanimp.16.t
	desc = romanimp.16.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.16.a
		if = {
				limit = {
					XMZ = {
						is_puppet_of = ZRI
					}
				}
				set_autonomy = {
					target = XMZ
					autonomy_state = autonomy_free
				}
			}
		ZRI = { remove_from_faction = XMZ }
		add_state_claim = 109
		add_state_claim = 45
		add_state_claim = 763
		add_state_claim = 82
		add_state_claim = 768
		add_state_claim = 107
		add_state_claim = 108		
		declare_war_on = {
			type = annex_everything
			target = XMZ
		}
		XMZ = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
			}
		}
	}
}

# alb integ
country_event = {
	id = romanimp.17
	title = romanimp.17.t
	desc = romanimp.11.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.11.a
		ai_chance = {
			base = 10
			modifier = {
				add = -25
				ZRI = { has_army_size = { size < 50 } }
			}
			modifier = {
				add = 80
				ZRI = { has_army_size = { size > 49 } }
			}
		}
		ZRI = {
			country_event = { days = 3 id = romanimp.18 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.11.a.tt		
	}
	option = { # otkaz
		name = romanimp.11.b
		ai_chance = {
			base = 10
			modifier = {
				ZRI = { has_army_size = { size > 49 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				ZRI = { has_army_size = { size < 40 } }
			}
			modifier = {
				add = 30
				ZRI = { has_war = yes }
			}
		}
		custom_effect_tooltip = romanimp.11.b.tt		
		ZRI = {
			country_event = { id = romanimp.19 }
		}
	}
}

# alb soglasn
country_event = {
	id = romanimp.18
	title = romanimp.18.t
	desc = romanimp.18.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.18.a
#		annex_country = { target = ALB }
		add_named_threat = { threat = 3 name = roman_annex_alb }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.515 }
					}
				}
	}
}

# alb otakaz
country_event = {
	id = romanimp.19
	title = romanimp.19.t
	desc = romanimp.19.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.19.a
		# if = {
				# limit = {
					# ALB = {
						# is_puppet_of = ZRI
					# }
				# }
				# set_autonomy = {
					# target = ALB
					# autonomy_state = autonomy_free
				# }
			# }
		# ZRI = { remove_from_faction = ALB }
		# add_state_claim = 44				
		# declare_war_on = {
			# type = annex_everything
			# target = ALB
		# }
		# ALB = {
			# drop_cosmetic_tag = yes
			# add_ideas = vosstanie_protiv_rima
			# add_stability = 0.3
			# add_war_support = 0.3
			# hidden_effect = {
				# kill_country_leader = yes
			# }
		# }
	}
}

#  andanus ZAL    a not akvitan integ
country_event = {
	id = romanimp.20
	title = romanimp.20.t
	desc = romanimp.20.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.20.a
		ai_chance = {
			base = 10
			modifier = {
				add = -25
				ZRI = { has_army_size = { size < 45 } }
			}
			modifier = {
				add = 70
				ZRI = { has_army_size = { size > 44 } }
			}
		}
		ZRI = {
			country_event = { days = 3 id = romanimp.21 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.20.a.tt		
	}
	option = { # otkaz
		name = romanimp.20.b
		ai_chance = {
			base = 10
			modifier = {
				ZRI = { has_army_size = { size > 39 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				ZRI = { has_army_size = { size < 30 } }
			}
			modifier = {
				add = 30
				ZRI = { has_war = yes }
			}
		}
		custom_effect_tooltip = romanimp.20.b.tt		
		ZRI = {
			country_event = { id = romanimp.22 }
		}
	}
}

# zal soglasn
country_event = {
	id = romanimp.21
	title = romanimp.21.t
	desc = romanimp.21.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.21.a
		annex_country = { target = ZAL }
		add_named_threat = { threat = 3 name = roman_annex_akvit }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.518 }
					}
				}
	}
}

# ZAL otakaz
country_event = {
	id = romanimp.22
	title = romanimp.22.t
	desc = romanimp.22.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.22.a
		if = {
				limit = {
					ZAL = {
						is_puppet_of = ZRI
					}
				}
				set_autonomy = {
					target = ZAL
					autonomy_state = autonomy_free
				}
			}
		ZRI = { remove_from_faction = ZAL }
		add_state_claim = 167
		add_state_claim = 168
		add_state_claim = 173
		add_state_claim = 169
		add_state_claim = 118				
		declare_war_on = {
			type = annex_everything
			target = ZAL
		}
		ZAL = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
			}
		}
	}
}

# katalon integ
country_event = {
	id = romanimp.23
	title = romanimp.23.t
	desc = romanimp.23.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.23.a
		ai_chance = {
			base = 10
			modifier = {
				add = -25
				ZRI = { has_army_size = { size < 40 } }
			}
			modifier = {
				add = 60
				ZRI = { has_army_size = { size > 39 } }
			}
		}
		ZRI = {
			country_event = { days = 3 id = romanimp.24 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.23.a.tt		
	}
	option = { # otkaz
		name = romanimp.23.b
		ai_chance = {
			base = 10
			modifier = {
				ZRI = { has_army_size = { size > 39 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				ZRI = { has_army_size = { size < 30 } }
			}
			modifier = {
				add = 30
				ZRI = { has_war = yes }
			}
		}
		custom_effect_tooltip = romanimp.23.b.tt		
		ZRI = {
			country_event = { id = romanimp.25 }
		}
	}
}

# katalon soglasn
country_event = {
	id = romanimp.24
	title = romanimp.24.t
	desc = romanimp.24.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.24.a
		annex_country = { target = ZKL }
		add_named_threat = { threat = 3 name = roman_annex_katalon }
				hidden_effect = {
					ZRI = {
						country_event = { days = 1 id = ar_news.519 }
					}
				}
	}
}

# katalon otakaz
country_event = {
	id = romanimp.25
	title = romanimp.25.t
	desc = romanimp.25.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.25.a
		if = {
				limit = {
					ZKL = {
						is_puppet_of = ZRI
					}
				}
				set_autonomy = {
					target = ZKL
					autonomy_state = autonomy_free
				}
			}
		ZRI = { remove_from_faction = ZKL }
		add_state_claim = 32	
		add_state_claim = 20
		add_state_claim = 22
		add_state_claim = 31
		add_state_claim = 165
		add_state_claim = 166		
		declare_war_on = {
			type = annex_everything
			target = ZKL
		}
		ZKL = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
			}
		}
	}
}

# mnt integ
country_event = {
	id = romanimp.26
	title = romanimp.26.t
	desc = romanimp.26.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.26.a
		ai_chance = {
			base = 10
			modifier = {
				add = -25
				ZRI = { has_army_size = { size < 20 } }
			}
			modifier = {
				add = 50
				ZRI = { has_army_size = { size > 19 } }
			}
		}
		ZRI = {
			country_event = { days = 3 id = romanimp.27 }
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.26.a.tt		
	}
	option = { # otkaz
		name = romanimp.26.b
		ai_chance = {
			base = 10
			modifier = {
				ZRI = { has_army_size = { size > 20 } }
				factor = 0.5
			}
			modifier = {
				add = 20
				ZRI = { has_army_size = { size < 19 } }
			}
		}
		custom_effect_tooltip = romanimp.26.b.tt		
		ZRI = {
			country_event = { id = romanimp.28 }
		}
	}
}

# mnt soglasn
country_event = {
	id = romanimp.27
	title = romanimp.27.t
	desc = romanimp.27.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.27.a
		annex_country = { target = ZDI }
		add_named_threat = { threat = 3 name = roman_annex_montenegr }
		hidden_effect = {
			ZRI = {
				country_event = { days = 1 id = ar_news.521}
			}
		}
	}
}

# mnt otakaz
country_event = {
	id = romanimp.28
	title = romanimp.28.t
	desc = romanimp.28.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.28.a
		if = {
				limit = {
					ZDI = {
						is_puppet_of = ZRI
					}
				}
				set_autonomy = {
					target = ZDI
					autonomy_state = autonomy_free
				}
			}
		ZRI = { remove_from_faction = ZDI }
		add_state_claim = 105
add_state_claim = 44		
		declare_war_on = {
			type = annex_everything
			target = ZDI
		}
		ZDI = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
			}
		}
	}
}

# osujdenie ilhanata
country_event = {
	id = romanimp.29
	title = romanimp.29.t
	desc = romanimp.29.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.29.a
			add_opinion_modifier = {
				target = ZPA
				modifier = ilhanat_agress_zri
			}		
			hidden_effect = {
				ZRI = {
					country_event = { days = 1 id = ar_news.532}
				}
			}
	}
}

# rim civil WAAAAAAAAAAAARRRRRRRRRRRRR
country_event = {
	id = romanimp.30
	title = romanimp.30.t
	desc = romanimp.30.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	immediate = {
		hidden_effect = {
			drop_cosmetic_tag = yes
			set_global_flag = grazdanochka_v_rime
			add_stability = -0.05
			add_war_support = -0.05
			every_other_country = {		# блок для провок которым рим помог, у них есть выбор примкнуть к нам  или же выступить против нас
				limit = {					
					has_country_flag = rim_pomog_nam_v_prosbe					
#					has_country_flag = rim_nas_obidel					
					OR = {
						is_subject_of = ZRI
						is_puppet_of = ZRI
					}
				}
#				ZRI = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }
#				ZRI = { end_puppet = PREV }
				leave_faction = yes				
				country_event = { hours = 3 id = romanimp.115 }
#				set_country_flag = rom_prov_rebel				
#				drop_cosmetic_tag = yes	
			}
			every_other_country = {
				limit = {	
					NOT = {
						has_country_flag = rim_pomog_nam_v_prosbe		
					}											
					OR = {
						is_subject_of = ZRI
						is_puppet_of = ZRI
					}
				}
				drop_cosmetic_tag = yes	
				ZRI = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }
				leave_faction = yes	
				country_event = { hours = 3 id = romanimp.116 }
#				set_country_flag = rom_prov_rebel				
			}
#			start_civil_war = {
#				ruling_party = fascism
#				ideology = neutrality	
#				size = 0.3	
#				capital = 2
#				states = { 
#					157 117 162 161
#				}
#			}			
			XPX = {
				transfer_state = 157
			}
			if = {
				limit = {
					controls_state = 2
				}
				XPX = {
					transfer_state = 2
				}
			}
			if = {
				limit = {
					controls_state = 117
				}
				XPX = {
					transfer_state = 117
				}
			}
			transfer_units_fraction = {
				target = XPX
				size = 0.42 # Fallback in case one of the ratios below are not stipulated
				stockpile_ratio = 0.42
				army_ratio = 0.28
				navy_ratio = 0.1
				air_ratio = 0.2
				# keep_unit_leaders = {
						    
				# }
				# keep_unit_leaders_trigger = {
					
				# }
			}
			XPX = {				
				load_oob = "XPX_rebel"	
				add_popularity = {
					ideology = neutrality
					popularity = 0.7
				}
				set_politics = {
					ruling_party = neutrality
				}
				every_state = {
					limit = {
						is_core_of = ZRI
						NOT = {
							is_core_of = XPX
						}
					}	
					add_core_of = XPX
					add_claim_by = XPX					
				}
				declare_war_on = {
					target = ZRI
					type = civil_war
				}
				add_civil_war_target = ZRI
#				declare_war_on = {
#					type = annex_everything
#					target = ZRI
#				}
				add_ai_strategy = {
					type = conquer
					id = "ZRI"
					value = 200
				}				
				add_equipment_to_stockpile = {
					type = infantry_equipment_0
					amount = 2678
					producer = ZRI
				}
				country_event = { hours = 3 id = romanimp.101 }
				inherit_technology = ZRI
			}
#			random_other_country = {
#				limit = {
#					original_tag = ZRI
#					has_government = neutrality
#				}
#				set_stability = 0.7
#				set_war_support = 0.7
#				set_cosmetic_tag = ZRI_PAPAS
#				create_faction = freedom_sredizemie	
#			}
#			every_other_country = {
#				limit = { 
#					has_country_flag = rim_nas_obidel
#					has_country_flag = rom_prov_rebel					
#				}
#				add_to_war = {
#					targeted_alliance = XPX
#					enemy = ZRI
#					hostility_reason = asked_to_join
#				}
#				declare_war_on = {
#					type = puppet_wargoal_focus
#					target = ZRI
#				}			
#			}
			
			set_global_flag = zri_vosstanie_papas_partizana
			news_event = { hours = 3 id = ar_news.608 }
			country_event = { hours = 5 id = romanimp.117 }
		}
	}	
	option = {
		name = romanimp.30.a
		custom_effect_tooltip = romanimp.30.a.tt		
	}
}

# trebovania XMZ
country_event = {
	id = romanimp.31
	title = romanimp.31.t
	desc = romanimp.31.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = { # soglasn
		name = romanimp.31.a
		ai_chance = {
			base = 50			
		}	
		if = { #tuskana
			limit = {
				controls_state = 162				
			}
			162 = {					
				remove_building = {
					type = industrial_complex
					level = 1
				}
			}
			107 = { #kosavo
				add_extra_state_shared_building_slots = 1					
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}					
			}				
			custom_effect_tooltip = romanimp.31.a.tt
		}
		XMZ = {
			country_event = {
				id = romanimp.39
			}
		}
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.31.b
		ai_chance = {
			base = 50			
		}
		add_political_power = 80
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		XMZ = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.31.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}

# pomosh provinciyam
country_event = {
	id = romanimp.32
	title = romanimp.32.t
	desc = romanimp.32.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.32.a
			add_timed_idea = {
				idea = rim_grazdans_fabriki_to_provincii
				days = 220
			}
	}
}

# SITUATIA NAKALAETSYA
#country_event = {
#	id = romanimp.33
#	title = romanimp.33.t
#	desc = romanimp.33.d
#	picture = GFX_report_event_generic_conference
#	
#	fire_only_once = yes
#	trigger = {
#		tag = ZRI		
#		date > 1987.6.7		
#		ZRI = {			
#			has_completed_focus = rim_ukrep_imper	
#			has_idea = rim_stag
#			has_idea = rim_zastoi
#			NOT = {
#				has_completed_focus = rim_ukreplenie
#			}
#			NOT = { has_government = neutrality }	
#		}
#	}
#	mean_time_to_happen = {
#		days = 40
#	}
#	
#	option = {
#		name = romanimp.33.a
#		set_country_flag = zri_situatia_nakalaetsya	
#	}
#}

# imperatir married
country_event = {
	id = romanimp.34
	title = romanimp.34.t
	desc = romanimp.34.d
	picture = GFX_report_event_generic_conference
	
	fire_only_once = yes
	trigger = {
		tag = ZRI		
		date > 1987.9.9		
		ZRI = {			
			has_completed_focus = rim_ukrep_imper				
			has_government = fascism	
		}
	}
	mean_time_to_happen = {
		days = 50
	}	
	option = {
		name = romanimp.34.a
		set_country_flag = zri_imperatir_married
		add_stability = 0.05
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.609 }
		}
	}
}

# novyi naslednik rodilsya!
country_event = {
	id = romanimp.35
	title = romanimp.35.t
	desc = romanimp.35.d
	picture = GFX_report_event_generic_conference
	
	fire_only_once = yes
	trigger = {
		tag = ZRI		
		date > 1989.8.8		
		ZRI = {			
			has_completed_focus = rim_ukreplenie				
			has_government = fascism
			has_country_flag = zri_imperatir_married
			has_war = no
		}
	}
	mean_time_to_happen = {
		days = 50
	}	
	option = {
		name = romanimp.35.a
		remove_country_leader_trait = zri_imperor_net_naslednika_trait		
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.610 }
		}
	}
}

# marsh liberalov
country_event = {
	id = romanimp.36
	title = romanimp.36.t
	desc = romanimp.36.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.36.a
		add_popularity = {
				ideology = democratic
				popularity = 0.1
		}
		add_popularity = {
				ideology = communism
				popularity = 0.02
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.611 }
		}	
	}
}

# provincii opasautsya rima
country_event = {
	id = romanimp.37
	title = romanimp.37.t
	desc = romanimp.37.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.37.a
		hidden_effect = {
			random_list = {
				40 = {
					add_opinion_modifier = {
						target = ZRI
						modifier = rim_hochet_nas_porabitit_10
					}
				}
				60 = {
					add_opinion_modifier = {
						target = ZRI
						modifier = rim_hochet_nam_pomoch_10
					}
				}
			}
		}
		effect_tooltip = {
			random_list = {
				40 = {
					add_opinion_modifier = {
						target = ZRI
						modifier = rim_hochet_nas_porabitit_10
					}
				}
				60 = {
					add_opinion_modifier = {
						target = ZRI
						modifier = rim_hochet_nam_pomoch_10
					}
				}
			}
		}	
	}
}

# rim vmeshivaetsya v politiku
country_event = {
	id = romanimp.38
	title = romanimp.38.t
	desc = romanimp.38.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.38.a
		random_list = {
			40 = {
				add_autonomy_ratio = {
					value = -0.10
					localization = vozdeistv_rima_auton_rat
				}
			}
			30 = {
				add_autonomy_ratio = {
					value = -0.12
					localization = vozdeistv_rima_auton_rat
				}
			}
			30 = {
				add_autonomy_ratio = {
					value = -0.15
					localization = vozdeistv_rima_auton_rat
				}
			}
		}		
		
	}
}

# otvet for serbia
country_event = {
	id = romanimp.39
	title = romanimp.39.t
	desc = romanimp.39.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.39.a		
	}
}

# trebovania ZWI
country_event = {
	id = romanimp.40
	title = romanimp.40.t
	desc = romanimp.40.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
#	fire_only_once = yes
#	trigger = {
#		tag = ZRI		
#		date > 1986.12.12		
#		ZRI = {			
#			has_completed_focus = zri_konsultatsii_s_provinciyami	
#			has_idea = rim_stag
#			has_idea = rim_zastoi			
#		}
#		ZWI = {
#			is_puppet_of = ZRI
#		}
#		NOT = {
#			has_global_flag = grazdanochka_v_rime
#		}
#	}
#	mean_time_to_happen = {
#		days = 40
#	}
	option = { # soglasn
		name = romanimp.40.a
		ai_chance = {
			base = 50			
		}
		if = {
			limit = {
				3 = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
			}
			3 = {
				add_building_construction = {
					type = infrastructure
						level = 2
						instant_build = yes
					}
			}				
		}
		if = {
			limit = {
				151 = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
				}
			}
			151 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}				
		}
		add_timed_idea = {
			idea = zri_pomosh_swi
			days = 200
		}
		ZWI = {
			set_country_flag = rim_pomog_nam_v_prosbe
			country_event = {
				id = romanimp.41
			}
		}	
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.40.b
		ai_chance = {
			base = 50			
		}
		add_political_power = 80
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		ZWI = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.40.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}

# otvet for swi
country_event = {
	id = romanimp.41
	title = romanimp.41.t
	desc = romanimp.41.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.41.a
		add_political_power = 80
		add_stability = 0.1	
	}
}

# trebovania XAU
country_event = {
	id = romanimp.42
	title = romanimp.42.t
	desc = romanimp.42.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	option = { # soglasn
		name = romanimp.42.a
		ai_chance = {
			base = 50			
		}	
		add_political_power = -80
		add_stability = -0.01
		add_timed_idea = {
			idea = zri_zaimy_aus
			days = 120
		}
		XAU = {
			set_country_flag = rim_pomog_nam_v_prosbe
			add_timed_idea = {
				idea = zri_zaimy_aus_for_aus
				days = 120
			}
			country_event = {
				id = romanimp.43
			}
		}	
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.42.b
		ai_chance = {
			base = 50			
		}
		add_political_power = 80
		add_stability = 0.03
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		XAU = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.40.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}
# otvet for XAU
country_event = {
	id = romanimp.43
	title = romanimp.43.t
	desc = romanimp.43.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.43.a
		add_political_power = 80
		add_stability = 0.1		
	}
}

# IMPERATOR DIES
country_event = {
	id = romanimp.44
	title = romanimp.44.t
	desc = romanimp.44.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = romanimp.44.a
		kill_country_leader = yes
			# create_country_leader = {
				# name = "SENATUS"
				# desc = ""
				# picture = "senatus.tga"
				# expire = "2020.1.1"
				# ideology = fascism_ideology
				# traits = {
					# zri_senatus_trait
				# }
			# }
			add_country_leader_role = {
				character = "zri_senatus_leader"
				country_leader = {
					ideology = fascism_ideology
					traits = { zri_senatus_trait }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.05
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}
			add_popularity = {
				ideology = communism
				popularity = 0.02
			}
			add_stability = -0.1
			add_war_support = -0.2
			add_ideas = zri_krizis_v_armii
		hidden_effect = {
			news_event = { hours = 1 id = ar_news.612 }
		}		
	}
}

# provki berut avtoniomiy
country_event = {
	id = romanimp.45
	title = romanimp.45.t
	desc = romanimp.45.d
	picture = GFX_report_event_generic_conference
	
	fire_only_once = yes
	trigger = {
		tag = ZRI		
		date > 1988.5.5		
		ZRI = {			
			has_completed_focus = rim_ukrep_imper	
			has_idea = rim_stag
			has_idea = rim_zastoi			
			has_government = fascism 	
		}
	}
	mean_time_to_happen = {
		days = 25
	}	
	option = {
		name = romanimp.45.a
		every_other_country = {
				limit = {					
					OR = {
							is_subject_of = ZRI
							is_puppet_of = ZRI
					}
				}
				add_autonomy_ratio = {
						value = 0.1
						localization = slabost_metropolii
				}
				country_event = {
					id = romanimp.46
				}
		}
	}
}

# otvet for prev event
country_event = {
	id = romanimp.46
	title = romanimp.46.t
	desc = romanimp.46.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.46.a
		custom_effect_tooltip = romanimp.46.tt  		
	}
}

# trebovania ZBE
country_event = {
	id = romanimp.47
	title = romanimp.47.t
	desc = romanimp.47.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.47.a
		ai_chance = {
			base = 50			
		}	
		add_political_power = -60
		add_stability = -0.05	
		ZBE = {	
			set_country_flag = rim_pomog_nam_v_prosbe
			drop_cosmetic_tag = yes
			set_cosmetic_tag = ZBE_USLOVNO_RO
			country_event = {
				id = romanimp.48
			}
		}		
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.47.b
		ai_chance = {
			base = 50			
		}
		add_political_power = 80
		add_stability = 0.05
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		ZBE = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.40.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}
# otvet for ZBE
country_event = {
	id = romanimp.48
	title = romanimp.48.t
	desc = romanimp.48.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.48.a
		add_political_power = 80
		add_stability = 0.1		
	}
}

# trebovania ZAV
country_event = {
	id = romanimp.49
	title = romanimp.49.t
	desc = romanimp.49.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.49.a
		ai_chance = {
			base = 50			
		}	
		add_political_power = -50
		add_stability = -0.01	
		ZAV = {	
			set_country_flag = rim_pomog_nam_v_prosbe
			remove_ideas = marionetka_rimskoi_imperii
			add_ideas = marionetka_rimskoi_imperii_poslablenie
			country_event = {
				id = romanimp.50
			}
		}
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.49.b
		ai_chance = {
			base = 50			
		}
		add_political_power = 80
		add_stability = 0.03	
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		ZAV = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.40.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}
# otvet for ZAV
country_event = {
	id = romanimp.50
	title = romanimp.50.t
	desc = romanimp.50.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.50.a
		add_political_power = 80
		add_stability = 0.1	
	}
}
# zabastovki na zavodah
country_event = {
	id = romanimp.51
	title = romanimp.51.t
	desc = romanimp.51.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.51.a
		add_timed_idea = {
			idea = zri_zabastivki_na_zavodah
			days = 180
		}	
	}
}
# UNION GOSUDARSTVO
country_event = {
	id = romanimp.52
	title = romanimp.52.t
	desc = romanimp.52.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.52.a
		every_other_country = {
			limit = {
				 has_opinion_modifier = my_hotim_svobody_ot_rima
			}
			remove_opinion_modifier = {
				target = ZRI
				modifier = my_hotim_svobody_ot_rima
			}
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_subject_of = ZRI					
				}
				set_country_flag = zri_union_gosudarstvo
				add_ai_strategy = {
					type = alliance
					id = "ZRI"
					value = 13
				}
			}
		}
		if = {
			limit = {
				is_faction_leader = yes
			}
			dismantle_faction = yes
		}
#		create_faction = europe_democr_union
		create_or_join_sneg = yes
		hidden_effect = {
			every_other_country = {
				limit = {
					 has_country_flag = zri_union_gosudarstvo
				}
				country_event = {
					id = romanimp.53
				}
			}
			every_other_country = {
				limit = {
					capital_scope = {
						is_on_continent = europe
					}
					OR = {
						has_government = democratic
						has_government = neutrality
					}
				}
				add_ai_strategy = {
					type = alliance
					id = "ZRI"
					value = 20
				}
			}
			every_other_country = {
				limit = {
					NOT = {
						capital_scope = {
							is_on_continent = europe
						}
					}	
				}
				add_ai_strategy = {
					type = alliance
					id = "ZRI"
					value = -360
				}
				country_event = { days = 2 id = romanimp.67 }
			}
			country_event = {
				days = 1
				id = ar_news.516
			}
		}
	}
}
# UNION GOSUDARSTVO priglos
country_event = {
	id = romanimp.53
	title = romanimp.53.t
	desc = romanimp.53.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.53.a
		ZRI = {
			add_to_faction = ROOT
		}			
	}
}
# SVOBODA VSEM
country_event = {
	id = romanimp.54
	title = romanimp.54.t
	desc = romanimp.54.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.54.a
		custom_effect_tooltip = romanimp.54.a.tt
		hidden_effect = {
			every_other_country = {
				limit = {
					is_subject_of = ZRI
				}
				drop_cosmetic_tag = yes	
				country_event = { hours = 3 id = romanimp.84 }
				ZRI = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }
#				ZRI = { end_puppet = PREV }
#				drop_cosmetic_tag = yes				
#				country_event = { id = romanimp.84 }
			}
			news_event = { hours = 2 id = ar_news.517 }	
		}
	}
}

# opros pered vyborami
country_event = {
	id = romanimp.55
	title = romanimp.55.t
	desc = romanimp.55.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.55.a		
		add_popularity = {
				ideology = fascism
				popularity = -0.25
		}
		add_popularity = {
				ideology = communism
				popularity = 0.05
		}
		add_popularity = {
				ideology = neutrality
				popularity = 0.07
		}
		hidden_effect = {
			every_other_country = {
					limit = {
						has_country_flag = zri_union_gosudarstvo
					}
					country_event = {
							id = romanimp.56
					}
				}			
		}
		set_country_flag = zri_political_programmy_kandidatov
		custom_effect_tooltip = romanimp.55.tt
	}
}
# v byvshih provkah toze democraty
country_event = {
	id = romanimp.56
	title = romanimp.56.t
	desc = romanimp.56.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.56.a
		add_popularity = {
				ideology = democratic
				popularity = 0.2
		}		
	}
}

# VIBORY
country_event = {
	id = romanimp.57
	title = romanimp.57.t
	desc = romanimp.57.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.57.a
		ai_chance = {
			base = 30			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Бенито Муссолини"
			# desc = "benitich_kandidat_ot_naroda"
			# picture = "benitoo.tga"
			# expire = "1965.1.1"
			# ideology = liberalism
			# traits = {
				# liberal_democrat_trait
			# }
		# }
		add_timed_idea = {
			idea = zri_president_vybran
			days = 1400
		}
		set_country_flag = zri_vybran_pervy_president_flag
		set_country_flag = benitich_prezident_1
		hidden_effect = {
			news_event = { days = 2 id = ar_news.508 }
		}
	}
	option = {
		name = romanimp.57.b
		ai_chance = {
			base = 30			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Луиджи Факта"
			# desc = " "
			# picture = "Luigi_facta.tga"
			# expire = "1965.1.1"
			# ideology = conservatism
			# traits = {
				# conservat_democrat_trait
			# }
		# }
		add_timed_idea = {
			idea = zri_president_vybran
			days = 1400
		}
		set_country_flag = zri_vybran_pervy_president_flag
		set_country_flag = luigi_prezident_1
		hidden_effect = {
			news_event = { days = 2 id = ar_news.508 }
		}
	}
	option = {
		name = romanimp.57.c
		ai_chance = {
			base = 30			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Альчиде Де Гаспери"
			# desc = " "
			# picture = "Alcide_de_gasperi.tga"
			# expire = "1965.1.1"
			# ideology = socialism
			# traits = {
				# social_democrat_trait
			# }
		# }
		add_timed_idea = {
			idea = zri_president_vybran
			days = 1400
		}
		set_country_flag = zri_vybran_pervy_president_flag
		set_country_flag = alcide_prezident_1
		hidden_effect = {
			news_event = { days = 2 id = ar_news.508 }
		}
	}
}

# 2 president vybory
country_event = {
	id = romanimp.58
	title = romanimp.58.t
	desc = romanimp.58.d
	picture = GFX_report_event_generic_conference
	fire_only_once = yes
	trigger = {
		tag = ZRI			
		ZRI = {
			has_government = democratic
			has_country_flag = zri_vybran_pervy_president_flag
			NOT = {
				has_idea = zri_president_vybran
			}
		}		
	}
	immediate = {
		hidden_effect = {
			if = {
				limit = {  has_country_flag = benitich_prezident_1  }
				clr_country_flag = benitich_prezident_1
			}
			if = {
				limit = {  has_country_flag = luigi_prezident_1  }
				clr_country_flag = luigi_prezident_1
			}
			if = {
				limit = {  has_country_flag = alcide_prezident_1  }
				clr_country_flag = alcide_prezident_1
			}
			set_country_flag = zri_alcide_vybyl_iz_gonki
		}
	}
	mean_time_to_happen = {
		days = 10
	}
	option = {
		name = romanimp.58.a
		ai_chance = {
			base = 30			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Бенито Муссолини"
			# desc = "benitich_kandidat_ot_naroda"
			# picture = "benitoo.tga"
			# expire = "1965.1.1"
			# ideology = liberalism
			# traits = {
				# liberal_democrat_trait
			# }
		# }
		add_timed_idea = {
			idea = zri_president_vybran_2
			days = 1400
		}
		set_country_flag = zri_vybran_vtoroi_president_flag
		set_country_flag = benitich_prezident_1
	}
	option = {
		name = romanimp.58.b
		ai_chance = {
			base = 50			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Людвиг Амедей"
			# desc = " "
			# picture = "Luigi_amedeo.tga"
			# expire = "1965.1.1"
			# ideology = conservatism
			# traits = {
				# zri_znamenity_admiral
			# }
		# }
		add_timed_idea = {
			idea = zri_president_vybran_2
			days = 1400
		}
		set_country_flag = zri_vybran_vtoroi_president_flag
		set_country_flag = ludvig_prezident_1
	}
	option = {
		name = romanimp.58.c
		ai_chance = {
			base = 30			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Луиджи Факта"
			# desc = " "
			# picture = "Luigi_facta.tga"
			# expire = "1965.1.1"
			# ideology = conservatism
			# traits = {
				# conservat_democrat_trait
			# }
		# }
		add_timed_idea = {
			idea = zri_president_vybran_2
			days = 1400
		}
		set_country_flag = zri_vybran_vtoroi_president_flag
		set_country_flag = luigi_prezident_1
	}
	
}

# 3 president vybory
country_event = {
	id = romanimp.59
	title = romanimp.59.t
	desc = romanimp.59.d
	picture = GFX_report_event_generic_conference
	fire_only_once = yes
	trigger = {
		tag = ZRI			
		ZRI = {
			has_government = democratic
			has_country_flag = zri_vybran_vtoroi_president_flag
			NOT = {
				has_idea = zri_president_vybran_2
			}
		}		
	}
	immediate = {
		hidden_effect = {
			if = {
				limit = {  has_country_flag = benitich_prezident_1  }
				clr_country_flag = benitich_prezident_1
			}
			if = {
				limit = {  has_country_flag = ludvig_prezident_1  }
				clr_country_flag = ludvig_prezident_1
			}
			if = {
				limit = {  has_country_flag = luigi_prezident_1  }
				clr_country_flag = luigi_prezident_1
			}			
		}
	}
	mean_time_to_happen = {
		days = 10
	}
	option = {
		name = romanimp.59.a
		ai_chance = {
			base = 30			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Бенито Муссолини"
			# desc = "benitich_kandidat_ot_naroda"
			# picture = "benitoo.tga"
			# expire = "1965.1.1"
			# ideology = liberalism
			# traits = {
				# liberal_democrat_trait
			# }
		# }
		set_country_flag = benitich_prezident_1		
	}
	option = {
		name = romanimp.59.b
		ai_chance = {
			base = 70			
		}
		hidden_effect = {
			kill_country_leader = yes
		}
		# create_country_leader = {
			# name = "Людвиг Амедей"
			# desc = " "
			# picture = "Luigi_amedeo.tga"
			# expire = "1965.1.1"
			# ideology = conservatism
			# traits = {
				
			# }
		# }
		set_country_flag = ludvig_prezident_1	
	}	
}

# kompromiss s armiei
country_event = {
	id = romanimp.60
	title = romanimp.60.t
	desc = romanimp.60.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.60.a
		army_experience = 5
		navy_experience = 10
		air_experience = 10
		remove_ideas = zri_krizis_v_armii	
	}
}

# trebovania ZAU
country_event = {
	id = romanimp.61
	title = romanimp.61.t
	desc = romanimp.61.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.61.a
		ai_chance = {
			base = 20			
		}	
		add_political_power = -50
		add_stability = -0.03
		add_timed_idea = {
			idea = zri_pomosh_zau
			days = 200
		}	
		ZAU = {	
			set_country_flag = rim_pomog_nam_v_prosbe
			country_event = {
				id = romanimp.62
			}
			effect_tooltip = {
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.61.b
		ai_chance = {
			base = 70			
		}
		add_political_power = 80
		add_stability = 0.03	
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		ZAU = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.40.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}
# otvet for ZAU
country_event = {
	id = romanimp.62
	title = romanimp.62.t
	desc = romanimp.62.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.62.a
		add_political_power = 80
		add_stability = 0.1
		random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						free_building_slots = {
							building = arms_factory
							size > 0
							include_locked = yes
						}
						OR = {
							is_in_home_area = yes
							NOT = {
								owner = {
									any_owned_state = {
										free_building_slots = {
											building = arms_factory
											size > 0
											include_locked = yes
										}
										is_in_home_area = yes
									}
								}
							}
						}
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
	}
}

# trebovania ZKT
country_event = {
	id = romanimp.63
	title = romanimp.63.t
	desc = romanimp.63.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = { # soglasn
		name = romanimp.63.a
		ai_chance = {
			base = 20			
		}	
		add_political_power = -50
		add_stability = -0.03
		add_timed_idea = {
			idea = zri_pomosh_zkt
			days = 180
		}	
		ZKT = {	
			set_country_flag = rim_pomog_nam_v_prosbe
			country_event = {
				id = romanimp.64
			}			
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}	
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_minus_2 = yes
		}
	}
	option = { # otkaz
		name = romanimp.63.b
		ai_chance = {
			base = 70			
		}
		add_political_power = 80
		add_stability = 0.03	
		if = {
			limit = {
				NOT = {
					has_country_flag = my_obideli_nashi_provki
				}
			}
			set_country_flag = my_obideli_nashi_provki
		}	
		ZKT = {
			set_country_flag = rim_nas_obidel
			add_autonomy_ratio = {
				value = 0.1
				localization = rim_nas_ignorit
			}
		}
		custom_effect_tooltip = romanimp.40.b.tt
		if = {
			limit = {
				has_government = fascism
				has_idea = rim_stag
				has_idea = rim_zastoi
			}
			zri_opasnost_v_plus_2 = yes
		}
	}
}
# otvet for ZAU
country_event = {
	id = romanimp.64
	title = romanimp.64.t
	desc = romanimp.64.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.64.a
		add_political_power = 80
		add_stability = 0.1
		random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
				random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 1
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 1
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
	}
}

# dolgi pered ganzoi
country_event = {
	id = romanimp.65
	title = romanimp.65.t
	desc = romanimp.65.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.65.a
		add_timed_idea = {
			idea = zri_vyplata_vnesh_dolga_to_ganza
			days = 300
		}	
	}
}

# dekret o demokratii
country_event = {
	id = romanimp.66
	title = romanimp.66.t
	desc = romanimp.66.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.66.a
		every_other_country = {
								limit = {
										capital_scope = {
												is_on_continent = europe
											}
										NOT = {
											tag = ZSL
											tag = ZLS
											tag = ZSE
											tag = ZBR
										}	
									}
								add_opinion_modifier = {
										target = ZRI
										modifier = rim_zashitnik_demokratii_30
									}
							}
		hidden_effect = {					
			every_other_country = {
							limit = {
								capital_scope = {
									is_on_continent = europe
								}
								NOT = {
									tag = ZSL
									tag = ZLS
									tag = ZSE
									tag = ZBR
								}	
							}
							ROOT = {
								add_ai_strategy = {
									type = protect
									id = PREV
									value = 70
								}
							}
							ROOT = {
								add_ai_strategy = {
									type = befriend
									id = PREV
									value = 20
								}
							}
			}		
				news_event = { hours = 3 id = ar_news.615 }
		}					
	}
}

# from NOT european country about SNEG formed bleat
country_event = {
	id = romanimp.67
	title = romanimp.67.t
	desc = romanimp.67.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.67.a
		ZRI = {
			add_ai_strategy = {
					type = alliance
					id = ROOT
					value = -250
				}
		}
	}
}
#ifrikiya vuhodit iz ally
country_event = {
	id = romanimp.68
	title = romanimp.68.t
	desc = romanimp.68.d
	picture = GFX_report_event_generic_conference	
	trigger = {		
		tag = ZKG		
		ZKG = {			
			is_in_faction_with = ZRI
			is_puppet = no	
			has_country_flag = zri_union_gosudarstvo
		}
		ZRI = {			
			is_faction_leader = yes
			has_government = democratic
		}		
	}
	mean_time_to_happen = { days = 7 }
	fire_only_once = yes
	#my valim 
	option = {
		name = romanimp.68.a
		ai_chance = {
			base = 25
		}
		ZKG = {
			leave_faction = yes	
		}
	}
	#ostanemsya
	option = {
		name = romanimp.68.b
		ai_chance = {
			base = 1			
		}		
	}
}
#frankiya sama formed
country_event = {
	id = romanimp.69
	title = romanimp.69.t
	desc = romanimp.69.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	#oga
	option = {
		name = romanimp.69.a
		ai_chance = {
			base = 70
		}
		ZGL = {
			country_event = {
				id = romanimp.70
			}
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	#no no no
	option = {
		name = romanimp.69.b
		ai_chance = {
			base = 1			
		}
		ZGL = {
			country_event = {
				id = romanimp.71
			}
		}		
	}
}
#frankiya sama formed GOOD AKVITAN SOGLASNA
country_event = {
	id = romanimp.70
	title = romanimp.70.t
	desc = romanimp.70.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = romanimp.70.a
		annex_country = { target = ZAV }
		set_cosmetic_tag = ZFF_FRANKIYA				
			23 = { add_core_of = ZGL }
			33 = { add_core_of = ZGL }
			26 = { add_core_of = ZGL }
			25 = { add_core_of = ZGL }
			19 = { add_core_of = ZGL }
			172 = { add_core_of = ZGL }						
			hidden_effect = {
				news_event = { id = ar_news.710 hours = 6 }
				set_global_flag = form_frankiya_flag
				if = {
					limit = {
						is_in_faction_with = ZRI
						is_subject = no
					}
					country_event = { id = romanimp.88 days = 30 random = 15 }
				}
			}
	}
	
}
#frankiya sama formed NOT AKVITAN NEE SOGLASNA
country_event = {
	id = romanimp.71
	title = romanimp.71.t
	desc = romanimp.71.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = romanimp.71.a		
	}	
}

#zri_ultimatum_svoim_marionetkam obshii event
country_event = {
	id = romanimp.72
	title = romanimp.72.t
	desc = romanimp.72.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = romanimp.72.a
		ai_chance = {
			factor = 12	
			modifier = {	
				factor = 2
				ZRI = {
					has_army_manpower = {
						size > 149999
					}	
				}
			}			
		}
		custom_effect_tooltip = GAME_OVER_TT
		custom_effect_tooltip = romanimp.72.a.tt
		FROM = {
			country_event = { id = romanimp.73 }
		}	
	}
	option = {
		name = romanimp.72.b	
		ai_chance = {
			factor = 3 				
			modifier = {	#Если у них есть шанс, они будут сражаться.
				factor = 5
				strength_ratio = {
					tag = ZRI
					ratio > 0.7
				}
			}
			# modifier = {	#
				# factor = 20
				# tag = ZAU
				# ZBR = {
					# has_completed_focus = zbr_garan_to_ausburg
				# }
			# }
			# modifier = {	#
				# factor = 20
				# tag = ZKT
				# ZBR = {
					# has_completed_focus = zbr_garant_to_kelty
				# }
			# }
		}
		custom_effect_tooltip = romanimp.72.b.tt
		FROM = {
			country_event = { id = romanimp.74 }
		}
	}	
}

#zri_ultimatum_svoim_marionetkam obshii event YES
country_event = {
	id = romanimp.73
	title = romanimp.73.t
	desc = romanimp.73.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		add_named_threat = { threat = 3 name = zri_ultimatum_svoim_marionetkam_threatt }
		name = romanimp.73.a	
		annex_country = { target = FROM }
		add_stability = -0.02
	}	
}
#zri_ultimatum_svoim_marionetkam obshii event NOOO
country_event = {
	id = romanimp.74
	title = romanimp.74.t
	desc = romanimp.74.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = romanimp.74.a	
		if = {
			limit = {
				FROM = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = {
				target = FROM
				autonomy_state = autonomy_free
			}
		}
		ROOT = { remove_from_faction = FROM }
		every_state = {
			limit = {
				is_owned_by = FROM
			}
			add_claim_by = ROOT
		}
		declare_war_on = {
			type = annex_everything
			target = FROM
		}
		FROM = {
			drop_cosmetic_tag = yes
			add_ideas = vosstanie_protiv_rima
			add_stability = 0.3
			add_war_support = 0.3
			hidden_effect = {
				kill_country_leader = yes
				add_manpower = 119741
				add_political_power = 120
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 2000
				}
				division_template = {
					name = "Military guard"				
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
					}
				}
				random_owned_state = {		# для баланса				
					create_unit = {
						division = "division_template = \"Military guard\" start_experience_factor = 0.2"
						owner = PREV
					}
					create_unit = {
						division = "division_template = \"Military guard\" start_experience_factor = 0.2"
						owner = PREV
					}
					create_unit = {
						division = "division_template = \"Military guard\" start_experience_factor = 0.2"
						owner = PREV
					}
					create_unit = {
						division = "division_template = \"Military guard\" start_experience_factor = 0.2"
						owner = PREV
					}					
				}
				every_other_country = {
					limit = { 
						is_subject_of = ZRI						
					}				
					country_event = { days = 1 id = romanimp.122 }
				}
			}
		}
	}	
}

#borion vuhodit iz ally
country_event = {
	id = romanimp.75
	title = romanimp.68.t	####
	desc = romanimp.68.d	####
	picture = GFX_report_event_generic_conference	
	trigger = {		
		tag = XBO		
		XBO = {			
			is_in_faction_with = ZRI
			is_puppet = no	
			has_country_flag = zri_union_gosudarstvo
		}
		ZRI = {			
			is_faction_leader = yes
			has_government = democratic
		}		
	}
	mean_time_to_happen = { days = 6 }
	fire_only_once = yes
	#my valim 
	option = {
		name = romanimp.68.a	###
		ai_chance = {
			base = 23
		}
		XBO = {
			leave_faction = yes	
		}
	}
	#ostanemsya
	option = {
		name = romanimp.68.b	###
		ai_chance = {
			base = 1			
		}		
	}
}

#римский сенат ГО ГО
country_event = {
	id = romanimp.76
	title = romanimp.76.t	####
	desc = romanimp.76.d	####
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = romanimp.76.a
		ZRI = {
			set_politics = {							
				ruling_party = democratic
				elections_allowed = no
			}
			set_popularities = {
				democratic = 80				
				fascism = 20				
			}
			hidden_effect = {
				kill_country_leader = yes
			}
			# create_country_leader = {
				# name = "Emperor Lucius Rizzo"
				# desc = ""
				# picture = "lutsiy_rizzo.tga"
				# expire = "2020.1.1"
				# ideology = plutokratia
				# traits = {

				# }
			# }
			add_country_leader_role = {
				character = "zri_lutsii_rizzo"
				country_leader = {
					ideology = plutokratia
					traits = {  }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			set_variable = { var = zri_senatus_support value = 42 }
			set_variable = { var = zri_senatus_total value = 100 }
			clamp_variable = {
				var = zri_senatus_support
				min = 0
				max = 100
			}
			zri_senatus_recalc_icon_frames = yes	
			hidden_effect = {
				ZRI = {
					country_event = { id = romanimp.78 days = 2 }	
				}
				news_event = { hours = 3 id = ar_news.762 }
			}		
			set_variable = { zri_princeps_var = 2 } 
			zri_princeps_recalc_icon_frames = yes
		}
		if = {
			limit = {
				ZRI = {
					is_ai = yes
				}
			}
			country_event = { days = 28 id = romanimp.77 }
		}
	}	
}

#выбоы принцепса
country_event = {
	id = romanimp.77
	title = romanimp.77.t	####
	desc = romanimp.77.d	####
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {
		hidden_effect = {
			ZRI = {
				if = {
					limit = {
						has_idea = zri_princeps_servus
					}
					remove_ideas = zri_princeps_servus
				}
				if = {
					limit = {
						has_idea = zri_princeps_domitsian
					}
					remove_ideas = zri_princeps_domitsian
				}
				if = {
					limit = {
						has_idea = zri_princeps_julii
					}
					remove_ideas = zri_princeps_julii
				}
				if = {
					limit = {
						has_idea = zri_princeps_mark
					}
					remove_ideas = zri_princeps_mark
				}
				zri_senatus_election_senate = yes	
			}	
		}
	}
	option = {
		name = romanimp.77.a		
		ai_chance = {
			base = 15
		}
		custom_effect_tooltip = romanimp.77.a.tt
		ZRI = {
			set_variable = { zri_princeps_var = 3 } 
			zri_princeps_recalc_icon_frames = yes	
			add_ideas = zri_princeps_servus
			set_country_flag = {
				flag = zri_pereizbran_princeps_flag
				days = 365
				value = 1
			}
		}
	}
	option = {
		name = romanimp.77.b		
		ai_chance = {
			base = 15
		}
		custom_effect_tooltip = romanimp.77.b.tt
		ZRI = {
			set_variable = { zri_princeps_var = 4 } 
			zri_princeps_recalc_icon_frames = yes	
			add_ideas = zri_princeps_domitsian
			set_country_flag = {
				flag = zri_pereizbran_princeps_flag
				days = 365
				value = 1
			}
		}
	}
	option = {
		name = romanimp.77.c	
		ai_chance = {
			base = 15
		}	
		custom_effect_tooltip = romanimp.77.c.tt
		ZRI = {
			set_variable = { zri_princeps_var = 5 } 
			zri_princeps_recalc_icon_frames = yes	
			add_ideas = zri_princeps_julii
			set_country_flag = {
				flag = zri_pereizbran_princeps_flag
				days = 365
				value = 1
			}
		}	
	}
	option = {
		name = romanimp.77.e	
		ai_chance = {
			base = 15
		}
		custom_effect_tooltip = romanimp.77.e.tt
		ZRI = {
			set_variable = { zri_princeps_var = 6 } 
			zri_princeps_recalc_icon_frames = yes	
			add_ideas = zri_princeps_mark
			set_country_flag = {
				flag = zri_pereizbran_princeps_flag
				days = 365
				value = 1
			}
		}
	}	
}

country_event = {
	id = romanimp.78
	Hidden = yes
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = democratic			
	}
	immediate = {
		random_list = {
			10 = { 
				modifier = {
					not = { senatus_medium_support_trigger = yes }
					factor = 1
				}
				modifier = {
					not = { senatus_low_support_trigger = yes }
					factor = 2
				}
				country_event = { id = romanimp.79 days = 15 random = 6 } #small support
			}
			9 = { 
				modifier = {
					not = { senatus_medium_support_trigger = yes }
					factor = 1.25
				}
				modifier = {
					not = { senatus_low_support_trigger = yes }
					factor = 2
				}
				country_event = { id = romanimp.80 days = 16 random = 6 } #small support
			}
			29 = { 
				modifier = {
					senatus_high_support_trigger = yes
					factor = 2
				}				
				country_event = { id = romanimp.81 days = 18 random = 6 } #small opposition 
			}
			14 = { 
				modifier = {
					not = { senatus_medium_support_trigger = yes }
					factor = 1.25
				}
				modifier = {
					not = { senatus_low_support_trigger = yes }
					factor = 2
				}
				country_event = { id = romanimp.82 days = 18 random = 9 } #medium support
			}
			24 = { 
				modifier = {
					senatus_high_support_trigger = yes
					factor = 2
				}				
				country_event = { id = romanimp.83 days = 18 random = 9 }  #medium opposition
			}
		}
	}
}
#zri_senatus_small_supportt event
country_event = {
	id = romanimp.79
	title = romanimp.79.t
	desc = romanimp.79.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = democratic		
	}
	option = {
		name = romanimp.79.a
		zri_senatus_small_support = yes
		hidden_effect = {
			country_event = { id = romanimp.78 days = 50 random = 10 }
		}
	}
}
#zri_senatus_small_support event
country_event = {
	id = romanimp.80
	title = romanimp.80.t
	desc = romanimp.80.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = democratic		
	}
	option = {
		name = romanimp.80.a
		zri_senatus_small_support = yes
		hidden_effect = {
			country_event = { id = romanimp.78 days = 50 random = 10 }
		}
	}
}	
#zri_senatus_small_opposition event
country_event = {
	id = romanimp.81
	title = romanimp.81.t
	desc = romanimp.81.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = democratic		
	}
	option = {
		name = romanimp.81.a
		zri_senatus_small_opposition = yes
		hidden_effect = {
			country_event = { id = romanimp.78 days = 50 random = 10 }
		}
	}
}
#zri_senatus_medium_support event
country_event = {
	id = romanimp.82
	title = romanimp.82.t
	desc = romanimp.82.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = democratic		
	}
	option = {
		name = romanimp.82.a
		zri_senatus_medium_support = yes
		hidden_effect = {
			country_event = { id = romanimp.78 days = 50 random = 10 }
		}
	}
}
#zri_senatus_medium_opposition event
country_event = {
	id = romanimp.83
	title = romanimp.83.t
	desc = romanimp.83.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = democratic		
	}
	option = {
		name = romanimp.83.a
		zri_senatus_medium_opposition = yes
		hidden_effect = {
			country_event = { id = romanimp.78 days = 50 random = 10 }
		}
	}
}
#эвент марионеткам республики о том что они свободны (раньше надо было сделать)
country_event = {
	id = romanimp.84
	title = romanimp.84.t
	desc = romanimp.84.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.84.a
		drop_cosmetic_tag = yes		
		remove_opinion_modifier = {
			target = ZRI
			modifier = my_hotim_svobody_ot_rima
		}
		add_stability = 0.05
	}
}
#эвент византии о том что мы хотим предложить им гарантировать их независимтость. А то там Персия поджимает сбоку.
country_event = {
	id = romanimp.85
	title = romanimp.85.t
	desc = romanimp.85.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.85.a
		ai_chance = {
			base = 15
		}
		ZRI = { 
			give_guarantee = ZVZ 
			country_event = { id = romanimp.86 }
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.818 }
			}
		}		
	}
	option = {
		name = romanimp.85.a
		ai_chance = {
			base = 2
		}
		add_war_support = 0.05
		ZRI = { 			
			country_event = { id = romanimp.87 }	
		}
	}
	option = {
		name = romanimp.85.c
		ai_chance = {
			base = 30
		}
		trigger = {
			any_other_country = { is_guaranteed_by = ZVZ }
		}
		ZRI = { 			
			country_event = { id = romanimp.89 }	
		}
	}
}

#эвент Риму что византосы согласились на гарантию их независимости
country_event = {
	id = romanimp.86
	title = romanimp.86.t
	desc = romanimp.86.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.86.a
		effect_tooltip = {
			ZRI = { 
				give_guarantee = ZVZ				
			}
		}
		ZRI = {
			add_named_threat = { threat = -2 name = romanimp.85.threatt }
		}				
	}
}	

#эвент Риму что византосы НЕ согласились на гарантию их независимости
country_event = {
	id = romanimp.87
	title = romanimp.87.t
	desc = romanimp.87.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.87.a				
	}
}

#эвент сформированной франкии стоит ли нам сидеть в альянсе с римом?
country_event = {
	id = romanimp.88
	title = romanimp.88.t
	desc = romanimp.88.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	trigger = {		
		is_in_faction_with = ZRI
		is_subject = no
		has_war = no
	}
	option = {
		name = romanimp.88.a
		ai_chance = {
			base = 5
		}		
	}
	option = {
		name = romanimp.88.b	
		ai_chance = {
			base = 5
		}	
		leave_faction = yes
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.819 }
		}
	}
}

#эвент Риму что византосы предлагают еще и гарантировать независимость из друзей
country_event = {
	id = romanimp.89
	title = romanimp.89.t
	desc = romanimp.89.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.89.a
		ai_chance = {
			base = 50
		}		
		ZRI = { 
			give_guarantee = ZVZ 
			country_event = { id = romanimp.86 }			
		}
		every_other_country = {
			limit = {
				is_guaranteed_by = ZVZ
			}
			country_event = { id = romanimp.90 }	
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.834 }
		}
	}
	option = {
		name = romanimp.89.b
		ai_chance = {
			base = 2
		}		
		ZRI = { 
			give_guarantee = ZVZ 					
		}	
		ZVZ = {
			country_event = { id = romanimp.91 }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.818 }
		}
	}
}

#эвент всяким друзьям византии (тем кого она гарантит) о том что Римская республика тоже их загарантила. Риму спасибо
country_event = {
	id = romanimp.90
	title = romanimp.90.t
	desc = romanimp.90.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.90.a
		ZRI = { 
			give_guarantee = ROOT 				
		}		
	}
}

#эвент византосам о том что рим загарантил только их. а друзей нет
country_event = {
	id = romanimp.91
	title = romanimp.91.t
	desc = romanimp.91.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.91.a
		effect_tooltip = {
			ZRI = { 
				give_guarantee = ZVZ				
			}
		}		
	}
}

#Эвент риму что страна нем проводи внутренние реформы с целью вступления в наш альянс
country_event = {
	id = romanimp.92
	title = romanimp.92.t
	desc = romanimp.92.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.92.a
				
	}
}

#Эвент риму что страна нем проводи экномоник реформы с целью вступления в наш альянс
country_event = {
	id = romanimp.93
	title = romanimp.93.t
	desc = romanimp.93.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.93.a
				
	}
}

#Эвент тевтонцам что папа римский прибыват сюда со своей резиденцией
country_event = {
	id = romanimp.94
	title = romanimp.94.t
	desc = romanimp.94.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.94.a	# прнимаем
		ai_chance = {
			base = 200
		}
		ZRI = {
			country_event = { id = romanimp.95 }
		}	
		set_country_flag = papa_rimskii_tut_flag
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.886 }
		}
	}
	option = {
		name = romanimp.94.b	#отказать 
		ZRI = {
			country_event = { id = romanimp.96 }
		}		
	}
}

#Эвент риму папа прячется теперь в страна_нейм
country_event = {
	id = romanimp.95
	title = romanimp.95.t
	desc = romanimp.95.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.95.a
		set_country_flag = papa_rimskii_uehal_flag		
		### затереть лидера нейтралов другим
		add_timed_idea = {
			idea = zri_papa_v_bezopasnosti
			days = 120
		}
		add_stability = 0.01
		add_war_support = 0.05
	}
}

#Эвент риму что страна нейм не стала укрывать папу у себя. они не католики а предатели какие то
country_event = {
	id = romanimp.96
	title = romanimp.96.t
	desc = romanimp.96.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.96.a
		add_stability = -0.01		
	}
}

#Эвент стране_нейм где прячется папа. Рим просит вернуть папу на родину (вернуть или ему и тут хорошо)
country_event = {
	id = romanimp.97
	title = romanimp.97.t
	desc = romanimp.97.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.97.a	#хорошо
		ai_chance = {
			base = 10
		}
		ZRI = {
			country_event = { id = romanimp.98 }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.887 }
		}
		clr_country_flag = papa_rimskii_tut_flag
	}
	option = {
		name = romanimp.97.b	#нет
		ai_chance = {
			base = 2
			modifier = {
				add = 30
				tag = ZBA
			}
		}
		clr_country_flag = papa_rimskii_tut_flag
		ZRI = {
			country_event = { id = romanimp.99 }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.888 }
		}
	}
}

#Эвент риму что страна_нейм вернула нам папу. атлишна
country_event = {
	id = romanimp.98
	title = romanimp.98.t
	desc = romanimp.98.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.98.a
		add_stability = 0.05
		clr_country_flag = papa_rimskii_uehal_flag	
	}
}


#Эвент риму что страна_нейм сказала что не вернет нам папу!
country_event = {
	id = romanimp.99
	title = romanimp.99.t
	desc = romanimp.99.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.99.a	#нууу, сам может приедет, на поезде там например
		add_stability = -0.05
		clr_country_flag = papa_rimskii_uehal_flag	
		ai_chance = {
			base = 10
			modifier = {
				add = 100
				has_government = democratic
			}
		}
	}
	option = {
		name = romanimp.99.b	#войну этим гадам	
		trigger = {			
			FROM = {
				NOT = {
					is_subject_of = ZRI
					is_in_faction_with = ZRI
				}
			}
		}
		ai_chance = {
			base = 15
		}
		custom_effect_tooltip = romanimp.99.b.tt
		create_wargoal = {
			target = FROM
			type = puppet_wargoal_focus
		}
		add_ai_strategy = {
			type = antagonize
			id = FROM
			value = 100
		}		
		clr_country_flag = papa_rimskii_uehal_flag	
	}
}

#Эвент стране_нем что рим хочет своего папу к нам эвакуировать
country_event = {
	id = romanimp.100
	title = romanimp.100.t
	desc = romanimp.100.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.100.a	# прнимаем
		ai_chance = {
			base = 200
		}
		ZRI = {
			country_event = { id = romanimp.95 }
		}	
		set_country_flag = papa_rimskii_tut_flag
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.886 }
		}
	}
	option = {
		name = romanimp.100.b	#отказать 
		ZRI = {
			country_event = { id = romanimp.96 }
		}		
	}
}

##### эвент папскому госву о том что в нашей армии много народа, выводим рекрутов кароч
country_event = {
	id = romanimp.101
	title = romanimp.101.t
	desc = romanimp.101.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = romanimp.101.a
		set_stability = 0.8
		set_war_support = 0.9
#		#### на дефолтные фокусы
#			complete_national_focus = ar_political_choice
#			complete_national_focus = ar_konservatism_choice		
#		###
		custom_effect_tooltip = romanimp.101.a.tt
		hidden_effect = {
			division_template = {
				name = "The Holy army"	
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
				}
				priority = 0
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
					owner = XPX
				}
				create_unit = {
					division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
					owner = XPX
				}				
			}			
			if = {
				limit = {
					ZRI = {
						num_divisions > 15
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}					
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}					
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}
				}				
			}
			if = {
				limit = {
					ZRI = {
						num_divisions > 20
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}					
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}					
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}
				}				
			}
			if = {
				limit = {
					ZRI = {
						num_divisions > 27
					}
				}
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}					
				}				
				random_owned_controlled_state = {
					create_unit = {
						division = "division_template = \"The Holy army\" start_experience_factor = 0.2 force_equipment_variants = { infantry_equipment_0 = { owner = \"ZRI\" } }"
						owner = XPX
					}					
				}
				
			}
		}
	}	
}

country_event = {
	id = romanimp.102
	Hidden = yes
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	immediate = {
		random_list = {			 
			21 = { 
				modifier = {					
					check_variable = { zri_opasnost_var < 50 }
					factor = 2
				}
				modifier = {
					date > 1987.03.03
					factor = 2
				}
				modifier = {
					date > 1988.01.01
					factor = 3
				}				
				country_event = { id = romanimp.105 days = 12 random = 10 } #небольшое увеличение 1 
			}
			18 = { 
				modifier = {
					check_variable = { zri_opasnost_var < 50 }
					factor = 3
				}
				modifier = {
					date > 1987.03.03
					factor = 2
				}				
				modifier = {
					date > 1989.01.01
					factor = 3
				}
				modifier = {
					has_active_mission = zri_podgotovka_k_civiwar
					factor = 3
				}				
				country_event = { id = romanimp.106 days = 15 random = 10 } #среднее увеличение
			}
			13 = { 
				modifier = {
					check_variable = { zri_opasnost_var < 40 }
					factor = 3
				}
				modifier = {
					date > 1988.01.01
					factor = 3
				}
				modifier = {
					date > 1991.03.03
					factor = 4
				}
				modifier = {
					has_active_mission = zri_podgotovka_k_civiwar
					factor = 3
				}
				modifier = {
					country_exists = XPX
					factor = 0
				}
				country_event = { id = romanimp.107 days = 20 random = 10 } #большое увеличение накала 
			}
			13 = { 				
				modifier = {
					check_variable = { zri_opasnost_var < 30 }
					factor = 3
				}
				modifier = {
					date > 1990.01.01
					factor = 3
				}	
				modifier = {
					has_active_mission = zri_podgotovka_k_civiwar
					factor = 3
				}
				country_event = { id = romanimp.108 days = 15 random = 15 } #катастрофич увеличение накала
			} 
			#################
			14 = { 
				modifier = {
					check_variable = { zri_opasnost_var > 70 }
					factor = 1
				}				
				modifier = {
					date < 1988.01.01
					factor = 1.1
				}
				country_event = { id = romanimp.103 days = 12 random = 14 } #небольшое уменьшение
			} 
			12 = { 
				modifier = {
					check_variable = { zri_opasnost_var > 70 }
					factor = 1.1
				}				
				modifier = {
					date < 1988.01.01
					factor = 1.5
				}
				country_event = { id = romanimp.104 days = 12 random = 10 } #небольшое уменьшение 2
			}
			12 = { 
				modifier = {
					check_variable = { zri_opasnost_var > 75 }
					factor = 2
				}
				modifier = {
					date > 1988.01.01
					factor = 0.5
				}
				country_event = { id = romanimp.109 days = 15 random = 15 }  #среднее снижение
			}
			12 = { 
				modifier = {
					check_variable = { zri_opasnost_var > 80 }
					factor = 2
				}
				modifier = {
					date > 1987.01.01
					factor = 0.5
				}
				modifier = {
					is_ai = yes
					has_country_flag = ZRI_IMPERIUM_RUL_flag
					factor = 3
				}
				country_event = { id = romanimp.110 days = 17 random = 15 }  #большое снижение
			}
			12 = { 
				modifier = {
					check_variable = { zri_opasnost_var > 85 }
					factor = 2
				}
				modifier = {
					date > 1988.01.01
					factor = 0.25
				}
				modifier = {
					is_ai = yes
					has_country_flag = ZRI_IMPERIUM_RUL_flag
					factor = 3
				}
				country_event = { id = romanimp.111 days = 15 random = 15 }  #очень большое снижение
			}
		}
	}
}	

# небольшое уменьшение накала
country_event = {
	id = romanimp.103
	title = romanimp.103.t
	desc = romanimp.103.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.103.a
		zri_opasnost_v_minus_1 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 25 random = 20 }
		}
	}
}

# небольшое уменьшение накала 2
country_event = {
	id = romanimp.104
	title = romanimp.104.t
	desc = romanimp.104.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.104.a
		zri_opasnost_v_minus_1 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 20 random = 20 }
		}
	}
}

# небольшое УВЕЛИЧЕНИЕ накала 1
country_event = {
	id = romanimp.105
	title = romanimp.105.t
	desc = romanimp.105.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.105.a
		zri_opasnost_v_plus_1 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 18 random = 20 }
		}
	}
}

# среднее УВЕЛИЧЕНИЕ накала 
country_event = {
	id = romanimp.106
	title = romanimp.106.t
	desc = romanimp.106.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.106.a
		zri_opasnost_v_plus_2 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 17 random = 20 }
		}
	}
}

# большое УВЕЛИЧЕНИЕ накала 
country_event = {
	id = romanimp.107
	title = romanimp.107.t
	desc = romanimp.107.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.107.a
		zri_opasnost_v_plus_3 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 16 random = 20 }
		}
	}
}

# просто катастрофическое увеличение накала 
country_event = {
	id = romanimp.108
	title = romanimp.108.t
	desc = romanimp.108.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.108.a
		zri_opasnost_v_plus_4 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 16 random = 20 }
		}
	}
}

#  среднее снижение накала  
country_event = {
	id = romanimp.109
	title = romanimp.109.t
	desc = romanimp.109.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.109.a
		zri_opasnost_v_minus_2 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 16 random = 20 }
		}
	}
}

#  большое снижение накала  
country_event = {
	id = romanimp.110
	title = romanimp.110.t
	desc = romanimp.110.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.110.a
		zri_opasnost_v_minus_3 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 16 random = 20 }
		}
	}
}

# оочень большое снижение накала  
country_event = {
	id = romanimp.111
	title = romanimp.111.t
	desc = romanimp.111.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes
	trigger = {
		tag = ZRI
		has_government = fascism
		has_idea = rim_stag
		has_idea = rim_zastoi
		NOT = {
			has_completed_focus = zri_tragedia_v_alpah
			has_global_flag = grazdanochka_v_rime
		}
	}
	option = {
		name = romanimp.111.a
		zri_opasnost_v_minus_4 = yes
		hidden_effect = {
			country_event = { id = romanimp.102 days = 16 random = 20 }
		}
	}
}

# эвент римской марионетке что мы прожали решение и смогли дестабилизировать ситуацию в риме, расшатать стабильность так сказать. Ситуация тамм усугубилась
country_event = {
	id = romanimp.112
	title = romanimp.112.t
	desc = romanimp.112.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.112.a
		effect_tooltip = {
			ZRI = {
				zri_opasnost_v_plus_1 = yes
			}
		}
		hidden_effect = {
			ZRI = {
				country_event = { id = romanimp.113 }
			}
		}
	}
}

## эвент риму что марионетка нейм что-то учудила и у нас из за этого накал ситуации произошел
country_event = {
	id = romanimp.113
	title = romanimp.113.t
	desc = romanimp.113.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.113.a
		zri_opasnost_v_plus_1 = yes
	}
}

# эвент римской марионетке что мы прожали решение и но НЕ смогли расшатать римскую лодку. Жаль
country_event = {
	id = romanimp.114
	title = romanimp.114.t
	desc = romanimp.114.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.114.a
		
	}
}

#### эвент римской марионетке  о том что в Риме госпереворот. Чью мы сторону займем? ведь рим был к нам добр в последне время (помог решить некоторые наши вопросы прожав у себя решения). Мы объявим о своей независимости или поможем предотвратить распад империи?
country_event = {
	id = romanimp.115
	title = romanimp.115.t
	desc = romanimp.115.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.115.a
		ai_chance = {
			base = 5			
		}
		set_country_flag = rom_prov_rebel
#		ZRI = { end_puppet = PREV }
		ZRI = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }
		leave_faction = yes
		drop_cosmetic_tag = yes	
		retire_country_leader = yes
		add_to_war = {
			targeted_alliance = XPX
			enemy = ZRI
			hostility_reason = asked_to_join
		}
		add_stability = -0.05
		add_war_support = -0.05		
	}
	option = {
		name = romanimp.115.b
		ai_chance = {
			base = 5			
		}
		drop_cosmetic_tag = yes
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 784
			producer = ZRI
		}
		if = {
			limit = {
				has_government = fascism
			}
			start_civil_war = {
				ideology = neutrality
				size = 0.3				
			}
		}
		if = {
			limit = {
				has_government = neutrality
			}
			start_civil_war = {
				ideology = fascism
				size = 0.3				
			}
		}
		if = {
			limit = {
				has_government = democratic
			}
			start_civil_war = {
				ideology = fascism
				size = 0.3				
			}
		}
		if = {
			limit = {
				has_government = communism
			}
			start_civil_war = {
				ideology = fascism
				size = 0.3				
			}
		}
	}
}

# эвент римской марионетке  о том что в Риме госпереворот. Рим нам  не помогал и забил хер на нас. вот щас мы с Папой ему по щщам то нададим
country_event = {
	id = romanimp.116
	title = romanimp.116.t
	desc = romanimp.116.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.116.a
		set_country_flag = rom_prov_rebel
#		ZRI = { end_puppet = PREV }
		ZRI = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }
		leave_faction = yes
		drop_cosmetic_tag = yes	
		retire_country_leader = yes
		add_to_war = {
			targeted_alliance = XPX
			enemy = ZRI
			hostility_reason = asked_to_join
		}
		add_stability = -0.05
		add_war_support = -0.05		
	}
}

### эвент самому риму о том что в стране такая вот морковка случилась, переворот. Папа тут против нас, провинции, да и бейисты внутри еще оружие готовят
country_event = {
	id = romanimp.117
	title = romanimp.117.t
	desc = romanimp.117.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.117.a
		add_political_power = 20
		hidden_effect = {
			random_other_country = {
				limit = {
					has_country_flag = rom_prov_rebel
					is_in_faction = no
					is_subject = no
					has_war_with = ZRI
				}
				country_event = { id = romanimp.118 }
			}
		}	
	}
}


### эвент РАНДОМНОЙ стране-бывшей марионетке рима, которая воюет против него о том что мы можем подшустить и создать антиримский альянс и объединить усилия чтобы уничтожить рим. Беремся?
country_event = {
	id = romanimp.118
	title = romanimp.118.t
	desc = romanimp.118.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.118.a
		ai_chance = {
			base = 200			
		}
		create_faction = freedom_sredizemie		
		set_global_flag = romanimp_118_freedom_sredizemie_flag
		set_country_flag = freedom_sredizemie_leader_flag
		every_other_country = {
			limit = {	
				has_country_flag = rom_prov_rebel
				is_in_faction = no
				is_subject = no
				has_war_with = ZRI
				NOT = {
					tag = ZKG
					tag = XBO
				}
			}				
			country_event = { hours = 3 id = romanimp.119 }			
		}
	}
	option = {
		name = romanimp.118.b
		ai_chance = {
			base = 1			
		}
	}
}

### эвент РАНДОМНОЙ стране-бывшей марионетке рима, которая воюет против него о том что одна из провок создала военный антиримский альянс и зовет нас туда
country_event = {
	id = romanimp.119
	title = romanimp.119.t
	desc = romanimp.119.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.119.a
		ai_chance = {
			base = 200			
		}
		add_stability = 0.02
		FROM = {
			add_to_faction = ROOT
			add_ai_strategy = {
				type = alliance
				id = ROOT
				value = 50
			}
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 50
		}
	}
	option = {
		name = romanimp.119.b
		ai_chance = {
			base = 1			
		}
		add_war_support = 0.05
	}
}

###### эвент РАНДОМНОЙ что возглавила бывшие марионетки рима на борьбу с самим римом (восстание там) о том что рим одолён, теперь наш военный блок Свободная Европа не нужен, уж много у нас противоречий. +ноость 976 об этом
country_event = {
	id = romanimp.120
	title = romanimp.120.t
	desc = romanimp.120.d
	picture = GFX_report_event_generic_conference
	trigger = {
		has_global_flag = romanimp_118_freedom_sredizemie_flag
		has_country_flag = freedom_sredizemie_leader_flag
		NOT = {
			has_war_with = ZRI
		}
		is_faction_leader = yes
	}
	mean_time_to_happen = { days = 7 }
	fire_only_once = yes
	option = {
		name = romanimp.120.a
		clr_global_flag = romanimp_118_freedom_sredizemie_flag
		clr_country_flag = freedom_sredizemie_leader_flag
		every_other_country = {
			limit = {	
				is_in_faction_with = ROOT
			}				
			country_event = { hours = 3 id = romanimp.121 }			
		}		
		dismantle_faction = yes	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.976 }
		}	
	}	
}

### эвент РАНДОМНОЙ стране что была в этом альянсе что его распустили из-за внетренних разногласий
country_event = {
	id = romanimp.121
	title = romanimp.121.t
	desc = romanimp.121.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.121.a
		
	}
}

### эвент марионетке рима о том что та проводит какую то жесткую политику и предъявила ультиматум одной из своих марионеток и та восстала. что нам делать? восстать? или нет
country_event = {
	id = romanimp.122
	title = romanimp.122.t
	desc = romanimp.122.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	trigger = {
		is_subject_of = ZRI
	}
	option = {
		name = romanimp.122.a
		ai_chance = {
			base = 10			
		}
	}
	option = {
		name = romanimp.122.b
		ai_chance = {
			base = 4
			modifier = {
				add = 3
				ZRI = {
					has_added_tension_amount > 12
				}
			}
			modifier = {	#Если у них есть шанс, они будут сражаться.
				add = 10
				strength_ratio = {
					tag = ZRI
					ratio > 0.7
				}
			}
			modifier = {	#Если у них есть шанс, они будут сражаться.
				add = 10
				has_army_manpower = {
					size > 149999
				}
			}	
		}
		custom_effect_tooltip = romanimp.122.b.tt 
		ZRI = {	
			set_autonomy = {
				target = ROOT
				autonomy_state = autonomy_free
			}
		}
		if = {
			limit = {
				is_in_faction = yes
			}
			leave_faction = yes
		}		
		drop_cosmetic_tag = yes
		add_ideas = vosstanie_protiv_rima
		add_stability = 0.3
		add_war_support = 0.3		
		kill_country_leader = yes		
		add_manpower = 119741
		add_political_power = 120		
		ZRI = {
			country_event = { id = romanimp.123 }
		}		
	}
}

### эвент риму что под шумок всяких сопротивлений восстала наша марионетка-нейм. что делать? отпустить ее нахрен или подавить?
country_event = {
	id = romanimp.123
	title = romanimp.123.t
	desc = romanimp.123.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.123.a
		ai_chance = {
			base = 1
			modifier = {	
				add = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.7
				}
			}
		}	
		custom_effect_tooltip = romanimp.123.a.tt 
		FROM = {
			country_event = { id = romanimp.124 }
		}
	}
	option = {
		name = romanimp.123.b	# сожрём их!
		ai_chance = {
			base = 10			
		}
		every_state = {
			limit = {
				is_owned_by = FROM
			}
			add_claim_by = ROOT
		}
		declare_war_on = {
			type = annex_everything
			target = FROM
		}
		FROM = {
			country_event = { id = romanimp.125 }
		}
	}
}

### эвент этой вот восставшей марионетке рима о том что рим их ...отпутил....вот как
country_event = {
	id = romanimp.124
	title = romanimp.124.t
	desc = romanimp.124.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.124.a
		
	}
}

### эвент этой вот восставшей марионетке рима о том что рим ожидаемо решил нас подавить
country_event = {
	id = romanimp.125
	title = romanimp.125.t
	desc = romanimp.125.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.125.a
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 2000
		}
		division_template = {
			name = "Military guard"				
			regiments = {
				infantry = { x = 0 y = 0 }
				infantry = { x = 0 y = 1 }
				infantry = { x = 0 y = 2 }
			}
		}
		random_owned_state = {		# для баланса				
			create_unit = {
				division = "division_template = \"Military guard\" start_experience_factor = 0.2"
				owner = ROOT
			}
			create_unit = {
				division = "division_template = \"Military guard\" start_experience_factor = 0.2"
				owner = ROOT
			}
			create_unit = {
				division = "division_template = \"Military guard\" start_experience_factor = 0.2"
				owner = ROOT
			}
			create_unit = {
				division = "division_template = \"Military guard\" start_experience_factor = 0.2"
				owner = ROOT
			}					
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.22 }
		}
	}
}

country_event = {
	id = romanimp.126
	title = romanimp.126.t
	desc = romanimp.126.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {		
		NOT = {
			has_global_flag = rim_vistoyal_glob_flag
		}
		tag = ZRI
		has_global_flag = grazdanochka_v_rime
		ZRI = {
			exists = yes
			has_civil_war = no			
		}
		NOT = {
			country_exists = XPX
		}
	}
	mean_time_to_happen = { days = 1 }
	fire_only_once = yes	
	option = {
		name = romanimp.126.a
		set_global_flag = rim_vistoyal_glob_flag
		set_cosmetic_tag = ZRI_IMPER
		add_stability = 0.15
		add_political_power = 120
	}
	
}

### эвент что у нас прошли мировые игры дружбы! но никто кроме наших то и не приехал...
country_event = {
	id = romanimp.127
	title = romanimp.127.t
	desc = romanimp.127.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.127.a
		add_stability = 0.06
		add_political_power = 100
		if = {
			limit = {
				has_active_mission = zri_podgotovka_k_civiwar
			}
			add_days_mission_timeout  = {
				mission = zri_podgotovka_k_civiwar
				days = 100
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.658 }
		}
	}
}

### эвент риму почти сразу после старта о том что пора бы нам мировые игры дружбы проводить. Хоть время и не простое, но часики то тикают. Мы можем попробовать пригласить к себе все страны мира, возможно азиатские державы окажут нам честь и тоже поучавствуют. кароч игры через 300 дней
country_event = {
	id = romanimp.128
	title = romanimp.128.t
	desc = romanimp.128.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.128.a
		add_stability = 0.01
		set_global_flag = mirovye_igry_zri_podgotovka_glob_flag	
		custom_effect_tooltip = romanimp.128.a.tt
		activate_mission = mirovye_igry_zri_mission
	}
}

### эвент что у нас прошли мировые игры дружбы! но никто кроме наших то и не приехал...но зато как наши выступили! ух, всяких рекордов наустанавливали. больший прирост ПП и стабки +новость 64
country_event = {
	id = romanimp.129
	title = romanimp.129.t
	desc = romanimp.129.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.129.a
		add_stability = 0.10
		add_political_power = 150
		if = {
			limit = {
				has_active_mission = zri_podgotovka_k_civiwar
			}
			add_days_mission_timeout  = {
				mission = zri_podgotovka_k_civiwar
				days = 150
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.64 }
		}
	}
}

### эвент что у нас прошли мировые игры дружбы! к нам приехали и азиатские спортсмены, но они от чего то не выступали под своими флагами. Было поставлено много рекордов, но не нашими ребятами. Наши выступили так себе  +новость 65
country_event = {
	id = romanimp.130
	title = romanimp.130.t
	desc = romanimp.130.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.130.a
		add_stability = 0.09
		add_political_power = 140
		if = {
			limit = {
				has_active_mission = zri_podgotovka_k_civiwar
			}
			add_days_mission_timeout  = {
				mission = zri_podgotovka_k_civiwar
				days = 100
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.65 }
		}
	}
}

### эвент что у нас прошли мировые игры дружбы! к нам приехали и азиатские спортсмены, но они от чего то не выступали под своими флагами. Было поставлено много рекордов, и многие сделали наши ребята! римские вперед!!! + новость 66
country_event = {
	id = romanimp.131
	title = romanimp.131.t
	desc = romanimp.131.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.131.a
		add_stability = 0.15
		add_political_power = 185
		if = {
			limit = {
				has_active_mission = zri_podgotovka_k_civiwar
			}
			add_days_mission_timeout  = {
				mission = zri_podgotovka_k_civiwar
				days = 180
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.66 }
		}
	}
}

### эвент цезарии. Эвент о том что римская империя решила вновь пересмотреть вопрос о правильности нашей независимости. Они считают что это было предательство с нашей стороны и кажется собираются вновь попытаться нас поработить. Надо быть готовыми
country_event = {
	id = romanimp.132
	title = romanimp.132.t
	desc = romanimp.132.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.132.a
		add_stability = -0.05
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.91 }
		}
	}
}

################
################
################


### Эвент Риму что [FROM.GetNameDef]  хочет вступить в СНЕГ. мы выносим ее кандидатуру на выборы.
country_event = {
	id = romanimp.133
	title = romanimp.133.t
	desc = romanimp.133.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.133.a	# наш голос за
		ai_chance = {
			factor = 10	
			modifier = {
				factor = 1.2
				has_opinion = {
					target = FROM
					value > 15
				}				
			}
			modifier = {
				factor = 1.2
				has_opinion = {
					target = FROM
					value > 25
				}				
			}
			modifier = {
				factor = 2
				has_war = yes
			}
			modifier = {
				factor = 1.2
				FROM = {
					OR = {
						has_government = neutrality
						has_government = democratic
					}
				}
			}			
		}
		hidden_effect = {
			FROM = {
				set_variable = { sneg_golosov_za_var = 1 }
				set_variable = { sneg_golosov_protiv_var = 0 }
				country_event = { id = romanimp.134 }
			}
		}
	}
	option = {
		name = romanimp.133.b 	# наш голос против
		ai_chance = {
			factor = 10	
			modifier = {
				factor = 1.2
				FROM = {
					has_war = yes
				}	
			}	
			modifier = {
				factor = 1.2
				FROM = {
					has_added_tension_amount > 15
				}	
			}
			modifier = {
				factor = 2
				FROM = {
					OR = {
						has_government = fascism
						has_government = communism
					}
				}
			}
		}
		hidden_effect = {
			FROM = {
				set_variable = { sneg_golosov_za_var = 0 }
				set_variable = { sneg_golosov_protiv_var = 1 }
				country_event = { id = romanimp.134 }
			}
		}	
	}
}

### скрытый эвент на опрос участников СНЕГ от имени кандидата
country_event = {
	id = romanimp.134
	Hidden = yes
	is_triggered_only = yes	
	immediate = {
		every_other_country = {
			limit = { 
				is_in_faction_with = ZRI
				NOT = { tag = ZRI }
			}				
			country_event = { days = 1 id = romanimp.135 }
		}
		country_event = { days = 7 id = romanimp.136 }
	}
}	

### Эвент стране-участнице СНЕГ о том, что мы голосуем за принятие [FROM.GetNameDef] в наш альянс
country_event = {
	id = romanimp.135
	title = romanimp.135.t
	desc = romanimp.135.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.135.a	# наш голос за
		ai_chance = {
			factor = 10	
			modifier = {
				factor = 1.2
				has_opinion = {
					target = FROM
					value > 15
				}				
			}
			modifier = {
				factor = 1.2
				has_opinion = {
					target = FROM
					value > 25
				}				
			}
			modifier = {
				factor = 2
				has_war = yes
			}
			modifier = {
				factor = 1.2
				FROM = {
					OR = {
						has_government = neutrality
						has_government = democratic
					}
				}
			}			
		}
		hidden_effect = {
			FROM = {
				add_to_variable = { sneg_golosov_za_var = 1 }				
			}
		}
	}
	option = {
		name = romanimp.135.b 	# наш голос против
		ai_chance = {
			factor = 10	
			modifier = {
				factor = 1.2
				FROM = {
					has_war = yes
				}	
			}	
			modifier = {
				factor = 1.2
				FROM = {
					has_added_tension_amount > 15
				}	
			}
			modifier = {
				factor = 2
				FROM = {
					OR = {
						has_government = fascism
						has_government = communism
					}
				}
			}
		}
		hidden_effect = {
			FROM = {				
				add_to_variable = { sneg_golosov_protiv_var = 1 }				
			}
		}	
	}
}

### скрытый эвент на подведение итогов от имени кандидата
country_event = {
	id = romanimp.136
	Hidden = yes
	is_triggered_only = yes	
	immediate = {
		ZRI = {
			country_event = { id = romanimp.137 }
		}
	}
}	

### Эвент Риму, главе СНЕГ от [FROM.GetNameDef], о том что пора подводить итоги по выборам. страны проголосовали вот так.
country_event = {
	id = romanimp.137
	title = romanimp.137.t
	desc = romanimp.137.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	immediate = {
		hidden_effect = {
			set_variable = { sneg_itog_za_var = FROM.sneg_golosov_za_var }
			set_variable = { sneg_itog_protiv_var = FROM.sneg_golosov_protiv_var }
		}
		custom_effect_tooltip = romanimp.137.tt	# заполнить локу
	}
	option = {
		name = romanimp.137.a	# таков итог
		if = {
			limit = {
				check_variable = {
					var = FROM.sneg_golosov_za_var
					value = FROM.sneg_golosov_protiv_var
					compare = greater_than_or_equals
				}
			}
			
#			add_to_faction = FROM
			FROM = {
				join_sneg = yes
				country_event = { id = romanimp.138 }
			}
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.98 }
			}
		}
		else = {
			FROM = {
				country_event = { id = romanimp.139 }
			}			
		}
	}	
}

### эвент для страны кандидата что мы в СНЕГ. ура
country_event = {
	id = romanimp.138
	title = romanimp.138.t
	desc = romanimp.138.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.138.a
		effect_tooltip = {
			join_sneg = yes
			# ZRI = {
				# add_to_faction = ROOT
			# }
		}
		clear_variable = sneg_golosov_za_var
		clear_variable = sneg_golosov_protiv_var
		if = {
			limit = {
				has_idea = byla_podana_zayavka_v_sneg
			}
			remove_ideas = byla_podana_zayavka_v_sneg
		}
	}
}

### эвент для страны кандидата что мы в НЕ СНЕГ. 
country_event = {
	id = romanimp.139
	title = romanimp.139.t
	desc = romanimp.139.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.139.a
		clear_variable = sneg_golosov_za_var
		clear_variable = sneg_golosov_protiv_var
		custom_effect_tooltip = romanimp.139.tt
	}
}

### ТЕСТОВЫЙ ЭВЕНТ НА ПРОВЕРКУ 
country_event = {
	id = romanimp.140
	title = romanimp.140.t
	desc = romanimp.140.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.140.a
#		create_faction = europe_democr_union
		create_or_join_sneg = yes
		set_popularities = {
			democratic = 80
			neutrality = 10
			fascism = 5
			communism = 5
		}
		set_politics = {
			ruling_party = democratic
			elections_allowed = no
			last_election = "1985.12.17"
			election_frequency = 48
		}
	}
	option = {
		name = romanimp.140.b
		every_other_country = {
			limit = {				
				is_subject_of = ZRI				
			}
			drop_cosmetic_tag = yes	
			ZRI = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }					
		}
	}
	option = {
		name = romanimp.140.c
		random_other_country = {
			limit = {
				capital_scope = {
					is_on_continent = europe
				}
				is_in_faction = no
				NOT = {
					has_war_with = ZRI
				}
			}
			country_event = { id = romanimp.141 }
		}
	}
}

### ТЕСТ ДЛЯ ЦЕЛЕВОЙ СТРАНЫ
country_event = {
	id = romanimp.141
	title = romanimp.141.t
	desc = romanimp.141.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = romanimp.141.a
		country_event = { id = romanimp.133 }
	}
}