MV [Solved] Looking to create a state that blocks revival

Hello, fellow game-makers!
As the title says, I'm looking to create a state (named Incinerated) that blocks revival during-battle. I thought that I accomplished that by making all forms of healing 0% with Incinerate, but Revive still removes the Death state and leaves the party member with 1 HP. I know I'm missing something super simple.
Thanks in advance,
Siri
Spoiler: Incinerate
1646095178337.png
Spoiler: Revive
1646095339303.png
There's probably a more efficient way, but you could have the spell call a common event with a conditional to check for that state...which is actually a few steps, since you'll need to make sure the event knows which character is being targeted and so on, but I think that's getting into a whole other question... Sorry, I know that's not the greatest answer; think of it as a a placeholder until one of the RM gurus illuminates 😉
I know I'm missing something super simple.
no, you're not.

the behaviour of the death state is hardcoded into the engine and can't be changed witihout a plugin.
with a plugin there are several possible ways to go, but can't be done by default at all.

EDIT: the solution with the common event checking for the state will not work because the death state automatically removes all other states. That is part of the behaviour that needs to be changed by plugin.
@Andar I think OP has that taken care of, as he has a note tag in the Incinerate state that bypasses death removal.

@Sirius270 Since the presence of that note tag implies you're using Yanfly's State Categories, if you have access to Selection Control, you can use the <Custom Select Condition> tag to check for the presence of the Incinerate state.

I don't know what syntax to use though. One of the experienced folk will have to give us aid.
I think you could create psuedo states by assigning a switch to each actor. If the switch is ON, have the revive skill fail.
@Andar I think OP has that taken care of, as he has a note tag in the Incinerate state that bypasses death removal.

@Sirius270 Since the presence of that note tag implies you're using Yanfly's State Categories, if you have access to Selection Control, you can use the <Custom Select Condition> tag to check for the presence of the Incinerate state.

I don't know what syntax to use though. One of the experienced folk will have to give us aid.
Hmm... This is likely the best option, as I know - somewhat well - how to use that plugin, but I didn't think of it. I'll do some testing and check back. Thanks for the idea!
Edit: Also - the incinerate state DOES remain on a dead character, so I got that part working, at least. lol.
Try the following. Put it in the note box of your revive skill. I'm not sure what state 632 is, so I just left that alone. Also, b.removeState(1); assumes that your death state ID is "1". You can also use "user" and "target" in place of "a" and "b", but I'm sure you knew that. 😉
JavaScript:
<Custom Execution>
a.addState(632);
if (!b.isStateAffected(24)) {
  b.removeState(1);
  b.setHp(1);
}
</Custom Execution>
This did it! Tested both trying to revive with and without Incinerate inflicted on the target, and it did its job! I took off the b.setHp(1); part and put the healing in the battle formula, and that still allowed me to do the healing I wanted. This was definitely the simple solution for which I was searching. Much appreciated!
Try the following. Put it in the note box of your revive skill. I'm not sure what state 632 is, so I just left that alone. Also, b.removeState(1); assumes that your death state ID is "1". You can also use "user" and "target" in place of "a" and "b", but I'm sure you knew that. 😉
JavaScript:
<Custom Execution>
a.addState(632);
if (!b.isStateAffected(24) {
  b.removeState(1);
  b.setHp(1);
}
</Custom Execution>
Oops, I had to fix a typo. There was a missing ")" after !b.isStateAffected(24). But since it worked, you must've caught it, lol.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-looking-to-create-a-state-that-blocks-revival.145328/