I'm working on my RPG for the Last Stand contest, and I'm a little worried about my strings. I'm not sure if I'll have enough room...
I mainly want to know, what does this phrase mean?
each string has a 2 byte offset value, and a 1 byte null terminator.
It's what it say's in the Wiki, but I don't understand what it means...
None.
Each character takes up a byte, at the front of the string there's a 2 byte offset(kind of like an address), and a 1 byte null terminator, the character that tells SC that it's at the end of the string, all characters in between will take up an addition byte, you can have 65535(correct me if I'm off a bit) bytes in your string section max.
None.
So every string takes up 2 bits, and every letter in the string takes a bit, and ending the string takes a bit?
None.
As a metaphor, it's like a telegram. Maybe it says START at the beginning (the two byte beginner) and STOP at the end of a sentence (the one byte null ender). Then there's the bytes in between to make the words.
None.
Yes, a null(empty) string takes up 3 bytes, any additional characters add a byte, so the string "Fat chicks" would take up 2(offset)+10(characters+1(null terminator), 13 bytes out of your maximum of 65535.
None.
And New-Guy, it's "Byte", not "Bit"
None.