﻿add_namespace = baltica


# grazdanka or razdel
country_event = {
	id = baltica.1
	title = baltica.1.t
	desc = baltica.1.d
	picture = GFX_report_event_chamberlain_announce
	is_triggered_only = yes	
	option = {
		name = baltica.1.a	
		ai_chance = { 
			factor = 98			
		}
		remove_ideas = nacionalnye_conflikty_zba
		custom_effect_tooltip = baltica.1.a.tt
		country_event = { id = baltica.2 days = 1 }		
	}
	
	option = {
		name = baltica.1.b
		ai_chance = { 
			factor = 2			
		}
		ZBA = {
			remove_ideas = nacionalnye_conflikty_zba
			add_stability = 0.2
			add_war_support = 0.2
			set_politics = {
				ruling_party = neutrality
				last_election = "1986.2.2"			
				elections_allowed = no
			}
			start_civil_war = {
				ideology = fascism
				size = 0.5			
			}
		}		
	}
}

# raspad baltici
country_event = {
	id = baltica.2
	title = baltica.2.t
	desc = baltica.2.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = baltica.2.a			
		custom_effect_tooltip = baltica.2.a.tt
		country_event = { id = baltica.3 days = 1 }
		if = {
			limit = {
				owns_state = 62
				owns_state = 63
			}
			release = ZPO
		}
		if = {
			limit = {
				owns_state = 85
				owns_state = 781
			}
			release = ZDC
		}
		if = {
			limit = {
				owns_state = 189
				owns_state = 190
				owns_state = 11
			}
			release = ZKY
		}		
	}	
}

# go to kenigsberrrg
country_event = {
	id = baltica.3
	title = baltica.3.t
	desc = baltica.3.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = baltica.3.a			
		if = {
			limit = {
				owns_state = 5
				owns_state = 780
				owns_state = 188				
			}
			custom_effect_tooltip = baltica.3.a.tt
			release = ZKQ
			ZKQ = { change_tag_from = ZBA }
			hidden_effect = {
				ZKQ = {
					add_ideas = zba_spetss
					news_event = { hours = 3 id = ar_news.552 }
				}			
			}			
		}
		if = {
			limit = {
				country_exists = ZBR
				country_exists = ZPO
#				ZBR = {
#					has_completed_focus = zbr_anti_baltic
#				}
			}
			ZBR = {
				country_event = {
					id = baltica.4
				}
			}
			else = {
				ZPO = {
					add_ai_strategy = {
						type = alliance
						id = ZLU
						value = 50
					}
				}
			}
		}
		if = {
			limit = {
				country_exists = ZDC
				country_exists = ZPV
				ZPV = {
					 has_country_flag = pol_anti_baltika1
				}
			}
			ZPV = {
				country_event = {
					id = baltica.5
				}
			}
			else = {
				ZDC = {
					add_ai_strategy = {
						type = alliance
						id = ZLU
						value = 50
					}
				}
			}
		}
		if = {
			limit = {
				country_exists = ZKY
				country_exists = ZSL
				ZSL = {
					 has_country_flag = zsl_anti_baltika1
				}
			}
			ZSL = {
				country_event = {
					id = baltica.6
				}
			}
			else = {
				ZKY = {
					add_ai_strategy = {
						type = alliance
						id = ZLU
						value = 50
					}
				}
			}
		}
		
	}	
}

# dlya branden
country_event = {
	id = baltica.4
	title = baltica.4.t
	desc = baltica.4.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = baltica.4.a
		ai_chance = { 
			factor = 98			
		}
		ZBR = {	
			puppet = ZPO
			add_named_threat = { threat = 5 name = branden_vvodit_voiska_v_pomeraniu }	
			hidden_effect = {
				news_event = { hours = 6 id = ar_news.619 }				
			}
		}	
	}
	option = {
		name = baltica.4.b
		ai_chance = { 
			factor = 2			
		}			
	}
}

# dlya polen
country_event = {
	id = baltica.5
	title = baltica.5.t
	desc = baltica.5.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = baltica.5.a
		ai_chance = { 
			factor = 98			
		}
		ZPV = {	
			puppet = ZDC
			add_named_threat = { threat = 3 name = polska_vvodit_armiu_v_dnzig_threattt }	
			hidden_effect = {
				news_event = { days = 2 id = ar_news.620 }				
			}
		}	
	}
	option = {
		name = baltica.5.b
		ai_chance = { 
			factor = 2			
		}			
	}
}

# dlya slavian
country_event = {
	id = baltica.6
	title = baltica.6.t
	desc = baltica.6.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = baltica.6.a
		ai_chance = { 
			factor = 98			
		}
		ZSL = {	
			puppet = ZKY
			add_named_threat = { threat = 5 name = slavianic_okkup_kyrlandia_thrt }	
			hidden_effect = {
				news_event = { days = 4 id = ar_news.621 }				
			}
		}	
	}
	option = {
		name = baltica.6.b
		ai_chance = { 
			factor = 2			
		}			
	}
}
###################################
#otdat kurlandiy slavanam
country_event = {
	id = baltica.7
	title = baltica.7.t
	desc = baltica.7.d
	picture = GFX_report_event_soviet_tanks_snow
	
	trigger = {
		has_global_flag = zsl_hotat_kurlandiu
		tag = ZBA
		has_war_with = ZSL
		surrender_progress > 0.25
		has_civil_war = no
		is_in_faction = no
	}
	mean_time_to_happen = { days = 3 }
	fire_only_once = yes
	#Surrender and offer territory
	option = {
		name = baltica.7.a
		ai_chance = {
			base = 15
		}
		ZSL = {
			country_event = { id = baltica.8 }
		}
		custom_effect_tooltip = baltica.7.a_tt
		effect_tooltip = {
			ZSL = { 
				white_peace = {
					tag = ZBA 
					message = ZBA_agree_peace 
				} 
			}
			transfer_state = 11
			transfer_state = 189
			transfer_state = 190
		}
	}

	#Never give up!
	option = {
		name = baltica.7.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

#to zsl o mire
country_event = {
	id = baltica.8
	title = baltica.8.t
	desc = baltica.8.d
	picture = GFX_report_event_finnish_soldiers_snow
	
	is_triggered_only = yes

	#Accept surrender
	option = {
		name = baltica.8.a
		ai_chance = {
			base = 9
		}
		white_peace = ZBA
		transfer_state = 11
		transfer_state = 189
		transfer_state = 190
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.623 }
		}
	}

	#Take it all
	option = {
		name = baltica.8.b
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}			
		}
		ZBA = { country_event = { id = baltica.9 } }
	}
}

