See, what I'm wanting to do is, make a variable for a magic scroll, but only a certain class can use. I know how to set up the variable, but I want to make it so only a certain class can learn it.
Do you mean the ability to have items that can only be used by a specific classes?
If it is, then I have a script for that.
I've done something like this through events. If you mean a certain character can learn it, you just set up a common event and teach the skill to the person using change skills, and on the item make sure there is no target. When used, the person will learn the spell.
Or, if you mean what Dr_Lock mentioned, I believe only a script can do it.
What I mean is, say you have a Spell Scroll for a Mage, but you have a mage and a warrior in your party. But when you try to use it on the warrior, it doesn't work. Only the mage can learn the skill.
The item can only be used by a certain class. Example, as you said about the mage being the only one to use that item, so no one else can use it except a mage class.
If this is what you need, I currently have a script for that exact purpose.
Alrighty.
This is the link to the text file:
https://www.fanshaweonline.ca/pages/personal/60828/script_item_classes.txt (https://www.fanshaweonline.ca/pages/personal/60828/script_item_classes.txt)
The script was made by Behemoth, please credit him. All instructions for the script is written in the text file. Just add it above 'Main'.