flavorJAP.txt

(45 KB) Pobierz
########################################
# Flavor Events for Japan and Daimyos
#
# written by Sara Wendel-Örtqvist
########################################

namespace = flavor_jap
normal_or_historical_nations = yes

# Onin War
country_event = {
	id = flavor_jap.1
	title = "flavor_jap.EVTNAME1"
	desc = "flavor_jap.EVTDESC1"
	picture = BATTLE_eventPicture
	
	trigger = {
		OR = {
			AND = {
				tag = JAP
				any_known_country = {
					culture_group = japanese_g
					war_with = JAP
				}
			}
			AND = {
				NOT = {
					tag = JAP
				}
				culture_group = japanese_g
				government = daimyo
				any_known_country = {
					culture_group = japanese_g
					government = daimyo
					war_with = ROOT
				}
			}
		}
		is_year = 1467
		NOT = { is_year = 1500 }
		has_regency = no
		NOT = {
			has_ruler_modifier = jap_sengoku_jidai
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_jap.EVTOPTA1"
		add_ruler_modifier = {
			name = jap_sengoku_jidai
		}
	}
}

# Ikko-ikkis rising!
country_event = {
	id = flavor_jap.2
	title = "flavor_jap.EVTNAME2"
	desc = "flavor_jap.EVTDESC2"
	picture = ANGRY_MOB_eventPicture
	
	trigger = {
		NOT = { stability = 0 }
		culture_group = japanese_g
		NOT = { tag = JAP }
		NOT = {
			has_country_modifier = ikko_ikkis_timer
		}
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	immediate = {
		hidden_effect = {
			add_country_modifier = {
				name = ikko_ikkis_timer
				duration = 365
				hidden = yes
			}
		}
	}
	
	option = {
		name = "flavor_jap.EVTOPTA2"
		random_owned_province = {
			limit = {
				culture_group = japanese_g
			}
			spawn_rebels = {
				type = ikko_ikki_rebels
				size = 1
			}
		}
	}
	
	option = {
		name = "flavor_jap.EVTOPTB2"
		every_owned_province = {
			add_province_modifier = {
				name = add_unrest_5_modifier
				duration = 1825
			}
		}
		add_prestige = -1
	}
}

# Ikko-ikkis spreading!
country_event = {
	id = flavor_jap.3
	title = "flavor_jap.EVTNAME3"
	desc = "flavor_jap.EVTDESC3"
	picture = ANGRY_MOB_eventPicture
	
	trigger = {
		stability = -3
		NOT = { stability = 0 }
		culture_group = japanese_g
		any_neighbor_country = {
			has_spawned_rebels = ikko_ikki_rebels
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	option = {
		name = "flavor_jap.EVTOPTA3"
		random_owned_province = {
			limit = {
				culture_group = japanese_g
			}
			spawn_rebels = {
				type = ikko_ikki_rebels
				size = 1
			}
		}
	}
	option = {
		name = "flavor_jap.EVTOPTB2"
		every_owned_province = {
			add_province_modifier = {
				name = add_unrest_5_modifier
				duration = 1825
			}
		}
		add_prestige = -1
	}
}

# Wokou
country_event = {
	id = flavor_jap.4
	title = "flavor_jap.EVTNAME4"
	desc = "flavor_jap.EVTDESC4"
	picture = NAVAL_MILITARY_eventPicture
	
	trigger = {
		culture_group = japanese_g
		is_year = 1523
		NOT = { is_year = 1588 }
		OR = {
			exists = KOR
			exists = MNG
		}
		KOR = {
			NOT = {
				junior_union_with = ROOT
			}
			NOT = {
				senior_union_with = ROOT
			}
			NOT = {
				vassal_of = ROOT
			}
			NOT = {
				overlord_of = ROOT
			}
			NOT = {
				alliance_with = ROOT
			}
		}
		MNG = {
			NOT = {
				junior_union_with = ROOT
			}
			NOT = {
				senior_union_with = ROOT
			}
			NOT = {
				vassal_of = ROOT
			}
			NOT = {
				overlord_of = ROOT
			}
			NOT = {
				alliance_with = ROOT
			}
		}
		num_of_ports = 1
		NOT = {
			has_country_modifier = jap_wokou
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_jap.EVTOPTA4" # Fund the pirates
		add_years_of_income = -0.25
		add_prestige = -5
		add_country_modifier = { 
			name = jap_wokou 
			duration = 7300 
		}
		if = {
			limit = {
				exists = KOR
			}
			KOR = {
				add_opinion = {
					who = ROOT
					modifier = opinion_displeased
				}
			}
		}
		if = {
			limit = { exists = MNG }
			MNG = {
				add_opinion = {
					who = ROOT
					modifier = opinion_displeased
				}
			}
		}
	}
	option = {
		name = "flavor_jap.EVTOPTB4" # Tell them to cease and desist
		if = {
			limit = { exists = KOR }
			KOR = {
				add_opinion = {
					who = ROOT
					modifier = opinion_pleased
				}
			}
		}
		if = {
			limit = { exists = MNG }
			MNG = {
				add_opinion = {
					who = ROOT
					modifier = opinion_pleased
				}
			}
		}
	}
}

# Question about Sakoku
country_event = {
	id = flavor_jap.5
	title = "flavor_jap.EVTNAME5"
	desc = "flavor_jap.EVTDESC5"
	picture = MERCHANTS_TALKING_eventPicture
	
	trigger = {
		culture_group = japanese_g
		has_country_modifier = sakoku_law
		has_country_flag = sakoku_law
		NOT = {
			has_ruler_modifier = jap_follow_sakoku
		}
		NOT = {
			has_ruler_modifier = jap_question_sakoku
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_jap.EVTOPTA5" # Keep following the Sakoku
		add_ruler_modifier = {
			name = jap_follow_sakoku
		}
	}
	option = {
		name = "flavor_jap.EVTOPTB5" # Question the Sakoku law
		add_ruler_modifier = {
			name = jap_question_sakoku
		}
	}
}

# Rangaku
country_event = {
	id = flavor_jap.6
	title = "flavor_jap.EVTNAME6"
	desc = "flavor_jap.EVTDESC6"
	picture = MERCHANTS_TALKING_eventPicture
	
	trigger = {
		culture_group = japanese_g
		government = daimyo
		has_country_modifier = sakoku_law
		has_country_flag = sakoku_law
		has_country_flag = ned_dejima_allowed
		NOT = {
			has_ruler_modifier = jap_rangaku
		}
		NOT = {
			has_ruler_modifier = jap_closed
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_jap.EVTOPTA6" # Open our provinces to the Dutch
		add_ruler_modifier = { 
			name = jap_rangaku
		}
	}
	option = {
		name = "flavor_jap.EVTOPTB6" # Keep our provinces closed
		add_ruler_modifier = { 
			name = jap_closed
		}
	}
}

# Nanban Boeki
country_event = {
	id = flavor_jap.7
	title = "flavor_jap.EVTNAME7"
	desc = "flavor_jap.EVTDESC7"
	picture = MERCHANTS_TALKING_eventPicture
	
	trigger = {
		culture_group = japanese_g
		NOT = { tag = RYU }
		has_global_flag = japan_has_encountered_the_west
		NOT = { has_institution = global_trade }
		NOT = { has_country_modifier = sakoku_law }
		NOT = { has_country_flag = sakoku_law }
		NOT = { has_country_flag = western_trade_flag }
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = "flavor_jap.EVTOPTA7" # Welcome the new traders
		add_country_modifier = { 
			name = western_trade 
			duration = -1 
		}
		set_country_flag = western_trade_flag
	}
}

# Western Wrecked Ship (William Adams)
country_event = {
	id = flavor_jap.8
	title = "flavor_jap.EVTNAME8"
	desc = "flavor_jap.EVTDESC8"
	picture = ADVISOR_eventPicture
	
	trigger = {
		culture_group = japanese_g
		has_country_modifier = western_trade
		had_country_flag = { flag = western_trade_flag days = 90 }
		has_regency = no
		NOT = { has_country_flag = william_adams }
		num_of_ports = 1
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		set_country_flag = william_adams
	}
	
	option = {
		name = "flavor_jap.EVTOPTA8" # Help the foreign shipwreckers
		add_stability = -1
		add_ruler_modifier = { 
			name = jap_western_wrecked_ship
		}
	}
	option = {
		name = "flavor_jap.EVTOPTB8" # Do nothing
		add_stability_or_adm_power = yes
	}
	option = {
		name = "flavor_jap.EVTOPTC8" # Bring the foreigner to me
		add_stability = -1
		define_advisor = {
			name = "William Adams"
			type = trader
			discount = yes
			skill = 2
		}
	}
}

# Kirishitan
country_event = {
	id = flavor_jap.9
	title = "flavor_jap.EVTNAME9"
	desc = "flavor_jap.EVTDESC9"
	picture = RELIGION_eventPicture
	
	trigger = {
		culture_group = japanese_g
		NOT = { religion = catholic }
		is_year = 1543
		any_owned_province = {
			culture_group = japanese_g
			religion = catholic
			can_spawn_rebels = catholic_rebels
		}
		has_country_flag = western_trade_flag
		NOT = { stability = 1 }
	}
	
	mean_time_to_happen = {
		months = 400
	}
	
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					culture_group = japanese_g
					religion = catholic
					can_spawn_rebels = catholic_rebels
				}
				set_province_flag = jap_kirishitan_flag
			}
			random_owned_province = {
				limit = {
					culture_group = japanese_g
					religion = catholic
					can_spawn_rebels = catholic_rebels
					NOT = { has_province_flag = jap_kirishitan_flag }
				}
				set_province_flag = jap_kirishitan_flag
			}
			random_owned_province = {
				limit = {
					culture_group = japanese_g
					religion = catholic
					can_spawn_rebels = catholic_rebels
					NOT = { has_province_flag = jap_kirishitan_flag }
				}
				set_province_flag = jap_kirishitan_flag
			}
		}
	}
	
	option = {
		name = "flavor_jap.EVTOPTA9" # Stop the missionaries!
		every_owned_province = {
			limit = {
				has_province_flag = jap_kirishitan_flag
			}
			spawn_rebels = { 
				type = catholic_rebels 
				size = 2 
			}
			clr_province_flag = jap_kirishitan_flag
		}
	}
	option = {
		name = "flavor_jap.EVTOPTB9" # Let them spread their faith
		add_prestige = -2
		every_owned_province = {
			limit = {
				has_province_flag = jap_kirishitan_flag
			}
			add_province_modifier = {
				name = add_unrest_5_modifier
				duration = 1825
			}
			clr_province_flag = jap_kirishitan_flag
		}
	}
}

# Incident at Honnoji
country_event = {
	id = flavor_jap.10
	title = "flavor_jap.EVTNAME10"
	desc = "flavor_jap.EVTDESC10"
	picture = ASSASSINATION_eventPicture
	
	trigger = {
		culture...
Zgłoś jeśli naruszono regulamin