﻿add_namespace = hanchines

#zha_techn_revolut
country_event = {
	id = hanchines.1
	title = hanchines.1.t
	desc = hanchines.1.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = hanchines.1.a	
		set_politics = {			
			ruling_party = democratic
		}
		set_popularities = {
			democratic = 70
			neutrality = 15
			fascism = 15			
		}
		custom_effect_tooltip = hanchines.1.tt 
		hidden_effect = {		
			every_other_country = {
				limit = {
					OR = {
						is_puppet_of = ZHA
						is_subject_of = ZHA
					}	
					NOT = {
						original_tag = ZXR
					}
				}
				ZHA = { set_autonomy = { target = PREV autonomy_state = autonomy_free } }
#				ZHA = { end_puppet = PREV }
				drop_cosmetic_tag = yes				
				country_event = {
					id = hanchines.2
				}
			}
		}
		if = {
			limit = {  has_idea = zha_nekompetentn_pravitel  }
			remove_ideas = zha_nekompetentn_pravitel 
		}
		if = {
			limit = {  has_idea = zha_nepokorstvo_warlordov  }
			remove_ideas = zha_nepokorstvo_warlordov 
		}
		start_civil_war = {
			ruling_party = democratic
			ideology = fascism	
			size = 0.3	
			capital = 743	
			states = { 
					743 597 598 606 1098 1097
				}
			
		}
		set_country_flag = zha_technokrat_perevorot_flag
		hidden_effect = {
			news_event = { hours = 5 id = ar_news.656 }
			every_other_country = {
				limit = {
					tag = ZHA
					has_government = fascism
				}
				remove_ideas = zha_nepokorstvo_warlordov
				remove_ideas = zha_nepokorstvo_warlordov_2
				remove_ideas = zha_nepokorstvo_warlordov_3
			}
		}
	}	
}

#zha_techn_revolut message for puppet
country_event = {
	id = hanchines.2
	title = hanchines.2.t
	desc = hanchines.2.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = hanchines.2.a	
		add_stability = 0.1	
#		set_autonomy = {
#			target = ROOT
#			autonomy_state = autonomy_free
#		}
		drop_cosmetic_tag = yes
	}	
}
#zth oborona granitsy na uge. vostochnaya chast
country_event = {
	id = hanchines.3
	title = hanchines.3.t
	desc = hanchines.3.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = hanchines.3.a	
		1097 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		606 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		1099 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		607 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		add_war_support = 0.05
		add_stability = 0.02
	}	
}
#zha_techn_new sovet 
country_event = {
	id = hanchines.4
	title = hanchines.4.t
	desc = hanchines.4.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = hanchines.4.a		
		add_tech_bonus = {
				name = industrial_bonus
				bonus = 0.5
				uses = 1
				category = industry
			}
		add_research_slot = 1	
		hidden_effect = {		
				# kill_country_leader = yes
				# create_country_leader = {
					# name = "Совет Технократов"
					# desc = " "
					# picture = "tech_sovet_2.tga"
					# expire = "2010.1.1"
					# ideology = technocracy
					# traits = {
						# sovet_technokratov_trait
					# }
				# }
				# add_country_leader_role = {
					# character = "ZHA_council_of_technocrats_2"
					# country_leader = {
						# ideology = technocracy
						# traits = { sovet_technokratov_trait }
						# expire = "2020.3.1.1"
					# }	
					# promote_leader = yes 
				# }
				ZHA_council_of_technocrats = {				
					set_portraits = {
						civilian = {
							large = "gfx/leaders/ZHA/tech_sovet_2.tga"
						}
						army = {
							large = "gfx/leaders/ZHA/tech_sovet_2.tga"
						}
					}
				}
		}
	}	
}
#zth oborona granitsy na uge. central chast
country_event = {
	id = hanchines.5
	title = hanchines.5.t
	desc = hanchines.5.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = hanchines.5.a	
		607 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		744 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		add_war_support = 0.05
	}	
}
#zth oborona granitsy na uge. zapad chast
country_event = {
	id = hanchines.6
	title = hanchines.6.t
	desc = hanchines.6.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = hanchines.6.a	
		744 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		1118 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }
		283 = { set_building_level = { type = bunker level = 2 province = { all_provinces = yes limit_to_border = yes level < 2	} } }		
		add_war_support = 0.02
	}	
}
# chahar will be annexed
country_event = {
	id = hanchines.7
	title = hanchines.7.t
	desc = hanchines.7.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = { # Accept
		name = hanchines.7.a
		ai_chance = { factor = 100 }
		ZHA = {
			country_event = { id = hanchines.9 }
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = { # Refuse
		name = hanchines.7.b
		ZHA = {
			country_event = { id = hanchines.8 }
		}
	}
}

# chahar ne soglasen sobaka takaya
country_event = {
	id = hanchines.8
	title = hanchines.8.t
	desc = hanchines.8.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = hanchines.8.a
	}
}

# chahar annexedr
country_event = {
	id = hanchines.9
	title = hanchines.9.t
	desc = hanchines.9.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = hanchines.9.a
		annex_country = { target = ZXR }
		hidden_effect = {
			ZHA = {
				country_event = { days = 1 id = ar_news.672 }
			}
		}
	}
}

# dvorets istorii
country_event = {
	id = hanchines.10
	title = hanchines.10.t
	desc = hanchines.10.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = hanchines.10.a
		add_political_power = 50
		add_stability = 0.03
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.683 }
			country_event = { days = 45 id = hanchines.11 }
		}
	}
}

# rekord pereleta imper han
country_event = {
	id = hanchines.11
	title = hanchines.11.t
	desc = hanchines.11.d
	picture = GFX_report_zha_xifeng_li_1
	
	is_triggered_only = yes
	
	option = {
		name = hanchines.11.a		
		add_stability = 0.02
		set_country_flag = zha_perelet_ksifeng_ling
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.684 }
		}
	}
}
# rekord pereleta technokrat han
country_event = {
	id = hanchines.12
	title = hanchines.12.t
	desc = hanchines.12.d
	picture = GFX_report_zha_xifeng_li_1
	
	is_triggered_only = yes
	
	option = {
		name = hanchines.12.a		
		add_stability = 0.02
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.685 }
		}
	}
}
# polk jenskoi aviatsii
country_event = {
	id = hanchines.13
	title = hanchines.13.t
	desc = hanchines.13.d
	picture = GFX_report_event_generic_conference	
	trigger = {		
		tag = ZHA
		ZHA = {
			has_government = neutrality			
			has_war = yes
			has_country_flag = zha_perelet_ksifeng_ling
		}				
	}
	mean_time_to_happen = { days = 30 }
	fire_only_once = yes	
	option = {
		name = hanchines.13.a		
		ZHA = {
			air_experience = 10
			set_rule = {
				can_generate_female_aces = yes
			}
			if = {
				limit = {
					ZHA = { has_full_control_of_state = 608 }
				}
				custom_effect_tooltip = ZHA_huli_tsin_tt
				hidden_effect = {
					load_oob = "ZHA_huli_tsin"
				}
			}
		}
	}
}
# delegatsia v choson
country_event = {
	id = hanchines.14
	title = hanchines.14.t
	desc = hanchines.14.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.14.a		
		add_opinion_modifier = {
			target = ZHA
			modifier = diplomat_20
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.691 }
			ZJA = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
			ZNP = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
		}
	}
}
# dogovor o nenapadenii ZCS i ZHA event dlya ZCS
country_event = {
	id = hanchines.15
	title = hanchines.15.t
	desc = hanchines.15.d
	picture = GFX_report_event_generic_conference
	
	is_triggered_only = yes
	
	option = {
		name = hanchines.15.a		
		ai_chance = { factor = 80 }		
		diplomatic_relation = {
			country = ZHA
			relation = non_aggression_pact
			active = yes
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.691 }
		}
		ZHA = {
			country_event = {
				id = hanchines.16
			}
		}
	}
	option = {
		name = hanchines.15.b		
		ai_chance = { factor = 5 }
		if = {
			limit = {
				has_opinion_modifier = diplomat_20					
			}
			remove_opinion_modifier = {
				target = ZHA
				modifier = diplomat_20
			}			
		}
		ZHA = {
			country_event = {
				id = hanchines.17
			}
		}
	}
}
# dogovor o nenapadenii podpisan!
country_event = {
	id = hanchines.16
	title = hanchines.16.t
	desc = hanchines.16.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.16.a		
		add_war_support = 0.1
		effect_tooltip = {
			diplomatic_relation = {
				country = ZCS
				relation = non_aggression_pact
				active = yes
			}
		}
	}
}
# dogovor o nenapadenii NE podpisan!
country_event = {
	id = hanchines.17
	title = hanchines.17.t
	desc = hanchines.17.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.17.a
		if = {
			limit = {
				has_opinion_modifier = diplomat_20					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = diplomat_20
			}			
		}	
	}
}
# vizit v segunat (event for ZJA)
country_event = {
	id = hanchines.18
	title = hanchines.18.t
	desc = hanchines.18.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.18.a
		add_war_support = 0.05
		add_opinion_modifier = {
			target = ZHA
			modifier = diplomat_20
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.791 }
			ZCS = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
			ZNP = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
		}
	}
}
#  dogovor protiv korei  (event for ZJA)
country_event = {
	id = hanchines.19
	title = hanchines.19.t
	desc = hanchines.19.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.19.a
		ai_chance = { factor = 80 }
		ZHA = {
			diplomatic_relation = { country = ZJA relation = non_aggression_pact }
			country_event = {
				id = hanchines.20
			}
		}	
	}
	option = {
		name = hanchines.19.b
		ai_chance = { factor = 1 }
		ZHA = {
			country_event = {
				id = hanchines.21
			}
		}
	}
}
# dogovor protiv korei   NON agression to ZJA
country_event = {
	id = hanchines.20
	title = hanchines.20.t
	desc = hanchines.20.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.20.a
		effect_tooltip = {
			diplomatic_relation = { country = ZJA relation = non_aggression_pact }
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.698 }
		}
	}
}
# dogovor protiv korei   NON agression to ZJA PROVAL
country_event = {
	id = hanchines.21
	title = hanchines.21.t
	desc = hanchines.21.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.21.a		
	}
}
# dogovor protiv korei   EVENT for ZCS
country_event = {
	id = hanchines.22
	title = hanchines.22.t
	desc = hanchines.22.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.22.a	
		add_opinion_modifier = {
			target = ZHA
			modifier = trebovania
		}
	}
}

