The 3rd Age

Lone Wolf 2 Return of Dawn

Lone Wolf  2 Return of Dawn

Lone Wolf 2 Return of Dawn is a port/sequel to Lone Wolf Return of Shadow for BFME2.

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

Custom Heroes & AI for BFME1

Avatar of Hebblewhite


Category: Worldbuilder
Level: Intermediate
Created: Wednesday July 18, 2007 - 19:49
Updated: Monday September 13, 2010 - 13:56
Views: 6137
Summary: Getting the BFME 1 AI system to build and use custom heroes effectively - including special powers


Staff says


Members say




7 votes

Page 1 2 3 4 5 6 7 8 9
As you can see from the above script, our character will be forced to retreat from combat if it’s health should become less than 25 percent at any given time. You can play around with these values to achieve different effects (remember that some heroes are much more durable than others).

Now we can go about enabling some of our hero abilities… let’s assume for a second that our Sauron character has the ability to wield the mighty one ring that boosts his armour and attack strength for a limited time.

The trick here is to decide on when is best to use this ability… for example when our hero is under threat from multiple enemies, or perhaps when we get close enough to an enemy encampment. In this case, we’ll go with the first option since it’s the most reliable.

Create a new script by pressing the “New Script…” button.

In the “Script Name” field enter “b_Sauron - Use One Ring On High Threat”. Make sure that the script is a subroutine, active and available in all three difficulty levels by checking all of the appropriate check boxes.

We can then add our ability condition as follows:


*** IF ***
Team '<This Team>' has Greater Than or Equal To threat level 30.00 within radius 200.00
*AND* Player '<This Player>''s Team '<This Team>' are ready to use Ability 'Command_SauronOneRing' (at least one member).

*** THEN ***
Team '<This Team>' use Ability 'Command_SauronOneRing'.

Obviously, the above condition refers to a special ability in the characters ini code including the actual command button found in the Sauron command set. You will need to make sure you have all of the necessary code completed for your own abilities before you can add them to the AI system.

The threat level is calculated by taking the sum of the threat values of all hordes and heroes within the specified target area relevant to our character (in this case, a radius of 200). If this value is equalled or exceeded and our unit has the ability to use the special power, it will be activated immediately.

Other types of abilities can be activated in a similar way… generally speaking; the action is always the same i.e. use ability ‘x’. The key is to experiment with different kinds of conditions that will affect how and when a hero should activate an ability.

Special powers such as “Kings Favour” should not have any strict conditions bound to them, and should be activated as soon as they are available… Others may need to more specific conditioning… it’s all down to trial and error.

Links / Downloads

Custom Heroes & AI for BFME11906July 19, 2007 - 6:42


Display order: Newest first

Hebblewhite - Thursday July 19, 2007 - 6:44

Hey guys,

I've added a pdf version of the tutorial for easier reading... this one is a bit long (apologies for that), but I decided to combine both parts 1 and 2 of the set to make it easier to follow.



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