The 3rd Age

BFME II: Deluxe Edition

BFME II: Deluxe Edition

Fixing problems with BFME 2 and giving it more depth.

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: 10428
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
--- The First Step ---

Before we do anything, we need to know what kind of power we are working with.

Open Eomer.ini and search for "PASSIVE OUTLAW LEADERSHIP".
In our case, the name is a dead giveaway, but other powers aren't always that predictable.

You will find the following code:
              
Code
;;; PASSIVE OUTLAW LEADERSHIP;;;
    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership2
        SpecialPowerTemplate = SpecialAbilityFakeLeadership2
        TriggeredBy = Upgrade_EomerOutlawLeader
    End
    Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate2
        SpecialPowerTemplate     = SpecialAbilityFakeLeadership2
        UpdateModuleStartsAttack = No
        StartsPaused = Yes
    End    
    Behavior = AttributeModifierAuraUpdate ModuleTag_Leadership2
        StartsActive    = No;If no, requires upgrade to turn on.
        BonusName        = EomerPassiveOutlawLeadership
        TriggeredBy        = Upgrade_EomerOutlawLeader
        RefreshDelay    = 2000
        Range            = 200
        AllowSelf        = Yes
        ObjectFilter    = ANY +CAVALRY +INFANTRY -STRUCTURE -BASE_FOUNDATION -DOZER
    End    


As you can see, this is a plain aura ability. It generates cash for each kill.


Next page: Copying the core of the ability

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

 
20:12:11