Quote Originally Posted by paul_nicholls
Ok, now I get this error (Delphi - seems a bit more descriptive than your fpc error):

"String literals may have at most 255 elements"

In Delphi at least (and guessing fpc too), this means you need to break up string literals (or constants) into 255 or smaller chunks like so:

[pascal] rooms[0].w := '2[&]2[&]You turn your head to the west. The immense iron bars of the cell door are impassable. The door is locked.[&]You slide the crudely made key into the lock. As you turn the bone key, it snaps in half. '+
'Luckily for you, the door was unlocked just before the key broke.';
[/pascal]

I hope this helps

BTW, I'm not sure what the "2[&]" parts are for in the string...some sort of commands that you interpret via code?

cheers,
Paul
Yes! Splitting it up like that worked perfectly. Now if only fpc could adopt more descriptive errors like Delphi's

(And yes, I plan on interpreting it via code. See this line: "// room[&]key[&]Descrip[&]Enter key descrip". That's a note to self to remember how it's structured. It's mostly for the door/key system, but I think I'll expand it later as well.)