flavorINC.txt

(22 KB) Pobierz
#######################################################
# Flavor Events for the Incas
#
# Scripted by Sara Wendel-Örtqvist
#######################################################

namespace = flavor_inc
normal_or_historical_nations = yes

# The Incan Civil War
# Replaced by the Death of Huayna Capac
#country_event = {
#	id = flavor_inc.1
#	title = "flavor_inc.EVTNAME1"
#	desc = "flavor_inc.EVTDESC1"
#	picture = CIVIL_WAR_eventPicture
#	
#	fire_only_once = yes
#	
#	trigger = {
#		tag = INC
#		is_year = 1500 
#		NOT = { is_year = 1600 }
#		has_regency = no
#		OR = {
#			NOT = {
#				adm = 0
#			}
#			NOT = {
#				mil = 0
#			}
#			NOT = {
#				dip = 0
#			}
#		}
#	}
#	
#	mean_time_to_happen = {
#		months = 2000
#	}
#	
#	immediate = {
#		hidden_effect = {
#			random_owned_province = {
#				limit = {
#					is_core = ROOT
#				}
#				set_province_flag = incan_civil_war_flag1
#			}
#			random_owned_province = {
#				limit = {
#					is_core = ROOT
#					NOT = { has_province_flag = incan_civil_war_flag1 }
#				}
#				set_province_flag = incan_civil_war_flag2
#			}
#			random_owned_province = {
#				limit = {
#					is_core = ROOT
#					NOT = { has_province_flag = incan_civil_war_flag1 }
#					NOT = { has_province_flag = incan_civil_war_flag2 }
#				}
#				set_province_flag = incan_civil_war_flag2
#			}
#		}
#	}
#	
#	option = {
#		name = "flavor_inc.EVTOPTA1"
#		random_owned_province = {
#			limit = {
#				has_province_flag = incan_civil_war_flag1
#			}
#			clr_province_flag = incan_civil_war_flag1
#			spawn_rebels = {
#				type = pretender_rebels
#				size = 2
#				leader = "Huascar Inca"
#			}
#		}
#		every_owned_province = {
#			limit = {
#				has_province_flag = incan_civil_war_flag2
#			}
#			spawn_rebels = {
#				type = pretender_rebels
#				size = 1
#			}
#			clr_province_flag = incan_civil_war_flag2
#		}
#	}
#}

#######################################################
# Additional Flavor Events for the Incas
#
# Scripted by Henrik Lohmander
#######################################################

# Fall of the Chanka & the Rise of Cusco
country_event = {
	id = flavor_inc.2
	title = flavor_inc.2.t
	desc = flavor_inc.2.d
	picture = ADVISOR_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = CSU
		has_ruler = "Pachacuti"
		NOT = { is_year = 1450 }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = { #Long live Pacachuti, he who makes the Earth Shake!
		name = flavor_inc.2.a
		hidden_effect = {
			country_event = { id = flavor_inc.3 days = 185 }
		}
		add_years_of_income = 0.25
		add_adm_power = 75
		add_dip_power = 75
		add_mil_power = 75
	}
}

# Cusco - Navel of the World
country_event = {
	id = flavor_inc.3
	title = flavor_inc.3.t
	desc = flavor_inc.3.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes
	is_triggered_only = yes
	
	trigger = {
		owns = 808 #Though losing this is very unlikely.
	}
	
	option = { #Let us create a worthy capital!
		name = flavor_inc.3.a
		set_country_flag = inc_cusco_began
		808 = {
			add_province_modifier = {
				name = "inc_cusco_construction"
				duration = 7300	#Illustrates the length of construction
			}
		}
		add_prestige = 10
		add_adm_power = -25
		add_dip_power = -25
	}
	option = { #Our resources are better used for other things.
		name = flavor_inc.3.b
		add_stability_or_adm_power = yes
	}
}

# Reconstruction of Cusco Complete 
country_event = {
	id = flavor_inc.4
	title = flavor_inc.4.t
	desc = flavor_inc.4.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = CSU
		had_country_flag = { flag = inc_cusco_began days = 7300 }
		owns = 808
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = { #Great!
		name = flavor_inc.4.a
		808 = {
			add_province_modifier = {
				name = "inc_cusco_reconstructed"
				duration = -1
			}
		}
	}
}

#Machu Pichu
country_event = {
	id = flavor_inc.5
	title = flavor_inc.5.t
	desc = flavor_inc.5.d
	picture = CITY_VIEW_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		OR = {
			tag = CSU
			tag = INC
		}
		is_year = 1450
		NOT = { is_year = 1475 }
		OR = {
			808 = { has_province_modifier = inc_cusco_construction }
			808 = { has_province_modifier = inc_cusco_reconstructed }
		}
	}
	
	mean_time_to_happen = {
		months = 75
	}
	
	option = { #Make it great.
		name = flavor_inc.5.a
		add_adm_power = -50
		add_years_of_income = -0.1
		808 = {
			add_province_modifier = {
				name = "inc_machu_pichu"
				duration = -1
			}
		}
	}
	option = { #Let's not get carried away.
		name = flavor_inc.5.b
		add_stability_or_adm_power = yes
	}
}

