###Japan is the best
add_namespace = JAP_imperial
add_namespace = japindustrialrevolution

###Form a Budget
country_event = {  
	id = japindustrialrevolution.1
	title = japindustrialrevolution.1.t
	desc = japindustrialrevolution.1.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.1.a	
		add_ideas = JAP_military_industry
		custom_effect_tooltip = form_a_budget_his_tt
	}
	option = {
		name = japindustrialrevolution.1.b
		custom_effect_tooltip = form_a_budget_alt_tt
	}
}
#Tokyo Railway Opening
news_event = {
	id = japindustrialrevolution.2
	title = japindustrialrevolution.2.t
	desc = japindustrialrevolution.2.d
	picture = GFX_news_event_jap_victorian_railroad

	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.2.a
		ai_chance = { factor = 100 }
	}
}
###Dutch Foreign Advisor
country_event = {  
	id = japindustrialrevolution.3
	title = japindustrialrevolution.3.t
	desc = japindustrialrevolution.3.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.3.a
		custom_effect_tooltip = JAP_event_send_advisor_3_tt
		add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		JAP = { 
			country_event = {
				id = japindustrialrevolution.8
				days = 5
			}
		}
		HOL = { 
			add_political_power = 15
		}
	}
	option = {
		name = japindustrialrevolution.3.b
		hidden_effect = {
			JAP = { 
				country_event = {
					id = japindustrialrevolution.9
					days = 5
				}
			}
		}
	}	
}
####Prussia Foreign Advisor
country_event = {  
	id = japindustrialrevolution.4
	title = japindustrialrevolution.4.t
	desc = japindustrialrevolution.4.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.4.a
		custom_effect_tooltip = JAP_event_send_advisor_4_tt
		add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		JAP = { 
			country_event = {
				id = japindustrialrevolution.10
				days = 7
			}
		}
		ROOT = { 
			add_political_power = 15
		}
	}
	option = {
		name = japindustrialrevolution.4.b
		hidden_effect = {
			JAP = { 
				country_event = {
					id = japindustrialrevolution.11
					days = 7
				}
			}
		}
	}
}
###British Foreign Advisor
country_event = {  
	id = japindustrialrevolution.5
	title = japindustrialrevolution.5.t
	desc = japindustrialrevolution.5.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.5.a
		custom_effect_tooltip = JAP_event_send_advisor_5_tt
			add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
			reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
			JAP = { 
				country_event = {
					id = japindustrialrevolution.12
					days = 9
				}
			}
			ENG = { 
				add_political_power = 15
			}
		}
	option = {
		name = japindustrialrevolution.5.b
		hidden_effect = {
			JAP = { 
				country_event = {
					id = japindustrialrevolution.13
					days = 9
				}
			}
		}
	}
}
###France Foreign Advisor
country_event = {  
	id = japindustrialrevolution.6
	title = japindustrialrevolution.6.t
	desc = japindustrialrevolution.6.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.6.a
		custom_effect_tooltip = JAP_event_send_advisor_6_tt
		add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		JAP = { 
			country_event = {
				id = japindustrialrevolution.14
				days = 11
			}
		}
		FRA = { 
			add_political_power = 15
		}
	}
	option = {
		name = japindustrialrevolution.6.b
		hidden_effect = {
			JAP = { 
				country_event = {
					id = japindustrialrevolution.15
					days = 11
				}
			}
		}
	}
}
###USA Foreign Advisor
country_event = {  
	id = japindustrialrevolution.7
	title = japindustrialrevolution.7.t
	desc = japindustrialrevolution.7.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
	name = japindustrialrevolution.7.a
	custom_effect_tooltip = JAP_event_send_advisor_7_tt
		add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_PRS_focus_like }
		JAP = { 
			country_event = {
				id = japindustrialrevolution.16
				days = 13
			}
		}
		USA = { 
			add_political_power = 15
		}
	}
	option = {
		name = japindustrialrevolution.7.b
		hidden_effect = {
			JAP = { 
				country_event = {
					id = japindustrialrevolution.17
					days = 13
				}
			}
		}
	}
}
###Dutch Accepts
country_event = {  
	id = japindustrialrevolution.8
	title = japindustrialrevolution.8.t
	desc = japindustrialrevolution.8.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.8.a
		JAP = {
			add_timed_idea = {
				idea = JAP_dutch_accept
				days = 547
			}
		}
	}
}
###Dutch Decline
country_event = {  
	id = japindustrialrevolution.9
	title = japindustrialrevolution.9.t
	desc = japindustrialrevolution.9.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.9.a
	}
}
###Prussia Accepts
country_event = {  
	id = japindustrialrevolution.10
	title = japindustrialrevolution.10.t
	desc = japindustrialrevolution.10.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.10.a
		JAP = {
			add_timed_idea = {
				idea = JAP_prussia_accept
				days = 547
			}
		}
	}
}
#Prussia Declines
country_event = {  
	id = japindustrialrevolution.11
	title = japindustrialrevolution.11.t
	desc = japindustrialrevolution.11.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.11.a
	}
}
###Britain Accepts
country_event = {  
	id = japindustrialrevolution.12
	title = japindustrialrevolution.12.t
	desc = japindustrialrevolution.12.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.12.a
		JAP = {
			add_timed_idea = {
				idea = JAP_british_accept
				days = 547
			}
		}
	}
}
###Britain Declines
country_event = {  
	id = japindustrialrevolution.13
	title = japindustrialrevolution.13.t
	desc = japindustrialrevolution.13.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.13.a
	}
}
###France Accepts
country_event = {  
	id = japindustrialrevolution.14
	title = japindustrialrevolution.14.t
	desc = japindustrialrevolution.14.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.14.a
		JAP = {
			add_timed_idea = {
				idea = JAP_french_accept
				days = 547
			}
		}
	}
}
###France Declines
country_event = {  
	id = japindustrialrevolution.15
	title = japindustrialrevolution.15.t
	desc = japindustrialrevolution.15.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.15.a
	}
}
###USA Accepts
country_event = {  
	id = japindustrialrevolution.16
	title = japindustrialrevolution.16.t
	desc = japindustrialrevolution.16.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.16.a
		JAP = {
			add_timed_idea = {
				idea = JAP_usa_accept
				days = 547
			}
		}
	}
}
###USA Declines
country_event = {  
	id = japindustrialrevolution.17
	title = japindustrialrevolution.17.t
	desc = japindustrialrevolution.17.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.17.a
	}
}
###MEIJI IR FIRST
country_event = {  
	id = japindustrialrevolution.18
	title = japindustrialrevolution.18.t
	desc = japindustrialrevolution.18.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.18.a
			add_stability = 0.04
			add_political_power = -25
	}
	option = {
	name = japindustrialrevolution.18.b
		add_stability = -0.04
		add_political_power = 25
	}
}
### SHIROYAMA FLAVOR 1
country_event = {  
	id = japindustrialrevolution.19
	title = japindustrialrevolution.19.t
	desc = japindustrialrevolution.19.d
	picture = GFX_report_event_jap_samurai_1

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.19.a
		country_event = japindustrialrevolution.20
	}
}
### SHIROYAMA FLAVOR 2
country_event = {  
	id = japindustrialrevolution.20
	title = japindustrialrevolution.20.t
	desc = japindustrialrevolution.20.d
	picture = GFX_report_event_jap_shinto_shrine

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.20.a
	}
}
### CURRENCY ACT
country_event = {  
	id = japindustrialrevolution.21
	title = japindustrialrevolution.21.t
	desc = japindustrialrevolution.21.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.21.a
		add_ideas = taxation_level_4
	}
}
### RAILWAY NATIONALIZATION ACT
country_event = {  
	id = japindustrialrevolution.22
	title = japindustrialrevolution.22.t
	desc = japindustrialrevolution.22.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.22.a
		add_ideas = JAP_nationalization_of_railways
	}
}
### Hire Hermann Rumschottel
country_event = {  
	id = japindustrialrevolution.23
	title = japindustrialrevolution.23.t
	desc = japindustrialrevolution.23.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.23.a
		JAP_character_hermann_rumschottel = {
            add_advisor_role = {
                advisor = {
                    cost = 100
                    slot = political_advisor
                    idea_token = JAP_character_hermann_rumschottel
                    traits = {
                        trait_secretary_of_transportation
                    }
                }
                activate = no
            }
        }
		add_political_power = -15
	}
}
### Hire Edmund Morel
country_event = {  
	id = japindustrialrevolution.24
	title = japindustrialrevolution.24.t
	desc = japindustrialrevolution.24.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.24.a
		JAP_character_edmund_morel = {
            add_advisor_role = {
                advisor = {
                    cost = 100
                    slot = political_advisor
                    idea_token = JAP_character_edmund_morel
                    traits = {
                        trait_secretary_of_transportation
                    }
                }
                activate = no
            }
		}
		add_political_power = -15
	}
}
#### Naval Bill 1
#country_event = {  
#	id = japindustrialrevolution.25
#	title = japindustrialrevolution.25.t
#	desc = japindustrialrevolution.25.d
#	picture = GFX_report_event_jap_naval_buildup
#
#	fire_only_once = yes
#	is_triggered_only = yes
#
#	option = {
#		name = japindustrialrevolution.25.a
#		add_ideas = navy_spending_level_2
#	}
#}
### Naval Bill 2
#country_event = {  
#	id = japindustrialrevolution.26
#	title = japindustrialrevolution.26.t
#	desc = japindustrialrevolution.26.d
#	picture = GFX_report_event_jap_naval_buildup
#
#	fire_only_once = yes
#	is_triggered_only = yes
#
#	option = {
#		name = japindustrialrevolution.26.a
#		add_ideas = navy_spending_level_3 
#	}
#}
### Naval Bill 3
#country_event = {  
#	id = japindustrialrevolution.27
#	title = japindustrialrevolution.27.t
#	desc = japindustrialrevolution.27.d
#	picture = GFX_report_event_jap_naval_buildup
#
#	fire_only_once = yes
#	is_triggered_only = yes
#
#	option = {
#		name = japindustrialrevolution.27.a
#		add_ideas = navy_spending_level_4
#	}
#}
### Naval Bill 4
#country_event = {  
#	id = japindustrialrevolution.28
#	title = japindustrialrevolution.28.t
#	desc = japindustrialrevolution.28.d
#	picture = GFX_report_event_jap_naval_buildup
#
#	fire_only_once = yes
#	is_triggered_only = yes
#
#	option = {
#		name = japindustrialrevolution.28.a
#		add_ideas = navy_spending_level_5
#	}
#}
### Japanese Industrial Revolution
country_event = {  
	id = japindustrialrevolution.29
	title = japindustrialrevolution.29.t
	desc = japindustrialrevolution.29.d
	picture = GFX_report_event_jap_industrialization

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.29.a
	}
}
# ### RAILROADS DEPARTMENT 
# country_event = {  
# 	id = japindustrialrevolution.30 #JAP_public_works_department.1
# 	title = japindustrialrevolution.30.t
# 	desc = japindustrialrevolution.30.d
# 	#picture = 

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.30.a
# 	}
# }
# ### MINES DEPARTMENT
# country_event = {  
# 	id = japindustrialrevolution.31 #JAP_public_works_department.2
# 	title = japindustrialrevolution.31.t
# 	desc = japindustrialrevolution.31.d
# 	#picture = 

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.31.a
# 	}
# }
# ### TELECOMMUNICATION DEPARTMENT
# country_event = {  
# 	id = japindustrialrevolution.32 #JAP_public_works_department.3
# 	title = japindustrialrevolution.32.t
# 	desc = japindustrialrevolution.32.d
# 	#picture = 

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.32.a
# 	}
# }
# ### SHIPYARDS DEPARTMENT
# country_event = {  
# 	id = japindustrialrevolution.33 #JAP_public_works_department.4
# 	title = japindustrialrevolution.33.t
# 	desc = japindustrialrevolution.33.d
# 	#picture = 

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.33.a
# 	}
# }
# ### STEEL AND IRON DEPARTMENT
# country_event = {  
# 	id = japindustrialrevolution.34 #JAP_public_works_department.5
# 	title = japindustrialrevolution.34.t
# 	desc = japindustrialrevolution.34.d
# 	#picture = 

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.34.a
# 	}
# }
# ### MANUFACTURING DEPARTMENT
# country_event = {  
# 	id = japindustrialrevolution.35 #JAP_public_works_department.6
# 	title = japindustrialrevolution.35.t
# 	desc = japindustrialrevolution.35.d
# 	#picture = 

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.35.a
# 	}
# }
#### I about McFucking had it with these events *funds from the french*
country_event = {  
	id = japindustrialrevolution.36
	title = japindustrialrevolution.36.t
	desc = japindustrialrevolution.36.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.36.a
		add_relation_modifier = {
			target = JAP
			modifier = ROM_military_modernization	
		}
		FRA = { 
			add_political_power = -50
			add_timed_idea = {
				idea = JAP_open_to_japanese_funds
				days = 730
			}
		}
		hidden_effect = {
			JAP = { 
				add_ideas = JAP_french_funds
			}
		}
	}
	option = {
		name = japindustrialrevolution.36.b
		}
	}
#### British Funds
country_event = {  
	id = japindustrialrevolution.37
	title = japindustrialrevolution.37.t
	desc = japindustrialrevolution.37.d
	picture = GFX_report_event_generic_sign_treaty2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.37.a
		add_relation_modifier = {
			target = JAP
			modifier = ROM_military_modernization
		}
		ENG = { 
			add_political_power = -50
			add_timed_idea = {
				idea = JAP_open_to_japanese_funds
				days = 730
			}
		}
		hidden_effect = {
			JAP = { 
				add_ideas = JAP_british_funds
			}
		}
	}
	option = {
		name = japindustrialrevolution.37.b
		}
	}
### ENG Japan Requests Trains
country_event = {  
	id = japindustrialrevolution.38
	title = japindustrialrevolution.38.t
	desc = japindustrialrevolution.38.d
	picture = GFX_report_event_flavour_underground

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.38.a
		add_opinion_modifier = { target = ENG modifier = eoanb_om_RUS_increase_small }
		reverse_add_opinion_modifier = { target = ENG modifier = eoanb_om_RUS_increase_small 
		}
		JAP = { 
			add_equipment_to_stockpile = {
				type = train_equipment
				amount = 50
				producer = ENG
			}
		}
	}
	option = {
		name = japindustrialrevolution.38.b
		add_opinion_modifier = { target = JAP modifier = eoanb_om_RUS_increase_small }
		reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_RUS_increase_small 	
		}
		JAP = {
			add_equipment_to_stockpile = {
				type = train_equipment
				amount = 25
				producer = ENG
			}
		}
	}
	option = {
		name = japindustrialrevolution.38.c
		add_opinion_modifier = { target = JAP modifier = eoanb_om_RUS_decrease_small }
		reverse_add_opinion_modifier = { target = JAP modifier = eoanb_om_RUS_decrease_small }
		}
	}
