add_namespace = japan_daimyo_characters
add_namespace = japan_daimyo_generic

add_namespace = japan_daimyo_choshu
# Characters
	# Choshu
		news_event = {
			id = japan_daimyo_characters.1
			title = japan_daimyo_characters.1.t
			desc = japan_daimyo_characters.1.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				CHO = {
					exists = yes 
					OR = {
						has_country_leader = {
							character = CHO_character_mori_takachika
							ruling_only = yes
						}
						has_country_leader = {
							character = CHO_character_mori_takachika_daimyo
							ruling_only = yes
						}
					}
				}
			}
			
			immediate = {
				if = {
					limit = { tag = CHO }
					CHO_character_mori_motonori = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "CHO_character_mori_motonori_desc"
								ideology = absolutism
								expire = "1947.1.1"
							}
						}
					}
					CHO_character_mori_motonori_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "CHO_character_mori_motonori_desc"
								ideology = shogunate
								expire = "1947.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.1
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = CHO }
				retire_character = CHO_character_mori_takachika
				retire_character = CHO_character_mori_takachika_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = CHO } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Sendai
		news_event = {
			id = japan_daimyo_characters.2
			title = japan_daimyo_characters.2.t
			desc = japan_daimyo_characters.2.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				DTE = {
					exists = yes
					OR = {
						has_country_leader = {
							character = DTE_character_date_yoshikuni
							ruling_only = yes
						}
						has_country_leader = {
							character = DTE_character_date_yoshikuni_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = DTE }
					DTE_character_date_munemoto = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "DTE_character_date_munemoto_desc"
								ideology = shogunate
								expire = "1947.1.1"
							}
						}
					}
					DTE_character_date_munemoto = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "DTE_character_date_munemoto_desc"
								ideology = absolutism
								expire = "1947.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.2
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = DTE }
				retire_character = DTE_character_date_yoshikuni
				retire_character = DTE_character_date_yoshikuni_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = DTE } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.3
			title = japan_daimyo_characters.3.t
			desc = japan_daimyo_characters.3.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				DTE = {
					exists = yes
					OR = {
						has_country_leader = {
							character = DTE_character_date_munemoto
							ruling_only = yes
						}
						has_country_leader = {
							character = DTE_character_date_munemoto_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = DTE }
					DTE_character_date_muneatsu = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "DTE_character_date_muneatsu_desc"
								ideology = shogunate
								expire = "1947.1.1"
							}
						}
					}
					DTE_character_date_muneatsu_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "DTE_character_date_muneatsu_desc"
								ideology = absolutism
								expire = "1947.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.3
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = DTE }
				retire_character = DTE_character_date_munemoto
				retire_character = DTE_character_date_munemoto_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = DTE } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Mito
		news_event = {
			id = japan_daimyo_characters.4
			title = japan_daimyo_characters.4.t
			desc = japan_daimyo_characters.4.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				MIT = {
					exists = yes
					OR = {
						has_country_leader = {
							character = MIT_character_tokugawa_nariaki
							ruling_only = yes
						}
						has_country_leader = {
							character = MIT_character_tokugawa_nariaki_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = MIT }
					MIT_character_tokugawa_yoshiatsu = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "MIT_character_tokugawa_yoshitasu_desc"
								ideology = absolutism
								expire = "1870.1.1"
							}
						}
					}
					MIT_character_tokugawa_yoshiatsu_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "MIT_character_tokugawa_yoshitasu_desc"
								ideology = shogunate
								expire = "1870.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.4
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = MIT }
				retire_character = MIT_character_tokugawa_nariaki
				retire_character = MIT_character_tokugawa_nariaki_daimyo
				add_popularity = {
					ideology = autocracy
					popularity = 0.10
				}
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = MIT } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
				if = {
					limit = { is_tozama_daimyo = yes }
					add_popularity = {
						ideology = autocracy
						popularity = 0.075
					}
				}
				else = {
					add_popularity = {
						ideology = radical_democracy
						popularity = 0.025
					}
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.5
			title = japan_daimyo_characters.5.t
			desc = japan_daimyo_characters.5.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				MIT = {
					exists = yes
					OR = {
						has_country_leader = {
							character = MIT_character_tokugawa_yoshiatsu
							ruling_only = yes
						}
						has_country_leader = {
							character = MIT_character_tokugawa_yoshiatsu_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = MIT }
					MIT_character_tokugawa_akitake = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "MIT_character_tokugawa_akitake_desc"
								ideology = absolutism
								expire = "1912.1.1"
							}
						}
					}
					MIT_character_tokugawa_akitake_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "MIT_character_tokugawa_akitake_desc"
								ideology = shogunate
								expire = "1912.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.5
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = MIT }
				retire_character = MIT_character_tokugawa_yoshiatsu
				retire_character = MIT_character_tokugawa_yoshiatsu_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = MIT } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.6
			title = japan_daimyo_characters.6.t
			desc = japan_daimyo_characters.6.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				MIT = {
					exists = yes
					OR = {
						has_country_leader = {
							character = MIT_character_tokugawa_akitake
							ruling_only = yes
						}
						has_country_leader = {
							character = MIT_character_tokugawa_akitake_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = MIT }
					MIT_character_tokugawa_takesada = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
							desc = "MIT_character_tokugawa_takesada_desc"
								ideology = absolutism
								expire = "1960.6.1"
							}
						}
					}
					MIT_character_tokugawa_takesada_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "MIT_character_tokugawa_takesada_desc"
									ideology = shogunate
									expire = "1960.6.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.6
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = MIT }
				retire_character = MIT_character_tokugawa_akitake
				retire_character = MIT_character_tokugawa_akitake_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = MIT } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Saga
		news_event = {
			id = japan_daimyo_characters.7
			title = japan_daimyo_characters.7.t
			desc = japan_daimyo_characters.7.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SAG = {
					exists = yes
					OR = {
						has_country_leader = {
							character = SAG_character_nabeshima_naomasa
							ruling_only = yes
						}
						has_country_leader = {
							character = SAG_character_nabeshima_naomasa_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SAG }
					SAG_character_nabeshima_naohiro = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SAG_character_nabeshima_naomasa_desc"
								expire = "1900.1.1"
								ideology = absolutism
							}
						}
					}
					SAG_character_nabeshima_naohiro_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SAG_character_nabeshima_naomasa_desc"
								expire = "1900.1.1"
								ideology = shogunate
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.7
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = SAG }
				retire_character = SAG_character_nabeshima_naomasa
				retire_character = SAG_character_nabeshima_naomasa_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SAG } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.8
			title = japan_daimyo_characters.8.t
			desc = japan_daimyo_characters.8.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SAG = {
					OR = {
						has_country_leader = {
							character = SAG_character_nabeshima_naohiro
							ruling_only = yes
						}
						has_country_leader = {
							character = SAG_character_nabeshima_naohiro_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SAG }
					SAG_character_nabeshima_naomitsu = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
							desc = "SAG_character_nabeshima_naomitsu_desc"
								ideology = absolutism
								expire = "1960.6.1"
							}
						}
					}
					SAG_character_nabeshima_naomitsu_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SAG_character_nabeshima_naomitsu_desc"
									ideology = shogunate
									expire = "1960.6.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.8
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = SAG }
				retire_character = SAG_character_nabeshima_naohiro
				retire_character = SAG_character_nabeshima_naohiro_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SAG } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Satsuma
		news_event = {
			id = japan_daimyo_characters.9
			title = japan_daimyo_characters.9.t
			desc = japan_daimyo_characters.9.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SAT = {
					exists = yes
					OR = {
						has_country_leader = {
							character = SAT_character_shimazu_nariakira
							ruling_only = yes
						}
						has_country_leader = {
							character = SAT_character_shimazu_nariakira_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SAT }
					if = {
						limit = { has_idea = CHO_vic_satsuma_rebbelion_2 }
						remove_ideas = CHO_vic_satsuma_rebbelion_2
					}
				}
			}

			option = {
				name = japan_daimyo_characters.9.a
				trigger = { tag = SAT }
				SAT_character_shimazu_hisamitsu = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							desc = "SAT_character_shimazu_hisamitsu_desc"
							ideology = absolutism
							expire = "1899.1.1"
						}
					}
				}
				SAT_character_shimazu_hisamitsu_daimyo = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							desc = "SAT_character_shimazu_hisamitsu_desc"
							ideology = shogunate
							expire = "1899.1.1"
						}
					}
				}

				retire_character = SAT_character_shimazu_nariakira
				retire_character = SAT_character_shimazu_nariakira_daimyo

				every_other_country = {
					limit = { is_japanese_country = yes }
					news_event = japan_daimyo_characters.10
				}
			}
			option = {
				name = japan_daimyo_characters.9.b
				trigger = { tag = SAT }

				SAT_character_shimazu_tadashige = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							desc = "SAT_character_shimazu_tadashige_desc"
							ideology = shogunate
							expire = "1970.1.1"
						}
					}
				}
				SAT_character_shimazu_tadashige_daimyo = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							desc = "SAT_character_shimazu_tadashige_desc"
							ideology = shogunate
							expire = "1970.1.1"
						}
					}
				}

				retire_character = SAT_character_shimazu_nariakira
				retire_character = SAT_character_shimazu_nariakira_daimyo

				every_other_country = {
					limit = { is_japanese_country = yes }
					news_event = japan_daimyo_characters.10
				}
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SAT } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.10
			title = japan_daimyo_characters.10.t
			desc = japan_daimyo_characters.10.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SAT } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.11
			title = japan_daimyo_characters.11.t
			desc = japan_daimyo_characters.11.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SAT = {
					OR = {
						has_country_leader = {
							character = SAT_character_shimazu_tadayoshi
							ruling_only = yes
						}
						has_country_leader = {
							character = SAT_character_shimazu_tadayoshi_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SAT }
					SAT_character_shimazu_tadashige = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SAT_character_shimazu_tadashige_desc"
								ideology = shogunate
								expire = "1970.1.1"
							}
						}
					}
					SAT_character_shimazu_tadashige_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SAT_character_shimazu_tadashige_desc"
								ideology = shogunate
								expire = "1970.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.11
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = SAT }
				retire_character = SAT_character_shimazu_tadayoshi
				retire_character = SAT_character_shimazu_tadayoshi_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SAT } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Shonai
		news_event = {
			id = japan_daimyo_characters.12
			title = japan_daimyo_characters.12.t
			desc = japan_daimyo_characters.12.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SHI = {
					OR = {
						has_country_leader = {
							character = SHI_character_sakai_taadaki
							ruling_only = yes
						}
						has_country_leader = {
							character = SHI_character_sakai_taadaki_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SHI }
					SHI_character_sakai_tadatomo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SHI_character_sakai_tadatomo_desc"
								ideology = shogunate
								expire = "1870.1.1"
							}
						}
					}
					SHI_character_sakai_tadatomo_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SHI_character_sakai_tadatomo_desc"
								ideology = shogunate
								expire = "1870.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.12
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = SHI }
				retire_character = SHI_character_sakai_taadaki
				retire_character = SHI_character_sakai_taadaki_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SHI } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.13
			title = japan_daimyo_characters.13.t
			desc = japan_daimyo_characters.13.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SHI = {
					OR = {
						has_country_leader = {
							character = SHI_character_sakai_tadatomo
							ruling_only = yes
						}
						has_country_leader = {
							character = SHI_character_sakai_tadatomo_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SHI }
					SHI_character_sakai_tadazumi = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SHI_character_sakai_tadazumi_desc"
								ideology = shogunate
								expire = "1918.1.1"
							}
						}
					}
					SHI_character_sakai_tadazumi_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SHI_character_sakai_tadazumi_desc"
								ideology = shogunate
								expire = "1918.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.13
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = SHI }
				retire_character = SHI_character_sakai_tadatomo
				retire_character = SHI_character_sakai_tadatomo_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SHI } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.14
			title = japan_daimyo_characters.14.t
			desc = japan_daimyo_characters.14.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				SHI = {
					OR = {
						has_country_leader = {
							character = SHI_character_sakai_tadazumi
							ruling_only = yes
						}
						has_country_leader = {
							character = SHI_character_sakai_tadazumi_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = SHI }
					SHI_character_sakai_tadamichi = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SHI_character_sakai_tadamichi_desc"
								ideology = shogunate
								expire = "1899.1.1"
							}
						}
					}
					SHI_character_sakai_tadamichi_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "SHI_character_sakai_tadamichi_desc"
								ideology = shogunate
								expire = "1899.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.14
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = SHI }
				retire_character = SHI_character_sakai_tadazumi
				retire_character = SHI_character_sakai_tadazumi_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = SHI } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Tosa
		news_event = {
			id = japan_daimyo_characters.15
			title = japan_daimyo_characters.15.t
			desc = japan_daimyo_characters.15.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				TOS = {
					OR = {
						has_country_leader = {
							character = TOS_character_yamauchi_toyoshige
							ruling_only = yes
						}
						has_country_leader = {
							character = TOS_character_yamauchi_toyoshige_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = TOS }
					TOS_character_yamauchi_toyonori = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "TOS_character_yamauchi_toyonori_desc"
								ideology = shogunate
								expire = "1872.1.1"
							}
						}
					}
					TOS_character_yamauchi_toyonori_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "TOS_character_yamauchi_toyonori_desc"
								ideology = shogunate
								expire = "1872.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.15
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = TOS }
				retire_character = TOS_character_yamauchi_toyoshige
				retire_character = TOS_character_yamauchi_toyoshige_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = TOS } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
		news_event = {
			id = japan_daimyo_characters.16
			title = japan_daimyo_characters.16.t
			desc = japan_daimyo_characters.16.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				TOS = {
					OR = {
						has_country_leader = {
							character = TOS_character_yamauchi_toyonori
							ruling_only = yes
						}
						has_country_leader = {
							character = TOS_character_yamauchi_toyonori_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = TOS }
					TOS_character_yamauchi_toyokage = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "TOS_character_yamauchi_toyokage_desc"
								ideology = shogunate
								expire = "1918.1.1"
							}
						}
					}
					TOS_character_yamauchi_toyokage_daimyo = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "TOS_character_yamauchi_toyokage_desc"
								ideology = shogunate
								expire = "1918.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.16
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = TOS }
				retire_character = TOS_character_yamauchi_toyonori
				retire_character = TOS_character_yamauchi_toyonori_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = TOS } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Tsu
		news_event = {
			id = japan_daimyo_characters.17
			title = japan_daimyo_characters.17.t
			desc = japan_daimyo_characters.17.d
			picture = GFX_news_event_generic_funeral

			is_triggered_only = yes

			trigger = {
				TSU = {
					OR = {
						has_country_leader = {
							character = TSU_character_todo_takayuki
							ruling_only = yes
						}
						has_country_leader = {
							character = TSU_character_todo_takayuki_daimyo
							ruling_only = yes
						}
					}
				}
			}

			immediate = {
				if = {
					limit = { tag = TSU }
					TSU_character_todo_takayido = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "TSU_character_todo_takayido_desc"
								ideology = shogunate
								expire = "1960.1.1"
							}
						}
					}
					TSU_character_todo_takayido = {
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "TSU_character_todo_takayido_desc"
								ideology = shogunate
								expire = "1960.1.1"
							}
						}
					}

					every_other_country = {
						limit = { is_japanese_country = yes }
						news_event = japan_daimyo_characters.17
					}
				}
			}

			option = {
				name = japan_daimyo_characters.1.a
				trigger = { tag = TSU }
				retire_character = TSU_character_todo_takayuki
				retire_character = TSU_character_todo_takayuki_daimyo
			}
			option = {
				name = japan_daimyo_characters.1.b
				trigger = { NOT = { tag = TSU } }
				if = {
					limit = { tag = TSH }
					EOANBSYS_national_crisis_progress_minus_five = yes
				}
			}
		}
	# Yoshida Shoin
		# Information about character
			country_event = {
				id = japan_daimyo_characters.18
				title = japan_daimyo_characters.18.t
				desc = japan_daimyo_characters.18.d
				
				is_triggered_only = yes

				option = {
					name = japan_daimyo_characters.18.a
					activate_advisor = CHO_character_yoshida_shoin
				}
			}
		# 1858 Rebellion
			country_event = {
				id = japan_daimyo_characters.19
				title = japan_daimyo_characters.19.t
				desc = japan_daimyo_characters.19.d

				is_triggered_only = yes

				option = {
					name = japan_daimyo_characters.19.a
					trigger = { tag = CHO }
					add_political_power = 25
					decrease_ps_by_one = yes
				}
				option = {
					name = japan_daimyo_character.19.b
					trigger = { tag = TSH }
					add_political_power  =-20
					army_experience = 5
					add_manpower = -35
					for_each_loop = {
						array = subjects
						country_event = japan_daimyo_characters.20
					}
				}
				option = {
					name = japan_daimyo_character.19.c
					add_political_power  =-20
					army_experience = 5
					add_manpower = -35
					for_each_loop = {
						array = subjects
						country_event = japan_daimyo_characters.21
					}
				}
			}
		# Reaction to 1858 Choshu Rebellion (Shoin not imprisoned)
			country_event = {
				id = japan_daimyo_characters.20
				title = japan_daimyo_character.20.t
				desc = japan_daimyo_character.20.d

				is_triggered_only = yes

				option = {
					name = japan_daimyo_character.20.a
					add_popularity = {
						ideology = autocracy
						popularity = 0.03
					}
				}
			}
		# Reaction to 1858 Choshu Rebellion (Shoin imprisoned)
			country_event = {
				id = japan_daimyo_characters.21
				title = japan_daimyo_characters.21.t
				desc = japan_daimyo_characters.21.d

				is_triggered_only = yes

				option = {
					name = japan_daimyo_characters.21.a
					if = {
						limit = { tag = CHO }
						deactivate_advisor = CHO_character_yoshida_shoin
						remove_advisor_role = {
							character = CHO_character_yoshida_shoin
							slot = political_advisor
						}
						add_popularity = {
							ideology = autocracy
							popularity = 0.05
						}
					}
					if = {
						limit = { is_tozama_daimyo = yes }
						add_war_support = 0.05
						add_popularity = {
							ideology = autocracy
							popularity = 0.05
						}
					}
				}
			}

# Sankin System
	country_event = {
		id = japan_daimyo_generic.1
		title = japan_daimyo_generic.1.t
		desc = japan_daimyo_generic.1.d
		picture = GFX_report_event_jap_shogun

		is_triggered_only = yes

		trigger = {
			is_subject = yes
			OVERLORD = {
				has_idea = TSH_spirit_vic_han_sankin_kotai
			}
		}

		immediate = {
			hidden_effect = {
				log = "[ROOT.GetName]"
				country_event = { id = japan_daimyo_generic.1 days = 350 random_days = 30  }
				if = {
					limit = { autocracy > 0.5 }
					set_politics = {
						ruling_party = autocracy
					}
				}
				else = {
					set_politics = {
						ruling_party = radical_democracy
					}
				}
			}
		}

		option = {
			name = japan_daimyo_generic.1.a
			trigger = { is_tozama_daimyo = yes }
			ai_chance = { base = 1 }
			if = {
				limit = { TSH = { has_completed_focus = JAP_vic_relax_sankin_kotai } }
				add_timed_idea = {
					idea = TSH_spirit_vic_han_sankin_kotai_obligations2
					days = 365
				}
			}
			else = {
				add_timed_idea = {
					idea = TSH_spirit_vic_han_sankin_kotai_obligations
					days = 365
				}
			}
			add_political_power = -5
			add_manpower = -2
			set_temp_variable = { political_legitimacy_change = -0.02 }
			eoanb_political_legitimacy_change = yes
			add_popularity = {
				ideology = autocracy
				popularity = 0.01
			}
			hidden_effect = {
				OVERLORD = {
					if = {
						limit = { has_government = radical_democracy }
						country_event = japan_daimyo_generic.2
					}
					else ={
						country_event = japan_daimyo_generic.4
					}
				}
			}
		}
		option = {
			name = japan_daimyo_generic.1.b
			trigger = { is_fudai_daimyo = yes }
			ai_chance = { base = 1 }
			if = {
				limit = { TSH = { has_completed_focus = JAP_vic_relax_sankin_kotai } }
				add_timed_idea = {
					idea = TSH_spirit_vic_han_sankin_kotai_obligations2
					days = 365
				}
			}
			else = {
				add_timed_idea = {
					idea = TSH_spirit_vic_han_sankin_kotai_obligations
					days = 365
				}
			}
			add_political_power = -5
			add_manpower = -2
			set_temp_variable = { political_legitimacy_change = -0.02 }
			eoanb_political_legitimacy_change = yes
			random_list = {
				6 = {
					add_popularity = {
						ideology = radical_democracy
						popularity = 0.01
					}
				}
				4 = {
					add_popularity = {
						ideology = autocracy
						popularity = 0.02
					}
				}
			}
			hidden_effect = {
				OVERLORD = {
					if = {
						limit = { has_government = radical_democracy }
						country_event = japan_daimyo_generic.2
					}
					else ={
						country_event = japan_daimyo_generic.4
					}
				}
			}
		}
		option = {
			name = japan_daimyo_generic.1.c
			trigger = { autocracy > 0.50 }
			ai_chance = {
				base = 0
				modifier = {
					add = 5
					is_tozama_daimyo = yes
					date > 1865.7.1
				}
				modifier = {
					add = 5
					autocracy > 0.6
				}
				modifier = {
					add = 1
					TSH = { autocracy > 0.4 }
				}
				modifier = {
					add = 4
					TSH = { autocracy > 0.55 }
				}
			}
			set_temp_variable = { political_legitimacy_change = 0.02 }
			eoanb_political_legitimacy_change = yes
			add_popularity = {
				ideology = autocracy
				popularity = 0.05
			}
			hidden_effect = {
				OVERLORD = {
					country_event = japan_daimyo_generic.3
				}
			}
		}
	}
	news_event = {
		id = japan_daimyo_generic.2
		title = japan_daimyo_generic.2.t
		desc = japan_daimyo_generic.2.d
		picture = GFX_news_event_jap_sankin_kotai_1

		is_triggered_only = yes

		option = {
			name = japan_daimyo_generic.2.a
			add_political_power = 2
			set_temp_variable = { political_legitimacy_change = 0.01 }
			eoanb_political_legitimacy_change = yes
			EOANBSYS_national_crisis_progress_minus_one = yes
		}
	}
	news_event = {
		id = japan_daimyo_generic.3
		title = japan_daimyo_generic.3.t
		desc = japan_daimyo_generic.3.d
		picture = GFX_news_event_jap_sankin_kotai_3

		is_triggered_only = yes

		option = {
			name = japan_daimyo_generic.2.a
			set_temp_variable = { political_legitimacy_change = -0.01 }
			eoanb_political_legitimacy_change = yes
			EOANBSYS_national_crisis_progress_add_one = yes
			add_popularity = {
				ideology = autocracy
				popularity = 0.02
			}
		}
	}
	news_event = {
		id = japan_daimyo_generic.4
		title = japan_daimyo_generic.2.t
		desc = japan_daimyo_generic.4.d

		picture = GFX_news_event_jap_sankin_kotai_2

		is_triggered_only = yes

		option = {
			name = japan_daimyo_generic.2.a
			set_temp_variable = { political_legitimacy_change = 0.01 }
			eoanb_political_legitimacy_change = yes
		}
	}
	news_event = {
		id = japan_daimyo_generic.5
		title = japan_daimyo_generic.5.t
		desc = japan_daimyo_generic.5.d
		picture = GFX_news_event_jap_sankin_kotai_2

		is_triggered_only = yes

		option = {
			name = japan_daimyo_generic.5.a
			trigger = { tag = TSH }
			for_each_scope_loop = {
				array = subjects
				country_event = japan_daimyo_generic.1
			}
		}
		option = {
			name = japan_daimyo_generic.5.b
			trigger = { NOT = { tag = TSH } }
			add_stability = 0.05
		}
	}

