[an error occurred while processing this directive]
Cheat Pages Navigator
1. Introduction 2. Adding Skills 3. Adding Creatures 4. Adding War Machines 5. Adding Spells 6. Adding Artifacts to Heroes 7. Hero Names Chart 8. Miscellaneous Modifications

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 TravelSPELL_DIMENSION_DOOR50
Summon CreaturesSPELL_SUMMON_CREATURES234
Town PortalSPELL_TOWN_PORTAL51
Vessel of ShalassaSPELL_SUMMON_BOAT49
   
Barbarian Warcries
Ralling CrySPELL_WARCRY_RALLING_CRY290
Call of BloodSPELL_WARCRY_CALL_OF_BLOOD291
Word of the ChiefSPELL_WARCRY_WORD_OF_THE_CHIEF292
Fear My RoarSPELL_WARCRY_FEAR_MY_ROAR293
BattlecrySPELL_WARCRY_BATTLECRY294
Horde's AngerSPELL_WARCRY_SHOUT_OF_MANY295
   
Dark Magic
BlindnessSPELL_BLIND19
ConfusionSPELL_FORGETFULNESS17
Curse of the NetherworldSPELL_UNHOLY_WORD21
DecaySPELL_PLAGUE14
FrenzySPELL_BERSERK18
Puppet MasterSPELL_HYPNOTIZE20
SlowSPELL_SLOW12
SorrowSPELL_SORROW277
SufferingSPELL_WEAKNESS15
VampirismSPELL_VAMPIRISM278
VulnerabilitySPELL_DISRUPTING_RAY13
WeaknessSPELL_CURSE11
   
Mass ConfusionSPELL_MASS_FORGETFULNESS213
Mass DecaySPELL_MASS_PLAGUE214
Mass SlowSPELL_MASS_SLOW212
Mass SufferingSPELL_MASS_WEAKNESS215
Mass VulnerabilitySPELL_MASS_DISRUPTING_RAY211
Mass WeaknessSPELL_MASS_CURSE210
   
Destructive Magic
ArmageddonSPELL_ARMAGEDDON10
Chain LightningSPELL_CHAIN_LIGHTNING7
Circle of WinterSPELL_FROST_RING6
Deep FreezeSPELL_DEEP_FREEZE279
Eldritch ArrowSPELL_MAGIC_ARROW1
FireballSPELL_FIREBALL5
Ice BoltSPELL_ICE_BOLT4
ImplosionSPELL_IMPLOSION9
Lightning BoltSPELL_LIGHTNING_BOLT3
Meteor ShowerSPELL_METEOR_SHOWER8
Stone SpikesSPELL_STONE_SPIKES237
   
Empowered ArmageddonSPELL_EMPOWERED_ARMAGEDDON232
Empowered Chain LightningSPELL_EMPOWERED_CHAIN_LIGHTNING229
Empowered Eldritch ArrowSPELL_EMPOWERED_MAGIC_ARROW223
Empowered FireballSPELL_EMPOWERED_FIREBALL227
Empowered Ice BoltSPELL_EMPOWERED_ICE_BOLT226
Empowered ImplosionSPELL_EMPOWERED_IMPLOSION231
Empowered Lightning BoltSPELL_EMPOWERED_LIGHTNING_BOLT225
Empowered Meteor ShowerSPELL_EMPOWERED_METEOR_SHOWER230
Empowered Stone SpikesSPELL_EMPOWERED_STONE_SPIKES233
Empowered Winter RingSPELL_EMPOWERED_FROST_RING228
   
Light Magic
Arcane ArmorSPELL_CELESTIAL_SHIELD34
CleansingSPELL_DISPEL26
Deflect MissileSPELL_DEFLECT_ARROWS29
Divine StrengthSPELL_BLESS23
Divine VengeanceSPELL_DIVINE_VENGEANCE281
EnduranceSPELL_STONESKIN25
HasteSPELL_HASTE24
Magical ImmunitySPELL_ANTI_MAGIC31
RegenerationSPELL_REGENERATION280
ResurrectionSPELL_RESURRECT48
Righteous MightSPELL_BLOODLUST28
TeleportationSPELL_TELEPORT32
Word of LightSPELL_HOLY_WORD35
   
Mass CleansingSPELL_MASS_DISPEL217
Mass Deflect MissileSPELL_MASS_DEFLECT_ARROWS219
Mass Divine StrengthSPELL_MASS_BLESS216
Mass EnduranceSPELL_MASS_STONESKIN218
Mass HasteSPELL_MASS_HASTE221
Mass Righteous MightSPELL_MASS_BLOODLUST220
   
Runic Magic
Rune of Battle Rage255
Rune of Berserking250
Rune of Charge249
Rune of Dragonform258
Rune of Elemental Immunity253
Rune of Etherealness256
Rune of Exorcism252
Rune of Magic Control251
Rune of Resurrection257
Rune of Thunderclap254
   
Summoning Magic
Arcane CrystalSPELL_ARCANE_CRYSTAL282
Blade BarrierSPELL_BLADE_BARRIER284
Conjure PhoenixSPELL_CONJURE_PHOENIX235
EarthquakeSPELL_EARTHQUAKE41
Fire TrapSPELL_LAND_MINE38
FirewallSPELL_FIREWALL236
Fist of WrathSPELL_MAGIC_FIST2
Phantom ForcesSPELL_PHANTOM40
Raise DeadSPELL_ANIMATE_DEAD42
Summon ElementalsSPELL_SUMMON_ELEMENTALS43
Summon HiveSPELL_SUMMON_HIVE283
Wasp SwarmSPELL_WASP_SWARM39
   
Empowered Fist of WrathSPELL_EMPOWERED_MAGIC_FIST224
   

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.


Thanks to Curio for creating these pages!

[an error occurred while processing this directive]