The 3rd Age

Westernesse

Westernesse

Numenor awaits, with new armies, units, factions and heroes; witness the darkest Age of Middle-earth

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

Hebblewhite

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

Rating

Staff says

4.3

Members say

4.5

Average

4.4/5.0

7 votes

Page 1 2 3 4 5 6 7 8 9
Last but not least, select the “Generic” tab. Here you will find the core set of scripts that control the behaviour of the hero during a game. See below:

User image


Since we already have a bunch of scripts relating to the “MordorWitchKingOnFellBeast” object, we only really need to remove the ones that cannot be utilised by Sauron himself.

Firstly, you will notice something very interesting:

“b_FellBeast - Use Screech on High Threat”

The “Generic” tab is also where the final scripts that allow heroes to use their special abilities are located… however, we need to do some more work in order for those abilities to show up in our list of available scripts…

For now, remove this by selecting “None” from the combo box. The relevant script should automatically disappear.


As you begin to experiment, you will find an absolute mother-load of scripts, each designed for specific elements of unit/hero behaviours.

Looking at our modified “MordorWitchkingOnFellBeast” (now “MordorSauron”) object, we can start to build a picture of how this hero will act on the battlefield. Some example scripts:


•    b_Defense - Respond to Alert - Calls the unit/hero back to defend the base when under heavy attack. Actual threat levels of enemy attacks are worked out using additional scripts

•    b_Defense - Team All Clear AND b_Defense - Team Raise Alert - These 2 scripts allow a team to send out an all clear signal after an attack has been repelled or raise the alarm (and call back existing units) in the event of an attack.

Different teams will react in different ways depending on the nature of the attack, and some teams will resume patrol patterns when an all clear signal is given.

•    p_Anti-BaseD-NonGate Priority Assignment - Attack the enemy base via one of the 3 attack routes (Center, Flank or Backdoor) but leave the gate alone. This works great for Nazgul, Witcking or Eagles because they can fly over walls. You will have problems if you apply this script to ground based units/heroes because they will simply run to their deaths against Gondor or Rohan players.

•    b_Defense - Respond to Main Base Alert - Get your ass back to the base if it is under attack.

•    b_AIAttack - Center - Hero – Attack an enemy base via the “Center” attack path nodes (placed by map designers), and attack heroes before anything else.

Add the same script for “Flank” and “Backdoor” to randomise the way in which this unit/hero will attack the enemy.

•    b_AIAttack - Resume Patrolling After AI_PATROLLING_HUNT – Go back to your general patrol route if you tried to chase an enemy (that you spotted whilst patrolling) and decided to give up on it.

Links / Downloads

 HitsAdded
Custom Heroes & AI for BFME12464July 19, 2007 - 4:42

Comments

Display order: Newest first

Hebblewhite - Thursday July 19, 2007 - 4: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.

Cheers,

Hebblewhite.

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

 
14:25:42