Jump to content


Photo

Formations


Best Answer Miraak5, 10 February 2023 - 05:21 PM

You use the NEED_UPGRADE like for the real button
but since the commandset will be changed when they are upgraded it will not matter

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 dArCReAvEr

dArCReAvEr
  • Members
  • 26 posts

Posted 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


Edited by dArCReAvEr, 25 January 2023 - 11:56 PM.


#2 Miraak5

Miraak5

    title available

  • Members
  • 389 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 26 January 2023 - 03:15 AM

You need to create a fake toggle formation button that is disabled and won't do anything
then add a code to change the commandset of your horde when you get your upgrade

and put the real toggle formation button in that new commandset


He was the first...


#3 dArCReAvEr

dArCReAvEr
  • Members
  • 26 posts

Posted 08 February 2023 - 07:17 PM

Thanks, it worked. Only question left: how do I grey out the fake ability icon so it looks disabled?



#4 Miraak5

Miraak5

    title available

  • Members
  • 389 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 10 February 2023 - 05:21 PM   Best Answer

You use the NEED_UPGRADE like for the real button
but since the commandset will be changed when they are upgraded it will not matter


Edited by Miraak5, 10 February 2023 - 05:21 PM.

He was the first...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users