Actor Specific Items

Is there a way that items can only be used by specific actors? I want to have spell books that teach spells to people based on their class or element. Something like that. If you could reply quickly, that would be great.
One word: common events. (well, two)

This is possible without scripting.

 
A tutorial in pictures:

Spoiler
RGBHvUL.png

 
J3C9YOQ.png

Class applied, skill learned, all are okay for conditionals.
 
Cf5LfZy.png


If you don't know which actor it is, set a variable equal to the actor ID, then in Change Skills, set it to Variable, then that variable.

xKoJVIZ.png


mXU70ua.png


Then, in the items database...
 
5Dcqbqp.png

 
h5P4f4b.png
Edit: as for "spells or class", easy, just set the conditional to "if actor has class [blank]" instead of "if actor in party".
This can be closed, now!
One question: does that add a skill for all current actors in the party? Because I want it to do that only with the selected actor.
With the tutorial, there is no "selected actor". You could set up a choice menu so that the player can choose who learns the skill, but otherwise, the flaw with using common events is that there is no "selected actor". The game doesn't register who is being selected, because the item doesn't heal/restore mp/add stats/do something.
Not selecting an actor is not because you're using a common event, but because your scope is set to None"


If you set the scope to "One Ally" then you can select a target.
Thanks, Tsukihime! NOW this can be closed. 😀

Original thread: https://forums.rpgmakerweb.com/threads/actor-specific-items.45001/