RMMV [Solved]Need help getting Himeworks Parameter table to work with yanfly subclass

Joined
Dec 12, 2021
Messages
10
Reaction score
3
First Language
english
Primarily Uses
RMMV
I can get himeworks parameter tables to work with actor with a primary class that has parameter tables in a class notetag, but i cant seem to make this configuration of having 1 actor and 1 class without a parameter table to pick up a sub class's parameter table within that class notetag with yanfly subclass, is there a work around or a patch plugin available or something? without it, it stall my project that i am working on. thanks!

 
Last edited:
Joined
Dec 12, 2021
Messages
10
Reaction score
3
First Language
english
Primarily Uses
RMMV
anyone have any ideas or solutions for this problem?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,660
Reaction score
9,848
First Language
German
Primarily Uses
RMMV
this will most likely require a reprogramming of the subclass plugin, so there is no easy fix.
 

eomereolsson

Veteran
Veteran
Joined
Sep 29, 2021
Messages
207
Reaction score
170
First Language
German
Primarily Uses
RMMV
So I took a quick look at the code and I think I can help you out. Though I haven't actually tested this solution, so be warned.
Save this as a new plugin and install it.
JavaScript:
AzraelAstaroth7425_request = {};
AzraelAstaroth7425_request.orig_subclassParamBase = Game_Actor.prototype.subclassParamBase;

Game_Actor.prototype.subclassParamBase = function(paramId) {
    if (!this.subclass()) return 0;
    var rate = Yanfly.Subclass.Param[paramId];
    if (!rate) return 0;

    var table = this.subclass().paramTable;
    if (table) {
      return rate * table.basic[paramId][this._level];
    }

    return AzraelAstaroth7425_request.orig_subclassParamBase.call(this, paramId);
};
If it doesn't work please be sure to describe exactly what doesn't work and provide screenshots of the console (F8) in case of a crash.
 
Joined
Dec 12, 2021
Messages
10
Reaction score
3
First Language
english
Primarily Uses
RMMV
Works as intended, thank you so much!, please make a revision of the plugin with a proper title for someone that might need a Yanfly subclass x Himework parameter table plugin. now have to open a new thread reguarding about how to inherit bobstats info from subclass.


here a edited version of the plugin patch. credit goes eomereolsson. as designed.
 

Attachments

  • Himeworks_parameter_table_subclass_patch.js
    1.3 KB · Views: 1
Last edited:

Latest Threads

Latest Profile Posts

Another day, another patch. Praise be to the game make!
Okay... I'm injured and stuck in bed with a bad knee. And I'm only 24! I shouldn't be limping this badly, but my leg refuses to fully straighten and it hurts if I try to push it.
At least I have my games to work on.
RianQuenlin wrote on Iron_Brew's profile.
To elaborate on "safety" since bgillisp locked the thread, some lunatics will take reports personally and decide to harass people who file reports or otherwise complain about them. Me, I don't care but others seeing that might nope right out of discussion. Being a former mod back in the mid-2000s for some gaming forums in by BYOND days I can tell you some people go crazy.
Excitement: I've spent the last week making a little update package for VE Fog & Overlay, and finally got it working in my test environment!

Dread: Sigma fullscreen and Zeus's map effects are screaming at me when I add them into the mix.
ScreenShot_8_7_2022_0_23_50.png
Unleash the hype beam...

Forum statistics

Threads
124,330
Messages
1,162,814
Members
163,123
Latest member
Introvertebrate
Top