Guest Posted February 8, 2011 Share Posted February 8, 2011 Hello, I just wanted to know if it was possible to make stats go above 255, I've been having some trouble with it, I think I pretty set all the stat_count stuff to As Long but it gave me an overflow, anyone know how to do it "properly"? Thanks. Link to comment Share on other sites More sharing options...
mrmiguu Posted February 8, 2011 Share Posted February 8, 2011 Change:```(variable goes here) As Byte```To```(variable goes here) As Integer```Edit::Overflow signals that something is attempting to be stored into memory under a Byte data-type but can't hold more than 255\. Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2011 Share Posted February 8, 2011 Worked, thanks Miguu. Link to comment Share on other sites More sharing options...
Robin Posted February 8, 2011 Share Posted February 8, 2011 Don't use integer. I removed all 16-bit data type processing for a reason. Use long. Link to comment Share on other sites More sharing options...
Fbu Posted February 8, 2011 Share Posted February 8, 2011 If you need stats above 255 I think it's time to think about game balance q:/myopinion Link to comment Share on other sites More sharing options...
Guest Posted February 8, 2011 Share Posted February 8, 2011 Hmm alright, I did change it to Integer at first and equipped an item that gave me 255 str, so I had 264, that all worked. So I added a point, I then had 704 str then 1063 O.o, from just two points, is that because of the integer or? Link to comment Share on other sites More sharing options...
mrmiguu Posted February 9, 2011 Share Posted February 9, 2011 @Robin:> Don't use integer. I removed all 16-bit data type processing for a reason. Use long.What is the reason? /curious Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now