MV Rpg maker MV - Stat Allocation (YEP) and Equip Core Help

Good Day, Everyone!

I was making some items using the Equip Core Plugin to increase an actor's parameter. Like every normal day.
I use this in the notetags of the weapon for example:
Code:
<Custom Parameters>
maxhp = user.paramBase(1) / 2;
maxmp -= user.paramBase(1);
</Custom Parameters>
I give the actor MaxHP based on half of the actor's MaxMP.
Then make MaxMP to 0.
This works fine. However,

When I upgrade the actor's parameters using Stat Allocation (YEP)
The user.paramBase does not detect the allocated stats and only detects the class parameter curve's settings.
This is because the Stat Allocation is tied to classes and not actors as a whole.
Variables however, do detect allocated stats, though I have too many heroes to store their parameters.

Is there a way to have an option for Stat Allocation to bind it to actors.
or is there another Custom Parameters Code that can detect the allocated stats?

Thank you, and have a good morning, afternoon or evening!
I didn't check the stat allocation code specifically, but I'd wager a guess that the increase from it will be factored in if you use the function param(paramId) instead of paramBase(paramId).
I didn't check the stat allocation code specifically, but I'd wager a guess that the increase from it will be factored in if you use the function param(paramId) instead of paramBase(paramId).
Thank you for your reply.
I just tested this and it ended up freezing the game when the weapon was selected. :/
Oh right, the param function does factor in the stat allocation - but also evaluates equipment bonuses. So we built an infinite loop 😅
Try instead user.paramBase(1) + user.paramAllocationBonus(1).
This should take the base and only specifically add the bonus from the allocation.
Oh right, the param function does factor in the stat allocation - but also evaluates equipment bonuses. So we built an infinite loop 😅
Try instead user.paramBase(1) + user.paramAllocationBonus(1).
This should take the base and only specifically add the bonus from the allocation.
That worked. Until we try to subtract. Its as if the limit is the Class Parameter Curve's setting.
Even if I use the General Setting Parameter Change and do -999, it will only subtract the Actor's Class Parameter Curve's setting and won't go lower than that. For example.
If the actor has 100 MaxMP. 40 MaxMP in the Class Parameter Curve's setting, and 60 MaxMP allocated stats.
It will remove 40 MaxMP no matter how much we subtract.

I tried to use - user.paramAllocationBonus(1) But it ends up as the same limit.
That is really weird. Both functions just return a number. It should not matter what math you do with the numbers and at a glance I don't see any special limitations in the code. Could you please post the whole notetag you are trying?
You could also try the following instead of the -= (though it should not make a difference):
JavaScript:
maxmp = -1 * (user.paramBase(1) + user.paramAllocationBonus(1))
That is really weird. Both functions just return a number. It should not matter what math you do with the numbers and at a glance I don't see any special limitations in the code. Could you please post the whole notetag you are trying?
You could also try the following instead of the -= (though it should not make a difference):
JavaScript:
maxmp = -1 * (user.paramBase(1) + user.paramAllocationBonus(1))
This cause the same problem and it also made MaxHP gain the Allocated stat points from MaxMP.
which is funny...

About the whole notetag(whole notetag is at the bottom). I tested it without notetags and a plain old normal weapon with -999 MaxMP as a general setting is making the same problem.
I went through the plugin order of yanfly but that is in order.
I think the problem is that many plugins are collecting data from the actor and base parameters.
While Stat Allocation is kinda its own parameter. As it says "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." I am not using the plugin Class Change Core But I might have to look into it.

The whole notetag I was trying and notice the problem with is this.
Code:
<Custom Parameters>
maxhp = user.paramBase(1) / 2;
maxmp -= user.paramBase(1);
</Custom Parameters>
Huh, sorry. I am pretty much at my wits end. I just rechecked both Yanfly plugins and now I also checked the core scripts. But I can't find anywhere where it would put such a limit in place. My last guess is that maybe some other plugin interferes? Have you tried disabling all other plugins?
Huh, sorry. I am pretty much at my wits end. I just rechecked both Yanfly plugins and now I also checked the core scripts. But I can't find anywhere where it would put such a limit in place. My last guess is that maybe some other plugin interferes? Have you tried disabling all other plugins?
Thank very much for helping.
I indeed started with that and so far the problem still exists.
Sadly my scripting knowledge is far from good.

Edit;
I also found that the Trait parameter % in the weapon and armor data base is also ignoring the Stat Allocation.
I fear that allocated stats is completely ignored by all % based parameters. I will try and test buffs and debuffs and so on.

Edit2; I discovered that even with Stat Allocation off the problem still exist.
I will continue my search.

Edit3; So after a whole day of trying things, I found out that the user.paramBase(Value) in the equip data will only check the Class Parameter Curve's setting as Initialize. If I increases the stat with actor change stat. It is ignored to the paramBase. But user.mp works perfectly fine, but only as current mp. When I use mmp or maxmp it does not work. I can't seem to find a way to check the actor's maxmp in the equip data using yanfly <Custom Parameters>.
In the end, The Stat Allocation plugin is not the problem. But the Equip Core's user.paramBase(Value)
I will continue my search.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-stat-allocation-yep-and-equip-core-help.150838/