### HIDDEN EVENT
# moved to become a hidden mission (JAP_industrialization_funding_mission_hidden)
	# country_event = {
	# 	id = japindustrialrevolution.39
	# 	title = japindustrialrevolution.39.t
	# 	desc = japindustrialrevolution.39.d
	# 	#picture =

	# 	fire_only_once = no
	# 	#is_triggered_only = yes
	# 	hidden = yes

	# 	trigger = {
	# 		original_tag = JAP
	# 		has_country_flag = jap_industralisation_funding_events_flag
	# 	}

	# 	option = {
	# 		name = japindustrialrevolution.39.a
	# 		random_list = {
	# 			6 = {
	# 				country_event = japindustrialrevolution.40 #Public Funding Campagin
	# 				country_event = japindustrialrevolution.39 #LOOP
	# 			}
	# 			12 = {
	# 				country_event = japindustrialrevolution.41 #Private Funding Campagin
	# 				country_event = japindustrialrevolution.39 #LOOP
	# 			}
	# 			18 = {
	# 				country_event = japindustrialrevolution.42 #Government Funding Campagin
	# 				country_event = japindustrialrevolution.39 #LOOP
	# 			}
	# 			64 = {
	# 				country_event = japindustrialrevolution.43 #Nothing
	# 				country_event = japindustrialrevolution.39 #LOOP
	# 			}
	# 		}
	# 	}
	# }
