Ive been thinking about this and i think the best method would to have the razing triggers as such
Acculumate attribute raze p1 ect. (Find these resources in trigger studio)
Create an gaia unit
Tribute raze back to gaia
Set that up for each player.
Then use the triggers mentioned above to create a different unit in the same tile.
If the second unit is in area then building must have been delete because the first unit created when you raze would block it.
Lastly 1 more set off triggers to remove the first unit ready for next raze.
Hope this makes sense, I plan to test this soon.
You could use object destroyed for pre existing buildings and you would have to impose a building limit for the previous triggers in this thread to work properly.
[This message has been edited by jizzbomb (edited 02-06-2017 @ 07:35 AM).]