two death states?

Hello!

I'm here with a question

So, let's say I have a skill wich has a chance to apply death(state applied to all enemies/allies when HP gets to 0.

But, I don't want the player to use that skill to kill a boss. Much like final fantasy.

If I put the boss immunne to death, obviously, he'll be always alive, and I don't want that, as such,  just like undead enemies.

I Don't know if there has been people asking this or if there's a script for this, so I apologize if there is.

Basicaly, I would like to know how to make two death states wich are applied to targets, but one is inefective against certain enemies, if I'm making any sense.

Does anyone have any clue on how to do this?

Sorry if I'm a bit vague.
Does the skill do damage even if it fails? If not, you could create a new "element" named "death", set the skill that applies it with a low accuracy and damage formula of 999999999, and elemental type of "death", then give the element rate of "   *0  " for death to the enemy.

I'm sure there must be a better way though. Sorry I don't know it.
Use State Rate * 0 for the default death state for any enemies you want to be immune to instant death. Unlike State Resist, enemies will still die normally when their HP reaches 0.
Does the skill do damage even if it fails? If not, you could create a new "element" named "death", set the skill that applies it with a low accuracy and damage formula of 999999999, and elemental type of "death", then give the element rate of "   *0  " for death to the enemy.

I'm sure there must be a better way though. Sorry I don't know it.
Maybe I'm going to use this one as well in the future!I'm going with the post below, but you helped as well 🙂

BTW the element rate on the enemy should be 1000% tough.

Use State Rate * 0 for the default death state for any enemies you want to be immune to instant death. Unlike State Resist, enemies will still die normally when their HP reaches 0.
Thank you!

This is solved!

Original thread: https://forums.rpgmakerweb.com/threads/two-death-states.37402/