Devotion.txt

(55 KB) Pobierz
########################################
# Events for Devotion (Theocracies)
#
# written by Sara Wendel-Örtqvist
########################################

namespace = devotion_events

### General Events for Theocracies ###

# General Hospital
country_event = {
	id = devotion_events.1
	title = devotion_events.1.t
	desc = devotion_events.1.d
	picture = WOUNDED_SOLDIERS_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
			government = papal_government
		}
		NOT = {
			has_country_modifier = dev_general_hospital
		}
	}
	
	

	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.1.a
		ai_chance = {
			factor = 55
			modifier = {
				factor = 0
				has_dlc = "The Cossacks"
				has_estate = estate_church
				NOT = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 40
					}
				}
			}
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_church
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -10
			}
		}
		add_country_modifier = {
			name = dev_general_hospital
			duration = 3650
		}
	}
	
	option = {
		name = devotion_events.1.b
		ai_chance = {
			factor = 45
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_church
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
		}
		add_piety = 0.15
		add_devotion = 10
	}
}

# Fort Maintenance
country_event = {
	id = devotion_events.2
	title = devotion_events.2.t
	desc = devotion_events.2.d
	picture = FORT_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
			government = papal_government
		}
		NOT = {
			has_country_modifier = dev_fort_maintenance
		}
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.2.a
		add_country_modifier = {
			name = dev_fort_maintenance
			duration = 3650
		}
	}
	option = {
		name = devotion_events.2.b
		add_devotion = -10
	}
}

# Modernization of the Forts
country_event = {
	id = devotion_events.3
	title = devotion_events.3.t
	desc = devotion_events.3.d
	picture = FORT_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
			government = papal_government
		}
		has_country_modifier = dev_fort_maintenance
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = devotion_events.3.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.25
				has_dlc = "The Cossacks"
				has_estate = estate_burghers
				NOT = {
					estate_loyalty = {
						estate = estate_burghers
						loyalty = 40
					}
				}
			}
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_burghers
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = -10
			}
		}
		add_country_modifier = {
			name = dev_modern_forts
			duration = 3650
		}
	}
	option = {
		name = devotion_events.3.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.25
				has_dlc = "The Cossacks"
				has_estate = estate_church
				NOT = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 40
					}
				}
			}
		}
		add_devotion = -10
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_church
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -10
			}
		}
	}
}

# Citizens complain about fort taxes
country_event = {
	id = devotion_events.4
	title = devotion_events.4.t
	desc = devotion_events.4.d
	picture = COUNTRY_COLLAPSE_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
			government = papal_government
		}
		any_owned_province = {
			has_influencing_fort = yes
			NOT = { is_capital = yes }
		}
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.4.a
		every_owned_province = {
			limit = {
				has_influencing_fort = yes
				NOT = { is_capital = yes }
			}
			add_local_autonomy = 10
		}
	}
	
	option = {
		name = devotion_events.4.b
		every_owned_province = {
			limit = {
				has_influencing_fort = yes
				NOT = { is_capital = yes }
			}
			add_unrest = 5
		}
	}
}

# Embellishment of Forts 
country_event = {
	id = devotion_events.5
	title = devotion_events.5.t
	desc = devotion_events.5.d
	picture = FORT_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
			government = papal_government
		}
		any_owned_province = {
			has_influencing_fort = yes
		}		
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.5.a
		add_devotion = 5
	}
	
	option = {
		name = devotion_events.5.b
		add_prestige = 10
	}
}

# The Quest for Religious Freedom
country_event = {
	id = devotion_events.6
	title = devotion_events.6.t
	desc = devotion_events.6.d
	picture = PROTESTANT_GREAT_REFORMER_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
		}
		religion = catholic
		is_religion_enabled = protestant
		any_owned_province = {
			religion = catholic
			development = 10
			is_capital = no
			any_neighbor_province = {
				religion = protestant
			}
		}
	}
	
	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					religion = catholic
					development = 10
					is_capital = no
					any_neighbor_province = {
						religion = protestant
					}
				}
				set_province_flag = prov_wants_rel_free
			}
		}
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.6.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_dlc = "The Cossacks"
				has_estate = estate_burghers
				NOT = {
					estate_loyalty = {
						estate = estate_burghers
						loyalty = 40
					}
				}
			}
		}
		add_devotion = 10
		add_prestige = 25
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_burghers
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = -10
			}
		}
		random_owned_province = {
			limit = { has_province_flag = prov_wants_rel_free }
			add_base_production = -1
			clr_province_flag = prov_wants_rel_free	
		}
	}
	option = {
		name = devotion_events.6.b
		ai_chance = {
			factor = 50
		}
		add_devotion = -25
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_burghers
			}
			add_estate_loyalty = {
				estate = estate_burghers
				loyalty = 10
			}
		}
		random_owned_province = {
			limit = { has_province_flag = prov_wants_rel_free }
			change_religion = protestant
			add_local_autonomy = 20
			clr_province_flag = prov_wants_rel_free	
		}
	}
}

# False Beliefs
country_event = {
	id = devotion_events.7
	title = devotion_events.7.t
	desc = devotion_events.7.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		government = monastic_order_government
		any_owned_province = {
			base_production = 2
			is_in_capital_area = yes
			NOT = {
				religion_group = ROOT
			}
		}
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.7.a
		ai_chance = {
			factor = 50
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_church
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
		}
		add_devotion = 10
		random_owned_province = {
			limit = {
				base_production = 2
				is_in_capital_area = yes
				NOT = {
					religion_group = ROOT
				}
			}
			add_province_modifier = {
				name = dev_heretical_expulsion
				duration = 3650
			}
			add_base_production = -1
		}
	}
	
	option = {
		name = devotion_events.7.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_dlc = "The Cossacks"
				has_estate = estate_church
				NOT = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 40
					}
				}
			}
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_church
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = -10
			}
		}
		add_devotion = -5
		add_prestige = -5
	}
}

# Forgery of Documents
country_event = {
	id = devotion_events.8
	title = devotion_events.8.t
	desc = devotion_events.8.d
	picture = ECONOMY_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			government = theocratic_government
			government = monastic_order_government
			government = papal_government
		}
	}
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
		
	option = {
		name = devotion_events.8.a
		add_adm_power = 50
		set_country_flag = dev_forged_documents_flag
		add_corruption = 0.5
		custom_tooltip = devotion_events.8.ct
	}
	
	option = {
		name = devotion_events.8.b
		add_devotion = 5
	}
}

# Forged Documents
country_event = {
	id = devotion_events.9
	title = devotion_events.9.t
	desc = devotion_events.9.d
	picture = ACCUSATION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		OR = {
			gov...
Zgłoś jeśli naruszono regulamin