Hearts of Iron IV Guide

Usefull console commands for Hearts of Iron IV

Usefull console commands

Overview

Useful commands for Focuses, Research, Events and more! I’m working daily for this guide and is going to be updated weekly for you!I’m gonna start the school and i will don’t have much time to update the guide soon

Focus commands

  1. Focus.autocomplete – completes instant a focus
  2. Focus.NoChecks – Ignores focus requirments
  3. Focus.IgnorePrerequisites – Ignores focus prerequisites

Game affecting commands

  1. deleteallunits [country tag] – This command initiates an air combat in the specified location from your desired country, airbase and equipment.
  2. winwars – This command will give your country the maximum war score for all wars it is currently engaged in.
  3. ale [ amount] – Adds all equipment resaerched
  4. add_equipment [amount] [equipment name] – This command can be used to add a specified amount of any equipment other than naval equipment. You can remove equipment by specifying a negative amount. Note: you may need to have researched certain equipment before using it, use either the ‘research all’ (researches all equipment) or ‘research_on_icon_click’ command if this is the case.
  5. ai_accept – This command enables or disables (toggles) whether or not AI will always accept diplomacy.
  6. ai_invasion – This command enables or disables (toggles) the AI for naval invasion.
  7. yesman – This command causes country AI to automatically accept any diplomatic offers, regardless of the case.
  8. setowner [country tag] [state id] – This command sets the owner of a specified state.
  9. annex [country tag] – This command starts an annex with the specified country tag (an annex claims their territory for your country).
  10. pp – Gives political power
  11. setcontroller [country tag] [province id] – Sets province controller
  12. Decision.NoChecks – Ignores decision requirements
  13. instant_prepare – Instantly prepares naval invasions
  14. it – Instantly trains divisions and ships
  15. nuke [number] – Adds nukes
  16. xp [amount] – Gives Army, navy and air experience to player
  17. st [amount] – Adds Stability
  18. ws [amount] – Adds war support
  19. allowtraits – Allows free assignment of general traits
  20. instantconstruction – Toggles instant construction cheat. (AI can use the command)
  21. debug_nuking – Allows to nuke every province without checking any conditions.
  22. fuel [amount] – Adds fuel

Reseaches

  1. research_on_icon_click – Research a technology when clicking on technology tree icon
  2. research [slot id or “all”] – Researches a technology from research slot or all.
  3. manpower [Amount] – Adds manpower to player NOTE! If you type in just “manpower” with no number it will give you 10 million men
  4. tag [Country tag] – Switch to another country
  5. You can see the country tag by using the debug command, if u point with cursor at the desired country you will see the tag.

Spy Agency

  1. force_operative_detection – Your operatives/spies will be detected
  2. prevent_operative_detection – Your operatives/spies won’t be detected anymore
  3. agency.autocomplete – Instantly completes agency upgrades
  4. agency.instantslotunlock – Removes wait time between agent recruits

DLCs effects

La Resistance Effects

  1. create_intelligence_agency – Allows to create automatically an intelligence agency
  2. upgrade_intelligence_agency – Allows to unlock automatically an intelligence agency uprgrade
  3. kill_ideology_leader – Allows to kill a country leader from a precise ideology
  4. transfer_units_fraction – Allows to transfer a precise part of the army and the equipement of a country to any country.
  5. add_compliance – Adds compliance to a state.