# эвент о том что императрица встала перед непростым выбором того что же делать нав в восточной конфликте японий. а при этом в стране жесть какая то, бедность разруха, куда нам эта япония то, народ не доволен
country_event = {
	id = hanchines.23
	title = hanchines.23.t
	desc = hanchines.23.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.23.a	
		add_stability = -0.05			
		if = {
			limit = {
				NOT = {
					has_country_flag = zha_konvfikt_na_vostoke_flag	
				}
			}
			set_country_flag = zha_konvfikt_na_vostoke_flag
		}
	}
}

### эвент о том что перед советом технокрадов встал непростой вопрос о том кого же поддержать в конфликте на востоке. сегунов, корею, или беглого импенатора? народу после технократической революции пофиг на этот выбор (наверное)
country_event = {
	id = hanchines.24
	title = hanchines.24.t
	desc = hanchines.24.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.24.a
		if = {
			limit = {
				NOT = {
					has_country_flag = zha_konvfikt_na_vostoke_flag	
				}
			}
			set_country_flag = zha_konvfikt_na_vostoke_flag
		}	
	}
}

### эвент для кореи о том что Хань хочет стать членов Лингсанской Торговой Лиги. Нужен ли нам такой союзник? Или времена нынче таие что лучше дружить с этим соседом?
country_event = {
	id = hanchines.25
	title = hanchines.25.t
	desc = hanchines.25.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.25.a
		ai_chance = {
			factor = 40	
			modifier = {
				factor = 80
				has_war = yes
			}			
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.779 }
		}
		effect_tooltip = {
			add_to_faction = ZHA
			ZHA = {
				add_ideas = zcs_lingsan_torg_liga_member
			}
		}
		ZHA = {
			country_event = { id = hanchines.26 }
		}
		add_ai_strategy = {
			type = alliance
			id = "ZHA"
			value = 200
		}	
	}
	option = {
		name = hanchines.25.b
		ai_chance = {
			factor = 1							
		}
		ZHA = {
			country_event = { id = hanchines.27 }
		}		
	}
}

### эвент о том что мы вступили в торговую лигу Линсанг
country_event = {
	id = hanchines.26
	title = hanchines.26.t
	desc = hanchines.26.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.26.a	
		ZCS = {
			add_to_faction = ZHA
		}
		add_ideas = zcs_lingsan_torg_liga_member
		add_ai_strategy = {
			type = alliance
			id = "ZCS"
			value = 200
		}
	}
}

### эвент о том что мы НЕ СМОГЛИ ВСТУПИТЬ  в торговую лигу Линсанг
country_event = {
	id = hanchines.27
	title = hanchines.27.t
	desc = hanchines.27.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.27.a			
	}
}

### эвент о том что мы предложим корее договор о разделе сфер влияния на севере
country_event = {
	id = hanchines.28
	title = hanchines.28.t
	desc = hanchines.28.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.28.a	
		ZCS = {
			country_event = { days = 1 id = hanchines.15 }
		}	
	}
}

### эвент о том что недовольные дороги портят
country_event = {
	id = hanchines.29
	title = hanchines.29.t
	desc = hanchines.29.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.29.a	
		random_owned_controlled_state = {
			limit = {
				infrastructure > 1								
			}
			damage_building = { type = infrastructure damage = 0.5 }
		}
		add_stability = -0.01
	}
}

### эвент о том что недовольные на фабрике гражданской какой нибудь взрыв сделали
country_event = {
	id = hanchines.30
	title = hanchines.30.t
	desc = hanchines.30.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.30.a	
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		add_stability = -0.01
		hidden_effect = {
			country_event = { id = hanchines.51 days = 28 random = 12 }
		}		
	}
}

### эвент о том что недовольные на военном заводе саботровали производство
country_event = {
	id = hanchines.31
	title = hanchines.31.t
	desc = hanchines.31.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.31.a	
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1								
			}
			damage_building = { type = arms_factory damage = 0.5 }
		}	
		add_stability = -0.01
		add_war_support = -0.03
		add_manpower = -5
	}
}
### эвент о том что императрица борется с непокорными варлордами-генералами, проводя централизацию упревления всей военной машиной страны. тут два РАНДОМНЫХ поворота событий - или варлорды смирятся и принимают реформы, или поднимают мятеж (гражданка) 50 на 50 шанс кароч
country_event = {
	id = hanchines.32
	title = hanchines.32.t
	desc = hanchines.32.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.32.a	
		if = {
			limit = {
				has_civil_war = no
			}
			random_list = {
				20 = { 
					country_event = { id = hanchines.33 }
				}
				80 = { 
					country_event = { id = hanchines.34 }
				}
			}
		}
		if = {
			limit = {
				has_civil_war = yes
			}
			custom_effect_tooltip = hanchines.32.a.tt 
			country_event = { id = hanchines.34 }
		}			
	}
}

### эвент о том недовольные политикой централизации управления всей военщиной варлорды-генералы подняли мятеж!
country_event = {
	id = hanchines.33
	title = hanchines.33.t
	desc = hanchines.33.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.33.a	
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov
			}
			remove_ideas = zha_nepokorstvo_warlordov
		}
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov_2
			}
			remove_ideas = zha_nepokorstvo_warlordov_2
		}
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov_3
			}
			remove_ideas = zha_nepokorstvo_warlordov_3
		}
		if = {
			limit = {
				has_government = fascism
			}
			start_civil_war = {			
				ideology = neutrality	
				size = 0.25
				army_ratio = 0.22
				navy_ratio = 0.1
				states = { 
					743 597 598 606 1098 1097
				}				
			}
		}		
		hidden_effect = {
			every_other_country = {
				limit = { 
					original_tag = ZHA
					has_government = neutrality
				}
				set_cosmetic_tag = ZHA_WARLOR	
				country_event = { days = 1 id = hanchines.104 }
			}
			news_event = { hours = 3 id = ar_news.780 }
		}
	}
}

### эвент о том недовольные политикой централизации управления всей военщиной варлорды-генералы таки не стали поднимать мятеж. но на внедрение новой политики централизации уйдет время
country_event = {
	id = hanchines.34
	title = hanchines.34.t
	desc = hanchines.34.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.34.a	
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov
			}
			remove_ideas = zha_nepokorstvo_warlordov
		}
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov_2
			}
			remove_ideas = zha_nepokorstvo_warlordov_2
		}
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov_3
			}
			remove_ideas = zha_nepokorstvo_warlordov_3
		}
		add_timed_idea = {
			idea = zha_nepokorstvo_warlordov_defet
			days = 250
		}
		hidden_effect = {
			country_event = { id = hanchines.35 days = 100 random = 12 }
		}
	}
}

