MV Yanfly Subclasses will not change my equips!

I have a script request but unfortunately cannot pay at this time and do not know if I'll be able to. The script is to bridge the Yanfly Subclass and Equipment plugins.

Yanfly_Subclass
Yanfly_Equip_Core

Equipment changing is an important part of my game and I have primary classes, secondary (sub)classes, and then evolved subclasses. Certain subclasses unlock when primary reaches level 5, then evolved when secondary reaches maybe 20-25? Each type of class changes equips. Primary gets about 6 slots, secondary 8, evolved 10, and evolved has a 'class claim' equipment, basically a special item that effects a skill. For instance, my primalist class is supposed to be able to shapeshift and depending on which 'primalist claim' is equipped, you can turn into a wolf, cat or raven.

Unfortunately, I can't get the Yanfly Equip Core to pair with Yanfly Subclass in the way I need to for this effect, the most I can do is allow the subclass to effect types of equips but not equip slots.

If I have to I can just make the starter classes include the equip slots I want but I'd rather 'evolve' the classes through the game. I could also change the subclasses to classes and use races as subclasses but that will take a while to rework and is not how I want to have the game work.

Finally, there isn't much of a deadline but 2 weeks to a month would be preffered.

Thank you!
So, what is the actual thing you request? That equip slots are entirely determined by subclass instead of main class? That subclass slots are added to main class slots?
So, what is the actual thing you request? That equip slots are entirely determined by subclass instead of main class? That subclass slots are added to main class slots?

If no subclass is equipped, the slots should match main class. If subclass is equipped, then only those slots are used. This way char can still start out without a subclass.
Open the Equip Core in a text editor, and go to line 461. Change it to read:
Code:
var slots = this.subclass() ? this.subclass().equipSlots.slice() : this.currentClass().equipSlots.slice();

Save the plugin, reload in your plugin manager, save your project, start a new play test.

That should grab the equip slots off of a subclass if you have one equipped, otherwise off of the main class. I haven't tested it, so give it a whirl and let us know if there are any problems.
Open the Equip Core in a text editor, and go to line 461. Change it to read:
Code:
var slots = this.subclass() ? this.subclass().equipSlots.slice() : this.currentClass().equipSlots.slice();

Save the plugin, reload in your plugin manager, save your project, start a new play test.

That should grab the equip slots off of a subclass if you have one equipped, otherwise off of the main class. I haven't tested it, so give it a whirl and let us know if there are any problems.
Trying that now, I'll let you know how it works
Open the Equip Core in a text editor, and go to line 461. Change it to read:
Code:
var slots = this.subclass() ? this.subclass().equipSlots.slice() : this.currentClass().equipSlots.slice();

Save the plugin, reload in your plugin manager, save your project, start a new play test.

That should grab the equip slots off of a subclass if you have one equipped, otherwise off of the main class. I haven't tested it, so give it a whirl and let us know if there are any problems.
Mostly works. Now it doesn't register the main class equips but I'll just make subclasses for that I suppose based more on equips than skills.

Thank you!
Mostly works. Now it doesn't register the main class equips but I'll just make subclasses for that I suppose based more on equips than skills.
Or we could just fix it? 😛

Try:
Code:
var slots = this.subclass()!=this.currentClass() ? this.subclass().equipSlots.slice() : this.currentClass().equipSlots.slice();

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-subclasses-will-not-change-my-equips.152107/