#zsl  says no!
country_event = {
	id = baltica.9
	title = baltica.9.t
	desc = baltica.9.d
	picture = GFX_report_event_finnish_soldiers_snow
	
	is_triggered_only = yes

	option = {
		name = baltica.9.a
		add_stability = 0.1
		add_war_support = 0.1
	}
}
#######################
#эвент типа здарсте, мы тут собрались порешать что нам со страной то делать. Острые социальные, административные вопросы, все дела.
country_event = {
	id = baltica.10
	title = baltica.10.t
	desc = baltica.10.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = baltica.10.a	
		hidden_effect = {
			set_variable = { zba_federal_var = 0 } 
			set_variable = { zba_konfederal_var = 0 } 
			set_variable = { zba_teuton_var = 0 } 
			set_variable = { zba_raspad_var = 0 }
			if = {
				limit = {
					has_country_flag = zba_federaly_pobedili_flag
				}
				clr_country_flag = zba_federaly_pobedili_flag
			}
			if = {
				limit = {
					has_country_flag = zba_konfederal_pobedili_flag
				}
				clr_country_flag = zba_konfederal_pobedili_flag
			}
			if = {
				limit = {
					has_country_flag = zba_teutoncy_pobedili_flag
				}
				clr_country_flag = zba_teutoncy_pobedili_flag
			}
			if = {
				limit = {
					has_country_flag = zba_raspad_pobedili_flag
				}
				clr_country_flag = zba_raspad_pobedili_flag
			}
			if = {
				limit = {
					has_country_flag = zba_koalitsia_pobedili_flag
				}
				clr_country_flag = zba_koalitsia_pobedili_flag
			}
			if = {
				limit = {
					has_country_flag = zba_teutoncy_propadancy_pobedili_flag
				}
				clr_country_flag = zba_teutoncy_propadancy_pobedili_flag
			}			
		}
		country_event = {
			id = baltica.11
		}
	}
}
#эвент о том кто в парламенте. Раньше были представители всех регионов, кого щас оставим?
country_event = {
	id = baltica.11
	title = baltica.11.t
	desc = baltica.11.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	# пусть все и будут  
		name = baltica.11.a	
		ai_chance = { 
			factor = 5	
			modifier = {
				factor = 100
				has_country_flag = ZBA_FEDERAT_RUL_flag
			}
			modifier = {
				factor = 100
				has_country_flag = ZBA_KONFEDERAT_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.11.a.tt 
		add_political_power = 80
		add_to_variable = { zba_federal_var = 1 } 
		add_to_variable = { zba_konfederal_var = 1 } 
		country_event = {
			id = baltica.12				
		}
	}
	option = {	#строгий ценз
		name = baltica.11.b	
		ai_chance = { 
			factor = 5	
			modifier = {
				factor = 100
				has_country_flag = ZBA_TEUTON_RUL_flag
			}
			modifier = {
				factor = 100
				has_country_flag = ZBA_RASPAD_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.11.b.tt 
		add_stability = 0.05
		add_to_variable = { zba_teuton_var = 1 }
		add_to_variable = { zba_raspad_var = 1 }
		country_event = {
			id = baltica.12
		}
	}
}
#вопросы религии, церковь у нас очень влияет на все дела в стране
country_event = {
	id = baltica.12
	title = baltica.12.t
	desc = baltica.12.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	# Секуляризация(отделение церквей от государства)
		name = baltica.12.a	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_KONFEDERAT_RUL_flag
			}
			modifier = {
				factor = 100
				has_country_flag = ZBA_RASPAD_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.12.a.tt		
		add_to_variable = { zba_raspad_var = 1 }
		add_to_variable = { zba_konfederal_var = 1 }		
		country_event = {
			id = baltica.13
		}
	}
	option = {	#	слияние
		name = baltica.12.b	
		ai_chance = { 
			factor = 5	
			modifier = {
				factor = 100
				has_country_flag = ZBA_TEUTON_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.12.b.tt
		add_to_variable = { zba_teuton_var = 1 }	
		country_event = {
			id = baltica.13
		}
	}
}
#Вопросы образования как часть реформы языка, сейчас всё сложно, что сделаем?
country_event = {
	id = baltica.13
	title = baltica.13.t
	desc = baltica.13.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	# только общие школы с единым языком преподавания
		name = baltica.13.a	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_FEDERAT_RUL_flag
			}
			modifier = {
				factor = 100
				has_country_flag = ZBA_TEUTON_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.13.a.tt
		add_to_variable = { zba_federal_var = 1 }
		add_to_variable = { zba_teuton_var = 1 }		
		country_event = {
			id = baltica.14
		}
	}
	option = {	#	создавать национальные школы 
		name = baltica.13.b	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_RASPAD_RUL_flag
			}			
		}
		custom_effect_tooltip = baltica.13.b.tt
		add_to_variable = { zba_raspad_var = 1 }		
		country_event = {
			id = baltica.14
		}
	}
}
#Военные вопросы, как дивизии комплектовать? 
country_event = {
	id = baltica.14
	title = baltica.14.t
	desc = baltica.14.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	# всех без разбора, все равны
		name = baltica.14.a	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_KONFEDERAT_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.14.a.tt
		add_to_variable = { zba_konfederal_var = 1 }
		add_stability = 0.03		
		country_event = {
			id = baltica.15
		}
	}
	option = {	#	немцы в офицеров
		name = baltica.14.b	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_RASPAD_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.14.b.tt
		add_to_variable = { zba_raspad_var = 1 }
		add_ideas = zba_nemetskie_ofitsery		
		add_war_support = -0.02
		country_event = {
			id = baltica.15
		}
	}
	option = {	#	ослабить призыв, чтобы не разжигать
		name = baltica.14.c	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_FEDERAT_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.14.c.tt
		add_to_variable = { zba_federal_var = 1 }
		add_timed_idea = {
			idea = zba_oslablenie_priziva_debuff
			days = 365
		}		
		country_event = {
			id = baltica.15
		}
	}
}
#Решение проблемы длительности рабочего дня на фабриках
country_event = {
	id = baltica.15
	title = baltica.15.t
	desc = baltica.15.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	# 11(?) часов
		name = baltica.15.a	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_TEUTON_RUL_flag
			}
			modifier = {
				factor = 100
				has_country_flag = ZBA_RASPAD_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.15.a.tt
		add_to_variable = { zba_raspad_var = 1 }
		add_to_variable = { zba_teuton_var = 1 }
		add_timed_idea = {
			idea = zba_zabastovki_na_zavodah
			days = 365
		}		
		country_event = {
			id = baltica.16
		}
	}
	option = {	#	9(?) часов
		name = baltica.15.b	
		ai_chance = { 
			factor = 5	
			modifier = {
				factor = 100
				has_country_flag = ZBA_FEDERAT_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.15.b.tt
		add_to_variable = { zba_federal_var = 1 }
		country_event = {
			id = baltica.16
		}
	}
}
#Права женщин
country_event = {
	id = baltica.16
	title = baltica.16.t
	desc = baltica.16.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	# дать им право избираться и быть избранными (суфражистки типа)
		name = baltica.16.a
		ai_chance = { 
			factor = 5	
			modifier = {
				factor = 100
				has_country_flag = ZBA_FEDERAT_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.16.a.tt
		add_to_variable = { zba_federal_var = 1 }			
		country_event = {
				id = baltica.17
		}
	}
	option = {	#	нет, пусть своими женскими делами занимаются
		name = baltica.16.b	
		ai_chance = { 
			factor = 5
			modifier = {
				factor = 100
				has_country_flag = ZBA_KONFEDERAT_RUL_flag
			}
		}
		custom_effect_tooltip = baltica.16.b.tt
		add_to_variable = { zba_konfederal_var = 1 }		
		country_event = {
			id = baltica.17
		}
	}
}
#ИТОГ
country_event = {
	id = baltica.17
	title = baltica.17.t
	desc = baltica.17.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
#		custom_effect_tooltip = zba_lokal_golosa_za_federat  
#		custom_effect_tooltip = zba_lokal_golosa_za_konfederat  
#		custom_effect_tooltip = zba_lokal_golosa_za_teuton 
#		custom_effect_tooltip = zba_lokal_golosa_za_raspad 
		##
 		if = {
			limit = {
				check_variable = {
					var = zba_federal_var
					value = zba_konfederal_var
					compare = greater_than_or_equals
				}
			}
#			custom_effect_tooltip = zba_federaly_pobedili
			set_country_flag = zba_federaly_pobedili_flag
			else = {
#				custom_effect_tooltip = zba_federaly_ne_pobedili
				set_country_flag = zba_konfederal_pobedili_flag
			}
		}	
		set_variable = { zba_federal_konfederal_summa = zba_federal_var }
		add_to_variable = {
			var = zba_federal_konfederal_summa
			value = zba_konfederal_var
		}
#		custom_effect_tooltip = zba_lokal_federal_konfederal_summa
	
		if = {
			limit = {
				check_variable = {
					var = zba_teuton_var
					value = zba_raspad_var
					compare = greater_than_or_equals
				}
			}
#			custom_effect_tooltip = zba_teutoncy_pobedili
			set_country_flag = zba_teutoncy_pobedili_flag
			else = {
#				custom_effect_tooltip = zba_teutoncy_ne_pobedili
				set_country_flag = zba_raspad_pobedili_flag
			}
		}
		set_variable = { zba_teuton_raspad_summa = zba_teuton_var }
		add_to_variable = {
			var = zba_teuton_raspad_summa
			value = zba_raspad_var
		}
#		custom_effect_tooltip = zba_lokal_teuton_raspad_summa
		if = {
			limit = {
				check_variable = {
					var = zba_federal_konfederal_summa
					value = zba_teuton_raspad_summa
					compare = greater_than_or_equals
				}
			}
#			custom_effect_tooltip = zba_koalitsia_pobedili
			set_country_flag = zba_koalitsia_pobedili_flag
			else = {
#				custom_effect_tooltip = zba_teutoncy_propadancy_pobedili
				set_country_flag = zba_teutoncy_propadancy_pobedili_flag
			}
		}
		###
		if = {
			limit = {
				has_country_flag = zba_koalitsia_pobedili_flag
				has_country_flag = zba_federaly_pobedili_flag
			}
#			custom_effect_tooltip = federaly_zatashili_vybiry
		}
		if = {
			limit = {
				has_country_flag = zba_koalitsia_pobedili_flag
				has_country_flag = zba_konfederal_pobedili_flag
			}
#			custom_effect_tooltip = konfederaly_zatashili_vybiry
		}
		if = {
			limit = {
				has_country_flag = zba_teutoncy_propadancy_pobedili_flag
				has_country_flag = zba_teutoncy_pobedili_flag
			}
#			custom_effect_tooltip = teutoncy_zatashili_vybiry
		}
		if = {
			limit = {
				has_country_flag = zba_teutoncy_propadancy_pobedili_flag
				has_country_flag = zba_raspad_pobedili_flag
			}
#			custom_effect_tooltip = raspad_zatashili_vybiry
		}
		
	}
	option = {	# ok
		name = baltica.17.a	
		if = {
			limit = {
				has_country_flag = zba_koalitsia_pobedili_flag
				has_country_flag = zba_federaly_pobedili_flag
			}
			custom_effect_tooltip = federaly_zatashili_vybiry
			complete_national_focus = zba_sohranenie_federatii
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.827 }
			}
		}
		###
		if = {
			limit = {
				has_country_flag = zba_koalitsia_pobedili_flag
				has_country_flag = zba_konfederal_pobedili_flag
			}
			custom_effect_tooltip = konfederaly_zatashili_vybiry
			complete_national_focus = zba_sohranenie_federatii
			retire_country_leader = yes
			remove_ideas = nacionalnye_conflikty_zba
			if = {
				limit = {
					owns_state = 62
					owns_state = 63
					NOT = {
						country_exists = ZPO
					}
				}
				release_autonomy = {
					target = ZPO
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				ZPO = {
					set_cosmetic_tag = ZPO_BAL
				}
			}
			if = {
				limit = {
					owns_state = 85
					owns_state = 781
					NOT = {
						country_exists = ZDC
					}
				}
				release_autonomy = {
					target = ZDC
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				ZDC = {
					set_cosmetic_tag = ZDC_BAL
				}
			}
			if = {
				limit = {
					owns_state = 189
					owns_state = 190
					owns_state = 11
					NOT = {
						country_exists = ZKY
					}
				}
				release_autonomy = {
					target = ZKY
					autonomy_state = autonomy_puppet
					freedom_level = 0.5
				}
				ZKY = {
					set_cosmetic_tag = ZKY_BAL
				}
			}
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.828 }
			}
		}
		###
		if = {
			limit = {
				has_country_flag = zba_teutoncy_propadancy_pobedili_flag
				has_country_flag = zba_teutoncy_pobedili_flag
			}
			custom_effect_tooltip = teutoncy_zatashili_vybiry
			complete_national_focus = zba_tevtoncy_go_go
			set_politics = {								
				ruling_party = fascism
			}
			set_popularities = {
				democratic = 20
				neutrality = 10
				fascism = 70				
			}
			add_stability = -0.1
			add_war_support = -0.05
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.829 }
				ZBR = {
					country_event = { id = branden.63 }
				}
			}
		}
		###
		if = {
			limit = {
				has_country_flag = zba_teutoncy_propadancy_pobedili_flag
				has_country_flag = zba_raspad_pobedili_flag
			}
			custom_effect_tooltip = raspad_zatashili_vybiry
			if = {
						limit = {
							owns_state = 62
							owns_state = 63
							NOT = {
								country_exists = ZPO
							}
						}
						release = ZPO
					}
					if = {
						limit = {
							owns_state = 85
							owns_state = 781
							NOT = {
								country_exists = ZDC
							}
						}
						release = ZDC
					}
					if = {
						limit = {
							owns_state = 189
							owns_state = 190
							owns_state = 11
							NOT = {
								country_exists = ZKY
							}
						}
						release = ZKY
					}
			if = {
				limit = {
					owns_state = 5				
				}
				hidden_effect = {
					ZBA = {
						country_event = { hours = 1 id = baltica.1700 }
					}
					ZBR = {
						country_event = { id = branden.64 }
					}
					ZKQ = {
						transfer_state = 5
						change_tag_from = ZBA
					}					
				}
				custom_effect_tooltip = zba_kenig_our_house
#				hidden_effect = {
#					ZKQ = {
#						add_ideas = zba_spetss
#						add_stability = 0.05
#						add_war_support = 0.05
#						add_political_power = 180
#						add_manpower = 127431
#						news_event = { hours = 3 id = ar_news.552 }
#					}			
#				}			
			}
		}
		
	}	
}
#балтика нас вкачивает
country_event = {
	id = baltica.1700
	title = baltica.1700.t
	desc = baltica.1700.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.1700.a	
		ZKQ = {
			annex_country = {
				target = ZBA
				transfer_troops = yes
			}
			add_ideas = zba_spetss
			add_stability = 0.05
			add_war_support = 0.05
			add_political_power = 180
			add_manpower = 127431
			news_event = { hours = 3 id = ar_news.552 }
		}
		hidden_effect = {
			if = {
				limit = {
					ZPO = {
						exists = yes
						is_in_faction = no
						is_subject = no
						has_war = no
					}
				}
				ZPO = {
					country_event = { days = 1 id = baltica.73 }
				}
			}
			if = {
				limit = {
					ZDC = {
						exists = yes
						is_in_faction = no
						is_subject = no
						has_war = no
					}
				}
				ZDC = {
					country_event = { days = 2 id = baltica.73 }
				}
			}
			if = {
				limit = {
					ZKQ = {
						exists = yes
						is_in_faction = no
						is_subject = no
						has_war = no
					}
				}
				ZKQ = {
					country_event = { days = 3 id = baltica.73 }
				}
			}
			if = {
				limit = {
					ZKY = {
						exists = yes
						is_in_faction = no
						is_subject = no
						has_war = no
					}
				}
				ZKY = {
					country_event = { days = 4 id = baltica.73 }
				}
			}
		}
	}
}	
###################################################################################
#балтика нас вкачивает
country_event = {
	id = baltica.18
	title = baltica.18.t
	desc = baltica.18.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.18.a	
		add_autonomy_ratio = {
			value = -0.1
			localization = baltica.18.autonom 	#лока - Воздействие со стороны Кёнигсберга
		}
		if = {
				limit = {
					NOT = {
						any_owned_state = {
							dockyard > 0
							free_building_slots = {
								building = dockyard
								size > 2
								include_locked = yes
							}
						}
					}
					any_owned_state = {
						is_coastal = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_coastal = yes
						free_building_slots = {
							building = dockyard
							size > 2
							include_locked = yes
						}
					}
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = dockyard
						level = 3
						instant_build = yes
					}
				}				
		}
	}	
}

