Auto-translated
Here is a complete guide.
To use the codes, you need to activate the console. To do this, find the file autoexec_a1.cfg in the game directory, in the profiles folder.
Open it with Notepad and add the following line to the end of the file:
setvar dev_console_password = schwinge-des-todes
As a result, the end of the file should look like this:
//==================================
// Startup
mainmenu
setvar dev_console_password = schwinge-des-todes
After that, you will most likely need to add the following line to the file input_a1.cfg:
bind show_console '`'
so that the game knows what console is and it looks like this:
// obsolete, but strictly need for compability with some interfaces
bind close_window 'ESC'
bind confirm_action 'ENTER'
bind confirm_action 'NUM_ENTER'
bind show_console '`'
After that, the console will work. The line bind show_console '`' must be added to two files (input_a1.cfg), the first in "Heroes of Might and Magic V/profiles",
the second in "C:/Documents and Settings/Owner/My Documents/My Games/Heroes of Might and Magic V/Hammers of Fate/Profiles/Owner" (Owner is the account name)
The console will work, but the codes will not. To make the codes work, enter enable_cheats in the console, and you will see a message that the codes are active, but this reduces the playability of the game, but this is not important.
Save the file. Run the game. During the game, call the console with the [`] key and enter the codes:
add_all_spells - All spells for the selected player
add_gold # - Add # gold
add_money # - Add # gold
clear_money - Reset all resources
set_hero_luck_morale X Y - Set luck to (X) and morale to (Y), for example: set_hero_luck_morale 5 3.
add_exp # - Add exp to the selected hero
show_player_money # - Show how many resources another player has, it is convenient to spy, for example: show_player_money 2.
show_hero_mp - Show detailed information about the movement points of the selected hero
add_army town nTownID, bUpgrade - Fills the city with all heroes. nTownID can be: