Thanks for your reply Rob. Its as i suspected and feared by the looks of it then
I thought thats how i might have to do it so basically i have a counter for every thing that happens for every faction i have.
At the moment (and i cant show code as im at work so ill have to do it when i get home) i have a UDT that is getting larger by the minute. You see i didnt want a universal game counter because although at first 5 factions will all spawn at the same time, eventually new ones will replace old ones and i dont want a statement that makes it increase peasant numbers by 1 (or whatever) every 5 seconds, instead its every 5 seconds for that faction so each one would have numbers growing at different times etc. Same with the tax collection.
For example.
Faction 1 is spawned at game start. 5 seconds in he gets a peasant, 10 seconds later tax is collected or something like that.
22 Seconds later a new faction is spawned, now that would mean that only 3 seconds (if my math is right) after it spawns the game will say, add another peasant.
The way both you and i have done it ensures that each faction is treated on a seperate counter and not a general rule even though they will all follow the same rule to a degree. Its just i then need a counter for a few other things for each faction too like when it decides to make a descision based on an event and so on.
I am going to post up everything i have soonish so people can see what i am trying to do and see if there is a better way of doing it but for now i will carry on the way i have been.
Thanks for taking a look.