### эвент о том что на военной фабрике взрыв. Участников поймали, они были связаны с одним из бывших варлордов, который противился централизации управления армией
country_event = {
	id = hanchines.35
	title = hanchines.35.t
	desc = hanchines.35.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.35.a	
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1								
			}
			damage_building = { type = arms_factory damage = 0.5 }
		}	
		add_stability = -0.01
		add_war_support = -0.03
		add_manpower = -87
	}
}

### эвент о том что терпение варлордов кончилось и они подняли гражданку усомнившись в мандатах императрицы
country_event = {
	id = hanchines.36
	title = hanchines.36.t
	desc = hanchines.36.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.36.a	
		if = {
			limit = {
				has_idea = zha_nepokorstvo_warlordov_3
			}
			remove_ideas = zha_nepokorstvo_warlordov_3
		}
		if = {
			limit = {
				has_government = fascism
				has_civil_war = no
			}
			start_civil_war = {			
				ideology = neutrality	
				size = 0.3
				army_ratio = 0.3
				navy_ratio = 0.1	
				states = { 
					743 597 598 606 1098 1097
				}
			}
			hidden_effect = {
				every_other_country = {
					limit = { 
						original_tag = ZHA
						has_government = neutrality
					}
					set_cosmetic_tag = ZHA_WARLOR
					country_event = { days = 1 id = hanchines.104 }
				}
				news_event = { hours = 3 id = ar_news.780 }
			}
		}	
		if = {
			limit = {
				NOT = {
					has_government = fascism					
				}	
				has_civil_war = no
			}
			start_civil_war = {			
				ideology = fascism	
				size = 0.3
				army_ratio = 0.3
				navy_ratio = 0.1
				states = { 
					743 597 598 606 1098 1097
				}				
			}
			hidden_effect = {
				every_other_country = {
					limit = { 
						original_tag = ZHA
						has_government = fascism
					}
					set_cosmetic_tag = ZHA_WARLOR
					country_event = { days = 1 id = hanchines.104 }
				}
				news_event = { hours = 3 id = ar_news.780 }
			}
		}
		if = {
			limit = {				
				has_civil_war = yes				
			}
			add_political_power = -120
		}		
	}
}

### эвент о том что после переворота сёгунов мы лишаемся инвестиций из японии. надеемся это временно и скоро всё устаканится
country_event = {
	id = hanchines.37
	title = hanchines.37.t
	desc = hanchines.37.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.37.a
		add_stability = -0.03
		effect_tooltip = {
#			remove_ideas = zha_investitii_ot_zja
		}
	}
}

### эвент о том что небесное доверие к правителю иссякло. в стране вспыхнуло восстание
country_event = {
	id = hanchines.38
	title = hanchines.38.t
	desc = hanchines.38.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.38.a	
		if = {
			limit = {
				has_government = fascism
			}
			start_civil_war = {			
				ideology = neutrality	
				size = 0.35
				states = { 
					743 597 598 606 1098 1097
				}
			}			
		}	
		if = {
			limit = {
				NOT = {
					has_government = fascism
				}	
			}
			start_civil_war = {			
				ideology = fascism	
				size = 0.35	
				states = { 
					743 597 598 606 1098 1097
				}		
			}			
		}
		every_other_country = {
			limit = { 
				original_tag = ZHA						
			}
			add_stability = 0.15
			add_war_support = 0.15			
		}
		hidden_effect = {	
			every_other_country = {
				limit = { 
					original_tag = ZHA
					has_government = neutrality
				}
				set_cosmetic_tag = ZHA_WARLOR	
				country_event = { days = 1 id = hanchines.104 }
			}
			news_event = { hours = 3 id = ar_news.782 }
			add_stability = 0.03
		}
	}
}

### эвент для юань о том что Хань собирается порешать вопрос с нами, с ее марионеткой. Но как пока не известно. 
country_event = {
	id = hanchines.39
	title = hanchines.39.t
	desc = hanchines.39.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.39.a
		add_stability = -0.03
		add_war_support = 0.05
	}
}

### эвент для юань о том что Хань расторгает небесный брак, они хотят дать нам нашу свободу, в обмен на то что мы не будем лезть в их сферу влияния
country_event = {
	id = hanchines.40
	title = hanchines.40.t
	desc = hanchines.40.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.40.a
		add_political_power = 50	
		if = {
			limit = {
				has_idea = uani_unia_s_han_istoria
			}
			remove_ideas = uani_unia_s_han_istoria
		}
	}
}

### эвент для юань о том что Хань опускает нас и предлагает примириться. Ну, выбора у нас нет особо, по крайней мере пока (убирает дебафф, портящий отношения. дает пакт о ненападении)
country_event = {
	id = hanchines.41
	title = hanchines.41.t
	desc = hanchines.41.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.41.a
		ZHA = {
			end_puppet = ZTA
			diplomatic_relation = {
				country = ZTA
				relation = non_aggression_pact
				active = yes
			}
		}	
		if = {
			limit = {
				has_idea = uani_imperia_nation_istoria
			}
			remove_ideas = uani_imperia_nation_istoria
		}
		
	}
}
### эвент для юань о том что Хань собирается порешить вопрос с нашими бандитами только посредством силы. нам стоит ждать войны
country_event = {
	id = hanchines.42
	title = hanchines.42.t
	desc = hanchines.42.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.42.a
		add_stability = 0.03
		add_war_support = 0.05
	}
}

### эвент для юань о том что Хань требует полного подчинение, сложить оружие и передать всю полноту власти над территориями императрице (два варианта - сопротивляться, сдаться. ИИ будет воевать, и игрок если не лалка то тоже)
country_event = {
	id = hanchines.43
	title = hanchines.43.t
	desc = hanchines.43.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	trigger = {
		tag = ZTA
		ZTA = {
			is_puppet_of = ZHA
		}
	}
	option = {
		name = hanchines.43.a
		ai_chance = {
			factor = 200						
		}
		kill_country_leader = yes
		remove_ideas = uani_unia_s_han_istoria
		ZHA = {
			end_puppet = ZTA
			set_party_name = { 
				ideology = fascism 
				long_name = ZTA_fascism_party 
				name = ZTA_fascism_party 
			}
			country_event = { hours = 2 id = hanchines.45 }
		}		
	}
	option = {
		name = hanchines.43.b
		ai_chance = {
			factor = 2							
		}
		custom_effect_tooltip = GAME_OVER_TT
		effect_tooltip = {
			ZHA = {
				annex_country = {
					target = ZTA
					transfer_troops = yes
				}
			}
		}
		country_event = { id = hanchines.44 }
	}
}
### эвент для хань о том что юань покорно сдается. 1 из 300 случаев для ИИ. мы ее аннексим и молодцы а они лалки
country_event = {
	id = hanchines.44
	title = hanchines.44.t
	desc = hanchines.44.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.44.a
		add_stability = 0.08
		ZHA = {
			annex_country = {
				target = ZTA
				transfer_troops = yes
			}
		}
		add_named_threat = { threat = 4 name = hanchines.44.thr }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.784 }
		}
	}
}

### эвент для хань о том что юань непокорна! они взбунтовались, убили нашего посадника и говорят о незалежности!
country_event = {
	id = hanchines.45
	title = hanchines.45.t
	desc = hanchines.45.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.45.a
		every_state = {
			limit = { is_core_of = ZTA }				
			add_claim_by = ZHA
		}
		declare_war_on = {
			type = annex_everything
			target = ZTA
		}
		add_named_threat = { threat = 5 name = hanchines.45.thr }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.786 }
		}
	}
}

### речь императрицы о том что империя у нас нерушима и все кто что то там говорят плохое просто агенты японского госдепа и либерахи. (дает немного так необходимой стабки)
country_event = {
	id = hanchines.46
	title = hanchines.46.t
	desc = hanchines.46.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.46.a
		add_stability = 0.03
		add_war_support = 0.02
		add_political_power = 80
	}
}

### Эвент для чахара о том что скорее всего нас скоро ждет аннексия со стороны Хань, интеграция вернее, простите господин
country_event = {
	id = hanchines.47
	title = hanchines.47.t
	desc = hanchines.47.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.47.a
		
	}
}

# Эвент для чахара о том что всё, станм ли мы частью хань? (тут как с тувой, хрен куда денешься)
country_event = {
	id = hanchines.48
	title = hanchines.48.t
	desc = hanchines.48.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { # Accept
		name = hanchines.48.a
		ai_chance = { factor = 100 }
		ZHA = {
			country_event = { id = hanchines.49 }
		}
		custom_effect_tooltip = GAME_OVER_TT
	}
	option = { # Refuse
		name = hanchines.48.b
		ZHA = {
			country_event = { id = hanchines.50 }
		}
	}
}
# Чахар теперь часть хань, ура товарищи
country_event = {
	id = hanchines.49
	title = hanchines.49.t
	desc = hanchines.49.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.49.a
		annex_country = { target = ZXR }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.785 }
		}
	}
}
# Чахар отказал в присоединении. ну ничего, мы и так братушки
country_event = {
	id = hanchines.50
	title = hanchines.50.t
	desc = hanchines.50.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = {
		name = hanchines.50.a
		add_stability = -0.05		
	}
}

