#Japan (NIP)

#-----------------------------------------------------------------------------------------------

#(1419) The Murder of Togashi Mitsushige - Flavor
event = {
	id = 6950
	random = no
	country = NIP
	name = "EVENTNAME6950" #The Murder of Togashi Mitsushige
	desc = "EVENTHIST6950"
	#-#Togashi Mitsushige is murdered on Koya mountain by Hatakeyama Mitsuie on the orders of the Shogun Ashikaga Yoshimochi. Togashi had murdered Ashikaga Yoshitsugu, the ambitious brother of the Shogun conspiring for power, on the orders of Yoshimochi January 1418. He killed three more the conspiritors in August and was arrested in November. He had disgraced himself and had ceased to be useful for the Shogun. The actions of the Shogun caused wide spread disgust amongst leading officials.

	date = { day = 15 month = february year = 1419 }
	offset = 30
	deathdate = { day = 15 month = april year = 1419 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
	}
}

#(1423) Zeami Motokiyo writes Nohsakusho - Flavor
event = {
	id = 6951
	random = no
	country = NIP
	name = "EVENTNAME6951" #Zeami Motokiyo writes Nohsakusho
	desc = "EVENTHIST6951"
	#-#Zeami is the most famous playwright in Noh an esoteric form of theatre favoured by the Samurai class in Japan. He revolutionised and modernised Noh by incorporating other aspects Japanese culture to create Total Art. The Nohsakusho was the most famous of his treatises on performing Noh.

	date = { day = 1 month = june year = 1423 }
	offset = 90
	deathdate = { day = 29 month = december year = 1423 }

	action_a = {
		name = "OK"
		command = { type = infra value = 100 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
	}
}

#(1428) Shocho Ikki
event = {
	id = 6930
	trigger = {
		domestic = { type = serfdom value = 5 }
	}
	random = no
	country = NIP
	name = "EVENTNAME6930" #Shocho Ikki
	desc = "EVENTHIST6930"
	#-#Peasants demand that their debts are to be annulled and taxes lowered. If we go along with their demands it is likely that we will lose face, that the mechants will be upset and it will disrupt economic development. If we destroy them the peasants are likely to revolt all over the country. What should we do?

	date = { day = 15 month = september year = 1428 }
	offset = 10
	deathdate = { day = 29 month = december year = 1428 }

	action_a = {
		name = "ACTIONNAME6930A" #Reduce taxes and annul debts
		command = { type = stability value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = trade value = -250 }
		command = { type = infra value = -250 }
		command = { type = provincetax which = 686 value = -1 } #Kansai
		command = { type = sleepevent which = 6931 } #NIP: Harima Ikki
		}
	action_b = {
		name = "ACTIONNAME6930B" #Crush the ikki
		command = { type = stability value = -3 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revoltrisk which = 12 value = 15 }
	}
}

#(1429) Harima Ikki
event = {
	id = 6931
	trigger = { domestic = { type = Serfdom value = 5 } }
	random = no
	country = NIP
	name = "EVENTNAME6931" #Harima Ikki
	desc = "EVENTHIST6931"
	#-#Peasants demand that there debts are to be annulled and taxes lowered. If we go along with their demands it is likely that we will lose face, that the mechants will be upset and it will disrupt economic development. If we destroy them the peasants are likely to revolt all over the country. What should we do?

	date = { day = 15 month = january year = 1429 }

	action_a = {
		name = "ACTIONNAME6931A" #Reduce taxes and annul debts
		command = { type = stability value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = trade value = -250 }
		command = { type = infra value = -250 }
		command = { type = provincetax which = 686 value = -1 } #Kansai
		}
	action_b = {
		name = "ACTIONNAME6931B" #Crush the ikki
		command = { type = stability value = -3 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revoltrisk which = 12 value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------
#Ekiyo War Sequence

#(1430-1432) Mochiuiji's Rebellion
event = {
	id = 242000
	random = no
	country = NIP
	name = "EVENTNAME242000" #Mochiuiji's Rebellion
	desc = "EVENTHIST242000"
	#-#Kantou Kanrai Uyesugi Norizane has been attacked by Shogun-Daikan Mochiuji after he was rebuked for being a nuisance. Mochiuji, who resents the fact that a 'unfrocked monk,' Ashikaga Yoshinori, had succeeded to title of Shogun, has ambititions for himself and his sons to rule as Shogun rebelled against the Ashikaga. Uyesugi Norizane does not wish to execute him, only suppress him, despite his open defiance.\n If we aceed to Uyesugi Norizane's wishes, he says he shall offer us his help, but we do, we will lose even more face to the Court. If we do not, we won't lose face, but we are on our own.

	date = { day = 1 month = january year = 1430 }
	offset = 30
	deathdate = { day = 1 month = january year = 1432 }

	action_a = {
		name = "ACTIONNAME242000A" #Suppress and punish Mochiuji
		command = { type = stability value = -1 }
		command = { type = domestic which = Aristocracy value = 2 }
		command = { type = domestic which = Centralization value = -1 }
		command = { type = wakeleader which = 097801 } #Hosokawa Katsumoto (NIP)
		command = { type = INF which = 684 value = 14000 } #Tohoku
		command = { type = CAV which = 684 value = 7500 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = setflag which = [NIP_Ekiyo_with] }
	}
	action_b = {
		name = "ACTIONNAME242000B" #Suppress and execute Mochiuji
		command = { type = stability value = -3 }
		command = { type = domestic which = Aristocracy value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = setflag which = [NIP_Ekiyo_without] }
	}
}
#(1438) Mochiuiji's Rebellion
event = {
	id = 242001
	trigger = { flag = [NIP_Ekiyo_with] }
	random = no
	country = NIP
	name = "EVENTNAME242001" #Mochiuiji's Rebellion
	desc = "EVENTHIST242001"
	#-#Once again Mochiuji rebels against the Ashikaga Shogunate. Uyesugi Norizane has asked that Mochiuji's life be spared despite his rebellion.

	date = { day = 1 month = january year = 1438 }
	offset = 30
	deathdate = { day = 1 month = january year = 1439 }

	action_a = {
		name = "ACTIONNAME242001A" #Suppress and execute Mochiuji
		command = { type = stability value = -3 }
		command = { type = domestic which = Aristocracy value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = clrflag which = [NIP_Ekiyo_with] }
		command = { type = setflag which = [NIP_Ekiyo_without] }
	}
	action_b = {
		name = "ACTIONNAME242001B" #Suppress and punish Mochiuji
		command = { type = stability value = -1 }
		command = { type = domestic which = Aristocracy value = 2 }
		command = { type = domestic which = Centralization value = -1 }
		command = { type = wakeleader which = 097802 } #Yamana Souzen (NIP)
		command = { type = INF which = 684 value = 9000 } #Tohoku
		command = { type = CAV which = 684 value = 5000 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
	}
}
#(1441) Ahistorical Revolt
event = {
	id = 242002
	trigger = { flag = [NIP_Ekiyo_with] }
	random = no
	country = NIP
	name = "EVENTNAME242002" #Mochiuiji's Rebellion
	desc = "EVENTHIST242002"
	#-#Once again Mochiuji rebels against the Ashikaga Shogunate. Uyesugi Norizane has asked that Mochiuji's life be spared despite his rebellion. This time Mochiuji does not have as many followers and it will likely be the last time he can attempt a rebellion.

	date = { day = 1 month = january year = 1441 }
	offset = 30
	deathdate = { day = 1 month = january year = 1442 }

	action_a = {
		name = "ACTIONNAME242002A" #Suppress and execute Mochiuji
		command = { type = stability value = -3 }
		command = { type = domestic which = Aristocracy value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = clrflag which = [NIP_Ekiyo_with] }
		command = { type = setflag which = [NIP_Ekiyo_without] }
	}
	action_b = {
		name = "ACTIONNAME242002B" #Suppress and punish Mochiuji
		command = { type = stability value = -1 }
		command = { type = domestic which = Aristocracy value = 2 }
		command = { type = domestic which = Centralization value = -1 }
		command = { type = wakeleader which = 097803 } #Akamatsu Masanori (NIP)
		command = { type = INF which = 684 value = 4000 } #Tohoku
		command = { type = CAV which = 684 value = 2500 }
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
	}
}
#(1432-1441) The final act in the Eikyo war
event = {
	id = 6933
	trigger = { flag = [NIP_Ekiyo_without] }
	random = no
	country = NIP
	name = "EVENTNAME6933" #The final act in the Eikyo war
	desc = "EVENTHIST6933"
	#-#Tashikaga Mochiuji's sons Haruo and Yasuo have joined their father's cause. They now defy our government by gathering armies in Kanto and marching against us.

	date = { day = 1 month = january year = 1432 }
	offset = 180
	deathdate = { day = 1 month = january year = 1441 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
	}
}
#(1432-1441) The Eikyo war with
event = {
	id = 6934
	random = no
	country = NIP
	trigger = { flag = [NIP_Ekiyo_with] }
	name = "EVENTNAME6933" #The final act in the Eikyo war
	desc = "EVENTHIST6933"
	#-#Ashikaga Mochiuji's sons Haruo and Yasuo have joined their father's cause. They now defy our government by gathering armies in Kanto and marching against us.

	date = { day = 1 month = march year = 1432 }
	offset = 180
	deathdate = { day = 1 month = january year = 1441 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
	}
}
#End of Ekiyo War Sequence
#-----------------------------------------------------------------------------------------------

#(1433) Yoshinori orders the collection of waka - Flavor
event = {
	id = 6952
	random = no
	country = NIP
	name = "EVENTNAME6952" #Yoshinori orders the collection of waka
	desc = "EVENTHIST6952"
	#-#The ever superstious Ashikaga Yoshinori has ordered the collection of the countless waka (31 syllable poems) in Japan.\n They were usually used as magical charms and as prayers to the gods. The two people responsible for the collection, Asukai Masayo and Kaigojokoin Gyokosozu, continued collecting until the Age of Security ended in 1438. The result was last litterary work of the Shogunate commissioned the Shinzokukokinwakashu.

	date = { day = 1 month = august year = 1433 }
	offset = 15
	deathdate = { day = 1 month = september year = 1433 }

	action_a = {
		name = "OK"
		command = { type = infra value = 50 }
	}
}

#(1441) Kakitsu Ikki
event = {
	id = 6915
	trigger = { domestic = { type = Serfdom value = 5 } }
	random = no
	country = NIP
	name = "EVENTNAME6915" #Kakitsu Ikki
	desc = "EVENTHIST6915"
	#-#Peasants demand that there debts are to be annulled and taxes lowered. If we go along with their demands it is likely that we will lose face, that the mechants will be upset and it will disrupt economic development. If we destroy them the peasants are likely to revolt all over the country. What should we do?

	date = { day = 15 month = august year = 1441 }

	action_a = {
		name = "ACTIONNAME6915A" #Reduce taxes and annul debts
		command = { type = stability value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = trade value = -250 }
		command = { type = infra value = -250 }
		command = { type = provincetax which = 686 value = -1 } #Kansai
	}
	action_b = {
		name = "ACTIONNAME6915B" #Crush the ikki
		command = { type = stability value = -3 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revoltrisk which = 12 value = 10 }
	}
}

#(1445) Hyogokita tax and toll reforms - Flavor
event = {
	id = 6954
	random = no
	country = NIP
	name = "EVENTNAME6954" #Hyogokita tax and toll reforms
	desc = "EVENTHIST6954"
	#-#Hyogokita tax and toll reforms have been carried out to place the Bakufu's finances on a better footing.

	date = { day = 15 month = august year = 1445 }
	offset = 15
	deathdate = { day = 15 month = september year = 1445 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 684 value = 1 } #Tohoku
		command = { type = provincetax which = 685 value = 3 } #Kanto
		command = { type = provincetax which = 686 value = 3 } #Kansai
		command = { type = provincetax which = 687 value = 1 } #Shikoku
		command = { type = provincetax which = 688 value = 3 } #Kyushu
		command = { type = domestic which = Mercantilism value = 2 }
	}
}

#(1454) Infighting in the Hatakeyama family
event = {
	id = 6936
	random = no
	country = NIP
	name = "EVENTNAME6936" #Infighting in the Hatakeyama family
	desc = "EVENTHIST6936"
	#-#Fighting has broken out between two sides of the Hatakeyama family on who should be the heir after Hatakeyama Mochikuni. Mochikuni had originally adopted his nephew Hatakeyama Masanaga as his heir, when his biological son Yoshinari was born shifted Mochikuni changed his mind. This widened a split in the Hatakeyama family that was caused by the division of land of Akamatsu Mitsusuke's land.The resulting conflict was made worse by the fact that the Hatakeyama are one of three noble families that have the right to be the Kanrei of Yamashiro, the Hosokawa and the Shiba being the other two, and therefore wield considerable power as the highest officials in the Bakufu. The fighting has been been made worse by the involvement of the two other major families in Nippon, the Yamana and the Hosokawa. Both the Yamana and the Hosokawa have asked for permission to chastise the other clan for the involvement. Committing the Bakufu to one side is likely to tip the balance of power in the country and force a reaction from the other side.

	date = { day = 15 month = april year = 1454 }
	offset = 10
	deathdate = { day = 29 month = december year = 1454 }

	action_a = {
		name = "ACTIONNAME6936A" #Chastise Hosokawa
		command = { type = stability value = -5 }
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 687 } #Shikoku
		command = { type = revoltrisk which = 60 value = 15 }
		command = { type = INF which = 688 value = 25000 } #Kyushu
		command = { type = CAV which = 688 value = 10000 }
		command = { type = sleepevent which = 6958 } #NIP: Ginkakuji construction starts
		command = { type = sleepevent which = 6959 } #NIP: Sen no Rikyu perfects Tea Ceremony
	}
	action_b = {
		name = "ACTIONNAME6936B" #Chastise Yamana
		command = { type = stability value = -4 }
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revoltrisk which = 60 value = 15 }
		command = { type = INF which = 687 value = 20000 } #Shikoku
		command = { type = CAV which = 687 value = 10000 }
		command = { type = sleepevent which = 6958 } #NIP: Ginkakuji construction starts
		command = { type = sleepevent which = 6959 } #NIP: Sen no Rikyu perfects Tea Ceremony
	}
	action_c = {
		name = "ACTIONNAME6936C" #Don't get involved
		command = { type = stability value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
	}
}

#(1454) The Kyotoku War
event = {
	id = 6937
	trigger = {
		owned = { province = 685 data = -1 }
		owned = { province = 684 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME6937" #The Kyotoku War
	desc = "EVENTHIST6937"
	#-#Ashikaga Shigeuji the kubo or military commander of Kanto has ordered the murder of the Uesugi Noritada the Kanrei highest bureaucrat of Kanto. The Uesugi clan are understandably upset that the holder of their tradional post has been killed and they demand compensation increased rights for the nobility and that Shigeuji should be killed. If we follow their demands we risk alienating the military. What should we do?

	date = { day = 27 month = december year = 1454 }

	action_a = {
		name = "ACTIONNAME6937A" #Order Ashikaga Shigeuji to commit seppuku
		command = { type = stability value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = revoltrisk which = 12 value = 5 }
	}
	action_b = {
		name = "ACTIONNAME6937B" #Refuse the Uesugi's demands
		command = { type = stability value = -3 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 685 } #Kanto
	}
}

#(1457) Koshamain's Revolt
event = {
	id = 6938
	trigger = {
		owned = { province = 683 data = -1 } #Ezochi
	}
	random = no
	country = NIP
	name = "EVENTNAME6938" #Koshamain's Revolt
	desc = "EVENTHIST6938"
	#-#A wajin sword maker Japanese from the mainland has killed a young Ezo (Ainu) a native in an argument over a sword's price in Hakodate. The Ainu responded by attacking all the wajin's houses. Koshamain, a respected Ainu chieftain, demand that they are compensated by having their former land back in the region and establishing fair and acceptable trade terms to them. The Ainu are hunter-gatherers so they are not as productive as the Japanese. On the other hand refusing is likely to cause a rebellion and unrest in Ezochi. What should we do?

	date = { day = 1 month = may year = 1457 }
	offset = 5
	deathdate = { day = 29 month = december year = 1457 }

	action_a = {
		name = "ACTIONNAME6938A" #Crush the rebellion
		command = { type = stability value = -1 }
		command = { type = revolt which = 683 } #Ezochi
		command = { type = provincetax which = 683 value = -1 } #Ezochi
		command = { type = provincemanpower which = 683 value = -1 } #Ezochi
	}
	action_b = {
		name = "ACTIONNAME6938B" #Appease the natives
		command = { type = stability value = -1 }
		command = { type = provincetax which = 683 value = -2 } #Ezochi
		command = { type = treasury value = -100 }
		command = { type = sleepevent which = 6926 } #NIP: The Ainu's Revolt of Ezochi
	}
}

#(1458-1463) Construction of a new Muromachi Palace
event = {
	id = 242003
	trigger = { monarch = 097504 } #Ashikaga Yoshimasa
	random = no
	country = NIP
	name = "EVENTNAME242003" #Construction of a new Muromachi Palace
	desc = "EVENTHIST242003"
	#-#Yoshimasa, while an inept leader for a crumbling state, was much of a lover of the arts. Unable or unwilling to cope with keeping the Shougnate from deterorating faster he instead decided after a few attempts to devote himself and thus the Kyoto court to the realm of the arts and pleasure.\n In 1458 he started constuction of a new and vastly more lavish palace for the Emperor. This was by far his most expensive project. Even during the famine of 1461 he forced the populace to continue construction until he was chastised by the Emperor in a satyrical poem.

	date = { day = 1 month = january year = 1458 }
	offset = 30
	deathdate = { day = 1 month = january year = 1463 }

	action_a = {
		name = "OK"
		command = { type = treasury value = -500 }
		command = { type = gainmanufactory which = 685 value = luxury } #Kanto
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = infra value = 50 }
		command = { type = vp value = 100 }
	}
}

#(1459) Floods and famine in 1459 - Flavor
event = {
	id = 6955
	country = NIP
	random = no
	name = "EVENTNAME6955" #Floods and famine in 1459
	desc = "EVENTHIST6955"
	#-#Huge floods have ravaged Nippon destroying houses and this year's harvest. With the harvest gone people are dying in droves.

	date = { day = 1 month = june year = 1459 }
	offset = 60
	deathdate = { day = 29 month = december year = 1459 }

	action_a = {
		name = "OK"
		command = { type = population which = 684 value = -5000 } #Tohoku
		command = { type = population which = 685 value = -20000 } #Kanto
		command = { type = population which = 686 value = -20000 } #Kansai
		command = { type = population which = 687 value = -5000 } #Shikoku
		command = { type = population which = 688 value = -20000 } #Kyushu
		command = { type = provincetax which = 684 value = -1 } #Tohoku
		command = { type = provincetax which = 685 value = -1 } #Kanto
		command = { type = provincetax which = 686 value = -1 } #Kansai
		command = { type = provincetax which = 687 value = -1 } #Shikoku
		command = { type = provincetax which = 688 value = -1 } #Kyushu
	}
}

#(1464) The Week Long Play
event = {
	id = 242004
	trigger = { monarch = 097504 } #Ashikaga Yoshimasa
	random = no
	country = NIP
	name = "EVENTNAME242004" #The Week Long Play
	desc = "EVENTHIST242004"
	#-#In 1464 Yoshimasa held a perfomance of the Tadasu-gawara Kanjin-Sangaku Ki. This play, directed by Kanze Tayu-Matasaburo, was of the highest order. The occasion was of such extravagance that it lasted for an entire week, with several other players done on alternate days.

	date = { day = 1 month = january year = 1464 }
	offset = 10
	deathdate = { day = 23 month = december year = 1464 }

	action_a = {
		name = "ACTIONNAME242004A" #Hold the festivities!
		command = { type = treasury value = -200 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = vp value = 50 }
	}
}

#-----------------------------------------------------------------------------------------------
#The Onin War Sequence

#(1466) Prelude to War
event = {
	id = 242005
	random = no
	country = NIP
	name = "EVENTNAME242005" #Prelude to War
	desc = "EVENTHIST242005"
	#-#In 1464 Ashikaga Yoshimi reluctantly came out of monkish life to become heir to Yoshimasa after much prodding by Hosokawa Katsumoto. However, one year later Tomi-ko, Yoshimasa's wife, had a child. This put Yoshimi in an awkward position, though he remained as heir apparant to Yoshimasa. This infuriated Tomi-ko and she sought the support of Yamana Sozen who envied Hosokawa and had been looking for some time for a legitimate reason to attack Hosokawa. By the end of 1466 Hosokawa and Yamana have massed their troops surrounding Kyoto.

	date = { day = 1 month = january year = 1466 }
	offset = 10
	deathdate = { day = 29 month = december year = 1466 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
	}
}
#(1467) Standoff in Kyoto
event = {
	id = 242006
	random = no
	country = NIP
	name = "EVENTNAME242006" #Standoff in Kyoto
	desc = "EVENTHIST242006"
	#-#In 1467 both Hosokawa and Yamana had brought their troops to Kyoto. Hoping to have free reign to attack Hosokawa, Yamana complained to Yoshimasa that Hosokawa had interfered in Hatakeyama succession, something Yamana did too. To Yamana's infuriation Hosokawa was merely reprimanded. That evening Yamana moved against Hosokawa by conducting Yoshimi to the Bakufu headquarters and began preparations to defend it. Seeing this, Hosokawaw also mobilized his troops into a defensive position within the city.\n Yoshimasa realized what a battle in Kyoto would mean and in an attempt to forestall the bloodshed within Kyoto he forebade them from interfering in the Hatakeyama succession as well as that whichever side attacked first would be branded a rebel. Even as powerless as the Ashikaga shogunate was, this threat was large enough to scare the men from attacking immediatly as being branded a rebel would alinate his allies and give cause for anyone to attack and freely cofiscate his lands without punishment.

	date = { day = 14 month = january year = 1467 }
	offset = 10
	deathdate = { day = 28 month = february year = 1467 }

	action_a = {
		name = "ACTIONNAME242006A" #Threaten both with 'rebel' status
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME242006B" #Brand Yamana a rebel
		command = { type = stability value = -4 }
		command = { type = revoltrisk which = 120 value = 1 }
		command = { type = revoltrisk which = 108 value = 1 }
		command = { type = revoltrisk which = 96 value = 1 }
		command = { type = revoltrisk which = 84 value = 1 }
		command = { type = revoltrisk which = 72 value = 1 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = province_revoltrisk which = 686 value = 30 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = losebuilding which = 686 value = shipyard } #Kansai
		command = { type = losebuilding which = 686 value = barrack } #Kansai
		command = { type = losebuilding which = 686 value = bailiff } #Kansai
		command = { type = losebuilding which = 686 value = courthouse } #Kansai
		command = { type = losemanufactory which = 686 } #Kansai
		command = { type = wakeleader which = 097801 } #Hosokawa Katsumoto (NIP)
		command = { type = INF which = 686 value = 5000 } #Kansai
		command = { type = CAV which = 686 value = 80000 }
		command = { type = province_revoltrisk which = 687 value = 10 } #Shikoku
		command = { type = revolt which = 687 } #Shikoku
		command = { type = province_revoltrisk which = 685 value = 3 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = setflag which = [oninwar_hosokawa] }
	}
	action_c = {
		name = "ACTIONNAME242006C" #Brand Hosokawa a rebel
		command = { type = stability value = -4 }
		command = { type = revoltrisk which = 120 value = 1 }
		command = { type = revoltrisk which = 108 value = 1 }
		command = { type = revoltrisk which = 96 value = 1 }
		command = { type = revoltrisk which = 84 value = 1 }
		command = { type = revoltrisk which = 72 value = 1 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = province_revoltrisk which = 686 value = 30 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = losebuilding which = 686 value = shipyard } #Kansai
		command = { type = losebuilding which = 686 value = barrack } #Kansai
		command = { type = losebuilding which = 686 value = bailiff } #Kansai
		command = { type = losebuilding which = 686 value = courthouse } #Kansai
		command = { type = losemanufactory which = 686 } #Kansai
		command = { type = wakeleader which = 097802 } #Yamana Souzen (NIP)
		command = { type = INF which = 686 value = 40000 } #Kansai
		command = { type = CAV which = 686 value = 40000 }
		command = { type = province_revoltrisk which = 685 value = 10 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = province_revoltrisk which = 687 value = 3 } #Shikoku
		command = { type = revolt which = 687 } #Shikoku
		command = { type = setflag which = [oninwar_yamana] }
	}
}
#(1467) The Breaking of Kyoto
event = {
	id = 242007
	trigger = {
		NOT = { flag = [oninwar_hosokawa] }
		NOT = { flag = [oninwar_yamana] }
	}
	random = no
	country = NIP
	name = "EVENTNAME242007" #The Breaking of Kyoto
	desc = "EVENTHIST242007"
	#-#While neither side wanted to be branded a rebel, both Yamana and Hosokawa maintained their positions. Flurries of letters and strengthening of battlements went on throughout spring. Finally in May of 1467 Hosokawa attacked the mansion of one of Yamana's generals, Isshiki. Even though Yoshimasa had earlier declared whoever started the fighting would be branded a rebel, Yamana was branded as one likely because of major contributions by Hosokawa. Fighting continued for several days and many buildings were destroyed in the process and fires spread. This however was only a prelude of what was to come for within less than half a year over 90 percent of Kyoto was destroyed.\n 'The flowery capital that we thought would last forever to our surprise is to become the lair of wolves and foxes. In the past their have been rebellions and disasters, but in the first year of the Onin war the laws of gods and Kings are broken and all the sects are perishing.' - Bakufu official, after the war

	date = { day = 20 month = may year = 1467 }
	offset = 10
	deathdate = { day = 29 month = june year = 1467 }

	action_a = {
		name = "ACTIONNAME242007A" #Brand Yamana a rebel
		command = { type = stability value = -4 }
		command = { type = treasury value = 250 }
		command = { type = vp value = -50 }
		command = { type = badboy value = 2 }
		command = { type = revoltrisk which = 120 value = 1 }
		command = { type = revoltrisk which = 108 value = 1 }
		command = { type = revoltrisk which = 96 value = 1 }
		command = { type = revoltrisk which = 84 value = 1 }
		command = { type = revoltrisk which = 72 value = 1 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = province_revoltrisk which = 686 value = 30 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = losebuilding which = 686 value = shipyard } #Kansai
		command = { type = losebuilding which = 686 value = barrack } #Kansai
		command = { type = losebuilding which = 686 value = bailiff } #Kansai
		command = { type = losebuilding which = 686 value = courthouse } #Kansai
		command = { type = losemanufactory which = 686 } #Kansai
		command = { type = wakeleader which = 097801 } #Hosokawa Katsumoto (NIP)
		command = { type = INF which = 686 value = 5000 } #Kansai
		command = { type = CAV which = 686 value = 80000 }
		command = { type = province_revoltrisk which = 687 value = 10 } #Shikoku
		command = { type = revolt which = 687 } #Shikoku
		command = { type = province_revoltrisk which = 685 value = 3 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = setflag which = [oninwar_hosokawa] }
	}
	action_b = {
		name = "ACTIONNAME242007B" #Brand Hosokawa a rebel
		command = { type = stability value = -4 }
		command = { type = revoltrisk which = 120 value = 1 }
		command = { type = revoltrisk which = 108 value = 1 }
		command = { type = revoltrisk which = 96 value = 1 }
		command = { type = revoltrisk which = 84 value = 1 }
		command = { type = revoltrisk which = 72 value = 1 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = province_revoltrisk which = 686 value = 30 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = losebuilding which = 686 value = shipyard } #Kansai
		command = { type = losebuilding which = 686 value = barrack } #Kansai
		command = { type = losebuilding which = 686 value = bailiff } #Kansai
		command = { type = losebuilding which = 686 value = courthouse } #Kansai
		command = { type = losemanufactory which = 686 } #Kansai
		command = { type = wakeleader which = 097802 } #Yamana Souzen (NIP)
		command = { type = INF which = 686 value = 40000 } #Kansai
		command = { type = CAV which = 686 value = 40000 }
		command = { type = province_revoltrisk which = 685 value = 10 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = province_revoltrisk which = 687 value = 3 } #Shikoku
		command = { type = revolt which = 687 } #Shikoku
		command = { type = setflag which = [oninwar_yamana] }
	}
}
#(1467) Ouchi Sends Reinforcements
event = {
	id = 242008
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242008" #Ouchi Sends Reinforcements
	desc = "EVENTHIST242008"
	#-#In September 1467 Ouichi's reinforcemnts arrive after having to surpress troubles at home do to Hosokawa's propoganda. Bolstered and refreshed from near defeat by these reinforcements Yamana decides to cut off all contact Hosokawa had with this bolster.

	date = { day = 1 month = september year = 1467 }
	offset = 1
	deathdate = { day = 10 month = september year = 1467 }

	action_a = {
		name = "ACTIONNAME242008A" #Seize the inititive
		command = { type = MIL which = 4 value = 1 }
		command = { type = wakeleader which = 097804 } #Ouchi Masahiro (NIP)
		command = { type = INF which = 686 value = 10000 } #Kansai
		command = { type = CAV which = 686 value = 10000 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
	action_b = {
		name = "ACTIONNAME242008B" #Keep them back and wait
		command = { type = wakeleader which = 097804 } #Ouchi Masahiro (NIP)
		command = { type = INF which = 687 value = 10000 } #Shikoku
		command = { type = CAV which = 687 value = 10000 }
	}
}
#(1467) Ouchi's Reinforcements
event = {
	id = 242009
	random = no
	country = NIP
	trigger = { flag = [oninwar_hosokawa] }
	name = "EVENTNAME242009" #Ouchi's Reinforcements
	desc = "EVENTHIST242009"
	#-#In September 1467 Ouichi's reinforcemnts to Yamana arrive after having to surpress troubles at home do to Hosokawa's propoganda. Bolstered and refreshed from near defeat by these reinforcements Yamana decides to cut off all contact Hosokawa had with this bolster.

	date = { day = 1 month = september year = 1467 }
	offset = 1
	deathdate = { day = 10 month = september year = 1467 }

	action_a = {
		name = "OK"
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1467) Yamana takes the Sambou-In
event = {
	id = 242010
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242010" #Yamana takes the Sambou-In
	desc = "EVENTHIST242010"
	#-#Late in September with bolstered by the earlier reifocements and better position within Kyoto Yamana attacked and captured the Sambou-In, a monastic building ajacent to the Imperal Palace at the time. In addition many other buildings were destroyed around the area and strategic areas, including the Imperial Palace, were captured. This result had massive morale drain to Hosokawa and nearly crushed his army.

	date = { day = 20 month = september year = 1467 }
	offset = 1
	deathdate = { day = 29 month = september year = 1467 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = MIL which = 2 value = 1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1467) Yamana takes the Sambou-In
event = {
	id = 242011
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242011" #Yamana takes the Sambou-In
	desc = "EVENTHIST242011"
	#-#Late in September with bolstered by the earlier reifocements and better position within Kyoto Yamana attacked and captured the Sambou-In, a monastic building ajacent to the Imperal Palace at the time. In addition many other buildings were destroyed around the area and strategic areas, including the Imperial Palace, were captured. This result had massive morale drain to Hosokawa and nearly crushed his army.

	date = { day = 20 month = september year = 1467 }
	offset = 1
	deathdate = { day = 29 month = september year = 1467 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1467) Akamatsu's Sends Reinforcments
event = {
	id = 242024
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242024" #Akamatsu's Sends Reinforcments
	desc = "EVENTHIST242024"
	#-#Hosokawa's army nearing defeat was saved in early October by the Akamatsu family from Settsu and Tamba. These troops made their way into the city and the headquarters of Hosokawa despite constant attacks by the Western Army.\n Despite these much needed reinforcments, Hosokawa's condition in Kyoto continued to decline overall.

	date = { day = 1 month = october year = 1467 }
	offset = 5
	deathdate = { day = 29 month = october year = 1467 }

	action_a = {
		name = "OK"
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1467) Akamatsu's Sends Reinforcments
event = {
	id = 242012
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242012" #Akamatsu's Sends Reinforcments
	desc = "EVENTHIST242012"
	#-#Hosokawa's army nearing defeat was saved in early October by the Akamatsu family from Settsu and Tamba. These troops made their way into the city and the headquarters of Hosokawa despite constant attacks by the Western Army.\n Despite these much needed reinforcments, Hosokawa's condition in Kyoto continued to decline overall.

	date = { day = 1 month = october year = 1467 }
	offset = 5
	deathdate = { day = 29 month = october year = 1467 }

	action_a = {
		name = "OK"
		command = { type = wakeleader which = 097803 } #Akamatsu Masanori (NIP)
		command = { type = INF which = 687 value = 10000 } #Shikoku
		command = { type = CAV which = 687 value = 10000 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1467) Hosokawa retakes the Sambou-In
event = {
	id = 242025
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242025" #Hosokawa retakes the Sambou-In
	desc = "EVENTHIST242025"
	#-#Although Hosokawa had recieved reinforcments from the Akamatsu family, his condition continued to decline as his outer defenses were taken until all remained was the crowded space containing the Shokokuji, the Bakafu buildings and his own headquarters. His attempts at counterattacks had been unsuccessful as well. Finally,on November 1st, Yamana bribed a monk at the Sambou-In to burn it to the ground. This led to widespred fighting and Hosokawa retaking much of the area he'd lost since late September, although many of the buildings were destroyed and the dead littered the streets.

	date = { day = 1 month = november year = 1467 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1467) Hosokawa retakes the Sambou-In
event = {
	id = 242013
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242013" #Hosokawa retakes the Sambou-In
	desc = "EVENTHIST242013"
	#-#Although Hosokawa had recieved reinforcments from the Akamatsu family, his condition continued to decline as his outer defenses were taken until all remained was the crowded space containing the Shokokuji, the Bakafu buildings and his own headquarters. His attempts at counterattacks had been unsuccessful as well. Finally,on November 1st, Yamana bribed a monk at the Sambou-In to burn it to the ground. This led to widespred fighting and Hosokawa retaking much of the area he'd lost since late September, although many of the buildings were destroyed and the dead littered the streets.

	date = { day = 1 month = november year = 1467 }

	action_a = {
		name = "ACTIONNAME242013A" #Bribe the Monk
		command = { type = treasury value = -50 }
		command = { type = badboy value = 1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
	action_b = {
		name = "ACTIONNAME242013B" #Conserve our Resources
		command = { type = stability value = -1 }
	}
}
#(1468) Hosokawa's Unconventional Raid
event = {
	id = 242014
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242014" #Hosokawa's Unconventional Raid
	desc = "EVENTHIST242014"
	#-#On the 1st of January, 1468 Hosokawa made an unconventional raid on Yamana's troops in Kyoto. This raid took Yamana by surprise, though fighting died down rather quickly compared to the previous battle two months before.\n After this most battling took place outside Kyoto in the provinces.

	date = { day = 1 month = december year = 1468 }

	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 686 value = -20 } #Kansai
		command = { type = population which = 686 value = -10000 } #Kansai
		command = { type = provincetax which = 686 value = -3 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1468) Hosokawa's Unconventional Raid
event = {
	id = 242026
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242026" #Hosokawa's Unconventional Raid
	desc = "EVENTHIST242026"
	#-#On the 1st of January, 1468 Hosokawa made an unconventional raid on Yamana's troops in Kyoto. This raid took Yamana by surprise, though fighting died down rather quickly compared to the previous battle two months before.\n After this most battling took place outside Kyoto in the provinces.

	date = { day = 1 month = december year = 1468 }

	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 686 value = -20 } #Kansai
		command = { type = population which = 686 value = -10000 } #Kansai
		command = { type = provincetax which = 686 value = -3 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1468) Hosokawa's Raiding Party
event = {
	id = 242015
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242015" #Hosokawa's Raiding Party
	desc = "EVENTHIST242015"
	#-#After the 1st of the year, nothing major happened until April when Hosokawa attempted to cut the Western Army's supply line. After this, Kyoto was left out of the actual fighting, save for a few excursions by adventurous young officers, however both sides had dug in deep, well-fortified tenches within the city.

	date = { day = 1 month = april year = 1468 }
	offset = 5
	deathdate = { day = 29 month = december year = 1468 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = province_revoltrisk which = 686 value = -5 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 687 } #Shikoku
		command = { type = revolt which = 687 } #Shikoku
	}
}
#(1468) Hosokawa's Raiding Party
event = {
	id = 242016
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242016" #Hosokawa's Raiding Party
	desc = "EVENTHIST242016"
	#-#After the 1st of the year, nothing major happened until April when Hosokawa attempted to cut the Western Army's supply line. After this, Kyoto was left out of the actual fighting, save for a few excursions by adventurous young officers, however both sides had dug in deep, well-fortified tenches within the city.

	date = { day = 1 month = april year = 1468 }
	offset = 5
	deathdate = { day = 29 month = december year = 1468 }

	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 686 value = -5 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 687 } #Shikoku
		command = { type = revolt which = 687 } #Shikoku
	}
}
#(1469) Fighting in Kyoto Ends
event = {
	id = 242017
	trigger = { flag = [oninwar_yamana] }
	random = no
	country = NIP
	name = "EVENTNAME242017" #Fighting in Kyoto Ends
	desc = "EVENTHIST242017"
	#-#After 1468 no major fighting was seen in Kyoto, though the armies remained. Instead the focus moved more to politcal manuvers in an attempt to get their candidate for the next Shogun to become heir. Even so, Yamana had to make sure to keep an eye out for any military agression from Hosokawa and his allies across Japan.

	date = { day = 1 month = january year = 1469 }

	action_a = {
		name = "ACTIONNAME242017A" #At last! 'Some' Peace.
		command = { type = stability value = 1 }
		command = { type = province_revoltrisk which = 685 value = -9 } #All Still +1 #Kanto
		command = { type = province_revoltrisk which = 686 value = -4 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -2 } #Shikoku
	}
}
#(1469) Fighting in Kyoto Ends
event = {
	id = 242018
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242018" #Fighting in Kyoto Ends
	desc = "EVENTHIST242018"
	#-#After 1468 no major fighting was seen in Kyoto, though the armies remained. Instead the focus moved more to politcal manuvers in an attempt to get their candidate for the next Shogun to become heir. Even so, Yamana had to make sure to keep an eye out for any military agression from Hosokawa and his allies across Japan.

	date = { day = 1 month = january year = 1469 }

	action_a = {
		name = "ACTIONNAME242018A" #At last! 'Some' Peace.
		command = { type = stability value = 1 }
		command = { type = province_revoltrisk which = 685 value = -2 } # All Still +1 #Kanto
		command = { type = province_revoltrisk which = 686 value = -4 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -9 } #Shikoku
	}
}
#(1469) Yamana's General, Ashikaga Yoshimi
event = {
	id =242019
	trigger = { flag = [oninwar_hosokawa] }
	random = no
	country = NIP
	name = "EVENTNAME242019" #Yamana's General, Ashikaga Yoshimi
	desc = "EVENTHIST242019"
	#-#After bouncing around for many years, Ashikaga Yoshimi finally ended up as one of Yamana's top generals in 1469. This allowed the Ashikaga Yoshimasa to petition the Emperor to strip him of all his court titles and name him a rebel. In addition this also left him the ability to name his 4-year-old son of Tomi-ko, Yoshihisa, as heir. Thus the Onin War went from being a war of political manuvering between Yamana and Hosokawa to a war for the succession of the throne.

	date = { day = 1 month = january year = 1469 }
	offset = 30
	deathdate = { day = 29 month = december year = 1469 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = revolt which = 686 } #Kansai
	}
}
#(1473) Ashikaga Yoshimasa's Retirement
event = {
	id = 242027
	trigger = {
		monarch = 097504 #Ashikaga Yoshimasa
		flag = [oninwar_yamana]
	}
	random = no
	country = NIP
	name = "EVENTNAME242027" #Ashikaga Yoshimasa's Retirement
	desc = "EVENTHIST242027"
	#-#As the Onin War continued on after the deaths of the two generals who had sparked it, Ouchi Masahiro stayed in Kantou near Kyoto demanding Yoshimi and Yoshimasa resolve their differances on the line of succession. He even went so far as to defy a direct order from the Shogun to lay down his arms, even with the promise of special teatment. As time went on though, Ashikaga Yoshimasa grew increasingly disdainful of ruling and abdicated, though succession was still in dispute for a time.

	date = { day = 19 month = december year = 1473 }

	action_a = {
		name = "ACTIONNAME242027A" #Abdicate and appoint Yoshihisa
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097505 } #Ashikaga Yoshihisa
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_yamana] }
	}
	action_b = {
		name = "ACTIONNAME242027B" #Abdicate and appoint Yoshimi
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097506 } #Ashikaga Yoshimi °
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_yamana] }
	}
	action_c = {
		name = "ACTIONNAME242027C" #Remain in power
		command = { type = stability value = -2 }
	}
}
#(1473) Ashikaga Yoshimasa's Retirement
event = {
	id = 242021
	trigger = {
		monarch = 097504 #Ashikaga Yoshimasa
		flag = [oninwar_hosokawa]
	}
	random = no
	country = NIP
	name = "EVENTNAME242021" #Ashikaga Yoshimasa's Retirement
	desc = "EVENTHIST242021"
	#-#As the Onin War continued on after the deaths of the two generals who had sparked it, Ouchi Masahiro stayed in Kantou near Kyoto demanding Yoshimi and Yoshimasa resolve their differances on the line of succession. He even went so far as to defy a direct order from the Shogun to lay down his arms, even with the promise of special teatment. As time went on though, Ashikaga Yoshimasa grew increasingly disdainful of ruling and abdicated, though succession was still in dispute for a time.

	date = { day = 19 month = december year = 1473 }

	action_a = {
		name = "ACTIONNAME242021A" #Abdicate and appoint Yoshimi
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097506 } #Ashikaga Yoshimi °
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_hosokawa] }
	}
	action_b = {
		name = "ACTIONNAME242021B" #Abdicate and appoint Yoshihisa
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097505 } #Ashikaga Yoshihisa
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_hosokawa] }
	}
	action_c = {
		name = "ACTIONNAME242021C" #Remain in power
		command = { type = stability value = -2 }
	}
}
#(1477) Ashikaga Yoshimasa's Retirement
event = {
	id = 242020
	trigger = {
		monarch = 097504 #Ashikaga Yoshimasa
		flag = [oninwar_yamana]
	}
	random = no
	country = NIP
	name = "EVENTNAME242020" #Ashikaga Yoshimasa's Retirement
	desc = "EVENTHIST242020"
	#-#As the Onin War continued on after the deaths of the two generals who had sparked it, Ouchi Masahiro stayed in Kantou near Kyoto demanding Yoshimi and Yoshimasa resolve their differances on the line of succession. He even went so far as to defy a direct order from the Shogun to lay down his arms, even with the promise of special teatment. As time went on though, Ashikaga Yoshimasa grew increasingly disdainful of ruling and abdicated, though succession was still in dispute for a time.

	date = { day = 16 month = december year = 1477 }

	action_a = {
		name = "ACTIONNAME242020A" #Abdicate and appoint Yoshihisa
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097505 } #Ashikaga Yoshihisa
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_yamana] }
	}
	action_b = {
		name = "ACTIONNAME242020B" #Abdicate and appoint Yoshimi
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097506 } #Ashikaga Yoshimi °
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_yamana] }
	}
	action_c = {
		name = "ACTIONNAME242020C" #Remain in power
		command = { type = stability value = -3 }
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_yamana] }
	}
}
#(1477) Ashikaga Yoshimasa's Retirement
event = {
	id = 242022
	trigger = {
		monarch = 097504 #Ashikaga Yoshimasa
		flag = [oninwar_hosokawa]
	}
	random = no
	country = NIP
	name = "EVENTNAME242022" #Ashikaga Yoshimasa's Retirement
	desc = "EVENTHIST242022"
	#-#As the Onin War continued on after the deaths of the two generals who had sparked it, Ouchi Masahiro stayed in Kantou near Kyoto demanding Yoshimi and Yoshimasa resolve their differances on the line of succession. He even went so far as to defy a direct order from the Shogun to lay down his arms, even with the promise of special teatment. As time went on though, Ashikaga Yoshimasa grew increasingly disdainful of ruling and abdicated, though succession was still in dispute for a time.

	date = { day = 16 month = december year = 1477 }

	action_a = {
		name = "ACTIONNAME242022A" #Abdicate and appoint Yoshimi
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097506 } #Ashikaga Yoshimi °
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_hosokawa] }
	}
	action_b = {
		name = "ACTIONNAME242022B" #Abdicate and appoint Yoshihisa
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 1 value = 24 }
		command = { type = sleepmonarch which = 097504 } #Ashikaga Yoshimasa
		command = { type = wakemonarch which = 097505 } #Ashikaga Yoshihisa
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_hosokawa] }
	}
	action_c = {
		name = "ACTIONNAME242022C" #Remain in power
		command = { type = stability value = -3 }
		command = { type = province_revoltrisk which = 685 value = -1 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -1 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -1 } #Shikoku
		command = { type = clrflag which = [oninwar_hosokawa] }
	}
}
#End of Onin War Sequence
#-----------------------------------------------------------------------------------------------

#(1483-1484) Ginkakuji construction starts - Flavor
event = {
	id = 6958
	random = no
	country = NIP
	name = "EVENTNAME6958" #Ginkakuji construction starts
	desc = "EVENTHIST6958"
	#-#Shogun Ashikaga Yoshimasa intended Ginkakuji (also called the Silver Pavilion) to be a complement to Kinkakuji (the Golden Pavilion) built by Ashikaga Yoshimitsu. Yoshimasa used the pavilion to develop the Higashiyama culture. The construction diverted the Shogun's attention from the events of state which lead to a flowering of innovation at the expense of the unity of the state.

	date = { day = 1 month = june year = 1483 }
	offset = 180
	deathdate = { day = 1 month = june year = 1484 }

	action_a = {
		name = "OK"
		command = { type = infra value = 100 }
		command = { type = treasury value = -300 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = Innovative value = 2 }
		command = { type = gainmanufactory which = 686	value = luxury } #Kansai
	}
}

#(1480-1484) Yamashiro-Ikki
event = {
	id = 242023
	random = no
	country = NIP
	name = "EVENTNAME242023" #Yamashiro-Ikki
	desc = "EVENTHIST242023"
	#-#The Onin War brought much devastation throughout Kyoto and most of the barriers were destroyed. A couple years after the war, taxes were levied to rebuild the palace and several years later Tomi-ko pushed for the reinstallment of the barriers. However, the Yamashiro-Ikki threatened reprisals and the idea was soon dropped.

	date = { day = 1 month = january year = 1480 }
	offset = 30
	deathdate = { day = 1 month = january year = 1484 }

	action_a = {
		name = "ACTIONNAME242023A" #Don't Reconstruct the Barriers
		command = { type = stability value = 2 }
		command = { type = treasury value = 50 }
	}
	action_b = {
		name = "ACTIONNAME242023B" #Construct the Barriers Anyway
		command = { type = stability value = -1 }
		command = { type = treasury value = 50 }
		command = { type = infra value = 50 }
		command = { type = trade value = -50 }
		command = { type = provincetax which = 686 value = 1 } #Kansai
		command = { type = revolt which = 686 } #Kansai
	}
}

#(1488) Kaga Ikko-ikki
event = {
	id = 6944
	trigger = {
		domestic = { type = INNOVATIVE value = 3 }
	}
	random = no
	country = NIP
	name = "EVENTNAME6944" #Kaga Ikko-ikki
	desc = "EVENTHIST6944"
	#-#The peasants and the monks have risen against the nobles. The combination of the masses of peasants and the skill of the Sohei warrior-monks has destroyed the noble's army and they now threaten the Shogunate. We must destroy them as quickly as possible or submit to their demands!

	date = { day = 1 month = june year = 1488 }
	offset = 10
	deathdate = { day = 29 month = december year = 1488 }

	action_a = {
		name = "ACTIONNAME6944A" #Enforce the ancient Japanese values
		command = { type = stability value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = trade value = -300 }
	}
	action_b = {
		name = "ACTIONNAME6944B" #Crush the Ikko-ikki
		command = { type = stability value = -3 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = religiousrevolt which = 685 } #Kanto
		command = { type = revoltrisk which = 48 value = 10 }
	}
}

#(1491) Ashikaga Masatomo murdered by his own son - Flavor
event = {
	id = 6956
	trigger = { owned = { province = 685 data = -1 } }
	random = no
	country = NIP
	name = "EVENTNAME6956" #Ashikaga Masatomo murdered by his own son
	desc = "EVENTHIST6956"
	#-#Ashikaga Chachamaru has killed his father Masatomo his mother and his younger brother! What is Nippon coming to? The lord of Izu Ashikaga Masatomo decided to replace Chachamaru as his heir and place him in a monastery. Chachamaru responded by killing his entire family! He forced the family retainers to swear loyality to him and has since then entrenched himself in Horigoe castle.

	date = { day = 1 month = march year = 1491 }
	offset = 90
	deathdate = { day = 29 month = december year = 1491 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
	}
}

#(1493) Ise Shinkuro slays the murderer - Flavor
event = {
	id = 6957
	trigger = {
		event = 6956
		owned = { province = 685 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME6957" #Ise Shinkuro slays the murderer
	desc = "EVENTHIST6957"
	#-#An Imagawa Yoshitada vassal called Ise Shinkuro took upon himself to right the wrongs and bring justice to the world. He attacked the murderous Chachamaru and layed siege to his castle. He then forced Chachamaru to commit suicide and has taken the castle and its garrison as his own. He has proven that man of the people can possess virtue and military prowess equal to the nobles.

	date = { day = 1 month = march year = 1493 }
	offset = 90
	deathdate = { day = 29 month = december year = 1493 }

	action_a = {
		name = "OK"
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
}

#(1493-1494) Ashikaga Yoshitane is driven from the throne
event = {
	id = 242028
	random = no
	country = NIP
	name = "EVENTNAME242028" #Ashikaga Yoshitane is driven from the throne
	desc = "EVENTHIST242028"
	#-#Seeking more and more power, Yoshitane began to face serious conflicts of interests with Hosokawa Masamoto. Thus in 1493 Hosokawa Masamoto attempted to oust Yoshitane from the position as shogun in Kyoto and put in his place Ashikaga Yoshizumi as a puppet shogun. After this coup, the shogunate decisively lost its weakened influence and military power across the country. Local feudal lords began conflicts each other to defend what they thought of as their rights by using force if necessary. This incident was the beginning of the so-called Sengoku Period.

	date = { day = 29 month = june year = 1493 }
	offset = 10
	deathdate = { day = 27 month = december year = 1494 }

	action_a = {
		name = "ACTIONNAME242028A" #Ashikaga Yoshizumi as Shogun
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = province_revoltrisk which = 684 value = 2 } #Tohoku
		command = { type = province_revoltrisk which = 685 value = 10 } #Kantou
		command = { type = province_revoltrisk which = 686 value = 25 } #Kansai
		command = { type = province_revoltrisk which = 687 value = 10 } #Shikoku
		command = { type = province_revoltrisk which = 688 value = 8 } #Kyushu
		command = { type = sleepmonarch which = 097507 } #Ashikaga Yoshitane
		command = { type = wakemonarch which = 097508 } #Ashikaga Yoshizumi
	}
	action_b = {
		name = "ACTIONNAME242028B" #Ashikaga Yoshitane as Shogun
		command = { type = stability value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = province_revoltrisk which = 684 value = 2 } #Tohoku
		command = { type = province_revoltrisk which = 685 value = 10 } #Kantou
		command = { type = province_revoltrisk which = 686 value = 10 } #Kansai
		command = { type = province_revoltrisk which = 687 value = 10 } #Shikoku
		command = { type = province_revoltrisk which = 688 value = 8 } #Kyushu
		command = { type = sleepevent which = 242029 } #NIP: Ashikaga Yoshitane reclaims his title by force
		command = { type = sleepevent which = 242031 } #NIP: Ashikaga Yoshitane fails to reclaim his title
	}
}

#(1495) Ise Shinkuro takes Odawara Castle
event = {
	id = 6945
	trigger = {
		owned = { province = 685 data = -1 } #Kanto
	}
	random = no
	country = NIP
	name = "EVENTNAME6945" #Ise Shinkuro takes Odawara Castle
	desc = "EVENTHIST6945"
	#-#Ise Shinkuro has by guile and trickery taken control of Odawara castle. He befriended the lord of the castle Omori Fujiyori and invited him on a hunting trip. The diversion allowed him to kill the lord and take the castle with ease. He has had his son, Ujitsuna, marry a descendent of the illustrious but almost extinct Hojo family and now calls himself Hojo Soun. Ise has since promoted good relationships with the local peasants and merchants, while gradually extending his control over Kanto.

	date = { day = 1 month = july year = 1495 }
	offset = 10
	deathdate = { day = 29 month = december year = 1495 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = provincetax which = 685 value = 2 } #Kanto
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
}

#(1507) Assassination of Hosokawa Masamoto
event = {
	id = 6976
	random = no
	country = NIP
	name = "EVENTNAME6976" #Assassination of Hosokawa Masamoto
	desc = "EVENTHIST6976"
	#-#The assassination of Kanrei Hosokawa Masamoto by his adopted son Sumiyuki lead to a bitter fight between two factions, lead by Hosokawa Takakuni and Hosokawa Sumimoto, in the Hosokawa family over the position of Kanrei. It mirrored the earlier conflict within the Hatakeyama family. The ultimate result was an almost complete destruction of the Hosokawa family. They became vassals to earlier Hosokawa vassals.

	date = { day = 15 month = june year = 1507 }
	offset = 10
	deathdate = { day = 29 month = december year = 1507 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
}

#(1508-1511) Ashikaga Yoshitane reclaims his title by force
event = {
	id = 242029
	trigger = {
		owned = { province = 686 data = -1 }
		NOT = { control = { province = 686 data = -1 } }
	}
	random = no
	country = NIP
	name = "EVENTNAME242029" #Ashikaga Yoshitane reclaims his title by force
	desc = "EVENTHIST242029"
	#-#After being forced from his position by Hosokawa Masamoto, Ashikaga Yoshitane sought to reclaim his previous title. Eventually he was able to do so by force. With no real rival, Masamoto had no choice but to accept him.

	date = { day = 16 month = april year = 1508 }
	offset = 5
	deathdate = { day = 14 month = august year = 1511 }

	action_a = {
		name = "ACTIONNAME242029A" #Reclaim the title of Seii Taishogun!
		command = { type = stability value = 1 }
		command = { type = vp value = 10 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = sleepmonarch which = 097508 } #Ashikaga Yoshizumi
		command = { type = wakemonarch which = 097509 } #Ashikaga Yoshitane
		command = { type = province_revoltrisk which = 686 value = -15 } #Kansai
		command = { type = sleepevent which = 242031 } #NIP: Ashikaga Yoshitane fails to reclaims his title by force
	}
}

#(1511) Ashikaga Yoshitane fails to reclaim his title
event = {
	id = 242031
	trigger = {
		event = 242028
		NOT = { event = 242029 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242031" #Ashikaga Yoshitane fails to reclaim his title
	desc = "EVENTHIST242031"
	#-#After being forced from his position by Hosokawa Masamoto, Ashikaga Yoshitane sought to reclaim his previous title. He was able to do so by force but failed.

	date = { day = 1 month = september year = 1511 }

	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 686 value = -15 } #Kansai
	}
}

#(1521) Ashikaga Yoshitane flees
event = {
	id = 242030
	trigger = {
		OR = {
			monarch = 097507 #Ashikaga Yoshitane
			monarch = 097509 #Ashikaga Yoshitane
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242030" #Ashikaga Yoshitane flees
	desc = "EVENTHIST242030"
	#-#Continuing to struggle to keep his title as Shogun, Ashikaga eventually gave up and fled to Awaji Island leaving Yoshizumi's son, Yoshiharu to rule as shogun.

	date = { day = 25 month = december year = 1521 }

	action_a = {
		name = "ACTIONNAME242030A" #Run away
		command = { type = stability value = -1 }
		command = { type = vp value = -20 }
	}
	action_b = {
		name = "ACTIONNAME242030B" #Stay around and fight
		command = { type = stability value = -1 }
		command = { type = MIL which = -2 value = 27 } # New at 1
		command = { type = DIP which = -2 value = 27 } # New at 6
		command = { type = ADM which = -2 value = 27 } # New at 7
	}
}

#(1522-1527) Decline of Oushu Tandai in Tohoku
event = {
	id = 242063
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku
		OR = {
			control = { province = 684 data = -1 } #Tohoku
			control = { province = 684 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242063" #Decline of Oushu Tandai in Tohoku
	desc = "EVENTHIST242063"
	#-#Though the region was relatively stabilized, the situation began to change since the end of the 16th century. Osaki clan monopolized an authoritative post called 'Oushu Tandai' or Shogun's Deputy in Tohoku since 1400, but local lords which got much stronger began to overwhelm the clan with the lost of central authority. Eventually in 1522, Date Tanemune, a prominent lord in the region, was appointed to 'Shugo' or Governor of Mutsu Province over Osaki's head. Then, the Oushu Tandai system was virtually abolished. Osaki clan was reduced to a local lord defending only his own territory.

	date = { day = 1 month = april year = 1522 }
	offset = 30
	deathdate = { day = 29 month = march year = 1527 }

	action_a = {
		name = "OH_NO"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = population which = 684 value = -1000 } #Tohoku
		command = { type = province_revoltrisk which = 684 value = 5 }
	}
}

#(1541-1546) Firearms production comes to Japan
event = {
	id = 242032
	trigger = { exists = POR }
	random = no
	country = NIP
	name = "EVENTNAME242032" #Firearms production comes to Japan
	desc = "EVENTHIST242032"
	#-#With the arrival of Portuguese merchants, in 1541 Firearms were first introduced into Japan. Shortly thereafter a merchant from the port city of Sakai learned how to make them somewhere in the region of Kyushu. From this point on, Firearms became standard issue in combat in Japan

	date = { day = 1 month = january year = 1541 }
	offset = 10
	deathdate = { day = 1 month = january year = 1546 }

	action_a = {
		name = "OK"
		command = { type = domestic which = offensive value = 1 }
		command = { type = land value = 1000 }
		command = { type = gainmanufactory which = 687 value = weapons } #Shikoku
		command = { type = art which = 687 value = 10 } #Shikoku
	}
}

#(1542-1546) Conflicts within Chugoku
event = {
	id = 242080
	trigger = {
		owned = { province = 686 data = -1 } #Kansai (Bingo)
		OR = {
			control = { province = 686 data = -1 } #Kansai
			control = { province = 686 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242080" #Conflicts within Chugoku
	desc = "EVENTHIST242080"
	#-#In the early Sengoku Period, local feudal lords in Aki (today's Hiroshima) decided to band together to survive between two regional power, eastern Amago clan and western Ouchi. The lords recognized Mori clan, the most powerful among them, as the leader. In 1542, Mori Motonari reluctantly assisted Ouchi to attack on Amago. At first they succeeded to intrude into enemy's territory, but then, they suffered defeats in a row. Finally, They managed to return safely. However, Mori decided to push their coalition up to the position on par with neighbors to defend themselves from playing into the hands of other powers.

	date = { day = 11 month = june year = 1542 }
	offset = 30
	deathdate = { day = 20 month = july year = 1546 }

	action_a = {
		name = "CURSES"
		command = { type = domestic which = centralization value = -1 }
		command = { type = stability value = -1 }
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 }
		command = { type = revolt which = 686 }
	}
}

#(1542-1548) Date clan's great internal feud in Tohoku
event = {
	id = 242064
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku
		OR = {
			control = { province = 684 data = -1 } #Tohoku
			control = { province = 684 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242064" #Date clan's great internal feud in Tohoku
	desc = "EVENTHIST242064"
	#-#Date tanemune, who was a local prominent lord at that time, and his son, Harumune, were opposed each other over a diplomatic issue in 1542. It developed into great feud across the region involving neighboring lords for the next six years. Finally Harumune managed to win and inherited the family estate, but the clan had been greatly weakened during the feud. Then it led to more and more conflicts in the region for next decades.

	date = { day = 1 month = june year = 1542 }
	offset = 30
	deathdate = { day = 29 month = september year = 1548 }

	action_a = {
		name = "CURSES"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 }
		command = { type = revolt which = 684 }
		command = { type = province_revoltrisk which = 684 value = 3 }
	}
}

#(1546-1552) Liberalization of Markets and Guilds in Kannonji
event = {
	id = 242084
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Owari)
		OR = {
			control = { province = 685 data = -1 } #Kanto
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242084" #Liberalization of Markets and Guilds in Kannonji
	desc = "EVENTHIST242084"
	#-#In 1549, Rokkaku clan which ruled Oumi (today's Shiga) brought in a series of economic policies, called 'Rakuichi Rakuza' or Liberalization of Markets and Guilds, for the first time in Japan. In an effort to help stimulate the local economy, it reduced taxes for merchants and deregulated its economy to attract more merchants and artisans from outside the domain. Later Oda Nobunaga and Toyotomi Hideyoshi also introduced this idea on a larger scale across their sphere of influence.

	date = { day = 21 month = january year = 1546 }
	offset = 30
	deathdate = { day = 20 month = january year = 1552 }

	action_a = {
		name = "ACTIONNAME242084A" #Promote economic growth
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = trade value = 300 }
		command = { type = provincetax which = 685 value = 1 } #Kanto
		command = { type = population which = 685 value = 2000 }
	}
	action_b = {
		name = "ACTIONNAME242084B" #Protect old rights
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = trade value = -300 }
		command = { type = stability value = 1 }
	}
}

#(1546-1548) Great victory of Hojo clan in central Kanto
event = {
	id = 242074
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Sagami)
		OR = {
			control = { province = 685 data = -1 } #Kanto
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242074" #Great victory of Hojo clan in central Kanto
	desc = "EVENTHIST242074"
	#-#By the middle of 16th century, Hojo clan steadily extended power over central Kanto while other local lords wasted time on their disputes. Having just realized the fact, almost all lords in Kanto joined together against Hojo. In 1545, 70,000 allied troops besieged Kawagoe Castle which was a Hojo's strategic stronghold in central Kanto. In response, Hojo's generals worked out a surprise attack plan. On the night of 19 May 1546, 8,000 soldiers assaulted the besieging army. The attack was so unexpected that the allied force had to be collapsed once and for all. There were few casualties on Hojo side while 13,000 allied soldiers were killed in action. As a result, the alliance had to dissolve while Hojo ensured future hegemony in Kanto. \n Also, Uesugi Norimasa, the head of a defeated clan which was once prominent in the region, was forced to take refuge with Nagao clan which was a branch of him in Echigo. In 1561, he ceded his title of 'Kanto Kanrei' or Shogun's Deputy of Kanto and his family name to Nagao Kagetora, the clan's head. Later he became well known as Uesugi Kenshin.

	date = { day = 18 month = may year = 1546 }
	offset = 30
	deathdate = { day = 29 month = november year = 1548 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = revolt which = 685 } #Kanto (Sagami)
		command = { type = revolt which = 685 }
		command = { type = revolt which = 685 }
		command = { type = INF which = 685 value = 8000 }
		command = { type = population which = 685 value = 3000 }
		command = { type = province_revoltrisk which = 685 value = -4 }
	}
}

#(1549) Francis Xavier arrives in Japan
event = {
	id = 6968
	random = no
	country = NIP
	name = "EVENTNAME6968" #Francis Xavier arrives in Japan
	desc = "EVENTHIST6968"
	#-#Portuguese traders first reached Japan in 1543 and eventually became important middlemen in the silk trade between China and Japan, operating out of Macao. In 1549, Francis Xavier, a member of the Jesuit order and future saint, arrived in Japan and began making converts to Christianity. This resulted in the establishment of a Jesuit mission in Japan, which proved invaluable as an intermediary for the Portuguese merchants and which also was successful in converting substantial numbers of Japanese commoners and Daimyo, reaching about 150,000 converts by 1587. The merchants also brought with them improved firearms that were soon adopted by the Japanese.

	date = { day = 15 month = august year = 1549 }
	offset = 10
	deathdate = { day = 29 month = december year = 1549 }

	action_a = {
		name = "ACTIONNAME6968A" #The Jesuits Establish Themselves
		command = { type = domestic which = mercantilism value = -2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = land value = 500 }
		command = { type = relation which = POR value = 100 }
		command = { type = relation which = PAP value = 100 }
	}
}

#(1550-1552) Otomo clan's internal feud in Kyushu
event = {
	id = 242068
	trigger = {
		owned = { province = 688 data = -1 } #kyushu
		OR = {
			control = { province = 688 data = -1 } #Kyushu
			control = { province = 688 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242068" #Otomo clan's internal feud in Kyushu
	desc = "EVENTHIST242068"
	#-#Otomo Yoshiaki (1502-1550) had recognized his son Yoshishige, who was well known as Otomo Sorin, as the heir. However, later he changed his mind and attempted to make his an illegitimate child, Shioichimaru the successor, then Vassals were split into two factions and conflicted each other. Finally Shioichimaru was assassinated with his parents in their asleep in 1550. Thus Yoshishige managed to inherit the family estate but the incident left serious after effects. The unstabilized situation continued for a few years.

	date = { day = 28 month = february year = 1550 }
	offset = 30
	deathdate = { day = 28 month = february year = 1552 }

	action_a = {
		name = "OH_NO"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 }
		command = { type = revolt which = 688 }
		command = { type = province_revoltrisk which = 688 value = 2 } #Kyushu
	}
}

#(1553) Conflicts between Takeda and Uesugi
event = {
	id = 242075
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku (Echigo)
		owned = { province = 685 data = -1 } #Kanto (Shinano)
		OR = {
			control = { province = 684 data = -1 }
			control = { province = 684 data = REB }
		}
		OR = {
			control = { province = 685 data = -1 }
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242075" #Conflicts between Takeda and Uesugi
	desc = "EVENTHIST242075"
	#-#Takeda Shingen, who ruled from Kai (today's Yamanashi) to southern Shinano (today's Nagano), began fierce conflicts with Uesugi Kenshin, who based on Echigo (today's Niigata), over northern Shinano from 1553. Many Japanese writers have been inspired by their fights, called the Battles of Kawanakajima.\n \n However, if either of them had focused on advancing on Kyoto instead of wasting his precious time on such regional conflicts until 1564, he might have become able to prevent Oda Nobunaga from his rise...

	date = { day = 1 month = february year = 1553 }
	offset = 20
	deathdate = { day = 29 month = august year = 1553 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revolt which = 685 } #Kanto (Shinano)
		command = { type = revolt which = 685 }
		command = { type = revolt which = 685 }
		command = { type = province_revoltrisk which = 685 value = 2 }
	}
	action_b = {
		name = "ACTIONNAME242075B" #Support Takeda
		command = { type = treasury value = -50 }
		command = { type = stability value = -1 }
		command = { type = CAV which = 685 value = 5000 } #Kanto (Shinano)
		command = { type = sleepleader which = 097807 } #Uesugi Kenshin (NIP)
		command = { type = revolt which = 684 } #Tohoku (Echigo)
		command = { type = revolt which = 684 }
		command = { type = revolt which = 684 }
		command = { type = province_revoltrisk which = 685 value = 2 }
	}
	action_c = {
		name = "ACTIONNAME242075C" #Support Uesugi
		command = { type = treasury value = -50 }
		command = { type = stability value = -1 }
		command = { type = CAV which = 684 value = 5000 } #Tohoku (Echigo)
		command = { type = sleepleader which = 097806 } #Takeda Shingen (NIP)
		command = { type = revolt which = 685 } #Kanto (Shinano)
		command = { type = revolt which = 685 }
		command = { type = revolt which = 685 }
		command = { type = province_revoltrisk which = 685 value = 2 }
	}
}

#(1559-1561) Regional unification of northern Kyushu
event = {
	id = 242069
	trigger = {
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242069" #Regional unification of northern Kyushu
	desc = "EVENTHIST242069"
	#-#In 1551, Ouch clan which also ruled a part of northern Kyushu regions was taken over by a traitorous vassal, Sue Harukata. Otomo Sorin seized the opportunity to turn his former enemies into his retainers. As a result, he ensured to rule the northeastern Kyushu including Hakata, a prosperous commercial city. Then, he gradually extended power over the surrounding area while he approached the shogunate to get vindication of it. In 1559, He was appointed to 'Kyushu Tandai' or Shogun's Deputy in Kyushu. Even if it was in name only, it legitimized his rule over almost all of northern Kyushu at that time.

	date = { day = 1 month = february year = 1559 }
	offset = 30
	deathdate = { day = 29 month = november year = 1561 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = population which = 688 value = 2000 } #Kyushu
		command = { type = province_revoltrisk which = 688 value = -3 }
	}
}

#(1560-1562) Battle of Okehazama
event = {
	id = 242076
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Owari)
		OR = {
			control = { province = 685 data = -1 } #Kanto
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242076" #Battle of Okehazama
	desc = "EVENTHIST242076"
	#-#This is the most famous, successful surprise attack in Japan, which was fought on 12 June 1560. Imagawa Yoshimoto, who based on Suruga (Today's eastern Shizuoka), focused on westward since he allied with northern Takeda and eastern Hojo clan in 1554. Also, he was the most powerful daimyo in the region while Oda clan was minor one which had just managed to pacify family infighting. Thus, no one doubted Imagawa's victory when he advanced on the west with 10,000-25,000 soldiers in 1560. However, on hearing about the enemy troops rested throughout a narrow valley near Okehazama, Oda Nobunaga decided to make a sortie with only 2,500 soldiers, rejecting common reactions like taking a strategy of exhaustion or making a humiliating peace. Arriving at the head of the valley, he ordered to assault just the heart of enemy's headquarters. This attack achieved stunning success: He succeeded to kill Imagawa Yoshimoto himself and miraculously won the battle! As a result, the situation completely reversed and Oda began to expand rapidly his influence. Another important effect was about Tokugawa Ieyasu, who based on Mikawa (today's eastern Aichi). He became independent from Imagawa, and then allied with Oda.

	date = { day = 11 month = june year = 1560 }
	offset = 30
	deathdate = { day = 20 month = july year = 1562 }

	action_a = {
		name = "MARVELLOUS"
		command = { type = domestic which = innovative value = 1 }
		command = { type = revolt which = 685 } #Kanto (Owari)
		command = { type = revolt which = 685 }
		command = { type = revolt which = 685 }
		command = { type = INF which = 685 value = 5000 }
	}
}

#(1565) Assassination of Shogun Ashikaga Yoshiteru
event = {
	id = 6979
	random = no
	country = NIP
	name = "EVENTNAME6979" #Assassination of Shogun Ashikaga Yoshiteru
	desc = "EVENTHIST6979"
	#-#The Ashikaga Shogunate was completely under the thumb of the Miyoshi Clan who had taken over as the real force in Kansai. The Shogun Ashikaga Yoshiteru was not satisfied with the situation and therefore attempted to break out and reaffirm the Shogunate's authority. He was therefore attacked in his castle on the orders of Miyoshi Chokei. Yoshiteru's style of defending himself was very distinctive. He prepared to fight by sticking swords into the floor. They were then used to replace the swords he broke during combat. Yoshiteru was eventually overcome and forced to commit suicide.

	date = { day = 19 month = may year = 1565 }
	offset = 10
	deathdate = { day = 19 month = june year = 1565 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
}

#(1566-1568) Regional unification of Chugoku
event = {
	id = 242081
	trigger = {
		owned = { province = 686 data = -1 } #Kansai (Bingo)
		control = { province = 686 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242081" #Regional unification of Chugoku
	desc = "EVENTHIST242081"
	#-#By the 1560s, once mighty Ouchi clan had been fully declined because of betrayals and defeats. Then, the Chugoku region had divided to two regional powers: Mori and Amago clan. When Amago Haruhisa, a capable family head of Amago, died in 1560, Mori decided to seize the opportunity to abolish them once and for all. Finally in 1566, Mori managed to capture enemy's stronghold in Iwami (today's Shimane) and force Amago into submission and united the whole Chugoku region. After that, Mori attempted to conquer northern Kyushu which once Ouchi had ruled over, but it ended up without good result.

	date = { day = 1 month = november year = 1566 }
	offset = 30
	deathdate = { day = 29 month = november year = 1568 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = naval value = 300 }
		command = { type = population which = 686 value = 3000 } #Kansai
		command = { type = province_revoltrisk which = 686 value = -4 }
	}
}

#(1568-1570) Regional unification of northern Tohoku
event = {
	id = 242065
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku
		control = { province = 684 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242065" #Regional unification of northern Tohoku
	desc = "EVENTHIST242065"
	#-#Nanbu Harumasa (1517-82) was a family head of Nanbu clan which was prominent in the northern Tohoku region at the period. He got neighboring small lords on his side one by one through diplomatic and military ways. He managed to become the leading lord in northern Tohoku by 1568, reaching the peak of the clan's history.

	date = { day = 1 month = february year = 1568 }
	offset = 30
	deathdate = { day = 29 month = november year = 1570 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = population which = 684 value = 3000 } #Tohoku
		command = { type = province_revoltrisk which = 684 value = -5 }
	}
}

#(1568-1569) Oda has taken Capital
event = {
	id = 6922
	trigger = {
		event = 242028 #NIP: Ashikaga Yoshitane is driven from the throne
	}
	random = no
	country = NIP
	name = "EVENTNAME6922" #Oda has taken capital
	desc = "EVENTHIST6922"
	#-#Oda has taken capital and now seems to have assumed control over the Kansai area.

	date = { day = 1 month = march year = 1568 }
	offset = 30
	deathdate = { day = 29 month = december year = 1569 }

	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 686 value = -10 } #Kansai
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = stability value = -1 }
		command = { type = provincetax which = 685 value = 2 } #Kanto
	}
}

#(1570-1576) Coalition against Oda
event = {
	id = 242082
	trigger = {
		event = 6922 #NIP: Oda has taken capital
		owned = { province = 686 data = -1 } #Kansai (Yamashiro)
		OR = {
			control = { province = 686 data = -1 } #Kansai
			control = { province = 686 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242082" #Coalition against Oda
	desc = "EVENTHIST242082"
	#-#When he had taken Kyoto, Oda Nobunaga promoted Ashikaga Yoshiaki as a puppet Shogun. Thereafter the shogunate had been free from being bullied as long as it didn't argue with Oda. However, Yoshiaki began to challenge Oda's authority because he felt frustration with his position. Finally in 1570, he openly called for anti-Oda faction to unite for his cause. Responding to his call, many lords including former allies of Oda organized the alliance against him. On the verge of a great victory, Oda found himself in a difficult situation.

	date = { day = 1 month = february year = 1570 }
	offset = 30
	deathdate = { day = 29 month = november year = 1576 }

	action_a = {
		name = "ACTIONNAME242082A" #Side with Oda
		command = { type = stability value = -3 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = province_revoltrisk which = 686 value = 10 } #Kansai
		command = { type = revoltrisk which = 72 value = 5 }
	}
}

#(1570-1574) Nagashima Ikko-ikki
event = {
	id = 242077
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Owari)
		OR = {
			control = { province = 685 data = -1 } #Kanto
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242077" #Nagashima Ikko-ikki
	desc = "EVENTHIST242077"
	#-#Japanese 'Ikki' meant not only just an uprising but also a league or bond among a certain social classes. During the Sengoku Period, farmers and local feudal lords often formed such Ikki to defend what they thought of as their rights. Sometimes they went so far as to expel their helpless lord and to achieve self-governance. Among these Ikki, 'Ikko-ikki' or Single-minded Leagues which gathered around Ikko sect, a popular militant Buddhist order centered on Hongan-ji temple much annoyed almost all daimyos because of its fearless fighting style and good organizational skills. \n \n In 1570, an Ikko-ikki rose a revolt against Oda in Ise-Nagashima (today's northern Mie). Cooperating with some clans which had been expelled from its domain by Oda, they made a strong stand against Oda's invasion and governed themselves until finally Oda managed to exterminate them without mercy in 1574.

	date = { day = 1 month = september year = 1570 }
	offset = 30
	deathdate = { day = 28 month = september year = 1574 }

	action_a = {
		name = "ACTIONNAME6944B" #Crush the Ikko-ikki
		command = { type = domestic which = innovative value = 1 }
		command = { type = stability value = -1 }
		command = { type = trade value = -200 }
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 }
		command = { type = revolt which = 685 }
	}
}

#(1571-1573) Betrayal of Nanbu clan's vassal in northern Tohoku
event = {
	id = 242066
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku
		OR = {
			control = { province = 684 data = -1 } #Tohoku
			control = { province = 684 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242066" #Betrayal of Nanbu clan's vassal in northern Tohoku
	desc = "EVENTHIST242066"
	#-#Nanbu clan was a sort of coalition of local lords big and small with Nanbu family as the leader, like different daimyo clans of the same period. In 1571, a vassal Oura Tamenobu suddenly rose in revolt against the family and broke away from them occupying a few Northern provinces. This treachery damaged the clan's solidarity and the stability in the region.

	date = { day = 1 month = february year = 1571 }
	offset = 20
	deathdate = { day = 29 month = november year = 1573 }

	action_a = {
		name = "DARN"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 }
		command = { type = revolt which = 684 }
	}
}

#(1571) The fate of Enryakuji
event = {
	id = 6975
	trigger = {
		owned = { province = 685 data = -1 } #Kanto
	}
	random = no
	country = NIP
	name = "EVENTNAME6975" #The fate of Enryakuji
	desc = "EVENTHIST6975"
	#-#Oda Nobunaga wishes to end the influence and the power of the militant buddhist orders once and for all. The Tendai sect with its centre in Enryakuji complex of about 3000 buildings was originally charged with protecting Kyoto from evil sprits. It has however built up a formidable army that it uses to raid Kyoto with or to attack rival sects. Nobunaga proposes to burn down the entire temple complex and kill anyone that opposes him within. An alternative action would be to cooperate with them in exchange for religious concessions.

	date = { day = 12 month = september year = 1571 }

	action_a = {
		name = "ACTIONNAME6975A" #Burn it down
		command = { type = domestic which = Innovative value = 2 }
		command = { type = infra value = -100 }
		command = { type = stability value = 2 }
		command = { type = losemanufactory which = 686 } #Kansai
	}
	action_b = {
		name = "ACTIONNAME6975B" #Cooperate
		command = { type = domestic which = innovative value = -2 }
		command = { type = INF which = 686 value = 15000 } #Kansai
	}
}

#(1572-1574) Regional unification of northern Kyushu
event = {
	id = 242070
	trigger = {
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242070" #Regional unification of northern Kyushu
	desc = "EVENTHIST242070"
	#-#Shimazu clan was an old-established family ruling southern Kyushu, but they are plagued by internal feuds for a long time. At last in the 1530s, a branch managed to unify the clan and swiftly began to expand their influence in the region. In 1572, they defeated neighboring Ito clan in Hyuga Province and accomplished to unify the southern Kyushu region.

	date = { day = 1 month = january year = 1572 }
	offset = 30
	deathdate = { day = 29 month = december year = 1574 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = population which = 688 value = 2000 } #Kyushu
		command = { type = province_revoltrisk which = 688 value = -3 }
	}
}

#(1573) Last Ashikaga Shogun deposed by Oda
event = {
	id = 6980
	trigger = {
		event = 6922 #NIP: Oda has taken capital
	}
	random = no
	country = NIP
	name = "EVENTNAME6980" #Last Ashikaga Shogun deposed by Oda
	desc = "EVENTHIST6980"
	#-#Even though Ashikaga Yoshiaki had established an extensive alliance against him, Oda Nobunaga managed to defeat members of it one by one. When Yoshiaki lost most of his allies, Oda decided to expel him and to end the Ashikaga Shogunate. However, Oda still had much more formidable enemies like Uesugi in Echigo and Mori in Chugoku. To reunify the country, Oda had to bring them to his knees.

	date = { day = 15 month = july year = 1573 }
	offset = 10
	deathdate = { day = 29 month = december year = 1573 }

	action_a = {
		name = "OK"
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
}

#(1574-1576) Regional unification of southern Shikoku
event = {
	id = 242078
	trigger = {
		owned = { province = 687 data = -1 } #Shikoku (Tosa)
		control = { province = 687 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242078" #Regional unification of southern Shikoku
	desc = "EVENTHIST242078"
	#-#Since the 15th century, eastern part of the island was under strong influence of central powerful clans like Hosokawa and Miyoshi, but another part of it was divided by many local feudal lords who defended his own territory. Among them there was Chosokabe clan which rooted in Tosa, today's Kochi. They managed to unite the area, and then, they sought to invade neighboring territories.

	date = { day = 1 month = february year = 1574 }
	offset = 30
	deathdate = { day = 29 month = november year = 1576 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = population which = 687 value = 2000 } #Shikoku
		command = { type = province_revoltrisk which = 687 value = -4 }
	}
}

#(1576-1582) Liberalization of Markets and Guilds in Azuchi
event = {
	id = 242085
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Owari)
		OR = {
			control = { province = 685 data = -1 } #Kanto
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242085" #Liberalization of Markets and Guilds in Azuchi
	desc = "EVENTHIST242084"
	#-#In 1549, Rokkaku clan which ruled Oumi (today's Shiga) brought in a series of economic policies, called 'Rakuichi Rakuza' or Liberalization of Markets and Guilds, for the first time in Japan. In an effort to help stimulate the local economy, it reduced taxes for merchants and deregulated its economy to attract more merchants and artisans from outside the domain. Later Oda Nobunaga and Toyotomi Hideyoshi also introduced this idea on a larger scale across their sphere of influence.

	date = { day = 21 month = june year = 1576 }
	offset = 30
	deathdate = { day = 20 month = june year = 1582 }

	action_a = {
		name = "ACTIONNAME242084A" #Promote economic growth
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = trade value = 300 }
		command = { type = provincetax which = 685 value = 1 } #Kanto
		command = { type = population which = 685 value = 3000 }
	}
	action_b = {
		name = "ACTIONNAME242084B" #Protect old rights
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = trade value = -300 }
		command = { type = stability value = 1 }
	}
}

#(1576-1580) Decisive battle over the hegemony of Kyushu
event = {
	id = 242071
	trigger = {
		OR = {
			event = 242069 #NIP: Regional unification of northern Kyushu
			event = 242070 #NIP: Regional unification of southern Kyushu
		}
		owned = { province = 688 data = -1 } #Kyushu
		OR = {
			control = { province = 688 data = -1 } #Kyushu
			control = { province = 688 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242071" #Decisive battle over the hegemony of Kyushu
	desc = "EVENTHIST242071"
	#-#By the late 1570s, Kyushu was almost divided into two powerful clans: Northern Otomo and southern Shimazu. The tension between them ran high more and more, at last they fought a fatal battle, called the Battle of Mimikawa in 1578. Historically Shimazu managed to defeat Otomo and his 30,000-40,000 men then ensured the unification of the whole region. However, if the result had been contrary, what kind of situation would have become? Otomo Sorin, the clan's head, had been attracted to Catholicism since the 1550s so deeply that he was christened as Don Francisco just before the battle. He hoped to create the Kingdom of Heaven in the region...

	date = { day = 9 month = december year = 1576 }
	offset = 30
	deathdate = { day = 13 month = november year = 1580 }

	action_a = {
		name = "ACTIONNAME242071A" #Shimazu won
		command = { type = stability value = -1 }
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 }
		command = { type = revolt which = 688 }
		command = { type = sleepevent which = 242073 } #NIP: Regional unification of Kyushu -II-
	}
	action_b = {
		name = "ACTIONNAME242071B" #Otomo won
		command = { type = stability value = -1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 }
		command = { type = revolt which = 688 }
		command = { type = sleepevent which = 242072 } #NIP: Regional unification of Kyushu -I-
		command = { type = sleepleader which = 097810 } # Shimazu Yoshihiro (NIP)
	}
}

#(1578-1582) End of the Ishiyama-Hongan-ji War
event = {
	id = 242083
	trigger = {
		owned = { province = 686 data = -1 } #Kansai (Yamashiro)
	}
	random = no
	country = NIP
	name = "EVENTNAME242083" #End of the Ishiyama-Hongan-ji War
	desc = "EVENTHIST242083"
	#-#Ikko sect was among the most powerful militant Buddhist order during this period. In 1570, they began anti-Oda action all at once and plagued the Oda-dominated region with constant social unrests, responding to their hierarch's call. To eliminate this instability factor, Oda Nobunaga attempted to capture their main stronghold, Ishiyama-Hongan-ji, a fortified temple which located in Settsu (today's Osaka). Though the conflict evolved into a war of attrition which continued until 1580, finally Hongan-ji had to seek peace after Oda succeeded to cut their maritime supply lines. Soon after the humiliating peace, Ikko sect split into two factions and rapidly declined. It also brought about a drastic fall in the frequency of religious revolts across the country.

	date = { day = 22 month = june year = 1578 }
	offset = 30
	deathdate = { day = 21 month = june year = 1582 }

	action_a = {
		name = "ACTIONNAME242083A" #Make a peace with them
		command = { type = domestic which = innovative value = -1 }
		command = { type = trade value = 300 }
		command = { type = population which = 686 value = 3000 } #Kansai
		command = { type = province_revoltrisk which = 686 value = -5 }
		command = { type = sleepevent which = 6924 } #NIP: Ikko-ikki
	}
	action_b = {
		name = "ACTIONNAME6975A" #Burn it down
		command = { type = domestic which = innovative value = 2 }
		command = { type = stability value = 1 }
		command = { type = trade value = -300 }
		command = { type = population which = 686 value = -3000 } #Kansai
		command = { type = revolt which = 686 } #Kansai
		command = { type = revolt which = 686 }
		command = { type = revolt which = 686 }
		command = { type = province_revoltrisk which = 686 value = -5 }
		command = { type = sleepevent which = 6924 } #NIP: Ikko-ikki
	}
}

#(1582-1587) Tensho Boys Mission
#by waishi
event = {
	id = 242041
	trigger = {
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 } #Kyushu
	}
	random = no
	country = NIP
	name = "EVENTNAME242041" #Tensho Boys Mission
	desc = "EVENTHIST242041"
	#-#In 1582, three Christian daimyos (Arima, Omura, and Otomo) in the Kyushu region were persuaded to send Japanese Christian teenagers to Europe by Jesuit Alessandro Valignano. The first purpose of it was to get support to their mission from European countries, the second was to bring up capable Japanese priests. They chose four excellent noblemen called Ito Mancio, Chijiwa Miguel, Nakaura Julian and Hara Martino for the envoy, called Tensho Embassy or Tensho Boys Mission from the era name. Arriving at Lisbon in 1584, they visited the cities including Madrid, Rome, Venice, Verona, and Milan. They were welcomed by European authorities among them were Felipe II of Spain and Francesco I of Tuscany. In addition, they became the first Japanese who were gave an audience with Pope, Gregory XIII. They also attended at the coronation of Pope Sixtus V of 1585. Returning to Japan, they met with Toyotomi Hideyoshi in 1591. Although they were ordained as the first Japanese priests in 1608 (except Miguel who converted back in 1601), they couldn't accomplish their goal as Japan turned into anti-Christian policies. Martino left some influential works including the Japanese translation of 'Imitatio Christi' but he was expelled from the country and died in Macao in 1629. Julian became a martyr in Nagasaki in 1633 (374 years after that, Pope Benedict XVI did beatification of him in 2007). In a large sense, their most important exploit was publishing of printed Japanese books for the first time by using letterpress printing machines which they had brought back from Europe. Today, these books in existence are regarded as valuable historical materials for linguistic research.

	date = { day = 19 month = february year = 1582 }
	offset = 90
	deathdate = { day = 22 month = july year = 1587 } #Hideyoshi's Anti-Christian Edict

	action_a = {
		name = "ACTIONNAME242041A" #Send these boys
		command = { type = treasury value = -100 }
		command = { type = province_revoltrisk which = 688 value = 1 } #Kyushu
		command = { type = warships which = 688 value = 2 } #Kyushu
		command = { type = transports which = 688 value = 2 } #Kyushu
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = land value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = trade value = 500 }
		command = { type = infra value = 500 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = TOS value = 50 }
		command = { type = relation which = POR value = 25 }
		command = { type = relation which = VEN value = 25 }
		command = { type = relation which = POL value = 25 }
	}
	action_b = {
		name = "ACTIONNAME242041B" #We won't welcome any more Christian
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
	}
}

#(1582-1583) Sen no Rikyu perfects Tea Ceremony - Flavor
event = {
	id = 6959
	trigger = {
		event = 6958 #NIP: Ginkakuji construction starts
	}
	random = no
	country = NIP
	name = "EVENTNAME6959" #Sen no Rikyu perfects Tea Ceremony
	desc = "EVENTHIST6959"
	#-#The ceremony developed under the influence of Zen Buddhism and the high culture developed around the Higashiyama culture centered in Ginkakuji. When Sen no Rikyu took over the Toyotomi household he spread the ceremony he had perfected. The tea ceremony etiquette is carefully calculated to achieve the highest possible economy of movement. The ceremony involves the appreciation of the room in which it is held, the garden attached to the room, the utensils used in serving the tea, and the decor of the setting, such as a hanging scroll or a flower arrangement.

	date = { day = 1 month = june year = 1582 }
	offset = 180
	deathdate = { day = 1 month = june year = 1583 }

	action_a = {
		name = "OK"
		command = { type = infra value = 50 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
	}
}

#(1582) Akechi Mitsuhide kills Oda
event = {
	id = 6988
	random = no
	country = NIP
	name = "EVENTNAME6988" #Akechi Mitsuhide kills Oda
	desc = "EVENTHIST6988"
	#-#En route to Chugoku region, Nobunaga stayed at Honno-ji, a temple in Kyoto. Since Nobunaga would not expect an attack in the middle of his firmly-controlled territories, he was guarded by only a few dozen personal servants and bodyguards. \n \nNevertheless, Mitsuhide, one of Oda's most brilliant generals, suddenly had Honno-ji surrounded in a coup d'état, forcing Nobunaga to fight him. Nobunaga lost and was forced to commit seppuku.

	date = { day = 20 month = june year = 1582 }

	action_a = {
		name = "OK"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revolt which = 686 } #Kansai
	}
}

#(1582-1583) Toyotomi carries out the Taiko Kenchi
event = {
	id = 6974
	trigger = {
		event = 6922 #NIP: Oda has taken capital
	}
	random = no
	country = NIP
	name = "EVENTNAME6974" #Toyotomi carries out the Taikokenchi
	desc = "EVENTHIST6974"
	#-#Taikokenchi is a nationwide census of all production within Japan. Every piece of land and every industry is being evaluated and measured to determine how much tax should be paid by each family in Japan. The result is a detailed account of everything important for the tax system in Japan

	date = { day = 1 month = july year = 1582 }
	offset = 360
	deathdate = { day = 1 month = july year = 1583 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 683 value = 1 } #Ezochi
		command = { type = provincetax which = 684 value = 2 } #Tohoku
		command = { type = provincetax which = 685 value = 4 } #Kanto
		command = { type = provincetax which = 686 value = 4 } #Kansai
		command = { type = provincetax which = 687 value = 2 } #Shikoku
		command = { type = provincetax which = 688 value = 4 } #Kyushu
		command = { type = domestic which = Serfdom value = 3 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = infra value = 300 }
		command = { type = trade value = 300 }
	}
}

#(1584-1585) Regional unification of Shikoku
event = {
	id = 242079
	trigger = {
		owned = { province = 687 data = -1 } #Shikoku (Tosa or Awa)
		control = { province = 687 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242079" #Regional unification of Shikoku
	desc = "EVENTHIST242079"
	#-#After the unification of southern Shikoku, Chosokabe clan quickened its pace to conquer the whole island, seizing the opportunity that Miyoshi clan quickly decayed in the 1570s. By 1585, Chosokabe virtually reached its goal. However, the regional unification was too late to advance to the next step as compared with the development of the central political situation.

	date = { day = 1 month = february year = 1584 }
	offset = 30
	deathdate = { day = 29 month = november year = 1585 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = infra value = 300 }
		command = { type = population which = 687 value = 3000 } #Shikoku
		command = { type = province_revoltrisk which = 687 value = -6 }
	}
}

#(1584-1586) Regional unification of Kyushu -I-
event = {
	id = 242072
	trigger = {
		OR = {
			event = 242069 #NIP: Regional unification of northern Kyushu
			event = 242070 #NIP: Regional unification of southern Kyushu
		}
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242072" #Regional unification of Kyushu
	desc = "EVENTHIST242072"
	#-#After the great victory in 1578, Shimazu clan steadily expanded their domain without significant opposition. By 1584, Shimazu forced Ryuzoji clan, which was the most powerful in northern Kyushu after Otomo's fall, into submission through the victory at the Battle of Okita-Nawate. Almost all Kyushu fell under Shimazu clan then it became among the most prominent one in Japan. Its army was renowned around the country for its aggressive tactics using mass firearms effectively. However, these facts ended up alerting the new central regime to them.

	date = { day = 1 month = june year = 1584 }
	offset = 30
	deathdate = { day = 29 month = may year = 1586 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = land value = 300 }
		command = { type = population which = 688 value = 2000 } #Kyushu
		command = { type = province_revoltrisk which = 688 value = -3 }
	}
}
#(1584-1586) Regional unification of Kyushu -II- Ahistrorical
event = {
	id = 242073
	trigger = {
		event = 242071 #NIP: Decisive battle over the hegemony of Kyushu
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242072" #Regional unification of Kyushu
	desc = "EVENTHIST242073"
	#-#After the great victory in 1578, Otomo clan steadily expanded their domain without significant opposition. By 1584, the clan managed to seize almost all Kyushu and became among the most prominent clan in Japan. It also encouraged Catholicism and foreign trade across its domain. However, these facts ended up alerting the new central regime to them.

	date = { day = 1 month = june year = 1584 }
	offset = 30
	deathdate = { day = 29 month = may year = 1586 }

	action_a = {
		name = "ACTIONNAME242065A" #Let them be
		command = { type = trade value = 300 }
		command = { type = population which = 688 value = 2000 } #Kyushu
		command = { type = province_revoltrisk which = 688 value = -3 }
		command = { type = provincereligion which = 688 value = catholic }
	}
}

#(1586-1592) Liberalization of Markets and Guilds in Kinki region
event = {
	id = 242086
	trigger = {
		owned = { province = 686 data = -1 } #Kansai (Yamashiro)
		OR = {
			control = { province = 686 data = -1 } #Kansai
			control = { province = 686 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242086" #Liberalization of Markets and Guilds in Kinki region
	desc = "EVENTHIST242084"
	#-#In 1549, Rokkaku clan which ruled Oumi (today's Shiga) brought in a series of economic policies, called 'Rakuichi Rakuza' or Liberalization of Markets and Guilds, for the first time in Japan. In an effort to help stimulate the local economy, it reduced taxes for merchants and deregulated its economy to attract more merchants and artisans from outside the domain. Later Oda Nobunaga and Toyotomi Hideyoshi also introduced this idea on a larger scale across their sphere of influence.

	date = { day = 8 month = september year = 1586 }
	offset = 30
	deathdate = { day = 7 month = september year = 1592 }

	action_a = {
		name = "ACTIONNAME242084A" #Promote economic growth
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = trade value = 300 }
		command = { type = provincetax which = 686 value = 2 } #Kansai
		command = { type = population which = 686 value = 3000 }
	}
	action_b = {
		name = "ACTIONNAME242084B" #Protect old rights
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = trade value = -300 }
		command = { type = stability value = 1 }
	}
}

#(1587) Hideyoshi's Anti-Christian Edict
#Bugfixes from threadid=48650 and threadid=55821 - Korath
event = {
	id = 3877
	random = no
	country = NIP
	name = "EVENTNAME3877" #Hideyoshi's Anti-Christian Edict
	desc = "EVENTHIST3877"
	#-#In 1587, Toyotomi Hideyoshi, who had already consolidated his hold over central Japan in the wake of Oda Nobunaga's murder, seized control of Kyushu, the main stronghold of Japanese Christianity. Alarmed at the possible undermining of authority that Christianity could cause, he proceeded to issue an edict that technically expelled the Jesuit missionaries from Japan, although in reality they were permitted to continue operating so long as they maintained a low profile. He also forced many important Daimyo to renounce their new faith. However, despite this, the number of Christian converts continued rising to a peak of about 300,000.

	date = { day = 23 month = july year = 1587 }

	action_a = {
		name = "ACTIONNAME3877A" #Issue the Edict
		command = { type = relation which = POR value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 3879 } #NIP: Tokugawa's Edict of Expulsion
	}
	action_b = {
		name = "ACTIONNAME3877B" #Let the Christians be
		command = { type = stability value = -2 }
		command = { type = provincereligion which = 688 value = catholic } #Kyushu
		command = { type = trade value = 1000 }
		command = { type = provincetax which = 688 value = 2 } #Kyushu
		command = { type = sleepevent which = 3878 } #NIP: Tokugawa's Edict of Expulsion
	}
}

#(1588) The great sword hunt
event = {
	id = 6914
	trigger = {
		event = 6922 #NIP: Oda has taken capital
	}
	random = no
	country = NIP
	name = "EVENTNAME6914" #The great sword hunt
	desc = "EVENTHIST6914"
	#-#Toyotomi Hideyoshi wishes to split the warriors from the peasants to prevent rebellions. He wants to force the peasants and warriors to choose between the two. Samurai are to be prohibited from farming and forced to move into the castle towns. Peasants and religious orders are to be prohibited from owning weapons. Toyotomi says that the pretext is that all weapons are to be collected to make a statue of buddha. Should the groups be split?

	date = { day = 1 month = july year = 1588 }
	offset = 10
	deathdate = { day = 29 month = december year = 1588 }

	action_a = {
		name = "ACTIONNAME6914A" #Split the groups
		command = { type = province_revoltrisk which = 684 value = -10 } #Tohoku
		command = { type = province_revoltrisk which = 685 value = -10 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -10 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -10 } #Shikoku
		command = { type = province_revoltrisk which = 688 value = -10 } #Kyushu
		command = { type = domestic which = Quality value = 3 }
		command = { type = domestic which = Serfdom value = 3 }
		command = { type = stability value = 3 }
	}
	action_b = {
		name = "ACTIONNAME6914B" #Don't split
		command = { type = province_revoltrisk which = 684 value = -10 } #Tohoku
		command = { type = province_revoltrisk which = 685 value = -10 } #Kanto
		command = { type = province_revoltrisk which = 686 value = -10 } #Kansai
		command = { type = province_revoltrisk which = 687 value = -10 } #Shikoku
		command = { type = province_revoltrisk which = 688 value = -10 } #Kyushu
		command = { type = domestic which = Quality value = -3 }
		command = { type = domestic which = Serfdom value = -3 }
		command = { type = stability value = 3 }
	}
}

#(1589) Decisive battle over the hegemony of southern Tohoku
event = {
	id = 242067
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku
		OR = {
			control = { province = 684 data = -1 } #Tohoku
			control = { province = 684 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242067" #Decisive battle over the hegemony of southern Tohoku
	desc = "EVENTHIST242067"
	#-#Date clan made a dramatic comeback from its hardship for a few decades, under Date Masamune (1567-1636), who was among the most capable lord in the period. From his first battle at age 14, he racked up victories so many as to overwhelm neighboring clans. In 1589, he managed to eliminate Ashina clan, which allied with the new central regime. The victory made him the master of southern Tohoku while it put him in a difficult position.

	date = { day = 16 month = july year = 1589 }
	offset = 30
	deathdate = { day = 29 month = december year = 1589 }

	action_a = {
		name = "ACTIONNAME242067A" #Date won
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revolt which = 684 } #Tohoku
		command = { type = revolt which = 684 }
		command = { type = revolt which = 684 }
	}
}

#(1590-1594) Siege of Odawara
event = {
	id = 242087
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Sagami)
		OR = {
			control = { province = 685 data = -1 }
			control = { province = 685 data = REB }
		}
		NOT = {
			event = 3881 #NIP: Toyotomi Hideyoshi Plans to Invade Korea
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242087" #Siege of Odawara
	desc = "EVENTHIST242087"
	#-#Since becoming Oda's virtual successor in 1582, Toyotomi Hideyoshi had steadily gotten rid of remaining rivals. In the spring of 1590, he decided to eliminate the Hojo clan, which ruled over whole Kanto and was the final roadblock to unifying Japan, after the matter couldn't be resolved peacefully. Because of Toyotomi's overwhelming force, Hojo clan entrenched in Odawara Castle, the most impregnable fortress in Japan at that time. However, Toyotomi was able to prepare more than enough troops and supplies while Hojo failed to gain any reinforcement from outside, Hojo thereby had no choice but to surrender on 5 July 1590.\n \n Also, Toyotomi seized the opportunity to subject all daimyos in Tohoku including powerful Date clan. Prior to the battle, Toyotomi required support of them and to accept it essentially meant obedience. They could have ignored it under false pretenses or allied with Hojo to resist Toyotomi, but eventually they all decided to accept humiliating submission. As a result, Toyotomi accomplished reunification of Japan.

	date = { day = 26 month = march year = 1590 }
	offset = 30
	deathdate = { day = 25 month = march year = 1594 }

	action_a = {
		name = "ACTIONNAME242087A" #Side with Toyotomi
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = INF which = 684 value = 5000 } #Tohoku (Mutsu and Dewa)
		command = { type = revolt which = 685 } #Kanto (Sagami)
		command = { type = revolt which = 685 }
		command = { type = revolt which = 685 }
	}
}

#(1592) Toyotomi Hideyoshi Plans to Invade Korea
event = {
	id = 3881
	trigger = {
		NOT = {
			vassal = { country = KOR country = NIP }
		}
		owned = { province = 683 data = -1 } #Ezochi
		control = { province = 683 data = -1 }
		owned = { province = 684 data = -1 } #Tohoku
		control = { province = 684 data = -1 }
		owned = { province = 685 data = -1 } #Kanto
		control = { province = 685 data = -1 }
		owned = { province = 686 data = -1 } #Kansai
		control = { province = 686 data = -1 }
		owned = { province = 687 data = -1 } #Shikoku
		control = { province = 687 data = -1 }
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME3881" #Toyotomi Hideyoshi Plans to Invade Korea
	desc = "EVENTHIST3881"
	#-#Having eliminated the last resistance to his rule in Japan, Toyotomi Hideyoshi then turned his attention to conquering Korea, which he planned to use as a springboard for invading China. The Japanese mounted two invasions in 1592 and 1597, but both failed, largely as a result of the efforts of the Korean Admiral Yi. However, the war did result in the deaths of many Japanese samurai and Daimyo who might otherwise have troubled the new regime.

	date = { day = 1 month = january year = 1592 }
	offset = 360
	deathdate = { day = 29 month = december year = 1592 }

	action_a = {
		name = "ACTIONNAME3881A" #Invade Korea
		command = { type = addcore which = 641 } #Kyongju
		command = { type = addcore which = 642 } #Yalu
		command = { type = relation which = KOR value = -200 }
		command = { type = casusbelli which = CHI value = 72 }
	}
	action_b = {
		name = "ACTIONNAME3881B" #Abandon the Plans
		command = { type = relation which = KOR value = 50 }
		command = { type = relation which = CHI value = 50 }
		command = { type = sleepevent which = 242042 } #NIP: Restoring relations with Korea
	}
}

#(1592-1637) A plan of expedition to Luzon - Ahistorical
#by waishi
event = {
	id = 242047
	trigger = {
		atwar = no
		stability = 3
		owned = { province = 683 data = -1 } #Ezochi
		owned = { province = 684 data = -1 } #Tohoku
		owned = { province = 685 data = -1 } #Kanto
		owned = { province = 686 data = -1 } #Kansai
		owned = { province = 687 data = -1 } #Shikoku
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 683 data = -1 }
		control = { province = 684 data = -1 }
		control = { province = 685 data = -1 }
		control = { province = 686 data = -1 }
		control = { province = 687 data = -1 }
		control = { province = 688 data = -1 }
		OR = {
			countrysize = 11
			AND = {
				countrysize = 9
				owned = { province = 641 data = -1 } #Kyongju
				owned = { province = 642 data = -1 } #Yalu
				control = { province = 641 data = -1 }
				control = { province = 642 data = -1 }
			}
			AND = {
				countrysize = 7
				vassal = { country = NIP country = KOR }
			}
		}
		NOT = {
			owned = { province = 690 data = -1 } #Luzon
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242047" #A plan of expedition to Luzon
	desc = "EVENTHIST242047"
	#-#Japan is thought to attempt to invade of Luzon at least three times during 16-17th centuries: Toyotomi Hideyoshi is the possible first person to conceive of it next to Korea, alarmed at European activities from the late 1580s. But the plan ended up with his death in 1598. The second was Matsukura Shigemasa, a minor daimyo of the Shimabara domain in Kyushu. He oppressed Christianity so intensely that he prepared to conquer Luzon which was believed that missionaries made their base. He also desired to dominate profitable trade on there. To set the plan into action, he burdened his subjects heavily, bribed high officials, and even dispatched reconnaissance officers in 1630. However, his ambition went into the dumper with his sudden death shortly after the dispatch. Some have advocated he was poisoned by officials of the shogunate who resented to be involved in any overseas troubles or exposed their corruption. The last was the shogunate itself in the 1630s. It suffered on both masterless samurais and persistent missionaries so that another expedition emerged as a practical option. But the Shimabara rebellion in 1637 forced the shogunate to concentrate on domestic issues and to abandon the plan for good. \n \n Now that we have achieved supremacy over the expanded realm, some militants press to carry the plan into effect while others question about the cost-effectiveness of it. What should we do?

	date = { day = 1 month = february year = 1592 }
	offset = 300
	deathdate = { day = 29 month = december year = 1637 }

	action_a = {
		name = "ACTIONNAME242047A" #Focus on domestic affairs
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = land value = 1 }
		command = { type = infra value = 100 }
	}
	action_b = {
		name = "ACTIONNAME242047B" #Conquer Luzon
		command = { type = addcore which = 690 } #Luzon
		command = { type = stability value = -2 }
		command = { type = domestic which = land value = -1 }
	}
}

#(1597) Luzon Sukezaemon, a Red seal ship trader
#by waishi
event = {
	id = 242056
	random = no
	country = NIP
	name = "EVENTNAME242056" #Luzon Sukezaemon, a Red seal ship trader
	desc = "EVENTHIST242056"
	#-#Naya Sukezaemon (1565-?), known as Luzon Sukezaemon, was a Japanese merchant adventurer. He made a large profit from trade between Luzon and Japan in the late 16th century. In 1594, he made Toyotomi Hideyoshi a lot of tribute of imported goods to win his favorite. However, in 1598, he closed to be forfeited his property because of his rather luxurious lifestyle (some claims it was because of the outrage of Hideyoshi who knew that the gifted porcelains were valueless mass-production items made in Luzon). The quick-eyed trader fled to Manila to continue his dealing. Around 1607, with the beginning of Spanish interfere in the Philippines, he emigrated to Cambodia where he managed to win the king's favor.

	date = { day = 1 month = January year = 1597 }
	offset = 90
	deathdate = { day = 29 month = december year = 1597 }

	action_a = {
		name = "ACTIONNAME242056A" #Give him line enough
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = land value = 1 }
	}
	action_b = {
		name = "ACTIONNAME242056B" #Encourage foreign trade
		command = { type = treasury value = -25 }
		command = { type = trade value = 500 }
		command = { type = merchants value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = domestic which = land value = -1 }
	}
}

#(1600) William Adams and Jan Joosten
#by waishi
event = {
	id = 242046
	random = no
	country = NIP
	name = "EVENTNAME242046" #William Adams and Jan Joosten
	desc = "EVENTHIST242046"
	#-#In 1600, a wrecked Dutch commercial vessel arrived in eastern Kyushu. 24 survivors were rescued, among them were William Adams who is regarded as the first English visitor to Japan and Jan Joosten van Loodensteijn known as simply Jan Joosten, a Dutch navigator. Portuguese Jesuits who had been taking into confidence of the government insisted to execute the crews as pirates because they wanted to keep Protestants away from Japan. However, Tokugawa Ieyasu accepted them as advisors for foreign affairs because of his much interest in the international situation. They contributed to the development of relations with Netherlands and England, thereby weakening the influence of Spain and Portugal. Adams also supervised building of several western-style ships. He was rewarded with estate in the Miura Peninsula and he came to call himself Miura Anjin (the pilots of Miura) as a samurai. He lived in Japan until his death in 1620. Jan Joosten was also granted a house in Edo. The area came to be called 'Yayosu' which derived from Japanese pronunciation of his name and the place-name still exists as 'Yaesu', the east side of the Tokyo Station today. He sunk on his way to Indonesia in 1623.

	date = { day = 11 month = may year = 1600 }

	action_a = {
		name = "ACTIONNAME242046A" #Accept them as advisors
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = HOL value = 50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HAB value = -50 }
	}
	action_b = {
		name = "ACTIONNAME242046B" #Expel them as pirates
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = HOL value = -50 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = HAB value = 50 }
	}
}

#(1600) Sekigahara
event = {
	id = 6981
	trigger = {
		owned = { province = 685 data = -1 } #Kanto
		OR = {
			control = { province = 685 data = -1 } #Kanto
			control = { province = 685 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME6981" #Sekigahara
	desc = "EVENTHIST6981"
	#-#Tokugawa Ieyasu has successfully challenged the previous ruling lords and defeated them in a huge battle. This has removed all real threats to the power of the new Tokugawa Bakufu. The destruction of the petty peasant rebellions against the new Bakufu is all that remain before the new order is imposed.

	date = { day = 15 month = september year = 1600 }

	action_a = {
		name = "OK"
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
		command = { type = revolt which = 685 } #Kanto
	}
}

#(1603-1614) Establishment of the Tokugawa Shogunate
event = {
	id = 242088
	trigger = {
		owned = { province = 685 data = -1 } #Kanto (Sagami)
		control = { province = 685 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242088" #Establishment of the Tokugawa Shogunate
	desc = "EVENTHIST242088"
	#-#Since the last years of the Toyotomi Hideyoshi's reign, Tokugawa Ieyasu had been increasingly dominating the government as the most prominent person of 'Gotairou' or Council of Five Elders. Eventually he eliminated all opponents and the Emperor appointed him to the shogun, following which he officially established his feudal government, the Tokugawa Shogunate in Edo. To promise a stable regime to his descendants, Ieyasu attempted to construct a more centralized system than the Muromachi Shogunate, in which local daimyos were kept exhausting with forcing public works, alternate-year residence in Edo and so on.

	date = { day = 23 month = march year = 1603 }
	offset = 60
	deathdate = { day = 17 month = november year = 1614 }

	action_a = {
		name = "AT_LAST"
		command = { type = capital which = 685 } #Kanto (Sagami)
		command = { type = stability value = 2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = offensive value = -2 }
	}
}

#(1603) Okuni creates Kabuki - Flavor
event = {
	id = 6960
	random = no
	country = NIP
	name = "EVENTNAME6960" #Okuni creates Kabuki
	desc = "EVENTHIST6960"
	#-#Okuni an Izumo shrine maiden set up a stage on the dry bed of the Kamo River in Kyoto where she and her company performed a new form of theatre mixed with dances. Her performances caused quite a stir since at the time it was not proper for women to show any skin in public, which was difficult to avoid in her performances. The popularity of Kabuki and the subsequent elevation of women cause some concern in the Bakufu. Determined to prevent any social disruption the authorities want to women from the stage on grounds of immorality citing the availability of the performers to their audience off-stage.

	date = { day = 1 month = july year = 1603 }
	offset = 90
	deathdate = { day = 29 month = december year = 1603 }

	action_a = {
		name = "ACTIONNAME6960A" #Ban women
		command = { type = infra value = 100 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = Innovative value = -1 }
	}
	action_b = {
		name = "ACTIONNAME6960B" #Allow women
		command = { type = infra value = 100 }
		command = { type = religiousrevolt which = -1 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = Innovative value = 1 }
		command = { type = stability value = -1 }
		command = { type = sleepevent which = 6962 } #NIP: Kabuki banned again by authorities
	}
}

#(1607-1627) Restoring relations with Korea
#by waishi
event = {
	id = 242042
	trigger = {
		OR = {
			exists = KOR
			exists = CHI
		}
		event = 3881 #NIP: Toyotomi Hideyoshi Plans to Invade Korea
		atwar = no
		NOT = {
			war = { country = NIP country = KOR }
			OR = {
				vassal = { country = NIP country = KOR }
				AND = {
					owned = { province = 641 data = -1 } #Kyongju
					owned = { province = 642 data = -1 } #Yalu
				}
			}
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242042" #Restoring relations with Korea
	desc = "EVENTHIST242042"
	#-#After Japanese invasions of Korea, it had been stalemate in their relations for a while. However, the new shogunate of Japan had been very interested in foreign trade while Korea had been threatened by expanding Manchus of the north. In addition, the daimyo of Tsushima islands which located in the middle of the strait had been very eager to resume their profitable intermediate trade. Thus, their interests ran together and they began to seek to restore relations with each other. Historically, Korea sent an envoy to Japan to restore their relations officially in 1607. They would become to exchange emissaries on suitable occasions following two centuries as they used to do during the Muromachi period. A Japanese trading post was also built at Pusan which became to be prospered as one of the few ports that Japanese merchants could carry on overseas trade: They primarily traded Japanese silver, gold, and sulfur and imports from South-east Asia for Chinese high quality silk and cloths at there.

	date = { day = 28 month = june year = 1607 }
	offset = 60
	deathdate = { day = 29 month = december year = 1627 }

	action_a = {
		name = "ACTIONNAME242042A" #Sign the pact
		command = { type = removecore which = 641 } #Kyongju
		command = { type = removecore which = 642 } #Yalu
		command = { type = relation which = KOR value = 100 }
		command = { type = relation which = CHI value = 50 }
		command = { type = trade value = 300 }
	}
	action_b = {
		name = "ACTIONNAME242042B" #We will never give up!
		command = { type = relation which = KOR value = -100 }
		command = { type = relation which = CHI value = -50 }
		command = { type = trade value = -300 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 120 value = 3 }
	}
}

#(1609-1616) The conquest of Ryukyu
#by waishi
event = {
	id = 242051
	trigger = {
		atwar = no
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 688 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242051" #The conquest of Ryukyu
	desc = "EVENTHIST242051"
	#-#The Ryukyu Kingdom (1429-1879) had ruled over the Ryukyu Islands stretching southwest from Kyushu to Taiwan. By the end of 16th century, this once-thriving kingdom on its trade with South-East Asia had declined because of losing ground to Chinese and European competitors. The shogunate attempted to exploit the opportunity to submit it. After negotiations broke down, the shogun permitted the daimyo of the Satsuma domain (the southernmost part of Kyushu) to conquer the kingdom. On March 1609, 3,000 troops with 100 ships of the Satsuma domain started to invade the country. Soon after, the king was forced to accept the domain as the suzerain. The Satsuma domain would make a large profit from the monopoly on intermediate trade between the kingdom and China until the abolishment of the closure policy.

	date = { day = 3 month = march year = 1609 }
	offset = 60
	deathdate = { day = 0 month = june year = 1616 }

	action_a = {
		name = "ACTIONNAME242051A" #Submit them
		command = { type = domestic which = land value = -1 }
		command = { type = population which = 688 value = 5000 } #Kyushu
		command = { type = provincetax which = 688 value = 1 } #Kyushu
		command = { type = provincemanpower which = 688 value = 1 } #kyushu
		command = { type = trade value = 300 }
		command = { type = merchants value = 1 }
		command = { type = treasury value = -50 }
	}
	action_b = {
		name = "ACTIONNAME242051B" #Focus on domestic affairs instead
		command = { type = infra value = 300 }
	}
}

#(1613) Keicho Embassy
#by waishi
event = {
	id = 242040
	trigger = {
		owned = { province = 684 data = -1 } #Tohoku
		control = { province = 684 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242040" #Keicho Embassy
	desc = "EVENTHIST242040"
	#-#Date Masamune, a powerful daimyo in the Tohoku region, planned to send a mission to establish friendly relations with European countries (some people advocates that he attempted to make an alliance with Spain to overthrow the shogunate). He got the permission to do it from the shogunate and appointed his vassal Hasekura Tsunenaga as the ambassador with around 180 followers. The mission, called Keicho Embassy from the era name, set sailed from Ishinomaki on 15 September 1613. Their Japanese-built galleon visited via Mexico to Spain where Tsunenaga met Felipe III of Spain to ask him a trade agreement in 1615. They stayed on the town of Coria del Rio near Sevilla for a few months, and even today there are a few hundreds of residents using the surname 'Japon', considered as their descendants. The same year, Tsunenaga managed to be received in audience by Pope Paulus V in Rome. However, he wasn't able to conclude any agreement with them because of the shift in the shogunate's policy. At that time, Japan was moving toward to the closed-door policy and increasing oppression against Christianity. Tsunenaga returned to Japan via Luzon after his seven years fruitless trip and died in 1622. Although he was the first Japanese official ambassador to the Americas and Rome (and arguably Europe), his achievements were ignored until 19th century.

	date = { day = 14 month = september year = 1613 }

	action_a = {
		name = "ACTIONNAME242040A" #Send them only as diplomats
		command = { type = warships which = 684 value = 2 } #Tohoku
		command = { type = transports which = 684 value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = SPA value = 50 }
	}
	action_b = {
		name = "ACTIONNAME242040B" #Send them also as explorers
		command = { type = warships which = 684 value = 2 } #Tohoku
		command = { type = transports which = 684 value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = wakeleader which = 097813 } #Hasekura Tsunenaga (NIP)
	}
}

#(1614) Tokugawa's Edict of Expulsion
#Bugfix from threadid=48650 - Korath
event = {
	id = 3878
	random = no
	country = NIP
	name = "EVENTNAME3878" #Tokugawa's Edict of Expulsion
	desc = "EVENTHIST3878"
	#-#By 1614, Tokugawa Ieyasu had effectively gained control of Japan even though rule had been meant to pass to Toyotomi Hideyoshi's son, Hideyori, when Hideyori reached adulthood. A series of mounting conflicts with the Portuguese, the possibility of trading with the Dutch, and alarm at the spread of Christianity in the Land of the Gods resulted in an Edict of Expulsion for the Jesuit missionaries. The Tokugawa regime then began persecuting the estimated 300,000 Japanese Christians using torture and execution as their primary instruments. This eventually helped to prompt the Shimabara peasant rebellion in Kyushu in 1638 in which about 30,000 overtaxed peasants rebelled, but were eventually massacred. If the Tokugawa regime had instead extended toleration to Christianity, then in Kyushu Catholicism may have eventually emerged as the dominant religion.

	date = { day = 14 month = february year = 1614 }

	action_a = {
		name = "ACTIONNAME3878A" #Persecute the Christians
		command = { type = province_revoltrisk which = 688 value = 10 } #Kyushu
		command = { type = stability value = 3 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = relation which = POR value = -300 }
		command = { type = relation which = PAP value = -300 }
		command = { type = relation which = POL value = -200 }
		command = { type = relation which = FRA value = -200 }
		command = { type = relation which = SPA value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = HOL value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3878B" #Tolerate the Christians
		command = { type = province_revoltrisk which = 688 value = -1 } #Kyushu
		command = { type = provincereligion which = 688 value = catholic } #Kyushu
		command = { type = stability value = -2 }
		command = { type = provincetax which = 688 value = 2 } #Kyushu
		command = { type = relation which = POR value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = HAB value = 50 }
	}
}
#(1614) Tokugawa's Edict of Expulsion
event = {
	id = 3879
	random = no
	country = NIP
	name = "EVENTNAME3879" #Tokugawa's Edict of Expulsion
	desc = "EVENTHIST3879"
	#-#By 1614, Tokugawa Ieyasu had effectively gained control of Japan even though rule had been meant to pass to Toyotomi Hideyoshi's son, Hideyori, when Hideyori reached adulthood. A series of mounting conflicts with the Portuguese, the possibility of trading with the Dutch, and alarm at the spread of Christianity in the Land of the Gods resulted in an Edict of Expulsion for the Jesuit missionaries. The Tokugawa regime then began persecuting the estimated 300,000 Japanese Christians using torture and execution as their primary instruments. This eventually helped to prompt the Shimabara peasant rebellion in Kyushu in 1638 in which about 30,000 overtaxed peasants rebelled, but were eventually massacred. If the Tokugawa regime had instead extended toleration to Christianity, then in Kyushu Catholicism may have eventually emerged as the dominant religion.

	date = { day = 14 month = april year = 1614 }

	action_a = {
		name = "ACTIONNAME3879A" #Persecute the Christians
		command = { type = province_revoltrisk which = 688 value = 20 } #Kyushu
		command = { type = conversion which = 688 } #Kyushu
		command = { type = stability value = 3 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = relation which = POR value = -300 }
		command = { type = relation which = PAP value = -300 }
		command = { type = relation which = POL value = -200 }
		command = { type = relation which = FRA value = -200 }
		command = { type = relation which = SPA value = -200 }
		command = { type = relation which = HAB value = -200 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = HOL value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3879B" #Tolerate the Christians
		command = { type = province_revoltrisk which = 688 value = -1 } #Kyushu
		command = { type = stability value = -1 }
		command = { type = relation which = POR value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = SPA value = 50 }
		command = { type = relation which = HAB value = 50 }
	}
	action_c = {
		name = "ACTIONNAME3879C" #Convert to Catholicism
		command = { type = province_revoltrisk which = 688 value = -1 } #Kyushu
		command = { type = religion which = catholic }
		command = { type = stability value = -6 }
		command = { type = provincereligion which = 686 value = catholic } #Kansai
		command = { type = provincereligion which = 687 value = catholic } #Shikoku
		command = { type = relation which = POR value = 400 }
		command = { type = relation which = PAP value = 400 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = HOL value = -200 }
		command = { type = relation which = POL value = 200 }
		command = { type = relation which = FRA value = 200 }
		command = { type = relation which = SPA value = 200 }
		command = { type = relation which = HAB value = 200 }
		command = { type = religiousrevolt which = -1 }
		command = { type = religiousrevolt which = -1 }
		command = { type = religiousrevolt which = -1 }
		command = { type = revoltrisk which = 120 value = 10 }
		command = { type = sleepevent which = 242050 } #NIP: The Shimabara Rebellion
		command = { type = sleepevent which = 242038 } #NIP: Laws for Temples and Shrines
		command = { type = sleepevent which = 242039 } #NIP: Magistrate of Temples and Shrines
	}
}

#(1614-1630) Siege of Osaka
event = {
	id = 242062
	trigger = {
		owned = { province = 686 data = -1 } #Kansai
		OR = {
			control = { province = 686 data = -1 } #Kansai
			control = { province = 686 data = REB }
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242062" #Siege of Osaka
	desc = "EVENTHIST242062"
	#-#Even after the formation of the new regime, Toyotomi clan was among the most powerful factions in Japan. The shogunate persisted to try to submit it peacefully without success. Eventually, the clan entrenched Osaka Castle, the headquarters of it, and called for potential anti-shogunate powers across the country to be engaged in the coming battle. The decisive siege battle was fought in 1614-15 with four months suspension, between the shogunate force with 155,000-194,000 men and the clan with 55,000-96,000 men. The shogunate managed to win it, called Siege of Osaka, and abolished the clan. With this victory, the shogunate truly accomplished the reunification of the country under its banner.

	date = { day = 18 month = november year = 1614 }
	offset = 30
	deathdate = { day = 29 month = december year = 1630 }

	action_a = {
		name = "ACTIONNAME242062A" #Side with the shogunate
		command = { type = revolt which = 686 } #Kansai (Yamashiro)
		command = { type = revolt which = 686 }
		command = { type = revolt which = 686 }
		command = { type = revolt which = 686 }
	}
}

#(1615) Laws for Temples and Shrines
#by waishi
event = {
	id = 242038
	random = no
	country = NIP
	name = "EVENTNAME242038" #Laws for Temples and Shrines
	desc = "EVENTHIST242038"
	#-#Tokugawa shogunate introduced many Confucianism-oliented policies to ensure his regime, one such example was the appointment of Hayashi Razan (1583-1657) who is one of the most prominent Japanese neo-Confucians as a political advisor. The Laws for Temples and Shrines which attempted to control mainly Buddhism sects were issued in 1612-1615 as part of them. The shogunate also introduced Terauke system which made all subjects be forced to register for a Buddhism temple to control them easily and Honmatsu system which submit all temples and shrines to an ossified hierarchy system. The series of controlling policy would be accomplished in 1635 when the Magistrate of Temples and Shrines was installed.

	date = { day = 0 month = february year = 1615 }
	offset = 10
	deathdate = { day = 29 month = december year = 1615 }

	action_a = {
		name = "ACTIONNAME242038A" #Issue them
		command = { type = religion which = confucian }
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = provincereligion which = 685 value = confucian } #Kanto
		command = { type = provincereligion which = 686 value = confucian } #Kansai
	}
	action_b = {
		name = "ACTIONNAME242038B" #Don't issue them
		command = { type = domestic which = centralization value = -1 }
		command = { type = trade value = 500 } #Buddhist sects as merchants are preserved
		command = { type = sleepevent which = 6924 } #NIP: Ikko-ikki
		command = { type = sleepevent which = 242039 } #NIP: Magistrate of Temples and Shrines
	}
}

#(1619) Araki Soutarou, a Red seal ship trader
#by waishi
event = {
	id = 242057
	random = no
	country = NIP
	name = "EVENTNAME242057" #Araki Soutarou, a Red seal ship trader
	desc = "EVENTHIST242057"
	#-#Araki Soutarou (?-1636) was a Nagasaki-based merchant prince making a fortune in his lifetime. In 1592, He became one of the first eight merchant who were granted an official Red-sealed permit for foreign trade. He had travelled for trade to all over South-East Asia, especially Annam (today's northern Vietnam) and Siam. Nguyen Phuc-Nguyen the ruler of Annam favored the Japanese so much that he gave a daughter in marriage in 1619. Then she lived in Nagasaki until her death in 1645, even today she is still beloved by people of Nagasaki. Araki was also known by his unique shipping flag with the reversed VOC mark which aimed to beguile pirates.

	date = { day = 1 month = January year = 1619 }
	offset = 90
	deathdate = { day = 29 month = december year = 1619 }

	action_a = {
		name = "ACTIONNAME242056A" #Give him line enough
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = land value = 1 }
		command = { type = relation which = ANN value = 25 } #Annam
	}
	action_b = {
		name = "ACTIONNAME242056B" #Encourage foreign trade
		command = { type = treasury value = -25 }
		command = { type = trade value = 500 }
		command = { type = merchants value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = domestic which = land value = -1 }
		command = { type = relation which = ANN value = 25 } #Annam
	}
}

#(1624) Reductions in foreign trade
#by waishi
event = {
	id = 242048
	trigger = {
		NOT = {
			OR = {
				countrysize = 11
				AND = {
					countrysize = 9
					owned = { province = 641 data = -1 } #Kyongju
					owned = { province = 642 data = -1 } #Yalu
				}
				AND = {
					countrysize = 7
					vassal = { country = NIP country = KOR }
				}
			}
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242048" #Reductions in foreign trade
	desc = "EVENTHIST242048"
	#-#Since the 1610s, Japan had been more cautious about foreigner especially Catholic missionaries who would bring unstable factors into the realm. Helped by the decrease of demands for foreign arms with the end of the war-torn era, the shogunate determined to restrict ports for trade with European to two (Nagasaki and Hirado) in 1616. Following that English merchants withdrew from Japan by 1623, losing out to Dutch competitors. The shogunate also interrupted relations with Spain in 1624, resenting to its religious tendencies. As a result, Japan's thriving foreign trade began to contract.

	date = { day = 1 month = january year = 1624 }
	offset = 30
	deathdate = { day = 29 month = december year = 1624 }

	action_a = {
		name = "OH_WELL"
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = land value = 2 }
		command = { type = trade value = -300 }
		command = { type = merchants value = -3 }
		command = { type = inflation value = -1 } #moderate the outflow of silver from Japan
	}
}

#(1628-1635) Appeal for redress in Taiwan -I-
event = {
	id = 242036
	trigger = {
		event = 186075 #HOL: Monopoly in Taiwan
		owned = { province = 689 data = HOL } #Taiwan
		OR = {
			NOT = {
				owned = { province = 690 data = -1 } #Luzon
			}
			AND = {
				owned = { province = 690 data = -1 } #Luzon
				NOT = {
					control = { province = 690 data = -1 } #Luzon
				}
			}
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242036" #Appeal for redress in Taiwan
	desc = "EVENTHIST242036"
	#-#The regent of Nagasaki, Suetsugu Heizo Masanao, had been sending trade expeditions to Taiwan for years. He sponsored the Taiwanese villagers as ambassadors to the Shogun's court where they complained about Dutch rule and asked to be placed under the protection of the Shogun. He declined to do so, but did freeze all activities of the VOC in Japan. Suetsugu's machinations prevented the Dutch from appealing the Shogun's decision.

	date = { day = 1 month = january year = 1628 }
	offset = 100
	deathdate = { day = 1 month = january year = 1635 }

	action_a = {
		name = "ACTIONNAME242036A" #Freeze Dutch activities in Japan
		command = { type = treasury value = 50 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -300 }
		command = { type = relation which = HOL value = -100 }
		command = { type = sleepevent which = 242052 } #NIP: Appeal for redress in Taiwan -II-
	}
	action_b = {
		name = "ACTIONNAME242036B" #Place Taiwan under the cloak of the Emperor
		command = { type = treasury value = 50 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -300 }
		command = { type = stability value = -1 }
		command = { type = addcore which = 689 } #Taiwan
		command = { type = casusbelli which = HOL value = 100 }
		command = { type = relation which = HOL value = -200 }
		command = { type = trigger which = 186076 } #HOL: Fight or Flight over Taiwan
		command = { type = sleepevent which = 186077 } #HOL: Appease the Shogun
		command = { type = sleepevent which = 242052 } #NIP: Appeal for redress in Taiwan -II-
	}
}
#(1628-1635) Appeal for redress in Taiwan - Ahistorical -II-
#by waishi
event = {
	id = 242052
	trigger = {
		event = 186075 #HOL: Monopoly in Taiwan
		owned = { province = 689 data = HOL } #Taiwan
		owned = { province = 690 data = -1 } #Luzon
		control = { province = 690 data = -1 }
	}
	random = no
	country = NIP
	name = "EVENTNAME242036" #Appeal for redress in Taiwan
	desc = "EVENTHIST242052"
	#-#The regent of Nagasaki, Suetsugu Heizo Masanao, had been sending trade expeditions to Taiwan for years. He sponsored the Taiwanese villagers as ambassadors to the Shogun's court where they complained about Dutch rule and asked to be placed under the protection of the Shogun. He declined to do so, but did freeze all activities of the VOC in Japan. Meanwhile Suetsugu persuaded some officials of the shogunate to offer Luzon to the Dutch in exchange for Taiwan. They attempted to settle the issue in a favorable result to avoid a serious conflict with the compromise. After all, Taiwan was more suitable for trade with China than Luzon where Japan had been suffering on its harsh climate and supply difficulty.

	date = { day = 1 month = january year = 1628 }
	offset = 100
	deathdate = { day = 1 month = january year = 1635 }

	action_a = {
		name = "ACTIONNAME242036A" #Freeze Dutch activities in Japan
		command = { type = treasury value = 50 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -300 }
		command = { type = relation which = HOL value = -100 }
		command = { type = sleepevent which = 242036 } #NIP: Appeal for redress in Taiwan -I-
	}
	action_b = {
		name = "ACTIONNAME242036B" #Place Taiwan under the cloak of the Emperor
		command = { type = treasury value = 50 }
		command = { type = merchants value = -1 }
		command = { type = trade value = -300 }
		command = { type = stability value = -1 }
		command = { type = addcore which = 689 } #Taiwan
		command = { type = casusbelli which = HOL value = 100 }
		command = { type = relation which = HOL value = -200 }
		command = { type = trigger which = 186076 } #HOL: Fight or Flight over Taiwan
		command = { type = sleepevent which = 186077 } #HOL: Appease the Shogun
		command = { type = sleepevent which = 242036 } #NIP: Appeal for redress in Taiwan -I-
	}
	action_c = {
		name = "ACTIONNAME242052C" #Offer to exchange Luzon for Taiwan
		command = { type = treasury value = 50 }
		command = { type = trigger which = 186087 } #HOL: The exchange of Taiwan and Luzon
		command = { type = sleepevent which = 186077 } #HOL: Appease the Shogun
		command = { type = sleepevent which = 242036 } #NIP: Appeal for redress in Taiwan
	}
}
#(1628-1635) The VOC accepted the exchange - Ahistorical
#by waishi
event = {
	id = 242053 #triggered by HOL_186087 A
	random = no
	country = NIP
	name = "EVENTNAME242053" #The VOC accepted the exchange
	desc = "EVENTHIST242053"
	#-#The VOC accepted our generous offer.

	action_a = {
		name = "GOOD"
		command = { type = merchants value = 1 }
		command = { type = trade value = 100 }
		command = { type = cedeprovince which = HOL value = 690 } #Luzon
		command = { type = addcore which = 689 } #Taiwan
		command = { type = removecore which = 690 } #Luzon
	}
}
#(1628-1635) The VOC rejected the exchange - Ahistorical
#by waishi
event = {
	id = 242054 #triggered by HOL_186087 B
	random = no
	country = NIP
	name = "EVENTNAME242054" #The VOC rejectd the exchange
	desc = "EVENTHIST242054"
	#-#The VOC rejected our generous offer. They must be punished.

	action_a = {
		name = "DARN"
		command = { type = merchants value = -1 }
		command = { type = trade value = -300 }
		command = { type = stability value = -1 }
		command = { type = addcore which = 689 } #Taiwan
		command = { type = casusbelli which = HOL value = 100 }
		command = { type = relation which = HOL value = -200 }
	}
}

#(1632-1635) Allow the Dutch to trade again
event = {
	id = 242037 #triggered by HOL_186077
	random = no
	country = NIP
	name = "EVENTNAME242037" #Allow the Dutch to trade again
	desc = "EVENTHIST242037"
	#-#Suetsugu's death removed the primary stumbling block for the Dutch because he'd blocked access to the Shogun and his court. This allows Pieter Nuyts to negotiate a return to the status quo.

	action_a = {
		name = "ACTIONNAME242037A" #The Dutch have made amends
		command = { type = relation which = HOL value = 100 }
		command = { type = merchants value = 1 }
		command = { type = trade value = 250 }
	}
}

#(1635) The Sakoku Edict of 1635
#by waishi
event = {
	id = 242049
	trigger = {
		NOT = {
			OR = {
				countrysize = 11
				AND = {
					countrysize = 9
					owned = { province = 641 data = -1 } #Kyongju
					owned = { province = 642 data = -1 } #Yalu
				}
				AND = {
					countrysize = 7
					vassal = { country = NIP country = KOR }
				}
			}
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242049" #The Sakoku Edict of 1635
	desc = "EVENTHIST242049"
	#-#This edict is regarded as a prime example of the Japanese desire for seclusion: As more high officials of the shogunate had begun to focus to consolidate their regime, they had become to resent being involved in foreign affairs. This change was accelerated by the incident in 1628 in which a Spanish warship destroyed a Japanese Red Seal Ship in Ayutthaya. The shogunate determined to strengthen the isolationist policy, considering that such an accident caused by free trade would escalate into an unwilling international war. The Sakoku edict of 1635 was issued as the third of a series from 1623 to 1651, following the abolishment of the Red Seal Ship trade system in 1633. With the edict, the Japanese were to be prohibited completely from leaving and returning their country, Catholicism was strictly forbidden, and foreign trade was restricted as to set limit the ports open to trade (Nagasaki, Tsushima, Ryukyu, and Ezochi).

	date = { day = 1 month = january year = 1635 }
	offset = 30
	deathdate = { day = 29 month = december year = 1635 }

	action_a = {
		name = "ACTIONNAME242049A" #Turn to the closure policy
		command = { type = domestic which = innovative value = -3 }
		command = { type = domestic which = mercantilism value = 2 }
		command = { type = domestic which = land value = 2 }
		command = { type = stability value = 1 }
		command = { type = trade value = -200 }
		command = { type = merchants value = -3 }
		command = { type = inflation value = -1 } #Moderate the outflow of silver from Japan
		command = { type = sleepevent which = 242055 } #NIP: Japan turns toward the open-door policy (1639-1699)
	}
	action_b = {
		name = "ACTIONNAME242049B" #Seek to continue trade
		command = { type = stability value = -1 }
		command = { type = treasury value = -100 }
	}
}

#(1635) Magistrate of Temples and Shrines
#by waishi
event = {
	id = 242039
	random = no
	country = NIP
	name = "EVENTNAME242039" #Magistrate of Temples and Shrines
	desc = "EVENTHIST242039"
	#-#On 9 November 1635, Tokugawa Iemitsu appointed Ando Shigenaga as the first Magistrate of Temples and Shrines. The magistrates managed all religious matters in the country and were considered as the head post of three important magistrates (the other two were Magistrate of Finance and Magistrate of Edo). Creation of the post represented the accomplishment of the shogunate's religious policies which attempted to dominate all Buddhism sects.

	date = { day = 8 month = november year = 1635 }

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = provincereligion which = 683 value = confucian } #Ezochi
		command = { type = provincereligion which = 684 value = confucian } #Tohoku
		command = { type = provincereligion which = 687 value = confucian } #Shikoku
		command = { type = provincereligion which = 688 value = confucian } #Kyushu
	}
}

#(1637) The Shimabara Rebellion
#by waishi
event = {
	id = 242050
	trigger = {
		owned = { province = 688 data = -1 } #Kyushu
		NOT = {
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242050" #The Shimabara Rebellion
	desc = "EVENTHIST242050"
	#-#Shimabara domain in Kyushu had been misruled in 1620-30s under Matsukura family. They levied heavy duties on subjects to build a new castle, bribe high officials, and prepare an expedition to the Luzon regardless of their ability to pay. They also cracked down on Christianity so obsessively as to devise new tortures by themselves. On December 1637, this finally led to the Shimabara Rebellion, the largest revolt during the shogunate era in which about 30,000 peasants helped by masterless samurais rebelled against the ruler, Matsukura Katsuie. He failed to deal with them and eventually the shogunate itself suppressed and killed them all but one on April 1638. The daimyo was excuted which was to be the sole example during the era because the shogunate recognized that his evil deeds were the root of the rebellion. Nevertheless, the shogunate decided to take the opportunity to drive Christians out.

	date = { day = 1 month = march year = 1637 }
	offset = 30
	deathdate = { day = 29 month = december year = 1637 }

	action_a = {
		name = "ACTIONNAME242050A" #Crush them and oppress Christians to the ground
		command = { type = stability value = -1 }
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 } #Kyushu
		command = { type = province_revoltrisk which = 688 value = -21 } #Kyushu
		command = { type = conversion which = 688 } #Kyushu
		command = { type = domestic which = innovative value = -1 }
		command = { type = trade value = -500 }
	}
	action_b = {
		name = "ACTIONNAME242050B" #Crush them but be concilatory to Christians
		command = { type = stability value = -2 }
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 } #Kyushu
		command = { type = province_revoltrisk which = 688 value = -21 } #Kyushu
		command = { type = revoltrisk which = 120 value = 5 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = trade value = 500 }
	}
}

#(1639-1699) Policy of Sakoku implemented
#Bugfix and Expansion by Jinnai for EEP - modified by waishi
event = {
	id = 3880
	trigger = {
		atwar = no
		NOT = {
			OR = {
				countrysize = 11
				AND = {
					countrysize = 9
					owned = { province = 641 data = -1 } #Kyongju
					owned = { province = 642 data = -1 } #Yalu
				}
				AND = {
					countrysize = 7
					vassal = { country = NIP country = KOR }
				}
			}
			event = 242055 #NIP: Japan turns toward the open-door policy (1639-1699)
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME3880" #Policy of Sakoku implemented
	desc = "EVENTHIST3880"
	#-#Because of the political consolidation of Japan, antagonism of the ruling elite towards Christianity, and general disdain for the southern Barbarians as Europeans were termed, the Tokugawa regime in the 1630s began to implement the policy of Sakoku, or the Closed Country. The Merchant Marine was disbanded, no large ocean-going ships were allowed, and foreign travel was prohibited. This culminated in the final Sakoku edict of 1639 that banned all trade with Europeans except for a small Dutch factory at Nagasaki. Japan then turned inward for the next two centuries. However, if Japan had maintained closer contacts with the West by tolerating Christianity or getting itself deeply involved with situations in East Asia, then this policy of isolation would never had occurred.

	date = { day = 4 month = august year = 1639 }
	offset = 300
	deathdate = { day = 1 month = january year = 1699 }

	action_a = {
		name = "ACTIONNAME3880A" #Close the ports to foreigners
		command = { type = domestic which = innovative value = -6 }
		command = { type = domestic which = mercantilism value = 4 }
		command = { type = domestic which = centralization value = 2 }
		command = { type = domestic which = land value = 5 }
		command = { type = domestic which = aristocracy value = 3 }
		command = { type = technology which = exotic }
		command = { type = stability value = 6 }
		command = { type = trade value = -800 }
		command = { type = merchants value = -6 }
		command = { type = inflation value = -3 }
		command = { type = removecore which = 641 } #Kyongju
		command = { type = removecore which = 642 } #Yalu
		command = { type = removecore which = 689 } #Taiwan
		command = { type = removecore which = 690 } #Luzon
		command = { type = sleepevent which = 6916 } #NIP: Red Seal Ships
		command = { type = sleepevent which = 242055 } #NIP: Japan turns toward the open-door policy
	}
	action_b = {
		name = "ACTIONNAME3880B" #Restrict the Foreigners
		command = { type = domestic which = innovative value = -2 }
		command = { type = domestic which = mercantilism value = 2 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = stability value = -2 }
		command = { type = trade value = -500 }
		command = { type = removecore which = 641 } #Kyongju
		command = { type = removecore which = 642 } #Yalu
		command = { type = removecore which = 689 } #Taiwan
		command = { type = removecore which = 690 } #Luzon
		command = { type = sleepevent which = 6916 } #NIP: Red Seal Ships
	}
}
#(1639-1699) Japan turns toward the open-door policy - Ahistorical
#by waishi
event = {
	id = 242055
	trigger = {
		atwar = no
		stability = 3
		NOT = {
			event = 3880 #NIP: Policy of Sakoku implemented
			domestic = { type = land value = 6 }
		}
		owned = { province = 683 data = -1 } #Ezochi
		owned = { province = 684 data = -1 } #Tohoku
		owned = { province = 685 data = -1 } #Kanto
		owned = { province = 686 data = -1 } #Kansai
		owned = { province = 687 data = -1 } #Shikoku
		owned = { province = 688 data = -1 } #Kyushu
		control = { province = 683 data = -1 }
		control = { province = 684 data = -1 }
		control = { province = 685 data = -1 }
		control = { province = 686 data = -1 }
		control = { province = 687 data = -1 }
		control = { province = 688 data = -1 }
		OR = {
			countrysize = 11
			AND = {
				countrysize = 9
				owned = { province = 641 data = -1 } #Kyongju
				owned = { province = 642 data = -1 } #Yalu
				control = { province = 641 data = -1 }
				control = { province = 642 data = -1 }
			}
			AND = {
				countrysize = 7
				vassal = { country = NIP country = KOR }
			}
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242055" #Japan turns toward the open-door policy
	desc = "EVENTHIST242055"
	#-#

	date = { day = 4 month = august year = 1639 }
	offset = 300
	deathdate = { day = 1 month = january year = 1699 }

	action_a = {
		name = "ACTIONNAME242055A" #Nothing is more important than maintaining the present regime
		command = { type = domestic which = innovative value = -3 }
		command = { type = domestic which = mercantilism value = 2 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = aristocracy value = 2 }
		command = { type = stability value = 2 }
		command = { type = trade value = -500 }
		command = { type = merchants value = -2 }
		command = { type = removecore which = 641 } #Kyongju
		command = { type = removecore which = 642 } #Yalu
		command = { type = removecore which = 689 } #Taiwan
		command = { type = removecore which = 690 } #Luzon
	}
	action_b = {
		name = "ACTIONNAME242055B" #Jump into the international community
		command = { type = revoltrisk which = 240 value = 5 }
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = 688 } #Kyushu
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = domestic which = innovative value = 2 }
		command = { type = domestic which = mercantilism value = -2 }
		command = { type = domestic which = land value = -2 }
		command = { type = domestic which = aristocracy value = -2 }
		command = { type = technology which = muslim }
		command = { type = stability value = -3 }
		command = { type = trade value = 500 }
		command = { type = merchants value = 2 }
		command = { type = setflag which = [International] }
		command = { type = sleepevent which = 3880 } #NIP: Policy of Sakoku implemented
	}
}

#(1645-1646) Musashi Miyamoto writes the Book of Five Rings - Flavor
event = {
	id = 6961
	random = no
	country = NIP
	name = "EVENTNAME6961" #Musashi Miyamoto writes the Book of Five Rings
	desc = "EVENTHIST6961"
	#-#Musashi Miyamoto was the greatest samurai in Japanese history. His Book of Five Rings represents the definate work on Japanese 17th century tactics and swordmanship.

	date = { day = 1 month = june year = 1645 }
	offset = 180
	deathdate = { day = 1 month = june year = 1646 }

	action_a = {
		name = "OK"
		command = { type = infra value = 50 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = Quality value = 1 }
	}
}

#(1652-1653) Kabuki banned again by authorities - Flavor
event = {
	id = 6962
	random = no
	country = NIP
	name = "EVENTNAME6962" #Kabuki banned again by authorities
	desc = "EVENTHIST6962"
	#-#When women were banned from performing Kabuki they were replaced by teenage boys. The authorities subsequently banned teenage boys from the stage arguing that it was immoral and again citing the availability of the performers to their audience off-stage as the reason. The teenage boys were replaced by adult men which has been used since.

	date = { day = 1 month = june year = 1652 }
	offset = 180
	deathdate = { day = 1 month = june year = 1653 }

	action_a = {
		name = "OK"
		command = { type = domestic which = Innovative value = -1 }
	}
}

#(1661-1672) Shakushain's Revolt
#by waishi
event = {
	id = 242043
	trigger = {
		owned = { province = 683 data = -1 } #Ezochi
	}
	random = no
	country = NIP
	name = "EVENTNAME242043" #Shakushain's Revolt
	desc = "EVENTHIST242043"
	#-#This large-scale revolt was a final attempt by Ainu (the natives of Ezochi, today's Hokkaido) to preserve their political independence. Since the late of 16th century, the Matsumae clan, local rulers of the area of Ezochi then controlled by Japanese, had been given the monopoly in the trade between Japanese and Ainu at there. The clan had used their position to make an unfair profit by which the natives had came to be deeply disaffected. Eventually on June 1669, Ainu tribes throughout the region which had been opposed to each other were now united in a rebellion against Japanese under the leadership of Shakushain, a charismatic Ainu chieftain. Although they fought fiercely, losing their leaders to battles and assassinations they were suppressed by 1672. After that, the Matsumae clan and the shogunate pursued more cruel oppression and disorganization on their local community. They would never see such a serious trouble until 1789.

	date = { day = 1 month = march year = 1661 }
	offset = 60
	deathdate = { day = 29 month = december year = 1672 }

	action_a = {
		name = "ACTIONNAME6938A" #Crush the rebellion
		command = { type = revolt which = 683 } #Ezochi
		command = { type = revolt which = 683 } #Ezochi
		command = { type = revolt which = 683 } #Ezochi
	}
	action_b = {
		name = "ACTIONNAME6938B" #Appease the natives
		command = { type = population which = 683 value = -1000 } #Ezochi
		command = { type = provincetax which = 683 value = -1 } #Ezochi
		command = { type = treasury value = -100 }
		command = { type = sleepevent which = 242044 } #NIP: Menashi-Kunashir Rebellion
	}
}

#(1679-1680) First Sewamono written by Chikamatsu Monzaemon - Flavor
event = {
	id = 6963
	random = no
	country = NIP
	name = "EVENTNAME6963" #First Sewamono written by Chikamatsu Monzaemon
	desc = "EVENTHIST6963"
	#-#The traditional plays in Japanese theatre were usually about the lives of long dead aristocrats. Chikamatsu Monzaemon waas the first to write plays about the everyday Japanese at the lowest levels of Japanese society and their lives like merchants and prostitutes called sewamono. The usual theme is on the conflict between duty and emotions.

	date = { day = 1 month = june year = 1679 }
	offset = 180
	deathdate = { day = 1 month = june year = 1680 }

	action_a = {
		name = "OK"
		command = { type = infra value = 50 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = Quality value = 1 }
	}
}

#(1681-1682) Basho Matsuo develops haiku poetry - Flavor
event = {
	id = 6964
	random = no
	country = NIP
	name = "EVENTNAME6964" #Basho Matsuo develops haiku poetry
	desc = "EVENTHIST6964"
	#-#Basho is considered the most accomplished poet in Japanese history. He popularised the haiku form of poetry. The disciples of Basho spread his teachings and the haiku remains the most popular form of poetry in Japan.

	date = { day = 1 month = june year = 1681 }
	offset = 180
	deathdate = { day = 1 month = june year = 1682 }

	action_a = {
		name = "OK"
		command = { type = infra value = 200 }
	}
}

#(1685) All Life is Holy - Flavor
event = {
	id = 1508
	random = no
	country = NIP
	name = "EVENTNAME1508" #All Life is Holy
	desc = "EVENTHIST1508"
	#-#His Eminence the Shogun has declared that the taking of lives, abandonment or cruelty towards animals is illegal. Any transgressions will be dealt with severely.

	date = { day = 0 month = january year = 1685 }
	offset = 300
	deathdate = { day = 0 month = january year = 1686 }

	action_a = {
		name = "OK"
		command = { type = stability value = -2 }
	}
}

#(1703) Incident of the 47 Ronin - Flavor
event = {
	id = 6965
	random = no
	country = NIP
	name = "EVENTNAME6965" #Incident of the 47 Ronin
	desc = "EVENTHIST6965"
	#-#On the snowy night of January 30, 1703 forty-six samurai burst into the mansion of Kira Yoshinaka, the man responsible for the death of their former master, Asano Naganori, the lord of Ako. Kira had taunted Asano in 1701 until he had lost his composure, drew his sword, and lunged at his antagonist. The shogun could not allow such a gross breach of conduct to go unpunished, and he ordered Asano's death by seppuku. The event captured the imagination of Japan at a time when the samurai ideals of loyalty and resolute action seemed almost forgotten. Should we hold civil law over the acceptance of military honor?

	date = { day = 1 month = january year = 1703 }
	offset = 30
	deathdate = { day = 1 month = april year = 1703 }

	action_a = {
		name = "ACTIONNAME6965A" #Order seppukku# #Order seppukku
		command = { type = infra value = 100 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = Quality value = -1 }
	}
	action_b = {
		name = "ACTIONNAME6965B" #Let them off# #Let them off
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = Quality value = 1 }
		command = { type = stability value = -2 }
	}
}

#(1758-1759) First mawaributai built by Namiki Shozo - Flavor
event = {
	id = 6966
	random = no
	country = NIP
	name = "EVENTNAME6966" #First mawaributai built by Namiki Shozo
	desc = "EVENTHIST6966"
	#-#Namiki Shozo was a playwright determined to liven up performances on stages. He was the first to build a revolving stage, called a mawaributai, integrated in the main stage. This allowed very fast scene switches, which together with his use of mechanisms like cable systems allowing actors to fly and hinged roofs that opened to show the action inside the house, made going to the theatre more of an experience.

	date = { day = 1 month = june year = 1758 }
	offset = 180
	deathdate = { day = 1 month = june year = 1759 }

	action_a = {
		name = "OK"
		command = { type = infra value = 50 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = Innovative value = -1 }
	}
}

#(1789-1799) Menashi-Kunashir Rebellion
#by waishi
event = {
	id = 242044
	trigger = {
		owned = { province = 683 data = -1 } #Ezochi
	}
	random = no
	country = NIP
	name = "EVENTNAME242044" #Menashi-Kunashir Rebellion
	desc = "EVENTHIST242044"
	#-#The shogunate had been well aware of the threat of the Russian advance toward the Pacific Ocean since the early of 18th century. In 1789, growing dissatisfaction of Ainu (the natives of Ezochi) with high-handed ways of Japanese merchants led to a rebellion in eastern Ezochi. The shogunate ruthlessly quashed them and then exploited the incident for strengthening its control over there. By 1809, whole of Ezochi became to be directly ruled by the shogunate.

	date = { day = 1 month = march year = 1789 }
	offset = 60
	deathdate = { day = 29 month = december year = 1799 }

	action_a = {
		name = "ACTIONNAME6938A" #Crush the rebellion
		command = { type = revolt which = 683 } #Ezochi
		command = { type = revolt which = 683 } #Ezochi
		command = { type = revolt which = 683 } #Ezochi
	}
	action_b = {
		name = "ACTIONNAME6938B" #Appease the natives
		command = { type = population which = 683 value = -1000 } #Ezochi
		command = { type = provincetax which = 683 value = -1 } #Ezochi
		command = { type = treasury value = -100 }
	}
}

#(1793-1794) Kitagawa Utamaro completes Selected Poems on Love - Flavor
event = {
	id = 6967
	random = no
	country = NIP
	name = "EVENTNAME6967" #Kitagawa Utamaro completes Selected Poems on Love
	desc = "EVENTHIST6967"
	#-#Kitagawa Utamaro brought the bijinga ukiyoe (wood block prints of beautiful women) to perfection in his Selected Poems on Love. The portraits of beautiful women minimized or omitted altogether the background and depicted what he considered to be ideal feminine beauty with smooth lines and a harmonisation of colors. Kitagawa's prints had a great influence in Japan and in West. The West based its view of the Japanese people in general and women in particular on Kitagawas prints.

	date = { day = 1 month = june year = 1793 }
	offset = 180
	deathdate = { day = 1 month = june year = 1794 }

	action_a = {
		name = "OK"
		command = { type = infra value = 100 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
}

#(1806-1808) Edict to Supply Foreign Vessels
event = {
	id = 242060
	trigger = {
		OR = {
			event = 3880 #NIP: Policy of Sakoku implemented
			NOT = {
				countrysize = 25 #Open-door but too small Japan
			}
		}
	}
	random = no
	country = NIP
	name = "EVENTNAME242060" #Edict to Supply Foreign Vessels
	desc = "EVENTHIST242060"
	#-#In 1806, the shogunate issued the edict to the effect that they allowed to only supply food and fuel for foreign vessels as they faced with increasing demands by European nations including making trade agreement, in addition to illegal activities of their ships. They wished to stay away from advanced European powers through the Edict, but it might turn out to irritate them more.

	date = { day = 1 month = january year = 1806 }
	offset = 30
	deathdate = { day = 2 month = october year = 1808 }

	action_a = {
		name = "ACTIONNAME242060A" #Keep them away gently
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = domestic which = land value = 1 }
		command = { type = sleepevent which = 242059 } #NIP: Increase of European shipping around Japan
	}
	action_b = {
		name = "ACTIONNAME242060B" #It's unlikely to work
		command = { type = stability value = -1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = land value = -1 }
	}
}

#(1808-1810) Attack of HMS Phaeton on Nagasaki harbor
event = {
	id = 242061 #triggered by ENG_164242
	random = no
	country = NIP
	name = "EVENTNAME242061" #Attack of HMS Phaeton on Nagasaki harbor
	desc = "EVENTHIST242061"
	#-#As the Netherlands were conquered, all Dutch colonies began to provide their resources for France. Willem V the former stadholder asked Great Britain for asylum and taking over these lands. It gave Great Britain a fine reason to attack on any former VOC's territory. Even though the shogunate had known it by annual reports from Dutch merchants in Nagasaki, they had paid little attention because of the great distance. However, historically on 4 Oct 1808, HMS Phaeton sailing under a Dutch flag entered the harbor of Nagasaki. When fooled Dutch residents visited the ship, the crews captured them and threatened the authorities to burn down the harbor demanding fresh food and fuel. The shogunate decided to fight off them but it ended up revealing another problem: Local officials had reduced the garrison without asking mainly because of their default. Eventually, the shogunate reluctantly accepted their demands and the frigate left the harbor at ease. The incident caused not only punishments for those responsible, but also arguments on the diplomatic policy all over the country. The antiforeignism became dominant since there were repeated intrusions into coastal waters by foreign vessels even after the incident. Then the shogunate decided to adopt exclusive policies, which finally led to the reactionary Edict to Repel Foreign Vessels of 1825.

	action_a = {
		name = "ACTIONNAME242061A" #Support the antiforeigner faction
		command = { type = treasury value = -75 }
		command = { type = relation which = ENG value = -200 }
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = trigger which = 164243 } #ENG: HMS Phaeton attacked on Nagasaki harbor
	}
	action_b = {
		name = "ACTIONNAME242061B" #Against the antiforeigner faction
		command = { type = treasury value = -75 }
		command = { type = relation which = ENG value = -150 }
		command = { type = stability value = -1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = domestic which = land value = -1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = trigger which = 164243 } #ENG: HMS Phaeton attacked on Nagasaki harbor
	}
}

#-----------------------------------------------------------------------------------------------
#Random Events
#-----------------------------------------------------------------------------------------------

#(1458-1555) The Ainu's Revolt in Ezochi
event = {
	id = 6926
	trigger = {
		year = 1458
		NOT = { year = 1556 }
		owned = { province = 683 data = -1 } #Ezochi
	}
	random = yes
	country = NIP
	name = "EVENTNAME6926" #The Ainu's Revolt in Ezochi
	desc = "EVENTHIST6926"
	#-#The Ainu (the natives of Ezochi) are attacking Hakodate to try and break the Wajin control over Ezochi. This requires that we show them who is in control.

	action_a = {
		name = "OK"
		command = { type = revolt which = 683 } #Ezochi
		command = { type = revolt which = 683 } #Ezochi
		command = { type = revolt which = 683 } #Ezochi
	}
}

#(1458-1820) Tokusei Ikki
event = {
	id = 6923
	trigger = {
		year = 1458
		domestic = { type = SERFDOM value = 5 }
	}
	random = yes
	country = NIP
	name = "EVENTNAME6923" #Tokusei Ikki
	desc = "EVENTHIST6923"
	#-#Peasants demand that their debts are to be annulled and taxes lowered. If we go along with their demands it is likely that we will lose face, that the mechants will be upset and it will disrupt economic development. If we destroy them the peasants are likely to revolt all over the country. What should we do?

	action_a = {
		name = "ACTIONNAME6923A" #Reduce taxes and annul debts
		command = { type = stability value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = trade value = -250 }
		command = { type = infra value = -250 }
	}
	action_b = {
		name = "ACTIONNAME6923B" #Crush the ikki
		command = { type = stability value = -3 }
		command = { type = revolt which = -1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = revoltrisk which = 12 value = 3 }
	}
}

#(1477-1571 or 1820) Ikko-ikki
event = {
	id = 6924
	trigger = {
		year = 1477
		domestic = { type = innovative value = 3 }
		NOT = { religion = confucian }
	}
	random = yes
	country = NIP
	name = "EVENTNAME6924" #Ikko-ikki
	desc = "EVENTHIST6924"
	#-#The peasants and the monks have risen against the nobles. The combination of the masses of peasants and the skill of the Sohei warrior-monks has destroyed the noble's army and they now threaten the Shogunate. We must destroy them as quickly as possible or submit to their demands!

	action_a = {
		name = "ACTIONNAME6924A" #Enforce the ancient Japanese values
		command = { type = stability value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = trade value = -300 }
	}
	action_b = {
		name = "ACTIONNAME6924B" #Crush the Ikko-ikki
		command = { type = stability value = -2 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = religiousrevolt which = -1 }
		command = { type = revoltrisk which = 16 value = 3 }
	}
}

#-----------------------------------------------------------------------------------------------
#Post-civil War

#(1592-1820) Red seal ships trade
event = {
	id = 6916
	trigger = {
		year = 1592
		NOT = {
			event = 3880 #NIP: Policy of Sakoku implemented (1639-1699)
			domestic = { type = land value = 6 }
		}
	}
	random = yes
	country = NIP
	name = "EVENTNAME6916" #Red seal ships trade
	desc = "EVENTHIST6916"
	#-#Red seal ships are ships that carry an official seal from the Japanese government certifying that they have official approval. This was to prevent them from confused with the numerous pirates active throughout Eastern Asia. Historically more than 350 Japanese ships went all over South-East Asia including Taiwan, Macau, the Philippines, Vietnam, Cambodia, Siam, Malaysia, and Indonesia under this permit system between 1600 and 1635.

	action_a = {
		name = "OK"
		command = { type = treasury value = 100 }
		command = { type = merchants value = 6 }
	}
}

#-----------------------------------------------------------------------------------------------
#Yoshimasa's Extravange

#(1449-1490) The Extravagant Donations of Yoshimasa
event = {
	id = 242033
	trigger = {
		NOT = { stability = 3 }
		NOT = {
			flag = [oninwar_hosokawa]
			flag = [oninwar_yamana]
		}
		monarch = 097504 #Ashikaga Yoshimasa
	}
	random = yes
	country = NIP
	name = "EVENTNAME242033" #The Extravagant Donations of Yoshimasa
	desc = "EVENTHIST242033"
	#-#Yoshimasa often made significant donations to important buddhist monistaries and shinto shrines throughout japan.

	action_a = {
		name = "ACTIONNAME242033A" #Make a donation
		command = { type = stability value = 1 }
		command = { type = infra value = 5 }
		command = { type = treasury value = -50 }
	}
}

#(1449-1490) The Extravagant Gifts of Yoshimasa
event = {
	id = 242034
	trigger = {
		NOT = {
			infra = 10
			domestic = { type = centralization value = 1 }
			flag = [oninwar_hosokawa]
			flag = [oninwar_yamana]
		}
		monarch = 097504 #Ashikaga Yoshimasa
	}
	random = yes
	country = NIP
	name = "EVENTNAME242034" #The Extravagant Gifts of Yoshimasa
	desc = "EVENTHIST242034"
	#-#Yoshimasa often made significant gifts to various groups or indivisuals.

	action_a = {
		name = "ACTIONNAME242034A" #Make a donation
		command = { type = treasury value = -50 }
		command = { type = domestic which = centralization value = -1 }
	}
}

#(1449-1490) The Extravagant Support of the Arts by Yoshimasa
event = {
	id = 242035
	trigger = {
		NOT = {
			infra = 10
			domestic = { type = innovative value = 10 }
			flag = [oninwar_hosokawa]
			flag = [oninwar_yamana]
		}
		monarch = 097504 #Ashikaga Yoshimasa
	}
	random = yes
	country = NIP
	name = "EVENTNAME242035" #The Extravagant Support of the Arts by Yoshimasa
	desc = "EVENTHIST242035"
	#-#Yoshimasa often helped out potentially great aspiring artists.

	action_a = {
		name = "ACTIONNAME242035A" #Make a donation
		command = { type = infra value = 5 }
		command = { type = treasury value = -50 }
		command = { type = domestic which = innovative value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1638-1820) Ikki and Kakure-Kirishitans - Ahistorical
event = {
	id = 242058
	trigger = {
		ai = no
		year = 1638
		NOT = {
			owned = { province = 690 data = -1 } #Luzon, a main base of European missionaries
			religion = confucian
			religion = catholic
			religion = counterreform
			religion = protestant
			religion = reformed
		}
	}
	random = yes
	country = NIP
	name = "EVENTNAME242058" #Ikki and Kakure-Kirishitans
	desc = "EVENTHIST242058"
	#-#Kakure-Kirishitans are called 'Kakure (Hidden)' Christians because they went underground to avoid harsher persecution from the shogunate after the Shimabara Rebellion of 1637. Historically they barely managed to survive the shogunate era but they became negligible disassembled groups and many of them drifted away from Catholic teachings without good leaders. However, if the shogunate's religious policies had been insufficient because of a lack of the strong Confucian backbone, Japanese Christians would have been able to be united enough to act as seditionaries, combined with mass discontent with the regime in some cases.

	action_a = {
		name = "ACTIONNAME6924A" #Enforce the ancient Japanese values
		command = { type = stability value = -1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = infra value = -150 }
	}
	action_b = {
		name = "ACTIONNAME6923B" #Crush the ikki
		command = { type = stability value = -1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 12 value = 2 }
	}
}

#-----------------------------------------------------------------------------------------------
#(1800-1820) Increase of European shipping around Japan
event = {
	id = 242059
	trigger = {
		year = 1800
		OR = {
			exists = SPA
			exists = POR
			exists = ENG
			exists = FRA
			exists = HOL
			exists = RUS
			exists = USA
		}
		NOT = {
			domestic = { type = land value = 6 }
		}
	}
	random = yes
	country = NIP

	name = "EVENTNAME242059" #Increase of European shipping around Japan
	desc = "EVENTHIST242059"
	#-#European shipping gradually increased around Japan's mainland since the late 18th century as their economic activities expanded in the region. Almost all of them were ordinary catcher boats while some acted suspiciously like illegal coastal surveying. The shogunate and local coastal domains were pressed by the problem.

	action_a = {
		name = "ACTIONNAME242059A" #Enhance inshore patrols
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME242059B" #Let them be
		command = { type = stability value = -1 }
	}
}

#-----------------------------------------------------------------------------------------------

#First free id: 242045 - next: 242089
