Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Simple Structure B… Creating an asset.… Making a simple Ma… Quick and easy sno… Proper Fire Arrow… BFME1 AI Tutorial 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 Converted BFME2 an… The forests of Dru… ROTWK animations f… |
|||||||||||||||||||||||||
Register and log in to move these advertisements down CommandButtons dependent on multiple upgradesThis tutorial is currently hidden from the public. Tutorial for BFME, BFME 2, ROTWK
If you've made it this far in the tutorial you have two CommandButtons: one that requires two prerequisites, and one that shows up when the first one doesn't. Now it's time to edit the building's CommandSet to show the right button at the right time. First, find the original CommandSet and copy it. Now rename one of them to something like RohanStablesCommandSet2. This is the CommandSet that will contain the correct button. Then, edit the original CommandSet (the one that the building already uses; in this case RohanStablesCommandSet) and replace the real CommandButton with the fake one. You should have the following code:
Note that the CommandSet with the fake button keeps the original name, and the real CommandButton goes in the renamed CommandSet. Next: CommandSet update behavior CommentsDisplay order: Newest first Rob38 (Team Chamber Member) - Friday August 27, 2010 - 19:17 Illuvatar is right. You made it way too complex. ;) Marioverraeter - Friday July 2, 2010 - 2:59 Ah, I see what you mean. Well, in fact, in the meantime I figured out both this one and another option that add to each other in there use. Illuvatar - Wednesday June 9, 2010 - 3:12 Marioverraeter: Well, in the case that I used it, I wanted a unit to reach a certain level as well as purchase a technology from a research building before it could attain a power I wanted it to have (you could think of it as purchasing an upgrade like Forged Blades but having to be level 2 or something). So in the power's unpause behavior block I put two upgrades in the TriggeredBy field: the level upgrade (object_level#) and the technology upgrade. Then you add the line I posted earlier so that it needs both triggers. See what I mean? Marioverraeter - Sunday May 16, 2010 - 9:01 Interesting. In deed, this is exactly one problem I am bothering with at the time. Illuvatar - Sunday April 25, 2010 - 0:06 Uh... to shorten this tutorial up to about two sentences: You only need to put both upgrades in the TriggeredBy field in the behavior block (most likely in the unit ini file). Then just add the following field:
|
|||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |