looking for a script where items can only be used by certain actors/classes

In my project, I have several types of consumable items. There are medical kits, which are only supposed to heal humans/animals, and robot repair kits, which are only supposed to heal robots/mechanical beings.

I have tried using several existing scripts, but none work exactly how I want it to. One made it so that certain items can only be selected from the item menu by the marked actors/classes, but then it would always work on the target regardless if they should be able to have it affect them.

It needs to be so that these consumables only work on certain classes and actors that I mark.

For instance, a medical kit can be selected by anyone, but in order for it to affect the target, the target needs to have a note tag or whatever that allows them to actually be affected by it.

I would be very grateful to whomever can make this. Hopefully my explanation makes sense.
Have you tried Victor Sant Action Restriction?
Or Hime use conditions tag
You could also try Hime's Tag Manager.
We're on the same page. The use conditions script requires the tag manager script.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-script-where-items-can-only-be-used-by-certain-actors-classes.123107/