Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Creating an asset.… Proper Fire Arrow… Simple Structure B… Making a simple Ma… Quick and easy sno… Making patrols nea… Mods The Dwarf Holds The Peloponnesian… RJ - RotWK The Elven Alliance… Helm's Deep Last H… The Elven Alliance Special Extended E… Kings of the West… RC Mod The Wars of Arda Downloads BFME1 1.06 Widescr… Enhanced W3D Impor… Fudge's Map Pack LotR/BfME HD Logos Osgiliath Shellmap Crystals Of Ancien… 2v1 Wold The forests of Dru… Converted BFME2 an… ROTWK animations f… |
|||||||||||||||||||||||||||||
Register and log in to move these advertisements down Custom Heroes & AI for BFME1
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:
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
CommentsDisplay order: Newest first Hebblewhite - Thursday July 19, 2007 - 4:44 Hey guys, |
|||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |