maxhp = 2000000000 //2 billion
hp = 2000000000
stat("Max HP: [num2text(usr.maxhp,25)]")
Note: This is an example similar to the code used in my project, and is not the actual code used in my project.
The problem here is, after I get to about 2,000,000,000 maxhp, it stops adding on maxhp. But it does, however, take away the regular hp (like it is supposed to).
It works fine when it is 800,000,000 maxhp, 1.5 billion maxhp, etc. Once the character hits about 2 billion(ish), the adding stops, and I'm not sure if it has anything to do with Stat() or if it is something else. I simply have no idea what is causing it.
I would also like to let you know that a strange phenomenon happens when I directly edit the large number through a verb that allows me to edit it to any number I want.
For example, I edited my maxhp to 3,911,911,901.
After checking the statistics, the number became 3,911,911,936.
I don't understand this at all, and if anyone could assist me in understanding, it would be appreciated.