Hi!!
I'm looking for a way to achieve the following. In battle, there are sometimes small enemies that do not attack. I want to make it so that if the player eliminates all the enemies that do attack but there are still alive enemies that do not attack, the battle is considered won, so the victory screen appears (exp, gold, victory animation, etc.) (and no death animation is shown for those non-attacking enemies). Is this possible?
Specifically, I would like the battle to be declared as won if any of the enemies with IDs 42, 43, 44, 45, 46, 47, 48, or 49 from the database are present (alive) in the battle, but the rest of the enemies are defeated.
I need this condition to be checked at the end of each character's action (whether an enemy or player-controlled), so the battle ends at that point and not at the end of the turn (when all actors and enemies have acted). I've thought about it, but I can't figure out how to do it...
Any ideas?
I'm looking for a way to achieve the following. In battle, there are sometimes small enemies that do not attack. I want to make it so that if the player eliminates all the enemies that do attack but there are still alive enemies that do not attack, the battle is considered won, so the victory screen appears (exp, gold, victory animation, etc.) (and no death animation is shown for those non-attacking enemies). Is this possible?
Specifically, I would like the battle to be declared as won if any of the enemies with IDs 42, 43, 44, 45, 46, 47, 48, or 49 from the database are present (alive) in the battle, but the rest of the enemies are defeated.
I need this condition to be checked at the end of each character's action (whether an enemy or player-controlled), so the battle ends at that point and not at the end of the turn (when all actors and enemies have acted). I've thought about it, but I can't figure out how to do it...
Any ideas?