I'm trying to write a script to make an "ally support" feature. Once two factions have a relationship better than, for example, "Amiable", the script can trigger an event and then both of them can build a building. Once the building is finished, you can get some unique units from your ally.


Now the problem is I don't know how to test the relationship between two factions.

If I_CompareCounter (relationship_between_england_france) > 0.5
set_event_counter relationship_amiable 1


How can I describe the red part?

I find "FactionStanding" condition in docudemon files but I don't know how to use it.

Any help is appreciated!