﻿###########################
# tartaria Events
###########################

add_namespace = tartaria


# tartaria oboron zapad
country_event = {
	id = tartaria.1
	title = tartaria.1.t
	desc = tartaria.1.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.1.a
		custom_effect_tooltip = tartaria.1.a.tt
		hidden_effect =  {
		516 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		577 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		578 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		570 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		588 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		589 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		617 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
			news_event = { hours = 3 id = ar_news.549 }		
		}
			
	}
}

# tartaria oboron south
country_event = {
	id = tartaria.2
	title = tartaria.2.t
	desc = tartaria.2.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.2.a
		custom_effect_tooltip = tartaria.2.a.tt
		hidden_effect =  {
		589 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		617 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		760 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		330 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		714 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
		657 = { set_building_level = { type = bunker level = 3 province = { all_provinces = yes limit_to_border = yes level < 3	} } }
			news_event = { hours = 3 id = ar_news.550 }
		}
			
	}
}


# zmn diplimat tartaria
country_event = {
	id = tartaria.3
	title = tartaria.3.t
	desc = tartaria.3.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.3.a	
		ai_chance = { factor = 9 }
					add_opinion_modifier = {
						target = ZTA
						modifier = zta_zmn_friend
					}
					add_ai_strategy = {
						type = befriend
						id = "ZTA"
						value = 20
					}
					diplomatic_relation = { country = ZTA relation = non_aggression_pact }	
		hidden_effect = {
			ZTA = {
				add_ideas = zta_drujba_zmn					
			}
			news_event = { hours = 3 id = ar_news.536 }
		}			
	}
	option = {
		name = tartaria.3.b	
		ai_chance = { factor = 9 }
			
	}
}

# tartaria oboron more
country_event = {
	id = tartaria.4
	title = tartaria.4.t
	desc = tartaria.4.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.4.a
		custom_effect_tooltip = tartaria.4.a.tt
		hidden_effect =  {
		562 = {						
			add_building_construction = {
            	type = coastal_bunker
            	province = {
					all_provinces = yes
					limit_to_coastal = yes
				}
				level = 2
				instant_build = yes
			}
		}
		644 = {						
			add_building_construction = {
            	type = coastal_bunker
            	province = {
					all_provinces = yes
					limit_to_coastal = yes
				}
				level = 2
				instant_build = yes
			}
		}
			news_event = { hours = 3 id = ar_news.551 }
		}
			
	}
}

# grat stroika 1
country_event = {
	id = tartaria.5
	title = tartaria.5.t
	desc = tartaria.5.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		ai_chance = {
			factor = 100
		}
		name = tartaria.5.a
		add_timed_idea = {
			idea = zta_great_stroika
			days = 200
		}		
	}
}
# grat stroika 2
country_event = {
	id = tartaria.6
	title = tartaria.6.t
	desc = tartaria.6.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		ai_chance = {
			factor = 100
		}
		name = tartaria.6.a
		add_timed_idea = {
			idea = zta_great_stroika
			days = 260
		}		
	}
}

# grat stroika 3
country_event = {
	id = tartaria.7
	title = tartaria.7.t
	desc = tartaria.7.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		ai_chance = {
			factor = 100
		}
		name = tartaria.7.a
		add_timed_idea = {
			idea = zta_great_stroika
			days = 200
		}		
	}
}

