﻿add_namespace = japanimp

#gos perevorot seguny
country_event = {
	id = japanimp.1
	title = japanimp.1.t
	desc = japanimp.1.d
	picture = GFX_report_perevorot_segunov
	is_triggered_only = yes
#	trigger = {		
#		tag = ZJA
#		date > 1986.04.20
#		ZJA = {
#			has_government = neutrality
#			has_idea = zja_imperator_lalka
#			has_war = no
#		}
#		ZNP = {
#			is_puppet_of = ZJA
#			has_government = neutrality
#		}		
#	}
#	mean_time_to_happen = { days = 15 }
#	fire_only_once = yes	
	immediate = {
		hidden_effect = {
			set_global_flag = shogun_perevorot_flag
			ZJA = {
				hidden_effect = {
#					kill_country_leader = yes
					remove_country_leader_role = {
						character = ZJA_yoshiro
						ideology = despotism
					}
				}
				remove_ideas = zja_imperator_lalka
				set_politics = {			
					ruling_party = fascism
				}
				set_popularities = {
					democratic = 5
					neutrality = 10
					fascism = 80
					communism = 5
				}
				set_stability = 0.35
				set_war_support = 0.35
				add_country_leader_role = {
					character = "ZJA_taynyisovet"
					country_leader = {
						ideology = rexism
						traits = {  }
						expire = "2020.3.1.1"
					}	
					promote_leader = yes 
				}
				# create_country_leader = {
					# name = "Тайный совет"
					# desc = " "
					# picture = "taynyisovet.tga"
					# expire = "2020.1.1"
					# ideology = rexism
					# traits = {
						# #
					# }
				# }
				add_ideas = zja_shogunat
				add_ideas = zja_flot_predatelei
				if = {
					limit = {
						ZNP = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZNP
						autonomy_state = autonomy_free
					}
					ZNP = {
						country_event = { hours = 2 id = japanimp.60 }
					}
				}
				if = {
					limit = {
						ZTI = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZTI
						autonomy_state = autonomy_free
					}
					ZTI = {
						country_event = { hours = 5 id = japanimp.76 }
					}
				}
				if = {
					limit = {
						ZKN = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZKN
						autonomy_state = autonomy_free
					}
					ZKN = {
						country_event = { hours = 5 id = japanimp.84 }
					}
				}
				if = {
					limit = {
						ZKM = {
							is_subject_of = ZJA
						}
					}
					ZKM = {
						country_event = { days = 1 id = japanimp.6 }
					}
				}				
				ZNP = {
					country_event = { days = 3 id = japanimp.2 }			
				}								
				load_oob = "ZJA_1936_shogun"	
				news_event = { hours = 5 id = ar_news.644 }
				country_event = { id = japanimp.69 days = 15 random = 6 }
				country_event = { id = japanimp.94 days = 10 random = 5 }	
				country_event = { days = 5 id = japanimp.102 } # гарантии Ву, убрать?
			}
		}
	}
	option = {
		name = japanimp.1.a
		custom_effect_tooltip = japanimp.1.a.tt	
		add_named_threat = { threat = 8 name = jap_shogun_hunta_threat }		
		effect_tooltip = {		################
			ZJA = {
				remove_ideas = zja_imperator_lalka
				set_politics = {			
					ruling_party = fascism
				}
				set_popularities = {
					democratic = 5
					neutrality = 10
					fascism = 80
					communism = 5
				}
				set_stability = 0.35
				set_war_support = 0.35
				add_country_leader_role = {
					character = "ZJA_taynyisovet"
					country_leader = {
						ideology = rexism
						traits = {  }
						expire = "2020.3.1.1"
					}	
					promote_leader = yes 
				}
				# create_country_leader = {
					# name = "Тайный совет"
					# desc = " "
					# picture = "taynyisovet.tga"
					# expire = "2020.1.1"
					# ideology = rexism
					# traits = {
						# #
					# }
				# }
				add_ideas = zja_shogunat
				add_ideas = zja_flot_predatelei
				if = {
					limit = {
						ZNP = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZNP
						autonomy_state = autonomy_free
					}
					ZNP = {
						country_event = { hours = 2 id = japanimp.60 }
					}
				}
				if = {
					limit = {
						ZTI = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZTI
						autonomy_state = autonomy_free
					}
					ZTI = {
						country_event = { hours = 5 id = japanimp.76 }
					}
				}
				if = {
					limit = {
						ZKN = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZKN
						autonomy_state = autonomy_free
					}
					ZKN = {
						country_event = { hours = 5 id = japanimp.84 }
					}
				}
				if = {
					limit = {
						ZKM = {
							is_subject_of = ZJA
						}
					}
					ZKM = {
						country_event = { days = 1 id = japanimp.6 }
					}
				}
				hidden_effect = {
					
					ZNP = {
						country_event = { days = 3 id = japanimp.2 }			
					}
				}					
			}
		}	
	}
}

#imperator v nippon
country_event = {
	id = japanimp.2
	title = japanimp.2.t
	desc = japanimp.2.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
	
	}
	option = { 
		name = japanimp.2.a	
		ai_chance = { factor = 80 }
		ZJA = {
			ZJA_yoshiro = {
				set_nationality = ZNP
			}
		}
		ZNP = {
#			hidden_effect = {
#				kill_country_leader = yes
#			}
			drop_cosmetic_tag = yes
			ZJA_yoshiro = {
#				set_nationality = ZNP
				add_country_leader_role = {						
					country_leader = {	
						ideology = despotism
						traits = { znp_nash_imperator_tyta }						
					}	
					promote_leader = yes
				}
			}
			# create_country_leader = {
				# name = "Yoshiro"
				# desc = " "
				# picture = "sakatani_yosiro_arriver.tga"
				# expire = "2020.1.1"
				# ideology = despotism
				# traits = {
					# znp_nash_imperator_tyta
				# }
			# }
			set_cosmetic_tag = ZNP_IMPERAT
			set_global_flag = imperator_v_novoyaponii
			add_ideas = zja_imperator_v_nippon
			complete_national_focus = znp_imperator_arrived_focus
			transfer_state = 528
			transfer_state = 530
			transfer_state = 529
			ZJA = {
				transfer_units_fraction = {
					target = ZNP
					size = 0.5 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.5
					army_ratio = 0.3
					navy_ratio = 0.6
					air_ratio = 0.3
					keep_unit_leaders = {
								
					}
					keep_unit_leaders_trigger = {
						
					}
				}
			}
			declare_war_on = {
				target = ZJA
				type = civil_war
			}
			add_civil_war_target = ZJA				
			add_ai_strategy = {
				type = conquer
				id = ZJA
				value = 300
			}
			add_ai_strategy = {
				type = antagonize
				id = ZJA
				value = 300
			}
#			declare_war_on = {
#				type = puppet_wargoal_focus
#				target = ZJA
#			}
			add_named_threat = { threat = 4 name = jap_imper_anti_shogun_threat }
			every_state = {
				limit = {
					OR = {
						is_controlled_by = ZJA	#земли в африке
						is_core_of = ZJA
					}
				}
				add_claim_by = ZNP
			}
#			hidden_effect = {
#				load_oob = "ZNP_1936_imperat"
#			}	
		}
		ZJA = {
			country_event = {
				id = japanimp.3
			}
		}		
	}
	option = { 
		name = japanimp.2.b	
		ai_chance = { factor = 10 }
		custom_effect_tooltip = japanimp.2.b.tt
		add_stability = 0.1
		set_global_flag = znp_ne_prinyala_imperatora
		complete_national_focus = znp_nasha_svoboda
		ZJA = {
			country_event = {
				id = japanimp.5
			}
		}
	}
	option = { 
		name = japanimp.2.c	
		ai_chance = { factor = 5 }
		custom_effect_tooltip = japanimp.2.c.tt
		add_stability = 0.1
		set_global_flag = znp_ne_prinyala_imperatora		
#		set_global_flag = segunat_is_wins
		complete_national_focus = znp_nasha_svoboda
		ZNP = {
			country_event = { days = 1 id = japanimp.82 }			
		}
	}
}
#objavlenie voiny
country_event = {
	id = japanimp.3
	title = japanimp.3.t
	desc = japanimp.3.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.3.a	
		add_ai_strategy = {
			type = conquer
			id = ZNP
			value = 300
		}
		add_ai_strategy = {
			type = antagonize
			id = ZNP
			value = 300
		}
		every_state = {
			limit = {
				is_owned_by = ZNP
			}
			add_claim_by = ZJA
		}
	}	
}
#dlya korei zcs
country_event = {
	id = japanimp.4
	title = japanimp.4.t
	desc = japanimp.4.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.4.a	
		declare_war_on = {
			type = puppet_wargoal_focus
			target = ZJA					
		}
#		declare_war_on = {
#			type = puppet_wargoal_focus
#			target = ZNP					
#		}
		if = {
			limit = {
				NOT = {
					owns_state = 805
				}
			}
			add_state_claim = 805
		}
		if = {
			limit = {
				NOT = {
					owns_state = 794
				}
			}
			add_state_claim = 794
		}
		if = {
			limit = {
				NOT = {
					owns_state = 803
				}
			}
			add_state_claim = 803
		}		
		add_state_claim = 560
		add_state_claim = 625
		add_state_claim = 627
		add_named_threat = { threat = 5 name = korea_pretenduet_na_zemli_jap_threat }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.645 }
		}		
	}	
}
#znp Ne vstupaet v voinu
country_event = {
	id = japanimp.5
	title = japanimp.5.t
	desc = japanimp.5.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.5.a	
		custom_effect_tooltip = japanimp.5.a.tt 
	}	
}

