Capture area / castle etc.

So im currently working on a project and i want to make a capture point for castles / areas.
But the area also need to reset to a certain point when it is captured does anyone know how to do a mechanic like this?
its somewhat the same mechanic of guildwars capturing the castles.

I did not get your way. You want to do a stay still until you get the 100% possess of that place, or a kill everyone to possess the castle? And what do you want to do exactly?

I want to make a capture zone which goes to 100% after a certain amount of timeā€¦