I’m looking to make buildings that can’t be destroyed. Only captured (through conversion or otherwise)
I’ve looked at two options both of which have their issues:
Set health and armor super high. This just makes buildings really hard to destroy. However they can still be deleted by the owner at any time easily which is an issue.
Making a trigger to respawn the building. This of course requires a huge number of triggers and knowing which buildings need to be indestructible.
Any ideas on how to make units indestructible both to attack and the delete key would be greatly appreciated.
Sidenote: I’ve noticed certain buildings like monuments can’t be deleted. If there is a way to apply this effect (including the capture mechanic) it would be just as good. It’s worth saying I don’t want to just place 40+ monuments on the map.
Simple solution I found out a while back. Change the Unit’s Dead ID to itself via modify attribute. If deleted/killed, it respawns itself. The downside is, it will never go away for the rest of the game unless you “remove” it.
I worked around it with settings HP to 10k and triggering repair when below 10k (because I wanted the current owner of the building to still be able to destroy it)
trigger I use is Effect - heal object give it enough so no matter the damage is don’t get destroyed. Make sure it’s on loop. Select the objects or define an area.