### эвент о том что опять кто то взрыв на фабрике сделал. говорят что это шпионы Чжунго
country_event = {
	id = hanchines.51
	title = hanchines.51.t
	desc = hanchines.51.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {
		hidden_effect = {
			country_event = { id = hanchines.52 days = 35 random = 6 }
		}
	}
	option = {
		name = hanchines.51.a
		ai_chance = { factor = 50 }	
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		add_stability = -0.02
		add_opinion_modifier = {
			target = ZMN
			modifier = oni_otkazali_light
		}		
	}
	option = {
		name = hanchines.51.b	
		ai_chance = { factor = 50 }	
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		add_stability = -0.05			
	}
}

### эвент о том что снова взрыв. на этот раз железную дорогу подорвали, погибло 128 человек, солдаты ехали с учений
country_event = {
	id = hanchines.52
	title = hanchines.52.t
	desc = hanchines.52.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.52.a		
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
		add_manpower = -128
		add_stability = -0.05				
	}	
}

### эвент для амдо что у них там тибетец-смертник взорвался (можно ему даже название придумать) типа они топят за независимость Амдо от хань но сами хотят Амдо в Тибет
country_event = {
	id = hanchines.53
	title = hanchines.53.t
	desc = hanchines.53.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.53.a		
		random_owned_controlled_state = {
#			limit = {
#				has_manpower > 200								
#			}
			add_manpower = -189
		}		
		add_stability = -0.05
		ZHA = {
			country_event = { days = 1 id = hanchines.54 }
		}		
	}	
}

### эвент для Хань что в амдо тибетец-смертник взорвался. типа они топят за независимость Амдо от хань но сами хотят Амдо в Тибет
country_event = {
	id = hanchines.54
	title = hanchines.54.t
	desc = hanchines.54.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.54.a				
		add_stability = -0.03			
	}	
}

### эвент для Хань о том что дворец небесного мандата хотел взорвать какой то чел
country_event = {
	id = hanchines.55
	title = hanchines.55.t
	desc = hanchines.55.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.55.a				
		add_stability = -0.02			
	}	
}

### эвент для Хань о том в стране какое то преддефолтное состояние и только кредиты нас спасут
country_event = {
	id = hanchines.56
	title = hanchines.56.t
	desc = hanchines.56.d
	picture = GFX_report_event_generic_conference	
	trigger = {
		tag = ZHA
		ZHA = {
			has_government = fascism
			has_completed_focus = zha_vlast_imperatritsi
		}
	}
	mean_time_to_happen = { days = 50 }
	fire_only_once = yes
	option = {
		name = hanchines.56.a
		add_stability = -0.01	
#		add_ideas = zha_promyshlennaya_otstalost
		add_timed_idea = {
			idea = zha_promyshlennaya_otstalost
			days = 200
		}
		hidden_effect = {
			ZHA = {
				set_variable = {
					var = zha_summa_dolga
					value = 0
				}
				random_list = {
					50 = {
						set_country_flag = zha_go_to_korea_defolt
					}
					50 = {
						set_country_flag = zha_go_to_japan_defolt
					}
				}	
			}
			if = {
				limit = {
					ZUR = {
						exists = yes
						NOT = {
							has_war_with = ZHA
						}
					}
				}
				ZUR = {
					country_event = { id = hanchines.102 days = 5 random = 5 }
				}
			}
			news_event = { hours = 6 id = ar_news.788 }
		}
	}	
}

### эвент для Хань о том что назанимав денег мы таки сумели предотвратить сильныйэкономический кризис (НЕНАДО НАВЕРНОЕ ДА)
country_event = {
	id = hanchines.57
	title = hanchines.57.t
	desc = hanchines.57.d
	picture = GFX_report_event_generic_conference
	trigger = {
		tag = ZHA
		ZHA = {
			check_variable = {
				zha_summa_dolga > 150
			}
			has_idea = zha_promyshlennaya_otstalost
		}		
	}
	mean_time_to_happen = { days = 3 }
	fire_only_once = yes
	option = {
		name = hanchines.57.a
		add_stability = 0.02						
		remove_ideas = zha_promyshlennaya_otstalost		
	}	
}

### эвент для Хань о том что в стране дефолт, такие дела. плохо всё 
country_event = {
	id = hanchines.58
	title = hanchines.58.t
	desc = hanchines.58.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
#	immediate = {
#		hidden_effect = {
#			remove_ideas = zha_defolt_nachalsya
#		}
#	}
	option = {
		name = hanchines.58.a		
		effect_tooltip = {				
			remove_ideas = zha_promyshlennaya_otstalost
			if = {
				limit = {
					check_variable = {
						var = zha_summa_dolga
						value = 50
						compare = less_than_or_equals
					}
				}
				add_timed_idea = {
					idea = zha_defolt_nachalsya
					days = 850
				}
			}
			if = {
				limit = {
					check_variable = {
						var = zha_summa_dolga
						value = 50
						compare = greater_than
					}
					check_variable = {
						var = zha_summa_dolga
						value = 100
						compare = less_than_or_equals
					}
				}
				add_timed_idea = {
					idea = zha_defolt_nachalsya_mediumm
					days = 600
				}
			}
			if = {
				limit = {
					check_variable = {
						var = zha_summa_dolga
						value = 100
						compare = greater_than
					}
				}
				add_timed_idea = {
					idea = zha_defolt_nachalsya_smalll
					days = 300
				}
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.787 }
		}
	}	
}

### эвент о том что нам в хань пришлось продать гражданские фабрики для того чтобы заиметь денежки для предотвращения дефолта
country_event = {
	id = hanchines.59
	title = hanchines.59.t
	desc = hanchines.59.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.59.a
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			remove_building = {
				type = industrial_complex
				level = 2
			}
		}
		custom_effect_tooltip = hanchines.59.tt
		add_to_variable = {
			var = zha_summa_dolga
			value = 12
		}
	}	
}
### эвент Для марионеток хань о том что сама хань из за преддефолтного состояния снижает нам дотации. вот какие гады. А местные сторонники незалежности уже на улицы выхдят
country_event = {
	id = hanchines.60
	title = hanchines.60.t
	desc = hanchines.60.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.60.a
		add_political_power = -50
		add_timed_idea = {
			idea = zha_sokrashenie_dotatsii_ot_khan
			days = 250
		}
		if = {
			limit = {
				has_government = neutrality
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
		}
		if = {
			limit = {
				has_government = fascism
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.1
			}
		}
	}	
}

### эвент для донгву о том что хань хочет занять у нас денежку. мы ж местный швейцаский банк. модет дадим им 30 млн мунгу, но только путсь сразу проценты платить начнут. а то знаем мы их.
country_event = {
	id = hanchines.61
	title = hanchines.61.t
	desc = hanchines.61.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.61.a
		ai_chance = { factor = 50 }	
		ZHA = {
			country_event = { id = hanchines.62 }
			add_timed_idea = {
				idea = zha_percents_platim_xnu
				days = 800
			}
		}
		add_timed_idea = {
			idea = zha_for_xnu_percents
			days = 800
		}
	}
	option = {
		name = hanchines.61.b	
		ai_chance = { factor = 2 }	
		ZHA = {
			country_event = { id = hanchines.63 }
		}		
	}
}
### эвент для Хань о Донгву дали нам кредит. ура. 30 млн мунгу. но и проценты сразу надо платить
country_event = {
	id = hanchines.62
	title = hanchines.62.t
	desc = hanchines.62.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.62.a				
		ZHA = {
			add_stability = 0.02
			custom_effect_tooltip = hanchines.62.tt
			add_to_variable = {
				var = zha_summa_dolga
				value = 30
			}
			effect_tooltip = {
				add_timed_idea = {
					idea = zha_percents_platim_xnu
					days = 800
				}
			}
		}		
	}	
}
### эвент для Хань что Донгву ничего нам не дали. жаль
country_event = {
	id = hanchines.63
	title = hanchines.63.t
	desc = hanchines.63.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.63.a				
		ZHA = {
			add_stability = -0.01			
		}		
	}	
}

### эвент для кореи о том что Хань просит денежек в долг для борьбы с зарождающимся экономическим кризисом. Оно конечно нам не особо надо, пусть себе разоряются. Но обложив их долгами мы сможем попытаться манипулировать их вектором внешней политики.
country_event = {
	id = hanchines.64
	title = hanchines.64.t
	desc = hanchines.64.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {
		hidden_effect = {
			ZHA = {
				clr_country_flag = zha_go_to_korea_defolt
			}	
		}
	}	
	option = {
		name = hanchines.64.a
		ai_chance = { factor = 50 }	
			custom_effect_tooltip = hanchines.64.tt 
			add_political_power = -100
		ZHA = {
			country_event = { id = hanchines.65 }
		}
	}
	option = {
		name = hanchines.64.b	
		ai_chance = { factor = 2 }	
		ZHA = {
			country_event = { id = hanchines.66 }
			set_country_flag = zha_go_to_japan_defolt
		}		
	}
}

### эвент для Хань что корея без проблем дала нам денежку 30 млн мунгу и сказала что мы даже пока можем не париться над процентными выплатами. хм... они что то задумали?
country_event = {
	id = hanchines.65
	title = hanchines.65.t
	desc = hanchines.65.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.65.a				
		ZHA = {
			add_stability = 0.01
			custom_effect_tooltip = hanchines.65.tt
			add_to_variable = {
				var = zha_summa_dolga
				value = 30
			}			
		}
		hidden_effect = {
			set_global_flag = zha_zcs_dolg_defolt
			set_global_flag = {
				flag = zha_zcs_dolg_defolt_cooldown
				days = 300
				value = 1
			}
		}		
	}	
}

### эвент для Хань что корея ничего нам не дала. жаль
country_event = {
	id = hanchines.66
	title = hanchines.66.t
	desc = hanchines.66.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.66.a				
		ZHA = {
			add_stability = -0.01			
		}
	}
}	

### эвент для хань о том что спустя пару лет корея таки спрашивает на за выплаты долгов (это если ранее ничего не случилось, мирный вариант) что нам делать? Оплатить сейчас или сказать что давайте позже (ухудщеие отношений очень)
country_event = {
	id = hanchines.67
	title = hanchines.67.t
	desc = hanchines.67.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.67.a
		ai_chance = { factor = 3 }
		clr_global_flag = zha_zcs_dolg_defolt
		add_timed_idea = {
			idea = zha_percents_platim_xcs
			days = 400
		}
		ZCS = {
			country_event = { id = hanchines.68 }
			add_timed_idea = {
				idea = zha_for_zcs_percents
				days = 400
			}
		}
	}
	option = {
		name = hanchines.67.b	
		ai_chance = { factor = 20 }	
		ZCS = {
			country_event = { id = hanchines.69 }
			effect_tooltip = {
				add_opinion_modifier = {
					target = ZHA
					modifier = obman_50
				}
			}
		}		
	}
}

### эвент для кореи что хань начала выплаты по долгу
country_event = {
	id = hanchines.68
	title = hanchines.68.t
	desc = hanchines.68.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.68.a
		add_stability = 0.01
		effect_tooltip = {
			add_timed_idea = {
				idea = zha_for_zcs_percents
				days = 400
			}
		}
	}
}	
### эвент для кореи что хань их продинамила и что то не собирается пока платить по долгам. какие то отмазы всё
country_event = {
	id = hanchines.69
	title = hanchines.69.t
	desc = hanchines.69.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.69.a
		add_stability = -0.01
		add_opinion_modifier = {
			target = ZHA
			modifier = obman_50
		}
		add_ai_strategy = {
			type = alliance
			id = "ZHA"
			value = -100
		}
		add_ai_strategy = {
			type = antagonize
			id = "ZHA"
			value = 100
		}
	}
}	

### эвент для хань о том что корея которая сейчас воюет на востоке предлагает нам такой вот договор - они прощают нам долг а мы проводим лояльную к ним политику, не атакую так сказать в спину и всячески дружа. (мы идем по прокорейской ветке если согласимся)
country_event = {
	id = hanchines.70
	title = hanchines.70.t
	desc = hanchines.70.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.70.a
		ai_chance = { factor = 3 }
		clr_global_flag = zha_zcs_dolg_defolt
		complete_national_focus = zha_konvfikt_na_vostoke
		complete_national_focus = zha_support_korea
		ZCS = {
			if = {
				limit = {
					has_opinion_modifier = obman_50
				}
				remove_opinion_modifier = {
					target = ZHA
					modifier = obman_50
				}
				add_ai_strategy = {
					type = alliance
					id = "ZHA"
					value = 100
				}
				add_ai_strategy = {
					type = antagonize
					id = "ZHA"
					value = -100
				}
			}
			country_event = { id = hanchines.71 }
		}
	}
	option = {
		name = hanchines.70.b	
		ai_chance = { factor = 20 }	
		ZCS = {
			country_event = { id = hanchines.72 }
		}		
	}
}

### эвент для кореи что хань согласилась следовать лояльной нам внешней политоте за то тчо мы простили им долг
country_event = {
	id = hanchines.71
	title = hanchines.71.t
	desc = hanchines.71.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.71.a
		add_stability = 0.01		
		add_ai_strategy = {
			type = alliance
			id = "ZHA"
			value = 10
		}
		add_ai_strategy = {
			type = befriend
			id = "ZHA"
			value = 20
		}
		hidden_effect = {
			country_event = { days = 2 id = hanchines.14 }
		}
	}
}

