Heroes of Might and Magic 5: Tribes of the East - Enable Console

Heroes of Might and Magic 5: Tribes of the East - Enable Console
Enable Console:
Before you can use the cheat codes you must first enable the console. This requires that you edit two files. First, locate the autoexeca2.cfg file in your INSTALL FOLDERProfiles folder. Open this file with Notepad and add the following line to the end of the file in the // Startup section:

setvar devconsolepassword = schwinge-des-todes

Next, locate the inputa2.cfg file located in your MY DOCUMENTSMY GAMESHOMM5TOEPROFILESPLAYERNAME folder. Open this file with Notepad and in the // console section, add the following line:

bind showconsole ''

Activate Cheats:
Once you've done the above, you can bring up the console by pressing while playing. Type enablecheats in the console to activate cheat mode. You can then use any of the following cheat codes by typing them into the console:

addallspells
Gives all spells to currently selected hero.

addgold
Sets current gold to and zeroes out other resources.

addmoney
Sets all resources except gold to and sets gold to 1000. So addmoney 100 gives 100 of all resources and 100000 gold.

clearmoney
Sets all your resources to zero.

setheroluckmorale X Y
Sets luck X and morale Y base values for current hero. For example, setheroluckmorale 5 3.

addexp
Adds of experience to currently selected hero.

showplayermoney
Outputs resource quantities of specified player into console. Allows you to spy on other players. Example: showplayermoney 2.

showheromp
Shows detailed movement point stats for currently selected hero - exact quantity, stats for currently plotted path.

@Win
Win Mission.

@Loose
Lose Mission.

@ClearFog
Clear fog of war.

@Dragons
Give all heroes 1000 black dragons.