Heroes of Might and Magic V was released without traditional cheat codes. Instead it has a hidden developer console, unlocked by editing configuration files; the cheats are typed into it.[1] The same method works in Hammers of Fate and Tribes of the East, only the file names differ.[1][2][3]
How to unlock the console
- In the
profilesfolder inside the game folder, add this line as the last line of the Startup section of the start-up file (in Heroes V and Hammers of Fate, after themainmenuline):setvar dev_console_password = schwinge-des-todes. The file isautoexec.cfgfor Heroes V,autoexec_a1.cfgfor Hammers of Fate andautoexec_a2.cfgfor Tribes of the East.[1][4][5][6][7][2][3] - Bind a key to the console: add
bind show_console '`'toinput.cfg(input_a1.cfgfor Hammers of Fate,input_a2.cfgfor Tribes of the East) in your own profile under My Documents\My Games, not in the game folder. Editing the copy in the game folder instead is a common mistake. The key is the one to the left of 1.[1][5][7][8] - Load a single-player map, open the console and type
enable_cheats. It has to be entered again in every game; one forum post also listscheats 1as a way to enable cheats on all single-player maps.[9][5][2][10]
An early instruction on our forum spelled the command “eneble_cheats”; the correct spelling is enable_cheats.[7][7] Patches usually rewrite the configuration files, so the lines have to be added again after updating.[1] One Steam user reports that in the Steam version the console only appeared after editing the profile files in My Documents.[11]
Cheats do not work in multiplayer, including hot-seat.[1][12][13]
Console commands
| Command | Effect |
|---|---|
enable_cheats | Turns cheat mode on for the loaded map; enter it again in every game[9][5][14][2] |
add_all_spells | The selected hero learns every spell, regardless of skills[15][16][4] |
add_gold N | Sets your gold to N and sets all other resources to zero[17][5] |
add_money N | Sets every resource to N and gold to N×1000 (it sets the amount, it does not add to it)[17][18] |
clear_money | Sets all resources to zero[17][16][4] |
add_exp N | The selected hero gains N experience[17][16][4] |
set_hero_luck_morale X Y | Sets the selected hero's luck to X and morale to Y[16][4] |
show_player_money N | Shows player N's resources in the console[16][4] |
show_hero_mp | Shows the selected hero's movement points and the cost of the path[17][16][4] |
add_army T, U | Fills the hero's army with every creature of town T (0 Haven, 1 Sylvan, 2 Academy, 3 Dungeon, 4 Necropolis, 5 Inferno); U is 0 for basic and 1 for upgraded creatures[19][16][4] |
add_skill N | Gives skill or ability number N (for example 15 is Necromancy); repeating it raises the level[20][16][4] |
Age of Heroes notes that patch 1.2 disabled the plain commands (all but the script ones below) in the name of fair multiplayer. Later guides add the enable_cheats step, and Tribes of the East players on our forum report that the commands work after it.[1][5][2][2] Sources also disagree on how many creatures add_army gives per slot: 10, or 100 since patch 1.1 according to Age of Heroes.[19][18]
Script commands
Commands that start with @ call the game's map-script functions and work in single-player games. Heroes, creatures, skills and spells are referred to by their internal script names or numbers.[1][17]
| Command | Effect |
|---|---|
@Win() | Wins the current mission[17][4] |
@Loose() | Loses the current mission (spelled “Loose” in the game)[17][4] |
@AddHeroCreatures("Name", CREATURE, N) | Adds N creatures of one type to the named hero[19] |
@GiveHeroSkill("Name", SKILL) | Gives a skill or ability to the named hero[20] |
@TeachHeroSpell("Name", SPELL) | Teaches the named hero one spell[15] |
@ChangeHeroStat("Name", STAT, N) | Adds N to one of the hero's stats[17] |
@SetPlayerResource(P, R, N) | Sets resource R of player P to N[17] |
@OpenCircleFog(0, 0, 0, 9999, PLAYER_1) | Reveals the surface map (a third argument of 1 reveals the underground)[17] |
Some sites also list @ClearFog() and @Dragons(). Players on our forum got a “Value was NIL” error for both in Tribes of the East, so do not rely on them.[5][2][2]
See also: Official game description, Where to buy Heroes of Might and Magic V.
Cheats in other Heroes games
Heroes I, Heroes II, Heroes III, Heroes IV, Heroes VI, Heroes VII, Olden Era.