### PUBLIC FUNDING EVENT
country_event = {  
	id = japindustrialrevolution.40
	title = japindustrialrevolution.40.t
	desc = japindustrialrevolution.40.d
	picture = GFX_report_event_tun_fundamental_pact

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.40.a
			random_list = {
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission4
						days = 20
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission3
						days = 20
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission2
						days = 20
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission
						days = 20
					}
				}
			}
		}
	}
### PRIVATE FUNDING EVENT
country_event = {  
	id = japindustrialrevolution.41
	title = japindustrialrevolution.41.t
	desc = japindustrialrevolution.41.d
	picture = GFX_report_event_tun_fundamental_pact

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.41.a
			random_list = {
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission4
						days = 40
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission3
						days = 40
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission2
						days = 40
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission
						days = 40
					}
				}
			}
		}
	}
### GOVERNMENT FUNDING EVENT
country_event = {  
	id = japindustrialrevolution.42
	title = japindustrialrevolution.42.t
	desc = japindustrialrevolution.42.d
	picture = GFX_report_event_tun_fundamental_pact

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.42.a
			random_list = {
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission4
						days = 60
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission3
						days = 60
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission2
						days = 60
					}
				}
				25 = {
					add_days_mission_timeout = {
						mission = JAP_industrialization_mission
						days = 60
					}
				}
			}
		}
	}
# ### 
# country_event = {  
# 	id = japindustrialrevolution.43
# 	title = japindustrialrevolution.43.t
# 	desc = japindustrialrevolution.43.d
# 	picture = GFX_report_event_tun_fundamental_pact

# 	fire_only_once = no
# 	is_triggered_only = yes

# 	option = {
# 		name = japindustrialrevolution.43.a

# 	}
# }
country_event = {
	id = japindustrialrevolution.44
	title = japindustrialrevolution.44.t
	desc = japindustrialrevolution.44.d
	#picture =

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.44.a
		set_variable = {
			var = JAP.railroad_value
			value = 10
		}
		set_variable = {
			var = JAP.mine_value
			value = 10
		}
		set_variable = {
			var = JAP.manufacturing_value
			value = 10
		}
		set_variable = {
			var = JAP.steel_iron_value
			value = 10
		}
		set_variable = {
			var = JAP.shipyard_value
			value = 10
		}
		set_variable = {
			var = JAP.telecommunication_value
			value = 10
		}
	}
}
country_event = {
	id = japindustrialrevolution.45
	title = japindustrialrevolution.45.t
	desc = japindustrialrevolution.45.d
	#picture =

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = japindustrialrevolution.45.a
		add_ideas = JAP_formed_mpw
	}
}
### JAPANESE POLITICAL TREE
### Decide the Monetary System
country_event = {  
	id = JAP_imperial.1
	title = JAP_imperial.1.t
	desc = JAP_imperial.1.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.1.a
		set_country_flag = UK_system
	}
	option = {
		name = JAP_imperial.1.b
		set_country_flag = US_system

	}
	option = {
		name = JAP_imperial.1.c
		set_country_flag = our_system
		}
	}
