Isn't there a getPlotCity() function any longer?
If there is, you could use that to get info about whether or not a city is on a given plot and thus prevent forest growing there.
Way back when Civ4 came out, I did a similar mod ... obviously not for forests, but anyway, I think I used some variable to determine how many actual years each turn spanned to adjust growth speed accordingly.
I.e., early on, when one turn is fifty years or whatever it was, it makes sense that the growing speed is very fast (measured in turns), whereas in the later game, where one turn is only a year, it should take a lot longer.
This could be expanded to grow jungles and deserts, too.
About the script itself ... I don't quite understand it either, I have to admit.
Isn't, in a standard game, GrowthPercent and ResearchPercent 100?
So this line:
Code:
local base = 500 * (info.GrowthPercent / 100) * (world.ResearchPercent / 100);
would mean 500 * (100/100) * (100/100)?
And the following line would roll a Random number between 0 and 500, so a forest would have a 1/500 chance (0.002%) of growth each turn?
Anyway, cool little mod, I'll use it once I'm done playing vanilla.
_____
rezaf