The 3rd Age

Echoes

Echoes

A BFME1 mod adding an elaborate Eriador faction 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

Solinx

Category: Code
Level: Intermediate
Created: Saturday March 24, 2007 - 18:17
Updated: Saturday June 27, 2009 - 18:57
Views: 10419
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 our leadership an upgrade instead of a replacement ---

Ok. With this code our outlaw leadership succeeds the standard leadership. However, the effect of the normal leadership will vanish as soon as the hero gets our ability.
To make our leadership a true upgrade, instead of a replacement, we need to modify attributemodifier.ini

Open the attributemodifier.ini.
Next we need to search for EomerPassiveOutlawLeadership. That will find you:               
Code
ModifierList EomerPassiveOutlawLeadership
    Category = WEAPON
    Modifier = BOUNTY_PERCENTAGE 100.0%    // Percentage of victim bounty value to build granted to slaying member's player.
    Duration = 2500                        // lasts for 2.5 seconds
End

Copy and paste this code to the bottom of the file.

The standard level 1 CaH leadership is in fact a generic leadership. Search for GenericHeroLeadership and you will find:               
Code
ModifierList GenericHeroLeadership
    Category                    = LEADERSHIP
    Modifier                    = EXPERIENCE 200%
    Modifier                    = ARMOR 50%
    Modifier                    = DAMAGE_MULT 150%        // Multiplicitive. Damage multiplied by this, will compound in multiple bonuses
    Duration                    = 3000
    FX                            = FX_GenericLeadership
    ReplaceInCategoryIfLongest    = Yes
    IgnoreIfAnticategoryActive    = Yes
End
Now we need to combine these two leaderships to create a new leadership.

I suggest this combination:               
Code
ModifierList CreateaHero_HotW_PassiveOutlawLeadership
    Category = WEAPON
    Modifier = BOUNTY_PERCENTAGE 100.0%    // Percentage of victim bounty value to build granted to slaying member's player.
    Modifier = EXPERIENCE 200%
    Modifier = ARMOR 50%
    Modifier = DAMAGE_MULT 150%        // Multiplicitive. Damage multiplied by this, will compound in multiple bonuses
    Duration = 2500                        // lasts for 2.5 seconds
    FX     = FX_GenericLeadership
End

That makes sure the leadership can't replace or be replaced (ie. the leadership bonus stacks with a normal leadership), nor can it be dispelled by another aura.
Also, take notice of the new name. All modifiers should be unique, so don't forget to change the name.

Another combination:               
Code
ModifierList CreateaHero_HotW_PassiveOutlawLeadership
    Category                    = LEADERSHIP
    Modifier                    = EXPERIENCE 200%
    Modifier                    = ARMOR 50%
    Modifier                    = DAMAGE_MULT 150%        // Multiplicitive. Damage multiplied by this, will compound in multiple bonuses
    Modifier                     = BOUNTY_PERCENTAGE 100.0%    // Percentage of victim bounty value to build granted to slaying member's player.
    Duration                    = 3000
    FX                        = FX_GenericLeadership
    ReplaceInCategoryIfLongest    = Yes
    IgnoreIfAnticategoryActive    = Yes
End
Here the upgraded leadership is still replaceable, can replace another or can dispelled by another aura.
It's only difference is the name, the addition of the bounty modifier and the duration.

last thing to do is to change the aura name in our aura module, so open createaheropowers.inc.
Search for ModuleTag_CaHOutlawLeadership, the name of our aura module.
And changing the BonusName into CreateaHero_HotW_PassiveOutlawLeadership.


--- Finished ---

That's it. For the Men of the West CaH class, our new leadership should be listed on the same row as the standard CaH power.
You can only select it at level 3 and when your hero get's it in-game, it will include the effects of the normal leadership in addition to the bounty leadership.


Next page: Exceptions

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."

 
23:01:38