Событие

Беженцы у ворот

black_death.1011in_game/events/situations/black_death.txt:1095
Беженцы у ворот

К воротам LR GEN Target Location прибыло множество беженцев, спасающихся от чумы. Напуганные и голодные люди ищут убежище там, куда ещё не добралась болезнь.

Во время эпидемии люди — невероятно ценный ресурс. Мы можем впустить их и увеличить численность населения, но велик шанс, что они разнесут чуму по всему городу. Или же оставить их за стенами, как поступили бы многие, но тогда они могут взбунтоваться. В любом случае с этой оравой нужно что-то делать.

ТребуетБубонная чумаЭпидемияimmediate, option 1, triggerbd1011_cdПеременнаяtriggeroutcome1Переменнаяafter, option 1outcome2Переменнаяafter, option 1

Определениеin_game/events/situations/black_death.txt:1095

1096type = country_event
1097category = situation_event
1099title = black_death.1011.t Беженцы у ворот
1100desc = black_death.1011.desc К воротам LR GEN Target Location прибыло множество беженцев, спасающихся от чумы. Напуганные и голодные люди ищут убежище там, куда ещё не добралась болезнь.

Во время эпидемии люди — невероятно ценный ресурс. Мы можем впустить их и увеличить численность населения, но велик шанс, что они разнесут чуму по всему городу. Или же оставить их за стенами, как поступили бы многие, но тогда они могут взбунтоваться. В любом случае с этой оравой нужно что-то делать.
1101outcome = neutral
1102image = "gfx/interface/illustrations/situation/black_death.dds"
1104trigger = {
1105NOT = {
1105has_variable = bd1011_cd
}
1106any_known_country = {
1106country_has_disease = disease:bubonic_plague
}
1107any_owned_non_rural_location = {
1108disease_presence = {
1108value <= 0.1
}
1109NOT = {
1109disease_has_stagnated = disease:bubonic_plague
}
1110disease_resistance(disease:bubonic_plague) < 0.5
}
}
1114immediate = {
1115set_variable = bd1011_cd
1116random_owned_non_rural_location = {
1117limit = {
1118disease_presence = {
1118value <= 0.1
}
1119NOT = {
1119disease_has_stagnated = disease:bubonic_plague
}
1120disease_resistance(disease:bubonic_plague) < 0.5
}
1122save_scope_as = target_location
}
1124random_list = {
11251 = {
1126set_variable = {
1126name = outcome1
1126value = yes
}
}
11281 = {
1129set_variable = {
1129name = outcome2
1129value = yes
}
}
11311 = {
}
}
}
1243after = {
1244if = {
1245limit = {
1245has_variable = outcome1
}
1246remove_variable = outcome1
}
1248if = {
1249limit = {
1249has_variable = outcome2
}
1250remove_variable = outcome2
}
}

Варианты

AВпустим беженцев.
1139if = {
1140limit = {
1141country_has_disease = disease:bubonic_plague
}
1143if = {
1144limit = {
1144has_variable = outcome1
}
1145scope:target_location = {
1146set_disease_presence = {
1148value = 0.05
}
}
}
1152else_if = {
1153limit = {
1153has_variable = outcome2
}
1154scope:target_location = {
1155set_disease_presence = {
1157value = 0.1
}
}
}
}
1162custom_tooltip = pops_lose_10_satisfaction_tt Concept Concept в LR PREP Target Location снизится на pop satisfaction mild penalty
1163hidden_effect = {
1164scope:target_location = {
1165every_pop = {
1166limit = {
1167owner = root
}
1169add_pop_satisfaction = pop_satisfaction_mild_penalty (-0.1)
}
}
}
1174scope:target_location = {
1175add_location_modifier = {
1176modifier = refugees_welcome
1177years = 5
1178mode = add_and_extend
}
}
1182ordered_owned_location = {
1183limit = {
1184is_capital = no
1185this != scope:target_location
1186region = root.capital.region
}
1188order_by = {
1189value = "disease_presence(disease:bubonic_plague)"
1190multiply = -1
}
1192max = 3
1193check_range_bounds = no
1194add_location_modifier = {
1195modifier = fleeing_pops_modifier
1196years = 5
1197mode = add_and_extend
}
}
1200change_societal_value = {
}
BРазобьём чумные лагеря для беженцев.
1206scale = -1
}
1209scope:target_location = {
1210add_location_modifier = {
1211modifier = refugees_welcome
1212years = 5
1213mode = add_and_extend
}
}
1216ordered_owned_location = {
1217limit = {
1218is_capital = no
1219this != scope:target_location
1220region = root.capital.region
}
1222order_by = {
1223value = "disease_presence(disease:bubonic_plague)"
1224multiply = -1
}
1226max = 1
1227check_range_bounds = no
1228add_location_modifier = {
1229modifier = fleeing_pops_modifier
1230years = 5
1231mode = add_and_extend
}
}
CПрогоним беженцев.
1239add_prestige = prestige_weak_penalty (-5)
1240change_societal_value = {
}