[flavor_bra_dynasty.1002] 假瓦尔德马事件
时间范围:无明确 from 和 to 日期限制,事件在满足触发条件后可能发生。无 monthly_chance 字段,因此无固定月度触发概率。
触发条件:
- 名为
false_waldemar的角色必须存在。 - 该角色
false_waldemar必须存活。
关键效果: 此事件仅有一个选项,根据国家持有的不同变量,会产生不同的效果组合:
- 若持有
bra_owes_gold变量:- 本国失去等同于该变量数值的金钱。
- 皇帝国家(
scope:emperor_country)获得等额金钱。
- 若持有
bra_owes_loyalty变量:- 本国损失少量正统性(
legitimacy_mild_penalty)。 - 在神圣罗马帝国(HRE)选举中,本国将投票锁定给当前的皇帝国家。
- 本国损失少量正统性(
- 若持有
bra_owes_relations变量:- 本国损失大量威望(
prestige_severe_penalty)。 - 维特尔斯巴赫王朝的所有国家将对皇帝国家增加“支持维特尔斯巴赫家族”的好感度修正。
- 本国损失大量威望(
- 若持有
bra_free_support变量:- 本国对皇帝国家增加“皇帝的慷慨”好感度修正。
- 通用效果:
- 放逐
false_waldemar角色。 - 增加5点
bra_investment_score。 - 如果存在名为
false_waldemar_rebel的叛军,则将其消灭。 - 移除国家修正
bra_waldemar_rallies_nobility。
- 放逐
- 后续清理:事件结束后,移除所有相关的债务变量(
bra_owes_gold、bra_owes_loyalty、bra_owes_relations、bra_free_support)。
背景介绍: 此事件处理一位自称瓦尔德马(Waldemar)的冒名顶替者(假瓦尔德马)所引发的政治危机。在中世纪晚期的神圣罗马帝国,宣称拥有合法头衔的冒名顶替者并不罕见,他们往往能得到地方贵族或外部势力的支持,对现有统治秩序构成挑战。作为统治者,你需要决定如何回应皇帝对此事的干预,并根据你之前与皇帝达成的协议(以不同变量表示),付出相应的代价或获得回报,以彻底解决这个冒名者带来的麻烦。
完整事件代码:
flavor_bra_dynasty.1002 = {
hide_portraits = yes
type = country_event
title = flavor_bra_dynasty.1002.title
image = "gfx/interface/illustrations/international_organization_types/hre.dds"
illustration_tags = {
10 = exterior
10 = armed
}
desc = {
first_valid = {
triggered_desc = {
trigger = { has_variable = bra_owes_gold }
desc = flavor_bra_dynasty.1002.desc.gold
}
triggered_desc = {
trigger = { has_variable = bra_owes_loyalty }
desc = flavor_bra_dynasty.1002.desc.loyalty
}
triggered_desc = {
trigger = { has_variable = bra_owes_relations }
desc = flavor_bra_dynasty.1002.desc.relations
}
triggered_desc = {
trigger = { has_variable = bra_free_support }
desc = flavor_bra_dynasty.1002.desc.free
}
triggered_desc = {
desc = flavor_bra_dynasty.1002.desc
}
}
}
trigger = {
exists = character:false_waldemar
character:false_waldemar = { is_alive = yes }
}
immediate = {
character:false_waldemar = { save_scope_as = target_character }
random_rebel = {
limit = { rebel_name_key = false_waldemar_rebel }
save_scope_as = target_rebel
}
}
#Excellent
option = {
name = flavor_bra_dynasty.1002.a
if = {
limit = { has_variable = bra_owes_gold }
add_gold = { value = var:bra_owes_gold multiply = -1 }
scope:emperor_country = { add_gold = { value = root.var:bra_owes_gold } }
}
if = {
limit = { has_variable = bra_owes_loyalty }
add_legitimacy = legitimacy_mild_penalty
international_organization:hre = {
set_vote = {
voter = prev
resolution = resolution:hre_election
vote = scope:emperor_country
lock_reason = {
key = VOTE_LOCK_REASON_SUPPORT
emperor = scope:emperor_country
}
}
}
}
if = {
limit = { has_variable = bra_owes_relations }
add_prestige = prestige_severe_penalty
custom_tooltip = {
text = flavor_bra_dynasty.1002.a.tt
scope:emperor_country = {
dynasty:wittelsbach_dynasty = {
every_country_in_dynasty = {
add_opinion = {
target = scope:emperor_country
modifier = opinion_supported_the_wittelsbacher
}
}
}
}
}
}
if = {
limit = { has_variable = bra_free_support }
add_opinion = {
target = scope:emperor_country
modifier = opinion_emperors_genorisity
}
}
scope:target_character = {
banish_character = yes
}
bra_change_investment_score = { math = add value = 5 }
if = {
limit = { exists = scope:target_rebel }
destroy_rebel = scope:target_rebel
}
remove_country_modifier = bra_waldemar_rallies_nobility
}
after = {
if = { limit = { has_variable = bra_owes_gold } remove_variable = bra_owes_gold }
if = { limit = { has_variable = bra_owes_loyalty } remove_variable = bra_owes_loyalty }
if = { limit = { has_variable = bra_owes_relations } remove_variable = bra_owes_relations }
if = { limit = { has_variable = bra_free_support } remove_variable = bra_free_support }
}
}