Jump to content


Photo

New Ability: Eagle Summoning Other Eagles for Help!

modding bfme1

Best Answer Miraak5, 20 March 2025 - 08:02 PM

You made a pretty basic error xd

look at your CommandButton SpecialPower = "SuperweaponSpawnOathbreakers" it should be "SuperpowerAdditionalEagles"

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 ElvenMist

ElvenMist
  • New Members
  • 4 posts

Posted 19 March 2025 - 10:18 AM

Hello there.

 

I'm very new to modding and I want to be able to add custom abilities to different heroes

 

but I'm having trouble and I'm stuck with what to do with new custom abilities to heroes. This is BFME1

 

Objective: I've created an Elven Gwaihir (giant eagle) that will be able to summon two other eagles (ability)! - this is an experiment

 

The problem: When I click on the ability it doesn't do anything. It doesn't show any cursor! It's clickable but doesn't do nothing! :(

 

This is the Youtube Link if you want to watch it: https://youtu.be/At85ddnA3dA

 

Here's the step by step procedure that I did to create this ability.

I followed this format to create the custom ability (summoning additional eagles) and button

 

Button.ini

CommandButton Command_SummonAddEgales
  Command           = SPECIAL_POWER
  SpecialPower      = SuperweaponSpawnOathbreakers
  TextLabel         = CONTROLBAR:SummonAddEgales
  ButtonImage       = SBGood_EagleAllies
  Options           = NEED_TARGET_POS CONTEXTMODE_COMMAND
  RadiusCursorType  = EAGLE_ALLIES
  CursorName        = Bombard
  InvalidCursorName = GenericInvalid  
  ButtonBorderType  = ACTION ; Identifier for the User as to what kind of button this is
  DescriptLabel     = CONTROLBAR:TooltipSummonAddEagles
  InPalantir        = Yes
End

 

 

CommandSet.ini

CommandSet ElvenGwaihirCommandSet    1 = Command_Guard
    2 = Command_SpawnMirkElves2
    3 = Command_SummonAddEgales
    13 = Command_AttackMove
    14 = Command_Stop
        15 = Command_Guard
End
 
ExperienceLevel.ini
 
;-----------------Elven Gwahir---------------
ExperienceLevel ElvenGwaihirLevel10
    TargetNames                     =      ElvenGwaihir
    RequiredExperience                 = 1
    ExperienceAward                        =    50
    Rank                               = 10
    Upgrades                     = Upgrade_ElvenAbility2 Upgrade_ElvenAbility3
    SelectionDecal
        Texture                        =    decal_hero_good    
        Style                        =    SHADOW_ALPHA_DECAL
        OpacityMin                    =    50%    
        OpacityMax                    =    100%
        MinRadius                    =    40 ;16
        MaxRadius                    =    200 ;16
        MaxSelectedUnits            =    40 ;1
    End    
End
 
 
ElvenGwaihir.ini - adding SpecialPower
 
    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_AddMoreEagle 
        SpecialPowerTemplate = SuperpowerAdditionalEagles
        TriggeredBy = Upgrade_ElvenAbility3
    End


    Behavior = OCLSpecialPower AdditionalEagleSupport
        SpecialPowerTemplate = SuperpowerAdditionalEagles
        OCL         = OCL_AdditionalEagles
        TriggerFX               = FX_HordeResurrection 
        CreateLocation          = USE_OWNER_OBJECT 
        StartsPaused            = Yes 
        SetModelCondition       = ModelConditionState:LEVELED 
        SetModelConditionTime   = 8.1
    End
 
Adding the OCL (Object Creation List)
 
ObjectCreationList OCL_AdditionalEagles
    CreateObject
        ObjectNames = GondorGwaihir
        Count = 2
        FadeTime = 5000
        IgnoreCommandPointLimit = Yes
        Disposition = LIKE_EXISTING
        Offset = X:15 Y:15 Z:15
    End
End
 
Special Power Ini
SpecialPower SuperpowerAdditionalEagles
    Enum = Special_Spawn_Oathbreakers
    ReloadTime = 10000
    PublicTimer = No
    InitiateAtLocationSound = SpellEagleAlliesSummon
    RadiusCursorRadius = 100.0
End
 
That's it! I've been stumpped for days! I can't solve it.
 
Thank you so much if you're going to answer I'm really not sure where to turn to!
 
 
 


#2 Miraak5

Miraak5

    title available

  • Members
  • 392 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 20 March 2025 - 08:02 PM   Best Answer

You made a pretty basic error xd

look at your CommandButton SpecialPower = "SuperweaponSpawnOathbreakers" it should be "SuperpowerAdditionalEagles"


He was the first...


#3 ElvenMist

ElvenMist
  • New Members
  • 4 posts

Posted 27 March 2025 - 03:52 AM

You made a pretty basic error xd

look at your CommandButton SpecialPower = "SuperweaponSpawnOathbreakers" it should be "SuperpowerAdditionalEagles"

 

IT WORKED!!!! Thanks so much.

 

It needs to consistent value haha. I'm still new to programming and modding.

 

This helped!!!  :thumbsuphappy:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users