Neutral reset timer?

I'm hoping to make a map
I won't let on too many of the details but I'm wondering if there is a way to programme an XML code that tells a territory to reset to its neutral state after so many turns ??

I won't let on too many of the details but I'm wondering if there is a way to programme an XML code that tells a territory to reset to its neutral state after so many turns ??