### Fueduel No Longer
country_event = {  
	id = JAP_imperial.2
	title = JAP_imperial.2.t
	desc = JAP_imperial.2.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.2.a
		custom_effect_tooltip = JAP_han_tt_1
		hidden_effect = {
			annex_country = {
				target = TSU
			}
			#inherit_technology = TOS
			annex_country = {
				target = TOS
			}
			#inherit_technology = CHO
			annex_country = {
				target = CHO
			}
			#inherit_technology = SAG
			annex_country = {
				target = SAG
			}
			#inherit_technology = SAT
			annex_country = {
				target = SAT
			}
			#inherit_technology = DIE
			annex_country = { 
				target = DTE
			}
			#inherit_technology = SHI
			annex_country = {
				target = SHI
			}
			#inherit_technology = RYU
			annex_country = {
				target = RYU
			}
			#inherit_technology = MIT
			annex_country = {
				target = MIT
			}
			annex_country = {
				target = EZO
			}
			TOS = { JAP = { eoanbsys_inherit_technology = yes } }
			CHO = { JAP = { eoanbsys_inherit_technology = yes } }
			SAG = { JAP = { eoanbsys_inherit_technology = yes } }
			SAT = { JAP = { eoanbsys_inherit_technology = yes } }
			DTE = { JAP = { eoanbsys_inherit_technology = yes } }
			SHI = { JAP = { eoanbsys_inherit_technology = yes } }
			RYU = { JAP = { eoanbsys_inherit_technology = yes } }
			MIT = { JAP = { eoanbsys_inherit_technology = yes } }
			EZO = { JAP = { eoanbsys_inherit_technology = yes } }
			add_state_core = 526
			add_state_core = 1268
			add_state_core = 533
			add_state_core = 1257
			add_state_core = 1054
			add_state_core = 1259
			add_state_core = 1210
			add_state_core = 1053
			add_state_core = 1265
			add_state_core = 1267
			add_state_core = 1190
			add_state_core = 536
			remove_ideas = TSH_spirit_vic_han_system
		}
	}
}
### Iwakura Mission
country_event = {
	id = JAP_imperial.3
	title = JAP_imperial.3.t
	desc = JAP_imperial.3.d
	picture = GFX_report_event_jap_iwakura_mission

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = JAP_imperial.3.a
		custom_effect_tooltip = limited_time_tech_tt
		ai_chance = { factor = 100 }
		add_timed_idea = {
			idea = Iwakura
			days = 730
		}
	}
}
### Japanese Political Start
country_event = {  
	id = JAP_imperial.5
	title = JAP_imperial.5.t
	desc = JAP_imperial.5.d
	picture = GFX_report_event_jap_meiji_imperial_family

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.5.a
		add_stability = 0.05
	}
}
### Question the Han System
country_event = {  
	id = JAP_imperial.6
	title = JAP_imperial.6.t
	desc = JAP_imperial.6.d
	picture = GFX_report_event_jap_japan_map_2

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.6.a
		add_stability = -0.01
		add_political_power = -50
	}
}
### Iwakura Mission
country_event = {
	id = JAP_imperial.4
	title = JAP_imperial.4.t
	desc = JAP_imperial.4.d
	picture = GFX_report_event_jap_iwakura_mission_women

	fire_only_once = no
	is_triggered_only = yes

	option = {
		name = JAP_imperial.4.a
		custom_effect_tooltip = limited_time_tech_tt
		ai_chance = { factor = 100 }
		add_timed_idea = {
			idea = Iwakura
			days = 547
		}
	}
}
### Osaka Conference
country_event = {
	id = JAP_imperial.7
	title = JAP_imperial.7.t
	desc = {
		text = JAP_imperial.7.d1
		trigger = {
		#	has_completed_focus = JAP_abolish_the_han_system
		}
	}
	desc = {
		text = JAP_imperial.7.d2
		trigger = {
		#	has_completed_focus = JAP_let_the_domains_live
		}
	}
	#picture =
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.7.a
		custom_effect_tooltip = historical_path_tt
		add_popularity = {
			ideology = centrism
			popularity = -0.075
		}
		if = {
			limit = {
				FROM = {
				#	has_completed_focus = JAP_let_the_domains_live
				}
			}
			decrease_ps_by_one = yes
		}
	}

	option = {
		name = JAP_imperial.7.b
		add_popularity = {
			ideology = centrism
			popularity = 0.05
		}
		if = {
			limit = {
				FROM = {
				#	has_completed_focus = JAP_abolish_the_han_system
				}
			}
			decrease_ps_by_one = yes
		}
	}
	
}
### Japanese Bank Act of 1882
country_event = {  
	id = JAP_imperial.8
	title = JAP_imperial.8.t
	desc = JAP_imperial.8.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.8.a
		complete_national_focus = JAP_bank_of_japan
	}
}
# Organize Prefectures
country_event = {  
	id = JAP_imperial.9
	title = JAP_imperial.9.t
	desc = JAP_imperial.9.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.9.a
		536 = { set_state_name = "Hokkaido" }
		282 = { set_state_name = "Greater Tōkyō" }
		1261 = { set_state_name = "Hiroshima" }
		set_province_name = { id = 1182 name = "Tōkyō" }
		set_province_name = { id = 13930 name = "Port of Tōkyō" }

	}
}
### Creation of the Ministry of Public Works
country_event = {  
	id = JAP_imperial.10
	title = JAP_imperial.10.t
	desc = JAP_imperial.10.d
	picture = GFX_report_event_jap_meiji_signature

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.10.a
		complete_national_focus = JAP_plan_the_ministry
	}
}
### MILITARY ###

