RMMV Additive Parameters.

Hey, new face around here after lurking around for some questions, figured this is best to ask unless there's some old forum I can look to.

I've been dabbling in messing with the game's code with not only plugins, but even the core js's, such as 'rpg_objects.js' in this case. I had went and changed Parameters, Sp_Parameters, and the other multiplicative/traitsPi to additive/traitsSum formulas like Ex_Parameters is and I've encountered and issue:

When wanting to apply a penalty on former multiplicative parameters, which were based on a percentage of 0-1000%, I cannot go below 0% and I'm seeking if I could alter the base game's code further to make it like Ex-Parameter's additive acceptable range of percentages, that being -1000% to +1000%. I've attempted a CRTL+F across the file (objects.js) to find anything akin to the enterable percentages, but either I'm in the wrong file, too tired or too worn out at the moment to see the solution.
As you've noted, the editor doesn't allow entering negative multipliers. Consider defining your own "trait sum" method to shift each value's zero before it is summed, e.g. from [0, 1000] to [-500, 500], and call that instead of the default.

not only plugins, but even the core js's
Just to mention: that's exactly what plugins are for. They redefine specific core script methods after the core has been loaded. Editing the core directly is bad practice because your changes are harder to track, revert, credit, and port. It also makes remote support a nightmare, e.g. problems that cannot be replicated because everyone trying to help is testing on a clean copy of the core scripts.
While I get that plugins are meant to make things easier when you can identify the source. I've discovered no such plugin modification, so I opted for a manual change since I lack the coding skills to just create a plugin like that; I'm practically doing chicken scratch in javascript.

Though, your proposed method does seem enticing, I do need to clarify that the game wigs out when you change multiplicatives to additives: all stats (Parameter and Sp-Parameter notably) get brought to 0/1 unless set to 100%, restoring it to default value. https://forums.rpgmakerweb.com/inde...-multiplicative-params-bonus-tutorial.129127/ This here is where I found the scripting changes to understand what I was roughly doing, I just didn't anticipate seeing the lack of negatives.
While I get that plugins are meant to make things easier when you can identify the source. I've discovered no such plugin modification, so I opted for a manual change since I lack the coding skills to just create a plugin like that; I'm practically doing chicken scratch in javascript.
There are zero coding skills required to create the plugin. You copy the function from the source code, paste it in a new file, make your changes, and give it a .js extension.

Then you have all of your changes in one place and anything that other people help you with won't have wrong line numbers or conflicts because you changed something in the default code.
@SweetFckNo
I should point out that there are reasons why only some of the parameters are additive by default, but most are multiplicative. You can easily see which one is which in the editor as all parameters have either a + or a * before their number field.

And the reason why some parameters are multiplicative with a 100% base instead of additive with a 0% base is that the engine is written in a way that those values should never go into the negatives to prevent value problems.
For example alll damage rates are multiplicative, because that way the default values can never get negative - because negative damage would be healing.

There are already plugins that allow additive values without changing the core files or removing the base multiplicative effect (for example yanfly's), but whether you do your own or use them in all cases where you allow additive values into parameters that are supposed to be multiplicative, YOU are the one who has to make sure that no matter what, the totalo value cannot become negative even if many substractions are added together.

Most people don't change the multiplicative base exactly because they don't want the hassle of bookkeeping needed to keep their game going.
There are zero coding skills required to create the plugin. You copy the function from the source code, paste it in a new file, make your changes, and give it a .js extension.

Then you have all of your changes in one place and anything that other people help you with won't have wrong line numbers or conflicts because you changed something in the default code.
hey hey, you are actually right. It is that simple. I restored the original code to rpg_object.js and then created a separate .js, pushed it into a plugin. Tested it and yeah, it works as if I tampered with the original code.

Now I need to find where those value ranges are and see if I can mess with that and get the full additive parameter values.

And the reason why some parameters are multiplicative with a 100% base instead of additive with a 0% base is that the engine is written in a way that those values should never go into the negatives to prevent value problems.
For example alll damage rates are multiplicative, because that way the default values can never get negative - because negative damage would be healing.
Understandable, though I figure there'd be a "failsafe" created where these parameters cannot go below 0. At least in my vision.

To give a scope of why I want this, I am deeply rooted & inspired by Epic Battle Fantasy's stat formulas, which is a simple 'Base * Equips * De/Buffs' in which the equip and de/buff rates are additively stacked, although debuffs are capped to -80%, meaning 20% is the smallest amount of stat anything (like health, mana, physical damage, magical defense, etc).
though I figure there'd be a "failsafe" created where these parameters cannot go below 0.
yes and no

there are some failsafes, but only where the editor itself can get the values outside the expected range.
if the value itself can't become negative in the editor, then the check for value range is usually omitted from the engine.
So... I suspecting the only easy way out of this is the 'advanced parameters' plugins that Yanfly has... which are paywalled but give me the ability to modify the formula and manually add I suspect flat additive rates like I want it to as well as declaring the maximum and minimum values (thee failsafe in this situation) I think so that I don't break the game.
What plugin are you referring to when you say:

'advanced parameters' plugins that Yanfly has

I googled for "yanfly advanced parameters" and the top hit was Advanced Switches & Variables (YEP). If you were to provide the actual plugin name, someone familiar with the plugin library might be able to reply and confirm whether or not it'd suit your needs before you paid for it.

And re: the concept of paywalling, you generally ought to expect to pay for something if you aren't able to personally accomplish it yourself. In this case, writing a JavaScript plugin to accomplish your objective.
What plugin are you referring to when you say:



I googled for "yanfly advanced parameters" and the top hit was Advanced Switches & Variables (YEP). If you were to provide the actual plugin name, someone familiar with the plugin library might be able to reply and confirm whether or not it'd suit your needs before you paid for it.

And re: the concept of paywalling, you generally ought to expect to pay for something if you aren't able to personally accomplish it yourself. In this case, writing a JavaScript plugin to accomplish your objective.
Well aware that paywalling exists for reasons and I get why yanfly does so; incredible amount of work to make sure it just works with no bugs or the sort that makes the engine more flexible than it was before

As for the plugin in question: http://www.yanfly.moe/wiki/Base_Parameter_Control_(YEP) This, paired with the "Core & Options" pack that contains the other two parameter controls.

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-additive-parameters.159953/