The 3rd Age

Battle of the Pelennor Fields

Battle of the Pelennor Fields

Six new factions. Controle any of the races of man that participated in the War of the Ring.

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

Restore Gimli Dwarven Grudge ability

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 Miraak5

Miraak5

Category: Code
Level: Intermediate
Created: Tuesday January 19, 2016 - 18:14
Updated: Tuesday January 19, 2016 - 18:38
Views: 1974
Summary: Restore the ability dwarven grudge for gimli removed by EA

Rating

Staff says

-

Members say

-

Average

-

0 votes


Go in the command button and find the line    CommandButton Command_FakeButtonDwarvenGrudge
replace all the DwarvenGrudgeButton with this    

CommandButton Command_FakeButtonDwarvenGrudge    
Command = SPECIAL_POWER    
SpecialPower = SpecialAbilityDwarvenGrudge    
Options = NONPRESSABLE    
TextLabel = CONTROLBAR    DwarvenGrudge
ButtonImage = HSGimliDwarvenGrudge    
RadiusCursorType = TrainingRadiusCursor    
Upgrade = Upgrade_GimliFreeLife    
ButtonBorderType = ACTION    
DescriptLabel = CONTROLBAR    DwarvenGrudgeDescription
InPalantir = Yes    
End    

in command set    
add this line to gimli command set    Command_FakeButtonDwarvenGrudge

in gimli.ini    
check the bottom of the page to find this:
    
;; REMOVED - DWARVEN GRUDGE ABILITY (replaced with RespawnBody)    
; Body = FreeLifeBody ModuleTag_FreeLifeBody ;FreeLifeBody is a variation of RespawnBody    
; CheerRadius = EMOTION_CHEER_RADIUS    
; MaxHealth = GIMLI_HEALTH ;BALANCE Gimli Health    
;    
; FreeLifeHealthPercent = 50 ;percentage of MaxHealth health to recover    
; FreeLifeTime = 10000 ;amount of time until we can rise from the dead again    
; FreeLifeInvincible = Yes    
; FreeLifePrerequisiteUpgrade = Upgrade_GimliFreeLife    
; FreeLifeAnimAndDuration = AnimState    EMOTION_CELEBRATING AnimTime:3000
; PermanentlyKilledByFilter = NONE ;Who kills me permanently?    
; DodgePercent = HERO_DODGE_PERCENT    
; End    

Body = RespawnBody ModuleTag_RespawnBody    
CheerRadius = EMOTION_CHEER_RADIUS    
MaxHealth = GIMLI_HEALTH ;BALANCE Gimli Health    
PermanentlyKilledByFilter = NONE ;Who kills me permanently?    
DodgePercent = 80%    

Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership    
SpecialPowerTemplate = SpecialAbilityFakeLeadership    
TriggeredBy = Upgrade_GimliFreeLife    

Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate    
SpecialPowerTemplate = SpecialAbilityFakeLeadership    
UpdateModuleStartsAttack = No    
StartsPaused = Yes    


replace all with this:
    
;; REMOVED - DWARVEN GRUDGE ABILITY (replaced with RespawnBody)
Body = FreeLifeBody ModuleTag_FreeLifeBody ;FreeLifeBody is a variation of RespawnBody
CheerRadius = EMOTION_CHEER_RADIUS
MaxHealth = GIMLI_HEALTH ;BALANCE Gimli Health

FreeLifeHealthPercent = 30 ;50 ;percentage of MaxHealth health to recover
FreeLifeTime = 100000 ;amount of time until we can rise from the dead again
FreeLifeInvincible = No ;Yes
FreeLifePrerequisiteUpgrade = Upgrade_GimliFreeLife
FreeLifeAnimAndDuration = AnimState:EMOTION_CELEBRATING AnimTime:3000
;
PermanentlyKilledByFilter = NONE ;Who kills me permanently?
DodgePercent = HERO_DODGE_PERCENT
End

; Body = RespawnBody ModuleTag_RespawnBody
; CheerRadius = EMOTION_CHEER_RADIUS
; MaxHealth = GIMLI_HEALTH ;BALANCE Gimli Health
; PermanentlyKilledByFilter = NONE ;Who kills me permanently?
; DodgePercent = 80%
; End

Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenLeadership
SpecialPowerTemplate = SpecialAbilityDwarvenGrudge
TriggeredBy = Upgrade_GimliFreeLife
End

Behavior = SpecialPowerModule ModuleTag_TheodenLeadershipUpdate
SpecialPowerTemplate = SpecialAbilityDwarvenGrudge
UpdateModuleStartsAttack = No
StartsPaused = Yes
End    

in specialpower.ini    
add this:    

SpecialPower SpecialAbilityDwarvenGrudge    
Enum = SPECIAL_FAKE_LEADERSHIP_BUTTON    
ReloadTime = 1 ; in milliseconds    
;PalantirMovie = PalantirAlert_RohanReinforcements    

in experiencelevels.ini    

find gimli level block and in the level if you choose for exemple level 4 add this line inside    
Upgrades = Upgrade_GimliFreeLife    

Now the power is fully restored    
this power make when gimli dies, he regain 50% of is health and the ennemy a a limit of time to rekil it if the ennemy rekil it he dies an he must respawn in the fortress or citadel    
if the ennemy don't rekil it he don't dies

Credits

Me & EA

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:44:14