Scripted Effect
event_illustration_poptype_foreground_effect
Definitionin_game/common/scripted_effects/00_event_illustration_effects.txt:343
344if = {
345limit = {
346exists = $foreground$
}
348$foreground$ = {
348save_scope_as = target_pop_type
}
349if = {
350limit = {
351OR = {
352NOT = {
352scope_type = country
}
353pop_type_population_in_country = {
354pop_type = $foreground$
355value > 0
}
}
}
359ordered_pop = {
360limit = {
360pop_type = $foreground$
}
361max = 1
363order_by = pop_size
364save_scope_as = target_pop
}
}
}