how do i make an actor only use specific items

i want to make it so an actor in my game can't use regular items but can only use items specifically made for them
for example: the actor can't use medkits to restore health but instead has to use batteries

how would i go about this? would i have to use elements or another feature within the engine?
Hello! A plugin I would recommend is this one: Yanfly Item Requirements.
Then, in the notetag of the item(s), you would have this:
<Enable Requirements>
Not Actor: ##
</Enable Requirements>
Where ## is the Actor.ID number.
Hello! A plugin I would recommend is this one: Yanfly Item Requirements.
Then, in the notetag of the item(s), you would have this:
<Enable Requirements>
Not Actor: ##
</Enable Requirements>
Where ## is the Actor.ID number.
this sounds like just what i need, thank you
after playtesting with it for a bit, i realized that it wasn't working as intended
i messed around with the notetags a bit but couldn't get the desired effect
notetags for ham.png
notetags for car battery.png

the one on the left (the ham item) is supposed to stop the 8th actor from using it, but it doesn't do that, they can still use it
the one on the right (the battery item) is supposed to stop anyone besides the 8th actor from using it, but it instead stops everyone (including the 8th actor) from using it

was i doing something wrong here? were there requirements that were missing? did i have to put the notetags at the top of the thing?
after playtesting with it for a bit, i realized that it wasn't working as intended
i messed around with the notetags a bit but couldn't get the desired effect
View attachment 333105View attachment 333106
the one on the left (the ham item) is supposed to stop the 8th actor from using it, but it doesn't do that, they can still use it
the one on the right (the battery item) is supposed to stop anyone besides the 8th actor from using it, but it instead stops everyone (including the 8th actor) from using it

was i doing something wrong here? were there requirements that were missing? did i have to put the notetags at the top of the thing?
Hey there! So, the problem COULD be that you're numbering the actors wrong. If I remember correctly, actors actually start at 0, rather than 1 (programming quirk). So, try using Not Actor: 7 and Actor 7, respectively. If THAT doesn't work, please give screenshots for your actor list.
Edit: Could you also give a screenshot of your plugins view?
actor starts FROM 1, NOT 0, that is $gameParty.members()[0]
for actor 1 (or leader), that is a different.

Hime has also an item, which can give a negative to other actors if
not the actor that can use it.

but I think there was a thread on this effect as well.

edit:
can't find the other thread but find this [link] which might would too.
restrict by state, restrict by item and 1 other.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-an-actor-only-use-specific-items.175930/