Some of this can be done by modifing the IN Rebels with a cause system. When a rebel spawns it revolts for a reason and has scripted behavours. So a Polish nationalist revolter spawning in Congress Poland is looking to liberate Polish provinces to form Poland.