#мы публично говорим о поддержании института папства. Даже зовем папу римского бросить уже этот рим и приехать к нам. но в ответ тишина, он как марионетка в этом риме
country_event = {
	id = baltica.19
	title = baltica.19.t
	desc = baltica.19.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.19.a
		add_political_power = 80
		add_stability = 0.05
		hidden_effect = {
			news_event = { hours = 8 id = ar_news.822 }
			if = {
				limit = {
					ZRI = {
						has_government = fascism
						has_civil_war = no
					}
				}
				ZRI = {
					country_event = { id = baltica.20 }
				}	
			}
		}
	}	
}

###эвент риму (империи) о том что балтика_тэг там что то про папство залечивает. поддерживает институт. Да даже папу римского к себе зовут. Вот какие агрессивные
country_event = {
	id = baltica.20
	title = baltica.20.t
	desc = baltica.20.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.20.a		
	}	
}

###эвент еворпейским странам что Балтика_тэг за возвращение и укрепление католичесвта во всей европе
country_event = {
	id = baltica.21
	title = baltica.21.t
	desc = baltica.21.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.21.a	
		ai_chance = { 
			factor = 7			
		}
		add_opinion_modifier = {
			target = ZBA
			modifier = simpatii_katolikam
		}
	}
	option = {	
		name = baltica.21.b	
		ai_chance = { 
			factor = 2	
			modifier = {
				factor = 50
				OR = {
					tag = ZSL
					tag = ZTI
					tag = ZVZ
					tag = ZKR
					tag = ZGO
					tag = ZPE
					tag = ZOR
				}
			}
		}
		add_opinion_modifier = {
			target = ZBA
			modifier = antipatii_katolikam
		}
	}	
}

###эвент риму о том что балтика_тэг активно поддерживает католическую опозицию что у нас тут завелась. они говорят что в случае чего могут выступить на стороне папы, если его подопечные восстанут Бенедикт XVI
country_event = {
	id = baltica.22
	title = baltica.22.t
	desc = baltica.22.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.22.a	
		add_stability = -0.01
		set_global_flag = zba_podderjka_katolik_oppozit_zri
	}	
}


###вступить в войну на стороне папы римского
country_event = {
	id = baltica.23
	title = baltica.23.t
	desc = baltica.23.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {
		tag = ZBA		
		ZBA = {
			has_government = fascism
		}		
		any_country = {			
			original_tag = ZRI
			has_war_with = ZRI
			has_civil_war = yes			
			has_government = neutrality
		}
		has_global_flag = zba_podderjka_katolik_oppozit_zri
		has_global_flag = zri_vosstanie_papas_partizana
	}
	mean_time_to_happen = { days = 2 }
	fire_only_once = yes
	#GO GO to warrrr
	option = {
		name = baltica.23.a
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 2
				has_army_manpower = {
					size > 249999
				}
			}
		}
		every_other_country = {
			limit = {
				original_tag = ZRI
				has_civil_war = yes			
				has_government = neutrality
			}
			country_event = { id = baltica.25 }			
		}
		add_named_threat = { threat = 4 name = baltica.23.a.threatttt }				
	}	
	#NO NO NO
	option = {
		name = baltica.23.b
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 20
				has_war = yes
			}
			modifier = {
				factor = 20
				strength_ratio = {
					tag = ZRI
					ratio < 0.5
				}
			}
		}	
		clr_global_flag = zba_podderjka_katolik_oppozit_zri
		clr_global_flag = zri_vosstanie_papas_partizana
	}
}

