Might & Magic Heroes VII has no typed cheat codes, but it contains a debug cheat window that is switched on by a setting in the game's configuration file.[1][1][1]
How to switch the cheat window on
Open My Documents\My Games\Might & Magic Heroes VII\MMH7Game\Config\MMH7Game.ini, change mDebugCheats=False to mDebugCheats=True and save the file. On the next launch a small star button appears above the command panel: it opens the cheat window.[1][1] PlayGround's guide changes the same setting in DefaultGame.ini in the game's installation folder (MMH7Game\Config).[1] The cheat window is not available in multiplayer games.[1][1]
What the cheat window can do
Change the current hero's stats; teleport; add experience and resources; build every building in a town; switch mana cost, the end-of-turn message, movement cost, the one-building-per-day limit and the fog of war on or off; upgrade or change the selected skills and abilities.[1][1]
With the setting on, players also report keyboard shortcuts: Ctrl+D doubles the army and Ctrl+S gives one skill point.[1][1]
Trial by Fire
We found no source that documents the cheat window separately for the stand-alone expansion Trial by Fire.
See also: Where to buy Might & Magic Heroes VII.
Cheats in other Heroes games
Heroes I, Heroes II, Heroes III, Heroes IV, Heroes V, Heroes VI, Olden Era.