.

.
You can try this one. It let's you set restrictions based on classes, so your revival item could only be used on whatever class that character is.

Alternative non plugin solution could be running a common event that checks if it was used on the right actor, and if not, do nothing so the player is wasting the item if they fail to read the item description.
I once made a plugin to control what actor/class can use which items and on what actor/class can be selected as target.

.
Weird that this isn't a built in feature after all.
Why? Which traditional JRPGs had it?

I can only think of Phantasy Star 4, where the androids had a specific revive item.
I think there's some games where revive items hurt undead characters
.
I would be inclined to have the revival potion or item call a common event. The common event could let the player choose who to apply it to, check for eligibility, output suitable messages such as "You can't revive an android with a life-restoration, take it to the workshop" or "They don't need reviving, they are still alive!", and, if the item is consumable, replace it in the inventory if it isn't used.
.

Original thread: https://forums.rpgmakerweb.com/threads/170261/