### Japanese Navy Staff
country_event = {  
	id = JAP_imperial.11
	title = JAP_imperial.11.t
	desc = JAP_imperial.11.d
	picture = GFX_report_event_japanese_navy_staff

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.11.a
		add_stability = 0.05
	}
}
### Japanese Army Staff
country_event = {  
	id = JAP_imperial.12
	title = JAP_imperial.12.t
	desc = JAP_imperial.12.d
	picture = GFX_report_event_japanese_army_staff

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.12.a
		add_stability = 0.05
	}
}
country_event = {
	id = JAP_imperial.13
	title = JAP_imperial.13.t
	desc = JAP_imperial.13.d
	#picture = 

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.13.a
		complete_national_focus = JAP_the_riots_of_rights
		add_war_support = -0.1
		1106 = {
			damage_building = {
				type = infrastructure
				damage = 1
			}
			damage_building = {
				type = arms_factory
				damage = 1
			}
		}
		1261 = {
			damage_building = {
				type = infrastructure
				damage = 1
			}
			damage_building = {
				type = industrial_complex
				damage = 1
			}
		}
		535 = {
			damage_building = {
				type = infrastructure
				damage = 2
			}
			damage_building = {
				type = industrial_complex
				damage = 1
			}
		}
		529 = {
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}
		1053 = {
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}# Kyoto 1106, Okayama 1261, Fukui 535, Mie , Tottori 529, Hiroshima 1261, Shimane , Kagawa , Ehime, and Kōchi 1053.
	}
}
### Starting Event / Dec. 18th 1871
country_event = {
	id = JAP_imperial.22 
	title = JAP_imperial.22.t
	desc = JAP_imperial.22.d
	#picture = 
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = JAP_imperial.22.a
        unlock_decision_category_tooltip = JAP_taiwan_expedition_decisions
        hidden_effect = {
            set_country_flag = JAP_formos_expedition_start
            add_to_variable = {
                var = JAP_japanese_deaths
                value = 54
            }
			add_to_variable = {
				var = JAP_expedition_budget_total
				value = 3000
			}
			set_variable = {
				global.formosa_mudan_mission = 1
			}
			set_variable = {
				global.formosa_mudan_status = 1
			}
			set_variable = {
				global.formosa_koalut_mission = 1
			}
			set_variable = {
				global.formosa_koalut_status = 1
			}
			set_variable = {
				global.formosa_kwaling_mission = 1
			}
			set_variable = {
				global.formosa_kwaling_status = 1
			}
			set_variable = {
				global.formosa_lingulan_mission = 1
			}
			set_variable = {
				global.formosa_lingulan_status = 1
			}
		}
	}
}	
### Invest in Generals
country_event = {
	id = JAP_imperial.23
	title = JAP_imperial.23.t
	desc = JAP_imperial.23.d
	#picture = 
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = JAP_imperial.23.a
	}
}
### Invest in Ship-Fitting
country_event = {
	id = JAP_imperial.24
	title = JAP_imperial.24.t
	desc = JAP_imperial.24.d
	#picture = 
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = JAP_imperial.24.a
	}
}
### Invest in Soldiers
country_event = {
	id = JAP_imperial.25
	title = JAP_imperial.25.t
	desc = JAP_imperial.25.d
	#picture = 
	fire_only_once = yes
	is_triggered_only = yes
	option = {
		name = JAP_imperial.25.a
	}
}
country_event = {
	id = JAP_imperial.26
	title = JAP_imperial.26.t

	hidden = yes
	
	is_triggered_only = yes
	immediate = {
		name = JAP_imperial.26.a
		if = {
			limit = {
				check_variable = {
					var = JAP_location_expedition_check
					value = 0
					compare = equals
				}
			}
			random_list = {
				18 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 100
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 44
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 60
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 24
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
				}
				20 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 50
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 22
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 30
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 12
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				24 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				20 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 14
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 20
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 6
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 48
						}
					}
				}
				18 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 28
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 40
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 12
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 16
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = JAP_location_expedition_check
					value = 1
					compare = equals
				}
			}
			random_list = {
				14 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 100
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 44
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 60
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 24
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
				}
				18 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 50
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 22
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 30
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 12
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				27 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				22 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 14
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 20
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 6
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 8
						}
					}
				}
				19 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 28
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 40
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 12
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 16
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = JAP_location_expedition_check
					value = 2
					compare = equals
				}
			}
			random_list = {
				10 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 100
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 44
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 60
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 24
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
				}
				16 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 50
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 22
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 30
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 12
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				30 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				24 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 14
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 20
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 6
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 8
						}
					}
				}
				20 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 28
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 40
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 12
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 16
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = JAP_location_expedition_check
					value = 3
					compare = equals
				}
			}
			random_list = {
				6 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 100
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 44
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 60
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_1
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 1
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 24
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 0
						}
					}
				}
				14 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_mudan_mission = 4
						}
						set_variable = {
							global.formosa_mudan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 50
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_kwaling_mission = 4
						}
						set_variable = {
							global.formosa_kwaling_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 22
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_lingulan_mission = 4
						}
						set_variable = {
							global.formosa_lingulan_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 30
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_2
						set_variable = {
							global.formosa_koalut_mission = 4
						}
						set_variable = {
							global.formosa_koalut_status = 2
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 12
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				33 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 7
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 10
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 3
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_3
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 3
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 4
						}
					}
				}
				26 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 25
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 14
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 11
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 20
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 15
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 6
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_4
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 4
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 6
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 8
						}
					}
				}
				21 = {
					if = {
						limit = {
							has_country_flag = JAP_current_expedition_mudan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_mudan_mission = 3
						}
						set_variable = {
							global.formosa_mudan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 28
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kwaling
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_kwaling_mission = 3
						}
						set_variable = {
							global.formosa_kwaling_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 40
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_lingulan
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_lingulan_mission = 3
						}
						set_variable = {
							global.formosa_lingulan_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 12
						}
					}
					else_if = {
						limit = {
							has_country_flag = JAP_current_expedition_kaolut
						}
						custom_effect_tooltip = JAP_expedition_outcome_5
						set_variable = {
							global.formosa_koalut_mission = 3
						}
						set_variable = {
							global.formosa_koalut_status = 5
						}
						add_to_variable = {
							var = JAP_japanese_deaths
							value = 0
						}
						add_to_variable = {
							var = JAP_paiwan_deaths
							value = 16
						}
					}
				}
			}
		}
		set_variable = {
			var = JAP_location_expedition_check
			value = 0
		}
		clr_country_flag = JAP_current_expedition_kwaling
		clr_country_flag = JAP_current_expedition_mudan
		clr_country_flag = JAP_current_expedition_kaolut
		clr_country_flag = JAP_current_expedition_lingulan
		clr_country_flag = JAP_current_expedition_mudan_ships
		clr_country_flag = JAP_current_expedition_kwaling_ships
		clr_country_flag = JAP_current_expedition_kaolut_ships
		clr_country_flag = JAP_current_expedition_lingulan_ships
		clr_country_flag = JAP_current_expedition_mudan_soldiers
		clr_country_flag = JAP_current_expedition_kwaling_soldiers
		clr_country_flag = JAP_current_expedition_kaolut_soldiers
		clr_country_flag = JAP_current_expedition_lingulan_soldiers
		clr_country_flag = JAP_current_expedition_mudan_generals
		clr_country_flag = JAP_current_expedition_kwaling_generals
		clr_country_flag = JAP_current_expedition_kaolut_generals
		clr_country_flag = JAP_current_expedition_lingulan_generals
	}
}
## BEGINS THE EXPEDITION / May 6th 1874
country_event = {
    id = JAP_imperial.27
    title = JAP_imperial.27.t
    desc = JAP_imperial.27.d
    #picture = 
    fire_only_once = yes
    trigger = {
		has_country_flag = jap_persues_expedition_flag
	}
    option = {
        name = JAP_imperial.27.a
        activate_mission_tooltip = JAP_formosa_expedition_timer
        hidden_effect = {
            activate_mission = JAP_formosa_expedition_timer
			clr_country_flag = jap_persues_expedition_flag
        }
    }
}
# DEBUG EVENT
country_event = {
    id = JAP_imperial.28
    title = JAP_imperial.28.t
    desc = JAP_imperial.28.d
    #picture = 
    fire_only_once = yes
    is_triggered_only = yes
    option = {
		set_variable = {
			global.formosa_koalut_mission = 1
		}
		set_variable = {
			global.formosa_koalut_status = 1
		}
		set_variable = {
			global.formosa_kwaling_mission = 1
		}
		set_variable = {
			global.formosa_kwaling_status = 1
		}
		set_variable = {
			global.formosa_mudan_mission = 1
		}
		set_variable = {
			global.formosa_mudan_status = 1
		}
		set_variable = {
			global.formosa_lingulan_status = 1
		}
		set_variable = {
			global.formosa_lingulan_mission = 1
		}
		set_variable = {
			var = JAP_japanese_deaths
			value = 0
		}
		set_variable = {
			var = JAP_paiwan_deaths
			value = 0
		}
		set_variable = {
			var = JAP_expedition_budget_total
			value = 0
		}
		set_variable = {
			var = JAP_expedition_budget_current
			value = 0
		}
		set_variable = {
			var = JAP_location_expedition_check
			value = 0
		}
		clr_country_flag = JAP_current_expedition_kwaling
		clr_country_flag = JAP_current_expedition_mudan
		clr_country_flag = JAP_current_expedition_kaolut
		clr_country_flag = JAP_current_expedition_lingulan
		clr_country_flag = JAP_current_expedition_mudan_ships
		clr_country_flag = JAP_current_expedition_kwaling_ships
		clr_country_flag = JAP_current_expedition_kaolut_ships
		clr_country_flag = JAP_current_expedition_lingulan_ships
		clr_country_flag = JAP_current_expedition_mudan_soldiers
		clr_country_flag = JAP_current_expedition_kwaling_soldiers
		clr_country_flag = JAP_current_expedition_kaolut_soldiers
		clr_country_flag = JAP_current_expedition_lingulan_soldiers
		clr_country_flag = JAP_current_expedition_mudan_generals
		clr_country_flag = JAP_current_expedition_kwaling_generals
		clr_country_flag = JAP_current_expedition_kaolut_generals
		clr_country_flag = JAP_current_expedition_lingulan_generals

		remove_ideas = JAP_formosa_expedition_budget_idea
	}
}
# Chinese Payment 
country_event = {
    id = JAP_imperial.29
    title = JAP_imperial.29.t
    desc = JAP_imperial.29.d
    #picture = 
    fire_only_once = yes
    is_triggered_only = yes
    option = {
		name = JAP_imperial.29.a
		remove_ideas = JAP_formosa_expedition_budget_idea
	}
}

