"Yanfly's Class Change Core" one directional class tree?

Basically the problem I'm having, is that Yanfly's core on it's own, allows actors to change classes to whatever they want. But what I'd want it to do, is lock an actor into a path among that tree. No going backwards, only forward and branch hopping. Here's a quick diagram of what I'm looking for:

tumblr_onex12vAaE1qj4e56o1_1280.png


I'm currently using Yanfly's Class change core, in combination with Corniflex's plugin for the class-tree aesthetic But I'm not entirely sure if it's something that can be edited within the plugin, or if another plugin needs to be used in conjunction. And I've tried using the pluggin commands for Yanfly's plugin, however if a class has already been unlocked by an actor, it won't allow me to remove it from the list.

Pretty much similar to how digivolution works in Digimon Any help would be great! Thanks gusy!

Links:
Class Change Core: http://yanfly.moe/2015/11/27/yep-32-class-change-core/
Direct Script: http://yanfly.moe/plugins/en/YEP_ClassChangeCore.js
Class Change Tree Add-on: https://forums.rpgmakerweb.com/inde...uggins-yanfly-addons-latest-class-tree.57177/
Yanfly's class core has plugin commands to remove a class from availability - just use that command after the actor moved on to the next class to remove the previous one from the available list.
This might require a bit of tricky eventing to detect a class change, but won't require a plugin edit.
What you need to do is create a conditional branch tree where the plugin command RemoveClass (Actor #) (Class #) executes when the character's class is advances. & then place the conditional branch tree in your database.

I use something similar to have my character's skill usage to determine which classes unlock.
Can't you notetag each class with a restriction to which they can go?
@Pine Towers no, because notetags have by themselves no function, they are only ways to tell a plugin what to do. And from the description I read, Yanfly didn't provide a notetag for locking - which would make no sense anyway because notetags are static and your intention is to have a dynamic tree in the programming sense (dynamic as in that the class allowed at the beginning are no longer allowed later)
Thanks for the replies guys! I've tried doing the whole conditional branch thing with no complete avail.

It seems to work, but only for non branching classes. Looking at the chart, I can successfully remove "1" but if 1A and 1B unlock from the same condition, it's not letting me remove either of the two after one has been chosen.

Thinking about it, I imagine it has to do with the unlocking requirement note tags. So if as long as class 1 meets the condition, 1A and 1B will always be unlocked. Is it possible to reset the level of a class with his plugin in order to break the requirement loop?
@Andar, thanks for the input. Haven't saw how the plugin works. Was thinking on the line of "Class notetag: Lock class x,y,z; unlock class a,b,c"

@KingKraken, could you work around it by using item requirements? The soldier is promoted to stormtrooper or sniper when showing the Bronze Medal to his superior. The item is spent so he can't switch around. The Silver Medal opens 4 classes, but 2 are locked since they require be either stormtropper or sniper to be promoted.
@Pine Towers That's a great idea! Any clue how I'd be able to implement that though? Seems like Yanflys class system only allows for level and job point based currencies.
Well, you could make a conditional branch in the Officer NPC (Event) to check for said item, thus, upon spending it, that branch of conversation is off. Use plugin command to open the class change screen (scene) so as to not allow the player to enter the scene by itself, only through the NPC.

Speaking of plugin commands, there's Enable Class and Disable Class commands that can be used to unlock/lock classes.
There's ways, but the best one is the one that most suits your game. Good luck on that!
@Pine Towers I appreciate the help! Although I have already mentioned, that the plugin commands aren't working for me due to that requirement loop. The npc thing would work but only for my my classes that don't split. Which means I wouldn't need to use it.

So sadly, I'm back at square one! Pretty sure I Isolated the issue though:

I just need some kind of plugin or script call that in combination with Yanflys Class Change Core, will allow me to alter the individual class levels of available character classes.

However what could also be helpful, would be the same kind of addition to Fox's Job Level Addon. And the effect of editing a classes job levels.

Either way it's the levels and job levels of individual classes being retained which is causing my issue! As long as Class 1 stays level X(even if Class one is removed) , the preceding classes will keep unlocking, despite being removed by a common event.
I'm having a similar issue and I was wondering if after some time you found a solution to this. I wanted certain characters to have access to some classes that would follow a progression system similar to your @KingKraken:

In my design would look like this (I have current level transferring):

Actor 1 is a Fencer
At lvl 8 Dragoon is unlocked
At lvl 21 Dark Knight is unlocked
At lvl 32 Blade Master is unlocked

Actor 2 is a Monk
At lvl 20 Magician Warrior is unlocked
At lvl 36 Sorcerer is unlocked

My problem is once actor one reaches level 20 he can be a Magician Warrior. Actor two can become a Dragoon or Dark Knight at the respective required levels as well.
I'm having a similar issue and I was wondering if after some time you found a solution to this. I wanted certain characters to have access to some classes that would follow a progression system similar to your @KingKraken:

In my design would look like this (I have current level transferring):

Actor 1 is a Fencer
At lvl 8 Dragoon is unlocked
At lvl 21 Dark Knight is unlocked
At lvl 32 Blade Master is unlocked

Actor 2 is a Monk
At lvl 20 Magician Warrior is unlocked
At lvl 36 Sorcerer is unlocked

My problem is once actor one reaches level 20 he can be a Magician Warrior. Actor two can become a Dragoon or Dark Knight at the respective required levels as well.

I didn't find a solution to my specific issue quite yet. I think it's something that would have to be modded into the plugin. But for your issue, have you tried using the "RemoveClass" plugin command to lock out the specific class options for your characters? I think that should work.
If i'm not mistaken, it worked just fine for me. My issue is that I didn't want class switching, I wanted permanent class advancement. So give that plugin command a try!
I didn't find a solution to my specific issue quite yet. I think it's something that would have to be modded into the plugin. But for your issue, have you tried using the "RemoveClass" plugin command to lock out the specific class options for your characters? I think that should work.
If i'm not mistaken, it worked just fine for me. My issue is that I didn't want class switching, I wanted permanent class advancement. So give that plugin command a try!

At first I was going to ask if you had any other suggestions because I (thought I had) tried that, but then realized I was putting "RemoveClass" as a notetag and not a plug in command. Thank you for opening my eyes to the issue!

But I also have a follow up question- Should I have the plugin commands for every character as part of my opening scene whether or not they are in my party? Or does RemoveClass only work when the class has been unlocked (at a higher level)?
@KingKraken

Perhaps using Yanfly's Utility Common Events can help
http://yanfly.moe/2017/04/21/yep-133-utility-common-events-rpg-maker-mv/

Whatever common event you have in the database that has the conditional branch with the plugin command "RemoveClass x y" (e.g. RemoveClass 5 6) for each actor, place that common event ID on the plugin's Close Menu parameter and that should no longer have the previous class there.
Why not use AutoPassive States?
Just use javascript with the
<Custom Passive Condition>
</Custom Passive Condition>

And run conditional branches that check what class the target or user is and then remove any classes compared to them.
Honestly it would be a set of repeating conditional set of conditional branches, that would check for a specfic class, and then remove any other classes you want.

If you don't mind waiting untill 11/24, I can code a basic skeleton structure code.
I've been looking to do this exact same thing! Let me know if you figure out how to do it!
Hey, just wondering if you ever find a solution to this.
I found a rough work around for this.

My work around involved using Yanfly's Main Menu Manager:
http://yanfly.moe/2015/10/17/yep-14-main-menu-manager/

With this you can add your own menu commands. I created one called Class, turned off the default class menu and had my Class button call a common event that opens the class change menu instead. Doing it this way allowed me to run a check before the class menu is opened that I can use to disable jobs. The common event also opens the normal menu after you exit the class menu to simulate using pressing finish or using the cancel button because otherwise you return to the game.

For test purposes I have fighter then you can become Knight or Berserker. If the common event check that happens before the class menu opens sees that the actor is Knight, it disables the ability to change to Fighter or Berserker and if they are Berserker, it disables Fighter and Knight.

You should disable the ability to learn skills(if that applies) from the class menu because the lack of restrictions with the plugin by default opens an exploit where players would be able to change jobs, learn skills then change to the job they actually want.

Common Event:

pKyPfma.png


Plugin Part:
l9xqr9n.png

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-class-change-core-one-directional-class-tree.76393/