Another common technique is to have semi-similar upgrades for different factions, and have them do different things.
E.G. The black napalm upgrade could easily be reused as a USA or GLA upgrade for anything fire related. Only the picture and price will be the same, so you can completely change the description. You can even have a different picture on the button than on the queued picture.
Originally Posted by: Annihilationzh
That, AZH, is actually quite brilliant.
Ironically though I've sort of done this before. I'm going to go off-topic briefly just to ramble about it. xD
Let's say you want an armor upgrade for the China Tank General's tanks.
Rather than create a whole new one, just take the Composite Armor upgrade from the USA and copy that Command Button to the Propaganda Center's Command Set. Then add the necessary code to the tanks you want for the upgrade to take effect.
Yes, this will mean you have the Crusader saying "Composite Armor installed, sir" when the upgrade is done. You can't get the voice changed without either changing the voice used for the existing upgrade or creating another version of the Composite Armor upgrade that uses a different voice when it's done researching, but the latter would completely defeat the purpose of re-using upgrades and wouldn't really be re-using upgrades at all.
Back to the topic....
Bypassing the hardcoded upgrade limit:
http://www.cnclabs.com/forums/cnc_postst11604_Tips-and-Tricks.aspx
...in case you want to go over the 128 upgrade limit, you can use objects. Basically build an invulnerable unit with no art parameters (so nothing will be drawn) that uses the GrantUpgradeCreate behavior. In my case, this allows Tank General and Airforce general to use a set of 16 upgrades (Upgrade_TechTreeX_Y where X and Y are between 1 and 4) to unlock various unit, upgrades and sciences. Or Airforce and Stealth generals can get Laser Missiles and AP Rockets respectively, but both use Upgrade_MissileDamage. The only problem is that you shouldn't allow the player to capture other generals' buildings, since one upgrade may have two very different costs depending on the general using it. You may be able to work your way around such problems, but I don't think it's worth the effort.
Ail-Shan wrote:
TBH, I do find it hard to understand this, as it is at level of modding far higher than my current expertise, but this the best explaination I've found so far...
Only the picture and price will be the same, so you can completely change the description. You can even have a different picture on the button than on the queued picture.
May I ask how you're going to get different descriptions for the same upgrade without creating a different version of the upgrade? I've never figured that out.
Edited by user
11 years ago |
Reason: Not specified
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.