do something every x turns

tesb

Emperor
Joined
Jan 16, 2010
Messages
1,593
my insomnia drives me to more threads, where i guess there is already an answer somewhere (or it is easy to think of one).

anyways i have a function which is called every turn, however within this function i have a snipped of code that i only want to be executed every x turns. does anybody knows of a good solution for this problem?

edit: i especially do not want randomness.
 
what does the % do? or do mean you simply mean divided by 3 (in that case it should be 1 and would only work for turn 3)

edit: i looked it up. should work thank you :)
 
Usually I will not use == 0 though, unless there are more checks, don't like things to trigger directly on first turn before I even plant my cities
 
Back
Top Bottom