The 3rd Age

Return of Shadow

Return of Shadow

A large scale mod that greatly expands the game.

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

Adding BladeMaster to another hero Tutorial

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

Avatar of GothmogtheOrc

GothmogtheOrc

Category: Code
Level: Beginner
Created: Friday March 30, 2007 - 15:24
Updated: Saturday June 27, 2009 - 20:38
Views: 8319
Summary: Ever wanted Boromir to have blademaster?

Rating

Staff says

3.3

Members say

4.4

Average

4.0/5.0

11 votes

Adding Blade Master to another Hero Tutorial

To add the special power Blade Master that Aragorn has to other heroes you will have to copy the following codes. For this Tutorial I will add Blade Master to Boromir.


(Boromir.ini)
---at top of unit animation data---

              
Code
ModelConditionState = WEAPONSET_HERO_MODE USER_3
ParticleSysBone = BAT_RIBS BladeMaster FollowBone:Yes
ParticleSysBone = BAT_HEAD AragornElendill FollowBone:Yes
End

ModelConditionState = WEAPONSET_HERO_MODE
ParticleSysBone = BAT_RIBS BladeMaster FollowBone:Yes
End

ModelConditionState = USER_3
ParticleSysBone = BAT_HEAD AragornElendill FollowBone:Yes
End



---at end of "AnimationState" list---

              
Code
AnimationState = FIRING_OR_PREATTACK_A WEAPONSET_HERO_MODE ; Blademaster Mode
StateName = STATE_ready
Animation = GUBoromir_ATD1
AnimationName = GUBoromir_SKL.GUBoromir_ATKB
AnimationMode = ONCE
UseWeaponTiming = Yes
End
Flags = RESTART_ANIM_WHEN_COMPLETE
FXEvent = Frame:25 Name: FX_BladeMasterHitOrient
FXEvent = Frame:45 Name: FX_BladeMasterHitOrient
End


---At end of "Behavior" block---

              
Code
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_AragornBladeMasterEnabler
SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
TriggeredBy = Upgrade_AragornBladeMaster
End

Behavior = SpecialPowerModule ModuleTag_AragornBladeMasterStarter ; SpecialAbility is a SpecialPower, SpecialPower is anyting special
SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
StartsPaused = Yes
End

Behavior = HeroModeSpecialAbilityUpdate ModuleTag_AragornBladeMasterUpdate ; So the difference in SpecialAbility is that it takes timing from this Update, instead of simply firing.
SpecialPowerTemplate = SpecialAbilityAragornBladeMaster
HeroAttributeModifier = AragornBladeMaster
HeroEffectDuration = 30000 ; this should sync with the auto ability delay re-fire time in commandButtons.ini
UnpackTime = 1 ; insant unpack
TriggerSound = AragornBladeMaster
End


----------------------------

(in ExperienceLevels.ini)

Add this to Boromir's Upgrades at the level of your choice:

              
Code
Upgrade_AragornBladeMaster


----------------------------

Next you will need to go to CommandSet.ini. Once there you will need to search (Ctrl + F) for Boromir and add this code to his command set:

              
Code
X = Command_SpecialAbilityBladeMaster


You'll have to change the 'X' infront of the code to a number Boromir doesn't already have...

My Boromir command set look like this:

(Note the Blademaster at spot number 2)

              
Code
CommandSet BoromirCommandSet
1 = Command_SpecialAbilityHornOfGondor
2 = Command_SpecialAbilityBladeMaster
3 = Command_SpecialAbilityBoromirForGondor
4 = Command_SpecialAbilityCaptainOfGondorBoromir
13 = Command_AttackMove
14 = Command_Stop
15 = Command_Guard
End


That should do it... your hero can now use the Blademaster power.

Comments

Display order: Newest first | Page: 1, 2

Kyoushiro - Wednesday February 6, 2013 - 6:17

Works perfectly! Thank you

clank234 - Saturday November 20, 2010 - 12:05

in bfme2 it sais
    3    = Command_SpecialAbilityBladeMaster

note the specialability part ;)

CLANK234

BigBrainiac - Monday August 9, 2010 - 17:24

Titan Cronas and Fantastein, did you add blade master to Boromir's command set? In my mod I did this today and it completely worked.

If his blade master is his starting ability, it should be placed in slot 2 of his commandset.

His commandset would look like :

CommandSet BoromirCommandSet
1 = Command_ToggleStance
2 = Command_SpecialAbilityBladeMaster
3 = Command_SpecialAbilityHornOfGondor
4 = Command_SpecialAbilityBoromirForGondor
5 = Command_SpecialAbilityCaptainOfGondorBoromir
12 = Command_CaptureBuilding
13 = Command_AttackMove
14 = Command_Stop
16 = Command_SetStanceBattle
17 = Command_SetStanceAggressive
18 = Command_SetStanceHoldGround
End

If it doesn't work after this, I don't know what to tell you.

---------------------------------------------------------------------------------------------------
Great article!

Titan Cronus - Wednesday March 3, 2010 - 7:08

Same as Fantastein, followed everything you said but no BM. You also don't make it too clear where to add the code to for the Boromir ini, but I think I have it right. : /

Just wish I could get it to work like it does for others.

Fantastein - Saturday August 8, 2009 - 10:04

Thanks for this, but I'm having some trouble. >.<

This is my first time editing anything in BFME, so I'm pretty clueless, but I've tried to follow all the steps, and I think I got them right. But when I play a Skirmish and get Boromir (I've set it so he should learn BM at level 1) he doesn't have it. There's no glitching or anything, but... well, NOTHING seems to have happened. Please help. =3

pepsipete - Wednesday April 1, 2009 - 11:11

Thanks for this!

thom_22 - Friday December 26, 2008 - 5:22

can somebody please tell me the full code (with replace module and add module etc..) because I tried to get it work for 3 hours but I still keep errors :(

CNCM_BLITZ - Sunday August 12, 2007 - 0:05

Okay it works now and it had nothing to do with the coding for Blademaster. I found a 4 = ? in commandset.ini the missing tag caused the game to crash. It was left there by accident when i was trying something with Eowyn: restoring her leadership ability. I never found out what I needed to do to get that done and left it without blocking it.

That is strange because the game said the problem was with boromir. Now it works great. Except the order in which the buttons appear for boromir's abilities is out of order. I will look into that.

CNCM_BLITZ - Thursday August 2, 2007 - 11:08

I don't know. The game crashed before it hardly had begun to load. Could it be that the code Gto gave might be sensitive as to where it's placed in the boromir.ini file? As best as I could tell its where it should be. But maybe y'all would be able to see something I don't.

Bart (Administrator) - Thursday August 2, 2007 - 4:06

does the blademaster button exist?

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

 
18:35:00