Function to assign a value and store

Duke176

Warlord
Joined
Oct 19, 2006
Messages
241
Location
Turin - Italy
Hi is there anyone who could tell me which function/functions (simpler is better is) should I check to understand how to:

loop throw some things
create a list of them
assign a number to them
and store it

for ex. I think at city pop.
the game loop throw them to make the total pop count
assign a value to them (depending on growth)
and store it in lists (saving it from turn to turn)

Thx.
 
Using the SDk you could create a value to store that info. You can check out the FfH2 BtS beta source code and look at how the Glocal Counter is implemented.

Another way would be to store the information in the pPlot scriptdata. Dale uses this method from time to time and is fond of sticking game specific data in the scriptdata for plot 1,1.
 
Back
Top Bottom