05_nomadic_tribes.txt

(5 KB) Pobierz
estate_nomadic_tribes = {
	icon = 5
	
	color = { 50 150 50 }
	
	# Is estate kept in control of province on conquest?
	keep_on_conquest = no	

	# If true, country will get estate
	trigger = {	
		NOT = { government = merchant_republic }
		NOT = { government = native_council }
		NOT = { government = siberian_native_council }
		is_nomad = yes
		is_colonial_nation = no
		NOT = { government = celestial_empire }
	}
	
	# If true, province can be granted to estate
	province_trigger = {
		always = yes
	}	
	
	# They want to control at least this % of the country's non-overseas development, if # of home provinecs is above set amount
	min_territory = 25
	min_provinces_to_want_territory = 4
	wanted_territory_modifier = {
		desc = EST_TOTAL_DEVELOPMENT
		trigger = {
			total_development = 200
			NOT = { total_development = 400 }
		}
		value = 5		
	}
	wanted_territory_modifier = {
		desc = EST_TOTAL_DEVELOPMENT
		trigger = {
			total_development = 400
			NOT = { total_development = 600 }
		}
		value = 10			
	}
	wanted_territory_modifier = {
		desc = EST_TOTAL_DEVELOPMENT
		trigger = {
			total_development = 600
			NOT = { total_development = 800 }
		}
		value = 15			
	}	
	wanted_territory_modifier = {
		desc = EST_TOTAL_DEVELOPMENT
		trigger = {
			total_development = 800
			NOT = { total_development = 1000 }
		}
		value = 20	
	}		
	wanted_territory_modifier = {
		desc = EST_TOTAL_DEVELOPMENT
		trigger = {
			total_development = 1000
		}
		value = 25		
	}	
	
	# Giving territory affects power this much compared to base
	territory_power_modifier = 0.4
	
	# Min autonomy in estate provinces
	min_autonomy = 50
	
	# Estate cancels out the following multiplicative local autonomy effects:
	autonomy_does_not_affect = local_manpower_modifier
	autonomy_does_not_affect = land_forcelimit

	# These scale with loyalty & power
	country_modifier_happy = {
		cavalry_cost = -0.2
		manpower_recovery_speed = 0.2
	}
	country_modifier_neutral = {
		manpower_recovery_speed = 0.2
	}	
	country_modifier_angry = {
		horde_unity = -10
		manpower_recovery_speed = -0.4
		raze_power_gain = -1
	}
	
	# These do not scale, but only applied in provinces owned by the estate
	province_modifier_happy = {
		local_manpower_modifier = 0.33
		local_unrest = -2
	}
	province_modifier_neutral = {
		local_manpower_modifier = 0.33
	}	
	province_modifier_angry = {
		local_unrest = 5
	}		
	
	# Influence modifiers
	base_influence = 25
	
	# For province assignment
	ai_grant_province = {
		factor = 1	
		modifier = {
			factor = 0.5
			development = 20
		}
		modifier = {
			factor = 2
			NOT = { development = 10 }
		}
	}	
	
	#Special Interactions
	interaction = {
		name = "SUPPORT_TRIBES"
		icon = 7
		
		years_between_use = 10
		
		trigger = {
			years_of_income = 0.25
		}
		
		effect = {
			add_years_of_income = -0.25
			add_estate_loyalty = {
				estate = estate_nomadic_tribes
				loyalty = 15
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = { years_of_income = 0.5 }				
			}
			modifier = {
				factor = 0
				estate_loyalty = {
					estate = estate_nomadic_tribes
					loyalty = 30
				}				
			}			
		}
	}
	interaction = {
		name = "CONTRIBUTE_WARRIORS"
		icon = 12
		
		years_between_use = 10
		
		trigger = {
			estate_loyalty = {
				estate = estate_nomadic_tribes
				loyalty = 50
			}
			estate_influence = {
				estate = estate_nomadic_tribes
				influence = 40
			}
			NOT = { manpower_percentage = 0.99 }
		}
		
		effect = {
			add_manpower = 0.25
			add_estate_loyalty = {
				estate = estate_nomadic_tribes
				loyalty = -15
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				manpower_percentage = 0.25			
			}
			modifier = {
				factor = 0
				NOT = {
					estate_loyalty = {
						estate = estate_nomadic_tribes
						loyalty = 50
					}			
				}
			}
			modifier = {
				factor = 0
				is_at_war = no
			}			
		}
	}
	interaction = {
		name = "RAISE_HOST"
		icon = 13
		
		years_between_use = 10
		
		trigger = {
			any_owned_province = {
				has_estate = estate_nomadic_tribes
				controlled_by = ROOT
			}
			estate_loyalty = {
				estate = estate_nomadic_tribes
				loyalty = 50
			}
			estate_influence = {
				estate = estate_nomadic_tribes
				influence = 40
			}
		}
		
		effect = {
			random_owned_province = {
				limit = {
						has_estate = estate_nomadic_tribes
						controlled_by = ROOT
				}
				add_unit_construction = {
					type = cavalry
					amount = 5
					speed = 0.25
					cost = 0
				}
			}
			create_general = 20		
			add_estate_influence_modifier = {
				estate = estate_nomadic_tribes
				desc = EST_VAL_RAISED_HOST
				influence = 15
				duration = 3650
			}
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				army_size_percentage = 0.5
			}
			modifier = {
				factor = 0
				estate_influence = {
					estate = estate_nomadic_tribes
					influence = 50
				}			
			}	
			modifier = {
				factor = 0
				is_at_war = no
			}
		}
	}
	interaction = {
		name = "RECRUIT_MINISTER"
		icon = 10
		
		years_between_use = 30
		
		trigger = {
			estate_influence = {
				estate = estate_nomadic_tribes
				influence = 40
			}
		}
		
		effect = {
			if = {
				limit = {
					monthly_income = 25
				}
				define_advisor = {
					type = recruitmaster
					skill = 3
					discount = yes
				}
			}
			if = {
				limit = { NOT = { monthly_income = 25 } }
				define_advisor = {
					type = recruitmaster
					skill = 2
					discount = yes
				}
			}
			add_estate_influence_modifier = {
				estate = estate_nomadic_tribes
				desc = EST_VAL_NOMAD_MINISTER
				influence = 15
				duration = 10950
			}
		}
		
		ai_will_do = {
			factor = 0			
		}		
	}
}
Zgłoś jeśli naruszono regulamin