# begstvo naroda iz khani
country_event = {
	id = tartaria.8
	title = tartaria.8.t
	desc = tartaria.8.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = tartaria.8.a	
		ai_chance = {
			factor = 20
		}
		add_political_power = 30
		add_timed_idea = {
			idea = zta_bezency_1
			days = 150
		}
		if = {
			limit = {
				330 = { 
					is_owned_by = ZTA 					 
				}
			}
			330 = { add_manpower = 94654 }
		}
		if = {
			limit = {
				329 = { 
					is_owned_by = ZTA 					 
				}
			}
			329 = { add_manpower = 87451 }
		}
		if = {
			limit = {
				564 = { 
					is_owned_by = ZTA 					 
				}
			}
			564 = { add_manpower = 127623 }
		}
		if = {
			limit = {
				761 = { 
					is_owned_by = ZTA 					 
				}
			}
			761 = { add_manpower = 193541 }
		}
	}
	option = {
		name = tartaria.8.b	
		ai_chance = {
			factor = 100
		}
		add_political_power = 40
		add_timed_idea = {
			idea = zta_bezency_1
			days = 365
		}
		add_tech_bonus = {
				name = industrial_bonus
				bonus = 0.5
				uses = 2
				category = industry
				category = electronics
			}
		if = {
			limit = {
				330 = { 
					is_owned_by = ZTA 					 
				}
			}
			330 = { add_manpower = 154654 }
		}
		if = {
			limit = {
				329 = { 
					is_owned_by = ZTA 					 
				}
			}
			329 = { add_manpower = 137451 }
		}
		if = {
			limit = {
				564 = { 
					is_owned_by = ZTA 					 
				}
			}
			564 = { add_manpower = 197623 }
		}
		if = {
			limit = {
				761 = { 
					is_owned_by = ZTA 					 
				}
			}
			761 = { add_manpower = 223541 }
		}
	}
}
########################################################################
#########################################################################
########################################################################
# эвент для хань что юань просит не лезть в ее дела. ну а мы то шо, они ж наша марионетка, пусть терпят (это всё же уменьшит нашу стабку, наглецы!)
country_event = {
	id = tartaria.9
	title = tartaria.9.t
	desc = tartaria.9.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.9.a
		ai_chance = {
			factor = 1
		}
		add_stability = -0.02		
	}
	option = {
		name = tartaria.9.b
		ai_chance = {
			factor = 5
		}
		ZTA = {
			add_timed_idea = {
				idea = zta_uan_finans_kompensation_ot_zha
				days = 365
			}
			country_event = { id = tartaria.24 }
		}

	}
}

# эвент о том что нам удалось завербовать местных недовольных в хань, они скоро что то да учудят там
country_event = {
	id = tartaria.10
	title = tartaria.10.t
	desc = tartaria.10.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.10.a
		random_list = {
			25 = { 
				ZHA = {
					country_event = { id = tartaria.11 days = 1 }
				}
			}
			20 = { 
				ZHA = {
					country_event = { id = tartaria.13 days = 1 }
				}
			}
			15 = { 
				ZHA = {
					country_event = { id = tartaria.15 days = 1 }
				}
			}
			25 = { 
				ZHA = {
					country_event = { id = tartaria.17 days = 1 }
				}
			}
			15 = { 
				ZHA = {
					country_event = { id = tartaria.19 days = 1 }
				}
			}
		}		
	}	
}

# эвент для хань о том что у них по всей стране проходят какие то забастовки недовольных людишек. Они твердят всякие разные лозунги, их что, подкупили просто?
country_event = {
	id = tartaria.11
	title = tartaria.11.t
	desc = tartaria.11.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.11.a
		add_stability = -0.02	
		hidden_effect = {
			ZTA = {
				country_event = { days = 1 id = tartaria.12 }
			}	
		}		
	}	
}

# эвент для юань о том что нам удалось профинансировать забастовки в Хань, их стабка понизилась
country_event = {
	id = tartaria.12
	title = tartaria.12.t
	desc = tartaria.12.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.12.a
		add_stability = 0.01				
	}	
}

# эвент для хань о том что у них в одном из стейтов фабрика вдруг взорвалась. что за саботаж?
country_event = {
	id = tartaria.13
	title = tartaria.13.t
	desc = tartaria.13.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.13.a
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		add_stability = -0.02
		hidden_effect = {
			ZTA = {
				country_event = { days = 1 id = tartaria.14 }
			}
		}		
	}	
}

# эвент для юань о том что нам удалось взорвать в хань одну их гражданскую фабрику
country_event = {
	id = tartaria.14
	title = tartaria.14.t
	desc = tartaria.14.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.14.a
		add_political_power = 20			
	}	
}

# эвент для хань о том что у них в одном из стейтов на военном заводе взрыв!
country_event = {
	id = tartaria.15
	title = tartaria.15.t
	desc = tartaria.15.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.15.a
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1								
			}
			damage_building = { type = arms_factory damage = 0.5 }
		}
		add_stability = -0.02
		add_war_support = -0.02
		hidden_effect = {
			ZTA = {
				country_event = { days = 1 id = tartaria.16 }
			}	
		}		
	}	
}

