That's cool, but how do you detect who's playing? How many are them there (AI + Player(s)). I can write my own loops and stuff, I just have no clue what functions to use and how to get the reference of a civ object to perform checks and stuff, because there are no tutorial or documentation that...