#nosurand vopros o nezavisimosti
country_event = {
	id = japanimp.6
	title = japanimp.6.t
	desc = japanimp.6.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.6.a	
		ai_chance = { factor = 80 }
		set_global_flag = nosurand_revol
		if = {
			limit = {
				ZKM = {
					is_subject_of = ZJA
				}
			}
			ZJA = {
				set_autonomy = {
					target = ZKM
					autonomy_state = autonomy_free
				}
#				end_puppet = ZKM
			}
			add_war_support = 0.1
		}
		drop_cosmetic_tag = yes
		ZJA = {
			country_event = { days = 1 id = japanimp.7 }			
		}
	}
	option = { 
		name = japanimp.6.b	
		ai_chance = { factor = 5 }
		add_stability = -0.1
	}
}
#nosurand ofigeli
country_event = {
	id = japanimp.7
	title = japanimp.7.t
	desc = japanimp.7.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.7.a	
		ai_chance = { factor = 60 }		
		declare_war_on = {
			type = annex_everything
			target = ZKM
		}
		add_named_threat = { threat = 3 name = zja_podavlayet_nosur_threat }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.653 }
		}
	}
	option = { 
		name = japanimp.7.b		
		ai_chance = { factor = 5 }
		add_stability = -0.05
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.654 }			
		}
	}	
}
#nosurand dobilis
country_event = {
	id = japanimp.8
	title = japanimp.8.t
	desc = japanimp.8.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.8.a	
		ZJA = {
			if = {
				limit = {  has_war_with = ZKM  }
				white_peace = {
					tag = ZKM 
					message = ZKM_agree_peace 
				} 
			}						
		}
		ZKM = {
			country_event = {
				id = japanimp.9
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.652 }
		}
	}	
}
#nosurand dobilis message
country_event = {
	id = japanimp.9
	title = japanimp.9.t
	desc = japanimp.9.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.9.a	
		add_stability = 0.2
			transfer_state = 562
			transfer_state = 637
						
			if = {
				limit = {
					ZJA = {
						controls_state = 560
					}
				}
				transfer_state = 560
			}
			if = {
				limit = {
					NOT = {
						controls_state = 939
					}
				}
				transfer_state = 939
			}
		
	}	
}
#tihookeanskaya han okuup alaska
country_event = {
	id = japanimp.10
	title = japanimp.10.t
	desc = japanimp.10.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.10.a	
		add_stability = 0.2
		if = {
			limit = {
				NOT = {
					controls_state = 471
				}
			}
			transfer_state = 471
		}
		if = {
			limit = {
				NOT = {
					controls_state = 463
				}
			}
			transfer_state = 463
		}
		if = {
			limit = {
				NOT = {
					controls_state = 739
				}
			}
			transfer_state = 739
		}
		add_named_threat = { threat = 8 name = tih_okeans_han_okkup_alaska }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.655 }
		}
	}	
}
#ZTH initial border incident against ZJA
country_event = {
	id = japanimp.11
	title = japanimp.11.t
	desc = japanimp.11.d
	picture = GFX_report_event_japan_army_mountainside
	is_triggered_only = yes
	option = {
		name = japanimp.11.a
	}
}
#ZTH wins!!!!
country_event = {
	id = japanimp.12
	title = japanimp.12.t
	desc = japanimp.12.d
	picture = GFX_report_event_japan_army_mountainside
	is_triggered_only = yes
	option = {
		name = japanimp.12.a
		trigger = {
			original_tag = ZTH
		}
		if = {
			limit = {
				NOT = {
					controls_state = 471
				}
			}
			transfer_state = 471
		}
		if = {
			limit = {
				ZJA = {
					controls_state = 739
				}
			}
			transfer_state = 739
		}
		add_named_threat = { threat = 5 name = tih_okeans_han_okkup_alaska }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.655 }
			set_global_flag = ZTH_nista_a_owner
		}
	}
	option = {
		name = japanimp.12.b
		trigger = {
			original_tag = ZJA
		}
		army_experience = 20
	}
}
#ZTH loses
country_event = {
	id = japanimp.13
	title = japanimp.13.t
	desc = japanimp.13.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.13.a
		trigger = {
			original_tag = ZTH
		}
		army_experience = 25
	}
	option = {
		name = japanimp.13.b
		trigger = {
			original_tag = ZJA
		}
		add_doctrine_cost_reduction = {
			name = land_doc_bonus
			category = land_doctrine
			cost_reduction = 0.25
		}
	}
}
#ZTH vs ZJA nichya
country_event = {
	id = japanimp.14
	title = japanimp.14.t
	desc = japanimp.14.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.14.a
		trigger = {
			original_tag = ZTH
		}
		army_experience = 50
	}
	option = {
		name = japanimp.14.b
		trigger = {
			original_tag = ZJA
		}
		army_experience = 50
	}
}
#ZTH escalates
country_event = {
	id = japanimp.15
	title = japanimp.15.t
	desc = japanimp.15.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.15.a		
	}	
}
#ZNP annex revolutioner sebe   NADO TESTIT - VRODE OKEI ####### nato testit bely mir
country_event = {
	id = japanimp.16
	title = japanimp.16.t
	desc = japanimp.16.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.16.a
#		hidden_effect = {		
#			white_peace = ZJA
#		}		
		ZNP = {
			annex_country = {
				target = ROOT
				transfer_troops = yes
			}
		}
		hidden_effect = {		
			white_peace = ZJA
		}
		ZJA = {
			country_event = { days = 2 id = japanimp.77 }
		}
	}	
}
#CHOSON zabiraet ionampho
country_event = {
	id = japanimp.17
	title = japanimp.17.t
	desc = japanimp.17.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.17.a	
		ZCS = {
			transfer_state = 805
			805 = { set_state_name = STATE_805_zcs }
			set_province_name = { id = 11835 name = VICTORY_POINTS_11835_zcs }
			add_stability = 0.05
			add_war_support = 0.07
			add_named_threat = { threat = 4 name = choson_zabiraet_ionamp_threat }
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.688 }
			}
		}
		ZJA = {
			country_event = {
				id = japanimp.18
			}
		}
	}	
}
#CHOSON zabiraet ionampho dlya ZJA
country_event = {
	id = japanimp.18
	title = japanimp.18.t
	desc = japanimp.18.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.18.a
		effect_tooltip = {		
			ZCS = {
				transfer_state = 805
				805 = { set_state_name = STATE_805_zcs }
				set_province_name = { id = 11835 name = VICTORY_POINTS_11835_zcs }
			}
		}
		if = {
			limit = {
				has_opinion_modifier = zcs_obman_zja_2					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_2
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_3
			}
		}
		if = {
			limit = {
				has_opinion_modifier = zcs_obman_zja_1					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_1
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_2
			}
		}
		if = {
			limit = {
				NOT = {
					has_opinion_modifier = zcs_obman_zja_1
					has_opinion_modifier = zcs_obman_zja_2
					has_opinion_modifier = zcs_obman_zja_3
				}	
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_1
			}
		}
		add_stability = -0.03
		add_war_support = -0.03			
	}	
}
#CHOSON zabiraet urajiosutoku
country_event = {
	id = japanimp.19
	title = japanimp.19.t
	desc = japanimp.19.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.19.a	
		ZCS = {
			transfer_state = 794
			794 = { set_state_name = STATE_794_zcs }
			set_province_name = { id = 957 name = VICTORY_POINTS_957_zcs }
			add_stability = 0.05
			add_war_support = 0.07
			add_named_threat = { threat = 4 name = choson_zabiraet_urajio_threat }
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.689 }
			}
		}
		ZJA = {
			country_event = {
				id = japanimp.20
			}
		}
	}	
}
#CHOSON zabiraet urajiosutoku dlya ZJA
country_event = {
	id = japanimp.20
	title = japanimp.20.t
	desc = japanimp.20.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.20.a
		effect_tooltip = {		
			ZCS = {
				transfer_state = 794
				794 = { set_state_name = STATE_794_zcs }
				set_province_name = { id = 957 name = VICTORY_POINTS_957_zcs }
			}
		}
		if = {
			limit = {
				has_opinion_modifier = zcs_obman_zja_2					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_2
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_3
			}
		}
		if = {
			limit = {
				has_opinion_modifier = zcs_obman_zja_1					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_1
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_2
			}
		}
		if = {
			limit = {
				NOT = {
					has_opinion_modifier = zcs_obman_zja_1
					has_opinion_modifier = zcs_obman_zja_2
					has_opinion_modifier = zcs_obman_zja_3
				}	
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_1
			}
		}
		add_stability = -0.03
		add_war_support = -0.03		
	}	
}
#CHOSON zabiraet resen
country_event = {
	id = japanimp.21
	title = japanimp.21.t
	desc = japanimp.21.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.21.a	
		ZCS = {
			transfer_state = 803
			803 = { set_state_name = STATE_803_zcs }
			set_province_name = { id = 6833 name = VICTORY_POINTS_6833_zcs }
			add_stability = 0.05
			add_war_support = 0.07
			add_named_threat = { threat = 4 name = choson_zabiraet_resen_threat }
			hidden_effect = {
				news_event = { hours = 3 id = ar_news.690 }
			}
		}
		ZJA = {
			country_event = {
				id = japanimp.22
			}
		}
	}	
}
#CHOSON zabiraet resen dlya ZJA
country_event = {
	id = japanimp.22
	title = japanimp.22.t
	desc = japanimp.22.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.22.a
		effect_tooltip = {		
			ZCS = {
				transfer_state = 803
				803 = { set_state_name = STATE_803_zcs }
				set_province_name = { id = 6833 name = VICTORY_POINTS_6833_zcs }
			}
		}
		if = {
			limit = {
				has_opinion_modifier = zcs_obman_zja_2					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_2
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_3
			}
		}
		if = {
			limit = {
				has_opinion_modifier = zcs_obman_zja_1					
			}
			remove_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_1
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_2
			}
		}
		if = {
			limit = {
				NOT = {
					has_opinion_modifier = zcs_obman_zja_1
					has_opinion_modifier = zcs_obman_zja_2
					has_opinion_modifier = zcs_obman_zja_3
				}	
			}
			add_opinion_modifier = {
				target = ZCS
				modifier = zcs_obman_zja_1
			}
		}
		add_stability = -0.03
		add_war_support = -0.03		
	}	
}
#korea ktebuet goroda ot segunov
country_event = {
	id = japanimp.23
	title = japanimp.23.t
	desc = japanimp.23.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.23.a	
		ai_chance = {
			factor = 5 
			modifier = {
				factor = 15
				ZJA = {
					surrender_progress > 0.1
				}
			}	
		}
		add_stability = -0.03
		add_war_support = -0.03
		effect_tooltip = {
			ZCS = {
				transfer_state = 803
				transfer_state = 794
				transfer_state = 805
				add_stability = 0.05
				add_war_support = 0.05
				if = {
					limit = {
						has_idea = choson_gorest_porajenia
					}
					remove_ideas = choson_gorest_porajenia
				}
			}
		}
		ZCS = {
			country_event = {
				id = japanimp.24
			}
		}		
	}
	option = { 
		name = japanimp.23.b		
		ai_chance = { factor = 30 }	
		add_stability = 0.08
		add_war_support = 0.08
		ZCS = {
			country_event = {
				id = japanimp.25
			}
		}
	}	
}
#CHOSON zabiraet svoi sranye goroda
country_event = {
	id = japanimp.24
	title = japanimp.24.t
	desc = japanimp.24.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.24.a	
		ZCS = {
			transfer_state = 803
			transfer_state = 794
			transfer_state = 805
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = {
					has_idea = choson_gorest_porajenia
				}
				remove_ideas = choson_gorest_porajenia
			}
			803 = { set_state_name = STATE_803_zcs }
			set_province_name = { id = 6833 name = VICTORY_POINTS_6833_zcs }
			794 = { set_state_name = STATE_794_zcs }
			set_province_name = { id = 957 name = VICTORY_POINTS_957_zcs }
			805 = { set_state_name = STATE_805_zcs }
			set_province_name = { id = 11835 name = VICTORY_POINTS_11835_zcs }
		}		
	}	
}
#ZJA otkazali koree v peredache zemel
country_event = {
	id = japanimp.25
	title = japanimp.25.t
	desc = japanimp.25.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.25.a	
		ai_chance = {
			factor = 15 				
		}
		declare_war_on = {
			type = puppet_wargoal_focus
			target = ZJA					
		}
		if = {
			limit = {
				NOT = {
					owns_state = 805
				}
			}
			add_state_claim = 805
		}
		if = {
			limit = {
				NOT = {
					owns_state = 794
				}
			}
			add_state_claim = 794
		}
		if = {
			limit = {
				NOT = {
					owns_state = 803
				}
			}
			add_state_claim = 803
		}
		add_state_claim = 560
		add_state_claim = 625
		add_state_claim = 627
		add_named_threat = { threat = 4 name = korea_pretenduet_na_zemli_jap_threat }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.645 }
		}
	}
	option = { 
		name = japanimp.25.b		
		ai_chance = { factor = 5 }
		if = {
			limit = {
				NOT = {
					owns_state = 805
				}
			}
			add_state_claim = 805
		}
		if = {
			limit = {
				NOT = {
					owns_state = 794
				}
			}
			add_state_claim = 794
		}
		if = {
			limit = {
				NOT = {
					owns_state = 803
				}
			}
			add_state_claim = 803
		}
		add_stability = 0.05
		add_war_support = 0.05
	}	
}
#####################################################################
#эвент предвестник большого дерьмица в японии
country_event = {
	id = japanimp.26
	title = japanimp.26.t
	desc = japanimp.26.d
	picture = GFX_report_event_usa_heavy_cruiser
	trigger = {		
		tag = ZJA
		date > 1986.03.03
		ZJA = {
			has_government = neutrality
			has_idea = zja_imperator_lalka
			has_war = no
		}
		ZNP = {
			is_subject_of = ZJA
			has_government = neutrality
		}		
	}
	mean_time_to_happen = { days = 15 }
	fire_only_once = yes
	immediate = {
		set_variable = { var_zja_segun = 0 } 
		set_variable = { var_zja_imper = 0 } 
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.732 }
		}
	}
	option = {
		name = japanimp.26.a
		ai_chance = { factor = 100 }
		custom_effect_tooltip = japanimp.26.a.tt
		hidden_effect = {
			country_event = { days = 30 id = japanimp.27 }
			country_event = { days = 14 id = japanimp.38 }
			add_to_variable = { var_zja_segun = 1 } 
		}
	}
	option = {
		name = japanimp.26.b
		ai_chance = { factor = 0 }
		custom_effect_tooltip = japanimp.26.b.tt
		hidden_effect = {
			country_event = { days = 30 id = japanimp.27 }
			country_event = { days = 14 id = japanimp.38 }
			add_to_variable = { var_zja_imper = 1 } 
		}		
	}	
}
# (Hidden)
country_event = {
	id = japanimp.27	
	is_triggered_only = yes
	hidden = yes	
	immediate = {
		if = {
			limit = {
				ZJA = {
					has_government = neutrality
					has_idea = zja_imperator_lalka
					has_war = no
				}
				ZNP = {
					is_subject_of = ZJA
					has_government = neutrality
				}
			}
			country_event = {
				id = japanimp.28
			}
		}		
	}
	option = {
		name = japanimp.27.a			
	}
}
#Тайный Совет Сёгунов вновь собрался
country_event = {
	id = japanimp.28
	title = japanimp.28.t
	desc = japanimp.28.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.28.a
		ai_chance = { factor = 0 }
		custom_effect_tooltip = japanimp.26.b.tt
		hidden_effect = {
			country_event = { days = 30 id = japanimp.29 }
			country_event = { days = 10 id = japanimp.39 }
			add_to_variable = { var_zja_imper = 1 }
			news_event = { days = 4 id = ar_news.928 }
		}		
	}
	option = {
		name = japanimp.28.b
		ai_chance = { factor = 100 }
		custom_effect_tooltip = japanimp.26.a.tt
		hidden_effect = {
			country_event = { days = 30 id = japanimp.29 }
			country_event = { days = 10 id = japanimp.39 }
			add_to_variable = { var_zja_segun = 1 } 
			news_event = { days = 4 id = ar_news.928 }
		}		
	}	
}
# (Hidden)
country_event = {
	id = japanimp.29	
	is_triggered_only = yes
	hidden = yes	
	immediate = {
		if = {
			limit = {
				ZJA = {
					has_government = neutrality
					has_idea = zja_imperator_lalka
					has_war = no
				}
				ZNP = {
					is_subject_of = ZJA
					has_government = neutrality
				}
			}
			country_event = {
				id = japanimp.30
			}
		}		
	}
	option = {
		name = japanimp.29.a			
	}
}
#еще один эвент
country_event = {
	id = japanimp.30
	title = japanimp.30.t
	desc = japanimp.30.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.30.a
		ai_chance = { factor = 0 }
		custom_effect_tooltip = japanimp.26.b.tt
		hidden_effect = {
			country_event = { days = 2 id = japanimp.3100 }
			add_to_variable = { var_zja_imper = 1 }
		}		
	}
	option = {
		name = japanimp.30.b
		ai_chance = { factor = 100 }
		custom_effect_tooltip = japanimp.26.a.tt		
		hidden_effect = {
			country_event = { days = 2 id = japanimp.3100 }
			add_to_variable = { var_zja_segun = 1 }
		}
	}	
}
# (Hidden)
country_event = {
	id = japanimp.3100	
	is_triggered_only = yes
	hidden = yes	
	immediate = {
		if = {
			limit = {
				ZJA = {
					has_government = neutrality
					has_idea = zja_imperator_lalka
					has_war = no
				}
				ZNP = {
					is_subject_of = ZJA
					has_government = neutrality
				}
			}
			country_event = {
				id = japanimp.31
			}
		}		
	}
	option = {
		name = japanimp.3100.a			
	}
}
#решающий момент
country_event = {
	id = japanimp.31
	title = japanimp.31.t
	desc = japanimp.31.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	immediate = {	
		if = {
			limit = {
				check_variable = {
					var = var_zja_imper
					value = var_zja_segun
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = japanimp.31.imperatorwin
		}
		if = {
			limit = {
				check_variable = {
					var = var_zja_segun
					value = var_zja_imper
					compare = greater_than
				}
			}
			custom_effect_tooltip = japanimp.31.segunwin
		}
	}
	option = {
		name = japanimp.31.a			
		if = {
			limit = {
				ZNP = {
					is_ai = yes
				}
				check_variable = {
					var = var_zja_imper
					value = var_zja_segun
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = japanimp.31.a1
			country_event = {
				id = japanimp.32
			}
		}
		if = {
			limit = {
				ZNP = {
					is_ai = no
				}
				check_variable = {
					var = var_zja_imper
					value = var_zja_segun
					compare = greater_than_or_equals
				}
			}
			custom_effect_tooltip = japanimp.31.a2
			country_event = {
				id = japanimp.1
			}
		}
		if = {
			limit = {
				check_variable = {
					var = var_zja_segun
					value = var_zja_imper
					compare = greater_than
				}
			}
			custom_effect_tooltip = japanimp.31.a3
			country_event = {
				id = japanimp.1
			}
		}
	}	
}
#бежим пока не поздно
country_event = {
	id = japanimp.32
	title = japanimp.32.t
	desc = japanimp.32.d
	picture = GFX_report_event_japanese_soldiers_03
	is_triggered_only = yes
	option = {
		name = japanimp.32.a
		hidden_effect = {
			kill_country_leader = yes
		}
		ZNP = {
			country_event = { days = 1 id = japanimp.33 }			
		}
	}	
}
#император-игрок прибывает в новояпонию эвент для ИИ новояпов
country_event = {
	id = japanimp.33
	title = japanimp.33.t
	desc = japanimp.33.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.33.a	
		ai_chance = { factor = 100 }
		ZJA = {
			country_event = { days = 1 id = japanimp.34 }	
		}

	}
}
#император-игрок меняет тэг на новояпонию
country_event = {
	id = japanimp.34
	title = japanimp.34.t
	desc = japanimp.34.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			ZNP = { change_tag_from = ZJA }
			ZNP = {
				set_politics = {								
					ruling_party = neutrality
				}
				set_popularities = {				
					neutrality = 100				
				}				
				kill_country_leader = yes
				set_global_flag = imperator_v_novoyaponii					
				drop_cosmetic_tag = yes
				ZJA_yoshiro = {
					set_nationality = ZNP
					add_country_leader_role = {					
						country_leader = {
							ideology = despotism
							traits = { znp_nash_imperator_tyta }						
						}
						promote_leader = yes						
					}
				}
				# create_country_leader = {
					# name = "Yoshiro"
					# desc = " "
					# picture = "sakatani_yosiro_arriver.tga"
					# expire = "2020.1.1"
					# ideology = despotism
					# traits = {	
						# znp_nash_imperator_tyta	
					# }
				# }
				set_cosmetic_tag = ZNP_IMPERAT
				add_ideas = zja_imperator_v_nippon
				complete_national_focus = znp_imperator_arrived_focus
				country_event = { days = 1 id = japanimp.35 }	
			}
		}
	}
	option = { 
		name = japanimp.34.a
		effect_tooltip = {		#####
			ZNP = { change_tag_from = ZJA }
			ZNP = {
				set_politics = {								
					ruling_party = neutrality
				}
				set_popularities = {				
					neutrality = 100				
				}					
				drop_cosmetic_tag = yes
				ZJA_yoshiro = {
					set_nationality = ZNP
					add_country_leader_role = {					
						country_leader = {
							ideology = despotism
							traits = { znp_nash_imperator_tyta }						
						}
						promote_leader = yes
					}
				}
				# create_country_leader = {
					# name = "Yoshiro"
					# desc = " "
					# picture = "sakatani_yosiro_arriver.tga"
					# expire = "2020.1.1"
					# ideology = despotism
					# traits = {	
						# znp_nash_imperator_tyta	
					# }
				# }
				set_cosmetic_tag = ZNP_IMPERAT
				add_ideas = zja_imperator_v_nippon
				complete_national_focus = znp_imperator_arrived_focus
				country_event = { days = 1 id = japanimp.35 }	
			}
		}		
	}
}
#погнали нхйбнрт
country_event = {
	id = japanimp.35
	title = japanimp.35.t
	desc = japanimp.35.d
	picture = GFX_report_perevorot_segunov	
	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			ZJA = {
				set_global_flag = shogun_perevorot_flag
				remove_ideas = zja_imperator_lalka
				set_politics = {			
					ruling_party = fascism
				}
				set_popularities = {			
					neutrality = 20
					fascism = 80			
				}
				set_stability = 0.35
				set_war_support = 0.35
				add_country_leader_role = {
					character = "ZJA_taynyisovet"
					country_leader = {
						ideology = rexism
						traits = { warrior_code }
						expire = "2020.3.1.1"
					}	
					promote_leader = yes 
				}
				# create_country_leader = {
					# name = "Тайный совет"
					# desc = " "
					# picture = "taynyisovet.tga"
					# expire = "2020.1.1"
					# ideology = rexism
					# traits = {
						# warrior_code
					# }
				# }
				add_ideas = zja_shogunat
				add_ideas = zja_flot_predatelei
				if = {
					limit = {
						ZNP = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZNP
						autonomy_state = autonomy_free
					}
				}
				if = {
					limit = {
						ZTI = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZTI
						autonomy_state = autonomy_free
					}
					ZTI = {
						country_event = { hours = 5 id = japanimp.76 }
					}
				}
				if = {
					limit = {
						ZKN = {
							is_subject_of = ZJA
						}
					}
					set_autonomy = {
						target = ZKN
						autonomy_state = autonomy_free
					}
					ZKN = {
						country_event = { hours = 5 id = japanimp.84 }
					}
				}
				if = {
					limit = {
						ZKM = {
							is_subject_of = ZJA
						}
					}
					ZKM = {
						country_event = { days = 1 id = japanimp.6 }
					}
				}				
				transfer_units_fraction = {
					target = ZNP
					size = 0.5 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.5
					army_ratio = 0.3
					navy_ratio = 0.6
					air_ratio = 0.3
					keep_unit_leaders = {
									
					}
					keep_unit_leaders_trigger = {
							
					}
				}
				declare_war_on = {
					target = ZNP
					type = civil_war
				}
				add_civil_war_target = ZNP				
				add_ai_strategy = {
					type = conquer
					id = ZNP
					value = 300
				}
				add_ai_strategy = {
					type = antagonize
					id = ZNP
					value = 300
				}				
				add_named_threat = { threat = 8 name = jap_shogun_hunta_threat }							
			}
		}
	}
	option = { 
		name = japanimp.35.a		
		ZNP = {
			country_event = { days = 1 id = japanimp.36 }
		}
		effect_tooltip = {
			ZJA = {
				declare_war_on = {
					target = ZNP
					type = civil_war
				}
				add_civil_war_target = ZNP	
			}
		}
		set_party_name = { 
			ideology = neutrality 				
			name = ZNP_ekstrenny_sovet_imperat 
		}
		add_ai_strategy = {
			type = conquer
			id = ZJA
			value = 300
		}
		add_ai_strategy = {
			type = antagonize
			id = ZJA
			value = 300
		}
		hidden_effect = {	
	#		load_oob = "ZJA_1936_shogun"	
			news_event = { hours = 5 id = ar_news.644 }
	#		country_event = { id = japanimp.69 days = 15 random = 6 }
			country_event = { id = japanimp.94 days = 10 random = 5 }	
		}
	}
}
#наш выбор, чо делать то будем, император
country_event = {
	id = japanimp.36
	title = japanimp.36.t
	desc = japanimp.36.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.36.a
		custom_effect_tooltip = japanimp.36.tt  		
		transfer_state = 528
		transfer_state = 530
		transfer_state = 529
#		declare_war_on = {
#				type = puppet_wargoal_focus
#				target = ZJA
#		}
		add_named_threat = { threat = 4 name = jap_imper_anti_shogun_threat }
		every_state = {
			limit = {
				OR = {
					is_controlled_by = ZJA
					is_core_of = ZJA
				}
			}
			add_claim_by = ZNP
		}
		custom_effect_tooltip = japanimp.36.1.tt 
		hidden_effect = {
			load_oob = "ZNP_1936_imperat"
		}
#		hidden_effect = {
#			every_other_country = {
#				limit = { 
#					original_tag = ZJA
#					has_government = neutrality
#				}
#				country_event = {
#					id = japanimp.16
#				}				
#			}
#		}
		ZJA = {
			country_event = {
				id = japanimp.37
			}
			hidden_effect = {			
				country_event = { id = japanimp.69 days = 15 random = 6 }
			}	
		}
	}	
}
#эвент для японии что император доплыл
country_event = {
	id = japanimp.37
	title = japanimp.37.t
	desc = japanimp.37.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.37.a
		add_stability = -0.02
		add_war_support = 0.02
		every_state = {
			limit = {
				is_core_of = ZNP
			}
			add_claim_by = ZJA
		}
#		if = {
#			limit = {
#				has_idea = zha_ZJA_investitii_ot_zcs
#			}
#			remove_ideas = zha_ZJA_investitii_ot_zcs
#			ZHA = {
#				remove_ideas = zha_investitii_ot_zja
#				country_event = { days = 1 id = hanchines.37 }
#			}
#		}
	}	
}
#########
#эвент для японии чТо еще перед переворотом на склад напали
country_event = {
	id = japanimp.38
	title = japanimp.38.t
	desc = japanimp.38.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.38.a
		add_war_support = -0.02
		add_stability = -0.03
		if = {
			limit = {
				has_equipment = {
					infantry_equipment > 99
				}
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -100
			}
		}
	}	
}
#эвент для японии чТо еще перед переворотом на хировима верна императору
country_event = {
	id = japanimp.39
	title = japanimp.39.t
	desc = japanimp.39.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.39.a
		add_war_support = -0.02
		add_stability = -0.03
		hidden_effect = {
			country_event = { days = 5 id = japanimp.40 }
		}
	}	
}
#эвент для японии чТо еще перед переворотом на нагасаки верна императору
country_event = {
	id = japanimp.40
	title = japanimp.40.t
	desc = japanimp.40.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.40.a
		add_war_support = -0.02
		add_stability = -0.03
		add_popularity = {
			ideology = communism
			popularity = 0.05
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.733 }
		}
	}	
}
#судьба императорской семьи
country_event = {
	id = japanimp.41
	title = japanimp.41.t
	desc = japanimp.41.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.41.a
		ai_chance = {
			factor = 5 
			modifier = {
				factor = 30
				has_stability > 0.5
			}
		}
		add_stability = -0.1
		add_war_support = 0.1
	}
	option = { 
		name = japanimp.41.b
		ai_chance = { factor = 8 }
		custom_effect_tooltip = japanimp.41.b.tt
		add_stability = 0.1
		add_war_support = -0.1
	}	
}
#Реформы общественных институтов
country_event = {
	id = japanimp.42
	title = japanimp.42.t
	desc = japanimp.42.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.42.a
		add_political_power = 50
		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}
		add_stability = -0.03
	}		
}
##################################################################
##################################################################
##################################################################
#император страйк внедрение 1
country_event = {
	id = japanimp.43
	title = japanimp.43.t
	desc = japanimp.43.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.43.a	#быстрый план
		ai_chance = { factor = 20 }
		activate_targeted_decision = { target = ROOT decision = ZJA_imperatoristarget_fast_plan }	
	}
	option = { 
		name = japanimp.43.b	#медленный план
		ai_chance = { factor = 20 }
		activate_targeted_decision = { target = ROOT decision = ZJA_imperatoristarget_slowww_plan }
	}	
}

