posting this here since i cant really figure out how to do this without a plugin but essentially my game has permadeath and i want to give a bit of breathing room by adding a sort of downed state that actors get instead of dying, and then after battle id flip a switch that makes it so they just get the standard death state and are removed from the party next time they die
so far ive been able to get close ish by just giving every actor a hidden state that prevents death and if they reached 0 health in battle a switch is flipped that makes it so they no longer have that state, but you can kind of exploit this by having an actor heal that character when theyre at 0 health before the turn is over and it wont register that they hit 0 health at all because it only checks inbetween turns, ideally the second they hit 0 health they get this state the same as how the death state works
so far ive been able to get close ish by just giving every actor a hidden state that prevents death and if they reached 0 health in battle a switch is flipped that makes it so they no longer have that state, but you can kind of exploit this by having an actor heal that character when theyre at 0 health before the turn is over and it wont register that they hit 0 health at all because it only checks inbetween turns, ideally the second they hit 0 health they get this state the same as how the death state works