http://www.cnclabs.com/forums/cnc_postst5045_WB-Tut--Identifying-Players-and-Related-Scripts.aspx
Check sections 1, 2, 4, and 5.
(Section 5 actually has a similar script as an example, but it would be helpful to read the other sections first to understand how it works.)
For the map to be fully functioning, with every faction and subfaction getting something unique, you'll need at least 8 x 12 x (amount of map players) scripts. Considering since some subfaction's defenses are the same, the actual numbers would be lower.
Originally Posted by: i^love^mixery