[Solved]YEP Class change Core and Moogle_X Passive Skill - Keep passives only for one class

Hello there,

I use YEP Class Core change and Moogle_X's Passive Skill system (among other, but I think only those two are important for my problem), and I want to make it so that the passive skills learnt are only usable if the actor has access to the Passive skill type.

To give more details, my game has multiple classes, including one called "Adventurer" (id 1), that, at first, has no skills and limited utility. The class only has access to one skill type, called "Knowledge" (id 23). However, whenever the actor reaches max level in another class (let's say black mage for the example), the actors learns a new "Knowledge" type skill (here, "Knowledge of Black Magics"), that give access to every spell of the type to the user. However, in the current case, as soon as the actor has learnt the Knowledge passive, he can use it with every classes, despite "Knowledge" being only available to adventurers.

I tried to put a custom requierement in the skill note tag :
Code:
<Custom Requirement>
if (user._classId == 1) {
     value = true;
} else {
     value = false;
}
</Custom Requirement>
with no success whatsoever.

I hope I've been clear enough, and I thank in advance whoever might help me.
I found a way around the problem, by simply using YEP Auto Passive States.
I just had to made the passive a state, and used
Code:
<Custom Passive Condition>
if (user.currentClass().id == 1) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
in the state Notetag, and now it's working like a charm. Hope this will help someone.

Original thread: https://forums.rpgmakerweb.com/threads/solved-yep-class-change-core-and-moogle_x-passive-skill-keep-passives-only-for-one-class.120284/