# Choshu
	# Economy
		country_event = { 
			id = japan_daimyo_choshu.1
			title = japan_daimyo_choshu.1t
			desc = japan_daimyo_choshu.1.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.1a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_satsuma
					days = 720
				}
						
				SAT = { 
				add_timed_idea = {
					idea = CHO_trade_satsuma
					days = 720
					}
				}
			}

			option = {
				name = japan_daimyo_choshu.1b

				ai_chance = {
					base = 1
				}
			}
		}
		country_event = {
			id = japan_daimyo_choshu.2
			title = japan_daimyo_choshu.2.t
			desc = japan_daimyo_choshu.2.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.2.a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
				}
						
				SAG = { 
					add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
					}
				}
			}

			option = {
				name = japan_daimyo_choshu.2.b

				ai_chance = {
					base = 1
				}
			}
		}
		country_event = { 
			id = japan_daimyo_choshu.3
			title = japan_daimyo_choshu.3.t
			desc = japan_daimyo_choshu.3.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.3.a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
				}
						
				TOS = { 
					add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
					}
				}
			}

			option = {
				name = japan_daimyo_choshu.3.b

				ai_chance = {
					base = 1
				}
			}
		}
		country_event = { 
			id = japan_daimyo_choshu.4
			title = japan_daimyo_choshu.4.t
			desc = japan_daimyo_choshu.4.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.4.a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
				}
					
				TSU = { 
					add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
						}
					}
				}

			option = {
				name = japan_daimyo_choshu.4.b

				ai_chance = {
					base = 1
				}
			}
		}
		country_event = { 
			id = japan_daimyo_choshu.5
			title = japan_daimyo_choshu.5.t
			desc = japan_daimyo_choshu.5.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.5.a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
				}
					
				MIT = { 
					add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
						}
					}
				}

			option = {
				name = japan_daimyo_choshu.5.b

				ai_chance = {
					base = 1
				}
			}
		}
		country_event = { 
			id = japan_daimyo_choshu.6
			title = japan_daimyo_choshu.6.t
			desc = japan_daimyo_choshu.6.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.6.a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
				}
					
				DTE = { 
					add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
						}
					}
				}

			option = {
				name = japan_daimyo_choshu.6.b

				ai_chance = {
					base = 1
				}
			}
		}
		country_event = { 
			id = japan_daimyo_choshu.7
			title = japan_daimyo_choshu.7.t
			desc = japan_daimyo_choshu.7.d
			picture = GFX_news_event_009

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.7.a

				ai_chance = {
					base = 1
				}

				add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
				}
					
				SHI = { 
					add_timed_idea = {
					idea = CHO_trade_saga
					days = 720
						}
					}
				}

			option = {
				name = japan_daimyo_choshu.7.b

				ai_chance = {
					base = 1
				}
			}
		}

		country_event = { 
			id = japan_daimyo_choshu.8
			title = japan_daimyo_choshu.8.t
			desc = japan_daimyo_choshu.8.d

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.8.a

				ai_chance = {
					base = 1000
				}
				hidden_effect = {
					remove_mission = CHO_Yearly_New_Year_Event_mission
					activate_mission = CHO_Yearly_New_Year_Event_mission
					set_temp_variable = { TSH_Bakumatsu_Debate_Influence_Change = 2 }
				}
			}
		}

		country_event = { 
			id = japan_daimyo_choshu.9
			title = japan_daimyo_choshu.9.t
			desc = japan_daimyo_choshu.9.d

			is_triggered_only = yes
			fire_only_once = yes

			option = {
				name = japan_daimyo_choshu.9.a

				ai_chance = {
					base = 1000
				}
				add_stability = -0.02
				navy_experience = 20
				army_experience = 40
				add_doctrine_cost_reduction = { cost_reduction = 0.1 uses = 1 category = naval_doctrine }
				add_doctrine_cost_reduction = { cost_reduction = 0.1 uses = 3 category = land_doctrine }
			}
		}

