Simple technical question. How much binary space is there in a RPG Maker VX Ace variable? The documentation says that the value range is between -99999999 and 99999999, but this doesn't conform to any standard signed integer types. This suggests that the data is actually stored in strings.
I'm contemplating using spare game variables as a data storage mechanism and am trying to figure out how much info I can cram into them.
The answer is that these variables ARE strings because you can store strings in them.
Guess I need to give up huffing leaded gasoline fumes while smoking crack.
(Explanation: My initial exposure to variables was via RPGMakerSaveEdit.exe, which only displays numeric variables.)
I actually didn't realize what your question was. I thought you were asking how big of a number can you store in a variable.
Variables can hold whatever you put in them.
Integer, String, Array, Hash, etc.
Switches are Boolean (either true or false)
You see, using normal editor would only let you save everything in the default Marshal.dump data format. It's saving strings that it will later convert into proper objects, including numbers, via Marshal.load.
While variables of any kind are loaded in the memory, they have their own classes, like Integer, String, Array, Game_Actor, etc.
That does re-raise the original question of "What's the largest amount of binary data you can stuff into a VX Ace variable?".
Ex. a string that's 128 characters long could be 128, 256 or 518 bytes depending on whether the string is encoded as ASCII, ANSI or UNICODE.
Presumably it's whatever the Ruby language limitations are. I was referring specifically to the members of $Game_Variables. It's possible that the whole notion is misguided because I'm a SQL guy fumbling around in Ruby, which I don't understand.
Open the Help File (F1) and read up on Integer, Fixnum, and Bignum. In summary, Ruby automatically handles all situations where your integers go beyond the 32-bit limit.
As for the +/- 99999999 limit imposed by the editor, that's just an arbitrary value they decided to go with. Again, this limit is only imposed within the editor--you can set its value to whatever you want via script calls.