The 3rd Age

Cobra Mod

Cobra Mod

A mod for BFME2 that removes some restrictions to recreate huge epic battles from the films.

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

Solinx

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

Rating

Staff says

3.7

Members say

4.4

Average

4.1/5.0

8 votes

Page 1 2 3 4 5 6 7 8
--- Making a chain with the normal level 1 CaH leadership ---

With the three unique lines from the CommandButton.ini, we can also make a chain of abilities, like the dwarven Battlerage, which has 4 levels.

To make our new CaH an upgrade of the normal level 1 CaH leadership, we need to change the three lines into this:               
Code
CreateAHeroUIAllowableUpgrades    = Upgrade_CreateAHero_ClassHeroOfTheWest
CreateAHeroUIMinimumLevel        = 3
CreateAHeroUIPrerequisiteButtonName    = Command_CreateAHeroLeadership


As you can see, the first line stayed the same. It selects the main classes that are allowed to get this ability. You can add more than one class.
These are the possible inputs:
* Upgrade_CreateAHero_ClassArcher
* Upgrade_CreateAHero_ClassHeroOfTheWest
* Upgrade_CreateAHero_ClassIstariWizard
* Upgrade_CreateAHero_ClassDwarf
* Upgrade_CreateAHero_ClassCorruptedMan
* Upgrade_CreateAHero_ClassServantsOfSauron

It's pretty obvious which classes are which. ;)

The second line sets the minimum level that must be attained before you can select the power in the CaH creation menu.
Normal inputs are 1, 3, 7 or 10
It's quite likely that other inputs also work, but I never tried them.

The last line is the button name of the ability that our own ability is going to succeed.
If you search for "Command_CreateAHeroLeadership" in commandbutton.ini, you will find that this is the name of the normal level 1 CaH leadership.
When you create a chain of abilities, make sure that the level progression is possible.
First the abilities with the lowest minimum level requirement, then upward.
Also make sure that the chain isn't broken half way, because a class isn't allowed to get the middle ability.


Next page: Making our leadership an upgrade instead of a replacement

Credits

CahikFinding the Disguise power exception

Comments

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 createaheroweaponupgrades.inc but the program don't really accept anything

Berethomb - Thursday November 24, 2011 - 21:15

Help! I can't paste anything into createheropowers.inc! 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."

 
10:43:36