country_event = { 
	id = japan_daimyo_choshu.10
	title = japan_daimyo_choshu.10.t
	desc = japan_daimyo_choshu.10.d

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = japan_daimyo_choshu.10.a

		ai_chance = {
			base = 1000
		}
		set_country_flag = CHO_five_students
	}
}
### DAIMYO GENERICS 

###  - Requests Ship Designs
country_event = {
	id = japan_daimyo_generic.6
	title = japan_daimyo_generic.6.t
	desc = japan_daimyo_generic.6.d
	picture = GFX_report_event_generic_sailship

	is_triggered_only = yes

	option = {
		name = japan_daimyo_generic.6.a
		FROM = {
			country_event = japan_daimyo_generic.7
		}
	}
	option = {
		name = japan_daimyo_generic.6.b
		FROM = {
			country_event = japan_daimyo_generic.8
		}
	}
}

## THE FRENCH ACCEPT
country_event = {
	id = japan_daimyo_generic.7
	title = japan_daimyo_generic.7.t
	desc = japan_daimyo_generic.7.d
	picture = GFX_report_event_generic_sailship

	is_triggered_only = yes

	option = {
		name = japan_daimyo_generic.7.a
		add_political_power = 15
		add_tech_bonus = {
			bonus = 0.5
			uses = 1
			category = naval_mtg_capital_ship_tech
		}	
	}
}

