Heroes of Might and Magic 5 Cheats: Console Commands for PC

Published by

Money and resources

CheatCommandEffect
Set goldPCadd_gold #Set gold to the number you give; the other resources drop to zero
Set resourcesPCadd_money #Set every resource except gold to the number, and gold to 1,000 times it
Clear resourcesPCclear_moneySet all resources to zero
Show resourcesPCshow_player_money #Print a player's resources in the console, for example show_player_money 2

Army

CheatCommandEffect
Fill armyPCadd_army 5, 0Fill every army slot with 10 basic Inferno creatures; change 5 to the town number and 0 to 1 for upgraded creatures

Heroes

CheatCommandEffect
All spellsPCadd_all_spellsGive the selected hero every spell
Add experiencePCadd_exp #Add experience to the selected hero
Set luck and moralePCset_hero_luck_morale X YSet the selected hero's base luck (X) and morale (Y), for example set_hero_luck_morale 5 3
Show movement pointsPCshow_hero_mpShow the selected hero's movement points, including the plotted path

Win or lose

CheatCommandEffect
Win missionPC@Win()Win the current mission
Lose missionPC@Loose()Lose the current mission (the command is spelled Loose)

A code here did not work? Tell us and it gets rechecked. Report a code

How to enter cheats in Heroes of Might and Magic 5

PC

  1. Unlock the console first (see the developer mode steps).
  2. Start or load a game and press ~ to open the console.
  3. Type a command, replacing # or X Y with numbers.
  4. Press Enter to run it.

How to enable developer mode in Heroes of Might and Magic 5

  1. Open the profiles folder for Heroes of Might and Magic V and make a backup copy of autoexec.cfg.
  2. Open autoexec.cfg in Notepad.
  3. Add setvar dev_console_password = schwinge-des-todes as the last line, all on one line.
  4. Save the file, start the game and press ~ to open the console.

GameRevolution: Heroes of Might and Magic V PC cheats

Compatibility notes

Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.

FAQ

How do you open the console in Heroes of Might and Magic V?

Add setvar dev_console_password = schwinge-des-todes as the last line of autoexec.cfg in the profiles folder, then press ~ in the game.

Is there a gold cheat in Heroes 5?

Yes. Type add_gold followed by an amount. It also sets your other resources to zero, so use add_money for everything else.

How do you add creatures in Heroes 5?

Use add_army with a town number and 0 or 1 for upgraded creatures, for example add_army 5, 0 for 10 basic Inferno creatures in every slot.

What are the town numbers for add_army?

Heaven 0, Preserve 1, Academy 2, Dungeon 3, Necro 4 and Inferno 5.

Part of

References: GameRevolution: Heroes of Might and Magic V PC cheats; Magicgameworld: Heroes of Might & Magic V cheats; Steam Community: Heroes of Might & Magic V console discussion.