Hands-On Usage
This trigger is commonly used in war damage recovery mod scenarios, such as allowing a rebuilding event or decision to fire only after a state has cooled down for a period of time following strategic bombing, preventing rewards/penalties from stacking repeatedly during bombing peaks. It can also be used in occupation policy logic to determine whether a state is currently in an unstable "recently bombed" state, thereby dynamically adjusting resistance value changes.
# Example: Allow rebuilding decision to trigger only when a state has not been strategically bombed for more than 30 days
available = {
days_since_last_strategic_bombing > 30
is_controlled_by = ROOT
}
Synergy
[has_active_resistance](/wiki/trigger/has_active_resistance): Strategic bombing typically accompanies a rise in resistance. Combining these two triggers allows you to precisely filter states that are "recently bombed and actively resistant," useful for triggering suppression or appeasement logic.
[compliance](/wiki/trigger/compliance): Bombing lowers compliance. Using this trigger in conjunction allows you to identify the dual condition of "recently bombed and low compliance," enabling more precise control over occupation policy switching timing.
[add_resistance](/wiki/effect/add_resistance): After confirming recent bombing has occurred, you can use this effect to simulate the growth of civilian resistance sentiment caused by bombing, forming a judgment-execution feedback loop with the trigger.
[set_occupation_law_where_available](/wiki/effect/set_occupation_law_where_available): When enough days have passed since the last bombing and the situation stabilizes, linking this effect automatically upgrades occupation laws, achieving dynamic occupation management.
Common Pitfalls
- Scope confusion errors: This trigger must be used within STATE scope. Writing it in a
limit block under COUNTRY scope will silently fail or throw an error. Ensure the outer scope has already switched to the target state (for example, by entering STATE scope through every_neighbor_state or capital_scope before calling it).
- Reversed comparison logic:
days_since_last_strategic_bombing < 10 means "bombed within the last 10 days" (i.e., recently bombed). Newcomers often reverse the inequality, causing the condition logic to be completely opposite to expectations. Additionally, if a state has never experienced strategic bombing, the return value behavior of this trigger must be verified through testing—don't assume it will be true or false without evidence.