Heroes of Might and Magic 5: Hammers of Fate - Cheat Codes

Heroes of Might and Magic 5: Hammers of Fate - Cheat Codes
Cheat Codes
In order to use cheat codes, you must first enable the cheat console. To enable the cheat console for all game profiles, locate the autoexeca1.cfg file in your game folderprofiles directory. Open this file with Notepad. Add the following line as the last line in the file:

setvar devconsolepassword = schwinge-des-todes

The end of the file will now look something like this:

//=============================================
// Startup
mainmenu
setvar devconsolepassword = schwinge-des-todes

NOTE: If you're still having trouble activating the console, you may need to add the following line to your inputa1.cfg file located in My Documents/My Games/Heroes of Might and Magic V/Profiles/YOURPROFILE:

bind showconsole ''

While playing, press the tilde key to bring up the cheat console. Use the following cheat codes in the cheat 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.

addarmy town nTownID, bUpgrade
Will fill all hero army slots with 10 creatures of town id specified. Second param is 0 or 1 which controls whether creatures are from upgraded dwellings or not.

Town IDs:
HEAVEN = 0
PRESERVE = 1
ACADEMY = 2
DUNGEON = 3
NECRO = 4
INFERNO = 5

Example: addarmy 5, 0 will fill all hero army slots with 10 basic inferno creatures. addarmy 4, 1 will fill hero army slots with 10 upgraded Necro creatures.

@Win
Win Mission.

@Loose
Lose Mission.

addskill NAME or ID
Add skills, perks or abilities. You can use either the name or ID number. Example: addskill Sorcery or addskill 8 will both give Sorcery. See list below for all 150 skills along with IDs from the original HOMM5.

Use the following names or IDs with the addskill cheat. When using the name, use only the name itself and not the prefix example: Sorcery not SkillSorcery.

SKILLS:
SKILLLOGISTICS = 1
SKILLWARMACHINES = 2
SKILLLEARNING = 3
SKILLLEADERSHIP = 4
SKILLLUCK = 5
SKILLOFFENCE = 6
SKILLDEFENCE = 7
SKILLSORCERY = 8
SKILLDESTRUCTIVEMAGIC = 9
SKILLDARKMAGIC = 10
SKILLLIGHTMAGIC = 11
SKILLSUMMONINGMAGIC = 12
SKILLTRAINING = 13
SKILLGATING = 14
SKILLNECROMANCY = 15
SKILLAVENGER = 16
SKILLARTIFICIER = 17
SKILLINVOCATION = 18

PERKS:
PERKPATHFINDING = 19
PERKSCOUTING = 20
PERKNAVIGATION = 21
PERKFIRSTAID = 22
PERKBALLISTA = 23
PERKCATAPULT = 24
PERKINTELLIGENCE = 25
PERKSCHOLAR = 26
PERKEAGLEEYE = 27
PERKRECRUITMENT = 28
PERKESTATES = 29
PERKDIPLOMACY = 30
PERKRESISTANCE = 31
PERKLUCKYSTRIKE = 32
PERKFORTUNATEADVENTURER = 33
PERKTACTICS = 34
PERKARCHERY = 35
PERKFRENZY = 36
PERKPROTECTION = 37
PERKEVASION = 38
PERKTOUGHNESS = 39
PERKMYSTICISM = 40
PERKWISDOM = 41
PERKARCANETRAINING = 42
PERKMASTEROFICE = 43
PERKMASTEROFFIRE = 44
PERKMASTEROFLIGHTNINGS = 45
PERKMASTEROFCURSES = 46
PERKMASTEROFMIND = 47
PERKMASTEROFSICKNESS = 48
PERKMASTEROFBLESSING = 49
PERKMASTEROFABJURATION = 50
PERKMASTEROFWRATH = 51
PERKMASTEROFQUAKES = 52
PERKMASTEROFCREATURES = 53
PERKMASTEROFANIMATION = 54
PERKHOLYCHARGE = 55
PERKPRAYER = 56
PERKEXPERTTRAINER = 57
PERKCONSUMECORPSE = 58
PERKDEMONICFIRE = 59
PERKDEMONICSTRIKE = 60
PERKRAISEARCHERS = 61
PERKNORESTFORTHEWICKED = 62
PERKDEATHSCREAM = 63
PERKMULTISHOT = 64
PERKSNIPEDEAD = 65
PERKIMBUEARROW = 66
PERKMAGICBOND = 67
PERKMELTARTIFACT = 68
PERKMAGICMIRROR = 69
PERKEMPOWEREDSPELLS = 70
PERKDARKRITUAL = 71
PERKELEMENTALVISION = 72

