Jump to content


dArCReAvEr

Member Since 23 Oct 2008
Offline Last Active Dec 13 2024 07:01 PM

Topics I've Started

Formations

25 January 2023 - 11:54 PM

Hello again,

 

another question that I couldn't figure out properly yet:

 

I  tried this:

 

- added an object upgrade unlock to level 2 experiencelevel.ini for the respective rank:

(code only contains the relevant infos)

ExperienceLevel    Level2
    ShowLevelUpTint                        =    Yes    
    Rank                            =    2
    Upgrades                     =         Upgrade_name
    LevelUpTintColor                    =    R:255 G:255    B:255
    LevelUpTintPreColorTime                    =    500    
    LevelUpTintPostColorTime                =    3000
    LevelUpTintSustainColorTime                =    500    
    EmotionType                        =    CHEER
    SelectionDecal
        Texture                        =    decal_I_level2
        Texture2                    =    decal_evil_CO
        Style                        =    SHADOW_MERGE_DECAL
        OpacityMin                    =    80%
        OpacityMax                    =    100%
        MinRadius                    =    HORDE_DECAL_MIN_RADIUS
        MaxRadius                    =    200    
        MaxSelectedUnits                =    40
    End    

- added a requirement to the formation button:

CommandButton Command_ToggleFormation
    Command            = HORDE_TOGGLE_FORMATION 
    Options            = TOGGLE_IMAGE_ON_FORMATION OK_FOR_MULTI_SELECT NEED_UPGRADE
    ButtonImage             = UCFormation_Line UCFormation_Loose
    ButtonBorderType        = ACTION ; Identifier for the User as to what kind of button this is
...
     NeededUpgrade        = Upgrade_name
    InPalantir        = Yes
    DoubleClick        = Yes
    UnitSpecificSound       = 
End

However the formation is activated for all units when 1 unit has reached level 2.

Question is how I can change it so it is activated only for the specific unit that has level 2.

 

I also tried to just put in the generic banner carrier upgrade into the "needed_upgrade" field but that didn't have the desired effect either. It only globally unlocked the formation when I tech banners, just like with SoG in bfme 2.

Someone can enlighten me if and how that issue is fixable?
 

Greetings