MV Yanfly Stat Allocation not saved between class changes?

Hey all,

So I've got an awkward situation. My game doesn't actually have class changing, it just does it in the background as a weird way to add additional equipment slots onto a character (EquipCore) when they reach certain levels. So if there's a better way to do that, we can avoid the following.

When I change classes, all of the assigned Allocate points are wiped. AND I am not refunded the items I spent to Allocate. Is there something I'm missing between these two plugins to make them behave? Usually Yanfly mods are compatible with each other, heh.
are your YEP plugins in the correct order?
is there a parameter to be saved?

does other class have the same skillset/passive skills?

I think if those differs, it can wipe out, but if it's a variable, same
class, you can actually save it.

otherwise, notify the player and or return points before changing class?
The classes are copy/pastes of eachother, and I haven't changed their stats at any point during this process.

My plugins could be in the wrong order... they're a mess. But I've tried this with Class Change both above and below Allocate.

I should probably mention that there's a third culprit here, which is this Javascript command:
JavaScript:
if (actor.level > 2 && actor.level < 5) {
var keepExp = true;
actor.changeClass(8, keepExp);
}
else if (actor.level > 4) {
var keepExp = true;
actor.changeClass(9, keepExp);
}
Which is being used in conjunction with LevelUpGrowthEffects so I can grant these changes automatically at specific level-up thresholds. Come to think of it... this might be a default RPGM command, heh.

As I mentioned it doesn't return the points spent. I want to keep the points since this is just an unlock for the player; it wouldn't make sense for them to have to respend points because a new equipment slot showed up.
either go to YEP website for the order or use the plugin in my
spoiler (update version for YEP order.

as for the code to keep exp, there might be a variable that call
the allocation points to be saved in the same way.

but it's only a guess, try to see if it keeps the points if your plugins
are in the correct order.

core
message
battle
etc etc (the list is in the plugin as well) as I keep that list mostly
for all type of plugins from other devs to make it more compatible
with each other.

if it still doesn't save, I hope someone can help you fix that issue 🙂
It's right in the beginning of the documentation for the Stat Allocation plugin:

Stat Allocation in this plugin is tied to classes and not actors as a whole.
This means that the allocation build that an actor can vary depending on the
class the actor currently is. This means the player can experiment with
multiple allocation builds instead of a one-size fits all allocation build
if class changing is involved.
@ATT_Turan Oof. Ya know, maybe one of these days I won't make myself look like an idiot on these forums :hswt:

Hm, well I'm thinking I can build some complicated thing where I store all the player's stats in variables and then apply those to the new class. But that might have problems, too. Like I think it will consider what I set to them to as some kind of base amount, and then the player can then apply MORE attributes on top of that. Ugh.

Is there a better way to lock/unlock equipment slots?
Have you looked at HimeWorks' Equip Slots Core? It provides script calls to modify equip slots during gameplay.
@ATT_Turan Thanks for the suggestion. I decided I'll revisit this later on. I'm not as 100% on the necessity of this in my plans, so I just decided to just leave all three slots unlocked for now. I may try to gate the player's equipment progression in other ways, so it might not be so important. I gotta pick and choose my battles sometimes, right?

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-stat-allocation-not-saved-between-class-changes.148654/