First, welcome to the boards. Sure I could help you. Well the code just provides the names for the units. The place you would need to look is the CvEventManager.py file, the onUnitCreated method. Basically you would need to build a filter to only name units with the characteristics you are looking for. There is no limit that I found. Its just an arbitrary number I picked.