Note: This procedure involves editing a game file; create a backup copy of the file before proceeding. Use a text editor to edit the "autoexec.cfg" file in the "/heroes of might and magic v/profiles/" directory. Add the following line to the end of the file:
While playing the game, press ~ to display the console window. Type one of the following case-sensitive codes at the console window and press [Enter] to activate the corresponding cheat function:
| Result | Cheat Code |
| Fill hero army with creatures from indicated town [Note] | add_army town [town number] [0 or 1] |
| Add skill points | add_skill [skill name] |
| Add indicated experience to selected hero | add_exp [number] |
| Selected hero has all spells | add_all_spells |
| Set luck and morale for selected hero | set_hero_luck_morale [luck number] [morale number] |
| Set all resources to 0 | clear_money |
| Set gold quantity | add_gold [number] |
| Get indicated number of resources | add_money [number] |
| Display indicated player's resources | show_player_money [player number] |
| Display selected hero's movement points | show_hero_mp |
| Win current mission | @win() |
| Lose current mission | @loose() |
Note: A value of 1 will add upgraded creatures.
Use one of the following values with the "add_army town [town number] [0 or 1]" code:
Use one of the following values with the "add_skill [skill name]" code: