How to create an item only one member of the player party can use?

Topic says it all! I want the PCs to have to unlock spells by buying them from a store, a la the original Final Fantasy. I've created a "spell scroll" item that teaches a spell skill when it's used. Thing is, any PC can use it, which obviously isn't optimal as only one of them can use magic.

I'm wondering how I might go about designating an item as "this character only." Thanks!
by default the way to go is to use a common event instead of a direct effect.
you make an invisible state "target" (no icon, no messages, no effect) and have the item in question apply that state to the user, then call a common event.
the common evevent checks for all actors which one has the state and then give different results based on that - from show text "you don't understand this" over "the scroll bursts in flames in your hand and you learn nothing" to the learn effect.

you can also make the item non-consumable and only remove it after the correct actor used it and so on.


Other than that you would have to resort to plugins and javvascript
Are you using this item from the menu or from battle? The concept of a "user" is only valid in battle, when each actor has their turn. When used from a menu, an item is not used by an individual party member. If you choose "one ally" as the scope, you can use it on a party member.

From the menu, I'd just have a common event check if the particular actor is in the party, and if they are, have them learn the skill, and if they aren't, show a message and don't remove it from inventory.
Thanks for the help, guys! I think these should get me where I'm looking to go! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-an-item-only-one-member-of-the-player-party-can-use.131008/