[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 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 CartWAR_MACHINE_AMMO_CART4
BallistaWAR_MACHINE_BALLISTA1
CatapultWAR_MACHINE_CATAPULT2
First Aid TentWAR_MACHINE_FIRST_AID_TENT3
   

Note: obviously, adding a Catapult is not very useful since your heroes always have one, and the removing code doesn't work on it.


Thanks to Curio for creating these pages!

[an error occurred while processing this directive]