The 3rd Age

The Elven Alliance: Community Edition

The Elven Alliance: Community Edition

This mod project attempts to complete and finish The Elven Alliance mod in its entirety.

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

Making trolls run always

Avatar of Bart


Category: Code
Level: Beginner
Created: Thursday August 2, 2007 - 2:10
Updated: Saturday June 27, 2009 - 18:22
Views: 7751
Summary: Make trolls run always, not only when attacking


Staff says


Members say




5 votes

When I just started playing and modding BFME, I was seriously annoyed by the fact that trolls only run if you order them to attack, and walk slowly otherwise. Numerous trolls have been killed by retreating slowly, and I decided to do something about it.

I put this online a long time ago, but that site is lost now so I'm putting it as an article here. It's written for BFME 1 but should work in BFME 2 too.

Make the troll move faster
Open the troll's ini file (in BFME 1 this is 'evilfactionunits.ini'), and find the troll's LocomotorSet
Locomotor = TrollLocomotor
Condition = SET_NORMAL
Speed = 33

Change the speed to 66 (or whatever number you'd like)

Remove the charge behaviour
We have to remove the bits that make the troll run faster when attacking, or he would get a speed of 132 (!) when attacking. Open 'locomotor.ini' and find the troll's locomotor:
Locomotor TrollLocomotor
TurnTime = 1000 ;4000
TurnTimeDamaged = 1000 ;4000
TurnThreshold = 3        ; small because monsters look awful rotating on the spot without playing an anim.
TurnThresholdHS = 120
EnableHighSpeedTurnModelconditions = No ; We only want turning model conditions for slow turns.

Acceleration = 100 ; 0.1 second to accelerate to full speed.

Braking = 100 ; 0.1 second to brake from full speed.
MinTurnSpeed = 0%
FastTurnRadius         = 0 ; Can turn in a 10 foot radius circle when moving.
SlowTurnRadius         = 0 ; Turns in place from a standing start.
ChargeAvailable = Yes ; Locomotor has defined charging attack values to use
ChargeSpeed = 200%
FormationPriority         = MELEE1 ;CAVALRY3

Appearance = HUGE_TWO_LEGS
StickToGround = Yes ; walking guys aren't allowed to catch huge (or even small) air.

Change 'ChargeAvailable' to 'No'

Editing animations
Now all that's left is to fix the troll's animations. Go back to it's ini and go the drawing settings at the top. Here you will see a lot animation state blocks:
AnimationState = BLABLABLA
; stuff here

First, find the state 'MOVING WEAPONSTATE_ONE ATTACKING', copy it's contents and paste it inside the states 'MOVING WEAPONSTATE_ONE DAMAGED' and 'MOVING WEAPONSTATE_ONE'. Now delete the state 'MOVING WEAPONSTATE_ONE ATTACKING'.
Do the same for weapon state 2 and the ones without a weapon state.

There, now you have a lovely running troll. Don't get him too tired though.


Display order: Newest first

Tartarsauce - Wednesday August 19, 2020 - 20:50

Hi I know I am very late, and chances are no one will see this and reply. But I cant seem to make it work, ive followed the steps, but I get confused on the part where it says "do the same for weapon state 2 and the ones without a weapon state" Ive tried many different ways, and no matter what my troll is just walking at 66 speed, not running.

Spartan184 - Friday July 3, 2009 - 20:05

aralegim - Thursday January 3, 2008 - 8:59

what do you mean withe the ones without a weapon state

Bart (Administrator) - Tuesday August 7, 2007 - 2:07

erm...yes..that's exactly what the tutorial describes... :-/

Guess Who - Saturday August 4, 2007 - 5:28

this is not that hard to do just remove the run thing when they are attacking and raise the speed.

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