Indifferently target alive and knocked out characters

Hi everyone,

I am planing to differentiate between two "out of action" states for the characters of my game: "knocked out" and "dead":
  • "knocked out" is the state the character reaches when getting to 0 HP. This state is removed after a fight (the character wakes up with 1HP).
  • "dead" is a special long lasting state that can only be healed by very special and rare means.
... so far, so good, all those things are easily done by defining the two states and checking the appropriate system options.

It got tricky when I wanted to define the healing items and skills... I plan on having no everyday item that removes the "dead" state (like a phoenix down). However, I want the everyday healing items and skills to be able to remove the "knocked out" additionally to the healing effect.

Problem is: off-the-shelf, RPG Maker MV only allows to target either an ally with HP>0, or an ally with 0 HP.

I assume that I am not the first who attempts to implement this kind of effect (many games have super elixirs or such, which can be used to revive and/or heal). So far I only found threads where the question wasn't answered, but maybe the answer is out there, and someone might show me where...
Ok... so I'll let the thread here in case someone needs it sometime...
But I found a solution that works.

There is a plugin by Kadokawa for exactly that purpose available in the "dlc" folder of MV (location might differ if MV wasn't bought via steam). The plugin is called "DeadOrAliveItem" and works not only for items, bur for skills as well!

(also there are pleeeeenty of ohter resources in this folder of which I didn't know about. This is truly awesome 😀)

---
EDIT: if you are using Yanfly's plugins, there might be compatibility issues. Those are luckily solved by this compatibility plugin:

Original thread: https://forums.rpgmakerweb.com/threads/indifferently-target-alive-and-knocked-out-characters.144469/