The 3rd Age

Gauntlet: Dark Legacy

Gauntlet: Dark Legacy

Gauntlet: Dark Legacy BFME 2 Mod

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 - 13:24
Updated: Saturday June 27, 2009 - 18:38
Views: 11388
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

CNCM_BLITZ - Wednesday August 1, 2007 - 15:00

I just sais what was wrong. Error with line 788 in CommandSet.ini the line that says 3 = Command_SpecialAbilityBladeMaster.

Bart (Administrator) - Wednesday August 1, 2007 - 9:10

What was the error? It should give a message and point out exactly what is wrong.
Error messages aren't made for hastily clicking them away you know ;-)

CNCM_BLITZ - Tuesday July 31, 2007 - 22:55

I tried this and found it only caused a fatal error which had some thing to do with line 788 in CommandSet.ini the line that says 3 = Command_SpecialAbilityBladeMaster. Why would it do this?

GothmogtheOrc (Team Chamber Member) - Monday July 23, 2007 - 20:44

For specific questions not related to the tutorial you'd be better off asking at the forums as this is more for quick comments or quick questions, which that is not ;) In any event, you should be able to figure out the answer by looking at lurtz code... it's almost exactly the same as blademaster.
-Gto

witchking - Friday July 20, 2007 - 11:52

cool im planning on doing that to a isingard berzerker for my mod thanks gothmogtheorc^^
but how do you add lurtz's carnage
to a uruk-hai swordsmenorpikemen?

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

 
21:58:16