flavor_mor.7 瓦塔斯家族叛乱
时间范围: 无明确起止日期(动态事件) 触发概率: 无明确每月概率(满足条件即触发)
触发条件
- 国家(root)拥有至少一名非统治者、非继承人的存活角色。
- 该角色必须拥有变量
wattasid_revolter_var。
关键效果
选项: flavor_mor.7.a
- 稳定性惩罚:
- 如果存在变量
current_ruler_power_variable或num_rebelling_locations,则施加严重稳定性惩罚。 - 如果上述变量不存在,则施加终极稳定性惩罚。
- 如果存在变量
- 附庸国影响: 如果拥有附庸国,所有附庸国的独立倾向增加 50。
- 后续事件: 在 4 至 18 个月 后,静默触发事件
flavor_mor.13。 - 国家修正: 添加名为
period_of_instability_modifier的国家修正,持续 10 年(模式为叠加并延长)。
背景介绍
该事件模拟了摩洛哥瓦塔斯家族(Wattasid)可能发起的叛乱。瓦塔斯家族在历史上曾是摩洛哥的重要政治力量,并在特定时期掌握过政权。当拥有瓦塔斯家族背景的贵族(非现任统治者)在国内活跃时,他们可能利用其影响力煽动叛乱,挑战中央王权,导致国家陷入一段时期的动荡与不稳定。
完整事件代码
flavor_mor.7 = { #PRISON
hide_portraits = yes
type = country_event
title = flavor_mor.7.title
desc = flavor_mor.7.desc
trigger = {
any_character = {
is_ruler = no
is_heir = no
has_variable = wattasid_revolter_var
is_alive = yes
owner = root
}
}
illustration_tags = {
10 = armed
10 = interior
}
immediate = {
event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
ruler_or_regent ?= {
save_scope_as = target_character
}
create_rebel = {
category = pretender
name = wattasid_rebels
save_scope_as = target_rebel
}
random_character = {
limit = { has_variable = wattasid_revolter_var }
save_scope_as = target_character2
change_character_allegiance = scope: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 = {
value = population
multiply = -1
}
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
}
}
option = {
name = flavor_mor.7.a
if = {
limit = {
OR = {
exists = var:current_ruler_power_variable
exists = var:num_rebelling_locations
}
}
custom_tooltip = impacted_locations_var_tt
add_stability = stability_severe_penalty
}
else = {
add_stability = stability_ultimate_penalty
}
if = {
limit = { num_subjects > 0 }
every_subject = {
add_liberty_desire = 50
}
}
trigger_event_silently = { id = flavor_mor.13 months = { 4 18 } }
add_country_modifier = {
modifier = period_of_instability_modifier
years = 10
mode = add_and_extend
}
}
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
}
}
}