The 3rd Age

From Book to Game

From Book to Game

Lord of the Rings , Quenta Silmarillion, Dunedain, The Hobbit and Westernesse

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

Turin's More Ability System! With Weapon Toggle

Tutorial for Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of Elric

Elric

Category: Code
Level: Intermediate
Created: Wednesday January 12, 2011 - 12:45
Updated: Monday January 24, 2011 - 8:48
Views: 7275
Summary: Add On For Turin's More Ability System...

Rating

Staff says

4.0

Members say

5.0

Average

4.5/5.0

2 votes

Page 1 2 3


>>>>>>>>>>>>>>ALL BY TURIN IN HIS ARTICLE, I HAVE NO CREDIT FOR THIS PIECE<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>ALL BY TURIN IN HIS ARTICLE, I HAVE NO CREDIT FOR THIS PIECE<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>ALL BY TURIN IN HIS ARTICLE, I HAVE NO CREDIT FOR THIS PIECE<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>ALL BY TURIN IN HIS ARTICLE, I HAVE NO CREDIT FOR THIS PIECE<<<<<<<<<<<<<<<<<<<


Hi,

I think that every Modder wanted to give a hero more then the 5 Palantir Abilitys.
I have found a method, how you can give your hero more then 5 abilitys!
I call it Commandsetswitching.
Its working with new ModelConditionStates and some Behaviors.
Now i am going to tell you how it works on Elrond:

At first you had to add this to your Elrond:


              
Code

ModelConditionState = WEAPONSET_TOGGLE_1
Model = RUElrond_SKN
End

ModelConditionState = WEAPONSET_TOGGLE_2
Model = RUElrond_SKN
End



You need this ModelConditionStates to switch the Commandsets.

Now the new Behaviors, add this:



              
Code

Behavior = MonitorConditionUpdate ModuleTag_CommandSetNew
ModelConditionFlags = WEAPONSET_TOGGLE_1
ModelConditionCommandSet = Elrond2CommandSet
End

Behavior = MonitorConditionUpdate ModuleTag_CommandSetOld
ModelConditionFlags = WEAPONSET_TOGGLE_2
ModelConditionCommandSet = ElrondCommandSet
End


Now are we going to the CommandSet.ini
We had to split the old Commandset, i had split it so:

              
Code

CommandSet ElrondCommandSet
1 = Command_ToggleStance
2 = Command_SpecialAbilityElrondElvenGrace
3 = Command_ElrondFakeLeadership
4 = Command_SpecialAbilityElrondFarsight
5 = Command_SpecialPowerSpawnWhirlwind
6 = Command_CommandsetOld
12 = Command_CaptureBuilding
13 = Command_AttackMove
14 = Command_Stop
16 = Command_SetStanceBattle
17 = Command_SetStanceAggressive
18 = Command_SetStanceHoldGround
End

CommandSet Elrond2CommandSet
1 = Command_ToggleStance
2 = Command_SpecialAbilityElrondRestoration
3 = Command_CommandsetOld
12 = Command_CaptureBuilding
13 = Command_AttackMove
14 = Command_Stop
16 = Command_SetStanceBattle
17 = Command_SetStanceAggressive
18 = Command_SetStanceHoldGround
End


Now the Commandbutton.ini:


              
Code

CommandButton Command_CommandsetOld
Command = TOGGLE_WEAPONSET
FlagsUsedForToggle = WEAPONSET_TOGGLE_2
TextLabel = CONTROLBAR:OldCommandset
ButtonImage = UCCommon_BackArrow
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipOldCommandset
InPalantir = Yes
End

CommandButton Command_CommandsetNew
Command = TOGGLE_WEAPONSET
FlagsUsedForToggle = WEAPONSET_TOGGLE_1
TextLabel = CONTROLBAR:NewCommandset
ButtonImage = UCCommon_BackArrow
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipNewCommandset
InPalantir = Yes
End


That was it! Now you can add more Abilitys to the Elrond2CommandSet.
With Heroes, who have already a WEAPONSET_TOGGLE or a mount is it a little bit complicated.
I am going to write a tutorial for that later.

Hope that helped, Turin


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Weapon Toggle Next Page

Links / Downloads

 HitsAdded
Turin's More Ability System ~Main Topic~1276January 12, 2011 - 13:26

Comments

Display order: Newest first

Elric - Sunday January 23, 2011 - 19:33

Done

Spartan184 - Saturday January 22, 2011 - 20:14

You should add Turin in the credits for his part in this ;)

Elric - Friday January 14, 2011 - 15:27

Its intermediate because Turin's Main topic Is. I Forgot To Edit That Out Sorry... :p and u are in it because you teach me it.

Imdrar - Friday January 14, 2011 - 4:08

"This Is very Simple." - Then why does your article pretend to be "Intermediate"?
And how the hell am I a credit of this?!

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

 
7:53:36