﻿##############################
#### Japanese Country Events ####
#################################

add_namespace = SEA_japan
add_namespace = SEA_japan_foreign_policy
add_namespace = SEA_japan_popup_events
add_namespace = SEA_japan_tokko_arrest_events
add_namespace = SEA_japan_news_events
add_namespace = SEA_japan_hidden_events
add_namespace = SEA_japan_air_accidents_events

add_namespace = SEA_imperial_influence_events

# The February 26 Incident - event for Japan, base version of the Kodoha event
country_event = {
	id = SEA_japan.1
	title = SEA_japan.1.t
	desc = SEA_japan.1.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_preparation 
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We want to go for the historical option :/
	option = { 
		name = SEA_japan.1.a
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				OR = {
					AND = {
						is_historical_focus_on = yes
						has_game_rule = {
							rule = JAP_ai_behavior
							option = DEFAULT
						}
					}
					has_game_rule = {
						rule = JAP_ai_behavior
						option = FASCIST
					}
					has_country_flag = JAP_AI_RANDOM_FASCIST
				}
			}
		}

		custom_effect_tooltip = JAP_kodoha_coup_will_fail_historically_tt
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_korekiyo_protected_flag
				}
			}
			retire_character = JAP_takahashi_korekiyo
			set_country_flag = JAP_takahashi_korekiyo_was_killed
		}
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_watanabe_protected_flag
				}
			}
			retire_character = JAP_jotaro_watanabe
			set_country_flag = JAP_jotaro_watanabe_was_killed
		}
		IF = {
			limit = {
				has_dlc = "No Compromise, No Surrender"
				OR = {
					has_country_flag = JAP_watanabe_protected_flag
					has_country_flag = JAP_korekiyo_protected_flag
				}
			}
			# Due to one of the other assassinations failing, they will go harder for Saionji Kinmochi instead, killing him. 
			retire_character = JAP_saionji_kinmochi
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		complete_national_focus = JAP_sea_purge_the_kodoha_faction

		hidden_effect = {
			set_country_flag = JAP_aizawas_trial_over_flag
		}

	}

	# It's shougunating time heck yea
	option = { 
		name = SEA_japan.1.b
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				OR = {
					has_country_flag = JAP_AI_RANDOM_NEUTRALITY
					has_game_rule = {
						rule = JAP_ai_behavior
						option = NEUTRALITY
					}
				}
			}
		}

		custom_effect_tooltip = JAP_kodoha_coup_will_succeed_tt
		
		retire_character = JAP_takahashi_korekiyo
		set_country_flag = JAP_takahashi_korekiyo_was_killed
	
		retire_character = JAP_jotaro_watanabe
		set_country_flag = JAP_jotaro_watanabe_was_killed
		
		IF = {
			limit = {
				has_dlc = "No Compromise, No Surrender"
			}
			# Due to one of the other assassinations failing, they will go harder for Saionji Kinmochi instead, killing hnm. 
			retire_character = JAP_saionji_kinmochi
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		IF = {
			limit = {
				has_dlc = "No Compromise, No Surrender"
			}
			IF = {
				limit = {
					has_country_leader = {
						ruling_only = yes
						character = JAP_keisuke_okada
					}	
				}
				kill_country_leader = yes
			}
			add_country_leader_role = {
				character =  JAP_jinzaburo_masaki
				promote_leader = yes
				country_leader = {
					ideology = japan_militarism_ideology
					expire = "1952.1.1.1"
					traits = { JAP_military_prime_minister } 
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt
			
			complete_national_focus = JAP_revere_the_emperor_destroy_the_traitors
			#custom_effect_tooltip = focus_effects_are_as_follows_tt
			#effect_tooltip = {
			#	
			#}
		}
		ELSE = {
			complete_national_focus = JAP_support_the_kodoha_faction
		}

		hidden_effect = {
			set_country_flag = JAP_aizawas_trial_over_flag
		}

	}

	# We have come to the conclusion that fascism = bad
	option = { 
		name = SEA_japan.1.c
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				OR = {
					has_country_flag = JAP_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST
					}
					has_country_flag = JAP_AI_RANDOM_DEMOCRATIC
					has_game_rule = {
						rule = JAP_ai_behavior
						option = DEMOCRATIC
					}
					has_country_flag = JAP_AI_RANDOM_COMMUNIST_2
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST_2
					}
				}
			}
		}
		trigger = {
			has_dlc = "No Compromise, No Surrender"
		}

		custom_effect_tooltip = JAP_kodoha_coup_will_fail_non_historically_tt
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_korekiyo_protected_flag
				}
			}
			retire_character = JAP_takahashi_korekiyo
			set_country_flag = JAP_takahashi_korekiyo_was_killed
		}
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_watanabe_protected_flag
				}
			}
			retire_character = JAP_jotaro_watanabe
			set_country_flag = JAP_jotaro_watanabe_was_killed
		}
		IF = {
			limit = {
				OR = {
					has_country_flag = JAP_watanabe_protected_flag
					has_country_flag = JAP_korekiyo_protected_flag
				}
			}
			# Due to one of the other assassinations failing, they will go harder for Saionji Kinmochi instead, killing hnm. remove Kinmochi etc
			retire_character = JAP_saionji_kinmochi
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_country_leader_role = {
			character = JAP_keisuke_okada
			promote_leader = yes
			country_leader = {
				ideology = conservatism
				expire = "1952.1.1.1"
				traits = { JAP_moderate_politician_dem } 
			}
		}	

		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
			last_election = "1936.02.01"
			election_frequency = 48
		}	

		add_popularity = {
			ideology = democratic
			popularity = 0.15
		}	

		custom_effect_tooltip = generic_skip_one_line_tt
		
		complete_national_focus = JAP_okadas_military_purge_speech
		custom_effect_tooltip = focus_effects_are_as_follows_tt
		effect_tooltip = {
			JAP_small_government_faction_gain = yes

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = JAP_okadas_military_purge_speech_tt
		}

		hidden_effect = {
			set_country_flag = JAP_aizawas_trial_over_flag
		}

	}

	# We have come to the conclusion that fascism = bad (non sea dem)
	option = { 
		name = SEA_japan.1.d
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				OR = {
					has_country_flag = JAP_AI_RANDOM_DEMOCRATIC
					has_game_rule = {
						rule = JAP_ai_behavior
						option = DEMOCRATIC
					}
				}
			}
		}
		trigger = {
			NOT = {
				has_dlc = "No Compromise, No Surrender"
			}
		}

		custom_effect_tooltip = JAP_kodoha_coup_will_fail_non_historically_tt
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_korekiyo_protected_flag
				}
			}
			retire_character = JAP_takahashi_korekiyo
			set_country_flag = JAP_takahashi_korekiyo_was_killed
		}
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_watanabe_protected_flag
				}
			}
			retire_character = JAP_jotaro_watanabe
			set_country_flag = JAP_jotaro_watanabe_was_killed
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		complete_national_focus = JAP_strengthen_civilian_government

		hidden_effect = {
			set_country_flag = JAP_aizawas_trial_over_flag
		}

	}

	# We have come to the conclusion that fascism = bad (non sea com)
	option = { 
		name = SEA_japan.1.e
		ai_chance = {
			base = 0
			modifier = {
				add = 100
				OR = {
					has_country_flag = JAP_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST
					}
				}
			}
		}
		trigger = {
			NOT = {
				has_dlc = "No Compromise, No Surrender"
			}
		}

		custom_effect_tooltip = JAP_kodoha_coup_will_fail_non_historically_tt
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_korekiyo_protected_flag
				}
			}
			retire_character = JAP_takahashi_korekiyo
			set_country_flag = JAP_takahashi_korekiyo_was_killed
		}
		IF = {
			limit = {
				NOT = {
					has_country_flag = JAP_watanabe_protected_flag
				}
			}
			retire_character = JAP_jotaro_watanabe
			set_country_flag = JAP_jotaro_watanabe_was_killed
		}

		custom_effect_tooltip = generic_skip_one_line_tt
		
		complete_national_focus = JAP_the_unthinkable_option

		hidden_effect = {
			set_country_flag = JAP_aizawas_trial_over_flag
		}

	}

}



# Japan demands our Submission - event for MEN
country_event = {
	id = SEA_japan_foreign_policy.1
	title = SEA_japan_foreign_policy.1.t
	desc = SEA_japan_foreign_policy.1.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# This is an opportunity for us 
	option = { 
		name = SEA_japan_foreign_policy.1.a
		ai_chance = {
			factor = 70
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				JAP = { is_in_faction = yes }
				factor = 2
			}
		}

		IF = {
			limit = {
				FROM = {
					has_government = neutrality
				}
			}
			effect_tooltip = {
				MEN_prince_demchugdongrub = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = despotism
							expire = "1965.1.1.1"
							traits = { MEN_borjigin_descendant } 
						}
					}	
				}
			}
		}
		custom_effect_tooltip = MEN_li_shouxin_available_tt

		effect_tooltip = {
			drop_cosmetic_tag = yes
			set_cosmetic_tag = MEN_mongol_military_government_tag
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.2
				days = 1
				random_days = 2
			}
		}

	}

	# We must maintain our independence at all costs!
	option = { 
		name = SEA_japan_foreign_policy.1.b
		ai_chance = {
			factor = 30
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
			modifier = {
				is_historical_focus_on = yes 
				factor = 0
			}
		}

		add_war_support = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.3
				days = 1
				random_days = 2
			}
		}

	}
}

# FROM submits to our rule - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.2
	title = SEA_japan_foreign_policy.2.t
	desc = SEA_japan_foreign_policy.2.desc
	picture = GFX_report_event_chinese_japanese_handshake
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = SEA_japan_foreign_policy.2.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt

		set_autonomy = {
			target = FROM
			autonomous_state = autonomy_wtt_imperial_protectorate
			end_wars = no
			end_civil_wars = no
		}

		IF = {
			limit = {
				has_government = neutrality
			}
			MEN = {
				MEN_prince_demchugdongrub = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							ideology = despotism
							expire = "1965.1.1.1"
							traits = { MEN_borjigin_descendant } 
						}
					}	
				}
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		MEN = {
			drop_cosmetic_tag = yes
			set_cosmetic_tag = MEN_mongol_military_government_tag
		}

		JAP_setup_faction_wide_aoe_effects_root = yes

	}
}

# FROM refuses to submit to the Emperor - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.3
	title = SEA_japan_foreign_policy.3.t
	desc = SEA_japan_foreign_policy.3.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# They have disrespected the emperor, this cannot stand
	option = {
		name = SEA_japan_foreign_policy.3.a
		ai_chance = {
			base = 85
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
			expire = 0
		}	

	}

	# It is simply not worth the effort
	option = {
		name = SEA_japan_foreign_policy.3.b
		ai_chance = {
			base = 15
		}

		JAP_small_government_faction_gain = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = fascism
			popularity = -0.05
		}	

	}
}

# Japan Demands we Join Their Alliance - event for SIA
country_event = {
	id = SEA_japan_foreign_policy.4
	title = SEA_japan_foreign_policy.4.t
	desc = SEA_japan_foreign_policy.4.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We will be stronger together 
	option = { 
		name = SEA_japan_foreign_policy.4.a
		ai_chance = {
			base = 70
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 1.5
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.5
				hours = 12
				random_hours = 24
			}
		}

		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
		}

	}

	# That would go against our principals of neutrality!
	option = { 
		name = SEA_japan_foreign_policy.4.b
		ai_chance = {
			base = 30
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_opinion = {
					target = JAP
					value < 25
				}	
				factor = 2
			}
			#modifier = {
			#	is_historical_focus_on = yes 
			#	factor = 0
			#}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.6
				hours = 12
				random_hours = 24
			}
		}

	}
}

# Siam Accept our Offer - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.5
	title = SEA_japan_foreign_policy.5.t
	desc = SEA_japan_foreign_policy.5.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# As they should
	option = {
		name = SEA_japan_foreign_policy.5.a
		ai_chance = {
			base = 100
		}

		add_to_faction = FROM

		add_ai_strategy = {
			type = protect
			id = SIA
			value = 100
		}

		JAP_setup_faction_wide_aoe_effects_root = yes

	}

}

# Siam Refuses to Join Us - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.6
	title = SEA_japan_foreign_policy.6.t
	desc = SEA_japan_foreign_policy.6.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Prepare the troops to attack!
	option = {
		name = SEA_japan_foreign_policy.6.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.7
				hours = 6
				random_hours = 12
			}
		}

		custom_effect_tooltip = if_they_accept_tt
		effect_tooltip = {
			set_autonomy = {
				target = FROM
				autonomous_state = autonomy_wtt_imperial_protectorate
				end_wars = no
				end_civil_wars = no
			}
		}

	}
}

# Japan Prepares for an Invasion - event for SIA
country_event = {
	id = SEA_japan_foreign_policy.7
	title = SEA_japan_foreign_policy.7.t
	desc = SEA_japan_foreign_policy.7.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# On second thought, we should just submit now
	option = {
		name = SEA_japan_foreign_policy.7.a
		ai_chance = {
			base = 90
		}

		FROM = {
			country_event = {
				# [FROM.GetNameDefCap] Submits to out Demands
				id = SEA_japan_foreign_policy.8
				hours = 5
				random_hours = 7
			}
		}
		effect_tooltip = {
			FROM = {
				set_autonomy = {
					target = ROOT
					autonomous_state = autonomy_wtt_imperial_protectorate
					end_wars = no
					end_civil_wars = no
				}
			}
		}

	}

	# Then let them come!
	option = {
		name = SEA_japan_foreign_policy.7.b
		ai_chance = {
			base = 10
			modifier = {
				is_historical_focus_on = yes 
				factor = 0
			}
		}

		FROM = {
			country_event = {
				# [FROM.GetLeader] Refuses to Submit
				id = SEA_japan_foreign_policy.9
				hours = 5
				random_hours = 7
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
					expire = 0
				}
			}
		}

	}
}

# Siam Submits to out Demands - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.8
	title = SEA_japan_foreign_policy.8.t
	desc = SEA_japan_foreign_policy.8.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# And order is restored
	option = {
		name = SEA_japan_foreign_policy.8.a
		ai_chance = {
			base = 100
		}

		set_autonomy = {
			target = FROM
			autonomous_state = autonomy_wtt_imperial_protectorate
			end_wars = no
			end_civil_wars = no
		}

		add_ai_strategy = {
			type = protect
			id = SIA
			value = 100
		}

		JAP_setup_faction_wide_aoe_effects_root = yes

	}

}

# Siam Refuses to Submit - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.9
	title = SEA_japan_foreign_policy.9.t
	desc = SEA_japan_foreign_policy.9.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Tennoheika Banzai!
	option = {
		name = SEA_japan_foreign_policy.9.a
		ai_chance = {
			base = 100
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
			expire = 0
		}	

		add_ai_strategy = {
			type = antagonize
			id = SIA
			value = 50
		}

	}

}

# Japan demands Tonkin - event for owner of (671) 
country_event = {
	id = SEA_japan_foreign_policy.10
	title = SEA_japan_foreign_policy.10.t
	desc = SEA_japan_foreign_policy.10.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = SEA_japan_foreign_policy.10.a
		ai_chance = {
			base = 70
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				JAP = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.11
				days = 2
				random_days = 3
			}
		}
		effect_tooltip = {
			FROM = {
				transfer_state = 671
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = SEA_japan_foreign_policy.10.b
		ai_chance = {
			base = 30
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.8
				factor = 0.5
			}
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.12
				days = 2
				random_days = 3
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = take_state_focus
					target = ROOT
					generator = { 671 }
					expire = 0
				}	
			}
		}

	}
}

#FROM hands over Tonkin - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.11
	title = SEA_japan_foreign_policy.11.t
	desc = SEA_japan_foreign_policy.11.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = SEA_japan_foreign_policy.11.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt

		transfer_state = 671

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {
			delete_unit_template_and_units = {
				division_template = "Hanoi Minpei"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
			    name = "Hanoi Minpei"
			    #is_locked = yes
			    division_names_group = JAP_INF_01 # Should maybe be a specific milita names one?
				role = garrison
			    priority = 0
			    regiments = {
			        militia = { x = 0 y = 0 }
			        militia = { x = 0 y = 1 }
			        militia = { x = 0 y = 2 }
			        militia = { x = 1 y = 0 }
			        militia = { x = 1 y = 1 }
			    }
			}
		}
		
		random_state = {
			limit = {
				state = 671
			}
			create_unit = {
			    division = "name = \"1 Hanoi Minpei\" division_template = \"Hanoi Minpei\" start_experience_factor = 0.5 start_equipment_factor = 0.7"
			    owner = PREV
			}
			create_unit = {
			    division = "name = \"2 Hanoi Minpei\" division_template = \"Hanoi Minpei\" start_experience_factor = 0.5 start_equipment_factor = 0.7"
			    owner = PREV
			}
		}

	}
}

#FROM refuses to hand over Tonkin - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.12
	title = SEA_japan_foreign_policy.12.t
	desc = SEA_japan_foreign_policy.12.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = SEA_japan_foreign_policy.12.a
		ai_chance = {
			base = 100
		}

		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 671 }
			expire = 0
		}	

	}

	# It is simply not worth the effort
	option = {
		name = SEA_japan_foreign_policy.12.b
		ai_chance = {
			base = 0
		}

		add_stability = -0.05
		add_war_support = -0.05
		remove_state_claim = 671

	}
}

# Japan occupies East Timor! - event for POR
country_event = {
	id = SEA_japan_foreign_policy.13
	title = SEA_japan_foreign_policy.13.t
	desc = SEA_japan_foreign_policy.13.desc
	picture = GFX_report_event_spr_anarchist_uprising
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = SEA_japan_foreign_policy.13.a
		ai_chance = {
			base = 50
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 2.5
			}
			modifier = {
				is_in_faction = no
				JAP = { is_in_faction = yes }
				factor = 2
			}
		}

		add_political_power = 50
		add_stability = -0.02

	}

	# Who do they think they are?
	option = { 
		name = SEA_japan_foreign_policy.13.b
		ai_chance = {
			base = 20
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
		}

		declare_war_on = {
			target = FROM
			type = take_state_focus
			generator = 721
		}		

	}
}

# Japan reorganizes our government - event for MEN
country_event = {
	id = SEA_japan_foreign_policy.14
	title = SEA_japan_foreign_policy.14.t
	desc = SEA_japan_foreign_policy.14.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Very well
	option = { 
		name = SEA_japan_foreign_policy.14.a
		ai_chance = {
			base = 100
		}
		
		drop_cosmetic_tag = yes
		set_cosmetic_tag = MEN_autonomy

		custom_effect_tooltip = generic_skip_one_line_tt

		616 = {
			add_claim_by = ROOT
		}
		#756 = {
		#	add_claim_by = ROOT
		#}
		1040 = {
			add_claim_by = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = 100
		add_war_support = 0.05
		add_manpower = 5000

	}
}

# Japan demands Macau - event for owner of (729) 
country_event = {
	id = SEA_japan_foreign_policy.15
	title = SEA_japan_foreign_policy.15.t
	desc = SEA_japan_foreign_policy.15.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They can have it
	option = { 
		name = SEA_japan_foreign_policy.15.a
		ai_chance = {
			base = 70
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				JAP = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.16
				days = 2
				random_days = 3
			}
		}
		effect_tooltip = {
			FROM = {
				transfer_state = 729
			}
		}

	}

	# Who do they think they are?
	option = { 
		name = SEA_japan_foreign_policy.15.b
		ai_chance = {
			base = 30
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.8
				factor = 0.5
			}
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.17
				days = 2
				random_days = 3
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = take_state_focus
					target = ROOT
					generator = { 729 }
					expire = 0
				}	
			}
		}

	}
}

#FROM hands over Macau - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.16
	title = SEA_japan_foreign_policy.16.t
	desc = SEA_japan_foreign_policy.16.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Perfect!
	option = {
		name = SEA_japan_foreign_policy.16.a
		ai_chance = {
			base = 100
		}

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt

		transfer_state = 729

	}
}

#FROM refuses to hand over Macau - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.17
	title = SEA_japan_foreign_policy.17.t
	desc = SEA_japan_foreign_policy.17.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# War it is then
	option = {
		name = SEA_japan_foreign_policy.17.a
		ai_chance = {
			base = 100
		}

		create_wargoal = {
			type = take_state_focus
			target = FROM
			generator = { 729 }
			expire = 0
		}	

	}

	# It is simply not worth the effort
	option = {
		name = SEA_japan_foreign_policy.17.b
		ai_chance = {
			base = 0
		}

		add_stability = -0.05
		add_war_support = -0.05
		remove_state_claim = 729

	}
}

# Japan Invites us to Their Alliance - event for BHU, NEP or AFG
country_event = {
	id = SEA_japan_foreign_policy.18
	title = SEA_japan_foreign_policy.18.t
	desc = SEA_japan_foreign_policy.18.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# We will be stronger together 
	option = { 
		name = SEA_japan_foreign_policy.18.a
		ai_chance = {
			base = 90
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 1.5
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.19
				hours = 12
				random_hours = 24
			}
		}

		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
		}

	}

	# That would go against our principals of neutrality...
	option = { 
		name = SEA_japan_foreign_policy.18.b
		ai_chance = {
			base = 10
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_opinion = {
					target = JAP
					value > 25
				}	
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.20
				hours = 12
				random_hours = 24
			}
		}

	}
}

# FROM Accept our Offer - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.19
	title = SEA_japan_foreign_policy.19.t
	desc = SEA_japan_foreign_policy.19.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# As they should
	option = {
		name = SEA_japan_foreign_policy.19.a
		ai_chance = {
			base = 100
		}

		add_to_faction = FROM

		IF = {
			limit = {
				FROM = {
					original_tag = BHU
				}
			}
			add_ai_strategy = {
				type = protect
				id = BHU
				value = 100
			}
			FROM = {
				add_ai_strategy = {
					type = alliance
					id = JAP
					value = 200
				}
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = NEP
				}
			}
			add_ai_strategy = {
				type = protect
				id = NEP
				value = 100
			}
			FROM = {
				add_ai_strategy = {
					type = alliance
					id = JAP
					value = 200
				}
			}
		}
		ELSE_IF = {
			limit = {
				FROM = {
					original_tag = AFG
				}
			}
			add_ai_strategy = {
				type = protect
				id = AFG
				value = 100
			}
			FROM = {
				add_ai_strategy = {
					type = alliance
					id = JAP
					value = 200
				}
			}
		}

		JAP_setup_faction_wide_aoe_effects_root = yes

	}

}

# FROM Refuses to Join Us - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.20
	title = SEA_japan_foreign_policy.20.t
	desc = SEA_japan_foreign_policy.20.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# It's their loss
	option = {
		name = SEA_japan_foreign_policy.20.a
		ai_chance = {
			base = 100
		}

		

	}
}

# Japan further reorganizes our government - event for MEN
country_event = {
	id = SEA_japan_foreign_policy.21
	title = SEA_japan_foreign_policy.21.t
	desc = SEA_japan_foreign_policy.21.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Very well
	option = { 
		name = SEA_japan_foreign_policy.21.a
		ai_chance = {
			base = 100
		}
		
		IF = {
			limit = {
				FROM = {
					OR = {
						has_completed_focus = JAP_sea_purge_the_kodoha_faction
						has_government = fascism
					}
				}
				NOT = {
					has_government = fascism
				}
			}
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}	
			add_popularity = {
				ideology = fascism
				popularity = 0.25
			}	
			custom_effect_tooltip = generic_skip_one_line_tt
		}

		drop_cosmetic_tag = yes
		set_cosmetic_tag = MEN_mengjiang_autonomy

		custom_effect_tooltip = generic_skip_one_line_tt

		616 = {
			add_core_of = ROOT
		}
		1040 = {
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_ideas = MEN_true_mongol_state

	}
}

# Suspected [FROM.GetAdjective] Agents Spotted - event for TIB
country_event = {
	id = SEA_japan_foreign_policy.22
	title = SEA_japan_foreign_policy.22.t
	desc = SEA_japan_foreign_policy.22.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They won't cause us any harm, let them be
	option = { 
		name = SEA_japan_foreign_policy.22.a
		ai_chance = {
			base = 100
		}
		
		add_timed_idea = {
			idea = JAP_japanese_influence_growing_tibet
			days = 180
		}	

	}

	# It is imperative that we increase our national security!
	option = { 
		name = SEA_japan_foreign_policy.22.b
		ai_chance = {
			base = 0
		}
		
		add_timed_idea = {
			idea = JAP_smaller_japanese_influence_growing_tibet
			days = 180
		}	

	}
}

# [FROM.GetNameDefCap] Influencing our People - event for TIB
country_event = {
	id = SEA_japan_foreign_policy.23
	title = SEA_japan_foreign_policy.23.t
	desc = SEA_japan_foreign_policy.23.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no # Deliberate
	
	# The Co-Prosperity Sphere entices them...
	option = { 
		name = SEA_japan_foreign_policy.23.a
		ai_chance = {
			base = 100
		}
		
		IF = {
			limit = {
				original_tag = TIB
			}
			add_timed_idea = {
				idea = JAP_japanese_influence_growing_tibet_2
				days = 176
			}	
		}
		ELSE_IF = {
			limit = {
				original_tag = MON
			}
			add_timed_idea = {
				idea = JAP_japanese_influence_growing_mongolia
				days = 176
			}	
		}

	}

}

# [FROM.GetNameDefCap] Establishes Contact with Thubten Kunphel - event for TIB
country_event = {
	id = SEA_japan_foreign_policy.24
	title = SEA_japan_foreign_policy.24.t
	desc = SEA_japan_foreign_policy.24.desc
	picture = GFX_report_event_TIB_tibetan_army
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# The Co-Prosperity Sphere entices them...
	option = { 
		name = SEA_japan_foreign_policy.24.a
		ai_chance = {
			base = 100
		}

		add_stability = -0.03

		custom_effect_tooltip = generic_skip_one_line_tt
		
		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}	

	}

}

# [FROM.GetNameDefCap] Militarizes the Tibet Improvement Party - event for TIB
country_event = {
	id = SEA_japan_foreign_policy.25
	title = SEA_japan_foreign_policy.25.t
	desc = SEA_japan_foreign_policy.25.desc
	picture = GFX_report_event_TIB_tibetan_army
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# The Co-Prosperity Sphere entices them...
	option = { 
		name = SEA_japan_foreign_policy.25.a
		ai_chance = {
			base = 100
		}

		add_manpower = -500

		add_stability = -0.1

		custom_effect_tooltip = generic_skip_one_line_tt
		
		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}

	}

}

# The Strongman's Coup - event for TIB
country_event = {
	id = SEA_japan_foreign_policy.26
	title = SEA_japan_foreign_policy.26.t
	desc = SEA_japan_foreign_policy.26.desc
	picture = GFX_report_event_TIB_tibetan_army
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Perhaps he is right
	option = { 
		name = SEA_japan_foreign_policy.26.a
		ai_chance = {
			base = 100
		}

		FROM = {
			puppet = ROOT 
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}		
		add_popularity = {
			ideology = fascism
			popularity = 0.2
		}	
		add_manpower = 2500
		army_experience = 50

		JAP_setup_faction_wide_aoe_effects_from = yes

	}

	# Fight them off!
	option = { 
		name = SEA_japan_foreign_policy.26.b
		ai_chance = {
			base = 0
		}

		start_civil_war = {
			ideology = fascism
			ruling_party = ROOT
			size = 0.6
			keep_all_characters = yes 
			PREV = {  # Original country
	            TIB_thubten_kunpela = { # Character
	                set_nationality = PREV.PREV
	                # Transfers to breakaway
	            }
	        }
		}

	}

}

# [FROM.GetNameDefCap] Supports Pan-Mongol Claims - event for MEN
country_event = {
	id = SEA_japan_foreign_policy.27
	title = SEA_japan_foreign_policy.27.t
	desc = SEA_japan_foreign_policy.27.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Very well
	option = { 
		name = SEA_japan_foreign_policy.27.a

		drop_cosmetic_tag = yes
		set_cosmetic_tag = MEN_mongol_autonomy

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = 150
		add_war_support = 0.1

		custom_effect_tooltip = generic_skip_one_line_tt

		MON = {
			every_core_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
						is_claimed_by = ROOT
					}
				}
				add_claim_by = ROOT
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			create_wargoal = {
				type = annex_everything
				target = MON
				expire = 0
			}
		}

	}
}

# [FROM.GetNameDefCap] Supports Pan-Mongol Claims - event for MEN
country_event = {
	id = SEA_japan_foreign_policy.28
	title = SEA_japan_foreign_policy.28.t
	desc = SEA_japan_foreign_policy.28.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no 
	
	# Splendid
	option = { 
		name = SEA_japan_foreign_policy.28.a

		FROM = {
			every_controlled_state = {
				limit = {
					OR = {
						state = 818
						state = 817
						state = 330
						state = 820
						state = 819
						state = 564
						state = 329
						state = 654
						state = 760
						state = 756
						state = 621
						state = 746
						state = 612
						state = 611
						state = 761
						state = 563
						state = 566
						state = 616
					}
				}
				transfer_state_to = ROOT
			}
		}

	}
}

