Item that only specific actor can use

Hi, anyone knows how to make an item that only Actor 1 can use even when he/she is in a group? I have VS plugins but it only allows me to enable the usage of an item if Actor 1 is the team leader and when Actor 1 is the team leader, everyone in my team can use the item. I use this code in the item's notetag.

<JS Item Enable>
enabled=user==$gameActors.actor(1);
</JS Item Enable>
So, I don't know anything about the plugin so I can't give you a plugin related solution.

However, I think you can do this independent of any plugin. It sounds like you are really talking about an item and not a weapon or armor.

For an item, anyone in the party can try to use it, but in the Effects area of the Item in the database, you can set it to call a Common Event. That Common Event could then check to make sure the specific actor is in the party. Outside of combat, the party acts as one so you don't need to check who is the one trying to use an item.

If you want to let the player use the item in combat and want to restrict which actor can use it, I believe the Common Event can check for that as well. I would try using a variable to check the Last Actor ID to Act game data. That may or may not work, I haven't tested it. If it doesn't, I am pretty sure there is another way to check.

So, using Items outside of combat I think calling a Common Event would make this possible for you without a plugin.

Doing something like this with a weapon or armor is even easier without a plugin. You can just give the weapon or armor a unique type and only give that weapon or armor type to the Actor you want.

Hopefully someone who uses the plugin will be able to give you a simple plugin answer as well.

Good luck!

EDIT: @Andar ninja'd me. I didn't see their post below because I was typing mine. 🙂
no need for plugins, but it is a bit tricky to do without them.

make an item to give an invisible target state to the user, then call a common event.
in the common event you check for every actor if it has the state appled.
if yes, remove it and do what the item should do for that specific actor - for example show text unusable or apply the effect.

EDIT: partially ninja'd

Original thread: https://forums.rpgmakerweb.com/threads/item-that-only-specific-actor-can-use.155937/