migck
Señor de la guerra
- Joined
- Apr 6, 2009
- Messages
- 197
I'm intending to code a tweak for the Global Warming mod, so that instead of selecting a totally random plot as per:
it will instead use syncRandPlot or something similar to pick a random plot of a selection made before, so it would exclude water tiles with no ice, peaks, and such tiles in which nothing pertaining the GW effects can happen.
I don't know how to make that selection though. I imagine it involves making an array of the plots that interest me and picking from it, but I have no idea how to set that up.
Also, a more simple question, if I wanted to keep an manipulate a simple counter every time a tile is affected by GW, how would I do that?
Code:
CvPlot* pPlot = GC.getMapINLINE().syncRandPlot(RANDPLOT_NOT_CITY);
I don't know how to make that selection though. I imagine it involves making an array of the plots that interest me and picking from it, but I have no idea how to set that up.
Also, a more simple question, if I wanted to keep an manipulate a simple counter every time a tile is affected by GW, how would I do that?