Trigger replace destroyed buildings with objects

Hi Team,

Do you happen to know if there is a way to replace destroyed buildings in an area for something else, without needing to specify the buildings?

I want to substitute every player’s destroyed building with something, let’s say, a skeleton, a head or a impaled corpse. But, of course, the player is the one that will build them.

I’ve only found condition “Destroy Building” but it requires me to specify the building I want to destroy.