I want everything in stat allocation to be carried over.
Yanfly Stat Allocation JP persist between Class Changes?
Javascript/Plugin SupportI 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.
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.
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
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.
forums.rpgmakerweb.com
forums.rpgmakerweb.com
[FROG] Level-based Traits for Classes, Actors and Races
Level-based Traits 1.0 by Frogboy Introduction Alright! My Fire Mage has all her awesome fiery skills of fieriness. Now all she needs are fire-based traits to go with them and she ... will ... be … finished. Okay, so she should probably start out with 10% fire protection and it’ll scale up...
forums.rpgmakerweb.com
Inheriting stats when changing class?
This is weird, but.... I wonder if I can do this.... When a class levels up, I want so that when the actor changes class, he gets his stats slightly higher than if he didn't level up in the class. Example: A warrior: HP:300 MP:20 STR:30 MAG:5 A warrior that leveled up as mage: HP:300 MP:24...
forums.rpgmakerweb.com
Bump
Original thread: https://forums.rpgmakerweb.com/threads/yanfly-stat-allocation-jp-persist-between-class-changes.122790/