
Action
Send Food Aid
Famine grips many provinces as harvests fail. By dispatching emergency food shipments to struggling provinces or allied nations, we can provide relief and prevent unrest — though at the expense of our own reserves.
Little Ice AgeSituationselect trigger 1recently_gave_food_variableVariableallowDefinitionin_game/common/generic_actions/little_ice_age_actions.txt:233
234type = situation
235show_message = yes
237allow = {
238scope:actor = {
239stability > 0
240any_province = {
241area = {
241has_extended_winter = yes
}
242province_food_percentage < 0.1
243region = scope:actor.capital.region
}
245any_province = {
246custom_tooltip = {
247text = has_not_recently_given_food_tt Has not been selected to donate Food in the last 2 years
}
250region = scope:actor.capital.region
251province_food_percentage > 0.8
}
}
}
256automation_tick = never
257automation_tick_frequency = 12
259cooldown = {
260type = send_food_aid
261months = 6
}
264select_trigger = {
265looking_for_a = situation
266target_flag = recipient
267name = "choose_situation" Choose the Situation:
268column = {
268data = name
}
}
275select_trigger = {
276looking_for_a = province
277source = actor
278target_flag = target_province_taker
279name = "choose_province_to_receive_food" Choose a Province to receive Food
280none_available_msg_key = "no_provinces_available"
281column = {
281data = name
}
282column = {
282data = province_food_percentage
}
283column = {
283data = province_food
}
284visible = {
285area = {
285has_extended_winter = yes
}
286province_food_percentage < 0.1
287population > 0
288region = scope:actor.capital.region
}
}
292select_trigger = {
293looking_for_a = province
294source = actor
295target_flag = target_province_giver
296name = "choose_province_to_send_food_to_target_province_taker" Choose the Province to send Food to Target Province Taker
297none_available_msg_key = "no_provinces_available"
298column = {
298data = name
}
299column = {
299data = province_food_percentage
}
300column = {
300data = province_food
}
301visible = {
302this != scope:target_province_taker
303area = {
303has_extended_winter = yes
}
304population > 0
305province_food_percentage > 0.8
306region = scope:actor.capital.region
}
}
310effect = {
311if = {
312limit = {
313exists = scope:target_province_giver
314exists = scope:target_province_taker
}
316scope:target_province_taker = {
317if = {
318limit = {
319province_capital = {
319has_road_to = scope:target_province_giver.province_capital
}
}
321change_province_food = {
322value = scope:target_province_giver.province_food
323multiply = 0.3
}
}
326else = {
327custom_tooltip = due_to_no_road_network_tt As the Province Capital of Target Province Giver is not connected to the newest Road to the Province Capital of Target Province Taker, some Food will be lost along the way
328change_province_food = {
329value = scope:target_province_giver.province_food
330multiply = 0.2
}
}
}
334custom_tooltip = {
335text = every_pop_in_target_province_taker_gains_10_satisfaction_tt Our Pops in Target Province Taker will gain pop satisfaction mild bonus Pop Satisfaction
336scope:target_province_taker = {
337every_location_in_province = {
338limit = {
338owner ?= scope:actor
}
339every_pop = {
340limit = {
340owner ?= scope:actor
}
}
}
}
}
346scope:target_province_giver = {
347change_province_food = {
348value = scope:target_province_giver.province_food
349multiply = -0.3
}
}
}
359else = {
359custom_tooltip = send_food_aid_tt We will select a Province to receive food from another one of our Provinces
}
}
362ai_will_do = {
363add = -15
364if = {
365limit = {
366exists = scope:target_province_giver
367exists = scope:target_province_taker
}
369add = {
370value = scope:target_province_taker.population
371multiply = 100
372divide = scope:actor.total_population
}
374add = {
375value = scope:target_province_giver.province_food
376subtract = scope:target_province_taker.province_food
377multiply = 0.01
}
379if = {
380limit = {
381scope:target_province_taker = {
382any_location_in_province = {
382is_capital = yes
}
}
}
385add = 5
}
387if = {
388limit = {
389NOT = {
390scope:target_province_giver.province_food >= {
391add = scope:target_province_taker.province_food
392multiply = 0.5
}
}
}
396subtract = -25
}
}
}