flavor_swe_nov.9 神学家辩论
时间范围:无明确 from 与 to 日期,事件触发后立即执行,无 monthly_chance 概率。
触发条件:此事件代码中未包含 trigger 字段,表明它可能由其他事件或机制直接触发。
关键效果:
- 选项:也许他们是对的…
- 此选项无
historical_option = yes标记,非历史选项。 - 核心结果:
- 根据自定义工具提示
flavor_swe_nov.9.a.tt的描述执行后续操作。 - 如果存在变量
swe_theologican_debate_winner,则在3天后静默触发事件flavor_swe_nov.10。 - 如果存在变量
swe_theologican_debate_loser,则在3天后静默触发事件flavor_swe_nov.11。 - 清除当前国家及
novgorod_country范围内的相关变量(swe_theologican_debate_winner、swe_theologican_debate_loser、theologican_victory_points)。
- 根据自定义工具提示
- AI选择此选项的概率因子为1。
- 此选项无
背景介绍:此事件描绘了一场发生在瑞典与诺夫哥罗德之间的神学辩论。事件的核心逻辑是比较双方指定神学家(novgorodian_theologian 与 swedish_theologian)在行政(adm)、外交(dip)和军事(mil)三项能力上的高低,通过计分系统(theologican_victory_points)决定辩论的胜者(swe_theologican_debate_winner)与败者(swe_theologican_debate_loser),其结果将导向不同的后续事件。
完整事件代码:
flavor_swe_nov.9 = {
type = country_event
title = flavor_swe_nov.9.title
desc = flavor_swe_nov.9.desc
illustration_tags = {
10 = regular
10 = interior
}
immediate = {
event_illustration_estate_effect = { foreground = estate_type:clergy_estate background = estate_type:clergy_estate }
scope:novgorod_country = {
set_variable = { name = theologican_victory_points value = 0 }
}
set_variable = { name = theologican_victory_points value = 0 }
if = {
limit = { scope:novgorodian_theologian = { adm > scope:swedish_theologian.adm } }
scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
else_if = {
limit = { scope:novgorodian_theologian = { adm < scope:swedish_theologian.adm } }
scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
else = {
scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } }
scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
if = {
limit = { scope:novgorodian_theologian = { dip > scope:swedish_theologian.dip } }
scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
else_if = {
limit = { scope:novgorodian_theologian = { dip < scope:swedish_theologian.dip } }
scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
else = {
scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } }
scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
if = {
limit = { scope:novgorodian_theologian = { mil > scope:swedish_theologian.mil } }
scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
else_if = {
limit = { scope:novgorodian_theologian = { mil < scope:swedish_theologian.mil } }
scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
else = {
scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } }
scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } }
}
if = {
limit = { scope:novgorod_country = { var:theologican_victory_points = scope:sweden_country.var:theologican_victory_points } }
random_list = {
1 = { scope:novgorod_country = { change_variable = { name = theologican_victory_points add = 1 } } }
1 = { scope:sweden_country = { change_variable = { name = theologican_victory_points add = 1 } } }
}
}
if = { #Sweden wins
limit = { var:theologican_victory_points > scope:novgorod_country.var:theologican_victory_points }
set_variable = { name = swe_theologican_debate_winner value = yes }
scope:novgorod_country = { set_variable = { name = swe_theologican_debate_loser value = yes } }
}
else = {
set_variable = { name = swe_theologican_debate_loser value = yes }
scope:novgorod_country = { set_variable = { name = swe_theologican_debate_winner value = yes } }
}
}
#Maybe they are right...
option = {
name = flavor_swe_nov.9.a
custom_tooltip = {
text = flavor_swe_nov.9.a.tt
if = {
limit = { has_variable = swe_theologican_debate_winner }
trigger_event_silently = {
id = flavor_swe_nov.10
days = 3
}
}
if = {
limit = { has_variable = swe_theologican_debate_loser }
trigger_event_silently = {
id = flavor_swe_nov.11
days = 3
}
}
remove_variable = swe_theologican_debate_winner
remove_variable = swe_theologican_debate_loser
remove_variable = theologican_victory_points
scope:novgorod_country = {
if = {
limit = { has_variable = swe_theologican_debate_winner }
trigger_event_silently = {
id = flavor_swe_nov.10
days = 3
}
}
if = {
limit = { has_variable = swe_theologican_debate_loser }
trigger_event_silently = {
id = flavor_swe_nov.11
days = 3
}
}
remove_variable = swe_theologican_debate_winner
remove_variable = swe_theologican_debate_loser
remove_variable = theologican_victory_points
}
}
ai_chance = {
factor = 1
}
}
}