# Results of the Suiyuan Campaign - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.29
	title = SEA_japan_foreign_policy.29.t
	desc = SEA_japan_foreign_policy.29.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			IF = {
				limit = {
					621 = {
						is_controlled_by_ROOT_or_subject = yes
					}
				}
				621 = {
					set_state_flag = MEN_occupied_state_suiyuan_campaign
				}
			}
			IF = {
				limit = {
					746 = {
						is_controlled_by_ROOT_or_subject = yes
					}
				}
				746 = {
					set_state_flag = MEN_occupied_state_suiyuan_campaign
				}
			}
			IF = {
				limit = {
					621 = {
						is_controlled_by_ROOT_or_subject = yes
					}
					746 = {
						NOT = {
							is_controlled_by_ROOT_or_subject = yes
						}
					}
					MEN = {
						exists = yes
						is_ally_with = ROOT
					}
				}
				621 = {
					transfer_state_to = MEN
				}
				MEN = {
					add_war_support = 0.05
					add_political_power = 50 
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					621 = {
						is_controlled_by_ROOT_or_subject = yes
					}
					746 = {
						is_controlled_by_ROOT_or_subject = yes
					}
					MEN = {
						exists = yes
						is_ally_with = ROOT
					}
				}
				621 = {
					transfer_state_to = MEN
				}
				746 = {
					transfer_state_to = MEN
				}
				MEN = {
					add_war_support = 0.1
					add_political_power = 150 
				}
				add_political_power = 100
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					621 = {
						NOT = {
							is_controlled_by_ROOT_or_subject = yes
						}
					}
					746 = {
						NOT = {
							is_controlled_by_ROOT_or_subject = yes
						}
					}
					MEN = {
						exists = yes
						is_ally_with = ROOT
					}
				}
				MEN = {
					add_stability = -0.05
					add_political_power = -50 
				}
				add_political_power = -25
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			ROOT = {
				white_peace = {
					tag = SHX
				}
			}
			every_country = {
				limit = {
					is_ally_with = ROOT
					has_war_with = SHX
				}
				white_peace = {
					tag = SHX
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					SHX = {
						exists = yes
						NOT = {
							is_ally_with = ROOT
						}
					}
				}
				SHX = {
					country_event = {
						id = SEA_japan_foreign_policy.30
						hours = 2
					}	
				}
			}
		}
	}
	
	# At least we can now focus on other areas
	option = { 
		name = SEA_japan_foreign_policy.29.a

		effect_tooltip = {
			IF = {
				limit = {
					621 = {
						has_state_flag = MEN_occupied_state_suiyuan_campaign
					}
					746 = {
						NOT = {
							has_state_flag = MEN_occupied_state_suiyuan_campaign
						}
					}
					MEN = {
						exists = yes
						is_ally_with = ROOT
					}
				}
				621 = {
					transfer_state_to = MEN
				}
				MEN = {
					add_war_support = 0.05
					add_political_power = 50 
				}
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					621 = {
						has_state_flag = MEN_occupied_state_suiyuan_campaign
					}
					746 = {
						has_state_flag = MEN_occupied_state_suiyuan_campaign
					}
					MEN = {
						exists = yes
						is_ally_with = ROOT
					}
				}
				621 = {
					transfer_state_to = MEN
				}
				746 = {
					transfer_state_to = MEN
				}
				MEN = {
					add_war_support = 0.1
					add_political_power = 150 
				}
				add_political_power = 100
				custom_effect_tooltip = generic_skip_one_line_tt
			}
			ELSE_IF = {
				limit = {
					621 = {
						NOT = {
							has_state_flag = MEN_occupied_state_suiyuan_campaign
						}
					}
					746 = {
						NOT = {
							has_state_flag = MEN_occupied_state_suiyuan_campaign
						}
					}
					MEN = {
						exists = yes
						is_ally_with = ROOT
					}
				}
				MEN = {
					add_stability = -0.05
					add_political_power = -50 
				}
				add_political_power = -25
				custom_effect_tooltip = generic_skip_one_line_tt
			}

			ROOT = {
				white_peace = {
					tag = SHX
				}
			}
			every_country = {
				limit = {
					is_ally_with = ROOT
					has_war_with = SHX
				}
				white_peace = {
					tag = SHX
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					SHX = {
						exists = yes
						NOT = {
							is_ally_with = ROOT
						}
					}
				}
				SHX = {
					country_event = {
						id = SEA_japan_foreign_policy.30
						hours = 2
					}	
				}
			}
		}		

	}
}

# The End of the Suiyuan Campaign - event for SHX
country_event = {
	id = SEA_japan_foreign_policy.30
	title = SEA_japan_foreign_policy.30.t
	desc = SEA_japan_foreign_policy.30.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Another threat dealt with
	option = { 
		name = SEA_japan_foreign_policy.30.a

		add_political_power = 100	

	}
}

# Pro-Japanese Forces Assault our Positions! - event for SHX
country_event = {
	id = SEA_japan_foreign_policy.31
	title = SEA_japan_foreign_policy.31.t
	desc = SEA_japan_foreign_policy.31.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# Show them who they're dealing with
	option = { 
		name = SEA_japan_foreign_policy.31.a

		add_war_support = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_timed_idea = {
			idea = SHX_suiyuan_campaign_idea
			days = 70
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_equipment_to_stockpile = { 
			type = infantry_equipment_0
			amount = 500
			producer = ROOT
		}	

	}
}

# Japan Seeks Collaboration against the Communist Threat - event for CHI
country_event = {
	id = SEA_japan_foreign_policy.32
	title = SEA_japan_foreign_policy.32.t
	desc = SEA_japan_foreign_policy.32.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We can promise them that
	option = { 
		name = SEA_japan_foreign_policy.32.a
		ai_chance = {
			base = 100
		}

		add_timed_idea = {
			idea = JAP_anti_communist_crackdowns_idea
			days = 360
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_timed_idea = {
			idea = CHI_suppression_of_anti_japanese_sentiments_idea
			days = 360
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				XIC = {
					exists = yes
					NOT = {
						is_ally_with = ROOT
						has_war_with = ROOT
					}
				}
			}
			create_wargoal = {
				type = annex_everything
				target = XIC
				expire = 0
			}	
			custom_effect_tooltip = generic_skip_one_line_tt
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.33
				hours = 6
				random_hours = 12
			}	
		}

		hidden_effect = {
			set_global_flag = CHI_accepted_JAP_demands_to_suppress_communism_and_more_flag
		}

	}

	# We will make no deals with the [JAP.GetAdjective]
	option = { 
		name = SEA_japan_foreign_policy.32.b
		ai_chance = {
			base = 0
		}

		add_popularity = {
			ideology = communism
			popularity = 0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.34
				hours = 6
				random_hours = 12
			}	
		}

	}

}

# [FROM.GetLeader] Accepts our Demands - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.33
	title = SEA_japan_foreign_policy.33.t
	desc = SEA_japan_foreign_policy.33.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# The first step has been taken
	option = { 
		name = SEA_japan_foreign_policy.33.a

		add_political_power = 50

		IF = {
			limit = {
				has_active_mission = JAP_kwantung_army_impatience
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_days_mission_timeout = {
			    mission = JAP_kwantung_army_impatience
			    days = 360 
			}
			hidden_effect = {
				CHI = {
					add_days_mission_timeout = {
					    mission = CHI_kwantung_army_impatience_dummy
					    days = 360 
					}
				}
			}
		}

	}

}

# [FROM.GetLeader] Rejects our Demands - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.34
	title = SEA_japan_foreign_policy.34.t
	desc = SEA_japan_foreign_policy.34.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# They will come to regret their decision
	option = { 
		name = SEA_japan_foreign_policy.34.a

		add_opinion_modifier = {
			target = FROM
			modifier = CHI_rejected_our_proposal_for_cooperation_opm
		}	

	}

}

# [FROM.GetNameDefCap] Spreads Pro-[FROM.GetAdjective] Sentiments - event for USA
country_event = {
	id = SEA_japan_foreign_policy.35
	title = SEA_japan_foreign_policy.35.t
	desc = SEA_japan_foreign_policy.35.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# How dare they!
	option = { 
		name = SEA_japan_foreign_policy.35.a

		IF = {
			limit = {
				NOT = {
					has_war_with = FROM
				}
			}
			add_war_support = -0.05
		}
		ELSE = {
			add_timed_idea = {
				idea = JAP_pro_japanese_sentiments_for_usa_idea
				days = 180
			}	
		}

	}

}

# [FROM.GetNameDefCap] Spreads Pro-[FROM.GetAdjective] Sentiments - event for Independent Asian Countries
country_event = {
	id = SEA_japan_foreign_policy.36
	title = SEA_japan_foreign_policy.36.t
	desc = SEA_japan_foreign_policy.36.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# We could use their friendship
	option = { 
		name = SEA_japan_foreign_policy.36.a
		ai_chance = {
			base = 100
			modifier = {
				has_government = communism
				add = -75
			}
			modifier = {
				is_subject = yes
				NOT = {
					is_subject_of = JAP
				}
				add = -50
			}
			modifier = {
				is_ally_with = JAP
				add = 100
			}
		}

		add_offsite_building = {
			type = industrial_complex
			level = 2
		}	
		add_ideas = JAP_supported_pro_japanese_sentiments_idea

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = JAP_growing_pro_japanese_sentiment_opm
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.37
				hours = 6
				random_hours = 12
			}	
		}

		hidden_effect = {
			set_country_flag = JAP_country_that_accepted_japanese_influence_flag
		}

	}

	# Crack down on this nonsense now!
	option = { 
		name = SEA_japan_foreign_policy.36.b
		ai_chance = {
			base = 0
			modifier = {
				has_government = communism
				add = 100
			}
			modifier = {
				is_subject = yes
				NOT = {
					is_subject_of = JAP
				}
				add = 50
			}
		}

		FROM = {
			add_opinion_modifier = {
				target = ROOT
				modifier = JAP_cracked_down_on_growing_pro_japanese_sentiment_opm
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.38
				hours = 6
				random_hours = 12
			}	
		}

		hidden_effect = {
			set_country_flag = JAP_country_that_rejected_japanese_influence_flag
		}

	}

}

# [FROM.GetNameDefCap] Allows our Influence to Spread - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.37
	title = SEA_japan_foreign_policy.37.t
	desc = SEA_japan_foreign_policy.37.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# Just as we predicted
	option = { 
		name = SEA_japan_foreign_policy.37.a

		effect_tooltip = {
			FROM = {
				add_offsite_building = {
					type = industrial_complex
					level = 2
				}	
				add_ideas = JAP_supported_pro_japanese_sentiments_idea
			}
		}

	}

}

# [FROM.GetNameDefCap] Blocks our Influence from Spreading - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.38
	title = SEA_japan_foreign_policy.38.t
	desc = SEA_japan_foreign_policy.38.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They know what fate has in store for them
	option = { 
		name = SEA_japan_foreign_policy.38.a

		

	}

}

# [FROM.GetAdjective] Investments into our Natural Resources - event for Independent Asian Countries
country_event = {
	id = SEA_japan_foreign_policy.39
	title = SEA_japan_foreign_policy.39.t
	desc = SEA_japan_foreign_policy.39.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# Surely there is some hidden intent behind this
	option = { 
		name = SEA_japan_foreign_policy.39.a

		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		every_owned_state = {
			limit = {
				is_controlled_by = ROOT
			}
			add_dynamic_modifier = {
				modifier = JAP_resource_extraction_investments_dm
			}
		}

	}

}

# The Question of East Asian Co-Prosperity - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.40
	title = SEA_japan_foreign_policy.40.t
	desc = SEA_japan_foreign_policy.40.desc
	picture = GFX_report_event_JAP_greater_east_asia_conference
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# The Emperors supreme authority must always come first!
	option = { 
		name = SEA_japan_foreign_policy.40.a
		ai_chance = {
			base = 95
		}

		set_country_flag = JAP_chose_to_exploit_east_asia_flag

		custom_effect_tooltip = JAP_unlock_east_asia_occupation_law_tt
		show_ideas_tooltip = GEACPS_exploitation_occupation_law_fake_idea

		ROOT = { set_occupation_law_where_available = GEACPS_exploitation_occupation_law } # Set law in all countries/states where it's available.

	}

	# We must pursue prosperity for all Asian states!
	option = { 
		name = SEA_japan_foreign_policy.40.b
		ai_chance = {
			base = 5
		}

		set_country_flag = JAP_chose_to_support_east_asia_flag

		custom_effect_tooltip = JAP_unlock_east_asia_occupation_law_tt
		show_ideas_tooltip = GEACPS_prosperity_occupation_law_fake_idea

		ROOT = { set_occupation_law_where_available = GEACPS_prosperity_occupation_law } # Set law in all countries/states where it's available.

	}

}

# Senbu occupation law available, Wanna apply it everywhere possible? - Event for JAP
country_event = {
	id = SEA_japan_foreign_policy.41
	title = SEA_japan_foreign_policy.41.t
	desc = SEA_japan_foreign_policy.41.desc
	picture = GFX_report_event_JAP_army_occupation
	
	is_triggered_only = yes

	# APPLY IT EVERYWHERE TACK!
	option = { 
		name = SEA_japan_foreign_policy.41.a

		ai_chance = {
			base = 10
		}
		JAP = { set_occupation_law_where_available = senbu_occupation_law } # Set law in all countries/states where it's available.
		custom_effect_tooltip = apply_senbu_law_tt
	}

	# NOT INTERESTED
	option = { 
		name = SEA_japan_foreign_policy.41.b

		ai_chance = {
			base = 0
		}

		
	}
}

# A Sino-Japanese Alliance
country_event = {
	id = SEA_japan_foreign_policy.42
	title = SEA_japan_foreign_policy.42.t
	desc = SEA_japan_foreign_policy.42.desc
	picture = GFX_report_event_molotov_ribbentrop_stalin_pact

	is_triggered_only = yes

	option = {
		# It lies within our best interest
		name = SEA_japan_foreign_policy.42.a

		IF = {
			limit = {
				is_faction_leader = yes
			}
			dismantle_faction = yes
		}
		
		add_timed_idea = {
			idea = JAP_japanese_chinese_friendship
			days = 730
		}

		every_other_country = {
			limit = {
				AND = {
					NOT = { 
						tag = JAP 
						is_ally_with = JAP
					}
				}
				capital_scope = {
					is_on_continent = asia
				}
			}
			add_opinion_modifier = { target = CHI modifier = sino_japanese_alliance_threat }
		}

		add_opinion_modifier = {
			target = FROM
			modifier = signed_the_sino_japanese_pact_opm
		}

		effect_tooltip = {
			declare_war_on = {
				target = PRC
				type = annex_everything
			}	
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.43
				hours = 1
			}		
		}
		effect_tooltip = {
			FROM = {
				add_timed_idea = {
					idea = JAP_japanese_chinese_friendship
					days = 730
				}
				
				set_rule = { can_create_factions = yes }
				create_faction_from_template = faction_template_JAP_sino_japanese_pact
				add_to_faction = ROOT
				add_named_threat = { threat = 3 name = SEA_japan_foreign_policy.42.t }
			}
		}

	}

	option = {
		# This smells fishy
		name = SEA_japan_foreign_policy.42.b
		ai_chance = { factor = 0 }
		
		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.44
				hours = 1
			}		
		}

	}
}

# [FROM.GetLeader] Signs the Pact
country_event = {
	id = SEA_japan_foreign_policy.43
	title = SEA_japan_foreign_policy.43.t
	desc = SEA_japan_foreign_policy.43.desc
	picture = GFX_report_event_molotov_ribbentrop_stalin_pact

	is_triggered_only = yes

	option = {
		# Splendid
		name = SEA_japan_foreign_policy.43.a
		
		add_timed_idea = {
			idea = JAP_japanese_chinese_friendship
			days = 730
		}
		
		set_rule = { can_create_factions = yes }
		create_faction_from_template = faction_template_JAP_sino_japanese_pact
		add_to_faction = FROM
		add_named_threat = { threat = 3 name = SEA_japan_foreign_policy.42.t }

		set_country_flag = JAP_CHI_pact_is_active_flag

		add_opinion_modifier = {
			target = FROM
			modifier = signed_the_sino_japanese_pact_opm
		}	

		CHI = {
			declare_war_on = {
				target = PRC
				type = annex_everything
			}	
		}

		IF = {
			limit = {
				has_active_mission = JAP_kwantung_army_impatience
			}

			add_days_mission_timeout = {
			    mission = JAP_kwantung_army_impatience
			    days = 730 
			}
			hidden_effect = {
				CHI = {
					add_days_mission_timeout = {
					    mission = CHI_kwantung_army_impatience_dummy
					    days = 730 
					}
				}
			}

		}

		JAP_setup_faction_wide_aoe_effects_root = yes

	}
}

# [FROM.GetLeader] Refuses to Sign the Pact
country_event = {
	id = SEA_japan_foreign_policy.44
	title = SEA_japan_foreign_policy.44.t
	desc = SEA_japan_foreign_policy.44.desc
	picture = GFX_report_event_molotov_ribbentrop_stalin_pact

	is_triggered_only = yes

	option = {
		# Nothing can be done about it
		name = SEA_japan_foreign_policy.44.a
		
		IF = {
			limit = {
				has_active_mission = JAP_kwantung_army_impatience
			}

			add_days_mission_timeout = {
			    mission = JAP_kwantung_army_impatience
			    days = -360 
			}

			hidden_effect = {
				CHI = {
					add_days_mission_timeout = {
					    mission = CHI_kwantung_army_impatience_dummy
					    days = -360 
					}
				}
			}
		}

	}
}

# Japan invites us to further economic integration - event for person Japan wants to integrate
country_event = { 
	id = SEA_japan_foreign_policy.45
	title = SEA_japan_foreign_policy.45.t
	desc = SEA_japan_foreign_policy.45.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It would be our honor
		name = SEA_japan_foreign_policy.45.a
		ai_chance = {
			base = 12
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
		}

		FROM = { # FROM Accepts
			country_event = { 
				id = SEA_japan_foreign_policy.46
				hours = 5 
				random_hours = 5 
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = {
					target = ROOT
					end_wars = no
					end_civil_wars = no
				}	
			}
		}

		hidden_effect = {
			set_country_flag = JAP_country_that_accepted_economic_integration_flag
		}
	}

	option = { # We do not need their friendship!
		name = SEA_japan_foreign_policy.45.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = SEA_japan_foreign_policy.47
				hours = 5 
				random_hours = 5 
			}
		}

		hidden_effect = {
			set_country_flag = JAP_country_that_rejected_economic_integration_flag
		}
	}
}

country_event = { # [FROM.GetNameDefCap] Accepts our offer - event for JAP
	id = SEA_japan_foreign_policy.46
	title = SEA_japan_foreign_policy.46.t
	desc = SEA_japan_foreign_policy.46.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We are grateful for their naiveté
		name = SEA_japan_foreign_policy.46.a  

		puppet = {
			target = FROM
			end_wars = no
			end_civil_wars = no
		}	

		JAP_setup_faction_wide_aoe_effects_root = yes

	}
}

country_event = { # [FROM.GetNameDefCap] Rejects our offer - event for JAP
	id = SEA_japan_foreign_policy.47
	title = SEA_japan_foreign_policy.47.t
	desc = SEA_japan_foreign_policy.47.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Terrible news...
		name = SEA_japan_foreign_policy.47.a	

	}
}

country_event = { # [FROM.GetNameDefCap] Develops our Industries - event for country invested in
	id = SEA_japan_foreign_policy.48
	title = SEA_japan_foreign_policy.48.t
	desc = SEA_japan_foreign_policy.48.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Prosperity is within sight!
		name = SEA_japan_foreign_policy.48.a	
		
		add_tech_bonus = {
			bonus = 0.5
			uses = 2
			category = industry
		}

		random_core_state = {
			limit = {
				has_state_flag = JAP_state_development_target
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}	
			IF = {
				limit = {
					infrastructure < 5
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}	
			}
		}	

	}
}

country_event = { # Proclamation of the Reorganized Government - event for RNG
	id = SEA_japan_foreign_policy.49
	title = SEA_japan_foreign_policy.49.t
	desc = SEA_japan_foreign_policy.49.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Prosperity is within sight!
		name = SEA_japan_foreign_policy.49.a	
		
		JAP_setup_faction_wide_aoe_effects_from = yes	

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {

			delete_unit_template_and_units = {
				division_template = "Peacebuilding National Army Division"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
				name = "Peacebuilding National Army Division"
				division_names_group = CHI_INF_01
				role = garrison
				template_counter = 110
				is_locked = no
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
				}
				support = {
					recon = { x = 0 y = 0 }
				}
			}

		}

		random_owned_controlled_state = {
			limit = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
			create_unit = {
			    division = "name = \"1st Peacebuilding National Army Division\" division_template = \"Peacebuilding National Army Division\" start_experience_factor = 0.3 start_equipment_factor = 0.9"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"2nd Peacebuilding National Army Division\" division_template = \"Peacebuilding National Army Division\" start_experience_factor = 0.3 start_equipment_factor = 0.9"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"3rd Peacebuilding National Army Division\" division_template = \"Peacebuilding National Army Division\" start_experience_factor = 0.3 start_equipment_factor = 0.9"
			    owner = ROOT
			}
		}

	}
}

country_event = { #FROM proposes tightened federation
	id = SEA_japan_foreign_policy.50
	title = SEA_japan_foreign_policy.50.t
	desc = SEA_japan_foreign_policy.50.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = SEA_japan_foreign_policy.50.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.51
				hours = 12
			}
		}
		custom_effect_tooltip = GAME_OVER_TT
		effect_tooltip = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
		}

	}
	option = { #no way
		name = SEA_japan_foreign_policy.50.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.52
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_free
					end_wars  = no
					end_civil_wars = no
				}	
				remove_from_faction = ROOT

				custom_effect_tooltip = generic_skip_one_line_tt

				create_wargoal = {
					type = annex_everything
					target = ROOT 
					expire = 0
				}
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = SEA_japan_foreign_policy.51
	title = SEA_japan_foreign_policy.51.t
	desc = SEA_japan_foreign_policy.51.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = SEA_japan_foreign_policy.51.a

		annex_country = {
			target = FROM
			transfer_troops = yes
		}	
		every_controlled_state = {
			limit = {
				is_core_of = FROM
			}
			add_compliance = 25
			add_extra_state_shared_building_slots = 1
		}
	}
}

country_event = { #FROM rejects tighter federation
	id = SEA_japan_foreign_policy.52
	title = SEA_japan_foreign_policy.52.t
	desc = SEA_japan_foreign_policy.52.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = SEA_japan_foreign_policy.52.a
		ai_chance = {
			base = 95
		}

		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_free
			end_wars  = no
			end_civil_wars = no
		}	
		remove_from_faction = FROM

		custom_effect_tooltip = generic_skip_one_line_tt

		create_wargoal = {
			type = annex_everything
			target = FROM 
			expire = 0
		}

	}
	option = { #was worth asking
		name = SEA_japan_foreign_policy.52.b
		ai_chance = {
			base = 5
		}

		add_political_power = 50
		
	}
}

# Subversives Spotted in Khan Khentii Uulyn Aimag - event for MON
country_event = {
	id = SEA_japan_foreign_policy.53
	title = SEA_japan_foreign_policy.53.t
	desc = SEA_japan_foreign_policy.53.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# We must be on our guard!
	option = { 
		name = SEA_japan_foreign_policy.53.a

		add_stability = -0.05
		
		add_popularity = {
			ideology = fascism
			popularity = 0.05
		}	

		add_popularity = {
			ideology = neutrality
			popularity = 0.05
		}	

		add_manpower = -300

	}

}

# [FROM.GetAdjective] Arms Flooding the Black Markets - event for MON
country_event = {
	id = SEA_japan_foreign_policy.54
	title = SEA_japan_foreign_policy.54.t
	desc = SEA_japan_foreign_policy.54.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They are arming political dissidents!
	option = { 
		name = SEA_japan_foreign_policy.54.a

		add_stability = -0.05
		
		add_popularity = {
			ideology = MON
			popularity = -0.1
		}	

		add_political_power = -50

	}

}

# Rumors of an Inner-Mongolian Incursion - event for MON
country_event = {
	id = SEA_japan_foreign_policy.55
	title = SEA_japan_foreign_policy.55.t
	desc = SEA_japan_foreign_policy.55.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is now do or die, prepare for the worst!
	option = { 
		name = SEA_japan_foreign_policy.55.a

		add_stability = -0.05

		add_popularity = {
			ideology = ROOT
			popularity = -0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		every_possible_country = {
			limit = {
				has_character = MEN_jodbajab
			}
			set_nationality = {
			    target_country = ROOT
			    character = MEN_jodbajab
			}
		}

		set_country_flag = MON_jodbajab_arrived_in_the_country_flag

	}

}

# Manchurian Guerillas Spotted in the East - event for MON
country_event = {
	id = SEA_japan_foreign_policy.56
	title = SEA_japan_foreign_policy.56.t
	desc = SEA_japan_foreign_policy.56.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# It is now do or die, prepare for the worst!
	option = { 
		name = SEA_japan_foreign_policy.56.a

		add_stability = -0.05

		add_popularity = {
			ideology = ROOT
			popularity = -0.05
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_possible_country = {
			limit = {
				has_character = MAN_jonjurjab
			}
			set_nationality = {
			    target_country = ROOT
			    character = MAN_jonjurjab
			}
		}

		set_country_flag = MON_jonjurjab_arrived_in_the_country_flag

	}

}

# [FROM.GetAdjective] Pressure for Submission - event for MON
country_event = {
	id = SEA_japan_foreign_policy.57
	title = SEA_japan_foreign_policy.57.t
	desc = SEA_japan_foreign_policy.57.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# We can't fight them
	option = { 
		name = SEA_japan_foreign_policy.57.a
		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				is_subject = yes
			}
		}

		FROM = {
			puppet = {
				target = ROOT
				end_wars = yes
			}	 
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}		
		add_popularity = {
			ideology = fascism
			popularity = 0.2
		}	
		add_manpower = 3000
		army_experience = 50
		add_political_power = 100

		IF = {
			limit = {
				has_country_flag = MON_jonjurjab_arrived_in_the_country_flag
			}
			add_country_leader_role = {
				character = MAN_jonjurjab
				promote_leader = yes
				country_leader = {
					ideology = japan_militarism_ideology
					expire = "1952.1.1.1"
					traits = { spirit_of_genghis } 
				}
			}
			add_country_leader_role = {
				character = MAN_jonjurjab
				promote_leader = yes
				country_leader = {
					ideology = emperor_fascism
					expire = "1952.1.1.1"
					traits = { spirit_of_genghis } 
				}
			}
		}
		ELSE_IF = {
			limit = {
				has_country_flag = MON_jodbajab_arrived_in_the_country_flag
			}
			add_country_leader_role = {
				character = MEN_jodbajab
				promote_leader = yes
				country_leader = {
					ideology = japan_militarism_ideology
					expire = "1952.1.1.1"
					traits = { spirit_of_genghis } 
				}
			}
			add_country_leader_role = {
				character = MEN_jodbajab
				promote_leader = yes
				country_leader = {
					ideology = emperor_fascism
					expire = "1952.1.1.1"
					traits = { spirit_of_genghis } 
				}
			}
		}

		JAP_setup_faction_wide_aoe_effects_from = yes

	}

	# We must protect the revolution!
	option = { 
		name = SEA_japan_foreign_policy.57.b
		ai_chance = {
			base = 0
			modifier = {
				add = 25
				is_in_faction_with = SOV
			}
			modifier = {
				add = 10
				is_historical_focus_on = yes 
			}
		}

		custom_effect_tooltip = MON_japan_starts_a_popular_civil_war_tt

		hidden_effect = {
			IF = {
				limit = {
					has_country_flag = MON_jonjurjab_arrived_in_the_country_flag
				}

				start_civil_war = {
				    ideology = fascism
				    size = 0.7
				    keep_all_characters = yes
				    states = all
				    states_filter = {
				        OR = {
				        	state = 819
				        	state = 817
				        	state = 818
				        }
				        is_controlled_by = ROOT
				    }

			    	PREV = {  # Original country
			            MAN_jonjurjab = { # Character
			                set_nationality = PREV.PREV
			                # Transfers to breakaway
			            }
		        	}
		        	IF = {
		        		limit = {
		        			PREV.PREV = {
		        				NOT = {
		        					has_country_leader = {
		        						ruling_only = yes
		        						character = MAN_jonjurjab
		        					}
		        				}
		        				has_civil_war = yes
		        			}
		        		}
		        		PREV.PREV = {
		        			add_country_leader_role = {
		        				character = MAN_jonjurjab
		        				promote_leader = yes
		        				country_leader = {
		        					ideology = japan_militarism_ideology
		        					expire = "1952.1.1.1"
		        					traits = { spirit_of_genghis } 
		        				}
		        			}
		        			add_country_leader_role = {
		        				character = MAN_jonjurjab
		        				promote_leader = yes
		        				country_leader = {
		        					ideology = emperor_fascism
		        					expire = "1952.1.1.1"
		        					traits = { spirit_of_genghis } 
		        				}
		        			}
		        		}
		        	}

		        	PREV.PREV = {
		        		FROM = {
		        			puppet = {
		        				target = PREV
		        				end_wars = no
		        				end_civil_wars = no
		        			}	 
		        		}
		        	}

		        }

			}
			ELSE_IF = {
				limit = {
					has_country_flag = MON_jodbajab_arrived_in_the_country_flag
				}

				start_civil_war = {
				    ideology = fascism
				    size = 0.7
				    keep_all_characters = yes
				    states = all
				    states_filter = {
				        OR = {
				        	state = 819
				        	state = 817
				        	state = 818
				        }
				        is_controlled_by = ROOT
				    }

			    	PREV = {  # Original country
			            MEN_jodbajab = { # Character
			                set_nationality = PREV.PREV
			                # Transfers to breakaway
			            }
		        	}
		        	IF = {
		        		limit = {
		        			PREV.PREV = {
		        				NOT = {
		        					has_country_leader = {
		        						ruling_only = yes
		        						character = MEN_jodbajab
		        					}
		        				}
		        				has_civil_war = yes
		        			}
		        		}
		        		PREV.PREV = {
		        			add_country_leader_role = {
		        				character = MEN_jodbajab
		        				promote_leader = yes
		        				country_leader = {
		        					ideology = japan_militarism_ideology
		        					expire = "1952.1.1.1"
		        					traits = { spirit_of_genghis } 
		        				}
		        			}
		        			add_country_leader_role = {
		        				character = MEN_jodbajab
		        				promote_leader = yes
		        				country_leader = {
		        					ideology = emperor_fascism
		        					expire = "1952.1.1.1"
		        					traits = { spirit_of_genghis } 
		        				}
		        			}
		        		}
		        	}

		        	PREV.PREV = {
		        		FROM = {
		        			puppet = {
		        				target = PREV
		        				end_wars = no
		        				end_civil_wars = no
		        			}	 
		        		}
		        	}

		        }

			}

		}

	}

}