Man the Guns Effects

  1. remove_decision – Allows to remove specified decision without running remove_effect.
  2. swap_ruler_traits – Similar to swap_ideas. Removes one trait and adds another.
  3. remove_exile_tag – Remove the exile tag on a army leader, making them no longer be considered
  4. exile leaders.
  5. add_legitimacy – Adds legitimacy to a government in exile.
  6. set_legitimacy – Sets the legitimacy of governments in exile.
  7. become_exiled_in – Makes a country a government in exile in a set country, with a set starting legitimacy.
  8. end_exile – Ends a government in exile.
    [*set_faction_name – Sets a faction name as the loc name.
  9. add_nuclear_bombs – Adds nuclear bomb to TAG’s stockpile
  10. launch_nuke – Nukes a province.
  11. inherit_technology – Transfers all of a nations techs to a specified tag.
  12. set_fuel_ratio – Set country’s current fuel ratio relative to its capacity.
  13. add_mines – Add mines to a strategic region for the current country.
  14. give_resource_rights – Gives resource rights
  15. remove_resource_rights – Removes resource rights

Events

  1. debug_events – Start Counting events
  2. event [event id] [Target Country Tag] – Executes an event
    exemple: event political.3 for communist coup 6 for democratic 9 for fascist
  3. poll – Polls valid Events

Fun commands

  1. set_country_flag <flag> – Defines a country flag.
  2. modify_country_flag <flag> – Modifies a country flag.
  3. set_rule <rule> – Toggles the special game rules for the current scope.
  4. remove_dynamic_modifier <modifier_string> – Removes a dynamic modifier to the current scope
  5. add_state_core – Adds a core for the current scope to the specified state.
  6. example – add_state_core = 345
  7. moveunit [<Unit ID>] [<Province ID>] Moves a unit to a province
  8. spawnactor [<Actorname>] [<Province ID>] [<Animation> OPTIONAL]
  9. release [<country tag>] Releases a country or releasable nation
  10. allowideas Allows the player to pick any idea even if normally unavailable
  11. instant_wargoal Will allow instant justificatiion of war goals on countries
  12. airealism Enable realistic AI

States

  1. remove_state_core – Removes the core of the current scope from the specified state.
    example – remove_state_core = 345

  2. set_capital – Makes the specified state the current scope’s capital state.
    example – set_capital = 345

  3. remove_state_claim -Removes a claim of the current scope from the specified state.
    example – remove_state_claim = 345

  4. set_state_owner – Makes the current scope the owner of the specified state.
    example – set_state_owner = 345

  5. set_state_controller – Makes the current scope the controller of the specified state.
    example – set_state_controller = 345

  6. transfer_state – Makes the current scope the owner and controller of the specified state.
    example – transfer_state = 345

  7. set_province_controller – set_province_controller = 2999
    example – Changes the controller of the specified province to the current scope.

Debug

  1. debug_commands – Printing commandcount to message.log
  2. debug_events – Start Counting events
  3. debug_dumpevents – Dump Event data to game log
  4. debug_diploactions – Start Counting diplomatic actions
  5. debug_dumpdiploactions – Dump diplomatic action data to game log
  6. debug_assert – Toggles asserts on/off
  7. debug_smooth – Toggle framesmoothing
  8. debug_nomouse – Toggles mouse scrollwheel on/off
  9. debug_terrain – Toggles Terrain on/off
  10. debug_cities – Toggles Cities painting mode on/off
  11. debug_water – Toggles Water on/off
  12. debug_fronts – Toggles interpolated fronts debug
  13. debug_off_front_snap(dbg_fsnap) – Toggles offensive fronts snapping debug
  14. debug_borders -Toggles Borders on/off
  15. debug_trees – Toggles Trees on/off
  16. debug_rivers – Toggles Rivers on/off
  17. debug_postfx – Toggles PostFX on/off
  18. debug_sky – Toggles Sky on/off
  19. debug_bloom – Toggles Bloom on/off
  20. debug_tooltip – Toggles Tooltips on/off
  21. flagsoutput [path] – Creates texture atlas files from memory.
  22. cityreload – Reloads the cities
  23. debug_nogui – Toggles GUI on/off
  24. debug_volume [Volume Delta] – Modifies music volume
  25. debug_lockcamera – Toggles Camera locked on/off
  26. debug_lines – Toggles Debuglines

Others

  1. savegame- This command forcefully saves the game.
  2. time – What time is it?
  3. nextsong – Changes the currently playing soundtrack.
  4. winwars – Gives max war score in all wars for the country
  5. ai – Toggles AI on or off
  6. observe(spectator) – Switches to play no country at all, and no longer shows messages or pauses the game. However, it also interferes with AI performance and is not a good indication of what the AI will do if observe mode is not used.
  7. fullscreen – Toggles fullscreen
  8. night – Toggles night
  9. help [command name] – Print out all console commands or a specific command description.
  10. IP – Shows your IP
  11. nudge – Go to the nudge tool
  12. tag_color Test setting a country’s color
  13. hdr Toggles hdr
  14. whitepeace(wp) [<country tags>] White peace with the specified countries.
  15. effect [scripted_effect_name] Executes a scripted effect
SteamSolo.com