0% found this document useful (0 votes)
608 views

Hommtoe Help

The document provides information about adding and removing specific creatures to hero units in the game. It describes the add_army and @AddHeroCreatures commands that can be used to fill hero slots with creatures from different towns or add specific creatures by name or code. It also includes charts listing creature names, corresponding code constants and numbers for each town.

Uploaded by

anilkln
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
608 views

Hommtoe Help

The document provides information about adding and removing specific creatures to hero units in the game. It describes the add_army and @AddHeroCreatures commands that can be used to fill hero slots with creatures from different towns or add specific creatures by name or code. It also includes charts listing creature names, corresponding code constants and numbers for each town.

Uploaded by

anilkln
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Adding Creatures

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 timesdo 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 (as per how the game refers to them) and its corresponding #:
HEAVEN 0 (no, it is not HAVEN)
(no, it
PRESERVE 1
is not SYLVAN)
ACADEMY 2
DUNGEON 3
NECRO 4
INFERNO 5
So, for example:
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.

The @ Variant: Adding Specific Creatures, Variable Amounts


Obviously, the previous command for adding creatures can be rather maddening, in that you
get every creature of a faction, and the stack sizes are only 10. What if you wanted something
like 5000 Black Dragons? This code allows you to do that.

For example:
@AddHeroCreatures("Pelt", CREATURE_BONE_DRAGON, 22);
OR @AddHeroCreatures("Pelt", 41, 22);
...gives the Necromancer hero Vladimir 22 bone dragons.

So, the code is:


@AddHeroCreatures("Name", CREATURE_NAME, #);
OR @AddHeroCreatures("Name", #, #);
Note: to effectively use this code, it is essential to refer to the Hero Names Chart, and to the
following Creature Names / Numbers Chart.

Removing Specific Creatures


Of course, you can just dismiss creatures through the game interface, but if we try to be
exhaustive, the removal command also exists:
@RemoveHeroCreatures("Name", CREATURE_NAME, #);
OR @RemoveHeroCreatures("Name", #, #);
Creature Names / Numbers Chart
The chart is organized by faction, and then from the weakest creature to the strongest (for
example, Gremlins to Colossi for the Academy faction), rather than alphabetically. The
upgraded variant of each creature immediately follows its basic form.

Creature name in-game Code constant Numeric code

Academy

Gremlin CREATURE_GREMLIN 57

Master Gremlin CREATURE_MASTER_GREMLIN


58

Stone Gargoyle CREATURE_STONE_GARGOYLE 59

Obsidian Gargoyle CREATURE_OBSIDIAN_GARGOYLE 60

Iron Golem CREATURE_IRON_GOLEM 61

Steel Golem CREATURE_STEEL_GOLEM 62

Mage CREATURE_MAGI 63

Arch Mage CREATURE_ARCH_MAGI 64

Djinn CREATURE_GENIE 65

Djinn Sultan CREATURE_MASTER_GENIE 66

Rakshasa Rani CREATURE_RAKSHASA 67

Rakshasa Raja CREATURE_RAKSHASA_RUKH 68

Colossus CREATURE_GIANT 69

Titan CREATURE_TITAN 70

Gremlin Saboteur CREATURE_GREMLIN_SABOTEUR 159

Elemental Gargoyle CREATURE_MARBLE_GARGOYLE


160

Magnetic Golem CREATURE_OBSIDIAN_GOLEM 161

Battle Mage CREATURE_COMBAT_MAGE 162

Djinn Vizier CREATURE_DJINN_VIZIER 163

Rakshasa Kshatra CREATURE_RAKSHASA_KSHATRI 164


Creature name in-game Code constant Numeric code

Storm Titan CREATURE_STORM_LORD 165

Dungeon

Scout CREATURE_SCOUT 71

Assassin CREATURE_ASSASSIN
72

Blood Maiden CREATURE_WITCH 73

Blood Fury CREATURE_BLOOD_WITCH 74

Minotaur CREATURE_MINOTAUR 75

Minotaur Guard CREATURE_MINOTAUR_KING 76

Grim Raider CREATURE_RIDER 77

Dark Raider CREATURE_RAVAGER 78

Hydra CREATURE_HYDRA 79

Deep Hydra CREATURE_CHAOS_HYDRA 80

Shadow Witch CREATURE_MATRON 81

Shadow Matriarch CREATURE_MATRIARCH 82

Shadow Dragon CREATURE_DEEP_DRAGON 83

Black Dragon CREATURE_BLACK_DRAGON 84

Stalker CREATURE_STALKER 138

Blood Sister CREATURE_BLOOD_WITCH_2


139

Minotaur Taskmaster CREATURE_MINOTAUR_CAPTAIN 140

Brisk Raider CREATURE_BLACK_RIDER 141

Foul Hydra CREATURE_ACIDIC_HYDRA 142


Creature name in-game Code constant Numeric code

Shadow Mistress CREATURE_SHADOW_MISTRESS 143

Red Dragon CREATURE_RED_DRAGON 144

Fortress

Defender CREATURE_DEFENDER 92

Shieldguard CREATURE_STOUT_DEFENDER
93

Spearwielder CREATURE_AXE_FIGHTER 94

Skirmisher CREATURE_AXE_THROWER 95

Bear Rider CREATURE_BEAR_RIDER 96

Blackbear Rider CREATURE_BLACKBEAR_RIDER 97

Brawler CREATURE_BROWLER 98

Berserker CREATURE_BERSERKER 99

Rune Priest CREATURE_RUNE_MAGE 100

Rune Patriarch CREATURE_FLAME_MAGE 101

Thane CREATURE_THANE 102

Warlord / Flame Lord CREATURE_WARLORD 103

Fire Dragon CREATURE_FIRE_DRAGON 104

Magma Dragon CREATURE_MAGMA_DRAGON 105

Mountain Guard CREATURE_STONE_DEFENDER 166

Harpooner CREATURE_HARPOONER
167

Whitebear Rider CREATURE_WHITE_BEAR_RIDER 168


Creature name in-game Code constant Numeric code

Battlerager CREATURE_BATTLE_RAGER 169

Rune Keeper CREATURE_FLAME_KEEPER 170

Thunder Thane CREATURE_THUNDER_THANE 171

Lava Dragon CREATURE_LAVA_DRAGON 172

Haven

Peasant CREATURE_PEASANT 1

Conscript CREATURE_MILITIAMAN
2

Archer CREATURE_ARCHER 3

Marksman CREATURE_MARKSMAN 4

Footman CREATURE_FOOTMAN 5

Squire CREATURE_SWORDSMAN 6

Griffin CREATURE_GRIFFIN 7

Royal Griffin CREATURE_ROYAL_GRIFFIN 8

Priest CREATURE_PRIEST 9

Inquisitor CREATURE_CLERIC 10

Cavalier CREATURE_CAVALIER 11

Paladin CREATURE_PALADIN 12

Angels CREATURE_ANGEL 13

Archangel CREATURE_ARCHANGEL 14

Enforcer / Brute CREATURE_LANDLORD 106


Creature name in-game Code constant Numeric code

Crossbowman CREATURE_LONGBOWMAN
107

Vindicator CREATURE_VINDICATOR 108

Battle Griffin CREATURE_BATTLE_GRIFFIN 109

Zealot CREATURE_ZEALOT 110

Champion CREATURE_CHAMPION 111

Fallen Angel / Seraph CREATURE_SERAPH 112

Inferno

Imp CREATURE_FAMILIAR 15

Familiar CREATURE_IMP
16

Horned Demon CREATURE_DEMON 17

Horned Overseer CREATURE_HORNED_DEMON 18

Hell Hound CREATURE_HELL_HOUND 19

Cerberus CREATURE_CERBERI 20

Succubus CREATURE_SUCCUBUS 21

Succubus Mistress CREATURE_INFERNAL_SUCCUBUS 22

Hell Charger CREATURE_NIGHTMARE 23

Nightmare CREATURE_FRIGHTFUL_NIGHTMARE 24

Pit Fiend CREATURE_PIT_FIEND 25

Pit Lord CREATURE_BALOR 26

Devil CREATURE_DEVIL 27

Arch Devil CREATURE_ARCHDEVIL 28


Creature name in-game Code constant Numeric code

Vermin CREATURE_QUASIT 131

Horned Grunt CREATURE_HORNED_LEAPER


132

Firehound CREATURE_FIREBREATHER_HOUND 133

Succubus Seducer CREATURE_SUCCUBUS_SEDUCER 134

Hell Stallion CREATURE_HELLMARE 135

Pit Spawn CREATURE_PIT_SPAWN 136

Arch Demon CREATURE_ARCH_DEMON 137

Necropolis

Skeleton CREATURE_SKELETON 29

Skeleton Archer CREATURE_SKELETON_ARCHER


30

Zombie CREATURE_WALKING_DEAD 31

Plague Zombie CREATURE_ZOMBIE 32

Ghost CREATURE_MANES 33

Spectre CREATURE_GHOST 34

Vampire CREATURE_VAMPIRE 35

Vampire Lord CREATURE_VAMPIRE_LORD 36

Lich CREATURE_LICH 37

Archlich CREATURE_DEMILICH 38

Wight CREATURE_WIGHT 39

Wraith CREATURE_WRAITH 40
Creature name in-game Code constant Numeric code

Bone Dragon CREATURE_BONE_DRAGON 41

Spectral Dragon CREATURE_SHADOW_DRAGON 42

Skeleton Warrior CREATURE_SKELETON_WARRIOR 152

Rot Zombie CREATURE_DISEASE_ZOMBIE


153

Poltergeist CREATURE_POLTERGEIST 154

Vampire Prince CREATURE_NOSFERATU 155

Lich Master CREATURE_LICH_MASTER 156

Banshee CREATURE_BANSHEE 157

Ghost Dragon CREATURE_HORROR_DRAGON 158

Stronghold

Goblin CREATURE_GOBLIN 117

Goblin Trapper CREATURE_GOBLIN_TRAPPER


118

Centaur CREATURE_CENTAUR 119

Centaur Nomad CREATURE_CENTAUR_NOMAD 120

Warrior CREATURE_ORC_WARRIOR 121

Mauler CREATURE_ORC_SLAYER 122

Shaman CREATURE_SHAMAN 123

Sky Daughter CREATURE_SHAMAN_WITCH 124

Slayer CREATURE_ORCCHIEF_BUTCHER 125

Executioner CREATURE_ORCCHIEF_EXECUTIONER 126


Creature name in-game Code constant Numeric code

Wyvern CREATURE_WYVERN 127

Foul Wyvern CREATURE_WYVERN_POISONOUS 128

Cyclops CREATURE_CYCLOP 129

Untamed Cyclops CREATURE_CYCLOP_UNTAMED 130

Goblin Witch-Doctor CREATURE_GOBLIN_DEFILER 173

Centaur Marauder CREATURE_CENTAUR_MARADEUR


174

Warmonger CREATURE_ORC_WARMONGER 175

Earth Daughter CREATURE_SHAMAN_HAG 176

Chieftain CREATURE_ORCCHIEF_CHIEFTAIN 177

Paokai CREATURE_WYVERN_PAOKAI 178

Bloodeyed Cyclops CREATURE_CYCLOP_BLOODEYED 179

Sylvan

Pixie CREATURE_PIXIE 43

Sprite CREATURE_SPRITE
44

Blade Dancer CREATURE_BLADE_JUGGLER 45

War Dancer CREATURE_WAR_DANCER 46

Hunter CREATURE_WOOD_ELF 47

Master Hunter CREATURE_GRAND_ELF 48

Druid CREATURE_DRUID 49

Druid Elder CREATURE_DRUID_ELDER 50


Creature name in-game Code constant Numeric code

Unicorn CREATURE_UNICORN 51

Silver Unicorn CREATURE_WAR_UNICORN 52

Treant CREATURE_TREANT 53

Ancient Treant CREATURE_TREANT_GUARDIAN 54

Green Dragon CREATURE_GREEN_DRAGON 55

Emerald Dragon CREATURE_GOLD_DRAGON 56

Dryad CREATURE_DRYAD 145

Wind Dancer CREATURE_BLADE_SINGER


146

Arcane Archer CREATURE_SHARP_SHOOTER 147

High Druid CREATURE_HIGH_DRUID 148

Pristine Unicorn CREATURE_WHITE_UNICORN 149

Savage Treant CREATURE_ANGER_TREANT 150

Crystal Dragon CREATURE_RAINBOW_DRAGON 151

Neutrals

Air Elemental CREATURE_AIR_ELEMENTAL 88

Black Knight CREATURE_BLACK_KNIGHT


89

Death Knight CREATURE_DEATH_KNIGHT 90

Earth Elemental CREATURE_EARTH_ELEMENTAL 87

Fire Elemental CREATURE_FIRE_ELEMENTAL 85

Phoenix CREATURE_PHOENIX 91
Creature name in-game Code constant Numeric code

Water Elemental CREATURE_WATER_ELEMENTAL 86

Wolf CREATURE_WOLF 113

Manticore CREATURE_MANTICORE
115

Mummy CREATURE_MUMMY 116

Adding War Machines


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:
@GiveHeroWarMachine("Name", WAR_MACHINE_NAME);
OR @GiveHeroWarMachine("Name", #);
For example:
@GiveHeroWarMachine("Godric", WAR_MACHINE_BALLISTA);
OR @GiveHeroWarMachine("Godric", 1);
...gives a ballista to the Haven hero Godric.

Note: to effectively use this code, it is essential to refer to the Hero Names Chart, and to the
following Creature Names / Numbers Chart.

Removing War Machines


You can also remove a war machine from a hero (except his/her Catapult):
@RemoveHeroWarMachine("Name", WAR_MACHINE_NAME);
OR @RemoveHeroWarMachine("Name", #);
For example:
@RemoveHeroWarMachine("Godric", WAR_MACHINE_BALLISTA);
OR @RemoveHeroWarMachine("Godric", 1);
...removes the ballista from Godric.

War Machines Names / Numbers Chart


War Machine name in-game Code constant Numeric code

War Machines

Ammo Cart WAR_MACHINE_AMMO_CART 4

Ballista WAR_MACHINE_BALLISTA
1

Catapult WAR_MACHINE_CATAPULT 2

WAR_MACHINE_FIRST_AID_TEN
First Aid Tent T 3

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.

Adding Individual Spells to Heroes


Maybe you're not that big of a cheater, and would prefer to add choice spells to a hero, rather
than every single one with add_all_spells .

For example:
@TeachHeroSpell("Astral", SPELL_HASTE);
OR @TeachHeroSpell("Astral", 24);
...gives the Academy hero Nur the spell Haste.

So, the generic code is:


@TeachHeroSpell(“Name”, SPELL_NAME);
OR @TeachHeroSpell(“Name”, #);
Note: if the spell name is longer than one word, it'll look something like:
SPELL_MAGIC_ARROW (which is Eldritch Arrow in-game).

To properly use this, the chart in the next section is essential, as is the Hero Names Chart.

Spell Names / Numbers Chart


Say you want the spell Instant Travel, and try to input this name in caps with the above code.
Strangely, you'll fail, and the console tells you that such a spell doesn't exist! What's the big
deal?

The fact of the matter is, some of the in-game spell names aren't referenced by the game as
that particular spell. My previous note illustrates this perfectly: to learn Eldritch Arrow, the
used code is MAGIC_ARROW. Why the incongruity? It seems a lot of the renamed spells are
identified by what HoMM fans are traditionally used to. Anyhow:

You want to learn... Code constant Numeric code

Adventure Spells

Instant Travel SPELL_DIMENSION_DOOR 50

Summon Creatures SPELL_SUMMON_CREATURES


234

Town Portal SPELL_TOWN_PORTAL 51

Vessel of Shalassa SPELL_SUMMON_BOAT 49

Barbarian Warcries

Ralling Cry SPELL_WARCRY_RALLING_CRY 290

Call of Blood SPELL_WARCRY_CALL_OF_BLOOD


291

Word of the Chief SPELL_WARCRY_WORD_OF_THE_CHIEF 292

Fear My Roar SPELL_WARCRY_FEAR_MY_ROAR 293

Battlecry SPELL_WARCRY_BATTLECRY 294

Horde's Anger SPELL_WARCRY_SHOUT_OF_MANY 295

Dark Magic

Blindness SPELL_BLIND 19

Confusion SPELL_FORGETFULNESS
17

Curse of the Netherworld SPELL_UNHOLY_WORD 21

Decay SPELL_PLAGUE 14

Frenzy SPELL_BERSERK 18

Puppet Master SPELL_HYPNOTIZE 20


You want to learn... Code constant Numeric code

Slow SPELL_SLOW 12

Sorrow SPELL_SORROW 277

Suffering SPELL_WEAKNESS 15

Vampirism SPELL_VAMPIRISM 278

Vulnerability SPELL_DISRUPTING_RAY 13

Weakness SPELL_CURSE
11

Mass Confusion SPELL_MASS_FORGETFULNESS 213

Mass Decay SPELL_MASS_PLAGUE 214

Mass Slow SPELL_MASS_SLOW 212

Mass Suffering SPELL_MASS_WEAKNESS 215

Mass Vulnerability SPELL_MASS_DISRUPTING_RAY 211

Mass Weakness SPELL_MASS_CURSE 210

Destructive Magic

Armageddon SPELL_ARMAGEDDON 10

Chain Lightning SPELL_CHAIN_LIGHTNING


7

Circle of Winter SPELL_FROST_RING 6

Deep Freeze SPELL_DEEP_FREEZE 279

Eldritch Arrow SPELL_MAGIC_ARROW 1

Fireball SPELL_FIREBALL
5

Ice Bolt SPELL_ICE_BOLT 4

Implosion SPELL_IMPLOSION 9
You want to learn... Code constant Numeric code

Lightning Bolt SPELL_LIGHTNING_BOLT 3

Meteor Shower SPELL_METEOR_SHOWER 8

Stone Spikes SPELL_STONE_SPIKES 237

Empowered Armageddon SPELL_EMPOWERED_ARMAGEDDON 232

Empowered Chain Lightning SPELL_EMPOWERED_CHAIN_LIGHTNING 229

Empowered Eldritch Arrow SPELL_EMPOWERED_MAGIC_ARROW 223

Empowered Fireball SPELL_EMPOWERED_FIREBALL 227

Empowered Ice Bolt SPELL_EMPOWERED_ICE_BOLT 226

Empowered Implosion SPELL_EMPOWERED_IMPLOSION 231

Empowered Lightning Bolt SPELL_EMPOWERED_LIGHTNING_BOLT 225

Empowered Meteor Shower SPELL_EMPOWERED_METEOR_SHOWER 230

Empowered Stone Spikes SPELL_EMPOWERED_STONE_SPIKES 233

Empowered Winter Ring SPELL_EMPOWERED_FROST_RING 228

Light Magic

Arcane Armor SPELL_CELESTIAL_SHIELD 34

Cleansing SPELL_DISPEL
26

Deflect Missile SPELL_DEFLECT_ARROWS 29

Divine Strength SPELL_BLESS 23

Divine Vengeance SPELL_DIVINE_VENGEANCE 281

Endurance SPELL_STONESKIN 25
You want to learn... Code constant Numeric code

Haste SPELL_HASTE
24

Magical Immunity SPELL_ANTI_MAGIC 31

Regeneration SPELL_REGENERATION 280

Resurrection SPELL_RESURRECT 48

Righteous Might SPELL_BLOODLUST


28

Teleportation SPELL_TELEPORT 32

Word of Light SPELL_HOLY_WORD 35

Mass Cleansing SPELL_MASS_DISPEL 217

Mass Deflect Missile SPELL_MASS_DEFLECT_ARROWS 219

Mass Divine Strength SPELL_MASS_BLESS 216

Mass Endurance SPELL_MASS_STONESKIN 218

Mass Haste SPELL_MASS_HASTE 221

Mass Righteous Might SPELL_MASS_BLOODLUST 220

Runic Magic

Rune of Battle Rage 255

Rune of Berserking
250

Rune of Charge 249

Rune of Dragonform 258

Rune of Elemental Immunity 253


You want to learn... Code constant Numeric code

Rune of Etherealness 256

Rune of Exorcism 252

Rune of Magic Control 251

Rune of Resurrection 257

Rune of Thunderclap 254

Summoning Magic

Arcane Crystal SPELL_ARCANE_CRYSTAL 282

Blade Barrier SPELL_BLADE_BARRIER


284

Conjure Phoenix SPELL_CONJURE_PHOENIX 235

Earthquake SPELL_EARTHQUAKE
41

Fire Trap SPELL_LAND_MINE 38

Firewall SPELL_FIREWALL 236

Fist of Wrath SPELL_MAGIC_FIST 2

Phantom Forces SPELL_PHANTOM 40

Raise Dead SPELL_ANIMATE_DEAD 42

Summon Elementals SPELL_SUMMON_ELEMENTALS 43

Summon Hive SPELL_SUMMON_HIVE 283

Wasp Swarm SPELL_WASP_SWARM 39

Empowered Fist of Wrath SPELL_EMPOWERED_MAGIC_FIST 224

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.

Adding Artifacts to Heroes


Adding a specific Artifact
For example:
@GiveArtefact("Calid", 28);
OR @GiveArtifact("Calid", 28);
...gives the Inferno hero Grawl a Bag of Endless Gold, equipped if there is space, or in the
inventory if there is not.

So, the code is:


@GiveArtefact("Name", #);
OR @GiveArtifact("Name", #);
The # can be 1 to 73; either have fun experimenting, or refer to the following chart!

Note that textual codes also exist, like ARTIFACT_ANGEL_WINGS or


ARTIFACT_ENDLESS_SACK_OF_GOLD.

Removing a specific Artifact


For example:
@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.

Artifact Names / Numbers Chart

So you want this artifact... So you want this artifact...

Numeric code Numeric code

Boots slot Necklace slot

Boots of Levitation Amulet of Necromancy

54 71

Boots of Magical Defence Dragon Teeth Necklace

27 40
Boots of the Open Road Evercold Icicle

26 18

Boots of the Swift Journey Necklace of the Bloody Claw

24 17

Dragon Bone Greaves Necklace of the Lion

38 16

Emerald Slippers Necklace of Victory

61 19

Greaves of the Dwarven Kings Pendant of Conflux

49 67

Sandals of the Blessed Pendant of Mastery

68 15

Windstrider Boots

57

Ring slots

Cursed Waistband

Cloak slot 63

Bag of Endless Gold Dragon Eye Ring

28 42

Bearhide Wraps Elemental Waistband


84 60

Cape of the Lion's Mane Ring of Banishment

31 93

Cloak of Death's Shadow Ring of Caution

33 65

Cloak of Sylanna Ring of Celerity

62 59

Dragon Wing Mantle Ring of Lightning Protection

39 20

Phoenix Feather Cape Ring of Machine Affinity

32 91

Sack of Endless Gold Ring of Sar-Issus

29 47

Sandro's Cloak Ring of Speed

69 22

Treeborn Quiver Ring of the Broken Will

95 23

Wings of the Angel Ring of the Shadowbrand

30 73

Ring of the Unrepentant


70

Cuirass (armor) slot Ring of Vitality

21
Armor of the Forgotten Hero

13

Armor of Valor

56 Shield slot

Breastplate of Eldritch Might Book of Power

14 94

Cuirass of the Dwarven Kings Dragon Scale Shield

48 37

Dragon Scale Armor Magic Scroll of (Random Spell)

36 52

Robe of Sar-Issus Moonblade

44 58

Runic War Harness Ogre Shield

82 75

Scale Mail of Enlightenment Shield of Crystal Ice

35 9

Tunic of the Carved Flesh Shield of the Dwarven Kings

64 51
Tome of Dark Magic

78

Helm slot Tome of Destruction

76
All-Seeing Crown

12 Tome of Light Magic

77
Crown of Leadership

88 Tome of Summoning Magic

79
Crown of Sar-Issus

46

Dragon Talon Crown

41 Weapon slot

Helm of Chaos Axe of the Mountain Lords

66 2

Helm of Dwarven Kings Beginner's Magic Wand

50 80

Lion Crown Dragon Flame Tongue

11 43

Mask of Equity Dwarven Smithy Hammer

89 85

Necromancer's Helm Edge of Balance


55 90

Turban of Enlightenment Ogre Club

34 74

Runic War Axe

81

Pocket slot Staff of Ensnarement

6
Four Leaf Clover

8 Staff of Sar-Issus

45
Golden Horseshoe

25 Sword of Might

1
Horn of Plenty

92 Trident of the Titans

5
Rune of Flame

86 Unicorn Horn Bow

4
Sextant of the Sea Elves

10 Wand of (Random Spell)

3
Shackles of the Last Man

Skull of Markal

83 Special (unable to be equipped)


Tarot Deck Tear of Asha

87 53

Freyda(1)

72

Note 1: this "artifact" is the portrait of the Haven campaign heroine Freyda, daughter of
Godric, as seen through the cut-out 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.

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.

Changing Hero Stats


For example:
@ChangeHeroStat("Heam", STAT_SPELL_POWER, 15);
OR @ChangeHeroStat("Heam", 3, 15);
...adds 15 to the Spell Power of the Sylvan campaign hero Findan.

Note: It used to set the value to 15, not add 15, prior to the 1.1 patch.

So, the code is:


@ChangeHeroStat("Name", STAT_NAME, #);
OR @ChangeHeroStat("Name", #, #);
The other stats you can edit are (with their numerical equivalents for the two # code variant):

Hero Stats Explicit code # Code variant

Hero Statistics

Experience STAT_EXPERIENCE 0
Hero Stats Explicit code # Code variant

Attack STAT_ATTACK
1

Defense(1) STAT_DEFENCE 2

Spell Power STAT_SPELL_POWER 3

Knowledge STAT_KNOWLEDGE 4

Luck STAT_LUCK 5

Morale STAT_MORALE 6

Movement Points(2) STAT_MOVE_POINTS 7

Mana Points(2) STAT_MANA_POINTS 8

Maximum Movement Points - 9

Note 1: yes, it's STAT_DEFENCE with a capital C.

Note 2: even by modifying your Move Points (or Mana Points) to something like 9999, it
will only be filled up to max. You will only be able to travel as far as your hero can normally
travel before you're empty again. To travel further, you'll have to input the command again,
the quickest way being the up arrow key, which cycles through your most recent commands
in the console.

Also, to effectively use this code, you will likely have to refer to the Hero Names Chart.

Clearing Resources (disabled in 1.2)


clear_money
Who knows? It may come in handy...or not. All your resources are set to 0.

Adding Gold Only (disabled in 1.2)


add_gold (#)
Note: Your current gold is set to this value, but all your other resources = 0.

Adding Gold and Resources (disabled in 1.2)


add_money
This sets all your resources to 100, and your gold to 100 000.

Note: This does not add to your total. If you have more than 100 resources and 100 000 gold,
the quantities are lowered to this amount.

Adding Specific Gold and Resources


@SetPlayerResource(#, 0-6, #);
This sets one specific type of resource for a specified player to reflect your given value.

For example:
@SetPlayerResource(1, 2, 50);
...gives red player 50 mercury.

The first # variable determines whose resources you are modifying (see the list of players
codes below).
The 0-6 variable corresponds to the type of resource you want to set (see the list of resources
codes below).
The last # variable is your given amount — however much wood, ore, mercury, crystal, sulfur,
gems, or gold you want.

In single player scenarios and campaign missions, you are always PLAYER_1, regardless of
colour. Here is how the colours correspond to player numbers in the game, for your single
player, custom games:
Red 1
Blue 2
Green 3
Yellow 4
Orange 5
Teal 6
Purple 7
Brown 8
Here are the resources codes in the game:
Wood 0
Ore 1
Mercury 2
Crystal 3
Sulfur 4
Gems 5
Gold 6

Seeing Movement Points


The following command has been disabled in version 1.2, but there is a workaround.
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:
@print(GetHeroStat("Name", STAT_MOVE_POINTS));
OR @print(GetHeroStat("Name", 7));
Revealing the Map
For example:
@OpenCircleFog(0, 0, 0, 9999, PLAYER_1);
...reveals the above ground map for red player in a custom, single player game that
is not a scenario. In single player scenarios and campaign missions, you are always
PLAYER_1, regardless of colour.
@OpenCircleFog(0, 0, 1, 9999, PLAYER_1);
...reveals the underground map for PLAYER_1—the changed variable is the last of three 0s.
Here is how the colours correspond to player numbers in the game, for your single player,
custom games:
Red 1
Blue 2
Green 3
Yellow 4
Orange 5
Teal 6
Purple 7
Brown 8
So, the code is:
@OpenCircleFog(0, 0, 0 or 1, 9999, PLAYER_#);
Instant Win and Lose
@Win()
@Loose()
These are self-explanatory, and no, it's not a typo--it is indeed spelled "Loose."

Hero Names Chart


Again, it's not as easy as it looks...it's the same situation as some of the spell names: some
in-game names shown by your character do not correspond to how the game's scripting
identifies them. For example, sure your lady-wizard is Nur in-game, but the game recognizes
her as Astral (a former wizard of the previous HoMM games).

You know You know


your hero as... your hero as...

What you input for What you input for


the name parameter the name parameter

Academy Dungeon

Cyrus Agbeth

Cyrus Almegir

Faiz Eruina

Faiz Eruina

Galib Kythra

Tan Menel

Havez Lethos
Havez Dalom

Jhora Raelag

Sufi Raelag

Maahir Raelag

Maahir Raelag_A1

Narxes Ranleth

Razzak Ferigl

Nathir Segref

Nur Segref

Nur Shadya

Astral Kelodin

Razzak Sinitar

Isher Inagost

Temkhan Sorgal

Timerkhan Ferigl

Zehir Thralsai

Zehir Thralsai

Vayshan

Ohtarig

Haven Ylaya
Alaric Shadwyn

Alaric
Yrbeth

Andreas Almegir

RedHeavenHero01
Yrwanna

Benedikt Urunir

RedHeavenHero04

Bertrand

RedHeavenHero05
Inferno

Dougal
Agrael
Orrin
Agrael

Duncan
Alastor
Duncan
Efion

Ellaine
Biara
Nathaniel
Biara

Freyda
Deleb
Axel
Deleb

Freyda
Erasial
Freyda
Erasial

Gabrielle
Grawl
RedHeavenHero06
Calid
Giar Grok

Giar Grok

Glen Guarg

Glen Guarg

Godric Jezebeth

Godric Oddrema

Irina Marbas

Ving Marder

Isabel Nebiros

Isabell Jazaz

Isabel Nymus

Isabell_A1 Nymus

Klaus Orlando

Sarge Orlando

Laszlo

Mardigo

Laszlo Necropolis

Laszlo
Arantir

Lorenzo Arantir

RedHeavenHero02
Deirdre
Maeve Nemor

Maeve
Giovanni

Nicolai Giovanni

Nicolai
Kaspar

Orlando Gles

Orlando
Lucretia

Ornella Tamika

Ornella
Markal

Rutger Berein

Brem
Naadir

Valeria Muscip

RedHeavenHero03
Ornella

Vittorio OrnellaNecro

Christian
Orson

Straker

Raven

Sylvan Effig

Alaron Vladimir

Ildar Pelt

Anwen Zoltan
Metlirn Aberrar

Dirael

Diraya

Ergar Stronghold

Ergar
Garuna

Findan Hero3

Heam
Gorshak

Gilraen Hero4

Gillion
Gotai

Ossir Gottai

Ossir
Haggash

Talanar Hero7

Nadaur
Kilghan

Tieru Hero9

Linaas
Kragh

Vinrael Hero1

Elleshar
Kujin

Wyngaal Kujin

Linaas
Kunyak

Ylthin Hero4
Itil Quroq

Quroq

Shak'Karukat

Hero6
Fortress

Telsek
Brand
Hero8
Brand

Urghat
Ebba
Hero2
Bersy

Erling

Egil

Hangvul

Hangvul

Helmar

Ottar

Inga

Una

Ingvar

Ingvar

Karli

Skeggy
King Tolghar

KingTolghar

Rolf

Rolf

Svea

Vegeyr

Wulfstan

Wulfstan

You might also like