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