# эвент для юань о том что нам удалось взорвать в хань однин из военных заводов
country_event = {
	id = tartaria.16
	title = tartaria.16.t
	desc = tartaria.16.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.16.a
		army_experience = 5		
	}	
}

# эвент для хань о том что у них в одном из стейтов жедезную дорогу изничтожили
country_event = {
	id = tartaria.17
	title = tartaria.17.t
	desc = tartaria.17.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.17.a
		random_owned_controlled_state = {
			limit = {
				infrastructure > 1								
			}
			damage_building = { type = infrastructure damage = 0.5 }
		}
		add_stability = -0.02		
		hidden_effect = {
			ZTA = {
				country_event = { days = 1 id = tartaria.18 }
			}
		}		
	}	
}

# эвент для юань о том что нам удалось изничтожить жд в хань
country_event = {
	id = tartaria.18
	title = tartaria.18.t
	desc = tartaria.18.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.18.a
		add_political_power = 20	
	}	
}

# эвент для хань о том что у них в одном из стейтов в городе прямо бомбу взорвали!
country_event = {
	id = tartaria.19
	title = tartaria.19.t
	desc = tartaria.19.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.19.a
		random_owned_controlled_state = {
#			limit = {
#				has_manpower > 200								
#			}
			add_manpower = -120
		}
		add_stability = -0.04
		add_war_support = 0.04		
		hidden_effect = {
			ZTA = {
				country_event = { days = 1 id = tartaria.20 }
			}	
		}		
	}	
}

# эвент для юань о том что у хани в одном из стейтов в городе прямо бомбу взорвали!
country_event = {
	id = tartaria.20
	title = tartaria.20.t
	desc = tartaria.20.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.20.a		
	}	
}

# эвент для хани о том что юань требует дотаций в ее регион. Что делать? (дадим им ПП или нет)
country_event = {
	id = tartaria.21
	title = tartaria.21.t
	desc = tartaria.21.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.21.a
		ai_chance = {
			factor = 8
		}	
		add_political_power = -80
		effect_tooltip = {
			ZTA = {
				add_political_power = 80
			}
		}
		ZTA = {
			country_event = { id = tartaria.22 }
		}
	}
	option = {
		name = tartaria.21.b
		ai_chance = {
			factor = 1
		}	
		add_stability = -0.01
		ZTA = {
			country_event = { id = tartaria.23 }
		}
	}	
}

#### эвент для юань о том что хань задонатили нам дотации
country_event = {
	id = tartaria.22
	title = tartaria.22.t
	desc = tartaria.22.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.22.a
		add_stability = 0.01
		add_political_power = 80		
	}	
}

#### эвент для юань о том что хань НЕ задонатили нам дотации
country_event = {
	id = tartaria.23
	title = tartaria.23.t
	desc = tartaria.23.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.23.a
		add_war_support = 0.05	
	}	
}

#### эвент для юань о том что хань ответила на просьбу об автономии и дала внезапно бабла
country_event = {
	id = tartaria.24
	title = tartaria.24.t
	desc = tartaria.24.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.24.a
		effect_tooltip = {
			add_timed_idea = {
				idea = zta_uan_finans_kompensation_ot_zha
				days = 365
			}
		}
	}	
}

#### эвент для юань о том что теперь лидер у нас курулай (Хуралдай?). потом хана выберем. (курултаю нужен портрет)
country_event = {
	id = tartaria.25
	title = tartaria.25.t
	desc = tartaria.25.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.25.a
		ZTA = {
			add_popularity = {
				ideology = neutrality
				popularity = 0.7
			}
			set_politics = {								
				ruling_party = neutrality
			}
			hidden_effect = {					
				retire_country_leader = yes													
			}
			# create_country_leader={ 
				# name = "Улсын Их Хурал"
				# desc=""
				# picture="mongol_kurultai.tga" 
				# expire="2020.1.1" 
				# ideology=despotism 
				# traits={  } 
			# }
			add_country_leader_role = {
				character = zta_ulsun_ih_hural
				country_leader = {
					ideology = despotism
					traits = {  }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
		}	
	}	
}

#### эвент для юань о том что мы заслали в Хань еще кучу диверсантов, что они там учудят пока мы и сами не знаем но денег им дали
country_event = {
	id = tartaria.26
	title = tartaria.26.t
	desc = tartaria.26.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.26.a
		random_list = {
			30 = { 
				ZHA = {
					country_event = { id = tartaria.27 days = 10 random = 5 }
				}
			}
			30 = { 
				ZHA = {
					country_event = { id = tartaria.29 days = 10 random = 5 }
				}
			}
			30 = { 
				ZHA = {
					country_event = { id = tartaria.31 days = 10 random = 5 }
				}
			}			
		}
	}	
}

