I would like to implement an UA that provides bonuses while the Civ that has it is at war--ergo, an UA that places dummy buildings in that player's cities when a war starts involving them, then removes all those dummy buildings once the war ends. Is there an existing LUA function (either from the game itself or from CBP) that I can use to check if a player is at war? It's sufficient to just know if the player is at war or not, it's not important for me to check who or how many players they are at war with..
In addition, if the above is possible, then is it possible to further check if the player in question had someone else declare war on them, or if they were the one who started the war?
In addition, if the above is possible, then is it possible to further check if the player in question had someone else declare war on them, or if they were the one who started the war?