disaster_time_of_troubles.txt

(15 KB) Pobierz
########################################
# Time of Troubles
########################################

namespace = time_of_troubles

# Time of Troubles
country_event = {
	id = time_of_troubles.1
	title = "flavor_rus.EVTNAME1101"
	desc = "flavor_rus.EVTDESC1101"
	picture = ANGRY_MOB_eventPicture
	
	is_triggered_only = yes
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = time_of_troubles
	}
	
	option = {		# Hard times are ahead of us
		name = "flavor_rus.EVTOPTA1101"
		add_stability = -1
	}
}

# The Insanity of MONARCH
country_event = {
	id = time_of_troubles.2
	title = "flavor_rus.EVTNAME1102"
	desc = "flavor_rus.EVTDESC1102"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_country_flag = RUS_had_event_1102 }
		has_regency = no
		has_heir = no
		is_female = no
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = RUS_had_event_1102
	}
	
	option = {		# MONARCH will rule until his death!
		name = "flavor_rus.EVTOPTA1102"
		ai_chance = { factor = 25 }
		add_stability = -1
		add_ruler_modifier = {
			name = insane_ruler
			duration = -1
		}
	}
	option = {		# Let his trusted advisor take over
		name = "flavor_rus.EVTOPTB1102"
		ai_chance = { factor = 75 }
		define_ruler = {
			name = "Boris"
			dynasty = "Godunov"
		}
	}
}

# Famine Strikes
country_event = {
	id = time_of_troubles.3
	title = "flavor_rus.EVTNAME1103"
	desc = "flavor_rus.EVTDESC1103"
	picture = FAMINE_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_country_flag = RUS_had_event_1103 }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = RUS_had_event_1103
	}
	
	option = {		# There is nothing we can do
		name = "flavor_rus.EVTOPTA1103"
		ai_chance = { factor = 25 }
		add_country_modifier = {
			name = severe_famine
			duration = 3650
		}
	}
	option = {		# Try to ease the suffering
		name = "flavor_rus.EVTOPTB1103"
		ai_chance = { factor = 50 }
		add_years_of_income = -0.25
		add_country_modifier = {
			name = famine
			duration = 3650
		}
	}
	option = {		# Use all our resources to aim those in need
		name = "flavor_rus.EVTOPTC1103"
		ai_chance = { factor = 25 }
		add_years_of_income = -0.4
		add_country_modifier = {
			name = fighting_famine
			duration = 1825
		}		
	}
}

# Plague
country_event = {
	id = time_of_troubles.4
	title = "flavor_rus.EVTNAME1104"
	desc = "flavor_rus.EVTDESC1104"
	picture = PLAGUE_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_country_flag = RUS_had_event_1103
		NOT = { has_country_flag = RUS_had_event_1104 }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = RUS_had_event_1104
	}
	
	option = {		# There is nothing we can do
		name = "flavor_rus.EVTOPTA1104"
		ai_chance = { factor = 50 }
		add_country_modifier = {
			name = severe_plague
			duration = 1825
		}
	}
	option = {		# Try to contain it
		name = "flavor_rus.EVTOPTB1104"
		ai_chance = { factor = 50 }
		add_years_of_income = -0.25
		add_country_modifier = {
			name = contained_plague
			duration = 1825
		}
	}
}

# Brigands in PROVINCE
country_event = {
	id = time_of_troubles.5	
	title = "flavor_rus.EVTNAME1105"
	desc = "flavor_rus.EVTDESC1105"
	picture = ANGRY_MOB_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		has_country_flag = RUS_had_event_1103
		has_country_flag = RUS_had_event_1104
		NOT = { has_country_flag = RUS_had_event_1105 }
		any_owned_province = {
			NOT = { has_province_flag = armed_brigands }
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = RUS_had_event_1105
		random_owned_province = {
			limit = { is_capital = no }
			set_province_flag = armed_brigands
		}
	}
	
	option = {		# Restore authority
		name = "flavor_rus.EVTOPTA1105"
		ai_chance = { factor = 75 }
		add_adm_power = -10
		add_years_of_income = -0.1
	}
	option = {		# Leave it be
		name = "flavor_rus.EVTOPTB1105"
		ai_chance = { factor = 25 }
		random_owned_province = {
			limit = { has_province_flag = armed_brigands }
			add_province_modifier = {
				name = armed_brigands
				duration = 1825
			}
		}
	}
}

# First Dimitri
country_event = {
	id = time_of_troubles.6
	title = "flavor_rus.EVTNAME1106"
	desc = "flavor_rus.EVTDESC1106"
	picture = ANGRY_MOB_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_country_flag = RUS_had_event_1106 }
		any_neighbor_country = {
			OR = {
				is_rival = ROOT
				is_enemy = ROOT
				NOT = { has_opinion = { who = ROOT value = 0 } }
			}
			NOT = { alliance_with = ROOT }
			NOT = { is_subject_of = ROOT }
			manpower = 10
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		set_country_flag = RUS_had_event_1106
	}
	
	option = {		# Recognize him as the legitimate ruler
		name = "flavor_rus.EVTOPTA1106"
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_regency = no
			}
			tooltip = {
				kill_ruler = yes
			}
		}
		if = {
			limit = {
				has_heir = yes
			}
			kill_heir = yes
		}
		define_ruler = {
			name = "Dimitri I"
			dynasty = "Rurikovich"
		}
		add_ruler_modifier = {
			name = usurper_on_the_throne
		}
		add_legitimacy = -50
	}
	option = {		# Expel him
		name = "flavor_rus.EVTOPTB1106"
		ai_chance = { factor = 90 }
		random_neighbor_country = {
			limit = {
				OR = {
					is_rival = ROOT
					is_enemy = ROOT
					NOT = { has_opinion = { who = ROOT value = 0 } }
				}
				NOT = { alliance_with = ROOT }
				NOT = { is_subject_of = ROOT }
				manpower = 10
			}
			ROOT = { set_country_flag = dimitri_supporter_found }
			if = {
				limit = { tag = MOS }
				country_event = { id = time_of_troubles.7 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1106" }
			}
			if = {
				limit = { tag = RUS }
				country_event = { id = time_of_troubles.11 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1106" }
			}
		}
		clr_country_flag = dimitri_supporter_found
	}
}

# False Dimitri (Muskowy)
country_event = {
	id = time_of_troubles.7
	title = "flavor_rus.EVTNAME1107"
	desc = "flavor_rus.EVTDESC1107"
	picture = ANGRY_MOB_eventPicture
	
	is_triggered_only = yes
	
	option = {		# Support him with troops
		name = "flavor_rus.EVTOPTA1107"
		ai_chance = { factor = 75 }
		set_country_flag = supporter_of_dimitri
		if = {
			limit = { manpower = 30 }
			set_country_flag = support_dimitri
			add_manpower = -6
			FROM = {
				set_country_flag = support_dimitri_6
				country_event = { id = time_of_troubles.8 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1107" }
			}
		}
		if = {
			limit = {
				manpower = 20
				NOT = { has_country_flag = support_dimitri }
			}
			set_country_flag = support_dimitri
			add_manpower = -4
			FROM = {
				set_country_flag = support_dimitri_4
				country_event = { id = time_of_troubles.8 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1107" }
			}
		}
		if = {
			limit = {
				manpower = 10
				NOT = { has_country_flag = support_dimitri }
			}
			set_country_flag = support_dimitri
			add_manpower = -2
			FROM = {
				set_country_flag = support_dimitri_2
				country_event = { id = time_of_troubles.8 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1107" }
			}
		}
		clr_country_flag = support_dimitri
	}
	option = {		# Expel him from COUNTRY
		name = "flavor_rus.EVTOPTB1107"
		ai_chance = { factor = 25 }
		if = {
			limit = {
				FROM = {
					any_neighbor_country = {
						NOT = { tag = ROOT }
						is_rival = PREV
					}
				}
			}
			FROM = {
				random_neighbor_country = {
					limit = {
						NOT = { tag = ROOT }
						is_rival = PREV
						manpower = 10
					}
					PREV = { set_country_flag = dimitri_supporter_found }
					if = {
						limit = {
							PREV = { tag = MOS }
						}
						country_event = { id = time_of_troubles.7 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1106" }
					}
					if = {
						limit = {
							PREV = { tag = RUS }
						}
						country_event = { id = time_of_troubles.11 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1106" }
					}
				}
			}
		}
		if = {
			limit = {
				FROM = {
					NOT = { has_country_flag = dimitri_supporter_found }
					any_neighbor_country = {
						NOT = { tag = ROOT }
						is_enemy = PREV
					}
				}
			}
			FROM = {
				random_neighbor_country = {
					limit = {
						NOT = { tag = ROOT }
						is_enemy = PREV
						manpower = 10
					}
					PREV = { set_country_flag = dimitri_supporter_found }
					if = {
						limit = {
							PREV = { tag = MOS }
						}
						country_event = { id = time_of_troubles.7 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1106" }
					}
					if = {
						limit = {
							PREV = { tag = RUS }
						}
						country_event = { id = time_of_troubles.11 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1106" }
					}
				}
			}
		}
		hidden_effect = {
			FROM = { clr_country_flag = dimitri_supporter_found }
		}
	}
}

# False Dimitri (Russia)
country_event = {
	id = time_of_troubles.11
	title = "flavor_rus.EVTNAME1107"
	desc = "flavor_rus.EVTDESC1111"
	picture = ANGRY_MOB_eventPicture
	
	is_triggered_only = yes
	
	option = {		# Support him with troops
		name = "flavor_rus.EVTOPTA1107"
		ai_chance = { factor = 75 }
		set_country_flag = supporter_of_dimitri
		if = {
			limit = { manpower = 30 }
			set_country_flag = support_dimitri
			add_manpower = -6
			FROM = {
				set_country_flag = support_dimitri_6
				country_event = { id = time_of_troubles.8 days = 30 tooltip = "flavor_rus.EVTTOOLTIP1111" }
			}
		}
		if = {
			limit = {
				manpower = 20
				NOT = { has_country_fl...
Zgłoś jeśli naruszono regulamin