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 Negative LeadershipTutorial for BFME, BFME 2, ROTWK
Negative Leadership In this tutorial i'll be teaching you to make a negative leadership that can affect enemies. This can be used to weaken enemies by removing fear resistance,knockback resistance lowering attack and armor,stopping health recovery and even slowing the opponent. The files you'll need are Attributemodifier.ini object.ini(the unit/hero your editing) Commandbutton.ini,commandset.ini,experiencelevels.ini,specialpower and the other files needed to add abilities to the game. Before you start make sure you know how to add abilities to units. first up you'll need the leadsership code
This is the code from the Witch King's leadership. There is no need to make a new special power at the moment. In the AttributeModifierAuraUpdate add the following code
this will now target enemies instead of allies. Now to make the new attribute modifier i'll change the Bonus name to KhamulNegativeLeadership so your code will look like this
now we go to AttributeModifier.ini and create a new attribute modifier.
This will reduce the armor and remove fear resistance for the enemy. Now add the ability to CommandButton.ini,CommandSet.ini and experiencelevels.ini I won't show you how to do that here. This should now work in game. A few notes there is alternative method instead of adding the TargetEnemy code you can change the ObjectFilter by adding ENEMIES to the ObjectFilter.
For the Attribute Modifier try out the following. RESIST_FEAR - this removes fear resistance I haven't tested the full use of this yet i'm not sure if it works with Level 2 units(this is additive for a negative effect it has to be a negative percentage for instance -50%) ARMOR - units take more damage (this is additive for a negative effect it has to be a negative percentage for instance -50%) DAMAGE_MULT - units can do less damage (This is Multiplicitive so for a negative effect it would be under 100% ie. 50% would halve the Attack) SPEED - slows down units and can even stop them in their tracks (this is additive for a negative effect it has to be a negative percentage for instance -50%) RANGE (this is additive for a negative effect it has to be a negative percentage for instance -50%) VISION (this is additive for a negative effect it has to be a negative percentage for instance -50%) RESIST_KNOCKBACK (this is additive for a negative effect it has to be a negative percentage for instance -50%) On a final note try adding the following code to remove other leaderships
I hope this helps coders get some more tools to play with to make better and more deverse mods with greater strategic playing if you have any questions please ask on the forums. I'm also working on another similar tutorial on how to make a negative version of Glorious Charge. CommentsDisplay order: Newest first st3f4n0s666 - Thursday August 26, 2010 - 7:51 what about the ability of karsh (the ghost hero of angmar)can you pls make an article for how to use his chili soul ability for our custom heros?:) ILUTAVAR - Saturday February 2, 2008 - 15:22 is posible to to make the drad vissage act as leadership? |
|||||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |