ThePapacy.txt

(28 KB) Pobierz
########################################
# Events for The Papacy
#
# written by Sara Wendel-Örtqvist
########################################

namespace = papacy_events

# The Swiss Guard
country_event = {
	id = papacy_events.1
	title = papacy_events.1.t
	desc = papacy_events.1.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		exists = SWI
		has_opinion = { who = SWI value = 25 }
		reverse_has_opinion = { who = SWI value = 25 }
		NOT = {
			OR = {
				has_country_modifier = pap_swiss_guard_timer
				has_country_modifier = pap_swiss_guard
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		hidden_effect = {
			add_country_modifier = {
				name = pap_swiss_guard_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = papacy_events.1.a
		SWI = {
			country_event = {
				id = papacy_events.2
				tooltip = papacy_events.2.t
			}
		}
	}
	
	option = {
		name = papacy_events.1.b
		add_prestige = 5
	}
}

# Pope asks for The Swiss Guard
country_event = {
	id = papacy_events.2
	title = papacy_events.2.t
	desc = papacy_events.2.d
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = papacy_events.2.a
		add_prestige = 10
		add_opinion = {
			who = FROM
			modifier = opinion_swiss_guard
		}
		FROM = {
			country_event = {
				id = papacy_events.3
				tooltip = papacy_events.3.t
			}
		}
	}
	
	option = {
		name = papacy_events.2.b
		tooltip = {
			reverse_add_opinion = {
				who = PAP
				modifier = opinion_no_swiss_guard
			}
		}
		FROM = {
			country_event = {
				id = papacy_events.4
				tooltip = papacy_events.4.t
			}
		}
	}
}

# The Swiss Guard: Yes
country_event = {
	id = papacy_events.3
	title = papacy_events.3.t
	desc = papacy_events.3.d
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = papacy_events.3.a
		add_opinion = {
			who = FROM
			modifier = opinion_swiss_guard
		}
		add_country_modifier = {
			name = pap_swiss_guard
			duration = -1
		}
	}
}

# The Swiss Guard: No
country_event = {
	id = papacy_events.4
	title = papacy_events.4.t
	desc = papacy_events.4.d
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = papacy_events.4.a
		add_opinion = {
			who = FROM
			modifier = opinion_no_swiss_guard
		}
	}
}

# Passetto di Borgo
country_event = {
	id = papacy_events.5
	title = papacy_events.5.t
	desc = papacy_events.5.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		118 = { # ROME
			is_capital = yes
			NOT = {
				controlled_by = PAP
			}
		}
		NOT = {
			has_country_modifier = pap_passetto_di_borgo_timer
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		hidden_effect = {
			add_country_modifier = {
				name = pap_passetto_di_borgo_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = papacy_events.5.a
		add_prestige = -5
		add_devotion = -10
	}
	
	option = {
		name = papacy_events.5.b
		add_devotion = 10
		random_list = {
			10 = {
				kill_ruler = yes
			}
			90 = { }
		}
	}
}

# Cardinal-Nephew
country_event = {
	id = papacy_events.6
	title = papacy_events.6.t
	desc = papacy_events.6.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		NOT = {
			total_number_of_cardinals = 49
		}
		any_known_country = {
			capital_scope = {
				region = italy_region
			}
			has_opinion = { who = ROOT value = 25 }
			reverse_has_opinion = { who = ROOT value = 25 }
			religion = catholic
			NOT = { num_of_cardinals = 7 }
			any_owned_province = {
				has_cardinal = no
			}
			NOT = {
				has_country_flag = pap_cardinal_nephew_flag
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = papacy_events.6.a
		add_prestige = 5
		add_devotion = 5
	}
	
	option = {
		name = papacy_events.6.b
		add_devotion = -5
		random_known_country = {
			limit = {
				capital_scope = {
					region = italy_region
				}
				has_opinion = { who = ROOT value = 25 }
				reverse_has_opinion = { who = ROOT value = 25 }
				religion = catholic
				NOT = { num_of_cardinals = 7 }
				any_owned_province = {
					has_cardinal = no
				}
			}
			set_country_flag = pap_cardinal_nephew_flag
			random_owned_province = {
				limit = {
					has_cardinal = no
				}
				province_event = {
					id = papacy_events.7
					tooltip = papacy_events.7.t
				}
			}
		}
	}
}

# Cardinal-Nephew from the Pope
province_event = {
	id = papacy_events.7
	title = papacy_events.7.t
	desc = papacy_events.7.d
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = papacy_events.7.a
		add_cardinal = yes
		owner = {
			add_papal_influence = 20
			add_prestige = -20
			every_known_country = {
				limit = {
					num_of_cardinals = 1
				}
				add_opinion = {
					who = ROOT
					modifier = opinion_popes_pet
				}
			}
			PAP = {
				add_opinion = {
					who = ROOT
					modifier = opinion_cardinal_nephew
				}
				reverse_add_opinion = {
					who = ROOT
					modifier = opinion_cardinal_nephew
				}
				country_event = {
					id = papacy_events.8
					tooltip = papacy_events.8.t
				}
			}
		}
	}
	
	option = {
		name = papacy_events.7.b
		owner = {
			add_prestige = -5
			PAP = {
				country_event = {
					id = papacy_events.9
					tooltip = papacy_events.9.t
				}
			}
		}
	}
}

# Accepted Cardinal-Nephew
country_event = {
	id = papacy_events.8
	title = papacy_events.8.t
	desc = papacy_events.8.d
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = papacy_events.8.a
		add_adm_power = 100
		add_dip_power = 100
		tooltip = {
			add_opinion = {
				who = ROOT
				modifier = opinion_cardinal_nephew
			}
			reverse_add_opinion = {
				who = ROOT
				modifier = opinion_cardinal_nephew
			}
		}
	}
}

# Refused Cardinal-Nephew
country_event = {
	id = papacy_events.9
	title = papacy_events.9.t
	desc = papacy_events.9.d
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes

	option = {
		name = papacy_events.9.a
		add_prestige = -5
	}
}

# Sack of Rome
country_event = {
	id = papacy_events.10
	title = papacy_events.10.t
	desc = papacy_events.10.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		war_exhaustion = 2
		118 = {
			owned_by = PAP
			is_looted = yes
		}
		NOT = {
			has_country_modifier = pap_rome_loot_timer
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	immediate = {
		hidden_effect = {
			add_country_modifier = {
				name = pap_rome_loot_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = papacy_events.10.a
		add_years_of_income = -0.10
		118 = {
			add_base_manpower = 1
		}
	}
	
	option = {
		name = papacy_events.10.b
		add_years_of_income = -0.05
		add_war_exhaustion = -2
	}
}

# The Vatican Library
country_event = {
	id = papacy_events.11
	title = papacy_events.11.t
	desc = papacy_events.11.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		owns = 118
		NOT = {
			OR = {
				has_country_modifier = mil_vatican_library
				has_country_modifier = dip_vatican_library
				has_country_modifier = adm_vatican_library
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = papacy_events.11.a
		add_adm_power = -10
		add_years_of_income = -0.10
		add_country_modifier = {
			name = adm_vatican_library
			duration = -1
		}
	}
	
	option = {
		name = papacy_events.11.b
		add_dip_power = -10
		add_years_of_income = -0.10
		add_country_modifier = {
			name = dip_vatican_library
			duration = -1
		}
	}
	option = {
		name = papacy_events.11.c
		add_mil_power = -10
		add_years_of_income = -0.10
		add_country_modifier = {
			name = mil_vatican_library
			duration = -1
		}
	}
	option = {
		name = papacy_events.11.e
		add_prestige = -5
	}
}

# Sistine Chapel
country_event = {
	id = papacy_events.12
	title = papacy_events.12.t
	desc = papacy_events.12.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		owns = 118
		NOT = {
			has_country_modifier = pap_sistine_chapel
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = papacy_events.12.a
		add_years_of_income = -0.25
		add_devotion = 5
		add_country_modifier = {
			name = pap_sistine_chapel
			duration = -1
		}
		set_country_flag = pap_sistine_chapel_flag
	}
	option = {
		name = papacy_events.12.b
		add_prestige = 5
	}
}

# Decorate the Sistine Chapel
country_event = {
	id = papacy_events.13
	title = papacy_events.13.t
	desc = papacy_events.13.d
	picture = RELIGION_eventPicture
	
	trigger = {
		has_dlc = "Common Sense"
		tag = PAP
		has_country_modifier = pap_sistine_chapel
		had_country_flag = { flag = pap_sistine_chapel_flag days = 1825 }
		NOT = {
			OR = {
				has_country_modifier = pap_sistinechapel_botticelli
				has_country_modifier = pap_sistinechapel_ghirlandaio
				has_country_modifier = pap_sistinechapel_perugino
				has_country_modifier = pap_sistinechapel_michelangelo
				has_country_modifier = pap_sistinechapel_decorated
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
	}
	
	option = {
		name = papacy_events.13.a
		trigger = {
			NOT = {
				is_year = 1510
			}
		}
		add_years_of_income = -0.25
		add_country_modifier = {
			name = pap_sistinechapel_botticelli
			duration = -1
		}
	...
Zgłoś jeśli naruszono regulamin