@Vendetta Currently using the XML, you can configure this to work exactly in the way you described, except for "Allies retreating to different territories". Currently all units go to one territory. The Pull Request is almost merge-ready, it just needs a bit of improvements outlined at the GitHub page. @iratoric How are things looking right now? Are you planning to work on the last bits of the PR?