# Chinas refusal response / Dec. 18th 1872
country_event = {
    id = JAP_imperial.30
    title = JAP_imperial.30.t
    desc = JAP_imperial.30.d
    #picture = 
    fire_only_once = yes
    is_triggered_only = yes
    option = { # a meeting with the emperor
		name = JAP_imperial.30.a

	}
}

# Emperor Refuses / Dec. 18th 1873
country_event = {
    id = JAP_imperial.31
    title = JAP_imperial.31.t
    desc = JAP_imperial.31.d
    #picture = 
    fire_only_once = yes
    is_triggered_only = yes
    option = { #Prepare for an expedition
		name = JAP_imperial.31.a
		set_country_flag = jap_persues_expedition_flag
		custom_effect_tooltip = JAP_expedition_push_forward_tt

	}
	option = { #Back down, we will not gain anything from this
		name = JAP_imperial.31.b
		custom_effect_tooltip = JAP_expedition_back_down_tt
		add_stability = -0.15
		add_war_support = -0.25
		add_political_power = -100
		reverse_add_opinion_modifier = { target = QNG modifier = eoanb_om_PRS_focus_like }
	}
}

### Imperial Japan Flavor
### First Hotel
country_event = {
	id = JAP_imperial.32
	title = JAP_imperial.32.t
	desc = JAP_imperial.32.d
	picture = GFX_report_event_jap_first_hotel
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = JAP_imperial.32.a
		add_stability = 0.025
		set_temp_variable = { eoanb_prestige_change = 2 }
        eoanb_change_prestige_score = yes
	}
}
### Romanization Book
country_event = {
	id = JAP_imperial.33
	title = JAP_imperial.33.t
	desc = JAP_imperial.33.d
	picture = GFX_report_event_jap_plague_report
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name =JAP_imperial.33.a
	}
}
### Osaka PD
country_event = {
	id = JAP_imperial.34
	title = JAP_imperial.34.t
	desc = JAP_imperial.34.d
	picture = GFX_report_event_japanese_police_1
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = JAP_imperial.34.a
	}
}
### Osaka PD 2 Late Night At The Sation
country_event = {
	id = JAP_imperial.35
	title = JAP_imperial.35.t
	desc = JAP_imperial.35.d
	picture = GFX_report_event_japanese_police_2
	is_triggered_only = yes
	fire_only_once = yes
	option = {
		name = JAP_imperial.35.a
	}
}
