This means that at some point, a float is given to a method that changes your gold.
Good scripts gone bad!!
One of your shop scripts, or some other script that affects gold, did a calculation and failed to cast the result back into an integer (which can be fixed by adding .to_i to the result).
@wavelength
I don't have a shop script, so which default script should I be looking at?
I've passed this on to my tester, but he's just about to go out and so won't get to it for a couple of hours at least.
Here's hoping!
And thanks.
It's more of a last line of defense though, better find whatever it is than sent a float to your gold.
Most likely something divided integers into a float, such as 7/2 = 3.5. Either track down what sets it, or just do what Adiktuzmiko posted and keep the float carry-over.
My problem is that, not being a scripter, I don't know what I should be looking for.
I'm waiting for my tester to come back to me. I have never had this problem, so can't reproduce it. It is so frustrating.
@Funplayer - Something like 7/2 cannot be the cause because an integer divided by an integer always return an integer in RGSSx. Operations only return a float if there is at least one float being operated upon.
We couldn't track down the float, but the snippet cured it.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.