Mutual exclusivity to multiple focuses is usually done by putting several of focus = TAG_focusname in the same mutually_exclusive, Hearts of Iron 4 Wiki
Save your file in the common/national_focus folder of your mod. Launch the game in Debug Mode to identify errors. 4. Best Practices for Modding Focus Trees
Provides civilian factories, military factories, infrastructure, and resource bonuses to build the nation’s industrial backbone. hoi4 focus tree maker
Determines the ideology of the nation (Fascist, Democratic, Communist, or Non-Aligned) and handles internal stability, civil wars, or alliances.
| Field | Purpose | |-------|---------| | available | Conditions that must be true to take this focus | | cancel_if_invalid | Cancels the focus if conditions fail while in progress | | continue_if_invalid | Continues the focus even if conditions change | | bypass | Skips the focus automatically when conditions are met | | select_effect | Triggers immediately when you click the focus (before completion) | | completion_reward | Triggers when the focus finishes | | will_lead_to_war_with | Flags that this focus will cause war with specified tags | | ai_will_do | Controls how likely the AI is to choose this focus (weighting from 0 to 10) | Mutual exclusivity to multiple focuses is usually done
Paste your exported text file into the national_focus directory.
✅ Drag-and-drop interface ✅ Auto-generates the .txt code ✅ Add focuses, icons, bypasses, mutually exclusive branches, and complex logic ✅ Export ready for your mod folder Best Practices for Modding Focus Trees Provides civilian
You will likely use the Focus Tree Planner (available via a quick web search for "HOI4 Focus Tree Planner" or through the HOI4 Modding Discord). You do not need to download complex software; the browser-based version is often sufficient.