disaster_french_wars_of_religion.txt

(38 KB) Pobierz
########################################
# Wars of Religion                     #
########################################

namespace = french_wars_of_religion

# Wars of Religion in France
country_event = {
	id = french_wars_of_religion.1
	title = "flavor_fra.EVTNAME3110"
	desc = "flavor_fra.EVTDESC3110"
	picture = BATTLE_eventPicture
	
	
	fire_only_once = yes	
	
	major = yes
	
	is_triggered_only = yes


	mean_time_to_happen = {
		days = 1
	}
	

	option = {		# French Catholics
		name = "flavor_fra.EVTOPTA3110"
		if = {
			limit = {
				religion = catholic
			}
			add_stability = -2
			add_country_modifier = {
				name = french_catholics
				duration = 7300
			}
			set_country_flag = FRA_supports_catholic_majority
		}
		if = {
			limit = {
				NOT = { religion = catholic }
			}
			add_stability = -4
			add_country_modifier = {
				name = support_heretics
				duration = 7300
			}
			set_country_flag = FRA_supports_catholic_minority
		}
	}
	option = {		# French Protestants
		name = "flavor_fra.EVTOPTB3110"
		if = {
			limit = {
				religion = protestant
			}
			add_stability = -2
			add_country_modifier = {
				name = french_protestants
				duration = 7300
			}
			set_country_flag = FRA_supports_protestant_majority
		}
		if = {
			limit = {
				NOT = { religion = protestant }
			}
			add_stability = -4
			add_country_modifier = {
				name = support_heretics
				duration = 7300
			}
			set_country_flag = FRA_supports_protestant_minority
		}
	}
	option = {		# French Moderates
		name = "flavor_fra.EVTOPTC3110"
		add_stability = -1
	}
}

# The St. Bartholomew's Day Massacre
country_event = {
	id = french_wars_of_religion.2
	title = "flavor_fra.EVTNAME3101"
	desc = "flavor_fra.EVTDESC3101"
	picture = ANGRY_MOB_eventPicture
	
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	trigger = {
		capital_scope = {
			controlled_by = ROOT
			has_owner_religion = yes
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	


	option = {		# Prevent the angry mobs
		name = "flavor_fra.EVTOPTA3101"
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = {
					has_country_flag = FRA_supports_catholic_majority
					has_country_flag = FRA_supports_protestant_majority
				}
			}
		}
		add_stability = -3
		set_country_flag = repressed_bartholomews_day_massacre
	}
	option = {		# Contain it to CAPITALNAME
		name = "flavor_fra.EVTOPTB3101"
		ai_chance = {
			factor = 50
		}
		add_stability = -1
		capital_scope = {
			add_province_modifier = {
				name = religious_massacre
				duration = 1825
			}
		}
	}
	option = {		# Let it spread to the provinces
		name = "flavor_fra.EVTOPTC3101"
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = {
					has_country_flag = FRA_supports_catholic_minority
					has_country_flag = FRA_supports_protestant_minority
				}
			}
		}
		add_stability = -1
		capital_scope = {
			add_province_modifier = {
				name = religious_massacre
				duration = 1825
			}
		}
		# Less than 5 heretic provinces
		if = {
			limit = {
				any_owned_province = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				NOT = {
					num_of_owned_provinces_with = {
						value = 5
						region = france_region
						has_owner_religion = no
						NOT = { has_province_modifier = religious_massacre }
					}
				}
			}
			random_owned_province = {
				limit = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				add_province_modifier = {
					name = religious_massacre
					duration = 1825
				}
			}
		}
		# 5 to 10 heretic provinces
		if = {
			limit = {
				num_of_owned_provinces_with = {
					value = 5
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				NOT = {
					num_of_owned_provinces_with = {
						value = 10
						region = france_region
						has_owner_religion = no
						NOT = { has_province_modifier = religious_massacre }
					}
				}
			}
			random_owned_province = {
				limit = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				add_province_modifier = {
					name = religious_massacre
					duration = 1825
				}
			}
			random_owned_province = {
				limit = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				add_province_modifier = {
					name = religious_massacre
					duration = 1825
				}
			}
		}
		# More than 10 heretic provinces
		if = {
			limit = {
				num_of_owned_provinces_with = {
					value = 10
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
			}
			random_owned_province = {
				limit = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				add_province_modifier = {
					name = religious_massacre
					duration = 1825
				}
			}
			random_owned_province = {
				limit = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				add_province_modifier = {
					name = religious_massacre
					duration = 1825
				}
			}
			random_owned_province = {
				limit = {
					region = france_region
					has_owner_religion = no
					NOT = { has_province_modifier = religious_massacre }
				}
				add_province_modifier = {
					name = religious_massacre
					duration = 1825
				}
			}
		}
	}
}

