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 |
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 |
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 |
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 | |
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.
You can discuss this guide and ask more about the cheats in the Heroes Community dedicated forum.
Thanks to Curio for creating these pages!