# [FROM.GetNameDefCap] Hands over Chinese States - event for RNG
country_event = {
	id = SEA_japan_foreign_policy.58
	title = SEA_japan_foreign_policy.58.t
	desc = SEA_japan_foreign_policy.58.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# Splendid
	option = { 
		name = SEA_japan_foreign_policy.58.a

		every_state = {
			limit = {
				is_fully_controlled_by = FROM
				is_core_of = CHI
				NOT = {
					is_owned_by = FROM
					is_owned_by = ROOT
				}
				NOT = {
					state = 745 # Kwantung Leased Territory
					state = 609 # Easty Hebei
					state = 611 # South Chahar
					state = 612 # Chahar
					region = 155 # West Manchuria
					region = 242 # North Manchuria
					region = 243 # East Manchuria
					state = 728 # Gouangzhouwan
					state = 729 # Macau
					state = 326 # Hong Kong
					state = 743 # Qingdao
					state = 524 # Taiwan
				}
			}
			add_contested_owner = RNG
			set_state_controller_to = ROOT
			add_claim_by = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				is_fully_controlled_by = FROM
				is_owned_by = FROM
				is_core_of = CHI
				NOT = {
					is_owned_by = ROOT
				}
				NOT = {
					state = 745 # Kwantung Leased Territory
					state = 609 # Easty Hebei
					state = 611 # South Chahar
					state = 612 # Chahar
					region = 155 # West Manchuria
					region = 242 # North Manchuria
					region = 243 # East Manchuria
					state = 728 # Gouangzhouwan
					state = 729 # Macau
					state = 326 # Hong Kong
					state = 743 # Qingdao
					state = 524 # Taiwan
				}
			}
			ROOT = {
				transfer_state = PREV
			}
		}
		

	}

}

# Proclamation of the State of Burma - event for BRM
country_event = { 
	id = SEA_japan_foreign_policy.59
	title = SEA_japan_foreign_policy.59.t
	desc = SEA_japan_foreign_policy.59.desc 
	picture = GFX_report_event_JAP_burma_independence_army

	is_triggered_only = yes

	# Prosperity is within sight!
	option = { 
		name = SEA_japan_foreign_policy.59.a	

		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt
		
		JAP_setup_faction_wide_aoe_effects_JAP = yes	

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {

			delete_unit_template_and_units = {
				division_template = "Burma Independence Army"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
				name = "Burma Independence Army"
				division_names_group = JAP_INF_01
				template_counter = 117
				is_locked = no
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
				}
				support = {
					recon = { x = 0 y = 0 }
					engineer = { x = 0 y = 1 }
				}
			}

		}

		random_owned_controlled_state = {
			limit = {
				is_core_of = ROOT
			}
			create_unit = {
			    division = "name = \"First Burma Independence Army Division\" division_template = \"Burma Independence Army\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Second Burma Independence Army Division\" division_template = \"Burma Independence Army\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Third Burma Independence Army Division\" division_template = \"Burma Independence Army\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Fourth Burma Independence Army Division\" division_template = \"Burma Independence Army\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_state = {
			limit = {
				is_core_of = ROOT
				is_controlled_by = JAP
			}
			set_state_controller_to = ROOT
		}

		IF = {
			limit = {
				has_cosmetic_tag = BRM_british
			}
			drop_cosmetic_tag = yes
		}

	}
}

# Japan Establishes the State of Burma - event for BRM
country_event = { 
	id = SEA_japan_foreign_policy.60
	title = SEA_japan_foreign_policy.60.t
	desc = SEA_japan_foreign_policy.60.desc 
	picture = GFX_report_event_JAP_burma_independence_army

	is_triggered_only = yes

	# Fight them back, destroy any traitors!
	option = { 
		name = SEA_japan_foreign_policy.60.a	

		IF = {
			limit = {
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
			start_civil_war = {
			    ideology = JAP
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			    	OR = {
			    		state = 993
			    		state = 999
			    		state = 998
			    		state = 288
			    		state = 640
			    		state = 997
			    		state = 996
			    		state = 995
			    		state = 994
			    	}
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = BRM_japanese_burma_flag
			    PREV = {  # Original country
		            BRM_ba_maw = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
	        	}
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = BRM_ba_maw
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = BRM_ba_maw
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { mon_dynasty_descendant } 
	        				}
	        			}
	        			promote_character = {
	        				character = BRM_ba_maw 
	        				ideology = fascism_ideology 
	        			}	
	        		}
	        	}
			}

			random_country = {
				limit = {
					has_country_flag = BRM_japanese_burma_flag
				}
				set_cosmetic_tag = BRM_state_of_burma_japanese_splinter_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.59
							hours = 0
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = BRM
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
			
		}
		ELSE_IF = {
			limit = {
				has_government = neutrality
			}
			start_civil_war = {
			    ideology = fascism
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			    	OR = {
			    		state = 993
			    		state = 999
			    		state = 998
			    		state = 288
			    		state = 640
			    		state = 997
			    		state = 996
			    		state = 995
			    		state = 994
			    	}
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = BRM_japanese_burma_flag
			    PREV = {  # Original country
		            BRM_ba_maw = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
	        	}
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = BRM_ba_maw
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = BRM_ba_maw
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { mon_dynasty_descendant } 
	        				}
	        			}
	        			promote_character = {
	        				character = BRM_ba_maw 
	        				ideology = fascism_ideology 
	        			}	
	        		}
	        	}
			}
			random_country = {
				limit = {
					has_country_flag = BRM_japanese_burma_flag
				}
				set_cosmetic_tag = BRM_state_of_burma_japanese_splinter_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.59
							hours = 2
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = BRM
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
		}
		ELSE = {
			start_civil_war = {
			    ideology = neutrality
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			    	OR = {
			    		state = 993
			    		state = 999
			    		state = 998
			    		state = 288
			    		state = 640
			    		state = 997
			    		state = 996
			    		state = 995
			    		state = 994
			    	}
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = BRM_japanese_burma_flag
			    PREV = {  # Original country
		            BRM_myat_phaya_lat = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
	        	}
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = BRM_myat_phaya_lat
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = BRM_myat_phaya_lat
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = emperor_fascism
	        					expire = "1952.1.1.1"
	        					traits = { konbuang_dynasty_descendant } 
	        				}
	        			}
	        			promote_character = {
	        				character = BRM_myat_phaya_lat 
	        				ideology = despotism 
	        			}	
	        		}
	        	}
			}
			random_country = {
				limit = {
					has_country_flag = BRM_japanese_burma_flag
				}
				set_cosmetic_tag = BRM_state_of_burma_japanese_splinter_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.59
							hours = 2
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = BRM
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
		}
		

	}

	
}

# Wang Jingwei's Betrayal - event for CHI
country_event = {
	id = SEA_japan_foreign_policy.61
	title = SEA_japan_foreign_policy.61.t
	desc = SEA_japan_foreign_policy.61.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# It was predictable
	option = { 
		name = SEA_japan_foreign_policy.61.a
		ai_chance = {
			base = 100
		}

		add_command_power = -25
		add_war_support = -0.01

		custom_effect_tooltip = generic_skip_one_line_tt

		CHI_wang_jingwei = {
			set_nationality = RNG
		}
		hidden_effect = {
			RNG = {
				country_event = {
					id = SEA_japan_foreign_policy.62
					hours = 2
					random_hours = 6
				}	
			}
		}

	}

	# Perhaps he is right...
	option = { 
		name = SEA_japan_foreign_policy.61.b
		ai_chance = {
			base = 0
		}

		RNG = {
			change_tag_from = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_command_power = -25
		add_war_support = -0.01

		custom_effect_tooltip = generic_skip_one_line_tt

		CHI_wang_jingwei = {
			set_nationality = RNG
		}
		hidden_effect = {
			RNG = {
				country_event = {
					id = SEA_japan_foreign_policy.62
					hours = 2
					random_hours = 6
				}	
			}
		}

	}

}

# Wang Jingwei Defects - event for RNG
country_event = {
	id = SEA_japan_foreign_policy.62
	title = SEA_japan_foreign_policy.62.t
	desc = SEA_japan_foreign_policy.62.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = yes
	
	# He will make for a strong leader
	option = { 
		name = SEA_japan_foreign_policy.62.a
		ai_chance = {
			base = 100
		}
		
		# This all makes for a much better tooltip
		hidden_effect = {
			CHI_wang_jingwei = {
				remove_country_leader_role = {
					ideology = despotism
				}
			}
		}
		add_country_leader_role = {
			character = CHI_wang_jingwei
			promote_leader = yes
			country_leader = {
				ideology = despotism
				expire = "1965.1.1.1"
				traits = { eager_collaborator generallissimo } 
			}
		}	
		hidden_effect = {
			add_country_leader_role = {
				character = CHI_wang_jingwei
				promote_leader = yes
				country_leader = {
					ideology = emperor_fascism
					expire = "1965.1.1.1"
					traits = { eager_collaborator generallissimo } 
				}
			}	
		}

	}

	# Sun Dianying is more capable
	option = { 
		name = SEA_japan_foreign_policy.62.b
		ai_chance = {
			base = 0
			modifier = {
				add = 50
				is_historical_focus_on = no
			}
		}
		
		add_political_power = 75

	}

}

# Merging with [RNG.GetNameDef] - event for Chinese non-rng puppet of Japan
country_event = {
	id = SEA_japan_foreign_policy.63
	title = SEA_japan_foreign_policy.63.t
	desc = SEA_japan_foreign_policy.63.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# [ROOT.GetLeader] will gain a good position, so we accept
	option = { 
		name = SEA_japan_foreign_policy.63.a
		ai_chance = {
			base = 100
		}
		
		RNG = {
			country_event = {
				id = SEA_japan_foreign_policy.64
				hours = 2
				random_hours = 4
			}	
		}
		custom_effect_tooltip = GAME_OVER_TT
		effect_tooltip = {
			RNG = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}	
			}	
			every_state = {
				limit = {
					is_core_of = ROOT
				}
				add_core_of = RNG
			}
		}

	}

	# That would be the end to our autonomy, no!
	option = { 
		name = SEA_japan_foreign_policy.63.b
		ai_chance = {
			base = 0
		}
		
		add_political_power = -100
		add_stability = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.65
				hours = 2
				random_hours = 4
			}	
		}

	}

}

# [FROM.GetNameDefCap] Merges with Us - event for RNG
country_event = {
	id = SEA_japan_foreign_policy.64
	title = SEA_japan_foreign_policy.64.t
	desc = SEA_japan_foreign_policy.64.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# [ROOT.GetLeader] will gain a good position in our government, so we see why they accepted
	option = { 
		name = SEA_japan_foreign_policy.64.a
		
		annex_country = {
			target = FROM
			transfer_troops = yes
		}	
			
		every_state = {
			limit = {
				is_core_of = FROM
			}
			add_core_of = ROOT
		}

	}

}

# [FROM.GetNameDefCap] Rejects the Merger - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.65
	title = SEA_japan_foreign_policy.65.t
	desc = SEA_japan_foreign_policy.65.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# They will accept in due time..
	option = { 
		name = SEA_japan_foreign_policy.65.a

	}

}

# Proclamation of the Provisional Government of Free India - event for RAJ
country_event = { 
	id = SEA_japan_foreign_policy.66
	title = SEA_japan_foreign_policy.66.t
	desc = SEA_japan_foreign_policy.66.desc 
	picture = GFX_report_event_JAP_the_azad_hind

	is_triggered_only = yes

	# Prosperity is within sight!
	option = { 
		name = SEA_japan_foreign_policy.66.a	

		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt
		
		JAP_setup_faction_wide_aoe_effects_JAP = yes	

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {

			delete_unit_template_and_units = {
				division_template = "Azad Hind Batallion"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
				name = "Azad Hind Batallion"
				division_names_group = JAP_INF_01
				template_counter = 109
				is_locked = no
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
				}
				support = {
					recon = { x = 0 y = 0 }
					engineer = { x = 0 y = 1 }
				}
			}

		}

		random_owned_controlled_state = {
			#limit = {
			#	is_core_of = ROOT
			#}
			create_unit = {
			    division = "name = \"First Azad Hind Batallion\" division_template = \"Azad Hind Batallion\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Second Azad Hind Batallion\" division_template = \"Azad Hind Batallion\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Third Azad Hind Batallion\" division_template = \"Azad Hind Batallion\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Fourth Azad Hind Batallion\" division_template = \"Azad Hind Batallion\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_core_state = {
			limit = {
				is_controlled_by = JAP
			}
			set_state_controller_to = ROOT
		}

		IF = {
			limit = {
				has_cosmetic_tag = RAJ_UK
			}
			drop_cosmetic_tag = yes
		}

	}
}

# Japan Establishes the Provisional Government of Free India - event for RAJ
country_event = { 
	id = SEA_japan_foreign_policy.67
	title = SEA_japan_foreign_policy.67.t
	desc = SEA_japan_foreign_policy.67.desc 
	picture = GFX_report_event_JAP_the_azad_hind

	is_triggered_only = yes

	# Fight them back, destroy any traitors!
	option = { 
		name = SEA_japan_foreign_policy.67.a	

		IF = {
			limit = {
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
			start_civil_war = {
			    ideology = JAP
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = RAJ_japanese_azad_hind_state_flag
			    IF = {
			    	limit = {
			    		PREV = {
			    			NOT = {
			    				has_completed_focus = RAJ_forward_bloc
			    			}
			    		}
			    	}
    			    PREV = {  # Original country
    		            RAJ_subhas_chanda_bose = { # Character
    		                set_nationality = PREV.PREV
    		                # Transfers to breakaway
    		            }
    	        	}
			    }
			   	
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = RAJ_subhas_chanda_bose
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = RAJ_subhas_chanda_bose
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { nationalistic_freedom_fighter } 
	        				}
	        			}
	        			add_country_leader_role = {
	        				character = RAJ_subhas_chanda_bose
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = fascism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { nationalistic_freedom_fighter } 
	        				}
	        			}
	        		}
	        	}
			}

			random_country = {
				limit = {
					has_country_flag = RAJ_japanese_azad_hind_state_flag
				}
				set_cosmetic_tag = RAJ_azad_hind_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.66
							hours = 0
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = RAJ
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
			
		}
		ELSE_IF = {
			limit = {
				has_government = neutrality
			}
			start_civil_war = {
			    ideology = fascism
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = RAJ_japanese_azad_hind_state_flag
			    IF = {
			    	limit = {
			    		PREV = {
			    			NOT = {
			    				has_completed_focus = RAJ_forward_bloc
			    			}
			    		}
			    	}
    			    PREV = {  # Original country
    		            RAJ_subhas_chanda_bose = { # Character
    		                set_nationality = PREV.PREV
    		                # Transfers to breakaway
    		            }
    	        	}
			    }
			   	
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = RAJ_subhas_chanda_bose
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = RAJ_subhas_chanda_bose
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { nationalistic_freedom_fighter } 
	        				}
	        			}
	        			add_country_leader_role = {
	        				character = RAJ_subhas_chanda_bose
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = fascism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { nationalistic_freedom_fighter } 
	        				}
	        			}
	        		}
	        	}
			}

			random_country = {
				limit = {
					has_country_flag = RAJ_japanese_azad_hind_state_flag
				}
				set_cosmetic_tag = RAJ_azad_hind_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.66
							hours = 0
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = RAJ
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
		}
		ELSE = {
			start_civil_war = {
			    ideology = neutrality
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = RAJ_japanese_azad_hind_state_flag
			    IF = {
			    	limit = {
			    		PREV = {
			    			NOT = {
			    				has_completed_focus = RAJ_forward_bloc
			    			}
			    		}
			    	}
    			    PREV = {  # Original country
    		            RAJ_subhas_chanda_bose = { # Character
    		                set_nationality = PREV.PREV
    		                # Transfers to breakaway
    		            }
    	        	}
			    }
			   	
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = RAJ_subhas_chanda_bose
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = RAJ_subhas_chanda_bose
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { nationalistic_freedom_fighter } 
	        				}
	        			}
	        			add_country_leader_role = {
	        				character = RAJ_subhas_chanda_bose
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = fascism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { nationalistic_freedom_fighter } 
	        				}
	        			}
	        		}
	        	}
			}

			random_country = {
				limit = {
					has_country_flag = RAJ_japanese_azad_hind_state_flag
				}
				set_cosmetic_tag = RAJ_azad_hind_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.66
							hours = 0
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = RAJ
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
		}
		

	}

	
}

# Proclamation of the Second Philippine Republic - event for PHI
country_event = { 
	id = SEA_japan_foreign_policy.68
	title = SEA_japan_foreign_policy.68.t
	desc = SEA_japan_foreign_policy.68.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	# Prosperity is within sight!
	option = { 
		name = SEA_japan_foreign_policy.68.a	

		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt
		
		JAP_setup_faction_wide_aoe_effects_JAP = yes	

		custom_effect_tooltip = generic_skip_one_line_tt

		hidden_effect = {

			delete_unit_template_and_units = {
				division_template = "Makapili Brigade"
				disband = yes #if yes, will refund equipment/manpower.
			}

			division_template = {
				name = "Makapili Brigade"
				division_names_group = JAP_INF_01
				template_counter = 109
				is_locked = no
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
				}
				support = {
					recon = { x = 0 y = 0 }
					engineer = { x = 0 y = 1 }
				}
			}

		}

		random_owned_controlled_state = {
			limit = {
				is_core_of = ROOT
			}
			create_unit = {
			    division = "name = \"First Makapili Brigade\" division_template = \"Makapili Brigade\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Second Makapili Brigade\" division_template = \"Makapili Brigade\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Third Makapili Brigade\" division_template = \"Makapili Brigade\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
			create_unit = {
			    division = "name = \"Fourth Makapili Brigade\" division_template = \"Makapili Brigade\" start_experience_factor = 0.3 start_equipment_factor = 0.5"
			    owner = ROOT
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_core_state = {
			limit = {
				is_controlled_by = JAP
			}
			set_state_controller_to = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_cosmetic_tag = PHI_second_republic_tag

		#IF = {
		#	limit = {
		#		has_cosmetic_tag = BRM_british
		#	}
		#	drop_cosmetic_tag = yes
		#}

	}
}

# Japan Establishes the Second Philippine Republic - event for PHI
country_event = { 
	id = SEA_japan_foreign_policy.69
	title = SEA_japan_foreign_policy.69.t
	desc = SEA_japan_foreign_policy.69.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	# Fight them back, destroy any traitors!
	option = { 
		name = SEA_japan_foreign_policy.69.a	

		IF = {
			limit = {
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
			start_civil_war = {
			    ideology = JAP
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = PHI_japanese_philippines_flag
			    PREV = {  # Original country
		            PHI_jose_laurel = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
	        	}
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = PHI_jose_laurel
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = PHI_jose_laurel
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { PHI_puppet_president } 
	        				}
	        			}
	        			add_country_leader_role = {
	        				character = PHI_jose_laurel
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = fascism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { PHI_puppet_president } 
	        				}
	        			}
	        		}
	        	}
			}

			random_country = {
				limit = {
					has_country_flag = PHI_japanese_philippines_flag
				}
				set_cosmetic_tag = PHI_second_republic_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.68
							hours = 0
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = PHI
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
			
		}
		ELSE_IF = {
			limit = {
				has_government = neutrality
			}
			start_civil_war = {
			    ideology = fascism
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = PHI_japanese_philippines_flag
			    PREV = {  # Original country
		            PHI_jose_laurel = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
	        	}
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = PHI_jose_laurel
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = PHI_jose_laurel
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = japan_militarism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { PHI_puppet_president } 
	        				}
	        			}
	        			add_country_leader_role = {
	        				character = PHI_jose_laurel
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = fascism_ideology
	        					expire = "1952.1.1.1"
	        					traits = { PHI_puppet_president } 
	        				}
	        			}
	        		}
	        	}
			}
			random_country = {
				limit = {
					has_country_flag = PHI_japanese_philippines_flag
				}
				set_cosmetic_tag = PHI_second_republic_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.68
							hours = 2
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = PHI
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
		}
		ELSE = {
			start_civil_war = {
			    ideology = neutrality
			    size = 0.7
			    army_ratio = 0
			    navy_ratio = 0
			    air_ratio = 0
			    states = all
			    states_filter = {
			        is_controlled_by = JAP
			    }
			    keep_all_characters = yes
			    set_country_flag = PHI_japanese_philippines_flag
			    PREV = {  # Original country
		            PHI_jose_laurel = { # Character
		                set_nationality = PREV.PREV
		                # Transfers to breakaway
		            }
	        	}
	        	IF = {
	        		limit = {
	        			PREV.PREV = {
	        				NOT = {
	        					has_country_leader = {
	        						ruling_only = yes
	        						character = PHI_jose_laurel
	        					}
	        				}
	        			}
	        		}
	        		PREV.PREV = {
	        			add_country_leader_role = {
	        				character = PHI_jose_laurel
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = emperor_fascism
	        					expire = "1952.1.1.1"
	        					traits = { PHI_puppet_president } 
	        				}
	        			}
	        			add_country_leader_role = {
	        				character = PHI_jose_laurel
	        				promote_leader = yes
	        				country_leader = {
	        					ideology = oligarchism
	        					expire = "1952.1.1.1"
	        					traits = { PHI_puppet_president } 
	        				}
	        			}	
	        		}
	        	}
			}
			random_country = {
				limit = {
					has_country_flag = PHI_japanese_philippines_flag
				}
				set_cosmetic_tag = PHI_second_republic_tag
				FROM = {
					set_autonomy = {
						target = PREV
						autonomous_state = autonomy_wtt_imperial_protectorate
						end_wars = no
						end_civil_wars = no
					}
					PREV = {
						country_event = {
							id = SEA_japan_foreign_policy.68
							hours = 2
						}	
					}
				}
				every_state = {
					limit = {
						is_core_of = PHI
						is_controlled_by = JAP
					}
					set_state_controller_to = PREV
				}
			}
		}
		

	}

	
}

# Japan Demands our Conditional Surrender - event for SOV
country_event = { 
	id = SEA_japan_foreign_policy.70
	title = SEA_japan_foreign_policy.70.t
	desc = SEA_japan_foreign_policy.70.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We will never surrender!
		name = SEA_japan_foreign_policy.70.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 1.5
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 1.5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
		}

		FROM = { # [FROM.GetNameDefCap] Refuses Surrender
			country_event = { 
				id = SEA_japan_foreign_policy.71
				hours = 5 
				random_hours = 5 
			}
		}
		effect_tooltip = {
			FROM = {
				add_war_support = 0.05
				add_command_power = 25
			}
		}


	}

	option = { # That will be one enemy of our backs
		name = SEA_japan_foreign_policy.70.b
		ai_chance = {
			base = 25
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
		}

		FROM = { # That will be one enemy off our backs
			country_event = { 
				id = SEA_japan_foreign_policy.72
				hours = 5 
				random_hours = 5 
			}
		}
		effect_tooltip = {
			every_state = {
				limit = {
					OR = {
						state = 408
						state = 409
						state = 655
						state = 657
						state = 560
						state = 561
						state = 563
						state = 564
						state = 566
						state = 565
						state = 574
						state = 876
						state = 877
						state = 644
						state = 562
						state = 874
						state = 637
						state = 822
						state = 875
						state = 575
						state = 576
						state = 567
						state = 568
						state = 569
						state = 654
						state = 878
						state = 516
					}
					OR = {
						is_owned_by = ROOT
						any_country = {
							is_subject_of = ROOT
							owns_state = PREV
						}
					}
				}
				transfer_state_to = FROM
			}	

			custom_effect_tooltip = generic_skip_one_line_tt

			every_country = {
				limit = {
					has_war_with = FROM
					OR = {
						original_tag = ROOT
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
				}
				white_peace = FROM
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					is_faction_leader = yes
				}
				every_other_country = {
					limit = {
						is_in_faction_with = ROOT
						is_subject = no
						capital_scope = {
							is_on_continent = asia
						}
					}
					ROOT = {
						remove_from_faction = PREV
					}
				}
			}

		}

	}
}

# [FROM.GetNameDefCap] Refuses Surrender - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.71
	title = SEA_japan_foreign_policy.71.t
	desc = SEA_japan_foreign_policy.71.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # They will fall to our blade!
		name = SEA_japan_foreign_policy.71.a

		add_war_support = 0.05
		add_command_power = 25

	}
}

# [FROM.GetNameDefCap] Surrenders the East - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.72
	title = SEA_japan_foreign_policy.72.t
	desc = SEA_japan_foreign_policy.72.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We have won this day!
		name = SEA_japan_foreign_policy.72.a

		every_state = {
			limit = {
				OR = {
					state = 408
					state = 409
					state = 655
					state = 657
					state = 560
					state = 561
					state = 563
					state = 564
					state = 566
					state = 565
					state = 574
					state = 876
					state = 877
					state = 644
					state = 562
					state = 874
					state = 637
					state = 822
					state = 875
					state = 575
					state = 576
					state = 567
					state = 568
					state = 569
					state = 654
					state = 878
					state = 516
				}
				OR = {
					is_owned_by = FROM
					any_country = {
						is_subject_of = FROM
						owns_state = PREV
					}
				}
			}
			transfer_state_to = ROOT
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		every_other_country = {
			limit = {
				has_war_with = ROOT
				OR = {
					original_tag = FROM
					is_ally_with = FROM
				}
			}
			white_peace = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				FROM = {
					is_faction_leader = yes
				}
			}
			every_other_country = {
				limit = {
					is_in_faction_with = FROM
					is_subject = no
					capital_scope = {
						is_on_continent = asia
					}
				}
				country_event = {
					id = SEA_japan_foreign_policy.73
					hours = 2
				}	
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		add_timed_idea = {
			idea = SOV_full_focus_on_the_west
			days = 365
		}	


	}
}

# [SOV.GetNameDefCap] Withdraws from Siberia - event for Former Soviet Allies in Asia
country_event = { 
	id = SEA_japan_foreign_policy.73
	title = SEA_japan_foreign_policy.73.t
	desc = SEA_japan_foreign_policy.73.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	fire_only_once = no

	immediate = {
		hidden_effect = {
			SOV = {
				remove_from_faction = ROOT
			}
			every_other_country = {
				limit = {
					has_war_with = ROOT
				}
				white_peace = {
					tag = ROOT
				}
			}
		}
	}

	option = { # They have abandoned us...
		name = SEA_japan_foreign_policy.73.a
		ai_chance = {
			base = 0
		}
		
		add_popularity = {
			ideology = SOV
			popularity = -0.2
		}	

	}

	option = { # Then we must gain Japan's protection in their stead!
		name = SEA_japan_foreign_policy.73.b
		ai_chance = {
			base = 100
		}
		
		add_popularity = {
			ideology = SOV
			popularity = -0.2
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			#add_to_faction = ROOT 	
			puppet = {
			    target = ROOT
			    end_wars = yes
			}
			country_event = {
				id = SEA_japan_foreign_policy.74
				hours = 1
			}	
		}
		JAP_setup_faction_wide_aoe_effects_from = yes

		FROM = {
			add_ai_strategy = {
				type = protect
				id = ROOT
				value = 100
			}
		}
		add_ai_strategy = {
			type = alliance
			id = FROM
			value = 400
		}

	}
}

