What is so special about the number 32767?

Jump to navigationJump to search

You may notice that the maximum limit on alot of things in the OHRRPGCE is 32767. This is not my lucky number (try betting on that at the roulette wheel!) and I did not pick it at random. It is the highest number that can be represented in a signed 16-bit integer (to be exact, the range is 215-1 to -215 or 32767 to -32768), which is the data-type used by most variables in the OHRRPGCE.

Although the move to FreeBasic means that all our signed integers are now 32-bit, many of these limits cannot be raised without changing many of the file formats (which still use 16-bit numbers).