###эвент для соседей Балтика_тэг о том что по мнению из дипломатов мы, как норм католики вполне можем скоро получить приглашение вступить в католическую лигу балтики
country_event = {
	id = baltica.24
	title = baltica.24.t
	desc = baltica.24.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.24.a	
		
	}	
}

###эвент папской области что балтика_тэг воюет за них . Бенедикт XVI
country_event = {
	id = baltica.25
	title = baltica.25.t
	desc = baltica.25.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.25.a	
		add_stability = 0.07
		add_war_support = 0.07
		add_political_power = 120
		ZBA = {
			country_event = { id = baltica.26 }	
		}		
	}	
}

###эвент балтике что папа дал добро на вмешательство
country_event = {
	id = baltica.26
	title = baltica.26.t
	desc = baltica.26.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.26.a	
		add_to_war = { targeted_alliance = FROM enemy = ZRI hostility_reason = asked_to_join }
		
	}	
}

####  эвент для страны-католического-соседа Балтики о том что Балтика приглашает её в свой религиозный альянс
country_event = {
	id = baltica.27
	title = baltica.27.t
	desc = baltica.27.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = baltica.27.a
		trigger = {
			is_in_faction = no
		}
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 4
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {				
				factor = 2
				has_opinion = {
					target = FROM
					value > 5
				}
			}
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}
		FROM = {
			country_event = { id = baltica.29 }
		}		
	}
	option = { # Refuse
		name = baltica.27.b
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 5
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
			modifier = {				
				factor = 4
				has_opinion = {
					target = FROM
					value < 5
				}
			}
		}
		FROM = {
			country_event = { id = baltica.28 }
		}
	}
}
# declines  эвент от цели для балтики об отказе
country_event = {
	id = baltica.28
	title = baltica.28.t
	desc = baltica.28.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.28.a
	}
}
# accepts эвент от цели для балтики о согласии
country_event = {
	id = baltica.29
	title = baltica.29.t
	desc = baltica.29.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.29.a
		add_to_faction = FROM
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 150
		}
		add_named_threat = { threat = 2 name = zba_catholic_liga_rise_threatttt }		
	}
}

###эвент для соседей Балтика_тэг о том что по балтика публично обозвала их еретиками какими то, мол мы исказили священные принципы веры. они заявляют о начале борьбы с еретиками
country_event = {
	id = baltica.30
	title = baltica.30.t
	desc = baltica.30.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.30.a	
		add_opinion_modifier = {
			target = ZBA
			modifier = agressssor
		}
	}	
}

###эвент для византосов о том что тевтонцы заявляют о своей поддержке в их оборонительной войне против персидских завоевателей
country_event = {
	id = baltica.31
	title = baltica.31.t
	desc = baltica.31.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.31.a	
		add_opinion_modifier = {
			target = ZBA
			modifier = podderjali_nas_20
		}		
		ZBA = {
			add_opinion_modifier = {
				target = ZPA
				modifier = agressssor
			}
		}
	}	
}

###эвент для персиков о том что тектонский орден поддерживает византосов. они лезут не в свое дело
country_event = {
	id = baltica.32
	title = baltica.32.t
	desc = baltica.32.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.32.a	
		add_opinion_modifier = {
			target = ZBA
			modifier = agressssor
		}		
	}	
}

###эвент на старт конгресса христианских государств
country_event = {
	id = baltica.33
	title = baltica.33.t
	desc = baltica.33.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
	
	}
	option = {	
		name = baltica.33.a	
		every_other_country = {
			limit = {
				OR = {
					tag = ZGA
					tag = ZPV
					tag = ZBR
					tag = ZBO
					tag = ZDU
					tag = ZRU
					tag = TRA
					tag = ZML
					tag = XMZ
					tag = ZVA
					tag = ZGF
				}
				is_subject = no
				is_in_faction = no
				has_war = no				
			}
			country_event = { id = baltica.34 days = 2 random = 12 }	
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.824 }
		}
	}	
}

###эвент для стрна между тевтонцами и византосами (страны-хрестьяне, не в альянсе, свободные и не воюющие). Тевтонцы зовут нас на конгресс, они обеспокоены войной христианской византии (ну и пусть что православие, все равно братушки) и персией. Они призывают нас вступить в их альянс католич лигу и частью святого воинства затрамбовать персию туда откуда вылезла. Ну или просто хотя бы пропустить их.
country_event = {
	id = baltica.34
	title = baltica.34.t
	desc = baltica.34.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.34.a	#мы тоже воевать хотим!
		ai_chance = {
			factor = 5
			modifier = {
				factor = 3
				has_opinion = {
					target = ZBA
					value > 9
				}
			}
			modifier = {
				factor = 3
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {
				factor = 3
				has_army_manpower = { size > 99999 } 
			}			
		}
		add_ai_strategy = {
				type = alliance
				id = ZBA
				value = 150
			}
		effect_tooltip = {		
			ZBA = {
				add_to_faction = ROOT
			}
		}
		add_named_threat = { threat = 3 name = baltica.34.threattt }
		ZBA = {
			country_event = { id = baltica.35 days = 1 random = 6 }	
		}
	}
	option = {	
		name = baltica.34.b	#мы просто пропустим их		
		trigger = {
			NOT = {
				has_military_access_to = ZBA
			}	
		}
		ai_chance = {
			factor = 5
			modifier = {
				factor = 3
				has_opinion = {
					target = ZBA
					value > -11
				}
			}
			modifier = {
				factor = 3				
				has_government = democratic				
			}
			modifier = {
				factor = 10				
				original_tag = ZBR			
			}
			modifier = {
				factor = 3
				has_army_manpower = { size < 100000 } 
			}	
		}
		give_military_access = ZBA
		add_ai_strategy = {
			type = alliance
			id = ZBA
			value = 20
		}
		ZBA = {
			country_event = { id = baltica.36 days = 1 random = 3 }	
		}
	}
	option = {	
		name = baltica.34.c	#это нас не касается
		ai_chance = {
			factor = 3
			modifier = {
				factor = 3
				has_opinion = {
					target = ZBA
					value < -11
				}
			}
			modifier = {
				factor = 10				
				has_government = communism				
			}
		}
		custom_effect_tooltip = baltica.34.c.tt
		ZBA = {
			country_event = { id = baltica.37 days = 1 random = 15 }	
		}
	}	
}