### эвент для кореи что хань сказала что пока не готова выбрать свою сторону во всей этой внешней политоте
country_event = {
	id = hanchines.72
	title = hanchines.72.t
	desc = hanchines.72.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.72.a		
	}
}
##############################################################################################
##############################################################################################
#### ЭВЕНТ ДЛЯ ХАНЬ О ТОМ ЧТО ПОРА ОПРЕДЕЛИТЬСЯ С КЕМ ИДТИ! ТОЛЬКО ДЛЯ ИМПЕРАТРИЦЫ
country_event = {
	id = hanchines.73
	title = hanchines.73.t
	desc = hanchines.73.d
	picture = GFX_report_event_generic_conference	
	trigger = {
		tag = ZHA
		ZHA = {
			has_war = no
			has_government = fascism
			has_completed_focus = zha_vlast_imperatritsi
			NOT = {
				has_completed_focus = zha_konvfikt_na_vostoke
			}
		}
		ZCS = {
			has_war = yes
		}
		ZJA = {
			has_government = fascism
			has_war_with = ZNP
		}
		ZNP = {
			has_government = neutrality
			has_idea = zja_imperator_v_nippon
		}
	}
	mean_time_to_happen = { days = 10 }
	fire_only_once = yes
	immediate = {
	
	}
	option = {
		name = hanchines.73.a	#у нас нет долгов перед крупными игроками, мы сами выберем путь
		trigger = {
			NOT = {
				has_global_flag = zha_zcs_dolg_defolt
				has_global_flag = zha_imperatoe_dolg_defolt
				has_global_flag = zha_segunat_dolg_defolt
			}	
		}
		ai_chance = { factor = 30 }	
		complete_national_focus = zha_konvfikt_na_vostoke
	}
	option = {
		name = hanchines.73.b	#помощь корее, 
		trigger = {
			has_global_flag = zha_zcs_dolg_defolt
#			NOT = {
#				has_global_flag = zha_imperatoe_dolg_defolt
#				has_global_flag = zha_segunat_dolg_defolt
#			}
		}
		ai_chance = { factor = 20 }	
		complete_national_focus = zha_konvfikt_na_vostoke
		complete_national_focus = zha_support_korea
#		add_opinion_modifier = {
#			target = ZCS
#			modifier = diplomat_20
#		}
#		add_named_threat = { threat = 1 name = zha_support_korea_threatt }
#		ZCS = {
#			country_event = { days = 1 id = hanchines.14 }
#		}
		if = {
			limit = {
				has_global_flag = zha_imperatoe_dolg_defolt
			}
			ZNP = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
		if = {
			limit = {
				has_global_flag = zha_segunat_dolg_defolt
			}
			ZJA = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
	}
	option = {
		name = hanchines.73.c	#помощь императору, 
		trigger = {
			has_global_flag = zha_imperatoe_dolg_defolt
#			NOT = {
#				has_global_flag = zha_zcs_dolg_defolt
#				has_global_flag = zha_segunat_dolg_defolt
#			}
		}
		ai_chance = { factor = 20 }	
		complete_national_focus = zha_konvfikt_na_vostoke
		complete_national_focus = zha_support_jap_imperator
#		add_opinion_modifier = {
#			target = ZNP
#			modifier = diplomat_20
#		}
#		add_named_threat = { threat = 2 name = zha_support_jap_imperator_threatt }
#		ZNP = {
#			country_event = { days = 1 id = hanchines.85 }
#		}
		if = {
			limit = {
				has_global_flag = zha_zcs_dolg_defolt
			}
			ZCS = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
		if = {
			limit = {
				has_global_flag = zha_segunat_dolg_defolt
			}
			ZJA = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
	}
	option = {
		name = hanchines.73.e	#помощь сёгунам
		trigger = {
			has_global_flag = zha_segunat_dolg_defolt
#			NOT = {
#				has_global_flag = zha_zcs_dolg_defolt
#				has_global_flag = zha_imperatoe_dolg_defolt
#			}
		}
		ai_chance = { factor = 20 }	
		complete_national_focus = zha_konvfikt_na_vostoke
		complete_national_focus = zha_support_shoguns
#		add_opinion_modifier = {
#			target = ZJA
#			modifier = diplomat_20
#		}
#		add_named_threat = { threat = 2 name = zha_support_shoguns_threaatt }	
#		ZJA = {
#			country_event = { days = 1 id = hanchines.18 }
#		}
		if = {
			limit = {
				has_global_flag = zha_zcs_dolg_defolt
			}
			ZCS = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
		if = {
			limit = {
				has_global_flag = zha_imperatoe_dolg_defolt
			}
			ZNP = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
	}
	option = {
		name = hanchines.73.f	#у нас есть долг но мы не будем выбирать никого
		trigger = {
			OR = {
				has_global_flag = zha_zcs_dolg_defolt
				has_global_flag = zha_imperatoe_dolg_defolt
				has_global_flag = zha_segunat_dolg_defolt
			}	
		}
		ai_chance = { factor = 0 }	
		custom_effect_tooltip = hanchines.73.f.tt   
		add_ideas = zha_neutral_politika
		add_stability = 0.02
		if = {
			limit = {
				has_global_flag = zha_zcs_dolg_defolt
			}
			ZCS = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
		if = {
			limit = {
				has_global_flag = zha_imperatoe_dolg_defolt
			}
			ZNP = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
		if = {
			limit = {
				has_global_flag = zha_segunat_dolg_defolt
			}
			ZJA = {
				add_opinion_modifier = {
					target = ZHA
					modifier = ne_opravdali_nadejd_minus_20
				}
			}	
		}
		
	}
}	


####################
### эвент для пока еще императора япони Ёсиро что наши хорошие друзья из Хань и прекрасная императрица Сяи в частности просят нас дать им немного денег для предотвращения дефолта в стране. Ну что нам эти 35 млн этих их мунгу, дадим конечно ! Да и с выплатами пусть не парятся, как смогут так и вернут.
country_event = {
	id = hanchines.74
	title = hanchines.74.t
	desc = hanchines.74.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {
		hidden_effect = {
			ZHA = {
				clr_country_flag = zha_go_to_japan_defolt				
			}	
		}
	}	
	option = {
		name = hanchines.74.a
		ai_chance = { factor = 50 }	
		custom_effect_tooltip = hanchines.74.tt
		add_political_power = -100
		ZHA = {
			country_event = { id = hanchines.75 }
		}
	}
	option = {
		name = hanchines.74.b	
		ai_chance = { factor = 2 }	
		ZHA = {
			country_event = { id = hanchines.76 }
			set_country_flag = zha_go_to_korea_defolt		
		}		
	}
}

### эвент для хань что пока-еще-император японии Ёсиро дал нам денежку. Сказал что как сможете отдадите, привет еще передавал императрице
country_event = {
	id = hanchines.75
	title = hanchines.75.t
	desc = hanchines.75.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.75.a				
		ZHA = {
			add_stability = 0.01
			custom_effect_tooltip = hanchines.75.tt
			add_to_variable = {
				var = zha_summa_dolga
				value = 35
			}			
		}
		hidden_effect = {
			set_global_flag = zha_imperatoe_dolg_defolt			
		}		
	}	
}	

### эвент для Хань что император нам ничего не дал
country_event = {
	id = hanchines.76
	title = hanchines.76.t
	desc = hanchines.76.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.76.a				
		ZHA = {
			add_stability = -0.02			
		}
	}
}

####################
### эвент для сёгунов о том что Хань просит у них денежку в долг. Ну во-первых они нам не такие уж и друзья, раз тусовались с императором. во-2 у нас у самих денег нету, в третьих нам о лампочки что там у них (два варианат дать или нет)
country_event = {
	id = hanchines.77
	title = hanchines.77.t
	desc = hanchines.77.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {
		hidden_effect = {
			ZHA = {
				clr_country_flag = zha_go_to_japan_defolt				
			}	
		}
	}	
	option = {
		name = hanchines.77.a
		ai_chance = { factor = 30 }	
		custom_effect_tooltip = hanchines.77.tt
		add_political_power = -100
		ZHA = {
			country_event = { id = hanchines.78 }
		}
	}
	option = {
		name = hanchines.77.b	
		ai_chance = { factor = 5 }	
		ZHA = {
			country_event = { id = hanchines.79 }
			set_country_flag = zha_go_to_korea_defolt		
		}		
	}
}

### эвент для хань что сёёгуны таки дали нам денег в долг. но
country_event = {
	id = hanchines.78
	title = hanchines.78.t
	desc = hanchines.78.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.78.a				
		ZHA = {
			add_stability = 0.01
			custom_effect_tooltip = hanchines.78.tt
			add_to_variable = {
				var = zha_summa_dolga
				value = 30
			}			
		}
		hidden_effect = {
			set_global_flag = zha_segunat_dolg_defolt	
			set_variable = { zha_seguny_skolkovernulidolga_var = 0 } 
		}		
	}	
}

### эвент для Хань что сёгуны ничего не дали лалки
country_event = {
	id = hanchines.79
	title = hanchines.79.t
	desc = hanchines.79.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.79.a				
		ZHA = {
			add_stability = -0.02			
		}
	}
}

### эвент для ёсиров новояпонии что императрица прислала нам пушки. спасибо ей, она помнит чтомы ее денежкой выручили когда у них почти дефолт был
country_event = {
	id = hanchines.80
	title = hanchines.80.t
	desc = hanchines.80.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.80.a				
		ZHA = {
			send_equipment = {
				target = ZNP
				type = infantry_equipment
				amount = 300
			}
		}
	}
}
### эвент для сёгунов о том что хань в качестве платы за долг присылает нам вооружение. (многократный эвент)
country_event = {
	id = hanchines.81
	title = hanchines.81.t
	desc = hanchines.81.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.81.a				
		ZHA = {
			send_equipment = {
				target = ZJA
				type = infantry_equipment
				amount = 300
			}
		}
	}
}

### эвент для хань о том что император ёсиро из новояпонии призывает нас примкнуть к нему в борьбе с его же врагами. ну типа мы же друзья
country_event = {
	id = hanchines.82
	title = hanchines.82.t
	desc = hanchines.82.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.82.a
		ai_chance = { factor = 9 }
		complete_national_focus = zha_konvfikt_na_vostoke
		complete_national_focus = zha_support_jap_imperator
		clr_global_flag = zha_imperatoe_dolg_defolt	
		add_stability = 0.02
		add_war_support = 0.02	
		ZNP = {
			country_event = { id = hanchines.83 }
		}
	}
	option = {
		name = hanchines.82.b	
		ai_chance = { factor = 5 }
		ZNP = {
			country_event = { id = hanchines.84 }
		}
	}
}

### эвент для есиро в новояпонии о том что хань согласиллась помочь
country_event = {
	id = hanchines.83
	title = hanchines.83.t
	desc = hanchines.83.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.83.a			
		add_stability = 0.03
		add_war_support = 0.03	
#		country_event = { days = 3 id = hanchines.85 }
		hidden_effect = {
#			news_event = { hours = 3 id = ar_news.790 }
			ZJA = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
			ZCS = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
		}
	}
}

### эвент для есиро в новояпонии о том что хань НЕ согласиллась помочь в данный момент.
country_event = {
	id = hanchines.84
	title = hanchines.84.t
	desc = hanchines.84.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.84.a			
		add_stability = -0.02
		add_war_support = -0.02
	}
}

### эвент для есиро в новояпонии о том что хань (без уточнения кто у власти) заявляет что по возможности будет оказывать помощь императору в борьбе за власть с сёгунами, чисто дипломатический шаг. этот эвент по фокусам
country_event = {
	id = hanchines.85
	title = hanchines.85.t
	desc = hanchines.85.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.85.a			
		add_stability = 0.02
		add_war_support = 0.02
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.790 }
			ZJA = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
			ZCS = {
				add_opinion_modifier = {
					target = ZHA
					modifier = agressssor
				}
			}
		}
	}
}