FEATS:
KNIGHTFEATROADHOME = 73
KNIGHTFEATTRIPLEBALLISTA = 74
KNIGHTFEATENCOURAGE = 75
KNIGHTFEATRETRIBUTION = 76
KNIGHTFEATHOLDGROUND = 77
KNIGHTFEATGUARDIANANGEL = 78
KNIGHTFEATSTUDENTAWARD = 79
KNIGHTFEATGRAILVISION = 80
KNIGHTFEATCASTERCERTIFICATE = 81
KNIGHTFEATANCIENTSMITHY = 82
KNIGHTFEATPARIAH = 83
KNIGHTFEATELEMENTALBALANCE = 84
KNIGHTFEATABSOLUTECHARGE = 85
DEMONFEATQUICKGATING = 86
DEMONFEATMASTEROFSECRETS = 87
DEMONFEATTRIPLECATAPULT = 88
DEMONFEATGATINGMASTERY = 89
DEMONFEATCRITICALGATING = 90
DEMONFEATCRITICALSTRIKE = 91
DEMONFEATDEMONICRETALIATION = 92
DEMONFEATEXPLODINGCORPSES = 93
DEMONFEATDEMONICFLAME = 94
DEMONFEATWEAKENINGSTRIKE = 95
DEMONFEATFIREPROTECTION = 96
DEMONFEATFIREAFFINITY = 97
DEMONFEATABSOLUTEGATING = 98
NECROMANCERFEATDEATHTREAD = 99
NECROMANCERFEATLASTAID = 100
NECROMANCERFEATLORDOFUNDEAD = 101
NECROMANCERFEATHERALDOFDEATH = 102
NECROMANCERFEATDEADLUCK = 103
NECROMANCERFEATCHILLINGSTEEL = 104
NECROMANCERFEATCHILLINGBONES = 105
NECROMANCERFEATSPELLPROOFBONES = 106
NECROMANCERFEATDEADLYCOLD = 107
NECROMANCERFEATSPIRITLINK = 108
NECROMANCERFEATTWILIGHT = 109
NECROMANCERFEATHAUNTMINE = 110
NECROMANCERFEATABSOLUTEFEAR = 111
RANGERFEATDISGUISEANDRECKON = 112
RANGERFEATIMBUEBALLISTA = 113
RANGERFEATCUNNINGOFTHEWOODS = 114
RANGERFEATFORESTGUARDEMBLEM = 115
RANGERFEATELVENLUCK = 116
RANGERFEATFORESTRAGE = 117
RANGERFEATLASTSTAND = 118
RANGERFEATINSIGHTS = 119
RANGERFEATSUNFIRE = 120
RANGERFEATSOILBURN = 121
RANGERFEATSTORMWIND = 122
RANGERFEATFOGVEIL = 123
RANGERFEATABSOLUTELUCK = 124
WIZARDFEATMARCHOFTHEMACHINES = 125
WIZARDFEATREMOTECONTROL = 126
WIZARDFEATACADEMYAWARD = 127
WIZARDFEATARTIFICIALGLORY = 128
WIZARDFEATSPOILSOFWAR = 129
WIZARDFEATWILDFIRE = 130
WIZARDFEATSEALOFPROTECTION = 131
WIZARDFEATCOUNTERSPELL = 132
WIZARDFEATMAGICCUSHION = 133
WIZARDFEATSUPRESSDARK = 134
WIZARDFEATSUPRESSLIGHT = 135
WIZARDFEATUNSUMMON = 136
WIZARDFEATABSOLUTEWIZARDY = 137
WARLOCKFEATTELEPORTASSAULT = 138
WARLOCKFEATSHAKEGROUND = 139
WARLOCKFEATDARKREVELATION = 140
WARLOCKFEATFASTANDFURIOUS = 141
WARLOCKFEATLUCKYSPELLS = 142
WARLOCKFEATPOWEROFHASTE = 143
WARLOCKFEATPOWEROFSTONE = 144
WARLOCKFEATCHAOTICSPELLS = 145
WARLOCKFEATSECRETSOFDESTRUCTION = 146
WARLOCKFEATPAYBACK = 147
WARLOCKFEATELITECASTERS = 148
WARLOCKFEATELEMENTALOVERKILL= 149
WARLOCKFEATABSOLUTECHAINS = 150