DevTP92

Villager
Member
Joined
Dec 24, 2021
Messages
16
Reaction score
7
First Language
English
Primarily Uses
RMMV
Hi there,

I took a screenshot of the full error I am getting. I used a skill in MV that added a state with 5% param boosts, targeting the skill user in the party. Anyone know how to fix this?

bug.png

Thank you!
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,690
Reaction score
9,243
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.

 
Joined
Dec 12, 2021
Messages
10
Reaction score
3
First Language
english
Primarily Uses
RMMV
are you using bobstat by any chance?, because when ever i use it and dont put in the correct terms or spelling, it gives me that error. make sure to double check your code if your using it and all your classes and mobs have the default stats. other then that. thats the only time i ever seen that error.
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
1,015
Reaction score
658
First Language
English
Primarily Uses
RMMV
The cause of that error is that the hp (or mp) gauge is trying to draw itself using a value that isn't a number.

Normally, the gauge rate is calculated by dividing the current hp (or mp) by the maximum, if, however, for some reason, one or both of those numbers is not a number, it causes this error.

The most common reason for this to happen is that something has happened to your hp (or max hp) to cause it to no longer be a number. That happens when you try to perform math functions using a value that also isn't a number. Most times this happens when you try to subtract a value from your hp that isn't a number, via a mal-formed damage calculation, as subtracting 'undefined' from a number gives a result of NaN.

Since you said specifically that it happens when you apply a skill that provides a 5% parameter boost, the issue is most likely that it is calculating that boost incorrectly. Which caused the number it's trying to multiply your HP by to not actually be a number, or be undefined, which causes the hp result afterward to be NaN, causing the gauge to throw this error.

Double check however it is you are changing the parameters using this skill. A state that just adds a flat 5% boost to everything via traits should never be able to cause this problem, so the way you're applying the boost is relevant to the problem.
 

Latest Threads

Latest Profile Posts

Anyone here know a @Sonheruu? Pop over to their forum activity for a sec lol
Game Making Every Day #19 :kaosalute:

Uploaded my short game to itch.io just to see how it works... It doens't. Failed to load IconSet.png it says.
Yeah okay. Not wasting another second on it. :\
I wonder if anyone would be interested in free character art from me...

Forum statistics

Threads
124,621
Messages
1,164,802
Members
163,444
Latest member
haileyrowe234
Top