#### эвент для хань о том что юаньские террористы совершили серию террор атак на железнодорожные пути
country_event = {
	id = tartaria.27
	title = tartaria.27.t
	desc = tartaria.27.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	trigger = {
		tag = ZHA
		ZTA = {
			is_puppet_of = ZHA
		}
	}
	option = {
		name = tartaria.27.a
		random_owned_controlled_state = {
			limit = {
				infrastructure > 1								
			}
			damage_building = { type = infrastructure damage = 0.5 }
		}
		random_owned_controlled_state = {
			limit = {
				infrastructure > 1								
			}
			damage_building = { type = infrastructure damage = 0.5 }
		}
		add_stability = -0.02
		add_war_support = -0.02
		hidden_effect = {
			ZTA = {
				country_event = { id = tartaria.28 }
			}
		}
	}	
}

#### эвент для юань о том нам удалось в хань взорвать железные дороги
country_event = {
	id = tartaria.28
	title = tartaria.28.t
	desc = tartaria.28.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.28.a		
		add_war_support = 0.02
	}	
}

#### эвент для хань о том что юаньские террористы совершили серию террор атак на фабрики в стране у нас
country_event = {
	id = tartaria.29
	title = tartaria.29.t
	desc = tartaria.29.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	trigger = {
		tag = ZHA
		ZTA = {
			is_puppet_of = ZHA
		}
	}
	option = {
		name = tartaria.29.a
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		add_stability = -0.02
		add_war_support = -0.02
		hidden_effect = {
			ZTA = {
				country_event = { id = tartaria.30 }
			}
		}
	}	
}

#### эвент для юань о том нам удалось в хань взорвать фабрики
country_event = {
	id = tartaria.30
	title = tartaria.30.t
	desc = tartaria.30.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.30.a		
		add_war_support = 0.02
	}	
}

#### эвент для хань о том что они поймали агентов юань перед терактом (плюс немног стабки)
country_event = {
	id = tartaria.31
	title = tartaria.31.t
	desc = tartaria.31.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.31.a		
		add_stability = 0.02
		hidden_effect = {
			ZTA = {
				country_event = { id = tartaria.40 }
			}
		}
	}	
}

#### Последствия разрыва династийного брака
country_event = {
	id = tartaria.32
	title = tartaria.32.t
	desc = tartaria.32.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.31.a
		add_political_power = 80
		add_popularity = {
			ideology = fascism
			popularity = 0.15
		}
		add_popularity = {
			ideology = democratic
			popularity = 0.15
		}
	}	
}