# [FROM.GetNameDefCap] Seeks our Protection - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.74
	title = SEA_japan_foreign_policy.74.t
	desc = SEA_japan_foreign_policy.74.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	fire_only_once = no

	option = { # Very well
		name = SEA_japan_foreign_policy.74.a
		ai_chance = {
			base = 100
		}
		
		effect_tooltip = {
			puppet = {
			    target = FROM
			    end_wars = yes
			}
		}

	}

	#option = { # We don't need them
	#	name = SEA_japan_foreign_policy.74.b
	#	ai_chance = {
	#		base = 0
	#	}
	#	
	#	remove_from_faction = FROM
	#
	#}

}

# [FROM.GetAdjective] Equipment Arrives - event for ETH
country_event = { 
	id = SEA_japan_foreign_policy.75
	title = SEA_japan_foreign_policy.75.t
	desc = SEA_japan_foreign_policy.75.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	fire_only_once = yes

	# We are most grateful!
	option = { 
		name = SEA_japan_foreign_policy.75.a
		
		add_equipment_to_stockpile = { 
			type = infantry_equipment
			amount = 1500
			producer = JAP
		}	

		add_equipment_to_stockpile = { 
			type = support_equipment
			amount = 500
			producer = JAP
		}	

		add_equipment_to_stockpile = { 
			type = artillery_equipment
			amount = 150
			producer = JAP
		}	

	}

}

country_event = { #FROM proposes tightened federation
	id = SEA_japan_foreign_policy.76
	title = SEA_japan_foreign_policy.76.t
	desc = SEA_japan_foreign_policy.76.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = SEA_japan_foreign_policy.76.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.77
				hours = 12
			}
		}
		custom_effect_tooltip = GAME_OVER_TT
		effect_tooltip = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
		}

	}
	option = { #no way
		name = SEA_japan_foreign_policy.76.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.78
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_free
					end_wars  = no
					end_civil_wars = no
				}	
				remove_from_faction = ROOT

				custom_effect_tooltip = generic_skip_one_line_tt

				create_wargoal = {
					type = annex_everything
					target = ROOT 
					expire = 0
				}
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = SEA_japan_foreign_policy.77
	title = SEA_japan_foreign_policy.77.t
	desc = SEA_japan_foreign_policy.77.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = SEA_japan_foreign_policy.77.a

		annex_country = {
			target = FROM
			transfer_troops = yes
		}	
		every_controlled_state = {
			limit = {
				is_core_of = FROM
			}
			add_compliance = 25
			add_extra_state_shared_building_slots = 1
		}
	}
}

country_event = { #FROM rejects tighter federation
	id = SEA_japan_foreign_policy.78
	title = SEA_japan_foreign_policy.78.t
	desc = SEA_japan_foreign_policy.78.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = SEA_japan_foreign_policy.78.a
		ai_chance = {
			base = 5
		}

		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_free
			end_wars  = no
			end_civil_wars = no
		}	
		remove_from_faction = FROM

		custom_effect_tooltip = generic_skip_one_line_tt

		create_wargoal = {
			type = annex_everything
			target = FROM 
			expire = 0
		}

	}
	option = { #was worth asking
		name = SEA_japan_foreign_policy.78.b
		ai_chance = {
			base = 95
		}


		
	}
}

country_event = { #FROM proposes tightened federation
	id = SEA_japan_foreign_policy.79
	title = SEA_japan_foreign_policy.79.t
	desc = SEA_japan_foreign_policy.79.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = SEA_japan_foreign_policy.79.a
		ai_chance = {
			base = 100
		}

		custom_effect_tooltip = MAN_we_can_be_annexed_by_kodoha_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.80
				hours = 12
			}
		}

	}
	option = { #no way
		name = SEA_japan_foreign_policy.79.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.81
				hours = 12
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = SEA_japan_foreign_policy.80
	title = SEA_japan_foreign_policy.80.t
	desc = SEA_japan_foreign_policy.80.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = SEA_japan_foreign_policy.80.a

		add_political_power = 50

		set_country_flag = JAP_MAN_accepted_our_proposal_for_integration

	}
}

country_event = { #FROM rejects tighter federation
	id = SEA_japan_foreign_policy.81
	title = SEA_japan_foreign_policy.81.t
	desc = SEA_japan_foreign_policy.81.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { # We will deal with them later
		name = SEA_japan_foreign_policy.81.a
		ai_chance = {
			base = 50
		}

		add_war_support = 0.01

	}
	option = { # If that is their wish..
		name = SEA_japan_foreign_policy.81.b
		ai_chance = {
			base = 50
		}

		add_political_power = 15
		
	}
}

# [FROM.GetNameDefCap] Seeks Anti-Soviet Cooperation - event for POL
country_event = { 
	id = SEA_japan_foreign_policy.82
	title = SEA_japan_foreign_policy.82.t
	desc = SEA_japan_foreign_policy.82.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# Anything for our [FROM.GetAdjective] friends!
	option = { 
		name = SEA_japan_foreign_policy.82.a
		ai_chance = {
			base = 95
		}

		add_war_support = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_ideas = JAP_POL_anti_soviet_pact
		custom_effect_tooltip = POL_JAP_pact_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.83
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				add_ideas = JAP_POL_anti_soviet_pact
			}
		}

	}

	# This puts us in too much danger
	option = { 
		name = SEA_japan_foreign_policy.82.b
		ai_chance = {
			base = 5
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.84
				hours = 12
			}
		}

	}
}

# [FROM.GetLeader] Sings the Pact - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.83
	title = SEA_japan_foreign_policy.83.t
	desc = SEA_japan_foreign_policy.83.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	# Excellent!
	option = { 
		name = SEA_japan_foreign_policy.83.a

		add_ideas = JAP_POL_anti_soviet_pact
		custom_effect_tooltip = POL_JAP_pact_tt

	}
}

# [FROM.GetLeader] Dismisses the Pact - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.84
	title = SEA_japan_foreign_policy.84.t
	desc = SEA_japan_foreign_policy.84.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	# Perhaps a second isolation would benefit us...
	option = {
		name = SEA_japan_foreign_policy.84.a

		uncomplete_national_focus = {
			focus = JAP_utilize_our_polish_friendship
			uncomplete_children = no
			refund_political_power = no
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		complete_national_focus = JAP_return_to_sakoku_ron

	}
}

# Call Pact Members to War (Instigator)
country_event = {
	id = SEA_japan_foreign_policy.85
	title = SEA_japan_foreign_policy.85.t
	desc = SEA_japan_foreign_policy.85.d
	picture = GFX_report_event_soviet_tanks

	is_triggered_only = yes

	option = {
		name = SEA_japan_foreign_policy.85.a
		every_other_country = {
			limit = {
				has_idea = JAP_POL_anti_soviet_pact
				NOT = { has_war_with = SOV }
				is_subject = no
				any_other_country = {
					has_idea = JAP_POL_anti_soviet_pact
					has_war_with = SOV
				}
			}
			country_event = { id = SEA_japan_foreign_policy.86 days = 1 }
		}
	}
}

# [From.GetName] Calls Pact Members to War
country_event = {
	id = SEA_japan_foreign_policy.86
	title = SEA_japan_foreign_policy.86.t
	desc = SEA_japan_foreign_policy.86.desc
	picture = GFX_report_event_soviet_tanks

	is_triggered_only = yes

	option = {
		name = SEA_japan_foreign_policy.86.a
		ai_chance = {
			base = 10
		}
		add_to_war = {
			targeted_alliance = FROM
			enemy = SOV
			hostility_reason = ally
		}
	}

	option = {
		name = SEA_japan_foreign_policy.86.b
		ai_chance = {
			base = 0
		}
		remove_ideas = JAP_POL_anti_soviet_pact
		FROM = { add_opinion_modifier = { target = ROOT modifier = anti_soviet_pact_call_refused } }
		add_timed_idea = {
			idea = JAP_POL_anti_soviet_pact_refused_call
			days = 365
		}
		custom_effect_tooltip = SEA_japan_foreign_policy.86.b_tt
	}
}

# The [FROM.GetAdjective] Annexation - event for MAN
country_event = {
	id = SEA_japan_foreign_policy.87
	title = SEA_japan_foreign_policy.87.t
	desc = SEA_japan_foreign_policy.87.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	# It is what we signed off on
	option = { 
		name = SEA_japan_foreign_policy.87.a

		custom_effect_tooltip = GAME_OVER_TT

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.88
				hours = 6
				random_hours = 6
			}	
		}

		effect_tooltip = {
			FROM = {
				annex_country = {
					target = FROM
					transfer_troops = yes
				}	
				every_state = {
					limit = {
						is_core_of = ROOT
					}
					add_compliance = 25
					add_extra_state_shared_building_slots = 1
				}
			}
		}
		
	}
}

# The Annexation of [FROM.GetNameDef] - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.88
	title = SEA_japan_foreign_policy.88.t
	desc = SEA_japan_foreign_policy.88.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	# Splendid
	option = { 
		name = SEA_japan_foreign_policy.88.a
		
		annex_country = {
			target = FROM
			transfer_troops = yes
		}	
		every_controlled_state = {
			limit = {
				is_core_of = FROM
			}
			add_compliance = 25
			add_extra_state_shared_building_slots = 1
		}
		
	}
}


country_event = { #FROM asked about resources for industry
	id = SEA_japan_foreign_policy.89
	title = SEA_japan_foreign_policy.89.t
	desc = SEA_japan_foreign_policy.89.desc
	picture = GFX_report_event_generic_factory

	is_triggered_only = yes

	option = { #sure
		name = SEA_japan_foreign_policy.89.a
		ai_chance = {
			base = 10
		}

		IF = {
			limit = { FROM = { has_country_flag = JAP_requests_oil_flag }}

			FROM.FROM = {
				add_resource = {
					type = oil
					amount = -10
				}

				set_state_flag = JAP_trades_for_oil_here_flag

				IF = {
					limit = { 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}

					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}

				ELSE = {
					ROOT = {
						random_core_state = {
							limit = {
								free_building_slots = {
									building = industrial_complex
									size > 0
									include_locked = yes
								}
							}
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}

			FROM = {
				random_core_state = {
					limit = {
						industrial_complex > 0
					}

					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}

				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = JAP_industrial_relocation_resources
							}
						}

					}
					add_dynamic_modifier = {
						modifier = JAP_industrial_relocation_resources
					}
				}

				ELSE = {
					custom_effect_tooltip = JAP_industrial_relocation_resources_modify_tt
				}

				
				add_to_variable = { JAP_industrial_relocation_resources_country_resource_oil = 10 tooltip = country_resource_oil_tt }

				clr_country_flag = JAP_requests_oil_flag

				hidden_effect = {
					country_event = {
						id = SEA_japan_foreign_policy.90
						hours = 6
					}
				}
			}
			
		}

		ELSE_IF = {
			limit = { FROM = { has_country_flag = JAP_requests_tungsten_flag }}

			FROM.FROM = {
				add_resource = {
					type = tungsten
					amount = -10
				}

				set_state_flag = JAP_trades_for_tungsten_here_flag

				IF = {
					limit = { 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}

					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}

				ELSE = {
					ROOT = {
						random_core_state = {
							limit = {
								free_building_slots = {
									building = industrial_complex
									size > 0
									include_locked = yes
								}
							}
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}

			FROM = {
				random_core_state = {
					limit = {
						industrial_complex > 0
					}

					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}

				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = JAP_industrial_relocation_resources
							}
						}

					}
					add_dynamic_modifier = {
						modifier = JAP_industrial_relocation_resources
					}
				}

				ELSE = {
					custom_effect_tooltip = JAP_industrial_relocation_resources_modify_tt
				}
				
				add_to_variable = { JAP_industrial_relocation_resources_country_resource_tungsten = 10 tooltip = country_resource_tungsten_tt }
				

				clr_country_flag = JAP_requests_tungsten_flag

				hidden_effect = {
					country_event = {
						id = SEA_japan_foreign_policy.90
						hours = 6
					}
				}
			}
		}

		ELSE_IF = {
			limit = { FROM = { has_country_flag = JAP_requests_chromium_flag }}

			FROM.FROM = {
				add_resource = {
					type = chromium
					amount = -10
				}

				set_state_flag = JAP_trades_for_chromium_here_flag

				IF = {
					limit = { 
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}

					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}

				ELSE = {
					ROOT = {
						random_core_state = {
							limit = {
								free_building_slots = {
									building = industrial_complex
									size > 0
									include_locked = yes
								}
							}
						}
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}

			FROM = {
				random_core_state = {
					limit = {
						industrial_complex > 0
					}

					remove_building = {
						type = industrial_complex 
						level = 1
					}
				}

				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = JAP_industrial_relocation_resources
							}
						}

					}
					add_dynamic_modifier = {
						modifier = JAP_industrial_relocation_resources
					}
				}

				ELSE = {
					custom_effect_tooltip = JAP_industrial_relocation_resources_modify_tt
				}
				
				add_to_variable = { JAP_industrial_relocation_resources_country_resource_chromium = 10 tooltip = country_resource_chromium_tt }

				clr_country_flag = JAP_requests_chromium_flag

				hidden_effect = {
					country_event = {
						id = SEA_japan_foreign_policy.90
						hours = 6
					}
				}
			}
			ELSE_IF = {
				limit = { FROM = { has_country_flag = JAP_requests_rubber_flag }}

				FROM.FROM = {
					add_resource = {
						type = rubber
						amount = -10
					}

					set_state_flag = JAP_trades_for_rubber_here_flag

					IF = {
						limit = { 
							free_building_slots = {
								building = industrial_complex
								size > 0
								include_locked = yes
							}
						}

						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}

					ELSE = {
						ROOT = {
							random_core_state = {
								limit = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
								}
							}
							add_building_construction = {
								type = industrial_complex
								level = 1
								instant_build = yes
							}
						}
					}
				}

				FROM = {
					random_core_state = {
						limit = {
							industrial_complex > 0
						}

						remove_building = {
							type = industrial_complex 
							level = 1
						}
					}

					IF = {
						limit = {
							NOT = {
								has_dynamic_modifier = {
									modifier = JAP_industrial_relocation_resources
								}
							}

						}
						add_dynamic_modifier = {
							modifier = JAP_industrial_relocation_resources
						}
					}

					ELSE = {
						custom_effect_tooltip = JAP_industrial_relocation_resources_modify_tt
					}
					
					add_to_variable = { JAP_industrial_relocation_resources_country_resource_rubber = 10 tooltip = country_resource_chromium_tt }

					clr_country_flag = JAP_requests_rubber_flag

					hidden_effect = {
						country_event = {
							id = SEA_japan_foreign_policy.90
							hours = 6
						}
					}
				}
			}
		}
	}

	option = { #no, you can ask me later
		name = SEA_japan_foreign_policy.89.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 10
				has_opinion = {
					target = FROM
					value < 0
				}
			}
		}

		FROM = {
			IF = {
				limit = { has_country_flag = JAP_requests_oil_flag }

				clr_country_flag = JAP_requests_oil_flag
			}
			ELSE_IF = {
				limit = { has_country_flag = JAP_requests_tungsten_flag }

				clr_country_flag = JAP_requests_tungsten_flag
			}
			ELSE_IF = {
				limit = { has_country_flag = JAP_requests_chromium_flag }

				clr_country_flag = JAP_requests_chromium_flag
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			country_event = {
				id = SEA_japan_foreign_policy.91
				days = 2
			}
		}
	}
}

country_event = { #FROM agrees to industrial relocation
	id = SEA_japan_foreign_policy.90
	title = SEA_japan_foreign_policy.90.t
	desc = SEA_japan_foreign_policy.90.desc
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes

	option = { #yay
		name = SEA_japan_foreign_policy.90.a

		
	}
}

country_event = { #FROM rejects industrial relocation for now
	id = SEA_japan_foreign_policy.91
	title = SEA_japan_foreign_policy.91.t
	desc = SEA_japan_foreign_policy.91.desc
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { #angy
		name = SEA_japan_foreign_policy.91.a

	}
}

# The [FROM.GetAdjective] Wish for Closer Ties - event for USA
country_event = { 
	id = SEA_japan_foreign_policy.92
	title = SEA_japan_foreign_policy.92.t
	desc = SEA_japan_foreign_policy.92.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# Ties can be strengthened through trade
	option = { 
		name = SEA_japan_foreign_policy.92.a
		ai_chance = {
			base = 10
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.93
				hours = 6
				random_hours = 12
			}	
		}
		effect_tooltip = {
			FROM = {
				add_ideas = JAP_usa_jap_trade_agreement_idea
			}
			add_to_tech_sharing_group = jap_usa_japan_research
			FROM = {
				add_to_tech_sharing_group = jap_usa_japan_research 
			}
		}

	}

	# Perhaps we can reach a research agreement
	option = { 
		name = SEA_japan_foreign_policy.92.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.94
				hours = 6
				random_hours = 12
			}	
		}

	}

	# We should establish a proper defensive agreement with them
	option = { 
		name = SEA_japan_foreign_policy.92.c
		ai_chance = {
			base = 10
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.95
				hours = 6
				random_hours = 12
			}	
		}
		effect_tooltip = {
			give_guarantee = FROM
			FROM = {
				give_guarantee = ROOT
			}
		}

	}

	# We should sign all of the proposed agreements!
	option = { 
		name = SEA_japan_foreign_policy.92.d
		ai_chance = {
			base = 70
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.96
				hours = 6
				random_hours = 12
			}	
		}
		effect_tooltip = {
			FROM = {
				add_ideas = JAP_usa_jap_trade_agreement_idea
				add_to_tech_sharing_group = jap_usa_japan_research 
				give_guarantee = ROOT
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_to_tech_sharing_group = jap_usa_japan_research
			give_guarantee = FROM
		}

	}
}

# [FROM.GetLeader] Signs a Trade Agreement - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.93
	title = SEA_japan_foreign_policy.93.t
	desc = SEA_japan_foreign_policy.93.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	# Excellent!
	option = { 
		name = SEA_japan_foreign_policy.93.a

		add_ideas = JAP_usa_jap_trade_agreement_idea

	}
}

# [FROM.GetLeader] Doesn't Sign any Agreement
country_event = {
	id = SEA_japan_foreign_policy.94
	title = SEA_japan_foreign_policy.94.t
	desc = SEA_japan_foreign_policy.94.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	# Dreadful
	option = {
		name = SEA_japan_foreign_policy.94.a

		

	}
}

# [FROM.GetLeader] Signs a Defense Agreement - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.95
	title = SEA_japan_foreign_policy.95.t
	desc = SEA_japan_foreign_policy.95.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	# Excellent!
	option = {
		name = SEA_japan_foreign_policy.95.a

		give_guarantee = FROM
		FROM = {
			give_guarantee = ROOT
		}

	}
}

# [FROM.GetLeader] Signs a Comprehensive Diplomatic Agreement - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.96
	title = SEA_japan_foreign_policy.96.t
	desc = SEA_japan_foreign_policy.96.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	# Excellent!
	option = {
		name = SEA_japan_foreign_policy.96.a

		add_ideas = JAP_usa_jap_trade_agreement_idea

		custom_effect_tooltip = generic_skip_one_line_tt

		add_to_tech_sharing_group = jap_usa_japan_research
		FROM = {
			add_to_tech_sharing_group = jap_usa_japan_research 
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		give_guarantee = FROM
		FROM = {
			give_guarantee = ROOT
		}

	}
}

# Japan wants us to get the trade spirit - event for Japanese ally
country_event = { 
	id = SEA_japan_foreign_policy.97
	title = SEA_japan_foreign_policy.97.t
	desc = SEA_japan_foreign_policy.97.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Yes pliz
		name = SEA_japan_foreign_policy.97.a	
		ai_chance = {
			base = 100
		}

		add_ideas = JAP_customs_union_trade_idea
		add_opinion_modifier = {
			target = FROM
			modifier = JAP_trading_partners
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.98
				hours = 6
				random_hours = 12
			}	
		}

	}

	option = { # No thx
		name = SEA_japan_foreign_policy.97.b	
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.99
				hours = 6
				random_hours = 12
			}	
		}

	}

}

# FROM agrees to get the trade spirit - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.98
	title = SEA_japan_foreign_policy.98.t
	desc = SEA_japan_foreign_policy.98.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Naisu
		name = SEA_japan_foreign_policy.98.a	

		effect_tooltip = {
			FROM = {
				add_ideas = JAP_customs_union_trade_idea
				add_opinion_modifier = {
					target = ROOT
					modifier = JAP_trading_partners
				}
			}
		}

	}

}

# FROM refuses to get the trade spirit - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.99
	title = SEA_japan_foreign_policy.99.t
	desc = SEA_japan_foreign_policy.99.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # How deplorable!
		name = SEA_japan_foreign_policy.99.a	

		

	}

}


# Japan wants us to get the currency union spirit - event for Japanese ally
country_event = { 
	id = SEA_japan_foreign_policy.100
	title = SEA_japan_foreign_policy.100.t
	desc = SEA_japan_foreign_policy.100.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Yes pliz
		name = SEA_japan_foreign_policy.100.a	
		ai_chance = {
			base = 100
		}

		add_ideas = JAP_pacific_customs_union_member

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.101
				hours = 6
				random_hours = 12
			}	
		}

	}
	option = { # No thx
		name = SEA_japan_foreign_policy.100.b	
		ai_chance = {
			base = 0
		}

		add_political_power = -10

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.102
				hours = 6
				random_hours = 12
			}	
		}

	}
}

# FROM agrees to get the currency spirit - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.101
	title = SEA_japan_foreign_policy.101.t
	desc = SEA_japan_foreign_policy.101.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Naisu
		name = SEA_japan_foreign_policy.101.a	

		effect_tooltip = {
			FROM = {
				add_ideas = JAP_pacific_customs_union_member
			}
		}

	}

}

# FROM refuses to get the currency spirit - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.102
	title = SEA_japan_foreign_policy.102.t
	desc = SEA_japan_foreign_policy.102.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # How deplorable!
		name = SEA_japan_foreign_policy.102.a	

		

	}

}

# Japan invites us to further economic integration - event for person Japan wants to integrate
country_event = { 
	id = SEA_japan_foreign_policy.103
	title = SEA_japan_foreign_policy.103.t
	desc = SEA_japan_foreign_policy.103.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # It would be our honor
		name = SEA_japan_foreign_policy.103.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 2
				has_government = FROM
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.75
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
				    tag = FROM
				    ratio < 0.5
				}
			}
		}

		swap_ideas = {
			remove_idea = JAP_pacific_customs_union_member
			add_idea = JAP_pacific_integrated_customs_union_member
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = { # FROM Accepts
			country_event = { 
				id = SEA_japan_foreign_policy.104
				hours = 5 
				random_hours = 5 
			}
		}

		hidden_effect = {
			set_country_flag = JAP_country_that_accepted_economic_integration_flag
		}
	}

	option = { # We do not need their friendship!
		name = SEA_japan_foreign_policy.103.b
		ai_chance = {
			base = 2
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1
				}
			}
			modifier = {
				factor = 5
				strength_ratio = {
				    tag = FROM
				    ratio > 1.25
				}
			}
		}

		FROM = { # FROM Rejects
			country_event = { 
				id = SEA_japan_foreign_policy.105 
				hours = 5 
				random_hours = 5 
			}
		}

		hidden_effect = {
			set_country_flag = JAP_country_that_rejected_economic_integration_flag
		}
	}
}

country_event = { # [FROM.GetNameDefCap] Accepts our offer - event for JAP
	id = SEA_japan_foreign_policy.104
	title = SEA_japan_foreign_policy.104.t
	desc = SEA_japan_foreign_policy.104.desc
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	option = { # We are grateful for their naiveté
		name = SEA_japan_foreign_policy.104.a  

		effect_tooltip = {
			FROM = {
				swap_ideas = {
					remove_idea = JAP_pacific_customs_union_member
					add_idea = JAP_pacific_integrated_customs_union_member
				}
			}
		}

	}
}

country_event = { # [FROM.GetNameDefCap] Rejects our offer - event for JAP
	id = SEA_japan_foreign_policy.105
	title = SEA_japan_foreign_policy.105.t
	desc = SEA_japan_foreign_policy.105.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Terrible news...
		name = SEA_japan_foreign_policy.105.a	

	}
}

country_event = { #FROM proposes tightened federation
	id = SEA_japan_foreign_policy.106
	title = SEA_japan_foreign_policy.106.t
	desc = SEA_japan_foreign_policy.106.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = SEA_japan_foreign_policy.106.a
		ai_chance = {
			base = 95
			modifier = {
				factor = 3
				strength_ratio = {
					tag = FROM
					ratio < 0.5
				}
			}
			modifier = {
				factor = 0.5
				is_major = yes
			}
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.107
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = ROOT
			}
		}

	}
	option = { #no way
		name = SEA_japan_foreign_policy.106.b
		ai_chance = {
			base = 5
			modifier = {
				factor = 15
				strength_ratio = {
					tag = FROM
					ratio > 1.5
				}
			}
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.108
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT 
					expire = 0
				}

				remove_from_faction = ROOT
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = SEA_japan_foreign_policy.107
	title = SEA_japan_foreign_policy.107.t
	desc = SEA_japan_foreign_policy.107.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = SEA_japan_foreign_policy.107.a

		puppet = {
			target = FROM
			end_wars = no
		}
	}	
}

country_event = { #FROM rejects tighter federation
	id = SEA_japan_foreign_policy.108
	title = SEA_japan_foreign_policy.108.t
	desc = SEA_japan_foreign_policy.108.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = SEA_japan_foreign_policy.108.a
		ai_chance = {
			base = 90
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM 
			expire = 0
		}

		remove_from_faction = FROM

	}
	option = { #was worth asking
		name = SEA_japan_foreign_policy.108.b
		ai_chance = {
			base = 10
		}

		add_political_power = 50

	}
}

country_event = { #FROM proposes tightened federation
	id = SEA_japan_foreign_policy.109
	title = SEA_japan_foreign_policy.109.t
	desc = SEA_japan_foreign_policy.109.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	option = { #sounds good
		name = SEA_japan_foreign_policy.109.a
		ai_chance = {
			base = 100
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.110
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				annex_country = {
					target = ROOT
					transfer_troops = yes
				}
			}
		}

	}
	option = { #no way
		name = SEA_japan_foreign_policy.109.b
		ai_chance = {
			base = 0
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.111
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_free
					end_wars  = no
					end_civil_wars = no
				}	
				remove_from_faction = ROOT

				custom_effect_tooltip = generic_skip_one_line_tt

				create_wargoal = {
					type = annex_everything
					target = ROOT 
					expire = 0
				}
			}
		}

	}
}

country_event = { #FROM accepts tighter federation
	id = SEA_japan_foreign_policy.110
	title = SEA_japan_foreign_policy.110.t
	desc = SEA_japan_foreign_policy.110.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	option = { #great!
		name = SEA_japan_foreign_policy.110.a

		annex_country = {
			target = FROM
			transfer_troops = yes
		}	
		FROM = {
			every_core_state = {
				add_core_of = ROOT
			}
		}

	}
}

country_event = { #FROM rejects tighter federation
	id = SEA_japan_foreign_policy.111
	title = SEA_japan_foreign_policy.111.t
	desc = SEA_japan_foreign_policy.111.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	option = { #it was not a question!
		name = SEA_japan_foreign_policy.111.a
		ai_chance = {
			base = 95
		}

		set_autonomy = {
			target = FROM
			autonomy_state = autonomy_free
			end_wars  = no
			end_civil_wars = no
		}	
		remove_from_faction = FROM

		custom_effect_tooltip = generic_skip_one_line_tt

		create_wargoal = {
			type = annex_everything
			target = FROM 
			expire = 0
		}

	}
	option = { #was worth asking
		name = SEA_japan_foreign_policy.111.b
		ai_chance = {
			base = 5
		}

		add_political_power = 50
		
	}
}

# [FROM.GetNameDefCap] Requests Control of our Asian Colonies - event for ENG
country_event = { 
	id = SEA_japan_foreign_policy.112
	title = SEA_japan_foreign_policy.112.t
	desc = SEA_japan_foreign_policy.112.desc
	picture = GFX_report_event_generic_read_write
	is_triggered_only = yes

	# It allows us to focus our efforts on other areas
	option = { 
		name = SEA_japan_foreign_policy.112.a
		ai_chance = {
			base = 10 
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value > 74
				}		
			}
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.113
				hours = 3
			}	
		}
		every_subject_country = {
			limit = {
				capital_scope = { is_on_continent = asia }
				NOT = {
					original_tag = RAJ
				}
			}
			set_country_flag = JAP_has_become_a_new_puppet_flag
			drop_cosmetic_tag = yes
			FROM = {
				puppet = {
					target = PREV
					end_wars = no
				}
			}
			country_event = {
				# We have now become Japans puppet
				id = SEA_japan_foreign_policy.121
				hours = 6
			}
			display_individual_scopes = yes
			effect_tooltip = {
				every_controlled_state = {
					limit = {
						OR = {
							state = 336
							state = 999
							state = 1024
							state = 1023
							state = 333
							state = 334
							state = 724
							state = 327
						}
					}
					PREV = {
						give_resource_rights = { receiver = ENG state = PREV }
					}
				}
			}
		}

	}

	# Compromise on our Empire? Never!
	option = { 
		name = SEA_japan_foreign_policy.112.b
		ai_chance = {
			base = 0
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value < 50
				}		
			}
			modifier = {
				add = 10
				has_opinion = {
					target = FROM
					value < 24
				}		
			}
		}

		FROM = {
			country_event = {
				id = SEA_japan_foreign_policy.114
				hours = 6
				random_hours = 12
			}	
		}

	}
}