### эвент для хань о том что сёгуны просят оказать им содействие и поддержку в борьбе с врагами. но как то они это делают без уважения. да и чо против императора ёсиро воевать чтоле?
country_event = {
	id = hanchines.86
	title = hanchines.86.t
	desc = hanchines.86.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.м.a
		ai_chance = { factor = 2 }
		complete_national_focus = zha_konvfikt_na_vostoke
		complete_national_focus = zha_support_shoguns
		clr_global_flag = zha_segunat_dolg_defolt		
		ZJA = {
			country_event = { id = hanchines.87 }
		}
	}
	option = {
		name = hanchines.86.b	
		ai_chance = { factor = 16 }
		ZJA = {
			country_event = { id = hanchines.88 }
		}
	}
}

### эвент для сёгунов о том что хань согласилась помочь нам. вот так неожиданность!
country_event = {
	id = hanchines.87
	title = hanchines.87.t
	desc = hanchines.87.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.87.a			
		add_stability = 0.03
		add_war_support = 0.03	
#		country_event = { days = 3 id = hanchines.18 }
	}
}

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

### эвент о легитимности сёгунов для хань
country_event = {
	id = hanchines.89
	title = hanchines.89.t
	desc = hanchines.89.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {
		ZJA = {
			set_variable = { ZJA.seguny_legitimnost_v_asii_otkaz = 0 }
			set_variable = { ZJA.seguny_legitimnost_denejki = 0 }
			set_variable = { ZJA.seguny_legitimnost_weapon = 0 }
		}
	}	
	option = {
		name = hanchines.89.a
		ai_chance = { factor = 16 }
		add_political_power = -5
		ZJA = {
			add_political_power = 5
			add_to_variable = {
				var = ZJA.seguny_legitimnost_denejki
				value = 1
			}
		}
		ZNP = {
			add_opinion_modifier = {
				target = ZHA
				modifier = oni_podderjali_segunov_minus_20
			}
		}
		every_other_country = {
			limit = {
				capital_scope = {
					is_on_continent = asia
				}
				NOT = {
					tag = ZJA
					has_war_with = ZJA
					has_war_with = ZHA
				}
			}
			country_event = { days = 1 id = hanchines.90 }	
		}
		country_event = { days = 4 id = hanchines.91 }
#		ZJA = {
#			country_event = { days = 4 id = hanchines.92 }
#		}	
	}
	option = {
		name = hanchines.89.b
		ai_chance = { factor = 50 }
		custom_effect_tooltip = hanchines_wehaveweapon_tt
		trigger = {			
			has_equipment = {
				infantry_equipment > 99
			}			
		}
		ZNP = {
			add_opinion_modifier = {
				target = ZHA
				modifier = oni_podderjali_segunov_minus_20
			}
		}
		send_equipment = {
			target = ZJA
			type = infantry_equipment
			amount = 100
		}
		every_other_country = {
			limit = {
				capital_scope = {
					is_on_continent = asia
				}
				NOT = {
					tag = ZJA
					has_war_with = ZJA
					has_war_with = ZHA
				}
			}
			country_event = { days = 1 id = hanchines.90 }	
		}
		country_event = { days = 4 id = hanchines.91 }
#		ZJA = {
#			country_event = { days = 4 id = hanchines.92 }
#		}
		hidden_effect = {
			ZJA = {
				add_to_variable = {
					var = ZJA.seguny_legitimnost_weapon
					value = 1
				}
			}
		}
	}
}

### эвент для стран в азии о том что хань прислала дипломатов и спрашивает как мы относимся к сёгунам и не хотим ли помочь
country_event = {
	id = hanchines.90
	title = hanchines.90.t
	desc = hanchines.90.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.90.a
		ai_chance = {
			factor = 5			
			modifier = {
				factor = 2
				has_opinion = {
					target = ZJA
					value > 10
				}
			}
		}
		add_political_power = -5
		ZJA = {
			add_political_power = 5
			add_to_variable = {
				var = ZJA.seguny_legitimnost_denejki
				value = 1
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = zja_segun_legitim_opinion_10
			}
		}
		ZNP = {
			add_opinion_modifier = {
				target = ROOT
				modifier = oni_podderjali_segunov_minus_20
			}
		}
	}
	option = {
		name = hanchines.90.b
		custom_effect_tooltip = hanchines_wehaveweapon_tt
		trigger = {			
			has_equipment = {
				infantry_equipment > 99
			}			
		}
		ai_chance = {
			factor = 5			
			modifier = {
				factor = 2
				has_opinion = {
					target = ZJA
					value > 10
				}
			}
		}
		send_equipment = {
			target = ZJA
			type = infantry_equipment
			amount = 100
		}
		ZJA = {			
			add_to_variable = {
				var = ZJA.seguny_legitimnost_weapon
				value = 1
			}
			add_opinion_modifier = {
				target = ROOT
				modifier = zja_segun_legitim_opinion_10
			}
		}
		ZNP = {
			add_opinion_modifier = {
				target = ROOT
				modifier = oni_podderjali_segunov_minus_20
			}
		}		
	}
	option = {
		name = hanchines.90.c
		ai_chance = {
			factor = 5			
			modifier = {
				factor = 2
				has_opinion = {
					target = ZJA
					value < 10
				}
				has_opinion = {
					target = ZJA
					value > 0
				}
			}
			modifier = {
				factor = 4
				has_opinion = {
					target = ZJA
					value < 0
				}
			}
		}
		hidden_effect = {
			ZJA = {			
				add_to_variable = {
					var = ZJA.seguny_legitimnost_v_asii_otkaz
					value = 1
				}				
			}
		}		
	}
}
#эвент для хань на подсчет очков поддержки сёгунов
country_event = {
	id = hanchines.91
	title = hanchines.91.t
	desc = hanchines.91.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {		
			set_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = ZJA.seguny_legitimnost_denejki } 
			add_to_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = ZJA.seguny_legitimnost_weapon } 
			add_to_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = ZJA.seguny_legitimnost_v_asii_otkaz }
			
			set_variable = { ZJA.seguny_legitimnost_summa_deneg = ZJA.seguny_legitimnost_denejki }
			multiply_variable = { ZJA.seguny_legitimnost_summa_deneg = 5 }
			
			set_variable = { ZJA.seguny_legitimnost_summa_weapon = ZJA.seguny_legitimnost_weapon }
			multiply_variable = { ZJA.seguny_legitimnost_summa_weapon = 100 }
			
		custom_effect_tooltip = hanchines_91_summa_vsego_oprosheno
		custom_effect_tooltip = hanchines_91_iz_nih_pp
		if = {
			limit = {
				check_variable = { ZJA.seguny_legitimnost_weapon > 0 }
			}
			custom_effect_tooltip = hanchines_91_iz_nih_weapon
		}		
		custom_effect_tooltip = hanchines_91_ne_priznaly
	}
	option = {
		name = hanchines.91.a
		ZJA = {
			country_event = { days = 1 id = hanchines.92 }
		}
	}
}

#эвент для сёгунов. Отчет от хань
country_event = {
	id = hanchines.92
	title = hanchines.92.t
	desc = hanchines.92.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	immediate = {	
#		set_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = 0 } 
#		add_to_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = ZJA.seguny_legitimnost_denejki } 
#		add_to_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = ZJA.seguny_legitimnost_weapon } 
#		add_to_variable = { ZJA.seguny_legitimnost_summa_vseh_vseh = ZJA.seguny_legitimnost_v_asii_otkaz }
		
#		set_variable = { ZJA.seguny_legitimnost_summa_deneg = 0 }		
#		add_to_variable = { ZJA.seguny_legitimnost_summa_deneg = ZJA.seguny_legitimnost_denejki }
#		multiply_variable = { ZJA.seguny_legitimnost_summa_deneg = 5 }
			
#		set_variable = { ZJA.seguny_legitimnost_summa_weapon = 0 }
#		add_to_variable = { ZJA.seguny_legitimnost_summa_weapon = ZJA.seguny_legitimnost_weapon }
#		multiply_variable = { ZJA.seguny_legitimnost_summa_weapon = 100 }
			
		custom_effect_tooltip = hanchines_92_summa_vsego_oprosheno
		custom_effect_tooltip = hanchines_92_iz_nih_pp
		if = {
			limit = {
				check_variable = { ZJA.seguny_legitimnost_weapon > 0 }
			}
			custom_effect_tooltip = hanchines_92_iz_nih_weapon
		}		
		custom_effect_tooltip = hanchines_92_ne_priznaly
	}
	option = {
		name = hanchines.92.a	
		clear_variable = ZJA.seguny_legitimnost_summa_vseh_vseh
		clear_variable = ZJA.seguny_legitimnost_denejki
		clear_variable = ZJA.seguny_legitimnost_weapon
		clear_variable = ZJA.seguny_legitimnost_v_asii_otkaz
		clear_variable = ZJA.seguny_legitimnost_summa_deneg
		clear_variable = ZJA.seguny_legitimnost_summa_weapon
	}
}	