#### мы потомки Хубилая. наш курс на восстановление той страны. Власть переходит паттернам
country_event = {
	id = tartaria.33
	title = tartaria.33.t
	desc = tartaria.33.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.33.a		
		ZTA = {
			hidden_effect = {					
				retire_country_leader = yes													
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.5
			}
			set_politics = {							
				ruling_party = fascism
			}			
			# create_country_leader={ 
				# name = "Улсын Их Хурал"
				# desc=""
				# picture="mongol_kurultai.tga" 
				# expire="2020.1.1" 
				# ideology=rexism 
				# traits={  } 
			# }
			add_country_leader_role = {
				character = zta_ulsun_ih_hural
				country_leader = {
					ideology = rexism
					traits = {  }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			add_timed_idea = {
				idea = paternalismdrift
				days = 250
			}
		}
	}	
}

#### курултай собрался выбрать нового хана
country_event = {
	id = tartaria.34
	title = tartaria.34.t
	desc = tartaria.34.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.34.a		
		ZTA = {
			hidden_effect = {					
				retire_country_leader = yes													
			}						
			# create_country_leader={ 
				# name = "Хан Алтанхуяг"
				# desc=""
				# picture="altanhuag.tga" 
				# expire="2020.1.1" 
				# ideology=rexism 
				# traits={
					# zta_velikii_khan
				# } 
			# }
			add_country_leader_role = {
				character = zta_khan_altankhuyag
				country_leader = {
					ideology = rexism
					traits = { zta_velikii_khan }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
			add_field_marshal_role = {
				character = zta_khan_altankhuyag
				traits = { }
				skill = 3
				attack_skill = 2
				defense_skill = 4
				planning_skill = 2
				logistics_skill = 2
			}
		}
	}	
}

#### постройка храма тенгри
country_event = {
	id = tartaria.35
	title = tartaria.35.t
	desc = tartaria.35.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.35.a
		add_political_power = 80
		add_stability = 0.05
		random_list = {
			50 = { 
				add_timed_idea = {
					idea = zta_volnenya_musulman
					days = 280
				}
			}
			50 = { 
				custom_effect_tooltip = tartaria.35.tt 
			}
		}
		random_list = {
			50 = { 
				add_timed_idea = {
					idea = zta_volnenya_buddistov
					days = 270
				}
			}
			50 = { 
				custom_effect_tooltip = tartaria.35.tt 
			}
		}		
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.796 }
		}
	}	
}

#### речь хана о том что пора пилить монгольское государство. мы об этом на весь регион объевим, путсь боятся и говятся. нам нужен достойный соперник +новость
country_event = {
	id = tartaria.36
	title = tartaria.36.t
	desc = tartaria.36.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.36.a
		drop_cosmetic_tag = yes
		set_cosmetic_tag = ZTA_MONGOL
		add_named_threat = { threat = 5 name = tartaria.36.threatt }	
		hidden_effect = {
			news_event = { hours = 5 id = ar_news.797 }
		}
	}	
}

#### эвент для сибирских стран, всяких уруссиний и ионессий что юань которая теперь монгольское государство как то падазриетльно на нас смотрит. скоро нападет видимо
country_event = {
	id = tartaria.37
	title = tartaria.37.t
	desc = tartaria.37.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.37.a
		add_stability = 0.05
		add_war_support = 0.1
		add_timed_idea = {
			idea = zta_pritok_dobrovoltsev_to_all_sibir
			days = 365
		}
		if = {
			limit = {
				has_idea = slojnosti_priziva
			}
			remove_ideas = slojnosti_priziva
		}
		effect_tooltip = {
			add_opinion_modifier = {
						target = ZTA
						modifier = agressssor
					}
		}
	}	
}

#### речь для хань о том что юань отпала от нее из за низкой стабки. вот так. что нам делать? отпустит ь или войну им?
country_event = {
	id = tartaria.38
	title = tartaria.38.t
	desc = tartaria.38.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.38.a
		ai_chance = {
			factor = 12
		}
		add_stability = 0.06
		ZTA = {
			country_event = { id = tartaria.39 }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.799 }
		}		
	}
	option = {
		name = tartaria.38.b
		ai_chance = {
			factor = 4
		}
		every_state = {
			limit = { is_core_of = ZTA }			
			add_claim_by = ZHA
		}
		declare_war_on = {
			type = annex_everything
			target = ZTA
		}
	}
	option = {
		name = tartaria.38.c
		ai_chance = {
			factor = 10
		}
		add_stability = 0.03
		ZTA = {
			country_event = { id = tartaria.65 }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.815 }
		}
		unlock_decision_tooltip = zha_vernut_uan_v_sostav
		set_country_flag = zha_vernut_uan_v_sostav_flag
	}
}

#### эвент для юань о том что ахнь ничего не предприняла чтобы нас вернуть
country_event = {
	id = tartaria.39
	title = tartaria.39.t
	desc = tartaria.39.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.39.a
		
	}	
}


#### эвент для юань о том нам наших агентов поймали (минус стабка и варсаппорт немногжк)
country_event = {
	id = tartaria.40
	title = tartaria.40.t
	desc = tartaria.40.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.40.a		
		add_stability = -0.02
		add_war_support = -0.02
	}	
}

### мы созвали великий курултай после того как подошли к уральским горам. дальше наш путь идет на запад
country_event = {
	id = tartaria.41
	title = tartaria.41.t
	desc = tartaria.41.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.41.a		
		add_stability = 0.03
		add_war_support = 0.05
		add_political_power = 80
		add_named_threat = { threat = 4 name = tartaria.41.threatt }
	}	
}

#### эвент о том что курултай призвал править наследницу Юань которая была тут как своего рода хз символ в стране, сидела себе министром культуры кароч. а теперь стала императрицей. такой вот поворот. но васть у нас конституционная монархия а у императрицы дебафф неопытный политик
country_event = {
	id = tartaria.42
	title = tartaria.42.t
	desc = tartaria.42.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.42.a		
		ZTA = {
			add_popularity = {
				ideology = democratic
				popularity = 0.6
			}
			set_politics = {	
				ruling_party = democratic
			}
			hidden_effect = {					
				retire_country_leader = yes
				news_event = { hours = 8 id = ar_news.802 }				
			}						
			# create_country_leader={ 
				# name = "Императрица Амарцэцэг"
				# desc=""
				# picture="amartseseg.tga" 
				# expire="2020.1.1" 
				# ideology=conservatism 
				# traits={
					# zta_neopitnyi_lider
				# } 
			# }
			add_country_leader_role = {
				character = zta_empress_amartsetseg
				country_leader = {
					ideology = conservatism
					traits = { zta_neopitnyi_lider }
					expire = "2020.3.1.1"
				}	
				promote_leader = yes 
			}
		}
	}	
}

### эвент корее о том что Юань хочет сотрудничать в военной сфере. Они хотят научиться у нас нашим методам обороны (если мы согласимся то получим экспу для армии а они получат небольшой бафф на оборону родной земли)
country_event = {
	id = tartaria.43
	title = tartaria.43.t
	desc = tartaria.43.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.43.a		
		ai_chance = {
			factor = 50
		}
		army_experience = 25
		add_political_power = 80
		effect_tooltip = {
			ZTA = {
				add_ideas = zta_metody_oborony
			}
		}
		ZTA = {
			country_event = { id = tartaria.44 }
		}
	}
	option = {
		name = tartaria.43.b		
		ai_chance = {
			factor = 5
		}
		ZTA = {
			country_event = { id = tartaria.45 }
		}
	}	
}

### корея согласилась обучить наших военных своим методам обороны
country_event = {
	id = tartaria.44
	title = tartaria.44.t
	desc = tartaria.44.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.44.a
		add_political_power = -25	
		add_ideas = zta_metody_oborony
	}	
}

### корея  НЕ согласилась обучить наших военных своим методам обороны
country_event = {
	id = tartaria.45
	title = tartaria.45.t
	desc = tartaria.45.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.45.a		
	}	
}


### эвент сёгунам о том что юань хочет с нами сотрудничать в военной сфере. Если мы согласимся то получим экспу а они небольшой баф к арми, всякие организации и тд и тп
country_event = {
	id = tartaria.46
	title = tartaria.46.t
	desc = tartaria.46.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.46.a		
		ai_chance = {
			factor = 50
		}
		army_experience = 15
		add_political_power = 100
		effect_tooltip = {
			ZTA = {
				add_ideas = zta_metody_segunov
			}
		}
		ZTA = {
			country_event = { id = tartaria.47 }
		}
	}
	option = {
		name = tartaria.46.b		
		ai_chance = {
			factor = 5
		}
		ZTA = {
			country_event = { id = tartaria.48 }
		}
	}	
}

### япония сёгуны согласилась обучить наших военных своим методам обороны
country_event = {
	id = tartaria.47
	title = tartaria.47.t
	desc = tartaria.47.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.47.a
		add_political_power = -25	
		add_ideas = zta_metody_segunov
	}	
}

### япония  НЕ согласилась обучить наших военных своим методам обороны
country_event = {
	id = tartaria.48
	title = tartaria.48.t
	desc = tartaria.48.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.48.a		
	}	
}

