It modifies maps, e.g. by adding a commander with spesific items/troops into a random province or a province that matches certain requirements, like terrain. It wouldn't be too far-fetched to add a requirement "this province is a capital of nation X" IMHO.