#император страйк снайперская позиция/ У окна её ждала винтовка, готовая к стрельбе. 
country_event = {
	id = japanimp.44
	title = japanimp.44.t
	desc = japanimp.44.d
	picture = GFX_report_event_generic_conference	
	trigger = {
		tag = ZJA
		has_government = fascism
		has_war_with = ZNP
		ZNP = {
			has_government = neutrality
		}
	}
	is_triggered_only = yes
	option = { 
		name = japanimp.44.a	#Стрелять
		ai_chance = { factor = 20 }
		if = {
			limit = {
				has_global_flag = znp_imperatora_nachali_zashishat_flag
			}
			hidden_effect = {
				random_list = {
					82 = {
						country_event = {
							id = japanimp.45
						}
					}
					18 = {
						country_event = {
							id = japanimp.46
						}	
					}	
				}
			}
			effect_tooltip = {
				custom_effect_tooltip = znp_imperatora_nachali_zashishat_tt
				random_list = {
					82 = {
						country_event = {
							id = japanimp.45
						}
					}
					18 = {
						country_event = {
							id = japanimp.46
						}
					}
				}
			}
			else = {
				hidden_effect = {
					random_list = {
						60 = {
							country_event = {
								id = japanimp.45
							}
						}
						40 = {
							country_event = {
								id = japanimp.46
							}	
						}	
					}
				}
				effect_tooltip = {
					custom_effect_tooltip = znp_imperatora_ne_nachali_zashishat_tt
					random_list = {
						60 = {
							country_event = {
								id = japanimp.45
							}
						}
						40 = {
							country_event = {
								id = japanimp.46
							}
						}
					}
				}
			}
		}	
			
	}
	option = { 
		name = japanimp.44.b	#Выждать
		ai_chance = { factor = 20 }
		country_event = {
				id = japanimp.47
		}
	}	
}
#Юкими  промазала, задание провалено
country_event = {
	id = japanimp.45
	title = japanimp.45.t
	desc = japanimp.45.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.45.a
		custom_effect_tooltip = japanimp.45.a.tt
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.4 }
			}
		}
	}		
}
#Юкими  попала, император ранен, найс шот
country_event = {
	id = japanimp.46
	title = japanimp.46.t
	desc = japanimp.46.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.46.a
		effect_tooltip = {
			ZNP = {
				kill_country_leader = yes
			}
		}
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.5 }
			}
		}
	}		
}
#Юкими  ждет цель поближе, но не судьба
country_event = {
	id = japanimp.47
	title = japanimp.47.t
	desc = japanimp.47.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.47.a	#Идти быстрым шагом
		ai_chance = { factor = 20 }
		country_event = {
				id = japanimp.48
		}
	}	
	option = { 
		name = japanimp.47.b	#Побежать
		ai_chance = { factor = 20 }
		country_event = {
				id = japanimp.54
		}
	}
}
#Юкими перешла на шаг, оказавшись в переулке.....Он бежал к ней с пистолетом в руке! Что же делать?
country_event = {
	id = japanimp.48
	title = japanimp.48.t
	desc = japanimp.48.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.48.a	#Стрелять
		ai_chance = { factor = 20 }
		country_event = {
				id = japanimp.49
		}
	}	
	option = { 
		name = japanimp.48.b	#Ждать
		ai_chance = { factor = 5 }
		custom_effect_tooltip = japanimp.48.b.tt 
		country_event = {
				id = japanimp.50
		}
	}
}
#Юкими быстрым движением изъяла свой пистолет и выстрелила в представителя правопорядка. 
country_event = {
	id = japanimp.49
	title = japanimp.49.t
	desc = japanimp.49.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.49.a	#Стрелять по колёсам и расстрелять охрану 
		ai_chance = { factor = 20 }
		if = {
			limit = {
				has_global_flag =  znp_imperator_umeet_strelyat_flag
			}
			hidden_effect = {
				random_list = {
					60 = {
						country_event = {
							id = japanimp.51
						}
					}
					40 = {
						country_event = {
							id = japanimp.53
						}
					}
				}
			}
			effect_tooltip = {
				custom_effect_tooltip = znp_imperator_umeet_strelyat_tt
				random_list = {
					60 = {
						country_event = {
							id = japanimp.51
						}
					}
					40 = {
						country_event = {
							id = japanimp.53
						}
					}
				}
			}
			else = {
				custom_effect_tooltip = znp_imperator_ne_umeet_strelyat_tt
				country_event = {
					id = japanimp.53
				}
			}
		}	
	}	
	option = { 
		name = japanimp.49.b	#Подождать 
		ai_chance = { factor = 20 }
		country_event = {
				id = japanimp.52
		}
	}
}
#Юкими остановилась и с наигранным испугом посмотрела на представителя правопорядка. 
country_event = {
	id = japanimp.50
	title = japanimp.50.t
	desc = japanimp.50.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.50.a	#но выстрел в голову убил её на месте. 
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.4 }
			}
		}
		
	}	
	
}
#Выстрел в колесо был удачным.  а девушка нет
country_event = {
	id = japanimp.51
	title = japanimp.51.t
	desc = japanimp.51.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.51.a	# Незавидная судьба. Жаль что операция провалена.
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.4 }
			}
		}
		
	}	
}
#Юкими медлила какой-то страж поднял руку и жестом указал кабриолету императора что здесь небезопасно.
country_event = {
	id = japanimp.52
	title = japanimp.52.t
	desc = japanimp.52.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.52.a	# Миссия провалена..
		custom_effect_tooltip = japanimp.52.tt 
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.4 }
			}
		}
	}	
	
}
#Император Ёсиро был застрелен в голову из собственного оружия. 
country_event = {
	id = japanimp.53
	title = japanimp.53.t
	desc = japanimp.53.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.53.a	# Миссия выполнена..
		effect_tooltip = {
			ZNP = {
				kill_country_leader = yes
			}
		}
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.5 }
			}
		}
	}	
	
}

#Юкими не сбавила скорости и бежала через переулок. 
country_event = {
	id = japanimp.54
	title = japanimp.54.t
	desc = japanimp.54.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.54.a	# Расстрелять пассажиров в упор
		ai_chance = { factor = 20 }
		country_event = {
				id = japanimp.55
		}
	}
	option = { 
		name = japanimp.54.b	# Стрелять по колёсам!
		ai_chance = { factor = 20 }
		if = {
			limit = {
				has_global_flag =  znp_imperator_umeet_strelyat_flag
			}
			hidden_effect = {
				random_list = {
					70 = {
						country_event = {
							id = japanimp.51
						}
					}
					30 = {
						country_event = {
							id = japanimp.53
						}
					}
				}
			}
			effect_tooltip = {
				custom_effect_tooltip = znp_imperator_umeet_strelyat_tt
				random_list = {
					70 = {
						country_event = {
							id = japanimp.51
						}
					}
					30 = {
						country_event = {
							id = japanimp.53
						}
					}
				}
			}
			else = {				
					hidden_effect = {
							random_list = {
								30 = {
									country_event = {
										id = japanimp.51
									}
								}
								70 = {
									country_event = {
										id = japanimp.53
									}
								}
							}
						}
						effect_tooltip = {
							custom_effect_tooltip = znp_imperator_ne_umeet_strelyat_tt
							random_list = {
								30 = {
									country_event = {
										id = japanimp.51
									}
								}
								70 = {
									country_event = {
										id = japanimp.53
									}
								}
							}
						}
			}
		}
	}	
	
}

