Hai.
I am starting work on a text based adventure game using the console, and working on the rooms atm. I have all the data stored in a text file, which I read in everything.
I have, at the moment, 2 fields (description and name) and 2 methods(ReadDesc and ReadName) which take an int param for the ID. When run, ReadName() works fine and the name appears.
If I run ReadDesc(), which is exactly the same code, copy and pasted with different string.find() bits, it just returns the first section of the file. I thought it was the rdesc bit that was messing it up, so I changed the parameters as well, so I basically have 2 exactly identical functions. Yet I still have the same problem. Can anybody help?
Thanks.
P.S. Not sure about source tags. =/ http://pastie.org/567762