Stat increase confusion?

Hello everyone! I had a rather interesting result in playtesting and wanted to see if I can get some sort of feedback as to why it is happening. Here goes...

So I was trying to figure out what equipment a character can equip and assigned a few with traits that would change the stat by a percentage. Upon doing this I whipped out a calculator and done to math to see if it was correct. It was correct....to a point. It seems that rpg maker surpassed the number threshold I capped a players stat to (255) and it was showing the result in game once it got past 255 going down (the equipment in question lowers attack by 25% so it should of resulted in atk being a 191 but instead was showing me 203. Boggles my mind).

I took a different approach then. I was going to add a stat point to my characters atk to make it to 255, maybe it was the equipment I have given. This is the part that I noticed something weird. I checked the stat as I increased it by one and I got (initial atk:15) 16,17,18,...20? It skipped 19. I tried a bigger number. 50. Just once. It should come out 65 (15+50) however I got 73.

The. I began to think it must of been a plugin doing this. I am using yanfly. Maybe it's a single one like base parameter control or even engine core. I turned off everything and played the scenario bare bones.....i received the same result. 73.

I was looking for clarity on what is going on stat wise in game that skips certain numbers and just doesnt give the right amount. If anyone has any thoughts. Please let me know. I am going to experiment more tonight and will post what I see. Thanks!
my first guess would not be any plugin (although yanfly's item core randomizes item values by default unless disabling that option), but multiple traits.

all traits are combined to the actor, no matter where they come from: actor, class, equipment, states.
and when you have multiple traits of the same type, they are combined before being applied to any parameter.
The mathematical sign on the trait tells you how they combine. If you have one trait ATK * 120% and another trait ATK * 110%, then those will combine to ATK * 132% before the values are applied.
And in all cases there will be rounding to the next full lower number, the engine doesn't handle decimal values outside percentage numbers.

Where exactly the rounding that caused the skip I don't know, the same as I can't tell where the other trait comes from. But with this info you should be able to find it in your project.
Moved to: MV Support

I have moved it to MV Support based on your profile saying you primarily use MV. If you are actually using MZ, please let us know, and we'll move it there instead.
Thank you shaz for moving the thread to the right area.

Andar, thank you for the feedback. I will look into the percentages when I get home and work on it to get the results and post them here.
From what I remember (cause I'm at work currently) I tested the actor and the class it is does not have any atk% increase, at first using engine core and base parameter control, I set the limit for the atk stat to be 255. Though it does reflect in game I do not think it remains at that and it exceeds that number even though it appears to have stopped at 255,
How I am testing is I am trying to get a character to that 255 atk, there are pieces of equipemnt that will lower that stat by 25%
There is some hidden contributing factor that is somewhere that math is just not calculating right. Lol 2+2 is 4 not 22. So I'm trying to figure out why RPG MAKER is saying to me no dummy its 22.
I set the limit for the atk stat to be 255.
it might be that whatever plugin you're using for this limit is not working or working differently than you think, because by default there is no limit to those values.

that is what you should check...
it might be that whatever plugin you're using for this limit is not working or working differently than you think, because by default there is no limit to those values.

that is what you should check...
This is true yes to which I have tried it without the plugins on which does confirm with this that there is no limit. However, in one test, i had the player (who has no traits nor equipment with traits, with no class with traits) talk to an event which gives a player 1 point towards a stat to see what happens. When it got to 18 and added a point instead of it going to 19, it went to 20. Which to me the math makes no sense if it should be 19. I think I found something out but will test it and relay what I find
that really sounds as if there is a trait with a small bonus applied somewhere, especially since 1 is 5% of 20.
Check what happens around 40, 60, 80 - if it always jumps by one additional point around those numbers, then you can be sure it's a 5% bonus from somewhere
ok! so there was a hidden trait under the class at a 115% for atk.
thank you Andar for making me dig deeper!

problem solved! by removing that, the math adds up and things are operating the way that they are suppose to.
I found out that the percentages I place onto a character does not add up together however they work one after another. ex. 255 - 25% = 191 then 191 - 25% = 143 (you can equip 2 of these things.) instead of it being 255 - 50% (25+25) = 127.
however I did find something rather interesting moving forward for things that will probably affect how things are played out in the future. so before taking out that 115% trait, the math seemed to work like 255 - 25% +15%, but adding the second 25% seemed to have ignored the 115% bonus. I have tried at different percentages like instead of 25% it is now 50%, same thing, it applied to the first one but not the second. it seems to be like a small occurrence that I found that will be confusing at first but if i remember that trait in certain things, it will certainly be easier to understand instead of scratching my head thinking about it.

again thank you for your feedback! we can definitely chalk this one up as a victory!
I found out that the percentages I place onto a character does not add up together however they work one after another. ex. 255 - 25% = 191 then 191 - 25% = 143 (you can equip 2 of these things.) instead of it being 255 - 50% (25+25) = 127.
that depends on what parameter it is exactly, and you can see that in the database.

you never have a trait 50% or so, it is always either
+ 50%
or
* 50%

and that mathematical sign tells you if the specific parameter discussed is additive (base 0%, all traits are added together) or multiplicative (base 100%, all traits are multiplied together).

that assumes no changes with plugins of course, some of the plugins change that behaviour to other formulae.
Surely noted. I did notice that in the parameter trait it says stat * x%. In the future I will be aware of this and make changes accordingly. Thank you again for using your time to assist me in figuring this out!

Original thread: https://forums.rpgmakerweb.com/threads/stat-increase-confusion.131316/