(Answered) (Yanfly) Possible to add skill based on class/subclass combo?

Is it possible to add a Skill to an actor only when a certain Class/Subclass combo is achieved?


Example Guardian + Paladin OR Paladin + Guardian = Crusader (Already achievable).


As a Crusader I gain an additional Paladin skill called.. uhh... Crusader Strike. Totally just ripped off that name, but it was what popped into my head. lol


How would I go about learning a skill like that? But then also having it disappear from the Paladin skill list if I swap classes.


*edit* Thanks to Ogouka for:


<Require Class: 3, 37>


<Require Subclass: 37, 3>


This allows the skill to be used by either combination of classes. The skill, however, still shows up grey.


*edit* Decided to mark this as answered since the title was answered. I'll ask the other question with an appropriate title.
Yeah. If you just put the tags in the note as requiring both Paladin and Guardian, it should only be usable if you have both active. Not entirely sure if it'll vanish from the list when you switch, but it shouldn't be usable at the very least.
Hmm.. doesn't quite work like that. Using <Require Class: 3, 37> just makes it so either class has access to it as long as they can access the Paladin skill set. Which means a plain old Paladin has access to it. Though looking in the note tags I can set it to require a specific subclass, but it still appears in the Paladin skill set, just simply greyed out if the actor is a plain Paladin.
Ah. Misunderstood. Thought you had one of them as a pure subclass. My bad.


Try this, maybe? Not sure if it will register those separately or jointly. If that one doesn't work, I dunno. I don't mess with subclasses much.


<Require Class: 3, 37>


<Require Subclass: 37, 3>
That worked! Still shows up as greyed out instead of disappearing, but at least now either combo can unlock the skill.
It looks like to make the skill disappear entirely I could use this:


<Custom Show Eval>


?


</Custom Show Eval>


But I have no idea what I would write in between those to make it only show with those class combinations.
Well..I don't really speak Java, but I guess it couldn't hurt to try something while we wait for someone that does to answer?


Try this? I doubt it'll work, but maybe we'll get lucky 🤣


<Custom Show Eval>
if (user.class = 3, 37) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
The skill still shows up for the Paladin class, but greyed out. I am not so lucky this time. lol
Just for paladin, or guardian, as well?
It's only part of the Paladin skill set "Sanctify", so it only shows up greyed for the Paladin. The Guardian skill set is "Defensive". Only when the two classes are combined does it light up in the Paladin skill set. I just want it to disappear off the Paladin list entirely if the classes aren't combined.

Original thread: https://forums.rpgmakerweb.com/threads/answered-yanfly-possible-to-add-skill-based-on-class-subclass-combo.60092/