# [FROM.GetNameDefCap] Transfer Their Asian Colonies - event for JAP
country_event = { 
	id = SEA_japan_foreign_policy.113
	title = SEA_japan_foreign_policy.113.t
	desc = SEA_japan_foreign_policy.113.desc
	picture = GFX_report_event_generic_handshake
	is_triggered_only = yes

	# We will guard the Pacific for them
	option = { 
		name = SEA_japan_foreign_policy.113.a

		effect_tooltip = {
			every_subject_country = {
				limit = {
					capital_scope = { is_on_continent = asia }
					has_country_flag = JAP_has_become_a_new_puppet_flag
				}
				ROOT = {
					puppet = {
						target = PREV
						end_wars = no
					}
				}
			}
		}		
		every_subject_country = {
			display_individual_scopes = yes
			every_controlled_state = {
				limit = {
					OR = {
						state = 336
						state = 999
						state = 1024
						state = 1023
						state = 333
						state = 334
						state = 724
						state = 327
					}
				}
				PREV = {
					give_resource_rights = { receiver = ENG state = PREV }
				}
			}
		}

	}
}

# [FROM.GetNameDefCap] Denies our Request - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.114
	title = SEA_japan_foreign_policy.114.t
	desc = SEA_japan_foreign_policy.114.desc
	picture = GFX_report_event_generic_riot
	is_triggered_only = yes

	# Arrogant westerners...
	option = {
		name = SEA_japan_foreign_policy.114.a

		add_war_support = 0.05
		add_political_power = -50

	}
}

# Japans asks to take overlordship over our colonial subject - event for Overlord of a subject in Asia
country_event = {
	id = SEA_japan_foreign_policy.115
	title = SEA_japan_foreign_policy.115.t
	desc = SEA_japan_foreign_policy.115.desc
	picture = GFX_report_event_japanese_transport_soldiers

	is_triggered_only = yes

	fire_only_once = no
	
	# Accept transfer of puppet
	# Checking for the puppet in decision that fires event
	option = {
		name = SEA_japan_foreign_policy.115.a
		ai_chance = {
			base = 10
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value > 74
				}	
			}
		}

		FROM = { 
			country_event = { 
				id = SEA_japan_foreign_policy.116 
				days = 1 
			} 
		}
		effect_tooltip = {
			random_country = {
				limit = {
					is_subject_of = ROOT
					has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
				FROM = {
					puppet = PREV
				}
			}
		}

	}

	#Refuse
	option = {
		name = SEA_japan_foreign_policy.115.b
		ai_chance = {
			base = 0
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value < 50
				}	
			}
			modifier = {
				add = 5
				has_opinion = {
					target = FROM
					value < 25
				}	
			}
			modifier = {
				add = 10
				has_opinion = {
					target = FROM
					value < 0
				}	
			}
		}

		FROM = { 
			country_event = { 
				id = SEA_japan_foreign_policy.117 
				days = 1 
			} 
		}
		effect_tooltip = {
			every_subject_country = {
				limit = {
					has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
				FROM = {
					create_wargoal = {
						type = puppet_wargoal_focus
						target = PREV
						expire = 0
					}	
				}
			}
		}

	}
}

#Answer from SEA_japan_foreign_policy.115 - FROM accepts
country_event = {
	id = SEA_japan_foreign_policy.116
	title = SEA_japan_foreign_policy.116.t
	desc = SEA_japan_foreign_policy.116.desc
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	fire_only_once = no
	
	#Accept transfer puppet
	#Checking for puppet in decision that fires event.
	option = {
		name = SEA_japan_foreign_policy.116.a
		ai_chance = {
			base = 10
		}

		FROM = {
			every_subject_country = {
				limit = {
					has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
				drop_cosmetic_tag = yes
				ROOT = {
					puppet = PREV
				}
			}
		}

		hidden_effect = {
			every_country = {
				limit = {
					has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
				clr_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
			}
		}

	}

}

#Answer from SEA_japan_foreign_policy.115 - FROM refuses
country_event = {
	id = SEA_japan_foreign_policy.117
	title = SEA_japan_foreign_policy.117.t
	desc = SEA_japan_foreign_policy.117.desc
	picture = GFX_report_event_japanese_transport_soldiers

	is_triggered_only = yes
	
	fire_only_once = no
	
	option = {
		name = SEA_japan_foreign_policy.117.a
		ai_chance = {
			base = 50
		}

		hidden_effect = {
			FROM = {
				every_subject_country = {
					limit = {
						has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
					}
					clr_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
			}
		}

	}

	option = {
		name = SEA_japan_foreign_policy.117.b
		ai_chance = {
			base = 50
		}

		FROM = {
			every_subject_country = {
				limit = {
					has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
				ROOT = {
					create_wargoal = {
						type = puppet_wargoal_focus
						target = PREV
						expire = 0
					}	
				}
			}
		}

		hidden_effect = {
			every_country = {
				limit = {
					has_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
				}
				clr_country_flag = JAP_this_is_the_country_being_negotiated_at_the_moment
			}
		}

	}

}

# Japan Invites us to Their Alliance - event for nations targeted 
country_event = {
	id = SEA_japan_foreign_policy.118
	title = SEA_japan_foreign_policy.118.t
	desc = SEA_japan_foreign_policy.118.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# We will be stronger together 
	option = { 
		name = SEA_japan_foreign_policy.118.a
		ai_chance = {
			base = 90
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 1.5
			}
			modifier = {
				has_opinion = {
					target = JAP
					value > 75
				}	
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.119
				hours = 12
				random_hours = 24
			}
		}

		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
		}

	}

	# That would go against our principals of neutrality...
	option = { 
		name = SEA_japan_foreign_policy.118.b
		ai_chance = {
			base = 10
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_opinion = {
					target = JAP
					value < 25
				}	
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.120
				hours = 12
				random_hours = 24
			}
		}

	}
}

# FROM Accept our Offer - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.119
	title = SEA_japan_foreign_policy.119.t
	desc = SEA_japan_foreign_policy.119.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# As they should
	option = {
		name = SEA_japan_foreign_policy.119.a

		add_to_faction = FROM

		custom_effect_tooltip = generic_skip_one_line_tt

		JAP_setup_faction_wide_aoe_effects_root = yes

	}

}

# FROM Refuses to Join Us - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.120
	title = SEA_japan_foreign_policy.120.t
	desc = SEA_japan_foreign_policy.120.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# It's their loss
	option = {
		name = SEA_japan_foreign_policy.120.a

		

	}
}

# FROM Transfer us to Japan - event for former British puppet
country_event = {
	id = SEA_japan_foreign_policy.121
	title = SEA_japan_foreign_policy.121.t
	desc = SEA_japan_foreign_policy.121.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# It's their loss
	option = {
		name = SEA_japan_foreign_policy.121.a
		

	}
}

# Japan sends IJA-loyal samurai to MAN - event for MAN
country_event = {
	id = SEA_japan_foreign_policy.122
	title = SEA_japan_foreign_policy.122.t
	desc = SEA_japan_foreign_policy.122.desc
	picture = GFX_report_event_japanese_officers

	is_triggered_only = yes
	
	#Accept generals
	option = {
		name = SEA_japan_foreign_policy.122.a
		ai_chance = {
			base = 10
		}
		FROM = {		
			every_army_leader = {
				random_select_amount = 6
				limit = {
					OWNER = { tag = FROM }
					OR = {
						has_trait = JAP_samurai_lineage
						has_trait = JAP_royal_lineage
					}
					has_trait = JAP_IJA_loyalist
				}
				set_nationality = ROOT
			}
		}		
		FROM = { 
			country_event = { 
				id = SEA_japan_foreign_policy.123 
				hours = 6
			} 
		}
	}
}

# MAN has responded - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.123
	title = SEA_japan_foreign_policy.123.t
	desc = SEA_japan_foreign_policy.123.desc
	picture = GFX_report_event_japanese_officers

	is_triggered_only = yes
	
	option = {
		name = SEA_japan_foreign_policy.123.a
		
		add_timed_idea = {
			idea = JAP_influx_of_socialist_industrial_expertise_idea
			days = 420
		}	

	}
}

# Japan Invites us to Their Alliance - event for Mongolia and Tannu Tuva who are in SOV's faction 
country_event = {
	id = SEA_japan_foreign_policy.124
	title = SEA_japan_foreign_policy.124.t
	desc = SEA_japan_foreign_policy.124.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# We will be stronger together 
	option = { 
		name = SEA_japan_foreign_policy.124.a
		ai_chance = {
			base = 90
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 1.5
			}
			modifier = {
				has_opinion = {
					target = JAP
					value > 75
				}	
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.125
				hours = 12
			}
		}
		effect_tooltip = {
			FROM = {
				add_to_faction = ROOT
			}
		}

		SOV = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.127
				hours = 24
			}
		}

	}

	# That would go against our principals of neutrality...
	option = { 
		name = SEA_japan_foreign_policy.124.b
		ai_chance = {
			base = 10
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_opinion = {
					target = JAP
					value < 25
				}	
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.126
				hours = 12
				random_hours = 24
			}
		}

	}
}

# FROM Accept our Offer - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.125
	title = SEA_japan_foreign_policy.125.t
	desc = SEA_japan_foreign_policy.125.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# As they should
	option = {
		name = SEA_japan_foreign_policy.125.a

		add_to_faction = FROM

	}

}

# FROM Refuses to Join Us - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.126
	title = SEA_japan_foreign_policy.126.t
	desc = SEA_japan_foreign_policy.126.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# It's their loss
	option = {
		name = SEA_japan_foreign_policy.126.a

		

	}
}

# [FROM.GetNameDefCap] Joins the Fifth International - event for SOV 
country_event = {
	id = SEA_japan_foreign_policy.127
	title = SEA_japan_foreign_policy.127.t
	desc = SEA_japan_foreign_policy.127.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# No, we must let this go...
	option = { 
		name = SEA_japan_foreign_policy.127.a
		ai_chance = {
			base = 90
		}

		add_political_power = 50

	}

	# Yes, they will pay for this!
	option = { 
		name = SEA_japan_foreign_policy.127.b
		ai_chance = {
			base = 10
		}

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}	

	}
}

# Japan demands our Submission - event for FOR and PLU 
country_event = {
	id = SEA_japan_foreign_policy.128
	title = SEA_japan_foreign_policy.128.t
	desc = SEA_japan_foreign_policy.128.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is an opportunity for us 
	option = { 
		name = SEA_japan_foreign_policy.128.a
		ai_chance = {
			base = 95
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				JAP = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.129
				days = 1
				random_days = 2
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = {
					target = ROOT
					end_wars = yes
					end_civil_wars = no
				}	
			}	
		}

	}

	# We must maintain our independence at all costs!
	option = { 
		name = SEA_japan_foreign_policy.128.b
		ai_chance = {
			base = 5
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
			modifier = {
				is_historical_focus_on = yes 
				factor = 0
			}
		}

		add_war_support = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.130
				days = 1
				random_days = 2
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
					expire = 0
				}	
			}
		}

	}
}

# FROM submits to our rule - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.129
	title = SEA_japan_foreign_policy.129.t
	desc = SEA_japan_foreign_policy.129.desc
	picture = GFX_report_event_chinese_japanese_handshake
	
	is_triggered_only = yes

	fire_only_once = no

	# Perfect!
	option = {
		name = SEA_japan_foreign_policy.129.a

		puppet = {
			target = FROM
			end_wars = yes
			end_civil_wars = no
		}		 

		custom_effect_tooltip = generic_skip_one_line_tt

		JAP_setup_faction_wide_aoe_effects_root = yes

	}
}

# [FROM.GetLeader] Rejects our Demands - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.130
	title = SEA_japan_foreign_policy.130.t
	desc = SEA_japan_foreign_policy.130.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# Then we must take back our territory by force!
	option = {
		name = SEA_japan_foreign_policy.130.a

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
			expire = 0
		}	

	}

}

# Japan incites a communist civil war - event for KOR 
country_event = { 
	id = SEA_japan_foreign_policy.131
	title = SEA_japan_foreign_policy.131.t
	desc = SEA_japan_foreign_policy.131.desc
	picture = GFX_report_event_generic_communist_militia

	is_triggered_only = yes

	option = { #we are communist now!
		name = SEA_japan_foreign_policy.131.a
		ai_chance = {
			base = 98
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
				}
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		set_party_name = {
		    ideology = communism
		    long_name = KOR_communism_namro_party_long
		    name = KOR_communism_namro_party
		}
		add_popularity = {
			ideology = communism
			popularity = 0.4
		}	

		start_civil_war = {
			ideology = ROOT
			ruling_party = communism
			size = 0.5 
			states = all
			states_filter = {
			    OR = {
			    	state = 527
			    	state = 1028
			    	state = 525
			    }
			    is_controlled_by = ROOT
			}
		}

		add_country_leader_role = {
			character = KOR_pak_hon_yong
			promote_leader = yes
			country_leader = {
				ideology = stalinism
				expire = "1952.1.1.1"
				traits = { JAP_socialist_revolutionary } 
			}
		}

		random_country = {
			limit = {
				original_tag = KOR
				has_government = communism
				is_subject = no
			}
			FROM = {
				puppet = {
				    target = PREV
				    end_wars = no
				    end_civil_wars = no
				}
			}
		}

		hidden_effect = {
			random_country = {
				limit = {
					original_tag = KOR
					NOT = {
						has_government = communism
					}
				}
				FROM = {
					declare_war_on = {
						target = PREV
						type = annex_everything
					}	
				}
			}
		}

	}

	option = { #Fight back the red menace!
		name = SEA_japan_foreign_policy.131.b
		ai_chance = {
			base = 2
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
				}
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = communism
			ruling_party = ROOT
			size = 0.5 
			states = all
			states_filter = {
			    OR = {
			    	state = 1031
			    	state = 1030
			    	state = 1029
			    }
			    is_controlled_by = ROOT
			}
			PREV = {  # Original country
				KOR_pak_hon_yong = { # Character
				    set_nationality = PREV.PREV
				    # Transfers to breakaway
				}
			}
			IF = {
				limit = {
					PREV.PREV = {
						NOT = {
							has_country_leader = {
								ruling_only = yes
								character = KOR_pak_hon_yong
							}
						}
						has_civil_war = yes
					}
				}
				PREV.PREV = {
					add_country_leader_role = {
						character = KOR_pak_hon_yong
						promote_leader = yes
						country_leader = {
							ideology = stalinism
							expire = "1952.1.1.1"
							traits = { JAP_socialist_revolutionary } 
						}
					}	
				}
			}
			PREV.PREV = {
				set_party_name = {
				    ideology = communism
				    long_name = KOR_communism_namro_party_long
				    name = KOR_communism_namro_party
				}
				add_popularity = {
					ideology = communism
					popularity = 0.4
				}	
			}
		}

		random_country = {
			limit = {
				original_tag = KOR
				has_government = communism
				is_subject = no
			}
			FROM = {
				puppet = {
				    target = PREV
				    end_wars = no
				    end_civil_wars = no
				}
			}
		}

		hidden_effect = {
			random_country = {
				limit = {
					original_tag = KOR
					NOT = {
						has_government = communism
					}
				}
				FROM = {
					declare_war_on = {
						target = PREV
						type = annex_everything
					}	
				}
			}
		}

		
	}
}


# Japan demands our Submission - event for south east asian nations 
country_event = {
	id = SEA_japan_foreign_policy.132
	title = SEA_japan_foreign_policy.132.t
	desc = SEA_japan_foreign_policy.132.desc
	picture = GFX_report_event_japanese_officers
	
	is_triggered_only = yes

	fire_only_once = no
	
	# This is an opportunity for us 
	option = { 
		name = SEA_japan_foreign_policy.132.a
		ai_chance = {
			base = 70
			modifier = {
				has_war_support < 0.5
				factor = 2
			}
			modifier = {
				strength_ratio = { tag = JAP ratio < 0.8 }
				factor = 2
			}
			modifier = {
				is_in_faction = no
				JAP = { is_in_faction = yes }
				factor = 2
			}
		}

		FROM = {
			country_event = {
				# FROM folds
				id = SEA_japan_foreign_policy.133
				days = 1
				random_days = 2
			}
		}
		effect_tooltip = {
			FROM = {
				puppet = {
					target = ROOT
					end_wars = yes
					end_civil_wars = no
				}	
			}	
		}

	}

	# We must maintain our independence at all costs!
	option = { 
		name = SEA_japan_foreign_policy.132.b
		ai_chance = {
			base = 30
			modifier = {
				has_war_support > 0.5
				factor = 1.5
			}
			modifier = {
				strength_ratio = { tag = JAP ratio > 1.5 }
				factor = 2
			}
			modifier = {
				has_stability < 0.5
				factor = 0.5
			}
			modifier = {
				is_historical_focus_on = yes 
				factor = 0
			}
		}

		add_war_support = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		FROM = {
			country_event = {
				# FROM refuses to fold
				id = SEA_japan_foreign_policy.134
				days = 1
				random_days = 2
			}
		}
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
					expire = 0
				}	
			}
		}

	}
}

# FROM submits to our rule - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.133
	title = SEA_japan_foreign_policy.133.t
	desc = SEA_japan_foreign_policy.133.desc
	picture = GFX_report_event_chinese_japanese_handshake
	
	is_triggered_only = yes

	fire_only_once = no

	# Perfect!
	option = {
		name = SEA_japan_foreign_policy.133.a

		puppet = {
			target = FROM
			end_wars = yes
			end_civil_wars = no
		}		 

		custom_effect_tooltip = generic_skip_one_line_tt

		JAP_setup_faction_wide_aoe_effects_root = yes

	}
}

# [FROM.GetLeader] Rejects our Demands - event for JAP
country_event = {
	id = SEA_japan_foreign_policy.134
	title = SEA_japan_foreign_policy.134.t
	desc = SEA_japan_foreign_policy.134.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = no

	# Then we must take back our territory by force!
	option = {
		name = SEA_japan_foreign_policy.134.a

		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
			expire = 0
		}	

	}

}

country_event = { # Proclamation of the Second Philippine Republic - event for PSR
	id = SEA_japan_foreign_policy.135
	title = SEA_japan_foreign_policy.135.t
	desc = SEA_japan_foreign_policy.135.desc 
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes

	option = { # Prosperity is within sight!
		name = SEA_japan_foreign_policy.135.a	
		    
    	IF = {
    		limit = {
    			ROOT = {
    				NOT = {
    					has_country_leader = {
    						ruling_only = yes
    						character = PHI_jose_laurel
    					}
    				}
    				has_character = PHI_jose_laurel
    			}
    		}
    		PREV.PREV = {
    			add_country_leader_role = {
    				character = PHI_jose_laurel
    				promote_leader = yes
    				country_leader = {
    					ideology = japan_militarism_ideology
    					expire = "1952.1.1.1"
    					traits = { PHI_puppet_president } 
    				}
    			}
    			promote_character = {
    				character = PHI_jose_laurel 
    				ideology = japan_militarism_ideology 
    			}
    			add_country_leader_role = {
    				character = PHI_jose_laurel
    				promote_leader = yes
    				country_leader = {
    					ideology = falangism
    					expire = "1952.1.1.1"
    					traits = { PHI_puppet_president } 
    				}
    			}
    			promote_character = {
    				character = PHI_jose_laurel 
    				ideology = falangism 
    			}
    		}
    	}
    	ELSE_IF = {
    		limit = {
    			ROOT = {
    				NOT = {
    					has_country_leader = {
    						ruling_only = yes
    						character = PHI_artemio_ricarte
    					}
    				}
    				has_character = PHI_artemio_ricarte
    			}
    		}
    		add_country_leader_role = {
    			character = PHI_artemio_ricarte
    			promote_leader = yes
    			country_leader = {
    				ideology = japan_militarism_ideology
    				expire = "1952.1.1.1"
    				traits = { PHI_philippine_nationalist_leader } 
    			}
    		}
    		promote_character = {
    			character = PHI_artemio_ricarte 
    			ideology = japan_militarism_ideology 
    		}
    		add_country_leader_role = {
    			character = PHI_artemio_ricarte
    			promote_leader = yes
    			country_leader = {
    				ideology = fascism_ideology
    				expire = "1952.1.1.1"
    				traits = { PHI_philippine_nationalist_leader } 
    			}
    		}
    		promote_character = {
    			character = PHI_artemio_ricarte 
    			ideology = fascism_ideology 
    		}
    	}
		

		custom_effect_tooltip = generic_skip_one_line_tt
		
		JAP_setup_faction_wide_aoe_effects_from = yes	

	}
}

# An Attack on Pearl Harbor - event for USA 
country_event = {
	id = SEA_japan_foreign_policy.136
	title = SEA_japan_foreign_policy.136.t
	desc = SEA_japan_foreign_policy.136.desc
	picture = GFX_report_event_usa_pearl_harbor_airphoto
	
	is_triggered_only = yes

	fire_only_once = yes 

	# This day will live on in infamy!
	option = {
		name = SEA_japan_foreign_policy.136.a

		add_war_support = 0.05

		IF = {
			limit = {
				has_country_flag = JAP_inflicted_loss_nr_3
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			effect_tooltip = {
				add_timed_idea = {
					idea = JAP_day_of_infamy_3 
					days = 180
				}	
			}
		}
		ELSE_IF = {
			limit = {
				has_country_flag = JAP_inflicted_loss_nr_2
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			effect_tooltip = {
				add_timed_idea = {
					idea = JAP_day_of_infamy_2 
					days = 180
				}	
			}
		}
		ELSE_IF = {
			limit = {
				has_country_flag = JAP_inflicted_loss_nr_1
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			effect_tooltip = {
				add_timed_idea = {
					idea = JAP_day_of_infamy_1 
					days = 180
				}	
			}
		}

	}

}











# Genrikh Lyushkov Arrives in Manchuria - event for JAP
country_event = {
	id = SEA_japan_popup_events.1
	title = SEA_japan_popup_events.1.t
	desc = SEA_japan_popup_events.1.desc
	picture = GFX_report_event_japanese_reply

	trigger = {

		has_dlc = "No Compromise, No Surrender"

		original_tag = JAP
		
		date > 1938.6.10

		date < 1938.8.10

		has_civil_war = no

		is_subject = no

		SOV = {
			has_civil_war = no
			has_government = communism
			has_country_leader = {
				ruling_only = yes
				character = SOV_iosif_stalin
			}	
		}

		328 = {
			state_is_fully_controlled_by_ROOT_or_subject = yes
		}

	}

	mean_time_to_happen = { days = 3 }

	hidden = no

	fire_only_once = yes

	# This smells of opportunity!
	option = {
		name = SEA_japan_popup_events.1.a
		ai_chance = {
			base = 100
		}

		IF = {
			limit = {
				has_intelligence_agency = yes
				has_done_agency_upgrade = upgrade_form_department
			}
			add_decryption = {
			    target = SOV
			    ratio = 0.5
			}

			custom_effect_tooltip =  generic_skip_one_line_tt
		}

		add_intel = {
		    target = SOV
		    civilian_intel = 30
		    army_intel = 50
		    navy_intel = 20
		    airforce_intel = 20
		}

		SOV = {
			add_opinion_modifier = {
				target = ROOT
				modifier = JAP_hosting_genrikh_lyushkov_opm
			}
		}
		
	}

	# We cannot trust this foreigner to be truthful
	option = {
		name = SEA_japan_popup_events.1.b
		ai_chance = {
			base = 0
			modifier = {
				add = 50
				is_historical_focus_on = no
			}
		}

		add_political_power = 50

		SOV = {
			add_opinion_modifier = {
				target = ROOT
				modifier = JAP_sent_back_genrikh_lyushkov_opm
			}
		}

	}
}

# The Defense Brotherhood on the Verge of Collapse! - event for JAP
country_event = {
	id = SEA_japan_popup_events.2
	title = SEA_japan_popup_events.2.t
	desc = SEA_japan_popup_events.2.desc
	picture = GFX_report_event_JAP_national_defense_brotherhood

	trigger = {

		original_tag = JAP
		
		has_completed_focus = JAP_national_defense_brotherhood

		has_idea = JAP_national_defense_brotherhood_idea

		has_country_flag = {
			flag = JAP_national_defense_brotherhood_started_flag
			days > 100
		}

		has_civil_war = no

		is_subject = no

		has_war = yes

	}

	mean_time_to_happen = { days = 35 }

	hidden = no

	fire_only_once = yes

	# It wasn't made to last
	option = {
		name = SEA_japan_popup_events.2.a
		ai_chance = {
			base = 50
		}

		add_stability = 0.05

		custom_effect_tooltip = generic_skip_one_line_tt
		
		remove_ideas = JAP_national_defense_brotherhood_idea
		
	}

	# We must maintain it at all costs!
	option = {
		name = SEA_japan_popup_events.2.b
		ai_chance = {
			base = 0
			modifier = {
				add = 50
				is_historical_focus_on = no
			}
		}

		add_stability = -0.05
		add_political_power = -50

	}
}

# The Harakiri Debate - event for JAP
country_event = {
	id = SEA_japan_popup_events.3
	title = SEA_japan_popup_events.3.t
	desc = SEA_japan_popup_events.3.desc
	picture = GFX_report_event_JAP_diet_speech
	
	is_triggered_only = yes

	fire_only_once = yes

	# This is a disaster!
	option = {
		name = SEA_japan_popup_events.3.a

		add_ideas = JAP_collapsing_government_idea	

		custom_effect_tooltip = generic_skip_one_line_tt

		JAP_small_army_faction_gain = yes

		hidden_effect = {
			set_country_flag = JAP_harakiri_debate_has_taken_place_flag
		}

	}

}

# Convincing the Emperor - event for JAP
country_event = {
	id = SEA_japan_popup_events.4
	title = SEA_japan_popup_events.4.t
	desc = SEA_japan_popup_events.4.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_occupation
	
	is_triggered_only = yes

	fire_only_once = yes

	# We must gain his support, by any means necessary!
	option = {
		name = SEA_japan_popup_events.4.a
		ai_chance = {
			base = 50
		}
		
		add_political_power = -150

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.5
			days = 7
			random_days = 4
		}	

	}

	# We have other candidates in mind
	option = {
		name = SEA_japan_popup_events.4.b
		ai_chance = {
			base = 45
		}

		IF = {
			limit = {
				NOT = {
					divisions_in_state = {
						state = 282
						size > 4
						unit = cavalry 
					}
				}
			}
			random_list = {
			    50 = {
			    	ROOT = {
			    		country_event = {
			    			id = SEA_japan_popup_events.5
			    			days = 7
			    			random_days = 4
			    		}
			    	}
			    }
			    50 = {
			    	ROOT = {
			    		country_event = {
			    			id = SEA_japan_popup_events.6
			    			days = 7
			    			random_days = 4
			    		}	
			    	}
			    }
			}
		}
		ELSE = {
			country_event = {
				id = SEA_japan_popup_events.6
				days = 7
				random_days = 4
			}
		}

	}

	# If he doesn't support us, he must go
	option = {
		name = SEA_japan_popup_events.4.c
		ai_chance = {
			base = 5
		}
		
		add_stability = -0.15

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.7
			days = 7
			random_days = 4
		}

	}

}

# Hirohito Decides to Support the New Government - event for JAP
country_event = {
	id = SEA_japan_popup_events.5
	title = SEA_japan_popup_events.5.t
	desc = SEA_japan_popup_events.5.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Excellent!
	option = {
		name = SEA_japan_popup_events.5.a

		add_stability = 0.05
		
		hidden_effect = {
			set_country_flag = JAP_kodoha_the_emperor_cooperated_flag
		}

	}

}

# Hirohito Refuses to Support the New Government - event for JAP
country_event = {
	id = SEA_japan_popup_events.6
	title = SEA_japan_popup_events.6.t
	desc = SEA_japan_popup_events.6.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Then he must abdicate in favor of his son
	option = {
		name = SEA_japan_popup_events.6.a
		ai_chance = {
			base = 75
		}

		custom_effect_tooltip = JAP_yasuhito_takes_up_the_throne_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = -25

		hidden_effect = {
			set_country_flag = JAP_emperor_hirohito_has_abdicated_flag
			set_country_flag = JAP_yasuhito_is_the_current_regent_or_emperor_flag
			mark_focus_tree_layout_dirty = yes
		}

	}

	# Place him under house arrest!
	option = {
		name = SEA_japan_popup_events.6.b
		ai_chance = {
			base = 25
		}

		custom_effect_tooltip = JAP_yasuhito_takes_up_the_throne_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = -50
		add_war_support = 0.02

		hidden_effect = {
			set_country_flag = JAP_emperor_hirohito_under_house_arrest_flag
			set_country_flag = JAP_yasuhito_is_the_current_regent_or_emperor_flag
			mark_focus_tree_layout_dirty = yes
		}

	}

}

# Hirohito Assassinated! - event for JAP
country_event = {
	id = SEA_japan_popup_events.7
	title = SEA_japan_popup_events.7.t
	desc = SEA_japan_popup_events.7.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Yasuhito will take his place
	option = {
		name = SEA_japan_popup_events.7.a

		custom_effect_tooltip = JAP_yasuhito_takes_up_the_throne_tt

		hidden_effect = {
			set_country_flag = JAP_hirohito_has_been_killed_flag
			set_country_flag = JAP_yasuhito_is_the_current_regent_or_emperor_flag
			mark_focus_tree_layout_dirty = yes
		}

	}

}

# Question of the Military Clique's Leadership - event for JAP
country_event = {
	id = SEA_japan_popup_events.8
	title = SEA_japan_popup_events.8.t
	desc = SEA_japan_popup_events.8.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Mazaki is more popular among the men
	option = {
		name = SEA_japan_popup_events.8.a
		ai_chance = {
			base = 50
		}

		JAP_jinzaburo_masaki = {
			add_country_leader_trait = JAP_soto_trait
		}

		hidden_effect = { # For if you choose to go fascist in a later event 
			JAP_jinzaburo_masaki = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = emperor_fascism
						expire = "1966.1.1.1"
						traits = { JAP_military_prime_minister JAP_soto_trait } 
					}
				}	
			}
		}

	}

	# Araki should be the nation's Sōtō
	option = {
		name = SEA_japan_popup_events.8.b
		ai_chance = {
			base = 50
		}

		JAP_sadao_araki = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					ideology = japan_militarism_ideology
					expire = "1966.1.1.1"
					traits = { JAP_staunch_traditionalist_trait JAP_soto_trait } 
				}
			}	
		}

		hidden_effect = { # For if you choose to go fascist in a later event 
			JAP_sadao_araki = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = emperor_fascism
						expire = "1966.1.1.1"
						traits = { JAP_staunch_traditionalist_trait JAP_soto_trait } 
					}
				}	
			}
		}

	}

}

