
Action
Enforce Rationing Policies
With food shortages threatening imminent starvation, we must implement strict rationing policies to ensure supplies last through the harsh winters. By controlling grain distribution and limiting hoarding, we can prevent famine, albeit at the cost of public unrest and potential instability.
Little Ice AgeSituationselect trigger 1Definitionin_game/common/generic_actions/little_ice_age_actions.txt:1
2type = situation
3show_message = yes
5allow = {
6scope:actor = {
7any_market_present_in_country ?= {
8market_food_percentage < 0.3
}
10stability > 0
}
}
14automation_tick = never
15automation_tick_frequency = 12
17cooldown = {
18type = enforce_rationing_policies
19years = 10
}
22price = price:control_the_food_market
24select_trigger = {
25looking_for_a = situation
26target_flag = recipient
27name = "choose_situation" Choose the Situation:
28column = {
28data = name
}
}
35select_trigger = {
36looking_for_a = market
37source = actor
38target_flag = target_market
39name = "select_market" Select a Market
40none_available_msg_key = "no_markets_available"
41column = {
41data = name
}
42visible = {
43location = {
44owner ?= scope:actor
}
}
}
49effect = {
50custom_tooltip = {
51text = locations_in_designated_market_get_enforced_rationing_policy_tt Every Province Capital that we own in the designated Market will gain Enforced Rationing Policy for 10 years
52scope:target_market ?= {
53every_location_in_market = {
54limit = {
55has_owner = yes
56owner = scope:actor
57is_province_capital = yes
}
}
}
}
}
69ai_will_do = {
70add = -30
71if = {
72limit = {
72exists = scope:target_market
}
73add = {
74value = scope:target_market.market_food_percentage
75multiply = -100
76add = 50
}
}
79add = {
80value = scope:actor.stability
81multiply = 0.1
}
}