Hommtoe Help
Hommtoe Help
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.
For example:
@AddHeroCreatures("Pelt", CREATURE_BONE_DRAGON, 22);
OR @AddHeroCreatures("Pelt", 41, 22);
...gives the Necromancer hero Vladimir 22 bone dragons.
Academy
Gremlin CREATURE_GREMLIN 57
Mage CREATURE_MAGI 63
Djinn CREATURE_GENIE 65
Colossus CREATURE_GIANT 69
Titan CREATURE_TITAN 70
Dungeon
Scout CREATURE_SCOUT 71
Assassin CREATURE_ASSASSIN
72
Minotaur CREATURE_MINOTAUR 75
Hydra CREATURE_HYDRA 79
Fortress
Defender CREATURE_DEFENDER 92
Shieldguard CREATURE_STOUT_DEFENDER
93
Spearwielder CREATURE_AXE_FIGHTER 94
Skirmisher CREATURE_AXE_THROWER 95
Brawler CREATURE_BROWLER 98
Berserker CREATURE_BERSERKER 99
Harpooner CREATURE_HARPOONER
167
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
Priest CREATURE_PRIEST 9
Inquisitor CREATURE_CLERIC 10
Cavalier CREATURE_CAVALIER 11
Paladin CREATURE_PALADIN 12
Angels CREATURE_ANGEL 13
Archangel CREATURE_ARCHANGEL 14
Crossbowman CREATURE_LONGBOWMAN
107
Inferno
Imp CREATURE_FAMILIAR 15
Familiar CREATURE_IMP
16
Cerberus CREATURE_CERBERI 20
Succubus CREATURE_SUCCUBUS 21
Nightmare CREATURE_FRIGHTFUL_NIGHTMARE 24
Devil CREATURE_DEVIL 27
Necropolis
Skeleton CREATURE_SKELETON 29
Zombie CREATURE_WALKING_DEAD 31
Ghost CREATURE_MANES 33
Spectre CREATURE_GHOST 34
Vampire CREATURE_VAMPIRE 35
Lich CREATURE_LICH 37
Archlich CREATURE_DEMILICH 38
Wight CREATURE_WIGHT 39
Wraith CREATURE_WRAITH 40
Creature name in-game Code constant Numeric code
Stronghold
Sylvan
Pixie CREATURE_PIXIE 43
Sprite CREATURE_SPRITE
44
Hunter CREATURE_WOOD_ELF 47
Druid CREATURE_DRUID 49
Unicorn CREATURE_UNICORN 51
Treant CREATURE_TREANT 53
Neutrals
Phoenix CREATURE_PHOENIX 91
Creature name in-game Code constant Numeric code
Manticore CREATURE_MANTICORE
115
Note: to effectively use this code, it is essential to refer to the Hero Names Chart, and to the
following Creature Names / Numbers Chart.
War Machines
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.
For example:
@TeachHeroSpell("Astral", SPELL_HASTE);
OR @TeachHeroSpell("Astral", 24);
...gives the Academy hero Nur the spell Haste.
To properly use this, the chart in the next section is essential, as is the Hero Names Chart.
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:
Adventure Spells
Barbarian Warcries
Dark Magic
Blindness SPELL_BLIND 19
Confusion SPELL_FORGETFULNESS
17
Decay SPELL_PLAGUE 14
Frenzy SPELL_BERSERK 18
Slow SPELL_SLOW 12
Suffering SPELL_WEAKNESS 15
Vulnerability SPELL_DISRUPTING_RAY 13
Weakness SPELL_CURSE
11
Destructive Magic
Armageddon SPELL_ARMAGEDDON 10
Fireball SPELL_FIREBALL
5
Implosion SPELL_IMPLOSION 9
You want to learn... Code constant Numeric code
Light Magic
Cleansing SPELL_DISPEL
26
Endurance SPELL_STONESKIN 25
You want to learn... Code constant Numeric code
Haste SPELL_HASTE
24
Resurrection SPELL_RESURRECT 48
Teleportation SPELL_TELEPORT 32
Runic Magic
Rune of Berserking
250
Summoning Magic
Earthquake SPELL_EARTHQUAKE
41
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.
54 71
27 40
Boots of the Open Road Evercold Icicle
26 18
24 17
38 16
61 19
49 67
68 15
Windstrider Boots
57
Ring slots
Cursed Waistband
Cloak slot 63
28 42
31 93
33 65
62 59
39 20
32 91
29 47
69 22
95 23
30 73
21
Armor of the Forgotten Hero
13
Armor of Valor
56 Shield slot
14 94
48 37
36 52
44 58
82 75
35 9
64 51
Tome of Dark Magic
78
76
All-Seeing Crown
77
Crown of Leadership
79
Crown of Sar-Issus
46
41 Weapon slot
66 2
50 80
11 43
89 85
34 74
81
6
Four Leaf Clover
8 Staff of Sar-Issus
45
Golden Horseshoe
25 Sword of Might
1
Horn of Plenty
5
Rune of Flame
4
Sextant of the Sea Elves
3
Shackles of the Last Man
Skull of Markal
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.
Note: It used to set the value to 15, not add 15, prior to the 1.1 patch.
Hero Statistics
Experience STAT_EXPERIENCE 0
Hero Stats Explicit code # Code variant
Attack STAT_ATTACK
1
Defense(1) STAT_DEFENCE 2
Knowledge STAT_KNOWLEDGE 4
Luck STAT_LUCK 5
Morale STAT_MORALE 6
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.
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.
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
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."
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