isau
Deity
- Joined
- Jan 15, 2007
- Messages
- 3,071
I've been beating my head into the keyboard over this for what seems like too long over something that seems pretty simple. In the context of ATTACH_ALL broadcast Modifiers, like the ones used by City States to broadcast a Modifier to all other players, is there a way to tell if a Civ is at War with a specific civ in the same way you can tell they are friends or allies?
With Friends, its very simple. The RequirementType REQUIRES_PLAYER_DECLARED_FRIEND returns true if the civ broadcasting the Modifier is Friends with the civ receiving it. Easy.
I would expect there to be something similar for War. But I haven't found anything yet. There are some requirements that trigger the exact turn war is declared, there are some that indicate the civ is at war in general (ie with at least one civ) but no persistent RequirementType I have found that says "This civ is at war with this specific other civ."
What's annoying is there seems to be a setting like this for peace. REQUIREMENT_PLAYER_IS_AT_PEACE returns true if there is Peace between civs. Normally you can invert a RequirementType with the Invert field in the Requirements table. But that doesn't seem to work for REQUIREMENT_PLAYER_IS_AT_PEACE, unless I don't understand how it works. When inverted it still seems to return true even for civs who are not at war. Grr.
Anyone got a solution?
With Friends, its very simple. The RequirementType REQUIRES_PLAYER_DECLARED_FRIEND returns true if the civ broadcasting the Modifier is Friends with the civ receiving it. Easy.
I would expect there to be something similar for War. But I haven't found anything yet. There are some requirements that trigger the exact turn war is declared, there are some that indicate the civ is at war in general (ie with at least one civ) but no persistent RequirementType I have found that says "This civ is at war with this specific other civ."
What's annoying is there seems to be a setting like this for peace. REQUIREMENT_PLAYER_IS_AT_PEACE returns true if there is Peace between civs. Normally you can invert a RequirementType with the Invert field in the Requirements table. But that doesn't seem to work for REQUIREMENT_PLAYER_IS_AT_PEACE, unless I don't understand how it works. When inverted it still seems to return true even for civs who are not at war. Grr.
Anyone got a solution?