A popular question for all the would-be conquerors out there!
In Hearts of Iron 4 (HoI4), there isn't a single "code" to claim provinces outright, as the game's design emphasizes strategic gameplay, diplomacy, and warfare to expand your nation's territory. However, I can provide you with a couple of approaches that might achieve what you're looking for, along with some relevant console commands for those who want to explore modifications to their game experience. Please note, using console commands can disable achievements and potentially destabilize your game.
1. Through Gameplay (No Console Commands Needed):
- Diplomacy: Use the diplomatic system to gain provinces. This can be done by:
- Puppeting: Make a nation your puppet, then integrate it over time.
- Annexation: Some nations can be annexed through the "Annex" diplomatic action if your relations and their stability allow for it.
- Warfare: Declare war with appropriate casus belli (CB) to justify your expansion. You can then demand specific provinces in a peace treaty if you emerge victorious.
2. Using Console Commands (For Single-Player or Cheating Purposes):
If you're looking to directly modify province ownership for testing, role-playing, or simply to expedite your conquest without the hassle of gameplay mechanics, you can use the console. To open the console, press the ^ or ` key (usually located above the Tab key or below the Esc key, depending on your keyboard layout).
-
Command to Annex a Province Directly:
You can't directly "claim" a province with a single command to make it yours instantly without going through the motions of war or diplomacy in the traditional sense. However, you can manipulate control and ownership indirectly:
-
To give yourself control of a province (but not necessarily ownership):
add_core [Country Tag] [Province ID]
Example: add_core ABC 123 - This adds a core to province 123 for country ABC, which can be a step toward integrating it into your nation. You need to know the Province ID and Country Tag.
-
To annex a country (which would then give you all its provinces):
annex [Country Tag]
Example: annex GER - This annexes Germany (GER) if you're playing as a country capable of doing so. Note: This is more of a sledgehammer approach and might not be what you're looking for if you want to selectively claim provinces.
-
To transfer province ownership directly:
npa [Province ID] [Country Tag]
Example: npa 123 ABC - This transfers ownership of province 123 to country ABC. Note: This command directly changes ownership, which can be useful for precise control.
-
Finding Province IDs and Country Tags:
- Province IDs: Can often be found by hovering over the province in the game with the console open, or by looking up a HoI4 province map with IDs online.
- Country Tags: Are usually the three-letter abbreviations of the country's name (e.g., USA for the United States, GER for Germany). A full list can be found in the game's files or online wikis.
Important Considerations:
- Balance and Enjoyment: Using console commands to claim provinces bypasses the game's challenge and balance. Use them sparingly to avoid diminishing your gaming experience.
- Achievements: As mentioned, activating the console and using commands will disable achievements for that game session.
- Game Stability: Extensive use of console commands, especially those altering fundamental game states, can sometimes lead to game instability or unexpected behavior.
- Command Limitations: Some commands, like
annex, might not work in all situations, especially if your country does not have the necessary diplomatic options or military control. Always ensure the command is used in a context that makes sense within the game's logic.
For most players, engaging with the game's mechanics to expand your nation's borders is part of the fun and challenge of Hearts of Iron 4. However, for specific testing, creative, or learning purposes, the console can be a powerful tool.