### эвент для кореи о том что к нам прибыла делегация из Юань, они хотят с нами дружить и надеются на плодотворное союзничество в дальнейшем. (улучшение отношений между странами)
country_event = {
	id = tartaria.49
	title = tartaria.49.t
	desc = tartaria.49.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.49.a
		ai_chance = {
			factor = 50
		}
		add_opinion_modifier = {
			target = ZTA
			modifier = diplomat_20
		}
		add_ai_strategy = {
			type = alliance
			id = "ZTA"
			value = 50
		}
	}
	option = {
		name = tartaria.49.b
		ai_chance = {
			factor = 1
		}		
	}	
}

### эвент корее что юань хочет вступить в их Лингсанская Лига. Что-ж нам нужны друзья везде, мы ж будущий мировой гегемон (надеемся на это) (принять - не принять)
country_event = {
	id = tartaria.50
	title = tartaria.50.t
	desc = tartaria.50.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.50.a		
		ai_chance = {
			factor = 50
		}	
		ZCS = { 
			add_ai_strategy = {
				type = alliance
				id = "ZTA"
				value = 100
			}
			add_to_faction = ZTA			
		}
		ZTA = {
			add_ai_strategy = {
				type = alliance
				id = "ZCS"
				value = 100
			}
			country_event = { id = tartaria.51 }
		}
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.803 }
		}
	}
	option = {
		name = tartaria.50.b
		ai_chance = {
			factor = 1
		}	
		ZTA = {
			country_event = { id = tartaria.52 }
		}
	}	
}

### ура корея нас приняла. мы в Лингсанская Лига
country_event = {
	id = tartaria.51
	title = tartaria.51.t
	desc = tartaria.51.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.51.a	
		add_stability = 0.03
	}	
}

###  корея нас НЕ приняла. жаль
country_event = {
	id = tartaria.52
	title = tartaria.52.t
	desc = tartaria.52.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.52.a		
	}	
}

#мы созвали совет обороны альянса и заявили о том что опасаемся снова потерять независимость из за опасности с юга. Мы призываем наших союзников помочь кто чем сможет
country_event = {
	id = tartaria.53
	title = tartaria.53.t
	desc = tartaria.53.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
		set_variable = {
			var = global.ztadenejka
			value = 0
		}
		set_variable = {
			var = global.ztaweapon
			value = 0
		}
		set_variable = {
			var = global.ztanichego
			value = 0
		}
	}
	option = { 
		name = tartaria.53.a
		hidden_effect = {			
			country_event = { days = 2 id = tartaria.55 }			
		}		
		every_other_country = {
			limit = {
				is_in_faction_with = ZTA
			}			
			country_event = {
				id = tartaria.54
			}
		}
	}		
}
####эвент для союзников юань что она просит помочь им укррепить оборону и отправить либо денежек либо оружия сразу
country_event = {
	id = tartaria.54
	title = tartaria.54.t
	desc = tartaria.54.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = {	#yes
		name = tartaria.54.a
		trigger = {
			has_political_power > 5
		}
		ai_chance = {
			factor = 3	
			modifier = {
				factor = 5				
				has_opinion = {
					target = ZTA
					value > 10
				}			
			}			
		}
		add_political_power = -5
		ZTA = {
			add_political_power = 5
		}
		add_to_variable = {
			var = global.ztadenejka
			value = 1
		}
		
	}	
	option = {	#no
		name = tartaria.54.b
		ai_chance = {
			factor = 2	
			modifier = {
				factor = 10				
				has_opinion = {
					target = ZTA
					value < 10
				}			
			}			
		}
		add_to_variable = {
			var = global.ztanichego
			value = 1
		}
	}
	option = {	#send weapon
		name = tartaria.54.c
		custom_effect_tooltip = tartaria.54.c.tt
		trigger = {			
			has_equipment = {
				infantry_equipment > 99
			}			
		}
		ai_chance = {
			factor = 4	
			modifier = {
				factor = 6				
				has_opinion = {
					target = ZTA
					value > 10
				}			
			}			
		}
		send_equipment = {
			target = ZTA
			type = infantry_equipment
			amount = 100
		}
		add_to_variable = {
			var = global.ztaweapon
			value = 1
		}
	}	
}

