That could be possible, though not without some help. First question: Is it possible to edit <Target> or <Scope> to choose a specific thing only? For target I've only found generic things like Faction (who is giving/receiving, but not the reverse.), Shipyard, Ship, Colony, etc. and for scope all I could find is global. They do not seem to have an enum or an xml that defines targets, it seems. The other question is if it's possible to import other files and use functions in them--if possible, I would import both the FactionsDef.xml and TreatyDef.xml so that I can have who and what would happen with who. But, this would be useless if I can't define who.