Looking for a way to set Custom use Conditions in MV

Good day everyone im here in search of people who are most likely smarter than I am.
I have tried searching for my problem and tried solving it myself to no avail.


I have been searching for a way to set custom use Conditions. I have tried yanfly's plugin for item requirements
but either im missing something or it just does not work for my purpose.


What im trying to achieve is to make items usable by a specific class to learn new skills.
Like a Mage NPC that sells spellbooks. ( I know how to make the Items to teach the skills)
I found out how to restrict items to specific Actors but not specific class.
This would be a worst case scenario option. But ton of work as i would have to make a
common event for every Actor + every possible class for every actor and a state for every skill.
Which would mean If i have 3 classes and 3 actors and 3 skills per class i would need 9 common events per Actor
and thats only using 3 classes with 3 skills.



What i want is to set a restriction on a Item

For example:

White Mage ClassID 1


Item:
Scroll of Heal 1
Contains the knowledge of the Heal 1 spell.


Notetag:
<Enable Requirements>
ClassID: 1
</Enable Requirements>




So you cant use the Item if you are lets say a Archer.


I found a plugin from Himeworks that does exactly what i want but its for Ace not MV.
There was talk about converting it to MV but the last update on that was in early 2016
so i guess its not happening.

Anyone know of a quick elegent way of doing this without having to make a gazillion common events?
Or am i really as ignorant and dumb as i think and im going about this entirely the wrong way?
How do you "use" the item? The only way a specific actor can use an item is if you select it when it's his/her turn in battle. From the menu, there are no "users" of items.

Or are you setting the item up to have a 'target' as One Ally and that's where you want to add the extra restrictions?
The Item itself is not ment to be used in battle. Its a item that adds a skill to the Actor that uses it.
Currently i can use the Scroll of Heal 1 that i made to teach a Actor the spell Heal but anyone can use it
including Actors that are a Class that dont have access to magic type skills. I want to prevent that from beeing possible.

So yes I want to add a extra restriction to only target specific classes.
I can set it up via common events to target Actors as stated above but i havent
found a way to target specific classes
😅 Maybe I've missed something, but I think Yanfly's Item Requirements plugin should be able to do this with no problems. It does require Yanfly's Item Core to work, though. Have you tried:
Code:
<Enable Requirements>
Class: 1
</Enable Requirements>
I have, yes, but it doesnt seem to work.
Code:
<Enable Requirements>
Class: 2
</Enable Requirements>

and now none of my Actors/Classes can use the Item 😅

Is it perhaps actualy working and i need to set a some notetag in the class to
be able to learn the spell? If yes what would that be?

<Edit>
I tested the item in combat and i can use the item to learn
the Skill so it kinda works. Any idea how to get it to work ouside of combat? xD

<Edit 2>
It is not ideal but using the combination of the settings i used and this plugin
https://forums.rpgmakerweb.com/index.php?threads/class-restricted-items.72359/
it seems to be working. Only problem would probably be if you have 2 of the same class in the group
and you chose the wrong user..
you can simplify the common event option so its just 1 event per skill.
item adds a Learn state and then runs common event for that skill

common event:
check if actor 1 has Learn state
-yes > remove state and check if actor 1 is class
--yes > check if actor 1 knows the skill already
---yes > use change item to add book back into inventory with a message pop up saying "know the skill already"
---no > actor 1 learns the skill
--no (to the class check) > use change item to return book to items with message "not the right class"

in the same common event repeat everything above for each actor

edit: items dont get used by specific actors outside of battle so a use requirment wouldnt work. ur looking for some kind of "target is class" requirment which i dont think exists
I'll check your option
You could probably do it by checking the targeted actor's class with a Conditionnal script check in your CE, but I don't know the exact functions to do that.
So my above mentioned way works.
Setting a item to teach a skill and set scope to user and using the plugin from the other thread. Setting the scope to user is Vital. If you set it to ally then only the specified class can use the item but can use it on whom ever you choose. By setting it to user and specified class only the actor that is that class can use the item.

Continuum's plugin:
https://drive.google.com/open?id=0BwFAbublt0QtT1VGbU4tbEdYMW8

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-way-to-set-custom-use-conditions-in-mv.107412/