Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Proper Fire Arrow… Creating an asset.… 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 Eowyn Disguise/Camouflage (Scripts)
Now for the units providing Eowyn with a cover. The following piece of code should be inserted somewhere among the other behavior code of the units providing cover, meaning the Rohirrim (riders) and the Peasants (if you have reintroduced them to your mod, as we did with S.E.E.). The files' names (and Object names) are: 'data\ini\object\goodfaction\units\men\rohanrohirrim.ini' (Object RohanRohirrim) 'data\ini\object\neutral\neutralunits.ini' (Object RohanPeasant1) If you do this for RohanPeasant1, all the other Peasant variants will benefit from this too, because they are Childobjects of RohanPeasant1. This is the Code:
Looking a bit more closely, you see that this Aura, much like a leadership aura, only affects eowyn. And it provides her with an Attributemodifier that you will have to define in 'attributemodifiers.ini', which would look like this:
As you can see, all the aura of the rohirrim does is give Eowyn the ModelCondition USER_1 while she is around, and then only if the PLAYER Upgrade 'Upgrade_EowynConditionDisguised_SEE' has been acquired. How that is done you will see on page 4. Note 1: The 'Duration' of the Modifier needs to be higher than the Refreshdelay of the AuraUpdate, otherwise the disguise will stutter on and off. The duration also signifies about how long the disguise will keep on working even if she leaves the aura of the rohirrim. A maximum of 3 seconds in this case. Note 2: Totally unimportant for our purposes here, but you might implement different Updates for Rohirrim and Peasants that only work when Eowyn is mounted (for the rohirrim) or on foot (for the peasants). But we don't need to go into that right now... The Upgrades The next thing you should do, if you haven't already, is to define the upgrades that have been used in the code so far. You do this inside the file 'upgrade.ini'. There is a lot of similiar code in there. Our upgrades need only the smallest amount of detail, as you cannot buy them, they have no builttimes, etc. So it would like this:
The acquisition of the first Upgrade (a PLAYER upgrade, and therefor global) is the trigger without which the covering auras of the Peasants and Riders wouldn't work. The other two OBJECT-upgrades are needed for Eowyns personal InvisibilityUpdate and are for that reason on the OBJECT-Level. The Aura of the Rohirrim (triggered if she is disguised) provide Eowyn with the ModelCondition USER_1 when she is in range. The presence (and removal) of USER_1 in turn provides Eowyn with the needed upgrade that activates her actual InvisibilityUpdate (or deactivates it). This works via the files 'scriptevents.xml' and 'scripts.lua'. Go to the next page... Credits
CommentsDisplay order: Newest first Mouth of Sauron - Thursday January 14, 2010 - 5:49 Thank you, this is most useful generally ; about Eowyn however... I never understood this ability and I cannot see for what should it be used - she was not hiding before the ennemy, she was hiding before Theoden, wasn't she... |
|||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |