Custom Parameters Questions (with Yanfly Parameter Formulas)

Hi I'm Dhakurs,
I am fairly new to the community so if I make any mistakes let me know and I will try to learn from/fix them.

--Back Story of Problem--
I have started working on a project that will need 8-10 custom parameters for the main actor. In my search to accomplish this I found Bobstah's Custom Stats Plugin and was ecstatic. I then through note tags provided with Bobstah's plugin added my new parameters to the default classes for testing purposes. Everything worked well. Then I introduced Yanfly's Parameter Formula scripts so that my new parameters could effect the default parameters. This also worked well. Then since I wanted the player to be able to freely change class I added Yanfly's Class Core to the mix, and found things did not work as well as I had thought. When looking at the parameter changes for switching from one class to another all parameters calculated using the new parameters are displayed as NaN (Example: MaxHP: 450 -> NaN). Once the class change is carried out the calculated values are correct and display properly in the status window, but they never show up correctly in the class change scene. I traced through the various plugins and with the help of the debug console, I have determined that the most-likely culprit is the way that Bobstah's plugin adds the new parameters to the actor/class. The only solutions to this that I have been able to come up with is to either write a new plugin that extends the parameter array(Possibly do-able, see Questions), modify Yanfly's scripts to handle Bobstah's custom parameters(No idea how I would do this), or find some other better options(see Questions).

--The Questions--
-Does anyone know of a way to make Bobstah's plugin and Yanfly's plugins work together?
See Back Story for details.
-Does anyone know where/how the parameters are declared?
I've combed through the rpg_objects as that seemed most likely location and found all the functions that reference the parameter array, but I have not been able to locate the array itself.
-Does anyone know of an easier/better way to add custom parameters to rmmv that will play well with Yanfly's scripts?
End goal is to have attributes such as str,con,int,etc... that are factored into the calculations for mhp,mmp,atk,etc...

Scripts being used:
Bobstah's CustomStats - https://forums.rpgmakerweb.com/index.php?threads/bobstahs-custom-stats-1-3-2.48551/
Yanfly's Parameter Formulas - http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/
Yanfly's Class Change - http://yanfly.moe/2015/11/27/yep-32-class-change-core/
As you haven't provided a link to any of the plugins you're using, I can't investigate the interplay between them, but it sounds like there's a conversion issue happening somewhere in between the new parameters being set and the class change scene displaying them.

In terms of where/how the parameters are declared:

The base params (HP, MP, atk, def, matk, mdef, agi, luk) are drawn straight from their respective values in the database for the given actor's class and level.

The xparam and sparam values are calculated by combining the values of all traits of the actor, their class, and their equipment.
@Trihan sorry about that. I added them to the main post.

Is it possible to add new parameters to the database then?
Preferably via scripts.
You could absolutely push new values to the database variables. As far as Javascript is concerned, it's just another array.
I've been messing around with it in the console and that adds a whole new mess lol.
Thank you for your help.
I suppose it depends on how you want the growth of your new parameters to work.
You need ICF-Soft Params Core.
https://forums.rpgmakerweb.com/index.php?threads/icf-soft-params-core.65274/
It needs main utility.
https://forums.rpgmakerweb.com/index.php?threads/icf-soft-main-utility.67848/

Latest versions can be found in my blog.
With these you shouldn't need any other params plugin.

I hope this will help you.
Dam wish I saw that yesterday. I just got done making my own... Yours does look nice and modular though.
Does it support custom formulas for the parameters?

Edit: Any way to mark this as answered?
There are some ways to use custom formulas:
Plain params can be customiced througth plugin parameters.
Normal params can be customiced througth '<CUSTOM NPARAM BASE NPARAM>' tags inside classes.
Ok cool, Thanks for the info.

Original thread: https://forums.rpgmakerweb.com/threads/custom-parameters-questions-with-yanfly-parameter-formulas.75377/