flavor_maj.18 九贤祠的建立
时间范围
事件可在游戏全程(无特定起止日期)触发,触发概率由游戏内部机制决定,代码中未指定 monthly_chance。
触发条件
- 国家至少拥有一个未建造任何等级“wali_songo_shrine”(九贤祠)建筑的省份。
关键效果
- 选项 A(对应
flavor_maj.18.a):- 在选定的目标省份(
target_location)免费(cost_multiplier = 0)且立即(instant = yes)建造一座 wali_songo_shrine(九贤祠) 建筑。
- 在选定的目标省份(
事件机制说明
事件触发后,系统会通过以下权重逻辑依次尝试选取一个省份作为建造目标(target_location):
- 首选:在本国拥有的省份中,随机选取一个未建造九贤祠的省份。选取权重为该省份的 人口 × 100。
- 次选:若上述条件未找到目标,则在本国拥有的省份中,随机选取一个未建造九贤祠且拥有逊尼派(Sunni)人口的省份。选取权重为该省份的 逊尼派人口 × 100。
- 保底:若上述条件仍未找到目标,则在爪哇地区(java_area) 内,随机选取一个未建造九贤祠、省份所有者不限(可为任何国家) 且拥有逊尼派人口的省份。选取权重为该省份的 逊尼派人口 × 100。
背景介绍
“Wali Songo”(九贤)是15-16世纪在印度尼西亚群岛,特别是爪哇地区传播伊斯兰教的九位传奇圣徒。他们通过融合当地文化与伊斯兰教义,成功地使伊斯兰教在群岛扎根,并建立了许多重要的传教中心。该事件模拟了为纪念这些先贤而建造祠堂或学校的历史进程,这类建筑通常会成为当地宗教与文化生活的核心。
完整事件代码
flavor_maj.18 = {
type = country_event
title = flavor_maj.18.title
desc = flavor_maj.18.desc
trigger = {
any_owned_location = {
NOT = {
has_building_with_at_least_one_level = wali_songo_shrine
}
}
}
immediate = {
random_owned_location = {
limit = {
NOT = {
has_building_with_at_least_one_level = wali_songo_shrine
}
}
weight = {
base = 0
modifier = {
add = {
value = population
multiply = 100
}
}
}
save_scope_as = target_location
}
scope:target = {
save_scope_as = target_character
}
random_owned_location = {
limit = {
NOT = {
has_building_with_at_least_one_level = wali_songo_shrine
}
any_pop = {
religion = religion:sunni
}
}
weight = {
base = 0
modifier = {
add = {
value = "religion_population(religion:sunni)"
multiply = 100
}
}
}
save_scope_as = target_location
}
area:java_area = {
random_location_in_area = {
limit = {
NOT = {
has_building_with_at_least_one_level = wali_songo_shrine
}
owner ?= ROOT
any_pop = {
religion = religion:sunni
}
}
weight = {
base = 0
modifier = {
add = {
value = "religion_population(religion:sunni)"
multiply = 100
}
}
}
save_scope_as = target_location
}
}
}
option = {
name = flavor_maj.18.a
scope:target_location = {
construct_building = {
building_type = building_type:wali_songo_shrine
cost_multiplier = 0
cost_multiplier_reason = game_concept_event
instant = yes
}
}
}
}