#Девушка не выдавала себя и медленно шла по направлению к приближающейся машине.
country_event = {
	id = japanimp.55
	title = japanimp.55.t
	desc = japanimp.55.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.55.a	# Стреляй Юкими!
		ai_chance = { factor = 20 }
		if = {
			limit = {
				has_global_flag =  znp_imperatora_nachali_zashishat_flag
			}
			hidden_effect = {
				random_list = {
					30 = {
						country_event = {
							id = japanimp.56
						}
					}
					70 = {
						country_event = {
							id = japanimp.57
						}
					}
				}
			}
			effect_tooltip = {
				custom_effect_tooltip = znp_imperatora_nachali_zashishat_tt
				random_list = {
					30 = {
						country_event = {
							id = japanimp.56
						}
					}
					70 = {
						country_event = {
							id = japanimp.57
						}
					}
				}
			}
			else = {
				hidden_effect = {
					random_list = {
						70 = {
							country_event = {
								id = japanimp.56
							}
						}
						30 = {
							country_event = {
								id = japanimp.57
							}
						}
					}
				}
				effect_tooltip = {
					custom_effect_tooltip = znp_imperatora_ne_nachali_zashishat_tt					
					random_list = {
							70 = {
								country_event = {
									id = japanimp.56
								}
							}
							30 = {
								country_event = {
									id = japanimp.57
								}
							}
					}
				}
			}
		}
	}
	option = { 
		name = japanimp.55.b	# она улыбается!
		ai_chance = { factor = 5 }
		country_event = {
			id = japanimp.58
		}
	}	
	
}

#Юкими попала в голову, страйк 
country_event = {
	id = japanimp.56
	title = japanimp.56.t
	desc = japanimp.56.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.56.a	# Миссия выполнена!
		effect_tooltip = {
			ZNP = {
				kill_country_leader = yes
			}
		}
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.5 }
			}
		}
	}	
}

#Юкими убита сама
country_event = {
	id = japanimp.57
	title = japanimp.57.t
	desc = japanimp.57.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.57.a	# Миссия провалена..
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.4 }
			}
		}
	}	
}

#Юкими зачем ты улыбнулась!
country_event = {
	id = japanimp.58
	title = japanimp.58.t
	desc = japanimp.58.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.58.a	# Миссия провалена, опять аниме хотят снять...
		custom_effect_tooltip = japanimp.58.a.tt
		hidden_effect = {
			ZNP = {
				country_event = { hours = 3 id = nippon.3 }
			}
		}
	}	
}

#эвент для новояпонии на агентурную сеть
country_event = {
	id = japanimp.59
	title = japanimp.59.t
	desc = japanimp.59.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.59.a		
		add_stability = -0.03
	}	
}
#эвент для новояпонии о том что мы получили независимость от сегунов (да, этот эвент надо было делать в начале)
country_event = {
	id = japanimp.60
	title = japanimp.60.t
	desc = japanimp.60.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.60.a
		add_stability = 0.05
		effect_tooltip = {
			ZJA = {
				end_puppet = ZNP
			}
		}
	}	
}
################
#ЭВЕНТ СЕГУНАМ О ПОЛНОЙ ПОБЕДЕ НАД ИМПЕРАТОРОМ (ПОЛНЫЙ КОНТРОЛЬ НАД ЗЕМЛЯМИ)
country_event = {
	id = japanimp.61
	title = japanimp.61.t
	desc = japanimp.61.d
	picture = GFX_report_event_generic_conference	
	trigger = {
		tag = ZJA
		has_global_flag = shogun_perevorot_flag
		ZJA = {
			has_government = fascism
			has_war = no
#			controls_state = 188 	#вписать основные стейты новояпонии, чтобы другие страны их не забрали		
		}		
		ZNP = {
			exists = no			
		}
	}
	mean_time_to_happen = { days = 1 }
	fire_only_once = yes
	option = { 
		name = japanimp.61.a
		set_global_flag = segunat_is_wins
		if = {
			limit = {
				has_global_flag = imperator_v_novoyaponii
			}
			country_event = { hours = 2 id = japanimp.65 } 
		}	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.743 }
		}
	}	
}
#ЭВЕНТ СЕГУНАМ О ПОЛНОМ КОНТРОЛЕ ТЕРРИТОРИЙ МАРИОНЕТОЧНОЙ НОВОЯПОНИИ (чаво ково е сработало то? триггеры норм же)
country_event = {
	id = japanimp.62
	title = japanimp.62.t
	desc = japanimp.62.d
	picture = GFX_report_event_generic_conference	
	trigger = {
		tag = ZJA
		has_global_flag = shogun_perevorot_flag
		ZJA = {
			has_government = fascism
			NOT = {
				has_war_with = ZNP
			}	
		}		
		ZNP = {			
			is_subject_of = ZJA			
		}
	}
	mean_time_to_happen = { days = 1 }
	fire_only_once = yes
	option = { 
		name = japanimp.62.a
		set_global_flag = segunat_is_wins	
		if = {
			limit = {
				has_global_flag = imperator_v_novoyaponii
				NOT = {
					has_global_flag = znp_imperator_ubit_flag
				}
			}
			country_event = { hours = 2 id = japanimp.65 } 
		}
		if = {
			limit = {
				ZNP = {
					controls_state = 528 
				}
			}
			ZJA = {
				transfer_state = 528
			}
		}
		if = {
			limit = {
				ZNP = {
					controls_state = 530 
				}
			}
			ZJA = {
				transfer_state = 530
			}
		}
		if = {
			limit = {
				ZNP = {
					controls_state = 529 
				}
			}
			ZJA = {
				transfer_state = 529
			}
		}		
		hidden_effect = {
			ZNP = {
				drop_cosmetic_tag = yes
				set_cosmetic_tag = ZNP_MARIONE
			}
			news_event = { hours = 3 id = ar_news.744 }
		}
	}	
}