#отчет о помощи от союзных государств
country_event = {
	id = tartaria.55
	title = tartaria.55.t
	desc = tartaria.55.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
		set_variable = {
			var = global.allztadenejka
			value = global.ztadenejka
		}
		multiply_variable = {
			var = global.allztadenejka
			value = 5
		}
		set_variable = {
			var = global.allztaweapon
			value = global.ztaweapon
		}
		multiply_variable = {
			var = global.allztaweapon
			value = 100
		}
		custom_effect_tooltip = tartaria.55.dali.deneg
		custom_effect_tooltip = tartaria.55.dali.weapon
		custom_effect_tooltip = tartaria.55.nichegonedali
	}
	option = { 
		name = tartaria.55.a
		clear_variable = global.ztadenejka
		clear_variable = global.allztadenejka
		clear_variable = global.ztaweapon
		clear_variable = global.allztaweapon
		clear_variable = global.ztanichego		
	}		
}

###  эвент для всяких урусий, ионессий и сибирей что Юань ищет курс на сотрудничество со странами на западе от нее. Они хотят дружить, что же ждать? это какая тоо монгольская хитрость?
country_event = {
	id = tartaria.56
	title = tartaria.56.t
	desc = tartaria.56.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.56.a
		ai_chance = {
			factor = 2
		}		
	}
	option = {
		name = tartaria.56.b
		ai_chance = {
			factor = 5
		}
		add_opinion_modifier = {
			target = ZTA
			modifier = oni_soglasilis_light
		}
		add_ai_strategy = {
			type = alliance
			id = "ZTA"
			value = 10
		}
	}	
}

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


### эвент Для уруссинии что Юань хочет вступить в транссибирское содружество. Надо ли оно нам? Зочем?Почему?
country_event = {
	id = tartaria.58
	title = tartaria.58.t
	desc = tartaria.58.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.58.a		
		ai_chance = {
			factor = 50
		}	
		ZUR = { 
			add_ai_strategy = {
				type = alliance
				id = "ZTA"
				value = 100
			}
			add_to_faction = ZTA			
		}
		ZTA = {
			add_ai_strategy = {
				type = alliance
				id = "ZUR"
				value = 100
			}
			country_event = { id = tartaria.59 }
		}
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.805 }
		}
	}
	option = {
		name = tartaria.58.b
		ai_chance = {
			factor = 1
		}	
		ZTA = {
			country_event = { id = tartaria.60 }
		}
	}	
}

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

### урусы нас не приняли в альянс. лалки чо тут сказать, урусы есть урусы
country_event = {
	id = tartaria.60
	title = tartaria.60.t
	desc = tartaria.60.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.60.a		
	}	
}

### священая книга тенгри
country_event = {
	id = tartaria.61
	title = tartaria.61.t
	desc = tartaria.61.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.61.a	
		add_ideas = zta_traditsii_tengri
	}	
}

### эвент Для уруссинии что Юань приглашает нас вступить в Каракорумский Пакт. вместе жить - дружить
country_event = {
	id = tartaria.62
	title = tartaria.62.t
	desc = tartaria.62.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	trigger = {
		ZUR = {
			is_in_faction = no
		}
	}
	option = {
		name = tartaria.62.a		
		ai_chance = {
			factor = 50
		}	
		ZUR = { 
			add_ai_strategy = {
				type = alliance
				id = "ZTA"
				value = 100
			}						
		}
		ZTA = {
			add_ai_strategy = {
				type = alliance
				id = "ZUR"
				value = 100
			}
			add_to_faction = ZUR
			country_event = { id = tartaria.63 }
		}
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.806 }
		}
	}
	option = {
		name = tartaria.62.b
		ai_chance = {
			factor = 1
		}	
		ZTA = {
			country_event = { id = tartaria.64 }
		}
	}	
}

### урусы согласились вступить с нами в Каракорумский Пакт
country_event = {
	id = tartaria.63
	title = tartaria.63.t
	desc = tartaria.63.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.63.a	
		effect_tooltip = {
			add_to_faction = ZUR
		}
	}	
}

### урусы Не захотели в наш альянс
country_event = {
	id = tartaria.64
	title = tartaria.64.t
	desc = tartaria.64.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.64.a
		
	}	
}

#### эвент для юань о том что хань молчит
country_event = {
	id = tartaria.65
	title = tartaria.65.t
	desc = tartaria.65.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = tartaria.65.a
		
	}	
}