#The Huacas and the Royal Temple.
country_event = {
	id = flavor_inc.6
	title = flavor_inc.6.t
	desc = flavor_inc.6.d
	picture = RELIGION_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = INC
		num_of_cities = 8
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = { #Move the Huacas to the Temple.
		name = flavor_inc.6.a
		add_stability = -1
		add_legitimacy = -10
		add_country_modifier = {
			name = "inc_hostage_huacas"
			duration = -1
		}
	}
	option = { #Let them keep their petty gods.
		name = flavor_inc.6.b
		add_stability_or_adm_power = yes
	}
}

#The Coastal Peoples
country_event = {
	id = flavor_inc.7
	title = flavor_inc.7.t
	desc = flavor_inc.7.d
	picture = DIPLOMACY_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = INC
		NOT =  { exists = CHM }
		NOT = { has_country_flag = INC_used_to_be_CHM }
		owns = 809 #Lima
		owns = 812 #Chanchan
		owns = 2821 #Piwra
		owns = 2822 #Tucume
	}
	
	mean_time_to_happen = {
		months = 48
	}
	
	option = { #Integrate them
		name = flavor_inc.7.a
		add_country_modifier = {
			name = "inc_chimu_integration"
			duration = -1
		}
		every_owned_province = {
			limit = { culture = chimuan }
			add_local_autonomy = 25 #Trusted to rule themselves a bit more.
		}
	}
	option = { #Don't integrate them.
		name = flavor_inc.7.b
		every_owned_province = {
			limit = { culture = chimuan }
			add_local_autonomy = -10 #No special treatment.
		}
	}
}

#Revolt of the Chimu
country_event = {
	id = flavor_inc.8
	title = flavor_inc.8.t
	desc = flavor_inc.8.d
	picture = ANGRY_MOB_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = INC
		NOT =  { exists = CHM }
		is_year = 1460
		NOT = { is_year = 1500 }
		NOT = { has_country_flag = INC_used_to_be_CHM }
		owns = 809 #Lima
		owns = 812 #Chanchan
		owns = 2821 #Piwra
		owns = 2822 #Tucume
		OR = {
			809 = { culture = chimuan } #Lima
			812 = { culture = chimuan } #Chanchan
			2821 = { culture = chimuan } #Piwra
			2822 = { culture = chimuan } #Tucume
		}
	}
	
	immediate = {
		hidden_effect = {
			every_owned_province = {
				limit = {
					culture = chimuan
					NOT = { is_core = CHM }
				}
				add_core = CHM
			}
			random_owned_province = {
				limit = {
					culture = chimuan
				}
				set_province_flag = inc_chimu_revolter
				set_province_flag = inc_chimu_revolt_start
			}
			random_owned_province = {
				limit = {
					culture = chimuan
					not = { has_province_flag = inc_chimu_revolter }
				}
				set_province_flag = inc_chimu_revolter
			}
			random_owned_province = {
				limit = {
					culture = chimuan
					not = { has_province_flag = inc_chimu_revolter }
				}
				set_province_flag = inc_chimu_revolter
			}
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = {
		name = flavor_inc.8.a
		set_country_flag = inc_chimu_revolt_happened
		random_owned_province = {
			limit = { has_province_flag = inc_chimu_revolt_start }
			spawn_rebels = {
				type = nationalist_rebels
				size = 2
				win = yes
				leader = "Chimu Capac"
			}
			
		}
		every_owned_province = {
			limit = {
				has_province_flag = inc_chimu_revolter
				NOT = { has_province_flag = inc_chimu_revolt_start }
			}
			spawn_rebels = {
				type = nationalist_rebels
				size = 1
			}
			clr_province_flag = inc_chimu_revolter
			clr_province_flag = inc_chimu_revolt_start
		}
		
	}
}

#End of the Chimu Revolt
country_event = {
	id = flavor_inc.9
	title = flavor_inc.9.t
	desc = flavor_inc.9.d
	picture = BATTLE_eventPicture
	
	fire_only_once = yes
	
	trigger = {
		tag = INC
		has_country_flag = inc_chimu_revolt_happened
		NOT = { exists = CHM }
		NOT = {
			any_owned_province = {
				culture = chimuan
				controlled_by = REB
			}
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	option = { #Forbid the Chimu to serve in our armies and resettle many of them.
		name = flavor_inc.9.a
		random_owned_province = {
			limit = { not = { culture = chimuan } }
			add_base_tax = 1
		}
		random_owned_province = {
			limit = { not = { culture = chimuan } }
			add_base_tax = 1
		}
		every_owned_province = {
			limit = {
				culture = chimuan
			}
			add_province_modifier = {
				name = "inc_no_chimu_soldiers"
				duration = -1
			}
		}
	}
	option = { #The revolters must be punished where they'll feel it the most.
		name = flavor_inc.9.b
		if = {
			limit = { has_country_modifier = inc_chimu_integration }
			remove_country_modifier = inc_chimu_integration
		}
		add_stability_or_adm_power = yes #The expected way to react.
		every_owned_province = {
			limit = {
				culture = chimuan
			}
			add_unrest = -5
		}
	}
}

#European Diseases
country_event = {
	id = flavor_inc.10
	title = flavor_inc.10.t
	desc = flavor_inc.10.d
	picture = PLAGUE_eventPicture
	
	
	trigger = {
		NOT = { has_country_flag = european_diseases_struck }
		capital_scope = {
			OR = {
				continent = south_america...
Zgłoś jeśli naruszono regulamin