# The Question of Morality, Bushido and Fascism - event for JAP
country_event = {
	id = SEA_japan_popup_events.9
	title = SEA_japan_popup_events.9.t
	desc = SEA_japan_popup_events.9.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# We must stay clear of such western concepts!
	option = {
		name = SEA_japan_popup_events.9.a
		ai_chance = {
			base = 100
		}

		add_stability = 0.05
		add_political_power = 50

	}

	# Araki is right, and we should embrace those ideas
	option = {
		name = SEA_japan_popup_events.9.b
		ai_chance = {
			base = 0
		}
		trigger = {
			has_government = neutrality
			OR = {
				has_country_leader = {
					ruling_only = yes
					character = JAP_emperor_yasuhito
				}	
				#has_country_leader = {
				#	ruling_only = yes
				#	character = JAP_jinzaburo_masaki
				#}	
				has_country_leader = {
					ruling_only = yes
					character = JAP_sadao_araki
				}	
			}
		}

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
			long_name = JAP_fascism_party_kodoha_long
			name = JAP_fascism_party_kodoha
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = fascism
			popularity = 0.35
		}	

	}

}

# Rumors of a Military Coup - event for JAP
country_event = {
	id = SEA_japan_popup_events.10
	title = SEA_japan_popup_events.10.t
	desc = SEA_japan_popup_events.10.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# How dishonorable! We must act swiftly!
	option = {
		name = SEA_japan_popup_events.10.a

		add_stability = -0.02

		custom_effect_tooltip = generic_skip_one_line_tt

		unlock_decision_tooltip = JAP_increase_takahashi_korekiyo_security_decision
		unlock_decision_tooltip = JAP_increase_jotaro_watanabe_security_decision

		hidden_effect = {
			set_country_flag = JAP_can_now_save_advisors_flag
		}

	}

}

# Rumors of a Popular Rebellion - event for JAP
country_event = {
	id = SEA_japan_popup_events.11
	title = SEA_japan_popup_events.11.t
	desc = SEA_japan_popup_events.11.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Very well, but try not to leave evidence
	option = {
		name = SEA_japan_popup_events.11.a
		ai_chance = {
			base = 90
		}

		add_political_power = 25

		country_event = {
			id = SEA_japan_popup_events.12
			days = 14
			random_days = 7
		}		

	}

	# No, the former Emperor must live!
	option = {
		name = SEA_japan_popup_events.11.b
		ai_chance = {
			base = 10
		}

		add_stability = 0.1

		add_political_power = -75

	}

}

# The Emperor Found Dead in his Residence - event for JAP
country_event = {
	id = SEA_japan_popup_events.12
	title = SEA_japan_popup_events.12.t
	desc = SEA_japan_popup_events.12.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# The nation mourns
	option = {
		name = SEA_japan_popup_events.12.a
		ai_chance = {
			base = 90
		}

		add_stability = 0.03	

	}

	# Find the perpetrators, Nagako demands answers!
	option = {
		name = SEA_japan_popup_events.12.b
		ai_chance = {
			base = 10
		}

		country_event = {
			id = SEA_japan_popup_events.13
			days = 7
		}		

	}

}

# Kōdōha Officers Indicted for Hirohito's Murder - event for JAP
country_event = {
	id = SEA_japan_popup_events.13
	title = SEA_japan_popup_events.13.t
	desc = SEA_japan_popup_events.13.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Declare martial law, Nagako will solve the nations instability!
	option = {
		name = SEA_japan_popup_events.13.a

		IF = {
			limit = {
				NOT = {
					has_government = neutrality
				}
			}
			set_politics = {
				ruling_party = neutrality
				elections_allowed = no
			}	
			add_popularity = {
				ideology = neutrality
				popularity = 0.3
			}	
		}

		add_stability = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_country_leader_role = {
			character = JAP_empress_nagako
			promote_leader = yes
			country_leader = {
				ideology = despotism
				expire = "1989.1.1.1"
				traits = {  } 
			}
		}	

		hidden_effect = {
			set_country_flag = JAP_empress_nagako_became_queen_flag
			mark_focus_tree_layout_dirty = yes
		}

	}

}

# Conclusion of the 1936 General Election - event for JAP
country_event = {
	id = SEA_japan_popup_events.14
	title = SEA_japan_popup_events.14.t
	desc = SEA_japan_popup_events.14.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# May Machida Chūji lad the Rikken Minseitō well
	option = {
		name = SEA_japan_popup_events.14.a

		IF = {
			limit = {
				has_dlc = "No Compromise, No Surrender"
				NOT = {
					AND = {
						has_government = democratic
						has_country_leader = {
							ruling_only = yes
							character = JAP_keisuke_okada
						}	
					}
				}
			}
			add_country_leader_role = {
				character = JAP_machida_chuuji
				promote_leader = yes
				country_leader = {
					ideology = liberalism
					expire = "1989.1.1.1"
					traits = { HUN_popular_liberal } 
				}
			}	
		}

		set_party_name = {
			ideology = democratic
			long_name = JAP_minseito_party_long
			name = JAP_minseito_party
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = democratic
			popularity = 0.025
		}	

	}

}

# The Navy Demands we Strike South - event for JAP
country_event = {
	id = SEA_imperial_influence_events.500
	title = SEA_imperial_influence_events.500.t
	desc = SEA_imperial_influence_events.500.desc
	picture = GFX_report_event_JAP_imperial_influence

	trigger = {

		original_tag = JAP

		# So that the 1-year timer on the mission allows a hisotrical date to happen within
		date > 1941.06.01

		date < 1942.02.01
		
		# So that you are going down a branch that actually has the specified focus 
		OR = {
			has_completed_focus = JAP_revere_the_emperor_destroy_the_traitors
			has_completed_focus = JAP_sea_purge_the_kodoha_faction
		}

		# So that said focus hasn't already been taken 
		NOT = {
			has_completed_focus = JAP_strike_the_southern_road
		}

		# They can't do this if they are subdued
		JAP_naval_faction_is_not_subdued = yes

		# They won't do this if you are at war with the Soviets
		NOT = {
			has_war_with = SOV
		}

		# They won't do this if you are already at war with the West
		NOT = {
			has_war_with = USA
			has_war_with = ENG
		}

		has_civil_war = no
		is_subject = no

	}

	mean_time_to_happen = { days = 35 }

	hidden = no

	fire_only_once = yes

	# Preparations must be made with haste!
	option = {
		name = SEA_imperial_influence_events.500.a

		activate_mission = JAP_naval_faction_demands_strike_south_happen_mission 

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = take_the_strike_south_focus_tt
		
	}
}

# Naval Officers Resign in Anger - event for JAP
country_event = {
	id = SEA_imperial_influence_events.501
	title = SEA_imperial_influence_events.501.t
	desc = SEA_imperial_influence_events.501.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	fire_only_once = yes

	# Such a dishonorable act!
	option = {
		name = SEA_imperial_influence_events.501.a

		navy_experience = -50
		add_command_power = -50
		add_political_power = -50
		add_war_support = -0.1

		custom_effect_tooltip = generic_skip_one_line_tt
		
		JAP_small_naval_faction_loss = yes

	}

}

# Okada Killed at Tokyo Station - event for JAP
country_event = {
	id = SEA_japan_popup_events.15
	title = SEA_japan_popup_events.15.t
	desc = SEA_japan_popup_events.15.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# They must be stopped!
	option = {
		name = SEA_japan_popup_events.15.a

		kill_country_leader = yes 

		add_stability = -0.1

		add_popularity = {
			ideology = democratic
			popularity = -0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.16
			days = 6
		}	

	}

}

# The Emperor Nominates a new Prime Minister - event for JAP
country_event = {
	id = SEA_japan_popup_events.16
	title = SEA_japan_popup_events.16.t
	desc = SEA_japan_popup_events.16.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# The Liberal Machida Chūji
	option = {
		name = SEA_japan_popup_events.16.a
		ai_chance = {
			base = 50 
			modifier = {
				factor = 0 
				OR = {
					has_country_flag = JAP_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST
					}
					has_country_flag = JAP_AI_RANDOM_COMMUNIST_2
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST_2
					}
				}
			}
		}
		
		IF = {
			limit = {
				NOT = {
					has_country_leader = {
						ruling_only = yes
						character = JAP_machida_chuuji
					}	
				}
			}
			add_country_leader_role = {
				character = JAP_machida_chuuji
				promote_leader = yes
				country_leader = {
					ideology = liberalism
					expire = "1989.1.1.1"
					traits = { HUN_popular_liberal } 
				}
			}
			set_party_name = {
				ideology = democratic
				long_name = JAP_unity_cabinet_party_long
				name = JAP_unity_cabinet_party
			}	
		}
		ELSE = {
			add_popularity = {
				ideology = democratic
				popularity = 0.05
			}	
			add_political_power = 75
			set_party_name = {
				ideology = democratic
				long_name = JAP_unity_cabinet_party_long
				name = JAP_unity_cabinet_party
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.17
			days = 7
		}

	}

	# The Socialist Abe Isoo
	option = {
		name = SEA_japan_popup_events.16.b
		ai_chance = {
			base = 30 
			modifier = {
				factor = 0
				OR = {
					has_country_flag = JAP_AI_RANDOM_DEMOCRATIC
					has_game_rule = {
						rule = JAP_ai_behavior
						option = DEMOCRATIC
					}
				}
			}
		}
		
		add_country_leader_role = {
			character = JAP_abe_isoo
			promote_leader = yes
			country_leader = {
				ideology = socialism
				expire = "1989.1.1.1"
				traits = { JAP_socialist_politician } 
			}
		}
		set_party_name = {
			ideology = democratic
			long_name = JAP_unity_cabinet_party_long
			name = JAP_unity_cabinet_party
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.17
			days = 7
		}

	}

	# President of the House of Peers, Tokugawa Iesato
	option = {
		name = SEA_japan_popup_events.16.c
		ai_chance = {
			base = 20 
			modifier = {
				factor = 0 
				OR = {
					has_country_flag = JAP_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST
					}
					has_country_flag = JAP_AI_RANDOM_COMMUNIST_2
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST_2
					}
				}
			}
		}
		
		add_country_leader_role = {
			character = JAP_tokugawa_iesato
			promote_leader = yes
			country_leader = {
				ideology = conservatism
				expire = "1989.1.1.1"
				traits = { JAP_popular_diplomat } 
			}
		}
		set_party_name = {
			ideology = democratic
			long_name = JAP_unity_cabinet_party_long
			name = JAP_unity_cabinet_party
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.17
			days = 7
		}

	}

}

