I'm using this script to create permanent death.
for (var n=0; n<$gameParty._actors.length; n++) {
if ($gameActors.actor($gameParty._actors[n]).isStateAffected(1))
{$gameParty.removeActor($gameParty._actors[n]);}
}
But I have a character in the game whose death should lead to an instant game over. I tried to do this through a condition that checks for the presence of this character in the party, and created an else branch for him, and inserted logic there that would have to launch the game over screen. But it worked exactly the opposite. The character was in the Party, but the game still launched the Game Over screen. And if I inserted a condition into the main branch of the condition, then the event was not triggered at all, even if the character was absent from the party
for (var n=0; n<$gameParty._actors.length; n++) {
if ($gameActors.actor($gameParty._actors[n]).isStateAffected(1))
{$gameParty.removeActor($gameParty._actors[n]);}
}
But I have a character in the game whose death should lead to an instant game over. I tried to do this through a condition that checks for the presence of this character in the party, and created an else branch for him, and inserted logic there that would have to launch the game over screen. But it worked exactly the opposite. The character was in the Party, but the game still launched the Game Over screen. And if I inserted a condition into the main branch of the condition, then the event was not triggered at all, even if the character was absent from the party