[flavor_chi.2004] 中国宝船远航
时间范围
事件为动态历史事件,无固定 from 和 to 日期。触发概率取决于 monthly_chance 设置(代码中未指定具体概率,通常由游戏动态控制)。
触发条件
- 事件类型为国家事件(
type = country_event)。 - 触发依赖于前置事件或条件,具体由游戏引擎在满足
chinese_expedition_calculate_gift_for_this和set_visiting_variables等脚本逻辑时激活。 - 玩家控制的国家需满足中国宝船远航相关的事件链条件(如拥有远航舰队、特定人物状态等)。
关键效果
- 选项 A(默认选项):
- 获得黄金:增加
var:gift_value变量所指定的黄金数量。 - 远航发起方(
scope:expedition_initiator)减少其chinese_treasure_voyage_cargo变量值,减少量为玩家获得的黄金值。 - 显示自定义提示文本
chinese_expedition_resolution_tt(解释远航决议结果)。
- 获得黄金:增加
- 历史选项:本事件未标记
historical_option = yes,因此无特定历史选项。
背景介绍
该事件模拟了中国明代郑和宝船远航期间,船队与访问地区进行贸易或外交馈赠的情景。玩家作为远航的参与者,可以通过接受馈赠获得黄金,同时远航发起方的货物储备会相应减少。事件反映了当时远航中资源分配与外交互动的历史背景。
完整事件代码
flavor_chi.2004 = {
type = country_event
title = flavor_chi.2004.title
desc = flavor_chi.2004.desc
immediate = {
set_chinese_expedition_scopes = yes
if = {
limit = {
is_ai = no
}
event_illustration_poptype_background_effect = { background = pop_type:nobles }
scope:expedition_initiator = {
event_illustration_poptype_foreground_effect = { foreground = pop_type:soldiers }
}
}
chinese_expedition_calculate_gift_for_this = yes
set_visiting_variables = yes
}
illustration_tags = {
10 = exterior
10 = regular
}
option = {
name = flavor_chi.2004.a
add_gold = {
value = var:gift_value
}
scope:expedition_initiator = {
change_variable = {
name = chinese_treasure_voyage_cargo
subtract = root.var:gift_value
}
}
custom_tooltip = chinese_expedition_resolution_tt
}
after = {
remove_variable = gift_value
trigger_event_non_silently = {
id = flavor_chi.2005
days = 7
}
}
}