The 3rd Age

RC Mod

RC Mod

This Mod makes many changes to the original game, adds a whole new BFME 1 mode and much more.

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 Create A Hero powers to normal powers

Avatar of Solinx

Solinx

Category: Code
Level: Intermediate
Created: Saturday March 24, 2007 - 20:38
Updated: Saturday June 27, 2009 - 18:57
Views: 9647
Summary: A step by step guide to turn a CaH power into a normal power, useable by normal units.

Rating

Staff says

3.7

Members say

4.0

Average

3.8/5.0

6 votes

Page 1 2 3 4 5 6
--- commandbutton and commandset ---

We start with commandbutton.ini

Search this:
              
Code

//------------------- Create A Hero ----------------------------
//--------------------------------------------------------------
CommandButton Command_CreateAHero_SummonFamiliar_Level3
    Command         = SPECIAL_POWER
    SpecialPower     = SpecialAbilityCreateAHeroSummonFamiliar_Level3
    TextLabel     = CONTROLBAR:CAH_SummonFamiliar_Level3
    ButtonImage     = CAHSummonFamiliar
    Options         = NEED_TARGET_POS CONTEXTMODE_COMMAND
    RadiusCursorType = FamiliarRadiusCursor
    CursorName     = Bombard
    InvalidCursorName = GenericInvalid    
    ButtonBorderType = ACTION    
    DescriptLabel     = CONTROLBAR:TooltipCAH_SummonFamiliar_Level3
    InPalantir     = Yes
//    UnitSpecificSound = AragornVoiceSummonOathbreakers
//    AutoAbility     = Yes //
//    TriggerWhenReady = Yes //

    CreateAHeroUIAllowableUpgrades                =    Upgrade_CreateAHero_ClassArcher
    CreateAHeroUIMinimumLevel                    =    7
    CreateAHeroUIPrerequisiteButtonName    = Command_CreateAHero_SummonFamiliar_Level2
End

This is the commandbutton for the CAH. We will copy it and use our own values, changing it into this:
              
Code

//------------------- Create A Hero ----------------------------
//--------------------------------------------------------------
CommandButton Command_Normal_SummonFamiliar_Level3
    Command         = SPECIAL_POWER
    SpecialPower     = SpecialAbilityNormalSummonFamiliar_Level3
    TextLabel     = CONTROLBAR:CAH_SummonFamiliar_Level3
    ButtonImage     = CAHSummonFamiliar
    Options         = NEED_TARGET_POS CONTEXTMODE_COMMAND
    RadiusCursorType = FamiliarRadiusCursor
    CursorName     = Bombard
    InvalidCursorName = GenericInvalid    
    ButtonBorderType = ACTION    
    DescriptLabel     = CONTROLBAR:TooltipCAH_SummonFamiliar_Level3
    InPalantir         = Yes
//    UnitSpecificSound = AragornVoiceSummonOathbreakers
//    AutoAbility         = Yes //
//    TriggerWhenReady = Yes //

End

I changed the name of the behavior by replacing CreateAHero with Normal and did the same replacement at SpecialPower.
The last three lines are only used in the CAH power menu and thus not needed for a normal hero.

The last step is to have the button in the command list, which is done in Commandset.ini

Find this:
              
Code

CommandSet ElvenArwenCommandSet
    1    = Command_ToggleStance
    2    = Command_MountHorseArwen
    3    = Command_ArwenElvenGrace    
    4    = Command_ArwenFlood
    12    = Command_CaptureBuilding
    13    = Command_AttackMove
    14    = Command_Stop
End

We are going to add the new power between ElvenGrace and Flood, so it will look like this:
              
Code

CommandSet ElvenArwenCommandSet
    1    = Command_ToggleStance
    2    = Command_MountHorseArwen
    3    = Command_ArwenElvenGrace    
    4    = Command_Normal_SummonFamiliar_Level3
    5    = Command_ArwenFlood
    12    = Command_CaptureBuilding
    13    = Command_AttackMove
    14    = Command_Stop
End

After this, you are ready to test your new ability.

Hope it helped you. :)

Solinx

Comments

Display order: Newest first

clank234 - Saturday November 27, 2010 - 16:38

it works perfectly, thx Solinx :);) i gave 5/5

sceluk - Saturday November 22, 2008 - 3:34

very good tutorial
I was wondering if you could pls post another one about converting SCIENCE powers to normal powers because i'ver been trying to add Sunflare and it's been giving me a lot of trouble.

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

 
22:11:47