Hi there!
I have a game with wars between gruops. I want to create a script that runs once per day, and it passes through all groups and sets it to fight with another clan. I retain that in one Object called Wars, available in all groups.
So, for example if group A is set to fight with group B, the object Wars from group A will look like this:
Wars: { "Enemy": "B" }
While the object Wars from group B will look like this:
Wars: { "Enemy": "A" }
That's great so far, however... since I retain information about each war inside the group objects, I need to make a lot of API requests and even though this script runs only once per day, the limit is set to 15.
Does anyone have any suggestions on how to approach this problem?