I don't play regular Civ IV anymore (almost exclusively FFH II when I find the time for a game), but I thought I would throw out the python modcomp that I have setup for my own enjoyment in case anyone else out there is interested.
All of the variables are set for FFH units, but the python is easy to modify with all the variables up front and documented. There are two parts to the modcomp, one lets units provide opportunity fire when in certain improvements to hostile units entering their borders, the other one lets units provide custom promotions based on conditions. If you use the conditional promotions you will need to create your own promotions in XML, but here is an light example of some of the stuff I did (remember I play FFH, so these are all fantasy units):
Great Commanders provide a promotion to all units stacked with them that increases the XP gained from combat, lets the units attack across rivers without penalty, gives a 10% increase in city defense, and reduces upgrade costs by 25%.
Hawks provide +2 sight range to recon units in the same stack as themselves as well as provide 1 first strike.
Rangers, Satyrs, and Druids are invisible to enemy units as long as they remain in a forest, jungle, or an ancient forest.
Archmages tutor arcane units in the same stack. This provides a 20% upgrade discount. In my game I use it to increase the rate of XP gain to adepts, but that is beyond the scope if this modcomp and uses additional python calls.
Feel free to mess with this all you want, if you use it in a larger mod, just let me know so I can try it out.
Cheers
edit: AFAIK this only works for BTS, I haven't tried it on other versions.
All of the variables are set for FFH units, but the python is easy to modify with all the variables up front and documented. There are two parts to the modcomp, one lets units provide opportunity fire when in certain improvements to hostile units entering their borders, the other one lets units provide custom promotions based on conditions. If you use the conditional promotions you will need to create your own promotions in XML, but here is an light example of some of the stuff I did (remember I play FFH, so these are all fantasy units):
Great Commanders provide a promotion to all units stacked with them that increases the XP gained from combat, lets the units attack across rivers without penalty, gives a 10% increase in city defense, and reduces upgrade costs by 25%.
Hawks provide +2 sight range to recon units in the same stack as themselves as well as provide 1 first strike.
Rangers, Satyrs, and Druids are invisible to enemy units as long as they remain in a forest, jungle, or an ancient forest.
Archmages tutor arcane units in the same stack. This provides a 20% upgrade discount. In my game I use it to increase the rate of XP gain to adepts, but that is beyond the scope if this modcomp and uses additional python calls.
Feel free to mess with this all you want, if you use it in a larger mod, just let me know so I can try it out.
Cheers
edit: AFAIK this only works for BTS, I haven't tried it on other versions.