# The Military Declares a Strike - event for JAP
country_event = {
	id = SEA_japan_popup_events.17
	title = SEA_japan_popup_events.17.t
	desc = SEA_japan_popup_events.17.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Things are ramping up...
	option = {
		name = SEA_japan_popup_events.17.a

		add_ideas = JAP_military_strike_idea

		country_lock_all_division_template = {
			is_locked = yes
			desc = JAP_cannot_train_due_to_military_strike
		}
		custom_effect_tooltip = JAP_must_take_revoke_ppl_focus_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		every_army_leader = {
			limit = {
				NOT = {
					has_trait = JAP_tohokai_sympathies
					has_trait = JAP_government_supporter
					has_trait = JAP_communist_sympathizer
					has_trait = JAP_IJA_loyalist
					has_character_flag = JAP_do_not_align_me_flag
				}
			}
			add_trait = {
				trait = JAP_IJA_loyalist
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		every_navy_leader = {
			limit = {
				NOT = {
					has_trait = JAP_tohokai_sympathies
					has_trait = JAP_government_supporter
					has_trait = JAP_communist_sympathizer
					has_trait = JAP_IJA_loyalist
					has_character_flag = JAP_do_not_align_me_flag
				}
			}
			add_trait = {
				trait = JAP_IJA_loyalist
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		country_event = {
			id = SEA_japan_popup_events.18
			days = 5
		}

	}

}

# The Military Entrenches Themselves - event for JAP (This event enables the securing of states etc)
country_event = {
	id = SEA_japan_popup_events.18
	title = SEA_japan_popup_events.18.t
	desc = SEA_japan_popup_events.18.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# Deploy the Metropolitcan Police to Tokyo Immediatly!
	option = {
		name = SEA_japan_popup_events.18.a
		ai_chance = {
			base = 70
		}
		
		every_core_state = {
			limit = {
				NOT = {
					state = 282 # Kanto
				}
			}
			add_dynamic_modifier = {
				modifier = JAP_state_under_army_control
			}	
		}

		282 = {
			add_dynamic_modifier = {
				modifier = JAP_state_under_rebel_control
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = enables_the_civil_war_decisions_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		activate_mission = JAP_securing_control_over_osaka_mission

	}

}


# The Hongkou Ultimatum - event for CHI 
country_event = {
	id = SEA_japan_popup_events.19
	title = SEA_japan_popup_events.19.t
	desc = SEA_japan_popup_events.19.desc
	picture = GFX_report_event_generic_shanghai_clash
	
	is_triggered_only = yes
	
	option = { # Breaking point!
		name = SEA_japan_popup_events.19.a
		ai_chance = { 
			base = 98 
		}

		effect_tooltip = {
			FROM = {
				add_war_support = 0.05
				country_event = { id = SEA_japan_popup_events.20 }
				declare_war_on = {
					target = ROOT
					type = annex_everything
				}
			}
		}

		hidden_effect = {
			FROM = { country_event = { id = SEA_japan_popup_events.20 } }
		}

	}

	option = { # Make more concessions
		name = SEA_japan_popup_events.19.b
		ai_chance = { 
			base = 2
		}

		FROM = {
			set_truce = { target = ROOT days = 180 }
			effect_tooltip = {
				IF = {
					limit = {
						ROOT = { controls_state = 613 }
					}
					transfer_state = 613
				}
				add_state_claim = 1034
			}
			country_event = { id = SEA_japan_popup_events.21 }
		}

	}

}

# Chinese Refuse Further Concessions
country_event = {
	id = SEA_japan_popup_events.20
	title = SEA_japan_popup_events.20.t
	desc = SEA_japan_popup_events.20.desc
	picture = GFX_report_event_generic_shanghai_clash

	is_triggered_only = yes
	
	option = {
		name = SEA_japan_popup_events.20.a

		add_war_support = 0.05

		IF = {
			limit = {
				NOT = {
					has_completed_focus = JAP_subdue_the_kwantung_army
					has_completed_focus = JAP_revoke_the_peace_preservation_law
				}
			}
			custom_effect_tooltip = JAP_first_strike_blocked_due_to_kwantung_army_tt
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				CHI = {
					exists = yes
					owns_state = 613
					NOT = {
						is_ally_with = ROOT
						has_war_with = ROOT
					}
				}
			}
			hidden_effect = {
				IF = {
					limit = {
						NOT = {
							has_completed_focus = JAP_subdue_the_kwantung_army
							has_completed_focus = JAP_revoke_the_peace_preservation_law
						}
					}
					CHI = {
						set_country_flag = JAP_first_strike_principle_blocked
					}
				}
			}
			declare_war_on = {
				target = CHI
				type = annex_everything
			}
			IF = {
				limit = {
					MAN = {
						is_subject_of = ROOT
						NOT = {
							OR = {
								has_completed_focus = MAN_assertiveness
								has_completed_focus = MAN_tsr_assertiveness
							}
						}
					}
				}
				MAN = {
					add_to_war = {
					    targeted_alliance = ROOT
					    enemy = CHI
					    hostility_reason = asked_to_join
					}
				}
			}
			custom_effect_tooltip = generic_skip_one_line_tt
		}
		ELSE_IF = {
			limit = {
				613 = {
					OWNER = {
						NOT = {
							tag = CHI
						}
					}
				}
			}

			hidden_effect = {
				IF = {
					limit = {
						NOT = {
							has_completed_focus = JAP_subdue_the_kwantung_army
							has_completed_focus = JAP_revoke_the_peace_preservation_law
						}
					}
					613 = {
						OWNER = {
							set_country_flag = JAP_first_strike_principle_blocked
						}
					}
				}
			}

			613 = {
				OWNER = {
					ROOT = {
						declare_war_on = {
							target = PREV
							type = annex_everything
						}
					}
				}
			}

		}
		
		USA = { set_country_flag = { flag = USA_china_window days = 60 value = 1 } }

	}
	
}

# Chinese Give Further Concessions
country_event = {
	id = SEA_japan_popup_events.21
	title = SEA_japan_popup_events.21.t
	desc = SEA_japan_popup_events.21.desc
	picture = GFX_report_event_chinese_soldiers_running
	
	is_triggered_only = yes
	
	option = {
		name = SEA_japan_popup_events.21.a
		effect_tooltip = {
			set_truce = { target = FROM days = 180 }
		}

		#hidden_effect = {
		#	country_event = { days = 5 id = news.2 }
		#}

		IF = {
			limit = {
				613 = {
					is_controlled_by = FROM
				}
			}
			JAP = {
				transfer_state = 613
			}
		}

		add_state_claim = 1034
		
		add_ai_strategy = {
			type = antagonize
			id = FROM
			value = 500
		}
		
	}
}

# The Siege of Osaka Castle - event for JAP 
country_event = {
	id = SEA_japan_popup_events.22
	title = SEA_japan_popup_events.22.t
	desc = SEA_japan_popup_events.22.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_occupation
	
	is_triggered_only = yes

	fire_only_once = yes

	# The time has come to bring back the spirit of the Taishō Era!
	option = {
		name = SEA_japan_popup_events.22.a
		
		# Kick off the democratic civil war 

		JAP_trigger_democratic_civil_war = yes

	}

	after = {
		hidden_effect = {
			IF = {
				limit = {
					any_country = {
						original_tag = JAP
						has_government = fascism
						num_divisions < 20
					}
				}
				random_country = {
					limit = {
						original_tag = JAP
						has_government = fascism
					}
					random_state = {
						limit = {
							is_core_of = JAP
							is_controlled_by = PREV
						}
						create_unit = {
						    division = "name = \"14. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
						create_unit = {
						    division = "name = \"15. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
						create_unit = {
						    division = "name = \"16. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
						create_unit = {
						    division = "name = \"17. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
					}
				}
				random_state = {
					limit = {
						is_core_of = JAP
						is_controlled_by = PREV
					}
					create_unit = {
					    division = "name = \"18. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"19. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"20. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"21. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
				}
				random_state = {
					limit = {
						is_core_of = JAP
						is_controlled_by = PREV
					}
					create_unit = {
					    division = "name = \"22. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"23. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
				}
			}
		}
	}

}

# The Complacent Emperor - event for JAP 
country_event = {
	id = SEA_japan_popup_events.23
	title = SEA_japan_popup_events.23.t
	desc = SEA_japan_popup_events.23.desc
	picture = GFX_report_event_JAP_diet_speech
	
	is_triggered_only = yes

	fire_only_once = yes

	# Very well, Nobuhito will take his place
	option = {
		name = SEA_japan_popup_events.23.a

		custom_effect_tooltip = JAP_nobuhito_takes_up_the_throne_tt

		custom_effect_tooltip = generic_skip_one_line_tt

		add_timed_idea = {
			idea = JAP_royal_support_for_civilian_government_idea
			days = 365
		}	

		hidden_effect = {
			set_country_flag = JAP_nobuhito_is_the_current_regent_or_emperor_flag
		}

	}

}

# The Imperial Army Surrenders - event for JAP 
country_event = {
	id = SEA_japan_popup_events.24
	title = SEA_japan_popup_events.24.t
	desc = SEA_japan_popup_events.24.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# We have reclaimed our future!
	option = {
		name = SEA_japan_popup_events.24.a
		
		add_popularity = {
			ideology = democratic
			popularity = 0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_war_support = 0.05

	}

}

# The General Election - event for JAP 
country_event = {
	id = SEA_japan_popup_events.25
	title = SEA_japan_popup_events.25.t
	desc = SEA_japan_popup_events.25.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# The Rikken Minseitō is victorious!
	option = {
		name = SEA_japan_popup_events.25.a
		ai_chance = { 
			base = 50 
		}
		
		JAP_small_government_faction_gain = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		complete_national_focus = {
			focus = JAP_rikken_minseito_victory
			use_side_message = yes
		}

	}

	# The Rikken Seiyūkai is victorious!
	option = {
		name = SEA_japan_popup_events.25.b
		ai_chance = { 
			base = 50 
		}
		
		JAP_small_government_faction_gain = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		complete_national_focus = {
			focus = JAP_rikken_seiyukai_victory
			use_side_message = yes
		}

	}

}

# The Kwantung Army's Coup D'etat - event for MAN 
country_event = {
	id = SEA_japan_popup_events.26
	title = SEA_japan_popup_events.26.t
	desc = SEA_japan_popup_events.26.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# There is no use resisting them
	option = {
		name = SEA_japan_popup_events.26.a
		ai_chance = { 
			base = 100 
		}
		
		set_cosmetic_tag = MAN_kwantung_army

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				has_idea = MAN_kwantung_veto 
			}
			remove_ideas = MAN_kwantung_veto 
			custom_effect_tooltip = generic_skip_one_line_tt
		}

		add_ideas = MAN_militarism 

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = fascism
			popularity = 0.25
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = MAN_kwantung_will_try_to_occupy_east_hebei_tt

		hidden_effect = {
			set_country_flag = MAN_kwantung_army_took_control_flag
			IF = {
				limit = {
					609 = {
						OWNER = {
							OR = {
								original_tag = JAP
								is_ally_with = JAP
							}
							NOT = {
								tag = ROOT
							}
						}
					}
				}
				country_event = {
					id = SEA_japan_popup_events.45 
					days = 4
					random_days = 7
				}	
			}
		}

	}

	# It is time to crush this Japanese yoke!
	option = {
		name = SEA_japan_popup_events.26.b
		ai_chance = { 
			base = 0 
		}
		
		IF = {
			limit = {
				has_idea = MAN_kwantung_veto 
			}
			remove_ideas = MAN_kwantung_veto 
			custom_effect_tooltip = generic_skip_one_line_tt
		}

		add_manpower = -7500
		add_war_support = -0.1
		add_stability = -0.1

	}

}

# The Golden Opportunity - event for KOR  
country_event = {
	id = SEA_japan_popup_events.27
	title = SEA_japan_popup_events.27.t
	desc = SEA_japan_popup_events.27.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# Throw the invaders back into the sea!
	option = {
		name = SEA_japan_popup_events.27.a
		
		add_political_power = 100

	}

}

# A Rural Base of Operations - event for JAP 
country_event = {
	id = SEA_japan_popup_events.28
	title = SEA_japan_popup_events.28.t
	desc = SEA_japan_popup_events.28.desc
	picture = GFX_report_event_japanese_officers

	is_triggered_only = yes
	
	# Hokkaido is perfect
	option = {
		name = SEA_japan_popup_events.28.a
		ai_chance = {
			base = 50
		}
		trigger = {

			536 = {
				NOT = {
					has_dynamic_modifier = {
						modifier = JAP_state_infiltrated_by_the_jcp
					}	
				}
			}

		}
		
		IF = {
			limit = {
				536 = {
					NOT = {
						has_dynamic_modifier = {
							modifier = JAP_state_infiltrated_by_the_jcp
						}	
					}
				}
			}
			536 = {
				IF = {
					limit = {
						has_dynamic_modifier = {
							modifier = JAP_state_under_army_control
						}
					}
					remove_dynamic_modifier = {
						modifier = JAP_state_under_army_control
					}
				}
				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = JAP_state_under_rebel_control
							}
						}
					}
					add_dynamic_modifier = {
						modifier = JAP_state_under_rebel_control
					}
				}
				add_dynamic_modifier = {
					modifier = JAP_state_infiltrated_by_the_jcp
				}
				set_state_flag = JAP_communists_chose_this_state_as_headquarters_flag
			}
		}


	}

	# Shikoku is remote enough
	option = {
		name = SEA_japan_popup_events.28.b
		ai_chance = {
			base = 30
		}
		trigger = {

			530 = {
				NOT = {
					has_dynamic_modifier = {
						modifier = JAP_state_infiltrated_by_the_jcp
					}	
				}
			}

		}
		
		IF = {
			limit = {
				530 = {
					NOT = {
						has_dynamic_modifier = {
							modifier = JAP_state_infiltrated_by_the_jcp
						}	
					}
				}
			}
			530 = {
				IF = {
					limit = {
						has_dynamic_modifier = {
							modifier = JAP_state_under_army_control
						}
					}
					remove_dynamic_modifier = {
						modifier = JAP_state_under_army_control
					}
				}
				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = JAP_state_under_rebel_control
							}
						}
					}
					add_dynamic_modifier = {
						modifier = JAP_state_under_rebel_control
					}
				}
				add_dynamic_modifier = {
					modifier = JAP_state_infiltrated_by_the_jcp
				}
				set_state_flag = JAP_communists_chose_this_state_as_headquarters_flag
			}
		}


	}

	# Establish a branch in Kagoshima
	option = {
		name = SEA_japan_popup_events.28.c
		ai_chance = {
			base = 20
		}
		trigger = {

			1018 = {
				NOT = {
					has_dynamic_modifier = {
						modifier = JAP_state_infiltrated_by_the_jcp
					}	
				}
			}

		}
		

		IF = {
			limit = {
				1018 = {
					NOT = {
						has_dynamic_modifier = {
							modifier = JAP_state_infiltrated_by_the_jcp
						}	
					}
				}
			}
			1018 = {
				IF = {
					limit = {
						has_dynamic_modifier = {
							modifier = JAP_state_under_army_control
						}
					}
					remove_dynamic_modifier = {
						modifier = JAP_state_under_army_control
					}
				}
				IF = {
					limit = {
						NOT = {
							has_dynamic_modifier = {
								modifier = JAP_state_under_rebel_control
							}
						}
					}
					add_dynamic_modifier = {
						modifier = JAP_state_under_rebel_control
					}
				}
				add_dynamic_modifier = {
					modifier = JAP_state_infiltrated_by_the_jcp
				}
				set_state_flag = JAP_communists_chose_this_state_as_headquarters_flag
			}
		}

	}
}

# The Miyazaki Incident - event for JAP 
country_event = {
	id = SEA_japan_popup_events.29
	title = SEA_japan_popup_events.29.t
	desc = SEA_japan_popup_events.29.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_occupation
	
	is_triggered_only = yes

	fire_only_once = yes

	# The Revolution has finally begun!
	option = {
		name = SEA_japan_popup_events.29.a
		
		# Kick off the communist civil war 

		JAP_trigger_communist_civil_war = yes

	}

	after = {

		hidden_effect = {
			random_country = {
				limit = {
					original_tag = JAP
					has_government = democratic
				}
				every_other_country = {
					limit = {
						original_tag = JAP
					}
					PREV = {
						declare_war_on = {
						    target = PREV
						    type = civil_war
						}
					}
				}
			}

			every_core_state = {
				limit = {
					has_state_flag = JAP_mountain_villages_operation_units_active_here
				}
				create_unit = {
					division = "division_template = \"Sanson Kōsakutai\" start_experience_factor = 0.1 start_equipment_factor = 0.7"
					owner = ROOT
					count = 2
					allow_spawning_on_enemy_provs = yes
				}
			}	

			IF = {
				limit = {
					any_country = {
						original_tag = JAP
						has_government = fascism
						num_divisions < 20
					}
				}
				random_country = {
					limit = {
						original_tag = JAP
						has_government = fascism
					}
					random_state = {
						limit = {
							is_core_of = JAP
							is_controlled_by = PREV
						}
						create_unit = {
						    division = "name = \"14. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
						create_unit = {
						    division = "name = \"15. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
						create_unit = {
						    division = "name = \"16. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
						create_unit = {
						    division = "name = \"17. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
						    owner = PREV
						}
					}
				}
				random_state = {
					limit = {
						is_core_of = JAP
						is_controlled_by = PREV
					}
					create_unit = {
					    division = "name = \"18. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"19. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"20. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"21. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
				}
				random_state = {
					limit = {
						is_core_of = JAP
						is_controlled_by = PREV
					}
					create_unit = {
					    division = "name = \"22. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
					create_unit = {
					    division = "name = \"23. Dai-Nippon Teikoku Rikugun Hohei Shidan\" division_template = \"Dai-Nippon Teikoku Rikugun Hohei Shidan\" start_experience_factor = 0.5 start_equipment_factor = 0.8"
					    owner = PREV
					}
				}
			}
		}

	}

}

# Debate on the Future Direction of the State - event for JAP 
country_event = {
	id = SEA_japan_popup_events.30
	title = SEA_japan_popup_events.30.t
	desc = SEA_japan_popup_events.30.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# The Kōza-ha are in the right here
	option = {
		name = SEA_japan_popup_events.30.a
		ai_chance = { 
			base = 50 
			modifier = {
				factor = 0
				OR = {
					has_country_flag = JAP_AI_RANDOM_COMMUNIST_2
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST_2
					}
				}
			}
		}
		
		custom_effect_tooltip = JAP_supported_the_kozaha_idea_tt

		hidden_effect = {
			set_country_flag = JAP_supported_the_kozaha_idea_flag
		}

	}

	# The Rōnō-ha's ideals shine brightest today
	option = {
		name = SEA_japan_popup_events.30.b
		ai_chance = { 
			base = 50 
			modifier = {
				factor = 0
				OR = {
					has_country_flag = JAP_AI_RANDOM_COMMUNIST
					has_game_rule = {
						rule = JAP_ai_behavior
						option = COMMUNIST
					}
				}
			}
		}
		
		custom_effect_tooltip = JAP_supported_the_rounoha_idea_tt

		hidden_effect = {
			set_country_flag = JAP_supported_the_rounoha_idea_flag
		}

	}

}

# A Leader for the Kōza-ha - event for JAP 
country_event = {
	id = SEA_japan_popup_events.31
	title = SEA_japan_popup_events.31.t
	desc = SEA_japan_popup_events.31.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# Sanzō Nosaka has the popularity
	option = {
		name = SEA_japan_popup_events.31.a
		ai_chance = { 
			base = 50 
		}
		
		add_country_leader_role = {
			character = JAP_sanzo_nosaka
			promote_leader = yes
			country_leader = {
				ideology = marxism
				expire = "1993.1.1.1"
				traits = { guerilla_warfare_expert JAP_first_secretary_of_the_jcp_trait } 
			}
		}

	}

	# Kyūichi Tokuda has the experience
	option = {
		name = SEA_japan_popup_events.31.b
		ai_chance = { 
			base = 50 
		}
		
		add_political_power = 50
		add_stability = 0.05

	}

}

# A Leader for the Rōnō-ha - event for JAP 
country_event = {
	id = SEA_japan_popup_events.32
	title = SEA_japan_popup_events.32.t
	desc = SEA_japan_popup_events.32.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# Hitoshi Yamakawa has the experience
	option = {
		name = SEA_japan_popup_events.32.a
		ai_chance = { 
			base = 33 
		}
		
		add_country_leader_role = {
			character = JAP_hitoshi_yamakawa
			promote_leader = yes
			country_leader = {
				ideology = marxism
				expire = "1993.1.1.1"
				traits = { JAP_socialist_revolutionary } 
			}
		}

	}

	# Kanson Arahata has the people's support
	option = {
		name = SEA_japan_popup_events.32.b
		ai_chance = { 
			base = 33 
		}
		
		add_country_leader_role = {
			character = JAP_kanson_arahata
			promote_leader = yes
			country_leader = {
				ideology = marxism
				expire = "1993.1.1.1"
				traits = { JAP_marxist_writer } 
			}
		}

	}

	# Yamakawa Kikue has the most revolutionary ideas
	option = {
		name = SEA_japan_popup_events.32.c
		ai_chance = { 
			base = 33 
		}
		
		add_country_leader_role = {
			character = JAP_yamakawa_kikue
			promote_leader = yes
			country_leader = {
				ideology = marxism
				expire = "1993.1.1.1"
				traits = { ARG_feminist_revolutionary } 
			}
		}

	}

}

# The Fate of the Imperial Family - event for JAP 
country_event = {
	id = SEA_japan_popup_events.33
	title = SEA_japan_popup_events.33.t
	desc = SEA_japan_popup_events.33.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# Make them live as normal people
	option = {
		name = SEA_japan_popup_events.33.a
		ai_chance = { 
			base = 50 
		}
		
		add_stability = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = 50

	}

	# Let them serve their term in prison
	option = {
		name = SEA_japan_popup_events.33.b
		ai_chance = { 
			base = 40 
		}
		
		add_stability = -0.1

		custom_effect_tooltip = generic_skip_one_line_tt

		add_political_power = 75
		add_war_support = 0.05

	}

	# They are too dangerous to be kept alive!
	option = {
		name = SEA_japan_popup_events.33.c
		ai_chance = { 
			base = 10 
		}
		
		add_stability = -0.15

		custom_effect_tooltip = generic_skip_one_line_tt

		add_war_support = 0.1

	}

	# Send them into exile
	option = {
		name = SEA_japan_popup_events.33.d
		ai_chance = { 
			base = 0 
		}

		MAN = {
			add_ideas = MAN_exiled_imperial_family
		}

	}

}

# Debates on the Ainu Revolution Theory - event for JAP 
country_event = {
	id = SEA_japan_popup_events.34
	title = SEA_japan_popup_events.34.t
	desc = SEA_japan_popup_events.34.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# We should make use of their fascinating traditions
	option = {
		name = SEA_japan_popup_events.34.a
		ai_chance = { 
			base = 75
		}
		
		every_owned_state = {
			limit = {
				is_core_of = ANU
			}
			add_dynamic_modifier = {
				modifier = JAP_ainu_revoluton_theory_implemented_dm
				scope = ROOT
			}	
		}

	}

	# These revolutionary leaders must be granted the autonomy the deserve!
	option = {
		name = SEA_japan_popup_events.34.b
		ai_chance = { 
			base = 25 
		}
		trigger = {
			ANU = {
				exists = no
			}
		}
		
		every_owned_state = {
			limit = {
				is_core_of = ANU
			}
			transfer_state_to = ANU
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		puppet = ANU

		ANU = {
			add_political_power = 150
			add_stability = 0.1
			add_war_support = 0.1
		}

	}

}

# [FROM.GetLeader] Wants to Empower the Yi Dynasty - event for KOR
country_event = {
	id = SEA_japan_popup_events.35
	title = SEA_japan_popup_events.35.t
	desc = SEA_japan_popup_events.35.desc
	picture = GFX_report_event_japanese_army_parade
	
	is_triggered_only = yes

	fire_only_once = yes

	# We will graciously accept
	option = {
		name = SEA_japan_popup_events.35.a
		ai_chance = {
			base = 100
		}

		set_politics = {
			ruling_party = fascism
			elections_allowed = no
		}	
		add_popularity = {
			ideology = fascism
			popularity = 0.3
		}	
		add_political_power = 100

	}

	# No, the governorship must stay!
	option = {
		name = SEA_japan_popup_events.35.b
		ai_chance = {
			base = 0
		}

		

	}
}

#Fires off when Japan starts to send National Spirits to change countries to Communism - for South America 
country_event = {
	id = SEA_japan_popup_events.36
	title = SEA_japan_popup_events.36.t
	desc = SEA_japan_popup_events.36.desc
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes

	option = { #Accept Communism
		ai_chance = {
			base = 100
		}
		name = SEA_japan_popup_events.36.a

		add_timed_idea = {
			idea = JAP_fifth_international_agitation
			days = 720
		}
		set_country_flag = received_JAP_communist_international_agitation
	}

	option = { #Clamp Down on Communism
		ai_chance = {
			base = 0
		}
		name = SEA_japan_popup_events.36.b
		
		add_political_power = -50
		add_stability = 0.05
	}
}

#Fires off when Japan starts to send National Spirits to change countries to Communism - for Others 
country_event = {
	id = SEA_japan_popup_events.37
	title = SEA_japan_popup_events.37.t
	desc = SEA_japan_popup_events.37.desc
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes

	option = { #Accept Communism
		ai_chance = {
			base = 100
		}
		name = SEA_japan_popup_events.37.a

		add_timed_idea = {
			idea = JAP_fifth_international_agitation
			days = 720
		}
		add_stability = -0.05
		set_country_flag = received_JAP_communist_international_agitation
	}

	option = { #Clamp Down on Communism
		ai_chance = {
			base = 0
		}
		name = SEA_japan_popup_events.37.b
		
		add_political_power = -150
		add_stability = 0.05
	}
}

country_event = { #The Civil War broke out
	id = SEA_japan_popup_events.38
	title = SEA_japan_popup_events.38.t
	desc = SEA_japan_popup_events.38.desc
	picture = GFX_report_event_generic_communist_militia

	is_triggered_only = yes

	option = { #we are communist now!
		name = SEA_japan_popup_events.38.a
		ai_chance = {
			base = 10
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
				}
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = ROOT
			ruling_party = communism
			size = 0.5 #since this triggers when the country goes over 50% communism
			capital = var:ROOT.temp_capital
		}

		every_country = {
			limit = {
				original_tag = ROOT
				has_government = communism
			}

			set_country_flag = JAP_spurred_communist_cw_flag
		}

	}

	option = { #Fight back the red menace!
		name = SEA_japan_popup_events.38.b
		ai_chance = {
			base = 2
		}

		hidden_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
				}
				set_variable = { ROOT.temp_capital = THIS.id }
			}
		}

		start_civil_war = {
			ideology = communism
			ruling_party = ROOT
			size = 0.5 #since this triggers when the country goes over 50% communism
			capital = var:ROOT.temp_capital
		}

		every_country = {
			limit = {
				original_tag = ROOT
				has_government = communism
			}

			set_country_flag = JAP_spurred_communist_cw_flag
		}
	}
}

# The Revitalization of Buddhism - event for JAP 
country_event = {
	id = SEA_japan_popup_events.39
	title = SEA_japan_popup_events.39.t
	desc = SEA_japan_popup_events.39.desc
	picture = GFX_report_event_JAP_workers_celebrating
	
	is_triggered_only = yes

	fire_only_once = yes

	# This is the way forward!
	option = {
		name = SEA_japan_popup_events.39.a
		ai_chance = { 
			base = 95 # If they happen to have this specific combo, sure go for it! 
		}
		
		add_country_leader_role = {
			character = JAP_giro_senoo
			promote_leader = yes
			country_leader = {
				ideology = buddhist_socialism
				expire = "1961.1.1.1"
				traits = { JAP_nichiren_marxist_trait } 
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		set_party_name = {
			ideology = communism
			long_name = JAP_youth_league_for_buddhism_party_long
			name = JAP_youth_league_for_buddhism_party
		}	

		hidden_effect = {
			set_country_flag = JAP_buddhist_socialist_takeover_flag
			mark_focus_tree_layout_dirty = yes 
			remove_advisor_role = {
				character = JAP_giro_senoo
				slot = political_advisor 
			}	
		}

	}

	# No, [ROOT.GetLeader] will continue to lead
	option = {
		name = SEA_japan_popup_events.39.b
		ai_chance = { 
			base = 5 
		}
		
		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = communism
			popularity = -0.05
		}	

	}

}

# Worrying Reports of [JAP.GetAdjective] Expansionism - event for ENG, FRA, USA and HOL to embargo Japan 
country_event = {
	id = SEA_japan_popup_events.40
	title = SEA_japan_popup_events.40.t
	desc = SEA_japan_popup_events.40.desc
	picture = GFX_report_event_generic_shanghai_clash

	trigger = {

		JAP = {
			exists = yes
			has_capitulated = no
			has_civil_war = no
			is_subject = no
			has_added_tension_amount > 10 
			has_offensive_war = yes
			any_country = {
				is_literally_china = yes
				has_war_with = PREV
			}
		}

		OR = {
			# Wuhan 
			1036 = {
				OR = {
					is_controlled_by = JAP
					JAP = {
						any_subject_country = {
							controls_state = PREV
						}
					}
				}
			}
			# Hanoi
			671 = {
				OR = {
					is_controlled_by = JAP
					JAP = {
						any_subject_country = {
							controls_state = PREV
						}
					}
				}
			}
			# Changde 
			750 = {
				OR = {
					is_controlled_by = JAP
					JAP = {
						any_subject_country = {
							controls_state = PREV
						}
					}
				}
			}
			# Yanan
			1032 = {
				OR = {
					is_controlled_by = JAP
					JAP = {
						any_subject_country = {
							controls_state = PREV
						}
					}
				}
			}
		}

		OR = {
			original_tag = ENG
			original_tag = FRA
			original_tag = USA
			original_tag = HOL
		}

		OR = {
			any_controlled_state = {
				OR = {
					is_on_continent = asia
					is_on_continent = australia
				}
			}
			any_subject_country = {
				any_controlled_state = {
					OR = {
						is_on_continent = asia
						is_on_continent = australia
					}
				}
			}
		}

		NOT = {
			has_country_flag = country_has_gotten_warrying_reports_of_japanese_expansion_flag
			is_embargoing = JAP
		}

		JAP = {
			NOT = {
				has_government = ROOT
			}
		}
		
		NOT = {
			has_war_with = JAP
		}

		has_civil_war = no

		is_subject = no

	}

	mean_time_to_happen = { days = 70 }

	hidden = no

	fire_only_once = no

	immediate = {
		set_country_flag = country_has_gotten_warrying_reports_of_japanese_expansion_flag
	}

	# We can not keep supplying their war with our materials! 
	option = {
		name = SEA_japan_popup_events.40.a
		ai_chance = { 
			base = 75 
		}

		IF = {
			limit = {
				has_dlc = "By Blood Alone"
			}
			send_embargo = JAP
			JAP = {
				every_subject_country = {
					ROOT = {
						send_embargo = PREV
					}
				}
			}
		}
		ELSE = {
			add_opinion_modifier = {
				target = JAP 
				modifier = embargo
			}
			JAP = {
				every_subject_country = {
					ROOT = {
						add_opinion_modifier = {
							target = PREV 
							modifier = embargo
						}
					}
				}
			}
		}

		JAP = {
			country_event = {
				id = SEA_japan_popup_events.41
				hours = 6
				random_hours = 30
			}	
		}
		
	}

	# An Asian country won't pose a threat to us, it's fine
	option = {
		name = SEA_japan_popup_events.40.b
		ai_chance = { 
			base = 25 
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}

		JAP = {
			add_opinion_modifier = {
				target = ROOT
				modifier = JAP_looked_the_other_way_opm
			}	
		}
		
	}

}

# The [FROM.GetAdjective] Embargo - event for JAP 
country_event = {
	id = SEA_japan_popup_events.41
	title = SEA_japan_popup_events.41.t
	desc = SEA_japan_popup_events.41.desc
	picture = GFX_report_event_JAP_army_occupation
	
	is_triggered_only = yes

	fire_only_once = no

	# They are misguided
	option = {
		name = SEA_japan_popup_events.41.a
		
		effect_tooltip = {
			IF = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				FROM = {
					send_embargo = ROOT
				}
			}
			ELSE = {
				FROM = {
					add_opinion_modifier = {
						target = ROOT 
						modifier = embargo
					}
				}
			}
		}

	}

}

# The People Lose Trust in [ROOT.GetLeader] - event for JAP when the late-game war starts going badly
country_event = {
	id = SEA_japan_popup_events.42
	title = SEA_japan_popup_events.42.t
	desc = SEA_japan_popup_events.42.desc
	picture = GFX_report_event_JAP_national_defense_brotherhood

	trigger = {

		ROOT = {
			tag = JAP
			exists = yes
			has_capitulated = no
			has_civil_war = no
			is_subject = no
			has_offensive_war = yes
			OR = {
				has_country_leader = {
					ruling_only = yes
					character = JAP_hideki_tojo
				}	
				has_country_leader = {
					ruling_only = yes
					character = JAP_isoroku_yamamoto
				}	
				has_country_leader = {
					ruling_only = yes
					character = JAP_seigo_nakano
				}	
			}
		}

		# They have lost either of the "Ring Islands" protecting the Home Islands, or have been nuked at least once  
		OR = {
			# Okinawa 
			526 = {
				is_owned_by = ROOT
				NOT = {
					is_controlled_by = ROOT
				}
			}
			# Iwo Jima 
			645 = {
				is_owned_by = ROOT
				NOT = {
					is_controlled_by = ROOT
				}
			}
			# Saipan
			646 = {
				is_owned_by = ROOT
				NOT = {
					is_controlled_by = ROOT
				}
			}
			# Taiwan
			524 = {
				is_owned_by = ROOT
				NOT = {
					is_controlled_by = ROOT
				}
			}
			# Kuril Islands 
			555 = {
				is_owned_by = ROOT
				NOT = {
					is_controlled_by = ROOT
				}
			}
			has_global_flag = JAP_nuke_1
		}

	}

	mean_time_to_happen = { days = 70 }

	hidden = no

	fire_only_once = yes

	immediate = {
	}

	# We must put an end to this quagmire!
	option = {
		name = SEA_japan_popup_events.42.a

		set_country_flag = JAP_tojo_or_yamamoto_resigned_flag
		mark_focus_tree_layout_dirty = yes
		
		add_ideas = JAP_crumbling_military_cabinet_idea 

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = JAP_unlock_the_surrender_subbranch_tt

	}

}

# The Kyūjō Incident - event for JAP 
country_event = {
	id = SEA_japan_popup_events.43
	title = SEA_japan_popup_events.43.t
	desc = SEA_japan_popup_events.43.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_occupation
	
	is_triggered_only = yes

	fire_only_once = no

	# How dare they oppose the Emperors wish? 
	option = {
		name = SEA_japan_popup_events.43.a
		ai_chance = { 
			base = 100 
		}

		add_country_leader_role = {
			character = JAP_naruhiko_higashikuni
			promote_leader = yes
			country_leader = {
				ideology = emperor_fascism
				expire = "1952.1.1.1"
				traits = { JAP_noble_prime_minister }
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				has_idea = korechika_anami
			}
			remove_ideas = korechika_anami
		}
		retire_character = JAP_korechika_anami

		custom_effect_tooltip = generic_skip_one_line_tt

		swap_ideas = {
			remove_idea = JAP_crumbling_military_cabinet_idea_2
			add_idea = JAP_crumbling_military_cabinet_idea_3
		}	

		custom_effect_tooltip = JAP_unlock_surrender_broadcast_tt
		
		set_country_flag = JAP_kyujo_incident_rebels_lost_flag 

		hidden_effect = {
			JAP_tetsu_katayama = {
				promote_character = {
				    ideology = liberalism
				}
			}
		}

	}

	# The dark clouds must disappear from the reign of the Emperor!
	option = {
		name = SEA_japan_popup_events.43.b
		ai_chance = { 
			base = 0 
		}

		add_country_leader_role = {
			character = JAP_yasuhiko_asaka
			promote_leader = yes
			country_leader = {
				ideology = emperor_fascism
				expire = "1952.1.1.1"
				traits = { JAP_noble_prime_minister }
			}
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		swap_ideas = {
			remove_idea = JAP_crumbling_military_cabinet_idea_2
			add_idea = JAP_crumbling_military_cabinet_idea_4
		}	

		custom_effect_tooltip = JAP_unlock_japans_longest_day_tt
		
		set_country_flag = JAP_kyujo_incident_rebels_won_flag 

		hidden_effect = {
			JAP_tetsu_katayama = {
				promote_character = {
				    ideology = liberalism
				}
			}
		}

	}

}

# The Rise of Khorloogiin Choibalsan - event for MON 
country_event = {
	id = SEA_japan_popup_events.44
	title = SEA_japan_popup_events.44.t
	desc = SEA_japan_popup_events.44.desc
	picture = GFX_report_event_SOV_mongolia_cavalry

	trigger = {

		NOT = {
			has_global_flag = MON_choibalsan_ascended_flag
		}

		tag = MON
		
		date > 1939.1.1

		has_dlc = "No Compromise, No Surrender"

		has_government = communism
		
		NOT = {
			has_country_leader = {
				ruling_only = yes
				character = MON_khorloogiin_choibalsan
			}	
		}
		
	}

	mean_time_to_happen = { days = 35 }

	hidden = no

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_global_flag = MON_choibalsan_ascended_flag 
		}
	}

	option = {
		name = SEA_japan_popup_events.44.a
		ai_chance = {
			base = 100
		}

		add_country_leader_role = {
			character = MON_khorloogiin_choibalsan
			promote_leader = yes
			country_leader = {
				ideology = stalinism
				expire = "1948.1.1.12"
				traits = { MON_pan_mongolian_stalinist } 
			}
		}	

	}

	option = {
		name = SEA_japan_popup_events.44.b
		ai_chance = {
			base = 0
			
			modifier = {
				add = 50
				is_historical_focus_on = no
			}
			
		}

		add_political_power = 150 

	}

}

# Occupying the East Hebei Autonomous Government - event for MAN  
country_event = {
	id = SEA_japan_popup_events.45
	title = SEA_japan_popup_events.45.t
	desc = SEA_japan_popup_events.45.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_preparation
	
	is_triggered_only = yes

	fire_only_once = yes

	# Our consolidation continues
	option = {
		name = SEA_japan_popup_events.45.a
		
		609 = {
			transfer_state_to = ROOT
			add_core_of = ROOT
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		JAP = {
			country_event = {
				id = SEA_japan_popup_events.46
				hours = 6
				random_hours = 12
			}	
		}

	}

}

# The Kwantung Army Occupies East Hebei - event for JAP   
country_event = {
	id = SEA_japan_popup_events.46
	title = SEA_japan_popup_events.46.t
	desc = SEA_japan_popup_events.46.desc
	picture = GFX_report_event_JAP_kodoha_coup_attempt_preparation
	
	is_triggered_only = yes

	fire_only_once = yes

	# We will deal with them later... 
	option = {
		name = SEA_japan_popup_events.46.a
		
		effect_tooltip = {
			609 = {
				transfer_state_to = FROM
				add_core_of = FROM
			}
		}

	}

}

# [FROM.GetNameDefCap] Cancels our Resource Rights to [655.GetName] - event for JAP   
country_event = {
	id = SEA_japan_popup_events.47
	title = SEA_japan_popup_events.47.t
	desc = SEA_japan_popup_events.47.desc
	picture = GFX_report_event_soviet_japanese_pact
	
	is_triggered_only = yes

	fire_only_once = yes

	# A Storm is brewing in the north...
	option = {
		name = SEA_japan_popup_events.47.a
		
		effect_tooltip = {
			ROOT = { 
				remove_resource_rights = 655 
			}
		}

	}

}

# Tokugawa Iesato Declares a National Emergency - event for JAP 
country_event = {
	id = SEA_japan_popup_events.48
	title = SEA_japan_popup_events.48.t
	desc = SEA_japan_popup_events.48.desc
	picture = GFX_report_event_jap_imperial_family

	trigger = {

		tag = JAP
	
		has_dlc = "No Compromise, No Surrender"

		has_government = democratic

		has_country_leader = {
			ruling_only = yes
			character = JAP_tokugawa_iesato
		}	
		
		has_civil_war = no
		has_war = yes

		has_completed_focus = JAP_crush_the_internal_factions

		any_core_state = {
			JAP_is_home_islands_state = yes
			NOT = {
				is_fully_controlled_by = ROOT
			}
		}

		NOT = {
			has_global_flag = JAP_national_emergency_declared
		}
		
	}

	mean_time_to_happen = { days = 84 }

	hidden = no

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_global_flag = JAP_national_emergency_declared 
		}
	}

	option = {
		name = SEA_japan_popup_events.48.a

		add_country_leader_trait = JUNO_emergency_powers

		hidden_effect = {
			set_cosmetic_tag = JAP_tokugawa_restored
		}

	}

}

# Yonai Assassinated by the Army - event for JAP 
country_event = {
	id = SEA_japan_popup_events.49
	title = SEA_japan_popup_events.49.t
	desc = SEA_japan_popup_events.49.desc
	picture = GFX_report_event_japanese_officers

	trigger = {

		tag = JAP

		has_dlc = "No Compromise, No Surrender"

		has_government = democratic
		
		has_country_leader = {
			ruling_only = yes
			character = JAP_mitsumasa_yonai
		}

		has_civil_war = no

		has_completed_focus = JAP_mitsumasa_yonai_focus

		JAP_army_faction_is_tier_4 = yes

		NOT = {
			has_global_flag = JAP_yonai_replaced_by_kenzo
		}
		
	}

	mean_time_to_happen = { days = 70 }

	hidden = no

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_global_flag = JAP_yonai_replaced_by_kenzo 
		}
	}

	option = {
		name = SEA_japan_popup_events.49.a

		add_country_leader_role = {
			character = JAP_adachi_kenzo
			promote_leader = yes
			country_leader = {
				ideology = populism
				expire = "1952.1.1.1"
				traits = { JAP_militarist } 
			}
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_popularity = {
			ideology = fascism
			popularity = 0.15
		}	

		hidden_effect = {
			set_cosmetic_tag = JAP_kokumin
		}

	}

}

# A Joint Demand from the Tokkō and the Zaibatsus - event for JAP   
country_event = {
	id = SEA_japan_popup_events.50
	title = SEA_japan_popup_events.50.t
	desc = SEA_japan_popup_events.50.desc
	picture = GFX_report_event_JAP_diet_speech
	
	is_triggered_only = yes

	fire_only_once = yes

	# Very well, if that is the Prime minister they want...
	option = {
		name = SEA_japan_popup_events.50.a
		ai_chance = {
			base = 50
		}
		
		add_country_leader_role = {
			character = JAP_seigo_nakano
			promote_leader = yes
			country_leader = {
				ideology = gen_nazism
				expire = "1952.1.1.1"
				traits = { JAP_tohokai_leader } 
			}
		}

		hidden_effect = {
			set_cosmetic_tag = JAP_tohokai_rule
			set_country_flag = JAP_tohokai_prime_minister_added 
			mark_focus_tree_layout_dirty = yes
		}	

	}

	# We will not comply with their demands!
	option = {
		name = SEA_japan_popup_events.50.b
		ai_chance = {
			base = 50
		}
		
		add_stability = -0.15

		custom_effect_tooltip = generic_skip_one_line_tt

		JAP_big_zaibatsu_faction_loss = yes

	}

}






###################################################
################# TOKKO EVENTS ####################
###################################################


# The Popular Front Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.1
	title = SEA_japan_tokko_arrest_events.1.t
	desc = SEA_japan_tokko_arrest_events.1.desc
	picture = GFX_report_event_JAP_communists_arrested

	trigger = {

		original_tag = JAP

		date > 1937.12.01

		date < 1939.06.01
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		OR = {
			has_government = neutrality
			has_government = fascism
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# Great
	option = {
		name = SEA_japan_tokko_arrest_events.1.a

		add_popularity = {
			ideology = communism
			popularity = -0.05
		}	

		add_stability = 0.03

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = JAP_popular_front_incident_tt

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}
}

# The Cox Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.2
	title = SEA_japan_tokko_arrest_events.2.t
	desc = SEA_japan_tokko_arrest_events.2.desc
	picture = GFX_report_event_japanese_reply

	trigger = {

		original_tag = JAP

		date > 1940.06.01

		date < 1942.07.27
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		OR = {
			has_government = neutrality
			has_government = fascism
		}

		ENG = {
			exists = yes
			NOT = {
				is_ally_with = ROOT
			}
		}

		NOT = {
			has_idea = JAP_increased_national_security_lar
			has_idea = JAP_increased_national_security_no_lar
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# Foreign Agents get what they deserve!
	option = {
		name = SEA_japan_tokko_arrest_events.2.a
		ai_chance = {
			base = 100
		}

		add_popularity = {
			ideology = ENG
			popularity = -0.05
		}	

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = JAP_cox_incident_tt
		ENG = {
			add_opinion_modifier = {
				target = ROOT
				modifier = ENG_cox_incident_opm
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				NOT = {
					has_dlc = "La Resistance"
				}
			}
			add_timed_idea = {
				idea = JAP_increased_national_security_no_lar
				days = 180
			}	
		}
		ELSE = {
			add_timed_idea = {
				idea = JAP_increased_national_security_lar
				days = 180
			}	
		}

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

	# Try not to anger the [ENG.GetAdjective]
	option = {
		name = SEA_japan_tokko_arrest_events.2.b
		ai_chance = {
			base = 0
		}

		add_stability = -0.02

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}
}

# The Kyōsakusha Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.3
	title = SEA_japan_tokko_arrest_events.3.t
	desc = SEA_japan_tokko_arrest_events.3.desc
	picture = GFX_report_event_JAP_communists_arrested

	trigger = {

		original_tag = JAP

		date > 1941.12.01

		date < 1944.01.01
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		OR = {
			has_government = neutrality
			has_government = fascism
		}

		MAN = {
			exists = yes
			is_ally_with = ROOT
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# Let the Kwantung Army Deal with it
	option = {
		name = SEA_japan_tokko_arrest_events.3.a
		ai_chance = {
			base = 100
		}

		MAN = {
			country_event = {
				id = SEA_japan_tokko_arrest_events.8
				hours = 6
				random_hours = 12
			}	
		}

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

	# We must make mass arrest immediately!
	option = {
		name = SEA_japan_tokko_arrest_events.3.b
		ai_chance = {
			base = 0
		}

		add_political_power = 25
		add_war_support = 0.02
		add_stability = -0.02

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

	# They pose no threat to us, ignore them
	option = {
		name = SEA_japan_tokko_arrest_events.3.c
		ai_chance = {
			base = 0
		}

		MAN = {
			add_stability = -0.02
		}

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}
}

# The Sorge Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.4
	title = SEA_japan_tokko_arrest_events.4.t
	desc = SEA_japan_tokko_arrest_events.4.desc
	picture = GFX_report_event_JAP_communists_arrested

	trigger = {

		original_tag = JAP

		date > 1941.09.01

		date < 1943.01.01
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		OR = {
			has_government = neutrality
			has_government = fascism
		}

		NOT = {
			has_idea = JAP_increased_national_security_lar
			has_idea = JAP_increased_national_security_no_lar
		}

		SOV = {
			exists = yes
			has_government = communism
			NOT = {
				is_ally_with = ROOT
			}
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# Foreign Agents get what they deserve!
	option = {
		name = SEA_japan_tokko_arrest_events.4.a
		ai_chance = {
			base = 100
		}

		add_popularity = {
			ideology = SOV
			popularity = -0.05
		}	

		add_political_power = 25

		custom_effect_tooltip = generic_skip_one_line_tt

		custom_effect_tooltip = JAP_sorge_incident_tt
		SOV = {
			add_opinion_modifier = {
				target = ROOT
				modifier = SOV_sorge_incident_opm
			}	
		}

		custom_effect_tooltip = generic_skip_one_line_tt

		IF = {
			limit = {
				NOT = {
					has_dlc = "La Resistance"
				}
			}
			add_timed_idea = {
				idea = JAP_increased_national_security_no_lar
				days = 180
			}	
		}
		ELSE = {
			add_timed_idea = {
				idea = JAP_increased_national_security_lar
				days = 180
			}	
		}

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

	# Try not to anger the [SOV.GetAdjective]s
	option = {
		name = SEA_japan_tokko_arrest_events.4.b
		ai_chance = {
			base = 0
		}

		add_stability = -0.02

		add_popularity = {
			ideology = SOV
			popularity = 0.05
		}	

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

}

# The Yokohama Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.5
	title = SEA_japan_tokko_arrest_events.5.t
	desc = SEA_japan_tokko_arrest_events.5.desc
	picture = GFX_report_event_JAP_communists_arrested

	trigger = {

		original_tag = JAP

		date > 1942.01.01

		date < 1945.01.01
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		OR = {
			has_government = neutrality
			has_government = fascism
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# More dissidence suppressed
	option = {
		name = SEA_japan_tokko_arrest_events.5.a

		add_popularity = {
			ideology = democratic
			popularity = -0.05
		}	
		add_popularity = {
			ideology = communism
			popularity = -0.05
		}	

		custom_effect_tooltip = generic_skip_one_line_tt

		add_stability = 0.05
		add_political_power = -50

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

}

# The Nakano Seigo Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.6
	title = SEA_japan_tokko_arrest_events.6.t
	desc = SEA_japan_tokko_arrest_events.6.desc
	picture = GFX_report_event_japanese_reply

	trigger = {

		original_tag = JAP

		date > 1943.08.01

		date < 1946.01.01
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		has_war = yes

		OR = {
			has_government = neutrality
			has_government = fascism
		}

		OR = {
			has_completed_focus = JAP_tojos_premiership
			has_completed_focus = JAP_yamamotos_premiership
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# How dare he speak ill of our Prime Minister? Arrest him!
	option = {
		name = SEA_japan_tokko_arrest_events.6.a

		add_war_support = 0.05
		add_political_power = -25

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

}

# The Bamboo Spear Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.7
	title = SEA_japan_tokko_arrest_events.7.t
	desc = SEA_japan_tokko_arrest_events.7.desc
	picture = GFX_report_event_japanese_reply

	trigger = {

		original_tag = JAP

		date > 1944.01.01

		date < 1947.01.01
		
		has_completed_focus = JAP_crackdown_on_foreign_agents

		NOT = {
			has_country_flag = JAP_tokko_arrests_cooldown_flag
		}

		has_civil_war = no

		is_subject = no

		has_war = yes

		any_enemy_country = {
			is_major = yes
		}	

		OR = {
			has_government = neutrality
			has_government = fascism
		}

	}

	mean_time_to_happen = { days = 30 }

	hidden = no

	fire_only_once = yes

	# Why do they not trust we will win this war?
	option = {
		name = SEA_japan_tokko_arrest_events.7.a

		JAP_small_naval_faction_gain = yes

		custom_effect_tooltip = generic_skip_one_line_tt

		add_war_support = -0.03

		hidden_effect = {
			set_country_flag = { flag = JAP_tokko_arrests_cooldown_flag value = 1 days = 60 }
		}
		
	}

}

# The Kyōsakusha Incident - event for JAP
country_event = {
	id = SEA_japan_tokko_arrest_events.8
	title = SEA_japan_tokko_arrest_events.8.t
	desc = SEA_japan_tokko_arrest_events.8.desc
	picture = GFX_report_event_JAP_communists_arrested
	
	is_triggered_only = yes

	fire_only_once = yes

	# Follow the directe and begin mass arrests!
	option = {
		name = SEA_japan_tokko_arrest_events.8.a
		ai_chance = {
			base = 50
		}

		add_popularity = {
			ideology = ROOT
			popularity = 0.1
		}	
		add_political_power = 50

		custom_effect_tooltip = generic_skip_one_line_tt

		add_stability = -0.1

	}

	# Sweep it under the rug, it benefits us anyway
	option = {
		name = SEA_japan_tokko_arrest_events.8.b
		ai_chance = {
			base = 50
		}

		add_ideas = MAN_kyousakusha_uplifted

	}

}





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

country_event = {
	#A Faction has climbed the hierarchy and the player has to choose which one of the 3 Influential Factions that gets demoted
	id = SEA_imperial_influence_events.1
	title = SEA_imperial_influence_events.1.t
	desc = SEA_imperial_influence_events.1.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	#Demote the Army Faction
	option = { 
		name = SEA_imperial_influence_events.1.a
		trigger = {
			JAP_army_faction_is_tier_3 = yes
		}
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_completed_focus = JAP_kantokuen
				NOT = {
					has_completed_focus = JAP_a_green_persimmon
					has_completed_focus = JAP_the_persimmon_has_ripened
				}
			}
		}
		
		set_variable = { JAP_army_faction_influence_level = JAP_tier_2_to_tier_3_small_gate } #Sets the Influence Level to a variable already used to check tier gates

		JAP_army_faction_goes_down_from_tier_3_to_tier_2 = yes

		hidden_effect = { clr_country_flag = JAP_pending_imperial_influence_decision } 

		#If there, for some unforseen reason (like my bad scripting) still are more than 2 Influential factions, trigger this event again
		if = { 
			limit = {
				check_variable = { JAP_num_of_influential_imperial_factions > 2 }
			}
			hidden_effect = { set_country_flag = JAP_pending_imperial_influence_decision } #Used to block players from influencing the Imperial Influence system. Remember to clear it!
			country_event = { id = SEA_imperial_influence_events.1 hours = 1 }
			custom_effect_tooltip = generic_skip_one_line_tt
		}
	}

	#Demote the Naval Faction
	option = { 
		name = SEA_imperial_influence_events.1.b
		trigger = {
			JAP_naval_faction_is_tier_3 = yes
		}
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_completed_focus = JAP_nanshin_ron
				NOT = {
					has_completed_focus = JAP_strike_the_southern_road
				}
			}
		}

		set_variable = { JAP_naval_faction_influence_level = JAP_tier_2_to_tier_3_small_gate } #Sets the Influence Level to a variable already used to check tier gates

		JAP_naval_faction_goes_down_from_tier_3_to_tier_2 = yes

		hidden_effect = { clr_country_flag = JAP_pending_imperial_influence_decision } 

		#If there, for some unforseen reason (like my bad scripting) still are more than 2 Influential factions, trigger this event again
		if = { 
			limit = {
				check_variable = { JAP_num_of_influential_imperial_factions > 2 }
			}
			hidden_effect = { set_country_flag = JAP_pending_imperial_influence_decision } #Used to block players from influencing the Imperial Influence system. Remember to clear it!
			country_event = { id = SEA_imperial_influence_events.1 hours = 1 }
			custom_effect_tooltip = generic_skip_one_line_tt
		}
	}

	#Demote the Zaibatsu Faction
	option = { 
		name = SEA_imperial_influence_events.1.c
		trigger = {
			has_idea = JAP_zaibatsu_faction_tier_3
		}
		ai_chance = {
			base = 1
		}

		set_variable = { JAP_zaibatsu_faction_influence_level = JAP_tier_2_to_tier_3_small_gate } #Sets the Influence Level to a variable already used to check tier gates

		JAP_zaibatsu_faction_goes_down_from_tier_3_to_tier_2 = yes
		
		hidden_effect = { clr_country_flag = JAP_pending_imperial_influence_decision }

		#If there, for some unforseen reason (like my bad scripting) still are more than 2 Influential factions, trigger this event again
		if = { 
			limit = {
				check_variable = { JAP_num_of_influential_imperial_factions > 2 }
			}
			hidden_effect = { set_country_flag = JAP_pending_imperial_influence_decision } #Used to block players from influencing the Imperial Influence system. Remember to clear it!
			country_event = { id = SEA_imperial_influence_events.1 hours = 1 }
			custom_effect_tooltip = generic_skip_one_line_tt
		}
	}

	#Demote the Government Faction
	option = { 
		name = SEA_imperial_influence_events.1.d
		trigger = {
			has_idea = JAP_government_faction_tier_3
		}
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					has_government = democratic
					has_government = communism
				}
			}
		}

		set_variable = { JAP_government_faction_influence_level = JAP_tier_2_to_tier_3_small_gate } #Sets the Influence Level to a variable already used to check tier gates
		
		JAP_government_faction_goes_down_from_tier_3_to_tier_2 = yes

		hidden_effect = { clr_country_flag = JAP_pending_imperial_influence_decision } 

		#If there, for some unforseen reason (like my bad scripting) still are more than 2 Influential factions, trigger this event again
		if = { 
			limit = {
				check_variable = { JAP_num_of_influential_imperial_factions > 2 }
			}
			hidden_effect = { set_country_flag = JAP_pending_imperial_influence_decision } #Used to block players from influencing the Imperial Influence system. Remember to clear it!
			country_event = { id = SEA_imperial_influence_events.1 hours = 1 }
			custom_effect_tooltip = generic_skip_one_line_tt
		}
	}
}

###############################
	### FACTION DEMANDS ###
###############################

#ARMY Demands
country_event = { #The Army FAILED to meet their demands
	id = SEA_imperial_influence_events.100
	title = SEA_imperial_influence_events.100.t
	desc = SEA_imperial_influence_events.100.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.b #Very Intentional 

		IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 1 }
			}
			army_experience = -10
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 2 }
			}
			army_experience = -15
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 3 }
			}
			army_experience = -20
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 4 }
			}
			army_experience = -25
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 5 }
			}
			army_experience = -25
			add_command_power = -15
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 6 }
			}
			army_experience = -25
			add_command_power = -25
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_army_faction_demand_failure = 7 }
			}
			add_war_support = -0.05
			army_experience = -25
			add_command_power = -25
		}
		#Reset the variable
		set_variable = { JAP_army_faction_demand_failure = 0 }

		JAP_small_army_faction_loss = yes

		hidden_effect = {
			JAP_faction_demand_finalize_mission_effect = yes
			JAP_faction_demand_add_to_failed_missions = yes
		}

	}
}

country_event = { #Build more Military Factories
	id = SEA_imperial_influence_events.110
	title = SEA_imperial_influence_events.110.t
	desc = SEA_imperial_influence_events.110.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_military_factories

		#Basically, we want 5 more factories
		set_variable = { JAP_desired_military_factories = num_of_military_factories }
		add_to_variable = { JAP_desired_military_factories = 4 }

	}
}

country_event = { #Appoint Chief of Army
	id = SEA_imperial_influence_events.120
	title = SEA_imperial_influence_events.120.t
	desc = SEA_imperial_influence_events.120.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_political_appointment
	}
}

country_event = { #Change Conscription Laws
	id = SEA_imperial_influence_events.130
	title = SEA_imperial_influence_events.130.t
	desc = SEA_imperial_influence_events.130.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_conscription_law_change

		hidden_effect = {
			IF = {
				limit = {
					has_idea = disarmed_nation
				}
				set_country_flag = JAP_in_on_disarmed_nation_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = volunteer_only
				}
				set_country_flag = JAP_in_on_volunteer_only_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = limited_conscription
				}
				set_country_flag = JAP_in_on_limited_conscription_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = extensive_conscription
				}
				set_country_flag = JAP_in_on_extensive_conscription_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = service_by_requirement
				}
				set_country_flag = JAP_in_on_service_by_requirement_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = all_adults_serve
				}
				set_country_flag = JAP_in_on_all_adults_serve_flag
			}
		}
		
	}
}

country_event = { #Field more men
	id = SEA_imperial_influence_events.140
	title = SEA_imperial_influence_events.140.t
	desc = SEA_imperial_influence_events.140.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_larger_army

		hidden_effect = {
			IF = {
				limit = {
					has_army_manpower = {
						size < 550000
					}	
				}
				set_country_flag = JAP_has_less_than_600k_flag
			}
			ELSE_IF = {
				limit = {
					has_army_manpower = {
						size < 650000
					}	
				}
				set_country_flag = JAP_has_less_than_750k_flag
			}
			ELSE_IF = {
				limit = {
					has_army_manpower = {
						size < 900000
					}	
				}
				set_country_flag = JAP_has_less_than_1mil_flag
			}
			ELSE_IF = {
				limit = {
					has_army_manpower = {
						size < 1300000
					}	
				}
				set_country_flag = JAP_has_less_than_1_and_a_half_mil_flag
			}
			ELSE_IF = {
				limit = {
					has_army_manpower = {
						size < 1900000
					}	
				}
				set_country_flag = JAP_has_less_than_2mil_flag
			}
		}

	}
}

country_event = { #More Trucks
	id = SEA_imperial_influence_events.150
	title = SEA_imperial_influence_events.150.t
	desc = SEA_imperial_influence_events.150.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	trigger = {
		JAP_army_faction_is_tier_3_at_least = yes
		check_variable = { JAP_num_of_faction_demands < 3 } #Don't have more than 2 Demands ongoing at the same time
	}
	
	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_more_trucks
	}
}

country_event = { #More Tanks
	id = SEA_imperial_influence_events.160
	title = SEA_imperial_influence_events.160.t
	desc = SEA_imperial_influence_events.160.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes
	
	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_more_tanks
	}
}

country_event = { #More Artillery
	id = SEA_imperial_influence_events.161
	title = SEA_imperial_influence_events.161.t
	desc = SEA_imperial_influence_events.161.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_army_faction_demands_more_artillery
	}
}

#NAVAL Demands
country_event = { #The Navy FAILED to meet their demands
	id = SEA_imperial_influence_events.200
	title = SEA_imperial_influence_events.200.t
	desc = SEA_imperial_influence_events.200.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.b #Very Intentional 

		IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 1 }
			}
			navy_experience = -10
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 2 }
			}
			navy_experience = -15
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 3 }
			}
			navy_experience = -20
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 4 }
			}
			navy_experience = -25
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 5 }
			}
			navy_experience = -25
			add_command_power = -15
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 6 }
			}
			navy_experience = -25
			add_command_power = -25
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_naval_faction_demand_failure = 7 }
			}
			add_war_support = -0.05
			navy_experience = -25
			add_command_power = -25
		}
		#Reset the variable
		set_variable = { JAP_naval_faction_demand_failure = 0 }

		JAP_small_naval_faction_loss = yes
		
		hidden_effect = {
			JAP_faction_demand_finalize_mission_effect = yes
			JAP_faction_demand_add_to_failed_missions = yes
		}

	}
}

country_event = { #Build more Dockyards
	id = SEA_imperial_influence_events.210
	title = SEA_imperial_influence_events.210.t
	desc = SEA_imperial_influence_events.210.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes
	
	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_naval_faction_demands_dockyards

		#Basically, we want 5 more dockyards
		set_variable = { JAP_desired_naval_factories = num_of_naval_factories }
		add_to_variable = { JAP_desired_naval_factories = 4 }

	}
}

country_event = { #Appoint Chief of Navy
	id = SEA_imperial_influence_events.220
	title = SEA_imperial_influence_events.220.t
	desc = SEA_imperial_influence_events.220.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes
	
	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_naval_faction_demands_political_appointment
	}
}

country_event = { #Change Conscription Laws
	id = SEA_imperial_influence_events.230
	title = SEA_imperial_influence_events.230.t
	desc = SEA_imperial_influence_events.230.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_naval_faction_demands_conscription_law_change

		hidden_effect = {
			IF = {
				limit = {
					has_idea = disarmed_nation
				}
				set_country_flag = JAP_in_on_disarmed_nation_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = volunteer_only
				}
				set_country_flag = JAP_in_on_volunteer_only_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = limited_conscription
				}
				set_country_flag = JAP_in_on_limited_conscription_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = extensive_conscription
				}
				set_country_flag = JAP_in_on_extensive_conscription_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = service_by_requirement
				}
				set_country_flag = JAP_in_on_service_by_requirement_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = all_adults_serve
				}
				set_country_flag = JAP_in_on_all_adults_serve_flag
			}
		}
		
	}
}

country_event = { #Build Carriers
	id = SEA_imperial_influence_events.240
	title = SEA_imperial_influence_events.240.t
	desc = SEA_imperial_influence_events.240.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

	}
}

country_event = { #Build Carriers AND Battleships
	id = SEA_imperial_influence_events.241
	title = SEA_imperial_influence_events.241.t
	desc = SEA_imperial_influence_events.241.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_naval_faction_demands_more_carriers
	}
}

country_event = { #Build Battleships
	id = SEA_imperial_influence_events.242
	title = SEA_imperial_influence_events.242.t
	desc = SEA_imperial_influence_events.242.desc
	picture = GFX_report_event_JAP_imperial_influence

	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

	}
}


#ZAIBATSU Demands
country_event = {
	id = SEA_imperial_influence_events.300
	title = SEA_imperial_influence_events.300.t
	desc = SEA_imperial_influence_events.300.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.b #Very Intentional

		JAP_small_zaibatsu_faction_loss = yes
		
		hidden_effect = {
			JAP_faction_demand_finalize_mission_effect = yes
			JAP_faction_demand_add_to_failed_missions = yes
		}

		IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 1 }
			}
			add_political_power = -10
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 2 }
			}
			add_political_power = -15
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 3 }
			}
			add_political_power = -20
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 4 }
			}
			add_political_power = -25
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 5 }
			}
			add_political_power = -25
			add_stability = -0.02
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 6 }
			}
			add_political_power = -25
			add_stability = -0.03
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_zaibatsu_faction_demand_failure = 7 }
			}
			add_political_power = -25
			add_stability = -0.05 
		}
		#Reset the variable
		set_variable = { JAP_zaibatsu_faction_demand_failure = 0 }
	}
}

country_event = { #Build Civilian Factories
	id = SEA_imperial_influence_events.310
	title = SEA_imperial_influence_events.310.t
	desc = SEA_imperial_influence_events.310.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_zaibatsu_faction_demands_factories

		#Basically, we want 5 more dockyards
		set_variable = { JAP_desired_civilian_factories = num_of_civilian_factories }
		add_to_variable = { JAP_desired_naval_factories = 2 }
	}
}

country_event = { #Appoint Industrial Advisor
	id = SEA_imperial_influence_events.320
	title = SEA_imperial_influence_events.320.t
	desc = SEA_imperial_influence_events.320.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_zaibatsu_faction_demands_political_appointment

	}
}

country_event = { #Change Economy Laws
	id = SEA_imperial_influence_events.330
	title = SEA_imperial_influence_events.330.t
	desc = SEA_imperial_influence_events.330.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_zaibatsu_faction_demands_economy_law_change

		hidden_effect = {
			IF = {
				limit = {
					OR = {
						has_idea = tot_economic_mobilisation
						has_idea = national_defense_state
					}
				}
				set_country_flag = JAP_in_on_total_economic_mobilization_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = war_economy
				}
				set_country_flag = JAP_in_on_war_economy_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = partial_economic_mobilisation
				}
				set_country_flag = JAP_in_on_partial_economic_mobilisation_flag
			}
			ELSE_IF = {
				limit = {
					has_idea = low_economic_mobilisation
				}
				set_country_flag = JAP_in_on_low_economic_mobilisation_flag
			}
		}

	}
}

country_event = { #Hire Industrial Company
	id = SEA_imperial_influence_events.340
	title = SEA_imperial_influence_events.340.t
	desc = SEA_imperial_influence_events.340.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_zaibatsu_faction_demands_industrial_company_employment
	}
}


#GOVERNMENT Demands
country_event = {
	id = SEA_imperial_influence_events.400
	title = SEA_imperial_influence_events.400.t
	desc = SEA_imperial_influence_events.400.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.b #Very Intentional

		JAP_small_government_faction_loss = yes
		
		hidden_effect = {
			JAP_faction_demand_finalize_mission_effect = yes
			JAP_faction_demand_add_to_failed_missions = yes
		}

		IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 1 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.02
			}	
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 2 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.03
			}	
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 3 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.05
			}	
			add_political_power = -15
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 4 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.05
			}	
			add_political_power = -25
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 5 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.05
			}	
			add_political_power = -25
			add_stability = -0.01
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 6 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.05
			}	
			add_political_power = -25
			add_stability = -0.03
		}
		ELSE_IF = {
			limit = {
				check_variable = { JAP_government_faction_demand_failure = 7 }
			}
			add_popularity = {
				ideology = ROOT
				popularity = -0.05
			}	
			add_political_power = -25
			add_stability = -0.05
		}
		#Reset the variable
		set_variable = { JAP_government_faction_demand_failure = 0 }
	}
}

country_event = { #Appoint Civilian Advisor
	id = SEA_imperial_influence_events.420 #Trust me, we're following a pattern here
	title = SEA_imperial_influence_events.420.t
	desc = SEA_imperial_influence_events.420.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_government_faction_demands_political_appointment

	}
}

country_event = { #Change Trade Laws
	id = SEA_imperial_influence_events.430
	title = SEA_imperial_influence_events.430.t
	desc = SEA_imperial_influence_events.430.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_government_faction_demands_trade_law_change

		hidden_effect = {
			IF = {
				limit = {
					has_idea = closed_economy
				}
				set_country_flag = JAP_is_on_closed_economy_flag 
			}
			ELSE_IF = {
				limit = {
					has_idea = limited_exports
				}
				set_country_flag = JAP_is_on_limited_exports_flag 
			}
			ELSE_IF = {
				limit = {
					has_idea = export_focus
				}
				set_country_flag = JAP_is_on_export_focus_flag 
			}
		}
	}
}

country_event = { #Limit the Army's Influence
	id = SEA_imperial_influence_events.440
	title = SEA_imperial_influence_events.440.t
	desc = SEA_imperial_influence_events.440.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_government_faction_demands_limited_army_influence
	}
}

country_event = { #Limit the Navy's Influence
	id = SEA_imperial_influence_events.450
	title = SEA_imperial_influence_events.450.t
	desc = SEA_imperial_influence_events.450.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_government_faction_demands_limited_navy_influence
	}
}

country_event = { #Limit the Zaibatsu's Influence
	id = SEA_imperial_influence_events.460
	title = SEA_imperial_influence_events.460.t
	desc = SEA_imperial_influence_events.460.desc
	picture = GFX_report_event_JAP_imperial_influence
	
	is_triggered_only = yes

	option = { 
		name = SEA_imperial_influence_events.00.a #Intentional

		activate_mission = JAP_government_faction_demands_limited_zaibatsu_influence
	}
}



# HIDDEN Timer Reduction event - event for China
country_event = {
	id = SEA_japan_hidden_events.1
	title = SEA_japan_hidden_events.1.t
	desc = SEA_japan_hidden_events.1.desc
	picture = GFX_report_event_generic_construction_site

	hidden = yes
	
	is_triggered_only = yes

	fire_only_once = yes

	immediate = {
		
	}
	
	# ok
	option = { 
		name = SEA_japan_hidden_events.1.a

		

	}
}

### Yamamoto death events 

# Operation Vengeance - Event Dispatcher
country_event = {
	id = SEA_japan_air_accidents_events.10

	hidden = yes

	fire_only_once = yes

	trigger = {
		original_tag = JAP
		has_character = JAP_isoroku_yamamoto
		NOT = {
			has_completed_focus = JAP_yamamotos_premiership
			focus_progress = {
				focus = JAP_yamamotos_premiership
				progress > 0
			}
			has_country_leader = {
				ruling_only = yes
				character = JAP_isoroku_yamamoto
			}	
		}
		USA = {
			has_war_with = ROOT
		}
	}

	mean_time_to_happen = {
		days = 180
		modifier = {
			factor = 0.5
			date < 1943.01.01
		}
	}

	immediate = {
		random_list = {
			10 = { # Yamamoto dies - Historical
				modifier = {
					factor = 10
					is_historical_focus_on = yes
				}
				modifier = {
					factor = 0.5
					has_completed_focus = JAP_escort_efficiency
				}
				modifier = {
					factor = 0
					has_completed_focus = JAP_sea_sturdy_aircraft
				}
				country_event = { id = SEA_japan_air_accidents_events.01 hours = 16 random_hours = 8 }
			}
			10 = { # No one dies
				modifier = {
					factor = 2.5
					has_completed_focus = JAP_escort_efficiency
				}
				country_event = { id = SEA_japan_air_accidents_events.02 hours = 16 random_hours = 8 }
			}
		}
	}
}

# Operation Vengeance - Yamamoto dies
country_event = {
	id = SEA_japan_air_accidents_events.01
	title = SEA_japan_air_accidents_events.01.t
	desc = SEA_japan_air_accidents_events.01.desc
	picture = GFX_report_event_ITA_air_crash
	
	is_triggered_only = yes

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_country_flag = JAP_yamamoto_shot_down_flag
		}
	}

	trigger = {
		has_character = JAP_isoroku_yamamoto
		NOT = { has_completed_focus = JAP_yamamotos_premiership }
	}

	# Sayonara Yamamoto 
	option = { 
		name = SEA_japan_air_accidents_events.01.a

		add_stability = -0.05
		add_war_support = -0.05

		custom_effect_tooltip = generic_skip_one_line_tt

		effect_tooltip = {
			retire_character = JAP_isoroku_yamamoto
		}
		
		hidden_effect = {
			JAP_isoroku_yamamoto = {
				remove_advisor_role = {
					character = isoroku_yamamoto
					slot = theorist 
				}	
			}
		}
		
	}
}

# Operation Vengeance - No one dies - Everyone is happy
country_event = {
	id = SEA_japan_air_accidents_events.02
	title = SEA_japan_air_accidents_events.02.t
	desc = SEA_japan_air_accidents_events.02.desc
	picture = GFX_report_event_generic_bombers
	
	is_triggered_only = yes

	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_country_flag = JAP_yamamoto_survived_flag
		}
	}

	trigger = {
		has_character = JAP_isoroku_yamamoto
	}

	# Lucky bois
	option = { 
		name = SEA_japan_air_accidents_events.02.a
		
		JAP_isoroku_yamamoto = {
			add_coordination = 1
			add_maneuver = 1
		}
		
	}
}

# News event for Japanese Young Officer Coup leading to Okada's speech 
news_event = {
	id = SEA_japan_news_events.01
	title = SEA_japan_news_events.01.t
	desc = SEA_japan_news_events.01.desc
	picture = GFX_news_event_japanese_army_parade

	is_triggered_only = yes
	
	major = yes
	
	option = {
		name = SEA_japan_news_events.01.a
		trigger = {
			original_tag = JAP
		}
	}
	option = {
		name = SEA_japan_news_events.01.b
		trigger = {
			NOT = {
				original_tag = JAP
			}
		}
	}
	
}

# News event for Formation of the Greater East Asia Co-Prosperity Sphere
news_event = {
	id = SEA_japan_news_events.02
	title = SEA_japan_news_events.02.t
	desc = SEA_japan_news_events.02.desc
	picture = GFX_news_event_JAP_greater_east_asia_conference

	is_triggered_only = yes
	
	major = yes
	
	option = {
		name = SEA_japan_news_events.02.a
		trigger = {
			original_tag = JAP
		}
	}
	option = {
		name = SEA_japan_news_events.02.b
		trigger = {
			NOT = {
				original_tag = JAP
			}
		}
	}
	
}

