The 3rd Age

The Elven Alliance

The Elven Alliance

Adding a completely new Elven faction with unique units to the game

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!


Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Converting a normal power into a CaH power

Avatar of Solinx


Category: Code
Level: Intermediate
Created: Saturday March 24, 2007 - 18:17
Updated: Saturday June 27, 2009 - 18:57
Views: 9640
Summary: This guide will step by step show you how to convert a normal power into a CaH power


Staff says


Members say




8 votes

Page 1 2 3 4 5 6 7 8
--- Exceptions ---

As I said before, this is a simple example and there are quite a few exceptions to the rule.
(For now) I won't go into weaponsets or abilities based on special weapons. These require additional editing in a few other parts of the CaH files.

For the stealth exception we need to make an additional edit to createahero.ini.

As a start, find "Create-A-Hero Stealth And Camouflage Updates".
All stealth powers come with either a stealth of invisibility module.
As you can see, all these modules are listed in this ini file, instead of in
The other two behaviours (Enable & Unpause) remain in that file.

You'll also notice that the modules all have RequiredUpgrades and ForbiddenUpgrades.

In the required upgrades you put the class to get the upgrade.
This can only be one class! If you want multiple classes to have the same stealth ability, you will have to make multiple modules.
In addition you also place the same upgrade as named in the

In the ForbiddenUpgrades, you need to place "Upgrade_CreateAHeroMapMode", this is to prevent your hero from activating his stealth ability in the CaH creation menu.
Also, in case you are making a chain of stealth modes, you can add the upgrade names of all other stealth abilities in the chain here.

Among the additional parts for stealth abilities, you can also find an additional piece of code for the disguise ability. Some people had troubles modding that ability. Credit to Cahik for solving their problems.

Have fun :)



CahikFinding the Disguise power exception


Display order: Newest first

imreszabo2018 - Monday November 7, 2022 - 12:22

Nice tutorial.
Can you help me in something? I am new in the site and I want to create a new ability for create a hero archers. It would be a passive ability that increases the range and attack speed of the bow. I noticed that I can do it in weapon.ini and I tried creating a new weapon based on the CreateAHeroBasicRangedWeapon. As soon as the hero gets this new ability in game I want to update this CreateAHeroBasicRangedWeapon to my new weapon object . Is this even possible? Tried it in but the program don't really accept anything

Berethomb - Thursday November 24, 2011 - 21:15

Help! I can't paste anything into! What shall I do?

King Komodo3 - Sunday February 13, 2011 - 13:28

I need some help with my project, I'm making a goblin create a hero, I have him in the Servant of sauron area and I need to add Mount/Dismount Scorpion & Toggle Weapon. If you could help me that would be great (I have a forum file in the BFME2/RTWK section the goblin one talking about adding the Goblin Fiend)

lilkaka - Friday October 16, 2009 - 11:24

Thanks for the guide. But do you know how to convert the special power of Mount/Dismount into the power of Elven CaH Archer?

Elaryan - Thursday January 15, 2009 - 8:54

m...i'll do it with the balrog's fire whip!

Go to top


"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."