###эвент для балтики о том что страна_нейм хочет присоединиться к нашему альянсу и принять участи в походе против персии
country_event = {
	id = baltica.35
	title = baltica.35.t
	desc = baltica.35.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.35.a	
		add_political_power = 10
		army_experience = 2
		ZBA = {
			add_to_faction = FROM
			add_ai_strategy = {
				type = alliance
				id = FROM
				value = 150
			}
		}		
	}	
}
###эвент для балтики о том что страна_нейм не хочет воевать с персией. Но готова предоставить проход войскам
country_event = {
	id = baltica.36
	title = baltica.36.t
	desc = baltica.36.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.36.a	
		add_political_power = 8
		effect_tooltip = {
			FROM = {
				give_military_access = ZBA
			}	
		}		
	}	
}
###эвент для балтики о том что страна_нейм не хочет ввязываться в наши делишки. Они высказались о нейттралитете. Они шо, еретики?
country_event = {
	id = baltica.37
	title = baltica.37.t
	desc = baltica.37.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.37.a	
		ai_chance = {
			factor = 5			
		}		
	}
	option = {	
		name = baltica.37.b	
		trigger = {
			NOT = {
				has_war_with = FROM
				is_in_faction_with = FROM
			}
		}
		ai_chance = {
			factor = 3			
			modifier = {
				factor = 30
				FROM = {
					strength_ratio = {
						tag = ZBA
						ratio < 0.5
					}
				}
			}
		}
		declare_war_on = {
			type = puppet_wargoal_focus
			target = FROM
		}
		add_named_threat = { threat = 3 name = baltica.37.b.threattt }
	}	
}

###эвент от балтики о том что они хотят заручиться поддерсжой папы римского который сидит в риме. Но поскольку мы контроллируем этот город то переговоры пойдут через нас.
country_event = {
	id = baltica.38
	title = baltica.38.t
	desc = baltica.38.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.38.a	
		ai_chance = {
			factor = 100	
			modifier = {
				factor = 0
				has_war_with = ZBA
			}
		}
		ZBA = {
			country_event = { days = 2 id = baltica.39 }
		}
	}
	option = {	
		name = baltica.38.b	
		ai_chance = {
			factor = 1				
		}
		ZBA = {
			country_event = { days = 2 id = baltica.40 }
		}		
	}	
}

###эвент для балтики о том что страна_нейм одобрила наш визит к папе Бенедикта XVI и он заверил нас в одобрении наших религиозных действий о вообще очень рад тнвтонскому ордену
country_event = {
	id = baltica.39
	title = baltica.39.t
	desc = baltica.39.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.39.a	
		add_political_power = 100
		add_ideas = zba_jdjbrenie_papy		
	}	
}

###эвент для балтики о том что страна_нейм отказала в визите к папе Бенедикта XVI. похоже папа там под колпаком. Может стоит его освободить?
country_event = {
	id = baltica.40
	title = baltica.40.t
	desc = baltica.40.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.40.a	
		ai_chance = {
			factor = 2	
			modifier = {
				factor = 8
				has_war = yes
			}			
		}
		add_stability = -0.1
		add_war_support = -0.1
	}
	option = {	
		name = baltica.40.b
		ai_chance = {
			factor = 2	
			modifier = {
				factor = 4
				has_war = no
			}
			modifier = {
				factor = 2
				has_army_manpower = { size > 149999 } 
			}
			modifier = {
				factor = 5
				FROM = {
					strength_ratio = {
						tag = ZBA
						ratio < 0.5
					}
				}	
			}
		}
		add_stability = 0.1
		add_war_support = 0.1
		add_state_claim = 2
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM					
		}
		add_named_threat = { threat = 3 name = baltica.40.b.threattt }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.825 }
		}
	}
}

#балтика нас вкачивает
country_event = {
	id = baltica.41
	title = baltica.41.t
	desc = baltica.41.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.41.a	
		add_autonomy_ratio = {
			value = -0.12
			localization = baltica.18.autonom 	#лока - Воздействие со стороны Кёнигсберга
		}
		random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
				OR = {
					is_in_home_area = yes
					NOT = {
						owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
		}
	}	
}
#балтика нас вкачивает
country_event = {
	id = baltica.42
	title = baltica.42.t
	desc = baltica.42.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.42.a	
		add_autonomy_ratio = {
			value = -0.12
			localization = baltica.18.autonom 	#лока - Воздействие со стороны Кёнигсберга
		}
		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
				}
			}
		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
				}
			}		
	}	
}

#фанатики взрываются
country_event = {
	id = baltica.43
	title = baltica.43.t
	desc = baltica.43.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.43.a	
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
			add_manpower = -85
		}		
	}	
}

#чуваки что за полный развал страны взрываю дорогу
country_event = {
	id = baltica.44
	title = baltica.44.t
	desc = baltica.44.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.44.a	
		random_owned_controlled_state = {
			limit = {
				infrastructure > 1								
			}
			damage_building = { type = infrastructure damage = 0.5 }			
		}	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.848 }
		}
	}	
}

#недовольства народа тем что страна начала активно лезть во внешнюю политоту. Им не правится то что лидер нейм толкнул речь о том что в тсране не осталось проблем. хотя их полно. разжигают в основном всёпропаданцы, которые хотят развала страны и агенты римского госдепа
country_event = {
	id = baltica.45
	title = baltica.45.t
	desc = baltica.45.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.45.a	
		add_stability = -0.1
	}	
}

#эвент римской республике о том что балтика_нейм говорит что хочет дружить. Мир, май, демократура. 
country_event = {
	id = baltica.46
	title = baltica.46.t
	desc = baltica.46.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.46.a	
		add_opinion_modifier = {
			target = ZBA
			modifier = diplomat_20
		}
	}	
}

#эвент скандинавии что балтика хочет вступить в их альянс. Здорово!
country_event = {
	id = baltica.47
	title = baltica.47.t
	desc = baltica.47.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.47.a	
		ai_chance = { 
			factor = 50			
		}
		ZSE = { add_to_faction = ZBA }
		add_ai_strategy = {
			type = alliance
			id = "ZBA"
			value = 200
		}
		ZBA = {
			add_ai_strategy = {
				type = alliance
				id = "ZSE"
				value = 200
			}
			country_event = { id = baltica.48 }
		}
	}
	option = {	
		name = baltica.47.a	
		ai_chance = { 
			factor = 1			
		}
		ZBA = {			
			country_event = { id = baltica.49 }
		}
	}	
}
#эвент Балтике о том что мы в альянсе со скандинавами 
country_event = {
	id = baltica.48
	title = baltica.48.t
	desc = baltica.48.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.48.a	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.830 }
		}
	}	
}
#эвент Балтике о том что скандинавы не приняли нас
country_event = {
	id = baltica.49
	title = baltica.49.t
	desc = baltica.49.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.49.a			
	}	
}

#эвент ганзе (сформированной) что балтика хочет вступить в их альянс. Здорово!
country_event = {
	id = baltica.50
	title = baltica.50.t
	desc = baltica.50.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.50.a	
		ai_chance = { 
			factor = 50			
		}
		add_to_faction = ZBA
		add_ai_strategy = {
			type = alliance
			id = "ZBA"
			value = 200
		}
		ZBA = {			
			country_event = { id = baltica.51 }
		}
	}
	option = {	
		name = baltica.50.a	
		ai_chance = { 
			factor = 1			
		}
		ZBA = {			
			country_event = { id = baltica.52 }
		}
	}	
}

#эвент Балтике о том что мы в альянсе с ганзой 
country_event = {
	id = baltica.51
	title = baltica.51.t
	desc = baltica.51.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.51.a	
		add_ai_strategy = {
			type = alliance
			id = "ZLU"
			value = 200
		}
		add_ai_strategy = {
			type = alliance
			id = "ZHM"
			value = 200
		}
		add_ai_strategy = {
			type = alliance
			id = "ZFR"
			value = 200
		}
		add_ai_strategy = {
			type = alliance
			id = "ZJT"
			value = 200
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.831 }
		}
	}	
}
#эвент Балтике о том что ганза не приняли нас
country_event = {
	id = baltica.52
	title = baltica.52.t
	desc = baltica.52.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.52.a			
	}	
}

#эвент демокр Риму о том что балтика хочет быстренько вступить в СНЕГ. Мы проводим внеплановую встречу глав лидеров стран альянса по этому поводу и решаем каким образом мы проведем голосование по этому поводу? Мы будем голосовать как обычно, все страны голосуют или же вопсользуемся правом лидера и примем балтику сразу? но испортим отношения с союзниками.
country_event = {
	id = baltica.53
	title = baltica.53.t
	desc = baltica.53.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.53.a	
		ai_chance = { 
			factor = 5			
		}
		ZBA = {
			country_event = { id = baltica.54 }
		}
		
	}
	option = {	
		name = baltica.53.a	
		ai_chance = { 
			factor = 2	
			modifier = {
				factor = 4
				ZBA = {
					has_war = yes
				}
			}
			modifier = {
				factor = 2
				threat > 0.5
			}
		}
		ZRI = {
			add_to_faction = ZBA 
			add_ai_strategy = {
				type = alliance
				id = "ZBA"
				value = 200
			}
			add_named_threat = { threat = 3 name = zri_zba_prinyat_v_alliyance_bez_vyborov_threattttt }
			every_other_country = {
				limit = { 
					is_in_faction_with = ZRI				
				}
				add_opinion_modifier = {
					target = ZRI
					modifier = zri_ignor_our
				}			
			}
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.832 }
			}
		}
		ZBA = {
			country_event = { id = baltica.55 }
		}
	}	
}

#эвент Балтике о том что рим инициировал обычное голосование. теперь судьба в руках государств-союзников
country_event = {
	id = baltica.54
	title = baltica.54.t
	desc = baltica.54.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.54.a	
		ZRI = {
			country_event = { days = 1 id = ar_political.703 }
		}		
	}	
}

#эвент Балтике о том что рим воспользовался правом лидера и принял нас в альянс
country_event = {
	id = baltica.55
	title = baltica.55.t
	desc = baltica.55.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.55.a	
		add_stability = 0.02
		add_ai_strategy = {
			type = alliance
			id = "ZRI"
			value = 200
		}		
	}	
}

#эвент региону балтики (марионетке) о том чтос после всех вложений в них и множества хороших дел Балтийская федерация вновь зовет нас полностью вступить в их состав (этот эвент по решениям авпадает всем регионам по очереди)
country_event = {
	id = baltica.56
	title = baltica.56.t
	desc = baltica.56.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.56.a	
		ai_chance = { 
			factor = 60			
		}	
		ZBA = {
			country_event = { id = baltica.57 }
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = {	
		name = baltica.56.b	
		ai_chance = { 
			factor = 1			
		}	
		ZBA = {
			country_event = { id = baltica.58 }
		}
	}	
}

#эвент Балтике о том что регион согласился вернуться обратно. (мы его кушоем)
country_event = {
	id = baltica.57
	title = baltica.57.t
	desc = baltica.57.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.57.a	
		ZBA = {
			annex_country = { target = FROM }
		}		
	}	
}

#эвент Балтике о том что регион НЕ согласился вернуться обратно. жаль, шо поделать (это редко)
country_event = {
	id = baltica.58
	title = baltica.58.t
	desc = baltica.58.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.58.a	
		add_stability = -0.03		
	}	
}

###эвент папскому риму что тевтонцы выражают своё глубокое почтение папе и всё такое. они за стабильность в европе
country_event = {
	id = baltica.59
	title = baltica.59.t
	desc = baltica.59.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.59.a	
		add_stability = 0.03		
	}	
}

#мы публично говорим о поддержании института папства. папа римский в настоящем папском государстве говорит что очень рад за нас
country_event = {
	id = baltica.60
	title = baltica.60.t
	desc = baltica.60.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.60.a
		add_political_power = 100
		add_stability = 0.06		
	}	
}

#####Действия Ордена находят широкий отклик в народной поддержке.
country_event = {
	id = baltica.61
	title = baltica.61.t
	desc = baltica.61.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.61.a
		add_political_power = 80
		add_stability = 0.01		
	}	
}

####Праведный пут.
country_event = {
	id = baltica.62
	title = baltica.62.t
	desc = baltica.62.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.62.a		
		add_stability = 0.02		
	}	
}

####Все мы - дети Божьи
country_event = {
	id = baltica.63
	title = baltica.63.t
	desc = baltica.63.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.63.a		
		add_stability = 0.01
		add_war_support = 0.01		
	}	
}

####пожар
country_event = {
	id = baltica.64
	title = baltica.64.t
	desc = baltica.64.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.64.a		
		add_stability = -0.02
		add_war_support = -0.01		
	}	
}

####Сектанты среди нас
country_event = {
	id = baltica.65
	title = baltica.65.t
	desc = baltica.65.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.65.a		
		add_stability = -0.03		
	}	
}

####Массовый бунт прошёл среди воинов света
country_event = {
	id = baltica.66
	title = baltica.66.t
	desc = baltica.66.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	
		name = baltica.66.a		
		add_war_support = -0.03		
	}	
}

#### эвент папе римскому про то что тефффтонцы приглашают нас вступить в их католический альянс (на правах участника)
country_event = {
	id = baltica.67
	title = baltica.67.t
	desc = baltica.67.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = baltica.67.a
		trigger = {
			is_in_faction = no
		}
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 4
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {				
				factor = 2
				has_opinion = {
					target = ZBA
					value > 5
				}
			}
		}
		add_ai_strategy = {
			type = alliance
			id = "ZBA"
			value = 150
		}
		ZBA = {
			country_event = { id = baltica.68 }
		}		
	}
	option = { # Refuse
		name = baltica.67.b
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 5
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
			modifier = {				
				factor = 4
				has_opinion = {
					target = ZBA
					value < 5
				}
			}
		}
		ZBA = {
			country_event = { id = baltica.69 }
		}
	}
}


# accepts эвент от папы для балтики о согласии
country_event = {
	id = baltica.68
	title = baltica.68.t
	desc = baltica.68.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.68.a
		add_to_faction = XPX
		add_ai_strategy = {
			type = alliance
			id = "XPX"
			value = 200
		}
		add_named_threat = { threat = 6 name = zba_catholic_liga_rise_threatttt }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.939 }
		}
	}
}

# declines  эвент от цели для балтики об отказе
country_event = {
	id = baltica.69
	title = baltica.69.t
	desc = baltica.69.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.69.a
		add_stability = -0.05
		add_war_support = -0.05
	}
}

#### эвент папе римскому про то что тефффтонцы хотят передать лидерство в альяне нам и вообще хотят стать нашими марионетками
country_event = {
	id = baltica.70
	title = baltica.70.t
	desc = baltica.70.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = { # Accept
		name = baltica.70.a
		trigger = {
			is_in_faction = no
		}
		ai_chance = {
			factor = 10 
			modifier = {				
				factor = 4
				OR = {
					has_government = fascism
					has_government = neutrality
				}
			}
			modifier = {				
				factor = 2
				has_opinion = {
					target = ZBA
					value > 5
				}
			}
		}
		add_ai_strategy = {
			type = alliance
			id = "ZBA"
			value = 150
		}
		effect_tooltip = {
			ZBA = {
				add_to_faction = XPX								
			}
			set_faction_leader = yes
			puppet = ZBA
		}
		ZBA = {
			country_event = { id = baltica.71 }
		}		
	}
	option = { # Refuse
		name = baltica.70.b
		ai_chance = {
			factor = 3 
			modifier = {				
				factor = 5
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
			modifier = {				
				factor = 4
				has_opinion = {
					target = ZBA
					value < 5
				}
			}
		}
		ZBA = {
			country_event = { id = baltica.72 }
		}
	}
}

# accepts эвент от папы для балтики о согласии. мы их марионетка а они лидер альянса +ar_news.940
country_event = {
	id = baltica.71
	title = baltica.71.t
	desc = baltica.71.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.71.a
		add_to_faction = XPX
		set_faction_leader = yes
		XPX = {
			puppet = ZBA
		}
		add_ai_strategy = {
			type = alliance
			id = "XPX"
			value = 200
		}
		add_named_threat = { threat = 6 name = zba_catholic_liga_rise_threatttt }		
		
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.940 }
		}
	}
}

# declines  эвент от цели для балтики об отказе
country_event = {
	id = baltica.72
	title = baltica.72.t
	desc = baltica.72.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.72.a
		add_stability = -0.05
		add_war_support = -0.05
	}
}

#### эвент куску балтики о том что теперь после развала мы можем сразу упасть в ганзу. Круто? или нет?
country_event = {
	id = baltica.73
	title = baltica.73.t
	desc = baltica.73.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	trigger = {
		exists = yes
		is_in_faction = no
		is_subject = no
		has_war = no
		any_other_country = { 
			OR = {
				tag = ZFR
				tag = ZHM
				tag = ZLU
				tag = ZJT
			}
			exists = yes
			is_faction_leader = yes
			has_idea = gansa_idea_bonus
		}
	}
	option = {
		name = baltica.73.a	
		ai_chance = {
			factor = 5			
		}
		every_other_country = {
			limit = {	
				OR = {
					tag = ZFR
					tag = ZHM
					tag = ZLU
					tag = ZJT
				}
				exists = yes
				is_faction_leader = yes
				has_idea = gansa_idea_bonus
			}
			country_event = { id = baltica.74 }
		}
	}
	option = {
		name = baltica.73.b	
		ai_chance = {
			factor = 5 
			modifier = {				
				factor = 1.5
				ZRI = {
					has_completed_focus = zri_tragedia_v_alpah		
				}
			}			
		}		
	}
}

#### эвент лидеру ганзы о том что тсрана нейм (кусок балтики) очет к нам в альянс. Конечно если мы их возьмем то только на правах торгового и военного сотрудничества, в ганзастаг они телько через десятки лет попадут, может быть. 
country_event = {
	id = baltica.74
	title = baltica.74.t
	desc = baltica.74.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.74.a
		ai_chance = {
			factor = 5			
		}	
		add_to_faction = FROM
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 100
		}
		FROM = {
			country_event = { id = baltica.75 }
		}
	}
	option = {
		name = baltica.74.b	
		ai_chance = {
			factor = 3			
		}
		FROM = {
			country_event = { id = baltica.76 }
		}		
	}
}

### ганза взяла нас в себя
country_event = {
	id = baltica.75
	title = baltica.75.t
	desc = baltica.75.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.75.a	
		add_political_power = 50
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 100
		}		
	}
}

### ганза НЕ взяла нас в себя
country_event = {
	id = baltica.76
	title = baltica.76.t
	desc = baltica.76.d
	picture = GFX_report_event_generic_read_write	
	is_triggered_only = yes	
	option = {
		name = baltica.76.a	
		add_stability = -0.01		
	}
}