### эвент для сёгунов что хань своими оружейными поставками полностью погасила долг перед нами
country_event = {
	id = hanchines.93
	title = hanchines.93.t
	desc = hanchines.93.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.93.a
		clr_global_flag = zha_segunat_dolg_defolt
	}
}	


### эвент для императора ёсиро о том что хань предлагает нам помочь с добровольцами но в обмен они по завершению войны хотят себе город-порт йонампхо. мы когда то его отжали у кореи, ну чуть что сможем передать и хань за добрые дела. не корейцам же отдавать.
country_event = {
	id = hanchines.94
	title = hanchines.94.t
	desc = hanchines.94.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.94.a
		ai_chance = { factor = 20 }
		effect_tooltip = {
			if = {
				limit = {
					ZNP = {
						controls_state = 805
					}
				}
				ZHA = {
					transfer_state = 805
				}
			}
			if = {
				limit = {
					ZNP = {
						NOT = {
							controls_state = 805
						}	
					}
				}
				ZHA = {
					add_state_claim = 805
				}
			}
		}
		add_manpower = 35471
		add_ideas = zha_to_znp_volontery	
		ZHA = {
			country_event = { id = hanchines.95 }
		}		
	}
	option = {
		name = hanchines.94.b
		ai_chance = { factor = 2 }
		add_political_power = 20
		ZHA = {
			country_event = { id = hanchines.96 }
		}
	}
}	

### эвент для хань что ёсиро принял наших добровольцев и отказался от прав на город порт Йонампхо (тут такая тонкость, что если он контролит порт то передает его хань, если нет то убирает претензии с него. а хань получает претензии на него.) +новость
country_event = {
	id = hanchines.95
	title = hanchines.95.t
	desc = hanchines.95.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.95.a
		if = {
			limit = {
				ZNP = {
					controls_state = 805
				}
			}
			ZHA = {
				transfer_state = 805
			}
		}
		if = {
			limit = {
				ZNP = {
					NOT = {
						controls_state = 805
					}	
				}
			}
			ZHA = {
				add_state_claim = 805
			}
		}
		if = {
			limit = {
				805 = {
					is_claimed_by = ZNP	
				}
			}
			ZNP = {
				remove_state_claim = 805
			}
		}
		add_manpower = -35471
		add_named_threat = { threat = 1 name = hanchines.95.threatt }
		effect_tooltip = {
			ZNP = {
				add_ideas = zha_to_znp_volontery
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.793 }
		}
	}
}

### эвент для хань что ёсиро не принял наших добровольцев в обмен на йонампхо
country_event = {
	id = hanchines.96
	title = hanchines.96.t
	desc = hanchines.96.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.96.a
		
	}
}

### эвент для хань что императрица толкнула суперречь о том что юань теперь канула в лета и эти земли теперь Хань + новость
country_event = {
	id = hanchines.97
	title = hanchines.97.t
	desc = hanchines.97.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.97.a
		add_war_support = 0.03
		add_political_power = 80
		add_named_threat = { threat = 2 name = hanchines.97.threatt }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.794 }
		}
	}
}

### эвент для ёсиро о том что хань (любая идеология) предлагает научное сотрудничество. да или нет
country_event = {
	id = hanchines.98
	title = hanchines.98.t
	desc = hanchines.98.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.98.a
		ai_chance = { factor = 20 }
		add_ideas = zha_znp_nauka_boost
		effect_tooltip = {
			ZHA = {
				add_ideas = zha_znp_zha_nauka_boost
			}
		}
		ZHA = {
			country_event = { id = hanchines.99 }
		}
	}
	option = {
		name = hanchines.98.b
		ai_chance = { factor = 2 }
		ZHA = {
			country_event = { id = hanchines.100 }
		}
	}
}
### эвент для хань что ёсиро согласен на научное сотрудничество
country_event = {
	id = hanchines.99
	title = hanchines.99.t
	desc = hanchines.99.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.99.a
		add_ideas = zha_znp_zha_nauka_boost
	}
}
### эвент для хань что ёсиро НЕ согласен на научное сотрудничество
country_event = {
	id = hanchines.100
	title = hanchines.100.t
	desc = hanchines.100.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.100.a		
	}
}
### эвент для сёгунов о том что хань (любая идеология) прислала к нам своих людей чтобы те помогали нам на верфях стоить корабли. ну а мы им поможем с флотом (бонусы на изучение флота). спасибо им кароч
country_event = {
	id = hanchines.101
	title = hanchines.101.t
	desc = hanchines.101.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.101.a
		navy_experience = 50	
		effect_tooltip = {
			add_timed_idea = {
				idea = zha_for_zja_bonus_verfi
				days = 365
			}
		}
	}
}
### эвент для уруссинии о том что в хань преддефол
country_event = {
	id = hanchines.102
	title = hanchines.102.t
	desc = hanchines.102.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.102.a
		ai_chance = { factor = 10 }
		add_political_power = -80	
		ZHA = {
			country_event = { id = hanchines.103 }
		}
	}
	option = {
		name = hanchines.102.b
		ai_chance = { factor = 2 }		
	}
}
### эвент для хань что урусы нам подсобили денежкой
country_event = {
	id = hanchines.103
	title = hanchines.103.t
	desc = hanchines.103.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.103.a	
		custom_effect_tooltip = hanchines.103.tt
		add_to_variable = {
			var = zha_summa_dolga
			value = 15
		}
	}
}

### эвент Восттавшим варлордам
country_event = {
	id = hanchines.104
	title = hanchines.104.t
	desc = hanchines.104.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes		
	option = {
		name = hanchines.104.a	
		set_country_flag = zha_zona_warlordov_flag
	}
}

### эвент варлордам, распадаемся
country_event = {
	id = hanchines.105
	title = hanchines.105.t
	desc = hanchines.105.d
	picture = GFX_report_event_soviet_tanks_snow	
	trigger = {
		original_tag = ZHA
		has_country_flag = zha_zona_warlordov_flag
		has_civil_war = no					
	}
	mean_time_to_happen = { days = 4 }
	fire_only_once = yes
	immediate = {
		clr_country_flag = zha_zona_warlordov_flag
		if = {
			limit = {
				owns_state = 1097
			}
			XHN = {
				transfer_state = 1097
			}	
		}
		if = {
			limit = {
				owns_state = 1099
			}
			XHN = {
				transfer_state = 1099
			}	
		}
		if = {
			limit = {
				owns_state = 1100
			}
			XHN = {
				transfer_state = 1100
			}	
		}
		if = {
			limit = {
				owns_state = 1103
			}
			XTS = {
				transfer_state = 1103
			}	
		}
		if = {
			limit = {
				owns_state = 1104
			}
			XTS = {
				transfer_state = 1104
			}	
		}
		if = {
			limit = {
				owns_state = 1117
			}
			XYN = {
				transfer_state = 1117
			}	
		}
		if = {
			limit = {
				owns_state = 1118
			}
			XSH = {
				transfer_state = 1118
			}	
		}
		if = {
			limit = {
				owns_state = 283
			}
			XSI = {
				transfer_state = 283
			}	
		}
		if = {
			limit = {
				owns_state = 606
			}
			XHN = {
				transfer_state = 606
			}	
		}
		if = {
			limit = {
				owns_state = 607
			}
			XHN = {
				transfer_state = 607
			}	
		}
		if = {
			limit = {
				owns_state = 615
			}
			XTS = {
				transfer_state = 615
			}	
		}
		if = {
			limit = {
				owns_state = 616
			}
			XSI = {
				transfer_state = 616
			}	
		}
		if = {
			limit = {
				owns_state = 622
			}
			XSH = {
				transfer_state = 622
			}	
		}
		if = {
			limit = {
				owns_state = 716
			}
			XYN = {
				transfer_state = 716
			}	
		}
		if = {
			limit = {
				owns_state = 744
			}
			XSH = {
				transfer_state = 744
			}	
		}
		if = {
			limit = {
				owns_state = 745
			}
			XYN = {
				transfer_state = 745
			}	
		}
		if = {
			limit = {
				owns_state = 746
			}
			XSI = {
				transfer_state = 746
			}	
		}
		if = {
			limit = {
				owns_state = 756
			}
			XSI = {
				transfer_state = 756
			}	
		}
		
		drop_cosmetic_tag = yes		
	}
	option = {
		name = hanchines.105.a
	}
}	