Instakill random enemies

I have a special weapon that kills random enemies on one hit, however for obvious reasons, I do not want this to affect bosses or unique monsters. How do I go about inflicting death upon regular foes, as putting 100% death would kill anyone unless I make the boss immune to death, rendering killing them impossible.
If i'm not mistaken, @Tsukihime have a plugin that was similar to my 'Incapacitated states' script from VXa that allowed you to assign states that are considered "death states".


My script had another feature that i don't know if hime plugin offers. allowed you to create states that inflicted death, although they used their own resistance.


This would be exactly what you want, since you could create a new state that inflict death, but would be able to make enemies imune to it without making them immortal.


Anyway, this script was in fact quite simple code wise, i might move it to MV after the next plugin release.
I believe this is what you are thinking of http://mvplugins.com/plugin/HimeWorks/HimeWorks%20-%20Custom%20Death%20States
For the feature that @Victor Sant refers to about having a state inflict another state, my Custom Death States doesn't support that.


However, placeholder states can be used for such functionality




For example, let's say you created state 30 called "Boss-Only Death" and your note-tag was


<placeholder state>
   1
</placeholder state>


Assuming 1 is the death state, adding state 30 to an enemy would add state 1 (instead of 30).


Resistance is calculated based on resistance to state 30, so all other enemies could be resistant to state 30, while only certain bosses are vulnerable to it.
For the feature that @Victor Sant refers to about having a state inflict another state, my Custom Death States doesn't support that.


However, placeholder states can be used for such functionality





For example, let's say you created state 30 called "Boss-Only Death" and your note-tag was



<placeholder state>
   1
</placeholder state>


Assuming 1 is the death state, adding state 30 to an enemy would add state 1 (instead of 30).


Resistance is calculated based on resistance to state 30, so all other enemies could be resistant to state 30, while only certain bosses are vulnerable to it.



I think you misunderstood my original request, I actually wanted the bosses to be resistant to the state. However, I think this method will probably work, I'll run a test on it later.
Making bosses resistant to death would make it impossible to end the battle, since there's only one death state by default.
There's a difference between setting the State Rate for the KO state to 0% and giving it the State Resist trait for the KO state. If an enemy has a KO State Rate of 0%, this only applies to effects that inflict instant KO—they will still die normally when they hit 0 HP. If they have State Resist: KO (as per the default "Immortal" state), then the KO state can never be applied even if they fall to 0 HP.


Thus you would simply use "State Rate: 0%" for the Death state. This won't stop them from dying normally, but it will prevent them from instant death via an Add State effect.


(Also, keep in mind that added states are subjected to chance modifiers based on the attacker's and the target's Luck. If you want the attack to be 100%-guaranteed death regardless of stats, just put an Add State rate of higher than 100%. (Or you can go into the code and alter/remove the Luck modifier.))
actually making the the death rate state at 0 percent just stops the state being applied. once the hp reaches 0 they still die. thats how my play tests have ran at least.

Original thread: https://forums.rpgmakerweb.com/threads/instakill-random-enemies.57538/