Professional Documents
Culture Documents
script. To my knowledge and fair amount of testing, the commands covered should work as intended. It goes without saying that these are intended to be used by individuals in a single player environment as a means to explore the game's mechanics, fool around, have some fun, and help players that may be stuck or frustrated. They should not be used to gain an advantage in multiplayer environments, competitive or casual, unless all players are made aware and are in agreement. For the sake of fair play and in consideration of fellow players, please act honorably.
Note: for the reason of multiplayer honesty, version 1.2 of the game (and presumably beyond) has disabled all the codes that are NOT @ Commands (the @ Commands never worked in multiplayer, but always did for single player). As a result, unless your game version is pre-1.2, many of the cheats will no longer function. However, there is an @ equivalent for every code that no longer works.
Patching or upgrading the game usually rewrites the config files that enables cheating. You will have to reedit these files manually, as explained below. Acknowledgements Wrongusername for likely being the first to share some of this info. Metathron for pointing out the error with the command add_army in my original document. And of course Age of Heroes for hosting this!
CONTENTS
1. Introduction Activating Ability to Cheat Addendum The @ Commands 2. Adding Skills The simple way (disabled in 1.2) The @ Variant: @GiveHeroSkill() Skill Names / Numbers Chart 3. Adding Creatures Adding a complete army (disabled in 1.2) The @ Variant: Adding Specific Creatures, Variable Amounts Removing Specific Creatures Creature Names / Numbers Chart 4. Adding War Machines Adding a specific War Machine Removing War Machines War Machines Names / Numbers Chart 5. Adding Spells Adding all spells at once (disabled in 1.2) Adding Individual Spells to Heroes Spell Names / Numbers Chart 6. Adding Artifacts to Heroes Adding a specific Artifact Artifact Names / Numbers Chart 7. Hero Names Chart 8. Miscellaneous Modifications Adding Experience (disabled in 1.2) Changing Hero Stats Clearing Resources (disabled in 1.2) Adding Gold Only (disabled in 1.2) Adding Gold and Resources (disabled in 1.2) Adding Specific Gold and Resources Seeing Movement Points Revealing the Map Instant Win and Lose
You can discuss this guide and ask more about the cheats in the Heroes Community dedicated forum. Thanks to Curio for creating these pages! converted to PDF by Lifemare
Age of Heroes is copyrighted 1999-2008. Unauthorised reproduction is prohibited. In-Game Advertising. Webmaster.
A C T I VAT I N G A B I L I T Y
TO
C H E AT
To enable the console in-game, you'll first have to edit 2 text files (open them with Notepad or some better text editor - not Word!). H5, HoF and ToE each have their own files, so make sure you edit the correct ones. Applying patches will most likely reset the input.cfg file, and you'll have to make sure the hotkey is still assigned.
Heroes of Might and Magic V/Profiles/YOUR_PROFILE/input.cfg Heroes of Might and Magic V/Hammers of Fate/Profiles/YOUR_PROFILE/input_a1.cfg Heroes of Might and Magic V - Tribes of the East/Profiles/YOUR_PROFILE/input_a2.cfg
Add this line in the "Common section" (in the beginning of the file):
While you're editing your input.cfg file, you may want to add this binding as well:
ADDENDUM
Due to the massive amount of posts at Heroes Community forums' Curio's Cheating Guide thread, regarding problems with unlocking the console, i've decided to add this section to the PDF, compiled from various sources found there. In case the solutions offered on the previous page don't work on your particular version of the game, the following alternatives are at your disposal. 1. After adding the console_password to your autoexec file, copy it to one of the following locations:
My Documents\My Games\Heroes of Might and Magic V\Profiles\ My Documents\My Games\Heroes of Might and Magic V\Profiles\YourProfile\
2. Instead of adding the bind show_console line to the beginning of the Common Section, add it after: // obsolete, but strictly need for compability with some interfaces 3. If you're on a non-US keyboard avoid using special characters as ''. Choose anything else, aslong as it's not in use. Key combinations work great too, try something like:
THE COMMANDS
Until version 1.2 of the game, there used to be two types of commands:
The first, simple type of commands has been disabled in version 1.2 of the game to prevent multiplayer cheating. We kept them here for reference, if you're playing with an earlier version. The second type of commands is the one used in the game lua scripts. They do not work in multiplayer, even in hotseat. They only work in single player mode, campaigns included. Note that the commands have to be entered with the correct syntax, respecting lowercase and uppercase letters, parenthesis, quotes ('simple' ou "double" indifferently)... The semicolon (;) at the end of the line can be omitted, though. When explaining each command, we will provide examples besides the generic code, and you may find it easier to understand the mechanics on examples. Note that the generic code will be written in italics, but of course, you don't have to input it in italics in Heroes 5 console...
ADDING SKILLS
The only prerequisite you have to fill when adding abilities is that the hero already knows the corresponding skill. All the other usual rules do not apply: you can learn advanced abilities without knowing their prerequisites, you can learn skills and abilities usually not accessible to your faction, you can learn more than 6 skills and 3 abilities per skills (they won't be visible on the skill panel, but you will get the benefits). When you input the command to learn a skill (not an ability) that you don't know yet, you learn it at Basic level. Type the command again to learn the upper skill levels (Advanced, Expert, and Ultimate for the unique racial skills). Each time you input it, you will gain a level in the skill, until you reach the maximum.
add_skill 15
...gives you Necromancy.
add_skill 19
...gives Pathfinding (ability of Logistics).
A D D I N G C R E AT U R E S
Adding a Complete Army (disabled in 1.2)
add_army (#), (0 or 1)
This fills all of your selected hero's slots with exactly 100 creatures from the town class you indicate. 0 or 1 sets whether these creatures are upgraded or not, 0 being basic, and 1 being the upgraded version of the creature. More times do not give you 200, 300, etc.
Note: It used to add 10 such creatures in each slot prior to the 1.1 patch.
Town Names HEAVEN PRESERVE ACADEMY DUNGEON NECRO INFERNO # 0 1 2 3 4 5 (no, it is not HAVEN) (no, it is not SYLVAN)
add_army 1, 0
...gives your hero 100 creatures of each basic Sylvan creature.
add_army 4, 1
...gives your hero 100 creatures of each upgraded Necropolis creature.
A D D I N G WA R M A C H I N E S
Adding a specific War Machine
In version 1.0 of the game, it was possible to add war machines by using the @AddHeroCreatures() command. Since patch 1.1, this method does not work anymore, but there is a specific command to do just that:
Note: obviously, adding a Catapult is not very useful since your heroes always have one, and the removing code doesn't work on it.
ADDING SPELLS
Adding all spells at once (disabled in 1.2)
add_all_spells
Your selected hero learns and can use all the spells, regardless of whether you have the skills or not.
Note: There are also codes for the special ability that have to be activated in combat, like the Necromancer's Banshee Howl. However, they cannot be directly added into your spell book with this command. Instead, you'll have to give yourself the Necromancy skill with the Adding Skills command. With the appropriate skill, the corresponding ability is placed into your spell book automatically.
A D D I N G A RT I FA C T S
Adding a specific Artifact
For example:
TO
H E RO E S
@RemoveArtefact("Calid", 28);
...removes a Bag of Endless Gold from Grawl (only one is removed if he has several). So, the code is:
@RemoveArtefact("Name", #);
Note that artEfact can only be written with an "E" in this command.
(1) This "artifact" is the portrait of the Haven campaign heroine Freyda, daughter of Godric, as seen through the cutout shape of the Four Leaf Clover; its description is Freyda's biography. It is used in the last scenario of the Necromancer campaign, to symbolize the fact that you have her prisoner.
M I S C E L L A N E O U S M O D I F I C AT I O N S
Adding Experience (disabled in 1.2)
add_exp (#)
Adds however much experience you specify. So, for example:
add_exp 22000
gives your selected hero 22 000 xp.
@SetPlayerResource(1, 2, 50);
...gives red player 50 mercury. In single player scenarios and campaign missions, you are always PLAYER_1, regardless of colour. The next two tables show how the colours correspond to player numbers in the game, for your single player, custom games; and the resource codes in the game:
Player Red Blue Green Yellow Orange Teal Purple Brown # 1 2 3 4 5 6 7 8 Resources Wood Ore Mercury Crystal Sulfur Gems Gold # 0 1 2 3 4 5 6
show_hero_mp
This shows your hero's movement points, the number and amount of points it takes to travel your current path (if you've set one). You can also use this more complex @command variant, which still works in version 1.2: