Custom Parameters Questions (with Yanfly Parameter Formulas)

Dhakurs

Villager
Member
Joined
Jan 10, 2017
Messages
8
Reaction score
1
First Language
English
Primarily Uses
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/
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
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.
 

Dhakurs

Villager
Member
Joined
Jan 10, 2017
Messages
8
Reaction score
1
First Language
English
Primarily Uses
@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.
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
You could absolutely push new values to the database variables. As far as Javascript is concerned, it's just another array.
 

Dhakurs

Villager
Member
Joined
Jan 10, 2017
Messages
8
Reaction score
1
First Language
English
Primarily Uses
I've been messing around with it in the console and that adds a whole new mess lol.
Thank you for your help.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
I suppose it depends on how you want the growth of your new parameters to work.
 

Dhakurs

Villager
Member
Joined
Jan 10, 2017
Messages
8
Reaction score
1
First Language
English
Primarily Uses
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?
 
Last edited:

ICF-Soft

Veteran
Veteran
Joined
Aug 15, 2015
Messages
254
Reaction score
124
First Language
Spanish
Primarily Uses
RMMV
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.
 

Dhakurs

Villager
Member
Joined
Jan 10, 2017
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Ok cool, Thanks for the info.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top