Hey guys, I am intermediate modder and I have a problem. I am working on an Art of Defense map where if ANYONES town hall is destroyed, then the game is over. Peeps like the map, but when anyone cancels construction of a town hall structure, the game counts it like the building died and the game ends. Here is the defeat trigger:
Event:
A unit owned by Player 1-8 dies.
Condition:
Triggering unit is a town-hall-type unit equal to true
Event:
Defeat Player 1-8
I have messed with other triggers trying to remove the town hall when cancelling construction or making the condition:
Triggering unit is a town-hall-type unit equal to true AND triggering unit is not equal to cancelled structure.
But each time it does not work and game ends when town hall is cancelled. Can someone give me a fresh perspective on how to get this done. I cannot figure out how to do it.
Event:
A unit owned by Player 1-8 dies.
Condition:
Triggering unit is a town-hall-type unit equal to true
Event:
Defeat Player 1-8
I have messed with other triggers trying to remove the town hall when cancelling construction or making the condition:
Triggering unit is a town-hall-type unit equal to true AND triggering unit is not equal to cancelled structure.
But each time it does not work and game ends when town hall is cancelled. Can someone give me a fresh perspective on how to get this done. I cannot figure out how to do it.