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 Attribute guide - Part 2Tutorial for BFME 2
--- Linking the upgrade to an modifier --- Now we have defined our upgrade, we need to link it to some code that actually does something. Open ...\data\ini\object\createahero\createaheroattributemodifiers.inc CaH attributes work like a leadership, they influence the statistics of the unit through a very basic attribute modifier module. Find the following code by searching for 'Upgrade_ArmorAttribute20', our link from the last code we modified.
Our additional code will look like this:
The TriggeredBy entry contains our own upgrade, which we defined in ...\data\ini\createaheroupgrades.inc The last entry is the link to our next step, the actual attribute modifier, again, the name is unique and incremental to the last value, to make coding this a lot easier. We have now linked the upgrade to the actual attribute modifier, only that modifier doesn't exist yet. Out next and last step will be to create the modifier. Next page: The attribute modifier CommentsDisplay order: Newest first Telcontar - Saturday July 14, 2012 - 12:34 Thanks for the guide. You may want to know that you can adjust the graphics editing createaherosystemattributes.inc |
|||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |