Jump to content


Photo

Stence buttons for special powers

bfme 2 rotwk stance powers

  • Please log in to reply
3 replies to this topic

#1 Suchar

Suchar

    Suchy

  • Members
  • 100 posts
  • Location:Poland
  • Projects:PRO MOD
  •  Lonely coder

Posted 27 December 2014 - 10:51 AM

Hi all!

Is it possible to use stances menu to put there special powers? 

Not instead of stances, but to have second similar menu.

As we can see in commandbutton.ini:

CommandButton Command_ToggleStance
  Command			= TOGGLE_STANCE
  Options			= OK_FOR_MULTI_SELECT
  TextLabel			= CONTROLBAR:ToggleStanceHoldGround CONTROLBAR:ToggleStanceBattle CONTROLBAR:ToggleStanceAggressive
  DescriptLabel			= CONTROLBAR:ToolTipToggleStanceHoldGround CONTROLBAR:ToolTipToggleStanceBattle CONTROLBAR:ToolTipToggleStanceAggressive
  ButtonImage			= UCCommon_HoldGroundStance UCCommon_BattleStance UCCommon_AggresiveStance
  Stances			= HoldGround Battle Aggressive
  InPalantir			= Yes
  UnitSpecificSound 		= Gui_StanceHoldGround Gui_StanceBattle Gui_StanceAttack
End

"Stances" part is reference to:

CommandButton Command_SetStanceBattle
  Command       	= SET_STANCE
  ButtonImage   	= UCCommon_BattleStance
  Stances		= Battle
  InPalantir		= No
  UnitSpecificSound 	= Gui_StanceBattle
End 

So, I should add more stances, how to do that?



#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 06 January 2015 - 02:10 PM

Don't think it works like that, as far as i know you can't change around the stances with special powers...

Not entirely sure how you can add new stances.. :p

I'd say search all the ini files for names of the stances nd such :p


Ridder Geel

#3 Suchar

Suchar

    Suchy

  • Members
  • 100 posts
  • Location:Poland
  • Projects:PRO MOD
  •  Lonely coder

Posted 06 January 2015 - 04:51 PM

stances.ini only...

StanceTemplate FighterHorde
    Stance Aggressive
        AttributeModifier   FighterHordeStanceAggressive
        MeleeBehavior = Amoeba
        End
    End
    Stance HoldGround
        AttributeModifier   FighterHordeStanceHoldGround
        MeleeBehavior = Amoeba
        End
    End
    Stance HoldGroundMoving
        AttributeModifier   FighterHordeStanceHoldGround
    End
End

New stance gives error...

Hardlycoded?


Edited by Suchar, 06 January 2015 - 04:52 PM.


#4 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 07 January 2015 - 07:36 PM

Stances are hardcoded, I believe. That is to say, you can only have 3 of any one horde. You can change the names, buttons, attributes, whatever for them though. So you cannot add HoldGroundMoving, but you can use the Battle stance for the same purpose. Just switch out the commandbutton labels, and the attributes on the "new" attribute of yours. If you want an "HoldGroundMoving" stance, which is simply a "+Armor -Speed" kind of stance, then it's quite easy to do. Just make a new attributemodifier in attributemodifier.ini with the ARMOR and SPEED things you want, and you could also make the units use a different modelconditionset, so they'd use different animations.

 

Btw, I haven't got the stances.ini in front of me, so I could remember things wrong. Never did much work with stances, except for in TPW.

 

It is not possible to make anything else have the 'pop-up' you get when clicking on the Stance button. I believe it's the "Command = TOGGLE_STANCE" that makes it hardcoded for this specific purpose.


T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users