In battle, how can I make an enemy that destroys itself when certain conditions are met?
Example:
There is an invincible Turret enemy, with other soldier enemies. Once you kill all the soldiers, the Turret self destructs and you win the battle.
Now, I am sure the above can be done easily with a custom event for one troop. What I am looking for is a way to say, put a Turret enemy in any troop, and it will know to self destruct when all living/non-robotic enemies have been destroyed.
Example:
There is an invincible Turret enemy, with other soldier enemies. Once you kill all the soldiers, the Turret self destructs and you win the battle.
Now, I am sure the above can be done easily with a custom event for one troop. What I am looking for is a way to say, put a Turret enemy in any troop, and it will know to self destruct when all living/non-robotic enemies have been destroyed.