Heroes of Might and Magic 5 Cheats: Console Commands for PC
- PC Unlock the console in autoexec.cfg, then press ~ in a game, type a command and press Enter.
Published by Andrew B.
No cheats match that filter.
Money and resources
| Cheat | Command | Effect |
|---|---|---|
| Set gold | PCadd_gold # | Set gold to the number you give; the other resources drop to zero |
| Set resources | PCadd_money # | Set every resource except gold to the number, and gold to 1,000 times it |
| Clear resources | PCclear_money | Set all resources to zero |
| Show resources | PCshow_player_money # | Print a player's resources in the console, for example show_player_money 2 |
Army
| Cheat | Command | Effect |
|---|---|---|
| Fill army | PCadd_army 5, 0 | Fill every army slot with 10 basic Inferno creatures; change 5 to the town number and 0 to 1 for upgraded creatures |
Heroes
| Cheat | Command | Effect |
|---|---|---|
| All spells | PCadd_all_spells | Give the selected hero every spell |
| Add experience | PCadd_exp # | Add experience to the selected hero |
| Set luck and morale | PCset_hero_luck_morale X Y | Set the selected hero's base luck (X) and morale (Y), for example set_hero_luck_morale 5 3 |
| Show movement points | PCshow_hero_mp | Show the selected hero's movement points, including the plotted path |
Win or lose
| Cheat | Command | Effect |
|---|---|---|
| Win mission | PC@Win() | Win the current mission |
| Lose mission | PC@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
- Unlock the console first (see the developer mode steps).
- Start or load a game and press ~ to open the console.
- Type a command, replacing # or X Y with numbers.
- Press Enter to run it.
How to enable developer mode in Heroes of Might and Magic 5
- Open the profiles folder for Heroes of Might and Magic V and make a backup copy of autoexec.cfg.
- Open autoexec.cfg in Notepad.
- Add setvar dev_console_password = schwinge-des-todes as the last line, all on one line.
- Save the file, start the game and press ~ to open the console.
Compatibility notes
Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.
- Patch 1.2 and later A Steam forum reply quotes the official Heroes site as saying the console changed in version 1.2, though the commands should basically still be there. Steam Community: Heroes of Might & Magic V console discussion
- add_army syntax A Steam user reports that add_army 2,70 failed with the message usage: nTownID, bUpgrade. Magicgameworld's example add_army 5, 0 follows that form: a town number, then 0 or 1. Steam Community: Heroes of Might & Magic V console discussion
- Where autoexec.cfg lives The Steam poster says the game reads its settings from files in My Documents rather than the program folder, which is worth checking if the console line seems to have no effect. Steam Community: Heroes of Might & Magic V console discussion
- add_gold and add_money Magicgameworld says add_gold zeroes your other resources, while add_money sets them all and gold to 1,000 times the amount. Magicgameworld: Heroes of Might & Magic V cheats
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.
