Hi guys!
As the title says, I want to know if there is a function to get the Treaty Time inside of an AI script. I looked at the Reference by Panmaster2014 but all I found was a bool function which only checks if Treaty is active or not. That's not enough, of course.
If such function does not exist, do you know if there is a possible work-around? I thought we could manage to get Treaty Time if the player himself helps the AI, by using the tribute system. Let me explain: if the player sends a food request in the first 10 seconds of the game, this means that the Treaty Time is 20 minutes. Wood request means 30 minutes Treaty. Gold request means 40 minutes. Normally, you'll never request resources in the first 10 seconds of the game! So I thought it could be a good idea to use the Tribute system.
Now, the problem is that we can't send request to enemies, so my idea works for allies only and will never work in 1v1 battles. Do you have any other ideas? I am sure we can find a way to solve this limitation.
I hope I will get an answer very soon. Thank you guys!
As the title says, I want to know if there is a function to get the Treaty Time inside of an AI script. I looked at the Reference by Panmaster2014 but all I found was a bool function which only checks if Treaty is active or not. That's not enough, of course.
If such function does not exist, do you know if there is a possible work-around? I thought we could manage to get Treaty Time if the player himself helps the AI, by using the tribute system. Let me explain: if the player sends a food request in the first 10 seconds of the game, this means that the Treaty Time is 20 minutes. Wood request means 30 minutes Treaty. Gold request means 40 minutes. Normally, you'll never request resources in the first 10 seconds of the game! So I thought it could be a good idea to use the Tribute system.
Now, the problem is that we can't send request to enemies, so my idea works for allies only and will never work in 1v1 battles. Do you have any other ideas? I am sure we can find a way to solve this limitation.
I hope I will get an answer very soon. Thank you guys!