Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[flavor_mor.18] 瓦塔斯家族崛起

时间范围:1355.1.1 - 1444.1.1(每月 10% 概率)

触发条件

  • 国家为摩洛哥(tag = MOR)。
  • 在以下地区拥有存在:
    • 阿尔及尔地区(area:algiers_area
    • 突尼斯地区(area:tunis_area
    • 阿特拉斯高原地区(area:atlas_high_plateau
  • 国家拥有统治者。
  • 统治者的王朝为瓦塔斯王朝(dynasty_name = wattasid_dynasty)。
  • 统治者至少有一位成年的、在世的、且是继承人的子女。

关键效果

  • 选项 A (历史选项)
    • 如果存在变量 current_ruler_power_variablenum_rebelling_locations,则国家稳定度遭受极端惩罚(stability_extreme_penalty)。
    • 如果上述变量不存在,则国家稳定度遭受终极惩罚(stability_ultimate_penalty)。
  • 选项 B
    • 消灭叛军(destroy_rebel = scope:target_rebel)。
    • 处决当前统治者(kill_character),由继承人(scope:target_character2)执行。
    • 政府权力遭受终极惩罚(government_power_ultimate_penalty)。
    • 国家稳定度遭受终极惩罚(stability_ultimate_penalty)。

背景介绍: 在14至15世纪,摩洛哥的马林王朝逐渐衰落,其内部权力结构开始松动。作为马林王朝的重要军事支柱和维齐尔家族,瓦塔斯家族的影响力与日俱增。此事件模拟了瓦塔斯家族利用其军事和政治网络,在摩洛哥核心地区及马格里布东部扩大影响力,并可能挑战或取代现有统治者的历史进程。当统治家族为瓦塔斯王朝,且继承人已成年时,家族内部的权力野心可能引发一场由继承人领导的、得到部分省份支持的叛乱,迫使国家在维持现状的混乱与血腥的权力更迭之间做出选择。

完整事件代码

flavor_mor.18 = {
	hide_portraits = yes
	type = country_event
	title = flavor_mor.18.title
	desc = flavor_mor.18.desc

	fire_only_once = yes
	dynamic_historical_event = {
		tag = MOR
		from = 1355.1.1
		to = 1444.1.1
		monthly_chance = 10
	}

	trigger = {
		has_presence_in = area:algiers_area
		has_presence_in = area:tunis_area
		has_presence_in = area:atlas_high_plateau
		has_ruler = yes
		ruler = {
			dynasty = { dynasty_name = wattasid_dynasty  }
			any_child = {
				OR = {
					father = root.ruler
					mother = root.ruler
				}
				is_alive = yes
				is_adult = yes
				is_heir = yes
			}
		}
	}

	illustration_tags = {
		10 = armed
		10 = exterior
	}

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
		save_scope_as = target_country
		ruler = { save_scope_as = target_ruler }
		heir = { save_scope_as = target_character2 }
		create_rebel = {
			category = pretender
			name = marinid_pretender_rebels
			save_scope_as = target_rebel
		}
		set_variable = {
			name = current_ruler_power_variable
			value = {
				add = {
					value = "estate_power(estate_type:crown_estate)"
					multiply = 10
				}
				add = {
					value = government_power
					divide = 2
				}
			}
		}
		set_variable = {
			name = num_rebelling_locations
			value = 0
		}
		if = {
			limit = {
				var:current_ruler_power_variable < 100
			}
			while = {
				limit = { var:current_ruler_power_variable < 100 }
				ordered_owned_location = {
					limit = {
						is_capital = no
						NOT = { has_variable = already_supports_rebel_variable }
					}
					order_by = population
					max = 1
					owner = {
						change_variable = {
							name = current_ruler_power_variable
							add = 2
						}
						change_variable = {
							name = num_rebelling_locations
							add = 1
						}
					}
					set_variable = {
						name = already_supports_rebel_variable
						months = 2
					}
					every_pop = {
						limit = {
							owner = root
						}
						add_pop_satisfaction = pop_satisfaction_ultimate_penalty
						change_pop_allegiance = scope:target_rebel
					}
				}
			}
		}
		else = {
			remove_variable = current_ruler_power_variable
			remove_variable = num_rebelling_locations
		}
		scope:target_character2 = { change_character_allegiance = scope:target_rebel }
	}

	option = {
		name = flavor_mor.18.a
		historical_option = yes

		if = {
			limit = {
				OR = {
					exists = var:current_ruler_power_variable
					exists = var:num_rebelling_locations
				}
			}
			custom_tooltip = impacted_locations_var_tt
			add_stability = stability_extreme_penalty
		}
		else = {
			add_stability = stability_ultimate_penalty
		}
	}

	option = {
		name = flavor_mor.18.b

		hidden_effect = { destroy_rebel = scope:target_rebel }
		kill_character = {
			target = scope:target_ruler
			reason = execution
			killer = scope:target_character2
		}
		add_government_power = government_power_ultimate_penalty
		add_stability = stability_ultimate_penalty

	}

	after = {
		if = {
			limit = { has_variable = current_ruler_power_variable }
			remove_variable = current_ruler_power_variable
		}
		if = {
			limit = { has_variable = num_rebelling_locations }
			remove_variable = num_rebelling_locations
		}
	}
}