## THE FRENCH DECLINE
country_event = {
	id = japan_daimyo_generic.8
	title = japan_daimyo_generic.8.t
	desc = japan_daimyo_generic.8.d
	picture = GFX_report_event_generic_sailship

	is_triggered_only = yes

	option = {
		name = japan_daimyo_generic.8.a
		add_political_power = -5
		add_opinion_modifier = { target = FRA modifier = eoanb_om_RUS_decrease_small }
		reverse_add_opinion_modifier = { target = FRA modifier = eoanb_om_RUS_decrease_small }
	}
}

### DUTCH - Requests Ship Designs
country_event = {
	id = japan_daimyo_generic.9
	title = japan_daimyo_generic.9.t
	desc = japan_daimyo_generic.9.d
	picture = GFX_report_event_generic_sailship

	is_triggered_only = yes

	option = {
		name = japan_daimyo_generic.9.a
		FROM = {
			country_event = japan_daimyo_generic.10
		}
	}
	option = {
		name = japan_daimyo_generic.9.b
		FROM = {
			country_event = japan_daimyo_generic.11
		}
	}
}

## THE DUTCH ACCEPT
country_event = {
	id = japan_daimyo_generic.10
	title = japan_daimyo_generic.10.t
	desc = japan_daimyo_generic.10.d
	picture = GFX_report_event_generic_sailship

	is_triggered_only = yes

	option = {
		name = japan_daimyo_generic.10.a
		add_political_power = 15
		add_tech_bonus = {
			bonus = 0.5
			uses = 1
			category = naval_mtg_gunboat_hulls_tech
		}	
	}
}

## THE DUTCH DECLINE
country_event = {
	id = japan_daimyo_generic.11
	title = japan_daimyo_generic.11.t
	desc = japan_daimyo_generic.11.d
	picture = GFX_report_event_generic_sailship

	is_triggered_only = yes

	option = {
		name = japan_daimyo_generic.11.a
		add_political_power = -5
		add_opinion_modifier = { target = HOL modifier = eoanb_om_RUS_decrease_small }
		reverse_add_opinion_modifier = { target = HOL modifier = eoanb_om_RUS_decrease_small }
	}
}