#эвент на укрепление островов сёгунами
country_event = {
	id = japanimp.63
	title = japanimp.63.t
	desc = japanimp.63.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.63.a
		645 = {
			add_building_construction = {
				type = bunker
				province = 13025
				level = 2
			}			
		}
		526 = {
			add_building_construction = {
				type = bunker
				province = 11932
				level = 2
			}			
		}
		646 = {
			add_building_construction = {
				type = bunker
				province = 3995
				level = 2
			}			
		}
		627 = {
			add_building_construction = {
				type = bunker
				province = 4241
				level = 2
			}			
		}
		if = {
			limit = {
				controls_state = 638 
			}
			638 = {
				add_building_construction = {
					type = bunker
					province = 12140
					level = 2
				}			
			}
		}
		if = {
			limit = {
				controls_state = 632 
			}
			632 = {
				add_building_construction = {
					type = bunker
					province = 13047
					level = 2
				}			
			}
		}
		if = {
			limit = {
				controls_state = 633 
			}
			633 = {
				add_building_construction = {
					type = bunker
					province = 13041
					level = 2
				}			
			}
		}
	}	
}

#эвент о том что прибывают новые генералы
country_event = {
	id = japanimp.64
	title = japanimp.64.t
	desc = japanimp.64.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.64.a
		army_experience = 10
		navy_experience = 5
		custom_effect_tooltip = japanimp.64.tt
		hidden_effect = {
			# create_corps_commander = {
				# name = "Куниеси Мицубиси"
					# portrait_path = "gfx/leaders/ZJA/Kuniyoshi_mitsubishi.tga"
				# traits = {  commando career_officer infantry_officer }
				# skill = 3
				# attack_skill = 3
				# defense_skill = 1
				# planning_skill = 3
				# logistics_skill = 3
			# }
			add_corps_commander_role = {
				character = ZJA_kuniyoshi_mitsubishi
				traits = {  commando career_officer infantry_officer }
				skill = 3
				attack_skill = 3
				defense_skill = 1
				planning_skill = 3
				logistics_skill = 3
			}
			# create_corps_commander = {
				# name = "Кимитоши Комуро"
					# portrait_path = "gfx/leaders/ZJA/Kimitoshi_komura.tga"
				# traits = { career_officer }
				# skill = 2
				# attack_skill = 1
				# defense_skill = 2
				# planning_skill = 2
				# logistics_skill = 2
			# }
			add_corps_commander_role = {
				character = ZJA_kimitoshi_komuro
				traits = { career_officer }
				skill = 2
				attack_skill = 1
				defense_skill = 2
				planning_skill = 2
				logistics_skill = 2
			}
			# create_corps_commander = {
				# name = "Козабуро Курабэ"
					# portrait_path = "gfx/leaders/ZJA/Kozaburo_kurabe.tga"
				# traits = { media_personality trait_cautious }
				# skill = 2
				# attack_skill = 2
				# defense_skill = 2
				# planning_skill = 1
				# logistics_skill = 2
			# }
			add_corps_commander_role = {
				character = ZJA_kozaburo_kurabe
				traits = { media_personality trait_cautious }
				skill = 2
				attack_skill = 2
				defense_skill = 2
				planning_skill = 1
				logistics_skill = 2
			}
			# create_navy_leader = {
				# name = "Сёджи Ямакоши"
					# portrait_path = "gfx/leaders/ZJA/Shoji_yamakoshi.tga"
				# traits = { bold battleship_adherent superior_tactician spotter }
				# skill = 4
				# attack_skill = 4
				# defense_skill = 2
				# maneuvering_skill = 4
				# coordination_skill = 3
			# }
			add_naval_commander_role = {
				character = ZJA_shoji_yamakoshi
				traits = { bold battleship_adherent superior_tactician spotter }
				skill = 4
				attack_skill = 4
				defense_skill = 2
				maneuvering_skill = 4
				coordination_skill = 3
			}
		}		
	}	
}

#эвент на судьбу судьбинушку императора когда все полимеры просраны и война проиграна.
country_event = {
	id = japanimp.65
	title = japanimp.65.t
	desc = japanimp.65.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.65.a
		hidden_effect = {
			random_list = {
				80 = {					
					country_event = { hours = 1 id = japanimp.66 }					
				}
				20 = {					
					country_event = { hours = 1 id = japanimp.67 }					
				}
			}
		}
		effect_tooltip = {
			random_list = {
				80 = {
					country_event = japanimp.66
				}
				20 = {
					country_event = japanimp.67
				}
			}
		}
	}	
}

#император попавсь!
country_event = {
	id = japanimp.66
	title = japanimp.66.t
	desc = japanimp.66.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.66.a
		custom_effect_tooltip = japanimp.66.tt
		add_stability = 0.1
		country_event = { days = 3 id = japanimp.68 }
	}	
}

#император сбежал, хз куда. но в бункере его нет
country_event = {
	id = japanimp.67
	title = japanimp.67.t
	desc = japanimp.67.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.67.a
		custom_effect_tooltip = japanimp.67.tt
		add_stability = -0.1
		hidden_effect = {
			news_event = { hours = 6 id = ar_news.747 }
		}
	}	
}
#суд над ампиратром!
country_event = {
	id = japanimp.68
	title = japanimp.68.t
	desc = japanimp.68.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.68.a
		add_political_power = 100
		custom_effect_tooltip = japanimp.68.tt	
		hidden_effect = {
			set_politics = {							
				ruling_party = fascism
			}
			set_popularities = {			
			neutrality = 10
			fascism = 90			
		}
			news_event = { hours = 6 id = ar_news.748 }
		}
		set_global_flag = znp_imperator_ubit_flag
		retire_country_leader = yes
		add_country_leader_role = {
			character = "ZJA_asahito_imp"
			country_leader = {
				ideology = rexism
				traits = { zja_marionetochny_imperator }
				expire = "2020.3.1.1"
			}	
			promote_leader = yes 
		}
		# create_country_leader = {
			# name = "Император Асахито"
			# desc = "zja_imp_asahiro"
			# picture = "imperat_asahito.tga"
			# expire = "2020.1.1"
			# ideology = rexism
			# traits = {
				# zja_marionetochny_imperator
			# }
		# }
		set_global_flag = zja_imperator_asahiro_flag	
	}	
}

#поддержка оружием от клана_нэйм
country_event = {
	id = japanimp.69
	title = japanimp.69.t
	desc = japanimp.69.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	trigger = {
		tag = ZJA
		has_government = fascism
		has_war_with = ZNP
	}
	option = { 
		name = japanimp.69.a
			add_war_support = 0.01
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 359
				producer = ZJA
			}	
		hidden_effect = {
			country_event = { id = japanimp.70 days = 12 random = 8 }
		}
	}	
}

#поддержка оружием от клана_нэйм
country_event = {
	id = japanimp.70
	title = japanimp.70.t
	desc = japanimp.70.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	trigger = {
		tag = ZJA
		has_government = fascism
		has_war_with = ZNP
	}
	option = { 
		name = japanimp.70.a
			add_political_power = 20
			add_war_support = 0.01
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 274
				producer = ZHA
			}	
		hidden_effect = {
			country_event = { id = japanimp.71 days = 25 random = 8 }
		}
	}	
}

#поддержка денежкой от клан_нэйм
country_event = {
	id = japanimp.71
	title = japanimp.71.t
	desc = japanimp.71.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	trigger = {
		tag = ZJA
		has_government = fascism
		has_war_with = ZNP
	}
	option = { 
		name = japanimp.71.a
		add_political_power = 120				
		hidden_effect = {
		
		}
	}	
}
#новая верная армия, выводит юнитов в столицу
country_event = {
	id = japanimp.72
	title = japanimp.72.t
	desc = japanimp.72.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { 
		name = japanimp.72.a
		custom_effect_tooltip = japanimp.72.a.tt		
		hidden_effect = {
			ZJA = {
				load_oob = "ZJA_imperat"	
			}			
		}
	}	
}

#сегуны объявили наши земли японскими!!!
country_event = {
	id = japanimp.73
	title = japanimp.73.t
	desc = japanimp.73.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { 
		name = japanimp.73.a
		
	}	
}

#эвент о том что когда СЁГУНЫ ПОБЕДИЛИ УЖЕ при ранее удачном покушении на императора они садят наследника на престол. Император Асахито
country_event = {
	id = japanimp.74
	title = japanimp.74.t
	desc = japanimp.74.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { 
		name = japanimp.74.a
		hidden_effect = {
			set_politics = {			
				ruling_party = fascism
			}
			set_popularities = {			
				neutrality = 15
				fascism = 85			
			}			
		}	
		retire_country_leader = yes
		add_country_leader_role = {
			character = "ZJA_asahito_imp"
			country_leader = {
				ideology = rexism
				traits = { zja_marionetochny_imperator }
				expire = "2020.3.1.1"
			}	
			promote_leader = yes 
		}
		# create_country_leader = {
			# name = "Император Асахито"
			# desc = "zja_imp_asahiro"
			# picture = "imperat_asahito.tga"
			# expire = "2020.1.1"
			# ideology = rexism
			# traits = {
				# zja_marionetochny_imperator
			# }
		# }
		set_global_flag = zja_imperator_asahiro_flag	
	}	
}

#реставрация ёсиро
country_event = {
	id = japanimp.75
	title = japanimp.75.t
	desc = japanimp.75.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes	
	option = { 
		name = japanimp.75.a
		add_timed_idea = {
			idea = zja_restavrat_esiro
			days = 1000
		}
		set_party_name = { 
			ideology = neutrality 
			long_name = ZJA_neutrality_esiro_party_long
			name = ZJA_neutrality_esiro_party 
		}
	}	
}

#эвент для тайцео о том что мы восспользовались переворотом и получили независимость (да, этот эвент надо было делать в начале)
country_event = {
	id = japanimp.76
	title = japanimp.76.t
	desc = japanimp.76.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.76.a
		add_stability = 0.05
		drop_cosmetic_tag = yes
		effect_tooltip = {
			ZJA = {
				end_puppet = ZTI
			}
		}
	}	
}
#эвент сёгунов что им еще одну гражданку подкинули, демократы
#country_event = {
#	id = japanimp.77
#	title = japanimp.77.t
#	desc = japanimp.77.d
#	picture = GFX_report_event_generic_conference	
#	is_triggered_only = yes
#	trigger = {
#		tag = ZJA
#		has_government = fascism
#		has_civil_war = no
#	}
#	option = { 
#		name = japanimp.77.a
#		start_civil_war = {			
#			ideology = democratic	
#			size = 0.1
#			army_ratio = 0.1
#			navy_ratio = 0.1
#			states = { 
#				536
#			}
#		}
#		hidden_effect = {
#			news_event = { hours = 3 id = ar_news.772 }
#		}
#	}	
#}

# эвент о тои что в стране терракт! проимператорские чуваки ломают заводы
country_event = {
	id = japanimp.78
	title = japanimp.78.t
	desc = japanimp.78.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = japanimp.78.a
		random_owned_controlled_state = {
			limit = {
				industrial_complex > 1								
			}
			damage_building = { type = industrial_complex damage = 0.5 }
		}
	}
}

# эвент о тои что в стране терракт! проимператорские чуваки ломают верфи
country_event = {
	id = japanimp.79
	title = japanimp.79.t
	desc = japanimp.79.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = japanimp.79.a
		random_owned_controlled_state = {
			limit = {
				dockyard > 1								
			}
			damage_building = { type = dockyard damage = 0.5 }
		}
	}
}
# эвент о тои что в стране террактЫ! проимператорские чуваки ломают железные дороги в регионах
country_event = {
	id = japanimp.80
	title = japanimp.80.t
	desc = japanimp.80.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = japanimp.80.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 }
		}
		random_owned_controlled_state = {
			limit = {
				infrastructure > 1								
			}
			damage_building = { type = infrastructure damage = 0.5 }
		}
	}
}
# эвент о тои что в стране террактЫ! проимператорские чуваки ломают военные заводы, сабатаааааж
country_event = {
	id = japanimp.81
	title = japanimp.81.t
	desc = japanimp.81.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = japanimp.81.a
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1								
			}
			damage_building = { type = arms_factory damage = 0.5 }
		}
		random_owned_controlled_state = {
			limit = {
				arms_factory > 1								
			}
			damage_building = { type = arms_factory damage = 0.5 }
		}
	}
}

# эвент для новояпонии о том что мы поймали императора в плен. что с ним делать? Два варианта, выдать сёгунам в замен на договор о сотрудничестве (читай пакт о ненападении) на 5 (может больше) лет или казнить самим, а голову отправить в сёгунат, как откуп за независимость.
country_event = {
	id = japanimp.82
	title = japanimp.82.t
	desc = japanimp.82.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes		
	option = {
		name = japanimp.82.a
		ai_chance = { factor = 20 }
		custom_effect_tooltip = japanimp.82.a.tt
		set_global_flag = segunat_is_wins
		
		ZJA = {
			country_event = { days = 5 id = japanimp.83 }
		}
	}
	option = {
		name = japanimp.82.b
		ai_chance = { factor = 3 }
		custom_effect_tooltip = japanimp.82.b.tt
		set_global_flag = znp_imperator_ubit_flag
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.777 }
		}
	}
}

# эвент для сёгунов о том что из новояпонии прислали пленного императора, спасибо им. ладно, фиг с ними, пускай независимые будут. (догово о сотрудничестве)
country_event = {
	id = japanimp.83
	title = japanimp.83.t
	desc = japanimp.83.d
	picture = GFX_report_event_generic_conference
	is_triggered_only = yes	
	option = {
		name = japanimp.83.a		
		add_timed_idea = {
			idea = zja_dogovor_s_znp
			days = 1800
		}
		diplomatic_relation = {
			country = ZNP
			relation = non_aggression_pact
			active = yes
		}
		set_global_flag = segunat_is_wins
		country_event = { days = 5 id = japanimp.68 }
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.778 }
		}
	}	
}

#эвент для Ёмикоку о том что мы получили независимость от сегунов (да, этот эвент надо было делать в начале)
country_event = {
	id = japanimp.84
	title = japanimp.84.t
	desc = japanimp.84.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.84.a
		add_stability = 0.05
		drop_cosmetic_tag = yes
		effect_tooltip = {
			ZJA = {
				end_puppet = ZKN
			}
		}
	}	
}

#эвент для сегунов что страна_нейм хочет купить у нас прибрежный стейт_нэйм на западном побережье африки. Они дают нам много денежек (ПП), сумма эта разделена на несколько частей и будет поступать в казну в течении полугода. Их специалисты так же обещают нам помочь в строительных делах. Принять или отказать им?
country_event = {
	id = japanimp.85
	title = japanimp.85.t
	desc = japanimp.85.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.85.a
		trigger = {
			has_full_control_of_state = 950	
		}
		ai_chance = { factor = 15 }
		FROM = {
			country_event = { id = japanimp.86 }
			effect_tooltip = {
				transfer_state = 950
				950 = {					
					remove_core_of = ZJA
				}	
			}
		}
		ZJA = {
			add_political_power = 50
			add_timed_idea = {
				idea = zja_peredacha_deneg_ot_prodaji_950
				days = 170
			}
		}
	}
	option = { 
		name = japanimp.85.b
		ai_chance = { factor = 3 }
		FROM = {
			country_event = { id = japanimp.87 }
		}	
	}	
}

#эвент стране покупателю о том что сёгуны продали таки стейт_нэйм 950 нам. 
country_event = {
	id = japanimp.86
	title = japanimp.86.t
	desc = japanimp.86.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.86.a
		transfer_state = 950
		950 = {
			add_core_of = ROOT
			remove_core_of = ZJA
		}
		add_timed_idea = {
			idea = zja_peredacha_deneg_ot_prodaji_950_for_pokupatel
			days = 170
		}
		clr_global_flag = zja_prodaet_950
		set_global_flag = zja_prodano_950_vse
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.807 }
		}
	}	
}
#эвент стране покупателю о том что сёгуны ПОКа не захотели продавать нам 950
country_event = {
	id = japanimp.87
	title = japanimp.87.t
	desc = japanimp.87.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.87.a
		add_political_power = 50	#dont touch		
	}	
}

#эвент для сегунов что страна_нейм хочет купить у нас остров 703 в атлантике. Они дают нам много денежек (ПП), сумма эта разделена на несколько частей и будет поступать в казну в течении полугода. 
country_event = {
	id = japanimp.88
	title = japanimp.88.t
	desc = japanimp.88.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.88.a
		trigger = {
			has_full_control_of_state = 703	
		}
		ai_chance = { factor = 15 }
		FROM = {
			country_event = { id = japanimp.89 }
			effect_tooltip = {
				transfer_state = 703
				703 = {					
					remove_core_of = ZJA
				}
			}
		}
		ZJA = {
			add_political_power = 50
			add_timed_idea = {
				idea = zja_peredacha_deneg_ot_prodaji_703
				days = 150
			}
		}
	}
	option = { 
		name = japanimp.88.b
		ai_chance = { factor = 3 }
		FROM = {
			country_event = { id = japanimp.90 }
		}	
	}	
}

#эвент стране покупателю о том что сёгуны продали таки стейт_нэйм 703 нам. 
country_event = {
	id = japanimp.89
	title = japanimp.89.t
	desc = japanimp.89.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.89.a
		transfer_state = 703
		703 = {
			add_core_of = ROOT
			remove_core_of = ZJA
		}
		add_timed_idea = {
			idea = zja_peredacha_deneg_ot_prodaji_950_for_pokupatel
			days = 150
		}
		clr_global_flag = zja_prodaet_703
		set_global_flag = zja_prodano_703_vse
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.808 }
		}
	}	
}
#эвент стране покупателю о том что сёгуны ПОКа не захотели продавать нам 703
country_event = {
	id = japanimp.90
	title = japanimp.90.t
	desc = japanimp.90.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.90.a
		add_political_power = 40	#dont touch		
	}	
}

#эвент для сегунов что страна_нейм хочет купить у нас остров 720 на самом юге атлантики атлантике. Они дают нам много денежек (ПП), сумма эта разделена на несколько частей и будет поступать в казну в течении полугода. 
country_event = {
	id = japanimp.91
	title = japanimp.91.t
	desc = japanimp.91.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.91.a
		trigger = {
			has_full_control_of_state = 720	
		}
		ai_chance = { factor = 15 }
		FROM = {
			country_event = { id = japanimp.92 }
			effect_tooltip = {
				transfer_state = 720
				720 = {					
					remove_core_of = ZJA
				}
			}
		}
		ZJA = {
			add_political_power = 50
			add_timed_idea = {
				idea = zja_peredacha_deneg_ot_prodaji_720
				days = 150
			}
		}
	}
	option = { 
		name = japanimp.91.b
		ai_chance = { factor = 3 }
		FROM = {
			country_event = { id = japanimp.93 }
		}	
	}	
}

#эвент стране покупателю о том что сёгуны продали таки стейт_нэйм 720 нам. 
country_event = {
	id = japanimp.92
	title = japanimp.92.t
	desc = japanimp.92.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.92.a
		transfer_state = 720
		720 = {
			add_core_of = ROOT
			remove_core_of = ZJA
		}
		add_timed_idea = {
			idea = zja_peredacha_deneg_ot_prodaji_720_for_pokupatel
			days = 150
		}
		clr_global_flag = zja_prodaet_720
		set_global_flag = zja_prodano_720_vse
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.809 }
		}
	}	
}
#эвент стране покупателю о том что сёгуны ПОКа не захотели продавать нам 720
country_event = {
	id = japanimp.93
	title = japanimp.93.t
	desc = japanimp.93.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.93.a
		add_political_power = 45	#dont touch		
	}	
}

# Ванство Обука
country_event = {
	id = japanimp.94
	title = japanimp.94.t
	desc = japanimp.94.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.94.a
		960 = { add_core_of = ZVO }
		1026 = { add_core_of = ZVO }		
		ZVO = {
			transfer_state = 960
			transfer_state = 1026
			hidden_effect = {			
				load_oob = "ZVO_rebels"	
				add_ideas = extensive_conscription
				add_ideas = zvo_segretatsiya
			}	
		}
		ZJA = {
			country_event = { id = japanimp.95 }
			hidden_effect = {
				country_event = { id = japanimp.96 days = 2 random = 12 }
			}
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.810 }
		}
	}	
}

# что нас делть с этим ванствоам
country_event = {
	id = japanimp.95
	title = japanimp.95.t
	desc = japanimp.95.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.95.a
		ai_chance = { factor = 100 }
	}
	option = { 
		name = japanimp.95.b
		ai_chance = { factor = 0 }
		add_political_power = -50
		add_stability = -0.03
		add_state_claim = 960
		add_state_claim = 1026
		declare_war_on = {
			type = annex_everything
			target = ZVO
		}
	}
	option = { 
		name = japanimp.95.c
		ai_chance = { factor = 0 }
		ZVO = {
			change_tag_from = ZJA
		}
		custom_effect_tooltip = japanimp.95.c.tt		
	}	
}

# Ваманга отпадает
country_event = {
	id = japanimp.96
	title = japanimp.96.t
	desc = japanimp.96.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.96.a
		add_stability = -0.01
		ZVM = {
			transfer_state = 1012
			transfer_state = 1011
			hidden_effect = {			
				load_oob = "ZVM_rebels"	
			}	
		}
		hidden_effect = {
			country_event = { id = japanimp.97 days = 2 random = 48 }
		}
	}		
}

# Мванза отпадает
country_event = {
	id = japanimp.97
	title = japanimp.97.t
	desc = japanimp.97.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.97.a
		add_stability = -0.01
		XMV = {
			transfer_state = 1013
			transfer_state = 718
			transfer_state = 1035
			hidden_effect = {			
				load_oob = "XMV_rebels"	
			}	
		}
		hidden_effect = {
			country_event = { id = japanimp.98 days = 2 random = 48 }
		}
	}		
}

# Манготу и Байа  отпадает
country_event = {
	id = japanimp.98
	title = japanimp.98.t
	desc = japanimp.98.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.98.a
		add_stability = -0.01
		ZMA = {
			transfer_state = 538
			transfer_state = 1036
			transfer_state = 1029
			transfer_state = 1030
			hidden_effect = {			
				load_oob = "ZMA_rebels"	
			}	
		}
		ZBI = {
			transfer_state = 1027
			transfer_state = 1028			
			hidden_effect = {			
				load_oob = "ZBI_rebels"	
			}	
		}
		hidden_effect = {
			country_event = { id = japanimp.99 days = 3 random = 52 }
		}
	}		
}


# конго отжимают арендованные земли
country_event = {
	id = japanimp.99
	title = japanimp.99.t
	desc = japanimp.99.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.99.a
		ai_chance = { factor = 100 }
		add_stability = -0.01
		ZKO = {
			transfer_state = 1024
			transfer_state = 1025				
		}	
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.837 }
		}
	}
	option = { 
		name = japanimp.99.b
		ai_chance = { factor = 0 }
		add_stability = 0.04
		every_state = {
			limit = { 
				is_core_of = ZKO
				NOT = {
					is_owned_by = ZJA
				}					
			}				
			add_claim_by = ZJA
		}
		declare_war_on = {
			type = annex_everything
			target = ZKO
		}
		hidden_effect = {
			news_event = { hours = 3 id = ar_news.837 }
		}
	}		
}

# эвент обуке. опытные генералы прибыли
country_event = {
	id = japanimp.100
	title = japanimp.100.t
	desc = japanimp.100.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.100.a
		army_experience = 5
		# create_corps_commander = {
			# name = "Джуничи Хато"
			# portrait_path = "gfx/leaders/ZVO/juniti_hato.tga"
			# traits = {
				# trickster trait_engineer brilliant_strategist politically_connected
			# }
			# skill = 5
			# attack_skill = 4
			# defense_skill = 5
			# planning_skill = 3
			# logistics_skill = 4
		# }	
		add_corps_commander_role = {
			character = zvo_junichi_hato
			traits = {
				trickster trait_engineer brilliant_strategist politically_connected
			}
			skill = 5
			attack_skill = 4
			defense_skill = 5
			planning_skill = 3
			logistics_skill = 4
		}
		# create_corps_commander = {
			# name = "Ито Ишивара"
				# portrait_path = "gfx/leaders/ZVO/ito_ishivara.tga"
			# traits = { JAP_samurai_lineage }
			# skill = 1 
			# attack_skill = 1
			# defense_skill = 1
			# planning_skill = 1
			# logistics_skill = 1
		# }
		add_corps_commander_role = {
			character = zvo_ito_ishiwara
			traits = { JAP_samurai_lineage }
			skill = 1 
			attack_skill = 1
			defense_skill = 1
			planning_skill = 1
			logistics_skill = 1
		}		
		# create_field_marshal = {
			# name = "Ичиро Танака"
				# portrait_path = "gfx/leaders/ZVO/ichiro_tanaka.tga"
			# traits = { offensive_doctrine JAP_samurai_lineage }
			# skill = 4
			# attack_skill = 3
			# defense_skill = 4
			# planning_skill = 2
			# logistics_skill = 4
		# }
		add_field_marshal_role = {
			character = zvo_ichiro_tanaka
			traits = { offensive_doctrine JAP_samurai_lineage }
			skill = 4
			attack_skill = 3
			defense_skill = 4
			planning_skill = 2
			logistics_skill = 4
		}
	}		
}

# эвент обуке на выбор торговли
country_event = {
	id = japanimp.101
	title = japanimp.101.t
	desc = japanimp.101.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.101.a
		ai_chance = { factor = 50 }
		add_ideas = zvo_investitsii_1
	}
	option = { 
		name = japanimp.101.b
		ai_chance = { factor = 50 }
		add_ideas = zvo_investitsii_2
	}		
}

###### эвент сёгунам. У нас остались какие то гарантии для Ву от беглого Ёсиро. Отменим?
country_event = {
	id = japanimp.102
	title = japanimp.102.t
	desc = japanimp.102.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	trigger = {
		has_guaranteed = XNU
	}
	option = { 
		name = japanimp.102.a
		ai_chance = { factor = 5 }
		diplomatic_relation = {
			country = XNU
			relation = guarantee
			active = no
		}
		XNU = {
			country_event = { id = japanimp.103 }
		}
		ZNP = {
			country_event = { days = 7 id = japanimp.104 }
		}
	}	
	option = { 
		name = japanimp.102.b
		ai_chance = { factor = 1 }
		
	}
}

####  эвент Ву. сёгуны отменили гарантии нашей независимости....
country_event = {
	id = japanimp.103
	title = japanimp.103.t
	desc = japanimp.103.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.103.a		
		ZJA = {
			effect_tooltip = {			
				diplomatic_relation = {
					country = XNU
					relation = guarantee
					active = no
				}				
			}
			country_event = { days = 2 id = japanimp.106 }
		}	
	}			
}


###### эвент есиро. Сёгуны отменили гарантии для ву, может мы загарантим? слово императора всё такое.
country_event = {
	id = japanimp.104
	title = japanimp.104.t
	desc = japanimp.104.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	trigger = {
		NOT = {
			has_guaranteed = XNU
		}	
		has_war_with = ZJA
	}
	option = { 
		name = japanimp.104.a
		ai_chance = { factor = 5 }
		diplomatic_relation = {
			country = XNU
			relation = guarantee
			active = yes
		}
		XNU = {
			country_event = { id = japanimp.105 }
		}
	}	
	option = { 
		name = japanimp.104.b
		ai_chance = { factor = 1 }
		
	}
}

####  эвент Ву. а есиро не засссал и загарантил из новояпонии нас!
country_event = {
	id = japanimp.105
	title = japanimp.105.t
	desc = japanimp.105.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.105.a			
		ZNP = {
			effect_tooltip = {
				diplomatic_relation = {
					country = XNU
					relation = guarantee
					active = yes
				}
			}
			country_event = { days = 5 id = japanimp.107 }
		}
	}			
}

####  эвент сёгунам. ву сказали что мы не легитимны((( Ву теперь не считает Сёгунов легитимными владельцами японских банковских ячеек
country_event = {
	id = japanimp.106
	title = japanimp.106.t
	desc = japanimp.106.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.106.a		
		add_timed_idea = {
			idea = zja_vu_denejki_zablocheny
			days = 250
		}
	}
			
}

####  эвент есиро, ву сказали что есиро норм пацан что загарантил их. За это они подкинули  золотишко из банков прислали (получаем снарягу и бафф)
country_event = {
	id = japanimp.107
	title = japanimp.107.t
	desc = japanimp.107.d
	picture = GFX_report_event_generic_conference	
	is_triggered_only = yes
	option = { 
		name = japanimp.107.a		
		add_timed_idea = {
			idea = zja_vu_buff_dlya_esiro
			days = 250
		}
	}
			
}
