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 Create A Hero AI
Hey you there, this is a little INC file that have the "Behavior = AISpecialPowerUpdate", wich is the one that make units to use their power or abillities it is at the bottom of the page in downloads, just use final big to open INI.big and add the file at this direcction " data\ini\object\createahero " and then go to data\ini\object\createahero\createahero.ini and add this
under
and it will see like
and that's it, now the enemy create a hero will use all of his/her powers to figth you and make the battle more exciting. Now, if you want normal heros use their powers too, find its commandset and copy the command you want it to use, and also copy a similar create a hero power in createaheroaispecialpower.inc and just paste it on the hero file and replace the CAH command with the normal hero command. like this let's say you want theoden use HeroicCharge, look for it
and just replace "Command_SpecialAbilityCreateAHeroHeroicCharge" with theoden command for HeroicCharge "Command_SpecialAbilityTheodenGloriousCharge"
you can also change the module tag (HeroicChargeAI) if there is any other behavior with the same module tag name. If you want more information about AI coding, there are two very good articles about it, one is "In-depth AI Coding" by Sulherokhh for experts, and "AI Coding tutorial" cahik_ for intermediate. Thank you and enjoy it! Links / Downloads
|
|||||||||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |