pretender.txt

(6 KB) Pobierz
######################################################################
# Throne Pretender rebels.
######################################################################
pretender_rebels = {
	
	color = { 179 51 51 }
	
	area = nation
	government = monarchy
	defection = none
	independence = none
	unit_transfer = yes
	gfx_type = culture_province	
	
	resilient = yes					# Will not disband on defeat.
	reinforcing = yes				# Will reinforce (double rate in rebel controlled provinces)
	general = yes					# Does use generals. The 'define_ruler' effect with 'rebel' argument will pick the rebel leader as new King.
	smart = yes
	disband_on_leader_death = no	# Pretender rebels live forever!
	will_relocate = yes				# Units will relocate if they have sieged all provinces nearby and has to move over sea.
	dynasty = yes	#same dynasty for rebel uprising
	
	
	artillery = 0.1
	infantry = 0.5
	cavalry = 0.4
	
	morale = 1.25
	
	# Possible handle actions
	handle_action_negotiate = no
	handle_action_stability = yes
	handle_action_build_core = yes
	handle_action_send_missionary = yes		
	
	spawn_chance = {
		factor = 1
		modifier = {
			factor = 0
			owner = {
				government = papal_government
			}
		}
		modifier = {
			factor = 0
			owner = {
				is_colonial_nation = yes
			}
		}
		modifier = {
			factor = 0
			owner = {
				NOT = { num_of_cities = 3 }
			}
		}
		modifier = {
			factor = 0
			is_overseas = yes
		}		
		modifier = {
			factor = 2
			owner = {
				government = republic
				aristocracy_ideas = 1
			}
		}
		modifier = {
			factor = 20
			owner = {
				has_disaster = civil_war
				#has_disaster = counts_feud
			}
		}
		modifier = {
			factor = 20
			owner = {
				has_disaster = english_civil_war
			}
		}
		modifier = {
			factor = 20
			owner = {
				has_disaster = counts_feud
				has_country_flag = monarch_flag
			}
		}
		modifier = {
			factor = 20
			owner = {
				has_disaster = castilian_civil_war
			}
		}
		modifier = {
			factor = 5
			owner = {
				has_disaster = time_of_troubles
			}
		}
		modifier = {
			factor = 5.0
			owner = {
				government = republic
				NOT = { republican_tradition = 40 }
			}
		}	
		modifier = {
			factor = 50.0
			owner = { has_disaster = war_of_the_roses }
		}
		modifier = {
			factor = 2
			owner = { religion = inti }
		}
		modifier = {
			factor = 30
			owner = {
				government = monarchy
				has_regency = yes
				has_heir = no
			}
		}
		modifier = {
			factor = 5
			owner = {
				government = monarchy
				has_regency = yes
				has_heir = yes
				NOT = { heir_claim = 33 }
			}
		}
		modifier = {
			factor = 5
			owner = {
				government = monarchy
				has_regency = yes
				has_heir = yes
				NOT = { heir_claim = 66 }
			}
		}
		modifier = {
			factor = 2
			owner = {
				government = monarchy
				has_regency = yes
				has_heir = yes
				NOT = { heir_claim = 85 }
			}
		}
		modifier = {
			factor = 4.5
			owner = {
				is_lesser_in_union = yes
			}
		}
		modifier = {
			factor = 3
			owner = {
				is_lesser_in_union = yes
				NOT = { legitimacy = 75 }
			}
		}
		modifier = {
			factor = 3
			owner = {
				is_lesser_in_union = yes
				NOT = { legitimacy = 50 }
			}
		}
		modifier = {
			factor = 3
			owner = {
				is_lesser_in_union = yes
				NOT = { legitimacy = 25 }
			}
		}
		modifier = {
			factor = 0.25
			owner = {
				NOT = { primary_culture = ROOT }
			}
		}
		modifier = {
			factor = 0.1
			NOT = { is_core = ROOT }
			any_core_country = {
				primary_culture = ROOT
	 		}
		}
		modifier = {
			factor = 0.75
			owner = {
				government = monarchy
				legitimacy = 66
			}
		}
		modifier = {
			factor = 0.5
			owner = {
				government = monarchy
				legitimacy = 75
			}
		}
		modifier = {
			factor = 10
			owner = { has_country_modifier = "tribal_succession_crisis" }
		}
		modifier = {
			factor = 2.5
			owner = {
				OR = {
					government = tribal_despotism
					government = tribal_federation
				}
			}
		}
	}
 
 	# This is checked for EACH province in the Area of Operations
	movement_evaluation = {
		factor = 1
		modifier = {
			factor = 0.1
			units_in_province = 1
		}
		modifier = {
			factor = 0.001
			controlled_by = REB
		}
		modifier = {
			factor = 4.0
			is_capital = yes
		}
		modifier = {
			factor = 1.5
			unrest = 2
		}
		modifier = {
			factor = 1.5
			unrest = 4
		}
		modifier = {
			factor = 1.5
			unrest = 6
		}
	}
 
 	# Province Scope
 	siege_won_trigger = {
 	}
	siege_won_effect = {
	}
	
	# Country scope
	can_negotiate_trigger = {
		always = no
	}
	
	# Country scope
	can_enforce_trigger = {
		always = yes
	}
	
	# Localisation for their demands
	demands_description = "pretender_rebels_demand"
	
	# Country Scope	
	demands_enforced_effect = {
		if = {
			limit = { religion = inti }
			remove_religious_reforms = 2
		}
		if = {
			limit = { has_disaster = civil_war }
			add_prestige = -200
			add_legitimacy = 25
		}
		if = {
			limit = {
				NOT = {
					OR = {
						government = papal_government
						government = steppe_horde
						government = celestial_empire
						government = iqta
						government = daimyo
						government = shogunate
						government = colonial_government
						government = siberian_native_council
						government = native_council
						government = elective_monarchy
						government = english_monarchy
						government = ottoman_government
					}
				}
			}
			change_government = REB
		}
		define_ruler = {
			rebel = yes
		}
		kill_heir = yes
		if = {
			limit = { has_disaster = counts_feud }
			end_disaster = counts_feud
			clr_country_flag = pretender_flag
			clr_country_flag = monarch_flag
		}
		if = {
			limit = { has_disaster = civil_war }
			end_disaster = civil_war
			clr_country_flag = civilwar_on_capital
		}
		if = {
			limit = { has_disaster = castilian_civil_war }
			set_country_flag = cas_civil_war_rebels_won
			country_event = { id = castilian_civil_war.100 }
			end_disaster = castilian_civil_war
		}
		if = {
			limit = { has_disaster = time_of_troubles }
			country_event = { id = time_of_troubles.10 }
			end_disaster = time_of_troubles
		}
		if = {
			limit = { has_disaster = english_civil_war }
			country_event = { id = english_civil_war.100 }
			end_disaster = english_civil_war
		}
	}
}
Zgłoś jeśli naruszono regulamin