事件本版本变更

寒冷潮湿的田野

little_ice_age.4in_game/events/situations/little_ice_age.txt:31
寒冷潮湿的田野

寒霜已持续相当一段时间。当地农民眼中,收成日益减少,许多粮仓的农产品都在以惊人的速度耗尽。Target Province 1成为最新一个遭受饥荒袭击的地方。随着夏季的缩短,需要阳光的谷物产量不及往年。为避免不幸和疾病蔓延失控,我们务必设法缓解这一状况!

需要农民社会阶级immediate歉收静态修正immediate, trigger

定义in_game/events/situations/little_ice_age.txt:31

32hide_portraits = yes
33type = country_event
34category = situation_event
35title = winter_events.4.title 寒冷潮湿的田野
36desc = winter_events.4.desc 寒霜已持续相当一段时间。当地农民眼中,收成日益减少,许多粮仓的农产品都在以惊人的速度耗尽。Target Province 1成为最新一个遭受饥荒袭击的地方。随着夏季的缩短,需要阳光的谷物产量不及往年。为避免不幸和疾病蔓延失控,我们务必设法缓解这一状况!
37outcome = neutral
38image = "gfx/interface/illustrations/situation/little_ice_age.dds"
39trigger = {
40capital ?= {
40area = {
40has_extended_winter = yes
}
}
41time_of_year = {
42min = 9.1
43max = 11.29
}
45any_province = {
46NOT = {
46has_province_modifier = short_harvest_modifier
}
}
}
49illustration_tags = {
5010 = angry
5110 = exterior
}
54immediate = {
55ordered_province = {
56limit = {
57NOT = {
57has_province_modifier = short_harvest_modifier
}
}
59order_by = {
60value = population
61if = {
62limit = {
62province_food_percentage > 0
}
63divide = province_food_percentage
}
65else = {
65divide = 0.01
}
}
67max = 1
68check_range_bounds = no
69save_scope_as = target_province_1
70ordered_location_in_province = {
71order_by = population
72max = 1
73check_range_bounds = no
74save_scope_as = target_location_1
75ordered_pop = {
76max = 1
77order_by = pop_size
78limit = {
79pop_type = pop_type:peasants
}
81save_scope_as = target_pop
}
}
84province_definition = {
85area = {
85save_scope_as = target_area
}
}
}
88if = {
89limit = {
90any_province = {
91NOT = {
91this = scope:target_province_1
}
92province_food_percentage > 0.5
93area = scope:target_area
}
}
96ordered_province = {
97limit = {
98NOT = {
98this = scope:target_province_1
}
99province_food_percentage > 0.5
100area = scope:target_area
}
102order_by = province_food
103max = 1
104check_range_bounds = no
105save_scope_as = target_province_2
106ordered_location_in_province = {
107order_by = population
108max = 1
109check_range_bounds = no
110save_scope_as = target_location_2
}
}
113set_variable = {
115value = {
116add = scope:target_province_2.province_food
117divide = 5
}
}
}
}

选项

A这就是我们为生活付出的代价。
126scope:target_province_1 = {
127add_province_modifier = {
129years = 1
130mode = add_and_extend
}
132every_location_in_province = {
133change_prosperity = prosperity_weak_penalty (-0.1)
}
}
B我们至少可以补偿当地农民!
141scope:target_province_1 = {
142add_province_modifier = {
144years = 1
145mode = add_and_extend
}
}
148add_gold = {
149value = monthly_income_total
150if = {
151limit = {
151scope:target_province_1.province_food_percentage > 0.5
}
152divide = scope:target_province_1.province_food_percentage
}
154else = {
154divide = 0.25
}
155multiply = -1
}
157custom_tooltip = scales_with_target_province_1_province_food_percentage_tt 农民获得的数量将根据Target Province 1粮仓中目前储存的食物的百分比进行调整
C从Target Province 2调拨粮食援助!
163trigger = {
164exists = scope:target_province_2
}
166scope:target_province_2 = {
167change_province_food = {
168value = root.var:provider_food_amount_variable
169multiply = -1
}
}
172scope:target_province_1 = {
173change_province_food = root.var:provider_food_amount_variable
}
175scope:target_province_1 = {
176add_province_modifier = {
178years = 1
179mode = add_and_extend
}
}
© 2026 Soft Santa Cruz, S.L.U.。保留所有权利。非官方粉丝项目,与Paradox Interactive无关。游戏内容 © Paradox Interactive。 关于 · 隐私 · 法律声明