# La Ligue Catholique
country_event = {
	id = french_wars_of_religion.3
	title = "flavor_fra.EVTNAME3010"
	desc = "flavor_fra.EVTDESC3010"
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
	
	trigger = {
		NOT = { has_country_flag =  FRA_had_event_3010 }
	}
	
	immediate = {
		set_country_flag = FRA_had_event_3010
	}

	option = {		# Support a RELIGION League
		name = "flavor_fra.EVTOPTA3010"
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = {
					has_country_flag = FRA_supports_catholic_minority
					has_country_flag = FRA_supports_protestant_minority
				}
			}
		}
		set_country_flag = supports_religious_league
	}
	option = {		# Distance ourself from it
		name = "flavor_fra.EVTOPTB3010"
		ai_chance = { factor = 75 }
		set_country_flag = does_not_support_religious_league
	}
}

# Day of the Barricades
country_event = {
	id = french_wars_of_religion.4
	title = "flavor_fra.EVTNAME3009"
	desc = "flavor_fra.EVTDESC3009"
	picture = ANGRY_MOB_eventPicture
	
	trigger = {
		capital_scope = {
			has_owner_religion = yes
		}
		NOT = { has_country_flag = FRA_had_event_3009 }
		has_country_flag = FRA_had_event_3010
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = FRA_had_event_3009
	}

	option = {		# Flee from CAPITALNAME
		name = "flavor_fra.EVTOPTA3009"
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				OR = {
					has_country_flag = FRA_supports_catholic_minority
					has_country_flag = FRA_supports_protestant_minority
				}
			}
		}
		add_prestige = -25
	}
	option = {		# Stay and fight!
		name = "flavor_fra.EVTOPTB3009"
		ai_chance = { factor = 50 }
		capital_scope = {
			spawn_rebels = {
				type = religious_rebels
				size = 2
			}
		}
	}
}

# The Assassination of Henri of Guise
country_event = {
	id = french_wars_of_religion.5
	title = "flavor_fra.EVTNAME3102"
	desc = "flavor_fra.EVTDESC3102"
	picture = ASSASSINATION_eventPicture
	
	trigger = {
		NOT = { has_country_flag = FRA_had_event_3102 }
		has_country_flag = FRA_had_event_3009 #Day of the Barricades
	}

	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = FRA_had_event_3102
		hidden_effect = {
			# Less than 5 true faith provinces
			if = {
				limit = {
					any_owned_province = {
						region = france_region
						has_owner_religion = yes
					}
					NOT = {
						num_of_owned_provinces_with = {
							value = 5
							region = france_region
							has_owner_religion = yes
						}
					}
				}
				random_owned_province = {
					limit = {
						region = france_region
						has_owner_religion = yes
					}
					set_province_flag = religious_rebels
				}
			}
			# 5 to 10 true faith provinces
			if = {
				limit = {
					num_of_owned_provinces_with = {
						value = 5
						region = france_region
						has_owner_religion = yes
					}
					NOT = {
						num_of_owned_provinces_with = {
							value = 10
							region = france_region
							has_owner_religion = yes
						}
					}
				}
				random_owned_province = {
					limit = {
						region = france_region
						has_owner_religion = yes
					}
					set_province_flag = religious_rebels
				}
				random_owned_province = {
					limit = {
						region = france_region
						has_owner_religion = yes
						NOT = { has_province_flag = religious_rebels }
					}
					set_province_flag = religious_rebels
				}
			}
			# More than 10 true faith provinces
			if = {
				limit = {
					num_of_owned_provinces_with = {
						value = 10
						region = france_region
						has_owner_religion = yes
					}
				}
				random_owned_province = {
					limit = {
						region = france_region
						has_owner_religion = yes
					}
					set_province_flag = religious_rebels
				}
				random_owned_province = {
					limit ...
Zgłoś jeśli naruszono regulamin