For the information of those who may not know but wish to, I have found a way to make certain command buttons available to other factions using scripts.
Say,for example, a mapper would like to allow China to use flashbangs upon acquiring an American Ranger but at the same time NOT allowing China to acquire an American Barracks to purchase it.
In order to achieve this one must first place an American Barracks off screen (outside the border) and change its ownership to China.
Then simply order the building to use the flashbang ability like so:
[ns A D]
*** IF ***
True
*** THEN ***
Unit 'Barracks' use Ability 'Command_UpgradeAmericaRangerFlashBangGrenade'.
In my set up I have China acquiring the flashbangs AFTER it acquires the Ranger, in which case it looks like this:
[ns A D]
*** IF ***
Player '<This Player>' has Greater Than or Equal To 1 unit or structure of type 'AmericaInfantryRanger'
*** THEN ***
Unit 'Barracks' use Ability 'Command_UpgradeAmericaRangerFlashBangGrenade'.
The only drawback is that the purchase countdown still applies, so perhaps it could be set up so the purchase countdown would end at the same moment the Ranger is acquired...?
At any rate, this is just a tidbit of knowledge that I have acquired and thought to share it.
Enjoy.
P.S. If you would like to see this script in action I found this tidbit on a map named Black Squadron by author: Dean Krauss.
Edited by user Sunday, April 6, 2014 4:49:30 PM(UTC)
| Reason: Not specified