Yanfly Stat Allocation JP persist between Class Changes?

So you just want the parameter amount increased by the stat allocation to carry over, not the whole parameter value?

I.e. my atk is 10, I add +5 via stat allocation. Next class has base AtK 6, so when I change class my atk should be 11 and not 15

is this correct?

I want everything in stat allocation to be carried over.
Hello,

I took a look at the plugin and have devised this for you. It "should" do what you want with some minor changes.
JavaScript:
Game_Actor.prototype.getBaseClass = function () {
  var currentClass = $dataClasses[this._classId];
  if (currentClass) {
    if (currentClass.note.match(/<Base Class:[ ](\d+)>/i)) {
      return Number(RegExp.$1);
    }
  }
  return this._classId;
};

If you add the above function to right under the beginning of the Game_Actor code, and then replace anywhere where this._classId is in any of the Game_Actor functions with this.getBaseClass() it should....probably do what you want?

To use it in the class notebox area for each job, just add:
<Base Class: x>
wherein x is replaced with the class id of the initial job that, that class starts out as. Not having the notetag would revert it back to its current functionality for that job. This way, if you have a class say

Gladiator that then turns into Paladin, if Paladin has that notetag with the x value being that of the class id of Gladiator, then Paladin would get the stat allocation values of Gladiator. If not then it would work as it does now.
Hello,

I took a look at the plugin and have devised this for you. It "should" do what you want with some minor changes.
JavaScript:
Game_Actor.prototype.getBaseClass = function () {
  var currentClass = $dataClasses[this._classId];
  if (currentClass) {
    if (currentClass.note.match(/<Base Class:[ ](\d+)>/i)) {
      return Number(RegExp.$1);
    }
  }
  return this._classId;
};

If you add the above function to right under the beginning of the Game_Actor code, and then replace anywhere where this._classId is in any of the Game_Actor functions with this.getBaseClass() it should....probably do what you want?

To use it in the class notebox area for each job, just add:
<Base Class: x>
wherein x is replaced with the class id of the initial job that, that class starts out as. Not having the notetag would revert it back to its current functionality for that job. This way, if you have a class say

Gladiator that then turns into Paladin, if Paladin has that notetag with the x value being that of the class id of Gladiator, then Paladin would get the stat allocation values of Gladiator. If not then it would work as it does now.

[IMG]https://i.imgur.com/xktzxx7.png[/IMG]

Even with <Base Class: x> defined

When I did replace everything, i literally just did Find and Replace all

EDIT: And that was why. I didnt keep the code provided intact when replacing everything. lol
EDIT: And that was why. I didnt keep the code provided intact when replacing everything. lol
Has it been resolved then?
Has it been resolved then?

No, sadly. I am using other stat allocation plugins that modify Yanflys Stat allocation

It throws errors when using v1.0 CaeF_YEPStatAllocJP and this.

Thank you for taking the time to look into this.
Maybe should look into @Frogboy plugin. You would like the inherit stats. I hope the plugin is not conflict with another plugin.


Maybe should look into @Frogboy plugin. You would like the inherit stats. I hope the plugin is not conflict with another plugin.



Thanks for that little tidbit. I'll look into it. 🙂
Bumping.

No, sadly. I am using other stat allocation plugins that modify Yanflys Stat allocation

It throws errors when using v1.0 CaeF_YEPStatAllocJP and this.

Thank you for taking the time to look into this.
Bump

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-stat-allocation-jp-persist-between-class-changes.122790/